apply-clients 5.0.35-ezhou-3 → 5.0.35-ezhou-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/package.json +2 -2
  2. package/src/apply.js +13 -1
  3. package/src/components/app_apply/ApplyToDoList.vue +76 -2586
  4. package/src/components/app_apply/Gongcheng.vue +3631 -0
  5. package/src/components/app_apply/OneToMany.vue +194 -0
  6. package/src/components/app_apply/PlaceControler.vue +12 -0
  7. package/src/components/app_apply/ServiceControl.vue +353 -14
  8. package/src/components/app_apply/ezhou/ServiceView.vue +139 -57
  9. package/src/components/image/doc.jpg +0 -0
  10. package/src/components/image/dwg.png +0 -0
  11. package/src/components/image/dxf.png +0 -0
  12. package/src/components/image/excel.jpg +0 -0
  13. package/src/components/image/pdf.jpg +0 -0
  14. package/src/components/product/Common/ApplyValidateBill.vue +13 -6
  15. package/src/components/product/Common/PrintBill.vue +7 -6
  16. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  17. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  18. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +586 -0
  19. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  20. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +132 -0
  21. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +340 -0
  22. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +490 -0
  23. package/src/components/product/Function/InstallInfoSelect.vue +3 -2
  24. package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
  25. package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
  26. package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
  27. package/src/components/product/Function/functions/InstallFee.vue +78 -17
  28. package/src/components/product/Function/functions/InstallFeeInfo.vue +6 -1
  29. package/src/components/product/Process/ExplorationSelect.vue +41 -8
  30. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +126 -39
  31. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +1 -1
  32. package/src/components/product/Process/Processes/Service/ServiceControl.vue +1927 -1537
  33. package/src/components/product/ServiceView.vue +815 -805
  34. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +163 -14
  35. package/src/components/product/Supervisory/SupervisoryList.vue +102 -17
  36. package/src/components/product/applyReport/ApplyReport.vue +205 -0
  37. package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
  38. package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
  39. package/src/ezhouAndroid.js +4 -0
  40. package/src/plugins/commonService.js +1 -1
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="auto select-overspread">
2
+ <div class="auto select-overspread" v-if="refresh">
3
3
  <div v-if="data.back_reason" class="panel panel-info">
4
4
  <span style="color: red"> 请注意被退回原因为:{{ data.back_reason }}</span>
5
5
  </div>
@@ -8,10 +8,12 @@
8
8
  <div class="col-sm-11 form-group">
9
9
  <div v-for="(index,item) in data.fields">
10
10
  <!--input-->
11
- <div v-if="item.type==='input'" v-show="!item.hidden"
11
+ <div v-if="item.type==='input' ||item.type === 'tel' " v-show="!item.hidden"
12
12
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
13
13
  <label
14
- :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{ item.label }}:</label>
14
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{
15
+ item.label
16
+ }}:</label>
15
17
  <div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
16
18
  <input class="form-control"
17
19
  :type="item.type"
@@ -20,7 +22,7 @@
20
22
  :value="data.fields[index].value"
21
23
  :readonly="item.readonly"
22
24
  :disable="item.disable"
23
- @change="disabled_check(index,data.fields[index].required,data.fields[index].value)"
25
+ @change="select_change(index),disabled_check(index,data.fields[index].required,data.fields[index].value)"
24
26
  @blur="check_disable"
25
27
  />
26
28
  </div>
@@ -29,7 +31,9 @@
29
31
  <div v-if="item.type==='number'" v-show="!item.hidden"
30
32
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
31
33
  <label
32
- :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{ item.label }}:</label>
34
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{
35
+ item.label
36
+ }}:</label>
33
37
  <div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
34
38
  <input class="form-control"
35
39
  :type="item.type"
@@ -48,7 +52,9 @@
48
52
  <div v-if="item.type==='datepicker'"
49
53
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-xs-12 form-group']">
50
54
  <label style="margin-top: 0.7em"
51
- :class="item.label_bootstraped?item.label_bootstraped +' control-label':'control-label col-sm-6'">{{ item.label }}:</label>
55
+ :class="item.label_bootstraped?item.label_bootstraped +' control-label':'control-label col-sm-6'">{{
56
+ item.label
57
+ }}:</label>
52
58
  <div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
53
59
  <datepicker
54
60
  :placeholder="item.placeholder"
@@ -70,7 +76,9 @@
70
76
  <div v-if="item.type==='textarea'"
71
77
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
72
78
  <label
73
- :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{ item.label }}:</label>
79
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{
80
+ item.label
81
+ }}:</label>
74
82
  <div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-10'">
75
83
  <textarea
76
84
  :readonly="item.readonly"
@@ -89,7 +97,9 @@
89
97
  <div v-if="item.type==='radio'"
90
98
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
91
99
  <label v-if="item.label"
92
- :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{ item.label }}:</label>
100
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{
101
+ item.label
102
+ }}:</label>
93
103
  <div class="col-xs-12">
94
104
  <div
95
105
  :class="item.value_bootstraped?item.value_bootstraped:item.items.length%2 == 0?'col-xs-5': 'col-xs-3'"
@@ -108,7 +118,9 @@
108
118
  <div v-if="item.type==='select'"
109
119
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
110
120
  <label
111
- :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{ item.label }}:</label>
121
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{
122
+ item.label
123
+ }}:</label>
112
124
  <input-select :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'" @blur="check_disable"
113
125
  @change="select_change(index),disabled_check(index,data.fields[index].required,data.fields[index].value)"
114
126
  :readonly="item.readonly" :disable="item.disabled" :value.sync="data.fields[index].value"
@@ -121,20 +133,20 @@
121
133
  <div v-if="item.type==='checkbox'"
122
134
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
123
135
  <label v-if="item.label"
124
- :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{ item.label }}:</label>
125
- <div style="margin-top: 0.7em"
136
+ :class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{item.label }}</label>
137
+ <div style="margin-top: 6px"
126
138
  :class="item.value_bootstraped?item.value_bootstraped:'control-label col-sm-2'"
127
139
  v-for="(index2,row) in item.items">
128
140
  <label class="font-size form-group col-sm-6">{{ row.label }}</label>
129
141
  <input :readonly="item.readonly" :disabled="item.disabled" type="checkbox" class="col-sm-6"
130
- :id="row.label" v-model="data.fields[index].items[index2].value">
142
+ :id="row.label" v-model="data.fields[index].items[index2].value" @click="checkboxSelect(index,index2)">
131
143
  </div>
132
144
  </div>
133
145
 
134
146
 
135
147
  </div>
136
148
  </div>
137
- <div class="form-group col-sm-11" v-show="isshow">
149
+ <div class="form-group col-sm-11">
138
150
  <label class="text-left font">现场照片</label>
139
151
 
140
152
  <div class="auto">
@@ -160,7 +172,7 @@
160
172
  </div>
161
173
  </div>
162
174
  </div>
163
- <div class="form-group col-sm-11" v-show="isshow">
175
+ <div class="form-group col-sm-11" v-show="true">
164
176
  <label class="text-left font">用户签名</label>
165
177
  <div class="auto">
166
178
  <div class="panel">
@@ -202,6 +214,15 @@
202
214
 
203
215
 
204
216
  </div>
217
+
218
+
219
+
220
+ <div class="col-sm-11 form-group" v-for="item in onetomany" style="text-align: center">
221
+
222
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;" @click="gotoOneToMany(item)">前往{{item.title}}</button>
223
+
224
+ </div>
225
+
205
226
  <div class="col-sm-11 form-group">
206
227
  <div class="form-group col-sm-6">
207
228
  <label class=" col-sm-4 control-label">分公司:</label>
@@ -277,6 +298,8 @@
277
298
  <script>
278
299
 
279
300
  // Date格式化
301
+
302
+
280
303
  Date.prototype.Format = function (fmt) {
281
304
  var o = {
282
305
  "M+": this.getMonth() + 1, //月份
@@ -295,7 +318,7 @@ Date.prototype.Format = function (fmt) {
295
318
 
296
319
  import Vue from 'vue'
297
320
  import * as Util from '../../Util'
298
-
321
+ import {HttpResetClass} from 'vue-client'
299
322
  export default {
300
323
  title: '报建业务通用组件',
301
324
  props: ['data', 'model'],
@@ -305,11 +328,12 @@ export default {
305
328
  isshow: true,
306
329
  kchege: false,
307
330
  kcbuhege: false,
308
-
309
331
  countmoney: [0, 0, 0],
310
332
  data: null,
311
333
  showmodal: false,
312
- disable_button: true
334
+ disable_button: true,
335
+ onetomany: [],
336
+ refresh: true // 控制重新渲染
313
337
  }
314
338
  },
315
339
  created() {
@@ -318,12 +342,18 @@ export default {
318
342
  this.initializtion()
319
343
  },
320
344
  methods: {
321
- gotohetong(val) {
345
+ gotoOneToMany (item){
346
+ item.f_process_id = this.data.f_process_id
347
+ item.f_filiale = this.data.f_filiale
348
+ item.f_apply_num = this.data.f_apply_num
349
+ this.$dispatch('onetomany', item)
350
+ },
351
+ gotohetong (val) {
322
352
  console.log(val)
323
353
  console.log("进入goto")
324
354
  this.$dispatch('gotonewpage', val)
325
355
  },
326
- cameraCallBack(prop, fileName) {
356
+ cameraCallBack (prop, fileName) {
327
357
  if (prop == 'f_overall_path') {
328
358
  let f_overall_path = fileName + '?' + Math.random()
329
359
  HostApp.__this__.model.f_overall_imgs.push({
@@ -336,7 +366,7 @@ export default {
336
366
  HostApp.__callback__ = null
337
367
  HostApp.__this__ = null
338
368
  },
339
- takePic(prop, title, index) {
369
+ takePic (prop, title, index) {
340
370
  HostApp.__callback__ = this.cameraCallBack
341
371
  HostApp.__this__ = this
342
372
  console.log("prop:" + prop)
@@ -367,13 +397,13 @@ export default {
367
397
  }
368
398
  })
369
399
  },
370
- signCallback(prop, fileName) {
400
+ signCallback (prop, fileName) {
371
401
  // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
372
402
  HostApp.__this__.$set('model.f_sign_path', fileName)
373
403
  HostApp.__callback__ = null
374
404
  HostApp.__this__ = null
375
405
  },
376
- delAudioFile(prop, fileName) {
406
+ delAudioFile (prop, fileName) {
377
407
  if (!fileName)
378
408
  return
379
409
  else {
@@ -381,11 +411,7 @@ export default {
381
411
  this.model[prop] = null
382
412
  }
383
413
  },
384
- sign() {
385
- // if(!this.model.f_read_instructions){
386
- // this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
387
- // return
388
- // }
414
+ sign () {
389
415
  this.delAudioFile('f_sign_path', this.model.f_sign_path)
390
416
  let prop = 'f_sign_path'
391
417
  let idx = 'aofeng'
@@ -403,7 +429,7 @@ export default {
403
429
  callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
404
430
  })
405
431
  },
406
- delfile(prop, fileName, index) {
432
+ delfile (prop, fileName, index) {
407
433
  if (fileName == Vue.nopic)
408
434
  return
409
435
  else {
@@ -417,12 +443,13 @@ export default {
417
443
  }
418
444
  },
419
445
  // 初始化数据
420
- initializtion() {
421
-
422
- if (this.data.title == '安装通气') {
446
+ initializtion () {
447
+ if (this.data.title == '现场勘查' || this.data.title == '现场勘查定价') {
423
448
  this.isshow = false
424
449
  }
425
450
  console.log("5555555555555")
451
+ console.log("f_apply_num",this.data.f_apply_num)
452
+ console.log("f_filiale",this.data.f_filiale)
426
453
  console.log(this.data.f_user_type)
427
454
  console.log(this.isshow)
428
455
  Vue.nopic = 'file:///android_asset/nopic.png'
@@ -431,16 +458,15 @@ export default {
431
458
  console.log('!this.model.f_overall_imgs==>' + !this.model.f_overall_imgs)
432
459
  if (!this.model.f_overall_imgs) {
433
460
  let imgs = []
434
- // imgs.push({f_overall_path:Vue.nopic})
435
461
  this.$set('model.f_overall_imgs', imgs)
436
462
  console.log('进入setmodel.f_overall_imgs')
437
463
  }
438
464
  console.log('进入serviceview的initializtion方法')
439
465
  console.log(JSON.stringify(this.data))
440
- // let temp = this.data
441
- // let temp = JSON.parse()
442
- // this.data = temp
443
- // datepicker 没有值给当时值
466
+ if(this.data.onetomany){
467
+ console.log(JSON.stringify(this.data.onetomany))
468
+ this.onetomany = this.data.onetomany
469
+ }
444
470
  if (this.data.fields) {
445
471
  for (let i = 0; i < this.data.fields.length; i++) {
446
472
  if (this.data.fields[i].value) {
@@ -453,6 +479,15 @@ export default {
453
479
  if (this.data.fields[i].type === 'datepicker' && !this.data.fields[i].value) {
454
480
  this.data.fields[i].value = new Date().Format("yyyy-MM-dd HH:mm:ss")
455
481
  }
482
+ if(this.data.f_user_type ==='非民用'){
483
+ this.data.fields[i].required = false
484
+ }
485
+ if (this.data.fields[i].label==='气价名称'){
486
+ this.data.fields[i].options=Vue.prototype.$qijia
487
+ }
488
+ if (this.data.fields[i].label==='气表品牌'){
489
+ this.data.fields[i].options=Vue.prototype.$pinpai
490
+ }
456
491
  }
457
492
  }
458
493
 
@@ -482,7 +517,7 @@ export default {
482
517
  }
483
518
  },
484
519
  // 模态框点击确定按钮
485
- acknowledge() {
520
+ acknowledge () {
486
521
  for (let i = 0; i < this.data.buttons[this.model.button.button_index].button_fields.length; i++) {
487
522
  this.model.button.button_fields[this.data.buttons[this.model.button.button_index].button_fields[i].field] = this.data.buttons[this.model.button.button_index].button_fields[i].value
488
523
  }
@@ -490,17 +525,39 @@ export default {
490
525
  this.$dispatch('button', this.model)
491
526
  },
492
527
  // 关闭模态框
493
- closemodal() {
528
+ closemodal () {
494
529
  this.showmodal = false
495
530
  },
496
- watchmoney(val1, val2) {
531
+ watchmoney (val1, val2) {
497
532
  console.log("监听改变的值")
498
533
  console.log(val1)
499
534
  console.log(val2)
500
535
  },
501
536
  // 点击按钮
502
- clicked(index, button) {
537
+ clicked (index, button) {
503
538
  console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
539
+ if (button.button_name=='提交') {
540
+ if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
541
+ this.$showMessage("必须有现场照片")
542
+ return;
543
+ }
544
+ if(Vue.nopic==this.model.f_sign_path){
545
+ this.$showMessage("必须有签名照片")
546
+ return;
547
+ }
548
+ this.model.f_overall_imgs.push({
549
+ f_overall_path: this.model.f_sign_path,
550
+ f_overall_name: this.data.title
551
+ })
552
+ }
553
+
554
+
555
+ // if ((this.data.title == '现场勘查' || this.data.title == '现场勘查定价') && button.button_name=='提交') {
556
+ // if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
557
+ // this.$showMessage("必须有现场照片")
558
+ // return;
559
+ // }
560
+ // }
504
561
  if (this.kchege == 'true') {
505
562
  console.log(this.model.f_hege)
506
563
  if (this.model.f_hege != 'true') {
@@ -552,16 +609,22 @@ export default {
552
609
  }
553
610
  },
554
611
  // 级联操作预留
555
- select_change(index) {
612
+ select_change (index) {
556
613
  this.$dispatch('select_cascade', index)
557
614
  },
558
615
  // 检测按钮的disable
559
- disabled_check(index, required, value) {
616
+ disabled_check (index, required, value) {
560
617
  console.log("被检测到的值是什么")
561
618
  console.log(index)
562
619
  console.log(required)
563
620
  console.log(value)
564
621
  console.log(this.data.title)
622
+ if (this.data.fields[index].label=='气表品牌'){
623
+ console.log("进入改变气表型号")
624
+ const pinpai = Vue.prototype.$pinpai.filter(res=>res.value===value);
625
+ const arr = Vue.prototype.$xinghao.filter(res=>res.id==pinpai[0].id)
626
+ this.$set(`data.fields[${index+1}].options`,arr)
627
+ }
565
628
  if (this.data.title == '现场勘查') {
566
629
  if (index == 4) {
567
630
  if (value == '合格') {
@@ -576,19 +639,19 @@ export default {
576
639
  }
577
640
  }
578
641
  if (this.data.title == '现场勘查定价') {
579
- if (index == 6 || index == 7 || index == 5) {
580
- this.countmoney[index - 5] = parseInt(this.data.fields[index].value)
581
- console.log(this.data.fields[index].value)
582
- console.log("做出了改变")
583
- }
584
- console.log(JSON.stringify(this.countmoney))
585
- let money = 0
586
- for (let i = 0; i < this.countmoney.length; i++) {
587
- money += this.countmoney[i]
588
- }
589
- this.$set('data.fields[8].value', money)
590
- this.$set('data.fields[9].value', money)
591
- if (index == 10) {
642
+ // if (index == 6 || index == 7 || index == 5) {
643
+ // this.countmoney[index - 5] = parseInt(this.data.fields[index].value)
644
+ // console.log(this.data.fields[index].value)
645
+ // console.log("做出了改变")
646
+ // }
647
+ // console.log(JSON.stringify(this.countmoney))
648
+ // let money = 0
649
+ // for (let i = 0; i < this.countmoney.length; i++) {
650
+ // money += this.countmoney[i]
651
+ // }
652
+ // this.$set('data.fields[8].value', money)
653
+ // this.$set('data.fields[9].value', money)
654
+ if (index == 7) {
592
655
  console.log("1111111111" + value)
593
656
  if (value == '合格') {
594
657
  this.kchege = true
@@ -613,7 +676,19 @@ export default {
613
676
  }
614
677
  this.disable_button = flag
615
678
  }
616
- }
679
+ },
680
+ checkboxSelect (index,index1){
681
+ console.log("chufa事件");
682
+ this.$dispatch('checkboxSelectControl', index, index1)
683
+ },
684
+ // 强制刷新
685
+ update (){
686
+ this.refresh = false
687
+ this.$nextTick(() => {
688
+ this.refresh = true
689
+ })
690
+ this.initializtion()
691
+ },
617
692
  },
618
693
  watch: {
619
694
  'data.filed[12].value'(val) {
@@ -622,7 +697,7 @@ export default {
622
697
 
623
698
  }
624
699
  },
625
- 'data.operate_date'() {
700
+ 'data.operate_date' () {
626
701
  if (this.data.filiale) {
627
702
  this.model.f_filiale = this.data.filiale
628
703
  } else {
@@ -644,6 +719,13 @@ export default {
644
719
  this.model.f_operator = Vue.user.name
645
720
  }
646
721
  },
722
+ 'data.fields' () {
723
+ this.refresh = false
724
+ this.$nextTick(() => {
725
+ this.refresh = true
726
+ })
727
+ this.initializtion()
728
+ },
647
729
  deep: true
648
730
  },
649
731
  computed: {
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -13,6 +13,7 @@
13
13
 
14
14
  let http = new HttpResetClass()
15
15
  let param = {
16
+ f_process_id:self.data.f_process_id,
16
17
  f_bill_user: self.$login.f.name, // 票据使用人
17
18
  f_bill_type: self.data.f_bill_type, // 票据类型
18
19
  f_filialeids: self.$login.f.f_orgids, //所属分公司
@@ -37,17 +38,23 @@
37
38
  }
38
39
  },
39
40
  props: ['data','show'],
40
- ready () {
41
-
41
+ async ready () {
42
+ /*debugger
42
43
  console.log(this.data.f_bill_type)
43
44
  if (this.data.f_bill_type) {
44
- getCurrentBill(this)
45
+ await getCurrentBill(this)
46
+ console.log('打印参数',this.data.f_process_id)
45
47
 
46
- }
48
+ }*/
47
49
  },
48
50
  watch : {
49
- 'show' (val) {
50
- getCurrentBill(this)
51
+ data:{
52
+ deep:true,
53
+ immediate:true,
54
+ async handler(){
55
+ console.log('1111155555')
56
+ await getCurrentBill(this)
57
+ }
51
58
  }
52
59
  }
53
60
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="auto form-horizontal" >
3
- <modal :show.sync="show" v-ref:modal large backdrop="false">
3
+ <modal :show.sync="show" v-if="show" v-ref:modal large backdrop="false">
4
4
  <header slot="modal-header" class="modal-header">
5
5
  <h3 style="color:black" class="modal-title" >{{billConfig.billtype}}</h3>
6
6
  <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
@@ -11,8 +11,8 @@
11
11
  <!-- </div>-->
12
12
  <validator name='v'>
13
13
  <form class="form-horizontal select-overspread">
14
- <div class="row" style="display: flex;justify-content: center;" id='normal-bill' v-if="bill.data">
15
- {{{bill.data}}}
14
+ <div class="row" style="display: flex;justify-content: center;" id='normal-bill_xx' v-if="bill.data" v-html="bill.data">
15
+
16
16
  </div>
17
17
  </form>
18
18
  </validator>
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
  </div>
26
26
  <button type="button" class="btn btn-success" @click='print()'>打印</button>
27
- <report-print id='normal-bill' top='15mm' left='5mm' width='90%' height='70%' :notrepeat="false" :showbtn="false" v-ref:reportprint></report-print>
27
+ <report-print :id="'normal-bill_xx'" top='15mm' left='5mm' width='90%' height='70%' :notrepeat="false" :showbtn="false" v-ref:reportprint></report-print>
28
28
  <button type="button" class="btn btn-default" @click='cancel()' v-if="!billConfig.hasBillManage">取消</button>
29
29
  </footer>
30
30
  </modal>
@@ -35,6 +35,7 @@
35
35
  import Vue from "vue";
36
36
 
37
37
  let getBillData = async function(self, val) {
38
+ debugger
38
39
  self.bill = new DataModel(self.billData.url, {reprint: "'正常'"})
39
40
  await self.bill.search(self.data.chargeid)
40
41
  // self.bill.condition=
@@ -50,11 +51,11 @@
50
51
  model: {
51
52
  f_using_number: null
52
53
  },
53
- bill: {},
54
+ bill: {data:''},
54
55
  messShow: false
55
56
  }
56
57
  },
57
- props: ['show', 'data', 'billData', 'billConfig','titleName'],
58
+ props: ['show', 'data', 'billData', 'billConfig','titleName','billDataantai'],
58
59
  ready () {
59
60
  console.log('打票!!!!!!!!!!!!!!!!!')
60
61