陈少旭 пре 8 месеци
родитељ
комит
8fc8cabc0a

+ 25 - 6
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Прегледај датотеку

@@ -39,7 +39,7 @@
39 39
           <div>{{ scope.row.spec }}</div>
40 40
         </template>
41 41
       </el-table-column>
42
-      
42
+
43 43
       <el-table-column align="center" prop="name" width="80" label="单次用量">
44 44
         <template slot-scope="scope">
45 45
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
@@ -74,12 +74,21 @@
74 74
         </template>
75 75
       </el-table-column>
76 76
 
77
-      <el-table-column align="center" prop="name" width="80" label="执行状态">
77
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id > 0 && schedule.id > 0">
78
+        <template slot-scope="scope">
79
+          <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
80
+        </template>
81
+      </el-table-column>
82
+
83
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id == 0 && schedule.id > 0">
78 84
         <template slot-scope="scope">
79 85
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
80 86
         </template>
81 87
       </el-table-column>
82 88
 
89
+
90
+
91
+
83 92
       <el-table-column align="center" prop="name" width="220" label="医保编码">
84 93
         <template slot-scope="scope">
85 94
           <div>{{ scope.row.code }}</div>
@@ -200,7 +209,7 @@
200 209
           >{{ scope.row.single_dose }}{{ scope.row.unit }}</template
201 210
         >
202 211
       </el-table-column>
203
-      
212
+
204 213
       <el-table-column
205 214
         align="center"
206 215
         prop="delivery_way"
@@ -235,24 +244,32 @@
235 244
           <div>{{ scope.row.total }} {{ scope.row.unit }}</div>
236 245
         </template>
237 246
       </el-table-column>
238
-      
247
+
239 248
       <el-table-column align="center" prop="name" width="50" label="单价">
240 249
         <template slot-scope="scope">{{ scope.row.price }}元</template>
241 250
       </el-table-column>
242 251
 
243
-      <el-table-column align="center" prop="name" width="80" label="执行状态">
252
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id > 0 && schedule.id > 0">
244 253
         <template slot-scope="scope">
245 254
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
246 255
         </template>
247 256
       </el-table-column>
248 257
 
258
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id == 0 && schedule.id > 0">
259
+        <template slot-scope="scope">
260
+          <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
261
+        </template>
262
+      </el-table-column>
263
+
264
+
265
+
249 266
       <el-table-column align="center" prop="name" width="220" label="医保编码">
250 267
         <template slot-scope="scope">
251 268
           <div>{{ scope.row.medical_code }}</div>
252 269
         </template>
253 270
       </el-table-column>
254 271
 
255
-      
272
+
256 273
 
257 274
       <el-table-column align="center" prop="name" width="60" label="金额">
258 275
         <template slot-scope="scope">
@@ -339,6 +356,8 @@ import { getDictionaryDataConfig } from "@/utils/data";
339 356
 export default {
340 357
   props: {
341 358
     prescription: Object,
359
+    his_patient: Object,
360
+    schedule: Object,
342 361
     manufacturers: Array,
343 362
   },
344 363
   data() {

+ 12 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

@@ -263,6 +263,8 @@
263 263
                           </el-tab-pane>
264 264
                             <prescription-table ref="prescription_tables"
265 265
                                               :prescription="items.curPrescriptions"
266
+                                                :schedule="schedule"
267
+                                                :his_patient="hisPatientInfo"
266 268
                                               :manufacturers="manufacturers"></prescription-table>
267 269
 
268 270
                         </el-tabs>
@@ -1202,6 +1204,7 @@ export default {
1202 1204
       }],
1203 1205
       tabIndex: 1,
1204 1206
       hisPatientInfo: {},
1207
+      schedule:{},
1205 1208
       loadingtwo: false,
1206 1209
       patientTableData: [{}],
1207 1210
       patientInfo: { id: 0 },
@@ -1968,6 +1971,8 @@ export default {
1968 1971
           this.hisPatientInfo = response.data.data.his_info
1969 1972
           this.info = response.data.data.info
1970 1973
           this.order = response.data.data.order
1974
+          this.schedule = response.data.data.sch
1975
+
1971 1976
 
1972 1977
           this.addtions_charge = response.data.data.addtions_charge
1973 1978
 
@@ -2810,10 +2815,10 @@ export default {
2810 2815
             this.big_month_prescriptions[b].curMonthPrescriptions = temp
2811 2816
             this.big_month_prescriptions[b].month_total = this.getMonthTotalTwo(temp)
2812 2817
           }
2813
-          
2818
+
2814 2819
         }
2815 2820
       }
2816
-     
2821
+
2817 2822
     },
2818 2823
     tabclickEventThree(val) {
2819 2824
       for (let i = 0; i < this.big_prescriptions_two.length; i++) {
@@ -5333,8 +5338,8 @@ export default {
5333 5338
           for(let j in month_prescriptions[i].advices){
5334 5339
             const obj ={
5335 5340
               drug_id: month_prescriptions[i].advices[j].drug_id,
5336
-              spec:month_prescriptions[i].advices[j].drug.dose + month_prescriptions[i].advices[j].drug.dose_unit + '*' + 
5337
-              month_prescriptions[i].advices[j].drug.min_number + month_prescriptions[i].advices[j].drug.min_unit + '/' + 
5341
+              spec:month_prescriptions[i].advices[j].drug.dose + month_prescriptions[i].advices[j].drug.dose_unit + '*' +
5342
+              month_prescriptions[i].advices[j].drug.min_number + month_prescriptions[i].advices[j].drug.min_unit + '/' +
5338 5343
               month_prescriptions[i].advices[j].drug.max_unit
5339 5344
             }
5340 5345
             advices2.push(obj)
@@ -5552,8 +5557,8 @@ export default {
5552 5557
           }
5553 5558
         }
5554 5559
       }
5555
-      
5556
-        
5560
+
5561
+
5557 5562
       console.log('kkkkk',big_prescriptions[0].curMonthPrescriptions);
5558 5563
       if (this.big_month_prescriptions.length > 0) {
5559 5564
         this.editableTabsValue = this.big_month_prescriptions[0].curMonthPrescriptions.name
@@ -5785,6 +5790,7 @@ export default {
5785 5790
             this.hisPatientInfo = response.data.data.his_info
5786 5791
             this.info = response.data.data.info
5787 5792
             this.order = response.data.data.order
5793
+            this.schedule = response.data.data.sch
5788 5794
             this.p_type = ''
5789 5795
             this.sick_type = ''
5790 5796
             this.diagnosis = []