Browse Source

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

28169 9 months ago
parent
commit
2728dc39b7

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue View File

@@ -413,7 +413,7 @@
413 413
                         </div>
414 414
                       </div>
415 415
 
416
-                     
416
+
417 417
                       <div
418 418
                         class="inline_block"
419 419
                         style="margin-left: 10px; flex: 1"
@@ -958,7 +958,7 @@
958 958
                               : "/"
959 959
                           }}
960 960
                         </span>
961
-                        
961
+
962 962
                         </div>
963 963
                          <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id==10460">ml</span>
964 964
                          <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471 && org_id!=10460">L</span>
@@ -1442,7 +1442,7 @@
1442 1442
                                 ? monitor_record.diastolic_blood_pressure
1443 1443
                                 : "拒测"
1444 1444
                             }}
1445
-                            </span> 
1445
+                            </span>
1446 1446
                           </td>
1447 1447
                           <td>
1448 1448
                             <span v-if="monitor_record.operate_time>0">
@@ -1765,7 +1765,7 @@
1765 1765
                           </td>
1766 1766
                           <td style="font-size: 16px" width="10%">时间</td>
1767 1767
                           <td style="font-size: 16px" width="10%">医生签名</td>
1768
-                        
1768
+
1769 1769
                           <td style="font-size: 16px" width="10%">
1770 1770
                             执行人签名
1771 1771
                           </td>
@@ -1856,7 +1856,7 @@
1856 1856
                               />
1857 1857
                             </td>
1858 1858
 
1859
-                          
1859
+
1860 1860
 
1861 1861
                             <td height="35px">
1862 1862
                               <span

+ 6 - 3
src/xt_pages/outpatientCharges/allListPrint.vue View File

@@ -13,11 +13,12 @@
13 13
     </template>
14 14
 <!--  -->
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489  " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
16
+      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=10644 && org_id !=0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17 17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18 18
       <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19 19
       <printthree  v-if="org_id == 10489" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
20
-<!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
20
+      <printFour v-if="org_id == 10644 || org_id == 0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printFour>
21
+      <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
21 22
     </div>
22 23
   </div>
23 24
 </template>
@@ -30,6 +31,7 @@
30 31
   import SummaryPrint from './allListTemplate/summaryPrint'
31 32
   import printTwo from './allListTemplate/printTwo'
32 33
   import printthree from './allListTemplate/printthree'
34
+  import printFour from './allListTemplate/printFour'
33 35
   export default {
34 36
     name: 'allListPrint',
35 37
     components: {
@@ -37,7 +39,8 @@
37 39
       ListPrintTwo,
38 40
       printOne,
39 41
       printTwo,
40
-      printthree
42
+      printthree,
43
+      printFour
41 44
     },
42 45
     props: {
43 46
       paramsObj: Object

+ 223 - 0
src/xt_pages/outpatientCharges/allListTemplate/printFour.vue View File

@@ -0,0 +1,223 @@
1
+<template>
2
+  <div id="allList-print" class="allList-print">
3
+    <div v-for='(i,index) in pageArr.length' :key="index">
4
+      <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
5
+      <div class="allListInfo">
6
+        <div>患者姓名:{{ patient.name }}</div>
7
+        <div>透析号:{{ patient.dialysis_no }}</div>
8
+        <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
9
+        <div>年龄:{{ patient.age }} 岁</div>
10
+        <div >开方日期:{{ getTimes(order.settle_accounts_date) }}
11
+          <!-- {{ hospital.in_hosptial_time }} 至
12
+          {{ hospital.out_hosptial_time }} -->
13
+        </div>
14
+        <!-- <div v-else>日期:{{ getTimes(order.settle_start_time) }} 至 {{ getTimes(order.settle_end_time) }}</div> -->
15
+      </div>
16
+      <table class="allListTable" border="1">
17
+        <tr>
18
+          <td style="width:8%">类别</td>
19
+          <td style="width:35%">项目名称</td>
20
+          <td style="width:19%">规格</td>
21
+          <td style="width:8%">单价(元)</td>
22
+          <td style="width:8%">数量</td>
23
+          <td style="width:8%">金额(元)</td>
24
+          <!-- <td style="width:10%" v-if="org_id==10489 ||org_id==0">报销等级</td> -->
25
+        </tr>
26
+        <!-- list.slice(index * 13,(index * 13) + pageArr[index]) -->
27
+        <template v-for='item in list.slice(index * 27,(index * 27) + pageArr[index])'>
28
+          <tr v-if="item.is_total == 2">
29
+            <td style="">{{ item.med_chrgitm_type }}</td>
30
+            <td style="">{{ item.name }}</td>
31
+            <td style="">{{ item.spec }}</td>
32
+            <td style="">{{ (item.price).toFixed(2) }}</td>
33
+            <td style="">{{ item.count }}{{ item.unit }}</td>
34
+            <td style="">{{ (item.price * item.count).toFixed(2) }}</td>
35
+            <!-- <td style="width:10%" v-if="org_id==10489 ||org_id==0">
36
+              {{item.chrgitm_lv!=''?getMedicineInsuranceType(item.chrgitm_lv): '丙类' }}
37
+            </td> -->
38
+          </tr>
39
+          <tr>
40
+            <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
41
+          </tr>
42
+        </template>
43
+      </table>
44
+      <div class="tableBottom">
45
+        <div class="tableBottomOne">制表人:{{ admin.user_name }}</div>
46
+        <div class="tableBottomOne">制表日期:{{ getNowTime() }}</div>
47
+        <div class="tableBottomOne">总费用:{{ order.medfee_sumamt }}元</div>
48
+      </div>
49
+    </div>
50
+  </div>
51
+</template>
52
+
53
+<script>
54
+import { uParseTime } from '@/utils/tools'
55
+
56
+export default {
57
+  props: {
58
+    list: {
59
+      type: Array,
60
+      default: function() {
61
+        return []
62
+      }
63
+    }, patient: {
64
+      type: Object,
65
+      default: function() {
66
+        return {}
67
+      }
68
+    }, order: {
69
+      type: Object,
70
+      default: function() {
71
+        return {}
72
+      }
73
+    }, admin: {
74
+      type: Object,
75
+      default: function() {
76
+        return {}
77
+      }
78
+    }, hospital: {
79
+      type: Object,
80
+      default: function() {
81
+        return {}
82
+      }
83
+
84
+    }
85
+  },
86
+  data() {
87
+    return {
88
+      page: 1,
89
+      pageArr: [],
90
+      org_id:'',
91
+    }
92
+  },
93
+  methods: {
94
+    getNowTime: function() {
95
+      let dateTime
96
+      let yy = new Date().getFullYear()
97
+      let mm = new Date().getMonth() + 1
98
+      let dd = new Date().getDate()
99
+      let hh = new Date().getHours()
100
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
101
+          :
102
+          new Date().getMinutes()
103
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
104
+          :
105
+          new Date().getSeconds()
106
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
107
+      return dateTime
108
+    },
109
+    getTimes(time) {
110
+      return uParseTime(time, '{y}-{m}-{d}')
111
+    }, getTotal: function(items) {
112
+      let total = 0
113
+      for (let i = 0; i < items.length; i++) {
114
+        total = total + (items[i].count * items[i].price).toFixed(2)
115
+      }
116
+      return total
117
+
118
+    },
119
+    getPage() {
120
+     
121
+      if (this.list.length <= 27) {
122
+        this.page = 1
123
+        this.pageArr.push(this.list.length)
124
+      } else if (this.list.length > 27) {
125
+        this.page = parseInt(this.list.length / 27)
126
+        let num = this.list.length % 27
127
+        for (var i = 0; i < this.page; i++) {
128
+          this.pageArr.push(27)
129
+        }
130
+        if (num != 0) {
131
+          this.pageArr.push(num)
132
+        }
133
+      }
134
+    },
135
+    getMedicineInsuranceType(type) {
136
+      switch (type) {
137
+        case "01":
138
+          return '甲类'
139
+          break
140
+        case "02":
141
+          return '乙类'
142
+
143
+          break
144
+        case "03":
145
+          return '自费'
146
+          break
147
+
148
+      }
149
+
150
+    },
151
+    // 日期转时间戳
152
+    gettime(val){
153
+      const date = Date.parse(val)
154
+      return this.getTimes(date)
155
+    }
156
+  },
157
+  created(){
158
+    this.org_id = this.$store.getters.xt_user.org_id
159
+    console.log('hospital',this.hospital);
160
+    console.log('order',this.order);
161
+    console.log('kkkkkk',this.list);
162
+  },
163
+  watch: {
164
+    list: {
165
+      handler(newVal) {
166
+        // this.list
167
+        this.getPage()
168
+      },
169
+      deep: true
170
+    }
171
+  }
172
+}
173
+
174
+
175
+</script>
176
+
177
+<style lang="scss" scoped>
178
+.allList-print {
179
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
180
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
181
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
182
+  margin-bottom: 20px;
183
+  padding: 20px 10px;
184
+}
185
+
186
+.allListTitle {
187
+  font-size: 22px;
188
+  text-align: center;
189
+  font-weight: bold;
190
+  margin-bottom: 10px;
191
+}
192
+
193
+.allListInfo {
194
+  display: flex;
195
+  font-size: 14px;
196
+  justify-content: space-between;
197
+  margin: 10px 0;
198
+}
199
+
200
+.allListTable {
201
+  width: 100%;
202
+  text-align: center;
203
+  border-collapse: collapse;
204
+  line-height: 20px;
205
+  font-size: 12px;
206
+  border-color: #000;
207
+  text-align: left;
208
+}
209
+
210
+.allListTable tr td {
211
+  padding: 0 5px;
212
+}
213
+
214
+.tableBottom {
215
+  font-size: 14px;
216
+  display: flex;
217
+  margin-top: 20px;
218
+}
219
+
220
+.tableBottomOne {
221
+  margin-right: 40px;
222
+}
223
+</style>

+ 12 - 2
src/xt_pages/outpatientCharges/components/chargeMonthPrescriptionTable.vue View File

@@ -7,7 +7,12 @@
7 7
       <el-table-column align="center" prop="name" label="名称">
8 8
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
9 9
       </el-table-column>
10
-
10
+      <el-table-column align="center" prop="name" width="90" label="规格/型号">
11
+        <template slot-scope="scope">
12
+          <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
13
+          <div>{{scope.row.spec}}</div>
14
+        </template>
15
+      </el-table-column>
11 16
       <el-table-column align="center" prop="name" width="90" label="单次用量">
12 17
         <template slot-scope="scope">
13 18
           <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
@@ -60,6 +65,9 @@
60 65
       <el-table-column align="center" prop="project_name" label="名称">
61 66
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
62 67
       </el-table-column>
68
+      <el-table-column align="center" prop="project_name" label="规格">
69
+        <template slot-scope="scope">{{ scope.row.project_name }}</template>
70
+      </el-table-column>
63 71
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
64 72
         <template slot-scope="scope">{{scope.row.type == 2?getGroup(scope.row.statistical_classification):"耗材"}}</template>
65 73
       </el-table-column>
@@ -71,7 +79,6 @@
71 79
         <template slot-scope="scope">
72 80
           <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
73 81
           {{scope.row.delivery_way}}
74
-
75 82
         </template>
76 83
       </el-table-column>
77 84
       <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
@@ -168,6 +175,9 @@
168 175
       },
169 176
 
170 177
 
178
+    },
179
+    created(){
180
+      console.log('prescription1111',this.prescription);
171 181
     }
172 182
   }
173 183
 </script>

+ 15 - 1
src/xt_pages/outpatientCharges/components/dayPrescriptionTable.vue View File

@@ -6,7 +6,13 @@
6 6
       <el-table-column align="center" prop="drug_name" label="名称">
7 7
         <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8 8
       </el-table-column>
9
-
9
+      <el-table-column align="center" prop="drug_name" label="规格">
10
+          <template slot-scope="scope">
11
+            <span>
12
+              {{ scope.row.drug.dose }}{{ scope.row.drug.dose_unit }}*{{ scope.row.drug.min_number }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
13
+            </span>
14
+          </template>
15
+      </el-table-column>
10 16
       <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
11 17
         <template slot-scope="scope">
12 18
           <div style="display:flex;align-items:center;">
@@ -81,6 +87,11 @@
81 87
       <el-table-column align="center" prop="project_name" label="名称">
82 88
         <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
83 89
       </el-table-column>
90
+      <el-table-column align="center" prop="project_name" label="规格">
91
+          <template slot-scope="scope">
92
+            <span>{{ scope.row.project_name }}</span>
93
+          </template>
94
+      </el-table-column>
84 95
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
85 96
         <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
86 97
       </el-table-column>
@@ -376,6 +387,9 @@
376 387
     },mounted(){
377 388
       this.getInitData()
378 389
     },
390
+    created(){
391
+      console.log('111111',this.prescription);
392
+    }
379 393
   }
380 394
 </script>
381 395
 

+ 12 - 0
src/xt_pages/outpatientCharges/components/monthPrescriptionTable.vue View File

@@ -6,6 +6,13 @@
6 6
       <el-table-column align="center" prop="drug_name" label="名称">
7 7
         <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8 8
       </el-table-column>
9
+      <el-table-column align="center" prop="drug_name" label="规格">
10
+          <template slot-scope="scope">
11
+            <span>
12
+              {{ scope.row.drug.dose }}{{ scope.row.drug.dose_unit }}*{{ scope.row.drug.min_number }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
13
+            </span>
14
+          </template>
15
+      </el-table-column>
9 16
       <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
10 17
         <template slot-scope="scope">
11 18
           <div style="display:flex;align-items:center;">
@@ -78,6 +85,11 @@
78 85
       <el-table-column align="center" prop="project_name" label="名称">
79 86
         <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
80 87
       </el-table-column>
88
+      <el-table-column align="center" prop="project_name" label="规格">
89
+          <template slot-scope="scope">
90
+            <span>{{ scope.row.project_name }}</span>
91
+          </template>
92
+      </el-table-column>
81 93
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
82 94
         <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
83 95
       </el-table-column>

+ 4 - 2
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -34,7 +34,6 @@
34 34
           }}</span></template
35 35
         >
36 36
       </el-table-column>
37
-
38 37
       <el-table-column align="center" prop="name" width="80" label="单次用量">
39 38
         <template slot-scope="scope">
40 39
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
@@ -380,7 +379,7 @@ export default {
380 379
         "system",
381 380
         "statistics_category"
382 381
       );
383
-      console.log("2235", statistics_category);
382
+      // console.log("2235", statistics_category);
384 383
       for (let i = 0; i < statistics_category.length; i++) {
385 384
         if (id == statistics_category[i].id) {
386 385
           name = statistics_category[i].name;
@@ -396,6 +395,9 @@ export default {
396 395
         // table加ref="multipleTable"
397 396
       })
398 397
     }
398
+  },
399
+  created(){
400
+    console.log('prescription',this.prescription);
399 401
   }
400 402
 };
401 403
 </script>

+ 52 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -505,8 +505,6 @@
505 505
                           <charge-month-prescription-table
506 506
                             :prescription="items.curMonthPrescriptions"></charge-month-prescription-table>
507 507
                         </el-tabs>
508
-
509
-
510 508
                       </div>
511 509
                       <div class="costBox">
512 510
                                           <span>当前处方总费用:<span
@@ -1250,8 +1248,8 @@ export default {
1250 1248
       temp_ids: '',
1251 1249
 
1252 1250
       other_prescriptions: [],
1253
-      newLoading: false
1254
-
1251
+      newLoading: false,
1252
+      advices2:[]
1255 1253
     }
1256 1254
   },
1257 1255
   created() {
@@ -2772,7 +2770,7 @@ export default {
2772 2770
       if (this.search_input.length == 0) {
2773 2771
         this.patientTableData = this.all_patient
2774 2772
       } else {
2775
-        console.log('6666666',all_patient);
2773
+
2776 2774
         let arr = []
2777 2775
         for (let i = 0; i < all_patient.length; i++) {
2778 2776
           if(all_patient[i].first_letter != 'undefined'){
@@ -2793,20 +2791,29 @@ export default {
2793 2791
 
2794 2792
       }
2795 2793
     },
2794
+    // 标签页选中
2796 2795
     tabclickEventTwo(val) {
2796
+      console.log('val',val.name,this.big_month_prescriptions)
2797 2797
       for (let b = 0; b < this.big_month_prescriptions.length; b++) {
2798 2798
         for (let i = 0; i < this.big_month_prescriptions[b].month_prescriptions.length; i++) {
2799 2799
           if (this.big_month_prescriptions[b].month_prescriptions[i].name == val.name) {
2800 2800
             this.big_month_prescriptions[b].curMonthPrescriptions = {}
2801
+            const advicearr = this.big_month_prescriptions[b].month_prescriptions[i].advices
2802
+            for(let x in this.advices2){
2803
+              for(let s in advicearr){
2804
+                if(this.advices2[x].drug_id == advicearr[s].id){
2805
+                  advicearr[s]['spec'] = this.advices2[x].spec
2806
+                }
2807
+              }
2808
+            }
2801 2809
             var temp = this.deepClone(this.big_month_prescriptions[b].month_prescriptions[i])
2802 2810
             this.big_month_prescriptions[b].curMonthPrescriptions = temp
2803 2811
             this.big_month_prescriptions[b].month_total = this.getMonthTotalTwo(temp)
2804 2812
           }
2813
+          
2805 2814
         }
2806 2815
       }
2807
-      // this.prescription_id = this.month_prescriptions.id
2808
-      // this.month_total = 0
2809
-
2816
+     
2810 2817
     },
2811 2818
     tabclickEventThree(val) {
2812 2819
       for (let i = 0; i < this.big_prescriptions_two.length; i++) {
@@ -2839,6 +2846,7 @@ export default {
2839 2846
 
2840 2847
     },
2841 2848
     deepClone(source) {
2849
+      // console.log('source',source);
2842 2850
       if (!source && typeof source !== 'object') {
2843 2851
         throw new Error('error arguments', 'shallowClone')
2844 2852
       }
@@ -5307,16 +5315,34 @@ export default {
5307 5315
         }
5308 5316
       })
5309 5317
     },
5310
-
5318
+    // 月结数据
5311 5319
     setMonthPrescription(month_prescriptions) {
5320
+      console.log('vvvvvv',month_prescriptions);
5312 5321
       let big_prescriptions = []
5313 5322
       for (let i = 0; i < this.unique_three(month_prescriptions).length; i++) {
5314 5323
         let obj = {
5315 5324
           med_type: this.unique_three(month_prescriptions)[i].med_type,
5316 5325
           prescriptions: []
5317 5326
         }
5327
+        console.log('333333',obj);
5318 5328
         big_prescriptions.push(obj)
5319 5329
       }
5330
+      const advices2 = []
5331
+      for(let i in month_prescriptions){
5332
+        if(month_prescriptions[i].advices.length>0){
5333
+          for(let j in month_prescriptions[i].advices){
5334
+            const obj ={
5335
+              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 + '/' + 
5338
+              month_prescriptions[i].advices[j].drug.max_unit
5339
+            }
5340
+            advices2.push(obj)
5341
+          }
5342
+        }
5343
+      }
5344
+      this.advices2 = advices2
5345
+      console.log('5555555',advices2);
5320 5346
 
5321 5347
       this.month_prescriptions = []
5322 5348
 
@@ -5392,8 +5418,6 @@ export default {
5392 5418
         }
5393 5419
       }
5394 5420
 
5395
-      //
5396
-      //
5397 5421
       for (let y = 0; y < big_prescriptions.length; y++) {
5398 5422
         let drug_ids = this.unique_two(big_prescriptions[y].drug_ids)
5399 5423
         let project_ids = this.unique_two(big_prescriptions[y].project_ids)
@@ -5482,7 +5506,7 @@ export default {
5482 5506
         //     additions.push(obj)
5483 5507
         //   }
5484 5508
         // }
5485
-        console.log('ids==')
5509
+        // console.log('ids==',big_prescriptions[y].curMonthPrescriptions)
5486 5510
         console.log(drug_prescriptions_ids)
5487 5511
         console.log(project_prescriptions_ids)
5488 5512
 
@@ -5507,8 +5531,10 @@ export default {
5507 5531
         big_prescriptions[y]['month_prescriptions'].push(p1)
5508 5532
         big_prescriptions[y]['month_prescriptions'].push(p2)
5509 5533
       }
5534
+      console.log('bbbbbbbb',big_prescriptions)
5510 5535
       this.big_month_prescriptions = big_prescriptions
5511
-      console.log(this.big_month_prescriptions)
5536
+      console.log('月结this.big_month_prescriptions',this.big_month_prescriptions)
5537
+
5512 5538
 
5513 5539
       for (let i = 0; i < this.big_month_prescriptions.length; i++) {
5514 5540
         if (this.big_month_prescriptions[i].month_prescriptions.length > 0) {
@@ -5516,8 +5542,19 @@ export default {
5516 5542
         } else {
5517 5543
           this.big_month_prescriptions[i]['curMonthPrescriptions'] = {}
5518 5544
         }
5545
+        const advicearr = this.big_month_prescriptions[i].curMonthPrescriptions.advices
5519 5546
         this.big_month_prescriptions[i]['month_total'] = this.getMonthTotalTwo(this.big_month_prescriptions[i].month_prescriptions[0])
5547
+        for(let x in advices2){
5548
+          for(let s in advicearr){
5549
+            if(advices2[x].drug_id == advicearr[s].id){
5550
+              advicearr[s]['spec'] = advices2[x].spec
5551
+            }
5552
+          }
5553
+        }
5520 5554
       }
5555
+      
5556
+        
5557
+      console.log('kkkkk',big_prescriptions[0].curMonthPrescriptions);
5521 5558
       if (this.big_month_prescriptions.length > 0) {
5522 5559
         this.editableTabsValue = this.big_month_prescriptions[0].curMonthPrescriptions.name
5523 5560
       }
@@ -5736,6 +5773,7 @@ export default {
5736 5773
             this.$message.error(response.data.msg)
5737 5774
             return false
5738 5775
           } else {
5776
+            console.log('111111日结',response.data.data);
5739 5777
             this.prescriptions = []
5740 5778
             this.month_prescriptions = []
5741 5779
             this.big_month_prescriptions = []
@@ -5978,6 +6016,7 @@ export default {
5978 6016
             this.$message.error(response.data.msg)
5979 6017
             return false
5980 6018
           } else {
6019
+            console.log('22222月结',response.data.data);
5981 6020
             this.prescriptions = []
5982 6021
             this.month_prescriptions = []
5983 6022
             this.big_month_prescriptions = []

+ 16 - 5
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -16,7 +16,13 @@
16 16
                 </template>
17 17
             </el-table-column>
18 18
 
19
-
19
+            <el-table-column align="center" prop="drug_name" label="规格">
20
+                <template slot-scope="scope">
21
+                  <span>
22
+                    {{ scope.row.drug.dose }}{{ scope.row.drug.dose_unit }}*{{ scope.row.drug.min_number }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
23
+                  </span>
24
+                </template>
25
+            </el-table-column>
20 26
             <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
21 27
                 <template slot-scope="scope">
22 28
                     <div style="display:flex;align-items:center;">
@@ -149,6 +155,11 @@
149 155
 
150 156
                 </template>
151 157
             </el-table-column>
158
+            <el-table-column align="center" prop="project_name" label="规格">
159
+                <template slot-scope="scope">
160
+                  <span>{{ scope.row.project_name }}</span>
161
+                </template>
162
+            </el-table-column>
152 163
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
153 164
                 <template slot-scope="scope">{{scope.row.statistical_classification}}
154 165
                 </template>
@@ -361,10 +372,10 @@
361 372
         })
362 373
 
363 374
       }, deleteDrug: function(index, row) {
364
-        // if (this.prescription.is_medicine_status){
365
-        //   this.$message.error('该处方包含已发药的药品,无法删除')
366
-        //   return
367
-        // }
375
+        if (this.prescription.is_medicine_status){
376
+          this.$message.error('该处方包含已发药的药品,无法删除')
377
+          return
378
+        }
368 379
         if (this.prescription.order_status == 2 ||  this.prescription.order_status ==5) {
369 380
           this.$message.error('该处方已经结算或记账,无法删除')
370 381
           return

+ 13 - 10
src/xt_pages/outpatientDoctorStation/template/printTwoteen.vue View File

@@ -19,12 +19,13 @@
19 19
             prescriptions[index].med_type != '1112'
20 20
           "
21 21
         >
22
-          {{ orgname }}处方笺
22
+          <!-- {{ orgname }} -->
23
+          处方笺
23 24
         </div>
24
-        <div class="printTitle" v-else>
25
-          <span>{{ orgname }}处方笺</span>
26
-          <span style="font-size: 14px;font-weight: normal;color: red;" 
27
-            v-if="prescriptions[index].med_type == '1112'">(精)</span>
25
+        <div class="printTitle" v-else >
26
+          <span style="display: inline-block;">处方笺</span>
27
+          <span style="font-size: 14px;display: inline-block;border: 1px solid black;padding: 5px;border-radius: 5px;"
28
+            v-if="prescriptions[index].med_type == '1112'">精二处方</span>
28 29
         </div>
29 30
         <div >
30 31
           <div class="">
@@ -128,6 +129,7 @@
128 129
               </div>
129 130
             </template>
130 131
             <div style="position: relative;">
132
+              <!-- 有子母药 -->
131 133
               <div v-if="it.arr !== undefined">
132 134
                 <div class="drugsOne" :style="{'border-right':it.arr.length>0 ? '1px solid black': 'none','width':'80%'}">
133 135
                   <span style="font-weight: bold" >
@@ -187,6 +189,7 @@
187 189
                     </div>
188 190
                 </template>
189 191
               </div>
192
+              <!-- 没有子母药 -->
190 193
               <div v-if="it.arr === undefined">
191 194
                 <div class="drugsOne" >
192 195
                   <span style="font-weight: bold" >
@@ -197,7 +200,7 @@
197 200
                     {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
198 201
                     {{it.drug.max_unit}}
199 202
                   </span>&nbsp;
200
-                  
203
+
201 204
                   <div style="margin-left: 70px" >
202 205
                     <template>
203 206
                         用法:
@@ -235,8 +238,8 @@
235 238
                 <div class="actionBar">
236 239
                   <p>审核:</p>
237 240
                   <p>配对:</p>
238
-                  <p>核对:</p>
239
-                  <p>发药:</p>
241
+                  <p>核对、发药:</p>
242
+                  <!-- <p>发药:</p> -->
240 243
                   <p>
241 244
                     药费:{{
242 245
                       getTotalOne(item.id).toFixed(2)
@@ -308,8 +311,8 @@
308 311
         <div class="actionBar">
309 312
           <p>审核:</p>
310 313
           <p>配对:</p>
311
-          <p>核对:</p>
312
-          <p>发药:</p>
314
+          <p>核对、发药:</p>
315
+          <!-- <p>发药:</p> -->
313 316
           <p>
314 317
             药费:{{
315 318
               getTotalOne(item.id).toFixed(2)

+ 9 - 9
src/xt_pages/outpatientTool/detailPrint.vue View File

@@ -157,15 +157,15 @@
157 157
       </div> -->
158 158
       <table class="listTable" border="1">
159 159
         <tr style="height:45px">
160
-          <td width="100" style="text-align: center">序号</td>
161
-          <td width="200" style="text-align: center">处方日期</td>
162
-          <td width="300" style="text-align: center">费用编码</td>
163
-          <td width="300" style="text-align: center">项目名称</td>
164
-          <td width="180" style="text-align: center">规格</td>
165
-          <td width="100" style="text-align: center">数量</td>
166
-          <td width="100" style="text-align: center">单位</td>
167
-          <td width="100" style="text-align: center">单价(元)</td>
168
-          <td width="150" style="text-align: center">金额</td>
160
+          <td width="50" style="text-align: center">序号</td>
161
+          <td width="150" style="text-align: center">处方日期</td>
162
+          <td width="230" style="text-align: center">费用编码</td>
163
+          <td width="320" style="text-align: center">项目名称</td>
164
+          <td width="200" style="text-align: center">规格</td>
165
+          <td width="50" style="text-align: center">数量</td>
166
+          <td width="60" style="text-align: center">单位</td>
167
+          <td width="80" style="text-align: center">单价(元)</td>
168
+          <td width="100" style="text-align: center">金额</td>
169 169
         </tr>
170 170
         <tr v-for="(item, index) in tableData" :key="index">
171 171
           <td style="text-align: center">