Bladeren bron

新分支

28169 1 jaar geleden
bovenliggende
commit
0f4c489822

+ 25 - 279
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue Bestand weergeven

@@ -1,12 +1,12 @@
1 1
 <template>
2 2
   <div id='invoice-print'>
3 3
     <div v-for='(i,index) in pageArr.length' :key="index" >
4
-      <div :style="{position: 'absolute',top:(30 + (index * 415))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
5
-      <div :style="{position: 'absolute',top:(70 + (index * 415))  + 'px',left:150+ 'px',}">{{ list.order_number }}</div>
4
+      <div :style="{position: 'absolute',top:(20 + (index * 520))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
5
+      <div :style="{position: 'absolute',top:(70 + (index * 520))  + 'px',left:150+ 'px',}">{{ list.order_number }}</div>
6 6
       <div style="display:flex;justify-content: space-between;">
7
-        <div :style="{position: 'absolute',top:(100 + (index * 415))  + 'px',left:100+ 'px',}">{{ paramsObj.name }}</div>
7
+        <div :style="{position: 'absolute',top:(100 + (index * 520))  + 'px',left:100+ 'px',}">{{ paramsObj.name }}</div>
8 8
       </div>
9
-      <div :style="{position: 'absolute',top:(190 + (index * 415))  + 'px',left:120+ 'px',}">
9
+      <div :style="{position: 'absolute',top:(190 + (index * 520))  + 'px',left:120+ 'px',}">
10 10
         <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
11 11
         <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
12 12
         <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
@@ -16,9 +16,9 @@
16 16
         <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
17 17
         <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
18 18
       </div>
19
-      <div :style="{position: 'absolute',top:(190 + (index * 420))  + 'px',left:300+ 'px'}">
19
+      <div :style="{position: 'absolute',top:(190 + (index * 520))  + 'px',left:300+ 'px'}">
20 20
         <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
21
-                    <span style="display:inline-block;width:300px;">
21
+                    <span style="display:inline-block;width:200px;">
22 22
                         <span v-if="item.advice.id == 0">
23 23
                             <span v-if="item.project.type == 2"> {{ item.project.project.project_name }}</span>
24 24
                             <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
@@ -41,301 +41,47 @@
41 41
                     </span>
42 42
         </div>
43 43
       </div>
44
-      <div :style="{position: 'absolute',top:(350 + (index * 415))  + 'px',left:130+ 'px'}">{{ zhongwen }}</div>
45
-      <div :style="{position: 'absolute',top:(350 + (index * 415))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
-      <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(370 + (index * 415))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
44
+      <div :style="{position: 'absolute',top:(390 + (index * 520))  + 'px',left:130+ 'px'}">{{ zhongwen }}</div>
45
+      <div :style="{position: 'absolute',top:(390 + (index * 520))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
+      <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(410 + (index * 520))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
47 47
         <div style="display:flex;">
48 48
           <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
49 49
           <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
50 50
           <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
51 51
           <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
52
-          <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
53
-          <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
54
-          <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
55 52
 
56 53
         </div>
57 54
         <div style="display:flex;">
55
+          <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
56
+          <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
58 57
           <div style="width:140px">本次账户:0</div>
59 58
           <div style="width:140px">上次账户:0</div>
59
+        </div>
60
+        <div style="display:flex;">
60 61
           <div style="width:140px">账户余额:{{ list.order.balc }}</div>
61 62
           <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
62 63
           <div style="width:140px">大病补充保险支出:0</div>
63 64
           <div style="width:140px">民政支出:0</div>
64
-          <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
65 65
         </div>
66
-
67
-      </div>
68
-      <div v-if="index != pageArr.length - 1">
69
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
70
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:410+ 'px'}">{{ paramsObj.chargeName }}</div>
71
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:550+ 'px'}">
72
-          <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
73
-        </div>
74
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:610+ 'px'}">
75
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
76
-        </div>
77
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:650+ 'px'}">
78
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
79
-        </div>
80
-      </div>
81
-
82
-      <div v-if="index == pageArr.length - 1">
83
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
84
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:410+ 'px'}">{{ paramsObj.chargeName }}</div>
85
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:550+ 'px'}">
86
-          <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
87
-        </div>
88
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:610+ 'px'}">
89
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
90
-        </div>
91
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:650+ 'px'}">
92
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
93
-        </div>
94
-      </div>
95
-
96
-    </div>
97
-  </div>
98
-</template>
99
-
100
-
101
-<script>
102
-import { getInvoice } from '@/api/project/project'
103
-import { uParseTime } from '@/utils/tools'
104
-export default {
105
-  props:{
106
-    paramsObj:Object
107
-  },
108
-  data(){
109
-    return{
110
-      list:{},
111
-      printDate:'',
112
-      zhongwen:'',
113
-      totalPrice:0.0,
114
-      org_id:'',
115
-      org_name:'',
116
-      page:1,
117
-      pageArr:[],
118
-    }
119
-  },
120
-  created(){
121
-    console.log('paramsObj',this.paramsObj)
122
-    let params = {
123
-      order_id: this.paramsObj.order_id,
124
-      patient_id: this.paramsObj.patient_id,
125
-    }
126
-    this.getInvoice(params)
127
-    // var data = new Date();
128
-    // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
129
-    // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
130
-    // this.printDate = data.getFullYear() + "-" + month + "-" + date;
131
-    // this.smalltoBIG(982732.21)
132
-    this.org_id = this.$store.getters.xt_user.org_id
133
-    this.org_name = this.$store.getters.xt_user.org.org_name
134
-  },
135
-  methods:{
136
-    getInvoice(params){
137
-      getInvoice(params).then((res) => {
138
-        // console.log('res',res)
139
-        this.list = res.data.data
140
-        // console.log(this.list,'表单内容打印记得注释')
141
-        this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
142
-          this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
143
-        this.smalltoBIG(this.list.medfee_sumamt)
144
-        var data = new Date(res.data.data.date * 1000);
145
-        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
146
-        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
147
-        this.printDate = data.getFullYear() + "-" + month + "-" + date;
148
-        this.pageArr = []
149
-        this.getPage()
150
-        this.pageArr.push(9)
151
-        console.log('pageArr',this.pageArr.length)
152
-      })
153
-    },
154
-    smalltoBIG(n) {
155
-      // let fraction = ['角', '分'];
156
-      // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
157
-      // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
158
-      // let head = price < 0 ? '欠' : '';
159
-      // price = Math.abs(price);
160
-      // let upper = '';
161
-      // for (let i = 0; i < fraction.length; i++) {
162
-      // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
163
-      // }
164
-      // upper = upper || '整';
165
-      // price = Math.floor(price);
166
-      // for (let i = 0; i < unit[0].length && price > 0; i++) {
167
-      // let p = '';
168
-      // for (let j = 0; j < unit[1].length && price > 0; j++) {
169
-      //     p = digit[price % 10] + unit[1][j] + p;
170
-      //     price = Math.floor(price / 10);
171
-      // }
172
-      // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
173
-      // }
174
-      // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
175
-      // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
176
-      if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
177
-        return "数据非法";  //判断数据是否大于0
178
-      }
179
-
180
-      var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
181
-      n += "00";
182
-
183
-      var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
184
-
185
-      if (indexpoint >= 0){
186
-
187
-        n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
188
-      }
189
-
190
-      unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
191
-      for (var i=0; i < n.length; i++){
192
-        str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
193
-      }
194
-      console.log("str",str)
195
-      if(str == '零元零角零分'){
196
-        this.zhongwen = '零'
197
-      }else{
198
-        this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
199
-      }
200
-
201
-      console.log(this.zhongwen)
202
-    },
203
-    getTime(value, temp) {
204
-      if (value == 0) {
205
-        return ''
206
-      }
207
-      if (value != undefined) {
208
-        return uParseTime(value, temp)
209
-      }
210
-      return ''
211
-    },
212
-    getPage(){
213
-      if(this.list.order_info.length <= 9){
214
-        this.page = 1
215
-        this.pageArr.push(this.list.order_info.length)
216
-      }else if(this.list.order_info.length > 9){
217
-        this.page = parseInt(this.list.order_info.length / 9)
218
-        let num = this.list.order_info.length % 9
219
-        for (var i=0;i<this.page;i++){
220
-          this.pageArr.push(9)
221
-        }
222
-        if(num != 0){
223
-          this.pageArr.push(num)
224
-        }
225
-      }
226
-    }
227
-
228
-  },
229
-  watch:{
230
-    paramsObj:{//深度监听,可监听到对象、数组的变化
231
-      handler(val, oldVal){
232
-        let params = {
233
-          order_id: val.order_id,
234
-          patient_id: val.patient_id,
235
-        }
236
-        this.getInvoice(params)
237
-
238
-      },
239
-      deep:true
240
-    }
241
-  }
242
-}
243
-</script>
244
-<template>
245
-  <div id='invoice-print'>
246
-    <div v-for='(i,index) in pageArr.length' :key="index" >
247
-      <div :style="{position: 'absolute',top:(30 + (index * 415))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
248
-      <div :style="{position: 'absolute',top:(70 + (index * 415))  + 'px',left:150+ 'px',}">{{ list.order_number }}</div>
249
-      <div style="display:flex;justify-content: space-between;">
250
-        <div :style="{position: 'absolute',top:(100 + (index * 415))  + 'px',left:100+ 'px',}">{{ paramsObj.name }}</div>
251
-      </div>
252
-      <div :style="{position: 'absolute',top:(190 + (index * 415))  + 'px',left:120+ 'px',}">
253
-        <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
254
-        <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
255
-        <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
256
-        <div v-if="list.chineseTraditionalMedicineCostTotal">中成药 {{ list.chineseTraditionalMedicineCostTotal }}</div>
257
-        <div v-if="list.laboratoryCostTotal">化验费 {{ list.laboratoryCostTotal }}</div>
258
-        <div v-if="list.operationCostTotal">手术费 {{ list.operationCostTotal }}</div>
259
-        <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
260
-        <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
261
-      </div>
262
-      <div :style="{position: 'absolute',top:(190 + (index * 420))  + 'px',left:300+ 'px'}">
263
-        <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
264
-                    <span style="display:inline-block;width:300px;">
265
-                        <span v-if="item.advice.id == 0">
266
-                            <span v-if="item.project.type == 2"> {{ item.project.project.project_name }}</span>
267
-                            <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
268
-                        </span>
269
-                        <span v-else>{{ item.advice.advice_name }}</span>
270
-                    </span>
271
-          <span style="display:inline-block;width:50px;">
272
-                        <span v-if="item.advice.id == 0">
273
-                            <span v-if="item.project.type == 2">{{ item.project.count }}{{ item.project.unit }}</span>
274
-                            <span v-if="item.project.type == 3">{{ item.project.count }}{{ item.project.unit }}</span>
275
-                        </span>
276
-                        <span v-else>{{ item.advice.prescribing_number }}{{ item.advice.prescribing_number_unit }}</span>
277
-                    </span>
278
-          <span>
279
-                        <span v-if="item.advice.id == 0">
280
-                            <span v-if="item.project.type == 2">{{ (item.project.count * item.pric).toFixed(2) }}</span>
281
-                            <span v-if="item.project.type == 3">{{ (item.project.count * item.pric).toFixed(2) }}</span>
282
-                        </span>
283
-                        <span v-else>{{ (item.advice.prescribing_number * item.pric).toFixed(2) }}</span>
284
-                    </span>
285
-        </div>
286
-      </div>
287
-      <div :style="{position: 'absolute',top:(350 + (index * 415))  + 'px',left:130+ 'px'}">{{ zhongwen }}</div>
288
-      <div :style="{position: 'absolute',top:(350 + (index * 415))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
289
-      <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(370 + (index * 415))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
290 66
         <div style="display:flex;">
291
-          <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
292
-          <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
293
-          <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
294
-          <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
295
-          <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
296
-          <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
297 67
           <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
298
-
299
-        </div>
300
-        <div style="display:flex;">
301
-          <div style="width:140px">本次账户:0</div>
302
-          <div style="width:140px">上次账户:0</div>
303
-          <div style="width:140px">账户余额:{{ list.order.balc }}</div>
304
-          <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
305
-          <div style="width:140px">大病补充保险支出:0</div>
306
-          <div style="width:140px">民政支出:0</div>
307 68
           <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
308 69
         </div>
309 70
 
310 71
       </div>
311
-      <div v-if="index != pageArr.length - 1">
312
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
313
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:410+ 'px'}">{{ paramsObj.chargeName }}</div>
314
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:550+ 'px'}">
315
-          <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
316
-        </div>
317
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:610+ 'px'}">
318
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
319
-        </div>
320
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:650+ 'px'}">
321
-          <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
322
-        </div>
323
-      </div>
324
-
325
-      <div v-if="index == pageArr.length - 1">
326
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
327
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:410+ 'px'}">{{ paramsObj.chargeName }}</div>
328
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:550+ 'px'}">
72
+      <div>
73
+        <div :style="{position: 'absolute',top:(480 + (index * 520))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
74
+        <div :style="{position: 'absolute',top:(480 + (index * 520))  + 'px',left:410+ 'px'}">{{ paramsObj.chargeName }}</div>
75
+        <div :style="{position: 'absolute',top:(480 + (index * 520))  + 'px',left:550+ 'px'}">
329 76
           <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
330 77
         </div>
331
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:610+ 'px'}">
78
+        <div :style="{position: 'absolute',top:(480 + (index * 520))  + 'px',left:610+ 'px'}">
332 79
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
333 80
         </div>
334
-        <div :style="{position: 'absolute',top:(400 + (index * 415))  + 'px',left:650+ 'px'}">
81
+        <div :style="{position: 'absolute',top:(480 + (index * 520))  + 'px',left:650+ 'px'}">
335 82
           <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
336 83
         </div>
337 84
       </div>
338
-
339 85
     </div>
340 86
   </div>
341 87
 </template>
@@ -390,7 +136,7 @@ export default {
390 136
         this.printDate = data.getFullYear() + "-" + month + "-" + date;
391 137
         this.pageArr = []
392 138
         this.getPage()
393
-        this.pageArr.push(9)
139
+        this.pageArr.push(10)
394 140
         console.log('pageArr',this.pageArr.length)
395 141
       })
396 142
     },
@@ -453,14 +199,14 @@ export default {
453 199
       return ''
454 200
     },
455 201
     getPage(){
456
-      if(this.list.order_info.length <= 9){
202
+      if(this.list.order_info.length <= 10){
457 203
         this.page = 1
458 204
         this.pageArr.push(this.list.order_info.length)
459
-      }else if(this.list.order_info.length > 9){
460
-        this.page = parseInt(this.list.order_info.length / 9)
461
-        let num = this.list.order_info.length % 9
205
+      }else if(this.list.order_info.length > 10){
206
+        this.page = parseInt(this.list.order_info.length / 10)
207
+        let num = this.list.order_info.length % 10
462 208
         for (var i=0;i<this.page;i++){
463
-          this.pageArr.push(9)
209
+          this.pageArr.push(10)
464 210
         }
465 211
         if(num != 0){
466 212
           this.pageArr.push(num)

+ 31 - 31
src/xt_pages/workforce/components/editTableData.vue Bestand weergeven

@@ -1396,7 +1396,7 @@
1396 1396
             </el-select>
1397 1397
           </el-form-item>
1398 1398
           
1399
-          <!-- <el-form-item>
1399
+          <el-form-item>
1400 1400
             <span>透析班次:</span>
1401 1401
             <el-select
1402 1402
                 filterable 
@@ -1413,9 +1413,9 @@
1413 1413
               >
1414 1414
               </el-option>
1415 1415
             </el-select>
1416
-          </el-form-item> -->
1416
+          </el-form-item>
1417 1417
         
1418
-          <!-- <el-form-item>
1418
+          <el-form-item>
1419 1419
             <span>透析分区:</span>
1420 1420
             <el-select
1421 1421
             filterable 
@@ -1432,9 +1432,9 @@
1432 1432
               >
1433 1433
               </el-option>
1434 1434
               </el-select>
1435
-          </el-form-item> -->
1435
+          </el-form-item>
1436 1436
 
1437
-          <!-- <el-form-item>
1437
+          <el-form-item>
1438 1438
             <span>透析床位:</span>
1439 1439
             <el-select
1440 1440
                filterable 
@@ -1450,7 +1450,7 @@
1450 1450
               >
1451 1451
               </el-option>
1452 1452
             </el-select>
1453
-          </el-form-item> -->
1453
+          </el-form-item>
1454 1454
         </el-form>
1455 1455
       </div>
1456 1456
       <span slot="footer" class="dialog-footer">
@@ -5076,7 +5076,7 @@ export default {
5076 5076
       this.changing_mode = true;
5077 5077
       this.changeSchedule.change_action = "change_mode";
5078 5078
 
5079
-      ChangeSchedule(this.currentData.id, this.changeSchedule).then((response) => {
5079
+      ChangeScheduleTen(this.currentData.id, this.changeSchedule).then((response) => {
5080 5080
             if (response.data.state == 0) {
5081 5081
               this.$message.error(response.data.msg);
5082 5082
             } else {
@@ -5084,30 +5084,30 @@ export default {
5084 5084
                 type: "success",
5085 5085
                 message: "修改成功!",
5086 5086
               });
5087
-              var that = this;
5088
-              var schedule = response.data.data.schedule;
5089
-              this.msDialogVisible = false
5090
-              this.scheduleZone.forEach(function (zone, index) {
5091
-                if (
5092
-                    zone.zone_id == schedule.partition_id &&
5093
-                    zone.jihao_id == schedule.bed_id
5094
-                ) {
5095
-                  var weekPath = that.weekPath(
5096
-                      schedule.schedule_week,
5097
-                      schedule.schedule_type
5098
-                  );
5099
-                  if (weekPath.length == 2) {
5100
-                    var weekPathKey = weekPath[0] + "_" + weekPath[1];
5101
-                    that.scheduleZone[index][weekPathKey].dialysis_machine_name =
5102
-                        schedule.dialysis_machine_name;
5103
-                    that.scheduleZone[index][weekPathKey].mode_id =
5104
-                        schedule.mode_id;
5105
-                    that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5106
-                            ? ""
5107
-                            : that.modeOptions[schedule.mode_id].name;
5108
-                  }
5109
-                }
5110
-              });
5087
+              // var that = this;
5088
+              // var schedule = response.data.data.schedule;
5089
+              // this.msDialogVisible = false
5090
+              // this.scheduleZone.forEach(function (zone, index) {
5091
+              //   if (
5092
+              //       zone.zone_id == schedule.partition_id &&
5093
+              //       zone.jihao_id == schedule.bed_id
5094
+              //   ) {
5095
+              //     var weekPath = that.weekPath(
5096
+              //         schedule.schedule_week,
5097
+              //         schedule.schedule_type
5098
+              //     );
5099
+              //     if (weekPath.length == 2) {
5100
+              //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
5101
+              //       that.scheduleZone[index][weekPathKey].dialysis_machine_name =
5102
+              //           schedule.dialysis_machine_name;
5103
+              //       that.scheduleZone[index][weekPathKey].mode_id =
5104
+              //           schedule.mode_id;
5105
+              //       that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5106
+              //               ? ""
5107
+              //               : that.modeOptions[schedule.mode_id].name;
5108
+              //     }
5109
+              //   }
5110
+              // });
5111 5111
               this.msDialogVisible = false;
5112 5112
               this.getAllZones()
5113 5113