mainqaq hace 2 años
padre
commit
6bcc85defc
Se han modificado 68 ficheros con 1379 adiciones y 895 borrados
  1. 30 3
      src/api/deposit.js
  2. 95 18
      src/xt_pages/DepositManagement/DepositRefund.vue
  3. 7 4
      src/xt_pages/DepositManagement/DepositSearch.vue
  4. 9 3
      src/xt_pages/DepositManagement/RechargeDetailsSummary.vue
  5. 20 6
      src/xt_pages/DepositManagement/Template/DeductionDetails.vue
  6. 13 3
      src/xt_pages/DepositManagement/Template/DeductionSummary.vue
  7. 73 9
      src/xt_pages/DepositManagement/Template/DepositDetails.vue
  8. 15 3
      src/xt_pages/DepositManagement/Template/RechargeDetails.vue
  9. 12 3
      src/xt_pages/DepositManagement/Template/RechargeSummary.vue
  10. 5 4
      src/xt_pages/DepositManagement/Template/add_page.vue
  11. 2 1
      src/xt_pages/DepositManagement/Template/refundUpdate.vue
  12. 3 3
      src/xt_pages/data/components/addDrugs.vue
  13. 15 15
      src/xt_pages/data/components/editProject.vue
  14. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  15. 17 17
      src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue
  16. 4 4
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyEight.vue
  17. 6 6
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtySeven.vue
  18. 5 5
      src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue
  19. 8 8
      src/xt_pages/dialysis/batch_print/batch_print_order_twenty.vue
  20. 11 11
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue
  21. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_twentyTwo_one.vue
  22. 1 1
      src/xt_pages/dialysis/components/allSummaryDialog.vue
  23. 11 11
      src/xt_pages/dialysis/components/dialysisParameters.vue
  24. 2 2
      src/xt_pages/dialysis/components/dialysisParametersDialog.vue
  25. 6 5
      src/xt_pages/dialysis/details/NavIgation.vue
  26. 90 47
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  27. 79 46
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  28. 25 11
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  29. 8 8
      src/xt_pages/dialysis/details/index.vue
  30. 2 2
      src/xt_pages/dialysis/dialysisDrugs_print.vue
  31. 7 7
      src/xt_pages/dialysis/dialysisParameters_print.vue
  32. 23 23
      src/xt_pages/dialysis/doctorAdvicePrint.vue
  33. 8 8
      src/xt_pages/hospitalStation/checkPrint.vue
  34. 1 1
      src/xt_pages/hospitalStation/components/advice.vue
  35. 255 193
      src/xt_pages/hospitalStation/components/chargeDialog.vue
  36. 6 4
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue
  37. 21 21
      src/xt_pages/medicalScheduling/index.vue
  38. 118 23
      src/xt_pages/outpatientCharges/components/chargeDialog.vue
  39. 1 1
      src/xt_pages/outpatientCharges/invoicePrint.vue
  40. 1 1
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue
  41. 7 8
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  42. 9 9
      src/xt_pages/outpatientCharges/print.vue
  43. 4 4
      src/xt_pages/outpatientCharges/treatPrint.vue
  44. 1 1
      src/xt_pages/outpatientDoctorStation/components/advice.vue
  45. 40 40
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  46. 13 13
      src/xt_pages/stock/cancelStockOrder.vue
  47. 21 21
      src/xt_pages/stock/detail/cancelStockDetail.vue
  48. 37 37
      src/xt_pages/stock/detail/stockInDetail.vue
  49. 18 18
      src/xt_pages/stock/drugs/cancelDrugStockOrder.vue
  50. 18 18
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  51. 11 11
      src/xt_pages/stock/drugs/drugOutOrderPrint.vue
  52. 2 2
      src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue
  53. 7 7
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  54. 7 7
      src/xt_pages/stock/drugs/inventoryPrint.vue
  55. 25 25
      src/xt_pages/stock/drugs/query.vue
  56. 3 3
      src/xt_pages/stock/inventoryPrint.vue
  57. 10 10
      src/xt_pages/stock/selfPreparedMedicine/query.vue
  58. 3 3
      src/xt_pages/stock/selfPreparedMedicine/queryPrint.vue
  59. 11 11
      src/xt_pages/stock/selfPreparedMedicine/stockquery.vue
  60. 1 1
      src/xt_pages/stock/selfStockPrint.vue
  61. 34 34
      src/xt_pages/stock/stockInOrder.vue
  62. 6 6
      src/xt_pages/stock/stockOutOrderDetail.vue
  63. 14 14
      src/xt_pages/stock/stockQuery.vue
  64. 2 2
      src/xt_pages/supply/components/addPurchaseOrder.vue
  65. 9 9
      src/xt_pages/supply/components/editGoodOrder.vue
  66. 31 31
      src/xt_pages/supply/components/editGoodReturn.vue
  67. 4 4
      src/xt_pages/user/coursePrint.vue
  68. 14 3
      src/xt_pages/user/doctorAdvice.vue

+ 30 - 3
src/api/deposit.js Ver fichero

9
   })
9
   })
10
 }
10
 }
11
 
11
 
12
+//获取病例中心,有效患者名称(去除了转出和死亡的)
13
+export function gethisusertoalive(params) {
14
+  return request({
15
+    url: '/api/his/gethisusertoalive',
16
+    method: 'get',
17
+    params: params
18
+  })
19
+}
20
+
12
 //获取病例中心,有效患者名称=
21
 //获取病例中心,有效患者名称=
13
 export function gethisuser(params) {
22
 export function gethisuser(params) {
14
   return request({
23
   return request({
99
   })
108
   })
100
 }
109
 }
101
 
110
 
102
-//根据患者id获取押金流水
111
+//根据患者id获取押金流水=
103
 export function depositflow(params) {
112
 export function depositflow(params) {
104
   return request({
113
   return request({
105
     url: '/api/his/depositflow',
114
     url: '/api/his/depositflow',
153
   })
162
   })
154
 }
163
 }
155
 
164
 
156
-//退款分页=
165
+//退款列表=
157
 export function refundlist(params) {
166
 export function refundlist(params) {
158
   return request({
167
   return request({
159
     url: '/api/his/refundlist',
168
     url: '/api/his/refundlist',
162
   })
171
   })
163
 }
172
 }
164
 
173
 
165
-//获取机构名称
174
+//获取机构名称=
166
 export function getorgname(params) {
175
 export function getorgname(params) {
167
   return request({
176
   return request({
168
     url: '/api/his/getorgname',
177
     url: '/api/his/getorgname',
170
     params: params
179
     params: params
171
   })
180
   })
172
 }
181
 }
182
+
183
+//获取本周起止时间
184
+export function getweektime(params) {
185
+  return request({
186
+    url: '/api/his/getweektime',
187
+    method: 'get',
188
+    params: params
189
+  })
190
+}
191
+
192
+//获取本月起止时间
193
+export function getmonthtime(params) {
194
+  return request({
195
+    url: '/api/his/getmonthtime',
196
+    method: 'get',
197
+    params: params
198
+  })
199
+}

+ 95 - 18
src/xt_pages/DepositManagement/DepositRefund.vue Ver fichero

35
                 style="width: 200px; margin-left: 10px"
35
                 style="width: 200px; margin-left: 10px"
36
                 class="filter-item"
36
                 class="filter-item"
37
                 placeholder="请输入编号/患者名称"
37
                 placeholder="请输入编号/患者名称"
38
-                v-model.trim="keyword"
38
+                v-model.trim="tmp_keyword"
39
               />
39
               />
40
             </div>
40
             </div>
41
 
41
 
42
             <div style="width: 287px;margin-right: 30px;white-space: nowrap;">
42
             <div style="width: 287px;margin-right: 30px;white-space: nowrap;">
43
               退款类型:
43
               退款类型:
44
-              <el-select v-model="refundtype" placeholder="请选择" @change="updaterefundtype">
44
+              <el-select v-model="tmp_refundtype" placeholder="请选择" @change="updaterefundtype">
45
                 <el-option
45
                 <el-option
46
                   v-for="item in refundtypelist"
46
                   v-for="item in refundtypelist"
47
                   :key="item.name"
47
                   :key="item.name"
54
 
54
 
55
             <div style="width: 288px;margin-right: 30px;white-space: nowrap;">
55
             <div style="width: 288px;margin-right: 30px;white-space: nowrap;">
56
               审核状态:
56
               审核状态:
57
-              <el-select v-model="examinetype" placeholder="请选择" @change="updateexaminetype">
57
+              <el-select v-model="tmp_examinetype" placeholder="请选择" @change="updateexaminetype">
58
                 <el-option
58
                 <el-option
59
                   v-for="item in examinelist"
59
                   v-for="item in examinelist"
60
                   :key="item.name"
60
                   :key="item.name"
68
             <div style="width: 465px;white-space: nowrap;">
68
             <div style="width: 465px;white-space: nowrap;">
69
               <span>日期查询:</span>
69
               <span>日期查询:</span>
70
               <el-date-picker
70
               <el-date-picker
71
-                v-model="value1"
71
+                v-model="tmp_value1"
72
                 type="daterange"
72
                 type="daterange"
73
                 range-separator="至"
73
                 range-separator="至"
74
                 start-placeholder="开始日期"
74
                 start-placeholder="开始日期"
83
               class="filter-item"
83
               class="filter-item"
84
               type="primary"
84
               type="primary"
85
               icon="el-icon-search"
85
               icon="el-icon-search"
86
-              @click="search"
86
+              @click="search_tmp"
87
               >查询</el-button
87
               >查询</el-button
88
             >
88
             >
89
           </div>
89
           </div>
172
       >
172
       >
173
         <refundAdd ref="refuna_add" v-bind="$attrs"></refundAdd>
173
         <refundAdd ref="refuna_add" v-bind="$attrs"></refundAdd>
174
         <span slot="footer" class="dialog-footer">
174
         <span slot="footer" class="dialog-footer">
175
-          <el-button @click="pass">审核通过</el-button>
175
+          <el-button @click="pass">取消</el-button>
176
           <el-button type="primary" @click="Submit">保 存</el-button>
176
           <el-button type="primary" @click="Submit">保 存</el-button>
177
         </span>
177
         </span>
178
       </el-dialog>
178
       </el-dialog>
185
       >
185
       >
186
         <refundUpdate ref="refuna_up" v-bind="$attrs"></refundUpdate>
186
         <refundUpdate ref="refuna_up" v-bind="$attrs"></refundUpdate>
187
         <span slot="footer" class="dialog-footer">
187
         <span slot="footer" class="dialog-footer">
188
-<!--          <el-button @click="pass">审核通过</el-button>-->
188
+          <el-button @click="pass02">取消</el-button>
189
           <el-button type="primary" @click="Submit02">保 存</el-button>
189
           <el-button type="primary" @click="Submit02">保 存</el-button>
190
         </span>
190
         </span>
191
       </el-dialog>
191
       </el-dialog>
192
+
193
+      <el-pagination
194
+        @size-change="handleSizeChange"
195
+        @current-change="handleCurrentChange"
196
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
197
+        :page-size="10"
198
+        background
199
+        align="right"
200
+        style="margin-top: 20px"
201
+        layout="total, sizes, prev, pager, next, jumper"
202
+        :total="total"
203
+      >
204
+      </el-pagination>
192
     </div>
205
     </div>
193
   </div>
206
   </div>
194
 </template>
207
 </template>
199
 import {
212
 import {
200
   refundlist,
213
   refundlist,
201
   deleterefund,
214
   deleterefund,
202
-  refundreview
215
+  refundreview,
216
+  getweektime
203
 }from "@/api/deposit";
217
 }from "@/api/deposit";
204
 export default {
218
 export default {
205
   components: {
219
   components: {
219
       ],
233
       ],
220
       tableData: [],
234
       tableData: [],
221
       multipleSelection: [],
235
       multipleSelection: [],
222
-      // total: 0,
223
-      // page: 1,
224
-      // limit: 10,
236
+      total: 0,
237
+      page: 1,
238
+      limit: 10,
225
       keyword: "",
239
       keyword: "",
240
+      tmp_keyword:"",//临时keyword
226
       value1:"",
241
       value1:"",
242
+      tmp_value1:"",//临时日期
227
       start_time:"",
243
       start_time:"",
228
       end_time:"",
244
       end_time:"",
229
       // sum:"",
245
       // sum:"",
231
       dialogVisible02:false,
247
       dialogVisible02:false,
232
       close: false,
248
       close: false,
233
       refundtype: 0,//退款类型
249
       refundtype: 0,//退款类型
250
+      tmp_refundtype: 0,//临时退款类型
234
       examinetype: 3,//审核类型
251
       examinetype: 3,//审核类型
252
+      tmp_examinetype: 3,//临时审核状态
235
 
253
 
236
     };
254
     };
237
   },
255
   },
238
 
256
 
239
   created(){
257
   created(){
240
-    this.search()
258
+    this.init();
259
+    // this.search()
241
   },
260
   },
242
   methods: {
261
   methods: {
243
     // 初始化数据
262
     // 初始化数据
244
-    init() {},
263
+    init() {
264
+      var params = {}
265
+      getweektime(params).then((res) => {
266
+        if (res.data.state == 1){
267
+          this.tmp_value1 = [res.data.data.srart_time,res.data.data.end_time]
268
+          this.value1 = [res.data.data.srart_time,res.data.data.end_time]
269
+        }
270
+        this.search()
271
+      })
272
+    },
245
     updaterefundtype(){
273
     updaterefundtype(){
246
       console.log("refundtype",this.refundtype)
274
       console.log("refundtype",this.refundtype)
247
     },
275
     },
268
         end_time: this.end_time,
296
         end_time: this.end_time,
269
         refundtype: this.refundtype,
297
         refundtype: this.refundtype,
270
         examinetype: this.examinetype,
298
         examinetype: this.examinetype,
299
+        page: this.page,
300
+        limit: this.limit,
301
+      };
302
+      // console.log("params",params)
303
+      refundlist(params).then((res) => {
304
+        if (res.data.state == 1){
305
+          this.tableData = res.data.data.list;
306
+          this.total = res.data.data.total;
307
+        }
308
+      })
309
+    },
310
+    // 查询操作_查询按钮触发
311
+    search_tmp() {
312
+      console.log("==this.tmp_value1==",this.tmp_value1)
313
+      console.log("==this.value1==",this.value1)
314
+      this.keyword = this.tmp_keyword;
315
+      this.refundtype = this.tmp_refundtype;
316
+      this.examinetype = this.tmp_examinetype;
317
+      this.value1 = this.tmp_value1;
318
+      if (this.value1 != null){
319
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
320
+          this.start_time = this.value1[0]
321
+          this.end_time = this.value1[1]
322
+        }
323
+      }else {
324
+        this.start_time = ""
325
+        this.end_time = ""
326
+      }
327
+      var params = {
328
+        keyword: this.keyword,
329
+        start_time: this.start_time,
330
+        end_time: this.end_time,
331
+        refundtype: this.refundtype,
332
+        examinetype: this.examinetype,
333
+        page: 1,//this.page,
334
+        limit: this.limit,
271
       };
335
       };
272
       // console.log("params",params)
336
       // console.log("params",params)
273
       refundlist(params).then((res) => {
337
       refundlist(params).then((res) => {
274
         if (res.data.state == 1){
338
         if (res.data.state == 1){
275
           this.tableData = res.data.data.list;
339
           this.tableData = res.data.data.list;
340
+          this.total = res.data.data.total;
276
         }
341
         }
277
       })
342
       })
278
     },
343
     },
290
     // 编辑
355
     // 编辑
291
     edit(data,val){
356
     edit(data,val){
292
       if(data.trial_status != 0){
357
       if(data.trial_status != 0){
293
-        alert("当前状态不可编辑")
358
+        // alert("当前状态不可编辑")
359
+        this.$message.error("当前状态不可编辑!")
294
           return
360
           return
295
       }
361
       }
296
       this.dialogVisible02 = true;
362
       this.dialogVisible02 = true;
382
     // 提交
448
     // 提交
383
     Submit() {
449
     Submit() {
384
       this.$refs['refuna_add'].subfrom();
450
       this.$refs['refuna_add'].subfrom();
385
-      // setTimeout(() => {
386
-      //   this.$refs['rechange_details'].search();
387
-      // },500)
388
     },
451
     },
389
     Submit02(){
452
     Submit02(){
390
       this.$refs['refuna_up'].subfrom();
453
       this.$refs['refuna_up'].subfrom();
391
     },
454
     },
392
     // 退款申请审核
455
     // 退款申请审核
393
     pass(){
456
     pass(){
394
-      this.$refs['refuna_add'].examine();
457
+      // this.$refs['refuna_add'].examine();
458
+      this.dialogVisible = false;
459
+    },
460
+    pass02(){
461
+      // this.$refs['refuna_add'].examine();
462
+      this.dialogVisible02 = false;
395
     },
463
     },
396
     pli() {
464
     pli() {
397
       // alert("父组件被调用!")
465
       // alert("父组件被调用!")
401
       // alert("父组件被调用!")
469
       // alert("父组件被调用!")
402
       this.dialogVisible02 = false;
470
       this.dialogVisible02 = false;
403
     },
471
     },
472
+    // 页表操作
473
+    handleSizeChange(val) {
474
+      this.limit = val;
475
+      this.search();
476
+    },
477
+    handleCurrentChange(val) {
478
+      this.page = val;
479
+      this.search();
480
+    },
404
 
481
 
405
     // 列表选择
482
     // 列表选择
406
     handleSelectionChange(val){
483
     handleSelectionChange(val){

+ 7 - 4
src/xt_pages/DepositManagement/DepositSearch.vue Ver fichero

21
 <!--            placeholder="请输入患者名称"-->
21
 <!--            placeholder="请输入患者名称"-->
22
 <!--            v-model.trim="keyword"-->
22
 <!--            v-model.trim="keyword"-->
23
 <!--          />-->
23
 <!--          />-->
24
-          <el-select v-model.trim="keyword" clearable filterable placeholder="请输入患者名称" @select="handleSelect" ><!--@change="updateconfig1(h1)"-->
24
+          <el-select v-model.trim="tmp_keyword" clearable filterable placeholder="请输入患者名称" @select="handleSelect" @change="updateconfig"><!--@change="updateconfig1(h1)"-->
25
             <el-option
25
             <el-option
26
               v-for="item in users"
26
               v-for="item in users"
27
               :key="item.id"
27
               :key="item.id"
47
           color: '#606266',
47
           color: '#606266',
48
         }"
48
         }"
49
         :data="tableData"
49
         :data="tableData"
50
-        
50
+
51
         border
51
         border
52
       >
52
       >
53
         <el-table-column type="index" label="序号" align="center" width="200">
53
         <el-table-column type="index" label="序号" align="center" width="200">
111
       page: 1,
111
       page: 1,
112
       limit: 10,
112
       limit: 10,
113
       keyword:'',
113
       keyword:'',
114
+      tmp_keyword:'',
114
       users:[],//可用患者列表
115
       users:[],//可用患者列表
115
     };
116
     };
116
   },
117
   },
149
 
150
 
150
     // 查询操作
151
     // 查询操作
151
     search() {
152
     search() {
153
+      this.keyword = this.tmp_keyword
152
       var params = {
154
       var params = {
153
         keyword: this.keyword,
155
         keyword: this.keyword,
154
-        page: this.page,
156
+        page: 1,//this.page,
155
         limit: this.limit,
157
         limit: this.limit,
156
       };
158
       };
157
       getuserlist(params).then((res) =>{
159
       getuserlist(params).then((res) =>{
172
       this.init();
174
       this.init();
173
     },
175
     },
174
     handleSelect(item){
176
     handleSelect(item){
175
-      this.keyword = item.id
177
+      this.tmp_keyword = item.id
176
     },
178
     },
177
     updateconfig(){
179
     updateconfig(){
178
       console.log("keyword",this.keyword)
180
       console.log("keyword",this.keyword)
181
+
179
     },
182
     },
180
 
183
 
181
     // 流水详情
184
     // 流水详情

+ 9 - 3
src/xt_pages/DepositManagement/RechargeDetailsSummary.vue Ver fichero

31
         <!-- <span>这是一段信息</span> -->
31
         <!-- <span>这是一段信息</span> -->
32
         <RechangeAd ref="add_page" v-bind="$attrs"></RechangeAd>
32
         <RechangeAd ref="add_page" v-bind="$attrs"></RechangeAd>
33
         <span slot="footer" class="dialog-footer">
33
         <span slot="footer" class="dialog-footer">
34
-          <el-button @click="pass">审核通过</el-button>
34
+          <el-button @click="pass">取消</el-button>
35
           <el-button type="primary" @click="Submit">提 交</el-button>
35
           <el-button type="primary" @click="Submit">提 交</el-button>
36
         </span>
36
         </span>
37
       </el-dialog>
37
       </el-dialog>
66
       close: false,
66
       close: false,
67
     };
67
     };
68
   },
68
   },
69
+  created(){
70
+    this.search()
71
+  },
69
   methods: {
72
   methods: {
70
     // 初始化数据
73
     // 初始化数据
71
     init() {
74
     init() {
73
     },
76
     },
74
 
77
 
75
     // 查询操作
78
     // 查询操作
76
-    search() {},
79
+    search() {
80
+      this.$refs['rechange_details'].search();
81
+    },
77
     // 切换明细
82
     // 切换明细
78
     handleClick(tab, event) {
83
     handleClick(tab, event) {
79
       // console.log(tab, event);
84
       // console.log(tab, event);
112
 
117
 
113
     // 审核通过
118
     // 审核通过
114
     pass() {
119
     pass() {
115
-      this.$refs['add_page'].examine();
120
+      // this.$refs['add_page'].examine();
121
+      this.dialogVisible = false;
116
     },
122
     },
117
 
123
 
118
     // 提交
124
     // 提交

+ 20 - 6
src/xt_pages/DepositManagement/Template/DeductionDetails.vue Ver fichero

69
           </template>
69
           </template>
70
         </el-table-column>
70
         </el-table-column>
71
 
71
 
72
-        <el-table-column label="收费类型" align="center">
72
+        <el-table-column label="收费类型" align="center">
73
           <template slot-scope="scope">
73
           <template slot-scope="scope">
74
             <span>{{ scope.row.chargetype	 ? scope.row.chargetype	 : "" }}</span>
74
             <span>{{ scope.row.chargetype	 ? scope.row.chargetype	 : "" }}</span>
75
           </template>
75
           </template>
91
         </el-table-column>
91
         </el-table-column>
92
         <el-table-column label="操作" align="center" width="350px">
92
         <el-table-column label="操作" align="center" width="350px">
93
           <template slot-scope="scope">
93
           <template slot-scope="scope">
94
+            <span v-if="scope.row.button_show == 1">
94
             <el-button
95
             <el-button
95
               size="small"
96
               size="small"
96
               type="primary"
97
               type="primary"
98
             >
99
             >
99
               查看详情
100
               查看详情
100
             </el-button>
101
             </el-button>
102
+            </span>
101
           </template>
103
           </template>
102
         </el-table-column>
104
         </el-table-column>
103
       </el-table>
105
       </el-table>
109
 <script>
111
 <script>
110
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
112
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
111
 import {
113
 import {
112
-  deductiondetails
114
+  deductiondetails,
115
+  getweektime
113
 }from "@/api/deposit";
116
 }from "@/api/deposit";
114
 export default {
117
 export default {
115
   components: {
118
   components: {
134
   },
137
   },
135
 
138
 
136
   created(){
139
   created(){
137
-    this.search()
140
+    this.init();
141
+    // this.search()
138
   },
142
   },
139
   methods: {
143
   methods: {
140
 
144
 
144
         console.log(param,'oo')
148
         console.log(param,'oo')
145
         let sums = [];
149
         let sums = [];
146
         columns.forEach((column, index) => {
150
         columns.forEach((column, index) => {
147
-          
151
+
148
           if (index === 0) {
152
           if (index === 0) {
149
             sums[index] = '总价';
153
             sums[index] = '总价';
150
             return;
154
             return;
170
       },
174
       },
171
 
175
 
172
     // 初始化数据
176
     // 初始化数据
173
-    init() {},
177
+    init() {
178
+      var params = {}
179
+      getweektime(params).then((res) => {
180
+        if(res.data.state == 1){
181
+          this.value1 = [res.data.data.srart_time,res.data.data.end_time]
182
+        }
183
+        this.search()
184
+      })
185
+    },
174
 
186
 
175
     // 查询操作
187
     // 查询操作
176
     search() {
188
     search() {
200
     },
212
     },
201
 
213
 
202
     // 查看详情
214
     // 查看详情
203
-    Details() {},
215
+    Details(val,index) {
216
+      this.$router.push({path:"/outpatientCharges/summaryDetail?patient_id="+val.name_id+"&number="+val.number+"&id="+val.id})
217
+    },
204
   },
218
   },
205
 };
219
 };
206
 </script>
220
 </script>

+ 13 - 3
src/xt_pages/DepositManagement/Template/DeductionSummary.vue Ver fichero

85
 <script>
85
 <script>
86
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
86
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
87
 import {
87
 import {
88
-  desummary
88
+  desummary,
89
+  getweektime
89
 }from "@/api/deposit";
90
 }from "@/api/deposit";
90
 export default {
91
 export default {
91
   components: {
92
   components: {
110
   },
111
   },
111
 
112
 
112
   created(){
113
   created(){
113
-    this.search()
114
+    this.init();
115
+    // this.search()
114
   },
116
   },
115
   methods: {
117
   methods: {
116
     // 初始化数据
118
     // 初始化数据
117
-    init() {},
119
+    init() {
120
+      var params = {}
121
+      getweektime(params).then((res) => {
122
+        if (res.data.state == 1){
123
+          this.value1 = [res.data.data.srart_time,res.data.data.end_time]
124
+        }
125
+        this.search()
126
+      })
127
+    },
118
 
128
 
119
     // 查询操作
129
     // 查询操作
120
     search() {
130
     search() {

+ 73 - 9
src/xt_pages/DepositManagement/Template/DepositDetails.vue Ver fichero

38
             end-placeholder="结束日期"
38
             end-placeholder="结束日期"
39
             format="yyyy-MM-dd"
39
             format="yyyy-MM-dd"
40
             value-format="yyyy-MM-dd"
40
             value-format="yyyy-MM-dd"
41
-            @change="search"
41
+            @change="search_tmp"
42
           >
42
           >
43
           </el-date-picker>
43
           </el-date-picker>
44
         </div>
44
         </div>
106
 
106
 
107
       </el-table>
107
       </el-table>
108
 
108
 
109
+
110
+      <el-pagination
111
+        @size-change="handleSizeChange"
112
+        @current-change="handleCurrentChange"
113
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
114
+        :page-size="10"
115
+        background
116
+        align="right"
117
+        style="margin-top: 20px"
118
+        layout="total, sizes, prev, pager, next, jumper"
119
+        :total="total"
120
+      >
121
+      </el-pagination>
109
     </div>
122
     </div>
110
   </div>
123
   </div>
111
 </template>
124
 </template>
113
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
126
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
114
 import {
127
 import {
115
   refundlist,
128
   refundlist,
116
-  depositflow
129
+  depositflow,
130
+  getmonthtime
117
 }from "@/api/deposit";
131
 }from "@/api/deposit";
118
 export default {
132
 export default {
119
   components: {
133
   components: {
134
       name: "",
148
       name: "",
135
       sum:0,
149
       sum:0,
136
       deposit_status:0,
150
       deposit_status:0,
151
+      total: 0,
152
+      page: 1,
153
+      limit: 10,
137
     };
154
     };
138
   },
155
   },
139
   created(){
156
   created(){
140
     this.init();
157
     this.init();
141
-    this.search();
158
+    // this.search();
142
   },
159
   },
143
   methods: {
160
   methods: {
144
     // 初始化数据
161
     // 初始化数据
147
       // console.log("this.$route.query.key",this.$route.query.key);
164
       // console.log("this.$route.query.key",this.$route.query.key);
148
       this.name = this.$route.query.key.his_patient_name
165
       this.name = this.$route.query.key.his_patient_name
149
       this.id = this.$route.query.key.his_patient_id
166
       this.id = this.$route.query.key.his_patient_id
167
+      var params = {}
168
+      getmonthtime(params).then((res) => {
169
+        if (res.data.state == 1){
170
+          this.value1 = [res.data.data.srart_time,res.data.data.end_time]
171
+          console.log("==========this.value1",this.value1);
172
+        }
173
+        this.search();
174
+      })
175
+      // this.search();
150
     },
176
     },
151
-    // lili(){
152
-    //   alert("触发")
153
-    // },
154
-    // ljc(){
155
-    //   alert(this.deposit_status)
156
-    // },
157
     // 查询操作
177
     // 查询操作
158
     search() {
178
     search() {
179
+      console.log("this.value1++++++++++++",this.value1);
180
+      if (this.value1 != null){
181
+        if(this.value1[0] != undefined && this.value1[1] != undefined){
182
+          this.start_time = this.value1[0]
183
+          this.end_time = this.value1[1]
184
+        }
185
+      }else {
186
+        this.start_time = ""
187
+        this.end_time = ""
188
+      }
189
+      var params = {
190
+        id: this.id,
191
+        start_time: this.start_time,
192
+        end_time: this.end_time,
193
+        deposit_status: this.deposit_status,
194
+        page: this.page,
195
+        limit: this.limit,
196
+      };
197
+      // console.log("params",params)
198
+      depositflow(params).then((res) => {
199
+        if (res.data.state == 1){
200
+          this.tableData = res.data.data.list;
201
+          this.sum = res.data.data.decimal;
202
+          this.total = res.data.data.total;
203
+        }
204
+      })
205
+    },
206
+    // 查询操作_用于日期
207
+    search_tmp() {
208
+      console.log("this.value1++++++++++++",this.value1);
159
       if (this.value1 != null){
209
       if (this.value1 != null){
160
         if(this.value1[0] != undefined && this.value1[1] != undefined){
210
         if(this.value1[0] != undefined && this.value1[1] != undefined){
161
           this.start_time = this.value1[0]
211
           this.start_time = this.value1[0]
170
         start_time: this.start_time,
220
         start_time: this.start_time,
171
         end_time: this.end_time,
221
         end_time: this.end_time,
172
         deposit_status: this.deposit_status,
222
         deposit_status: this.deposit_status,
223
+        page: 1,//this.page,
224
+        limit: this.limit,
173
       };
225
       };
174
       // console.log("params",params)
226
       // console.log("params",params)
175
       depositflow(params).then((res) => {
227
       depositflow(params).then((res) => {
176
         if (res.data.state == 1){
228
         if (res.data.state == 1){
177
           this.tableData = res.data.data.list;
229
           this.tableData = res.data.data.list;
178
           this.sum = res.data.data.decimal;
230
           this.sum = res.data.data.decimal;
231
+          this.total = res.data.data.total;
179
         }
232
         }
180
       })
233
       })
181
     },
234
     },
235
+
236
+    // 页表操作
237
+    handleSizeChange(val) {
238
+      this.limit = val;
239
+      this.search();
240
+    },
241
+    handleCurrentChange(val) {
242
+      this.page = val;
243
+      this.search();
244
+    },
245
+
182
   },
246
   },
183
 };
247
 };
184
 </script>
248
 </script>

+ 15 - 3
src/xt_pages/DepositManagement/Template/RechargeDetails.vue Ver fichero

106
             >
106
             >
107
               审核
107
               审核
108
             </el-button>
108
             </el-button>
109
+            <span v-if="scope.row.trial_status == 1">
109
             <el-button
110
             <el-button
110
               size="small"
111
               size="small"
111
               type="primary"
112
               type="primary"
113
             >
114
             >
114
               打印凭证
115
               打印凭证
115
             </el-button>
116
             </el-button>
117
+            </span>
116
             <el-button
118
             <el-button
117
               size="small"
119
               size="small"
118
               type="danger"
120
               type="danger"
135
 import {
137
 import {
136
   rechargedetails,
138
   rechargedetails,
137
   deletehistory,
139
   deletehistory,
138
-  updeposit
140
+  updeposit,
141
+  getweektime
139
 }from "@/api/deposit";
142
 }from "@/api/deposit";
140
 export default {
143
 export default {
141
   components: {
144
   components: {
159
     };
162
     };
160
   },
163
   },
161
   created(){
164
   created(){
162
-    this.search()
165
+    this.init();
166
+    // this.search()
163
   },
167
   },
164
   methods: {
168
   methods: {
165
     // 初始化数据
169
     // 初始化数据
166
-    init() {},
170
+    init() {
171
+      var params = {}
172
+      getweektime(params).then((res) => {
173
+        if (res.data.state == 1){
174
+            this.value1 = [res.data.data.srart_time,res.data.data.end_time]
175
+        }
176
+        this.search()
177
+      })
178
+    },
167
 
179
 
168
     // 查询操作
180
     // 查询操作
169
     search() {
181
     search() {

+ 12 - 3
src/xt_pages/DepositManagement/Template/RechargeSummary.vue Ver fichero

77
         </el-table-column>
77
         </el-table-column>
78
 
78
 
79
       </el-table>
79
       </el-table>
80
-<!-- 
80
+<!--
81
       <div>
81
       <div>
82
           充值金额合计:<span>{{sum}}</span>
82
           充值金额合计:<span>{{sum}}</span>
83
       </div> -->
83
       </div> -->
87
 <script>
87
 <script>
88
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
88
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
89
 import {
89
 import {
90
-  rechargesummary
90
+  rechargesummary,
91
+  getweektime
91
 }from "@/api/deposit";
92
 }from "@/api/deposit";
92
 export default {
93
 export default {
93
   components: {
94
   components: {
111
     };
112
     };
112
   },
113
   },
113
   created(){
114
   created(){
115
+    this.init();
114
     this.search()
116
     this.search()
115
   },
117
   },
116
   methods: {
118
   methods: {
117
     // 初始化数据
119
     // 初始化数据
118
-    init() {},
120
+    init() {
121
+      var params = {}
122
+      getweektime(params).then((res) => {
123
+        if (res.data.state == 1){
124
+          this.value1 = [res.data.data.srart_time,res.data.data.end_time]
125
+        }
126
+      })
127
+    },
119
 
128
 
120
     // 查询操作
129
     // 查询操作
121
     search() {
130
     search() {

+ 5 - 4
src/xt_pages/DepositManagement/Template/add_page.vue Ver fichero

30
 <script>
30
 <script>
31
 import {
31
 import {
32
   getdepositcode,
32
   getdepositcode,
33
-  gethisuser,
33
+  gethisusertoalive,
34
   adddeposit
34
   adddeposit
35
 }from "@/api/deposit";
35
 }from "@/api/deposit";
36
 export default {
36
 export default {
40
         remarks:"",
40
         remarks:"",
41
         code:"",
41
         code:"",
42
         patient_name:"",
42
         patient_name:"",
43
-        money:0
43
+        money:"",
44
       },
44
       },
45
       users:[],//可用患者列表
45
       users:[],//可用患者列表
46
       trial_status:0,
46
       trial_status:0,
70
     //获取患者列表
70
     //获取患者列表
71
     getusername(){
71
     getusername(){
72
       var params = {};
72
       var params = {};
73
-      gethisuser(params).then((res) =>{
73
+      gethisusertoalive(params).then((res) =>{
74
         if (res.data.state == 1){
74
         if (res.data.state == 1){
75
           this.users = res.data.data.list;
75
           this.users = res.data.data.list;
76
         }
76
         }
98
         }else {
98
         }else {
99
           this.$message.error("新增失败:" + res.data.msg);
99
           this.$message.error("新增失败:" + res.data.msg);
100
         }
100
         }
101
+
101
       })
102
       })
102
     },
103
     },
103
     handleSelect(item){
104
     handleSelect(item){
112
       // alert("清除");
113
       // alert("清除");
113
       this.form.patient_name = "";
114
       this.form.patient_name = "";
114
       this.form.remarks = "";
115
       this.form.remarks = "";
115
-      this.form.money = 0;
116
+      this.form.money = "";
116
       this.trial_status = 0;
117
       this.trial_status = 0;
117
     },
118
     },
118
   },
119
   },

+ 2 - 1
src/xt_pages/DepositManagement/Template/refundUpdate.vue Ver fichero

113
     //审核通过
113
     //审核通过
114
     examine(){
114
     examine(){
115
       if(this.trial_status == 1){
115
       if(this.trial_status == 1){
116
-        alert("已审核")
116
+        // alert("已审核")
117
+        this.$message.success("已审核");
117
       }
118
       }
118
       this.trial_status = 1
119
       this.trial_status = 1
119
 
120
 

+ 3 - 3
src/xt_pages/data/components/addDrugs.vue Ver fichero

342
                             <el-input v-model="form.social_security_directory_code" style="width:160px"></el-input>
342
                             <el-input v-model="form.social_security_directory_code" style="width:160px"></el-input>
343
                         </el-form-item>
343
                         </el-form-item>
344
 
344
 
345
-                      
345
+
346
 
346
 
347
                         <el-form-item label="备案日期:">
347
                         <el-form-item label="备案日期:">
348
                             <el-date-picker
348
                             <el-date-picker
353
                                     placeholder="选择日期时间">
353
                                     placeholder="选择日期时间">
354
                             </el-date-picker>
354
                             </el-date-picker>
355
                         </el-form-item>
355
                         </el-form-item>
356
-                      
356
+
357
                         <el-form-item label="是否零用:">
357
                         <el-form-item label="是否零用:">
358
 
358
 
359
                             <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择">
359
                             <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择">
365
                                 </el-option>
365
                                 </el-option>
366
                             </el-select>
366
                             </el-select>
367
                         </el-form-item>
367
                         </el-form-item>
368
-                      
368
+
369
 
369
 
370
                         <el-form-item label="药品备注:">
370
                         <el-form-item label="药品备注:">
371
                             <el-input v-model="form.drug_remark" style="width:160px"></el-input>
371
                             <el-input v-model="form.drug_remark" style="width:160px"></el-input>

+ 15 - 15
src/xt_pages/data/components/editProject.vue Ver fichero

157
                                 placeholder="选择日期时间">
157
                                 placeholder="选择日期时间">
158
                             </el-date-picker>
158
                             </el-date-picker>
159
                         </el-form-item>
159
                         </el-form-item>
160
-                      
160
+
161
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
161
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
162
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
162
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
163
                         </el-form-item>
163
                         </el-form-item>
164
 
164
 
165
-                        
165
+
166
                     </el-form>
166
                     </el-form>
167
                 </div>
167
                 </div>
168
             </el-tab-pane>
168
             </el-tab-pane>
233
                             :value="item.value">
233
                             :value="item.value">
234
                             </el-option>
234
                             </el-option>
235
                         </el-select>
235
                         </el-select>
236
-                    </el-form-item>       
236
+                    </el-form-item>
237
                 </el-form>
237
                 </el-form>
238
             </el-tab-pane>
238
             </el-tab-pane>
239
         </el-tabs>
239
         </el-tabs>
261
              ],
261
              ],
262
             value: '',
262
             value: '',
263
             radio:'1',
263
             radio:'1',
264
-          
264
+
265
             form:{
265
             form:{
266
               id:0,
266
               id:0,
267
               project_name:"",
267
               project_name:"",
268
               pinyin:"",
268
               pinyin:"",
269
-              wubi:"", 
270
-              price:"", 
269
+              wubi:"",
270
+              price:"",
271
               unit:"",
271
               unit:"",
272
               cost_classify:"",
272
               cost_classify:"",
273
               executive_section:"",
273
               executive_section:"",
296
               specail_project:"",
296
               specail_project:"",
297
               social_security_directory_code:"",
297
               social_security_directory_code:"",
298
               record_date:"",
298
               record_date:"",
299
-              
299
+
300
             },
300
             },
301
             rules: {
301
             rules: {
302
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
302
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
350
            this.visible = true
350
            this.visible = true
351
            this.formTitle = '编辑'
351
            this.formTitle = '编辑'
352
            this.getProjectDetail(id)
352
            this.getProjectDetail(id)
353
-          
353
+
354
         },
354
         },
355
         hide() {
355
         hide() {
356
          this.visible = false
356
          this.visible = false
362
           return getDictionaryDataConfig(module, filed_name)
362
           return getDictionaryDataConfig(module, filed_name)
363
        },
363
        },
364
        getProjectDetail(id){
364
        getProjectDetail(id){
365
-        
365
+
366
          getProjectDetail(id).then(response=>{
366
          getProjectDetail(id).then(response=>{
367
             if(response.data.state == 1){
367
             if(response.data.state == 1){
368
               var projecDetail =  response.data.data.projecDetail
368
               var projecDetail =  response.data.data.projecDetail
399
               this.form.execution_frequency = projecDetail.execution_frequency
399
               this.form.execution_frequency = projecDetail.execution_frequency
400
               this.form.number_days = projecDetail.number_days
400
               this.form.number_days = projecDetail.number_days
401
               this.form.total = projecDetail.total
401
               this.form.total = projecDetail.total
402
-            
402
+
403
               this.form.category = projecDetail.category
403
               this.form.category = projecDetail.category
404
                if(projecDetail.category == 0){
404
                if(projecDetail.category == 0){
405
                 this.form.category = ""
405
                 this.form.category = ""
419
             }
419
             }
420
          })
420
          })
421
        },
421
        },
422
-     
423
-       
422
+
423
+
424
        submitAction(formName){
424
        submitAction(formName){
425
           this.$refs[formName].validate((valid)=>{
425
           this.$refs[formName].validate((valid)=>{
426
             if(valid){
426
             if(valid){
459
                     social_security_directory_code:this.form.social_security_directory_code,
459
                     social_security_directory_code:this.form.social_security_directory_code,
460
                     record_date:this.form.record_date
460
                     record_date:this.form.record_date
461
                }
461
                }
462
-              
462
+
463
               updatedProject(params).then(response=>{
463
               updatedProject(params).then(response=>{
464
                  if(response.data.state == 1){
464
                  if(response.data.state == 1){
465
                    var hisProject = response.data.data.hisProject
465
                    var hisProject = response.data.data.hisProject
466
                    this.$message.success('保存成功')
466
                    this.$message.success('保存成功')
467
                    this.$parent.getlist()
467
                    this.$parent.getlist()
468
                    this.visible = false
468
                    this.visible = false
469
-                   
469
+
470
                  }
470
                  }
471
               })
471
               })
472
             }
472
             }
501
     },
501
     },
502
 
502
 
503
     created(){
503
     created(){
504
-       this.getlist() 
504
+       this.getlist()
505
        this.getInitializtion()
505
        this.getInitializtion()
506
     }
506
     }
507
 }
507
 }

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Ver fichero

717
 
717
 
718
           this.records = this.records.concat(resp.data.schedules)
718
           this.records = this.records.concat(resp.data.schedules)
719
           console.log("记录23323322332",this.records)
719
           console.log("记录23323322332",this.records)
720
- 
720
+
721
 
721
 
722
           for (const recordIndex in this.records) {
722
           for (const recordIndex in this.records) {
723
             var dlegh = 0
723
             var dlegh = 0

+ 17 - 17
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue Ver fichero

39
                         <div class="inline_block under_line" style="width:50px">{{ getTime(record.schedule_date, "{d}") }}</div>日
39
                         <div class="inline_block under_line" style="width:50px">{{ getTime(record.schedule_date, "{d}") }}</div>日
40
                     </div>
40
                     </div>
41
                     <div class="inline_block" style="margin-right:5px;">
41
                     <div class="inline_block" style="margin-right:5px;">
42
-                        姓名 
42
+                        姓名
43
                         <div class="inline_block under_line" style="width:100px;text-align: center;">
43
                         <div class="inline_block under_line" style="width:100px;text-align: center;">
44
                             {{ record.patient.name ? record.patient.name : "" }}
44
                             {{ record.patient.name ? record.patient.name : "" }}
45
                         </div>
45
                         </div>
57
57
58
                     </div>
58
                     </div>
59
                     <div class="inline_block" style="margin-right:5px;">
59
                     <div class="inline_block" style="margin-right:5px;">
60
-                        机器编号 
60
+                        机器编号
61
                         <div class="inline_block under_line" style="width:80px;">
61
                         <div class="inline_block under_line" style="width:80px;">
62
                           {{ record.device_zone.name && record.device_number.number ? getNewNumber(record.device_zone.name,record.device_number.number) : '' }}
62
                           {{ record.device_zone.name && record.device_number.number ? getNewNumber(record.device_zone.name,record.device_number.number) : '' }}
63
                         <!-- {{ record.device_zone.name && record.device_number.number ? record.device_zone.name + record.device_number.number : '' }} -->
63
                         <!-- {{ record.device_zone.name && record.device_number.number ? record.device_zone.name + record.device_number.number : '' }} -->
70
                 <div style="border-bottom: 2px solid #000;width:100%;"></div>
70
                 <div style="border-bottom: 2px solid #000;width:100%;"></div>
71
                 <div class="row">
71
                 <div class="row">
72
                     <div class="inline_block" style="margin-right:30px;">
72
                     <div class="inline_block" style="margin-right:30px;">
73
-                        血液净化方式 
73
+                        血液净化方式
74
                         <div
74
                         <div
75
                           class="under_line"
75
                           class="under_line"
76
                           style="width: 100px;text-align: center;font-weight:600;"
76
                           style="width: 100px;text-align: center;font-weight:600;"
193
                         </div>
193
                         </div>
194
                     </div>
194
                     </div>
195
                     <div class="inline_block" style="margin-right:30px;">
195
                     <div class="inline_block" style="margin-right:30px;">
196
-                        血液净化器类型 
196
+                        血液净化器类型
197
                         <div class="inline_block under_line" style="width:150px;text-align: center;">
197
                         <div class="inline_block under_line" style="width:150px;text-align: center;">
198
                             {{ record.prescription.dialyzer_perfusion_apparatus ? record.prescription.dialyzer_perfusion_apparatus : ''}}
198
                             {{ record.prescription.dialyzer_perfusion_apparatus ? record.prescription.dialyzer_perfusion_apparatus : ''}}
199
                         </div>
199
                         </div>
200
                     </div>
200
                     </div>
201
                     <div class="inline_block" style="margin-right:30px;">
201
                     <div class="inline_block" style="margin-right:30px;">
202
-                        透析液配方 
202
+                        透析液配方
203
                         <div class="inline_block under_line" style="width:150px;text-align: center;">
203
                         <div class="inline_block under_line" style="width:150px;text-align: center;">
204
                             {{ record.prescription.dialysate_formulation ? dialysateFormulationName(record.prescription.dialysate_formulation) : ''}}
204
                             {{ record.prescription.dialysate_formulation ? dialysateFormulationName(record.prescription.dialysate_formulation) : ''}}
205
                         </div>
205
                         </div>
206
                     </div>
206
                     </div>
207
                 </div>
207
                 </div>
208
                 <div class="row">
208
                 <div class="row">
209
-                    血管通路 
209
+                    血管通路
210
                     <div class="inline_block under_line" style="width:92%;text-align: left;">
210
                     <div class="inline_block under_line" style="width:92%;text-align: left;">
211
                     <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="内瘘"></label-box>
211
                     <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="内瘘"></label-box>
212
                     (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左')" showValue="左"></label-box>
212
                     (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左')" showValue="左"></label-box>
237
                 </div>
237
                 </div>
238
                 <div class="row">
238
                 <div class="row">
239
                   <div class="inline_block" style="margin-right:30px;">
239
                   <div class="inline_block" style="margin-right:30px;">
240
-                      导管 
240
+                      导管
241
                       <div class="inline_block under_line" style="width:200px;text-align: left;">
241
                       <div class="inline_block under_line" style="width:200px;text-align: left;">
242
                           {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter : ''}}
242
                           {{ record.assessment_before_dislysis.catheter ? record.assessment_before_dislysis.catheter : ''}}
243
                       </div>
243
                       </div>
244
                   </div>
244
                   </div>
245
                   <div class="inline_block" style="margin-right:30px;">
245
                   <div class="inline_block" style="margin-right:30px;">
246
-                      内瘘 
246
+                      内瘘
247
                       <div class="inline_block under_line" style="width:200px;text-align: left;">
247
                       <div class="inline_block under_line" style="width:200px;text-align: left;">
248
                           {{ record.assessment_before_dislysis.internal_fistula ? record.assessment_before_dislysis.internal_fistula : ''}}
248
                           {{ record.assessment_before_dislysis.internal_fistula ? record.assessment_before_dislysis.internal_fistula : ''}}
249
                       </div>
249
                       </div>
250
                   </div>
250
                   </div>
251
                 </div>
251
                 </div>
252
                 <div class="row">
252
                 <div class="row">
253
-                    抗凝药物 
253
+                    抗凝药物
254
                     <div class="inline_block under_line" style="width:92%;text-align: left;">
254
                     <div class="inline_block under_line" style="width:92%;text-align: left;">
255
                     <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>&nbsp;
255
                     <label-box :isChecked="record.prescription.anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>&nbsp;
256
                     <label-box :isChecked="record.prescription.anticoagulant == 3 ?  true : record.prescription.anticoagulant == 6 ? true : record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
256
                     <label-box :isChecked="record.prescription.anticoagulant == 3 ?  true : record.prescription.anticoagulant == 6 ? true : record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素"></label-box>
267
                         <span v-if="record.prescription.anticoagulant == 2">iu</span>
267
                         <span v-if="record.prescription.anticoagulant == 2">iu</span>
268
                         <span v-if="record.prescription.anticoagulant == 1">mg</span>
268
                         <span v-if="record.prescription.anticoagulant == 1">mg</span>
269
                         <span v-if="record.prescription.anticoagulant == 6">iu</span>
269
                         <span v-if="record.prescription.anticoagulant == 6">iu</span>
270
-                        <span v-if="record.prescription.anticoagulant == 7">iu</span>&nbsp; 
270
+                        <span v-if="record.prescription.anticoagulant == 7">iu</span>&nbsp;
271
                     </div>
271
                     </div>
272
                     <div class="inline_block">
272
                     <div class="inline_block">
273
                         追加
273
                         追加
280
                         <span v-if="record.prescription.anticoagulant == 2">iu/h</span>
280
                         <span v-if="record.prescription.anticoagulant == 2">iu/h</span>
281
                         <span v-if="record.prescription.anticoagulant == 1">mg/h</span>
281
                         <span v-if="record.prescription.anticoagulant == 1">mg/h</span>
282
                         <span v-if="record.prescription.anticoagulant == 6">iu/h</span>
282
                         <span v-if="record.prescription.anticoagulant == 6">iu/h</span>
283
-                        <span v-if="record.prescription.anticoagulant == 7">iu/h</span>&nbsp; 
283
+                        <span v-if="record.prescription.anticoagulant == 7">iu/h</span>&nbsp;
284
                     </div>
284
                     </div>
285
                     <div class="inline_block">
285
                     <div class="inline_block">
286
                         总量
286
                         总量
341
                     </div>
341
                     </div>
342
                 </div>
342
                 </div>
343
                 <div class="row">
343
                 <div class="row">
344
-                    透前评估 
344
+                    透前评估
345
                     <div class="inline_block under_line" style="width:50%;text-align: left;">
345
                     <div class="inline_block under_line" style="width:50%;text-align: left;">
346
                       <div class="inline_block" style="margin-right:30px;">
346
                       <div class="inline_block" style="margin-right:30px;">
347
                           体温
347
                           体温
373
                       <div class="inline_block under_line" style="width:80px;text-align: center;">
373
                       <div class="inline_block under_line" style="width:80px;text-align: center;">
374
                         {{ record.assessment_before_dislysis.dialysis_count ? record.assessment_before_dislysis.dialysis_count : "" }}
374
                         {{ record.assessment_before_dislysis.dialysis_count ? record.assessment_before_dislysis.dialysis_count : "" }}
375
                       </div>
375
                       </div>
376
-            
376
+
377
                     </div>
377
                     </div>
378
                 </div>
378
                 </div>
379
                 <div class="row">
379
                 <div class="row">
475
                                     </span>
475
                                     </span>
476
                                 </span>
476
                                 </span>
477
                             </div>
477
                             </div>
478
-                            
478
+
479
                         </span>
479
                         </span>
480
                     </td>
480
                     </td>
481
                     <td>
481
                     <td>
593
                             </span>
593
                             </span>
594
                           </div>
594
                           </div>
595
                         </td>
595
                         </td>
596
-                        
596
+
597
                     </tr>
597
                     </tr>
598
                     <tr>
598
                     <tr>
599
                       <td width="90" style="border:none;padding-left:5px">实际置换量:</td>
599
                       <td width="90" style="border:none;padding-left:5px">实际置换量:</td>
701
                             <img class="es-img" style="height:30px;" :src="setAdminUserES(record.summer, record.summer ? (record.summer.modifier ? 'modifier' : 'creater') : false)" />
701
                             <img class="es-img" style="height:30px;" :src="setAdminUserES(record.summer, record.summer ? (record.summer.modifier ? 'modifier' : 'creater') : false)" />
702
                         </span>
702
                         </span>
703
                         </span>
703
                         </span>
704
-                        
705
-                        
704
+
705
+
706
                     </td>
706
                     </td>
707
                     </tr>
707
                     </tr>
708
                 </table>
708
                 </table>

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyEight.vue Ver fichero

160
                         <div class="widthLength25">治疗总时长:{{ record.prescription.dialysis_duration_hour ? record.prescription.dialysis_duration_hour : 0 }}小时
160
                         <div class="widthLength25">治疗总时长:{{ record.prescription.dialysis_duration_hour ? record.prescription.dialysis_duration_hour : 0 }}小时
161
                         {{ record.prescription.dialysis_duration_minute ? record.prescription.dialysis_duration_minute : 0 }}分钟
161
                         {{ record.prescription.dialysis_duration_minute ? record.prescription.dialysis_duration_minute : 0 }}分钟
162
                         </div>
162
                         </div>
163
-                        <div class="widthLength25">透析器:{{ record.prescription.dialysis_dialyszers ? record.prescription.dialysis_dialyszers : '' }} 
163
+                        <div class="widthLength25">透析器:{{ record.prescription.dialysis_dialyszers ? record.prescription.dialysis_dialyszers : '' }}
164
                         <span v-if="record.prescription.dialysis_irrigation!=''">/{{record.prescription.dialysis_irrigation}}</span>
164
                         <span v-if="record.prescription.dialysis_irrigation!=''">/{{record.prescription.dialysis_irrigation}}</span>
165
                         </div>
165
                         </div>
166
                     </div>
166
                     </div>
367
                         <div class="widthLength25">透析器凝血:{{ record.assessment_after_dislysis.cruor ? record.assessment_after_dislysis.cruor : "" }}</div>
367
                         <div class="widthLength25">透析器凝血:{{ record.assessment_after_dislysis.cruor ? record.assessment_after_dislysis.cruor : "" }}</div>
368
                         <div class="widthLength25"></div>
368
                         <div class="widthLength25"></div>
369
                         <div class="widthLength25"></div>
369
                         <div class="widthLength25"></div>
370
-                        
370
+
371
                     </div>
371
                     </div>
372
                     <div class="lineHeight">
372
                     <div class="lineHeight">
373
                     <div class="widthLength25">血管通路功能:
373
                     <div class="widthLength25">血管通路功能:
384
                         <span v-if="record.assessment_after_dislysis.hemostasis_opera == 4">内瘘止血带</span>
384
                         <span v-if="record.assessment_after_dislysis.hemostasis_opera == 4">内瘘止血带</span>
385
                         </div>
385
                         </div>
386
                         <div class="widthLength25">透析状态:在透</div>
386
                         <div class="widthLength25">透析状态:在透</div>
387
-                        
387
+
388
                     </div>
388
                     </div>
389
                     <div class="lineHeight">
389
                     <div class="lineHeight">
390
                         <div class="widthLength25">URR:{{ record.assessment_after_dislysis.urr ? record.assessment_after_dislysis.urr : '未测' }}</div>
390
                         <div class="widthLength25">URR:{{ record.assessment_after_dislysis.urr ? record.assessment_after_dislysis.urr : '未测' }}</div>
391
                         <div class="widthLength25">kt/V:{{ record.assessment_after_dislysis.ktv ? record.assessment_after_dislysis.ktv : '未测' }}</div>
391
                         <div class="widthLength25">kt/V:{{ record.assessment_after_dislysis.ktv ? record.assessment_after_dislysis.ktv : '未测' }}</div>
392
                         <div class="widthLength25">透析相关高血压:{{ record.assessment_after_dislysis.hypertenison == 1 ? '有' : '无' }}</div>
392
                         <div class="widthLength25">透析相关高血压:{{ record.assessment_after_dislysis.hypertenison == 1 ? '有' : '无' }}</div>
393
                         <div class="widthLength25">透析相关低血压:{{ record.assessment_after_dislysis.hypopiesia == 1 ? '有' : '无' }}</div>
393
                         <div class="widthLength25">透析相关低血压:{{ record.assessment_after_dislysis.hypopiesia == 1 ? '有' : '无' }}</div>
394
-                        
394
+
395
                     </div>
395
                     </div>
396
                     <div class="lineHeight">
396
                     <div class="lineHeight">
397
                         <div class="widthLength25">转归:
397
                         <div class="widthLength25">转归:

+ 6 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_thirtySeven.vue Ver fichero

48
                         <span style="display:inline-block;width:25%;">
48
                         <span style="display:inline-block;width:25%;">
49
                         日期:{{getTime(record.schedule_date, "{y}-{m}-{d}")}}
49
                         日期:{{getTime(record.schedule_date, "{y}-{m}-{d}")}}
50
                         </span>
50
                         </span>
51
-                        
51
+
52
                     </td>
52
                     </td>
53
                     <!-- <td style="text-align:center;" colspan="1">
53
                     <!-- <td style="text-align:center;" colspan="1">
54
                         机器号:
54
                         机器号:
192
                     <tr>
192
                     <tr>
193
                         <td style="text-align:left;" colspan="2">
193
                         <td style="text-align:left;" colspan="2">
194
                             <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
194
                             <span style="display:inline-block;width:15%;margin-left:15px;width:100%;">
195
-                                
195
+
196
                                 <span style="display:inline-block;width:30%">
196
                                 <span style="display:inline-block;width:30%">
197
                                     透析机:{{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '' }}
197
                                     透析机:{{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '' }}
198
                                 </span>
198
                                 </span>
269
                         <sub>2</sub>
269
                         <sub>2</sub>
270
                         <br />%
270
                         <br />%
271
                     </td>
271
                     </td>
272
-                    
273
-                    
272
+
273
+
274
                     <td style="min-width:60px">病情变化及处理</td>
274
                     <td style="min-width:60px">病情变化及处理</td>
275
                     <td style="min-width:110px">护士签名核对者</td>
275
                     <td style="min-width:110px">护士签名核对者</td>
276
                     </tr>
276
                     </tr>
325
                     <td
325
                     <td
326
                         style="height:30px;line-height:30px"
326
                         style="height:30px;line-height:30px"
327
                     >{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
327
                     >{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
328
-                    
328
+
329
                     <td class="parent" style="text-align:left;padding-left: 20px !important;">
329
                     <td class="parent" style="text-align:left;padding-left: 20px !important;">
330
                         <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
330
                         <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
331
                         <span>{{ advice.advice_name }}</span>
331
                         <span>{{ advice.advice_name }}</span>
418
                     </td>
418
                     </td>
419
                     </tr>
419
                     </tr>
420
                 </table>
420
                 </table>
421
-                
421
+
422
 
422
 
423
                 <!-- <div style="margin-top:20px">
423
                 <!-- <div style="margin-top:20px">
424
                     <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>
424
                     <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue Ver fichero

495
                       <label-box
495
                       <label-box
496
                         :isChecked="
496
                         :isChecked="
497
                           isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')
497
                           isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')
498
-                           || 
498
+                           ||
499
                           isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '移植血管')
499
                           isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '移植血管')
500
                         "
500
                         "
501
                         showValue="其他"
501
                         showValue="其他"
935
                     <span v-if="getTime(monitor.operate_time) != ''">
935
                     <span v-if="getTime(monitor.operate_time) != ''">
936
                       {{
936
                       {{
937
                         monitor.blood_flow_volume
937
                         monitor.blood_flow_volume
938
-                          ? monitor.blood_flow_volume 
938
+                          ? monitor.blood_flow_volume
939
                           : "0"
939
                           : "0"
940
                       }}</span
940
                       }}</span
941
                     >
941
                     >
944
                     <span v-if="getTime(monitor.operate_time) != ''">
944
                     <span v-if="getTime(monitor.operate_time) != ''">
945
                       {{
945
                       {{
946
                         monitor.ultrafiltration_volume
946
                         monitor.ultrafiltration_volume
947
-                          ? monitor.ultrafiltration_volume 
947
+                          ? monitor.ultrafiltration_volume
948
                           : "0"
948
                           : "0"
949
                       }}
949
                       }}
950
                     </span>
950
                     </span>
1149
                                     </span>
1149
                                     </span>
1150
                                 </span>
1150
                                 </span>
1151
                             </div>
1151
                             </div>
1152
-                            
1152
+
1153
                         </span>
1153
                         </span>
1154
                     </td>
1154
                     </td>
1155
                     <td colspan="2">
1155
                     <td colspan="2">
1430
                             srcset=""
1430
                             srcset=""
1431
                             v-else
1431
                             v-else
1432
                           />
1432
                           />
1433
-                      
1433
+
1434
                     </span>
1434
                     </span>
1435
                   </td>
1435
                   </td>
1436
                 </tr>
1436
                 </tr>

+ 8 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_twenty.vue Ver fichero

60
                         <td width="10">床</td>
60
                         <td width="10">床</td>
61
                         <td></td>
61
                         <td></td>
62
 
62
 
63
-                        
63
+
64
                     </tr>
64
                     </tr>
65
                     </tbody>
65
                     </tbody>
66
                 </table>
66
                 </table>
149
                                 </td>
149
                                 </td>
150
                                 <td width="35">℃</td>
150
                                 <td width="35">℃</td>
151
                                 <td width='10'></td>
151
                                 <td width='10'></td>
152
-                                
152
+
153
                                 <td></td>
153
                                 <td></td>
154
                             </tr>
154
                             </tr>
155
                             </tbody>
155
                             </tbody>
514
                                     <label-box :isChecked="false" showValue="3.0mmol/L"></label-box>
514
                                     <label-box :isChecked="false" showValue="3.0mmol/L"></label-box>
515
                                 )
515
                                 )
516
                                 </td>
516
                                 </td>
517
-                                
517
+
518
                                 <td></td>
518
                                 <td></td>
519
                             </tr>
519
                             </tr>
520
                             </tbody>
520
                             </tbody>
523
                         <table class="table-box">
523
                         <table class="table-box">
524
                             <tbody>
524
                             <tbody>
525
                             <tr>
525
                             <tr>
526
-                                
526
+
527
                                 <td width="70">治疗方式:</td>
527
                                 <td width="70">治疗方式:</td>
528
                                 <td width="50">
528
                                 <td width="50">
529
                                 <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
529
                                 <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
662
                                     </span>
662
                                     </span>
663
                                 </span>
663
                                 </span>
664
                             </div>
664
                             </div>
665
-                            
665
+
666
                         </span>
666
                         </span>
667
                     </td>
667
                     </td>
668
                     <td>
668
                     <td>
751
                         &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
751
                         &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
752
                         </td>
752
                         </td>
753
 
753
 
754
-                       
754
+
755
                         <td>
755
                         <td>
756
                         &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
756
                         &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
757
                         </td>
757
                         </td>
981
                                     {{ getAdminUser(record.dialysis_order, 'start_nurse') }}</span>
981
                                     {{ getAdminUser(record.dialysis_order, 'start_nurse') }}</span>
982
                                     <img class="es-img" style="height:30px" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" alt="" srcset="" v-else />
982
                                     <img class="es-img" style="height:30px" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" alt="" srcset="" v-else />
983
 
983
 
984
-                                    
984
+
985
                                 </div>
985
                                 </div>
986
                                 </td>
986
                                 </td>
987
                                 <td width=""></td>
987
                                 <td width=""></td>
1016
             </div>
1016
             </div>
1017
             <div style="page-break-after: always;"></div>
1017
             <div style="page-break-after: always;"></div>
1018
         </div>
1018
         </div>
1019
-      </div> 
1019
+      </div>
1020
     </div>
1020
     </div>
1021
   </div>
1021
   </div>
1022
 </template>
1022
 </template>

+ 11 - 11
src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue Ver fichero

87
                     </tr>
87
                     </tr>
88
                     </tbody>
88
                     </tbody>
89
                 </table>
89
                 </table>
90
-                
90
+
91
                 <table class="print-table" border="1">
91
                 <table class="print-table" border="1">
92
                     <tbody>
92
                     <tbody>
93
                     <tr>
93
                     <tr>
100
                             <td width="240">
100
                             <td width="240">
101
                             <div style="display:flex;justify-content:space-between;">
101
                             <div style="display:flex;justify-content:space-between;">
102
                                 <label-box v-for="(item, index) in way_arr" :key="index" :isChecked="record.receive_assessment.way == item.id ? true : false" :showValue="item.name"></label-box>
102
                                 <label-box v-for="(item, index) in way_arr" :key="index" :isChecked="record.receive_assessment.way == item.id ? true : false" :showValue="item.name"></label-box>
103
-                                
103
+
104
                             </div>
104
                             </div>
105
                             </td>
105
                             </td>
106
 
106
 
137
                             <td width="35">℃</td>
137
                             <td width="35">℃</td>
138
                             <td width="30"></td>
138
                             <td width="30"></td>
139
 
139
 
140
-                           
140
+
141
 
141
 
142
                             <td width="40">脉搏:</td>
142
                             <td width="40">脉搏:</td>
143
                             <td width="70">
143
                             <td width="70">
178
                             </div>
178
                             </div>
179
                             </td>
179
                             </td>
180
                             <td width="40"></td>
180
                             <td width="40"></td>
181
-                            
181
+
182
                             <td width="40">打折:</td>
182
                             <td width="40">打折:</td>
183
                             <td width="100">
183
                             <td width="100">
184
                             <label-box :isChecked="record.assessment_before_dislysis.catheter_bend == 1?true:false" showValue='有'></label-box>
184
                             <label-box :isChecked="record.assessment_before_dislysis.catheter_bend == 1?true:false" showValue='有'></label-box>
239
                         </tbody>
239
                         </tbody>
240
                         </table>
240
                         </table>
241
 
241
 
242
-                        
242
+
243
 
243
 
244
                         <table class="table-box">
244
                         <table class="table-box">
245
                         <tbody>
245
                         <tbody>
297
                                 <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '颈内静脉-临时')" showValue="临时"></label-box>&nbsp;)
297
                                 <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '颈内静脉-临时')" showValue="临时"></label-box>&nbsp;)
298
                                 <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '股静脉')" showValue="股静脉"></label-box>
298
                                 <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '股静脉')" showValue="股静脉"></label-box>
299
                                 &nbsp;
299
                                 &nbsp;
300
-                                
300
+
301
                             </div>
301
                             </div>
302
                             </td>
302
                             </td>
303
 
303
 
399
                             </div>
399
                             </div>
400
                             </td>
400
                             </td>
401
                             <td width="20">L</td>
401
                             <td width="20">L</td>
402
-                            
402
+
403
                             <td width="80">透析方式:</td>
403
                             <td width="80">透析方式:</td>
404
                             <td width="50">
404
                             <td width="50">
405
                             <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
405
                             <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
473
                             <div class="under-line" >
473
                             <div class="under-line" >
474
                                 &nbsp;
474
                                 &nbsp;
475
                                 <span v-if="record.prescription.anticoagulant == 2">{{ record.prescription.anticoagulant_weichi ? record.prescription.anticoagulant_weichi : "/" }}</span>
475
                                 <span v-if="record.prescription.anticoagulant == 2">{{ record.prescription.anticoagulant_weichi ? record.prescription.anticoagulant_weichi : "/" }}</span>
476
-                                
476
+
477
                             </div>
477
                             </div>
478
                             </td>
478
                             </td>
479
                             <td width="40">
479
                             <td width="40">
606
                     <td>
606
                     <td>
607
                         &nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
607
                         &nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
608
                     </td>
608
                     </td>
609
-                
609
+
610
                     <td>
610
                     <td>
611
                         &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
611
                         &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
612
                     </td>
612
                     </td>
623
                 </table>
623
                 </table>
624
                 <table class="print-table" border="1">
624
                 <table class="print-table" border="1">
625
                     <tbody>
625
                     <tbody>
626
-                
626
+
627
                     <tr style="line-height:35px;padding:8px 5px;">
627
                     <tr style="line-height:35px;padding:8px 5px;">
628
                     <td style="font-size: 16px" width="30" :rowspan="record.advices.length + 1">
628
                     <td style="font-size: 16px" width="30" :rowspan="record.advices.length + 1">
629
                         医嘱内容
629
                         医嘱内容
947
             </div>
947
             </div>
948
             <div style="page-break-after: always;"></div>
948
             <div style="page-break-after: always;"></div>
949
         </div>
949
         </div>
950
-      </div> 
950
+      </div>
951
     </div>
951
     </div>
952
   </div>
952
   </div>
953
 </template>
953
 </template>

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentyTwo_one.vue Ver fichero

411
                             :checked="record.assessment_before_dislysis.puncture_way.indexOf('区域')>-1?true:false"
411
                             :checked="record.assessment_before_dislysis.puncture_way.indexOf('区域')>-1?true:false"
412
                           >
412
                           >
413
                           </check-box>
413
                           </check-box>
414
-                        
414
+
415
                         <!-- <check-box
415
                         <!-- <check-box
416
                           text="绳梯"
416
                           text="绳梯"
417
                           :checked="
417
                           :checked="

+ 1 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue Ver fichero

144
           })
144
           })
145
         }
145
         }
146
 
146
 
147
-      
147
+
148
     }
148
     }
149
 }
149
 }
150
 </script>
150
 </script>

+ 11 - 11
src/xt_pages/dialysis/components/dialysisParameters.vue Ver fichero

262
           getDialysisParameters(params).then(response=>{
262
           getDialysisParameters(params).then(response=>{
263
              if(response.data.state == 1){
263
              if(response.data.state == 1){
264
                 var schedule = response.data.data.schedule
264
                 var schedule = response.data.data.schedule
265
-              
265
+
266
                 this.tableData = schedule
266
                 this.tableData = schedule
267
                 var total = response.data.data.total
267
                 var total = response.data.data.total
268
                 this.total = total
268
                 this.total = total
367
           // 把时间日期转成时间戳
367
           // 把时间日期转成时间戳
368
           return new Date(time).getTime() / 1000;
368
           return new Date(time).getTime() / 1000;
369
          },
369
          },
370
-        getlist(){   
370
+        getlist(){
371
             const params ={
371
             const params ={
372
               start_time:this.start_time,
372
               start_time:this.start_time,
373
               keyword:this.search_input,
373
               keyword:this.search_input,
380
           getDialysisParameters(params).then(response=>{
380
           getDialysisParameters(params).then(response=>{
381
              if(response.data.state == 1){
381
              if(response.data.state == 1){
382
                 var schedule = response.data.data.schedule
382
                 var schedule = response.data.data.schedule
383
-              
383
+
384
                 var total = response.data.data.total
384
                 var total = response.data.data.total
385
                 this.total = total
385
                 this.total = total
386
                 var prescription =  response.data.data.prescription
386
                 var prescription =  response.data.data.prescription
388
                 this.prescriptionList = prescription
388
                 this.prescriptionList = prescription
389
                 var dialysbefor = response.data.data.dialysbefor
389
                 var dialysbefor = response.data.data.dialysbefor
390
                 this.dialysisBefor = dialysbefor
390
                 this.dialysisBefor = dialysbefor
391
-                
391
+
392
                 var patient = response.data.data.patient
392
                 var patient = response.data.data.patient
393
                  for(let i=0;i<patient.length;i++){
393
                  for(let i=0;i<patient.length;i++){
394
                   if(patient[i].mode_id == 1){
394
                   if(patient[i].mode_id == 1){
529
              dryWeight = this.dialysisBefor[i].dry_weight
529
              dryWeight = this.dialysisBefor[i].dry_weight
530
           }
530
           }
531
         }
531
         }
532
-       
532
+
533
        return dryWeight
533
        return dryWeight
534
      },
534
      },
535
      getSysBloodPressure(id){
535
      getSysBloodPressure(id){
539
              sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
539
              sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
540
           }
540
           }
541
         }
541
         }
542
-      
542
+
543
         return sysBloodPressure
543
         return sysBloodPressure
544
      },
544
      },
545
      getTargetUltrafiltration(id){
545
      getTargetUltrafiltration(id){
586
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
586
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
587
           }
587
           }
588
         }
588
         }
589
-       
589
+
590
        return shouji
590
        return shouji
591
      },
591
      },
592
      getAnticoagulantWeichi(id){
592
      getAnticoagulantWeichi(id){
593
-   
593
+
594
         var weichi = ""
594
         var weichi = ""
595
         for(let i=0;i<this.prescriptionList.length;i++){
595
         for(let i=0;i<this.prescriptionList.length;i++){
596
-         
596
+
597
           if(id == this.prescriptionList[i].patient_id){
597
           if(id == this.prescriptionList[i].patient_id){
598
              weichi =  "(" + this.prescriptionList[i].anticoagulant_weichi
598
              weichi =  "(" + this.prescriptionList[i].anticoagulant_weichi
599
-          } 
599
+          }
600
         }
600
         }
601
         return weichi
601
         return weichi
602
-     
602
+
603
      },
603
      },
604
      getAnticoagulantZongliang(id){
604
      getAnticoagulantZongliang(id){
605
        var zongliang = ""
605
        var zongliang = ""

+ 2 - 2
src/xt_pages/dialysis/components/dialysisParametersDialog.vue Ver fichero

29
                    抗凝剂
29
                    抗凝剂
30
                 </template>
30
                 </template>
31
             </el-table-column>
31
             </el-table-column>
32
-            <el-table-column align="center" prop="name" label="规格名称"> 
32
+            <el-table-column align="center" prop="name" label="规格名称">
33
                 <template slot-scope="scope">
33
                 <template slot-scope="scope">
34
                    <span v-if="scope.row.anticoagulant==1">无肝素</span>
34
                    <span v-if="scope.row.anticoagulant==1">无肝素</span>
35
                    <span v-if="scope.row.anticoagulant==2">普通肝素</span>
35
                    <span v-if="scope.row.anticoagulant==2">普通肝素</span>
135
                console.log("count22222",count)
135
                console.log("count22222",count)
136
                this.tableData = count
136
                this.tableData = count
137
              }
137
              }
138
-          })  
138
+          })
139
         }
139
         }
140
     }
140
     }
141
 }
141
 }

+ 6 - 5
src/xt_pages/dialysis/details/NavIgation.vue Ver fichero

565
       const sorted = this.groupBy(doctorAdvice, function(item) {
565
       const sorted = this.groupBy(doctorAdvice, function(item) {
566
         return [item.groupno];
566
         return [item.groupno];
567
       });
567
       });
568
-     
569
-    
568
+
569
+
570
       // var strLength = 0
570
       // var strLength = 0
571
       // var arr = []
571
       // var arr = []
572
       // if(this.his_doctor_advices!=undefined && this.his_doctor_advices.length > 0){
572
       // if(this.his_doctor_advices!=undefined && this.his_doctor_advices.length > 0){
573
       //   for(let i=0;i<this.his_doctor_advices.length;i++){
573
       //   for(let i=0;i<this.his_doctor_advices.length;i++){
574
       //     if (this.his_doctor_advices[i].execution_state == 2) {
574
       //     if (this.his_doctor_advices[i].execution_state == 2) {
575
       //      arr.push(this.his_doctor_advices[i]);
575
       //      arr.push(this.his_doctor_advices[i]);
576
-      //    } 
576
+      //    }
577
       //   }
577
       //   }
578
       //   strLength = arr.length
578
       //   strLength = arr.length
579
       // }
579
       // }
580
       // console.log("232332323232323223",arrOne.length + strLength);
580
       // console.log("232332323232323223",arrOne.length + strLength);
581
       return sorted.length
581
       return sorted.length
582
-      
582
+
583
     },
583
     },
584
     groupBy(array, f) {
584
     groupBy(array, f) {
585
       const groups = {};
585
       const groups = {};
640
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
640
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
641
     },
641
     },
642
     showDoctorAdviceDialog: function() {
642
     showDoctorAdviceDialog: function() {
643
+      console.log("!!!!!!temp_schedual",this.temp_schedual)
643
       this.$refs.doctor_advice.show(this.his_is_open,this.is_advice_open);
644
       this.$refs.doctor_advice.show(this.his_is_open,this.is_advice_open);
644
     },
645
     },
645
     showComputerDialog: function() {
646
     showComputerDialog: function() {
660
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
661
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
661
     },
662
     },
662
     showDoubleCheck: function() {
663
     showDoubleCheck: function() {
663
-      
664
+
664
       this.$refs.doubleCheck.show();
665
       this.$refs.doubleCheck.show();
665
     },
666
     },
666
     showrTeatmentSummary: function() {
667
     showrTeatmentSummary: function() {

+ 90 - 47
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Ver fichero

24
       </div>
24
       </div>
25
 
25
 
26
 
26
 
27
-      
27
+
28
       <el-form
28
       <el-form
29
         ref="adForm"
29
         ref="adForm"
30
         :rules="adRules"
30
         :rules="adRules"
201
         >删除医嘱
201
         >删除医嘱
202
         </el-button>
202
         </el-button>
203
         <el-button v-else disabled round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱</el-button>
203
         <el-button v-else disabled round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱</el-button>
204
+        <el-button @click="lili">调试</el-button>
205
+<!--        <el-button @click="lili" >调试</el-button>-->
204
 
206
 
205
         <!--<el-button round @click="openNewChild" :loading="deleLoading">新增子药</el-button>-->
207
         <!--<el-button round @click="openNewChild" :loading="deleLoading">新增子药</el-button>-->
206
       </div>
208
       </div>
227
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
229
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
228
           </template>
230
           </template>
229
         </el-table-column>
231
         </el-table-column>
232
+
230
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
233
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
231
           <template slot-scope="scope">
234
           <template slot-scope="scope">
232
             <span>
235
             <span>
275
             <span v-else></span>
278
             <span v-else></span>
276
           </template>
279
           </template>
277
         </el-table-column>
280
         </el-table-column>
278
-        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
281
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士"><!--bug642-->
279
           <template slot-scope="scope">
282
           <template slot-scope="scope">
280
             <span v-if="scope.row.parent_id == 0">
283
             <span v-if="scope.row.parent_id == 0">
281
               {{getXuserName(scope.row.execution_staff)}}
284
               {{getXuserName(scope.row.execution_staff)}}
314
         :modal-append-to-body="false"
317
         :modal-append-to-body="false"
315
         highlight-current-row
318
         highlight-current-row
316
       >
319
       >
320
+
317
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
321
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
318
           <template slot-scope="scope">
322
           <template slot-scope="scope">
319
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
323
             <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
320
           </template>
324
           </template>
321
         </el-table-column>
325
         </el-table-column>
326
+
327
+        <!--===================================-->
328
+<!--        <el-table-column prop="date" label="调试" align="center" min-width="26px">-->
329
+<!--          <template slot-scope="scope">-->
330
+<!--            <span @click="lili(scope.$index,scope.row)">{{ scope.row.parent_id }}</span>-->
331
+<!--          </template>-->
332
+<!--        </el-table-column>-->
333
+
322
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
334
         <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
323
           <template slot-scope="scope">
335
           <template slot-scope="scope">
324
             <span>
336
             <span>
326
             </span>
338
             </span>
327
           </template>
339
           </template>
328
         </el-table-column>
340
         </el-table-column>
329
-        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容32323" align="center">
341
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
330
           <template slot-scope="scope">
342
           <template slot-scope="scope">
331
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
343
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
332
               <span class="el-dropdown-link">
344
               <span class="el-dropdown-link">
333
-                {{ getAdviceContent(scope.row, 1)}}
345
+                {{ getAdviceContent(scope.row, 1)}}<!--修改这里医嘱内容s-->
334
                 <i class="el-icon-arrow-down el-icon--right"></i>
346
                 <i class="el-icon-arrow-down el-icon--right"></i>
335
               </span>
347
               </span>
336
               <el-dropdown-menu slot="dropdown">
348
               <el-dropdown-menu slot="dropdown">
389
             <span v-else>{{getXuserName(scope.row.checker)}}</span>
401
             <span v-else>{{getXuserName(scope.row.checker)}}</span>
390
           </template>
402
           </template>
391
         </el-table-column>
403
         </el-table-column>
404
+
392
       </el-table>
405
       </el-table>
393
 
406
 
394
       <!-- 医嘱列表 end -->
407
       <!-- 医嘱列表 end -->
473
       <!-- 新医嘱列表 -->
486
       <!-- 新医嘱列表 -->
474
 
487
 
475
 
488
 
476
-      <!-- 新增医嘱(子药)表单 -->
489
+      <!-- 新增医嘱(子药)表单 || 新增子药表单 -->
477
       <!-- 医嘱表单 -->
490
       <!-- 医嘱表单 -->
478
       <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
491
       <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
479
         <el-row :gutter="20">
492
         <el-row :gutter="20">
507
           </el-col>
520
           </el-col>
508
 
521
 
509
           <el-col :span="8">
522
           <el-col :span="8">
510
-            <el-form-item label="药品规格:">
523
+            <el-form-item label="药品规格:"><!--li-->
511
                 <el-autocomplete
524
                 <el-autocomplete
512
                   style="width:100px;"
525
                   style="width:100px;"
513
                   class="inline-input"
526
                   class="inline-input"
567
                   v-for="item in unitsOption"
580
                   v-for="item in unitsOption"
568
                   :key="item.id"
581
                   :key="item.id"
569
                   :label="item.name"
582
                   :label="item.name"
570
-                  :value="item.name"
583
+                  :value="item.id"
571
                 ></el-option>
584
                 ></el-option>
572
               </el-select>
585
               </el-select>
573
             </el-form-item>
586
             </el-form-item>
614
       </el-form>
627
       </el-form>
615
       <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
628
       <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
616
         <el-button @click="hideForm">取 消</el-button>
629
         <el-button @click="hideForm">取 消</el-button>
617
-        <el-button type="primary" v-if="form.id == 0" @click="submitAdvice" :loading="loading">保 存</el-button>
618
-        <el-button type="primary" v-else @click="submitEditAdvice" :loading="loading">保 存</el-button>
630
+        <el-button type="primary" v-if="form.id == 0" @click="submitAdvice" :loading="loading">保 存1</el-button><!--新增子药保存按钮(选择医嘱名称前)-->
631
+        <el-button type="primary" v-else @click="submitEditAdvice" :loading="loading">保 存2</el-button><!--新增子药保存按钮(选择医嘱名称后)-->
619
       </div>
632
       </div>
620
       <!-- 医嘱表单 end -->
633
       <!-- 医嘱表单 end -->
621
     </el-dialog>
634
     </el-dialog>
855
       'dialysis_order.id': function() {
868
       'dialysis_order.id': function() {
856
         this.form['dialysis_order_id'] = this.dialysis_order.id
869
         this.form['dialysis_order_id'] = this.dialysis_order.id
857
       },
870
       },
858
-     
871
+
859
     },
872
     },
860
     methods: {
873
     methods: {
874
+      //调试
875
+      lili(index,row){
876
+        // console.log("==index==",index)
877
+        // console.log("==row==",row)
878
+        console.log("==doctor_advices==",this.doctor_advices)
879
+        console.log("==this.form==",this.form)
880
+      },
861
       getContent: function() {
881
       getContent: function() {
862
         if (this.sch != null) {
882
         if (this.sch != null) {
863
           var date = uParseTime(this.sch.schedule_date, '{y}-{m}-{d}')
883
           var date = uParseTime(this.sch.schedule_date, '{y}-{m}-{d}')
928
               adviceNames: this.other_doctor_advices,
948
               adviceNames: this.other_doctor_advices,
929
               remark: ''
949
               remark: ''
930
             }
950
             }
931
-           
951
+
932
             let mode = '1'
952
             let mode = '1'
933
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
953
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
934
               response => {
954
               response => {
969
         }
989
         }
970
       },
990
       },
971
       submitEditAdvice() {
991
       submitEditAdvice() {
992
+        // console.log()
993
+        console.log("==this.form==",this.form)
994
+        console.log("==this.src_type==",this.src_type)
972
         if (this.form.advice_name.length == 0) {
995
         if (this.form.advice_name.length == 0) {
973
           this.$message.error('请填写医嘱名称')
996
           this.$message.error('请填写医嘱名称')
974
           return
997
           return
981
           this.$message.error('没有选择患者')
1004
           this.$message.error('没有选择患者')
982
           return false
1005
           return false
983
         }
1006
         }
984
-        
1007
+
985
         let mode = '2'
1008
         let mode = '2'
986
         if (this.form.advice_doctor != this.$store.getters.xt_user.user.id) {
1009
         if (this.form.advice_doctor != this.$store.getters.xt_user.user.id) {
987
           mode = '3'
1010
           mode = '3'
1209
             isEdit: 1,
1232
             isEdit: 1,
1210
             index: this.groupSelectRow.index
1233
             index: this.groupSelectRow.index
1211
           }
1234
           }
1212
-         
1235
+
1213
         } else {
1236
         } else {
1214
           this.nameForm = {
1237
           this.nameForm = {
1215
             advice_name: '',
1238
             advice_name: '',
1267
       }
1290
       }
1268
       ,
1291
       ,
1269
       submitExce() {
1292
       submitExce() {
1270
-        
1293
+
1271
         if (this.currentRow == null) {
1294
         if (this.currentRow == null) {
1272
           this.$message.error('请先选择要执行的医嘱!')
1295
           this.$message.error('请先选择要执行的医嘱!')
1273
           return false
1296
           return false
1304
                   if (response.data.data.advice.parent_id > 0) {
1327
                   if (response.data.data.advice.parent_id > 0) {
1305
                     exid = response.data.data.advice.parent_id
1328
                     exid = response.data.data.advice.parent_id
1306
                   }
1329
                   }
1307
-                
1330
+
1308
                   this.currentRow.execution_state = 1
1331
                   this.currentRow.execution_state = 1
1309
                   this.currentRow.execution_staff =
1332
                   this.currentRow.execution_staff =
1310
                     response.data.data.advice.execution_staff
1333
                     response.data.data.advice.execution_staff
1340
                 this.execTimeDialogVisible = false
1363
                 this.execTimeDialogVisible = false
1341
                 return false
1364
                 return false
1342
               }
1365
               }
1343
-              
1366
+
1344
             }
1367
             }
1345
           })
1368
           })
1346
           .catch(() => {
1369
           .catch(() => {
1363
         }
1386
         }
1364
         let mode = '1'
1387
         let mode = '1'
1365
 
1388
 
1389
+        console.log("==this.form==",this.form)
1390
+        console.log("==this.src_type==",this.src_type)
1391
+
1366
        if(this.src_type == ""){
1392
        if(this.src_type == ""){
1367
-          this.form.way = 0
1368
-          this.form.drug_id = 0
1369
-          this.form.drug_name_id = 0
1393
+          this.form.way = 1
1370
        }
1394
        }
1371
 
1395
 
1372
        if(this.src_type == 2){ //自备药
1396
        if(this.src_type == 2){ //自备药
1374
           this.form.advice_name = arr[0]
1398
           this.form.advice_name = arr[0]
1375
        }
1399
        }
1376
 
1400
 
1377
-        
1378
-        CreateDoctorAdvice(this.patient.id, this.form, mode)
1379
-          .then(response => {
1401
+
1402
+        CreateDoctorAdvice(this.patient.id, this.form, mode).then(response => {
1403
+          console("保存!!!!!!!!!!!!!!!this.form",this.form)
1380
             this.loading = false
1404
             this.loading = false
1381
             if (response.data.state == 0) {
1405
             if (response.data.state == 0) {
1382
               this.$message.error(response.data.msg)
1406
               this.$message.error(response.data.msg)
1393
               this.currentRow = null
1417
               this.currentRow = null
1394
               this.setCurrent()
1418
               this.setCurrent()
1395
               this.hideForm()
1419
               this.hideForm()
1396
-
1420
+              console.log("保存",this.form.parent_id)
1397
               if (this.form.parent_id > 0) {
1421
               if (this.form.parent_id > 0) {
1398
                 var spliceIndex = -1
1422
                 var spliceIndex = -1
1399
                 for (let index = this.doctor_advices.length - 1; ; index--) {
1423
                 for (let index = this.doctor_advices.length - 1; ; index--) {
1400
-                  if (
1401
-                    this.doctor_advices[index].parent_id === this.form.parent_id
1402
-                  ) {
1424
+                  console.log("====this.doctor_advices[index].origin====",this.doctor_advices[index].origin)
1425
+                  if (this.doctor_advices[index].parent_id === this.form.parent_id) {
1403
                     spliceIndex = index
1426
                     spliceIndex = index
1404
                     break
1427
                     break
1405
-                  } else if (
1406
-                    this.doctor_advices[index].id === this.form.parent_id
1407
-                  ) {
1428
+                  } else if (this.doctor_advices[index].id === this.form.parent_id) {
1408
                     spliceIndex = index
1429
                     spliceIndex = index
1409
                     break
1430
                     break
1410
                   }
1431
                   }
1417
                     var swapData = this.doctor_advices.splice(spliceIndex)
1438
                     var swapData = this.doctor_advices.splice(spliceIndex)
1418
                     this.doctor_advices.push(response.data.data.advice)
1439
                     this.doctor_advices.push(response.data.data.advice)
1419
                     for (var index in swapData) {
1440
                     for (var index in swapData) {
1420
-                      this.doctor_advices.push(swapData[index]) 
1441
+                      this.doctor_advices.push(swapData[index])
1421
                     }
1442
                     }
1422
                   }
1443
                   }
1423
                 }
1444
                 }
1424
               } else {
1445
               } else {
1425
                 this.doctor_advices.unshift(response.data.data.advice)
1446
                 this.doctor_advices.unshift(response.data.data.advice)
1426
               }
1447
               }
1427
-              
1428
               return false
1448
               return false
1429
             }
1449
             }
1430
           })
1450
           })
1431
           .catch(v => {
1451
           .catch(v => {
1432
             this.loading = false
1452
             this.loading = false
1433
           })
1453
           })
1454
+        // location. reload()
1455
+        this.getDialysisScheduleDetail()
1456
+
1434
       }
1457
       }
1435
       ,
1458
       ,
1436
       openNewChildTwo(index, row) {
1459
       openNewChildTwo(index, row) {
1572
       ,
1595
       ,
1573
 
1596
 
1574
       openGroupFrom() {
1597
       openGroupFrom() {
1575
-        
1598
+
1576
         this.$refs.addGroupForm.open()
1599
         this.$refs.addGroupForm.open()
1577
 
1600
 
1578
         // this.title="新增医嘱";
1601
         // this.title="新增医嘱";
1797
           cancelButtonText: '取消',
1820
           cancelButtonText: '取消',
1798
           type: 'warning'
1821
           type: 'warning'
1799
         }).then(() => {
1822
         }).then(() => {
1800
-           
1823
+
1801
             let mode = '4'
1824
             let mode = '4'
1802
             if (
1825
             if (
1803
               this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
1826
               this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
2038
       }
2061
       }
2039
       ,
2062
       ,
2040
       show(his_is_open,is_advice_open) {
2063
       show(his_is_open,is_advice_open) {
2041
-       
2064
+        console.log("this.doctor_advices",this.doctor_advices)
2065
+        console.log("++++his_is_open++++++",his_is_open)
2066
+        console.log("++++is_advice_open++++++",is_advice_open)
2042
         this.his_is_open = his_is_open
2067
         this.his_is_open = his_is_open
2043
         this.is_advice_open = is_advice_open
2068
         this.is_advice_open = is_advice_open
2044
         this.isVisibility = true
2069
         this.isVisibility = true
2179
       }
2204
       }
2180
       ,
2205
       ,
2181
       getAdviceContent(row, isChild) {
2206
       getAdviceContent(row, isChild) {
2207
+        // alert("来")
2208
+        console.log("row",row)
2209
+        console.log("isChild",isChild)
2182
         let tempSingleDoseDesc = ''
2210
         let tempSingleDoseDesc = ''
2183
         let tempDrugSpecDesc = ''
2211
         let tempDrugSpecDesc = ''
2184
         let tempPrescribingNumberDesc = ''
2212
         let tempPrescribingNumberDesc = ''
2203
         if (row.advice_desc) {
2231
         if (row.advice_desc) {
2204
           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' + " " + row.remark
2232
           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' + " " + row.remark
2205
         }
2233
         }
2206
-
2207
-
2208
-
2209
         if (isChild == 1) {
2234
         if (isChild == 1) {
2210
           // 不是子药
2235
           // 不是子药
2211
-
2212
           return (
2236
           return (
2213
             row.advice_name +
2237
             row.advice_name +
2214
             tempDrugSpecDesc +
2238
             tempDrugSpecDesc +
2317
           if (response.data.state == 1) {
2341
           if (response.data.state == 1) {
2318
 
2342
 
2319
             var doctor_advices = response.data.data.advices
2343
             var doctor_advices = response.data.data.advices
2320
-           
2344
+
2321
             this.other_doctor_advices = doctor_advices
2345
             this.other_doctor_advices = doctor_advices
2322
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2346
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2323
             this.sch = response.data.data.schedule
2347
             this.sch = response.data.data.schedule
2532
       },
2556
       },
2533
 
2557
 
2534
      querySearch(queryString, cb) {
2558
      querySearch(queryString, cb) {
2535
-      
2559
+
2536
         var restaurants = this.all_drug;
2560
         var restaurants = this.all_drug;
2537
         restaurants.map(item => {
2561
         restaurants.map(item => {
2538
           item.value = item.drug_name
2562
           item.value = item.drug_name
2539
         })
2563
         })
2540
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2564
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2541
         // 调用 callback 返回建议列表的数据
2565
         // 调用 callback 返回建议列表的数据
2542
-     
2566
+
2543
         cb(results);
2567
         cb(results);
2544
      },
2568
      },
2545
 
2569
 
2550
      },
2574
      },
2551
 
2575
 
2552
      querySearch1(queryString, cb) {
2576
      querySearch1(queryString, cb) {
2553
-       
2577
+
2554
         var restaurants = this.drugSpec;
2578
         var restaurants = this.drugSpec;
2555
-        
2579
+
2556
         restaurants.map(item => {
2580
         restaurants.map(item => {
2557
           item.value = item.drug_spec
2581
           item.value = item.drug_spec
2558
         })
2582
         })
2560
         // 调用 callback 返回建议列表的数据
2584
         // 调用 callback 返回建议列表的数据
2561
         cb(results);
2585
         cb(results);
2562
       },
2586
       },
2563
-     handleSelect(){
2564
-
2587
+      //<!--li-->
2588
+     handleSelect(val){
2589
+        console.log("==val==",val)
2590
+       var tmp = val.drug_specs[0]
2591
+       console.log("==tmp==",tmp)
2592
+       //药品规格
2593
+       this.form.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
2594
+       this.form.drug_spec_unit = tmp.max_unit
2595
+       //开药数量
2596
+       this.form.prescribing_number = tmp.prescribing_number//开药数量
2597
+       this.form.prescribing_number_unit = tmp.prescribing_number_unit
2598
+       //单次用量
2599
+       this.form.single_dose = tmp.single_dose//单次用量
2600
+       this.form.single_dose_unit = tmp.drug_dose_unit
2601
+
2602
+       this.form.drug_id = tmp.id
2603
+       console.log("!!!!!!!!!!!!this.form.drug_id = tmp.id")
2604
+       console.log("tmp.id",tmp.id)
2605
+       console.log("this.form.drug_id",this.form.drug_id)
2606
+
2607
+       // this.form.id = tmp.id
2565
      }
2608
      }
2566
     },
2609
     },
2567
     created() {
2610
     created() {
2574
       this.org_id = this.$store.getters.xt_user.org.id
2617
       this.org_id = this.$store.getters.xt_user.org.id
2575
       this.patientid = this.$route.query.patient_id
2618
       this.patientid = this.$route.query.patient_id
2576
       this.request_record_date = this.record_date
2619
       this.request_record_date = this.record_date
2577
-      
2578
-    
2620
+
2621
+
2579
       // this.getDialysisScheduleDetail()
2622
       // this.getDialysisScheduleDetail()
2580
        //获取自备药
2623
        //获取自备药
2581
       this.getSelfMedicalList()
2624
       this.getSelfMedicalList()

+ 79 - 46
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Ver fichero

159
                 align="center"
159
                 align="center"
160
               >
160
               >
161
                 <template slot-scope="scope">
161
                 <template slot-scope="scope">
162
-                  <span v-if="scope.row.single_dose != 0"
163
-                    >{{ scope.row.single_dose
164
-                    }}{{ scope.row.single_dose_unit }}</span
165
-                  >
162
+<!--                  //从1到20-->
163
+                  <span v-if="scope.row.single_dose != 0" @click="lili(scope.row)">
164
+<!--                    {{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}-->
165
+                    <span v-if="scope.row.single_dose_unit == 1" >{{ scope.row.single_dose}}g</span>
166
+                    <span v-else-if="scope.row.single_dose_unit == 2" >{{ scope.row.single_dose}}mg</span>
167
+                    <span v-else-if="scope.row.single_dose_unit == 3" >{{ scope.row.single_dose}}u</span>
168
+                    <span v-else-if="scope.row.single_dose_unit == 4" >{{ scope.row.single_dose}}ml</span>
169
+                    <span v-else-if="scope.row.single_dose_unit == 5" >{{ scope.row.single_dose}}万U</span>
170
+                    <span v-else-if="scope.row.single_dose_unit == 6" >{{ scope.row.single_dose}}枚</span>
171
+                    <span v-else-if="scope.row.single_dose_unit == 7" >{{ scope.row.single_dose}}粒</span>
172
+                    <span v-else-if="scope.row.single_dose_unit == 8" >{{ scope.row.single_dose}}片</span>
173
+                    <span v-else-if="scope.row.single_dose_unit == 9" >{{ scope.row.single_dose}}支</span>
174
+                    <span v-else-if="scope.row.single_dose_unit == 10" >{{ scope.row.single_dose}}ug</span>
175
+                    <span v-else-if="scope.row.single_dose_unit == 11" >{{ scope.row.single_dose}}iu</span>
176
+                    <span v-else-if="scope.row.single_dose_unit == 12" >{{ scope.row.single_dose}}包</span>
177
+                    <span v-else-if="scope.row.single_dose_unit == 13" >{{ scope.row.single_dose}}袋</span>
178
+                    <span v-else-if="scope.row.single_dose_unit == 14" >{{ scope.row.single_dose}}万</span>
179
+                    <span v-else-if="scope.row.single_dose_unit == 15" >{{ scope.row.single_dose}}万iu</span>
180
+                    <span v-else-if="scope.row.single_dose_unit == 16" >{{ scope.row.single_dose}}丸</span>
181
+                    <span v-else-if="scope.row.single_dose_unit == 17" >{{ scope.row.single_dose}}盒</span>
182
+                    <span v-else-if="scope.row.single_dose_unit == 18" >{{ scope.row.single_dose}}瓶</span>
183
+                    <span v-else-if="scope.row.single_dose_unit == 19" >{{ scope.row.single_dose}}瓶(袋)</span>
184
+                    <span v-else-if="scope.row.single_dose_unit == 20" >{{ scope.row.single_dose}}次</span>
185
+                    <span v-else >{{ scope.row.single_dose}}{{ scope.row.single_dose_unit }}</span>
186
+                  </span>
187
+
188
+
166
                 </template>
189
                 </template>
167
               </el-table-column>
190
               </el-table-column>
168
               <el-table-column
191
               <el-table-column
208
           type="primary"
231
           type="primary"
209
           @click="submitgroupAdvice('groupForm')"
232
           @click="submitgroupAdvice('groupForm')"
210
           >保 存
233
           >保 存
211
-        </el-button>
234
+        </el-button><!--bug2-->
212
       </div>
235
       </div>
213
     </el-dialog>
236
     </el-dialog>
214
 
237
 
314
           type="primary"
337
           type="primary"
315
           @click="newAddTempForm()"
338
           @click="newAddTempForm()"
316
           >保 存
339
           >保 存
317
-        </el-button>
340
+        </el-button><!--bug1-->
318
       </div>
341
       </div>
319
     </el-dialog>
342
     </el-dialog>
320
 
343
 
369
       >
392
       >
370
         <el-row>
393
         <el-row>
371
           <el-col :span="24">
394
           <el-col :span="24">
372
-            <el-form-item label="医嘱内容 :" required prop="advice_name">
395
+            <el-form-item label="医嘱内容 :" required prop="advice_name"><!--第一处-->
373
              <el-autocomplete
396
              <el-autocomplete
374
                 style="width:100%;"
397
                 style="width:100%;"
375
                 class="inline-input"
398
                 class="inline-input"
383
             <!-- <div style="margin-left:120px;margin-top:-20px;font-size:12px;color:red">
406
             <!-- <div style="margin-left:120px;margin-top:-20px;font-size:12px;color:red">
384
                库存不足50
407
                库存不足50
385
             </div> -->
408
             </div> -->
386
-            
409
+
387
           </el-col>
410
           </el-col>
388
 
411
 
389
         </el-row>
412
         </el-row>
390
         <el-row>
413
         <el-row>
391
           <el-col :span="12">
414
           <el-col :span="12">
392
-       
393
             <el-form-item label="药品规格 :" prop="advice_desc">
415
             <el-form-item label="药品规格 :" prop="advice_desc">
394
               <el-col :span="8">
416
               <el-col :span="8">
395
-               
396
                 <el-autocomplete
417
                 <el-autocomplete
397
                   style="width:100px;"
418
                   style="width:100px;"
398
                   class="inline-input"
419
                   class="inline-input"
402
                   @select="handleSelect1"
423
                   @select="handleSelect1"
403
                   @input="changeDrugDesc"
424
                   @input="changeDrugDesc"
404
                 ></el-autocomplete>
425
                 ></el-autocomplete>
405
-
406
               </el-col>
426
               </el-col>
407
               <el-col class="line" :span="2">&nbsp;</el-col>
427
               <el-col class="line" :span="2">&nbsp;</el-col>
408
               <el-col :span="14">
428
               <el-col :span="14">
466
                     v-for="item in unitsOption"
486
                     v-for="item in unitsOption"
467
                     :key="item.id"
487
                     :key="item.id"
468
                     :label="item.name"
488
                     :label="item.name"
469
-                    :value="item.name"
489
+                    :value="item.id"
470
                   ></el-option>
490
                   ></el-option>
471
                 </el-select>
491
                 </el-select>
472
               </el-col>
492
               </el-col>
686
         return { id: 0 }
706
         return { id: 0 }
687
       }
707
       }
688
     },
708
     },
689
-   
709
+
690
   },
710
   },
691
   methods: {
711
   methods: {
712
+    lili(val){
713
+      console.log("=3=val=3=",val)
714
+    },
692
     submitgroupAdvice(formName) {
715
     submitgroupAdvice(formName) {
693
       this.$refs[formName].validate(valid => {
716
       this.$refs[formName].validate(valid => {
694
         if (valid) {
717
         if (valid) {
701
             remark: this.groupForm.remark,
724
             remark: this.groupForm.remark,
702
             parent_id: this.groupForm.parent_id,
725
             parent_id: this.groupForm.parent_id,
703
             id:this.groupForm.id,
726
             id:this.groupForm.id,
704
-         
727
+
705
           };
728
           };
706
           var adviceNames = [];
729
           var adviceNames = [];
707
           for (const index in this.groupForm.adviceNames) {
730
           for (const index in this.groupForm.adviceNames) {
712
           }
735
           }
713
           submitForm.adviceNames = adviceNames;
736
           submitForm.adviceNames = adviceNames;
714
           let mode = "1";
737
           let mode = "1";
715
-          
738
+
716
           if(this.private_drug_config != null&& this.private_drug_config.drug_start == 1){
739
           if(this.private_drug_config != null&& this.private_drug_config.drug_start == 1){
717
-               
740
+
718
              for(let index=0;index<submitForm.adviceNames.length;index++){
741
              for(let index=0;index<submitForm.adviceNames.length;index++){
719
                 for(let i=0;i<this.medicals.length;i++){
742
                 for(let i=0;i<this.medicals.length;i++){
720
                    if(submitForm.adviceNames[index].children.length >0){
743
                    if(submitForm.adviceNames[index].children.length >0){
721
                       for(let y=0;y<submitForm.adviceNames[index].children.length;y++){
744
                       for(let y=0;y<submitForm.adviceNames[index].children.length;y++){
722
                           if(submitForm.adviceNames[index].children[y].drug_id == this.medicals[i].drug_name_id){
745
                           if(submitForm.adviceNames[index].children[y].drug_id == this.medicals[i].drug_name_id){
723
                              submitForm.adviceNames[index].children[y].drug_name_id = this.medicals[i].drug_name_id
746
                              submitForm.adviceNames[index].children[y].drug_name_id = this.medicals[i].drug_name_id
724
-                             submitForm.adviceNames[index].children[y].way = 2  
747
+                             submitForm.adviceNames[index].children[y].way = 2
725
                           }
748
                           }
726
                       }
749
                       }
727
                    }
750
                    }
731
                         submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
754
                         submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
732
                     }
755
                     }
733
                    }
756
                    }
734
-                   
757
+
735
                 }
758
                 }
736
              }
759
              }
737
           }
760
           }
738
-         
761
+
739
           CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
762
           CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
740
             response => {
763
             response => {
741
               if (response.data.state == 0) {
764
               if (response.data.state == 0) {
857
         .catch(() => {});
880
         .catch(() => {});
858
     },
881
     },
859
     submitNameForm(formName) {
882
     submitNameForm(formName) {
860
-      
883
+        console.log("forname",this.nameForm)
861
        if(this.src_type == ""){
884
        if(this.src_type == ""){
862
           this.nameForm.way = 1
885
           this.nameForm.way = 1
863
           this.nameForm.drug_id = this.drug_id
886
           this.nameForm.drug_id = this.drug_id
868
           var arr = this.nameForm.advice_name.split("(自备药)")
891
           var arr = this.nameForm.advice_name.split("(自备药)")
869
           this.nameForm.advice_name = arr[0]
892
           this.nameForm.advice_name = arr[0]
870
        }
893
        }
871
-   
872
-      
894
+
895
+
873
       var _this = this;
896
       var _this = this;
874
       this.$refs[formName].validate(valid => {
897
       this.$refs[formName].validate(valid => {
875
         if (valid) {
898
         if (valid) {
876
           if (_this.nameForm.isEdit) {
899
           if (_this.nameForm.isEdit) {
877
-            var ale = _this.groupForm.adviceNames.length; 
900
+            var ale = _this.groupForm.adviceNames.length;
878
             if (_this.isChild) {
901
             if (_this.isChild) {
879
               for (let index = 0; index < ale; index++) {
902
               for (let index = 0; index < ale; index++) {
880
                 if (_this.groupSelectRow.parent_row ==_this.groupForm.adviceNames[index].row_key) {
903
                 if (_this.groupSelectRow.parent_row ==_this.groupForm.adviceNames[index].row_key) {
881
                   var cle = _this.groupForm.adviceNames[index].children.length;
904
                   var cle = _this.groupForm.adviceNames[index].children.length;
882
-              
905
+
883
                   var children = _this.groupForm.adviceNames[index].children;
906
                   var children = _this.groupForm.adviceNames[index].children;
884
                   for (let j = 0; j < ale; j++) {
907
                   for (let j = 0; j < ale; j++) {
885
                     if (_this.groupSelectRow.row_key == children[j].row_key) {
908
                     if (_this.groupSelectRow.row_key == children[j].row_key) {
898
                       // _this.groupForm.adviceNames[index].children[j].way = _this.nameForm.way;
921
                       // _this.groupForm.adviceNames[index].children[j].way = _this.nameForm.way;
899
                       // _this.groupForm.adviceNames[index].children[j].drug_name_id = _this.nameForm.drug_name_id;
922
                       // _this.groupForm.adviceNames[index].children[j].drug_name_id = _this.nameForm.drug_name_id;
900
                       _this.$set(_this.groupForm.adviceNames[index].children,j,_this.groupForm.adviceNames[index].children[j]
923
                       _this.$set(_this.groupForm.adviceNames[index].children,j,_this.groupForm.adviceNames[index].children[j]
901
-                     
924
+
902
                       );
925
                       );
903
                       break;
926
                       break;
904
                     }
927
                     }
1064
       this.selectedTemplate = selection;
1087
       this.selectedTemplate = selection;
1065
     },
1088
     },
1066
     selectAdvice(selection, row) {
1089
     selectAdvice(selection, row) {
1067
-     
1090
+
1068
       var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id].DoctorAdviceTemplate;
1091
       var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id].DoctorAdviceTemplate;
1069
       for (let y = 0; y < adviceArray.length; y++) {
1092
       for (let y = 0; y < adviceArray.length; y++) {
1070
         adviceArray[y].selection = false;
1093
         adviceArray[y].selection = false;
1079
         }
1102
         }
1080
       }
1103
       }
1081
 
1104
 
1082
-      // console.log(adviceArray);
1083
 
1105
 
1084
       if (row.children.length > 0) {
1106
       if (row.children.length > 0) {
1085
         for (const index in row.children) {
1107
         for (const index in row.children) {
1149
       }
1171
       }
1150
     },
1172
     },
1151
     templateTableChange(currentRow, oldCurrentRow) {
1173
     templateTableChange(currentRow, oldCurrentRow) {
1152
-     
1174
+
1153
       this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
1175
       this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
1154
       if (currentRow == null) {
1176
       if (currentRow == null) {
1155
         return false;
1177
         return false;
1216
                 children: [],
1238
                 children: [],
1217
                 parent_row: parentRow,
1239
                 parent_row: parentRow,
1218
                 row_key: thisRowKey,
1240
                 row_key: thisRowKey,
1219
-               
1241
+
1220
               };
1242
               };
1221
               item.children.push(child);
1243
               item.children.push(child);
1222
             }
1244
             }
1288
                   parent_row: parentRow,
1310
                   parent_row: parentRow,
1289
                   row_key: thisRowKey
1311
                   row_key: thisRowKey
1290
                 };
1312
                 };
1291
-                
1313
+                console.log("child",child)
1292
                 item.children.push(child);
1314
                 item.children.push(child);
1293
                 this.allSelectedTemplate.unshift(child);
1315
                 this.allSelectedTemplate.unshift(child);
1294
               }
1316
               }
1503
           if (minites < 10) {
1525
           if (minites < 10) {
1504
             minites = '0' + minites
1526
             minites = '0' + minites
1505
           }
1527
           }
1506
-          
1528
+
1507
           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1529
           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
1508
         } else {
1530
         } else {
1509
           var date = new Date()
1531
           var date = new Date()
1572
             console.log("base_drug_list23233232322323",base_drug_list)
1594
             console.log("base_drug_list23233232322323",base_drug_list)
1573
             var base_drug_cofig = response.data.data.base_drug_config
1595
             var base_drug_cofig = response.data.data.base_drug_config
1574
             var private_drug_cofig = response.data.data.private_drug_config
1596
             var private_drug_cofig = response.data.data.private_drug_config
1575
-       
1576
-        
1597
+
1598
+
1577
             if(private_drug_cofig != null&&private_drug_cofig.drug_start == 1) {
1599
             if(private_drug_cofig != null&&private_drug_cofig.drug_start == 1) {
1578
 
1600
 
1579
               for (let i = 0; i < medicalList.length; i++) {
1601
               for (let i = 0; i < medicalList.length; i++) {
1650
 
1672
 
1651
               this.private_drug_config = response.data.data.private_drug_config
1673
               this.private_drug_config = response.data.data.private_drug_config
1652
               this.medicals = medicalList
1674
               this.medicals = medicalList
1653
-            }   
1654
-           
1675
+            }
1676
+
1655
         })
1677
         })
1656
-       
1678
+
1657
     },
1679
     },
1658
     changeDrugName(name){
1680
     changeDrugName(name){
1659
       this.current_drug_name = name
1681
       this.current_drug_name = name
1664
             this.drugSpec = this.all_drug[i].drug_specs
1686
             this.drugSpec = this.all_drug[i].drug_specs
1665
           }
1687
           }
1666
        }
1688
        }
1667
-     
1689
+
1668
     },
1690
     },
1669
     changeDrugDesc(name) {
1691
     changeDrugDesc(name) {
1670
-       
1692
+
1671
         this.current_drug_spec = name
1693
         this.current_drug_spec = name
1672
         for (let i = 0; i < this.drugSpec.length; i++) {
1694
         for (let i = 0; i < this.drugSpec.length; i++) {
1673
           if (this.drugSpec[i].drug_spec == name) {
1695
           if (this.drugSpec[i].drug_spec == name) {
1689
             }else{
1711
             }else{
1690
               this.nameForm.drug_name_id = 0
1712
               this.nameForm.drug_name_id = 0
1691
             }
1713
             }
1692
-           
1714
+
1693
           }
1715
           }
1694
         }
1716
         }
1695
       },
1717
       },
1696
 
1718
 
1697
      querySearch(queryString, cb) {
1719
      querySearch(queryString, cb) {
1698
-        
1720
+        console.log("aaaaa")
1699
         var restaurants = this.all_drug;
1721
         var restaurants = this.all_drug;
1700
         restaurants.map(item => {
1722
         restaurants.map(item => {
1701
           item.value = item.drug_name
1723
           item.value = item.drug_name
1702
         })
1724
         })
1703
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
1725
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
1704
         // 调用 callback 返回建议列表的数据
1726
         // 调用 callback 返回建议列表的数据
1705
-       
1727
+
1706
         cb(results);
1728
         cb(results);
1707
      },
1729
      },
1708
 
1730
 
1713
      },
1735
      },
1714
 
1736
 
1715
      querySearch1(queryString, cb) {
1737
      querySearch1(queryString, cb) {
1716
-      
1738
+
1717
         var restaurants = this.drugSpec;
1739
         var restaurants = this.drugSpec;
1718
          console.log(restaurants)
1740
          console.log(restaurants)
1719
         restaurants.map(item => {
1741
         restaurants.map(item => {
1721
         })
1743
         })
1722
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
1744
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
1723
         // 调用 callback 返回建议列表的数据
1745
         // 调用 callback 返回建议列表的数据
1724
-       
1746
+
1725
         cb(results);
1747
         cb(results);
1726
       },
1748
       },
1727
 
1749
 
1728
       handleSelect(val){
1750
       handleSelect(val){
1729
         console.log("22222",val)
1751
         console.log("22222",val)
1730
         this.drug_id = val.id
1752
         this.drug_id = val.id
1731
-        this.nameForm.way = 1 
1732
-       
1753
+        this.nameForm.way = 1
1754
+        var tmp = val.drug_specs[0]
1755
+        console.log("tmp",tmp)
1756
+        console.log("unitsOption",this.unitsOption)
1757
+        this.nameForm.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
1758
+        this.nameForm.drug_spec_unit = tmp.max_unit
1759
+        this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
1760
+        this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
1761
+        this.nameForm.single_dose = tmp.single_dose//单次用量
1762
+        this.nameForm.single_dose_unit = tmp.drug_dose_unit
1763
+        this.nameForm.delivery_way = tmp.delivery_way//给药途径
1764
+        this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
1765
+        this.nameForm.drug_id = tmp.id
1733
       },
1766
       },
1734
       handleSelect1(){
1767
       handleSelect1(){
1735
 
1768
 
1743
   created(){
1776
   created(){
1744
     //获取自备药
1777
     //获取自备药
1745
     this.getSelfMedicalList()
1778
     this.getSelfMedicalList()
1746
-    
1779
+
1747
   }
1780
   }
1748
 };
1781
 };
1749
 </script>
1782
 </script>

+ 25 - 11
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Ver fichero

394
                 v-model="nameForm.advice_name"
394
                 v-model="nameForm.advice_name"
395
                 :fetch-suggestions="querySearch"
395
                 :fetch-suggestions="querySearch"
396
                 placeholder="请输入内容"
396
                 placeholder="请输入内容"
397
-              
397
+                @select="handleSelect"
398
                 @input="changeDrugName"
398
                 @input="changeDrugName"
399
               ></el-autocomplete>
399
               ></el-autocomplete>
400
             </el-form-item>
400
             </el-form-item>
401
-           
401
+
402
           </el-col>
402
           </el-col>
403
           <el-col :span="14">
403
           <el-col :span="14">
404
             <!--<el-form-item label="规格 :" prop="advice_desc">-->
404
             <!--<el-form-item label="规格 :" prop="advice_desc">-->
431
                   v-model="nameForm.advice_desc"
431
                   v-model="nameForm.advice_desc"
432
                   :fetch-suggestions="querySearch1"
432
                   :fetch-suggestions="querySearch1"
433
                   placeholder="请输入内容"
433
                   placeholder="请输入内容"
434
-                 
434
+
435
                   @input="changeDrugDesc"
435
                   @input="changeDrugDesc"
436
                 ></el-autocomplete>
436
                 ></el-autocomplete>
437
               </el-col>
437
               </el-col>
499
                     v-for="item in unitsOption"
499
                     v-for="item in unitsOption"
500
                     :key="item.id"
500
                     :key="item.id"
501
                     :label="item.name"
501
                     :label="item.name"
502
-                    :value="item.name"
502
+                    :value="item.id"
503
                   ></el-option>
503
                   ></el-option>
504
                 </el-select>
504
                 </el-select>
505
               </el-col>
505
               </el-col>
715
     }
715
     }
716
   },
716
   },
717
   methods: {
717
   methods: {
718
+    handleSelect(val){
719
+      console.log("2222",val)
720
+      var tmp = val.drug_specs[0]
721
+      console.log("tmp",tmp)
722
+      this.nameForm.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
723
+      this.nameForm.drug_spec_unit = tmp.max_unit
724
+      this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
725
+      this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
726
+      this.nameForm.single_dose = tmp.single_dose//单次用量
727
+      this.nameForm.single_dose_unit = tmp.drug_dose_unit
728
+      this.nameForm.delivery_way = tmp.delivery_way//给药途径
729
+      this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
730
+      this.nameForm.drug_id = tmp.id
731
+    },
718
     getXuserName(id) {
732
     getXuserName(id) {
719
       if (id <= 0) {
733
       if (id <= 0) {
720
         return "";
734
         return "";
877
           var arr = this.nameForm.advice_name.split("(自备药)")
891
           var arr = this.nameForm.advice_name.split("(自备药)")
878
           this.nameForm.advice_name = arr[0]
892
           this.nameForm.advice_name = arr[0]
879
        }
893
        }
880
-   
894
+
881
       var _this = this;
895
       var _this = this;
882
       this.$refs[formName].validate(valid => {
896
       this.$refs[formName].validate(valid => {
883
         if (valid) {
897
         if (valid) {
906
               drug_name_id:_this.groupForm.drug_name_id,
920
               drug_name_id:_this.groupForm.drug_name_id,
907
               drug_id:_this.groupForm.drug_id,
921
               drug_id:_this.groupForm.drug_id,
908
               way:_this.groupForm.way,
922
               way:_this.groupForm.way,
909
-              
923
+
910
             };
924
             };
911
             let mode = "2";
925
             let mode = "2";
912
             if (
926
             if (
916
               mode = "3";
930
               mode = "3";
917
             }
931
             }
918
             console.log("22222",submitForm)
932
             console.log("22222",submitForm)
919
-          
933
+
920
             EditDoctorAdvice(
934
             EditDoctorAdvice(
921
               this.patientID,
935
               this.patientID,
922
               this.groupSelectRow.id,
936
               this.groupSelectRow.id,
2392
                 obj.drug_specs = base_drug_list[i].drug_specs
2406
                 obj.drug_specs = base_drug_list[i].drug_specs
2393
                 this.all_drug.push(obj)
2407
                 this.all_drug.push(obj)
2394
               }
2408
               }
2395
-            }   
2409
+            }
2396
         })
2410
         })
2397
-       
2411
+
2398
     },
2412
     },
2399
     changeDrugName(name){
2413
     changeDrugName(name){
2400
        this.current_drug_name = name
2414
        this.current_drug_name = name
2428
         return Math.floor(Math.random() * (max - min)) + min;
2442
         return Math.floor(Math.random() * (max - min)) + min;
2429
      },
2443
      },
2430
      querySearch(queryString, cb) {
2444
      querySearch(queryString, cb) {
2431
-       
2445
+
2432
         var restaurants = this.all_drug;
2446
         var restaurants = this.all_drug;
2433
         restaurants.map(item => {
2447
         restaurants.map(item => {
2434
           item.value = item.drug_name
2448
           item.value = item.drug_name
2435
         })
2449
         })
2436
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2450
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2437
         // 调用 callback 返回建议列表的数据
2451
         // 调用 callback 返回建议列表的数据
2438
-     
2452
+
2439
         cb(results);
2453
         cb(results);
2440
      },
2454
      },
2441
 
2455
 

+ 8 - 8
src/xt_pages/dialysis/details/index.vue Ver fichero

946
               }
946
               }
947
               if(this.is_advice_open == 1){
947
               if(this.is_advice_open == 1){
948
                 this.is_open = 1
948
                 this.is_open = 1
949
-              } 
949
+              }
950
               this.longAdvices = totalAdvice
950
               this.longAdvices = totalAdvice
951
               this.waitUploadAdvices = waitUploadAdvices
951
               this.waitUploadAdvices = waitUploadAdvices
952
               break
952
               break
987
           var schedual = resp.data.schedual // 患者排班信息
987
           var schedual = resp.data.schedual // 患者排班信息
988
           // console.log("排班22222222222",schedual)
988
           // console.log("排班22222222222",schedual)
989
           var prescription = resp.data.prescription // 透析处方
989
           var prescription = resp.data.prescription // 透析处方
990
-        
990
+
991
           if (prescription != null) {
991
           if (prescription != null) {
992
             if (prescription.body_fluid == -2) {
992
             if (prescription.body_fluid == -2) {
993
               prescription.body_fluid = 0
993
               prescription.body_fluid = 0
1000
                prescription.plasma_separator  = ""
1000
                prescription.plasma_separator  = ""
1001
             }
1001
             }
1002
           }
1002
           }
1003
-        
1003
+
1004
           var solution = resp.data.solution // 透析方案
1004
           var solution = resp.data.solution // 透析方案
1005
           // console.log("透析方案22223333333333",solution)
1005
           // console.log("透析方案22223333333333",solution)
1006
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1006
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1152
           console.log("his_doctor_advices 2323232233232332323323232",this.his_doctor_advices)
1152
           console.log("his_doctor_advices 2323232233232332323323232",this.his_doctor_advices)
1153
           this.his_doctor_advices = his_doctor_advices
1153
           this.his_doctor_advices = his_doctor_advices
1154
           this.his_is_open = resp.data.is_open_config.is_open
1154
           this.his_is_open = resp.data.is_open_config.is_open
1155
-          
1155
+
1156
           this.is_advice_open = resp.data.is_advice_open.is_advice_open
1156
           this.is_advice_open = resp.data.is_advice_open.is_advice_open
1157
           console.log("is_advice_open 2323232233232332323323232",this.is_advice_open)
1157
           console.log("is_advice_open 2323232233232332323323232",this.is_advice_open)
1158
           var stockType =  resp.data.stockType
1158
           var stockType =  resp.data.stockType
1159
           this.stockType = stockType
1159
           this.stockType = stockType
1160
-         
1160
+
1161
 
1161
 
1162
           var prepare = resp.data.prepare
1162
           var prepare = resp.data.prepare
1163
           if(prepare!=null){
1163
           if(prepare!=null){
1211
         } else {
1211
         } else {
1212
           this.$message.error(resp.msg)
1212
           this.$message.error(resp.msg)
1213
         }
1213
         }
1214
-       
1214
+
1215
        // 目标超滤量是否默认上次数据
1215
        // 目标超滤量是否默认上次数据
1216
         if (this.lastDialysisPrescribe != null) {
1216
         if (this.lastDialysisPrescribe != null) {
1217
           delete this.lastDialysisPrescribe.target_ultrafiltration
1217
           delete this.lastDialysisPrescribe.target_ultrafiltration
1355
           //     }
1355
           //     }
1356
           //   }
1356
           //   }
1357
           // }
1357
           // }
1358
-         
1358
+
1359
           // console.log("hh2332223323232",schedules)
1359
           // console.log("hh2332223323232",schedules)
1360
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1360
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1361
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1361
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1785
               }
1785
               }
1786
           }
1786
           }
1787
           this.fisrtQueueInfo = fisrtQueueInfo
1787
           this.fisrtQueueInfo = fisrtQueueInfo
1788
-          
1788
+
1789
           // this.fisrtQueueInfo = res.data.fisrtQueueInfo
1789
           // this.fisrtQueueInfo = res.data.fisrtQueueInfo
1790
           let arr = res.data.patientQueueList.data
1790
           let arr = res.data.patientQueueList.data
1791
           let waitingCalledArr = []
1791
           let waitingCalledArr = []

+ 2 - 2
src/xt_pages/dialysis/dialysisDrugs_print.vue Ver fichero

40
                                       <span v-if="item.anticoagulant==7">低分子肝素钠</span>
40
                                       <span v-if="item.anticoagulant==7">低分子肝素钠</span>
41
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
41
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
42
                                       <span v-if="item.anticoagulant==9">达肝素</span>
42
                                       <span v-if="item.anticoagulant==9">达肝素</span>
43
-                                      <span v-if="item.anticoagulant==10">体外抗凝</span> 
44
-                                      <span v-if="item.anticoagulant==11">那曲肝素</span> 
43
+                                      <span v-if="item.anticoagulant==10">体外抗凝</span>
44
+                                      <span v-if="item.anticoagulant==11">那曲肝素</span>
45
                                     </td>
45
                                     </td>
46
                                     <td>
46
                                     <td>
47
                                       {{item.count}}
47
                                       {{item.count}}

+ 7 - 7
src/xt_pages/dialysis/dialysisParameters_print.vue Ver fichero

56
                                  <span v-if="getAnticoagulant(item.patient.id) == 10">体外抗凝</span>
56
                                  <span v-if="getAnticoagulant(item.patient.id) == 10">体外抗凝</span>
57
                                </span>
57
                                </span>
58
                                <span>
58
                                <span>
59
-              
59
+
60
                                   {{getAnticoagulantShouji(item.patient.id)?getAnticoagulantShouji(item.patient.id):''}}
60
                                   {{getAnticoagulantShouji(item.patient.id)?getAnticoagulantShouji(item.patient.id):''}}
61
                                   <span v-if="getAnticoagulant(item.patient.id) == 1 && getAnticoagulantShouji(item.patient.id)!=''">mg</span>
61
                                   <span v-if="getAnticoagulant(item.patient.id) == 1 && getAnticoagulantShouji(item.patient.id)!=''">mg</span>
62
                                   <span v-if="getAnticoagulant(item.patient.id) == 2  && getAnticoagulantShouji(item.patient.id)!=''">iu/h</span>
62
                                   <span v-if="getAnticoagulant(item.patient.id) == 2  && getAnticoagulantShouji(item.patient.id)!=''">iu/h</span>
203
           if(this.prescriptionList[i].patient_id == id){
203
           if(this.prescriptionList[i].patient_id == id){
204
              dialyzerPerfusionApparatus = this.prescriptionList[i].dialyzer_perfusion_apparatus
204
              dialyzerPerfusionApparatus = this.prescriptionList[i].dialyzer_perfusion_apparatus
205
           }
205
           }
206
-        } 
206
+        }
207
       return dialyzerPerfusionApparatus
207
       return dialyzerPerfusionApparatus
208
      },
208
      },
209
      getAnticoagulant(id){
209
      getAnticoagulant(id){
212
           if(this.prescriptionList[i].patient_id == id){
212
           if(this.prescriptionList[i].patient_id == id){
213
              anticoagulant = this.prescriptionList[i].anticoagulant
213
              anticoagulant = this.prescriptionList[i].anticoagulant
214
           }
214
           }
215
-        } 
215
+        }
216
        return anticoagulant
216
        return anticoagulant
217
      },
217
      },
218
      getAnticoagulantShouji(id){
218
      getAnticoagulantShouji(id){
221
          if(this.prescriptionList[i].patient_id == id){
221
          if(this.prescriptionList[i].patient_id == id){
222
             shouji = this.prescriptionList[i].anticoagulant_shouji
222
             shouji = this.prescriptionList[i].anticoagulant_shouji
223
           }
223
           }
224
-        } 
224
+        }
225
        return shouji
225
        return shouji
226
      },
226
      },
227
      getAnticoagulantWeichi(id){
227
      getAnticoagulantWeichi(id){
229
         for(let i=0;i<this.prescriptionList.length;i++){
229
         for(let i=0;i<this.prescriptionList.length;i++){
230
          if(this.prescriptionList[i].patient_id == id){
230
          if(this.prescriptionList[i].patient_id == id){
231
             weichi = this.prescriptionList[i].anticoagulant_weichi
231
             weichi = this.prescriptionList[i].anticoagulant_weichi
232
-        } 
232
+        }
233
        return weichi
233
        return weichi
234
       }
234
       }
235
      },
235
      },
239
          if(this.prescriptionList[i].patient_id == id){
239
          if(this.prescriptionList[i].patient_id == id){
240
             zongliang = this.prescriptionList[i].anticoagulant_zongliang
240
             zongliang = this.prescriptionList[i].anticoagulant_zongliang
241
           }
241
           }
242
-        } 
242
+        }
243
        return zongliang
243
        return zongliang
244
      }
244
      }
245
     },
245
     },
264
           var dialysbefor = response.data.data.dialysbefor
264
           var dialysbefor = response.data.data.dialysbefor
265
           console.log("dialysbefor",dialysbefor)
265
           console.log("dialysbefor",dialysbefor)
266
           this.dialysisBefor = dialysbefor
266
           this.dialysisBefor = dialysbefor
267
-        } 
267
+        }
268
      })
268
      })
269
    }
269
    }
270
 }
270
 }

+ 23 - 23
src/xt_pages/dialysis/doctorAdvicePrint.vue Ver fichero

66
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
66
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
67
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
67
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
68
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
68
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
69
-                            <span v-if="schedule.mode_id == 24">I-HDF</span>   
69
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>
70
                             </td>
70
                             </td>
71
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
71
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
72
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
72
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
177
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
177
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
178
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
178
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
179
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
179
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
180
-                            <span v-if="schedule.mode_id == 24">I-HDF</span>   
180
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>
181
                             </td>
181
                             </td>
182
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
182
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
183
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
183
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
323
                     })
323
                     })
324
                 }
324
                 }
325
                 if(config.is_open == 0 || config.is_open == 2){
325
                 if(config.is_open == 0 || config.is_open == 2){
326
-                
326
+
327
                    var schedulesArr = resp.data.scheduals
327
                    var schedulesArr = resp.data.scheduals
328
                    let schedules = []
328
                    let schedules = []
329
                    var ids = this.$store.getters.temp_params.advice_ids
329
                    var ids = this.$store.getters.temp_params.advice_ids
332
                     if(ids.indexOf(item.patient_id) > -1){
332
                     if(ids.indexOf(item.patient_id) > -1){
333
                         schedules.push(item)
333
                         schedules.push(item)
334
                     }
334
                     }
335
-                    
335
+
336
                 })
336
                 })
337
-               
337
+
338
                 for (let i = 0; i < schedules.length; i++) {
338
                 for (let i = 0; i < schedules.length; i++) {
339
                     schedules[i].dialysis_no = schedules[i].patient.dialysis_no
339
                     schedules[i].dialysis_no = schedules[i].patient.dialysis_no
340
                 }
340
                 }
341
-           
341
+
342
 
342
 
343
                 var arr = []
343
                 var arr = []
344
                 for (let j = 0; j < schedules.length; j++) {
344
                 for (let j = 0; j < schedules.length; j++) {
347
                 arr.sort(function (a, b) {
347
                 arr.sort(function (a, b) {
348
                     return a - b
348
                     return a - b
349
                 })
349
                 })
350
-               
350
+
351
 
351
 
352
                 var arrTwo = []
352
                 var arrTwo = []
353
                 for (let i = 0; i < arr.length; i++) {
353
                 for (let i = 0; i < arr.length; i++) {
359
                 }
359
                 }
360
 
360
 
361
                 arrTwo.map((item, index) => {
361
                 arrTwo.map((item, index) => {
362
-                  
362
+
363
                     item.doctor_advice.sort(this.compare('start_time'))
363
                     item.doctor_advice.sort(this.compare('start_time'))
364
                 })
364
                 })
365
-                
365
+
366
 
366
 
367
                 const res = new Map()
367
                 const res = new Map()
368
                 let a = arrTwo.filter(
368
                 let a = arrTwo.filter(
369
                     a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
369
                     a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
370
                 )
370
                 )
371
 
371
 
372
-               
372
+
373
 
373
 
374
                 schedules = a
374
                 schedules = a
375
                 var zoneMap = {}
375
                 var zoneMap = {}
477
                     maps.new_advice = advice_groups
477
                     maps.new_advice = advice_groups
478
                     }
478
                     }
479
                  }
479
                  }
480
-                
481
 
480
 
482
-                 this.scheduleMap = scheduleMap  
481
+
482
+                 this.scheduleMap = scheduleMap
483
                 }
483
                 }
484
-               
484
+
485
                  if(config.is_open == 1){
485
                  if(config.is_open == 1){
486
                    var schedulesArr = resp.data.hisAdvices
486
                    var schedulesArr = resp.data.hisAdvices
487
                    let schedules = []
487
                    let schedules = []
491
                     if(ids.indexOf(item.patient_id) > -1){
491
                     if(ids.indexOf(item.patient_id) > -1){
492
                         schedules.push(item)
492
                         schedules.push(item)
493
                     }
493
                     }
494
-                    
494
+
495
                 })
495
                 })
496
-               
496
+
497
                 for (let i = 0; i < schedules.length; i++) {
497
                 for (let i = 0; i < schedules.length; i++) {
498
                     schedules[i].dialysis_no = schedules[i].patient.dialysis_no
498
                     schedules[i].dialysis_no = schedules[i].patient.dialysis_no
499
                 }
499
                 }
500
-           
500
+
501
 
501
 
502
                 var arr = []
502
                 var arr = []
503
                 for (let j = 0; j < schedules.length; j++) {
503
                 for (let j = 0; j < schedules.length; j++) {
506
                 arr.sort(function (a, b) {
506
                 arr.sort(function (a, b) {
507
                     return a - b
507
                     return a - b
508
                 })
508
                 })
509
-               
509
+
510
 
510
 
511
                 var arrTwo = []
511
                 var arrTwo = []
512
                 for (let i = 0; i < arr.length; i++) {
512
                 for (let i = 0; i < arr.length; i++) {
518
                 }
518
                 }
519
 
519
 
520
                 arrTwo.map((item, index) => {
520
                 arrTwo.map((item, index) => {
521
-                  
521
+
522
                     item.doctor_advice.sort(this.compare('start_time'))
522
                     item.doctor_advice.sort(this.compare('start_time'))
523
                 })
523
                 })
524
-                
524
+
525
 
525
 
526
                 const res = new Map()
526
                 const res = new Map()
527
                 let a = arrTwo.filter(
527
                 let a = arrTwo.filter(
528
                     a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
528
                     a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
529
                 )
529
                 )
530
 
530
 
531
-               
531
+
532
 
532
 
533
                 schedules = a
533
                 schedules = a
534
                 var zoneMap = {}
534
                 var zoneMap = {}
636
                     maps.new_advice = advice_groups
636
                     maps.new_advice = advice_groups
637
                     }
637
                     }
638
                  }
638
                  }
639
-                
640
 
639
 
641
-                     this.scheduleMap = scheduleMap  
640
+
641
+                     this.scheduleMap = scheduleMap
642
                  }
642
                  }
643
 
643
 
644
-                
644
+
645
                 }
645
                 }
646
             })
646
             })
647
         },
647
         },

+ 8 - 8
src/xt_pages/hospitalStation/checkPrint.vue Ver fichero

11
           >打印</el-button
11
           >打印</el-button
12
         >
12
         >
13
       </template> -->
13
       </template> -->
14
-            
14
+
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
         <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
         <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
       </div>
17
       </div>
66
                 scanStyles: false
66
                 scanStyles: false
67
             });
67
             });
68
         },500)
68
         },500)
69
-        
69
+
70
     },
70
     },
71
     getAllDoctorList(){
71
     getAllDoctorList(){
72
       getAllDoctorList().then(response=>{
72
       getAllDoctorList().then(response=>{
73
         if(response.data.state == 1){
73
         if(response.data.state == 1){
74
                var doctor =  response.data.data.doctor
74
                var doctor =  response.data.data.doctor
75
-               
75
+
76
                this.doctorList = doctor
76
                this.doctorList = doctor
77
              }
77
              }
78
-         })   
78
+         })
79
      },
79
      },
80
     getAllHisPatientList(){
80
     getAllHisPatientList(){
81
          const params = {
81
          const params = {
101
             // console.log(this.patientTableData[0])
101
             // console.log(this.patientTableData[0])
102
             // this.choosePatient(this.patientTableData[0])
102
             // this.choosePatient(this.patientTableData[0])
103
             this.cal_one = cal_one
103
             this.cal_one = cal_one
104
-            this.cal_two = cal_two   
104
+            this.cal_two = cal_two
105
          }
105
          }
106
       })
106
       })
107
     },
107
     },
135
     searchAction(){
135
     searchAction(){
136
 
136
 
137
     }
137
     }
138
-    
138
+
139
   },
139
   },
140
 
140
 
141
   created() {
141
   created() {
159
         var prescription_id = this.paramsObj.prescription_id
159
         var prescription_id = this.paramsObj.prescription_id
160
         this.prescription_id = prescription_id
160
         this.prescription_id = prescription_id
161
         this.ids = this.paramsObj.ids
161
         this.ids = this.paramsObj.ids
162
-        
162
+
163
       },
163
       },
164
       deep:true
164
       deep:true
165
     }
165
     }
332
   .dialysisPage::-webkit-scrollbar {
332
   .dialysisPage::-webkit-scrollbar {
333
     height: 15px;
333
     height: 15px;
334
   }
334
   }
335
-  
335
+
336
   .el-date-editor{
336
   .el-date-editor{
337
     .el-input__inner{
337
     .el-input__inner{
338
       padding-right:0px;
338
       padding-right:0px;

+ 1 - 1
src/xt_pages/hospitalStation/components/advice.vue Ver fichero

81
             <el-button @click="hide">取 消</el-button>
81
             <el-button @click="hide">取 消</el-button>
82
             <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
82
             <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
83
         </div>
83
         </div>
84
-    </el-dialog>         
84
+    </el-dialog>
85
 </template>
85
 </template>
86
 
86
 
87
 <script>
87
 <script>

+ 255 - 193
src/xt_pages/hospitalStation/components/chargeDialog.vue Ver fichero

1
-<template>
2
-  <el-dialog
3
-    width="854px"
4
-    title="收费单"
5
-    class="chargeDialog"
6
-    :visible.sync="visibility"
7
-    :close-on-click-modal="isClose"
8
-    :close-on-press-escape="isClose"
9
-  >
10
-    <el-form :model="form" ref="formValue" label-width="100px">
11
-      <el-form-item label="日期:" style="width: 100%">
12
-        <div>{{ record_date }}</div>
1
+<template><!--住院收费-->
2
+  <el-dialog width="854px" title="收费单" class="chargeDialog" :visible.sync="visibility" :close-on-click-modal="isClose"
3
+             :close-on-press-escape="isClose">
4
+
5
+    <el-form :model="form"  ref="formValue" label-width="100px">
6
+
7
+      <el-form-item label="日期:" style="width:100%;">
8
+        <div>{{record_date}}</div>
13
       </el-form-item>
9
       </el-form-item>
14
 
10
 
15
       <el-form-item
11
       <el-form-item
104
           <el-form-item class="specialFormItem">
100
           <el-form-item class="specialFormItem">
105
             <div style="display: flex">
101
             <div style="display: flex">
106
               <!--            这里不要改成el-input,因为使用el-input会导致一个奇怪的bug,千万不要改!!!!!!!!!!!!!!!!!!!!-->
102
               <!--            这里不要改成el-input,因为使用el-input会导致一个奇怪的bug,千万不要改!!!!!!!!!!!!!!!!!!!!-->
107
-              <el-input v-model="form.tmp_decimal" @onkeyup="this.value = this.value.replace(/[^\d.]/g,'');" @change="lilili">元</el-input>
103
+              <el-input v-model="form.tmp_decimal" onkeyup="this.value = this.value.replace(/[^\d.]/g,'');" @change="lilili">
104
+
105
+              </el-input>元
108
             </div>
106
             </div>
109
           </el-form-item>
107
           </el-form-item>
110
         </span>
108
         </span>
111
       </el-form-item>
109
       </el-form-item>
112
 
110
 
111
+
113
       <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
112
       <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
114
         <el-input
113
         <el-input
115
           style="color: black"
114
           style="color: black"
119
         ></el-input>
118
         ></el-input>
120
       </el-form-item>
119
       </el-form-item>
121
 
120
 
121
+
122
       <el-form-item label="付款卡号:" prop="id_card" :validate-event="is_Name">
122
       <el-form-item label="付款卡号:" prop="id_card" :validate-event="is_Name">
123
         <el-input v-model="form.pay_card_no"></el-input>
123
         <el-input v-model="form.pay_card_no"></el-input>
124
       </el-form-item>
124
       </el-form-item>
175
     </el-form>
175
     </el-form>
176
 
176
 
177
     <span slot="footer" class="dialog-footer">
177
     <span slot="footer" class="dialog-footer">
178
-      <el-button @click="cancel('formValue')">取 消</el-button>
179
-      <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
180
-    </span>
178
+    <el-button @click="cancel('formValue')">取 消</el-button>
179
+<!--      <el-button @click="init">调试</el-button>-->
180
+    <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
181
+  </span>
181
   </el-dialog>
182
   </el-dialog>
182
 </template>
183
 </template>
183
 
184
 
184
 <script>
185
 <script>
185
-import { uParseTime } from "@/utils/tools";
186
-const moment = require("moment");
187
-export default {
188
-  name: "chargeDialog",
189
-
190
-  data() {
191
-    return {
192
-      record_date: "",
193
-      form: {
194
-        medical_insurance_price: 0,
195
-        private_price: "",
196
-        pay_way: "",
197
-        pay_price: "",
198
-        pay_card_no: "",
199
-        discount_price: "",
200
-        preferential_price: "",
201
-        reality_price: "",
202
-        found_price: "",
203
-        total: 0,
204
-        fapiao_code: "",
205
-        fapiao_number: "",
206
-        order: null,
207
-        acct_pay: "",
208
-        psn_pay: "",
186
+  import { uParseTime } from '@/utils/tools'
187
+  import {
188
+    idtobalance
189
+  }from "@/api/deposit";
190
+  const moment = require('moment')
191
+  export default {
192
+    name: 'chargeDialog',
193
+
194
+    data() {
195
+
196
+      return {
197
+        tmp_pay: "",
198
+        isshow: false,
199
+        id: 0,
200
+        decimal: 0,//当前押金余额
201
+        record_date: '',
202
+        form: {
203
+          medical_insurance_price: 0,
204
+          private_price: '',//自费12
205
+          pay_way: '',
206
+          dec_way: 'false',//是否使用押金支付
207
+          tmp_decimal: "",//本次使用的押金
208
+          pay_price: '',
209
+          pay_card_no: '',
210
+          discount_price: '',
211
+          preferential_price: '',
212
+          reality_price: '',
213
+          found_price: '',
214
+          total: 0,
215
+          fapiao_code: "",
216
+          fapiao_number: "",
217
+          order: null,
218
+          acct_pay: '',
219
+          psn_pay: '',
220
+
221
+        },
222
+        payWays: [
223
+          { value: 1, label: '现金' },
224
+          // {value: 2, label: '银行卡'},
225
+          // {value: 3, label: '微信'},
226
+          // {value: 4, label: '支付宝'},
227
+          { value: 5, label: '医保卡' },
228
+
229
+        ],
230
+        total: "",
231
+
232
+        visibility: false,
233
+        labelPosition: "right",
234
+        isClose: false,
235
+
236
+        resetForm: {
237
+          medical_insurance_price: "",
238
+          private_price: "",
239
+          pay_way: "",
240
+          pay_price: "",
241
+          pay_card_no: "",
242
+          discount_price: "",
243
+          preferential_price: "",
244
+          reality_price: "",
245
+          found_price: "",
246
+          fapiao_code: "",
247
+          fapiao_number: "",
248
+          acct_pay: "",
249
+          psn_pay: "",
250
+        },
251
+      };
252
+    },
253
+    props: {
254
+      titles: {
255
+        type: String,
256
+        default: "",
209
       },
257
       },
210
-      pay_way_index: "",
211
-      payWays: [
212
-        { value: 1, label: "现金" },
213
-        { value: 2, label: "银行卡" },
214
-        { value: 3, label: "微信" },
215
-        { value: 4, label: "支付宝" },
216
-        { value: 5, label: "医保卡" },
217
-      ],
218
-      total: "",
219
-
220
-      visibility: false,
221
-      labelPosition: "right",
222
-      isClose: false,
223
-
224
-      resetForm: {
225
-        medical_insurance_price: "",
226
-        private_price: "",
227
-        pay_way: "",
228
-        pay_price: "",
229
-        pay_card_no: "",
230
-        discount_price: "",
231
-        preferential_price: "",
232
-        reality_price: "",
233
-        found_price: "",
234
-        fapiao_code: "",
235
-        fapiao_number: "",
236
-        acct_pay: "",
237
-        psn_pay: "",
258
+      formValue: {
259
+        type: Object,
260
+      },
261
+      type: {
262
+        type: Number,
263
+        default: 1,
264
+      },
265
+      isCreated: {
266
+        type: Number,
267
+        default: 1,
238
       },
268
       },
239
-    };
240
-  },
241
-  props: {
242
-    titles: {
243
-      type: String,
244
-      default: "",
245
-    },
246
-    formValue: {
247
-      type: Object,
248
-    },
249
-    type: {
250
-      type: Number,
251
-      default: 1,
252
-    },
253
-    isCreated: {
254
-      type: Number,
255
-      default: 1,
256
     },
269
     },
257
-  },
258
-  methods: {
259
-    show: function (total, order) {
260
-      this.record_date = moment(new Date())
261
-        .add("year", 0)
262
-        .format("YYYY-MM-DD HH:mm");
263
-      this.form.total = total;
264
-      this.form.private_price = total;
265
-      this.form.pay_price = total;
266
-      this.form.total = total + this.form.medical_insurance_price;
267
-      this.form.discount_price = 0.0;
268
-      this.form.preferential_price = 0.0;
269
-
270
-      this.form.fapiao_code = "";
271
-      this.form.fapiao_number = "";
272
-      this.order = order;
273
-
274
-      if (this.order && this.order.id > 0) {
275
-        this.form.acct_pay = this.order.acct_pay;
276
-        this.form.psn_pay = this.order.psn_cash_pay;
277
-        this.form.total = this.order.medfee_sumamt;
278
-        this.form.pay_price = this.order.medfee_sumamt;
279
-        this.form.medical_insurance_price = this.order.fund_pay_sumamt;
280
-        this.form.private_price = this.order.psn_part_amt;
281
-      }
270
+      created() {
271
+      },
272
+      methods: {
273
+        init() {
274
+          console.log("====this.form.dec_way===", this.form.dec_way)
275
+        },
276
+        lilili(val) {
277
+          console.log("val", val)
278
+          if (this.form.tmp_decimal == "") {
279
+            this.form.pay_price = this.tmp_pay
280
+            return
281
+          }
282
+          if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
283
+            // alert("押金不得大于自费金额")
284
+            this.$message.error("押金不得大于自费金额");
285
+            this.form.tmp_decimal = ""
286
+            this.form.pay_price = this.tmp_pay
287
+            return
288
+          }
289
+          // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
282
 
290
 
283
-      this.visibility = true;
284
-    },
285
-    hide: function () {
286
-      this.form = Object.assign({}, this.resetForm);
287
-      this.loadingtwo = false;
288
-      this.visibility = false;
289
-    },
290
-    cancel: function (formName) {
291
-      this.$emit("cancel", this.getValue());
292
-      this.$refs["formValue"].resetFields();
293
-    },
294
-    confirm: function (formName) {
295
-      this.$refs["formValue"].validate((valid) => {
296
-        if (valid) {
297
-          let value = {};
298
-          value = this.getValue();
299
-          this.$emit("confirm", value);
300
-          this.loadingtwo = true;
291
+          this.form.pay_price = (parseFloat(this.form.private_price) * 100 - parseFloat(this.form.tmp_decimal) * 100) / 100
292
+        },
293
+        changedecimal() {
294
+          // console.log("this.isshow前",this.isshow)
295
+          this.$forceUpdate();
296
+          this.isshow = this.form.dec_way
297
+          // console.log("this.form.dec_way后",this.form.dec_way)
298
+          if (this.isshow == false) {
299
+            // this.form.private_price = parseFloat(this.form.pay_price)
300
+            this.form.tmp_decimal = 0
301
+            this.form.pay_price = this.tmp_pay
302
+          } else {
303
+            //储存临时付款
304
+            this.tmp_pay = this.form.pay_price
305
+            if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)) {
306
+              this.form.tmp_decimal = 0
307
+              // alert("押金不得大于自费金额")
308
+              this.$message.error("押金不得大于自费金额");
309
+              return
310
+            }
311
+            // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
312
+            this.tmp_pay = this.form.pay_price
313
+            this.form.pay_price = (parseFloat(this.form.private_price) * 100 - parseFloat(this.form.tmp_decimal) * 100) / 100
314
+          }
315
+        },
316
+        //查询用户当前的余额
317
+        updateconfig() {
318
+          var params = {
319
+            his_patient_id: this.id,
320
+          }
321
+          idtobalance(params).then((res) => {
322
+            if (res.data.state == 1) {
323
+              this.decimal = res.data.data.list;
324
+            }
325
+          })
326
+        },
327
+        show(total,order,id) {
328
+          this.record_date = moment(new Date()).add('year', 0).format("YYYY-MM-DD HH:mm")
329
+          //初始化
330
+          this.form.tmp_decimal = 0
331
+          this.tmp_pay = 0
332
+          this.id = id
333
+          this.updateconfig()
334
+          this.form.dec_way = false
335
+          this.form.total = total
336
+          this.form.private_price = total
337
+          this.form.pay_price = total
338
+          this.form.total = total + this.form.medical_insurance_price
339
+          this.form.discount_price = 0.0
340
+          this.form.preferential_price = 0.0
341
+
342
+          this.form.fapiao_code = "";
343
+          this.form.fapiao_number = "";
344
+          this.order = order;
345
+
346
+          if (this.order && this.order.id > 0) {
347
+            this.form.acct_pay = this.order.acct_pay
348
+            this.form.psn_pay = this.order.psn_cash_pay
349
+            this.form.total = this.order.medfee_sumamt
350
+            this.form.pay_price = this.order.medfee_sumamt
351
+            this.form.medical_insurance_price = this.order.fund_pay_sumamt
352
+            this.form.private_price = this.order.psn_part_amt
353
+          }
354
+
355
+          this.visibility = true
356
+
357
+        },
358
+        hide: function() {
359
+          this.form = Object.assign({}, this.resetForm);
360
+          this.loadingtwo = false;
361
+          this.visibility = false
362
+        }, cancel: function(formName) {
363
+          this.form.tmp_decimal = 0
364
+          this.tmp_pay = 0
365
+          this.form.dec_way = false
366
+          this.$emit('cancel', this.getValue());
367
+          this.$refs['formValue'].resetFields()
368
+        },
369
+        confirm: function(formName) {
370
+          if (parseFloat(this.form.tmp_decimal) > parseFloat(this.decimal)){
371
+            this.$message.error("押金余额不足");
372
+            return
373
+          }
374
+          this.$refs['formValue'].validate((valid) => {
375
+            if (valid) {
376
+              let value = {};
377
+              value = this.getValue();
378
+              this.$emit('confirm', value);
379
+              this.loadingtwo = true
380
+            }
381
+          })
382
+        },
383
+        getValue: function() {
384
+          let form = {};
385
+          form = this.form;
386
+          return form
387
+        },
388
+        realityPrice(val) {
389
+          if (val < (this.form.total - this.form.discount_price - this.form.preferential_price)) {
390
+            this.$message.error('实收金额不能小于收费金额');
391
+            return
392
+          }
393
+          this.form.found_price = parseInt(val) - parseInt(this.form.total) + parseInt(this.form.discount_price) + parseInt(this.form.preferential_price)
394
+        },
395
+        changeDiscountPrice(val) {
396
+          if (val > this.form.total) {
397
+            this.$message.error('折扣金额不能超过费用总额');
398
+            return
399
+          }
400
+          this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.preferential_price)
401
+        },
402
+        changePreferentialPrice(val) {
403
+          if (val > this.form.total) {
404
+            this.$message.error('优惠金额不能超过费用总额');
405
+            return
406
+          }
407
+          this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.discount_price)
301
         }
408
         }
302
-      });
303
-    },
304
-    getValue: function () {
305
-      let form = {};
306
-      form = this.form;
307
-      return form;
308
-    },
309
-    realityPrice(val) {
310
-      if (
311
-        val <
312
-        this.form.total -
313
-          this.form.discount_price -
314
-          this.form.preferential_price
315
-      ) {
316
-        this.$message.error("实收金额不能小于收费金额");
317
-        return;
318
-      }
319
-      this.form.found_price =
320
-        parseInt(val) -
321
-        parseInt(this.form.total) +
322
-        parseInt(this.form.discount_price) +
323
-        parseInt(this.form.preferential_price);
324
-    },
325
-    changeDiscountPrice(val) {
326
-      if (val > this.form.total) {
327
-        this.$message.error("折扣金额不能超过费用总额");
328
-        return;
329
-      }
330
-      this.form.reality_price =
331
-        parseInt(this.form.total) -
332
-        parseInt(val) -
333
-        parseInt(this.form.preferential_price);
334
-    },
335
-    changePreferentialPrice(val) {
336
-      if (val > this.form.total) {
337
-        this.$message.error("优惠金额不能超过费用总额");
338
-        return;
409
+      },
410
+      mounted() {
411
+        var nowDate = new Date();
412
+        var nowYear = nowDate.getFullYear();
413
+        var nowMonth = nowDate.getMonth() + 1;
414
+        var nowDay = nowDate.getDate();
415
+
416
+        var nowHours = nowDate.getHours();
417
+        var nowMin = nowDate.getMinutes();
418
+        var nowSecond = nowDate.getSeconds();
419
+
420
+        this.record_date =
421
+          nowYear +
422
+          '-' +
423
+          (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
424
+          '-' +
425
+          (nowDay < 10 ? '0' + nowDay : nowDay) + " " + (nowHours < 10 ? '0' + nowHours : nowHours) + ":" + (nowMin < 10 ? '0' + nowMin : nowMin)
339
       }
426
       }
340
-      this.form.reality_price =
341
-        parseInt(this.form.total) -
342
-        parseInt(val) -
343
-        parseInt(this.form.discount_price);
344
-    },
345
-  },
346
-  mounted() {
347
-    var nowDate = new Date();
348
-    var nowYear = nowDate.getFullYear();
349
-    var nowMonth = nowDate.getMonth() + 1;
350
-    var nowDay = nowDate.getDate();
351
-
352
-    var nowHours = nowDate.getHours();
353
-    var nowMin = nowDate.getMinutes();
354
-    var nowSecond = nowDate.getSeconds();
355
-
356
-    this.record_date =
357
-      nowYear +
358
-      "-" +
359
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
360
-      "-" +
361
-      (nowDay < 10 ? "0" + nowDay : nowDay) +
362
-      " " +
363
-      (nowHours < 10 ? "0" + nowHours : nowHours) +
364
-      ":" +
365
-      (nowMin < 10 ? "0" + nowMin : nowMin);
366
-  },
367
-};
427
+
428
+
429
+  }
368
 </script>
430
 </script>
369
 
431
 
370
 
432
 

+ 6 - 4
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Ver fichero

126
                        v-if="(this.radio == 1 &&this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
126
                        v-if="(this.radio == 1 &&this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
127
                        size="small"
127
                        size="small"
128
                        @click="open(3)"
128
                        @click="open(3)"
129
-                       type="primary">收费
129
+                       type="primary">收费<!--修改的地方-->
130
             </el-button>
130
             </el-button>
131
 
131
 
132
 <!--            <el-button v-loading="loadingtwo"-->
132
 <!--            <el-button v-loading="loadingtwo"-->
1449
           this.$message.error('请先到医生工作站开处方再来结算')
1449
           this.$message.error('请先到医生工作站开处方再来结算')
1450
           return
1450
           return
1451
         }
1451
         }
1452
-        console.log(this.order)
1453
-        this.$refs.charge.show(this.settle_total,this.order)
1454
-
1452
+        console.log("this.patientInfo.id",this.patientInfo.id)
1453
+        console.log("this.$refs.charge.",this.$refs.charge)
1454
+        this.$nextTick(() => {
1455
+          this.$refs.charge.show(this.settle_total, this.order, this.patientInfo.id)
1456
+        })
1455
       } else if (index == 4) {
1457
       } else if (index == 4) {
1456
         if (this.hisPatientInfo.balance_accounts_type == 2) {
1458
         if (this.hisPatientInfo.balance_accounts_type == 2) {
1457
 
1459
 

+ 21 - 21
src/xt_pages/medicalScheduling/index.vue Ver fichero

313
                             </el-table>
313
                             </el-table>
314
                         </el-tab-pane>
314
                         </el-tab-pane>
315
                     </el-tabs>
315
                     </el-tabs>
316
-                 
316
+
317
                 </div>
317
                 </div>
318
-            </el-dialog>    
318
+            </el-dialog>
319
         </div>
319
         </div>
320
 
320
 
321
 
321
 
927
                     // this.doctorlist.sort(this.compare('admin_user_id'))
927
                     // this.doctorlist.sort(this.compare('admin_user_id'))
928
                     // this.doctorlist.forEach((item, index) => {
928
                     // this.doctorlist.forEach((item, index) => {
929
                     //   if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
929
                     //   if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
930
-                    
930
+
931
                     //   }else{
931
                     //   }else{
932
                     //     arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
932
                     //     arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
933
                     //   }
933
                     //   }
934
                     // })
934
                     // })
935
                     // arr.sort(this.compare('user_type'))
935
                     // arr.sort(this.compare('user_type'))
936
-                    
936
+
937
                     let arr2 = []
937
                     let arr2 = []
938
                     arr2.push({class_name:oneStr,schedule_week:1})
938
                     arr2.push({class_name:oneStr,schedule_week:1})
939
                     arr2.push({class_name:twoStr,schedule_week:2})
939
                     arr2.push({class_name:twoStr,schedule_week:2})
953
                     data.push(...newNurse)
953
                     data.push(...newNurse)
954
                     data.push(...newDoctor)
954
                     data.push(...newDoctor)
955
                     data.push(obj)
955
                     data.push(obj)
956
-                    
956
+
957
                     this.tableData = data
957
                     this.tableData = data
958
 
958
 
959
-              
959
+
960
                 }
960
                 }
961
             })
961
             })
962
         },
962
         },
1243
                             }
1243
                             }
1244
                         }
1244
                         }
1245
                     }
1245
                     }
1246
-                    
1246
+
1247
                     let arr = [...newArr]
1247
                     let arr = [...newArr]
1248
                     let newNurse = []
1248
                     let newNurse = []
1249
                     let newDoctor = []
1249
                     let newDoctor = []
1284
                     newDoctorTableData.sort(this.compare('admin_user_id'))
1284
                     newDoctorTableData.sort(this.compare('admin_user_id'))
1285
                     newDoctorTableData.map((item,index) => {
1285
                     newDoctorTableData.map((item,index) => {
1286
                         if (newDoctor[index] && item.admin_user_id == newDoctor[index].admin_user_id) {
1286
                         if (newDoctor[index] && item.admin_user_id == newDoctor[index].admin_user_id) {
1287
-                    
1287
+
1288
                         }else{
1288
                         }else{
1289
                             newDoctor.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type,is_sort:item.is_sort,sort:item.sort})
1289
                             newDoctor.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type,is_sort:item.is_sort,sort:item.sort})
1290
                         }
1290
                         }
1296
                     // this.doctorlist.sort(this.compare('admin_user_id'))
1296
                     // this.doctorlist.sort(this.compare('admin_user_id'))
1297
                     // this.doctorlist.forEach((item, index) => {
1297
                     // this.doctorlist.forEach((item, index) => {
1298
                     //   if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1298
                     //   if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
1299
-                    
1299
+
1300
                     //   }else{
1300
                     //   }else{
1301
                     //     arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
1301
                     //     arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
1302
                     //   }
1302
                     //   }
1303
                     // })
1303
                     // })
1304
                     // arr.sort(this.compare('user_type'))
1304
                     // arr.sort(this.compare('user_type'))
1305
-                    
1305
+
1306
                     let arr2 = []
1306
                     let arr2 = []
1307
                     arr2.push({class_name:oneStr,schedule_week:1})
1307
                     arr2.push({class_name:oneStr,schedule_week:1})
1308
                     arr2.push({class_name:twoStr,schedule_week:2})
1308
                     arr2.push({class_name:twoStr,schedule_week:2})
1611
                         newDoctorTableData.sort(this.compare('admin_user_id'))
1611
                         newDoctorTableData.sort(this.compare('admin_user_id'))
1612
                         newDoctorTableData.map((item,index) => {
1612
                         newDoctorTableData.map((item,index) => {
1613
                             if (newDoctor[index] && item.admin_user_id == newDoctor[index].admin_user_id) {
1613
                             if (newDoctor[index] && item.admin_user_id == newDoctor[index].admin_user_id) {
1614
-                        
1614
+
1615
                             }else{
1615
                             }else{
1616
                                 newDoctor.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type,is_sort:item.is_sort,sort:item.sort})
1616
                                 newDoctor.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type,is_sort:item.is_sort,sort:item.sort})
1617
                             }
1617
                             }
1618
                         })
1618
                         })
1619
                         newDoctor.sort(this.compare('sort'))
1619
                         newDoctor.sort(this.compare('sort'))
1620
-                        
1620
+
1621
                         // let data = []
1621
                         // let data = []
1622
                         // data.push(...newNurse)
1622
                         // data.push(...newNurse)
1623
                         // data.push(...newDoctor)
1623
                         // data.push(...newDoctor)
1802
                 start_time:this.getTimestamp(this.weekDayArr[0]),
1802
                 start_time:this.getTimestamp(this.weekDayArr[0]),
1803
                 end_time:this.getTimestamp(this.weekDayArr[6])
1803
                 end_time:this.getTimestamp(this.weekDayArr[6])
1804
             }
1804
             }
1805
-           
1805
+
1806
             copyStaffSchedule(params).then(response=>{
1806
             copyStaffSchedule(params).then(response=>{
1807
                 if(response.data.state == 1){
1807
                 if(response.data.state == 1){
1808
                 var msg =  response.data.data.msg
1808
                 var msg =  response.data.data.msg
1952
          }
1952
          }
1953
          console.log("this.table",this.tableData)
1953
          console.log("this.table",this.tableData)
1954
          const tHeader = ['医护姓名', '周一'+"("+this.weekDayArr[0]+")" ,  '周二'+"("+this.weekDayArr[1]+")", '周三'+"("+this.weekDayArr[2]+")" , '周四'+"("+this.weekDayArr[3]+")" ,  '周五'+"("+this.weekDayArr[4]+")" ,  '周六'+"("+this.weekDayArr[5]+")",'周日'+"("+this.weekDayArr[6]+")"]
1954
          const tHeader = ['医护姓名', '周一'+"("+this.weekDayArr[0]+")" ,  '周二'+"("+this.weekDayArr[1]+")", '周三'+"("+this.weekDayArr[2]+")" , '周四'+"("+this.weekDayArr[3]+")" ,  '周五'+"("+this.weekDayArr[4]+")" ,  '周六'+"("+this.weekDayArr[5]+")",'周日'+"("+this.weekDayArr[6]+")"]
1955
-         const filterVal = ['user_name', 'monday', 'tuesday','wednesday','thursday','friday','saturday','weekday'] 
1956
-         
1955
+         const filterVal = ['user_name', 'monday', 'tuesday','wednesday','thursday','friday','saturday','weekday']
1956
+
1957
          const data = this.formatJson(filterVal,this.tableData)
1957
          const data = this.formatJson(filterVal,this.tableData)
1958
          console.log("data",data)
1958
          console.log("data",data)
1959
-       
1959
+
1960
          excel.export_json_to_excel({
1960
          excel.export_json_to_excel({
1961
            header: tHeader,
1961
            header: tHeader,
1962
            data,
1962
            data,
1963
            filename: '医护排班'
1963
            filename: '医护排班'
1964
          })
1964
          })
1965
           this.downloadLoading = false
1965
           this.downloadLoading = false
1966
-    
1966
+
1967
         })
1967
         })
1968
        },
1968
        },
1969
        formatJson(filterVal, jsonData) {
1969
        formatJson(filterVal, jsonData) {
1970
         return jsonData.map(v => filterVal.map(j => v[j]))
1970
         return jsonData.map(v => filterVal.map(j => v[j]))
1971
        },
1971
        },
1972
-    
1973
-    
1972
+
1973
+
1974
     },
1974
     },
1975
     created(){
1975
     created(){
1976
         //获取医护人员
1976
         //获取医护人员
2008
         }
2008
         }
2009
       var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
2009
       var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
2010
       this.timeNow = this.getTimestamp(now)
2010
       this.timeNow = this.getTimestamp(now)
2011
-     
2012
-   
2011
+
2012
+
2013
     }
2013
     }
2014
 }
2014
 }
2015
 </script>
2015
 </script>

+ 118 - 23
src/xt_pages/outpatientCharges/components/chargeDialog.vue Ver fichero

1
-<template>
1
+<template><!--门诊收费-->
2
   <el-dialog width="854px" title="收费单" class="chargeDialog" :visible.sync="visibility" :close-on-click-modal="isClose"
2
   <el-dialog width="854px" title="收费单" class="chargeDialog" :visible.sync="visibility" :close-on-click-modal="isClose"
3
              :close-on-press-escape="isClose">
3
              :close-on-press-escape="isClose">
4
 
4
 
8
         <div>{{record_date}}</div>
8
         <div>{{record_date}}</div>
9
       </el-form-item>
9
       </el-form-item>
10
 
10
 
11
-      <el-form-item label="总计:" prop="name" :validate-event="is_Name" style="width:33%;">
11
+      <el-form-item label="总计:" prop="name" :validate-event="is_Name">
12
         <el-input type="number" v-model="form.total" :disabled="true"></el-input>
12
         <el-input type="number" v-model="form.total" :disabled="true"></el-input>
13
       </el-form-item>
13
       </el-form-item>
14
-      <el-form-item label="医保:" prop="name" :validate-event="is_Name" style="width:33%;">
14
+      <el-form-item label="医保:" prop="name" :validate-event="is_Name">
15
         <el-input type="number" v-model="form.medical_insurance_price" :disabled="true"></el-input>
15
         <el-input type="number" v-model="form.medical_insurance_price" :disabled="true"></el-input>
16
       </el-form-item>
16
       </el-form-item>
17
 
17
 
18
 
18
 
19
-      <el-form-item label="自费:" prop="age" :validate-event="is_Name" style="width:33%;">
19
+      <el-form-item label="自费:" prop="age" :validate-event="is_Name">
20
         <el-input type="number" v-model="form.private_price" :disabled="true"></el-input>
20
         <el-input type="number" v-model="form.private_price" :disabled="true"></el-input>
21
       </el-form-item>
21
       </el-form-item>
22
 
22
 
23
-      <el-form-item label="个账支出:" prop="age" :validate-event="is_Name" style="width:33%;">
23
+      <el-form-item label="个账支出:" prop="age" :validate-event="is_Name">
24
         <el-input type="number" v-model="form.acct_pay" :disabled="true"></el-input>
24
         <el-input type="number" v-model="form.acct_pay" :disabled="true"></el-input>
25
       </el-form-item>
25
       </el-form-item>
26
 
26
 
27
 
27
 
28
-      <el-form-item label="个人现金支出:" prop="age" :validate-event="is_Name" style="width:33%;">
28
+      <el-form-item label="个人现金支出:" prop="age" :validate-event="is_Name">
29
         <el-input type="number" v-model="form.psn_pay" :disabled="true"></el-input>
29
         <el-input type="number" v-model="form.psn_pay" :disabled="true"></el-input>
30
       </el-form-item>
30
       </el-form-item>
31
 
31
 
32
 
32
 
33
+      <el-form-item label="个人现金支付方式:" style="width:100%;"><!--门诊-->
34
+        <el-checkbox  v-model="form.dec_way" @change="changedecimal">
35
+                    使用押金余额抵扣(当前押金余额为¥{{decimal}})
36
+        </el-checkbox>
37
+        <span v-if="form.dec_way == true">
38
+        <el-form-item class="specialFormItem" >
39
+          <div style="display:flex;">
40
+<!--            这里不要改成el-input,因为使用el-input会导致一个奇怪的bug,千万不要改!!!!!!!!!!!!!!!!!!!!-->
41
+            <input style="" v-model="form.tmp_decimal"  onkeyup="this.value = this.value.replace(/[^\d.]/g,'');" @input="lilili"></input>元
42
+          </div>
43
+        </el-form-item>
44
+        </span>
45
+      </el-form-item>
46
+
47
+
48
+      <el-form-item label="" style="width:100%;">
33
 
49
 
34
-      <el-form-item label="支付方式:" style="width:100%;">
35
-        <!-- <el-select v-model="form.pay_way" placeholder="请选择">
36
-          <el-option
37
-            v-for="(item,index) in payWays"
38
-            :key="index"
39
-            :label="item.label"
40
-            :value="item.value">
41
-          </el-option>
42
-        </el-select> -->
43
         <el-radio-group v-model="form.pay_way">
50
         <el-radio-group v-model="form.pay_way">
44
           <el-radio :label="index" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
51
           <el-radio :label="index" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
45
         </el-radio-group>
52
         </el-radio-group>
89
         </div>
96
         </div>
90
       </el-form-item>
97
       </el-form-item>
91
 
98
 
99
+
92
     </el-form>
100
     </el-form>
93
 
101
 
94
     <span slot="footer" class="dialog-footer">
102
     <span slot="footer" class="dialog-footer">
101
 
109
 
102
 <script>
110
 <script>
103
   import { uParseTime } from '@/utils/tools'
111
   import { uParseTime } from '@/utils/tools'
112
+  import {
113
+    idtobalance
114
+  }from "@/api/deposit";
104
 
115
 
105
   export default {
116
   export default {
106
     name: 'chargeDialog',
117
     name: 'chargeDialog',
108
     data() {
119
     data() {
109
 
120
 
110
       return {
121
       return {
122
+        tmp_pay:"",//临时付款金额
123
+        isshow:false,
124
+        id:0,
125
+        decimal:0,//当前押金余额
111
         record_date:'',
126
         record_date:'',
112
         form: {
127
         form: {
113
           medical_insurance_price:0,
128
           medical_insurance_price:0,
114
-          private_price:'',
129
+          private_price:'',//自费12
115
           pay_way:'',
130
           pay_way:'',
131
+          dec_way:'false',//是否使用押金支付
132
+          tmp_decimal:"",//本次使用的押金
116
           pay_price:'',
133
           pay_price:'',
117
           pay_card_no:'',
134
           pay_card_no:'',
118
           discount_price:'',
135
           discount_price:'',
125
           order:null,
142
           order:null,
126
           acct_pay:'',
143
           acct_pay:'',
127
           psn_pay:'',
144
           psn_pay:'',
128
-
129
-
130
-
131
         },
145
         },
132
         payWays: [
146
         payWays: [
133
           {value: 1, label: '现金'},
147
           {value: 1, label: '现金'},
134
-          {value: 2, label: '银行卡'},
135
-          {value: 3, label: '微信'},
136
-          {value: 4, label: '支付宝'},
148
+          // {value: 2, label: '银行卡'},
149
+          // {value: 3, label: '微信'},
150
+          // {value: 4, label: '支付宝'},
137
           {value: 5, label: '医保卡'},
151
           {value: 5, label: '医保卡'},
138
 
152
 
139
         ],
153
         ],
181
 
195
 
182
       }
196
       }
183
     },
197
     },
198
+    created(){
199
+    },
184
     methods: {
200
     methods: {
185
-      show: function (total,order) {
201
+      init(){
202
+        console.log("this.tmp_decimal",this.tmp_decimal)
203
+        console.log("this.tmp_decimal",this.tmp_decimal)
204
+        console.log("this.tmp_decimal",this.tmp_decimal)
205
+      },
206
+      lilili(val){
207
+        console.log("this.form.tmp_decimal",this.form.tmp_decimal)
208
+        //null undefined
209
+        if(this.form.tmp_decimal == ""){
210
+          this.form.pay_price = this.tmp_pay
211
+          return
212
+        }
213
+        console.log("val",val)
214
+        if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)){
215
+          // alert("押金不得大于自费金额")
216
+          this.$message.error("押金不得大于自费金额");
217
+          this.form.tmp_decimal = ""
218
+          this.form.pay_price = this.tmp_pay
219
+          return
220
+        }
221
+        // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
186
 
222
 
223
+        this.form.pay_price = (parseFloat(this.form.private_price)*100 - parseFloat(this.form.tmp_decimal)*100)/100
224
+      },
225
+      changedecimal(){
226
+        console.log("this.form.dec_way前",this.form.dec_way)
227
+        this.$forceUpdate();
228
+        this.isshow = this.form.dec_way
229
+        // console.log("this.form.dec_way后",this.form.dec_way)
230
+        if (this.isshow == false){
231
+          // this.form.private_price = parseFloat(this.form.pay_price)
232
+          this.form.tmp_decimal = 0
233
+           this.form.pay_price = this.tmp_pay
234
+        }else {
235
+          //储存临时押金
236
+          this.tmp_pay = this.form.pay_price
237
+          if (parseFloat(this.form.tmp_decimal) > parseFloat(this.form.private_price)){
238
+            this.form.tmp_decimal = 0
239
+                // alert("押金不得大于自费金额")
240
+            this.$message.error("押金不得大于自费金额");
241
+            return
242
+          }
243
+          // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
244
+          this.tmp_pay = this.form.pay_price
245
+          this.form.pay_price = (parseFloat(this.form.private_price)*100 - parseFloat(this.form.tmp_decimal)*100)/100
246
+        }
247
+      },
248
+      //查询用户当前的余额
249
+      updateconfig(){
250
+        var params = {
251
+          his_patient_id: this.id,
252
+        }
253
+        idtobalance(params).then((res) => {
254
+          if (res.data.state == 1){
255
+            this.decimal = res.data.data.list;
256
+          }
257
+        })
258
+      },
259
+      show: function (total,order,id) {
260
+        // alert("total",total)
261
+        // console.log("===========")
262
+        // console.log(total)
263
+        // alert("order",orde
264
+        // console.log(order)
265
+        // alert("id",id)
266
+        // console.log("wwwwwwwwwwwwww")
267
+        // console.log(id)
268
+        // console.log("++++++++++++")
269
+        //初始化
270
+        this.form.tmp_decimal = 0
271
+        this.tmp_pay = 0
272
+        this.id = id
273
+        this.form.dec_way = false
274
+        this.updateconfig()
187
         this.form.total = total
275
         this.form.total = total
188
         this.form.private_price = total
276
         this.form.private_price = total
189
         this.form.pay_price = total
277
         this.form.pay_price = total
213
         this.loadingtwo = false
301
         this.loadingtwo = false
214
         this.visibility = false
302
         this.visibility = false
215
       }, cancel: function (formName) {
303
       }, cancel: function (formName) {
304
+        this.form.tmp_decimal = 0
305
+        this.tmp_pay = 0
306
+        this.form.dec_way = false
216
         this.$emit('cancel', this.getValue())
307
         this.$emit('cancel', this.getValue())
217
         this.$refs['formValue'].resetFields()
308
         this.$refs['formValue'].resetFields()
218
       },
309
       },
219
       confirm: function (formName) {
310
       confirm: function (formName) {
311
+        if (parseFloat(this.form.tmp_decimal) > parseFloat(this.decimal)){
312
+          this.$message.error("押金余额不足");
313
+          return
314
+        }
220
         this.$refs['formValue'].validate((valid) => {
315
         this.$refs['formValue'].validate((valid) => {
221
           if (valid) {
316
           if (valid) {
222
             let value = {}
317
             let value = {}

+ 1 - 1
src/xt_pages/outpatientCharges/invoicePrint.vue Ver fichero

21
           <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
21
           <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23
           <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
23
           <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
24
-          
24
+
25
         </div>
25
         </div>
26
     </div>
26
     </div>
27
   </div>
27
   </div>

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Ver fichero

357
                       price_arr.push(that.info.transBody.outputlist1[i].akc225);
357
                       price_arr.push(that.info.transBody.outputlist1[i].akc225);
358
                       total_arr.push(that.info.transBody.outputlist1[i].akc264)
358
                       total_arr.push(that.info.transBody.outputlist1[i].akc264)
359
                     }
359
                     }
360
-                    
360
+
361
 
361
 
362
                     that.info['name_arr'] = name_arr;
362
                     that.info['name_arr'] = name_arr;
363
                     that.info['spec_arr'] = spec_arr;
363
                     that.info['spec_arr'] = spec_arr;

+ 7 - 8
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver fichero

206
                                            v-if="((hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3) && org_id != 10340"
206
                                            v-if="((hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3) && org_id != 10340"
207
                                            size="small"
207
                                            size="small"
208
                                            @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"
208
                                            @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"
209
-                                           type="primary">收费
209
+                                           type="primary">收费<!--修改的地方-->
210
                                 </el-button>
210
                                 </el-button>
211
                               </div>
211
                               </div>
212
                             </div>
212
                             </div>
1450
             this.$refs.charge.hide()
1450
             this.$refs.charge.hide()
1451
             this.radio = 2
1451
             this.radio = 2
1452
             this.changeRadioAndPatient(2)
1452
             this.changeRadioAndPatient(2)
1453
-
1454
             this.loadingtwo = false
1453
             this.loadingtwo = false
1455
             this.state = '已收费'
1454
             this.state = '已收费'
1456
             this.$message({ message: '收费成功', type: 'success' })
1455
             this.$message({ message: '收费成功', type: 'success' })
1458
             this.loadingtwo = false
1457
             this.loadingtwo = false
1459
             this.newLoading = false
1458
             this.newLoading = false
1460
           }
1459
           }
1460
+        }) .catch(function(error) {
1461
+          this.newLoading = false
1461
         })
1462
         })
1462
 
1463
 
1463
       } else {
1464
       } else {
2855
       this.other_prescriptions = prescriptions
2856
       this.other_prescriptions = prescriptions
2856
 
2857
 
2857
       if (index == 1) {
2858
       if (index == 1) {
2858
-
2859
       } else if (index == 2) {
2859
       } else if (index == 2) {
2860
         this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
2860
         this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
2861
       } else if (index == 3) {
2861
       } else if (index == 3) {
2869
         this.paramsObj = obj
2869
         this.paramsObj = obj
2870
         this.treatVisible = true
2870
         this.treatVisible = true
2871
         // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
2871
         // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
2872
-      } else if (index == 4) {
2873
-
2872
+      }
2873
+      else if (index == 4) {//收费
2874
         var ids = []
2874
         var ids = []
2875
         for (let i = 0; i < prescriptions.length; i++) {
2875
         for (let i = 0; i < prescriptions.length; i++) {
2876
           ids.push(prescriptions[i].id)
2876
           ids.push(prescriptions[i].id)
2877
         }
2877
         }
2878
         var ids_str = ids.join(',')
2878
         var ids_str = ids.join(',')
2879
         this.temp_ids = ids_str
2879
         this.temp_ids = ids_str
2880
-
2881
         this.currentOrder = order
2880
         this.currentOrder = order
2882
         this.current_med_type = med_type
2881
         this.current_med_type = med_type
2883
         if (this.patientInfo.id == 0) {
2882
         if (this.patientInfo.id == 0) {
2903
 
2902
 
2904
           }
2903
           }
2905
         } else {
2904
         } else {
2906
-          if (this.activeName == 'first') {
2907
-            this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2905
+          if (this.activeName == 'first') {/////////////////////////押金shows
2906
+            this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)
2908
           } else {
2907
           } else {
2909
             this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2908
             this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
2910
           }
2909
           }

+ 9 - 9
src/xt_pages/outpatientCharges/print.vue Ver fichero

33
                     </el-table-column>
33
                     </el-table-column>
34
                 </el-table>
34
                 </el-table>
35
             </div>
35
             </div>
36
-            
36
+
37
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
37
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
38
               <printOne v-bind:childResponse="childResponse"></printOne>
38
               <printOne v-bind:childResponse="childResponse"></printOne>
39
             </div>
39
             </div>
255
         this.org_template_info.template_id == 2 ||
255
         this.org_template_info.template_id == 2 ||
256
         this.org_template_info.template_id == 0 ||
256
         this.org_template_info.template_id == 0 ||
257
         this.org_template_info.template_id == 5 ||
257
         this.org_template_info.template_id == 5 ||
258
-        this.org_template_info.template_id == 22 
258
+        this.org_template_info.template_id == 22
259
       ) {
259
       ) {
260
         printJS({
260
         printJS({
261
           printable: "dialysis-print-box-1-1",
261
           printable: "dialysis-print-box-1-1",
299
         this.org_template_info.template_id == 2 ||
299
         this.org_template_info.template_id == 2 ||
300
         this.org_template_info.template_id == 0 ||
300
         this.org_template_info.template_id == 0 ||
301
         this.org_template_info.template_id == 5 ||
301
         this.org_template_info.template_id == 5 ||
302
-        this.org_template_info.template_id == 22 
302
+        this.org_template_info.template_id == 22
303
       ) {
303
       ) {
304
         printJS({
304
         printJS({
305
           printable: "dialysis-print-box-1-2",
305
           printable: "dialysis-print-box-1-2",
766
                 arr.push(...item.schedules)
766
                 arr.push(...item.schedules)
767
                 })
767
                 })
768
                 this.tableData = arr
768
                 this.tableData = arr
769
-                
769
+
770
             }else{
770
             }else{
771
                 this.getData()
771
                 this.getData()
772
             }
772
             }
778
                 if (resp.state == 1) {
778
                 if (resp.state == 1) {
779
                 var schedules = resp.data.schedules
779
                 var schedules = resp.data.schedules
780
                 this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
780
                 this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
781
-                
781
+
782
                 let newArr = []
782
                 let newArr = []
783
                 this.zone_schedules.map(item => {
783
                 this.zone_schedules.map(item => {
784
                     newArr.push(...item.schedules)
784
                     newArr.push(...item.schedules)
800
             //   this.date = schedual.schedule_date;
800
             //   this.date = schedual.schedule_date;
801
             //   // this.getScheduleDetail();
801
             //   // this.getScheduleDetail();
802
             //   // this.getLongAdvice();
802
             //   // this.getLongAdvice();
803
-            
803
+
804
             //   var patient_id = schedual.patient_id;
804
             //   var patient_id = schedual.patient_id;
805
             //   var date = schedual.schedule_date;
805
             //   var date = schedual.schedule_date;
806
             //   this.$router.push({
806
             //   this.$router.push({
903
                 }
903
                 }
904
                 arr2 = arr
904
                 arr2 = arr
905
             }
905
             }
906
-            
906
+
907
 
907
 
908
             let arr3 = []
908
             let arr3 = []
909
             if(this.scheduleStateVal == 0){
909
             if(this.scheduleStateVal == 0){
922
                 arr3 = arr
922
                 arr3 = arr
923
                 console.log("上午",arr)
923
                 console.log("上午",arr)
924
             }
924
             }
925
-            
925
+
926
 
926
 
927
             let arr4 = []
927
             let arr4 = []
928
             if(this.zoneVal == 0){
928
             if(this.zoneVal == 0){
1168
   .dialysisPage::-webkit-scrollbar {
1168
   .dialysisPage::-webkit-scrollbar {
1169
     height: 15px;
1169
     height: 15px;
1170
   }
1170
   }
1171
-  
1171
+
1172
   .el-date-editor{
1172
   .el-date-editor{
1173
     .el-input__inner{
1173
     .el-input__inner{
1174
       padding-right:0px;
1174
       padding-right:0px;

+ 4 - 4
src/xt_pages/outpatientCharges/treatPrint.vue Ver fichero

49
       childResponse: {},
49
       childResponse: {},
50
       paramsObj:{},
50
       paramsObj:{},
51
       org_id:''
51
       org_id:''
52
-      
52
+
53
 
53
 
54
     };
54
     };
55
   },
55
   },
88
           style: style,
88
           style: style,
89
           scanStyles: false
89
           scanStyles: false
90
       });
90
       });
91
-      
91
+
92
 
92
 
93
       // if (this.org_template_info.template_id == 1) {
93
       // if (this.org_template_info.template_id == 1) {
94
       //   printJS({
94
       //   printJS({
107
     paramsObj:{//深度监听,可监听到对象、数组的变化
107
     paramsObj:{//深度监听,可监听到对象、数组的变化
108
       handler(val, oldVal){
108
       handler(val, oldVal){
109
         this.paramsObj = val
109
         this.paramsObj = val
110
-        
110
+
111
       },
111
       },
112
       deep:true
112
       deep:true
113
     }
113
     }
161
 }
161
 }
162
 .actionBar{
162
 .actionBar{
163
     display: flex;
163
     display: flex;
164
-    justify-content: space-between; 
164
+    justify-content: space-between;
165
     line-height: 24px;
165
     line-height: 24px;
166
     padding:0 10px;
166
     padding:0 10px;
167
 }
167
 }

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/advice.vue Ver fichero

81
             <el-button @click="hide">取 消</el-button>
81
             <el-button @click="hide">取 消</el-button>
82
             <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
82
             <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
83
         </div>
83
         </div>
84
-    </el-dialog>         
84
+    </el-dialog>
85
 </template>
85
 </template>
86
 
86
 
87
 <script>
87
 <script>

+ 40 - 40
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Ver fichero

1392
           this.patientInfo = response.data.data.xt_info
1392
           this.patientInfo = response.data.data.xt_info
1393
           this.hisPatientInfo = response.data.data.his_info
1393
           this.hisPatientInfo = response.data.data.his_info
1394
           this.case_history = response.data.data.case_history
1394
           this.case_history = response.data.data.case_history
1395
-        
1395
+
1396
           this.info = response.data.data.info
1396
           this.info = response.data.data.info
1397
           this.last_info = response.data.data.last_info
1397
           this.last_info = response.data.data.last_info
1398
           this.schedule = response.data.data.schedule
1398
           this.schedule = response.data.data.schedule
1778
                 '-' +
1778
                 '-' +
1779
                 (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1779
                 (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1780
                 ':' + (min < 10 ? '0' + min : min)
1780
                 ':' + (min < 10 ? '0' + min : min)
1781
-          
1781
+
1782
             getPatientInfo(params).then(response => {
1782
             getPatientInfo(params).then(response => {
1783
               if (response.data.state == 0) {
1783
               if (response.data.state == 0) {
1784
                 this.$message.error(response.data.msg)
1784
                 this.$message.error(response.data.msg)
1812
                 this.patientInfo = response.data.data.xt_info
1812
                 this.patientInfo = response.data.data.xt_info
1813
                 this.hisPatientInfo = response.data.data.his_info
1813
                 this.hisPatientInfo = response.data.data.his_info
1814
                 this.case_history = response.data.data.case_history
1814
                 this.case_history = response.data.data.case_history
1815
-                
1815
+
1816
                 if(this.case_history.primary_disease == ""){
1816
                 if(this.case_history.primary_disease == ""){
1817
                    this.case_history.primary_disease = ""
1817
                    this.case_history.primary_disease = ""
1818
                 }else{
1818
                 }else{
1819
                   this.case_history.primary_disease = this.case_history.primary_disease
1819
                   this.case_history.primary_disease = this.case_history.primary_disease
1820
                 }
1820
                 }
1821
-                
1821
+
1822
                 if(this.case_history.confirm_failure_date <=0){
1822
                 if(this.case_history.confirm_failure_date <=0){
1823
                   this.case_history.confirm_failure_date = ""
1823
                   this.case_history.confirm_failure_date = ""
1824
                 }else{
1824
                 }else{
1830
                 }else{
1830
                 }else{
1831
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1831
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
1832
                 }
1832
                 }
1833
-                 
1833
+
1834
                 if(this.case_history.physical_examination ==""){
1834
                 if(this.case_history.physical_examination ==""){
1835
                   this.case_history.physical_examination = ""
1835
                   this.case_history.physical_examination = ""
1836
                 }else{
1836
                 }else{
1841
                 }else{
1841
                 }else{
1842
                   this.case_history.special_inspection = this.case_history.special_inspection
1842
                   this.case_history.special_inspection = this.case_history.special_inspection
1843
                 }
1843
                 }
1844
-                 
1844
+
1845
                 if(this.case_history.lab_apparatus == ""){
1845
                 if(this.case_history.lab_apparatus == ""){
1846
                   this.case_history.lab_apparatus = ""
1846
                   this.case_history.lab_apparatus = ""
1847
                 }else{
1847
                 }else{
1848
                  this.case_history.lab_apparatus = this.case_history.lab_apparatus
1848
                  this.case_history.lab_apparatus = this.case_history.lab_apparatus
1849
                 }
1849
                 }
1850
-               
1851
-               
1852
-                
1853
-               
1850
+
1851
+
1852
+
1853
+
1854
                 this.info = response.data.data.info
1854
                 this.info = response.data.data.info
1855
                 this.last_info = response.data.data.last_info
1855
                 this.last_info = response.data.data.last_info
1856
                 this.schedule = response.data.data.schedule
1856
                 this.schedule = response.data.data.schedule
2360
                 this.hisPatientInfo = response.data.data.his_info
2360
                 this.hisPatientInfo = response.data.data.his_info
2361
                 this.case_history = response.data.data.case_history
2361
                 this.case_history = response.data.data.case_history
2362
 
2362
 
2363
-             
2363
+
2364
                 this.info = response.data.data.info
2364
                 this.info = response.data.data.info
2365
                 this.last_info = response.data.data.last_info
2365
                 this.last_info = response.data.data.last_info
2366
 
2366
 
2419
                 }else{
2419
                 }else{
2420
                   this.case_history.primary_disease = this.case_history.primary_disease
2420
                   this.case_history.primary_disease = this.case_history.primary_disease
2421
                 }
2421
                 }
2422
-                
2422
+
2423
                 if(this.case_history.confirm_failure_date <=0){
2423
                 if(this.case_history.confirm_failure_date <=0){
2424
                   this.case_history.confirm_failure_date = ""
2424
                   this.case_history.confirm_failure_date = ""
2425
                 }else{
2425
                 }else{
2431
                 }else{
2431
                 }else{
2432
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
2432
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
2433
                 }
2433
                 }
2434
-                 
2434
+
2435
                 if(this.case_history.physical_examination ==""){
2435
                 if(this.case_history.physical_examination ==""){
2436
                   this.case_history.physical_examination = ""
2436
                   this.case_history.physical_examination = ""
2437
                 }else{
2437
                 }else{
2442
                 }else{
2442
                 }else{
2443
                   this.case_history.special_inspection = this.case_history.special_inspection
2443
                   this.case_history.special_inspection = this.case_history.special_inspection
2444
                 }
2444
                 }
2445
-                 
2445
+
2446
                 if(this.case_history.lab_apparatus == ""){
2446
                 if(this.case_history.lab_apparatus == ""){
2447
                   this.case_history.lab_apparatus = ""
2447
                   this.case_history.lab_apparatus = ""
2448
                 }else{
2448
                 }else{
2883
               this.patientInfo = response.data.data.xt_info
2883
               this.patientInfo = response.data.data.xt_info
2884
               this.hisPatientInfo = response.data.data.his_info
2884
               this.hisPatientInfo = response.data.data.his_info
2885
               this.case_history = response.data.data.case_history
2885
               this.case_history = response.data.data.case_history
2886
-             
2886
+
2887
               this.info = response.data.data.info
2887
               this.info = response.data.data.info
2888
               this.last_info = response.data.data.last_info
2888
               this.last_info = response.data.data.last_info
2889
 
2889
 
2937
                 this.case_history.is_infect = false
2937
                 this.case_history.is_infect = false
2938
               }
2938
               }
2939
 
2939
 
2940
-                    
2940
+
2941
              if(this.case_history.primary_disease == ""){
2941
              if(this.case_history.primary_disease == ""){
2942
                    this.case_history.primary_disease = ""
2942
                    this.case_history.primary_disease = ""
2943
               }
2943
               }
2944
-                
2945
-            
2944
+
2945
+
2946
                this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
2946
                this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
2947
-                
2947
+
2948
 
2948
 
2949
                 if(this.case_history.drug_allergy_history ==""){
2949
                 if(this.case_history.drug_allergy_history ==""){
2950
                    this.case_history.drug_allergy_history = ""
2950
                    this.case_history.drug_allergy_history = ""
2951
                 }
2951
                 }
2952
-                 
2952
+
2953
                 if(this.case_history.physical_examination ==""){
2953
                 if(this.case_history.physical_examination ==""){
2954
                   this.case_history.physical_examination = ""
2954
                   this.case_history.physical_examination = ""
2955
                 }
2955
                 }
2956
                 if(this.case_history.special_inspection == ""){
2956
                 if(this.case_history.special_inspection == ""){
2957
                   this.case_history.special_inspection = ""
2957
                   this.case_history.special_inspection = ""
2958
                 }
2958
                 }
2959
-                 
2959
+
2960
                 if(this.case_history.lab_apparatus == ""){
2960
                 if(this.case_history.lab_apparatus == ""){
2961
                   this.case_history.lab_apparatus = ""
2961
                   this.case_history.lab_apparatus = ""
2962
                 }
2962
                 }
3355
           this.$refs.child.watchSign = 0
3355
           this.$refs.child.watchSign = 0
3356
         }
3356
         }
3357
       } else {
3357
       } else {
3358
-       
3358
+
3359
         var nowDate = new Date()
3359
         var nowDate = new Date()
3360
         var nowYear = nowDate.getFullYear()
3360
         var nowYear = nowDate.getFullYear()
3361
         var nowMonth = nowDate.getMonth() + 1
3361
         var nowMonth = nowDate.getMonth() + 1
3456
                 this.hisPatientInfo = response.data.data.his_info
3456
                 this.hisPatientInfo = response.data.data.his_info
3457
                 this.case_history = response.data.data.case_history
3457
                 this.case_history = response.data.data.case_history
3458
                 console.log("999923923323232",this.case_history)
3458
                 console.log("999923923323232",this.case_history)
3459
-               
3459
+
3460
                if(this.case_history.primary_disease == ""){
3460
                if(this.case_history.primary_disease == ""){
3461
                    this.case_history.primary_disease = ""
3461
                    this.case_history.primary_disease = ""
3462
                 }else{
3462
                 }else{
3463
                   this.case_history.primary_disease = this.case_history.primary_disease
3463
                   this.case_history.primary_disease = this.case_history.primary_disease
3464
                 }
3464
                 }
3465
-                
3465
+
3466
                 if(this.case_history.confirm_failure_date <=0){
3466
                 if(this.case_history.confirm_failure_date <=0){
3467
                   this.case_history.confirm_failure_date = ""
3467
                   this.case_history.confirm_failure_date = ""
3468
                 }else{
3468
                 }else{
3474
                 }else{
3474
                 }else{
3475
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3475
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3476
                 }
3476
                 }
3477
-                 
3477
+
3478
                 if(this.case_history.physical_examination ==""){
3478
                 if(this.case_history.physical_examination ==""){
3479
                   this.case_history.physical_examination = ""
3479
                   this.case_history.physical_examination = ""
3480
                 }else{
3480
                 }else{
3485
                 }else{
3485
                 }else{
3486
                   this.case_history.special_inspection = this.case_history.special_inspection
3486
                   this.case_history.special_inspection = this.case_history.special_inspection
3487
                 }
3487
                 }
3488
-                 
3488
+
3489
                 if(this.case_history.lab_apparatus == ""){
3489
                 if(this.case_history.lab_apparatus == ""){
3490
                   this.case_history.lab_apparatus = ""
3490
                   this.case_history.lab_apparatus = ""
3491
                 }else{
3491
                 }else{
3502
                   }
3502
                   }
3503
                 }
3503
                 }
3504
 
3504
 
3505
-              
3505
+
3506
                 this.info = response.data.data.info
3506
                 this.info = response.data.data.info
3507
                 this.last_info = response.data.data.last_info
3507
                 this.last_info = response.data.data.last_info
3508
 
3508
 
3968
                 this.patientInfo = response.data.data.xt_info
3968
                 this.patientInfo = response.data.data.xt_info
3969
                 this.hisPatientInfo = response.data.data.his_info
3969
                 this.hisPatientInfo = response.data.data.his_info
3970
                 this.case_history = response.data.data.case_history
3970
                 this.case_history = response.data.data.case_history
3971
-                
3971
+
3972
                 this.case_history.primary_disease = this.case_history.primary_disease
3972
                 this.case_history.primary_disease = this.case_history.primary_disease
3973
                 this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3973
                 this.case_history.confirm_failure_date = uParseTime(this.case_history.confirm_failure_date, '{y}-{m}-{d}')
3974
                 this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
3974
                 this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4077
                 this.patientInfo = response.data.data.xt_info
4077
                 this.patientInfo = response.data.data.xt_info
4078
                 this.hisPatientInfo = response.data.data.his_info
4078
                 this.hisPatientInfo = response.data.data.his_info
4079
                 this.case_history = response.data.data.case_history
4079
                 this.case_history = response.data.data.case_history
4080
-                
4080
+
4081
                 if(this.case_history.primary_disease == ""){
4081
                 if(this.case_history.primary_disease == ""){
4082
                    this.case_history.primary_disease = ""
4082
                    this.case_history.primary_disease = ""
4083
                 }else{
4083
                 }else{
4084
                   this.case_history.primary_disease = this.case_history.primary_disease
4084
                   this.case_history.primary_disease = this.case_history.primary_disease
4085
                 }
4085
                 }
4086
-                
4086
+
4087
                 if(this.case_history.confirm_failure_date <=0){
4087
                 if(this.case_history.confirm_failure_date <=0){
4088
                   this.case_history.confirm_failure_date = ""
4088
                   this.case_history.confirm_failure_date = ""
4089
                 }else{
4089
                 }else{
4095
                 }else{
4095
                 }else{
4096
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4096
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4097
                 }
4097
                 }
4098
-                 
4098
+
4099
                 if(this.case_history.physical_examination ==""){
4099
                 if(this.case_history.physical_examination ==""){
4100
                   this.case_history.physical_examination = ""
4100
                   this.case_history.physical_examination = ""
4101
                 }else{
4101
                 }else{
4106
                 }else{
4106
                 }else{
4107
                   this.case_history.special_inspection = this.case_history.special_inspection
4107
                   this.case_history.special_inspection = this.case_history.special_inspection
4108
                 }
4108
                 }
4109
-                 
4109
+
4110
                 if(this.case_history.lab_apparatus == ""){
4110
                 if(this.case_history.lab_apparatus == ""){
4111
                   this.case_history.lab_apparatus = ""
4111
                   this.case_history.lab_apparatus = ""
4112
                 }else{
4112
                 }else{
4479
                 }else{
4479
                 }else{
4480
                   this.case_history.primary_disease = this.case_history.primary_disease
4480
                   this.case_history.primary_disease = this.case_history.primary_disease
4481
                 }
4481
                 }
4482
-                
4482
+
4483
                 if(this.case_history.confirm_failure_date <=0){
4483
                 if(this.case_history.confirm_failure_date <=0){
4484
                   this.case_history.confirm_failure_date = ""
4484
                   this.case_history.confirm_failure_date = ""
4485
                 }else{
4485
                 }else{
4491
                 }else{
4491
                 }else{
4492
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4492
                    this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4493
                 }
4493
                 }
4494
-                 
4494
+
4495
                 if(this.case_history.physical_examination ==""){
4495
                 if(this.case_history.physical_examination ==""){
4496
                   this.case_history.physical_examination = ""
4496
                   this.case_history.physical_examination = ""
4497
                 }else{
4497
                 }else{
4502
                 }else{
4502
                 }else{
4503
                   this.case_history.special_inspection = this.case_history.special_inspection
4503
                   this.case_history.special_inspection = this.case_history.special_inspection
4504
                 }
4504
                 }
4505
-                 
4505
+
4506
                 if(this.case_history.lab_apparatus == ""){
4506
                 if(this.case_history.lab_apparatus == ""){
4507
                   this.case_history.lab_apparatus = ""
4507
                   this.case_history.lab_apparatus = ""
4508
                 }else{
4508
                 }else{
4861
             }else{
4861
             }else{
4862
               this.case_history.primary_disease = this.case_history.primary_disease
4862
               this.case_history.primary_disease = this.case_history.primary_disease
4863
             }
4863
             }
4864
-            
4864
+
4865
             if(this.case_history.confirm_failure_date <=0){
4865
             if(this.case_history.confirm_failure_date <=0){
4866
               this.case_history.confirm_failure_date = ""
4866
               this.case_history.confirm_failure_date = ""
4867
             }else{
4867
             }else{
4873
             }else{
4873
             }else{
4874
                 this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4874
                 this.case_history.drug_allergy_history = this.case_history.drug_allergy_history
4875
             }
4875
             }
4876
-              
4876
+
4877
             if(this.case_history.physical_examination ==""){
4877
             if(this.case_history.physical_examination ==""){
4878
               this.case_history.physical_examination = ""
4878
               this.case_history.physical_examination = ""
4879
             }else{
4879
             }else{
4884
             }else{
4884
             }else{
4885
               this.case_history.special_inspection = this.case_history.special_inspection
4885
               this.case_history.special_inspection = this.case_history.special_inspection
4886
             }
4886
             }
4887
-              
4887
+
4888
             if(this.case_history.lab_apparatus == ""){
4888
             if(this.case_history.lab_apparatus == ""){
4889
               this.case_history.lab_apparatus = ""
4889
               this.case_history.lab_apparatus = ""
4890
             }else{
4890
             }else{
4955
   },
4955
   },
4956
   created() {
4956
   created() {
4957
     this.$nextTick(() => {
4957
     this.$nextTick(() => {
4958
-      
4958
+
4959
     })
4959
     })
4960
     this.org_id = this.$store.getters.xt_user.template_info.org_id
4960
     this.org_id = this.$store.getters.xt_user.template_info.org_id
4961
     this.getInitData()
4961
     this.getInitData()
4975
     // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4975
     // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4976
     let tableHeight = document.body.clientHeight - 263
4976
     let tableHeight = document.body.clientHeight - 263
4977
     this.tableHeight = tableHeight
4977
     this.tableHeight = tableHeight
4978
-    
4978
+
4979
 
4979
 
4980
   },
4980
   },
4981
 
4981
 

+ 13 - 13
src/xt_pages/stock/cancelStockOrder.vue Ver fichero

23
               :label="option.storehouse_name"
23
               :label="option.storehouse_name"
24
               :value="option.id">
24
               :value="option.id">
25
             </el-option>
25
             </el-option>
26
-        </el-select> 
26
+        </el-select>
27
         <el-input
27
         <el-input
28
           size="small"
28
           size="small"
29
           style="width: 200px;"
29
           style="width: 200px;"
71
         </div>
71
         </div>
72
       </div>
72
       </div>
73
 
73
 
74
-      
74
+
75
 
75
 
76
       <div class="filter-container" style="margin-top: 10px">
76
       <div class="filter-container" style="margin-top: 10px">
77
         <el-checkbox
77
         <el-checkbox
88
       <el-row :gutter="12" style="margin-top: 10px">
88
       <el-row :gutter="12" style="margin-top: 10px">
89
         <el-table
89
         <el-table
90
           :data="cancelStockDate"
90
           :data="cancelStockDate"
91
-          @current-change='currentChange' 
91
+          @current-change='currentChange'
92
           :class="signAndWeighBoxPatients"
92
           :class="signAndWeighBoxPatients"
93
           border
93
           border
94
           highlight-current-row
94
           highlight-current-row
218
               {{ scope.row.count}}{{scope.row.GoodInfo.packing_unit}}
218
               {{ scope.row.count}}{{scope.row.GoodInfo.packing_unit}}
219
             </template>
219
             </template>
220
           </el-table-column>
220
           </el-table-column>
221
-        
221
+
222
           <el-table-column label="退库单价" align="center">
222
           <el-table-column label="退库单价" align="center">
223
             <template slot-scope="scope">
223
             <template slot-scope="scope">
224
               {{ scope.row.price}}
224
               {{ scope.row.price}}
309
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
309
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
310
       "-" +
310
       "-" +
311
       (nowDay < 10 ? "0" + nowDay : nowDay);
311
       (nowDay < 10 ? "0" + nowDay : nowDay);
312
-   
312
+
313
     this.GetCancelStock();
313
     this.GetCancelStock();
314
     this.GetConfigInfo();
314
     this.GetConfigInfo();
315
     this.fetchAllAdminUsers();
315
     this.fetchAllAdminUsers();
403
           for(let i=0;i<response.data.data.houseList.length;i++){
403
           for(let i=0;i<response.data.data.houseList.length;i++){
404
             this.houseList.push(response.data.data.houseList[i])
404
             this.houseList.push(response.data.data.houseList[i])
405
           }
405
           }
406
-        
406
+
407
         }
407
         }
408
       });
408
       });
409
     },
409
     },
432
     },
432
     },
433
     fetchAllAdminUsers() {
433
     fetchAllAdminUsers() {
434
       fetchAllAdminUsers().then(response => {
434
       fetchAllAdminUsers().then(response => {
435
-     
435
+
436
         if (response.data.state == 1) {
436
         if (response.data.state == 1) {
437
           this.adminUserOptions = response.data.data.users;
437
           this.adminUserOptions = response.data.data.users;
438
           var alen = this.adminUserOptions.length;
438
           var alen = this.adminUserOptions.length;
507
       }
507
       }
508
     },
508
     },
509
     handleEdit: function(index, row) {
509
     handleEdit: function(index, row) {
510
-    
510
+
511
       this.$router.push({"path":"/stock/cancel/cancelstockorderedit?id="+row.id})
511
       this.$router.push({"path":"/stock/cancel/cancelstockorderedit?id="+row.id})
512
     },
512
     },
513
     handleDelete: function(index, row) {
513
     handleDelete: function(index, row) {
549
         .catch(() => {});
549
         .catch(() => {});
550
     },
550
     },
551
     changeAllSelected(val) {
551
     changeAllSelected(val) {
552
-     
552
+
553
       if (val) {
553
       if (val) {
554
         this.$refs.multipleTable.toggleAllSelection();
554
         this.$refs.multipleTable.toggleAllSelection();
555
       } else {
555
       } else {
618
           this.tableList = list
618
           this.tableList = list
619
           this.showTable = true
619
           this.showTable = true
620
         }
620
         }
621
-      }) 
621
+      })
622
     },
622
     },
623
     toPrint(){
623
     toPrint(){
624
       if(this.order_id == ""){
624
       if(this.order_id == ""){
651
         }
651
         }
652
      })
652
      })
653
     },
653
     },
654
-   
654
+
655
     toExport(){
655
     toExport(){
656
       if(this.order_id == ""){
656
       if(this.order_id == ""){
657
         this.$message.error("请勾选退库单")
657
         this.$message.error("请勾选退库单")
668
         if(this.exportList[i].manufacturer == 0){
668
         if(this.exportList[i].manufacturer == 0){
669
           this.exportList[i].manufacturer = ""
669
           this.exportList[i].manufacturer = ""
670
         }
670
         }
671
-      
671
+
672
         this.exportList[i].product_date = this.getTime(this.exportList[i].product_date,"{y}-{h}-{d}")
672
         this.exportList[i].product_date = this.getTime(this.exportList[i].product_date,"{y}-{h}-{d}")
673
         this.exportList[i].expiry_date = this.getTime(this.exportList[i].expiry_date,"{y}-{h}-{d}")
673
         this.exportList[i].expiry_date = this.getTime(this.exportList[i].expiry_date,"{y}-{h}-{d}")
674
       }
674
       }
675
       const tHeader = ['耗材名称',  '规格&单位','退库数量','退库单价','批次','品名/注册证号(备案凭证号)','生产厂家','生产日期','有效期','退库原因']
675
       const tHeader = ['耗材名称',  '规格&单位','退库数量','退库单价','批次','品名/注册证号(备案凭证号)','生产厂家','生产日期','有效期','退库原因']
676
       const filterVal = ['good_name', 'unit','count','price','number','register_account','manufacturer','product_date','expiry_date','remark']
676
       const filterVal = ['good_name', 'unit','count','price','number','register_account','manufacturer','product_date','expiry_date','remark']
677
 
677
 
678
-     
678
+
679
       const data = this.formatJson(filterVal, this.exportList)
679
       const data = this.formatJson(filterVal, this.exportList)
680
       excel.export_json_to_excel({
680
       excel.export_json_to_excel({
681
         header: tHeader,
681
         header: tHeader,

+ 21 - 21
src/xt_pages/stock/detail/cancelStockDetail.vue Ver fichero

31
             :label="option.storehouse_name"
31
             :label="option.storehouse_name"
32
             :value="option.id">
32
             :value="option.id">
33
           </el-option>
33
           </el-option>
34
-      </el-select>  
34
+      </el-select>
35
       <el-input
35
       <el-input
36
         size="small"
36
         size="small"
37
         style="width:200px;"
37
         style="width:200px;"
47
         @click="search"
47
         @click="search"
48
         >搜索</el-button
48
         >搜索</el-button
49
       >
49
       >
50
-     
50
+
51
         <label class="title"><span class="name">日期查询</span> : </label>
51
         <label class="title"><span class="name">日期查询</span> : </label>
52
         <el-date-picker
52
         <el-date-picker
53
           size="small"
53
           size="small"
76
           value-format="yyyy-MM-dd"
76
           value-format="yyyy-MM-dd"
77
           @change="endTimeChange"
77
           @change="endTimeChange"
78
         ></el-date-picker>
78
         ></el-date-picker>
79
-    
79
+
80
     </div>
80
     </div>
81
 
81
 
82
-  
82
+
83
     <el-row :gutter="12" style="margin-top: 10px">
83
     <el-row :gutter="12" style="margin-top: 10px">
84
       <el-table
84
       <el-table
85
         :data="cancelStockDate"
85
         :data="cancelStockDate"
126
 
126
 
127
         <el-table-column label="操作时间" align="center">
127
         <el-table-column label="操作时间" align="center">
128
           <template slot-scope="scope">
128
           <template slot-scope="scope">
129
-            <span v-if="scope.row.is_total == 0">{{ scope.row.CancelStock.return_time | parseTime("{y}-{m}-{d}") }}</span> 
129
+            <span v-if="scope.row.is_total == 0">{{ scope.row.CancelStock.return_time | parseTime("{y}-{m}-{d}") }}</span>
130
             <span v-if="scope.row.is_total == 1"></span>
130
             <span v-if="scope.row.is_total == 1"></span>
131
           </template>
131
           </template>
132
         </el-table-column>
132
         </el-table-column>
156
 
156
 
157
        <el-table-column label="总价" align="center">
157
        <el-table-column label="总价" align="center">
158
           <template slot-scope="scope">
158
           <template slot-scope="scope">
159
-          
159
+
160
              <!-- <span v-if="scope.row.is_total == 0">{{ (scope.row.count * scope.row.price).toFixed(2) }}</span>
160
              <!-- <span v-if="scope.row.is_total == 0">{{ (scope.row.count * scope.row.price).toFixed(2) }}</span>
161
             <span v-else>{{ scope.row.total }}</span> -->
161
             <span v-else>{{ scope.row.total }}</span> -->
162
             {{scope.row.total}}
162
             {{scope.row.total}}
218
       this.end_time = end_time
218
       this.end_time = end_time
219
     }
219
     }
220
     window.sessionStorage.removeItem('start_time_one')
220
     window.sessionStorage.removeItem('start_time_one')
221
-    window.sessionStorage.removeItem('end_time_one')  
221
+    window.sessionStorage.removeItem('end_time_one')
222
     this.GetCancelStock();
222
     this.GetCancelStock();
223
     this.GetConfigInfo();
223
     this.GetConfigInfo();
224
     this.fetchAllAdminUsers();
224
     this.fetchAllAdminUsers();
348
       //       this.cancelStockDate.push(obj);
348
       //       this.cancelStockDate.push(obj);
349
       //       this.cancelStockDate.push(response.data.data.list[i])
349
       //       this.cancelStockDate.push(response.data.data.list[i])
350
       //     }
350
       //     }
351
-         
351
+
352
       //   }
352
       //   }
353
       // });
353
       // });
354
     },
354
     },
371
         keywords: this.searchKey,
371
         keywords: this.searchKey,
372
         storehouse_id:this.storehouse_id,
372
         storehouse_id:this.storehouse_id,
373
       };
373
       };
374
-    
374
+
375
       this.cancelStockDate = [];
375
       this.cancelStockDate = [];
376
       getStockDetail(Params).then(response => {
376
       getStockDetail(Params).then(response => {
377
         if (response.data.state == 0) {
377
         if (response.data.state == 0) {
387
           }
387
           }
388
           var total = 0
388
           var total = 0
389
           for (let i = 0; i < response.data.data.list.length; i++) {
389
           for (let i = 0; i < response.data.data.list.length; i++) {
390
-            
390
+
391
             var obj = response.data.data.list[i];
391
             var obj = response.data.data.list[i];
392
             response.data.data.list[i].total = (response.data.data.list[i].price * response.data.data.list[i].count).toFixed(2)
392
             response.data.data.list[i].total = (response.data.data.list[i].price * response.data.data.list[i].count).toFixed(2)
393
             total += response.data.data.list[i].price * response.data.data.list[i].count
393
             total += response.data.data.list[i].price * response.data.data.list[i].count
394
             obj["is_total"] = 0;
394
             obj["is_total"] = 0;
395
             this.cancelStockDate.push(obj);
395
             this.cancelStockDate.push(obj);
396
-            
396
+
397
           }
397
           }
398
-         
398
+
399
           this.tableDataList = response.data.data.list
399
           this.tableDataList = response.data.data.list
400
-         
400
+
401
           var listgroup = response.data.data.listgroup
401
           var listgroup = response.data.data.listgroup
402
-        
402
+
403
 
403
 
404
           this.cancelStockDate.push({
404
           this.cancelStockDate.push({
405
             order_number: "合计",
405
             order_number: "合计",
418
           }
418
           }
419
         }
419
         }
420
         this.tableList = listgroup
420
         this.tableList = listgroup
421
-       
421
+
422
         }
422
         }
423
       });
423
       });
424
     },
424
     },
476
         this.$message.error("结束时间不能小于开始时间");
476
         this.$message.error("结束时间不能小于开始时间");
477
         this.start_time = "";
477
         this.start_time = "";
478
       } else {
478
       } else {
479
-       
479
+
480
         this.GetCancelStock();
480
         this.GetCancelStock();
481
       }
481
       }
482
     },
482
     },
486
         this.$message.error("结束时间不能小于开始时间");
486
         this.$message.error("结束时间不能小于开始时间");
487
         this.end_time = "";
487
         this.end_time = "";
488
       } else {
488
       } else {
489
-       
489
+
490
         this.GetCancelStock();
490
         this.GetCancelStock();
491
       }
491
       }
492
     },
492
     },
630
           this.tableList[i].packing_unit = this.tableList[i].GoodInfo.packing_unit
630
           this.tableList[i].packing_unit = this.tableList[i].GoodInfo.packing_unit
631
           this.tableList[i].total = this.getTotalCount(this.tableList[i].child)
631
           this.tableList[i].total = this.getTotalCount(this.tableList[i].child)
632
           this.tableList[i].total_price = (this.tableList[i].total * this.tableList[i].price).toFixed(2)
632
           this.tableList[i].total_price = (this.tableList[i].total * this.tableList[i].price).toFixed(2)
633
-         
633
+
634
         }
634
         }
635
        var obj = {"index":"合计","total_price":0}
635
        var obj = {"index":"合计","total_price":0}
636
        for(let i=0;i<this.tableList.length;i++){
636
        for(let i=0;i<this.tableList.length;i++){
642
        import('@/vendor/Export2Excel').then(excel => {
642
        import('@/vendor/Export2Excel').then(excel => {
643
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','退库价','总价','备注']
643
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','退库价','总价','备注']
644
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','total','price','total_price','remark']
644
        const filterVal = ['index','good_name', 'specification_name', 'packing_unit','total','price','total_price','remark']
645
-       
645
+
646
        const data = this.formatJson(filterVal, this.tableList)
646
        const data = this.formatJson(filterVal, this.tableList)
647
        console.log("data",data)
647
        console.log("data",data)
648
-      
648
+
649
         excel.export_json_to_excel({
649
         excel.export_json_to_excel({
650
            header: tHeader,
650
            header: tHeader,
651
            data,
651
            data,
676
 
676
 
677
        const data = this.formatJson(filterVal, this.tableDataList)
677
        const data = this.formatJson(filterVal, this.tableDataList)
678
        console.log("data",data)
678
        console.log("data",data)
679
-      
679
+
680
         excel.export_json_to_excel({
680
         excel.export_json_to_excel({
681
            header: tHeader,
681
            header: tHeader,
682
            data,
682
            data,

+ 37 - 37
src/xt_pages/stock/detail/stockInDetail.vue Ver fichero

8
       type="primary"
8
       type="primary"
9
       >打印
9
       >打印
10
     </el-button>
10
     </el-button>
11
-   
11
+
12
     <el-button
12
     <el-button
13
       style="float: right;margin-right:10px"
13
       style="float: right;margin-right:10px"
14
       size="small"
14
       size="small"
34
             :label="option.storehouse_name"
34
             :label="option.storehouse_name"
35
             :value="option.id">
35
             :value="option.id">
36
           </el-option>
36
           </el-option>
37
-      </el-select>  
37
+      </el-select>
38
       <el-input
38
       <el-input
39
         size="small"
39
         size="small"
40
         style="width: 180px;"
40
         style="width: 180px;"
50
         @click="search"
50
         @click="search"
51
         >搜索</el-button
51
         >搜索</el-button
52
       >
52
       >
53
-    
53
+
54
         <label class="title"><span class="name">日期查询</span> : </label>
54
         <label class="title"><span class="name">日期查询</span> : </label>
55
         <el-date-picker
55
         <el-date-picker
56
           size="small"
56
           size="small"
79
           value-format="yyyy-MM-dd"
79
           value-format="yyyy-MM-dd"
80
           @change="endTimeChange"
80
           @change="endTimeChange"
81
         ></el-date-picker>
81
         ></el-date-picker>
82
-      
82
+
83
     </div>
83
     </div>
84
 
84
 
85
     <el-row :gutter="12" style="margin-top: 10px">
85
     <el-row :gutter="12" style="margin-top: 10px">
111
         <el-table-column label="耗材名称" align="center">
111
         <el-table-column label="耗材名称" align="center">
112
           <template slot-scope="scope">
112
           <template slot-scope="scope">
113
             {{ typeNameOne(scope.row.good_id) }}
113
             {{ typeNameOne(scope.row.good_id) }}
114
-          
114
+
115
           </template>
115
           </template>
116
         </el-table-column>
116
         </el-table-column>
117
 
117
 
118
         <el-table-column label="规格型号" align="center">
118
         <el-table-column label="规格型号" align="center">
119
           <template slot-scope="scope">
119
           <template slot-scope="scope">
120
             {{ specificationName(scope.row.good_id) }}
120
             {{ specificationName(scope.row.good_id) }}
121
-           
121
+
122
           </template>
122
           </template>
123
         </el-table-column>
123
         </el-table-column>
124
 
124
 
125
-    
125
+
126
         <el-table-column label="操作时间" align="center">
126
         <el-table-column label="操作时间" align="center">
127
           <template slot-scope="scope">
127
           <template slot-scope="scope">
128
             {{ getTime(scope.row.Warehousing.warehousing_time) }}
128
             {{ getTime(scope.row.Warehousing.warehousing_time) }}
188
   name: "stockInDetail",
188
   name: "stockInDetail",
189
 
189
 
190
   created() {
190
   created() {
191
-    
191
+
192
     var nowDate = new Date();
192
     var nowDate = new Date();
193
     var nowYear = nowDate.getFullYear();
193
     var nowYear = nowDate.getFullYear();
194
     var nowMonth = nowDate.getMonth() + 1;
194
     var nowMonth = nowDate.getMonth() + 1;
218
       this.end_time = end_time
218
       this.end_time = end_time
219
     }
219
     }
220
     window.sessionStorage.removeItem('start_time')
220
     window.sessionStorage.removeItem('start_time')
221
-    window.sessionStorage.removeItem('end_time')  
221
+    window.sessionStorage.removeItem('end_time')
222
     this.GetCancelStock();
222
     this.GetCancelStock();
223
     this.GetConfigInfo();
223
     this.GetConfigInfo();
224
     this.fetchAllAdminUsers();
224
     this.fetchAllAdminUsers();
225
     this.goodUnit = this.$store.getters.good_unit
225
     this.goodUnit = this.$store.getters.good_unit
226
     this.org_id = this.$store.getters.xt_user.template_info.org_id
226
     this.org_id = this.$store.getters.xt_user.template_info.org_id
227
-   
227
+
228
     this.getGoodDetailPrintList()
228
     this.getGoodDetailPrintList()
229
   },
229
   },
230
   data() {
230
   data() {
271
     changeType: function(val) {
271
     changeType: function(val) {
272
       this.order_type = val;
272
       this.order_type = val;
273
       this.GetCancelStock();
273
       this.GetCancelStock();
274
-     
274
+
275
     },
275
     },
276
     changeManufacturer: function(val) {
276
     changeManufacturer: function(val) {
277
       this.manufacturer_id = val;
277
       this.manufacturer_id = val;
278
       this.GetCancelStock();
278
       this.GetCancelStock();
279
-     
279
+
280
     },
280
     },
281
     changeDealer: function(val) {
281
     changeDealer: function(val) {
282
       this.dealer_id = val;
282
       this.dealer_id = val;
406
           }
406
           }
407
           this.tableDataList = response.data.data.list
407
           this.tableDataList = response.data.data.list
408
           console.log("表格发3223332322332332323232332233",this.cancelStockDate)
408
           console.log("表格发3223332322332332323232332233",this.cancelStockDate)
409
-         
409
+
410
           this.cancelStockDate.push({
410
           this.cancelStockDate.push({
411
             warehousing_order: "合计",
411
             warehousing_order: "合计",
412
             is_total: 1,
412
             is_total: 1,
448
           var alen = this.adminUserOptions.length;
448
           var alen = this.adminUserOptions.length;
449
           for (let index = 0; index < alen; index++) {
449
           for (let index = 0; index < alen; index++) {
450
             if (this.adminUserOptions[index].user_type == 2) {
450
             if (this.adminUserOptions[index].user_type == 2) {
451
-            
451
+
452
             }
452
             }
453
           }
453
           }
454
         }
454
         }
472
         this.$message.error("结束时间不能小于开始时间");
472
         this.$message.error("结束时间不能小于开始时间");
473
         this.start_time = "";
473
         this.start_time = "";
474
       } else {
474
       } else {
475
-       
475
+
476
         this.GetCancelStock();
476
         this.GetCancelStock();
477
-       
477
+
478
       }
478
       }
479
     },
479
     },
480
     endTimeChange(val) {
480
     endTimeChange(val) {
483
         this.$message.error("结束时间不能小于开始时间");
483
         this.$message.error("结束时间不能小于开始时间");
484
         this.end_time = "";
484
         this.end_time = "";
485
       } else {
485
       } else {
486
-       
486
+
487
         this.GetCancelStock();
487
         this.GetCancelStock();
488
       }
488
       }
489
     },
489
     },
656
        end_time:this.end_time,
656
        end_time:this.end_time,
657
        type:1,
657
        type:1,
658
      }
658
      }
659
-     
659
+
660
      getPrintStockGood(params).then(response=>{
660
      getPrintStockGood(params).then(response=>{
661
         if(response.data.state == 1){
661
         if(response.data.state == 1){
662
           this.tableList = []
662
           this.tableList = []
663
           var stockTotal =  response.data.data.stockTotal
663
           var stockTotal =  response.data.data.stockTotal
664
-        
664
+
665
           this.stockTotal = stockTotal
665
           this.stockTotal = stockTotal
666
           var list =  response.data.data.list
666
           var list =  response.data.data.list
667
-         
667
+
668
           for(let i=0;i<list.length;i++){
668
           for(let i=0;i<list.length;i++){
669
             if (list[i].query_warehousing_info.length > 0) {
669
             if (list[i].query_warehousing_info.length > 0) {
670
                this.tableList.push(list[i])
670
                this.tableList.push(list[i])
671
              }
671
              }
672
           }
672
           }
673
-      
673
+
674
         }
674
         }
675
      })
675
      })
676
    },
676
    },
690
        array = stock.query_warehousing_info
690
        array = stock.query_warehousing_info
691
         let total_price = 0.0
691
         let total_price = 0.0
692
         for (let i = 0; i < array.length; i++) {
692
         for (let i = 0; i < array.length; i++) {
693
-         total_price = total_price + array[i].warehousing_count * array[i].price  
693
+         total_price = total_price + array[i].warehousing_count * array[i].price
694
         }
694
         }
695
         return  Math.floor(total_price * 100) / 100
695
         return  Math.floor(total_price * 100) / 100
696
-      }, 
696
+      },
697
       calTotalPrice() {
697
       calTotalPrice() {
698
         var amountPrice = 0
698
         var amountPrice = 0
699
         for (let i = 0; i < this.tableList.length; i++) {
699
         for (let i = 0; i < this.tableList.length; i++) {
702
           len = obj.query_warehousing_info.length
702
           len = obj.query_warehousing_info.length
703
           let total_price = 0.0
703
           let total_price = 0.0
704
           for (let a = 0; a < len; a++) {
704
           for (let a = 0; a < len; a++) {
705
-           total_price = total_price + obj.query_warehousing_info[a].total_price   
705
+           total_price = total_price + obj.query_warehousing_info[a].total_price
706
           }
706
           }
707
 
707
 
708
           amountPrice = amountPrice +  Math.floor(total_price* 100) / 100
708
           amountPrice = amountPrice +  Math.floor(total_price* 100) / 100
709
         }
709
         }
710
         return Math.floor(amountPrice* 100) / 100
710
         return Math.floor(amountPrice* 100) / 100
711
-      }, 
711
+      },
712
       getStockCount(id){
712
       getStockCount(id){
713
-        
713
+
714
         var count = ""
714
         var count = ""
715
         for(let i=0;i<this.stockTotal.length;i++){
715
         for(let i=0;i<this.stockTotal.length;i++){
716
             if(id == this.stockTotal[i].good_id){
716
             if(id == this.stockTotal[i].good_id){
744
         const res = new Map();
744
         const res = new Map();
745
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));
745
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));
746
       },
746
       },
747
-    
747
+
748
       exportList(){
748
       exportList(){
749
-  
749
+
750
         for(let i=0;i<this.tableInfo.length;i++){
750
         for(let i=0;i<this.tableInfo.length;i++){
751
-          this.tableInfo[i].index = i+1  
752
-          this.tableInfo[i].total_price = (this.tableInfo[i].warehousing_count * this.tableInfo[i].price).toFixed(2) 
751
+          this.tableInfo[i].index = i+1
752
+          this.tableInfo[i].total_price = (this.tableInfo[i].warehousing_count * this.tableInfo[i].price).toFixed(2)
753
         }
753
         }
754
 
754
 
755
         import('@/vendor/Export2Excel').then(excel => {
755
         import('@/vendor/Export2Excel').then(excel => {
756
         const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','进货价','总价','备注']
756
         const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','进货价','总价','备注']
757
         const filterVal = ['index','good_name', 'specification_name', 'packing_unit','warehousing_count','price','total_price','remark']
757
         const filterVal = ['index','good_name', 'specification_name', 'packing_unit','warehousing_count','price','total_price','remark']
758
 
758
 
759
-        
759
+
760
         const data = this.formatJson(filterVal, this.tableInfo)
760
         const data = this.formatJson(filterVal, this.tableInfo)
761
 
761
 
762
-      
762
+
763
           excel.export_json_to_excel({
763
           excel.export_json_to_excel({
764
             header: tHeader,
764
             header: tHeader,
765
             data,
765
             data,
769
         })
769
         })
770
       },
770
       },
771
       exportListDetal(){
771
       exportListDetal(){
772
-       
772
+
773
         var obj = {index:"合计",total_price:0}
773
         var obj = {index:"合计",total_price:0}
774
         var total = 0
774
         var total = 0
775
         for(let i=0;i<this.tableDataList.length;i++){
775
         for(let i=0;i<this.tableDataList.length;i++){
787
         import('@/vendor/Export2Excel').then(excel => {
787
         import('@/vendor/Export2Excel').then(excel => {
788
         const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','操作时间','制单人','进货价','数量','总价']
788
         const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','操作时间','制单人','进货价','数量','总价']
789
         const filterVal = ['index','warehousing_order', 'good_type_name', 'good_name','specification_name','time','user_name','price','warehousing_count','total_price']
789
         const filterVal = ['index','warehousing_order', 'good_type_name', 'good_name','specification_name','time','user_name','price','warehousing_count','total_price']
790
-       
791
-      
790
+
791
+
792
         const data = this.formatJson(filterVal, this.tableDataList)
792
         const data = this.formatJson(filterVal, this.tableDataList)
793
-       
794
-       
793
+
794
+
795
           excel.export_json_to_excel({
795
           excel.export_json_to_excel({
796
             header: tHeader,
796
             header: tHeader,
797
             data,
797
             data,

+ 18 - 18
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue Ver fichero

14
     </div>
14
     </div>
15
 
15
 
16
     <div class="app-container">
16
     <div class="app-container">
17
-      
17
+
18
       <div class="cell clearfix">
18
       <div class="cell clearfix">
19
         <label class="title"><span class="name">仓库</span> :</label>
19
         <label class="title"><span class="name">仓库</span> :</label>
20
         <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeStoreHouse">
20
         <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeStoreHouse">
24
               :label="option.storehouse_name"
24
               :label="option.storehouse_name"
25
               :value="option.id">
25
               :value="option.id">
26
             </el-option>
26
             </el-option>
27
-        </el-select> 
27
+        </el-select>
28
         <el-input
28
         <el-input
29
           size="small"
29
           size="small"
30
           style="width: 200px;"
30
           style="width: 200px;"
72
         </div>
72
         </div>
73
       </div>
73
       </div>
74
 
74
 
75
-      
75
+
76
 
76
 
77
       <div class="filter-container" style="margin-top: 10px">
77
       <div class="filter-container" style="margin-top: 10px">
78
         <el-checkbox
78
         <el-checkbox
179
             border
179
             border
180
             highlight-current-row
180
             highlight-current-row
181
             ref="multipleTableOne"
181
             ref="multipleTableOne"
182
-           
182
+
183
             @selection-change="select"
183
             @selection-change="select"
184
             :row-style="{ color: '#303133' }"
184
             :row-style="{ color: '#303133' }"
185
             :header-cell-style="{
185
             :header-cell-style="{
193
                 {{ scope.row.BaseDrugLib.drug_name}}
193
                 {{ scope.row.BaseDrugLib.drug_name}}
194
               </template>
194
               </template>
195
             </el-table-column>
195
             </el-table-column>
196
-            
196
+
197
           <el-table-column label="规格&单位" align="center">
197
           <el-table-column label="规格&单位" align="center">
198
               <template slot-scope="scope">
198
               <template slot-scope="scope">
199
                 {{ scope.row.BaseDrugLib.dose}}{{scope.row.BaseDrugLib.dose_unit}} * {{scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}} /{{scope.row.BaseDrugLib.max_unit}}
199
                 {{ scope.row.BaseDrugLib.dose}}{{scope.row.BaseDrugLib.dose_unit}} * {{scope.row.BaseDrugLib.min_number}}{{scope.row.BaseDrugLib.min_unit}} /{{scope.row.BaseDrugLib.max_unit}}
227
             <el-table-column label="退库单价" align="center">
227
             <el-table-column label="退库单价" align="center">
228
               <template slot-scope="scope">
228
               <template slot-scope="scope">
229
                 {{ scope.row.price}}
229
                 {{ scope.row.price}}
230
-              </template> 
230
+              </template>
231
             </el-table-column>
231
             </el-table-column>
232
 
232
 
233
             <!-- <el-table-column label="批次" align="center">
233
             <!-- <el-table-column label="批次" align="center">
259
                 {{scope.row.expiry_date}}
259
                 {{scope.row.expiry_date}}
260
               </template>
260
               </template>
261
             </el-table-column>
261
             </el-table-column>
262
-          
262
+
263
             <el-table-column label="经销商" align="center">
263
             <el-table-column label="经销商" align="center">
264
               <template slot-scope="scope">
264
               <template slot-scope="scope">
265
                 {{scope.row.dealer}}
265
                 {{scope.row.dealer}}
266
               </template>
266
               </template>
267
             </el-table-column>
267
             </el-table-column>
268
-          
268
+
269
             <el-table-column label="退库原因" align="center">
269
             <el-table-column label="退库原因" align="center">
270
               <template slot-scope="scope">
270
               <template slot-scope="scope">
271
                 {{scope.row.remark}}
271
                 {{scope.row.remark}}
272
               </template>
272
               </template>
273
             </el-table-column>
273
             </el-table-column>
274
 
274
 
275
-          
275
+
276
           </el-table>
276
           </el-table>
277
       </div>
277
       </div>
278
     </div>
278
     </div>
279
 
279
 
280
-    
280
+
281
   </div>
281
   </div>
282
 </template>
282
 </template>
283
 
283
 
318
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
318
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
319
       "-" +
319
       "-" +
320
       (nowDay < 10 ? "0" + nowDay : nowDay);
320
       (nowDay < 10 ? "0" + nowDay : nowDay);
321
-   
321
+
322
     this.GetCancelStock();
322
     this.GetCancelStock();
323
     this.GetConfigInfo();
323
     this.GetConfigInfo();
324
     this.fetchAllAdminUsers();
324
     this.fetchAllAdminUsers();
401
           this.$message.error(response.data.msg);
401
           this.$message.error(response.data.msg);
402
           return false;
402
           return false;
403
         } else {
403
         } else {
404
-         
405
-          
404
+
405
+
406
           this.total = response.data.data.total;
406
           this.total = response.data.data.total;
407
           for (let i = 0; i < response.data.data.list.length; i++) {
407
           for (let i = 0; i < response.data.data.list.length; i++) {
408
             this.cancelStockDate.push(response.data.data.list[i]);
408
             this.cancelStockDate.push(response.data.data.list[i]);
441
     },
441
     },
442
     fetchAllAdminUsers() {
442
     fetchAllAdminUsers() {
443
       fetchAllAdminUsers().then(response => {
443
       fetchAllAdminUsers().then(response => {
444
-      
444
+
445
         if (response.data.state == 1) {
445
         if (response.data.state == 1) {
446
           this.adminUserOptions = response.data.data.users;
446
           this.adminUserOptions = response.data.data.users;
447
           var alen = this.adminUserOptions.length;
447
           var alen = this.adminUserOptions.length;
516
       }
516
       }
517
     },
517
     },
518
     handleEdit: function(index, row) {
518
     handleEdit: function(index, row) {
519
-    
519
+
520
       this.$router.push({path:"/drugstock/cancel/edit?id="+row.id+"&type="+this.type})
520
       this.$router.push({path:"/drugstock/cancel/edit?id="+row.id+"&type="+this.type})
521
     },
521
     },
522
     handleDelete: function(index, row) {
522
     handleDelete: function(index, row) {
671
         return
671
         return
672
       }
672
       }
673
      import('@/vendor/Export2Excel').then(excel => {
673
      import('@/vendor/Export2Excel').then(excel => {
674
-     
674
+
675
       for(let i=0;i<this.exportList.length;i++){
675
       for(let i=0;i<this.exportList.length;i++){
676
         this.exportList[i].total_price = this.exportList[i].count * this.exportList[i].price
676
         this.exportList[i].total_price = this.exportList[i].count * this.exportList[i].price
677
         this.exportList[i].drug_name = this.exportList[i].BaseDrugLib.drug_name
677
         this.exportList[i].drug_name = this.exportList[i].BaseDrugLib.drug_name
682
         if(this.exportList[i].manufacturer == 0){
682
         if(this.exportList[i].manufacturer == 0){
683
           this.exportList[i].manufacturer = ""
683
           this.exportList[i].manufacturer = ""
684
         }
684
         }
685
-      
685
+
686
         this.exportList[i].product_date = this.getTime(this.exportList[i].product_date,"{y}-{h}-{d}")
686
         this.exportList[i].product_date = this.getTime(this.exportList[i].product_date,"{y}-{h}-{d}")
687
         this.exportList[i].expiry_date = this.getTime(this.exportList[i].expiry_date,"{y}-{h}-{d}")
687
         this.exportList[i].expiry_date = this.getTime(this.exportList[i].expiry_date,"{y}-{h}-{d}")
688
       }
688
       }
689
       const tHeader = ['药品名称',  '规格&单位','退库数量','退库单价','批次','品名/注册证号(备案凭证号)','生产厂家','生产日期','有效期','退库原因']
689
       const tHeader = ['药品名称',  '规格&单位','退库数量','退库单价','批次','品名/注册证号(备案凭证号)','生产厂家','生产日期','有效期','退库原因']
690
       const filterVal = ['drug_name', 'unit','count','price','batch_number','register_account','manufacturer','product_date','expiry_date','remark']
690
       const filterVal = ['drug_name', 'unit','count','price','batch_number','register_account','manufacturer','product_date','expiry_date','remark']
691
       // console.log("table",this.exportList)
691
       // console.log("table",this.exportList)
692
-    
692
+
693
       const data = this.formatJson(filterVal, this.exportList)
693
       const data = this.formatJson(filterVal, this.exportList)
694
       excel.export_json_to_excel({
694
       excel.export_json_to_excel({
695
         header: tHeader,
695
         header: tHeader,

+ 18 - 18
src/xt_pages/stock/drugs/components/drugCancelDetail.vue Ver fichero

189
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
189
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
190
       "-" +
190
       "-" +
191
       (nowDay < 10 ? "0" + nowDay : nowDay);
191
       (nowDay < 10 ? "0" + nowDay : nowDay);
192
-    
192
+
193
     var start = window.sessionStorage.getItem('start_cancel_time')
193
     var start = window.sessionStorage.getItem('start_cancel_time')
194
     if(start!=null){
194
     if(start!=null){
195
      this.start_time = start
195
      this.start_time = start
198
       var end =  window.sessionStorage.getItem('end_cancel_time')
198
       var end =  window.sessionStorage.getItem('end_cancel_time')
199
       this.end_time = end
199
       this.end_time = end
200
     }
200
     }
201
-    
201
+
202
     this.GetConfigInfo();
202
     this.GetConfigInfo();
203
     this.fetchAllAdminUsers();
203
     this.fetchAllAdminUsers();
204
     this.getlist()
204
     this.getlist()
262
 
262
 
263
       return name;
263
       return name;
264
     },
264
     },
265
-   
266
-  
265
+
266
+
267
     search() {
267
     search() {
268
       this.getlist()
268
       this.getlist()
269
     },
269
     },
270
-  
271
-   
272
-   
270
+
271
+
272
+
273
     fetchAllAdminUsers() {
273
     fetchAllAdminUsers() {
274
       fetchAllAdminUsers().then(response => {
274
       fetchAllAdminUsers().then(response => {
275
         console.log(response);
275
         console.log(response);
328
         }
328
         }
329
       });
329
       });
330
     },
330
     },
331
-  
332
-  
333
-   
331
+
332
+
333
+
334
     select(selection) {
334
     select(selection) {
335
-     
335
+
336
     },
336
     },
337
     getlist(){
337
     getlist(){
338
        var params = {
338
        var params = {
377
            this.tableList = order
377
            this.tableList = order
378
            var total = response.data.data.total
378
            var total = response.data.data.total
379
            this.total = total
379
            this.total = total
380
-         } 
380
+         }
381
       })
381
       })
382
     },
382
     },
383
 
383
 
420
        import('@/vendor/Export2Excel').then(excel => {
420
        import('@/vendor/Export2Excel').then(excel => {
421
         const tHeader = ['序号','单据编号', '药品名称', '规格型号','单据类型','操作时间','制单人','数量','退库价','总价']
421
         const tHeader = ['序号','单据编号', '药品名称', '规格型号','单据类型','操作时间','制单人','数量','退库价','总价']
422
         const filterVal = ['index','order_number','drug_name', 'specification_name', 'drug_type','ctime','user_name','total_count','price','total_price']
422
         const filterVal = ['index','order_number','drug_name', 'specification_name', 'drug_type','ctime','user_name','total_count','price','total_price']
423
-        
423
+
424
         const data = this.formatJson(filterVal, this.tableDataList)
424
         const data = this.formatJson(filterVal, this.tableDataList)
425
 
425
 
426
         excel.export_json_to_excel({
426
         excel.export_json_to_excel({
437
     exportListOne(){
437
     exportListOne(){
438
       // let obj = {'index':'合计','total_price':0}
438
       // let obj = {'index':'合计','total_price':0}
439
       console.log("@332322323232332",this.tableList)
439
       console.log("@332322323232332",this.tableList)
440
-      
440
+
441
        for(let i=0;i<this.tableList.length;i++){
441
        for(let i=0;i<this.tableList.length;i++){
442
           this.tableList[i].index = i+1
442
           this.tableList[i].index = i+1
443
           this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
443
           this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
452
           }
452
           }
453
           this.tableList[i].time = this.getTime(this.tableList[i].ctime)
453
           this.tableList[i].time = this.getTime(this.tableList[i].ctime)
454
           this.tableList[i].user_name = this.getAdminUser(this.tableList[i].creater)
454
           this.tableList[i].user_name = this.getAdminUser(this.tableList[i].creater)
455
-          
455
+
456
           //this.tableList[i].total_price = this.tableList[i].count * this.tableList[i].price
456
           //this.tableList[i].total_price = this.tableList[i].count * this.tableList[i].price
457
           //  obj.total_price += this.tableList[i].count * this.tableList[i].price
457
           //  obj.total_price += this.tableList[i].count * this.tableList[i].price
458
         }
458
         }
464
        import('@/vendor/Export2Excel').then(excel => {
464
        import('@/vendor/Export2Excel').then(excel => {
465
        const tHeader = ['序号','单据编号', '药品类型','药品名称', '规格型号','操作时间','制单人','退货价','数量','总价']
465
        const tHeader = ['序号','单据编号', '药品类型','药品名称', '规格型号','操作时间','制单人','退货价','数量','总价']
466
        const filterVal = ['index','order_number','drugtype','drug_name', 'specification_name', 'time','user_name','price','count','total_price']
466
        const filterVal = ['index','order_number','drugtype','drug_name', 'specification_name', 'time','user_name','price','count','total_price']
467
-       
467
+
468
        const data = this.formatJson(filterVal, this.tableList)
468
        const data = this.formatJson(filterVal, this.tableList)
469
-       
469
+
470
        excel.export_json_to_excel({
470
        excel.export_json_to_excel({
471
            header: tHeader,
471
            header: tHeader,
472
            data,
472
            data,
492
         }
492
         }
493
       }
493
       }
494
       return name
494
       return name
495
-    } 
495
+    }
496
   }
496
   }
497
 };
497
 };
498
 </script>
498
 </script>

+ 11 - 11
src/xt_pages/stock/drugs/drugOutOrderPrint.vue Ver fichero

40
                 <span v-if="org_id == 9671 || org_id == 9919 ">{{item.max_unit}}</span>
40
                 <span v-if="org_id == 9671 || org_id == 9919 ">{{item.max_unit}}</span>
41
                 <span v-else>{{item.min_unit}}</span>
41
                 <span v-else>{{item.min_unit}}</span>
42
               </td>
42
               </td>
43
-            
43
+
44
               <td style="line-height: 50px">
44
               <td style="line-height: 50px">
45
-                <span v-if="org_id == 9671 || org_id == 9919">{{getCountSix(item.drug_id,item.child)}}</span>  
45
+                <span v-if="org_id == 9671 || org_id == 9919">{{getCountSix(item.drug_id,item.child)}}</span>
46
                 <span v-else>{{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
46
                 <span v-else>{{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
47
               </td>
47
               </td>
48
               <td style="line-height:50px">
48
               <td style="line-height:50px">
49
                   <span v-if="org_id ==9671 || org_id == 9919">{{item.price}}</span>
49
                   <span v-if="org_id ==9671 || org_id == 9919">{{item.price}}</span>
50
-                  <span v-else>{{item.min_price}}</span> 
50
+                  <span v-else>{{item.min_price}}</span>
51
               </td>
51
               </td>
52
               <td style="line-height:50px">
52
               <td style="line-height:50px">
53
                 <span v-if="org_id ==9671 || org_id == 9919">{{(getCountSenven(item.drug_id,item.child,item.price))}}</span>
53
                 <span v-if="org_id ==9671 || org_id == 9919">{{(getCountSenven(item.drug_id,item.child,item.price))}}</span>
107
           { path: false, name: '打印单' }
107
           { path: false, name: '打印单' }
108
         ],
108
         ],
109
         loading: false,
109
         loading: false,
110
-        orgname: '',   
110
+        orgname: '',
111
         totalPrice: 0,
111
         totalPrice: 0,
112
         stockDatas: [],
112
         stockDatas: [],
113
         goodUnit: [],
113
         goodUnit: [],
151
           scanStyles: false
151
           scanStyles: false
152
         })
152
         })
153
       },
153
       },
154
-   
154
+
155
       getUnit(id){
155
       getUnit(id){
156
         var name = ""
156
         var name = ""
157
         for(let i=0;i<this.goodUnit.length;i++){
157
         for(let i=0;i<this.goodUnit.length;i++){
279
         return str + min_str
279
         return str + min_str
280
       },
280
       },
281
       getCountOne(arr,max_unit,min_unit,min_number){
281
       getCountOne(arr,max_unit,min_unit,min_number){
282
-       
282
+
283
         var total = 0
283
         var total = 0
284
         var str = ""
284
         var str = ""
285
         var min_str = ""
285
         var min_str = ""
295
         for(let i=0;i<arr.length;i++){
295
         for(let i=0;i<arr.length;i++){
296
           total+= parseInt(arr[i].total_count)
296
           total+= parseInt(arr[i].total_count)
297
         }
297
         }
298
-     
298
+
299
         return total
299
         return total
300
       },
300
       },
301
       getTotalPrice(arr,max_unit,min_number,min_price){
301
       getTotalPrice(arr,max_unit,min_number,min_price){
302
-        
302
+
303
         var total = 0
303
         var total = 0
304
         for(let i=0;i<arr.length;i++){
304
         for(let i=0;i<arr.length;i++){
305
           arr[i].all_count = 0
305
           arr[i].all_count = 0
308
           }else{
308
           }else{
309
             arr[i].all_count = parseInt(arr[i].count)
309
             arr[i].all_count = parseInt(arr[i].count)
310
           }
310
           }
311
-        }  
311
+        }
312
         for(let j=0;j<arr.length;j++){
312
         for(let j=0;j<arr.length;j++){
313
           total += parseInt(arr[j].all_count)
313
           total += parseInt(arr[j].all_count)
314
         }
314
         }
317
       },
317
       },
318
       getCountSix(drug_id,val){
318
       getCountSix(drug_id,val){
319
         console.log("val233232",val)
319
         console.log("val233232",val)
320
-        var count = 0 
320
+        var count = 0
321
         for(let i=0;i<val.length;i++){
321
         for(let i=0;i<val.length;i++){
322
           count+= val[i].count
322
           count+= val[i].count
323
         }
323
         }
324
         return count
324
         return count
325
       },
325
       },
326
       getCountSenven(drug_id,val,price){
326
       getCountSenven(drug_id,val,price){
327
-        var count = 0 
327
+        var count = 0
328
         for(let i=0;i<val.length;i++){
328
         for(let i=0;i<val.length;i++){
329
           count+= val[i].count
329
           count+= val[i].count
330
         }
330
         }

+ 2 - 2
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue Ver fichero

268
         }
268
         }
269
         return name
269
         return name
270
       },
270
       },
271
-      
271
+
272
       getManufacturer(id){
272
       getManufacturer(id){
273
         let name = ""
273
         let name = ""
274
         for(let i=0;i<this.manufacturerList.length;i++){
274
         for(let i=0;i<this.manufacturerList.length;i++){
364
         return count
364
         return count
365
       },
365
       },
366
        getDeatl(id){
366
        getDeatl(id){
367
-       
367
+
368
         var dealer_name = ""
368
         var dealer_name = ""
369
         for(let i=0;i<this.dealer.length;i++){
369
         for(let i=0;i<this.dealer.length;i++){
370
           if(id == this.dealer[i].id){
370
           if(id == this.dealer[i].id){

+ 7 - 7
src/xt_pages/stock/drugs/drugStockOutOrder.vue Ver fichero

21
               :label="option.storehouse_name"
21
               :label="option.storehouse_name"
22
               :value="option.id">
22
               :value="option.id">
23
             </el-option>
23
             </el-option>
24
-        </el-select> 
24
+        </el-select>
25
         <el-input
25
         <el-input
26
           size="small"
26
           size="small"
27
           style="width: 200px;"
27
           style="width: 200px;"
146
           </template>
146
           </template>
147
         </el-table-column>
147
         </el-table-column>
148
 
148
 
149
-  
149
+
150
         <el-table-column label="操作" align="center" width="240">
150
         <el-table-column label="操作" align="center" width="240">
151
           <template slot-scope="scope">
151
           <template slot-scope="scope">
152
 
152
 
243
           </el-table-column>
243
           </el-table-column>
244
           <el-table-column label="出库对象" align="center" v-if="is_sys == 0">
244
           <el-table-column label="出库对象" align="center" v-if="is_sys == 0">
245
             <template slot-scope="scope">
245
             <template slot-scope="scope">
246
-              <span>{{getXuserName(scope.row.admin_user_id)}} </span>  
246
+              <span>{{getXuserName(scope.row.admin_user_id)}} </span>
247
             </template>
247
             </template>
248
           </el-table-column>
248
           </el-table-column>
249
           <el-table-column label="单价" align="center">
249
           <el-table-column label="单价" align="center">
990
          this.manufacturerList = response.data.data.manufacturerList
990
          this.manufacturerList = response.data.data.manufacturerList
991
          this.dealerList = response.data.data.dealerList
991
          this.dealerList = response.data.data.dealerList
992
          var drugFlowList = response.data.data.drugFlowList
992
          var drugFlowList = response.data.data.drugFlowList
993
-        
993
+
994
          if (is_sys == 1){
994
          if (is_sys == 1){
995
            if(drugFlowList.length >0){
995
            if(drugFlowList.length >0){
996
             for(let i=0;i<drugFlowList.length;i++){
996
             for(let i=0;i<drugFlowList.length;i++){
997
                 if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
997
                 if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
998
                     drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
998
                     drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
999
-                   
999
+
1000
 
1000
 
1001
                 }
1001
                 }
1002
                 if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
1002
                 if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
1005
 
1005
 
1006
             }
1006
             }
1007
            }
1007
            }
1008
-        
1008
+
1009
           this.drugFlowList = drugFlowList
1009
           this.drugFlowList = drugFlowList
1010
          }
1010
          }
1011
          if(is_sys == 0 || is_sys == 12){
1011
          if(is_sys == 0 || is_sys == 12){
1288
       return jsonData.map(v => filterVal.map(j => v[j]));
1288
       return jsonData.map(v => filterVal.map(j => v[j]));
1289
      },
1289
      },
1290
       getAllPriceOne(drug_id,price,min_price,max_unit,count_unit,min_number,is_sys){
1290
       getAllPriceOne(drug_id,price,min_price,max_unit,count_unit,min_number,is_sys){
1291
-        
1291
+
1292
         var total = 0
1292
         var total = 0
1293
         var all_price = 0
1293
         var all_price = 0
1294
         for(let i=0;i<this.drugFlowList.length;i++){
1294
         for(let i=0;i<this.drugFlowList.length;i++){

+ 7 - 7
src/xt_pages/stock/drugs/inventoryPrint.vue Ver fichero

10
         </div>
10
         </div>
11
         <div class="app-container" style="background-color: white;">
11
         <div class="app-container" style="background-color: white;">
12
             <div id="print_content">
12
             <div id="print_content">
13
-               
13
+
14
                 <table class="printTable" border="1">
14
                 <table class="printTable" border="1">
15
                     <tr>
15
                     <tr>
16
                         <td>序号</td>
16
                         <td>序号</td>
33
                         <td>{{getTime(item.expiry_date)}}</td>
33
                         <td>{{getTime(item.expiry_date)}}</td>
34
                         <td>{{getManufacturerName(item.manufacturer)}}</td>
34
                         <td>{{getManufacturerName(item.manufacturer)}}</td>
35
                         <td>{{item.number}}</td>
35
                         <td>{{item.number}}</td>
36
-                        <td>{{item.max_unit}}</td>  
37
-                        <td></td>     
36
+                        <td>{{item.max_unit}}</td>
37
+                        <td></td>
38
                     </tr>
38
                     </tr>
39
                 </table>
39
                 </table>
40
-              
40
+
41
             </div>
41
             </div>
42
         </div>
42
         </div>
43
     </div>
43
     </div>
100
          }
100
          }
101
       },
101
       },
102
       getManufacturerName(id){
102
       getManufacturerName(id){
103
-       
103
+
104
            var name = ""
104
            var name = ""
105
            for(let i=0;i<this.manufacturerList.length;i++){
105
            for(let i=0;i<this.manufacturerList.length;i++){
106
               if(id == this.manufacturerList[i].id){
106
               if(id == this.manufacturerList[i].id){
109
            }
109
            }
110
            return name
110
            return name
111
         }
111
         }
112
-      
113
-      
112
+
113
+
114
      },
114
      },
115
     created(){
115
     created(){
116
       this.getlist()
116
       this.getlist()

+ 25 - 25
src/xt_pages/stock/drugs/query.vue Ver fichero

43
             </el-option>
43
             </el-option>
44
           </el-select>
44
           </el-select>
45
           <span>药品名称:</span>
45
           <span>药品名称:</span>
46
-          <el-select v-model="drug_id" style="width:200px;margin-right:10px;" placeholder="请选择" 
46
+          <el-select v-model="drug_id" style="width:200px;margin-right:10px;" placeholder="请选择"
47
           filterable
47
           filterable
48
            @change="changeDrugName">
48
            @change="changeDrugName">
49
             <el-option
49
             <el-option
52
               :label="item.drug_name"
52
               :label="item.drug_name"
53
               :value="item.id">
53
               :value="item.id">
54
             </el-option>
54
             </el-option>
55
-          </el-select> 
55
+          </el-select>
56
         </div>
56
         </div>
57
          <!-- <el-select v-model="drug_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
57
          <!-- <el-select v-model="drug_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
58
             <el-option
58
             <el-option
103
       </div>
103
       </div>
104
 
104
 
105
        <el-table :data="tableList" border style="width: 100%"   :cell-class-name="cellStyle">
105
        <el-table :data="tableList" border style="width: 100%"   :cell-class-name="cellStyle">
106
- 
106
+
107
         <el-table-column prop="drug_type" label="药品类型" width="100" align="center">
107
         <el-table-column prop="drug_type" label="药品类型" width="100" align="center">
108
            <template slot-scope="scope">
108
            <template slot-scope="scope">
109
              {{getDrugType(scope.row.drug_type)}}
109
              {{getDrugType(scope.row.drug_type)}}
178
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
178
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
179
             </div>
179
             </div>
180
            </template>
180
            </template>
181
-        </el-table-column> 
181
+        </el-table-column>
182
         <el-table-column prop="drug_name" label="操作" align="center" width="200px">
182
         <el-table-column prop="drug_name" label="操作" align="center" width="200px">
183
           <template slot-scope="scope">
183
           <template slot-scope="scope">
184
             <el-button
184
             <el-button
230
     created() {
230
     created() {
231
       var start_time =  window.sessionStorage.getItem('start_time')
231
       var start_time =  window.sessionStorage.getItem('start_time')
232
       var end_time =  window.sessionStorage.getItem('end_time')
232
       var end_time =  window.sessionStorage.getItem('end_time')
233
-     
233
+
234
       if(start_time !=null){
234
       if(start_time !=null){
235
         this.start_time = start_time
235
         this.start_time = start_time
236
       }
236
       }
319
         }
319
         }
320
         getDrugStockList(params).then(response=>{
320
         getDrugStockList(params).then(response=>{
321
           if(response.data.state == 1){
321
           if(response.data.state == 1){
322
-            
322
+
323
              var list = response.data.data.list
323
              var list = response.data.data.list
324
-           
324
+
325
              for(let i=0;i<list.length;i++){
325
              for(let i=0;i<list.length;i++){
326
                for(let j=0;j<list[i].drug_warehouse_info.length;j++){
326
                for(let j=0;j<list[i].drug_warehouse_info.length;j++){
327
                  if(list[i].max_unit == list[i].drug_warehouse_info[j].max_unit){
327
                  if(list[i].max_unit == list[i].drug_warehouse_info[j].max_unit){
328
                     list[i].drug_warehouse_info[j].stock_max_number = list[i].min_number * list[i].drug_warehouse_info[j].stock_max_number
328
                     list[i].drug_warehouse_info[j].stock_max_number = list[i].min_number * list[i].drug_warehouse_info[j].stock_max_number
329
                     list[i].drug_warehouse_info[j].warehousing_count = list[i].min_number * list[i].drug_warehouse_info[j].warehousing_count
329
                     list[i].drug_warehouse_info[j].warehousing_count = list[i].min_number * list[i].drug_warehouse_info[j].warehousing_count
330
                  }
330
                  }
331
-                
331
+
332
                }
332
                }
333
                for(let y=0;y<list[i].drug_warehouse_out.length;y++){
333
                for(let y=0;y<list[i].drug_warehouse_out.length;y++){
334
                   if(list[i].drug_warehouse_out[y].count_unit == list[i].max_unit){
334
                   if(list[i].drug_warehouse_out[y].count_unit == list[i].max_unit){
344
             var arr = []
344
             var arr = []
345
              for(let i=0;i<list.length;i++){
345
              for(let i=0;i<list.length;i++){
346
                if(list[i].drug_warehouse_info.length > 0){
346
                if(list[i].drug_warehouse_info.length > 0){
347
-                  arr.push(list[i]) 
347
+                  arr.push(list[i])
348
                }
348
                }
349
              }
349
              }
350
              this.tableList = arr
350
              this.tableList = arr
376
               response.data.data.medicalList[i].drug_name = response.data.data.medicalList[i].drug_name +response.data.data.medicalList[i].dose + response.data.data.medicalList[i].dose_unit + "*" + response.data.data.medicalList[i].min_number +  response.data.data.medicalList[i].min_unit+ "/"+ response.data.data.medicalList[i].max_unit +  " " +response.data.data.medicalList[i].manufacturer
376
               response.data.data.medicalList[i].drug_name = response.data.data.medicalList[i].drug_name +response.data.data.medicalList[i].dose + response.data.data.medicalList[i].dose_unit + "*" + response.data.data.medicalList[i].min_number +  response.data.data.medicalList[i].min_unit+ "/"+ response.data.data.medicalList[i].max_unit +  " " +response.data.data.medicalList[i].manufacturer
377
                this.medicalList.push(response.data.data.medicalList[i])
377
                this.medicalList.push(response.data.data.medicalList[i])
378
              }
378
              }
379
-             
379
+
380
            }
380
            }
381
         })
381
         })
382
       },
382
       },
494
           this.getlist()
494
           this.getlist()
495
           this.getDrugCountList()
495
           this.getDrugCountList()
496
         }
496
         }
497
-       
497
+
498
       }
498
       }
499
 
499
 
500
     },
500
     },
550
              this.tableList[i].outCount = this.getOutCount(this.tableList[i].id)+ this.getAutoCount(this.tableList[i].id)
550
              this.tableList[i].outCount = this.getOutCount(this.tableList[i].id)+ this.getAutoCount(this.tableList[i].id)
551
              this.tableList[i].overplusCount  = this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) - this.getOutCount(this.tableList[i].id) - this.getAutoCount(this.tableList[i].id)
551
              this.tableList[i].overplusCount  = this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) - this.getOutCount(this.tableList[i].id) - this.getAutoCount(this.tableList[i].id)
552
 
552
 
553
-          }   
553
+          }
554
          }
554
          }
555
          import('@/vendor/Export2Excel').then(excel => {
555
          import('@/vendor/Export2Excel').then(excel => {
556
          const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','国家编码','进货单价','厂家','入库数量','出库数量','剩余库存量']
556
          const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','国家编码','进货单价','厂家','入库数量','出库数量','剩余库存量']
620
         this.$router.push({path:'/drugstock/in/drugstockflow?drug_id='+val.id+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&over_plus="+over_plus})
620
         this.$router.push({path:'/drugstock/in/drugstockflow?drug_id='+val.id+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&over_plus="+over_plus})
621
         window.sessionStorage.setItem('start_time',this.start_time)
621
         window.sessionStorage.setItem('start_time',this.start_time)
622
         window.sessionStorage.setItem('end_time',this.end_time)
622
         window.sessionStorage.setItem('end_time',this.end_time)
623
-        
623
+
624
       },
624
       },
625
       handleBatch(val){
625
       handleBatch(val){
626
         console.log("val322332323232",val)
626
         console.log("val322332323232",val)
632
         }
632
         }
633
         var unit =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
633
         var unit =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
634
         var over_plus = this.getOverFlushInfo(val.drug_warehouse_info,val.max_unit,val.min_unit,val.min_number)
634
         var over_plus = this.getOverFlushInfo(val.drug_warehouse_info,val.max_unit,val.min_unit,val.min_number)
635
-       
635
+
636
         window.sessionStorage.setItem('start_time',this.start_time)
636
         window.sessionStorage.setItem('start_time',this.start_time)
637
         window.sessionStorage.setItem('end_time',this.end_time)
637
         window.sessionStorage.setItem('end_time',this.end_time)
638
         this.$router.push({path:'/drugstock/in/drugbatchnumber?drug_id='+val.id+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&over_plus="+over_plus})
638
         this.$router.push({path:'/drugstock/in/drugbatchnumber?drug_id='+val.id+"&manufacturer="+manufacturer_name+"&unit="+unit+"&min_number="+val.min_number+"&max_unit="+val.max_unit+"&min_unit="+val.min_unit+"&over_plus="+over_plus})
822
         }
822
         }
823
         return max_str + min_str
823
         return max_str + min_str
824
       },
824
       },
825
-      
825
+
826
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
826
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
827
 
827
 
828
          var max_str=  ""
828
          var max_str=  ""
941
         for(let i=0;i<info.length;i++){
941
         for(let i=0;i<info.length;i++){
942
            total += info[i].warehousing_count
942
            total += info[i].warehousing_count
943
         }
943
         }
944
-        
944
+
945
         for(let j=0;j<info.length;j++){
945
         for(let j=0;j<info.length;j++){
946
            out_count += (info[j].stock_max_number + info[j].stock_min_number)
946
            out_count += (info[j].stock_max_number + info[j].stock_min_number)
947
         }
947
         }
948
-       
948
+
949
         // for(let z=0;z<cancel_info.length;z++){
949
         // for(let z=0;z<cancel_info.length;z++){
950
         //    cancel_count += cancel_info[z].count
950
         //    cancel_count += cancel_info[z].count
951
         // }
951
         // }
952
        // over_count = total - out_count + cancel_count
952
        // over_count = total - out_count + cancel_count
953
-         over_count = total - out_count 
953
+         over_count = total - out_count
954
         if(parseInt(over_count/min_number)!=0){
954
         if(parseInt(over_count/min_number)!=0){
955
             str = parseInt(over_count/min_number)+ max_unit
955
             str = parseInt(over_count/min_number)+ max_unit
956
          }
956
          }
976
           for(let i=0;i<arr.length;i++){
976
           for(let i=0;i<arr.length;i++){
977
             if(arr[i].storehouse_id == storehouse_id){
977
             if(arr[i].storehouse_id == storehouse_id){
978
               total += parseInt(arr[i].warehousing_count)
978
               total += parseInt(arr[i].warehousing_count)
979
-            } 
979
+            }
980
           }
980
           }
981
         }
981
         }
982
         if (total < min_number){
982
         if (total < min_number){
997
         }
997
         }
998
         return max_str + min_str
998
         return max_str + min_str
999
       },
999
       },
1000
-           
1000
+
1001
       getOverFlushInfoEight(arr,max_unit,min_unit,min_number,storehouse_id){
1001
       getOverFlushInfoEight(arr,max_unit,min_unit,min_number,storehouse_id){
1002
 
1002
 
1003
          var max_str=  ""
1003
          var max_str=  ""
1042
           if(info[i].storehouse_id == storehouse_id){
1042
           if(info[i].storehouse_id == storehouse_id){
1043
             total += info[i].warehousing_count
1043
             total += info[i].warehousing_count
1044
           }
1044
           }
1045
-          
1045
+
1046
         }
1046
         }
1047
-        
1047
+
1048
         for(let j=0;j<info.length;j++){
1048
         for(let j=0;j<info.length;j++){
1049
           if(info[j].storehouse_id == storehouse_id){
1049
           if(info[j].storehouse_id == storehouse_id){
1050
             out_count += (info[j].stock_max_number + info[j].stock_min_number)
1050
             out_count += (info[j].stock_max_number + info[j].stock_min_number)
1051
           }
1051
           }
1052
-          
1052
+
1053
         }
1053
         }
1054
-       
1054
+
1055
         // for(let z=0;z<cancel_info.length;z++){
1055
         // for(let z=0;z<cancel_info.length;z++){
1056
         //    cancel_count += cancel_info[z].count
1056
         //    cancel_count += cancel_info[z].count
1057
         // }
1057
         // }
1058
        // over_count = total - out_count + cancel_count
1058
        // over_count = total - out_count + cancel_count
1059
-         over_count = total - out_count 
1059
+         over_count = total - out_count
1060
         if(parseInt(over_count/min_number)!=0){
1060
         if(parseInt(over_count/min_number)!=0){
1061
             str = parseInt(over_count/min_number)+ max_unit
1061
             str = parseInt(over_count/min_number)+ max_unit
1062
          }
1062
          }

+ 3 - 3
src/xt_pages/stock/inventoryPrint.vue Ver fichero

10
         </div>
10
         </div>
11
         <div class="app-container" style="background-color: white;">
11
         <div class="app-container" style="background-color: white;">
12
             <div id="print_content">
12
             <div id="print_content">
13
-              
13
+
14
                 <table class="printTable" border="1">
14
                 <table class="printTable" border="1">
15
                     <tr>
15
                     <tr>
16
                         <td>序号</td>
16
                         <td>序号</td>
37
                         <td></td>
37
                         <td></td>
38
                     </tr>
38
                     </tr>
39
                 </table>
39
                 </table>
40
-               
40
+
41
             </div>
41
             </div>
42
         </div>
42
         </div>
43
     </div>
43
     </div>
96
          })
96
          })
97
         },
97
         },
98
         getManufacturerName(id){
98
         getManufacturerName(id){
99
-       
99
+
100
            var name = ""
100
            var name = ""
101
            for(let i=0;i<this.manufacturerList.length;i++){
101
            for(let i=0;i<this.manufacturerList.length;i++){
102
               if(id == this.manufacturerList[i].id){
102
               if(id == this.manufacturerList[i].id){

+ 10 - 10
src/xt_pages/stock/selfPreparedMedicine/query.vue Ver fichero

142
          for(let i=0;i<this.tableData.length;i++){
142
          for(let i=0;i<this.tableData.length;i++){
143
             this.tableData[i].margin = (this.tableData[i].Total?this.tableData[i].Total:0) - this.tableData[i].Count
143
             this.tableData[i].margin = (this.tableData[i].Total?this.tableData[i].Total:0) - this.tableData[i].Count
144
          }
144
          }
145
-        
145
+
146
          const data = this.formatJson(filterVal, this.tableData)
146
          const data = this.formatJson(filterVal, this.tableData)
147
-      
147
+
148
          excel.export_json_to_excel({
148
          excel.export_json_to_excel({
149
            header: tHeader,
149
            header: tHeader,
150
            data,
150
            data,
167
       getAllMedicalList(){
167
       getAllMedicalList(){
168
         getAllMedicalList().then(response=>{
168
         getAllMedicalList().then(response=>{
169
           if(response.data.state == 1){
169
           if(response.data.state == 1){
170
-             var drugName =  response.data.data.drugName  
170
+             var drugName =  response.data.data.drugName
171
              var obj = {
171
              var obj = {
172
                id:0,
172
                id:0,
173
                drug_name:"全部"
173
                drug_name:"全部"
177
              arr.push(...drugName)
177
              arr.push(...drugName)
178
              console.log("arrr",arr)
178
              console.log("arrr",arr)
179
              this.drugName = arr
179
              this.drugName = arr
180
-     
180
+
181
              this.getlist()
181
              this.getlist()
182
           }
182
           }
183
         })
183
         })
199
              console.log("rulleName",arr)
199
              console.log("rulleName",arr)
200
              this.rulleName = arr
200
              this.rulleName = arr
201
            }
201
            }
202
-        })  
202
+        })
203
       },
203
       },
204
       searchAction(){
204
       searchAction(){
205
         this.getlist()
205
         this.getlist()
216
             }
216
             }
217
           }
217
           }
218
           this.drug_name = drug_name
218
           this.drug_name = drug_name
219
-          this.getRulleName(id)  
219
+          this.getRulleName(id)
220
         }
220
         }
221
         this.getlist()
221
         this.getlist()
222
       },
222
       },
253
         getAllPatientStockList(params).then(response=>{
253
         getAllPatientStockList(params).then(response=>{
254
             if(response.data.state == 1){
254
             if(response.data.state == 1){
255
               var stocklist = response.data.data.stocklist
255
               var stocklist = response.data.data.stocklist
256
-              
256
+
257
               for(let i=0;i<stocklist.length;i++){
257
               for(let i=0;i<stocklist.length;i++){
258
                  stocklist[i].index = i+1
258
                  stocklist[i].index = i+1
259
                  stocklist[i].Count = 0
259
                  stocklist[i].Count = 0
275
                           outStockList[i].Total = 0
275
                           outStockList[i].Total = 0
276
                        }
276
                        }
277
                       outStockList[i].Total = stocklist[j].Total
277
                       outStockList[i].Total = stocklist[j].Total
278
-                   } 
278
+                   }
279
                  }
279
                  }
280
               }
280
               }
281
 
281
 
282
               console.log("outStockList",outStockList)
282
               console.log("outStockList",outStockList)
283
               this.tableData = outStockList
283
               this.tableData = outStockList
284
             }
284
             }
285
-        })   
285
+        })
286
       }
286
       }
287
     },
287
     },
288
     created(){
288
     created(){
291
 
291
 
292
 
292
 
293
 
293
 
294
-      
294
+
295
     }
295
     }
296
 }
296
 }
297
 </script>
297
 </script>

+ 3 - 3
src/xt_pages/stock/selfPreparedMedicine/queryPrint.vue Ver fichero

118
                  for(let j=0;j<stocklist.length;j++){
118
                  for(let j=0;j<stocklist.length;j++){
119
                      if(outStockList[i].patient_id == stocklist[j].patient_id &&outStockList[i].drug_name == stocklist[j].drug_name && outStockList[i].drug_spec == stocklist[j].drug_spec){
119
                      if(outStockList[i].patient_id == stocklist[j].patient_id &&outStockList[i].drug_name == stocklist[j].drug_name && outStockList[i].drug_spec == stocklist[j].drug_spec){
120
                       outStockList[i].Total = stocklist[j].Total
120
                       outStockList[i].Total = stocklist[j].Total
121
-                   } 
121
+                   }
122
                  }
122
                  }
123
               }
123
               }
124
               console.log("stocklist99999",outStockList)
124
               console.log("stocklist99999",outStockList)
125
               this.tableData = outStockList
125
               this.tableData = outStockList
126
             }
126
             }
127
-        })   
127
+        })
128
       }
128
       }
129
     },
129
     },
130
     created(){
130
     created(){
167
       border: 1px solid;
167
       border: 1px solid;
168
       border-collapse: collapse;
168
       border-collapse: collapse;
169
       padding: 2px;
169
       padding: 2px;
170
-      
170
+
171
 
171
 
172
       thead {
172
       thead {
173
         tr {
173
         tr {

+ 11 - 11
src/xt_pages/stock/selfPreparedMedicine/stockquery.vue Ver fichero

62
           <el-button size="small" type="primary" @click="toPrint">打印</el-button>
62
           <el-button size="small" type="primary" @click="toPrint">打印</el-button>
63
         </div>
63
         </div>
64
       </div>
64
       </div>
65
-      
65
+
66
 
66
 
67
       <el-table
67
       <el-table
68
         :row-style="{ color: '#303133' }"
68
         :row-style="{ color: '#303133' }"
109
             <span>{{scope.row.total?scope.row.total:""}}</span>
109
             <span>{{scope.row.total?scope.row.total:""}}</span>
110
           </template>
110
           </template>
111
         </el-table-column>
111
         </el-table-column>
112
-       
112
+
113
       </el-table>
113
       </el-table>
114
       <el-pagination
114
       <el-pagination
115
         @size-change="handleSizeChange"
115
         @size-change="handleSizeChange"
169
     };
169
     };
170
   },
170
   },
171
   methods: {
171
   methods: {
172
-     
172
+
173
      getlist(){
173
      getlist(){
174
          var params ={
174
          var params ={
175
            type_name:this.type_name,
175
            type_name:this.type_name,
209
       this.page = val;
209
       this.page = val;
210
       this.getlist()
210
       this.getlist()
211
     },
211
     },
212
-  
212
+
213
     startTimeChange: function(val) {
213
     startTimeChange: function(val) {
214
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
214
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
215
-      
215
+
216
       if (time > 0) {
216
       if (time > 0) {
217
         this.$message.error("开始时间不能大于结束时间");
217
         this.$message.error("开始时间不能大于结束时间");
218
         this.start_time = "";
218
         this.start_time = "";
228
       } else {
228
       } else {
229
         this.getlist()
229
         this.getlist()
230
       }
230
       }
231
-     
231
+
232
     },
232
     },
233
-   
233
+
234
 
234
 
235
     search: function() {
235
     search: function() {
236
       this.getlist()
236
       this.getlist()
239
     exportList(){
239
     exportList(){
240
          import('@/vendor/Export2Excel').then(excel => {
240
          import('@/vendor/Export2Excel').then(excel => {
241
          const tHeader = ['药品名称', '规格名称', '入库数量','实际入库','出库数量','实际出库','剩余库存']
241
          const tHeader = ['药品名称', '规格名称', '入库数量','实际入库','出库数量','实际出库','剩余库存']
242
-         const filterVal = ['drug_name', 'drug_spec', 'Count','Count','outCount','outCount','total'] 
242
+         const filterVal = ['drug_name', 'drug_spec', 'Count','Count','outCount','outCount','total']
243
          const data = this.formatJson(filterVal, this.tableData)
243
          const data = this.formatJson(filterVal, this.tableData)
244
-      
244
+
245
          excel.export_json_to_excel({
245
          excel.export_json_to_excel({
246
            header: tHeader,
246
            header: tHeader,
247
            data,
247
            data,
258
       },
258
       },
259
       toPrint(){
259
       toPrint(){
260
         this.$router.push("/stock/selfstockprint?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keywords+"&type_name="+this.type_name)
260
         this.$router.push("/stock/selfstockprint?start_time="+this.start_time+"&end_time="+this.end_time+"&keyword="+this.keywords+"&type_name="+this.type_name)
261
-        
261
+
262
       },
262
       },
263
 
263
 
264
-     
264
+
265
       getTimestamp(time) {
265
       getTimestamp(time) {
266
       // 把时间日期转成时间戳
266
       // 把时间日期转成时间戳
267
       return new Date(time).getTime() / 1000;
267
       return new Date(time).getTime() / 1000;

+ 1 - 1
src/xt_pages/stock/selfStockPrint.vue Ver fichero

154
       border: 1px solid;
154
       border: 1px solid;
155
       border-collapse: collapse;
155
       border-collapse: collapse;
156
       padding: 2px;
156
       padding: 2px;
157
-      
157
+
158
 
158
 
159
       thead {
159
       thead {
160
         tr {
160
         tr {

+ 34 - 34
src/xt_pages/stock/stockInOrder.vue Ver fichero

15
     </div>
15
     </div>
16
 
16
 
17
     <div class="app-container">
17
     <div class="app-container">
18
-      
18
+
19
       <div class="cell clearfix">
19
       <div class="cell clearfix">
20
         <label class="title"><span class="name">仓库</span> :</label>
20
         <label class="title"><span class="name">仓库</span> :</label>
21
         <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeStoreHouse">
21
         <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeStoreHouse">
73
         </div>
73
         </div>
74
       </div>
74
       </div>
75
 
75
 
76
-      
76
+
77
 
77
 
78
       <div class="cell clearfix">
78
       <div class="cell clearfix">
79
         <el-checkbox
79
         <el-checkbox
287
     </div>
287
     </div>
288
 
288
 
289
 
289
 
290
-   
290
+
291
 
291
 
292
 
292
 
293
     <el-dialog
293
     <el-dialog
432
       width="80%"
432
       width="80%"
433
     >
433
     >
434
       <span>
434
       <span>
435
-       
435
+
436
         <div style="margin-bottom:10px">
436
         <div style="margin-bottom:10px">
437
           <label class="title"><span class="name">入库时间</span> : </label>
437
           <label class="title"><span class="name">入库时间</span> : </label>
438
           <el-date-picker size="small" v-model="warehousing_time" prefix-icon="el-icon-date" :editable="false"
438
           <el-date-picker size="small" v-model="warehousing_time" prefix-icon="el-icon-date" :editable="false"
564
 
564
 
565
           <el-table-column label="生产日期" width="250" align="center">
565
           <el-table-column label="生产日期" width="250" align="center">
566
             <template slot-scope="scope">
566
             <template slot-scope="scope">
567
-            
567
+
568
               <el-date-picker
568
               <el-date-picker
569
                 prefix-icon="el-icon-date"
569
                 prefix-icon="el-icon-date"
570
                 style="width: 145px"
570
                 style="width: 145px"
578
           </el-table-column>
578
           </el-table-column>
579
           <el-table-column label="有效日期" width="250" align="center">
579
           <el-table-column label="有效日期" width="250" align="center">
580
             <template slot-scope="scope">
580
             <template slot-scope="scope">
581
-             
581
+
582
               <el-date-picker
582
               <el-date-picker
583
                 prefix-icon="el-icon-date"
583
                 prefix-icon="el-icon-date"
584
                 style="width: 145px"
584
                 style="width: 145px"
590
               ></el-date-picker>
590
               ></el-date-picker>
591
             </template>
591
             </template>
592
           </el-table-column>
592
           </el-table-column>
593
-          
593
+
594
           <el-table-column label="备注" width="150" align="center">
594
           <el-table-column label="备注" width="150" align="center">
595
             <template slot-scope="scope">
595
             <template slot-scope="scope">
596
               <el-input v-model="scope.row.remark"></el-input>
596
               <el-input v-model="scope.row.remark"></el-input>
698
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
698
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
699
       "-" +
699
       "-" +
700
       (nowDay < 10 ? "0" + nowDay : nowDay);
700
       (nowDay < 10 ? "0" + nowDay : nowDay);
701
-     
701
+
702
     this.GetWarehouse();
702
     this.GetWarehouse();
703
     this.GetConfigInfo();
703
     this.GetConfigInfo();
704
     this.fetchAllAdminUsers();
704
     this.fetchAllAdminUsers();
705
     this.GetAllGoodType()
705
     this.GetAllGoodType()
706
     this.GetAllGoodInfo()
706
     this.GetAllGoodInfo()
707
 
707
 
708
-    
708
+
709
   },
709
   },
710
   data() {
710
   data() {
711
 
711
 
772
       form: {
772
       form: {
773
         manufacturer:0,
773
         manufacturer:0,
774
         dealer:0
774
         dealer:0
775
-      }, 
775
+      },
776
       warehousing_time: '',
776
       warehousing_time: '',
777
       warehouse:{},
777
       warehouse:{},
778
       propForm: {
778
       propForm: {
807
       list:[],
807
       list:[],
808
       storehouse_id:0,
808
       storehouse_id:0,
809
     };
809
     };
810
-    
811
-  
810
+
811
+
812
   },
812
   },
813
   methods: {
813
   methods: {
814
      changeCheck() {
814
      changeCheck() {
839
           for (let i = 0; i < response.data.data.list.length; i++) {
839
           for (let i = 0; i < response.data.data.list.length; i++) {
840
             this.Warehouse.warehouseDate.push(response.data.data.list[i]);
840
             this.Warehouse.warehouseDate.push(response.data.data.list[i]);
841
           }
841
           }
842
-        
842
+
843
         }
843
         }
844
       });
844
       });
845
     },
845
     },
871
           for(let i=0;i<response.data.data.houselist.length;i++){
871
           for(let i=0;i<response.data.data.houselist.length;i++){
872
             this.list.push(response.data.data.houselist[i])
872
             this.list.push(response.data.data.houselist[i])
873
           }
873
           }
874
-          
874
+
875
         }
875
         }
876
       });
876
       });
877
     },
877
     },
976
           this.$message.error(response.data.msg);
976
           this.$message.error(response.data.msg);
977
           return false;
977
           return false;
978
         } else {
978
         } else {
979
-          
979
+
980
           for (let i = 0; i < response.data.data.goodType.length; i++) {
980
           for (let i = 0; i < response.data.data.goodType.length; i++) {
981
             this.goodType.push(response.data.data.goodType[i]);
981
             this.goodType.push(response.data.data.goodType[i]);
982
           }
982
           }
989
           this.$message.error(response.data.msg);
989
           this.$message.error(response.data.msg);
990
           return false;
990
           return false;
991
         } else {
991
         } else {
992
-          
992
+
993
           for (let i = 0; i < response.data.data.goodInfo.length; i++) {
993
           for (let i = 0; i < response.data.data.goodInfo.length; i++) {
994
 
994
 
995
             this.goodInfo.push(response.data.data.goodInfo[i]);
995
             this.goodInfo.push(response.data.data.goodInfo[i]);
1114
       const params = {
1114
       const params = {
1115
         ids: idStr
1115
         ids: idStr
1116
       };
1116
       };
1117
-     
1117
+
1118
       this.$confirm("确认删除入库单记录?", "删除入库单记录", {
1118
       this.$confirm("确认删除入库单记录?", "删除入库单记录", {
1119
         confirmButtonText: "确定",
1119
         confirmButtonText: "确定",
1120
         cancelButtonText: "取消",
1120
         cancelButtonText: "取消",
1144
         })
1144
         })
1145
         .catch(() => {});
1145
         .catch(() => {});
1146
     },
1146
     },
1147
-   
1147
+
1148
     select(selection) {
1148
     select(selection) {
1149
       var ids= []
1149
       var ids= []
1150
       for(let i=0;i<selection.length;i++){
1150
       for(let i=0;i<selection.length;i++){
1177
           return false
1177
           return false
1178
         }
1178
         }
1179
       }
1179
       }
1180
-    
1180
+
1181
       const idStr = ids.join(",");
1181
       const idStr = ids.join(",");
1182
       const params = {
1182
       const params = {
1183
         ids: idStr
1183
         ids: idStr
1223
     handleSearch(val){
1223
     handleSearch(val){
1224
       this.tableList= []
1224
       this.tableList= []
1225
       this.GetOrderDetail(val.id)
1225
       this.GetOrderDetail(val.id)
1226
-      this.drug_id = val.id 
1226
+      this.drug_id = val.id
1227
 
1227
 
1228
     },
1228
     },
1229
 
1229
 
1249
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1249
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1250
 
1250
 
1251
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
1251
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
1252
-         
1252
+
1253
         }
1253
         }
1254
       });
1254
       });
1255
     },
1255
     },
1256
 
1256
 
1257
      editRecord: function() {
1257
      editRecord: function() {
1258
-     
1259
-     
1258
+
1259
+
1260
       this.editDialogVisible = true
1260
       this.editDialogVisible = true
1261
     },
1261
     },
1262
 
1262
 
1264
       const ids = [];
1264
       const ids = [];
1265
       ids.push(this.WarehouseInfo.warehouse.id);
1265
       ids.push(this.WarehouseInfo.warehouse.id);
1266
       const idStr = ids.join(",");
1266
       const idStr = ids.join(",");
1267
-     
1267
+
1268
       const params = {
1268
       const params = {
1269
         ids: idStr
1269
         ids: idStr
1270
       };
1270
       };
1295
     },
1295
     },
1296
 
1296
 
1297
      typeName: function(good_type_id) {
1297
      typeName: function(good_type_id) {
1298
-     
1298
+
1299
       let name = "";
1299
       let name = "";
1300
       for (let i = 0; i < this.goodType.length; i++) {
1300
       for (let i = 0; i < this.goodType.length; i++) {
1301
         if (this.goodType[i].id == good_type_id) {
1301
         if (this.goodType[i].id == good_type_id) {
1362
     },
1362
     },
1363
 
1363
 
1364
     specificationName: function(drug_id) {
1364
     specificationName: function(drug_id) {
1365
-     
1365
+
1366
         let name = "";
1366
         let name = "";
1367
         for (let i = 0; i < this.goodInfo.length; i++) {
1367
         for (let i = 0; i < this.goodInfo.length; i++) {
1368
           if (this.goodInfo[i].id == drug_id) {
1368
           if (this.goodInfo[i].id == drug_id) {
1370
           }
1370
           }
1371
         }
1371
         }
1372
         return name;
1372
         return name;
1373
-    }, 
1373
+    },
1374
 
1374
 
1375
      submit() {
1375
      submit() {
1376
       this.$refs["tableForm"].validate(valid => {
1376
       this.$refs["tableForm"].validate(valid => {
1406
               this.$message.success("入库成功");
1406
               this.$message.success("入库成功");
1407
               this.dialogVisible = false
1407
               this.dialogVisible = false
1408
               this.editDialogVisible = false
1408
               this.editDialogVisible = false
1409
-             
1409
+
1410
             }
1410
             }
1411
           });
1411
           });
1412
         } else {
1412
         } else {
1417
 
1417
 
1418
       changeManufacturer(val) {
1418
       changeManufacturer(val) {
1419
 
1419
 
1420
-      }, 
1420
+      },
1421
       changeDealer(val) {
1421
       changeDealer(val) {
1422
 
1422
 
1423
       },
1423
       },
1424
 
1424
 
1425
      DeleteWarehouseInfoItem: function(index, row) {
1425
      DeleteWarehouseInfoItem: function(index, row) {
1426
-       
1426
+
1427
       if (row.id == 0) {
1427
       if (row.id == 0) {
1428
         this.recordInfo.recordData.splice(index, 1);
1428
         this.recordInfo.recordData.splice(index, 1);
1429
       } else {
1429
       } else {
1525
         end_time:this.end_time,
1525
         end_time:this.end_time,
1526
         storehouse_id:this.storehouse_id,
1526
         storehouse_id:this.storehouse_id,
1527
       }
1527
       }
1528
-     
1528
+
1529
       getExportStockList(params).then(response=>{
1529
       getExportStockList(params).then(response=>{
1530
         if(response.data.state == 1){
1530
         if(response.data.state == 1){
1531
            var list = response.data.data.list
1531
            var list = response.data.data.list
1532
-          
1532
+
1533
            for(let i=0;i<this.goodType.length;i++){
1533
            for(let i=0;i<this.goodType.length;i++){
1534
              for(let j=0;j<list.length;j++){
1534
              for(let j=0;j<list.length;j++){
1535
                if(this.goodType[i].id == list[j].good_type_id){
1535
                if(this.goodType[i].id == list[j].good_type_id){
1579
           this.exportList[i].good_type_id = ""
1579
           this.exportList[i].good_type_id = ""
1580
         }
1580
         }
1581
       }
1581
       }
1582
-    
1582
+
1583
       const tHeader = ['耗材名称','耗材类型', '规格&单位','批号','入库数量','进货价','总价','生产厂家','生产日期','有效期','经销商','批准文号','备注']
1583
       const tHeader = ['耗材名称','耗材类型', '规格&单位','批号','入库数量','进货价','总价','生产厂家','生产日期','有效期','经销商','批准文号','备注']
1584
       const filterVal = ['good_name', 'good_type_id', 'unit','number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','license_number','remark']
1584
       const filterVal = ['good_name', 'good_type_id', 'unit','number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','license_number','remark']
1585
 
1585
 
1586
 
1586
 
1587
-     
1587
+
1588
       const data = this.formatJson(filterVal, this.exportList)
1588
       const data = this.formatJson(filterVal, this.exportList)
1589
       excel.export_json_to_excel({
1589
       excel.export_json_to_excel({
1590
         header: tHeader,
1590
         header: tHeader,

+ 6 - 6
src/xt_pages/stock/stockOutOrderDetail.vue Ver fichero

124
     created() {
124
     created() {
125
       const order_id = this.$route.query.id
125
       const order_id = this.$route.query.id
126
       const warehouse_out_time = this.$route.query.warehouse_out_time
126
       const warehouse_out_time = this.$route.query.warehouse_out_time
127
-     
127
+
128
       this.GetConfigInfo()
128
       this.GetConfigInfo()
129
       this.GetOrderDetail(order_id)
129
       this.GetOrderDetail(order_id)
130
       this.GetTotalCount(warehouse_out_time)
130
       this.GetTotalCount(warehouse_out_time)
211
             return this.dealer[i].dealer_name
211
             return this.dealer[i].dealer_name
212
           }
212
           }
213
         }
213
         }
214
-      }, 
214
+      },
215
       calculate: function(val) {
215
       calculate: function(val) {
216
         if (val == 0) {
216
         if (val == 0) {
217
           return ''
217
           return ''
224
         }
224
         }
225
         getWarehouseOutInfo(params).then(response => {
225
         getWarehouseOutInfo(params).then(response => {
226
           if (response.data.state == 0) {
226
           if (response.data.state == 0) {
227
- 
227
+
228
             this.$message.error(response.data.msg)
228
             this.$message.error(response.data.msg)
229
             return false
229
             return false
230
           } else {
230
           } else {
233
               this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
233
               this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
234
             }
234
             }
235
             this.warehousingOutInfo.info = response.data.data.info
235
             this.warehousingOutInfo.info = response.data.data.info
236
-          
237
-          
236
+
237
+
238
             this.handleSpanTempArr()
238
             this.handleSpanTempArr()
239
           }
239
           }
240
         })
240
         })
339
       },
339
       },
340
 
340
 
341
       getOutStockCount(id){
341
       getOutStockCount(id){
342
-         var count = 0 
342
+         var count = 0
343
          for(let i=0;i<this.stockCount.length;i++){
343
          for(let i=0;i<this.stockCount.length;i++){
344
             if(id == this.stockCount[i].good_id){
344
             if(id == this.stockCount[i].good_id){
345
               count = this.stockCount[i].count
345
               count = this.stockCount[i].count

+ 14 - 14
src/xt_pages/stock/stockQuery.vue Ver fichero

18
             </el-option>
18
             </el-option>
19
           </el-select>
19
           </el-select>
20
           <span>耗材名称:</span>
20
           <span>耗材名称:</span>
21
-          <el-select v-model="good_id" style="width:250px;margin-right:10px;" placeholder="请选择" 
21
+          <el-select v-model="good_id" style="width:250px;margin-right:10px;" placeholder="请选择"
22
           filterable
22
           filterable
23
            @change="changeGoodName">
23
            @change="changeGoodName">
24
             <el-option
24
             <el-option
138
         </el-table-column>
138
         </el-table-column>
139
        <el-table-column label="入库数量" align="center">
139
        <el-table-column label="入库数量" align="center">
140
          <template slot-scope="scope">
140
          <template slot-scope="scope">
141
-          
141
+
142
             <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
142
             <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
143
               <td style="border-right: none; border-inline-end: none;text-align: center">
143
               <td style="border-right: none; border-inline-end: none;text-align: center">
144
                {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
144
                {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
158
          </span>
158
          </span>
159
          </template>
159
          </template>
160
        </el-table-column>
160
        </el-table-column>
161
-      
161
+
162
         <el-table-column label="剩余库存量" align="center">
162
         <el-table-column label="剩余库存量" align="center">
163
          <template slot-scope="scope">
163
          <template slot-scope="scope">
164
-           <span v-if="org_id == 9675 || org_id == 3907 || org_id == 9583"> 
164
+           <span v-if="org_id == 9675 || org_id == 3907 || org_id == 9583">
165
              {{
165
              {{
166
               getWareInfo(scope.row.xt_warehouse_info) -
166
               getWareInfo(scope.row.xt_warehouse_info) -
167
               getAutoCount(scope.row.id) -
167
               getAutoCount(scope.row.id) -
194
            </span>
194
            </span>
195
          </template>
195
          </template>
196
        </el-table-column>
196
        </el-table-column>
197
-        
197
+
198
       <el-table-column label="总库存量" align="center" v-if="showTwo">
198
       <el-table-column label="总库存量" align="center" v-if="showTwo">
199
          <template slot-scope="scope">
199
          <template slot-scope="scope">
200
           <span>{{getWareInfoCountTwo(scope.row.xt_warehouse_info)}} </span>
200
           <span>{{getWareInfoCountTwo(scope.row.xt_warehouse_info)}} </span>
463
 
463
 
464
           if(this.end_time == ""){
464
           if(this.end_time == ""){
465
             if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919  || this.org_id == 10265 || this.org_id ==10164 || this.org_id == 10290){
465
             if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919  || this.org_id == 10265 || this.org_id ==10164 || this.org_id == 10290){
466
-              this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info) 
466
+              this.tableList[i].outCount  = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getOverFlushInfo(this.tableList[i].xt_warehouse_info) + this.getCancelSotckInfo(this.tableList[i].cancel_stock_info)
467
             }else{
467
             }else{
468
               this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
468
               this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
469
             }
469
             }
470
-            
470
+
471
             if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10290){
471
             if(this.org_id == 9671 || this.org_id == 10138 || this.org_id == 10028 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9779 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id ==  10088 || this.org_id == 10191 || this.org_id == 9919 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10290){
472
                 this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
472
                 this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
473
             }else{
473
             }else{
477
             this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
477
             this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
478
             this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
478
             this.tableList[i].overplus = this.getWareInfo(this.tableList[i].xt_warehouse_info) - this.getAutoCount(this.tableList[i].id) - this.getOutCount(this.tableList[i].id) + this.getCancelCount(this.tableList[i].id)
479
           }
479
           }
480
-          
480
+
481
 
481
 
482
          }
482
          }
483
          const data = this.formatJson(filterVal, this.tableList)
483
          const data = this.formatJson(filterVal, this.tableList)
546
             }
546
             }
547
           }
547
           }
548
          this.tableList = arr
548
          this.tableList = arr
549
-        
549
+
550
           var total = response.data.data.total
550
           var total = response.data.data.total
551
           this.total = total
551
           this.total = total
552
           var manufacturerList = response.data.data.manufacturerList
552
           var manufacturerList = response.data.data.manufacturerList
603
            var outlist = response.data.data.outList
603
            var outlist = response.data.data.outList
604
            this.outCountList = outlist
604
            this.outCountList = outlist
605
            var autoCount = response.data.data.autoCount
605
            var autoCount = response.data.data.autoCount
606
-        
606
+
607
            this.autoCountList = autoCount
607
            this.autoCountList = autoCount
608
            var totalCount = response.data.data.totalCount
608
            var totalCount = response.data.data.totalCount
609
-         
609
+
610
            this.cancelCountList = totalCount
610
            this.cancelCountList = totalCount
611
          }
611
          }
612
       })
612
       })
699
      return total
699
      return total
700
    },
700
    },
701
    getCancelSotckInfo(arr){
701
    getCancelSotckInfo(arr){
702
-    
702
+
703
      var cancle_toal = 0
703
      var cancle_toal = 0
704
      if(arr.length >0){
704
      if(arr.length >0){
705
       for(let z=0;z<arr.length;z++){
705
       for(let z=0;z<arr.length;z++){
759
      }else{
759
      }else{
760
        return ""
760
        return ""
761
      }
761
      }
762
-   }, 
762
+   },
763
    getWareInfoCountTwo(val,storehouse_id){
763
    getWareInfoCountTwo(val,storehouse_id){
764
      var count = 0
764
      var count = 0
765
      if(val.length > 0){
765
      if(val.length > 0){
766
        for(let i=0;i<val.length;i++){
766
        for(let i=0;i<val.length;i++){
767
-         count +=val[i].stock_count   
767
+         count +=val[i].stock_count
768
        }
768
        }
769
      }
769
      }
770
      if(count > 0){
770
      if(count > 0){

+ 2 - 2
src/xt_pages/supply/components/addPurchaseOrder.vue Ver fichero

915
                 orderInfo[i].supply_total = orderInfo[i].supply_total
915
                 orderInfo[i].supply_total = orderInfo[i].supply_total
916
               }
916
               }
917
               this.recordInfo.tableList = orderInfo;
917
               this.recordInfo.tableList = orderInfo;
918
-            
918
+
919
               this.$message.success("保存成功!");
919
               this.$message.success("保存成功!");
920
             }
920
             }
921
           });
921
           });
936
       return total_price.toFixed(2);
936
       return total_price.toFixed(2);
937
     },
937
     },
938
 
938
 
939
-    
939
+
940
     count_discount() {
940
     count_discount() {
941
       this.rate_of_concession = (
941
       this.rate_of_concession = (
942
         this.discount_amount /
942
         this.discount_amount /

+ 9 - 9
src/xt_pages/supply/components/editGoodOrder.vue Ver fichero

46
 
46
 
47
           <span>单据编码:{{ good_number }}</span>
47
           <span>单据编码:{{ good_number }}</span>
48
         </div>
48
         </div>
49
-      
49
+
50
          <div style="display: flex;" >
50
          <div style="display: flex;" >
51
            <el-button size="small" type="primary" @click="updateGoodOrder">保存</el-button>
51
            <el-button size="small" type="primary" @click="updateGoodOrder">保存</el-button>
52
           <el-button
52
           <el-button
267
             </template>
267
             </template>
268
           </el-table-column>
268
           </el-table-column>
269
 
269
 
270
-      
270
+
271
 
271
 
272
           <el-table-column label="采购金额" align="center" width="120px">
272
           <el-table-column label="采购金额" align="center" width="120px">
273
             <template slot-scope="scope">
273
             <template slot-scope="scope">
727
           this.recordInfo.tableList[i].supply_type = val.supply_type;
727
           this.recordInfo.tableList[i].supply_type = val.supply_type;
728
           this.recordInfo.tableList[i].supply_specification_name = val.supply_specification_name;
728
           this.recordInfo.tableList[i].supply_specification_name = val.supply_specification_name;
729
           this.recordInfo.tableList[i].supply_total = val.supply_total;
729
           this.recordInfo.tableList[i].supply_total = val.supply_total;
730
-          this.recordInfo.tableList[i].min_price = val.min_price  
730
+          this.recordInfo.tableList[i].min_price = val.min_price
731
           if (val.supply_count == NaN) {
731
           if (val.supply_count == NaN) {
732
             this.recordInfo.tableList[i].supply_count = "";
732
             this.recordInfo.tableList[i].supply_count = "";
733
           } else {
733
           } else {
863
       }else{
863
       }else{
864
         return ""
864
         return ""
865
       }
865
       }
866
-      
866
+
867
     },
867
     },
868
     calculate: function (val) {
868
     calculate: function (val) {
869
       if (isNaN(val)) {
869
       if (isNaN(val)) {
975
           }else{
975
           }else{
976
             this.arrearage = ""
976
             this.arrearage = ""
977
           }
977
           }
978
-          
978
+
979
           this.number = out.number;
979
           this.number = out.number;
980
           this.good_number = out.good_number;
980
           this.good_number = out.good_number;
981
           this.return_remark = out.return_remake;
981
           this.return_remark = out.return_remake;
982
-          
982
+
983
           this.start_time = this.getTimes(out.document_date);
983
           this.start_time = this.getTimes(out.document_date);
984
           var orderInfo = response.data.data.list;
984
           var orderInfo = response.data.data.list;
985
 
985
 
1122
           console.log("changed111111",this.tableDataList.length)
1122
           console.log("changed111111",this.tableDataList.length)
1123
            console.log("changed111111",this.recordInfo.tableList.length)
1123
            console.log("changed111111",this.recordInfo.tableList.length)
1124
           if(this.tableDataList.length > this.recordInfo.tableList.length){
1124
           if(this.tableDataList.length > this.recordInfo.tableList.length){
1125
-            
1125
+
1126
              for(let i=0;i<this.recordInfo.tableList.length;i++){
1126
              for(let i=0;i<this.recordInfo.tableList.length;i++){
1127
               this.recordInfo.tableList[i].warehousing_id = 0
1127
               this.recordInfo.tableList[i].warehousing_id = 0
1128
               this.recordInfo.tableList[i].warehouse_info_id = 0
1128
               this.recordInfo.tableList[i].warehouse_info_id = 0
1131
              }
1131
              }
1132
           }
1132
           }
1133
           console.log("param23322332323",params)
1133
           console.log("param23322332323",params)
1134
-         
1134
+
1135
           updateGoodOrder(params,this.supplier_name,start,this.arrearage,this.payment,warehose_out_id,this.number,this.rate_of_concession,this.discount_amount,this.good_number).then((response) => {
1135
           updateGoodOrder(params,this.supplier_name,start,this.arrearage,this.payment,warehose_out_id,this.number,this.rate_of_concession,this.discount_amount,this.good_number).then((response) => {
1136
             if (response.data.state == 1) {
1136
             if (response.data.state == 1) {
1137
               this.loading = false;
1137
               this.loading = false;
1384
         warehousing_id: warehousing_id,
1384
         warehousing_id: warehousing_id,
1385
       };
1385
       };
1386
       console.log("return2332232333",params)
1386
       console.log("return2332232333",params)
1387
-    
1387
+
1388
       MofyGoodOrder(params).then((response) => {
1388
       MofyGoodOrder(params).then((response) => {
1389
         if (response.data.state == 1) {
1389
         if (response.data.state == 1) {
1390
           var msg = response.data.data.msg;
1390
           var msg = response.data.data.msg;

+ 31 - 31
src/xt_pages/supply/components/editGoodReturn.vue Ver fichero

242
             </template>
242
             </template>
243
           </el-table-column>
243
           </el-table-column>
244
 
244
 
245
-         
245
+
246
           <el-table-column label="折扣率(%)" align="center" width="120px">
246
           <el-table-column label="折扣率(%)" align="center" width="120px">
247
             <template slot-scope="scope">
247
             <template slot-scope="scope">
248
                <el-input
248
                <el-input
260
               <div style="visibility: hidden">/</div>
260
               <div style="visibility: hidden">/</div>
261
             </template>
261
             </template>
262
           </el-table-column>
262
           </el-table-column>
263
-         
263
+
264
           <el-table-column label="采购金额" align="center" width="120px">
264
           <el-table-column label="采购金额" align="center" width="120px">
265
             <template slot-scope="scope">
265
             <template slot-scope="scope">
266
              {{ calculate(scope.row.supply_count * scope.row.supply_price - (scope.row.supply_count * scope.row.supply_price * (scope.row.deposit_rate/100)))}}
266
              {{ calculate(scope.row.supply_count * scope.row.supply_price - (scope.row.supply_count * scope.row.supply_price * (scope.row.deposit_rate/100)))}}
267
               <div style="visibility: hidden">/</div>
267
               <div style="visibility: hidden">/</div>
268
             </template>
268
             </template>
269
           </el-table-column>
269
           </el-table-column>
270
-           
270
+
271
           <el-table-column label="生产厂家" align="center" width="200px">
271
           <el-table-column label="生产厂家" align="center" width="200px">
272
             <template slot-scope="scope">
272
             <template slot-scope="scope">
273
               <el-input
273
               <el-input
575
               drugList[i].min_unit,
575
               drugList[i].min_unit,
576
               drugList[i].min_number
576
               drugList[i].min_number
577
             );
577
             );
578
-            
578
+
579
             drugList[i].supply_count = "";
579
             drugList[i].supply_count = "";
580
             drugList[i].supply_total_price = "";
580
             drugList[i].supply_total_price = "";
581
             drugList[i].supply_manufacturer = drugList[i].manufacturer;
581
             drugList[i].supply_manufacturer = drugList[i].manufacturer;
661
       this.currentIndex = val;
661
       this.currentIndex = val;
662
     },
662
     },
663
     changeName(val) {
663
     changeName(val) {
664
-    
664
+
665
       for (let i = 0; i < this.recordInfo.tableList.length; i++) {
665
       for (let i = 0; i < this.recordInfo.tableList.length; i++) {
666
         if (this.currentIndex == i) {
666
         if (this.currentIndex == i) {
667
           this.recordInfo.tableList[i].project_id = val.id;
667
           this.recordInfo.tableList[i].project_id = val.id;
694
           this.recordInfo.tableList[i].unitList = val.unitList;
694
           this.recordInfo.tableList[i].unitList = val.unitList;
695
           this.recordInfo.tableList[i].count = val.count
695
           this.recordInfo.tableList[i].count = val.count
696
           this.recordInfo.tableList[i].sum_count = val.sum_count
696
           this.recordInfo.tableList[i].sum_count = val.sum_count
697
-          
697
+
698
           if(val.type == 1){
698
           if(val.type == 1){
699
             this.recordInfo.tableList[i].min_number = val.min_number
699
             this.recordInfo.tableList[i].min_number = val.min_number
700
             this.recordInfo.tableList[i].max_unit = val.max_unit
700
             this.recordInfo.tableList[i].max_unit = val.max_unit
704
              this.recordInfo.tableList[i].min_unit = ""
704
              this.recordInfo.tableList[i].min_unit = ""
705
              this.recordInfo.tableList[i].min_number = ""
705
              this.recordInfo.tableList[i].min_number = ""
706
           }
706
           }
707
-          
708
-         
707
+
708
+
709
         }
709
         }
710
       }
710
       }
711
     },
711
     },
783
             })
783
             })
784
           }).catch(() => {
784
           }).catch(() => {
785
         })
785
         })
786
-   
786
+
787
       }
787
       }
788
     },
788
     },
789
     getWarehoseInfo(arr, max_unit, min_unit, min_number) {
789
     getWarehoseInfo(arr, max_unit, min_unit, min_number) {
824
           if(supply_warehouse_detail_info == arr[i].supply_warehouse_detail_info){
824
           if(supply_warehouse_detail_info == arr[i].supply_warehouse_detail_info){
825
              newArr.push(arr[i])
825
              newArr.push(arr[i])
826
           }
826
           }
827
-         
827
+
828
         }
828
         }
829
       }
829
       }
830
       if(newArr.length >0){
830
       if(newArr.length >0){
868
       }else{
868
       }else{
869
         return ""
869
         return ""
870
       }
870
       }
871
-    
871
+
872
     },
872
     },
873
     getTotalStockCountTwo(arr) {
873
     getTotalStockCountTwo(arr) {
874
       var total_count = 0;
874
       var total_count = 0;
876
         total_count += arr[i].stock_count;
876
         total_count += arr[i].stock_count;
877
       }
877
       }
878
       return total_count
878
       return total_count
879
-    
879
+
880
     },
880
     },
881
     calculate: function (val) {
881
     calculate: function (val) {
882
       if (isNaN(val)) {
882
       if (isNaN(val)) {
964
       }else{
964
       }else{
965
         return ""
965
         return ""
966
       }
966
       }
967
-     
967
+
968
     },
968
     },
969
 
969
 
970
      addressChange() {
970
      addressChange() {
982
 
982
 
983
     count_discount() {
983
     count_discount() {
984
       this.rate_of_concession = (this.discount_amount /(this.total_price * 0.01)).toFixed(2);
984
       this.rate_of_concession = (this.discount_amount /(this.total_price * 0.01)).toFixed(2);
985
-      
985
+
986
       if(this.payment > 0) this.count_payment()
986
       if(this.payment > 0) this.count_payment()
987
     },
987
     },
988
 
988
 
1006
     getSupplyCount(supply_count,sum_count,supply_unit,type,min_number,max_unit,min_unit,index){
1006
     getSupplyCount(supply_count,sum_count,supply_unit,type,min_number,max_unit,min_unit,index){
1007
       console.log("sum_count2323232",sum_count)
1007
       console.log("sum_count2323232",sum_count)
1008
       var total_count = 0
1008
       var total_count = 0
1009
-      
1009
+
1010
       if(type == 1){
1010
       if(type == 1){
1011
        if(supply_unit == max_unit){
1011
        if(supply_unit == max_unit){
1012
           total_count = supply_count * min_number
1012
           total_count = supply_count * min_number
1031
           }
1031
           }
1032
          }
1032
          }
1033
       }
1033
       }
1034
-       
1034
+
1035
       if(type == 2){
1035
       if(type == 2){
1036
          if(supply_count > sum_count){
1036
          if(supply_count > sum_count){
1037
           this.$message.error("数量不能大于可退数量!")
1037
           this.$message.error("数量不能大于可退数量!")
1048
           }
1048
           }
1049
          }
1049
          }
1050
       }
1050
       }
1051
-    
1051
+
1052
     },
1052
     },
1053
     getGoodReturnDetail() {
1053
     getGoodReturnDetail() {
1054
       var id = this.$route.query.id;
1054
       var id = this.$route.query.id;
1056
         if (response.data.state == 1) {
1056
         if (response.data.state == 1) {
1057
           var out = response.data.data.cancelDetail;
1057
           var out = response.data.data.cancelDetail;
1058
           console.log("out23322323232323", out);
1058
           console.log("out23322323232323", out);
1059
-        
1059
+
1060
           this.warehouse_out_id = out.warehouse_out_id;
1060
           this.warehouse_out_id = out.warehouse_out_id;
1061
           this.number = out.number;
1061
           this.number = out.number;
1062
           this.is_check = out.is_check;
1062
           this.is_check = out.is_check;
1067
           }else{
1067
           }else{
1068
              this.rate_of_concession = ""
1068
              this.rate_of_concession = ""
1069
           }
1069
           }
1070
-          
1070
+
1071
           if(out.discount_amount > 0){
1071
           if(out.discount_amount > 0){
1072
            this.discount_amount = out.discount_amount;
1072
            this.discount_amount = out.discount_amount;
1073
           }else{
1073
           }else{
1079
           }else{
1079
           }else{
1080
             this.payment = ""
1080
             this.payment = ""
1081
           }
1081
           }
1082
-          
1082
+
1083
           if(out.arrearage>0){
1083
           if(out.arrearage>0){
1084
             this.arrearage = out.arrearage;
1084
             this.arrearage = out.arrearage;
1085
           }else{
1085
           }else{
1086
              this.arrearage = ""
1086
              this.arrearage = ""
1087
           }
1087
           }
1088
-          
1089
-          
1090
-         
1088
+
1089
+
1090
+
1091
           this.return_remark = out.return_remark
1091
           this.return_remark = out.return_remark
1092
           this.start_time = this.getTimes(out.document_date);
1092
           this.start_time = this.getTimes(out.document_date);
1093
           var orderInfo = response.data.data.orderCancelDetail;
1093
           var orderInfo = response.data.data.orderCancelDetail;
1139
                   orderInfo[i].min_number =  drugList[j].min_number
1139
                   orderInfo[i].min_number =  drugList[j].min_number
1140
                   orderInfo[i].max_unit =drugList[j].max_unit
1140
                   orderInfo[i].max_unit =drugList[j].max_unit
1141
                   orderInfo[i].min_unit =drugList[j].min_unit
1141
                   orderInfo[i].min_unit =drugList[j].min_unit
1142
-                 
1142
+
1143
                   orderInfo[i].sum_count = this.getWarehoseInfoTwo(drugList[j].drug_warehouse_info,drugList[j].max_unit,drugList[j].min_unit,drugList[j].min_number)
1143
                   orderInfo[i].sum_count = this.getWarehoseInfoTwo(drugList[j].drug_warehouse_info,drugList[j].max_unit,drugList[j].min_unit,drugList[j].min_number)
1144
                   // orderInfo[i].count = this.getWarehoseInfoSix(drugList[j].drug_warehouse_info,drugList[j].max_unit,drugList[j].min_unit,drugList[j].min_number,orderInfo[i].supply_warehouse_detail_info)
1144
                   // orderInfo[i].count = this.getWarehoseInfoSix(drugList[j].drug_warehouse_info,drugList[j].max_unit,drugList[j].min_unit,drugList[j].min_number,orderInfo[i].supply_warehouse_detail_info)
1145
                  // orderInfo[i].supply_total = this.getWarehoseInfoSix(drugList[j].drug_warehouse_info,drugList[j].max_unit,drugList[j].min_unit,drugList[j].min_number,orderInfo[i].supply_warehouse_detail_info)
1145
                  // orderInfo[i].supply_total = this.getWarehoseInfoSix(drugList[j].drug_warehouse_info,drugList[j].max_unit,drugList[j].min_unit,drugList[j].min_number,orderInfo[i].supply_warehouse_detail_info)
1146
                 }
1146
                 }
1147
-                
1147
+
1148
               }
1148
               }
1149
-             orderInfo[i].count = orderInfo[i].count 
1149
+             orderInfo[i].count = orderInfo[i].count
1150
              orderInfo[i].supply_total = orderInfo[i].supply_total
1150
              orderInfo[i].supply_total = orderInfo[i].supply_total
1151
-             
1151
+
1152
             }
1152
             }
1153
             if (orderInfo[i].is_source == 2) {
1153
             if (orderInfo[i].is_source == 2) {
1154
               for (let j = 0; j < goodList.length; j++) {
1154
               for (let j = 0; j < goodList.length; j++) {
1163
               orderInfo[i].min_number = 0
1163
               orderInfo[i].min_number = 0
1164
               orderInfo[i].count = orderInfo[i].count;
1164
               orderInfo[i].count = orderInfo[i].count;
1165
               orderInfo[i].supply_total = orderInfo[i].supply_total
1165
               orderInfo[i].supply_total = orderInfo[i].supply_total
1166
-             
1166
+
1167
               orderInfo[i].max_unit =""
1167
               orderInfo[i].max_unit =""
1168
               orderInfo[i].min_unit =""
1168
               orderInfo[i].min_unit =""
1169
             }
1169
             }
1221
             return_marke: this.return_remark,
1221
             return_marke: this.return_remark,
1222
           };
1222
           };
1223
           console.log("parms32322332",params)
1223
           console.log("parms32322332",params)
1224
-          
1224
+
1225
           updateGoodReturn(
1225
           updateGoodReturn(
1226
             params,
1226
             params,
1227
             warehouse_out_id,
1227
             warehouse_out_id,
1254
         if (response.data.state == 1) {
1254
         if (response.data.state == 1) {
1255
           this.loading = false;
1255
           this.loading = false;
1256
           var msg = response.data.data.msg;
1256
           var msg = response.data.data.msg;
1257
-         
1257
+
1258
           if(msg == 1){
1258
           if(msg == 1){
1259
            this.$message.success("审核成功!");
1259
            this.$message.success("审核成功!");
1260
            this.is_check = 1
1260
            this.is_check = 1
1261
            this.Reviewed = true
1261
            this.Reviewed = true
1262
            this.disabled = true
1262
            this.disabled = true
1263
-          
1263
+
1264
           }
1264
           }
1265
           if(msg == 2){
1265
           if(msg == 2){
1266
             var good_name = response.data.data.good_name
1266
             var good_name = response.data.data.good_name

+ 4 - 4
src/xt_pages/user/coursePrint.vue Ver fichero

57
 
57
 
58
             <div class="inline_block" style="width:100%;">
58
             <div class="inline_block" style="width:100%;">
59
               <div v-html="item.content" class="printP">
59
               <div v-html="item.content" class="printP">
60
-                 
60
+
61
               </div>
61
               </div>
62
             </div>
62
             </div>
63
           </div>
63
           </div>
108
         ids:ids,
108
         ids:ids,
109
         patient_id:patient_id,
109
         patient_id:patient_id,
110
       }
110
       }
111
-   
111
+
112
       GetCoursePrintData(params).then(rs => {
112
       GetCoursePrintData(params).then(rs => {
113
         var resp = rs.data
113
         var resp = rs.data
114
         if (resp.state == 1) {
114
         if (resp.state == 1) {
115
           this.record = resp.data.record
115
           this.record = resp.data.record
116
-         
116
+
117
           // for(let i=0;i<this.record.length;i++){
117
           // for(let i=0;i<this.record.length;i++){
118
           //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
118
           //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
119
           // }
119
           // }
120
-  
120
+
121
           this.patient = resp.data.patient
121
           this.patient = resp.data.patient
122
 
122
 
123
           this.loading = false
123
           this.loading = false

+ 14 - 3
src/xt_pages/user/doctorAdvice.vue Ver fichero

671
                   </template>
671
                   </template>
672
                 </el-table-column>
672
                 </el-table-column>
673
                 <el-table-column
673
                 <el-table-column
674
-                  label="开药数量"
674
+                  label="开药数量!"
675
                   min-width="80"
675
                   min-width="80"
676
                   property="prescribing_number"
676
                   property="prescribing_number"
677
                   align="center"
677
                   align="center"
948
         >
948
         >
949
           <el-row>
949
           <el-row>
950
             <el-col :span="10">
950
             <el-col :span="10">
951
-              <el-form-item label="医嘱内容:" required prop="advice_name">
951
+              <el-form-item label="医嘱内容:" required prop="advice_name"><!--第二处-->
952
                <el-autocomplete
952
                <el-autocomplete
953
                 style="width:100%;"
953
                 style="width:100%;"
954
                 class="inline-input"
954
                 class="inline-input"
1019
                       v-for="item in unitsOption"
1019
                       v-for="item in unitsOption"
1020
                       :key="item.id"
1020
                       :key="item.id"
1021
                       :label="item.name"
1021
                       :label="item.name"
1022
-                      :value="item.name"
1022
+                      :value="item.id"
1023
                     >
1023
                     >
1024
                     </el-option>
1024
                     </el-option>
1025
                   </el-select>
1025
                   </el-select>
4617
         this.nameForm.drug_id = val.drug_id
4617
         this.nameForm.drug_id = val.drug_id
4618
         this.nameForm.way = 1
4618
         this.nameForm.way = 1
4619
         this.nameForm.drug_name_id = val.drug_id
4619
         this.nameForm.drug_name_id = val.drug_id
4620
+        var tmp = val.drug_specs[0]
4621
+        console.log("tmp",tmp)
4622
+        this.nameForm.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
4623
+        this.nameForm.drug_spec_unit = tmp.max_unit
4624
+        this.nameForm.prescribing_number = tmp.prescribing_number//开药数量
4625
+        this.nameForm.prescribing_number_unit = tmp.prescribing_number_unit
4626
+        this.nameForm.single_dose = tmp.single_dose//单次用量
4627
+        this.nameForm.single_dose_unit = tmp.drug_dose_unit
4628
+        this.nameForm.delivery_way = tmp.delivery_way//给药途径
4629
+        this.nameForm.execution_frequency = tmp.execution_frequency//执行频率
4630
+        this.nameForm.drug_id = tmp.id
4620
       }
4631
       }
4621
   },
4632
   },
4622
   watch: {
4633
   watch: {