Explorar el Código

术语映射修改

wyq hace 3 años
padre
commit
fe7abb15e8
Se han modificado 2 ficheros con 26 adiciones y 27 borrados
  1. 3 2
      src/components/common/LtModal.vue
  2. 23 25
      src/components/icss/operation/Operation.vue

+ 3 - 2
src/components/common/LtModal.vue

@@ -150,7 +150,7 @@
       </div>
       <div class="mapList">
         已关联标准术语:
-        <span v-for="item in mapList" :key="item.id">{{item.uniqueName}};</span>
+        <span v-for="item in mapList" :key="item.id">{{item.uniqueName}}&nbsp;&nbsp;{{item.form}};</span>
       </div>
       <div class="modal-footer">
         <button class="confirm btns" :disabled="saveDisable" @click="submitForm">确定</button>
@@ -217,6 +217,7 @@ export default {
       this.form.form = this.data.form;
       this.form.source = this.data.source;
       this.form.hisCode = this.data.hisCode;
+      this.searchType = this.type
       this.getTermMatching();
       this.getRelatedMapping();
     }
@@ -254,7 +255,7 @@ export default {
         this.uniqueNameList = [];
         return;
       }
-      if (this.type == 1) {
+      if (this.type == 1 && !this.isEdit) {
         const { hisName, hisDetailName } = this.form;
         this.ty = 2; // 1-化验大项、2-化验小项
         if (hisName !== '' && hisDetailName === '') {

+ 23 - 25
src/components/icss/operation/Operation.vue

@@ -4,12 +4,7 @@
       <el-form :inline="true" class="demo-form-inline">
         <el-form-item>
           <el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
-          <input
-            type="file"
-            name="uploadfile "
-            id="upFile"
-            @change="uploadFile($event)"
-          />
+          <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
           <el-button size="mini" @click="handleMatchData">预匹配</el-button>
           <el-button size="mini" @click="importPage" style="margin:0 10px">{{uploadInfo}}</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
@@ -39,6 +34,7 @@
         <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
         <el-table-column :resizable="false" prop="gmtModified" label="操作时间" width="180"></el-table-column>
         <el-table-column :resizable="false" prop="hisName" label="医院手术/操作名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="code" label="手术/操作代码" show-overflow-tooltip></el-table-column>
         <el-table-column
           :resizable="false"
           prop="uniqueName"
@@ -109,7 +105,7 @@ export default {
       filter: {
         hisName: '', // 医院诊断名称
         uniqueName: '', //标准诊断名称
-        match:''
+        match: ''
       },
       currentPage: 1,
       pageSize: config.pageSize,
@@ -126,15 +122,15 @@ export default {
   },
   created() {
     const param = this.$route.params;
-    if(param.currentPage){
-      this.inCurrentPage = param.currentPage
+    if (param.currentPage) {
+      this.inCurrentPage = param.currentPage;
     }
-    if(param.filter){
-      this.filter = param.filter
+    if (param.filter) {
+      this.filter = param.filter;
     }
-    console.log(param)
+    console.log(param);
     //返回时避免参数未赋值就获取列表
-    setTimeout(()=> {
+    setTimeout(() => {
       this.getDataList();
     });
   },
@@ -261,8 +257,8 @@ export default {
           }
         : { currentPage: this.currentPage, pageSize: this.pageSize };
       // this.$router.push({ name: 'AddOperation', params: pam });
-      this.data = {}
-        this.showModal()
+      this.data = {};
+      this.showModal();
     },
     // 修改诊断关联-跳转至编辑页面
     modifyRelation(row) {
@@ -278,8 +274,8 @@ export default {
       //   name: 'AddOperation',
       //   params: Object.assign(pam, { isEdit: true, data: item })
       // });
-      this.data = item
-        this.showModal()
+      this.data = item;
+      this.showModal();
     },
     currentChange(next) {
       this.currentPage = next;
@@ -382,12 +378,14 @@ export default {
         // }
       })
         .then(() => {
-          api.exportOperationRecord({type:6,isMatch:this.filter.match}).then(res => {
-            if (res.status === 200) {
-              this.$message({ message: '导出成功', type: 'success' });
-              utils.downloadExportedData(res.data, '手术/操作关联数据.xls');
-            }
-          });
+          api
+            .exportOperationRecord({ type: 6, isMatch: this.filter.match })
+            .then(res => {
+              if (res.status === 200) {
+                this.$message({ message: '导出成功', type: 'success' });
+                utils.downloadExportedData(res.data, '手术/操作关联数据.xls');
+              }
+            });
         })
         .catch(() => {
           // this.$message({ message: '导出失败', type: 'waring' });
@@ -396,7 +394,7 @@ export default {
 
     // 导入模板
     exportModule() {
-      api.exportOperationModule({type:6}).then(res => {
+      api.exportOperationModule({ type: 6 }).then(res => {
         if (res.status === 200) {
           setTimeout(() => {
             utils.downloadExportedData(res.data, '手术/操作导入模板.xls');
@@ -554,7 +552,7 @@ export default {
     border-bottom: 1px solid #dcdfe6;
   }
 }
-#upFileMatch{
+#upFileMatch {
   display: none;
 }
 </style>