浏览代码

修改病例条目

zhangxc 5 年之前
父节点
当前提交
d7bcdff601

+ 3 - 1
src/api/config.js

@@ -293,7 +293,9 @@ export default {
       'getRecordByHospital':'/api/mrman/casesEntryHospital/getAllByHospital', //获取指定医院的病例条目 
       'updateRecordByHospital':'/api/mrman/casesEntryHospital/updateByHospital', //更新指定医院的病例条目 
       'delRecordItem':'/api/mrman/qcCasesEntry/deleteQcCasesEntry', //删除病例条目
-      'getRecordDetail':'/api/mrman/qcCasesEntry/getUpdateInfo' //获取病例详情
+      'getRecordDetail':'/api/mrman/qcCasesEntry/getUpdateInfo', //获取病例详情
+      'getInputcasesDetial':'/api/mrman/qcInputcases/getInputcasesDetial', //获取标注病例详情
+
   },
 	menuIconList: { //菜单对应图标
 		'YH-KZT': 'el-icon-menu',

+ 3 - 0
src/api/records.js

@@ -51,4 +51,7 @@ export default {
   getRecordDetail:(param) =>{ //获取病例详情
     return axios.post(urls.getRecordDetail,param);
   },
+  getInputcasesDetial:(param) =>{ //获取标注病例详情
+    return axios.post(urls.getInputcasesDetial,param);
+  }
 }

+ 32 - 5
src/components/recordInput/AddRecordItem.vue

@@ -54,9 +54,9 @@
                             <el-table-column
                               prop="name"
                               label="扣分值"
-                              width="240">
+                              width="120">
                                  <template slot-scope="scope">
-                                  <el-input  class="tipsMsg" v-model="scope.row.value" placeholder="请输入扣分值"></el-input>
+                                  <el-input  class="scoreInp" v-model="scope.row.value" placeholder="请输入扣分值"></el-input>
                                  </template>
                             </el-table-column>
                             <el-table-column
@@ -68,6 +68,15 @@
                                   <el-input class="tipsMsg" v-model="scope.row.tipMsg" placeholder="请输入提示语"></el-input>
                                  </template>
                             </el-table-column>
+                            <el-table-column
+                              prop="address"
+                              label="是否启用"
+                              width="120"
+                              show-overflow-tooltip>
+                               <template slot-scope="scope">
+                                   <el-checkbox v-model="scope.row.isUsed" :checked="scope.row.isUsed=='1'" :disabled="getIsUsed(scope.row)" true-label="1" false-label="0"></el-checkbox>
+                                </template>
+                            </el-table-column>
                           </el-table>
                       </div>
                          
@@ -147,6 +156,14 @@
         }
         })
         
+      },
+      getIsUsed(row){
+        if(this.multipleSelection.findIndex(it => it.hospitalId ==row.hospitalId) > -1){
+          return false
+        } else{
+           return true
+        }
+        
       },
       changeModule(val){
         this.form.itemCode = this.caseLIst.find(item => item.id === val).prefix
@@ -162,7 +179,8 @@
                 hospitalId: this.hospitalList[i].id,
                 hospitalName:  this.hospitalList[i].name,
                 value: '',
-                tipMsg:''
+                tipMsg:'',
+                isUsed: '0'
               })
             }
             for(let i = 0; i < this.selectHospital.length; i++){
@@ -170,6 +188,7 @@
               let item = tableData.find(item => item.hospitalName === selectItem.hospitalName)
               item.value = selectItem.score
               item.tipMsg = selectItem.msg
+              item.isUsed = selectItem.isUsed
               this.multipleSelection.push(item)
             }
             this.tableData = tableData
@@ -222,7 +241,7 @@
             })
             return
           }
-          
+          return
           let  casesEntryHospitals = []
           for(let i = 0; i < this.multipleSelection.length; i++){
             const item = this.multipleSelection[i]
@@ -364,13 +383,21 @@
             /deep/.el-table{
               min-width: 0;
             }
-            /deep/.tipsMsg{
+            /deep/.el-input.tipsMsg{
                 .el-input__inner{
                     width:200px;
                     height: 30px;
                     display: inline-block;
                 }
             }
+            /deep/.scoreInp.el-input{
+              width:50px;
+              .el-input__inner{
+                    width:50px;
+                    height: 30px;
+                    display: inline-block;
+                }
+            }
         
       }
   

+ 37 - 5
src/components/recordInput/ManageItemBatch.vue

@@ -69,20 +69,24 @@
                                     @selection-change="handleSelectionChange($event,item.remark)">
                                     <el-table-column
                                       type="selection"
+                                      width="60">
+                                    </el-table-column>
+                                     <el-table-column
+                                      label="条目编码"
+                                      prop="code"
                                       width="120">
                                     </el-table-column>
                                     <el-table-column
                                       label="条目名称"
                                       prop="name"
                                       width="240">
-                                    
                                     </el-table-column>
                                     <el-table-column
                                       prop=""
                                       label="扣分值"
-                                      width="240">
+                                      width="120">
                                         <template slot-scope="scope">
-                                          <el-input  class="tipsMsg" v-model="scope.row.score" placeholder="请输入扣分值"></el-input>
+                                          <el-input  class="scoreInp" v-model="scope.row.score" placeholder="请输入扣分值"></el-input>
                                         </template>
                                     </el-table-column>
                                     <el-table-column
@@ -94,6 +98,15 @@
                                           <el-input class="tipsMsg" v-model="scope.row.msg" placeholder="请输入提示语"></el-input>
                                         </template>
                                     </el-table-column>
+                                    <el-table-column
+                                    prop="address"
+                                    label="是否启用"
+                                    width="120"
+                                    show-overflow-tooltip>
+                                    <template slot-scope="scope">
+                                        <el-checkbox v-model="scope.row.isUsed" :checked="scope.row.isUsed == '1'" :disabled="getIsUsed(scope.row)" true-label="1" false-label="0"></el-checkbox>
+                                      </template>
+                                  </el-table-column>
                                   </el-table>
                                 </el-collapse-item>
                               </el-collapse>
@@ -185,6 +198,15 @@
       },
       handleSelectionChange(val,remark) {
         this.checkAllMap[remark] = val;
+      },
+      getIsUsed(row){
+        console.log('row', row)
+        // if(this.multipleSelection.findIndex(it => it.hospitalId ==row.hospitalId) > -1){
+        //   return false
+        // } else{
+        //    return true
+        // }
+        
       },
        handleChange(val) {
       },
@@ -258,6 +280,7 @@
                 let recordItem = caseItem.qcCasesEntry.find(item => item.id === checkedItem.casesEntryId)
                 recordItem.score = checkedItem.score
                 recordItem.msg = checkedItem.msg
+                recordItem.isUsed = checkedItem.isUsed
                 this.checkAllMap[caseItem.remark].push(recordItem)
               }
             }
@@ -299,7 +322,8 @@
               "modifier": this.modifier,
               "msg": value.msg,
               "remark": value.remark,
-              "score": value.score
+              "score": value.score,
+              "isUsed":value.isUsed
             }
             casesEntryHospitals.push(item)
           }
@@ -419,7 +443,7 @@
         .oper{
             text-align: right;
         }
-        /deep/.el-table td{
+        /deep/.el-table__row td:nth-child(3){
           text-align: left;
         }
         /deep/.el-input{
@@ -440,6 +464,14 @@
                 color: #000;
             }
         }
+        /deep/.scoreInp.el-input{
+              width:50px;
+              .el-input__inner{
+                    width:50px;
+                    height: 30px;
+                    display: inline-block;
+                }
+            }
       }
     }
     

+ 31 - 5
src/components/recordInput/RecordList.vue

@@ -145,6 +145,12 @@
               this.currentPage=this.inCurrentPage;
               this.inCurrentPage = undefined;
             }*/
+          }else{
+            this.$message({
+              message:result.msg,
+              type:'warning',
+              showClose: true
+            });
           }
         })
       },
@@ -153,11 +159,32 @@
         this.getDataList();
       },
       editRecord(row,isShow) {
-        this.$router.push({
-          name: 'AddRecordInput',
-         params: {isEdit: true, data: row}
-        });
+        const param = {
+          caseNumber:  row.caseNumber
+        }
        
+         const loading = this.$loading({
+          lock: true,
+          text: 'Loading',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
+         api.getInputcasesDetial(param).then((res) => {
+          loading.close();
+          if(res.data.code == '0') {
+            const data = res.data.data
+           this.$router.push({
+              name: 'AddRecordInput',
+              params: {isEdit: true, data: data[0]}
+            });
+            /*if(this.inCurrentPage!==undefined){
+              this.currentPage=this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }*/
+          }
+        })
+        
+
             
         // const pam = this.searched ? {
         //   /*currentPage: this.currentPage,
@@ -205,7 +232,6 @@
         }).catch(() => {});
       },
       showDelDialog(row){
-        console.log('row', row)
         const param = {
          textId: row.id 
         };