Browse Source

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

XMLWAN 2 years ago
parent
commit
78948fd490

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -2197,10 +2197,12 @@ export default {
2197 2197
               var item = this.records[recordIndex].advices[index];
2198 2198
               if (item.id in childMap) {
2199 2199
                 item.children = childMap[item.id];
2200
+                // advices.push(childMap[item.id]);
2200 2201
               } else {
2201 2202
                 item.children = [];
2202 2203
               }
2203 2204
               advices.push(item);
2205
+              
2204 2206
             }
2205 2207
 
2206 2208
             var leftAdvice = [];
@@ -2401,8 +2403,6 @@ export default {
2401 2403
       }
2402 2404
     },
2403 2405
     getAdminUser(key, id) {
2404
-      console.log("key", key);
2405
-      console.log("id", id);
2406 2406
       if (
2407 2407
         typeof key === "undefined" ||
2408 2408
         key == null ||

+ 3 - 3
src/xt_pages/hospitalStation/invoicePrint.vue View File

@@ -13,9 +13,9 @@
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15 15
         <div class='dialysisPage'>
16
-            <printOne v-if="org_id != 10215 && org_id != 10265 && org_id !=0" :paramsObj="invoiceParams"></printOne>
17
-            <printTwo v-if="org_id == 10215  || org_id == 0 " :paramsObj="invoiceParams"></printTwo>
18
-            <printThree v-if="org_id == 10265" :paramsObj="invoiceParams"></printThree>
16
+            <printOne v-if="org_id != 10215 && org_id != 10265 && org_id !=4&& org_id !=0" :paramsObj="invoiceParams"></printOne>
17
+            <printTwo v-if="org_id == 10215" :paramsObj="invoiceParams"></printTwo>
18
+            <printThree v-if="org_id == 10265 || org_id == 0|| org_id == 4" :paramsObj="invoiceParams"></printThree>
19 19
         </div>
20 20
     </div>
21 21
   </div>

+ 12 - 9
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

@@ -10,6 +10,10 @@
10 10
             <div  style="position: absolute;left:560px;top:70px;">
11 11
             <!-- 发票序号 -->
12 12
             </div>
13
+             <div  style="position: absolute;left:660px;top:70px;">
14
+            <!-- 类别 -->
15
+            类别:
16
+            </div>
13 17
         </div>
14 18
 
15 19
         <div style="display:flex;justify-content: space-between;">
@@ -78,7 +82,7 @@
78 82
             <div style="position: absolute;top:250px;left:260px">{{ list.laboratoryCostTotal }}</div>
79 83
             <div style="position: absolute;top:250px;left:340px">氧气费</div>
80 84
             <div style="position: absolute;top:250px;left:420px"></div>
81
-            <div style="position: absolute;top:250px;left:500px">其他</div>
85
+            <div style="position: absolute;top:250px;left:500px">其他</div>
82 86
             <div style="position: absolute;top:250px;left:580px">{{ list.otherCostTotal }}</div>
83 87
         </div>
84 88
 
@@ -157,17 +161,16 @@
157 161
           {{list.order.maf_pay?list.order.maf_pay:''}}
158 162
           <!-- 医疗救助 -->
159 163
         </div>
160
-        <div style="position: absolute;top:340px;left:500px">
161
-            <!-- 大病 -->
164
+        <!-- 大病 -->
165
+        <!-- <div style="position: absolute;top:340px;left:500px">
162 166
           {{list.order.hifmi_pay?list.order.hifmi_pay:''}}
163
-
164
-
165
-        </div>
166
-        <div style="position: absolute;top:340px;left:560px">
167
-            <!-- 其他基金支付 -->
167
+        </div> -->
168
+        <!-- 其他基金支付 -->
169
+        <!-- <div style="position: absolute;top:340px;left:560px">
170
+            
168 171
           {{list.order.oth_pay?list.order.oth_pay:''}}
169 172
 
170
-        </div>
173
+        </div> -->
171 174
         <div style="position: absolute;top:370px;left:320px">
172 175
             <!-- 预交款合计 -->
173 176
 

+ 157 - 114
src/xt_pages/outpatientCharges/allListTemplate/summaryPrint.vue View File

@@ -1,60 +1,78 @@
1 1
 <template>
2 2
   <div id="allList-print" class="allList-print">
3
-    <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}汇总清单</div>
4
-    <div class="allListInfo">
3
+    <div class="allListTitle">
4
+      {{ $store.getters.xt_user.org.org_name }}汇总清单
5
+    </div>
6
+    <div class="allListInfo" style="border-top: 1px solid;">
5 7
       <div>科别:门诊</div>
6 8
       <div>床号:</div>
7 9
       <div>门诊号:{{ order.mdtrt_id }}</div>
8
-      <div>患者姓名:{{ patient.name }}</div>
10
+      <div>姓名:{{ patient.name }}</div>
9 11
     </div>
10 12
 
11
-    <div class="allListInfo">
13
+    <div class="allListInfo" style="border-bottom: 1px solid;">
12 14
       <div>预交款:</div>
13
-      <div>门诊日期:</div>
14 15
       <div>总费用:{{ order.medfee_sumamt }}</div>
16
+      <div>门诊日期:</div>
15 17
     </div>
16 18
 
17 19
     <div class="allListInfo">
18
-      <div>西药:&nbsp;&nbsp;&nbsp;{{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
19
-      <div>中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
20
+      <div>
21
+        西药:&nbsp;&nbsp;&nbsp;{{
22
+          order.westernMedicineCostTotal ? order.westernMedicineCostTotal : ""
23
+        }}
24
+      </div>
25
+      <div>
26
+        中成药:{{
27
+          order.chineseTraditionalMedicineCostTotal
28
+            ? order.chineseTraditionalMedicineCostTotal
29
+            : ""
30
+        }}
31
+      </div>
20 32
       <div>中草药:</div>
21
-      <div>检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
22 33
     </div>
23 34
 
24
-
25 35
     <div class="allListInfo">
36
+      <div>检查费:{{ order.checkCostTotal ? order.checkCostTotal : "" }}</div>
26 37
       <div>输氧费:</div>
27
-      <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
28
-      <div>化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
29
-      <div>输血费:</div>
38
+      <div>
39
+        手术费:{{ order.operationCostTotal ? order.operationCostTotal : "" }}
40
+      </div>
30 41
     </div>
31 42
 
32
-
33 43
     <div class="allListInfo">
34
-      <div >诊察费:{{order.zhenChaCostTotal?order.zhenChaCostTotal:''}}</div>
35
-      <div >治疗费:{{order.treatCostTotal?order.treatCostTotal:''}}</div>
36
-      <div >护理费:</div>
37
-      <div >床位费:{{order.bedCostTotal?order.bedCostTotal:''}}</div>
44
+      <div>
45
+        化验费:{{ order.laboratoryCostTotal ? order.laboratoryCostTotal : "" }}
46
+      </div>
47
+      <div>输血费:</div>
48
+      <div>
49
+        诊察费:{{ order.zhenChaCostTotal ? order.zhenChaCostTotal : "" }}
50
+      </div>
38 51
     </div>
39 52
 
40
-
41 53
     <div class="allListInfo">
42
-      <div >麻醉费:</div>
43
-      <div >材料费:{{order.materialCostTotal?order.materialCostTotal:''}}</div>
44
-      <div >其他费:{{order.otherCostTotal?order.otherCostTotal:''}}</div>
45
-      <div style="visibility: hidden;">其他费:</div>
54
+      <div>治疗费:{{ order.treatCostTotal ? order.treatCostTotal : "" }}</div>
55
+      <div>护理费:</div>
56
+      <div>床位费:{{ order.bedCostTotal ? order.bedCostTotal : "" }}</div>
57
+    </div>
58
+    <div class="allListInfo">
59
+      <div>麻醉费:</div>
60
+      <div>
61
+        材料费:{{ order.materialCostTotal ? order.materialCostTotal : "" }}
62
+      </div>
63
+      <div>其他:{{ order.otherCostTotal ? order.otherCostTotal : "" }}</div>
46 64
     </div>
47 65
     <!--    <div style="display:flex;justify-content: space-between;">-->
48
-<!--          <div style="position: absolute;top:160px;left:40px">西药</div>-->
49
-<!--          <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
50
-<!--          <div style="position: absolute;top:160px;left:180px">检查费</div>-->
51
-<!--          <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
52
-<!--          <div style="position: absolute;top:160px;left:340px">化验费</div>-->
53
-<!--          <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
54
-<!--          <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
55
-<!--          <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
56
-<!--          <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
57
-<!--          <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
66
+    <!--          <div style="position: absolute;top:160px;left:40px">西药</div>-->
67
+    <!--          <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
68
+    <!--          <div style="position: absolute;top:160px;left:180px">检查费</div>-->
69
+    <!--          <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
70
+    <!--          <div style="position: absolute;top:160px;left:340px">化验费</div>-->
71
+    <!--          <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
72
+    <!--          <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
73
+    <!--          <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
74
+    <!--          <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
75
+    <!--          <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
58 76
     <!--    </div>-->
59 77
     <!--    <div style="display:flex;justify-content: space-between;">-->
60 78
     <!--      <div style="position: absolute;top:190px;left:40px">中成药</div>-->
@@ -82,129 +100,150 @@
82 100
     <!--      <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
83 101
     <!--    </div>-->
84 102
 
85
-
86 103
     <table class="allListTable" border="1">
87 104
       <tr>
88
-        <td style="width:10%">费用类别</td>
89
-        <td style="width:35%">项目名称</td>
90
-        <td style="width:5%">单位</td>
91
-        <td style="width:10%">数量</td>
92
-        <td style="width:10%">单价</td>
93
-        <td style="width:10%">金额</td>
94
-        <td style="width:10%">医保类型</td>
95
-
105
+        <td style="width: 10%">费用类别</td>
106
+        <td style="width: 35%">项目名称</td>
107
+        <td style="width: 5%">单位</td>
108
+        <td style="width: 10%">数量</td>
109
+        <td style="width: 10%">单价</td>
110
+        <td style="width: 10%">金额</td>
111
+        <td style="width: 10%">医保类型</td>
96 112
       </tr>
97
-      <template v-for='(item,index) in list'>
113
+      <template v-for="(item, index) in list">
98 114
         <tr v-if="item.is_total == 2">
99
-          <td style="width:10%">{{ item.med_chrgitm_type }}</td>
100
-          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}{{ item.spec }}</td>
101
-          <td style="width:5%">{{ item.unit }}</td>
102
-          <td style="width:10%;text-align:right;">{{ item.count }}</td>
103
-          <td style="width:10%;text-align:right;">{{ item.price.toFixed(4) }}</td>
104
-          <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
105
-          <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
106
-
115
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
116
+          <td
117
+            style="
118
+              width: 35%;
119
+              white-space: nowrap;
120
+              overflow: hidden;
121
+              text-overflow: ellipsis;
122
+            "
123
+          >
124
+            {{ item.name }}{{ item.spec }}
125
+          </td>
126
+          <td style="width: 5%">{{ item.unit }}</td>
127
+          <td style="width: 10%; text-align: right">{{ item.count }}</td>
128
+          <td style="width: 10%; text-align: right">
129
+            {{ item.price.toFixed(4) }}
130
+          </td>
131
+          <td style="width: 10%; text-align: right">
132
+            {{ (item.price * item.count).toFixed(2) }}
133
+          </td>
134
+          <td style="width: 10%">{{ item.medicine_insurance_kind }}</td>
107 135
         </tr>
108 136
         <tr v-if="item.is_total == 1">
109
-          <td style="width:10%"></td>
110
-          <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">合计</td>
111
-          <td style="width:5%"></td>
112
-          <td style="width:10%;text-align:right;"></td>
113
-          <td style="width:10%;text-align:right;"></td>
114
-          <td style="width:10%;text-align:right;">{{ item.total }}</td>
115
-          <td style="width:10%"></td>
116
-
137
+          <td style="width: 10%"></td>
138
+          <td
139
+            style="
140
+              width: 35%;
141
+              white-space: nowrap;
142
+              overflow: hidden;
143
+              text-overflow: ellipsis;
144
+            "
145
+          >
146
+            合计
147
+          </td>
148
+          <td style="width: 5%"></td>
149
+          <td style="width: 10%; text-align: right"></td>
150
+          <td style="width: 10%; text-align: right"></td>
151
+          <td style="width: 10%; text-align: right">{{ item.total }}</td>
152
+          <td style="width: 10%"></td>
117 153
         </tr>
118 154
       </template>
119 155
     </table>
120
-
121 156
   </div>
122 157
 </template>
123 158
 
124 159
 <script>
125
-import { uParseTime } from '@/utils/tools'
160
+import { uParseTime } from "@/utils/tools";
126 161
 
127 162
 export default {
128 163
   props: {
129 164
     list: {
130 165
       type: Array,
131
-      default: function() {
132
-        return []
133
-      }
134
-    }, patient: {
166
+      default: function () {
167
+        return [];
168
+      },
169
+    },
170
+    patient: {
135 171
       type: Object,
136
-      default: function() {
137
-        return {}
138
-      }
139
-    }, order: {
172
+      default: function () {
173
+        return {};
174
+      },
175
+    },
176
+    order: {
140 177
       type: Object,
141
-      default: function() {
142
-        return {}
143
-      }
144
-    }, admin: {
178
+      default: function () {
179
+        return {};
180
+      },
181
+    },
182
+    admin: {
145 183
       type: Object,
146
-      default: function() {
147
-        return {}
148
-      }
149
-    }, hospital: {
184
+      default: function () {
185
+        return {};
186
+      },
187
+    },
188
+    hospital: {
150 189
       type: Object,
151
-      default: function() {
152
-        return {}
153
-      }
154
-
155
-    }
190
+      default: function () {
191
+        return {};
192
+      },
193
+    },
156 194
   },
157 195
   data() {
158 196
     return {
159 197
       page: 1,
160
-      pageArr: []
161
-    }
198
+      pageArr: [],
199
+    };
162 200
   },
163 201
   methods: {
164
-    getNowTime: function() {
165
-      let dateTime
166
-      let yy = new Date().getFullYear()
167
-      let mm = new Date().getMonth() + 1
168
-      let dd = new Date().getDate()
169
-      let hh = new Date().getHours()
170
-      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
171
-          :
172
-          new Date().getMinutes()
173
-      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
174
-          :
175
-          new Date().getSeconds()
176
-      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
177
-      return dateTime
202
+    getNowTime: function () {
203
+      let dateTime;
204
+      let yy = new Date().getFullYear();
205
+      let mm = new Date().getMonth() + 1;
206
+      let dd = new Date().getDate();
207
+      let hh = new Date().getHours();
208
+      let mf =
209
+        new Date().getMinutes() < 10
210
+          ? "0" + new Date().getMinutes()
211
+          : new Date().getMinutes();
212
+      let ss =
213
+        new Date().getSeconds() < 10
214
+          ? "0" + new Date().getSeconds()
215
+          : new Date().getSeconds();
216
+      dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
217
+      return dateTime;
178 218
     },
179 219
     getTimes(time) {
180
-      return uParseTime(time, '{y}-{m}-{d}')
181
-    }, getTotal: function(items) {
182
-      let total = 0
220
+      return uParseTime(time, "{y}-{m}-{d}");
221
+    },
222
+    getTotal: function (items) {
223
+      let total = 0;
183 224
       for (let i = 0; i < items.length; i++) {
184
-        total = total + (items[i].count * items[i].price).toFixed(2)
225
+        total = total + (items[i].count * items[i].price).toFixed(2);
185 226
       }
186
-      return total
187
-
188
-    }
189
-
227
+      return total;
228
+    },
190 229
   },
191 230
   watch: {
192 231
     list: {
193 232
       handler(newVal) {
194
-        this.getPage()
233
+        this.getPage();
195 234
       },
196
-      deep: true
197
-    }
198
-  }
199
-}
200
-
201
-
235
+      deep: true,
236
+    },
237
+  },
238
+};
202 239
 </script>
203 240
 
204 241
 <style lang="scss" scoped>
205 242
 .allList-print {
206
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
207
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
243
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
244
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
245
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
246
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
208 247
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
209 248
   margin-bottom: 20px;
210 249
   padding: 20px 10px;
@@ -224,6 +263,10 @@ export default {
224 263
   margin: 10px 0;
225 264
 }
226 265
 
266
+.allListInfo div{
267
+  min-width: 200px;
268
+}
269
+
227 270
 .allListTable {
228 271
   width: 100%;
229 272
   text-align: center;

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

@@ -29,7 +29,7 @@
29 29
       </el-table-column>
30 30
       <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
31 31
         <template slot-scope="scope">
32
-          <el-select v-model="scope.row.execution_frequency" placehold er="请选择">
32
+          <el-select v-model="scope.row.execution_frequency" placeholder="请选择">
33 33
             <el-option
34 34
               v-for="item,index in efs"
35 35
               :key="index"

+ 127 - 103
src/xt_pages/outpatientCharges/listTemplate/listPrintTwo.vue View File

@@ -1,149 +1,169 @@
1 1
 <template>
2 2
   <div id="allList-print" class="allList-print">
3
-      <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用清单</div>
4
-      <div class="allListInfo">
5
-        <div style="text-align:left;">患者姓名:{{ patient.name }}</div>
6
-        <div style="text-align:left;padding-left: -20px">性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
7
-        <div style="text-align:left;">结算类型:{{order.is_medicine_insurance == 1 ?'医保':'自费'}}</div>
8
-<!--        <div>发票号码:</div>-->
3
+    <div class="allListTitle">
4
+      {{ $store.getters.xt_user.org.org_name }}费用清单
5
+    </div>
6
+    <div class="allListInfo">
7
+      <div style="text-align: left">患者姓名:{{ patient.name }}</div>
8
+      <div style="text-align: left; padding-left: -20px">
9
+        性别:{{ patient.gender == 1 ? "男" : "女" }}
10
+      </div>
11
+      <div style="text-align: left">
12
+        结算类型:{{ order.is_medicine_insurance == 1 ? "医保" : "自费" }}
9 13
       </div>
14
+      <!--        <div>发票号码:</div>-->
15
+    </div>
10 16
 
11 17
     <div class="allListInfo">
12
-        <div style="text-align:left;">住院/门诊号:{{order.mdtrt_id}}</div>
13
-        <div style="text-align:left;">科室:血透</div>
14
-        <div style="text-align:left;">就诊流水号:{{order.mdtrt_id}}</div>
18
+      <div style="text-align: left">住院/门诊号:{{ order.mdtrt_id }}</div>
19
+      <div style="text-align: left">科室:血透</div>
20
+      <div style="text-align: left">就诊流水号:{{ order.mdtrt_id }}</div>
15 21
     </div>
16 22
 
17
-      <div class="allListInfo">
18
-        <div style="text-align:left;">总费用:{{order.medfee_sumamt}}</div>
19
-        <div style="text-align:left;">个人支付:{{order.psn_part_amt}}</div>
20
-        <div style="text-align:left;">基金支付记账:{{order.fund_pay_sumamt}}</div>
21
-        <div style="text-align:left;">补充医疗支付记账:0.00</div>
22
-        <div style="text-align:left;">救助支付金额:{{order.maf_pay}}</div>
23
+    <div class="allListInfo">
24
+      <div style="text-align: left">总费用:{{ order.medfee_sumamt }}</div>
25
+      <div style="text-align: left">个人支付:{{ order.psn_part_amt }}</div>
26
+      <div style="text-align: left">
27
+        基金支付记账:{{ order.fund_pay_sumamt }}
23 28
       </div>
24
-      <table class="allListTable" border="1">
25
-        <tr>
26
-          <td style="width:5%">序号</td>
27
-          <td style="width:15%">处方日期</td>
28
-          <td style="width:10%">费用编号</td>
29
-          <td style="width:40%">费用名称</td>
30
-          <td style="width:5%">单位</td>
31
-          <td style="width:5%">数量</td>
32
-          <td style="width:10%">单价</td>
33
-          <td style="width:10%">金额</td>
34
-        </tr>
35
-        <template v-for='(item,index) in list'>
36
-          <tr v-if="item.is_total == 0">
37
-            <td style="width:5%">{{index + 1}}</td>
38
-            <td style="width:15%">{{item.p_time}}</td>
39
-            <td style="width:10%">{{item.feedetl_sn.split("-")[2]}}</td>
40
-            <td style="width:30%;white-space: nowrap;overflow: hidden;">{{item.name}}{{item.spec}}</td>
41
-            <td style="width:5%">{{item.unit}}</td>
42
-            <td style="width:5%;text-align:right;">{{ item.count }}</td>
43
-            <td style="width:10%;text-align:right;">{{ item.price }}</td>
44
-            <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
45
-          </tr>
46
-          <tr v-if="item.is_total == 1">
47
-            <td style="width:5%"></td>
48
-            <td style="width:15%"></td>
49
-            <td style="width:10%"></td>
50
-            <td style="width:30%;white-space: nowrap;overflow: hidden;">{{item.name}}</td>
51
-            <td style="width:5%"></td>
52
-            <td style="width:5%"></td>
53
-            <td style="width:10%;text-align:right;"></td>
54
-            <td style="width:10%;text-align:right;">{{ item.price}}</td>
55
-          </tr>
56
-        </template>
57
-      </table>
29
+    </div>
58 30
 
31
+    <div class="allListInfo">
32
+      <div style="text-align: left">补充医疗支付记账:0.00</div>
33
+      <div style="text-align: left">救助支付金额:{{ order.maf_pay }}</div>
34
+      <div></div>
59 35
     </div>
36
+    <table class="allListTable" border="1">
37
+      <tr>
38
+        <td style="width: 5%">序号</td>
39
+        <td style="width: 15%">处方日期</td>
40
+        <td style="width: 10%">费用编号</td>
41
+        <td style="width: 40%">费用名称</td>
42
+        <td style="width: 5%">单位</td>
43
+        <td style="width: 5%">数量</td>
44
+        <td style="width: 10%">单价</td>
45
+        <td style="width: 10%">金额</td>
46
+      </tr>
47
+      <template v-for="(item, index) in list">
48
+        <tr v-if="item.is_total == 0">
49
+          <td style="width: 5%">{{ index + 1 }}</td>
50
+          <td style="width: 15%">{{ item.p_time }}</td>
51
+          <td style="width: 10%">{{ item.feedetl_sn.split("-")[2] }}</td>
52
+          <td style="width: 30%; white-space: nowrap; overflow: hidden">
53
+            {{ item.name }}{{ item.spec }}
54
+          </td>
55
+          <td style="width: 5%">{{ item.unit }}</td>
56
+          <td style="width: 5%; text-align: right">{{ item.count }}</td>
57
+          <td style="width: 10%; text-align: right">{{ item.price }}</td>
58
+          <td style="width: 10%; text-align: right">
59
+            {{ (item.price * item.count).toFixed(2) }}
60
+          </td>
61
+        </tr>
62
+        <tr v-if="item.is_total == 1">
63
+          <td style="width: 5%"></td>
64
+          <td style="width: 15%"></td>
65
+          <td style="width: 10%"></td>
66
+          <td style="width: 30%; white-space: nowrap; overflow: hidden">
67
+            {{ item.name }}
68
+          </td>
69
+          <td style="width: 5%"></td>
70
+          <td style="width: 5%"></td>
71
+          <td style="width: 10%; text-align: right"></td>
72
+          <td style="width: 10%; text-align: right">{{ item.price }}</td>
73
+        </tr>
74
+      </template>
75
+    </table>
76
+  </div>
60 77
 </template>
61 78
 
62 79
 <script>
63
-import { uParseTime } from '@/utils/tools'
80
+import { uParseTime } from "@/utils/tools";
64 81
 
65 82
 export default {
66 83
   props: {
67 84
     list: {
68 85
       type: Array,
69
-      default: function() {
70
-        return []
71
-      }
72
-    }, patient: {
86
+      default: function () {
87
+        return [];
88
+      },
89
+    },
90
+    patient: {
73 91
       type: Object,
74
-      default: function() {
75
-        return {}
76
-      }
77
-    }, order: {
92
+      default: function () {
93
+        return {};
94
+      },
95
+    },
96
+    order: {
78 97
       type: Object,
79
-      default: function() {
80
-        return {}
81
-      }
82
-    }, admin: {
98
+      default: function () {
99
+        return {};
100
+      },
101
+    },
102
+    admin: {
83 103
       type: Object,
84
-      default: function() {
85
-        return {}
86
-      }
87
-    }, hospital: {
104
+      default: function () {
105
+        return {};
106
+      },
107
+    },
108
+    hospital: {
88 109
       type: Object,
89
-      default: function() {
90
-        return {}
91
-      }
92
-
93
-    }
110
+      default: function () {
111
+        return {};
112
+      },
113
+    },
94 114
   },
95 115
   data() {
96 116
     return {
97 117
       page: 1,
98
-      pageArr: []
99
-    }
118
+      pageArr: [],
119
+    };
100 120
   },
101 121
   methods: {
102
-    getNowTime: function() {
103
-      let dateTime
104
-      let yy = new Date().getFullYear()
105
-      let mm = new Date().getMonth() + 1
106
-      let dd = new Date().getDate()
107
-      let hh = new Date().getHours()
108
-      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
109
-          :
110
-          new Date().getMinutes()
111
-      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
112
-          :
113
-          new Date().getSeconds()
114
-      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
115
-      return dateTime
122
+    getNowTime: function () {
123
+      let dateTime;
124
+      let yy = new Date().getFullYear();
125
+      let mm = new Date().getMonth() + 1;
126
+      let dd = new Date().getDate();
127
+      let hh = new Date().getHours();
128
+      let mf =
129
+        new Date().getMinutes() < 10
130
+          ? "0" + new Date().getMinutes()
131
+          : new Date().getMinutes();
132
+      let ss =
133
+        new Date().getSeconds() < 10
134
+          ? "0" + new Date().getSeconds()
135
+          : new Date().getSeconds();
136
+      dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
137
+      return dateTime;
116 138
     },
117 139
     getTimes(time) {
118
-      return uParseTime(time, '{y}-{m}-{d}')
119
-    }, getTotal: function(items) {
120
-      let total = 0
140
+      return uParseTime(time, "{y}-{m}-{d}");
141
+    },
142
+    getTotal: function (items) {
143
+      let total = 0;
121 144
       for (let i = 0; i < items.length; i++) {
122
-        total = total + (items[i].count * items[i].price).toFixed(2)
145
+        total = total + (items[i].count * items[i].price).toFixed(2);
123 146
       }
124
-      return total
125
-
147
+      return total;
126 148
     },
127
-
128
-
129 149
   },
130 150
   watch: {
131 151
     list: {
132 152
       handler(newVal) {
133 153
         // this.getPage()
134 154
       },
135
-      deep: true
136
-    }
137
-  }
138
-}
139
-
140
-
155
+      deep: true,
156
+    },
157
+  },
158
+};
141 159
 </script>
142 160
 
143 161
 <style lang="scss" scoped>
144 162
 .allList-print {
145
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
146
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
163
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
164
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
165
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
166
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
147 167
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
148 168
   margin-bottom: 20px;
149 169
   padding: 20px 10px;
@@ -163,6 +183,10 @@ export default {
163 183
   margin: 10px 0;
164 184
 }
165 185
 
186
+.allListInfo div {
187
+  min-width: 200px;
188
+}
189
+
166 190
 .allListTable {
167 191
   width: 100%;
168 192
   text-align: center;

+ 53 - 52
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue View File

@@ -108,43 +108,41 @@
108 108
             开单日期:
109 109
             {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
110 110
           </div>
111
-          <div>医生签字:
112
-            <span
113
-            style="width: 100px; display: inline-block"
114
-            v-if="item.creator == ''"
115
-          >
116
-            {{ item.doctor ? item.doctor : "" }}
117
-          </span>
111
+          <div>
112
+            医生签字:
113
+
114
+            <img
115
+              v-if="setAdminUserES(advicePrint[0].creator)"
116
+              style="height: 30px"
117
+              :src="setAdminUserES(advicePrint[0].creator)"
118
+              alt=""
119
+              srcset=""
120
+            />
118 121
             <span
119
-            style="width: 100px; display: inline-block"
120
-            v-else-if="doc_name != ''"
121
-          >
122
-            {{ doc_name }}
123
-          </span>
124
-          <img
125
-            style="height: 30px"
126
-            :src="setAdminUserES(item.creator,item.doctor)"
127
-            alt=""
128
-            srcset=""
129
-            v-else
130
-          />
131
-        </div>
132
-            </div>
122
+              style="width: 100px; display: inline-block"
123
+              v-else-if="advicePrint[0].doctor != ''"
124
+            >
125
+              {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
126
+            </span>
127
+            <span v-else>
128
+
129
+            </span>
130
+          </div>
133 131
         </div>
134 132
       </div>
135
-      <img
136
-        style="width: 100%"
137
-        v-if="org_id == 10138"
138
-        src="https://kuyi.shengws.com/bailin/blend.jpg"
139
-        alt=""
140
-      />
141
-      <img
142
-        style="width: 100%"
143
-        v-if="org_id == 10278"
144
-        src="https://kuyi.shengws.com/bailinbeier.png"
145
-        alt=""
146
-      />
147 133
     </div>
134
+    <img
135
+      style="width: 100%"
136
+      v-if="org_id == 10138"
137
+      src="https://kuyi.shengws.com/bailin/blend.jpg"
138
+      alt=""
139
+    />
140
+    <img
141
+      style="width: 100%"
142
+      v-if="org_id == 10278"
143
+      src="https://kuyi.shengws.com/bailinbeier.png"
144
+      alt=""
145
+    />
148 146
   </div>
149 147
 </template>
150 148
 <script>
@@ -165,7 +163,7 @@ export default {
165 163
   },
166 164
   data() {
167 165
     return {
168
-      doctorList_1:[],
166
+      doctorList_1: [],
169 167
       doctorList: [],
170 168
       advicePrint: {},
171 169
       patient: {},
@@ -175,7 +173,7 @@ export default {
175 173
       department: [],
176 174
       prescriptions: [],
177 175
       projectList: [],
178
-      doc_name:"",
176
+      doc_name: "",
179 177
       orgname: "",
180 178
       diagnoses: [],
181 179
       pageArr: [],
@@ -197,7 +195,7 @@ export default {
197 195
       getPatientCaseHistory(params).then((response) => {
198 196
         if (response.data.state == 1) {
199 197
           var history = response.data.data.history;
200
-          console.log("中国history222222", history);
198
+          // console.log("中国history222222", history);
201 199
           this.history = history;
202 200
         }
203 201
       });
@@ -227,7 +225,7 @@ export default {
227 225
       }
228 226
       return "";
229 227
     },
230
-    
228
+
231 229
     getPrescriptionPrint() {
232 230
       var params = {
233 231
         // patient_id:this.patient_id,
@@ -239,21 +237,21 @@ export default {
239 237
         ids: this.ids,
240 238
         p_type: 2,
241 239
       };
242
-      console.log("params", params);
240
+      // console.log("params", params);
243 241
       getPrescriptionPrint(params).then((response) => {
244 242
         if (response.data.state == 1) {
245 243
           var advicePrint = response.data.data.advicePrint;
246
-          console.log("adviceprint9999", advicePrint);
244
+          // console.log("adviceprint9999", advicePrint);
247 245
           this.advicePrint = advicePrint;
248 246
           this.prescriptions = advicePrint;
249
-          console.log("处方222222", this.prescriptions);
247
+          // console.log("处方222222", this.prescriptions);
250 248
           var hisPatient = response.data.data.hisPatient;
251
-          console.log("hisPatient", hisPatient);
249
+          // console.log("hisPatient", hisPatient);
252 250
           this.hisPatient = hisPatient;
253 251
           let projectPrint = [];
254 252
           let total = 0;
255 253
           this.advicePrint.map((item) => {
256
-            console.log("imte233232323232323223", item.project);
254
+            // console.log("imte233232323232323223", item.project);
257 255
             if (item.project.length > 0) {
258 256
               item.project.map((it) => {
259 257
                 if (it.type == 2) {
@@ -266,7 +264,7 @@ export default {
266 264
             }
267 265
           });
268 266
           this.doctorList_1 = response.data.data.eles;
269
-          console.log(this.doctorList_1, "医生列表");
267
+          // console.log(this.doctorList_1, "医生列表");
270 268
           if (this.doctorList_1.length > 0) {
271 269
             var operatorsLen = this.doctorList_1.length;
272 270
             for (var index = 0; index < operatorsLen; index++) {
@@ -290,17 +288,18 @@ export default {
290 288
               data2.push(item);
291 289
             }
292 290
           });
293
-
291
+          this.projectPrint = data;
292
+          console.log("列表", this.projectPrint);
294 293
           this.total = total.toFixed(2);
295 294
           this.pre_time = this.advicePrint[0].pre_time;
296 295
           this.doctor = this.advicePrint[0].doctor;
297
-          this.projectPrint = data;
296
+
298 297
           this.singleProjectPrint = data2;
299
-          console.log("99999999999999999", projectPrint);
298
+
300 299
           var projectlist = response.data.data.projectlist;
301 300
 
302 301
           var projectlist = response.data.data.projectlist;
303
-          console.log("所有项目列表", projectlist);
302
+          // console.log("所有项目列表", projectlist);
304 303
           this.projectList = projectlist;
305 304
           this.getPage();
306 305
           let outputlist1Name = response.data.data.his.patient_info
@@ -310,15 +309,17 @@ export default {
310 309
         }
311 310
       });
312 311
     },
313
-     // 电子签名
314
-    setAdminUserES(id,name) {
312
+    // 电子签名
313
+    setAdminUserES(id) {
314
+      // console.log(id, "id");
315 315
       if (id == 0) {
316 316
         return "";
317 317
       }
318 318
       if (id in this.operatorMaps) {
319
+        // console.log(this.operatorMaps, "this.operatorMaps");
319 320
         return this.operatorMaps[id].url;
320 321
       } else {
321
-        this.doc_name = name
322
+        // console.log("po");
322 323
         return "";
323 324
       }
324 325
     },
@@ -329,7 +330,7 @@ export default {
329 330
       getHisPatientDetail(params).then((response) => {
330 331
         if (response.data.state == 1) {
331 332
           var hisPatient = response.data.data.hisPatient;
332
-          console.log("挂号病人", hisPatient);
333
+          // console.log("挂号病人", hisPatient);
333 334
           this.hisPatient = hisPatient;
334 335
         }
335 336
       });
@@ -339,7 +340,7 @@ export default {
339 340
         if (response.data.state == 1) {
340 341
           this.department = response.data.data.department;
341 342
           this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
342
-          console.log("争端", this.diagnoses);
343
+          // console.log("争端", this.diagnoses);
343 344
         }
344 345
       });
345 346
     },

+ 18 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2288,6 +2288,24 @@
2288 2288
 
2289 2289
                 }
2290 2290
 
2291
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2292
+                  if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2293
+                    this.$message.error("请输入处方"+ (b+1) +"频率")
2294
+                    this.$emit('editKeepLoad', false)
2295
+                    return
2296
+                  }
2297
+                  if(this.prescriptions[i].advices[b].day == NaN ){
2298
+                    this.$message.error("请输入处方"+(b+1)+"天数")
2299
+                    this.$emit('editKeepLoad', false)
2300
+                    return
2301
+                  }
2302
+                     if(this.prescriptions[i].advices[b].prescribing_number == "" ){
2303
+                    this.$message.error("请输入处方"+(b+1)+"总量")
2304
+                    this.$emit('editKeepLoad', false)
2305
+                    return
2306
+                  }
2307
+                }
2308
+
2291 2309
                 for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2292 2310
                   this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2293 2311
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()

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

@@ -254,7 +254,7 @@
254 254
             label="处方编号"
255 255
             width="120">
256 256
           <template slot-scope="scope">
257
-            <span>检验单1</span>
257
+            <span>检验单</span>
258 258
           </template>
259 259
         </el-table-column>
260 260
         <el-table-column label="检验单号">