apply-clients 4.1.64 → 4.1.68
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/index.html +30 -30
- package/package.json +3 -2
- package/src/apply.js +2 -1
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
- package/src/components/product/Function/InstallInfoSelect.vue +282 -281
- package/src/components/product/Function/StopApplyCrrdList.vue +1 -1
- package/src/components/product/Process/ExplorationSelect.vue +354 -356
- package/src/components/product/Process/Processes/InstallationDetails.vue +269 -232
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +841 -103
- package/src/components/product/Process/Processes/chargeManagement.vue +9 -9
- package/src/components/product/Process/Processes/devicesDetails.vue +514 -0
- package/src/components/product/Process/Processes/printCharge.vue +130 -130
- package/src/components/product/Process/Processes/recordcancel.vue +50 -50
- package/src/components/product/Process/Service/ServiceControl.vue +86 -64
- package/src/components/product/ServiceView.vue +24 -39
- package/src/components/product/Supervisory/SupervisoryControl.vue +119 -119
- package/src/components/product/Supervisory/SupervisoryList.vue +208 -208
- package/src/components/product/Test.vue +8 -4
- package/src/components/product/VueUtils/ApplyUpload.vue +261 -261
- package/dist.rar +0 -0
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<style id="style">
|
|
3
|
-
td{
|
|
4
|
-
height: 50px;
|
|
5
|
-
width: 40px;
|
|
6
|
-
text-align: center;
|
|
7
|
-
}
|
|
8
|
-
table{
|
|
9
|
-
margin: auto;
|
|
10
|
-
width: 100%;
|
|
11
|
-
border-collapse:collapse;
|
|
12
|
-
border: 1px solid black;
|
|
13
|
-
}
|
|
14
|
-
h1,h2,h3,h4,h5,h6 {
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
.date{
|
|
18
|
-
float: left;
|
|
19
|
-
padding-left: 30px;
|
|
20
|
-
}
|
|
21
|
-
.number{
|
|
22
|
-
float: right;
|
|
23
|
-
padding-right: 30px;
|
|
24
|
-
}
|
|
25
|
-
.rescue{
|
|
26
|
-
float: left;
|
|
27
|
-
padding: 0 30px 0 40px;
|
|
28
|
-
}
|
|
29
|
-
.service{
|
|
30
|
-
float: left;
|
|
31
|
-
}
|
|
32
|
-
.payee{
|
|
33
|
-
float: right;
|
|
34
|
-
padding-right: 30px;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
<div id="print">
|
|
38
|
-
<h4>陕西中盛天然气有限公司收费单</h4>
|
|
39
|
-
<span>
|
|
40
|
-
<p class="date">{{new Date().Format('yyyy-MM-dd HH:mm:ss')}}</p>
|
|
41
|
-
<p class="number">缴费编号:{{ charge.f_charge_number }}</p>
|
|
42
|
-
</span>
|
|
43
|
-
<table border="1">
|
|
44
|
-
<tr>
|
|
45
|
-
<td>用户姓名</td>
|
|
46
|
-
<td colspan="2">{{ f_user_name }}</td>
|
|
47
|
-
<td>联系电话</td>
|
|
48
|
-
<td>{{ f_user_phone }}</td>
|
|
49
|
-
</tr>
|
|
50
|
-
<tr
|
|
51
|
-
<td>地  址</td
|
|
52
|
-
<td colspan="4">{{ f_useraddress }}</td
|
|
53
|
-
</tr
|
|
54
|
-
<tr>
|
|
55
|
-
<td>收费项目</td>
|
|
56
|
-
<td colspan="2">安装费</td>
|
|
57
|
-
<td>收费方式</td>
|
|
58
|
-
<td>{{ charge.f_payment_method }}</td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td>收费金额</td>
|
|
62
|
-
<td>{{ charge.f_charge_money }}</td>
|
|
63
|
-
<td>大  写</td>
|
|
64
|
-
<td colspan="2">{{ charge.f_amount_words }}</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td>备  注</td>
|
|
68
|
-
<td colspan="4">{{ selectdata.f_entry_name }}</td>
|
|
69
|
-
</tr>
|
|
70
|
-
</table>
|
|
71
|
-
<span>
|
|
72
|
-
<p class="rescue">
|
|
73
|
-
<!-- 抢险电话:5835588-->
|
|
74
|
-
</p>
|
|
75
|
-
<p class="service">
|
|
76
|
-
<!-- 服务电话:3718002-->
|
|
77
|
-
</p>
|
|
78
|
-
<p class="payee">收款人:{{ charge.f_charge_collectors }}</p>
|
|
79
|
-
</span>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<print-element v-show="false" v-ref:print id='print' styleid='style'
|
|
83
|
-
top='40' left='60' width='100%' height='100%'>
|
|
84
|
-
</print-element>
|
|
85
|
-
</template>
|
|
86
|
-
|
|
87
|
-
<script>
|
|
88
|
-
import { isEmpty } from '../../../Util'
|
|
89
|
-
Date.prototype.Format = function (fmt) {
|
|
90
|
-
var o = {
|
|
91
|
-
"M+": this.getMonth() + 1, //月份
|
|
92
|
-
"d+": this.getDate(), //日
|
|
93
|
-
"H+": this.getHours(), //小时
|
|
94
|
-
"m+": this.getMinutes(), //分
|
|
95
|
-
"s+": this.getSeconds(), //秒
|
|
96
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
97
|
-
"S": this.getMilliseconds() //毫秒
|
|
98
|
-
};
|
|
99
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
100
|
-
for (var k in o)
|
|
101
|
-
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
102
|
-
return fmt;
|
|
103
|
-
}
|
|
104
|
-
export default {
|
|
105
|
-
title: '打印收费票据',
|
|
106
|
-
props: ['selectdata', 'charge'],
|
|
107
|
-
data () {
|
|
108
|
-
return {}
|
|
109
|
-
},
|
|
110
|
-
ready () {
|
|
111
|
-
console.log('------------------打印-------------------')
|
|
112
|
-
console.log()
|
|
113
|
-
},
|
|
114
|
-
computed: {
|
|
115
|
-
f_user_name () {
|
|
116
|
-
return isEmpty(this.charge.f_user_name) ? this.selectdata.f_contact : this.charge.f_user_name
|
|
117
|
-
},
|
|
118
|
-
f_user_phone () {
|
|
119
|
-
return isEmpty(this.charge.f_user_phone) ? this.selectdata.f_phone : this.charge.f_user_phone
|
|
120
|
-
},
|
|
121
|
-
f_useraddress () {
|
|
122
|
-
return isEmpty(this.charge.f_useraddress) ? `武安市${this.selectdata.f_street}${this.selectdata.f_residential_area}` : `武安市${this.charge.f_useraddress}`
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
<style scoped>
|
|
129
|
-
|
|
130
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<style id="style">
|
|
3
|
+
td{
|
|
4
|
+
height: 50px;
|
|
5
|
+
width: 40px;
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
table{
|
|
9
|
+
margin: auto;
|
|
10
|
+
width: 100%;
|
|
11
|
+
border-collapse:collapse;
|
|
12
|
+
border: 1px solid black;
|
|
13
|
+
}
|
|
14
|
+
h1,h2,h3,h4,h5,h6 {
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
.date{
|
|
18
|
+
float: left;
|
|
19
|
+
padding-left: 30px;
|
|
20
|
+
}
|
|
21
|
+
.number{
|
|
22
|
+
float: right;
|
|
23
|
+
padding-right: 30px;
|
|
24
|
+
}
|
|
25
|
+
.rescue{
|
|
26
|
+
float: left;
|
|
27
|
+
padding: 0 30px 0 40px;
|
|
28
|
+
}
|
|
29
|
+
.service{
|
|
30
|
+
float: left;
|
|
31
|
+
}
|
|
32
|
+
.payee{
|
|
33
|
+
float: right;
|
|
34
|
+
padding-right: 30px;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
<div id="print">
|
|
38
|
+
<h4>陕西中盛天然气有限公司收费单</h4>
|
|
39
|
+
<span>
|
|
40
|
+
<p class="date">{{new Date().Format('yyyy-MM-dd HH:mm:ss')}}</p>
|
|
41
|
+
<p class="number">缴费编号:{{ charge.f_charge_number }}</p>
|
|
42
|
+
</span>
|
|
43
|
+
<table border="1">
|
|
44
|
+
<tr>
|
|
45
|
+
<td>用户姓名</td>
|
|
46
|
+
<td colspan="2">{{ f_user_name }}</td>
|
|
47
|
+
<td>联系电话</td>
|
|
48
|
+
<td>{{ f_user_phone }}</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<!-- <tr>-->
|
|
51
|
+
<!-- <td>地  址</td>-->
|
|
52
|
+
<!-- <td colspan="4">{{ f_useraddress }}</td>-->
|
|
53
|
+
<!-- </tr>-->
|
|
54
|
+
<tr>
|
|
55
|
+
<td>收费项目</td>
|
|
56
|
+
<td colspan="2">安装费</td>
|
|
57
|
+
<td>收费方式</td>
|
|
58
|
+
<td>{{ charge.f_payment_method }}</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td>收费金额</td>
|
|
62
|
+
<td>{{ charge.f_charge_money }}</td>
|
|
63
|
+
<td>大  写</td>
|
|
64
|
+
<td colspan="2">{{ charge.f_amount_words }}</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>备  注</td>
|
|
68
|
+
<td colspan="4">{{ selectdata.f_entry_name }}</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</table>
|
|
71
|
+
<span>
|
|
72
|
+
<p class="rescue">
|
|
73
|
+
<!-- 抢险电话:5835588-->
|
|
74
|
+
</p>
|
|
75
|
+
<p class="service">
|
|
76
|
+
<!-- 服务电话:3718002-->
|
|
77
|
+
</p>
|
|
78
|
+
<p class="payee">收款人:{{ charge.f_charge_collectors }}</p>
|
|
79
|
+
</span>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<print-element v-show="false" v-ref:print id='print' styleid='style'
|
|
83
|
+
top='40' left='60' width='100%' height='100%'>
|
|
84
|
+
</print-element>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
|
+
<script>
|
|
88
|
+
import { isEmpty } from '../../../Util'
|
|
89
|
+
Date.prototype.Format = function (fmt) {
|
|
90
|
+
var o = {
|
|
91
|
+
"M+": this.getMonth() + 1, //月份
|
|
92
|
+
"d+": this.getDate(), //日
|
|
93
|
+
"H+": this.getHours(), //小时
|
|
94
|
+
"m+": this.getMinutes(), //分
|
|
95
|
+
"s+": this.getSeconds(), //秒
|
|
96
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
97
|
+
"S": this.getMilliseconds() //毫秒
|
|
98
|
+
};
|
|
99
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
100
|
+
for (var k in o)
|
|
101
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
102
|
+
return fmt;
|
|
103
|
+
}
|
|
104
|
+
export default {
|
|
105
|
+
title: '打印收费票据',
|
|
106
|
+
props: ['selectdata', 'charge'],
|
|
107
|
+
data () {
|
|
108
|
+
return {}
|
|
109
|
+
},
|
|
110
|
+
ready () {
|
|
111
|
+
console.log('------------------打印-------------------')
|
|
112
|
+
console.log()
|
|
113
|
+
},
|
|
114
|
+
computed: {
|
|
115
|
+
f_user_name () {
|
|
116
|
+
return isEmpty(this.charge.f_user_name) ? this.selectdata.f_contact : this.charge.f_user_name
|
|
117
|
+
},
|
|
118
|
+
f_user_phone () {
|
|
119
|
+
return isEmpty(this.charge.f_user_phone) ? this.selectdata.f_phone : this.charge.f_user_phone
|
|
120
|
+
},
|
|
121
|
+
f_useraddress () {
|
|
122
|
+
return isEmpty(this.charge.f_useraddress) ? `武安市${this.selectdata.f_street}${this.selectdata.f_residential_area}` : `武安市${this.charge.f_useraddress}`
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<style scoped>
|
|
129
|
+
|
|
130
|
+
</style>
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<validator name='v'>
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;">{{data.type}}销户</p>
|
|
5
|
-
<div class="row" style="margin-top:10px;">
|
|
6
|
-
<div class="form-group">
|
|
7
|
-
<label class=" col-sm-2 control-label">销户原因:</label>
|
|
8
|
-
<div class="col-sm-8">
|
|
9
|
-
<textarea class="form-control" v-model="model.f_cancel_reason" rows="3" placeholder="请填写原因"></textarea>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
|
|
14
|
-
<button class="btn btn-success" @click="confirm()" >确 认</button>
|
|
15
|
-
<button class="btn btn-default" @click="clean()" style="wid0px;margin-left:20px;">取 消</button>
|
|
16
|
-
</div>
|
|
17
|
-
</validator>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
import {HttpResetClass} from "vue-client";
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
props: ['data'],
|
|
26
|
-
title: '操作撤销',
|
|
27
|
-
data () {
|
|
28
|
-
return {
|
|
29
|
-
model: {
|
|
30
|
-
f_cancel_reason: '',
|
|
31
|
-
f_user_state: this.data.f_user_state,
|
|
32
|
-
f_process_id: this.data.f_process_id
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
confirm () {
|
|
38
|
-
let http = new HttpResetClass()
|
|
39
|
-
http.load('POST', 'rs/entity/t_zsrecord', model, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
40
|
-
.then(res => {
|
|
41
|
-
this.$info('撤销成功')
|
|
42
|
-
this.$dispatch('stoprecord')
|
|
43
|
-
})
|
|
44
|
-
},
|
|
45
|
-
clean () {
|
|
46
|
-
this.$dispatch('clean', this.model)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;">{{data.type}}销户</p>
|
|
5
|
+
<div class="row" style="margin-top:10px;">
|
|
6
|
+
<div class="form-group">
|
|
7
|
+
<label class=" col-sm-2 control-label">销户原因:</label>
|
|
8
|
+
<div class="col-sm-8">
|
|
9
|
+
<textarea class="form-control" v-model="model.f_cancel_reason" rows="3" placeholder="请填写原因"></textarea>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
|
|
14
|
+
<button class="btn btn-success" @click="confirm()" >确 认</button>
|
|
15
|
+
<button class="btn btn-default" @click="clean()" style="wid0px;margin-left:20px;">取 消</button>
|
|
16
|
+
</div>
|
|
17
|
+
</validator>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import {HttpResetClass} from "vue-client";
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
props: ['data'],
|
|
26
|
+
title: '操作撤销',
|
|
27
|
+
data () {
|
|
28
|
+
return {
|
|
29
|
+
model: {
|
|
30
|
+
f_cancel_reason: '',
|
|
31
|
+
f_user_state: this.data.f_user_state,
|
|
32
|
+
f_process_id: this.data.f_process_id
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
confirm () {
|
|
38
|
+
let http = new HttpResetClass()
|
|
39
|
+
http.load('POST', 'rs/entity/t_zsrecord', model, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
40
|
+
.then(res => {
|
|
41
|
+
this.$info('撤销成功')
|
|
42
|
+
this.$dispatch('stoprecord')
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
clean () {
|
|
46
|
+
this.$dispatch('clean', this.model)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
@@ -44,12 +44,6 @@ export default {
|
|
|
44
44
|
this.refurbish()
|
|
45
45
|
},
|
|
46
46
|
ready(){
|
|
47
|
-
console.log("1212",this.selectdata)
|
|
48
|
-
if (this.selectdata.defname === '合同签订') {
|
|
49
|
-
if (this.show_data.fields[7].label === '合同编号') {
|
|
50
|
-
this.show_data.fields[7].value = this.show_data.f_apply_num
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
47
|
},
|
|
54
48
|
methods: {
|
|
55
49
|
// 组件初始化操作
|
|
@@ -298,6 +292,18 @@ export default {
|
|
|
298
292
|
}
|
|
299
293
|
}
|
|
300
294
|
}
|
|
295
|
+
if (this.selectdata.defname === '施工') {
|
|
296
|
+
// for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
297
|
+
// if (this.show_data.fields[i].label == '工程状态') {
|
|
298
|
+
// this.show_data.fields[i].value = ''
|
|
299
|
+
// }
|
|
300
|
+
// }
|
|
301
|
+
for (const item of this.show_data.fields) {
|
|
302
|
+
if (item.label === '工程状态') {
|
|
303
|
+
return item.value = '未开工'
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
301
307
|
|
|
302
308
|
},
|
|
303
309
|
// 初始化fields值
|
|
@@ -439,12 +445,13 @@ export default {
|
|
|
439
445
|
start_activity: this.$workflow_vue.start_activity,
|
|
440
446
|
model: model,
|
|
441
447
|
loginUser: this.$login.f,
|
|
442
|
-
|
|
448
|
+
workflow_gxmlfilename: this.$workflow_vue.workflow_xmlfilename
|
|
443
449
|
}
|
|
450
|
+
console.log("gwfwe",this.selectdata)
|
|
444
451
|
// 下发,提交,保存,退回通用业务后台处理logic
|
|
445
452
|
let url = 'rs/logic/ApplyProductService'
|
|
446
453
|
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
447
|
-
if (res.data.code
|
|
454
|
+
if (res.data.code === 200) {
|
|
448
455
|
this.$dispatch('search')
|
|
449
456
|
} else {
|
|
450
457
|
if (res.data.msg) {
|
|
@@ -637,26 +644,39 @@ export default {
|
|
|
637
644
|
}
|
|
638
645
|
}
|
|
639
646
|
}
|
|
647
|
+
if (this.show_data.defname === '报建登记'&&this.show_data.f_apply_type==='工商户报建') {
|
|
640
648
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
if (this.show_data.fields[index].label === '是否已建档') {
|
|
651
|
-
if (res.data[0].f_user_state === '预备') {
|
|
652
|
-
this.show_data.fields[index].value = '否'
|
|
653
|
-
button.hidden = false
|
|
654
|
-
}else{
|
|
655
|
-
this.show_data.fields[index].value = '是'
|
|
656
|
-
button.hidden = true
|
|
649
|
+
console.log("13f", this.selectdata.onetomany)
|
|
650
|
+
for (const button of this.show_data.buttons) {
|
|
651
|
+
if (this.selectdata.onetomany&& button.button_name === '提交') {
|
|
652
|
+
console.log("1f")
|
|
653
|
+
button.disable = true
|
|
654
|
+
}
|
|
655
|
+
else {
|
|
656
|
+
button.disable = false
|
|
657
|
+
console.log("2f")
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
}
|
|
661
|
+
// if (this.show_data.defname === '营业厅建档'){
|
|
662
|
+
// let http = new HttpResetClass()
|
|
663
|
+
// let data = {
|
|
664
|
+
// tablename: 't_userinfo',
|
|
665
|
+
// condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
666
|
+
//
|
|
667
|
+
// }
|
|
668
|
+
// let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
669
|
+
//
|
|
670
|
+
// if (this.show_data.fields[index].label === '是否已建档') {
|
|
671
|
+
// if (res.data[0].f_user_state === '预备') {
|
|
672
|
+
// this.show_data.fields[index].value = '否'
|
|
673
|
+
// button.hidden = false
|
|
674
|
+
// }else{
|
|
675
|
+
// this.show_data.fields[index].value = '是'
|
|
676
|
+
// button.hidden = true
|
|
677
|
+
// }
|
|
678
|
+
// }
|
|
679
|
+
// }
|
|
660
680
|
if(this.show_data.defname === '现场勘察') {
|
|
661
681
|
console.log("this.shdata",this.show_data)
|
|
662
682
|
if (this.show_data.fields[index].label === '是否具备安装条件') {
|
|
@@ -669,48 +689,50 @@ export default {
|
|
|
669
689
|
}
|
|
670
690
|
}
|
|
671
691
|
}
|
|
672
|
-
if (this.show_data.defname === '通气点火'){
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
692
|
+
// if (this.show_data.defname === '通气点火'){
|
|
693
|
+
// let http = new HttpResetClass()
|
|
694
|
+
// let data = {
|
|
695
|
+
// tablename: 't_firemessage',
|
|
696
|
+
// condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
697
|
+
//
|
|
698
|
+
// }
|
|
699
|
+
// let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
700
|
+
// console.log("res")
|
|
701
|
+
// console.log(res.data)
|
|
702
|
+
// if (this.show_data.fields[index].label === '是否已通气') {
|
|
703
|
+
// if (res.data.length==0) {
|
|
704
|
+
// this.show_data.fields[index].value = '否'
|
|
705
|
+
// button.hidden = false
|
|
706
|
+
// }else{
|
|
707
|
+
// this.show_data.fields[index].value = '是'
|
|
708
|
+
// button.hidden = true
|
|
709
|
+
// }
|
|
710
|
+
// }
|
|
711
|
+
// }
|
|
712
|
+
if (this.show_data.defname === '合同签订') {
|
|
713
|
+
if (this.show_data.fields[index].label === '合同编号') {
|
|
714
|
+
if (!isEmpty(this.show_data.fields[index].value)) {
|
|
715
|
+
let http = new HttpResetClass()
|
|
716
|
+
let data = {
|
|
717
|
+
tablename: 't_apply',
|
|
718
|
+
condition: `f_contract_number='${this.show_data.fields[index].value}'`
|
|
719
|
+
}
|
|
720
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
721
|
+
resolveMsg: null,
|
|
722
|
+
rejectMsg: '合同编号查重失败'
|
|
723
|
+
})
|
|
724
|
+
if (res.data.length > 0) {
|
|
725
|
+
this.show_data.fields[index].value = null
|
|
726
|
+
this.$showAlert('合同编号已存在!!!', 'warning', 3000)
|
|
727
|
+
}
|
|
728
|
+
//拼写合同编号
|
|
729
|
+
if (this.selectdata.f_apply_type == '工商户报建') {
|
|
730
|
+
this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
|
|
731
|
+
}else {
|
|
732
|
+
this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
|
|
733
|
+
}
|
|
689
734
|
}
|
|
690
735
|
}
|
|
691
|
-
}
|
|
692
|
-
if (this.show_data.defname === '合同签订') {
|
|
693
|
-
// if (!isEmpty(this.show_data.fields[index].value)) {
|
|
694
|
-
// let http = new HttpResetClass()
|
|
695
|
-
// let data = {
|
|
696
|
-
// tablename: 't_apply',
|
|
697
|
-
// condition: `f_contract_number='${this.show_data.fields[index].value}'`
|
|
698
|
-
// }
|
|
699
|
-
// let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
700
|
-
// resolveMsg: null,
|
|
701
|
-
// rejectMsg: '合同编号查重失败'
|
|
702
|
-
// })
|
|
703
|
-
// if (res.data.length > 0) {
|
|
704
|
-
// for (const button of this.show_data.buttons) {
|
|
705
|
-
// if (button.button_name === '提交') {
|
|
706
|
-
// button.disable = true
|
|
707
|
-
// }
|
|
708
|
-
// }
|
|
709
|
-
// this.show_data.fields[index].value = null
|
|
710
|
-
// this.$showAlert('合同编号已存在!!!', 'warning', 3000)
|
|
711
|
-
// }
|
|
712
|
-
// }
|
|
713
|
-
|
|
714
736
|
if (this.show_data.fields[index].label === '单价(户)') {
|
|
715
737
|
let http = new HttpResetClass()
|
|
716
738
|
let data = {
|