ソースを参照

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 年 前
コミット
2f425932ab
共有2 個のファイルを変更した23 個の追加6 個の削除を含む
  1. 21 4
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  2. 2 2
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue

+ 21 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue ファイルの表示

@@ -197,10 +197,14 @@
197 197
                         <el-table ref="multipleTableTwo" :height="multipleTableHeight != '' ? multipleTableHeight : '200'" :data="advices_template" border
198 198
                                   :row-style="{ color: '#303133' }"
199 199
                                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
200
-                                  highlight-current-row>
200
+                                  highlight-current-row
201
+                                  @select='selectTemplate'
202
+                                  @select-all="changeTemplateData"
203
+
204
+                        >
201 205
                           <el-table-column type="selection" width="40" align="center"></el-table-column>
202 206
                           <el-table-column prop="name" label="名称">
203
-                            <template slot-scope="scope">{{}}</template>
207
+                            <template slot-scope="scope">{{scope.row.name}}</template>
204 208
                           </el-table-column>
205 209
                           <!--<el-table-column label="规格" width="60">-->
206 210
                             <!--<template slot-scope="scope">33</template>-->
@@ -392,10 +396,18 @@
392 396
         diagnoses: [],
393 397
         diagnose:'',
394 398
         curTotal: 0,
395
-        prescription_id: 0
399
+        prescription_id: 0,
400
+        tempDrugs:[]
401
+
396 402
       }
397 403
     },
398 404
     methods: {
405
+      selectTemplate(selection, row){
406
+        this.tempDrugs = selection
407
+
408
+      },changeTemplateData(selection){
409
+        this.tempDrugs = selection
410
+      },
399 411
       stockInCount: function(row) {
400 412
         let total = 0;
401 413
         if(row.stock_in != null) {
@@ -1042,7 +1054,9 @@
1042 1054
           this.$message.error('该处方已经结算或者退费,无法继续添加药品或者项目')
1043 1055
           this.teamList = []
1044 1056
           this.curDrugs = []
1057
+          this.tempDrugs = []
1045 1058
           this.$refs.tables.clearSelection()
1059
+          this.$refs.multipleTableTwo.clearSelection()
1046 1060
           this.$refs.multipleTable.clearSelection()
1047 1061
           return
1048 1062
         }
@@ -1051,13 +1065,17 @@
1051 1065
           this.$message.error('改处方是药品,无法添加项目')
1052 1066
           this.teamList = []
1053 1067
           this.$refs.tables.clearSelection()
1068
+
1054 1069
           return
1055 1070
         }
1056 1071
 
1057 1072
         if (this.curStatus == 2 && this.rightTab == 1) {
1058 1073
           this.$message.error('改处方是项目,无法添加药品')
1059 1074
           this.curDrugs = []
1075
+          this.tempDrugs = []
1060 1076
           this.$refs.multipleTable.clearSelection()
1077
+          this.$refs.multipleTableTwo.clearSelection()
1078
+
1061 1079
           return
1062 1080
         }
1063 1081
 
@@ -1066,7 +1084,6 @@
1066 1084
             if (this.teamList[i].id == this.curPrescriptions.project[a].project_id) {
1067 1085
               this.$message.error('改处方存在相同的项目,无法添加相同的项目')
1068 1086
               return
1069
-
1070 1087
             }
1071 1088
           }
1072 1089
         }

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue ファイルの表示

@@ -54,8 +54,8 @@
54 54
               <el-button size="small" ref="button_six"   @click="open(6)">治疗单</el-button>
55 55
               <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
56 56
             </el-popover>
57
-            <el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>
58
-            <el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button>
57
+            <!--<el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>-->
58
+            <!--<el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button>-->
59 59
           </div>
60 60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
61 61
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>