apply-clients 5.0.35-62 → 5.0.35-65

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.
@@ -261,11 +261,11 @@ export default {
261
261
  'checkboxSelectControl'(index,index2){
262
262
  if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
263
263
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
264
-
265
264
  if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
266
265
  //增加和删除框中的内容
267
266
  if(this.$refs.service_show.data.fields[index].items[index2].value == false){
268
- this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
267
+ // this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
268
+ this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value==undefined?'':this.$refs.service_show.data.fields[i].value+this.$refs.service_show.data.fields[index].items[index2].label+" ";
269
269
  this.$refs.service_show.data.fields[index].items[index2].value=true;
270
270
  }else{
271
271
  let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
@@ -286,7 +286,7 @@ export default {
286
286
  if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
287
287
  //增加和删除框中的内容
288
288
  if(this.$refs.service_show.data.fields[index].items[index2].value == false){
289
- this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
289
+ this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value==undefined?'':this.$refs.service_show.data.fields[i].value+this.$refs.service_show.data.fields[index].items[index2].label+" ";
290
290
  this.$refs.service_show.data.fields[index].items[index2].value=true;
291
291
  }else{
292
292
  let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
@@ -301,6 +301,7 @@ export default {
301
301
  }
302
302
  }
303
303
  }
304
+ this.$refs.service_show.update()
304
305
  },
305
306
  // 任意select选中时触发事件
306
307
  async 'select_cascade'(index){
@@ -341,7 +342,8 @@ export default {
341
342
  streetrs.push(temp)
342
343
  }
343
344
  this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
344
- console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
345
+ // console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
346
+ this.$refs.service_show.update()
345
347
  })
346
348
  }
347
349
  }
@@ -368,7 +370,8 @@ export default {
368
370
  arears.push(temp)
369
371
  }
370
372
  this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...arears]
371
- console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
373
+ // console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
374
+ this.$refs.service_show.update()
372
375
  })
373
376
  }
374
377
  }
@@ -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>
@@ -141,7 +141,7 @@
141
141
  v-for="(index2,row) in item.items">
142
142
  <label class="font-size form-group col-sm-6">{{ row.label }}</label>
143
143
  <input :readonly="item.readonly" :disabled="item.disabled" type="checkbox" class="col-sm-6"
144
- :id="row.label" v-model="data.fields[index].items[index2].value">
144
+ :id="row.label" v-model="data.fields[index].items[index2].value" @click="checkboxSelect(index,index2)">
145
145
  </div>
146
146
  </div>
147
147
 
@@ -334,7 +334,8 @@ export default {
334
334
  data: null,
335
335
  showmodal: false,
336
336
  disable_button: true,
337
- onetomany:[]
337
+ onetomany: [],
338
+ refresh: true // 控制重新渲染
338
339
  }
339
340
  },
340
341
  created() {
@@ -343,18 +344,18 @@ export default {
343
344
  this.initializtion()
344
345
  },
345
346
  methods: {
346
- gotoOneToMany(item){
347
+ gotoOneToMany (item){
347
348
  item.f_process_id = this.data.f_process_id
348
349
  item.f_filiale = this.data.f_filiale
349
350
  item.f_apply_num = this.data.f_apply_num
350
351
  this.$dispatch('onetomany', item)
351
352
  },
352
- gotohetong(val) {
353
+ gotohetong (val) {
353
354
  console.log(val)
354
355
  console.log("进入goto")
355
356
  this.$dispatch('gotonewpage', val)
356
357
  },
357
- cameraCallBack(prop, fileName) {
358
+ cameraCallBack (prop, fileName) {
358
359
  if (prop == 'f_overall_path') {
359
360
  let f_overall_path = fileName + '?' + Math.random()
360
361
  HostApp.__this__.model.f_overall_imgs.push({
@@ -367,7 +368,7 @@ export default {
367
368
  HostApp.__callback__ = null
368
369
  HostApp.__this__ = null
369
370
  },
370
- takePic(prop, title, index) {
371
+ takePic (prop, title, index) {
371
372
  HostApp.__callback__ = this.cameraCallBack
372
373
  HostApp.__this__ = this
373
374
  console.log("prop:" + prop)
@@ -398,13 +399,13 @@ export default {
398
399
  }
399
400
  })
400
401
  },
401
- signCallback(prop, fileName) {
402
+ signCallback (prop, fileName) {
402
403
  // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
403
404
  HostApp.__this__.$set('model.f_sign_path', fileName)
404
405
  HostApp.__callback__ = null
405
406
  HostApp.__this__ = null
406
407
  },
407
- delAudioFile(prop, fileName) {
408
+ delAudioFile (prop, fileName) {
408
409
  if (!fileName)
409
410
  return
410
411
  else {
@@ -412,7 +413,7 @@ export default {
412
413
  this.model[prop] = null
413
414
  }
414
415
  },
415
- sign() {
416
+ sign () {
416
417
  this.delAudioFile('f_sign_path', this.model.f_sign_path)
417
418
  let prop = 'f_sign_path'
418
419
  let idx = 'aofeng'
@@ -430,7 +431,7 @@ export default {
430
431
  callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
431
432
  })
432
433
  },
433
- delfile(prop, fileName, index) {
434
+ delfile (prop, fileName, index) {
434
435
  if (fileName == Vue.nopic)
435
436
  return
436
437
  else {
@@ -444,7 +445,7 @@ export default {
444
445
  }
445
446
  },
446
447
  // 初始化数据
447
- initializtion() {
448
+ initializtion () {
448
449
 
449
450
  if (this.data.title == '现场勘查' || this.data.title == '现场勘查定价') {
450
451
  this.isshow = false
@@ -561,7 +562,7 @@ export default {
561
562
  }
562
563
  },
563
564
  // 模态框点击确定按钮
564
- acknowledge() {
565
+ acknowledge () {
565
566
  for (let i = 0; i < this.data.buttons[this.model.button.button_index].button_fields.length; i++) {
566
567
  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
567
568
  }
@@ -569,16 +570,16 @@ export default {
569
570
  this.$dispatch('button', this.model)
570
571
  },
571
572
  // 关闭模态框
572
- closemodal() {
573
+ closemodal () {
573
574
  this.showmodal = false
574
575
  },
575
- watchmoney(val1, val2) {
576
+ watchmoney (val1, val2) {
576
577
  console.log("监听改变的值")
577
578
  console.log(val1)
578
579
  console.log(val2)
579
580
  },
580
581
  // 点击按钮
581
- clicked(index, button) {
582
+ clicked (index, button) {
582
583
  console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
583
584
  if (button.button_name=='提交') {
584
585
  if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
@@ -653,11 +654,11 @@ export default {
653
654
  }
654
655
  },
655
656
  // 级联操作预留
656
- select_change(index) {
657
+ select_change (index) {
657
658
  this.$dispatch('select_cascade', index)
658
659
  },
659
660
  // 检测按钮的disable
660
- disabled_check(index, required, value) {
661
+ disabled_check (index, required, value) {
661
662
  console.log("被检测到的值是什么")
662
663
  console.log(index)
663
664
  console.log(required)
@@ -740,7 +741,19 @@ export default {
740
741
  }
741
742
  this.disable_button = flag
742
743
  }
743
- }
744
+ },
745
+ checkboxSelect (index,index1){
746
+ console.log("chufa事件");
747
+ this.$dispatch('checkboxSelectControl', index, index1)
748
+ },
749
+ // 强制刷新
750
+ update (){
751
+ this.refresh = false
752
+ this.$nextTick(() => {
753
+ this.refresh = true
754
+ })
755
+ this.initializtion()
756
+ },
744
757
  },
745
758
  watch: {
746
759
  'data.filed[12].value'(val) {
@@ -749,7 +762,7 @@ export default {
749
762
 
750
763
  }
751
764
  },
752
- 'data.operate_date'() {
765
+ 'data.operate_date' () {
753
766
  if (this.data.filiale) {
754
767
  this.model.f_filiale = this.data.filiale
755
768
  } else {
@@ -771,6 +784,13 @@ export default {
771
784
  this.model.f_operator = Vue.user.name
772
785
  }
773
786
  },
787
+ 'data.fields' () {
788
+ this.refresh = false
789
+ this.$nextTick(() => {
790
+ this.refresh = true
791
+ })
792
+ this.initializtion()
793
+ },
774
794
  deep: true
775
795
  },
776
796
  computed: {
@@ -1,121 +1,121 @@
1
- <template>
2
- <div class="auto form-horizontal" >
3
- <modal :show.sync="show" v-ref:modal large backdrop="false">
4
- <header slot="modal-header" class="modal-header">
5
- <h3 style="color:black" class="modal-title" >{{billConfig.billtype}}</h3>
6
- <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
7
- </header>
8
- <article slot="modal-body" class="modal-body">
9
- <!-- <div v-if="bill.data">-->
10
- <!-- {{{bill.data}}}-->
11
- <!-- </div>-->
12
- <validator name='v'>
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}}}
16
- </div>
17
- </form>
18
- </validator>
19
- </article>
20
- <footer slot="modal-footer" class="modal-footer">
21
- <div v-if="billConfig.hasBillManage">
22
- <div class="col-sm-2" >
23
- <span><strong>发票号:{{model.f_using_number}}</strong></span>
24
- </div>
25
- </div>
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>
28
- <button type="button" class="btn btn-default" @click='cancel()' v-if="!billConfig.hasBillManage">取消</button>
29
- </footer>
30
- </modal>
31
- </div>
32
- </template>
33
- <script>
34
- import { DataModel } from 'vue-client'
35
- import Vue from "vue";
36
-
37
- let getBillData = async function(self, val) {
38
- debugger
39
- self.bill = new DataModel(self.billData.url, {reprint: "'正常'"})
40
- await self.bill.search(self.data.chargeid)
41
- // self.bill.condition=
42
- // 获取发票号
43
- self.model.f_using_number = self.billData.bill.number
44
- console.log(self.bill)
45
- }
46
-
47
- export default {
48
- title: '收费发票',
49
- data () {
50
- return {
51
- model: {
52
- f_using_number: null
53
- },
54
- bill: {},
55
- messShow: false
56
- }
57
- },
58
- props: ['show', 'data', 'billData', 'billConfig','titleName','billDataantai'],
59
- ready () {
60
- console.log('打票!!!!!!!!!!!!!!!!!')
61
-
62
-
63
- },
64
- methods: {
65
- closebuyerinfo(){
66
- this.show=false;
67
- },
68
- cancel () {
69
- this.$dispatch('toggle')
70
- },
71
-
72
-
73
- async print () {
74
- // 更新系统发票
75
- this.data.f_operator=this.$login.f.name,
76
- this.data.f_filiale= this.$login.f.f_fengongsi,
77
- this.data.f_outlets= this.$login.f.f_parentname,
78
- this.data.f_orgstr=this.$login.f.orgpathstr,
79
- this.data.f_filialeids=this.$login.f.f_orgids
80
-
81
- try {
82
- if (this.billConfig.hasBillManage) {
83
- console.log("进入hasBillManage====================================")
84
- await this.$commonService.openPaperBill(this.data.chargeid, this.data.f_bill_type, this.billConfig.billType, this.billData.bill, '正常',this.data.f_operator,this.data.f_filiale,this.data.f_outlets,this.data.f_orgstr,this.data.f_filialeids)
85
- }
86
- //票据打印!!!!!!!!!!!!!!!!!!!!
87
- this.$refs.reportprint.print()
88
- this.$dispatch('selfsearch')
89
- this.$parent.model.f_charge_money=0
90
- this.$parent.model.f_amount_words=0
91
- this.$parent.model.f_amount_words=0
92
- this.show=false
93
- } catch (error) {
94
- this.$dispatch('refresh')
95
- }
96
- }
97
- },
98
- watch: {
99
- 'show' (val) {
100
- if (val) {
101
- getBillData(this, val).then(() => {
102
- }).catch((error) => {
103
-
104
- this.$emit('error', error)
105
- })
106
- }
107
- }
108
- },
109
- events: {
110
- 'print' () {
111
- this.$dispatch('printok', '发票打印', this.data)
112
- },
113
- 'print-error' () {
114
- this.$dispatch('error', '发票打印', this.data, null)
115
- }
116
- }
117
- }
118
-
119
- </script>
120
- <style >
121
- </style>
1
+ <template>
2
+ <div class="auto form-horizontal" >
3
+ <modal :show.sync="show" v-if="show" v-ref:modal large backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h3 style="color:black" class="modal-title" >{{billConfig.billtype}}</h3>
6
+ <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
7
+ </header>
8
+ <article slot="modal-body" class="modal-body">
9
+ <!-- <div v-if="bill.data">-->
10
+ <!-- {{{bill.data}}}-->
11
+ <!-- </div>-->
12
+ <validator name='v'>
13
+ <form class="form-horizontal select-overspread">
14
+ <div class="row" style="display: flex;justify-content: center;" id='normal-bill_xx' v-if="bill.data" v-html="bill.data">
15
+
16
+ </div>
17
+ </form>
18
+ </validator>
19
+ </article>
20
+ <footer slot="modal-footer" class="modal-footer">
21
+ <div v-if="billConfig.hasBillManage">
22
+ <div class="col-sm-2" >
23
+ <span><strong>发票号:{{model.f_using_number}}</strong></span>
24
+ </div>
25
+ </div>
26
+ <button type="button" class="btn btn-success" @click='print()'>打印</button>
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
+ <button type="button" class="btn btn-default" @click='cancel()' v-if="!billConfig.hasBillManage">取消</button>
29
+ </footer>
30
+ </modal>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import { DataModel } from 'vue-client'
35
+ import Vue from "vue";
36
+
37
+ let getBillData = async function(self, val) {
38
+ debugger
39
+ self.bill = new DataModel(self.billData.url, {reprint: "'正常'"})
40
+ await self.bill.search(self.data.chargeid)
41
+ // self.bill.condition=
42
+ // 获取发票号
43
+ self.model.f_using_number = self.billData.bill.number
44
+ console.log(self.bill)
45
+ }
46
+
47
+ export default {
48
+ title: '收费发票',
49
+ data () {
50
+ return {
51
+ model: {
52
+ f_using_number: null
53
+ },
54
+ bill: {data:''},
55
+ messShow: false
56
+ }
57
+ },
58
+ props: ['show', 'data', 'billData', 'billConfig','titleName','billDataantai'],
59
+ ready () {
60
+ console.log('打票!!!!!!!!!!!!!!!!!')
61
+
62
+
63
+ },
64
+ methods: {
65
+ closebuyerinfo(){
66
+ this.show=false;
67
+ },
68
+ cancel () {
69
+ this.$dispatch('toggle')
70
+ },
71
+
72
+
73
+ async print () {
74
+ // 更新系统发票
75
+ this.data.f_operator=this.$login.f.name,
76
+ this.data.f_filiale= this.$login.f.f_fengongsi,
77
+ this.data.f_outlets= this.$login.f.f_parentname,
78
+ this.data.f_orgstr=this.$login.f.orgpathstr,
79
+ this.data.f_filialeids=this.$login.f.f_orgids
80
+
81
+ try {
82
+ if (this.billConfig.hasBillManage) {
83
+ console.log("进入hasBillManage====================================")
84
+ await this.$commonService.openPaperBill(this.data.chargeid, this.data.f_bill_type, this.billConfig.billType, this.billData.bill, '正常',this.data.f_operator,this.data.f_filiale,this.data.f_outlets,this.data.f_orgstr,this.data.f_filialeids)
85
+ }
86
+ //票据打印!!!!!!!!!!!!!!!!!!!!
87
+ this.$refs.reportprint.print()
88
+ this.$dispatch('selfsearch')
89
+ this.$parent.model.f_charge_money=0
90
+ this.$parent.model.f_amount_words=0
91
+ this.$parent.model.f_amount_words=0
92
+ this.show=false
93
+ } catch (error) {
94
+ this.$dispatch('refresh')
95
+ }
96
+ }
97
+ },
98
+ watch: {
99
+ 'show' (val) {
100
+ if (val) {
101
+ getBillData(this, val).then(() => {
102
+ }).catch((error) => {
103
+
104
+ this.$emit('error', error)
105
+ })
106
+ }
107
+ }
108
+ },
109
+ events: {
110
+ 'print' () {
111
+ this.$dispatch('printok', '发票打印', this.data)
112
+ },
113
+ 'print-error' () {
114
+ this.$dispatch('error', '发票打印', this.data, null)
115
+ }
116
+ }
117
+ }
118
+
119
+ </script>
120
+ <style >
121
+ </style>