浏览代码

添加是否匹配字段

wyq 4 年之前
父节点
当前提交
f671f72432

+ 35 - 9
src/components/base/LtModal.vue

@@ -3,6 +3,7 @@
     <div class="cover"></div>
     <div class="modal-box">
       <div class="modal-title">
+        <span class="title-l">{{title}}{{tip}}</span>
         <a class="close" @click="closeModal()">×</a>
       </div>
       <div class="modal-body">
@@ -44,6 +45,7 @@
                       clearable
                       style="minWidth: 240px"
                       @input="onchange"
+                      @blur="onblur"
                     ></el-input>
                   </el-form-item>
                   <el-form-item :label="detail+'预览:'">
@@ -92,8 +94,8 @@
                       :row-style="selectedstyle"
                       :data="tableData"
                       @row-click="btn"
-                      size="mini"
                       class="tab"
+                      border
                     >
                       <el-table-column prop="name" :show-overflow-tooltip="true" label="词名"></el-table-column>
                       <el-table-column prop="address" :show-overflow-tooltip="true" label="来源">
@@ -169,7 +171,8 @@ export default {
     'standard',
     'type',
     'data',
-    'hospitalId'
+    'hospitalId',
+    'tip'
   ],
   data() {
     return {
@@ -203,12 +206,14 @@ export default {
       mapList: [],
       getIndex: 6,
       ty: this.type,
-      searchType: ''
+      searchType: '',
+      title: '添加'
     };
   },
   created() {
     //修改
     if (JSON.stringify(this.data) != '{}') {
+      this.title = '编辑';
       this.isEdit = true;
       this.editId = this.data.id;
       this.form.hisName = this.data.hisName;
@@ -228,7 +233,8 @@ export default {
     selectedstyle({ row, rowIndex }) {
       if (this.getIndex === rowIndex) {
         return {
-          'background-color': '#EBEEF5'
+          'background-color': '#ECF9FB',
+          'color':'#48C5D7'
         };
       }
     },
@@ -338,12 +344,22 @@ export default {
     // 获取焦点
     handleFocus() {},
     onblur() {
-      this.getTermMatching();
+      let type,name
+      if (this.type == 1) {
+        const { hisName, hisDetailName } = this.form;
+        type = 1; // 1-化验大项、2-化验小项
+        name = hisName
+        if (hisName !== '' && hisDetailName !== '') {
+          type = 2;
+          name = hisDetailName
+        }
+      }
+      this.getTermMatching(type,name);
     },
-    getTermMatching() {
+    getTermMatching(type,name) {
       let params = {
-        type: this.type,
-        inputStr: this.form.hisName
+        type: type ? type : this.type,
+        inputStr: name ? name :this.form.hisName
       };
       api.getTermMatching(params).then(res => {
         this.showDrop = false;
@@ -372,7 +388,6 @@ export default {
             this.warning('医院术语与标准术语类型不匹配,请修改');
             return;
           }
-
           // 当标准术语是细项时,医院术语套餐和细项均不能为空
           if (this.searchType === 2) {
             if (hisName === '') {
@@ -602,6 +617,17 @@ export default {
 .titleBox {
   padding: 0 0 10px 0px;
 }
+/deep/.el-table th{
+  background: #F7F7F7;
+}
+/deep/ .el-table td, .el-table th.is-leaf{
+  border-bottom:none
+}
+.title-l {
+  font-size: 14px;
+  line-height: 40px;
+  margin-left: 10px;
+}
 .title {
   width: 50%;
   float: left;

+ 7 - 1
src/components/cdssManage/dept/DeptManage.vue

@@ -45,6 +45,11 @@
         <el-table-column :resizable="false" prop="hisCode" label="医院科室编码" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="hisName" label="医院科室名称" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="uniqueName" label="标准科室名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -76,6 +81,7 @@
       @func="getMsgFormSon"
       :meal="'科室名称'"
       :standard="'科室名称'"
+      :tip="'科室关联'"
       :type="7"
       :hospitalId="hospitalId"
       :data="data"
@@ -178,7 +184,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataDeptVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/disease/Disease.vue

@@ -45,6 +45,11 @@
         <el-table-column :resizable="false" prop="hisName" label="医院诊断名称" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="code" label="ICD-10编码" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="uniqueName" label="标准诊断名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -76,6 +81,7 @@
       @func="getMsgFormSon"
       :meal="'诊断名称'"
       :standard="'诊断名称'"
+      :tip="'诊断关联'"
       :type="4"
       :hospitalId="hospitalId"
       :data="data"
@@ -177,7 +183,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataDiseaseVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/drug/DrugManage.vue

@@ -45,6 +45,11 @@
         <el-table-column :resizable="false" prop="hisName" label="医院药品名称" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="uniqueName" label="标准药品名称" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="form" label="药品剂型" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -77,6 +82,7 @@
       @func="getMsgFormSon"
       :meal="'药品名称'"
       :standard="'药品名称'"
+      :tip="'药品关联'"
       :type="5"
       :hospitalId="hospitalId"
       :data="data"
@@ -176,7 +182,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataDrugVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/fusion/Fusion.vue

@@ -44,6 +44,11 @@
         <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="uniqueName" label="标准输血类型" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -76,6 +81,7 @@
       @func="getMsgFormSon"
       :meal="'输血类型'"
       :standard="'输血类型'"
+      :tip="'输血关联'"
       :type="8"
       :hospitalId="hospitalId"
       :data="data"
@@ -175,7 +181,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataFusionVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 2 - 2
src/components/cdssManage/knowledge/AddKnowledge.vue

@@ -452,7 +452,7 @@ export default {
                         currentPage: numberpage
                       })
                     });
-                  } else if (res.data.code === '00020007') {
+                  } else if ((res.data.code === '00020007' || res.data.code === '00020004')) {
                     this.$message({
                       showClose: true,
                       message: res.data.msg,
@@ -494,7 +494,7 @@ export default {
                     currentPage: numberpage
                   })
                 });
-              } else if (res.data.code === '00020007') {
+              } else if ((res.data.code === '00020007' || res.data.code === '00020004')) {
                 this.$message({
                   showClose: true,
                   message: res.data.msg,

+ 7 - 1
src/components/cdssManage/lis/Lis.vue

@@ -48,6 +48,11 @@
         <el-table-column :resizable="false" prop="hisName" label="检验套餐" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="hisDetailName" label="检验细项" show-overflow-tooltip></el-table-column>
         <el-table-column :resizable="false" prop="uniqueName" label="标准检验项" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -80,6 +85,7 @@
       :meal="'检验套餐'"
       :detail="'检验细项'"
       :standard="'检验标准术语'"
+      :tip="'检验关联'"
       :type="1"
       :hospitalId="hospitalId"
       :data="data"
@@ -180,7 +186,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataLisVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/nursing/nursing.vue

@@ -44,6 +44,11 @@
         <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="uniqueName" label="标准护理名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -76,6 +81,7 @@
       @func="getMsgFormSon"
       :meal="'护理名称'"
       :standard="'护理名称'"
+      :tip="'护理关联'"
       :type="11"
       :hospitalId="hospitalId"
       :data="data"
@@ -175,7 +181,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataNurseVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/operation/Operation.vue

@@ -49,6 +49,11 @@
           label="标准手术/操作名称"
           show-overflow-tooltip
         ></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -81,6 +86,7 @@
       @func="getMsgFormSon"
       :meal="'手术/操作名称'"
       :standard="'手术/操作名称'"
+      :tip="'手术/操作关联'"
       :type="6"
       :hospitalId="hospitalId"
       :data="data"
@@ -180,7 +186,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataOperationVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/pacs/Pacs.vue

@@ -44,6 +44,11 @@
         <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="uniqueName" label="标准检查项目" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -76,6 +81,7 @@
       @func="getMsgFormSon"
       :meal="'检查项目'"
       :standard="'检查项目'"
+      :tip="'检查关联'"
       :type="3"
       :hospitalId="hospitalId"
       :data="data"
@@ -175,7 +181,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataPacsVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/scale/ScaleManage.vue

@@ -44,6 +44,11 @@
         <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="uniqueName" label="标准量表名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -76,6 +81,7 @@
       @func="getMsgFormSon"
       :meal="'量表名称'"
       :standard="'量表名称'"
+      :tip="'量表关联'"
       :type="10"
       :hospitalId="hospitalId"
       :data="data"
@@ -175,7 +181,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataScaleVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/tcmdisease/tcmdisease.vue

@@ -45,6 +45,11 @@
         <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" label="标准中医疾病名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -78,6 +83,7 @@
       :meal="'中医疾病名称'"
       :standard="'中医疾病名称'"
       :detail="'中医疾病代码'"
+      :tip="'中医疾病关联'"
       :type="12"
       :hospitalId="hospitalId"
       :data="data"
@@ -177,7 +183,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataTcmVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 7 - 1
src/components/cdssManage/tcmdrome/tcmdrome.vue

@@ -45,6 +45,11 @@
         <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" label="标准中医证候名称" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="状态">
+          <template slot-scope="scope">
+            <span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
+          </template>
+        </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
           <template slot-scope="scope">
             <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
@@ -77,6 +82,7 @@
       :meal="'中医证候名称'"
       :standard="'中医证候名称'"
       :detail="'中医证候代码'"
+      :tip="'中医证候关联'"
       :type="13"
       :hospitalId="hospitalId"
       :data="data"
@@ -177,7 +183,7 @@ export default {
         background: 'rgba(0, 0, 0, 0.7)'
       });
       api.dataTcmdromeVerify(formData, header).then(res => {
-        if (res.data.code === '00020007') {
+        if ((res.data.code === '00020007' || res.data.code === '00020004')) {
           loading.close();
           this.$alert(`${res.data.msg}`, '提示', {
             confirmButtonText: '确定',

+ 1 - 0
src/components/knowledgeExtra/KnowledgeAll.vue

@@ -120,6 +120,7 @@ export default {
           this.id = id
           this.showSearch = false
         }
+        this.list = []
         const loading = this.$loading({
           lock: true,
           text: 'Loading',