فهرست منبع

去掉模板标签池中的组合标签

luolei 5 سال پیش
والد
کامیت
938be68962

+ 6 - 6
src/api/config.js

@@ -205,7 +205,7 @@ export default {
     'searchKnowledgeLis': 'api/knowledgeman/scaleContent/index', //量表结构检索
     'getknowledgeList': 'api/knowledgeman/dictionaryInfo/getList', //量表结构字典信息
     'getModuleType': 'api/icssman/moduleInfo/getModuleType',  //模板维护 -- 类型筛选
-    'indexByLexicon': 'api/icssman/questionInfo/indexByLexicon',  //知识库标准化-根据名称和术语库词性类型搜索
+    'indexByLexicon': testUrl+'/'+'api/icssman/questionInfo/indexByLexicon',  //知识库标准化-根据名称和术语库词性类型搜索
     'indexByLexiconStandWord':'api/knowledgeman/commonconcept/indexByLexicon',  //知识库标准化-根据名称搜索
     'getAssaySon': 'api/knowledgeman/lisSonContact/lisSonContactList',  //化验子项维护
     'getAssaySonDetail': 'api/knowledgeman/lisSonContact/relationContactDetail',  //化验子项维护-详情
@@ -235,18 +235,18 @@ export default {
 	  /*********预问诊相关接口**********/
 	  'questionList':testUrl+'/api/precman/questionInfo_prec/page',     //预问诊-填写单列表
     'questionAdd':testUrl+'/api/precman/questionInfo_prec/saveOrUpdate',      //预问诊-填写单添加
-    'questionSearch':'/api/precman/questionInfo_prec/index',    //预问诊-填写单检索
+    'questionSearch':testUrl+'/api/precman/questionInfo_prec/index',    //预问诊-填写单检索
     'preTypeList':testUrl+'/api/precman/dictionaryInfo_prec/getList',   //类型枚举
     'questionDel':'/api/precman/questionInfo_prec/delete',      //删除
     'uploadImg':'/api/precman/file_prec/uploadImage',       //图片上传
     'fileDel':'/api/precman/file_prec/deleteRemoteFile',          //图片删除
-    'questionDetail':'/api/precman/questionInfo_prec/getById',                //填写单详情
-    'moduleList':'/api/precman/moduleInfo_prec/getModuleInfoList',        //模板列表
+    'questionDetail':testUrl+'/api/precman/questionInfo_prec/getById',                //填写单详情
+    'moduleList':testUrl+'/api/precman/moduleInfo_prec/getModuleInfoList',        //模板列表
     'addModule':'/api/precman/moduleInfo_prec/saveOrUpdateModuleInfo',        //模板添加
     'delModule':'/api/precman/moduleInfo_prec/delete',        //模板删除
     'moduleDetail':'/api/precman/moduleInfo_prec/getModuleInfoOne',    //模板详情
-    'deptList':'/api/precman/moduleInfo_prec/getAllDeptAndDisInfo',    //模板-科室列表
-    'getPrecModuleType':'/api/precman/moduleInfo_prec/getModuleType',     //获取未创建的模板类型
+    'deptList':testUrl+'/api/precman/moduleInfo_prec/getAllDeptAndDisInfo',    //模板-科室列表
+    'getPrecModuleType':testUrl+'/api/precman/moduleInfo_prec/getModuleType',     //获取未创建的模板类型
      /*********诊断依据*********/
      'exportDiagnosticAll': '/api/knowledgeman/diagnose/exportDiagnosticAll', //诊断依据--导出诊断依据
      'exportDiagnosticBasis': '/api/knowledgeman/diagnose/exportDiagnosticBasis', //诊断依据--导出诊断依据问题

+ 22 - 7
src/components/preTreat/PubIndeptQa.vue

@@ -13,7 +13,7 @@
                     label="选择归属:"
                     prop="region1"
             >
-                <span class="changeTips">改变归属后,填写单明细将会恢复到默认状态</span>
+                <!-- <span class="changeTips">改变归属后,填写单明细将会恢复到默认状态</span> -->
                 <el-select
                         v-model="form.region1"
                         placeholder="请选择归属"
@@ -31,7 +31,7 @@
             <el-form-item
                     label="选择类型:"
                     prop="region2">
-                <span class="changeTips">改变类型后,填写单明细将会恢复到默认状态</span>
+                <!-- <span class="changeTips">改变类型后,填写单明细将会恢复到默认状态</span> -->
                 <el-select
                         v-model="form.region2"
                         placeholder="请选择类型"
@@ -100,12 +100,13 @@
                         @change="sendData"
                 ></el-input>
             </el-form-item>
-          <el-form-item class="flag-box"  v-if="qaType =='1'&& form.region1 == '1' && form.region2 != '4'">
-              <el-checkbox v-model="form.required"  label="必填" true-label="1" false-label="0"  @change="sendData"></el-checkbox>
+          <!-- <el-form-item class="flag-box"  v-if="qaType =='1'&& form.region1 == '1' && form.region2 != '4'"> -->
+          <el-form-item class="flag-box"  v-if="qaType =='1'&&(form.region2=='1'||form.region2=='9'||form.region2=='1'||form.region2=='2')">
+              <!-- <el-checkbox v-model="form.required"  label="必填" true-label="1" false-label="0"  @change="sendData"></el-checkbox> -->
               <!--<el-checkbox v-if="form.region2=='9'" v-model="form.specFlag" label="拼接到主诉" true-label="1" false-label="0"  @change="sendData"></el-checkbox>-->
               <el-checkbox v-if="form.region2=='1'||form.region2=='9'" :disabled="form.flag==='2'" v-model="form.flag" label="时间类型" true-label="1" false-label=""  @change="sendData"></el-checkbox>
               <el-checkbox v-if="form.region2=='1'||form.region2=='2'" :disabled="form.flag==='1'" v-model="form.flag" label="诱因类型" true-label="2" false-label=""  @change="sendData"></el-checkbox>
-              <el-checkbox v-if="form.region2=='8'" v-model="form.flag" label="伴随类型" true-label="3" false-label=""  @change="sendData"></el-checkbox>
+              <!-- <el-checkbox v-if="form.region2=='8'" v-model="form.flag" label="伴随类型" true-label="3" false-label=""  @change="sendData"></el-checkbox> -->
           </el-form-item>
             <el-form-item
                     v-if="qaType==2"
@@ -411,8 +412,22 @@
       getDropList() {
         return api.getPreTypeList().then((res) => {
           if (res.data.code === '0') {
-            this.Adscriptions = res.data.data[1];
-            this.labelTypesList = this.qaType==1?res.data.data[2]:res.data.data[3];
+            const {isEdit,isCopy} = this.$route.params;
+            if(this.qaType == 1){
+              this.Adscriptions = res.data.data[1];
+              this.labelTypesList = res.data.data[2];
+            }else{
+              if(isEdit||isCopy){
+                this.Adscriptions = res.data.data[1];
+                this.labelTypesList = res.data.data[3];
+              }else{
+                this.Adscriptions = (res.data.data[1]).slice(0,1);
+                this.form.region1 = '1'
+                this.labelTypesList = (res.data.data[3]).slice(0,1);
+                this.form.region2 = '4'
+              }
+            }
+
             const editData = this.$props.editData;
             //编辑时,单选、多选可互相切换
             if(editData.controlType=='1'||editData.controlType=='2'){

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

@@ -19,7 +19,7 @@
                     <span><i>*</i>填写单医生界面展示标准内容</span>
                     <span>填写单患者界面展示通俗内容</span>
                 </el-col>
-                <p class="static-tip" v-if="type==8">默认展示有/无</p>
+                <!-- <p class="static-tip" v-if="type==8">默认展示有/无</p> -->
                 <el-col v-for="(it,i) in rows" :key="i">
                     <div class="inps">
                         <el-input v-model="rows[i].name"

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

@@ -300,7 +300,8 @@ export default {
                 "notIds": notIds,
                 "notControlType":this.qaType==2||this.ascription!='51'?['4']:[],             //组合填写单或非诊疗情况模版不能添加图片上传
                 "sexType": this.sexType,
-                "tagType":+this.qaType===2?maps[this.type]:['1','6']       //qaType=2:组合填写单,qaType=3模板
+                "tagType":+this.qaType===2?maps[this.type]:['1']       //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') {