Browse Source

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

csx 2 years ago
parent
commit
76f1ea24d7
38 changed files with 2476 additions and 386 deletions
  1. 8 0
      src/api/config.js
  2. 172 0
      src/api/deposit.js
  3. 0 8
      src/api/his/his.js
  4. 9 9
      src/xt_pages/DepositManagement/DeductionDetailsSummary.vue
  5. 214 41
      src/xt_pages/DepositManagement/DepositRefund.vue
  6. 79 16
      src/xt_pages/DepositManagement/DepositSearch.vue
  7. 36 9
      src/xt_pages/DepositManagement/RechargeDetailsSummary.vue
  8. 51 15
      src/xt_pages/DepositManagement/Template/DeductionDetails.vue
  9. 46 12
      src/xt_pages/DepositManagement/Template/DeductionSummary.vue
  10. 83 24
      src/xt_pages/DepositManagement/Template/DepositDetails.vue
  11. 102 23
      src/xt_pages/DepositManagement/Template/RechargeDetails.vue
  12. 51 17
      src/xt_pages/DepositManagement/Template/RechargeSummary.vue
  13. 95 7
      src/xt_pages/DepositManagement/Template/add_page.vue
  14. 109 11
      src/xt_pages/DepositManagement/Template/refundAdd.vue
  15. 142 0
      src/xt_pages/DepositManagement/Template/refundUpdate.vue
  16. 35 3
      src/xt_pages/DepositManagement/print/printindex.vue
  17. 28 8
      src/xt_pages/data/basicConfig.vue
  18. 25 2
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  19. 1 10
      src/xt_pages/dialysis/bloodPresssWatch.vue
  20. 18 0
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  21. 2 0
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  22. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyEight.vue
  23. 5 0
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  24. 61 0
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  25. 97 16
      src/xt_pages/hospitalStation/components/deskRecord.vue
  26. 65 6
      src/xt_pages/hospitalStation/doctorDesk.vue
  27. 3 3
      src/xt_pages/hospitalStation/invoicePrint.vue
  28. 12 9
      src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue
  29. 1 1
      src/xt_pages/outpatientCharges/components/dayPrescriptionTable.vue
  30. 64 1
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  31. 94 35
      src/xt_pages/outpatientDoctorStation/components/deskRecord.vue
  32. 274 7
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  33. 113 82
      src/xt_pages/outpatientDoctorStation/recordPrint.vue
  34. 334 0
      src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue
  35. 10 3
      src/xt_pages/outpatientTool/components/drugDetail.vue
  36. 16 2
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  37. 19 4
      src/xt_pages/stock/stockInOrderDetailPrint.vue
  38. 1 1
      src/xt_pages/stock/stockQuery.vue

+ 8 - 0
src/api/config.js View File

@@ -186,3 +186,11 @@ export function changeStockSetting(params) {
186 186
     params: params
187 187
   })
188 188
 }
189
+
190
+export function changeAdviceConfig(params) {
191
+  return request({
192
+    url: '/api/changeadviceconfig',
193
+    method: 'get',
194
+    params: params
195
+  })
196
+}

+ 172 - 0
src/api/deposit.js View File

@@ -0,0 +1,172 @@
1
+import request from '@/utils/request'
2
+
3
+//获取患者押金列表=
4
+export function getuserlist(params) {
5
+  return request({
6
+    url: '/api/his/getuserlist',
7
+    method: 'get',
8
+    params: params
9
+  })
10
+}
11
+
12
+//获取病例中心,有效患者名称=
13
+export function gethisuser(params) {
14
+  return request({
15
+    url: '/api/his/gethisuser',
16
+    method: 'get',
17
+    params: params
18
+  })
19
+}
20
+
21
+//新增押金=
22
+export function adddeposit(data) {
23
+  return request({
24
+    url: '/api/his/adddeposit',
25
+    method: 'post',
26
+    data: data
27
+  })
28
+}
29
+
30
+//新增一条退款申请=
31
+export function refundapplication(data) {
32
+  return request({
33
+    url: '/api/his/refundapplication',
34
+    method: 'post',
35
+    data: data
36
+  })
37
+}
38
+
39
+//更改退款申请=
40
+export function changerefund(data) {
41
+  return request({
42
+    url: '/api/his/changerefund',
43
+    method: 'post',
44
+    data: data
45
+  })
46
+}
47
+
48
+//获取新增押金编号=
49
+export function getdepositcode(params) {
50
+  return request({
51
+    url: '/api/his/getdepositcode',
52
+    method: 'get',
53
+    params: params
54
+  })
55
+}
56
+
57
+//获取退款编号=
58
+export function getdeletecode(params) {
59
+  return request({
60
+    url: '/api/his/getdeletecode',
61
+    method: 'get',
62
+    params: params
63
+  })
64
+}
65
+
66
+//充值明细列表=
67
+export function rechargedetails(params) {
68
+  return request({
69
+    url: '/api/his/rechargedetails',
70
+    method: 'get',
71
+    params: params
72
+  })
73
+}
74
+
75
+//押金审核=
76
+export function updeposit(params) {
77
+  return request({
78
+    url: '/api/his/updeposit',
79
+    method: 'get',
80
+    params: params
81
+  })
82
+}
83
+
84
+//押金删除=
85
+export function deletehistory(params) {
86
+  return request({
87
+    url: '/api/his/deletehistory',
88
+    method: 'get',
89
+    params: params
90
+  })
91
+}
92
+
93
+//充值汇总列表=
94
+export function rechargesummary(params) {
95
+  return request({
96
+    url: '/api/his/rechargesummary',
97
+    method: 'get',
98
+    params: params
99
+  })
100
+}
101
+
102
+//根据患者id获取押金流水
103
+export function depositflow(params) {
104
+  return request({
105
+    url: '/api/his/depositflow',
106
+    method: 'get',
107
+    params: params
108
+  })
109
+}
110
+
111
+//扣费明细查询=
112
+export function deductiondetails(params) {
113
+  return request({
114
+    url: '/api/his/deductiondetails',
115
+    method: 'get',
116
+    params: params
117
+  })
118
+}
119
+
120
+//扣费汇总=
121
+export function desummary(params) {
122
+  return request({
123
+    url: '/api/his/desummary',
124
+    method: 'get',
125
+    params: params
126
+  })
127
+}
128
+
129
+//根据患者id查询患者的余额=
130
+export function idtobalance(params) {
131
+  return request({
132
+    url: '/api/his/idtobalance',
133
+    method: 'get',
134
+    params: params
135
+  })
136
+}
137
+
138
+//退款审核通过/拒绝=
139
+export function refundreview(params) {
140
+  return request({
141
+    url: '/api/his/refundreview',
142
+    method: 'get',
143
+    params: params
144
+  })
145
+}
146
+
147
+//退款删除=
148
+export function deleterefund(params) {
149
+  return request({
150
+    url: '/api/his/deleterefund',
151
+    method: 'get',
152
+    params: params
153
+  })
154
+}
155
+
156
+//退款分页=
157
+export function refundlist(params) {
158
+  return request({
159
+    url: '/api/his/refundlist',
160
+    method: 'get',
161
+    params: params
162
+  })
163
+}
164
+
165
+//获取机构名称
166
+export function getorgname(params) {
167
+  return request({
168
+    url: '/api/his/getorgname',
169
+    method: 'get',
170
+    params: params
171
+  })
172
+}

+ 0 - 8
src/api/his/his.js View File

@@ -17,7 +17,6 @@ export function getPatientInfo(params) {
17 17
 }
18 18
 
19 19
 export function createCaseHistory(params) {
20
-  console.log('params', params)
21 20
   return request({
22 21
     url: '/api/doctorworkstation/casehistory/create',
23 22
     method: 'get',
@@ -630,8 +629,6 @@ export function getHisHospitalDetailInfo(params) {
630 629
   })
631 630
 }
632 631
 
633
-
634
-
635 632
 export function getMonthHisHospitalDetailInfo(params) {
636 633
   return request({
637 634
     url: '/api/monthhospitaldetail/get',
@@ -640,8 +637,6 @@ export function getMonthHisHospitalDetailInfo(params) {
640 637
   })
641 638
 }
642 639
 
643
-
644
-
645 640
 export function getYidiClearRecord(params) {
646 641
   return request({
647 642
     url: '/api/his/getyidiclear',
@@ -658,6 +653,3 @@ export function getBatchPrint(params) {
658 653
   })
659 654
 }
660 655
 
661
-
662
-
663
-

+ 9 - 9
src/xt_pages/DepositManagement/DeductionDetailsSummary.vue View File

@@ -13,14 +13,14 @@
13 13
             <DeductionSummary></DeductionSummary>
14 14
           </el-tab-pane>
15 15
         </el-tabs>
16
-        <div
17
-          style="position: absolute; top: 80px; right: 40px"
18
-          v-if="activeName == 'first'"
19
-        >
20
-          <el-button size="small" type="primary" @click="Add()">
21
-            新增
22
-          </el-button>
23
-        </div>
16
+<!--        <div-->
17
+<!--          style="position: absolute; top: 80px; right: 40px"-->
18
+<!--          v-if="activeName == 'first'"-->
19
+<!--        >-->
20
+<!--          <el-button size="small" type="primary" @click="Add()">-->
21
+<!--            新增-->
22
+<!--          </el-button>-->
23
+<!--        </div>-->
24 24
       </div>
25 25
       <el-dialog
26 26
         title="新增押金"
@@ -106,4 +106,4 @@ export default {
106 106
 };
107 107
 </script>
108 108
 <style>
109
-</style>
109
+</style>

+ 214 - 41
src/xt_pages/DepositManagement/DepositRefund.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!--  退款列表-->
2 3
   <div class="main-contain">
3 4
     <div class="position">
4 5
       <bread-crumb :crumbs="crumbs"></bread-crumb>
@@ -34,18 +35,18 @@
34 35
                 style="width: 200px; margin-left: 10px"
35 36
                 class="filter-item"
36 37
                 placeholder="请输入编号/患者名称"
37
-                v-model.trim="keywords"
38
+                v-model.trim="keyword"
38 39
               />
39 40
             </div>
40 41
 
41 42
             <div style="margin-right: 30px">
42 43
               退款类型:
43
-              <el-select v-model="value" placeholder="请选择">
44
+              <el-select v-model="refundtype" placeholder="请选择" @change="updaterefundtype">
44 45
                 <el-option
45
-                  v-for="item in [1, 2]"
46
-                  :key="item"
47
-                  :label="item"
48
-                  :value="item"
46
+                  v-for="item in refundtypelist"
47
+                  :key="item.name"
48
+                  :label="item.name"
49
+                  :value="item.value"
49 50
                 >
50 51
                 </el-option>
51 52
               </el-select>
@@ -53,12 +54,12 @@
53 54
 
54 55
             <div style="margin-right: 30px">
55 56
               审核状态:
56
-              <el-select v-model="status" placeholder="请选择">
57
+              <el-select v-model="examinetype" placeholder="请选择" @change="updateexaminetype">
57 58
                 <el-option
58
-                  v-for="item in [1, 2]"
59
-                  :key="item"
60
-                  :label="item"
61
-                  :value="item"
59
+                  v-for="item in examinelist"
60
+                  :key="item.name"
61
+                  :label="item.name"
62
+                  :value="item.value"
62 63
                 >
63 64
                 </el-option>
64 65
               </el-select>
@@ -67,11 +68,13 @@
67 68
             <div style="width: 465px">
68 69
               <span>日期查询:</span>
69 70
               <el-date-picker
70
-                v-model="date"
71
+                v-model="value1"
71 72
                 type="daterange"
72 73
                 range-separator="至"
73 74
                 start-placeholder="开始日期"
74 75
                 end-placeholder="结束日期"
76
+                format="yyyy-MM-dd"
77
+                value-format="yyyy-MM-dd"
75 78
               >
76 79
               </el-date-picker>
77 80
             </div>
@@ -99,43 +102,44 @@
99 102
 
100 103
           <el-table-column label="申请编号" align="center">
101 104
             <template slot-scope="scope">
102
-              <span></span>
105
+              <span>{{scope.row.deposit_code  ? scope.row.deposit_code  : ""}}</span>
103 106
             </template>
104 107
           </el-table-column>
105 108
           <el-table-column label="患者名称" align="center">
106 109
             <template slot-scope="scope">
107
-              <span></span>
110
+              <span>{{scope.row.his_name  ? scope.row.his_name  : ""}}</span>
108 111
             </template>
109 112
           </el-table-column>
110 113
 
111 114
           <el-table-column label="退款类型" align="center">
112 115
             <template slot-scope="scope">
113
-              <span></span>
116
+<!--              <span>{{scope.row.deposit_code  ? scope.row.deposit_code  : ""}}</span>-->
117
+              <span v-if="scope.row.deposit_status == 3">手动退款</span>
118
+              <span v-if="scope.row.deposit_status == 4">自动退费</span>
114 119
             </template>
115 120
           </el-table-column>
116 121
           <el-table-column label="退款金额" align="center">
117 122
             <template slot-scope="scope">
118
-              <span></span>
123
+              <span>{{scope.row.deposit  ? scope.row.deposit  : ""}}</span>
119 124
             </template>
120 125
           </el-table-column>
121 126
           <el-table-column label="退款状态" align="center">
122 127
             <template slot-scope="scope">
123
-              <span></span>
124
-            </template>
125
-          </el-table-column>
126
-          <el-table-column label="备注" align="center">
127
-            <template slot-scope="scope">
128
-              <span></span>
128
+<!--              <span>{{scope.row.deposit_code  ? scope.row.deposit_code  : ""}}</span>-->
129
+              <span v-if="scope.row.trial_status == 0 && scope.row.deposit_status == 3">未审核</span>
130
+              <span v-if="scope.row.trial_status == 1 && scope.row.deposit_status == 3">已审核</span>
131
+              <span v-if="scope.row.trial_status == 2 && scope.row.deposit_status == 3">审核拒绝</span>
132
+              <span v-if="scope.row.deposit_status == 4">-</span>
129 133
             </template>
130 134
           </el-table-column>
131 135
           <el-table-column label="申请人" align="center">
132 136
             <template slot-scope="scope">
133
-              <span></span>
137
+              <span>{{scope.row.name  ? scope.row.name  : ""}}</span>
134 138
             </template>
135 139
           </el-table-column>
136 140
           <el-table-column label="申请时间" align="center">
137 141
             <template slot-scope="scope">
138
-              <span></span>
142
+              <span>{{scope.row.starttime  ? scope.row.starttime  : ""}}</span>
139 143
             </template>
140 144
           </el-table-column>
141 145
           <el-table-column label="操作" align="center" width="350px">
@@ -157,7 +161,7 @@
157 161
             </template>
158 162
           </el-table-column>
159 163
         </el-table>
160
-        <div>充值金额合计:<span></span></div>
164
+<!--        <div>充值金额合计:<span>{{sum}}</span></div>-->
161 165
       </div>
162 166
 
163 167
       <el-dialog
@@ -166,74 +170,243 @@
166 170
         width="30%"
167 171
         :show-close="close"
168 172
       >
169
-        <refundAdd></refundAdd>
173
+        <refundAdd ref="refuna_add" v-bind="$attrs"></refundAdd>
170 174
         <span slot="footer" class="dialog-footer">
171 175
           <el-button @click="pass">审核通过</el-button>
172 176
           <el-button type="primary" @click="Submit">保 存</el-button>
173 177
         </span>
174 178
       </el-dialog>
179
+
180
+      <el-dialog
181
+        title="编辑退款"
182
+        :visible.sync="dialogVisible02"
183
+        width="30%"
184
+        :show-close="close"
185
+      >
186
+        <refundUpdate ref="refuna_up" v-bind="$attrs"></refundUpdate>
187
+        <span slot="footer" class="dialog-footer">
188
+<!--          <el-button @click="pass">审核通过</el-button>-->
189
+          <el-button type="primary" @click="Submit02">保 存</el-button>
190
+        </span>
191
+      </el-dialog>
175 192
     </div>
176 193
   </div>
177 194
 </template>
178 195
 <script>
179 196
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
180 197
 import refundAdd from "./Template/refundAdd.vue";
198
+import refundUpdate from "./Template/refundUpdate.vue";
199
+import {
200
+  refundlist,
201
+  deleterefund,
202
+  refundreview
203
+}from "@/api/deposit";
181 204
 export default {
182 205
   components: {
183 206
     BreadCrumb,
184 207
     refundAdd,
208
+    refundUpdate,
185 209
   },
186 210
   data() {
187 211
     return {
212
+      refundtypelist:[{name:"全部",value:0},{name:"手动退款",value: 3},{name:"自动退费",value: 4}],
213
+      examinelist:[{name:"全部",value:3},{name:"未审核",value: 0},{name:"已审核",value: 1},{name:"审核拒绝",value: 2}],
188 214
       status: "",
189 215
       value: "",
190 216
       crumbs: [
191 217
         { path: false, name: "押金管理" },
192 218
         { path: "/DepositManagement/DepositSearch", name: "充值详情" },
193 219
       ],
194
-      tableData: [{}, {}],
195
-      total: 0,
196
-      page: 1,
197
-      limit: 10,
198
-      keywords: "",
220
+      tableData: [],
221
+      multipleSelection: [],
222
+      // total: 0,
223
+      // page: 1,
224
+      // limit: 10,
225
+      keyword: "",
226
+      value1:"",
227
+      start_time:"",
228
+      end_time:"",
229
+      // sum:"",
199 230
       dialogVisible: false,
231
+      dialogVisible02:false,
200 232
       close: false,
201
-      date:""
233
+      refundtype: 0,//退款类型
234
+      examinetype: 3,//审核类型
235
+
202 236
     };
203 237
   },
204 238
 
239
+  created(){
240
+    this.search()
241
+  },
205 242
   methods: {
206 243
     // 初始化数据
207 244
     init() {},
245
+    updaterefundtype(){
246
+      console.log("refundtype",this.refundtype)
247
+    },
248
+    updateexaminetype(){
249
+      console.log("examinetype",this.examinetype)
250
+    },
208 251
 
209 252
     // 查询操作
210
-    search() {},
253
+    search() {
254
+      // alert("gagaga")
255
+      // console.log("value1",this.value1)
256
+      if (this.value1 != null){
257
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
258
+          this.start_time = this.value1[0]
259
+          this.end_time = this.value1[1]
260
+        }
261
+      }else {
262
+        this.start_time = ""
263
+        this.end_time = ""
264
+      }
265
+      var params = {
266
+        keyword: this.keyword,
267
+        start_time: this.start_time,
268
+        end_time: this.end_time,
269
+        refundtype: this.refundtype,
270
+        examinetype: this.examinetype,
271
+      };
272
+      // console.log("params",params)
273
+      refundlist(params).then((res) => {
274
+        if (res.data.state == 1){
275
+          this.tableData = res.data.data.list;
276
+        }
277
+      })
278
+    },
211 279
 
212 280
     // 新增
213 281
     to_add() {
214 282
       this.dialogVisible = true;
283
+      this.$nextTick(() => {
284
+        this.$refs['refuna_add'].closePop();
285
+        this.$refs['refuna_add'].getcode();
286
+        this.$refs['refuna_add'].getusername();
287
+      })
215 288
     },
216 289
 
217 290
     // 编辑
218
-    edit(){},
291
+    edit(data,val){
292
+      if(data.trial_status != 0){
293
+        alert("当前状态不可编辑")
294
+          return
295
+      }
296
+      this.dialogVisible02 = true;
297
+      this.$nextTick(() => {
298
+        this.$refs['refuna_up'].getinformation(data, val);
299
+        this.$refs['refuna_up'].getusername();
300
+        this.$refs['refuna_up'].updateconfig();
301
+      })
302
+    },
219 303
 
220 304
     // 删除
221
-    toDelete(){},
305
+    toDelete(val,index) {
306
+      var params = {
307
+        id:val.id,
308
+      };
309
+      this.$confirm("是否确定删除?", {
310
+        confirmButtonText: "确 定",
311
+        cancelButtonText: "取 消",
312
+        type: "warning",
313
+      }).then(() => {
314
+        deleterefund(params).then((res) => {
315
+          if (res.data.state == 1) {
316
+            this.$message.success(res.data.data.list);
317
+          }else {
318
+            this.$message.error(res.data.msg);
319
+          }
320
+        })//刷新
321
+          .then(() =>{
322
+            this.search();
323
+          })
324
+          .catch((err) => {
325
+            console.log(err)
326
+          })
327
+      }).catch(() => {});
328
+    },
222 329
 
223 330
     // 审核通过
224
-    pass_exam() {},
331
+    pass_exam() {
332
+      if(this.multipleSelection.length < 1){
333
+        alert("未选择任何信息")
334
+        return
335
+      }
336
+      var tmp = "";
337
+      console.log("初始值",tmp)
338
+      for (var i=0;i < this.multipleSelection.length;i++){
339
+        tmp = tmp + this.multipleSelection[i].id + ","
340
+      }
341
+      var params = {
342
+        ids: tmp,
343
+        trial_status: 1,
344
+      }
345
+      refundreview(params).then((res) => {
346
+        if (res.data.state == 1){
347
+          this.$message.success("审核通过");
348
+          this.search();
349
+        }else {
350
+          this.$message.error("审核失败:" + res.data.msg);
351
+        }
352
+      })
353
+
354
+    },
225 355
 
226 356
     // 审核拒绝
227
-    reject_exam() {},
357
+    reject_exam() {
358
+      if(this.multipleSelection.length < 1){
359
+        alert("未选择任何信息")
360
+        return
361
+      }
362
+      var tmp = "";
363
+      console.log("初始值",tmp)
364
+      for (var i=0;i < this.multipleSelection.length;i++){
365
+        tmp = tmp + this.multipleSelection[i].id + ","
366
+      }
367
+      var params = {
368
+        ids: tmp,
369
+        trial_status: 2,
370
+      }
371
+      refundreview(params).then((res) => {
372
+        if (res.data.state == 1){
373
+          this.$message.success("审核拒绝成功");
374
+          this.search();
375
+        }else {
376
+          this.$message.error("审核拒绝失败:" + res.data.msg);
377
+        }
378
+      })
228 379
 
229
-    // 提交
230
-    Submit() {},
380
+    },
231 381
 
382
+    // 提交
383
+    Submit() {
384
+      this.$refs['refuna_add'].subfrom();
385
+      // setTimeout(() => {
386
+      //   this.$refs['rechange_details'].search();
387
+      // },500)
388
+    },
389
+    Submit02(){
390
+      this.$refs['refuna_up'].subfrom();
391
+    },
232 392
     // 退款申请审核
233
-    pass(){},
393
+    pass(){
394
+      this.$refs['refuna_add'].examine();
395
+    },
396
+    pli() {
397
+      // alert("父组件被调用!")
398
+      this.dialogVisible = false;
399
+    },
400
+    pli02() {
401
+      // alert("父组件被调用!")
402
+      this.dialogVisible02 = false;
403
+    },
234 404
 
235 405
     // 列表选择
236
-    handleSelectionChange(){}
406
+    handleSelectionChange(val){
407
+        this.multipleSelection = val
408
+        console.log("this.multipleSelection",this.multipleSelection)
409
+    }
237 410
   },
238 411
 };
239 412
 </script>

+ 79 - 16
src/xt_pages/DepositManagement/DepositSearch.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!-- 押金查询-->
2 3
   <div class="main-contain">
3 4
     <div class="position">
4 5
       <bread-crumb :crumbs="crumbs"></bread-crumb>
@@ -13,13 +14,22 @@
13 14
         "
14 15
       >
15 16
         <div>
16
-          <el-input
17
-            size="small"
18
-            style="width: 200px; margin-left: 10px"
19
-            class="filter-item"
20
-            placeholder="请输入患者名称"
21
-            v-model.trim="keywords"
22
-          />
17
+<!--          <el-input-->
18
+<!--            size="small"-->
19
+<!--            style="width: 200px; margin-left: 10px"-->
20
+<!--            class="filter-item"-->
21
+<!--            placeholder="请输入患者名称"-->
22
+<!--            v-model.trim="keyword"-->
23
+<!--          />-->
24
+          <el-select v-model.trim="keyword" clearable filterable placeholder="请输入患者名称" @select="handleSelect" ><!--@change="updateconfig1(h1)"-->
25
+            <el-option
26
+              v-for="item in users"
27
+              :key="item.id"
28
+              :label="item.name"
29
+              :value="item.id"
30
+            >
31
+            </el-option>
32
+          </el-select>
23 33
           <el-button
24 34
             size="small"
25 35
             class="filter-item"
@@ -43,12 +53,12 @@
43 53
         </el-table-column>
44 54
         <el-table-column label="患者名称" align="center">
45 55
           <template slot-scope="scope">
46
-            <span></span>
56
+            <span>{{ scope.row.his_patient_name ? scope.row.his_patient_name : "" }}</span>
47 57
           </template>
48 58
         </el-table-column>
49 59
         <el-table-column label="可用金额" align="center">
50 60
           <template slot-scope="scope">
51
-            <span>{{ scope.row.drug_spec ? scope.row.drug_spec : "" }}</span>
61
+            <span>{{ scope.row.deposit ? scope.row.deposit : "" }}</span>
52 62
           </template>
53 63
         </el-table-column>
54 64
         <el-table-column label="操作" align="center" width="450px">
@@ -81,6 +91,10 @@
81 91
 </template>
82 92
 <script>
83 93
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
94
+import {
95
+  gethisuser,
96
+  getuserlist
97
+}from "@/api/deposit";
84 98
 export default {
85 99
   components: {
86 100
     BreadCrumb,
@@ -91,20 +105,61 @@ export default {
91 105
         { path: false, name: "押金管理" },
92 106
         { path: "/DepositManagement/DepositSearch", name: "押金查询" },
93 107
       ],
94
-      tableData: [{}, {}],
108
+      tableData: [],
95 109
       total: 0,
96 110
       page: 1,
97 111
       limit: 10,
98
-      keywords:''
112
+      keyword:'',
113
+      users:[],//可用患者列表
99 114
     };
100 115
   },
116
+  created(){
117
+    this.init()
118
+    this.getuser()
119
+  },
101 120
 
102 121
   methods: {
103 122
     // 初始化数据
104
-    init() {},
123
+    init() {
124
+      //分页
125
+      var params = {
126
+        keyword: this.keyword,
127
+        page: this.page,
128
+        limit: this.limit,
129
+      };
130
+      getuserlist(params).then((res) =>{
131
+        if (res.data.state == 1){
132
+          this.total = res.data.data.total;
133
+          this.tableData = res.data.data.list;
134
+        }
135
+      })
136
+    },
137
+
138
+    //获取患者列表
139
+    getuser(){
140
+      var params = {};
141
+      gethisuser(params).then((res) =>{
142
+        if (res.data.state == 1){
143
+          this.users = res.data.data.list;
144
+        }
145
+        console.log("this.users",this.users)
146
+      })
147
+    },
105 148
 
106 149
     // 查询操作
107
-    search() {},
150
+    search() {
151
+      var params = {
152
+        keyword: this.keyword,
153
+        page: this.page,
154
+        limit: this.limit,
155
+      };
156
+      getuserlist(params).then((res) =>{
157
+        if (res.data.state == 1){
158
+          this.total = res.data.data.total;
159
+          this.tableData = res.data.data.list;
160
+        }
161
+      })
162
+    },
108 163
 
109 164
     // 页表操作
110 165
     handleSizeChange(val) {
@@ -115,13 +170,21 @@ export default {
115 170
       this.page = val;
116 171
       this.init();
117 172
     },
173
+    handleSelect(item){
174
+      this.keyword = item.id
175
+    },
176
+    updateconfig(){
177
+      console.log("keyword",this.keyword)
178
+    },
118 179
 
119 180
     // 流水详情
120
-    toDetails() {
121
-      this.$router.push({ path: "/DepositManagement/DepositDetails" });
181
+    toDetails(data,val) {
182
+      console.log("data",data)
183
+      console.log("data",val)
184
+      this.$router.push({ path: "/DepositManagement/DepositDetails",query:{key:data}});
122 185
     },
123 186
   },
124 187
 };
125 188
 </script>
126 189
 <style>
127
-</style>
190
+</style>

+ 36 - 9
src/xt_pages/DepositManagement/RechargeDetailsSummary.vue View File

@@ -7,10 +7,10 @@
7 7
       <div style="width: 100%">
8 8
         <el-tabs v-model="activeName" @tab-click="handleClick">
9 9
           <el-tab-pane label="充值明细" name="first">
10
-            <RechangeDetails></RechangeDetails>
10
+            <RechangeDetails ref="rechange_details"></RechangeDetails>
11 11
           </el-tab-pane>
12 12
           <el-tab-pane label="充值汇总" name="second">
13
-            <RechargeSummary></RechargeSummary>
13
+            <RechargeSummary ref="recharge_summary"></RechargeSummary>
14 14
           </el-tab-pane>
15 15
         </el-tabs>
16 16
         <div
@@ -29,7 +29,7 @@
29 29
         :show-close="close"
30 30
       >
31 31
         <!-- <span>这是一段信息</span> -->
32
-        <RechangeAd></RechangeAd>
32
+        <RechangeAd ref="add_page" v-bind="$attrs"></RechangeAd>
33 33
         <span slot="footer" class="dialog-footer">
34 34
           <el-button @click="pass">审核通过</el-button>
35 35
           <el-button type="primary" @click="Submit">提 交</el-button>
@@ -66,16 +66,24 @@ export default {
66 66
       close: false,
67 67
     };
68 68
   },
69
-
70 69
   methods: {
71 70
     // 初始化数据
72
-    init() {},
71
+    init() {
72
+
73
+    },
73 74
 
74 75
     // 查询操作
75 76
     search() {},
76 77
     // 切换明细
77 78
     handleClick(tab, event) {
78
-      console.log(tab, event);
79
+      // console.log(tab, event);
80
+      if(tab.name == "first"){
81
+        // alert("充值明细")
82
+        this.$refs['rechange_details'].search();
83
+      }else {
84
+        // alert("充值汇总")
85
+        this.$refs['recharge_summary'].search();
86
+      }
79 87
     },
80 88
     // 页表操作
81 89
     handleSizeChange(val) {
@@ -95,15 +103,34 @@ export default {
95 103
     // 新增
96 104
     Add() {
97 105
       this.dialogVisible = true;
106
+      this.$nextTick(() => {
107
+        this.$refs['add_page'].closePop();
108
+        this.$refs['add_page'].getcode();
109
+        this.$refs['add_page'].getusername();
110
+      })
98 111
     },
99 112
 
100 113
     // 审核通过
101
-    pass() {},
114
+    pass() {
115
+      this.$refs['add_page'].examine();
116
+    },
102 117
 
103 118
     // 提交
104
-    Submit() {},
119
+    Submit() {
120
+      // this.$nextTick(() => {
121
+        this.$refs['add_page'].subfrom();
122
+        // setTimeout(() => {
123
+        this.$refs['rechange_details'].search();
124
+        // },500)
125
+
126
+      // })
127
+    },
128
+    pli() {
129
+      // alert("父组件被调用!")
130
+      this.dialogVisible = false;
131
+    },
105 132
   },
106 133
 };
107 134
 </script>
108 135
 <style>
109
-</style>
136
+</style>

+ 51 - 15
src/xt_pages/DepositManagement/Template/DeductionDetails.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!--  扣费明细-->
2 3
   <div class="main-contain">
3 4
     <div class="app-container">
4 5
       <div
@@ -16,7 +17,7 @@
16 17
               style="width: 200px; margin-left: 10px"
17 18
               class="filter-item"
18 19
               placeholder="请输入编号/患者名称"
19
-              v-model.trim="keywords"
20
+              v-model.trim="keyword"
20 21
             />
21 22
           </div>
22 23
 
@@ -28,6 +29,8 @@
28 29
               range-separator="至"
29 30
               start-placeholder="开始日期"
30 31
               end-placeholder="结束日期"
32
+              format="yyyy-MM-dd"
33
+              value-format="yyyy-MM-dd"
31 34
             >
32 35
             </el-date-picker>
33 36
           </div>
@@ -54,33 +57,33 @@
54 57
         </el-table-column>
55 58
         <el-table-column label="就诊号" align="center" width="300">
56 59
           <template slot-scope="scope">
57
-            <span></span>
60
+            <span>{{ scope.row.code	 ? scope.row.code : "" }}</span>
58 61
           </template>
59 62
         </el-table-column>
60 63
         <el-table-column label="患者名称" align="center">
61 64
           <template slot-scope="scope">
62
-            <span></span>
65
+            <span>{{ scope.row.name	 ? scope.row.name	 : "" }}</span>
63 66
           </template>
64 67
         </el-table-column>
65 68
 
66 69
         <el-table-column label="医收费类型" align="center">
67 70
           <template slot-scope="scope">
68
-            <span></span>
71
+            <span>{{ scope.row.chargetype	 ? scope.row.chargetype	 : "" }}</span>
69 72
           </template>
70 73
         </el-table-column>
71 74
         <el-table-column label="医疗费总额" align="center">
72 75
           <template slot-scope="scope">
73
-            <span></span>
76
+            <span>{{ scope.row.total	 ? scope.row.total	 : "" }}</span>
74 77
           </template>
75 78
         </el-table-column>
76 79
         <el-table-column label="押金支付金额" align="center">
77 80
           <template slot-scope="scope">
78
-            <span></span>
81
+            <span>{{ scope.row.decimal	 ? scope.row.decimal	 : "" }}</span>
79 82
           </template>
80 83
         </el-table-column>
81 84
         <el-table-column label="收费日期" align="center">
82 85
           <template slot-scope="scope">
83
-            <span></span>
86
+            <span>{{ scope.row.charge_date	 ? scope.row.charge_date	 : "" }}</span>
84 87
           </template>
85 88
         </el-table-column>
86 89
         <el-table-column label="操作" align="center" width="350px">
@@ -96,12 +99,15 @@
96 99
         </el-table-column>
97 100
       </el-table>
98 101
 
99
-      <div>押金支付金额合计:<span></span></div>
102
+      <div>押金支付金额合计:<span>{{sum}}</span></div>
100 103
     </div>
101 104
   </div>
102 105
 </template>
103 106
 <script>
104 107
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
108
+import {
109
+  deductiondetails
110
+}from "@/api/deposit";
105 111
 export default {
106 112
   components: {
107 113
     BreadCrumb,
@@ -112,21 +118,51 @@ export default {
112 118
         { path: false, name: "押金管理" },
113 119
         { path: "/DepositManagement/DepositSearch", name: "押金查询" },
114 120
       ],
115
-      tableData: [{}, {}],
116
-      total: 0,
117
-      page: 1,
118
-      limit: 10,
119
-      keywords: "",
121
+      tableData: [],
122
+      // total: 0,
123
+      // page: 1,
124
+      // limit: 10,
125
+      keyword: "",
120 126
       value1: "",
127
+      start_time:"",
128
+      end_time:"",
129
+      sum:""
121 130
     };
122 131
   },
123 132
 
133
+  created(){
134
+    this.search()
135
+  },
124 136
   methods: {
125 137
     // 初始化数据
126 138
     init() {},
127 139
 
128 140
     // 查询操作
129
-    search() {},
141
+    search() {
142
+      // this.value1 = ["2022-04-10","2022-05-10"],有空在改。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
143
+      // console.log("value1",this.value1)
144
+      if (this.value1 != null){
145
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
146
+          this.start_time = this.value1[0]
147
+          this.end_time = this.value1[1]
148
+        }
149
+      }else {
150
+        this.start_time = ""
151
+        this.end_time = ""
152
+      }
153
+      var params = {
154
+        keyword: this.keyword,
155
+        start_time: this.start_time,
156
+        end_time: this.end_time,
157
+      };
158
+      console.log("params",params)
159
+      deductiondetails(params).then((res) => {
160
+        if (res.data.state == 1){
161
+          this.tableData = res.data.data.list;
162
+          this.sum = res.data.data.sum;
163
+        }
164
+      })
165
+    },
130 166
 
131 167
     // 查看详情
132 168
     Details() {},
@@ -134,4 +170,4 @@ export default {
134 170
 };
135 171
 </script>
136 172
 <style>
137
-</style>
173
+</style>

+ 46 - 12
src/xt_pages/DepositManagement/Template/DeductionSummary.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!--  扣费汇总-->
2 3
   <div class="main-contain">
3 4
     <div class="app-container">
4 5
       <div
@@ -16,7 +17,7 @@
16 17
               style="width: 200px; margin-left: 10px"
17 18
               class="filter-item"
18 19
               placeholder="请输入编号/患者名称"
19
-              v-model.trim="keywords"
20
+              v-model.trim="keyword"
20 21
             />
21 22
           </div>
22 23
 
@@ -28,6 +29,8 @@
28 29
               range-separator="至"
29 30
               start-placeholder="开始日期"
30 31
               end-placeholder="结束日期"
32
+              format="yyyy-MM-dd"
33
+              value-format="yyyy-MM-dd"
31 34
             >
32 35
             </el-date-picker>
33 36
           </div>
@@ -55,28 +58,31 @@
55 58
 
56 59
         <el-table-column label="患者名称" align="center">
57 60
           <template slot-scope="scope">
58
-            <span></span>
61
+            <span>{{ scope.row.name	 ? scope.row.name	 : "" }}</span>
59 62
           </template>
60 63
         </el-table-column>
61 64
 
62 65
         <el-table-column label="医疗费总额" align="center">
63 66
           <template slot-scope="scope">
64
-            <span></span>
67
+            <span>{{ scope.row.total	 ? scope.row.total	 : "" }}</span>
65 68
           </template>
66 69
         </el-table-column>
67 70
         <el-table-column label="押金支付金额" align="center">
68 71
           <template slot-scope="scope">
69
-            <span></span>
72
+            <span>{{ scope.row.decimal	 ? scope.row.decimal	 : "" }}</span>
70 73
           </template>
71 74
         </el-table-column>
72 75
       </el-table>
73 76
 
74
-      <div>押金支付金额合计:<span></span></div>
77
+      <div>押金支付金额合计:<span>{{sum}}</span></div>
75 78
     </div>
76 79
   </div>
77 80
 </template>
78 81
 <script>
79 82
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
83
+import {
84
+  desummary
85
+}from "@/api/deposit";
80 86
 export default {
81 87
   components: {
82 88
     BreadCrumb,
@@ -87,21 +93,49 @@ export default {
87 93
         { path: false, name: "押金管理" },
88 94
         { path: "/DepositManagement/DepositSearch", name: "押金查询" },
89 95
       ],
90
-      tableData: [{}, {}],
91
-      total: 0,
92
-      page: 1,
93
-      limit: 10,
94
-      keywords: "",
96
+      tableData: [{},{},{}],
97
+      // total: 0,
98
+      // page: 1,
99
+      // limit: 10,
100
+      keyword: "",
95 101
       value1: "",
102
+      start_time:"",
103
+      end_time:"",
104
+      sum:""
96 105
     };
97 106
   },
98 107
 
108
+  created(){
109
+    this.search()
110
+  },
99 111
   methods: {
100 112
     // 初始化数据
101 113
     init() {},
102 114
 
103 115
     // 查询操作
104
-    search() {},
116
+    search() {
117
+      if (this.value1 != null){
118
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
119
+          this.start_time = this.value1[0]
120
+          this.end_time = this.value1[1]
121
+        }
122
+      }else {
123
+        this.start_time = ""
124
+        this.end_time = ""
125
+      }
126
+      var params = {
127
+        keyword: this.keyword,
128
+        start_time: this.start_time,
129
+        end_time: this.end_time,
130
+      };
131
+      console.log("params",params)
132
+      desummary(params).then((res) => {
133
+        if (res.data.state == 1){
134
+          this.tableData = res.data.data.list;
135
+          this.sum = res.data.data.sum;
136
+        }
137
+      })
138
+    },
105 139
 
106 140
     // 删除
107 141
     toDelete() {},
@@ -115,4 +149,4 @@ export default {
115 149
 };
116 150
 </script>
117 151
 <style>
118
-</style>
152
+</style>

+ 83 - 24
src/xt_pages/DepositManagement/Template/DepositDetails.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!--  押金流水-->
2 3
   <div class="main-contain">
3 4
     <div class="position">
4 5
       <bread-crumb :crumbs="crumbs"></bread-crumb>
@@ -13,10 +14,10 @@
13 14
         "
14 15
       >
15 16
         <div style="width: 200px">
16
-          <span>患者名称:</span>
17
+          <span>患者名称:{{name}}</span>
17 18
         </div>
18 19
         <div style="width: 200px">
19
-          <span>可用金额:</span>
20
+          <span>可用金额:{{sum}}</span>
20 21
         </div>
21 22
       </div>
22 23
       <div
@@ -35,17 +36,20 @@
35 36
             range-separator="至"
36 37
             start-placeholder="开始日期"
37 38
             end-placeholder="结束日期"
39
+            format="yyyy-MM-dd"
40
+            value-format="yyyy-MM-dd"
41
+            @change="search"
38 42
           >
39 43
           </el-date-picker>
40 44
         </div>
41 45
         <div style="width: 300px">
42 46
           <span>押金类型:</span>
43
-          <el-select v-model="value" placeholder="请选择">
47
+          <el-select v-model="deposit_status" placeholder="请选择" @change="search">
44 48
             <el-option
45
-              v-for="item in [1,2]"
46
-              :key="item"
47
-              :label="item"
48
-              :value="item"
49
+              v-for="item in depositlist"
50
+              :key="item.name"
51
+              :label="item.name"
52
+              :value="item.value"
49 53
             >
50 54
             </el-option>
51 55
           </el-select>
@@ -64,30 +68,42 @@
64 68
         </el-table-column>
65 69
         <el-table-column label="押金类型" align="center">
66 70
           <template slot-scope="scope">
67
-            <span></span>
71
+<!--            <span>{{ scope.row.deposit_status	 ? scope.row.deposit_status	 : "" }}</span>-->
72
+            <span v-if="scope.row.deposit_status == 1">充值</span>
73
+            <span v-if="scope.row.deposit_status == 2">扣费</span>
74
+            <span v-if="scope.row.deposit_status == 3">退款</span>
75
+            <span v-if="scope.row.deposit_status == 4">退费</span>
68 76
           </template>
69 77
         </el-table-column>
70 78
         <el-table-column label="充值/扣费单据编码" align="center">
71 79
           <template slot-scope="scope">
72
-            <span></span>
80
+            <span>{{ scope.row.deposit_code	 ? scope.row.deposit_code	 : "" }}</span>
73 81
           </template>
74 82
         </el-table-column>
75 83
         <el-table-column label="充值金额" align="center">
76 84
           <template slot-scope="scope">
77
-            <span></span>
85
+<!--            <span>{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>-->
86
+            <span v-if="scope.row.deposit_status == 1">{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>
87
+            <span v-if="scope.row.deposit_status == 2">-</span>
88
+            <span v-if="scope.row.deposit_status == 3">-</span>
89
+            <span v-if="scope.row.deposit_status == 4">{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>
78 90
           </template>
79 91
         </el-table-column>
80 92
         <el-table-column label="扣费金额" align="center">
81 93
           <template slot-scope="scope">
82
-            <span></span>
94
+<!--            <span>{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>-->
95
+            <span v-if="scope.row.deposit_status == 1">-</span>
96
+            <span v-if="scope.row.deposit_status == 2">{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>
97
+            <span v-if="scope.row.deposit_status == 3">{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>
98
+            <span v-if="scope.row.deposit_status == 4">-</span>
83 99
           </template>
84 100
         </el-table-column>
85 101
         <el-table-column label="可用金额" align="center">
86 102
           <template slot-scope="scope">
87
-            <span></span>
103
+            <span>{{ scope.row.surplus_deposit	 ? scope.row.surplus_deposit	 : "" }}</span>
88 104
           </template>
89 105
         </el-table-column>
90
-       
106
+
91 107
       </el-table>
92 108
 
93 109
     </div>
@@ -95,6 +111,10 @@
95 111
 </template>
96 112
 <script>
97 113
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
114
+import {
115
+  refundlist,
116
+  depositflow
117
+}from "@/api/deposit";
98 118
 export default {
99 119
   components: {
100 120
     BreadCrumb,
@@ -105,21 +125,60 @@ export default {
105 125
         { path: false, name: "押金管理" },
106 126
         { path: "/DepositManagement/DepositSearch", name: "流水详情" },
107 127
       ],
108
-      tableData: [{}, {}],
109
-      total: 0,
110
-      page: 1,
111
-      limit: 10,
112
-      keywords: "",
113
-      value1:""
128
+      tableData: [],
129
+      depositlist:[{name:"全部",value:0},{name:"充值",value:1},{name:"扣费",value:2},{name:"退款",value:3},{name:"退费",value:4}],
130
+      value1:"",
131
+      start_time:"",
132
+      end_time:"",
133
+      id: 0,
134
+      name: "",
135
+      sum:0,
136
+      deposit_status:0,
114 137
     };
115 138
   },
116
-
139
+  created(){
140
+    this.init();
141
+    this.search();
142
+  },
117 143
   methods: {
118 144
     // 初始化数据
119
-    init() {},
120
-
145
+    init() {
146
+      // this.$route.query.key
147
+      // console.log("this.$route.query.key",this.$route.query.key);
148
+      this.name = this.$route.query.key.his_patient_name
149
+      this.id = this.$route.query.key.his_patient_id
150
+    },
151
+    // lili(){
152
+    //   alert("触发")
153
+    // },
154
+    // ljc(){
155
+    //   alert(this.deposit_status)
156
+    // },
121 157
     // 查询操作
122
-    search() {},
158
+    search() {
159
+      if (this.value1 != null){
160
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
161
+          this.start_time = this.value1[0]
162
+          this.end_time = this.value1[1]
163
+        }
164
+      }else {
165
+        this.start_time = ""
166
+        this.end_time = ""
167
+      }
168
+      var params = {
169
+        id: this.id,
170
+        start_time: this.start_time,
171
+        end_time: this.end_time,
172
+        deposit_status: this.deposit_status,
173
+      };
174
+      // console.log("params",params)
175
+      depositflow(params).then((res) => {
176
+        if (res.data.state == 1){
177
+          this.tableData = res.data.data.list;
178
+          this.sum = res.data.data.decimal;
179
+        }
180
+      })
181
+    },
123 182
   },
124 183
 };
125 184
 </script>
@@ -127,4 +186,4 @@ export default {
127 186
 /deep/ .el-range-separator {
128 187
   width: 10%;
129 188
 }
130
-</style>
189
+</style>

+ 102 - 23
src/xt_pages/DepositManagement/Template/RechargeDetails.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!--  充值明细-->
2 3
   <div class="main-contain">
3 4
     <div class="app-container">
4 5
       <div
@@ -16,7 +17,7 @@
16 17
               style="width: 200px; margin-left: 10px"
17 18
               class="filter-item"
18 19
               placeholder="请输入编号/患者名称"
19
-              v-model.trim="keywords"
20
+              v-model.trim="keyword"
20 21
             />
21 22
           </div>
22 23
 
@@ -28,6 +29,8 @@
28 29
               range-separator="至"
29 30
               start-placeholder="开始日期"
30 31
               end-placeholder="结束日期"
32
+              format="yyyy-MM-dd"
33
+              value-format="yyyy-MM-dd"
31 34
             >
32 35
             </el-date-picker>
33 36
           </div>
@@ -54,38 +57,41 @@
54 57
         </el-table-column>
55 58
         <el-table-column label="单据编号" align="center">
56 59
           <template slot-scope="scope">
57
-            <span></span>
60
+            <span>{{ scope.row.deposit_code	 ? scope.row.deposit_code	 : "" }}</span>
58 61
           </template>
59 62
         </el-table-column>
60 63
         <el-table-column label="患者名称" align="center">
61 64
           <template slot-scope="scope">
62
-            <span></span>
65
+            <span>{{ scope.row.his_name	 ? scope.row.his_name	 : "" }}</span>
63 66
           </template>
64 67
         </el-table-column>
65 68
 
66 69
         <el-table-column label="充值金额" align="center">
67 70
           <template slot-scope="scope">
68
-            <span></span>
71
+            <span>{{ scope.row.deposit	 ? scope.row.deposit	 : "" }}</span>
69 72
           </template>
70 73
         </el-table-column>
71 74
         <el-table-column label="审核状态" align="center">
72 75
           <template slot-scope="scope">
73
-            <span></span>
76
+<!--            <span>{{ scope.row.trial_status	 ? scope.row.trial_status	 : "" }}</span>-->
77
+            <span v-if="scope.row.trial_status == 1">审核通过</span>
78
+            <span v-if="scope.row.trial_status == 0">未审核</span>
79
+            <span v-if="scope.row.trial_status == 2">审核拒绝</span>
74 80
           </template>
75 81
         </el-table-column>
76 82
         <el-table-column label="创建人" align="center">
77 83
           <template slot-scope="scope">
78
-            <span></span>
84
+            <span>{{ scope.row.name	 ? scope.row.name	 : "" }}</span>
79 85
           </template>
80 86
         </el-table-column>
81 87
         <el-table-column label="充值时间" align="center">
82 88
           <template slot-scope="scope">
83
-            <span></span>
89
+            <span>{{ scope.row.starttime	 ? scope.row.starttime	 : "" }}</span>
84 90
           </template>
85 91
         </el-table-column>
86 92
         <el-table-column label="备注" align="center">
87 93
           <template slot-scope="scope">
88
-            <span></span>
94
+            <span>{{ scope.row.remarks	 ? scope.row.remarks	 : "" }}</span>
89 95
           </template>
90 96
         </el-table-column>
91 97
         <el-table-column label="操作" align="center" width="350px">
@@ -116,13 +122,18 @@
116 122
       </el-table>
117 123
 
118 124
       <div>
119
-          充值金额合计:<span></span>
125
+          充值金额合计:<span>{{sum}}</span>
120 126
       </div>
121 127
     </div>
122 128
   </div>
123 129
 </template>
124 130
 <script>
125 131
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
132
+import {
133
+  rechargedetails,
134
+  deletehistory,
135
+  updeposit
136
+}from "@/api/deposit";
126 137
 export default {
127 138
   components: {
128 139
     BreadCrumb,
@@ -133,34 +144,102 @@ export default {
133 144
         { path: false, name: "押金管理" },
134 145
         { path: "/DepositManagement/DepositSearch", name: "押金查询" },
135 146
       ],
136
-      tableData: [{}, {}],
137
-      total: 0,
138
-      page: 1,
139
-      limit: 10,
140
-      keywords: "",
141
-      value1:""
147
+      tableData: [],
148
+      // total: 0,
149
+      // page: 1,
150
+      // limit: 10,
151
+      keyword: "",
152
+      value1:"",//日期
153
+      start_time:"",
154
+      end_time:"",
155
+      sum:""
142 156
     };
143 157
   },
144
-
158
+  created(){
159
+    this.search()
160
+  },
145 161
   methods: {
146 162
     // 初始化数据
147 163
     init() {},
148 164
 
149 165
     // 查询操作
150
-    search() {},
166
+    search() {
167
+      // alert("gagaga")
168
+      console.log("value1",this.value1)
169
+      if (this.value1 != null){
170
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
171
+          this.start_time = this.value1[0]
172
+          this.end_time = this.value1[1]
173
+        }
174
+      }else {
175
+        this.start_time = ""
176
+        this.end_time = ""
177
+      }
178
+      var params = {
179
+        keyword: this.keyword,
180
+        start_time: this.start_time,
181
+        end_time: this.end_time,
182
+      };
183
+      console.log("params",params)
184
+      rechargedetails(params).then((res) => {
185
+        if (res.data.state == 1){
186
+          this.tableData = res.data.data.list;
187
+          this.sum = res.data.data.sum;
188
+        }
189
+      })
190
+    },
151 191
 
152 192
     // 删除
153
-    toDelete() {},
193
+    toDelete(val,index) {
194
+      var params = {
195
+        id:val.id,
196
+      };
197
+      this.$confirm("是否确定删除?", {
198
+        confirmButtonText: "确 定",
199
+        cancelButtonText: "取 消",
200
+        type: "warning",
201
+      }).then(() => {
202
+        deletehistory(params).then((res) => {
203
+          if (res.data.state == 1) {
204
+            this.$message.success(res.data.data.list);
205
+          }else {
206
+            this.$message.error(res.data.msg);
207
+          }
208
+        })//刷新
209
+          .then(() =>{
210
+            this.search();
211
+          })
212
+          .catch((err) => {
213
+            console.log(err)
214
+          })
215
+      }).catch(() => {});
216
+    },
154 217
 
155 218
     // 审核
156
-    examine() {},
219
+    examine(val,index) {
220
+      var params = {
221
+        id:val.id,
222
+      };
223
+      updeposit(params).then((res) =>{
224
+        if (res.data.state == 1) {
225
+          this.$message.success(res.data.data.list);
226
+        }else {
227
+          this.$message.error(res.data.msg);
228
+        }
229
+      })
230
+      setTimeout(() => {
231
+        this.search();
232
+      },500)
233
+    },
157 234
 
158 235
     // 打印凭证
159
-    print(){
160
-      this.$router.push({path:"/DepositManagement/printindex"})
161
-    }
236
+    print(data,val){
237
+      console.log("data",data)
238
+      // alert("aaaaaaa")
239
+      this.$router.push({path:"/DepositManagement/printindex",query:{key:data}})
240
+    },
162 241
   },
163 242
 };
164 243
 </script>
165 244
 <style>
166
-</style>
245
+</style>

+ 51 - 17
src/xt_pages/DepositManagement/Template/RechargeSummary.vue View File

@@ -1,4 +1,5 @@
1 1
 <template>
2
+<!--  充值汇总-->
2 3
   <div class="main-contain">
3 4
     <div class="app-container">
4 5
       <div
@@ -15,8 +16,8 @@
15 16
               size="small"
16 17
               style="width: 200px; margin-left: 10px"
17 18
               class="filter-item"
18
-              placeholder="请输入编号/患者名称"
19
-              v-model.trim="keywords"
19
+              placeholder="请输入患者名称"
20
+              v-model.trim="keyword"
20 21
             />
21 22
           </div>
22 23
 
@@ -28,6 +29,8 @@
28 29
               range-separator="至"
29 30
               start-placeholder="开始日期"
30 31
               end-placeholder="结束日期"
32
+              format="yyyy-MM-dd"
33
+              value-format="yyyy-MM-dd"
31 34
             >
32 35
             </el-date-picker>
33 36
           </div>
@@ -52,34 +55,37 @@
52 55
       >
53 56
         <el-table-column type="index" label="序号" align="center" width="200">
54 57
         </el-table-column>
55
-        
58
+
56 59
         <el-table-column label="患者名称" align="center">
57 60
           <template slot-scope="scope">
58
-            <span></span>
61
+            <span>{{ scope.row.his_name	 ? scope.row.his_name	 : "" }}</span>
59 62
           </template>
60 63
         </el-table-column>
61 64
 
62 65
         <el-table-column label="充值金额" align="center">
63 66
           <template slot-scope="scope">
64
-            <span></span>
67
+            <span>{{ scope.row.sum_decimal	 ? scope.row.sum_decimal	 : "" }}</span>
65 68
           </template>
66 69
         </el-table-column>
67 70
         <el-table-column label="押金余额" align="center">
68 71
           <template slot-scope="scope">
69
-            <span></span>
72
+            <span>{{ scope.row.decimal	 ? scope.row.decimal	 : "" }}</span>
70 73
           </template>
71 74
         </el-table-column>
72
-        
75
+
73 76
       </el-table>
74 77
 
75 78
       <div>
76
-          充值金额合计:<span></span>
79
+          充值金额合计:<span>{{sum}}</span>
77 80
       </div>
78 81
     </div>
79 82
   </div>
80 83
 </template>
81 84
 <script>
82 85
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
86
+import {
87
+  rechargesummary
88
+}from "@/api/deposit";
83 89
 export default {
84 90
   components: {
85 91
     BreadCrumb,
@@ -90,21 +96,49 @@ export default {
90 96
         { path: false, name: "押金管理" },
91 97
         { path: "/DepositManagement/DepositSearch", name: "押金查询" },
92 98
       ],
93
-      tableData: [{}, {}],
94
-      total: 0,
95
-      page: 1,
96
-      limit: 10,
97
-      keywords: "",
98
-      value1:""
99
+      tableData: [],
100
+      // total: 0,
101
+      // page: 1,
102
+      // limit: 10,
103
+      keyword: "",
104
+      value1:"",
105
+      start_time:"",
106
+      end_time:"",
107
+      sum:""
99 108
     };
100 109
   },
101
-
110
+  created(){
111
+    this.search()
112
+  },
102 113
   methods: {
103 114
     // 初始化数据
104 115
     init() {},
105 116
 
106 117
     // 查询操作
107
-    search() {},
118
+    search() {
119
+      // console.log("value1",this.value1)
120
+      if (this.value1 != null){
121
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
122
+          this.start_time = this.value1[0]
123
+          this.end_time = this.value1[1]
124
+        }
125
+      }else {
126
+        this.start_time = ""
127
+        this.end_time = ""
128
+      }
129
+      var params = {
130
+        keyword: this.keyword,
131
+        start_time: this.start_time,
132
+        end_time: this.end_time,
133
+      };
134
+      console.log("params",params)
135
+      rechargesummary(params).then((res) => {
136
+        if (res.data.state == 1){
137
+          this.tableData = res.data.data.list;
138
+          this.sum = res.data.data.sum;
139
+        }
140
+      })
141
+    },
108 142
 
109 143
     // 删除
110 144
     toDelete() {},
@@ -118,4 +152,4 @@ export default {
118 152
 };
119 153
 </script>
120 154
 <style>
121
-</style>
155
+</style>

+ 95 - 7
src/xt_pages/DepositManagement/Template/add_page.vue View File

@@ -1,14 +1,25 @@
1 1
 <template>
2
+<!--  新增押金中间的部分-->
2 3
   <div>
3
-    <el-form ref="form" :model="form" label-width="80px">
4
+    <el-form ref="form" :model="form" :rules="rules" label-width="80px" >
4 5
       <el-form-item label="押金编号">
5
-        <span>{{form.id}}</span>
6
+        <span>{{form.code}}</span>
6 7
       </el-form-item>
7
-      <el-form-item label="患者名称">
8
-        <el-input v-model="form.patient_name"></el-input>
8
+      <el-form-item label="患者名称" prop="patient_name">
9
+<!--        <el-input v-model="form.patient_name"></el-input>-->
10
+        <el-select v-model="form.patient_name" clearable filterable placeholder="请输入患者名称" @select="handleSelect" ><!--@change="updateconfig1(h1)"-->
11
+          <el-option
12
+            v-for="item in users"
13
+            :key="item.id"
14
+            :label="item.name"
15
+            :value="item.id"
16
+          >
17
+          </el-option>
18
+        </el-select>
19
+
9 20
       </el-form-item>
10
-      <el-form-item label="押金金额">
11
-        <el-input v-model="form.money"></el-input>
21
+      <el-form-item label="押金金额" prop="money">
22
+        <el-input v-model="form.money" ></el-input>
12 23
       </el-form-item>
13 24
       <el-form-item label="备注">
14 25
         <el-input type="textarea" v-model="form.remarks"></el-input>
@@ -17,17 +28,94 @@
17 28
   </div>
18 29
 </template>
19 30
 <script>
31
+import {
32
+  getdepositcode,
33
+  gethisuser,
34
+  adddeposit
35
+}from "@/api/deposit";
20 36
 export default {
21 37
   data() {
22 38
     return {
23 39
       form: {
24 40
         remarks:"",
25
-        id:"HSG47565",
41
+        code:"",
26 42
         patient_name:"",
27 43
         money:0
28 44
       },
45
+      users:[],//可用患者列表
46
+      trial_status:0,
47
+      //表单验证规则
48
+      rules: {
49
+        patient_name:[{
50
+          required:true,message:"患者姓名不能为空",trigger: "change"
51
+        }],
52
+        money:[{
53
+          required:true,message:"押金金额不能为空",trigger: "change"
54
+        }],
55
+      },
29 56
     };
30 57
   },
58
+  created(){
59
+    // this.getusername()
60
+  },
61
+  methods:{
62
+    getcode(){
63
+      var params = {}
64
+      getdepositcode(params).then((res) => {
65
+        if(res.data.state == 1){
66
+          this.form.code = res.data.data.list;
67
+        }
68
+      })
69
+    },
70
+    //获取患者列表
71
+    getusername(){
72
+      var params = {};
73
+      gethisuser(params).then((res) =>{
74
+        if (res.data.state == 1){
75
+          this.users = res.data.data.list;
76
+        }
77
+      })
78
+    },
79
+    //提交
80
+    subfrom(){
81
+      // console.log("========")
82
+      // this.$parent.$parent.pli();
83
+      // console.log("子组件",this.$parent.$parent)
84
+      // console.log("========")
85
+      var params = {
86
+        code: this.form.code,
87
+        his_patient_id: this.form.patient_name,
88
+        deposit: this.form.money,
89
+        remarks: this.form.remarks,
90
+        trial_status: this.trial_status,
91
+      }
92
+      adddeposit(params).then((res) =>{
93
+        if (res.data.state == 1){
94
+          this.$message.success("添加成功");
95
+          // this.closePop();
96
+          this.$parent.$parent.pli();
97
+          this.$parent.$parent.search();
98
+        }else {
99
+          this.$message.error("新增失败:" + res.data.msg);
100
+        }
101
+      })
102
+    },
103
+    handleSelect(item){
104
+      this.form.patient_name = item.id
105
+    },
106
+    //审核通过
107
+    examine(){
108
+      this.trial_status = 1
109
+    },
110
+    //清除表单数据
111
+    closePop(){
112
+      // alert("清除");
113
+      this.form.patient_name = "";
114
+      this.form.remarks = "";
115
+      this.form.money = 0;
116
+      this.trial_status = 0;
117
+    },
118
+  },
31 119
 };
32 120
 </script>
33 121
 

+ 109 - 11
src/xt_pages/DepositManagement/Template/refundAdd.vue View File

@@ -1,33 +1,131 @@
1 1
 <template>
2 2
   <div>
3
-    <el-form ref="form" :model="form" label-width="80px">
3
+    <el-form ref="form" :model="form" :rules="rules" label-width="80px">
4 4
       <el-form-item label="申请编号">
5
-        <span>{{form.id}}</span>
5
+        <span>{{form.code}}</span>
6 6
       </el-form-item>
7
-      <el-form-item label="患者名称">
8
-        <el-input v-model="form.patient_name"></el-input>
7
+      <el-form-item label="患者名称" prop="patient_name">
8
+<!--        <el-input v-model="form.patient_name"></el-input>-->
9
+        <el-select v-model="form.patient_name" clearable filterable placeholder="请输入患者名称" @select="handleSelect" @change="updateconfig"><!--@change="updateconfig1(h1)"-->
10
+          <el-option
11
+            v-for="item in users"
12
+            :key="item.id"
13
+            :label="item.name"
14
+            :value="item.id"
15
+          >
16
+          </el-option>
17
+        </el-select>
9 18
       </el-form-item>
10
-      <el-form-item label="押金余额">
11
-        <span>{{form.id}}</span>
19
+      <el-form-item label="押金余额" prop="decote">
20
+        <span>{{decote}}</span>
12 21
       </el-form-item>
13
-     <el-form-item label="退款金额">
14
-        <el-input v-model="form.patient_name"></el-input>元
22
+     <el-form-item label="退款金额" prop="money">
23
+        <el-input v-model="form.money"></el-input>元
15 24
       </el-form-item>
16 25
     </el-form>
17 26
   </div>
18 27
 </template>
19 28
 <script>
29
+import {
30
+  getdeletecode,
31
+  gethisuser,
32
+  idtobalance,
33
+  refundapplication
34
+}from "@/api/deposit";
20 35
 export default {
21 36
   data() {
22 37
     return {
23 38
       form: {
24 39
         remarks:"",
25
-        id:"HSG47565",
26
-        patient_name:"",
27
-        money:0
40
+        code:"",//编号
41
+        patient_name:"",//患者名称
42
+        money:0//退款金额
43
+      },
44
+      users:[],//可用患者列表
45
+      trial_status:0,//审核
46
+      decote:0,//押金余额
47
+      rules: {
48
+        patient_name:[{
49
+          required:true,message:"患者姓名不能为空",trigger: "change"
50
+        }],
51
+        money:[{
52
+          required:true,message:"退款金额不能为空",trigger: "change"
53
+        }],
28 54
       },
29 55
     };
30 56
   },
57
+  methods:{
58
+    //获取编号
59
+    getcode(){
60
+      console.log("decote获取编号",this.decote)
61
+      var params = {}
62
+      getdeletecode(params).then((res) => {
63
+        if(res.data.state == 1){
64
+          this.form.code = res.data.data.list;
65
+        }
66
+      })
67
+    },
68
+    //获取患者列表
69
+    getusername(){
70
+      console.log("decote获取患者列表",this.decote)
71
+      var params = {};
72
+      gethisuser(params).then((res) =>{
73
+        if (res.data.state == 1){
74
+          this.users = res.data.data.list;
75
+        }
76
+      })
77
+    },
78
+    //获取用户押金余额
79
+    updateconfig(){
80
+      console.log("this.name",this.form.patient_name);
81
+      var params = {
82
+        his_patient_id: this.form.patient_name,
83
+      }
84
+      idtobalance(params).then((res) => {
85
+        if (res.data.state == 1){
86
+          this.decote = res.data.data.list;
87
+        }
88
+      })
89
+    },
90
+    handleSelect(item){
91
+      this.form.patient_name = item.id;
92
+
93
+    },
94
+
95
+    //提交
96
+    subfrom(){
97
+      var params = {
98
+        code: this.form.code,
99
+        his_patient_id: this.form.patient_name,
100
+        deposit: this.form.money,
101
+        trial_status: this.trial_status,
102
+      }
103
+      refundapplication(params).then((res) =>{
104
+        if (res.data.state == 1){
105
+          this.$message.success("添加成功");
106
+          // this.closePop();
107
+          this.$parent.$parent.pli();
108
+          this.$parent.$parent.search();
109
+        }else {
110
+          this.$message.error("新增失败:" + res.data.msg);
111
+        }
112
+      })
113
+    },
114
+    //审核通过
115
+    examine(){
116
+      this.trial_status = 1
117
+      alert(this.trial_status)
118
+    },
119
+    //清除表单数据
120
+    closePop(){
121
+      // alert("清除");
122
+      this.form.patient_name = "";
123
+      this.form.remarks = "";
124
+      this.form.money = 0;
125
+      this.trial_status = 0;
126
+      this.decote = 0;
127
+    },
128
+  }
31 129
 };
32 130
 </script>
33 131
 

+ 142 - 0
src/xt_pages/DepositManagement/Template/refundUpdate.vue View File

@@ -0,0 +1,142 @@
1
+<template>
2
+  <div>
3
+    <el-form ref="form" :model="form" :rules="rules" label-width="80px">
4
+      <el-form-item label="申请编号">
5
+        <span>{{form.code}}</span>
6
+      </el-form-item>
7
+      <el-form-item label="患者名称" prop="patient_name">
8
+        <!--        <el-input v-model="form.patient_name"></el-input>-->
9
+        <el-select v-model="form.patient_name" clearable filterable placeholder="请输入患者名称" @select="handleSelect" @change="updateconfig"><!--@change="updateconfig1(h1)"-->
10
+          <el-option
11
+            v-for="item in users"
12
+            :key="item.id"
13
+            :label="item.name"
14
+            :value="item.id"
15
+          >
16
+          </el-option>
17
+        </el-select>
18
+      </el-form-item>
19
+      <el-form-item label="押金余额" prop="decote">
20
+        <span>{{decote}}</span>
21
+      </el-form-item>
22
+      <el-form-item label="退款金额" prop="money">
23
+        <el-input v-model="form.money"></el-input>元
24
+      </el-form-item>
25
+    </el-form>
26
+  </div>
27
+</template>
28
+<script>
29
+import {
30
+  gethisuser,
31
+  idtobalance,
32
+  changerefund
33
+}from "@/api/deposit";
34
+export default {
35
+  data() {
36
+    return {
37
+      id:"",
38
+      form: {
39
+        remarks:"",
40
+        code:"",//编号
41
+        patient_name:"",//患者名称
42
+        money:0//退款金额
43
+      },
44
+      users:[],//可用患者列表
45
+      trial_status:0,//审核
46
+      decote:0,//押金余额
47
+      rules: {
48
+        patient_name:[{
49
+          required:true,message:"患者姓名不能为空",trigger: "change"
50
+        }],
51
+        money:[{
52
+          required:true,message:"退款金额不能为空",trigger: "change"
53
+        }],
54
+      },
55
+    };
56
+  },
57
+  methods:{
58
+    //获取信息
59
+    getinformation(data,type){
60
+      this.form.code = data.deposit_code;
61
+      this.form.patient_name = data.his_patient_id;
62
+      this.form.money = data.deposit;
63
+      this.trial_status = data.trial_status,
64
+      this.id = data.id;
65
+    },
66
+    //获取患者列表
67
+    getusername(){
68
+      console.log("decote获取患者列表",this.decote)
69
+      var params = {};
70
+      gethisuser(params).then((res) =>{
71
+        if (res.data.state == 1){
72
+          this.users = res.data.data.list;
73
+        }
74
+      })
75
+    },
76
+    //获取用户押金余额
77
+    updateconfig(){
78
+      console.log("this.name",this.form.patient_name);
79
+      var params = {
80
+        his_patient_id: this.form.patient_name,
81
+      }
82
+      idtobalance(params).then((res) => {
83
+        if (res.data.state == 1){
84
+          this.decote = res.data.data.list;
85
+        }
86
+      })
87
+    },
88
+    handleSelect(item){
89
+      this.form.patient_name = item.id;
90
+
91
+    },
92
+
93
+    //提交
94
+    subfrom(){
95
+      var params = {
96
+        id: this.id,
97
+        code: this.form.code,
98
+        his_patient_id: this.form.patient_name,
99
+        deposit: this.form.money,
100
+        trial_status: this.trial_status,
101
+      }
102
+      changerefund(params).then((res) =>{
103
+        if (res.data.state == 1){
104
+          this.$message.success("保存成功");
105
+          // this.closePop();
106
+          this.$parent.$parent.pli02();
107
+          this.$parent.$parent.search();
108
+        }else {
109
+          this.$message.error("保存失败:" + res.data.msg);
110
+        }
111
+      })
112
+    },
113
+    //审核通过
114
+    examine(){
115
+      if(this.trial_status == 1){
116
+        alert("已审核")
117
+      }
118
+      this.trial_status = 1
119
+
120
+    },
121
+    //清除表单数据
122
+    closePop(){
123
+      // alert("清除");
124
+      this.form.patient_name = "";
125
+      this.form.remarks = "";
126
+      this.form.money = 0;
127
+      this.trial_status = 0;
128
+      this.decote = 0;
129
+    },
130
+  }
131
+};
132
+</script>
133
+
134
+<style scoped>
135
+.el-input{
136
+  width: 50%;
137
+}
138
+
139
+.el-textarea{
140
+  width: 65%;
141
+}
142
+</style>

+ 35 - 3
src/xt_pages/DepositManagement/print/printindex.vue View File

@@ -12,17 +12,19 @@
12 12
         <div class="dialysis-print-order">
13 13
           <div class="print">
14 14
             <h2>收据凭证</h2>
15
-            <p>收款日期: 2022年4月27日</p>
15
+            <p>收款日期: {{ time }}</p>
16 16
             <div class="content">
17 17
               <div style="display: flex; padding: 0 30px">
18 18
                 <div style="display: flex">
19 19
                   <div>收款单位:</div>
20
+                  <span>{{name}}</span>
20 21
                   <div
21 22
                     style="min-width: 224px; border-bottom: 1px solid #000"
22 23
                   ></div>
23 24
                 </div>
24 25
                 <div style="display: flex">
25 26
                   <div>收款方式:</div>
27
+                  <span>现金</span>
26 28
                   <div
27 29
                     style="min-width: 224px; border-bottom: 1px solid #000"
28 30
                   ></div>
@@ -30,13 +32,15 @@
30 32
               </div>
31 33
               <div style="display: flex; padding: 0 30px">
32 34
                 <div>人民币:</div>
33
-                ¥
35
+                ¥{{money}}
34 36
                 <div
35 37
                   style="min-width: 225px; border-bottom: 1px solid #000"
36 38
                 ></div>
37 39
               </div>
38 40
               <div style="display: flex; padding: 0 30px">
39 41
                 <div>收款是由:</div>
42
+<!--                <span>{{ li }}</span>-->
43
+                <span>预交押金</span>
40 44
                 <div style="width: 86%; border-bottom: 1px solid #000"></div>
41 45
               </div>
42 46
             </div>
@@ -48,6 +52,9 @@
48 52
 </template>
49 53
 <script>
50 54
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
55
+import {
56
+  getorgname
57
+}from "@/api/deposit";
51 58
 export default {
52 59
   components: {
53 60
     BreadCrumb,
@@ -58,9 +65,34 @@ export default {
58 65
         { path: false, name: "押金管理" },
59 66
         { path: "/DepositManagement/DepositSearch", name: "打印凭证" },
60 67
       ],
68
+      name:"",//机构名称
69
+      time:"",//日期
70
+      money:"",//金额
61 71
     };
62 72
   },
73
+  created(){
74
+    this.init();
75
+    this.getname();
76
+  },
63 77
   methods: {
78
+    //获取机构名称
79
+    getname(){
80
+      var params = {};
81
+      getorgname(params).then((res) =>{
82
+        if (res.data.state == 1){
83
+          this.name = res.data.data.list;
84
+        }
85
+      })
86
+    },
87
+    init(){
88
+      this.money = this.$route.query.key.deposit
89
+      var tmp = this.$route.query.key.starttime
90
+      this.time = tmp.slice(0,4)+"年"+tmp.slice(5,7)+"月"+tmp.slice(8,10)+"日"
91
+      // this.li = this.time.slice(0,4)
92
+      // alert(this.time.slice(0,4))
93
+      // alert(this.time.slice(5,7))
94
+      // alert(this.time.slice(8,10))
95
+    },
64 96
     to_print() {
65 97
       const style =
66 98
         '@media print {.dialysis-print-order{width:960px;margin:0 auto} .print h2{text-align: center;} .print p{width: 85%;text-align: right;} .content{width: 70%;height: 250px;border: 1px solid #000;margin: 20px auto;display: flex;flex-direction: column;justify-content: space-evenly;}';
@@ -99,4 +131,4 @@ export default {
99 131
   flex-direction: column;
100 132
   justify-content: space-evenly;
101 133
 }
102
-</style>
134
+</style>

+ 28 - 8
src/xt_pages/data/basicConfig.vue View File

@@ -23,6 +23,8 @@
23 23
           <p style="font-size:14px;margin-top:5px;color:#333;">开启门诊处方同步到透析医嘱后,同一个患者,门诊医生站开的药品类处方自动同步到透析管理临时医嘱中,同时在透析管理中,给患者开长期医嘱和临时医嘱的功能失效,医生只能在门诊医生站开处方,只有同时使用门诊管理和透析管理的机构方可开启。</p>
24 24
           <p style="margin-top:20px;">门诊处方同步到透析医嘱:
25 25
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
26
+          <p style="margin-top:20px;">门诊处方和临时医嘱同步到透析医嘱:
27
+          <el-switch v-model="is_open_advice_xt_his" @change="changeFuncSix"></el-switch>
26 28
           </p>
27 29
         </div>
28 30
 
@@ -90,7 +92,7 @@
90 92
 
91 93
 <script>
92 94
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
93
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting} from '@/api/config'
95
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig} from '@/api/config'
94 96
 
95 97
 export default {
96 98
   name: "printTemplate",
@@ -109,6 +111,7 @@ export default {
109 111
       is_open_print:false,
110 112
       is_open_xt_his_project: false,
111 113
       is_open_is_type:false,
114
+      is_open_advice_xt_his:false,
112 115
     };
113 116
   },
114 117
   methods: {
@@ -136,6 +139,12 @@ export default {
136 139
               this.is_open_is_type = false
137 140
             }
138 141
 
142
+            if(response.data.data.is_open_advice == 1){
143
+              this.is_open_advice_xt_his = true
144
+            }else{
145
+              this.is_open_advice_xt_his = false
146
+            }
147
+
139 148
           } else {
140 149
             this.$message.error(response.data.msg)
141 150
           }
@@ -205,10 +214,7 @@ export default {
205 214
         )
206 215
       }
207 216
     },
208
-
209
-
210 217
     changeFuncTwo(){
211
-      console.log("3333333",this.is_open_monitor)
212 218
       var is_open = 0
213 219
       if(this.is_open_monitor == true){
214 220
           is_open = 1
@@ -219,7 +225,6 @@ export default {
219 225
       let params = {
220 226
          is_open:is_open,
221 227
        }
222
-     console.log("params",params)
223 228
       postMonitorIsOpen(params).then(response=>{
224 229
          if(response.data.state == 1){
225 230
             var config = response.data.data.config
@@ -232,7 +237,6 @@ export default {
232 237
       getMonitorConfig().then(response=>{
233 238
          if(response.data.state == 1){
234 239
            var config =  response.data.data.config
235
-           console.log("config",config)
236 240
            if (config.is_open == 1) {
237 241
               this.is_open_monitor = true
238 242
            }
@@ -277,7 +281,6 @@ export default {
277 281
     },
278 282
 
279 283
     changeFuncPrint(val){
280
-      console.log("val22222",val)
281 284
       var is_open  = 0
282 285
       if(val == true){
283 286
          is_open = 1
@@ -302,7 +305,6 @@ export default {
302 305
       getDataPrintList().then(response=>{
303 306
          if(response.data.state ==1){
304 307
            var dataPrint = response.data.data.dataPrint
305
-           console.log("列表数据",dataPrint)
306 308
            if(dataPrint.is_open == 1){
307 309
               this.is_open_print = true
308 310
            }
@@ -328,6 +330,24 @@ export default {
328 330
            this.$message.success("保存成功!")
329 331
         }
330 332
       })
333
+    },
334
+    changeFuncSix(){
335
+      var is_advice_open = 2
336
+      if(this.is_open_advice_xt_his == false){
337
+        is_advice_open = 2
338
+      }
339
+      if(this.is_open_advice_xt_his == true){
340
+        is_advice_open = 1
341
+      }
342
+      var params = {
343
+        is_advice_open:is_advice_open,
344
+      }
345
+      changeAdviceConfig(params).then(response=>{
346
+         if(response.data.state == 1){
347
+          var msg =  response.data.data.msg
348
+          this.$message.success("保存成功!")
349
+         }
350
+      })
331 351
     }
332 352
 
333 353
   },

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

@@ -1135,6 +1135,7 @@
1135 1135
                             执行人签名
1136 1136
                           </td>
1137 1137
                           <td style="font-size: 16px" width="10%">时间</td>
1138
+                          <td style="font-size: 16px" width="10%" v-if="org_id == 10223">核对者</td>
1138 1139
                         </tr>
1139 1140
                         <!-- <template v-for="group in doctor_advices" > -->
1140 1141
                         <tr
@@ -1238,6 +1239,28 @@
1238 1239
                               getTime(advice[0].execution_time, " {h}:{i}")
1239 1240
                             }}</span>
1240 1241
                           </td>
1242
+
1243
+                          <td height="35px" v-if="org_id == 10223">
1244
+                            <span
1245
+                              v-if="
1246
+                                setAdminUserES(advice[0], 'checker') ==
1247
+                                  ''
1248
+                              "
1249
+                              >{{
1250
+                                getAdminUser(advice[0], "checker")
1251
+                              }}</span
1252
+                            >
1253
+                            <img
1254
+                              class="es-img"
1255
+                              :src="
1256
+                                setAdminUserES(advice[0], 'checker')
1257
+                              "
1258
+                              alt=""
1259
+                              srcset=""
1260
+                              v-else
1261
+                              style="height: 40px;"
1262
+                            />
1263
+                          </td>
1241 1264
                         </tr>
1242 1265
                         <!-- </template> -->
1243 1266
                       </tbody>
@@ -2174,10 +2197,12 @@ export default {
2174 2197
               var item = this.records[recordIndex].advices[index];
2175 2198
               if (item.id in childMap) {
2176 2199
                 item.children = childMap[item.id];
2200
+                // advices.push(childMap[item.id]);
2177 2201
               } else {
2178 2202
                 item.children = [];
2179 2203
               }
2180 2204
               advices.push(item);
2205
+              
2181 2206
             }
2182 2207
 
2183 2208
             var leftAdvice = [];
@@ -2378,8 +2403,6 @@ export default {
2378 2403
       }
2379 2404
     },
2380 2405
     getAdminUser(key, id) {
2381
-      console.log("key", key);
2382
-      console.log("id", id);
2383 2406
       if (
2384 2407
         typeof key === "undefined" ||
2385 2408
         key == null ||

+ 1 - 10
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -319,16 +319,7 @@
319 319
           >批量打印</el-button
320 320
         >
321 321
       </template>
322
-      <!-- <template v-if="this.template_id == 48">
323
-        <el-button
324
-          size="small"
325
-          icon="el-icon-printer"
326
-          :disabled="selecting_schs.length == 0"
327
-          @click="batchPrintAction"
328
-          type="primary"
329
-          >批量打印</el-button
330
-        >
331
-      </template> -->
322
+
332 323
     </div>
333 324
     <div class="app-container">
334 325
       <!-- <div class="filter-container">

+ 18 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -687,6 +687,18 @@
687 687
             </template>
688 688
           </el-table-column>
689 689
 
690
+          <el-table-column
691
+            prop="heparin"
692
+            align="center"
693
+            label="血容量(L)"
694
+            width="140"
695
+            v-if="isShow('血容量')"
696
+          >
697
+            <template slot-scope="scope">
698
+              {{ scope.row.accumulated_blood_volume }}
699
+            </template>
700
+          </el-table-column>
701
+
690 702
           <el-table-column
691 703
             prop="heparin"
692 704
             align="center"
@@ -1312,6 +1324,12 @@
1312 1324
             </el-form-item>
1313 1325
           </el-col>
1314 1326
 
1327
+          <el-col :span="8" v-if="isShow('血容量')">
1328
+            <el-form-item label="血容量(L):">
1329
+              <el-input v-model="form.accumulated_blood_volume"></el-input>
1330
+            </el-form-item>
1331
+          </el-col>
1332
+
1315 1333
           <el-col :span="8" v-if="isShow('血温监测')">
1316 1334
             <el-form-item label="血温监测">
1317 1335
               <el-input v-model="form.blood_temperature"></el-input>

+ 2 - 0
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -33,6 +33,7 @@
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35 35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量(ml)</th>
36
+          <th v-if="isShow('血容量')" width="92px">血容量(ml)</th>
36 37
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
37 38
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
38 39
           <th v-if="isShow('血浓量')" width="92px">血浓量</th>
@@ -80,6 +81,7 @@
80 81
             <span v-if="monitor.monitor_anticoagulant_value!=''">({{monitor.monitor_anticoagulant_value ? monitor.monitor_anticoagulant_value : ""  }})</span>
81 82
           </td>
82 83
           <th v-if="isShow('累计血容量')" width="92px">{{monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : ""}}</th>
84
+          <th v-if="isShow('血容量')" width="92px">{{monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : ""}}</th>
83 85
           <th v-if="isShow('血温监测')" width="92px">{{monitor.blood_temperature ? monitor.blood_temperature : ""}}</th>
84 86
           <th v-if="isShow('尿素监测')" width="92px">{{monitor.urea_monitoring ? monitor.urea_monitoring : ""}}</th>
85 87
           <th v-if="isShow('血浓量')" width="92px">{{monitor.blood_thickness ? monitor.blood_thickness : ""}}</th>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortyEight.vue View File

@@ -134,7 +134,7 @@
134 134
             <td style="text-align: left" colspan="1">
135 135
               <span style="display: inline-block; margin-left: 15px">
136 136
                 上次透后体重:
137
-                {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
137
+                {{ predialysis.weight_after_last_transparency?predialysis.weight_after_last_transparency:'/' }}kg
138 138
               </span>
139 139
             </td>
140 140
             <td style="text-align: left" colspan="2">

+ 5 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -667,6 +667,7 @@
667 667
                         <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
668 668
                         <td style="font-size: 16px" width="10%">执行人签名</td>
669 669
                         <td style="font-size: 16px" width="10%">时间</td>
670
+                        <td style="font-size: 16px" width="10%" v-if="org_id == 10223">核对护士</td>
670 671
                       </tr>
671 672
                       <!-- <template v-for="group in doctor_advices" > -->
672 673
 
@@ -708,6 +709,10 @@
708 709
                         <td height="32px">
709 710
                           <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
710 711
                         </td>
712
+                        <td height="32px" v-if="org_id == 10223">
713
+                          <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker) }}</span>
714
+                          <img style="height:30px" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else />
715
+                        </td>
711 716
                       </tr>
712 717
                       <!-- </template> -->
713 718
                     </tbody>

+ 61 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -2293,6 +2293,44 @@ export default {
2293 2293
 
2294 2294
                 }
2295 2295
 
2296
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2297
+                  if(this.prescriptions[i].advices[b].delivery_way == "" ){
2298
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
2299
+                    this.$emit('editKeepLoad', false)
2300
+                    return
2301
+                  }
2302
+                  if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2303
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
2304
+                    this.$emit('editKeepLoad', false)
2305
+                    return
2306
+                  }
2307
+                  if(this.prescriptions[i].advices[b].day == NaN){
2308
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2309
+                    this.$emit('editKeepLoad', false)
2310
+                    return
2311
+                  }
2312
+                  if(this.prescriptions[i].advices[b].day == 0){
2313
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
2314
+                    this.$emit('editKeepLoad', false)
2315
+                    return
2316
+                  }
2317
+                  if(this.prescriptions[i].advices[b].prescribing_number == ""){
2318
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
2319
+                    this.$emit('editKeepLoad', false)
2320
+                    return
2321
+                  }
2322
+                  if(this.prescriptions[i].advices[b].prescribing_number == "0"){
2323
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
2324
+                    this.$emit('editKeepLoad', false)
2325
+                    return
2326
+                  }
2327
+                  if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
2328
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
2329
+                    this.$emit('editKeepLoad', false)
2330
+                    return
2331
+                  }
2332
+                }
2333
+
2296 2334
                 for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2297 2335
                   this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2298 2336
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
@@ -2301,6 +2339,29 @@ export default {
2301 2339
 
2302 2340
                 }
2303 2341
 
2342
+                // for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2343
+                //   if(this.prescriptions[i].project[b].delivery_way == "" ){
2344
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2345
+                //     this.$emit('editKeepLoad', false)
2346
+                //     return
2347
+                //   }
2348
+                //   if(this.prescriptions[i].project[b].execution_frequency == "" ){
2349
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2350
+                //     this.$emit('editKeepLoad', false)
2351
+                //     return
2352
+                //   }
2353
+                //   if(this.prescriptions[i].project[b].day == " "){
2354
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2355
+                //     this.$emit('editKeepLoad', false)
2356
+                //     return
2357
+                //   }
2358
+                //   if(this.prescriptions[i].project[b].day == "0"){
2359
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2360
+                //     this.$emit('editKeepLoad', false)
2361
+                //     return
2362
+                //   }
2363
+                // }
2364
+
2304 2365
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2305 2366
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2306 2367
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)

+ 97 - 16
src/xt_pages/hospitalStation/components/deskRecord.vue View File

@@ -11,16 +11,16 @@
11 11
     <div class="mainTitle">基本信息:</div>
12 12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
13 13
       <el-form-item label="姓名:" prop="name">
14
-        <el-input v-model="patientInfo.name" placeholder="" :disabled="true"></el-input>
14
+        <el-input v-model="patientInfo.name" placeholder="姓名" :disabled="true"></el-input>
15 15
       </el-form-item>
16 16
       <el-form-item label="性别: " prop="name">
17
-        <el-input v-model="patientInfo.gender" placeholder="" :disabled="true"></el-input>
17
+        <el-input v-model="patientInfo.gender" placeholder="性别" :disabled="true"></el-input>
18 18
       </el-form-item>
19 19
       <el-form-item label="年龄: " prop="name">
20
-        <el-input v-model="patientInfo.age" placeholder="" :disabled="true"></el-input>
20
+        <el-input v-model="patientInfo.age" placeholder="年龄" :disabled="true"></el-input>
21 21
       </el-form-item>
22 22
       <el-form-item label="证件号:" prop="name">
23
-        <el-input v-model="patientInfo.id_card_no" placeholder="" :disabled="true"></el-input>
23
+        <el-input v-model="patientInfo.id_card_no" placeholder="证件号" :disabled="true"></el-input>
24 24
       </el-form-item>
25 25
       <el-form-item label="出生日期: " prop="name">
26 26
         <el-date-picker
@@ -32,7 +32,7 @@
32 32
         </el-date-picker>
33 33
       </el-form-item>
34 34
       <el-form-item label="联系电话: " prop="name">
35
-        <el-input v-model="patientInfo.phone" placeholder="" :disabled="true"></el-input>
35
+        <el-input v-model="patientInfo.phone" placeholder="联系电话" :disabled="true"></el-input>
36 36
       </el-form-item>
37 37
       <el-form-item label="医保类型: " prop="name">
38 38
         <el-select v-model="delivery_way" style="width:100%;" placeholder="请选择">
@@ -45,33 +45,79 @@
45 45
         </el-select>
46 46
       </el-form-item>
47 47
       <el-form-item label="医保证号: " prop="name">
48
-        <el-input v-model="patientInfo.health_care_no" placeholder="" :disabled="true"></el-input>
48
+        <el-input v-model="patientInfo.health_care_no" placeholder="医保证号" :disabled="true"></el-input>
49 49
       </el-form-item>
50 50
       <el-form-item label="家庭住址: " prop="name">
51
-        <el-input v-model="patientInfo.home_address" placeholder="" :disabled="true"></el-input>
51
+        <el-input v-model="patientInfo.home_address" placeholder="家庭住址" :disabled="true"></el-input>
52 52
       </el-form-item>
53
-      <el-form-item label="过敏史: " prop="name">
54
-        <el-input v-model="allergic_history" placeholder=""></el-input>
53
+      <el-form-item label="药物过敏史: " prop="name">
54
+        <el-input v-model="allergic_history" placeholder="药物过敏史"></el-input>
55 55
       </el-form-item>
56
+<!-- 
57
+  <el-form-item label="初始透析日期: " prop="name">
58
+         <el-date-picker
59
+          :disabled="true"
60
+          style="width:100%;"
61
+          v-model="first_dialysis_date"
62
+          type="date"
63
+          placeholder="选择日期">
64
+        </el-date-picker>
65
+      </el-form-item>
66
+
67
+      <el-form-item label="工作单位: " prop="name">
68
+         <el-input v-model="patientInfo.work_unit" placeholder="工作单位"  :disabled="true"></el-input>
69
+      </el-form-item>
70
+
71
+      <el-form-item label="原发病: " prop="name">
72
+        <el-input v-model="primary_disease" placeholder="原发病"></el-input>
73
+      </el-form-item>
74
+      
75
+  
76
+
77
+      <el-form-item label="确诊肾衰日期: " prop="name">
78
+         <el-date-picker
79
+          format="yyyy-MM-dd"
80
+          value-format="yyyy-MM-dd"
81
+          style="width:100%;"
82
+          v-model="confirm_failure_date"
83
+          type="date"
84
+          placeholder="选择日期">
85
+        </el-date-picker>
86
+      </el-form-item>
87
+     
88
+
89
+
90
+      <el-form-item label="体格检查: " prop="name">
91
+        <el-input v-model="physical_examination" placeholder="体格检查"></el-input>
92
+      </el-form-item>
93
+
94
+       <el-form-item label="专科检查: " prop="name">
95
+        <el-input v-model="special_inspection" placeholder="专科检查"></el-input>
96
+      </el-form-item>
97
+
98
+      <el-form-item label="实验室及器械检查: " prop="name" label-width="160px">
99
+        <el-input v-model="lab_apparatus" placeholder="实验室及器械检查"></el-input>
100
+      </el-form-item> -->
101
+
56 102
     </el-form>
57 103
     <div class="mainTitle">体格信息:</div>
58 104
     <el-form class="physiqueForm" :model="case_history" ref="form" label-width="80px">
59 105
       <el-form-item label="体温:" prop="temperature">
60
-        <el-input v-model="case_history.temperature" placeholder=""></el-input>
106
+        <el-input v-model="case_history.temperature" placeholder="体温"></el-input>
61 107
         <span>℃</span>
62 108
       </el-form-item>
63 109
       <el-form-item label="脉搏: " prop="pulse">
64
-        <el-input v-model="case_history.pulse" placeholder=""></el-input>
110
+        <el-input v-model="case_history.pulse" placeholder="脉搏"></el-input>
65 111
         (次/分)
66 112
       </el-form-item>
67 113
       <el-form-item label="呼吸: " prop="breathing">
68
-        <el-input v-model="case_history.breathing" placeholder=""></el-input>
114
+        <el-input v-model="case_history.breathing" placeholder="呼吸"></el-input>
69 115
         (次/分)
70 116
       </el-form-item>
71 117
       <el-form-item label="血压:" prop="name">
72
-        <el-input v-model="case_history.sbp" placeholder=""></el-input>
118
+        <el-input v-model="case_history.sbp" placeholder="血压"></el-input>
73 119
         /
74
-        <el-input v-model="case_history.dbp" placeholder=""></el-input>
120
+        <el-input v-model="case_history.dbp" placeholder="血压"></el-input>
75 121
         mmHg
76 122
       </el-form-item>
77 123
     </el-form>
@@ -314,6 +360,14 @@
314 360
         diagnoses:[],
315 361
         sick:[],
316 362
         allergic_history:"",
363
+        primary_disease:"",
364
+        confirm_failure_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
365
+        drug_allergy_history:"",
366
+        start_dialysis_date:"",
367
+        physical_examination:"",
368
+        special_inspection:"",
369
+        lab_apparatus:"",
370
+        first_dialysis_date:"",
317 371
         form:{
318 372
           id:0,
319 373
         },
@@ -371,6 +425,12 @@
371 425
             "diagnose":this.case_history.diagnose,
372 426
             "allergic_history":this.allergic_history,
373 427
             "id":this.form.id,
428
+            "primary_disease":this.primary_disease,
429
+            "confirm_failure_date":this.confirm_failure_date,
430
+            "drug_allergy_history":this.drug_allergy_history,
431
+            "physical_examination":this.physical_examination,
432
+            "special_inspection":this.special_inspection,
433
+            "lab_apparatus":this.lab_apparatus,
374 434
           };
375 435
           console.log("prams222",params);
376 436
           createCaseHistory(params).then(response => {
@@ -381,6 +441,14 @@
381 441
             } else {
382 442
               var caseHistory = response.data.data.caseHistory;
383 443
               console.log("caseHistory",caseHistory);
444
+              
445
+              this.primary_disease = caseHistory.primary_disease
446
+              this.confirm_failure_date = this.getTime(caseHistory.confirm_failure_date)
447
+              this.drug_allergy_history = caseHistory.drug_allergy_history
448
+              this.physical_examination = caseHistory.physical_examination
449
+              this.special_inspection = caseHistory.special_inspection
450
+              this.lab_apparatus = caseHistory.lab_apparatus
451
+
384 452
               this.$message.success("保存成功");
385 453
               this.doctor_advice = "";
386 454
               this.remark = "";
@@ -538,16 +606,22 @@
538 606
       },
539 607
     },
540 608
     created(){
609
+     
541 610
        this.getlist();
542 611
        this.getInitData();
543 612
        this.wayOptions = getDataConfig("patient", "reimbursement_ways");
544
-       console.log("232322323",this);
613
+       console.log("232322323",this.case_history);
545 614
        if(this.patientInfo.gender = 1){
546 615
          this.patientInfo.gender = '男'
547 616
        }else if(this.patientInfo.gender = 2){
548 617
           this.patientInfo.gender = '女'
549 618
         }
550
-
619
+      this.primary_disease = this.case_history.primary_disease
620
+      this.confirm_failure_date = this.case_history.confirm_failure_date
621
+      this.drug_allergy_history = this.case_history.drug_allergy_history
622
+      this.physical_examination = this.case_history.physical_examination
623
+      this.special_inspection = this.case_history.special_inspection
624
+      this.lab_apparatus = this.case_history.lab_apparatus
551 625
     },
552 626
     watch:{
553 627
       detalid:function(val){
@@ -579,7 +653,14 @@
579 653
           }
580 654
           this.form.id = this.case_history.id;
581 655
           this.allergic_history = this.case_history.allergic_history;
656
+          this.primary_disease = this.case_history.primary_disease
657
+          this.confirm_failure_date = this.case_history.confirm_failure_date
658
+          this.drug_allergy_history = this.case_history.drug_allergy_history
659
+          this.physical_examination = this.case_history.physical_examination
660
+          this.special_inspection = this.case_history.special_inspection
661
+          this.lab_apparatus = this.case_history.lab_apparatus
582 662
           this.watchSign++
663
+
583 664
         },
584 665
         deep:true
585 666
       },

+ 65 - 6
src/xt_pages/hospitalStation/doctorDesk.vue View File

@@ -14,7 +14,6 @@
14 14
                         :editable="false"
15 15
                         style="width: 100%;"
16 16
                         type="date"
17
-                        :picker-options="pickerOptions"
18 17
                         placeholder="选择开始时间"
19 18
                         align="right"
20 19
                         format="yyyy-MM-dd"
@@ -1102,6 +1101,7 @@
1102 1101
             this.patientInfo = response.data.data.xt_info
1103 1102
             this.hisPatientInfo = response.data.data.his_info
1104 1103
             this.case_history = response.data.data.case_history
1104
+            console.log("电子比你2333223232323232323232323",this.case_history)
1105 1105
             this.info = response.data.data.info
1106 1106
             this.last_info = response.data.data.last_info
1107 1107
             this.schedule = response.data.data.schedule
@@ -1157,7 +1157,15 @@
1157 1157
             } else {
1158 1158
               this.case_history.is_infect = false
1159 1159
             }
1160
-
1160
+            
1161
+            this.case_history.primary_disease = this.case_history.primary_disease
1162
+            this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1163
+            this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1164
+            this.case_history.physical_examination = this.case_history.physical_examination
1165
+            this.case_history.special_inspection = this.case_history.special_inspection
1166
+            this.case_history.lab_apparatus = this.case_history.lab_apparatus
1167
+         
1168
+          
1161 1169
             //处方相关
1162 1170
             this.prescriptionList = response.data.data.prescription
1163 1171
 
@@ -1557,6 +1565,14 @@
1557 1565
                   } else {
1558 1566
                     this.case_history.is_infect = false
1559 1567
                   }
1568
+
1569
+                  this.case_history.primary_disease = this.case_history.primary_disease
1570
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1571
+                  this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1572
+                  this.case_history.physical_examination = this.case_history.physical_examination
1573
+                  this.case_history.special_inspection = this.case_history.special_inspection
1574
+                  this.case_history.lab_apparatus = this.case_history.lab_apparatus
1575
+                
1560 1576
                   this.prescriptionList = response.data.data.prescription
1561 1577
 
1562 1578
                   if (response.data.data.prescription.length > 0) {
@@ -2034,6 +2050,13 @@
2034 2050
                   } else {
2035 2051
                     this.case_history.is_infect = false
2036 2052
                   }
2053
+
2054
+                   this.case_history.primary_disease = this.case_history.primary_disease
2055
+                   this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
2056
+                   this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
2057
+                   this.case_history.physical_examination = this.case_history.physical_examination
2058
+                   this.case_history.special_inspection = this.case_history.special_inspection
2059
+                   this.case_history.lab_apparatus = this.case_history.lab_apparatus
2037 2060
                   this.prescriptionList = response.data.data.prescription
2038 2061
 
2039 2062
                   if (response.data.data.prescription.length > 0) {
@@ -2491,6 +2514,12 @@
2491 2514
                 } else {
2492 2515
                   this.case_history.is_infect = false
2493 2516
                 }
2517
+                this.case_history.primary_disease = this.case_history.primary_disease
2518
+                this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
2519
+                this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
2520
+                this.case_history.physical_examination = this.case_history.physical_examination
2521
+                this.case_history.special_inspection = this.case_history.special_inspection
2522
+                this.case_history.lab_apparatus = this.case_history.lab_apparatus
2494 2523
                 this.prescriptionList = response.data.data.prescription
2495 2524
 
2496 2525
                 if (response.data.data.prescription.length > 0) {
@@ -3007,7 +3036,13 @@
3007 3036
                   } else {
3008 3037
                     this.case_history.is_infect = false
3009 3038
                   }
3010
-                  this.prescriptionList = response.data.data.prescription
3039
+                   this.case_history.primary_disease = this.case_history.primary_disease
3040
+                    this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3041
+                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3042
+                    this.case_history.physical_examination = this.case_history.physical_examination
3043
+                    this.case_history.special_inspection = this.case_history.special_inspection
3044
+                    this.case_history.lab_apparatus = this.case_history.lab_apparatus
3045
+                 this.prescriptionList = response.data.data.prescription
3011 3046
 
3012 3047
                   if (response.data.data.prescription.length > 0) {
3013 3048
                     for (let i = 0; i < response.data.data.prescription.length; i++) {
@@ -3340,6 +3375,12 @@
3340 3375
                     this.case_history.sick_type = ''
3341 3376
                   }
3342 3377
                   this.case_history.sick_date = uParseTime(this.case_history.sick_date, '{y}-{m}-{d}')
3378
+                  this.case_history.primary_disease = this.case_history.primary_disease
3379
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3380
+                  this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3381
+                  this.case_history.physical_examination = this.case_history.physical_examination
3382
+                  this.case_history.special_inspection = this.case_history.special_inspection
3383
+                  this.case_history.lab_apparatus = this.case_history.lab_apparatus
3343 3384
                   if (this.case_history.is_infect == 1) {
3344 3385
                     this.case_history.is_infect = true
3345 3386
                   } else {
@@ -3440,7 +3481,12 @@
3440 3481
                     this.case_history.is_infect = false
3441 3482
                   }
3442 3483
                   this.prescriptionList = response.data.data.prescription
3443
-
3484
+                  this.case_history.primary_disease = this.case_history.primary_disease
3485
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3486
+                  this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3487
+                  this.case_history.physical_examination = this.case_history.physical_examination
3488
+                  this.case_history.special_inspection = this.case_history.special_inspection
3489
+                  this.case_history.lab_apparatus = this.case_history.lab_apparatus
3444 3490
                   if (response.data.data.prescription.length > 0) {
3445 3491
                     for (let i = 0; i < response.data.data.prescription.length; i++) {
3446 3492
                       var prescription = response.data.data.prescription[i]
@@ -3768,6 +3814,12 @@
3768 3814
                     this.case_history.sick_type = ''
3769 3815
                   }
3770 3816
                   this.case_history.sick_date = uParseTime(this.case_history.sick_date, '{y}-{m}-{d}')
3817
+                  this.case_history.primary_disease = this.case_history.primary_disease
3818
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3819
+                  this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3820
+                  this.case_history.physical_examination = this.case_history.physical_examination
3821
+                  this.case_history.special_inspection = this.case_history.special_inspection
3822
+                  this.case_history.lab_apparatus = this.case_history.lab_apparatus
3771 3823
                   if (this.case_history.is_infect == 1) {
3772 3824
                     this.case_history.is_infect = true
3773 3825
                   } else {
@@ -3938,7 +3990,9 @@
3938 3990
         }
3939 3991
       },
3940 3992
       handleClick() {
3941
-        if (this.titleType == '电子处方') {
3993
+        console.log("hhahdf adf adf ",this.titleType)
3994
+         console.log("radio ",this.radio)
3995
+        if (this.titleType == '电子处方' || this.titleType == "电子病历") {
3942 3996
           if (this.radio == 1) {
3943 3997
             this.un_cure_data.map(item => {
3944 3998
               if (item.id == this.patientid) {
@@ -3959,7 +4013,6 @@
3959 4013
             })
3960 4014
           }
3961 4015
         }
3962
-
3963 4016
       },
3964 4017
       savePrint() {
3965 4018
         //处方
@@ -4134,6 +4187,12 @@
4134 4187
             }
4135 4188
 
4136 4189
             this.case_history.sick_date = uParseTime(this.case_history.sick_date, '{y}-{m}-{d}')
4190
+            this.case_history.primary_disease = this.case_history.primary_disease
4191
+            this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
4192
+            this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4193
+            this.case_history.physical_examination = this.case_history.physical_examination
4194
+            this.case_history.special_inspection = this.case_history.special_inspection
4195
+            this.case_history.lab_apparatus = this.case_history.lab_apparatus
4137 4196
             if (this.case_history.is_infect == 1) {
4138 4197
               this.case_history.is_infect = true
4139 4198
             } else {

+ 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
 

+ 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"

+ 64 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2262,6 +2262,8 @@
2262 2262
                   return
2263 2263
                 }
2264 2264
               }
2265
+
2266
+
2265 2267
               this.$emit('editKeepLoad', true)
2266 2268
               let params = {
2267 2269
                 p_type: 2,
@@ -2293,6 +2295,44 @@
2293 2295
 
2294 2296
                 }
2295 2297
 
2298
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2299
+                  if(this.prescriptions[i].advices[b].delivery_way == "" ){
2300
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
2301
+                    this.$emit('editKeepLoad', false)
2302
+                    return
2303
+                  }
2304
+                  if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2305
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
2306
+                    this.$emit('editKeepLoad', false)
2307
+                    return
2308
+                  }
2309
+                  if(this.prescriptions[i].advices[b].day == NaN){
2310
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2311
+                    this.$emit('editKeepLoad', false)
2312
+                    return
2313
+                  }
2314
+                  if(this.prescriptions[i].advices[b].day == 0){
2315
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
2316
+                    this.$emit('editKeepLoad', false)
2317
+                    return
2318
+                  }
2319
+                  if(this.prescriptions[i].advices[b].prescribing_number == ""){
2320
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
2321
+                    this.$emit('editKeepLoad', false)
2322
+                    return
2323
+                  }
2324
+                  if(this.prescriptions[i].advices[b].prescribing_number == "0"){
2325
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
2326
+                    this.$emit('editKeepLoad', false)
2327
+                    return
2328
+                  }
2329
+                  if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
2330
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
2331
+                    this.$emit('editKeepLoad', false)
2332
+                    return
2333
+                  }
2334
+                }
2335
+
2296 2336
                 for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2297 2337
                   this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2298 2338
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
@@ -2301,6 +2341,29 @@
2301 2341
 
2302 2342
                 }
2303 2343
 
2344
+                // for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2345
+                //   if(this.prescriptions[i].project[b].delivery_way == "" ){
2346
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2347
+                //     this.$emit('editKeepLoad', false)
2348
+                //     return
2349
+                //   }
2350
+                //   if(this.prescriptions[i].project[b].execution_frequency == "" ){
2351
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2352
+                //     this.$emit('editKeepLoad', false)
2353
+                //     return
2354
+                //   }
2355
+                //   if(this.prescriptions[i].project[b].day == " "){
2356
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2357
+                //     this.$emit('editKeepLoad', false)
2358
+                //     return
2359
+                //   }
2360
+                //   if(this.prescriptions[i].project[b].day == "0"){
2361
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2362
+                //     this.$emit('editKeepLoad', false)
2363
+                //     return
2364
+                //   }
2365
+                // }
2366
+
2304 2367
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2305 2368
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2306 2369
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
@@ -3028,7 +3091,7 @@
3028 3091
                    good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3029 3092
                 }
3030 3093
               }
3031
-               console.log("耗材列表2323232322332",good_info)
3094
+               
3032 3095
               let obj = {
3033 3096
                 id: good_info[i].id,
3034 3097
                 project_name: good_info[i].good_name,

+ 94 - 35
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -11,13 +11,13 @@
11 11
     <div class="mainTitle">基本信息:</div>
12 12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
13 13
       <el-form-item label="姓名:" prop="name">
14
-        <el-input v-model="patientInfo.name" placeholder="" :disabled="true"></el-input>
14
+        <el-input v-model="patientInfo.name" placeholder="姓名" :disabled="true"></el-input>
15 15
       </el-form-item>
16 16
       <el-form-item label="性别: " prop="name">
17
-        <el-input v-model="patientInfo.gender" placeholder="" :disabled="true"></el-input>
17
+        <el-input v-model="patientInfo.gender" placeholder="性别" :disabled="true"></el-input>
18 18
       </el-form-item>
19 19
       <el-form-item label="年龄: " prop="name">
20
-        <el-input v-model="patientInfo.age" placeholder="" :disabled="true"></el-input>
20
+        <el-input v-model="patientInfo.age" placeholder="年龄" :disabled="true"></el-input>
21 21
       </el-form-item>
22 22
       <el-form-item label="证件号:" prop="name">
23 23
         <el-input v-model="patientInfo.id_card_no" placeholder="" :disabled="true"></el-input>
@@ -32,7 +32,7 @@
32 32
         </el-date-picker>
33 33
       </el-form-item>
34 34
       <el-form-item label="联系电话: " prop="name">
35
-        <el-input v-model="patientInfo.phone" placeholder="" :disabled="true"></el-input>
35
+        <el-input v-model="patientInfo.phone" placeholder="联系电话" :disabled="true"></el-input>
36 36
       </el-form-item>
37 37
       <el-form-item label="医保类型: " prop="name">
38 38
         <el-select v-model="delivery_way" style="width:100%;" placeholder="请选择">
@@ -45,45 +45,56 @@
45 45
         </el-select>
46 46
       </el-form-item>
47 47
       <el-form-item label="医保证号: " prop="name">
48
-        <el-input v-model="patientInfo.health_care_no" placeholder="" :disabled="true"></el-input>
48
+        <el-input v-model="patientInfo.health_care_no" placeholder="医保证号" :disabled="true"></el-input>
49 49
       </el-form-item>
50 50
       <el-form-item label="家庭住址: " prop="name">
51
-        <el-input v-model="patientInfo.home_address" placeholder="" :disabled="true"></el-input>
51
+        <el-input v-model="patientInfo.home_address" placeholder="家庭住址" :disabled="true"></el-input>
52 52
       </el-form-item>
53
-      <el-form-item label="过敏史: " prop="name">
54
-        <el-input v-model="allergic_history" placeholder=""></el-input>
53
+      <el-form-item label="药物过敏史: " prop="name">
54
+        <el-input v-model="allergic_history" placeholder="药物过敏史"></el-input>
55 55
       </el-form-item>
56
-<!-- 
56
+     
57
+      <!-- <el-form-item label="初始透析日期: " prop="name">
58
+         <el-date-picker
59
+          :disabled="true"
60
+          style="width:100%;"
61
+          v-model="first_dialysis_date"
62
+          type="date"
63
+          placeholder="选择日期">
64
+        </el-date-picker>
65
+      </el-form-item>
66
+
57 67
       <el-form-item label="工作单位: " prop="name">
58
-        <el-input v-model="allergic_history" placeholder=""></el-input>
68
+         <el-input v-model="patientInfo.work_unit" placeholder="工作单位"  :disabled="true"></el-input>
59 69
       </el-form-item>
60 70
 
61 71
       <el-form-item label="原发病: " prop="name">
62
-        <el-input v-model="allergic_history" placeholder=""></el-input>
72
+        <el-input v-model="primary_disease" placeholder="原发病"></el-input>
63 73
       </el-form-item>
74
+      
75
+  
64 76
 
65 77
       <el-form-item label="确诊肾衰日期: " prop="name">
66
-        <el-input v-model="allergic_history" placeholder=""></el-input>
67
-      </el-form-item>
68
-
69
-     <el-form-item label="药物过敏史: " prop="name">
70
-        <el-input v-model="allergic_history" placeholder=""></el-input>
71
-      </el-form-item>
72
-
73
-       <el-form-item label="初始透析日期: " prop="name">
74
-        <el-input v-model="allergic_history" placeholder=""></el-input>
78
+         <el-date-picker
79
+          style="width:100%;"
80
+          format="yyyy-MM-dd"
81
+          value-format="yyyy-MM-dd"
82
+          v-model="confirm_failure_date"
83
+          type="date"
84
+          placeholder="选择日期">
85
+        </el-date-picker>
75 86
       </el-form-item>
76
-
77
-       <el-form-item label="体格检查: " prop="name">
78
-        <el-input v-model="allergic_history" placeholder=""></el-input>
87
+     
88
+      <el-form-item label="体格检查: " prop="name">
89
+        <el-input v-model="physical_examination" placeholder="体格检查"></el-input>
79 90
       </el-form-item>
80 91
 
81 92
        <el-form-item label="专科检查: " prop="name">
82
-        <el-input v-model="allergic_history" placeholder=""></el-input>
93
+        <el-input v-model="special_inspection" placeholder="专科检查"></el-input>
83 94
       </el-form-item>
84 95
 
85
-        <el-form-item label="实验室及器械检查: " prop="name">
86
-        <el-input v-model="allergic_history" placeholder=""></el-input>
96
+      <el-form-item label="实验室及器械检查: " prop="name" label-width="160px">
97
+        <el-input v-model="lab_apparatus" placeholder="实验室及器械检查"></el-input>
87 98
       </el-form-item> -->
88 99
 
89 100
     </el-form>
@@ -278,6 +289,7 @@
278 289
   import {  createCaseHistory,getInitData } from '@/api/his/his'
279 290
   import { getDataConfig } from "@/utils/data";
280 291
   import { getTemplateDetail,getMedicalTemplateList } from "@/api/project/project"
292
+  import { uParseTime } from '@/utils/tools'
281 293
   export default {
282 294
     props: {
283 295
       case_history: Object,
@@ -347,6 +359,15 @@
347 359
         diagnoses:[],
348 360
         sick:[],
349 361
         allergic_history:"",
362
+        primary_disease:"",
363
+        confirm_failure_date:"",
364
+        drug_allergy_history:"",
365
+        start_dialysis_date:"",
366
+        physical_examination:"",
367
+        special_inspection:"",
368
+        lab_apparatus:"",
369
+        first_dialysis_date:"",
370
+        work_unit:"",
350 371
         form:{
351 372
           id:0,
352 373
         },
@@ -404,9 +425,14 @@
404 425
             "diagnose":this.case_history.diagnose,
405 426
             "allergic_history":this.allergic_history,
406 427
             "id":this.form.id,
428
+            "primary_disease":this.primary_disease,
429
+            "confirm_failure_date":this.confirm_failure_date,
430
+            "drug_allergy_history":this.drug_allergy_history,
431
+            "physical_examination":this.physical_examination,
432
+            "special_inspection":this.special_inspection,
433
+            "lab_apparatus":this.lab_apparatus,
407 434
           }
408
-          console.log("prams222",params)
409
-         
435
+          console.log("param233322332232323",params)
410 436
           createCaseHistory(params).then(response => {
411 437
             if (response.data.state == 0) {
412 438
               this.$message.error("患者病历已存在")
@@ -415,6 +441,16 @@
415 441
             } else {
416 442
               var caseHistory = response.data.data.caseHistory
417 443
               console.log("caseHistory",caseHistory)
444
+              var historyInfo = response.data.data.historyInfo
445
+              console.log("historyInfo",historyInfo)
446
+              this.primary_disease = caseHistory.primary_disease
447
+              this.confirm_failure_date = this.getTime(caseHistory.confirm_failure_date)
448
+              this.drug_allergy_history = caseHistory.drug_allergy_history
449
+              this.physical_examination = caseHistory.physical_examination
450
+              this.special_inspection = caseHistory.special_inspection
451
+              this.lab_apparatus = caseHistory.lab_apparatus
452
+              this.form.id = historyInfo.id
453
+
418 454
               this.$message.success("保存成功")
419 455
               this.doctor_advice = ""
420 456
               this.remark = ""
@@ -432,7 +468,6 @@
432 468
               if(response.data.state == 1){
433 469
                 var templatedetail =  response.data.data.templateDetail
434 470
                 console.log("templatedetail",templatedetail)
435
-
436 471
                 this.case_history.chief_conplaint =  templatedetail.chief_conplaint
437 472
                 this.case_history.history_of_present_illness =  templatedetail.history_of_present_illness
438 473
                 this.case_history.past_history =  templatedetail.past_history
@@ -443,7 +478,7 @@
443 478
                 this.case_history.remark = templatedetail.remark
444 479
                 this.case_history.sick = templatedetail.sick
445 480
                 this.case_history.diagnose = templatedetail.diagnose
446
-
481
+              
447 482
               }
448 483
           })
449 484
         },
@@ -570,26 +605,44 @@
570 605
         })
571 606
 
572 607
       },
608
+      getTime(val) {
609
+         if(val == ""){
610
+          return ""
611
+         }else {
612
+          return uParseTime(val, '{y}-{m}-{d}')
613
+         }
614
+      },
573 615
     },
574 616
     created(){
617
+      
575 618
        this.getlist()
576 619
        this.getInitData()
577 620
        this.wayOptions = getDataConfig("patient", "reimbursement_ways");
578
-       this.allergic_history = this.case_history.allergic_history
621
+      
622
+   
623
+      
579 624
        if(this.patientInfo.gender = 1){
580 625
          this.patientInfo.gender = '男'
581 626
        }else if(this.patientInfo.gender = 2){
582 627
           this.patientInfo.gender = '女'
583 628
         }
584
-
629
+      
630
+      this.first_dialysis_date = this.getTime(this.patientInfo.first_dialysis_date)
631
+      
632
+      this.primary_disease = this.case_history.primary_disease
633
+      this.confirm_failure_date = this.case_history.confirm_failure_date
634
+      this.drug_allergy_history = this.case_history.drug_allergy_history
635
+      this.physical_examination = this.case_history.physical_examination
636
+      this.special_inspection = this.case_history.special_inspection
637
+      this.lab_apparatus = this.case_history.lab_apparatus
585 638
     },
586 639
     watch:{
587 640
       detalid:function(val){
588 641
         this.getTemplateDetail(val)
642
+
589 643
       },
590 644
       'patientInfo.gender':{
591 645
         handler(newName, oldName){
592
-          console.log('newName',newName)
593 646
           if(newName == 1){
594 647
             this.patientInfo.gender = '男'
595 648
           }else if(newName == 2){
@@ -601,7 +654,7 @@
601 654
       },
602 655
       case_history:{
603 656
         handler(val){
604
-          console.log("南京人明",this.case_history)
657
+          
605 658
           this.allergic_history = this.case_history.allergic_history
606 659
           if(this.case_history.breathing == 0){
607 660
             this.case_history.breathing = ""
@@ -613,7 +666,13 @@
613 666
             this.case_history.diagnose = ""
614 667
           }
615 668
           this.form.id = this.case_history.id
616
-
669
+          
670
+          this.primary_disease = this.case_history.primary_disease
671
+          this.confirm_failure_date = this.case_history.confirm_failure_date
672
+          this.drug_allergy_history = this.case_history.drug_allergy_history
673
+          this.physical_examination = this.case_history.physical_examination
674
+          this.special_inspection = this.case_history.special_inspection
675
+          this.lab_apparatus = this.case_history.lab_apparatus
617 676
           this.watchSign++
618 677
         },
619 678
         deep:true

+ 274 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -14,7 +14,6 @@
14 14
             :editable="false"
15 15
             style="width: 100%;"
16 16
             type="date"
17
-            :picker-options="pickerOptions"
18 17
             placeholder="选择开始时间"
19 18
             align="right"
20 19
             format="yyyy-MM-dd"
@@ -1333,6 +1332,7 @@ export default {
1333 1332
 
1334 1333
       }
1335 1334
       this.isloading = true
1335
+      console.log("param32323232323323223233232332",params)
1336 1336
       getPatientInfo(params).then(response => {
1337 1337
         if (response.data.state == 0) {
1338 1338
           this.$message.error(response.data.msg)
@@ -1366,6 +1366,7 @@ export default {
1366 1366
           this.patientInfo = response.data.data.xt_info
1367 1367
           this.hisPatientInfo = response.data.data.his_info
1368 1368
           this.case_history = response.data.data.case_history
1369
+        
1369 1370
           this.info = response.data.data.info
1370 1371
           this.last_info = response.data.data.last_info
1371 1372
           this.schedule = response.data.data.schedule
@@ -1422,6 +1423,14 @@ export default {
1422 1423
             this.case_history.is_infect = false
1423 1424
           }
1424 1425
 
1426
+           this.case_history.allergic_history = this.case_history.allergic_history
1427
+           this.case_history.primary_disease = this.case_history.primary_disease
1428
+           this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1429
+           this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1430
+           this.case_history.physical_examination = this.case_history.physical_examination
1431
+           this.case_history.special_inspection = this.case_history.special_inspection
1432
+           this.case_history.lab_apparatus = this.case_history.lab_apparatus
1433
+
1425 1434
           //处方相关
1426 1435
           this.prescriptionList = response.data.data.prescription
1427 1436
 
@@ -1712,7 +1721,7 @@ export default {
1712 1721
 
1713 1722
     choosePatient(val) {
1714 1723
       if (this.titleType == '电子病历') {
1715
-        if (this.$refs.child.watchSign > 2) {
1724
+        if (this.$refs.child!=undefined && this.$refs.child.watchSign > 2) {
1716 1725
           this.$confirm('是否保存当前病例', '保存', {
1717 1726
             confirmButtonText: '确 定',
1718 1727
             cancelButtonText: '取 消',
@@ -1743,6 +1752,7 @@ export default {
1743 1752
                 '-' +
1744 1753
                 (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1745 1754
                 ':' + (min < 10 ? '0' + min : min)
1755
+          
1746 1756
             getPatientInfo(params).then(response => {
1747 1757
               if (response.data.state == 0) {
1748 1758
                 this.$message.error(response.data.msg)
@@ -1776,6 +1786,45 @@ export default {
1776 1786
                 this.patientInfo = response.data.data.xt_info
1777 1787
                 this.hisPatientInfo = response.data.data.his_info
1778 1788
                 this.case_history = response.data.data.case_history
1789
+                
1790
+                if(this.case_history.primary_disease == ""){
1791
+                   this.case_history.primary_disease = ""
1792
+                }else{
1793
+                  this.case_history.primary_disease = this.case_history.primary_disease
1794
+                }
1795
+                
1796
+                if(this.case_history.confirm_failure_date <=0){
1797
+                  this.case_history.confirm_failure_date = ""
1798
+                }else{
1799
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
1800
+                }
1801
+
1802
+                if(this.case_history.drug_allergy_history ==""){
1803
+                   this.case_history.drug_allergy_history = ""
1804
+                }else{
1805
+                   this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1806
+                }
1807
+                 
1808
+                if(this.case_history.physical_examination ==""){
1809
+                  this.case_history.physical_examination = ""
1810
+                }else{
1811
+                 this.case_history.physical_examination = this.case_history.physical_examination
1812
+                }
1813
+                if(this.case_history.special_inspection == ""){
1814
+                  this.case_history.special_inspection = ""
1815
+                }else{
1816
+                  this.case_history.special_inspection = this.case_history.special_inspection
1817
+                }
1818
+                 
1819
+                if(this.case_history.lab_apparatus == ""){
1820
+                  this.case_history.lab_apparatus = ""
1821
+                }else{
1822
+                 this.case_history.lab_apparatus = this.case_history.lab_apparatus
1823
+                }
1824
+               
1825
+               
1826
+                
1827
+               
1779 1828
                 this.info = response.data.data.info
1780 1829
                 this.last_info = response.data.data.last_info
1781 1830
                 this.schedule = response.data.data.schedule
@@ -1829,6 +1878,8 @@ export default {
1829 1878
                 } else {
1830 1879
                   this.case_history.is_infect = false
1831 1880
                 }
1881
+
1882
+
1832 1883
                 this.prescriptionList = response.data.data.prescription
1833 1884
 
1834 1885
                 if (response.data.data.prescription.length > 0) {
@@ -2282,6 +2333,8 @@ export default {
2282 2333
                 this.patientInfo = response.data.data.xt_info
2283 2334
                 this.hisPatientInfo = response.data.data.his_info
2284 2335
                 this.case_history = response.data.data.case_history
2336
+
2337
+             
2285 2338
                 this.info = response.data.data.info
2286 2339
                 this.last_info = response.data.data.last_info
2287 2340
 
@@ -2334,6 +2387,42 @@ export default {
2334 2387
                 } else {
2335 2388
                   this.case_history.is_infect = false
2336 2389
                 }
2390
+
2391
+               if(this.case_history.primary_disease == ""){
2392
+                   this.case_history.primary_disease = ""
2393
+                }else{
2394
+                  this.case_history.primary_disease = this.case_history.primary_disease
2395
+                }
2396
+                
2397
+                if(this.case_history.confirm_failure_date <=0){
2398
+                  this.case_history.confirm_failure_date = ""
2399
+                }else{
2400
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
2401
+                }
2402
+
2403
+                if(this.case_history.drug_allergy_history ==""){
2404
+                   this.case_history.drug_allergy_history = ""
2405
+                }else{
2406
+                   this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
2407
+                }
2408
+                 
2409
+                if(this.case_history.physical_examination ==""){
2410
+                  this.case_history.physical_examination = ""
2411
+                }else{
2412
+                 this.case_history.physical_examination = this.case_history.physical_examination
2413
+                }
2414
+                if(this.case_history.special_inspection == ""){
2415
+                  this.case_history.special_inspection = ""
2416
+                }else{
2417
+                  this.case_history.special_inspection = this.case_history.special_inspection
2418
+                }
2419
+                 
2420
+                if(this.case_history.lab_apparatus == ""){
2421
+                  this.case_history.lab_apparatus = ""
2422
+                }else{
2423
+                 this.case_history.lab_apparatus = this.case_history.lab_apparatus
2424
+                }
2425
+
2337 2426
                 this.prescriptionList = response.data.data.prescription
2338 2427
 
2339 2428
                 if (response.data.data.prescription.length > 0) {
@@ -2768,6 +2857,7 @@ export default {
2768 2857
               this.patientInfo = response.data.data.xt_info
2769 2858
               this.hisPatientInfo = response.data.data.his_info
2770 2859
               this.case_history = response.data.data.case_history
2860
+             
2771 2861
               this.info = response.data.data.info
2772 2862
               this.last_info = response.data.data.last_info
2773 2863
 
@@ -2820,6 +2910,32 @@ export default {
2820 2910
               } else {
2821 2911
                 this.case_history.is_infect = false
2822 2912
               }
2913
+
2914
+                    
2915
+             if(this.case_history.primary_disease == ""){
2916
+                   this.case_history.primary_disease = ""
2917
+              }
2918
+                
2919
+            
2920
+               this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
2921
+                
2922
+
2923
+                if(this.case_history.drug_allergy_history ==""){
2924
+                   this.case_history.drug_allergy_history = ""
2925
+                }
2926
+                 
2927
+                if(this.case_history.physical_examination ==""){
2928
+                  this.case_history.physical_examination = ""
2929
+                }
2930
+                if(this.case_history.special_inspection == ""){
2931
+                  this.case_history.special_inspection = ""
2932
+                }
2933
+                 
2934
+                if(this.case_history.lab_apparatus == ""){
2935
+                  this.case_history.lab_apparatus = ""
2936
+                }
2937
+
2938
+
2823 2939
               this.prescriptionList = response.data.data.prescription
2824 2940
 
2825 2941
               if (response.data.data.prescription.length > 0) {
@@ -3213,7 +3329,7 @@ export default {
3213 3329
           this.$refs.child.watchSign = 0
3214 3330
         }
3215 3331
       } else {
3216
-
3332
+       
3217 3333
         var nowDate = new Date()
3218 3334
         var nowYear = nowDate.getFullYear()
3219 3335
         var nowMonth = nowDate.getMonth() + 1
@@ -3313,6 +3429,43 @@ export default {
3313 3429
                 this.patientInfo = response.data.data.xt_info
3314 3430
                 this.hisPatientInfo = response.data.data.his_info
3315 3431
                 this.case_history = response.data.data.case_history
3432
+                console.log("999923923323232",this.case_history)
3433
+               
3434
+               if(this.case_history.primary_disease == ""){
3435
+                   this.case_history.primary_disease = ""
3436
+                }else{
3437
+                  this.case_history.primary_disease = this.case_history.primary_disease
3438
+                }
3439
+                
3440
+                if(this.case_history.confirm_failure_date <=0){
3441
+                  this.case_history.confirm_failure_date = ""
3442
+                }else{
3443
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3444
+                }
3445
+
3446
+                if(this.case_history.drug_allergy_history ==""){
3447
+                   this.case_history.drug_allergy_history = ""
3448
+                }else{
3449
+                   this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3450
+                }
3451
+                 
3452
+                if(this.case_history.physical_examination ==""){
3453
+                  this.case_history.physical_examination = ""
3454
+                }else{
3455
+                 this.case_history.physical_examination = this.case_history.physical_examination
3456
+                }
3457
+                if(this.case_history.special_inspection == ""){
3458
+                  this.case_history.special_inspection = ""
3459
+                }else{
3460
+                  this.case_history.special_inspection = this.case_history.special_inspection
3461
+                }
3462
+                 
3463
+                if(this.case_history.lab_apparatus == ""){
3464
+                  this.case_history.lab_apparatus = ""
3465
+                }else{
3466
+                 this.case_history.lab_apparatus = this.case_history.lab_apparatus
3467
+                }
3468
+
3316 3469
                 this.doctors = response.data.data.doctors
3317 3470
                 this.department = response.data.data.department
3318 3471
                 this.schedule = response.data.data.schedule
@@ -3323,7 +3476,7 @@ export default {
3323 3476
                   }
3324 3477
                 }
3325 3478
 
3326
-                this.case_history = response.data.data.case_history
3479
+              
3327 3480
                 this.info = response.data.data.info
3328 3481
                 this.last_info = response.data.data.last_info
3329 3482
 
@@ -3789,6 +3942,14 @@ export default {
3789 3942
                 this.patientInfo = response.data.data.xt_info
3790 3943
                 this.hisPatientInfo = response.data.data.his_info
3791 3944
                 this.case_history = response.data.data.case_history
3945
+                
3946
+                this.case_history.primary_disease = this.case_history.primary_disease
3947
+                this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3948
+                this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3949
+                this.case_history.physical_examination = this.case_history.physical_examination
3950
+                this.case_history.special_inspection = this.case_history.special_inspection
3951
+                this.case_history.lab_apparatus = this.case_history.lab_apparatus
3952
+
3792 3953
                 var month_prescriptions = response.data.data.month_prescriptions
3793 3954
                 this.setMonthPrescription(month_prescriptions)
3794 3955
                 this.doctors = response.data.data.doctors
@@ -3801,7 +3962,6 @@ export default {
3801 3962
                   }
3802 3963
                 }
3803 3964
 
3804
-                this.case_history = response.data.data.case_history
3805 3965
                 this.info = response.data.data.info
3806 3966
                 this.last_info = response.data.data.last_info
3807 3967
 
@@ -3891,6 +4051,42 @@ export default {
3891 4051
                 this.patientInfo = response.data.data.xt_info
3892 4052
                 this.hisPatientInfo = response.data.data.his_info
3893 4053
                 this.case_history = response.data.data.case_history
4054
+                
4055
+                if(this.case_history.primary_disease == ""){
4056
+                   this.case_history.primary_disease = ""
4057
+                }else{
4058
+                  this.case_history.primary_disease = this.case_history.primary_disease
4059
+                }
4060
+                
4061
+                if(this.case_history.confirm_failure_date <=0){
4062
+                  this.case_history.confirm_failure_date = ""
4063
+                }else{
4064
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
4065
+                }
4066
+
4067
+                if(this.case_history.drug_allergy_history ==""){
4068
+                   this.case_history.drug_allergy_history = ""
4069
+                }else{
4070
+                   this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4071
+                }
4072
+                 
4073
+                if(this.case_history.physical_examination ==""){
4074
+                  this.case_history.physical_examination = ""
4075
+                }else{
4076
+                 this.case_history.physical_examination = this.case_history.physical_examination
4077
+                }
4078
+                if(this.case_history.special_inspection == ""){
4079
+                  this.case_history.special_inspection = ""
4080
+                }else{
4081
+                  this.case_history.special_inspection = this.case_history.special_inspection
4082
+                }
4083
+                 
4084
+                if(this.case_history.lab_apparatus == ""){
4085
+                  this.case_history.lab_apparatus = ""
4086
+                }else{
4087
+                 this.case_history.lab_apparatus = this.case_history.lab_apparatus
4088
+                }
4089
+
3894 4090
                 this.info = response.data.data.info
3895 4091
                 this.last_info = response.data.data.last_info
3896 4092
                 this.schedule = response.data.data.schedule
@@ -4251,6 +4447,42 @@ export default {
4251 4447
                 this.patientInfo = response.data.data.xt_info
4252 4448
                 this.hisPatientInfo = response.data.data.his_info
4253 4449
                 this.case_history = response.data.data.case_history
4450
+
4451
+                if(this.case_history.primary_disease == ""){
4452
+                   this.case_history.primary_disease = ""
4453
+                }else{
4454
+                  this.case_history.primary_disease = this.case_history.primary_disease
4455
+                }
4456
+                
4457
+                if(this.case_history.confirm_failure_date <=0){
4458
+                  this.case_history.confirm_failure_date = ""
4459
+                }else{
4460
+                  this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
4461
+                }
4462
+
4463
+                if(this.case_history.drug_allergy_history ==""){
4464
+                   this.case_history.drug_allergy_history = ""
4465
+                }else{
4466
+                   this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4467
+                }
4468
+                 
4469
+                if(this.case_history.physical_examination ==""){
4470
+                  this.case_history.physical_examination = ""
4471
+                }else{
4472
+                 this.case_history.physical_examination = this.case_history.physical_examination
4473
+                }
4474
+                if(this.case_history.special_inspection == ""){
4475
+                  this.case_history.special_inspection = ""
4476
+                }else{
4477
+                  this.case_history.special_inspection = this.case_history.special_inspection
4478
+                }
4479
+                 
4480
+                if(this.case_history.lab_apparatus == ""){
4481
+                  this.case_history.lab_apparatus = ""
4482
+                }else{
4483
+                 this.case_history.lab_apparatus = this.case_history.lab_apparatus
4484
+                }
4485
+
4254 4486
                 this.info = response.data.data.info
4255 4487
                 this.last_info = response.data.data.last_info
4256 4488
                 this.schedule = response.data.data.schedule
@@ -4468,10 +4700,9 @@ export default {
4468 4700
       }
4469 4701
     },
4470 4702
     handleClick() {
4471
-      if (this.titleType == '电子处方') {
4703
+      if (this.titleType == '电子处方' || this.titleType == '电子病历') {
4472 4704
         if (this.radio == 1) {
4473 4705
           this.un_cure_data.map(item => {
4474
-            console.log('~~~~~~~~')
4475 4706
             if (item.id == this.patientid) {
4476 4707
               console.log('~~~~~~~~22222222')
4477 4708
 
@@ -4618,6 +4849,42 @@ export default {
4618 4849
           this.patientInfo = response.data.data.xt_info
4619 4850
           this.hisPatientInfo = response.data.data.his_info
4620 4851
           this.case_history = response.data.data.case_history
4852
+
4853
+            if(this.case_history.primary_disease == ""){
4854
+                this.case_history.primary_disease = ""
4855
+            }else{
4856
+              this.case_history.primary_disease = this.case_history.primary_disease
4857
+            }
4858
+            
4859
+            if(this.case_history.confirm_failure_date <=0){
4860
+              this.case_history.confirm_failure_date = ""
4861
+            }else{
4862
+              this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
4863
+            }
4864
+
4865
+            if(this.case_history.drug_allergy_history ==""){
4866
+                this.case_history.drug_allergy_history = ""
4867
+            }else{
4868
+                this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4869
+            }
4870
+              
4871
+            if(this.case_history.physical_examination ==""){
4872
+              this.case_history.physical_examination = ""
4873
+            }else{
4874
+              this.case_history.physical_examination = this.case_history.physical_examination
4875
+            }
4876
+            if(this.case_history.special_inspection == ""){
4877
+              this.case_history.special_inspection = ""
4878
+            }else{
4879
+              this.case_history.special_inspection = this.case_history.special_inspection
4880
+            }
4881
+              
4882
+            if(this.case_history.lab_apparatus == ""){
4883
+              this.case_history.lab_apparatus = ""
4884
+            }else{
4885
+              this.case_history.lab_apparatus = this.case_history.lab_apparatus
4886
+            }
4887
+
4621 4888
           this.info = response.data.data.info
4622 4889
           this.last_info = response.data.data.last_info
4623 4890
           this.schedule = response.data.data.schedule

+ 113 - 82
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <template>
4 4
       <el-button
5
-        style="position:fixed;right:25px;z-index:999"
5
+        style="position: fixed; right: 25px; z-index: 999"
6 6
         size="small"
7 7
         icon="el-icon-printer"
8 8
         @click="printThisPage"
@@ -10,52 +10,71 @@
10 10
         >打印</el-button
11 11
       >
12 12
     </template>
13
-            
14
-    <div class='dialysisPage' style="padding-top:40px;">
15
-      <printOne ref="printOne"  v-bind:childResponse="childResponse" :patient="patient" :hispatient="hispatient" :history="history" :patientid="patientid"></printOne>
13
+
14
+    <div class="dialysisPage" style="padding-top: 40px">
15
+      <printOne
16
+        v-if="org_id != 10217 && org_id != 0"
17
+        ref="printOne"
18
+        v-bind:childResponse="childResponse"
19
+        :patient="patient"
20
+        :hispatient="hispatient"
21
+        :history="history"
22
+        :patientid="patientid"
23
+      ></printOne>
24
+      <printTwo
25
+        v-if="org_id == 10217 || org_id == 0"
26
+        ref="printTwo"
27
+        v-bind:childResponse="childResponse"
28
+        :patient="patient"
29
+        :hispatient="hispatient"
30
+        :history="history"
31
+        :patientid="patientid"
32
+      ></printTwo>
16 33
     </div>
17 34
   </div>
18 35
 </template>
19 36
 
20 37
 <script>
21
-
22 38
 import { parseTime } from "@/utils";
23 39
 import { getDataConfig } from "@/utils/data";
24 40
 import { jsGetAge, uParseTime } from "@/utils/tools";
25 41
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
26 42
 import print from "print-js";
27
-import { getSchedulePatientList } from '@/api/his/his'
28
-import { getPatientCaseHistory } from "@/api/project/project"
29
-import printOne from "./recordTemplate/printOne"
43
+import { getSchedulePatientList } from "@/api/his/his";
44
+import { getPatientCaseHistory } from "@/api/project/project";
45
+import printOne from "./recordTemplate/printOne";
46
+import printTwo from "./recordTemplate/printTwo";
30 47
 export default {
31 48
   name: "dialysisPrintOrder",
32 49
   components: {
33 50
     BreadCrumb,
34
-    printOne
51
+    printOne,
52
+    printTwo,
35 53
   },
36
-  props:{
37
-    patientid:Number,
54
+  props: {
55
+    patientid: Number,
38 56
   },
39 57
   data() {
40 58
     return {
41 59
       crumbs: [
42 60
         { path: false, name: "透析管理" },
43
-        { path: false, name: "打印单" }
61
+        { path: false, name: "打印单" },
44 62
       ],
45 63
       childResponse: {},
46 64
       patientTableData: [],
47
-      search_input:"",
48
-      patient:{},
49
-      hispatient:{},
50
-      educationOptions:[],
51
-      history:{},
52
-      keyword:"",
65
+      search_input: "",
66
+      patient: {},
67
+      hispatient: {},
68
+      educationOptions: [],
69
+      history: {},
70
+      keyword: "",
71
+      org_id,
53 72
     };
54 73
   },
55 74
   methods: {
56
-    show(val){
57
-       
58
-       this.$refs.printOne.show(val)
75
+    show(val) {
76
+      this.$refs.printOne.show(val);
77
+      this.$refs.printTwo.show(val);
59 78
     },
60 79
     getAdminUser(id) {
61 80
       if (id == 0) {
@@ -84,68 +103,80 @@ export default {
84 103
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
85 104
 
86 105
       const style =
87
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}';
88
-      printJS({
89
-        printable: "prescription-print",
90
-        type: "html",
91
-        style: style,
92
-        scanStyles: false
93
-      });
106
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
107
+       const style1 =
108
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.infoTitle div{width: 300px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
109
+      
110
+      
111
+      if (this.org_id != 10217 && this.org_id != 0) {
112
+        printJS({
113
+          printable: "prescription-print",
114
+          type: "html",
115
+          style: style,
116
+          scanStyles: false,
117
+        });
118
+      } else if (this.org_id == 10217 || this.org_id == 0) {
119
+        printJS({
120
+          printable: "prescription-print",
121
+          type: "html",
122
+          style: style1,
123
+          scanStyles: false,
124
+        });
125
+      }
94 126
     },
95 127
 
96
-     //患者列表
97
-      getPatientList(){
98
-        
99
-         let params = {
100
-           'record_date':this.$route.query.record,
101
-        }
102
-     
103
-      getSchedulePatientList(params).then(response => {
104
-         if (response.data.state == 0) {
105
-            this.$message.error(response.data.msg)
106
-            return false
107
-         } else {
108
-            this.patientTableData = []
109
-            console.log("list0000000",response.data.data.list)
110
-            // for (let i = 0; i < response.data.data.list.length; i++) {
111
-            //   if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
112
-            //      this.patientTableData.push(response.data.data.list[i])
113
-            //     }
114
-            //   }
115
-              this.patientTableData = response.data.data.list
116
-             }  
117
-          })
118
-      },
128
+    //患者列表
129
+    getPatientList() {
130
+      let params = {
131
+        record_date: this.$route.query.record,
132
+      };
119 133
 
120
-    changePatient(val){
134
+      getSchedulePatientList(params).then((response) => {
135
+        if (response.data.state == 0) {
136
+          this.$message.error(response.data.msg);
137
+          return false;
138
+        } else {
139
+          this.patientTableData = [];
140
+          console.log("list0000000", response.data.data.list);
141
+          // for (let i = 0; i < response.data.data.list.length; i++) {
142
+          //   if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
143
+          //      this.patientTableData.push(response.data.data.list[i])
144
+          //     }
145
+          //   }
146
+          this.patientTableData = response.data.data.list;
147
+        }
148
+      });
149
+    },
121 150
 
122
-        const params = {
123
-          patient_id:val.patient_id
151
+    changePatient(val) {
152
+      const params = {
153
+        patient_id: val.patient_id,
154
+      };
155
+      console.log("params", params);
156
+      getPatientCaseHistory(params).then((response) => {
157
+        if (response.data.state == 1) {
158
+          var patient = response.data.data.patient;
159
+          console.log("patinet", patient);
160
+          this.patient = patient;
161
+          var history = response.data.data.history;
162
+          console.log("history", history);
163
+          this.history = history;
164
+          var hispatient = response.data.data.hispatient;
165
+          console.log("hispatient", hispatient);
166
+          this.hispatient = hispatient;
124 167
         }
125
-        console.log("params",params)
126
-      getPatientCaseHistory(params).then(response=>{
127
-         if(response.data.state == 1){
128
-           var patient = response.data.data.patient
129
-           console.log("patinet",patient)
130
-           this.patient = patient
131
-           var history = response.data.data.history
132
-           console.log("history",history)
133
-           this.history = history
134
-           var hispatient = response.data.data.hispatient
135
-           console.log("hispatient",hispatient)
136
-           this.hispatient = hispatient
137
-         }
138
-      })
168
+      });
139 169
     },
140
-    searchAction(){
141
-      this.getPatientList()
170
+    searchAction() {
171
+      this.getPatientList();
142 172
     },
143
-  
144 173
   },
145 174
   created() {
146
-    // this.getPatientList() 
147
-    console.log("455555555555555",this.patientid)
148
-    this.$refs.printOne.show(this.patientid)
175
+    // this.getPatientList()
176
+    this.org_id = this.$store.getters.xt_user.org.id;
177
+    console.log("=====", this.org_id);
178
+    this.$refs.printOne.show(this.patientid);
179
+    this.$refs.printTwo.show(this.patientid);
149 180
   },
150 181
   // computed:{
151 182
   //   filtedSchedules: function() {
@@ -336,22 +367,22 @@ export default {
336 367
 </style>
337 368
 
338 369
 <style lang="scss">
339
-
340
-.newContainer{
370
+.newContainer {
341 371
   .dialysisPage::-webkit-scrollbar {
342 372
     height: 15px;
343 373
   }
344
-  
345
-  .el-date-editor{
346
-    .el-input__inner{
347
-      padding-right:0px;
374
+
375
+  .el-date-editor {
376
+    .el-input__inner {
377
+      padding-right: 0px;
348 378
     }
349 379
   }
350
-  .el-table td, .el-table th{
380
+  .el-table td,
381
+  .el-table th {
351 382
     text-align: center;
352 383
   }
353 384
 }
354
-.newContainer::-webkit-scrollbar{
385
+.newContainer::-webkit-scrollbar {
355 386
   height: 15px !important;
356 387
 }
357 388
 </style>

+ 334 - 0
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue View File

@@ -0,0 +1,334 @@
1
+<template>
2
+  <div id="prescription-print">
3
+    <div class="prescription-print">
4
+      <div class="printTitle">{{ orgname }}血透中心病历</div>
5
+       <div class="record_Title">
6
+            <div>姓名:{{patient.name?patient.name:''}}</div>
7
+            <div>性别:
8
+                <span v-if="patient.gender == 1">男</span>
9
+                <span v-if="patient.gender == 2">女</span>
10
+            </div>
11
+            <div>年龄:{{patient.age?patient.age:''}}岁</div>
12
+            <div>透析病历号:{{patient.id?patient.id:''}}</div>
13
+        </div>
14
+      <div class="infoTitle" style="margin-top:20px;">
15
+        <div>姓名:{{ patient.name ? patient.name : "" }}</div>
16
+        <div>
17
+          家庭住址:{{ patient.home_address ? patient.home_address : "" }}
18
+        </div>
19
+      </div>
20
+      <div class="infoTitle">
21
+        <div>
22
+          性别:
23
+          <span v-if="patient.gender == 1">男</span>
24
+          <span v-if="patient.gender == 2">女</span>
25
+        </div>
26
+        <div>工作单位:</div>
27
+       
28
+      </div>
29
+      <div class="infoTitle">
30
+        <div>出生日期:</div>
31
+        <div>身份证号:</div>
32
+      </div>
33
+      <div class="infoTitle">
34
+        <div>联系人:</div>
35
+        <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
36
+      </div>
37
+      <div class="otherInfo" style="border-bottom: 1px solid">
38
+        <div>进入透析时间:</div>
39
+        <div style="flex: 1"></div>
40
+      </div>
41
+      <div class="infoTitle">
42
+        <div style="width: 300px">原发病:</div>
43
+        <div>确诊肾衰日期:</div>
44
+      </div>
45
+      <div class="otherInfo">
46
+        <div>
47
+          药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
48
+        </div>
49
+      </div>
50
+      <div class="otherInfo">
51
+        <div>初始透析日期:</div>
52
+        <div style="flex: 1"></div>
53
+      </div>
54
+      <div class="otherInfo" style="border-bottom: 1px solid">
55
+        <div>血管通路:</div>
56
+        <div style="flex: 1"></div>
57
+      </div>
58
+
59
+      <div class="otherInfo" style="min-height: 60px;">
60
+        <div class="otherName">主诉:</div>
61
+        <div style="flex: 1">
62
+          {{ history.chief_conplaint ? history.chief_conplaint : "" }}
63
+        </div>
64
+      </div>
65
+
66
+      <div class="otherInfo" style="min-height: 200px;">
67
+        <div class="otherName">现病史:</div>
68
+        <div style="flex: 1">
69
+          {{
70
+            history.history_of_present_illness
71
+              ? history.history_of_present_illness
72
+              : ""
73
+          }}
74
+        </div>
75
+      </div>
76
+
77
+      <div class="otherInfo" style="min-height: 100px;">
78
+        <div class="otherName">既往史:</div>
79
+        <div style="flex: 1">
80
+          {{ history.past_history ? history.past_history : "" }}
81
+        </div>
82
+      </div>
83
+
84
+      <div class="otherInfo" style="min-height: 80px;">
85
+        <div class="otherName">个人史:</div>
86
+        <div style="flex: 1">
87
+          {{ history.personal_history ? history.personal_history : "" }}
88
+        </div>
89
+      </div>
90
+
91
+      <div class="otherInfo" style="min-height: 80px;">
92
+        <div class="otherName">家族史:</div>
93
+        <div style="flex: 1">
94
+          {{ history.family_history ? history.family_history : "" }}
95
+        </div>
96
+      </div>
97
+
98
+      <div style="page-break-after: always; margin-top: 50px"></div>
99
+    </div>
100
+
101
+    <div class="prescription-print">
102
+      <!-- <div class="printTitle">病历内容</div> -->
103
+      <div class="recordTitle">
104
+        <div>体格检查</div>
105
+        <div class="recordContent" style="height:250px;">
106
+          <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
107
+          <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
108
+          <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
109
+          <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
110
+        </div>
111
+        <div></div>
112
+      </div>
113
+      <div class="recordTitle">
114
+        <div>专科检查</div>
115
+        <div class="recordContent"></div>
116
+      </div>
117
+      <div class="recordTitle" style="border-bottom: 1px solid">
118
+        <div>实验室及器械检查</div>
119
+        <div class="recordContent" style="height:250px;"></div>
120
+      </div>
121
+      <div style="display: flex; justify-content: end">
122
+        <div class="endInfo">
123
+          <div style="height: 100px">
124
+            诊断:{{ history.diagnostic ? history.diagnostic : "" }}
125
+          </div>
126
+          <div style="display: flex">
127
+            <div>医师:</div>
128
+            <div>
129
+              手签:{{
130
+                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
131
+              }}
132
+            </div>
133
+          </div>
134
+          <div style="text-align: center; letter-spacing: 3px">2000 年 2 月 4 日</div>
135
+        </div>
136
+      </div>
137
+    </div>
138
+  </div>
139
+</template>
140
+<script>
141
+import { jsGetAge, uParseTime } from "@/utils/tools";
142
+
143
+import { getDataConfig } from "@/utils/data";
144
+import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
145
+export default {
146
+  props: {
147
+    patient: Object,
148
+    hispatient: Object,
149
+    patientid: Number,
150
+    //   history:Object,
151
+  },
152
+  data() {
153
+    return {
154
+      educationOptions: [],
155
+      departmentList: [],
156
+      orgname: "",
157
+      history: {},
158
+      printDate: "",
159
+    };
160
+  },
161
+  methods: {
162
+    getAge(patient) {
163
+      var thisLen = patient.id_card_no.length;
164
+      var birth = "";
165
+      if (thisLen == 15) {
166
+        birth = "19" + patient.id_card_no.substr(6, 6);
167
+      } else {
168
+        birth = patient.id_card_no.substr(6, 8);
169
+      }
170
+      var births =
171
+        birth.substr(0, 4) +
172
+        "-" +
173
+        birth.substr(4, 2) +
174
+        "-" +
175
+        birth.substr(6, 2);
176
+      return jsGetAge(births, "-");
177
+    },
178
+    show(val) {
179
+      this.patientid = val;
180
+      this.getAllDoctorList();
181
+      this.getPatientCaseHistory();
182
+    },
183
+    getProfession(id) {
184
+      var name = "";
185
+      for (let i = 0; i < this.educationOptions.length; i++) {
186
+        if (id == this.educationOptions[i].id) {
187
+          name = this.educationOptions[i].name;
188
+        }
189
+      }
190
+      return name;
191
+    },
192
+    getAllDoctorList() {
193
+      getAllDoctorList().then((response) => {
194
+        if (response.data.state == 1) {
195
+          var doctor = response.data.data.doctor;
196
+
197
+          this.doctorList = doctor;
198
+          var department = response.data.data.department;
199
+          console.log("department", department);
200
+          this.departmentList = department;
201
+        }
202
+      });
203
+    },
204
+    getDoctor(id) {
205
+      var name = "";
206
+      for (let i = 0; i < this.doctorList.length; i++) {
207
+        if (id == this.doctorList[i].admin_user_id) {
208
+          name = this.doctorList[i].user_name;
209
+        }
210
+      }
211
+      return name;
212
+    },
213
+    getPatientCaseHistory() {
214
+      const params = {
215
+        patient_id: this.patientid,
216
+      };
217
+      console.log("病历22222", params);
218
+      getPatientCaseHistory(params).then((response) => {
219
+        if (response.data.state == 1) {
220
+          var patient = response.data.data.patient;
221
+          //    console.log("patinet",patient)
222
+          this.patient = patient;
223
+          var history = response.data.data.history;
224
+          console.log("中国history222222", history);
225
+          this.history = history;
226
+          var hispatient = response.data.data.hispatient;
227
+          //    console.log("hispatient",hispatient)
228
+          this.hispatient = hispatient;
229
+        }
230
+      });
231
+    },
232
+    getDeparment(id) {
233
+      var name = "";
234
+      for (let i = 0; i < this.departmentList.length; i++) {
235
+        if (id == this.departmentList[i].id) {
236
+          name = this.departmentList[i].name;
237
+        }
238
+      }
239
+      return name;
240
+    },
241
+  },
242
+  created() {
243
+    this.educationOptions = getDataConfig("patient", "education_types");
244
+    this.getAllDoctorList();
245
+    this.getPatientCaseHistory();
246
+
247
+    var xtuser = this.$store.getters.xt_user;
248
+    this.orgname = xtuser.org.org_name;
249
+    var data = new Date();
250
+    var month =
251
+      data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
252
+    var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
253
+    this.printDate = data.getFullYear() + "-" + month + "-" + date;
254
+  },
255
+  watch: {
256
+    patientid: function (val) {
257
+      console.log("val22332323", val);
258
+    },
259
+  },
260
+};
261
+</script>
262
+
263
+
264
+<style lang="scss" scoped>
265
+.prescription-print {
266
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
267
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
268
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
269
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
270
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
271
+  margin-bottom: 20px;
272
+  padding: 20px 10px;
273
+}
274
+.printTitle {
275
+  font-size: 22px;
276
+  text-align: center;
277
+  font-weight: bold;
278
+}
279
+.infoTitle {
280
+  display: flex;
281
+  margin-top: 10px;
282
+  line-height: 24px;
283
+  padding: 0 10px;
284
+}
285
+.infoTitle div {
286
+  width: 200px;
287
+}
288
+.otherInfo {
289
+  display: flex;
290
+  margin-top: 10px;
291
+  line-height: 24px;
292
+  padding: 0 10px;
293
+}
294
+.endInfo {
295
+  display: flex;
296
+  flex-direction: column;
297
+  justify-content: end;
298
+  margin-top: 10px;
299
+  line-height: 24px;
300
+}
301
+.endInfo div {
302
+  width: 300px;
303
+}
304
+.recordTitle {
305
+  display: flex;
306
+  justify-content: center;
307
+  flex-direction: column;
308
+  margin-top: 10px;
309
+  line-height: 24px;
310
+  padding: 0 10px;
311
+  border-top: 1px solid;
312
+}
313
+.recordTitle div {
314
+  width: 100%;
315
+  text-align: center;
316
+}
317
+.recordTitle .recordContent {
318
+  width: 100%;
319
+  height: 150px;
320
+  text-align: left;
321
+}
322
+
323
+.record_Title{
324
+    display: flex;
325
+    margin-top:10px;
326
+    line-height: 24px;
327
+    padding:0 10px;
328
+    border-bottom: 2px solid #000;
329
+}
330
+
331
+.record_Title div{
332
+  width: 200px;
333
+}
334
+</style>

+ 10 - 3
src/xt_pages/outpatientTool/components/drugDetail.vue View File

@@ -58,7 +58,7 @@
58 58
            
59 59
             <el-table-column align="center" prop="total" label="操作">
60 60
                 <template slot-scope="scope">
61
-                  <div style="color: #589ff8" @click="jump(scope.row.child,scope.row.min_number,scope.row.drug_id)">使用明细</div>
61
+                  <div style="color: #589ff8" @click="jump(scope.row.child,scope.row.min_number,scope.row.drug_id,scope.row.max_unit,scope.row.min_unit)">使用明细</div>
62 62
                 </template>
63 63
             </el-table-column>
64 64
 
@@ -96,7 +96,8 @@
96 96
             </el-table-column>
97 97
             <el-table-column align="center" prop="name" label="数量">
98 98
                 <template slot-scope="scope">
99
-                    {{scope.row.prescribing_number/min_number}}
99
+                  <span v-if="scope.row.prescribing_number_unit == max_unit">{{scope.row.prescribing_number/min_number}}</span>   
100
+                  <span v-if="scope.row.prescribing_number_unit == min_unit && max_unit!=min_unit">{{scope.row.prescribing_number}}</span>   
100 101
                 </template>
101 102
             </el-table-column>
102 103
             <el-table-column align="center" prop="name" label="单位">
@@ -150,6 +151,8 @@ import { min } from 'moment'
150 151
        min_number:0,
151 152
        drug_type:"",
152 153
        drug_id:0,
154
+       max_unit:"",
155
+       min_unit:"",
153 156
       }
154 157
     },
155 158
     methods:{
@@ -285,10 +288,14 @@ import { min } from 'moment'
285 288
         }
286 289
         return max_str + min_str
287 290
        },
288
-       jump(val,min_number,drug_id){
291
+       jump(val,min_number,drug_id,max_unit,min_unit){
292
+         console.log("max_unit23232233",max_unit)
293
+         console.log("min_unit23232233",min_unit)
289 294
          this.dialogVisible = true
290 295
          this.tableList= val
291 296
          this.min_number = min_number
297
+         this.max_unit = max_unit
298
+         this.min_unit = min_unit
292 299
          this.drug_id = drug_id
293 300
        },
294 301
        getPatientName(id){

+ 16 - 2
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue View File

@@ -21,7 +21,7 @@
21 21
               <td style="line-height:18px;" width="80">注册证号/批准文号/备案凭证号</td>
22 22
               <td style="line-height:18px;" width="100">规格<br>型号</td>
23 23
               <td style="line-height:18px;" width="80">生产<br>厂商</td>
24
-            
24
+              <td style="line-height:18px;" width="80">经销商</td>
25 25
               <td style="line-height:18px;" width="80">进货价</td>
26 26
               <td style="line-height:18px;" width="80">入库<br>数量</td>
27 27
               <td style="line-height:18px;" width="80">单位</td>
@@ -43,6 +43,7 @@
43 43
                  <span v-if="item.drug_id != 0">{{item.dose}}{{item.dose_unit}}*{{item.min_number}}{{item.min_unit}}/{{item.max_unit}}</span>
44 44
               </td>
45 45
               <td style="line-height: 18px">{{ getManufacturer(item.manufacturer) }}</td>
46
+              <td style="line-height: 18px">{{ getDeatl(item.dealer) }}</td>
46 47
               <td style="line-height:18px">
47 48
                   {{item.price}}
48 49
               </td>
@@ -64,7 +65,9 @@
64 65
             </tr>
65 66
             <tr>
66 67
               <td>合计</td>
67
-              <td colspan="12" style="text-align:right;">{{getAllPrince(it.id).toFixed(2)}}</td>
68
+              <td colspan="7" style="text-align:center"></td>
69
+              <td style="text-align:center">{{getAllPrince(it.id).toFixed(2)}}</td>
70
+              <td colspan="6" style="text-align:center"></td>
68 71
             </tr>
69 72
             </tbody>
70 73
           </table>
@@ -282,6 +285,7 @@
282 285
             return false;
283 286
             } else {
284 287
              this.manufacturer = response.data.data.manufacturer;
288
+             this.dealer = response.data.data.dealer
285 289
               this.getList()
286 290
             }
287 291
         });
@@ -358,6 +362,16 @@
358 362
           }
359 363
         }
360 364
         return count
365
+      },
366
+       getDeatl(id){
367
+       
368
+        var dealer_name = ""
369
+        for(let i=0;i<this.dealer.length;i++){
370
+          if(id == this.dealer[i].id){
371
+            dealer_name = this.dealer[i].dealer_name
372
+          }
373
+        }
374
+        return dealer_name
361 375
       }
362 376
     },
363 377
     created() {

+ 19 - 4
src/xt_pages/stock/stockInOrderDetailPrint.vue View File

@@ -32,6 +32,7 @@
32 32
                                     <td style="line-height:18px;" width="80">注册证号/批准文号/备案凭证号</td>
33 33
                                     <td style="line-height:18px;" width="80">规格<br>型号</td>
34 34
                                     <td style="line-height:18px;" width="80">生产<br>厂商</td>
35
+                                    <td style="line-height:18px;" width="80">经销商</td>
35 36
                                     <td style="line-height:18px;" width="80">单位</td>
36 37
                                     <td style="line-height:18px;" width="80">进货价</td>
37 38
                                     <td style="line-height:18px;" width="80">入库<br>数量</td> 
@@ -50,6 +51,7 @@
50 51
                                     <td style="line-height:18px;">{{ item.license_number }}</td>
51 52
                                     <td style="line-height:18px;"><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
52 53
                                     <td style="line-height:18px;">{{ getManufacturer(item.good_id) }}</td>
54
+                                    <td style="line-height:18px;">{{ getDeatl(item.dealer) }}</td>
53 55
                                     <td style="line-height:18px;"><span v-if="item.good_id!=0">{{item.GoodInfo.packing_unit}}</span></td>
54 56
                                     <td style="line-height:18px;">{{item.price}}</td>
55 57
                                     <td style="line-height:18px;">{{item.warehousing_count}}</td> 
@@ -63,7 +65,9 @@
63 65
                                 </tr>
64 66
                                 <tr>
65 67
                                   <td>合计</td>
66
-                                  <td colspan="12" style="text-align:right;">{{getAllPice(it.id).toFixed(2)}}</td>
68
+                                  <td colspan="7" style="text-align:center;"></td>
69
+                                  <td style="text-align:right;">{{getAllPice(it.id).toFixed(2)}}</td>
70
+                                  <td colspan="6" style="text-align:center"></td>
67 71
                                </tr>
68 72
                             </tbody>
69 73
                         </table>
@@ -180,6 +184,7 @@ export default {
180 184
                   if(this.goodInfo[i].manufacturer == this.manufacturer[j].id){
181 185
                      this.goodInfo[i].manufacturer_name = this.manufacturer[j].manufacturer_name
182 186
                   }
187
+                
183 188
                } 
184 189
             }
185 190
              console.log("商品信息",this.goodInfo)
@@ -297,9 +302,9 @@ export default {
297 302
      getManufacturer(id){
298 303
          let name = ""
299 304
          for(let i=0;i<this.goodInfo.length;i++){
300
-             if(id == this.goodInfo[i].id){
301
-                name  =this.goodInfo[i].manufacturer_name
302
-             }
305
+            if(id == this.goodInfo[i].id){
306
+              name  =this.goodInfo[i].manufacturer_name
307
+            }
303 308
          }
304 309
          return name
305 310
       },
@@ -348,6 +353,16 @@ export default {
348 353
           }
349 354
         }
350 355
         return total_price
356
+      },
357
+      getDeatl(id){
358
+        console.log("23323233223",id)
359
+        var dealer_name = ""
360
+        for(let i=0;i<this.dealer.length;i++){
361
+          if(id == this.dealer[i].id){
362
+            dealer_name = this.dealer[i].dealer_name
363
+          }
364
+        }
365
+        return dealer_name
351 366
       }
352 367
     },
353 368
     created(){

+ 1 - 1
src/xt_pages/stock/stockQuery.vue View File

@@ -189,7 +189,7 @@
189 189
               getCancelCount(scope.row.id)
190 190
               }}
191 191
            </span>
192
-           <span v-if="org_id != 9675 || org_id != 3907 || org_id != 9583">
192
+           <span v-if="org_id != 9675 && org_id != 3907 && org_id != 9583">
193 193
                {{getOverFlushInfo(scope.row.xt_warehouse_info)}}
194 194
            </span>
195 195
          </template>