浏览代码

预问诊修改bug

zhouna 6 年之前
父节点
当前提交
1b04e69a8b

+ 2 - 2
src/components/preTreat/AddQuestionModules.vue

@@ -81,10 +81,10 @@
         </el-form>
     </div>
         <div class="main">
-            <p class="title">
+            <p class="title" v-if="form.type&&form.moduleType">
                 填写单明细:
             </p>
-            <QuestionTagGroup v-if="form.type!=1" qaType="3" :ascription="form.type" @changeActionData="pushValues" :options="editData.moduleDetail"></QuestionTagGroup>
+            <QuestionTagGroup v-if="form.type&&form.moduleType&&form.type!=1" qaType="3" :ascription="form.type" @changeActionData="pushValues" :options="editData.moduleDetail"></QuestionTagGroup>
             <div class="static" v-if="form.type==1">
                 <p>请问您有哪些不适?</p>
                 <div class="inner">科室常见症状</div>

+ 4 - 4
src/components/preTreat/PubSelect.vue

@@ -155,12 +155,12 @@
         const arr = options.filter((it)=>{
           return it.name;
         });
-        const arrLen = arr.length;
+        /*const arrLen = arr.length;
         if(arrLen < 4) {
           for (let i = 0; i < 4 - arrLen; i++) {
-            arr.push(...utils.getInitRow(initRow,1))
+            arr.push(Object.assign({},initRow,{orderNo:arr.length}));
           }
-        }
+        }*/
         this.rows = arr;
         const items = utils.simpleOptionData(this.rows);
         this.$emit('pushValues',items);
@@ -195,7 +195,7 @@
     },
     methods:{
       addRow(){
-        this.rows.push(utils.getInitRow(initRow,1));
+        this.rows.push(Object.assign({},initRow,{orderNo:this.rows.length}));
       },
       selectRow(index){
         this.focusOn = index;

+ 2 - 2
src/components/preTreat/QuestionTagGroup.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="symptomTagGroupWrapper commomSymptom clearfix">
         <div class="operation-row">
-            <el-checkbox-group size="small">
+            <el-checkbox-group size="small" v-if="qaType==2">
                 <el-checkbox-button :label="0" @change="handleExclu">互斥项</el-checkbox-button>
             </el-checkbox-group>
         </div>
@@ -249,7 +249,7 @@ export default {
                 "type": this.ascription,
                 "notIds": notIds,
                 "sexType": this.sexType,
-                "tagType":+this.qaType===2?maps[this.type]:['1','4']       //qaType=2:组合填写单,qaType=3模板
+                "tagType":+this.qaType===2?maps[this.type]:['1','6']       //qaType=2:组合填写单,qaType=3模板
             };
             api.questionSearch(param).then((res) => {
                 if (res.data.code === '0') {