apply-clients 5.0.35-90 → 5.0.35-93
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.
- package/package.json +1 -1
- package/src/components/app_apply/ApplyToDoList.vue +73 -2581
- package/src/components/app_apply/ServiceControl.vue +687 -687
- package/src/components/app_apply/ezhou/ServiceView.vue +5 -68
- package/src/components/product/Common/PrintBill.vue +121 -121
- package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -304
- package/src/components/product/EngineeringManagement/EngineeringSelect.vue +586 -586
- package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -281
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +132 -132
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +340 -340
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +490 -490
- package/src/components/product/Function/InstallInfoSelect.vue +255 -255
- package/src/components/product/Function/functions/BuyerMessage.vue +512 -512
- package/src/components/product/Function/functions/InstallFee.vue +1161 -1154
- package/src/components/product/Process/ExplorationSelect.vue +640 -640
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +392 -392
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2155 -2155
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +453 -453
- package/src/components/product/Supervisory/SupervisoryList.vue +409 -409
- package/src/components/product/stopInfo/ApplyStopInfo.vue +281 -281
- package/src/ezhouAndroid.js +48 -48
|
@@ -444,7 +444,6 @@ export default {
|
|
|
444
444
|
},
|
|
445
445
|
// 初始化数据
|
|
446
446
|
initializtion () {
|
|
447
|
-
|
|
448
447
|
if (this.data.title == '现场勘查' || this.data.title == '现场勘查定价') {
|
|
449
448
|
this.isshow = false
|
|
450
449
|
}
|
|
@@ -484,52 +483,10 @@ export default {
|
|
|
484
483
|
this.data.fields[i].required = false
|
|
485
484
|
}
|
|
486
485
|
if (this.data.fields[i].label==='气价名称'){
|
|
487
|
-
|
|
488
|
-
let data={
|
|
489
|
-
items:"f_price_name",
|
|
490
|
-
tablename:"t_stairprice",
|
|
491
|
-
condition:`f_filialeids = '${Vue.user.f_orgids}' and f_state= '有效' and getdate()>=f_perform_date and getdate()<=f_end_date `,
|
|
492
|
-
orderitem:'id'
|
|
493
|
-
}
|
|
494
|
-
let qijia=[]
|
|
495
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
496
|
-
console.log("66666666666666666666")
|
|
497
|
-
console.log(JSON.stringify(res))
|
|
498
|
-
console.log(typeof res)
|
|
499
|
-
//console.log(JSON.stringify(res.data[0]))
|
|
500
|
-
let result=res.data
|
|
501
|
-
result.forEach(ress=>{
|
|
502
|
-
qijia.push({
|
|
503
|
-
label:ress.f_price_name,
|
|
504
|
-
value:ress.f_price_name
|
|
505
|
-
})
|
|
506
|
-
})
|
|
507
|
-
this.data.fields[i].options=qijia
|
|
508
|
-
})
|
|
486
|
+
this.data.fields[i].options=Vue.prototype.$qijia
|
|
509
487
|
}
|
|
510
488
|
if (this.data.fields[i].label==='气表品牌'){
|
|
511
|
-
|
|
512
|
-
let data={
|
|
513
|
-
items:"f_meter_brand",
|
|
514
|
-
tablename:"t_gasbrand",
|
|
515
|
-
condition:`f_filialeids = '${Vue.user.f_orgids}'`,
|
|
516
|
-
orderitem:'id'
|
|
517
|
-
}
|
|
518
|
-
let pinpai=[]
|
|
519
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
520
|
-
console.log("666666666666666666662")
|
|
521
|
-
console.log(JSON.stringify(res))
|
|
522
|
-
console.log(typeof res)
|
|
523
|
-
//console.log(JSON.stringify(res.data[0]))
|
|
524
|
-
let result=res.data
|
|
525
|
-
result.forEach(ress=>{
|
|
526
|
-
pinpai.push({
|
|
527
|
-
label:ress.f_meter_brand,
|
|
528
|
-
value:ress.f_meter_brand
|
|
529
|
-
})
|
|
530
|
-
})
|
|
531
|
-
this.data.fields[i].options=pinpai
|
|
532
|
-
})
|
|
489
|
+
this.data.fields[i].options=Vue.prototype.$pinpai
|
|
533
490
|
}
|
|
534
491
|
}
|
|
535
492
|
}
|
|
@@ -664,29 +621,9 @@ export default {
|
|
|
664
621
|
console.log(this.data.title)
|
|
665
622
|
if (this.data.fields[index].label=='气表品牌'){
|
|
666
623
|
console.log("进入改变气表型号")
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
items:"gm.f_meter_style",
|
|
671
|
-
tablename:"t_gasmodel gm left join t_gasbrand gb on gm.f_gasbrand_id=gb.id",
|
|
672
|
-
condition:`gb.f_filialeids = '${Vue.user.f_orgids}' and gb.f_meter_brand='${value}'`,
|
|
673
|
-
orderitem:'gm.id'
|
|
674
|
-
}
|
|
675
|
-
let xinghao=[]
|
|
676
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
677
|
-
console.log("66666666666666666666")
|
|
678
|
-
console.log(JSON.stringify(res))
|
|
679
|
-
console.log(typeof res)
|
|
680
|
-
//console.log(JSON.stringify(res.data[0]))
|
|
681
|
-
let result=res.data
|
|
682
|
-
result.forEach(ress=>{
|
|
683
|
-
xinghao.push({
|
|
684
|
-
label:ress.f_meter_style,
|
|
685
|
-
value:ress.f_meter_style
|
|
686
|
-
})
|
|
687
|
-
})
|
|
688
|
-
this.data.fields[index+1].options=xinghao
|
|
689
|
-
})
|
|
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)
|
|
690
627
|
}
|
|
691
628
|
if (this.data.title == '现场勘查') {
|
|
692
629
|
if (index == 4) {
|
|
@@ -1,121 +1,121 @@
|
|
|
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>×</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>
|
|
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>×</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>
|