mainqaq 2 年之前
父節點
當前提交
6bcc85defc
共有 68 個文件被更改,包括 1379 次插入895 次删除
  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 查看文件

@@ -9,6 +9,15 @@ export function getuserlist(params) {
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 22
 export function gethisuser(params) {
14 23
   return request({
@@ -99,7 +108,7 @@ export function rechargesummary(params) {
99 108
   })
100 109
 }
101 110
 
102
-//根据患者id获取押金流水
111
+//根据患者id获取押金流水=
103 112
 export function depositflow(params) {
104 113
   return request({
105 114
     url: '/api/his/depositflow',
@@ -153,7 +162,7 @@ export function deleterefund(params) {
153 162
   })
154 163
 }
155 164
 
156
-//退款分页=
165
+//退款列表=
157 166
 export function refundlist(params) {
158 167
   return request({
159 168
     url: '/api/his/refundlist',
@@ -162,7 +171,7 @@ export function refundlist(params) {
162 171
   })
163 172
 }
164 173
 
165
-//获取机构名称
174
+//获取机构名称=
166 175
 export function getorgname(params) {
167 176
   return request({
168 177
     url: '/api/his/getorgname',
@@ -170,3 +179,21 @@ export function getorgname(params) {
170 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 查看文件

@@ -35,13 +35,13 @@
35 35
                 style="width: 200px; margin-left: 10px"
36 36
                 class="filter-item"
37 37
                 placeholder="请输入编号/患者名称"
38
-                v-model.trim="keyword"
38
+                v-model.trim="tmp_keyword"
39 39
               />
40 40
             </div>
41 41
 
42 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 45
                 <el-option
46 46
                   v-for="item in refundtypelist"
47 47
                   :key="item.name"
@@ -54,7 +54,7 @@
54 54
 
55 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 58
                 <el-option
59 59
                   v-for="item in examinelist"
60 60
                   :key="item.name"
@@ -68,7 +68,7 @@
68 68
             <div style="width: 465px;white-space: nowrap;">
69 69
               <span>日期查询:</span>
70 70
               <el-date-picker
71
-                v-model="value1"
71
+                v-model="tmp_value1"
72 72
                 type="daterange"
73 73
                 range-separator="至"
74 74
                 start-placeholder="开始日期"
@@ -83,7 +83,7 @@
83 83
               class="filter-item"
84 84
               type="primary"
85 85
               icon="el-icon-search"
86
-              @click="search"
86
+              @click="search_tmp"
87 87
               >查询</el-button
88 88
             >
89 89
           </div>
@@ -172,7 +172,7 @@
172 172
       >
173 173
         <refundAdd ref="refuna_add" v-bind="$attrs"></refundAdd>
174 174
         <span slot="footer" class="dialog-footer">
175
-          <el-button @click="pass">审核通过</el-button>
175
+          <el-button @click="pass">取消</el-button>
176 176
           <el-button type="primary" @click="Submit">保 存</el-button>
177 177
         </span>
178 178
       </el-dialog>
@@ -185,10 +185,23 @@
185 185
       >
186 186
         <refundUpdate ref="refuna_up" v-bind="$attrs"></refundUpdate>
187 187
         <span slot="footer" class="dialog-footer">
188
-<!--          <el-button @click="pass">审核通过</el-button>-->
188
+          <el-button @click="pass02">取消</el-button>
189 189
           <el-button type="primary" @click="Submit02">保 存</el-button>
190 190
         </span>
191 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 205
     </div>
193 206
   </div>
194 207
 </template>
@@ -199,7 +212,8 @@ import refundUpdate from "./Template/refundUpdate.vue";
199 212
 import {
200 213
   refundlist,
201 214
   deleterefund,
202
-  refundreview
215
+  refundreview,
216
+  getweektime
203 217
 }from "@/api/deposit";
204 218
 export default {
205 219
   components: {
@@ -219,11 +233,13 @@ export default {
219 233
       ],
220 234
       tableData: [],
221 235
       multipleSelection: [],
222
-      // total: 0,
223
-      // page: 1,
224
-      // limit: 10,
236
+      total: 0,
237
+      page: 1,
238
+      limit: 10,
225 239
       keyword: "",
240
+      tmp_keyword:"",//临时keyword
226 241
       value1:"",
242
+      tmp_value1:"",//临时日期
227 243
       start_time:"",
228 244
       end_time:"",
229 245
       // sum:"",
@@ -231,17 +247,29 @@ export default {
231 247
       dialogVisible02:false,
232 248
       close: false,
233 249
       refundtype: 0,//退款类型
250
+      tmp_refundtype: 0,//临时退款类型
234 251
       examinetype: 3,//审核类型
252
+      tmp_examinetype: 3,//临时审核状态
235 253
 
236 254
     };
237 255
   },
238 256
 
239 257
   created(){
240
-    this.search()
258
+    this.init();
259
+    // this.search()
241 260
   },
242 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 273
     updaterefundtype(){
246 274
       console.log("refundtype",this.refundtype)
247 275
     },
@@ -268,11 +296,48 @@ export default {
268 296
         end_time: this.end_time,
269 297
         refundtype: this.refundtype,
270 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 336
       // console.log("params",params)
273 337
       refundlist(params).then((res) => {
274 338
         if (res.data.state == 1){
275 339
           this.tableData = res.data.data.list;
340
+          this.total = res.data.data.total;
276 341
         }
277 342
       })
278 343
     },
@@ -290,7 +355,8 @@ export default {
290 355
     // 编辑
291 356
     edit(data,val){
292 357
       if(data.trial_status != 0){
293
-        alert("当前状态不可编辑")
358
+        // alert("当前状态不可编辑")
359
+        this.$message.error("当前状态不可编辑!")
294 360
           return
295 361
       }
296 362
       this.dialogVisible02 = true;
@@ -382,16 +448,18 @@ export default {
382 448
     // 提交
383 449
     Submit() {
384 450
       this.$refs['refuna_add'].subfrom();
385
-      // setTimeout(() => {
386
-      //   this.$refs['rechange_details'].search();
387
-      // },500)
388 451
     },
389 452
     Submit02(){
390 453
       this.$refs['refuna_up'].subfrom();
391 454
     },
392 455
     // 退款申请审核
393 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 464
     pli() {
397 465
       // alert("父组件被调用!")
@@ -401,6 +469,15 @@ export default {
401 469
       // alert("父组件被调用!")
402 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 483
     handleSelectionChange(val){

+ 7 - 4
src/xt_pages/DepositManagement/DepositSearch.vue 查看文件

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

+ 9 - 3
src/xt_pages/DepositManagement/RechargeDetailsSummary.vue 查看文件

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

@@ -69,7 +69,7 @@
69 69
           </template>
70 70
         </el-table-column>
71 71
 
72
-        <el-table-column label="收费类型" align="center">
72
+        <el-table-column label="收费类型" align="center">
73 73
           <template slot-scope="scope">
74 74
             <span>{{ scope.row.chargetype	 ? scope.row.chargetype	 : "" }}</span>
75 75
           </template>
@@ -91,6 +91,7 @@
91 91
         </el-table-column>
92 92
         <el-table-column label="操作" align="center" width="350px">
93 93
           <template slot-scope="scope">
94
+            <span v-if="scope.row.button_show == 1">
94 95
             <el-button
95 96
               size="small"
96 97
               type="primary"
@@ -98,6 +99,7 @@
98 99
             >
99 100
               查看详情
100 101
             </el-button>
102
+            </span>
101 103
           </template>
102 104
         </el-table-column>
103 105
       </el-table>
@@ -109,7 +111,8 @@
109 111
 <script>
110 112
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
111 113
 import {
112
-  deductiondetails
114
+  deductiondetails,
115
+  getweektime
113 116
 }from "@/api/deposit";
114 117
 export default {
115 118
   components: {
@@ -134,7 +137,8 @@ export default {
134 137
   },
135 138
 
136 139
   created(){
137
-    this.search()
140
+    this.init();
141
+    // this.search()
138 142
   },
139 143
   methods: {
140 144
 
@@ -144,7 +148,7 @@ export default {
144 148
         console.log(param,'oo')
145 149
         let sums = [];
146 150
         columns.forEach((column, index) => {
147
-          
151
+
148 152
           if (index === 0) {
149 153
             sums[index] = '总价';
150 154
             return;
@@ -170,7 +174,15 @@ export default {
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 188
     search() {
@@ -200,7 +212,9 @@ export default {
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 220
 </script>

+ 13 - 3
src/xt_pages/DepositManagement/Template/DeductionSummary.vue 查看文件

@@ -85,7 +85,8 @@
85 85
 <script>
86 86
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
87 87
 import {
88
-  desummary
88
+  desummary,
89
+  getweektime
89 90
 }from "@/api/deposit";
90 91
 export default {
91 92
   components: {
@@ -110,11 +111,20 @@ export default {
110 111
   },
111 112
 
112 113
   created(){
113
-    this.search()
114
+    this.init();
115
+    // this.search()
114 116
   },
115 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 130
     search() {

+ 73 - 9
src/xt_pages/DepositManagement/Template/DepositDetails.vue 查看文件

@@ -38,7 +38,7 @@
38 38
             end-placeholder="结束日期"
39 39
             format="yyyy-MM-dd"
40 40
             value-format="yyyy-MM-dd"
41
-            @change="search"
41
+            @change="search_tmp"
42 42
           >
43 43
           </el-date-picker>
44 44
         </div>
@@ -106,6 +106,19 @@
106 106
 
107 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 122
     </div>
110 123
   </div>
111 124
 </template>
@@ -113,7 +126,8 @@
113 126
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
114 127
 import {
115 128
   refundlist,
116
-  depositflow
129
+  depositflow,
130
+  getmonthtime
117 131
 }from "@/api/deposit";
118 132
 export default {
119 133
   components: {
@@ -134,11 +148,14 @@ export default {
134 148
       name: "",
135 149
       sum:0,
136 150
       deposit_status:0,
151
+      total: 0,
152
+      page: 1,
153
+      limit: 10,
137 154
     };
138 155
   },
139 156
   created(){
140 157
     this.init();
141
-    this.search();
158
+    // this.search();
142 159
   },
143 160
   methods: {
144 161
     // 初始化数据
@@ -147,15 +164,48 @@ export default {
147 164
       // console.log("this.$route.query.key",this.$route.query.key);
148 165
       this.name = this.$route.query.key.his_patient_name
149 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 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 209
       if (this.value1 != null){
160 210
         if(this.value1[0] != undefined && this.value1[1] != undefined){
161 211
           this.start_time = this.value1[0]
@@ -170,15 +220,29 @@ export default {
170 220
         start_time: this.start_time,
171 221
         end_time: this.end_time,
172 222
         deposit_status: this.deposit_status,
223
+        page: 1,//this.page,
224
+        limit: this.limit,
173 225
       };
174 226
       // console.log("params",params)
175 227
       depositflow(params).then((res) => {
176 228
         if (res.data.state == 1){
177 229
           this.tableData = res.data.data.list;
178 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 248
 </script>

+ 15 - 3
src/xt_pages/DepositManagement/Template/RechargeDetails.vue 查看文件

@@ -106,6 +106,7 @@
106 106
             >
107 107
               审核
108 108
             </el-button>
109
+            <span v-if="scope.row.trial_status == 1">
109 110
             <el-button
110 111
               size="small"
111 112
               type="primary"
@@ -113,6 +114,7 @@
113 114
             >
114 115
               打印凭证
115 116
             </el-button>
117
+            </span>
116 118
             <el-button
117 119
               size="small"
118 120
               type="danger"
@@ -135,7 +137,8 @@ import BreadCrumb from "@/xt_pages/components/bread-crumb";
135 137
 import {
136 138
   rechargedetails,
137 139
   deletehistory,
138
-  updeposit
140
+  updeposit,
141
+  getweektime
139 142
 }from "@/api/deposit";
140 143
 export default {
141 144
   components: {
@@ -159,11 +162,20 @@ export default {
159 162
     };
160 163
   },
161 164
   created(){
162
-    this.search()
165
+    this.init();
166
+    // this.search()
163 167
   },
164 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 181
     search() {

+ 12 - 3
src/xt_pages/DepositManagement/Template/RechargeSummary.vue 查看文件

@@ -77,7 +77,7 @@
77 77
         </el-table-column>
78 78
 
79 79
       </el-table>
80
-<!-- 
80
+<!--
81 81
       <div>
82 82
           充值金额合计:<span>{{sum}}</span>
83 83
       </div> -->
@@ -87,7 +87,8 @@
87 87
 <script>
88 88
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
89 89
 import {
90
-  rechargesummary
90
+  rechargesummary,
91
+  getweektime
91 92
 }from "@/api/deposit";
92 93
 export default {
93 94
   components: {
@@ -111,11 +112,19 @@ export default {
111 112
     };
112 113
   },
113 114
   created(){
115
+    this.init();
114 116
     this.search()
115 117
   },
116 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 130
     search() {

+ 5 - 4
src/xt_pages/DepositManagement/Template/add_page.vue 查看文件

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

+ 2 - 1
src/xt_pages/DepositManagement/Template/refundUpdate.vue 查看文件

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

+ 3 - 3
src/xt_pages/data/components/addDrugs.vue 查看文件

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

+ 15 - 15
src/xt_pages/data/components/editProject.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue 查看文件

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

+ 17 - 17
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue 查看文件

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

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyEight.vue 查看文件

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

+ 6 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_thirtySeven.vue 查看文件

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

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue 查看文件

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

+ 8 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_twenty.vue 查看文件

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

+ 11 - 11
src/xt_pages/dialysis/batch_print/batch_print_order_twentyFive.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentyTwo_one.vue 查看文件

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

+ 1 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue 查看文件

@@ -144,7 +144,7 @@ export default {
144 144
           })
145 145
         }
146 146
 
147
-      
147
+
148 148
     }
149 149
 }
150 150
 </script>

+ 11 - 11
src/xt_pages/dialysis/components/dialysisParameters.vue 查看文件

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

+ 2 - 2
src/xt_pages/dialysis/components/dialysisParametersDialog.vue 查看文件

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

+ 6 - 5
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

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

+ 90 - 47
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

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

+ 79 - 46
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

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

+ 25 - 11
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue 查看文件

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

+ 8 - 8
src/xt_pages/dialysis/details/index.vue 查看文件

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

+ 2 - 2
src/xt_pages/dialysis/dialysisDrugs_print.vue 查看文件

@@ -40,8 +40,8 @@
40 40
                                       <span v-if="item.anticoagulant==7">低分子肝素钠</span>
41 41
                                       <span v-if="item.anticoagulant==8">依诺肝素</span>
42 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 45
                                     </td>
46 46
                                     <td>
47 47
                                       {{item.count}}

+ 7 - 7
src/xt_pages/dialysis/dialysisParameters_print.vue 查看文件

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

+ 23 - 23
src/xt_pages/dialysis/doctorAdvicePrint.vue 查看文件

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

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

+ 1 - 1
src/xt_pages/hospitalStation/components/advice.vue 查看文件

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

+ 255 - 193
src/xt_pages/hospitalStation/components/chargeDialog.vue 查看文件

@@ -1,15 +1,11 @@
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 9
       </el-form-item>
14 10
 
15 11
       <el-form-item
@@ -104,12 +100,15 @@
104 100
           <el-form-item class="specialFormItem">
105 101
             <div style="display: flex">
106 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 106
             </div>
109 107
           </el-form-item>
110 108
         </span>
111 109
       </el-form-item>
112 110
 
111
+
113 112
       <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
114 113
         <el-input
115 114
           style="color: black"
@@ -119,6 +118,7 @@
119 118
         ></el-input>
120 119
       </el-form-item>
121 120
 
121
+
122 122
       <el-form-item label="付款卡号:" prop="id_card" :validate-event="is_Name">
123 123
         <el-input v-model="form.pay_card_no"></el-input>
124 124
       </el-form-item>
@@ -175,196 +175,258 @@
175 175
     </el-form>
176 176
 
177 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 182
   </el-dialog>
182 183
 </template>
183 184
 
184 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 430
 </script>
369 431
 
370 432
 

+ 6 - 4
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 查看文件

@@ -126,7 +126,7 @@
126 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 127
                        size="small"
128 128
                        @click="open(3)"
129
-                       type="primary">收费
129
+                       type="primary">收费<!--修改的地方-->
130 130
             </el-button>
131 131
 
132 132
 <!--            <el-button v-loading="loadingtwo"-->
@@ -1449,9 +1449,11 @@ export default {
1449 1449
           this.$message.error('请先到医生工作站开处方再来结算')
1450 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 1457
       } else if (index == 4) {
1456 1458
         if (this.hisPatientInfo.balance_accounts_type == 2) {
1457 1459
 

+ 21 - 21
src/xt_pages/medicalScheduling/index.vue 查看文件

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

+ 118 - 23
src/xt_pages/outpatientCharges/components/chargeDialog.vue 查看文件

@@ -1,4 +1,4 @@
1
-<template>
1
+<template><!--门诊收费-->
2 2
   <el-dialog width="854px" title="收费单" class="chargeDialog" :visible.sync="visibility" :close-on-click-modal="isClose"
3 3
              :close-on-press-escape="isClose">
4 4
 
@@ -8,38 +8,45 @@
8 8
         <div>{{record_date}}</div>
9 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 12
         <el-input type="number" v-model="form.total" :disabled="true"></el-input>
13 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 15
         <el-input type="number" v-model="form.medical_insurance_price" :disabled="true"></el-input>
16 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 20
         <el-input type="number" v-model="form.private_price" :disabled="true"></el-input>
21 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 24
         <el-input type="number" v-model="form.acct_pay" :disabled="true"></el-input>
25 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 29
         <el-input type="number" v-model="form.psn_pay" :disabled="true"></el-input>
30 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 50
         <el-radio-group v-model="form.pay_way">
44 51
           <el-radio :label="index" v-for="(item,index) in payWays" :key="index">{{ item.label }}</el-radio>
45 52
         </el-radio-group>
@@ -89,6 +96,7 @@
89 96
         </div>
90 97
       </el-form-item>
91 98
 
99
+
92 100
     </el-form>
93 101
 
94 102
     <span slot="footer" class="dialog-footer">
@@ -101,6 +109,9 @@
101 109
 
102 110
 <script>
103 111
   import { uParseTime } from '@/utils/tools'
112
+  import {
113
+    idtobalance
114
+  }from "@/api/deposit";
104 115
 
105 116
   export default {
106 117
     name: 'chargeDialog',
@@ -108,11 +119,17 @@
108 119
     data() {
109 120
 
110 121
       return {
122
+        tmp_pay:"",//临时付款金额
123
+        isshow:false,
124
+        id:0,
125
+        decimal:0,//当前押金余额
111 126
         record_date:'',
112 127
         form: {
113 128
           medical_insurance_price:0,
114
-          private_price:'',
129
+          private_price:'',//自费12
115 130
           pay_way:'',
131
+          dec_way:'false',//是否使用押金支付
132
+          tmp_decimal:"",//本次使用的押金
116 133
           pay_price:'',
117 134
           pay_card_no:'',
118 135
           discount_price:'',
@@ -125,15 +142,12 @@
125 142
           order:null,
126 143
           acct_pay:'',
127 144
           psn_pay:'',
128
-
129
-
130
-
131 145
         },
132 146
         payWays: [
133 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 151
           {value: 5, label: '医保卡'},
138 152
 
139 153
         ],
@@ -181,9 +195,83 @@
181 195
 
182 196
       }
183 197
     },
198
+    created(){
199
+    },
184 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 275
         this.form.total = total
188 276
         this.form.private_price = total
189 277
         this.form.pay_price = total
@@ -213,10 +301,17 @@
213 301
         this.loadingtwo = false
214 302
         this.visibility = false
215 303
       }, cancel: function (formName) {
304
+        this.form.tmp_decimal = 0
305
+        this.tmp_pay = 0
306
+        this.form.dec_way = false
216 307
         this.$emit('cancel', this.getValue())
217 308
         this.$refs['formValue'].resetFields()
218 309
       },
219 310
       confirm: function (formName) {
311
+        if (parseFloat(this.form.tmp_decimal) > parseFloat(this.decimal)){
312
+          this.$message.error("押金余额不足");
313
+          return
314
+        }
220 315
         this.$refs['formValue'].validate((valid) => {
221 316
           if (valid) {
222 317
             let value = {}

+ 1 - 1
src/xt_pages/outpatientCharges/invoicePrint.vue 查看文件

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

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

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

+ 7 - 8
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

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

+ 9 - 9
src/xt_pages/outpatientCharges/print.vue 查看文件

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

+ 4 - 4
src/xt_pages/outpatientCharges/treatPrint.vue 查看文件

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/advice.vue 查看文件

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

+ 40 - 40
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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

+ 13 - 13
src/xt_pages/stock/cancelStockOrder.vue 查看文件

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

+ 21 - 21
src/xt_pages/stock/detail/cancelStockDetail.vue 查看文件

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

+ 37 - 37
src/xt_pages/stock/detail/stockInDetail.vue 查看文件

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

+ 18 - 18
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue 查看文件

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

+ 18 - 18
src/xt_pages/stock/drugs/components/drugCancelDetail.vue 查看文件

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

+ 11 - 11
src/xt_pages/stock/drugs/drugOutOrderPrint.vue 查看文件

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

+ 2 - 2
src/xt_pages/stock/drugs/drugStockInOrderDetailPrint.vue 查看文件

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

+ 7 - 7
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

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

+ 7 - 7
src/xt_pages/stock/drugs/inventoryPrint.vue 查看文件

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

+ 25 - 25
src/xt_pages/stock/drugs/query.vue 查看文件

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

+ 3 - 3
src/xt_pages/stock/inventoryPrint.vue 查看文件

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

+ 10 - 10
src/xt_pages/stock/selfPreparedMedicine/query.vue 查看文件

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

+ 3 - 3
src/xt_pages/stock/selfPreparedMedicine/queryPrint.vue 查看文件

@@ -118,13 +118,13 @@ export default {
118 118
                  for(let j=0;j<stocklist.length;j++){
119 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 120
                       outStockList[i].Total = stocklist[j].Total
121
-                   } 
121
+                   }
122 122
                  }
123 123
               }
124 124
               console.log("stocklist99999",outStockList)
125 125
               this.tableData = outStockList
126 126
             }
127
-        })   
127
+        })
128 128
       }
129 129
     },
130 130
     created(){
@@ -167,7 +167,7 @@ export default {
167 167
       border: 1px solid;
168 168
       border-collapse: collapse;
169 169
       padding: 2px;
170
-      
170
+
171 171
 
172 172
       thead {
173 173
         tr {

+ 11 - 11
src/xt_pages/stock/selfPreparedMedicine/stockquery.vue 查看文件

@@ -62,7 +62,7 @@
62 62
           <el-button size="small" type="primary" @click="toPrint">打印</el-button>
63 63
         </div>
64 64
       </div>
65
-      
65
+
66 66
 
67 67
       <el-table
68 68
         :row-style="{ color: '#303133' }"
@@ -109,7 +109,7 @@
109 109
             <span>{{scope.row.total?scope.row.total:""}}</span>
110 110
           </template>
111 111
         </el-table-column>
112
-       
112
+
113 113
       </el-table>
114 114
       <el-pagination
115 115
         @size-change="handleSizeChange"
@@ -169,7 +169,7 @@ export default {
169 169
     };
170 170
   },
171 171
   methods: {
172
-     
172
+
173 173
      getlist(){
174 174
          var params ={
175 175
            type_name:this.type_name,
@@ -209,10 +209,10 @@ export default {
209 209
       this.page = val;
210 210
       this.getlist()
211 211
     },
212
-  
212
+
213 213
     startTimeChange: function(val) {
214 214
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
215
-      
215
+
216 216
       if (time > 0) {
217 217
         this.$message.error("开始时间不能大于结束时间");
218 218
         this.start_time = "";
@@ -228,9 +228,9 @@ export default {
228 228
       } else {
229 229
         this.getlist()
230 230
       }
231
-     
231
+
232 232
     },
233
-   
233
+
234 234
 
235 235
     search: function() {
236 236
       this.getlist()
@@ -239,9 +239,9 @@ export default {
239 239
     exportList(){
240 240
          import('@/vendor/Export2Excel').then(excel => {
241 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 243
          const data = this.formatJson(filterVal, this.tableData)
244
-      
244
+
245 245
          excel.export_json_to_excel({
246 246
            header: tHeader,
247 247
            data,
@@ -258,10 +258,10 @@ export default {
258 258
       },
259 259
       toPrint(){
260 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 265
       getTimestamp(time) {
266 266
       // 把时间日期转成时间戳
267 267
       return new Date(time).getTime() / 1000;

+ 1 - 1
src/xt_pages/stock/selfStockPrint.vue 查看文件

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

+ 34 - 34
src/xt_pages/stock/stockInOrder.vue 查看文件

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

+ 6 - 6
src/xt_pages/stock/stockOutOrderDetail.vue 查看文件

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

+ 14 - 14
src/xt_pages/stock/stockQuery.vue 查看文件

@@ -18,7 +18,7 @@
18 18
             </el-option>
19 19
           </el-select>
20 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 22
           filterable
23 23
            @change="changeGoodName">
24 24
             <el-option
@@ -138,7 +138,7 @@
138 138
         </el-table-column>
139 139
        <el-table-column label="入库数量" align="center">
140 140
          <template slot-scope="scope">
141
-          
141
+
142 142
             <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
143 143
               <td style="border-right: none; border-inline-end: none;text-align: center">
144 144
                {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
@@ -158,10 +158,10 @@
158 158
          </span>
159 159
          </template>
160 160
        </el-table-column>
161
-      
161
+
162 162
         <el-table-column label="剩余库存量" align="center">
163 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 166
               getWareInfo(scope.row.xt_warehouse_info) -
167 167
               getAutoCount(scope.row.id) -
@@ -194,7 +194,7 @@
194 194
            </span>
195 195
          </template>
196 196
        </el-table-column>
197
-        
197
+
198 198
       <el-table-column label="总库存量" align="center" v-if="showTwo">
199 199
          <template slot-scope="scope">
200 200
           <span>{{getWareInfoCountTwo(scope.row.xt_warehouse_info)}} </span>
@@ -463,11 +463,11 @@ export default {
463 463
 
464 464
           if(this.end_time == ""){
465 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 467
             }else{
468 468
               this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
469 469
             }
470
-            
470
+
471 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 472
                 this.tableList[i].overplus = this.getOverFlushInfo(this.tableList[i].xt_warehouse_info)
473 473
             }else{
@@ -477,7 +477,7 @@ export default {
477 477
             this.tableList[i].outCount =  this.getAutoCount(this.tableList[i].id) + this.getOutCount(this.tableList[i].id)
478 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 483
          const data = this.formatJson(filterVal, this.tableList)
@@ -546,7 +546,7 @@ export default {
546 546
             }
547 547
           }
548 548
          this.tableList = arr
549
-        
549
+
550 550
           var total = response.data.data.total
551 551
           this.total = total
552 552
           var manufacturerList = response.data.data.manufacturerList
@@ -603,10 +603,10 @@ export default {
603 603
            var outlist = response.data.data.outList
604 604
            this.outCountList = outlist
605 605
            var autoCount = response.data.data.autoCount
606
-        
606
+
607 607
            this.autoCountList = autoCount
608 608
            var totalCount = response.data.data.totalCount
609
-         
609
+
610 610
            this.cancelCountList = totalCount
611 611
          }
612 612
       })
@@ -699,7 +699,7 @@ export default {
699 699
      return total
700 700
    },
701 701
    getCancelSotckInfo(arr){
702
-    
702
+
703 703
      var cancle_toal = 0
704 704
      if(arr.length >0){
705 705
       for(let z=0;z<arr.length;z++){
@@ -759,12 +759,12 @@ export default {
759 759
      }else{
760 760
        return ""
761 761
      }
762
-   }, 
762
+   },
763 763
    getWareInfoCountTwo(val,storehouse_id){
764 764
      var count = 0
765 765
      if(val.length > 0){
766 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 770
      if(count > 0){

+ 2 - 2
src/xt_pages/supply/components/addPurchaseOrder.vue 查看文件

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

+ 9 - 9
src/xt_pages/supply/components/editGoodOrder.vue 查看文件

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

+ 31 - 31
src/xt_pages/supply/components/editGoodReturn.vue 查看文件

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

+ 4 - 4
src/xt_pages/user/coursePrint.vue 查看文件

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

+ 14 - 3
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -671,7 +671,7 @@
671 671
                   </template>
672 672
                 </el-table-column>
673 673
                 <el-table-column
674
-                  label="开药数量"
674
+                  label="开药数量!"
675 675
                   min-width="80"
676 676
                   property="prescribing_number"
677 677
                   align="center"
@@ -948,7 +948,7 @@
948 948
         >
949 949
           <el-row>
950 950
             <el-col :span="10">
951
-              <el-form-item label="医嘱内容:" required prop="advice_name">
951
+              <el-form-item label="医嘱内容:" required prop="advice_name"><!--第二处-->
952 952
                <el-autocomplete
953 953
                 style="width:100%;"
954 954
                 class="inline-input"
@@ -1019,7 +1019,7 @@
1019 1019
                       v-for="item in unitsOption"
1020 1020
                       :key="item.id"
1021 1021
                       :label="item.name"
1022
-                      :value="item.name"
1022
+                      :value="item.id"
1023 1023
                     >
1024 1024
                     </el-option>
1025 1025
                   </el-select>
@@ -4617,6 +4617,17 @@ export default {
4617 4617
         this.nameForm.drug_id = val.drug_id
4618 4618
         this.nameForm.way = 1
4619 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 4633
   watch: {