Browse Source

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

csx 4 years ago
parent
commit
2f425932ab

+ 21 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

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

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

54
               <el-button size="small" ref="button_six"   @click="open(6)">治疗单</el-button>
54
               <el-button size="small" ref="button_six"   @click="open(6)">治疗单</el-button>
55
               <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
55
               <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
56
             </el-popover>
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
           </div>
59
           </div>
60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
61
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
61
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>