wyq 4 年之前
父節點
當前提交
b51e24f706
共有 1 個文件被更改,包括 42 次插入9 次删除
  1. 42 9
      src/components/basicKnow/AddTerm.vue

+ 42 - 9
src/components/basicKnow/AddTerm.vue

@@ -683,12 +683,21 @@
             <el-form-item v-if="data.type=='手术和操作'" label="手术操作代码:" prop="description" class="marT">
               <div-editable v-model="klOperationVO.operationCode" :Maincontent="'Maincontent'"></div-editable>
             </el-form-item>
-            <el-form-item
-              v-if="data.type=='中医疾病' || data.type=='中医证候'"
-              label="编码:"
-              class="marT is-required"
-            >
-              <div-editable v-model="klOperationVO.operationCode" :Maincontent="'Maincontent'"></div-editable>
+            <el-form-item v-if="data.type=='中医疾病'" label="编码:" class="marT is-required">
+              <el-input
+                style="width:300px"
+                v-model.trim="klTcmDiseaseVO.code"
+                maxlength="200"
+                placeholder="请输入"
+              ></el-input>
+            </el-form-item>
+            <el-form-item v-if="data.type=='中医证候'" label="编码:" class="marT is-required">
+              <el-input
+                style="width:300px"
+                v-model.trim="klTcmSyndromeVO.code"
+                maxlength="200"
+                placeholder="请输入"
+              ></el-input>
             </el-form-item>
             <!-- <el-form-item
               v-if="data.type=='症状'"
@@ -826,6 +835,12 @@ export default {
         partList: [], //部位列表
         systemTypeList: [] //疾病系统分类列表
       },
+      klTcmDiseaseVO: {
+        code: ''
+      },
+      klTcmSyndromeVO: {
+        code: ''
+      },
       operationLevelList: [
         {
           id: '0',
@@ -1024,7 +1039,7 @@ export default {
           remark: data.remark,
           spell: data.spell,
           type: data.typeName,
-          conceptId:this.copy? '' : data.conceptId,
+          conceptId: this.copy ? '' : data.conceptId,
           libId: this.copy ? '' : data.libId,
           isHasCommon: data.isHasCommon,
           synonymName: data.synonymName,
@@ -1069,7 +1084,14 @@ export default {
                 ? redata.klDiseaseDTO
                 : this.klDiseaseVO;
               this.radio =
-              this.klLisVO.minValue || this.klLisVO.maxValue ? 1 : 2;
+                this.klLisVO.minValue || this.klLisVO.maxValue ? 1 : 2;
+              this.klTcmDiseaseVO = redata.klTcmDiseaseDTO
+                ? redata.klTcmDiseaseDTO
+                : this.klTcmDiseaseVO;
+              this.klTcmSyndromeVO = redata.klTcmSyndromeDTO
+                ? redata.klTcmSyndromeDTO
+                : this.klTcmSyndromeVO;
+
               this.singleword = redata.libName;
               this.synonymous = redata.otherNames;
               this.allwords = redata.libName.concat(redata.otherNames);
@@ -1499,9 +1521,20 @@ export default {
               minAge: this.minAge,
               status: this.data.status || 1
             }
-          : this.data.libType == 127 || this.data.libType == 128
+          : this.data.libType == 127
+          ? {
+              ...this.data,
+              klTcmDiseaseVO: this.klTcmDiseaseVO,
+              klConceptSub: detailList || [],
+              sexType: sexCode,
+              maxAge: this.maxAge,
+              minAge: this.minAge,
+              status: this.data.status || 1
+            }
+          : this.data.libType == 128
           ? {
               ...this.data,
+              klTcmSyndromeVO: this.klTcmSyndromeVO,
               klConceptSub: detailList || [],
               sexType: sexCode,
               maxAge: this.maxAge,