Explorar o código

添加是否匹配字段

wyq %!s(int64=3) %!d(string=hai) anos
pai
achega
3591676e5e

+ 1 - 1
src/api/index.js

@@ -3,7 +3,7 @@ import config from './config.js';
 
 axios.default.timeout = 500000;
 axios.defaults.headers.post['Content-Type'] = "application/json;charset=utf-8";
-// axios.defaults.baseURL = 'http://192.168.2.236:6060';
+axios.defaults.baseURL = 'http://192.168.2.236:6060';
 // axios.defaults.baseURL = 'http://192.168.2.241';
 // axios.defaults.baseURL = 'http://192.168.3.113:6060';
 

+ 32 - 6
src/components/common/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+'预览:'">
@@ -196,12 +198,14 @@ export default {
       mapList: [],
       getIndex: 6,
       ty: this.type,
-      searchType: 2
+      searchType: '',
+      title: '添加'
     };
   },
   created() {
     //修改
     if (JSON.stringify(this.data) != '{}') {
+      this.title = '编辑';
       this.isEdit = true;
       this.editId = this.data.id;
       this.form.hisName = this.data.hisName;
@@ -221,7 +225,8 @@ export default {
     selectedstyle({ row, rowIndex }) {
       if (this.getIndex === rowIndex) {
         return {
-          'background-color': '#EBEEF5'
+          'background-color': '#EBEEF5',
+          'color':'#48C5D7'
         };
       }
     },
@@ -330,12 +335,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;
@@ -593,6 +608,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/icss/dept/DeptManage.vue

@@ -42,6 +42,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>
@@ -74,6 +79,7 @@
       @func="getMsgFormSon"
       :meal="'科室名称'"
       :standard="'科室名称'"
+      :tip="'科室关联'"
       :type="7"
       :data="data"
     ></LtModal>
@@ -167,7 +173,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/icss/disease/ChemicalAndCommonMapping.vue

@@ -36,6 +36,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>
@@ -68,6 +73,7 @@
       @func="getMsgFormSon"
       :meal="'诊断名称'"
       :standard="'诊断名称'"
+      :tip="'诊断关联'"
       :type="4"
       :data="data"
     ></LtModal>
@@ -163,7 +169,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/icss/drug/DrugManage.vue

@@ -41,6 +41,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>
@@ -72,6 +77,7 @@
       @func="getMsgFormSon"
       :meal="'药品名称'"
       :standard="'药品名称'"
+      :tip="'药品关联'"
       :type="5"
       :data="data"
     ></LtModal>
@@ -159,7 +165,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/icss/fusion/Fusion.vue

@@ -40,6 +40,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>
@@ -71,6 +76,7 @@
       @func="getMsgFormSon"
       :meal="'输血类型'"
       :standard="'输血类型'"
+      :tip="'输血关联'"
       :type="8"
       :data="data"
     ></LtModal>
@@ -159,7 +165,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/icss/lis/Lis.vue

@@ -39,6 +39,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>
@@ -72,6 +77,7 @@
       :meal="'检验套餐'"
       :detail="'检验细项'"
       :standard="'检验标准术语'"
+      :tip="'检验关联'"
       :type="1"
       :data="data"
     ></LtModal>
@@ -161,7 +167,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/icss/nursing/nursing.vue

@@ -41,6 +41,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>
@@ -73,6 +78,7 @@
       @func="getMsgFormSon"
       :meal="'护理名称'"
       :standard="'护理名称'"
+      :tip="'护理关联'"
       :type="11"
       :data="data"
     ></LtModal>
@@ -167,7 +173,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/icss/operation/Operation.vue

@@ -45,6 +45,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>
@@ -77,6 +82,7 @@
       @func="getMsgFormSon"
       :meal="'手术/操作名称'"
       :standard="'手术/操作名称'"
+      :tip="'手术/操作关联'"
       :type="6"
       :data="data"
     ></LtModal>
@@ -165,7 +171,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/icss/pacs/Pacs.vue

@@ -40,6 +40,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>
@@ -72,6 +77,7 @@
       @func="getMsgFormSon"
       :meal="'检查项目'"
       :standard="'检查项目'"
+      :tip="'检查关联'"
       :type="3"
       :data="data"
     ></LtModal>
@@ -165,7 +171,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/icss/scale/ScaleManage.vue

@@ -35,6 +35,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>
@@ -67,6 +72,7 @@
       @func="getMsgFormSon"
       :meal="'量表名称'"
       :standard="'量表名称'"
+      :tip="'量表关联'"
       :type="10"
       :data="data"
     ></LtModal>
@@ -160,7 +166,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/icss/tcmdisease/tcmdisease.vue

@@ -42,6 +42,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>
@@ -75,6 +80,7 @@
       :meal="'中医疾病名称'"
       :standard="'中医疾病名称'"
       :detail="'中医疾病代码'"
+      :tip="'中医疾病关联'"
       :type="12"
       :data="data"
     ></LtModal>
@@ -169,7 +175,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/icss/tcmdrome/tcmdrome.vue

@@ -42,6 +42,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>
@@ -75,6 +80,7 @@
       :meal="'中医证候名称'"
       :standard="'中医证候名称'"
       :detail="'中医证候代码'"
+      :tip="'中医证候关联'"
       :type="13"
       :data="data"
     ></LtModal>
@@ -169,7 +175,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: '确定',