浏览代码

术语映射修改

wyq 4 年之前
父节点
当前提交
254c8b95f0
共有 3 个文件被更改,包括 26 次插入15 次删除
  1. 4 3
      src/components/base/LtModal.vue
  2. 20 10
      src/components/cdssManage/operation/Operation.vue
  3. 2 2
      vue.config.js

+ 4 - 3
src/components/base/LtModal.vue

@@ -149,7 +149,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>
@@ -225,6 +225,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();
     }
@@ -263,14 +264,14 @@ 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 === '') {
           this.ty = 1;
         }
-        this.searchType = this.ty;
       }
+      this.searchType = this.ty;
       this.showDrop = true;
       let params = {
         type: this.ty ? this.ty : this.type,

+ 20 - 10
src/components/cdssManage/operation/Operation.vue

@@ -43,6 +43,12 @@
         <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"
@@ -108,7 +114,7 @@ export default {
       filter: {
         hisName: '', // 医院诊断名称
         uniqueName: '', //标准诊断名称
-        match:''
+        match: ''
       },
       matchList: [
         { id: '', name: '全部' },
@@ -186,7 +192,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataOperationVerify(formData, header).then(res => {
-        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
+        if (res.data.code === '00020007' || res.data.code === '00020004') {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',
@@ -260,7 +266,7 @@ export default {
         uniqueCode: '',
         hospitalId: data && data.hospitalId,
         type: 6,
-        isMatch:this.filter.match
+        isMatch: this.filter.match
       };
       return param;
     },
@@ -285,8 +291,8 @@ export default {
       //     hospitaiName: this.hospitaiName
       //   })
       // });
-      this.data={}
-      this.showModal()
+      this.data = {};
+      this.showModal();
     },
     // 修改诊断关联-跳转至编辑页面
     modifyRelation(row) {
@@ -306,8 +312,8 @@ export default {
       //     hospitaiName: this.hospitaiName
       //   })
       // });
-      this.data = item
-      this.showModal()
+      this.data = item;
+      this.showModal();
     },
     currentChange(next) {
       this.currentPage = next;
@@ -411,7 +417,11 @@ export default {
       })
         .then(() => {
           api
-            .exportOperationRecord({ hospitalId: this.hospitalId,type:6,isMatch:this.filter.match })
+            .exportOperationRecord({
+              hospitalId: this.hospitalId,
+              type: 6,
+              isMatch: this.filter.match
+            })
             .then(res => {
               if (res.status === 200) {
                 this.$message({ message: '导出成功', type: 'success' });
@@ -426,7 +436,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');
@@ -471,7 +481,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if ((res.data.data === true && res.status === 200)) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$alert(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 2 - 2
vue.config.js

@@ -1,6 +1,6 @@
 const path = require('path');
-// const proxy_path = 'http://192.168.2.241:88';
-const proxy_path = 'http://192.168.2.236:5050';
+const proxy_path = 'http://192.168.2.241:88';
+// const proxy_path = 'http://192.168.2.236:5050';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚
 // const proxy_path = 'http://192.168.3.113:5050'; //王峰