apply-clients 3.3.94 → 3.3.95
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/build/dev-server-app.js +76 -76
- package/build/dev-server.js +6 -43
- package/package.json +1 -1
- package/src/App.vue +20 -22
- package/src/components/android/AppSign.vue +3 -11
- package/src/components/android/AppTakePic.vue +143 -144
- package/src/components/android/Process/AppExplorationUser.vue +495 -495
- package/src/components/android/Process/AppServiceControl.vue +1417 -1417
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +6 -0
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +147 -119
- package/src/components/product/Function/InstallInfoSelect.vue +320 -320
- package/src/components/product/Material/MaterialDetailed.vue +0 -11
- package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -259
- package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -168
- package/src/components/product/Process/Service/ServiceControl.vue +1430 -1430
- package/src/components/product/Supervisory/SupervisoryList.vue +378 -378
- package/src/main.js +5 -6
- package/.project +0 -17
|
@@ -1,1417 +1,1417 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
-
<accordion one-at-a-time="true">
|
|
4
|
-
<panel :header="selectdata.defname" :is-open="true" type="primary">
|
|
5
|
-
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
6
|
-
</panel>
|
|
7
|
-
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
8
|
-
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
|
|
9
|
-
</panel>
|
|
10
|
-
<panel header="签字" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
11
|
-
<app-sign @sign-success="signSuccess" :file-path="selectdata.f_process_id" @sign-clean="signClean"></app-sign>
|
|
12
|
-
</panel>
|
|
13
|
-
</accordion>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
<script>
|
|
17
|
-
import Vue from 'vue'
|
|
18
|
-
import {HttpResetClass} from 'vue-client'
|
|
19
|
-
import {isEmpty} from "../../Util";
|
|
20
|
-
// Date格式化
|
|
21
|
-
Date.prototype.Format = function (fmt) {
|
|
22
|
-
var o = {
|
|
23
|
-
'M+': this.getMonth() + 1, // 月份
|
|
24
|
-
'd+': this.getDate(), // 日
|
|
25
|
-
'H+': this.getHours(), // 小时
|
|
26
|
-
'm+': this.getMinutes(), // 分
|
|
27
|
-
's+': this.getSeconds(), // 秒
|
|
28
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
29
|
-
'S': this.getMilliseconds() // 毫秒
|
|
30
|
-
}
|
|
31
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
32
|
-
for (var k in o) {
|
|
33
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
34
|
-
}
|
|
35
|
-
return fmt
|
|
36
|
-
}
|
|
37
|
-
export default {
|
|
38
|
-
title: '报建流程业务控制层',
|
|
39
|
-
props: ['selectdata'],
|
|
40
|
-
data () {
|
|
41
|
-
return {
|
|
42
|
-
json_datas: null,
|
|
43
|
-
data: null,
|
|
44
|
-
show_data: null,
|
|
45
|
-
showview: false,
|
|
46
|
-
config: {}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
ready () {
|
|
50
|
-
this.refurbish()
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
async refurbish() {
|
|
54
|
-
let data = {
|
|
55
|
-
workname: this.selectdata.processname
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
let res = await this.$resetpost(
|
|
59
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
|
|
60
|
-
{data: data},
|
|
61
|
-
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
this.json_datas = res.data
|
|
65
|
-
|
|
66
|
-
let sum = 0
|
|
67
|
-
let jsonData = {}
|
|
68
|
-
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
69
|
-
this.$showMessage("网络故障,请刷新页面")
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
this.json_datas.activitys.forEach(item => {
|
|
73
|
-
if (this.selectdata.defname === item.title) {
|
|
74
|
-
jsonData = item // 拿到当前节点的json配置信息
|
|
75
|
-
sum++ // 节点名一样的个数
|
|
76
|
-
}
|
|
77
|
-
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
if (sum === 0) {
|
|
81
|
-
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
if (sum > 1) {
|
|
85
|
-
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
86
|
-
return
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
this.selectdata = Object.assign({}, this.selectdata, jsonData)
|
|
90
|
-
|
|
91
|
-
// fields 字段填充值
|
|
92
|
-
for (const item of this.selectdata.fields) {
|
|
93
|
-
if (!item.value) {
|
|
94
|
-
item.value = null
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
98
|
-
if (item.eval) {
|
|
99
|
-
let user = Vue.user
|
|
100
|
-
// 将PC用户信息 替换成 APP的
|
|
101
|
-
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
102
|
-
} else {
|
|
103
|
-
item.value = item.default
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (this.selectdata[item.field]) {
|
|
108
|
-
// 将json字符串格式化赋值给value
|
|
109
|
-
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
110
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
111
|
-
} else {
|
|
112
|
-
item.value = this.selectdata[item.field]
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (this.selectdata[item.field] === 0) {
|
|
116
|
-
item.value = 0
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// datepicker
|
|
120
|
-
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
121
|
-
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
125
|
-
if (item.type === 'select' || item.type === 'checkbox') {
|
|
126
|
-
if (item.param) {
|
|
127
|
-
let temp = this.$appdata.getParam(item.label)
|
|
128
|
-
|
|
129
|
-
if (temp && temp.length > 0) {
|
|
130
|
-
item.options = temp
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (item.paramLabel) {
|
|
134
|
-
temp = this.$appdata.getParam(item.paramLabel)
|
|
135
|
-
if (temp && temp.length > 0) {
|
|
136
|
-
item.options = temp
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
console.log("item.ready"+item.ready)
|
|
141
|
-
if (item.ready) {
|
|
142
|
-
item.options = await this[item.ready]()
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (item.type === 'checkbox') {
|
|
148
|
-
if (this.selectdata[item.field]) {
|
|
149
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
150
|
-
} else {
|
|
151
|
-
item.value = []
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// 控制组件
|
|
157
|
-
if (this.selectdata.components) {
|
|
158
|
-
this.selectdata.components.forEach(item => {
|
|
159
|
-
if (!item.mark) {
|
|
160
|
-
item.mark = 0
|
|
161
|
-
}
|
|
162
|
-
})
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// 初始化onetomany
|
|
166
|
-
if (this.selectdata.onetomany) {
|
|
167
|
-
for (const item of this.selectdata.onetomany) {
|
|
168
|
-
let res = null
|
|
169
|
-
if (item.queryEvent) {
|
|
170
|
-
res = this[item.queryEvent]()
|
|
171
|
-
} else {
|
|
172
|
-
let http = new HttpResetClass()
|
|
173
|
-
let data = {
|
|
174
|
-
tablename: item.tables[0],
|
|
175
|
-
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
176
|
-
}
|
|
177
|
-
res = await http.load(
|
|
178
|
-
'POST',
|
|
179
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
180
|
-
// `rs/sql/singleTable`,
|
|
181
|
-
{data: data},
|
|
182
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
183
|
-
)
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
item.rows = res.data
|
|
187
|
-
|
|
188
|
-
// 初始化onetomany中的fields
|
|
189
|
-
for (const field of item.fields) {
|
|
190
|
-
if (!field.value) {
|
|
191
|
-
if (field.value !== 0) {
|
|
192
|
-
field.value = null
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (field.default || field.default === 0) {
|
|
197
|
-
field.value = field.default
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// datepicker
|
|
201
|
-
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
202
|
-
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (field.type === 'select') {
|
|
206
|
-
|
|
207
|
-
if (field.param) {
|
|
208
|
-
let temp = this.$appdata.getParam(field.label)
|
|
209
|
-
|
|
210
|
-
if (temp && temp.length > 0) {
|
|
211
|
-
field.options = temp
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
if (field.paramLabel) {
|
|
215
|
-
temp = this.$appdata.getParam(field.paramLabel)
|
|
216
|
-
if (temp && temp.length > 0) {
|
|
217
|
-
item.options = temp
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// 初始化 buttons_fields
|
|
228
|
-
for (const item of this.selectdata.buttons) {
|
|
229
|
-
if (item.button_name === '下发') {
|
|
230
|
-
let data = {
|
|
231
|
-
source: item.source,
|
|
232
|
-
userid: Vue.user.id
|
|
233
|
-
// userid: '51953'
|
|
234
|
-
}
|
|
235
|
-
if (item.sourceMethod) {
|
|
236
|
-
data.source = this[item.sourceMethod]()
|
|
237
|
-
}
|
|
238
|
-
if (!data.source) {
|
|
239
|
-
this.$showMessage("请配置获取人员表达式")
|
|
240
|
-
return
|
|
241
|
-
}
|
|
242
|
-
let res = await this.$resetpost(
|
|
243
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
244
|
-
// `rs/search`,
|
|
245
|
-
{data: data},
|
|
246
|
-
{resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
|
|
247
|
-
)
|
|
248
|
-
|
|
249
|
-
let options = res.data.map(source => {
|
|
250
|
-
return {
|
|
251
|
-
"label": source.name,
|
|
252
|
-
"value": source.id
|
|
253
|
-
}
|
|
254
|
-
})
|
|
255
|
-
|
|
256
|
-
if (item.button_fields.length !== 1) {
|
|
257
|
-
this.$showMessage("下发有且只能有一个字段!!!")
|
|
258
|
-
return
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
item.button_fields[0].options = options
|
|
262
|
-
}
|
|
263
|
-
if (item.button_fields) {
|
|
264
|
-
item.button_fields.forEach(x => {
|
|
265
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
266
|
-
if (x.type === 'select') {
|
|
267
|
-
|
|
268
|
-
if (x.param) {
|
|
269
|
-
let temp = this.$appdata.getParam(x.label)
|
|
270
|
-
|
|
271
|
-
if (temp && temp.length > 0) {
|
|
272
|
-
x.options = temp
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
if (x.paramLabel) {
|
|
276
|
-
temp = this.$appdata.getParam(x.paramLabel)
|
|
277
|
-
if (temp && temp.length > 0) {
|
|
278
|
-
x.options = temp
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
})
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
289
|
-
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
290
|
-
|
|
291
|
-
this.show_data = temp
|
|
292
|
-
this.$nextTick(() => {
|
|
293
|
-
this.showview = true
|
|
294
|
-
})
|
|
295
|
-
},
|
|
296
|
-
signClean () {
|
|
297
|
-
this.selectdata.f_construction_sign = null
|
|
298
|
-
},
|
|
299
|
-
signSuccess (fileUrl) {
|
|
300
|
-
console.log('==============签字回调==================')
|
|
301
|
-
console.log(fileUrl)
|
|
302
|
-
this.selectdata.f_construction_sign = fileUrl
|
|
303
|
-
},
|
|
304
|
-
// 金额转大写
|
|
305
|
-
smalltoBIG(n) {
|
|
306
|
-
let fraction = ['角', '分'];
|
|
307
|
-
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
308
|
-
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
309
|
-
let head = n < 0 ? '欠' : '';
|
|
310
|
-
n = Math.abs(n);
|
|
311
|
-
|
|
312
|
-
let s = '';
|
|
313
|
-
|
|
314
|
-
for (var i = 0; i < fraction.length; i++) {
|
|
315
|
-
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
316
|
-
}
|
|
317
|
-
s = s || '整';
|
|
318
|
-
n = Math.floor(n);
|
|
319
|
-
|
|
320
|
-
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
321
|
-
let p = '';
|
|
322
|
-
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
323
|
-
p = digit[n % 10] + unit[1][j] + p;
|
|
324
|
-
n = Math.floor(n / 10);
|
|
325
|
-
}
|
|
326
|
-
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
327
|
-
}
|
|
328
|
-
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
329
|
-
},
|
|
330
|
-
getLableValue(label) {
|
|
331
|
-
for (const item of this.show_data.fields) {
|
|
332
|
-
if (item.label === label && item.type !== 'number') {
|
|
333
|
-
return item.value || ''
|
|
334
|
-
}
|
|
335
|
-
if (item.label === label && item.type === 'number') {
|
|
336
|
-
return item.value || 0
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
getLableOptions(label) {
|
|
341
|
-
for (const item of this.show_data.fields) {
|
|
342
|
-
if (item.label === label) {
|
|
343
|
-
return item.options
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
setLabelValue(label, value) {
|
|
348
|
-
for (const item of this.show_data.fields) {
|
|
349
|
-
if (item.label === label) {
|
|
350
|
-
item.value = value
|
|
351
|
-
this.show_data[item.field] = value
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
setLabelOptions(label, options) {
|
|
356
|
-
for (const item of this.show_data.fields) {
|
|
357
|
-
if (item.label === label) {
|
|
358
|
-
item.options = options
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
disabledButtons(...buttons) {
|
|
363
|
-
for (const item of this.show_data.buttons) {
|
|
364
|
-
if (buttons.includes(item.button_name)) {
|
|
365
|
-
item.disabled = true
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
enableButtons(...buttons) {
|
|
370
|
-
for (const item of this.show_data.buttons) {
|
|
371
|
-
if (buttons.includes(item.button_name)) {
|
|
372
|
-
item.disabled = false
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
showButtons(...buttons) {
|
|
377
|
-
for (const item of this.show_data.buttons) {
|
|
378
|
-
if (buttons.includes(item.button_name)) {
|
|
379
|
-
item.hidden = false
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
hideButtons(...buttons) {
|
|
384
|
-
for (const item of this.show_data.buttons) {
|
|
385
|
-
if (buttons.includes(item.button_name)) {
|
|
386
|
-
item.hidden = true
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
async streetChange () {
|
|
391
|
-
if (isEmpty(this.show_data.f_street)) {
|
|
392
|
-
return
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
let data = {
|
|
396
|
-
tablename: 't_area',
|
|
397
|
-
condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
398
|
-
}
|
|
399
|
-
let http = new HttpResetClass()
|
|
400
|
-
let res = await http.load(
|
|
401
|
-
'POST',
|
|
402
|
-
`rs/sql/singleTable`,
|
|
403
|
-
{data: data},
|
|
404
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
405
|
-
)
|
|
406
|
-
|
|
407
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
408
|
-
return {
|
|
409
|
-
label: item.f_residential_area,
|
|
410
|
-
value: item.f_residential_area
|
|
411
|
-
}
|
|
412
|
-
}))
|
|
413
|
-
},
|
|
414
|
-
async pcdChange () {
|
|
415
|
-
if (isEmpty(this.show_data.f_pcd)) {
|
|
416
|
-
return
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
let data = {
|
|
420
|
-
tablename: 't_street',
|
|
421
|
-
condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
422
|
-
}
|
|
423
|
-
let f_address_type = this.getLableValue('地址类型')
|
|
424
|
-
|
|
425
|
-
if (f_address_type === '民用市区') {
|
|
426
|
-
data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
427
|
-
}
|
|
428
|
-
if (f_address_type === '民用乡镇') {
|
|
429
|
-
data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
let http = new HttpResetClass()
|
|
433
|
-
let res = await http.load(
|
|
434
|
-
'POST',
|
|
435
|
-
`rs/sql/singleTable`,
|
|
436
|
-
{data: data},
|
|
437
|
-
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
438
|
-
)
|
|
439
|
-
|
|
440
|
-
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
441
|
-
return {
|
|
442
|
-
label: item.f_street,
|
|
443
|
-
value: item.f_street
|
|
444
|
-
}
|
|
445
|
-
}))
|
|
446
|
-
},
|
|
447
|
-
async addressInitialization () {
|
|
448
|
-
//this.$getConfig(this, 'UserAddress')
|
|
449
|
-
//获取地址配置文件
|
|
450
|
-
try {
|
|
451
|
-
let res = await new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,null,{resolveMsg: null, rejectMsg: null})
|
|
452
|
-
Object.assign(this.config, res.data)
|
|
453
|
-
} catch (error) {
|
|
454
|
-
console.log("未获取到地址信息")
|
|
455
|
-
}
|
|
456
|
-
console.log("???????????不走了吗!")
|
|
457
|
-
let f_address_type = this.show_data.f_address_type
|
|
458
|
-
|
|
459
|
-
for (const item of this.show_data.fields) {
|
|
460
|
-
if (f_address_type === '民用市区') {
|
|
461
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
462
|
-
item.hidden = false
|
|
463
|
-
item.required = true
|
|
464
|
-
}
|
|
465
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
466
|
-
item.hidden = false
|
|
467
|
-
item.required = false
|
|
468
|
-
}
|
|
469
|
-
if (item.label === '地址') {
|
|
470
|
-
item.readonly = true
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (f_address_type === '民用乡镇') {
|
|
474
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
475
|
-
item.hidden = false
|
|
476
|
-
item.required = true
|
|
477
|
-
}
|
|
478
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
479
|
-
item.hidden = false
|
|
480
|
-
item.required = false
|
|
481
|
-
}
|
|
482
|
-
if (item.label === '楼层') {
|
|
483
|
-
item.hidden = true
|
|
484
|
-
item.required = false
|
|
485
|
-
}
|
|
486
|
-
if (item.label === '地址') {
|
|
487
|
-
item.readonly = true
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
if (f_address_type === '特殊地址') {
|
|
491
|
-
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
492
|
-
item.hidden = false
|
|
493
|
-
item.required = true
|
|
494
|
-
}
|
|
495
|
-
if (item.label === '集收单位') {
|
|
496
|
-
item.hidden = false
|
|
497
|
-
item.required = false
|
|
498
|
-
}
|
|
499
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
500
|
-
item.hidden = true
|
|
501
|
-
item.required = false
|
|
502
|
-
}
|
|
503
|
-
if (item.label === '地址') {
|
|
504
|
-
item.readonly = false
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
|
|
509
|
-
item.hidden = true
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
async checkDuplicate(index) {
|
|
515
|
-
let http = new HttpResetClass()
|
|
516
|
-
let data = {
|
|
517
|
-
tablename: 't_apply',
|
|
518
|
-
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
519
|
-
}
|
|
520
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
521
|
-
resolveMsg: null,
|
|
522
|
-
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
523
|
-
})
|
|
524
|
-
if (res.data.length > 0) {
|
|
525
|
-
this.show_data.fields[index].value = null
|
|
526
|
-
this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
async breakControl () {
|
|
530
|
-
if (this.show_data.id) {
|
|
531
|
-
let data = {
|
|
532
|
-
condition: `u.id = ${this.show_data.id}`,
|
|
533
|
-
data: {
|
|
534
|
-
id: Vue.user.id,
|
|
535
|
-
orgid: Vue.user.orgid
|
|
536
|
-
// id: '51953',
|
|
537
|
-
// orgid: '10101'
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
let res = await this.$resetpost(
|
|
541
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
542
|
-
// `rs/sql/checkuser`,
|
|
543
|
-
{data: data},
|
|
544
|
-
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
545
|
-
)
|
|
546
|
-
|
|
547
|
-
this.selectdata = res.data[0]
|
|
548
|
-
} else {
|
|
549
|
-
this.selectdata = servicedata
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
this.refurbish()
|
|
553
|
-
},
|
|
554
|
-
async addressTips () {
|
|
555
|
-
let res = ''
|
|
556
|
-
if (this.show_data.f_apply_type === '报警器报建') {
|
|
557
|
-
res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
558
|
-
}else{
|
|
559
|
-
res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
560
|
-
}
|
|
561
|
-
if (res == 'confirm') {
|
|
562
|
-
return
|
|
563
|
-
}
|
|
564
|
-
throw '用户信息确认!!!'
|
|
565
|
-
},
|
|
566
|
-
// 缴费前置
|
|
567
|
-
chargeBefore () {
|
|
568
|
-
if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
|
|
569
|
-
this.$showAlert('费用未结清!!!', 'warning', 3000)
|
|
570
|
-
throw null
|
|
571
|
-
}
|
|
572
|
-
},
|
|
573
|
-
// 施工前置
|
|
574
|
-
async constructionBefore () {
|
|
575
|
-
let http = new HttpResetClass()
|
|
576
|
-
let data = {
|
|
577
|
-
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_table_state = '待开通'`
|
|
578
|
-
}
|
|
579
|
-
let res = await http.load(
|
|
580
|
-
'POST',
|
|
581
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
|
|
582
|
-
{data: data},
|
|
583
|
-
{
|
|
584
|
-
resolveMsg: null,
|
|
585
|
-
rejectMsg: '安装明细查询失败!!!'
|
|
586
|
-
})
|
|
587
|
-
if (res.data[0].num > 0) {
|
|
588
|
-
this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
|
|
589
|
-
throw `还有${res.data[0].num}户未安装,无法提交`
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
changePipeBuild () {
|
|
593
|
-
if (this.selectdata.f_process_dep === '工程部') {
|
|
594
|
-
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
595
|
-
}
|
|
596
|
-
if (this.selectdata.f_process_dep === '运营部') {
|
|
597
|
-
return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
|
|
598
|
-
}
|
|
599
|
-
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
600
|
-
},
|
|
601
|
-
async getPrice (f_price_id) {
|
|
602
|
-
console.log('=======================')
|
|
603
|
-
console.log(f_price_id)
|
|
604
|
-
|
|
605
|
-
let data = {
|
|
606
|
-
condition: `sp.f_filialeid = '${Vue.user.orgid}'`
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
if (!isEmpty(f_price_id)) {
|
|
610
|
-
data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
611
|
-
}
|
|
612
|
-
let http = new HttpResetClass()
|
|
613
|
-
let res = await http.load(
|
|
614
|
-
'POST',
|
|
615
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetPrice`,
|
|
616
|
-
{data: data},
|
|
617
|
-
{resolveMsg: null, rejectMsg: '气价查询失败!!!'}
|
|
618
|
-
)
|
|
619
|
-
|
|
620
|
-
return res.data.map(item => {
|
|
621
|
-
return {
|
|
622
|
-
label: item.f_price_name,
|
|
623
|
-
value: item
|
|
624
|
-
}
|
|
625
|
-
})
|
|
626
|
-
},
|
|
627
|
-
async getDesignerPeople () {
|
|
628
|
-
let data = {
|
|
629
|
-
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
630
|
-
userid: Vue.user.id
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
let http = new HttpResetClass()
|
|
634
|
-
let res = await http.load(
|
|
635
|
-
'POST',
|
|
636
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
637
|
-
{data: data},
|
|
638
|
-
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
639
|
-
)
|
|
640
|
-
|
|
641
|
-
return res.data.map(item => {
|
|
642
|
-
return {
|
|
643
|
-
label: item.name,
|
|
644
|
-
value: item.id
|
|
645
|
-
}
|
|
646
|
-
})
|
|
647
|
-
},
|
|
648
|
-
async surveyStopApply () {
|
|
649
|
-
console.log('终止报建!!!!!')
|
|
650
|
-
|
|
651
|
-
this.show_data.f_stop_reason = '现场勘察不符合报装条件'
|
|
652
|
-
|
|
653
|
-
let data = {
|
|
654
|
-
data: this.show_data,
|
|
655
|
-
user: Vue.user
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
let res = await this.$resetpost(
|
|
659
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
|
|
660
|
-
{data: data},
|
|
661
|
-
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
662
|
-
)
|
|
663
|
-
|
|
664
|
-
this.$dispatch('loadPage')
|
|
665
|
-
|
|
666
|
-
throw '终止报建!!!'
|
|
667
|
-
},
|
|
668
|
-
async getDevInfo () {
|
|
669
|
-
let data = {
|
|
670
|
-
tablename: 't_dev_info',
|
|
671
|
-
condition: `f_orgid = '${Vue.user.orgid}'`
|
|
672
|
-
}
|
|
673
|
-
let http = new HttpResetClass()
|
|
674
|
-
let res = await http.load(
|
|
675
|
-
'POST',
|
|
676
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
677
|
-
{data: data},
|
|
678
|
-
{resolveMsg: null, rejectMsg: '公司查询失败!!!'}
|
|
679
|
-
)
|
|
680
|
-
|
|
681
|
-
return res.data.map(item => {
|
|
682
|
-
return {
|
|
683
|
-
label: item.f_dev_name,
|
|
684
|
-
value: item.f_dev_name
|
|
685
|
-
}
|
|
686
|
-
})
|
|
687
|
-
},
|
|
688
|
-
async getDesignerPeople () {
|
|
689
|
-
let data = {
|
|
690
|
-
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
691
|
-
userid: Vue.user.id
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
let http = new HttpResetClass()
|
|
695
|
-
let res = await http.load(
|
|
696
|
-
'POST',
|
|
697
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
698
|
-
{data: data},
|
|
699
|
-
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
700
|
-
)
|
|
701
|
-
|
|
702
|
-
return res.data.map(item => {
|
|
703
|
-
return {
|
|
704
|
-
label: item.name,
|
|
705
|
-
value: item.id
|
|
706
|
-
}
|
|
707
|
-
})
|
|
708
|
-
},
|
|
709
|
-
// 获取片区
|
|
710
|
-
async getSliceArea () {
|
|
711
|
-
let data = {
|
|
712
|
-
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
713
|
-
userid: Vue.user.id
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
let http = new HttpResetClass()
|
|
717
|
-
let res = await http.load(
|
|
718
|
-
'POST',
|
|
719
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
720
|
-
{data: data},
|
|
721
|
-
{resolveMsg: null, rejectMsg: '片区查询失败!!!'}
|
|
722
|
-
)
|
|
723
|
-
|
|
724
|
-
return res.data.map(item => {
|
|
725
|
-
return {
|
|
726
|
-
label: item.name,
|
|
727
|
-
value: item.name
|
|
728
|
-
}
|
|
729
|
-
})
|
|
730
|
-
},
|
|
731
|
-
// 获取区县
|
|
732
|
-
async getPcd () {
|
|
733
|
-
let data = {
|
|
734
|
-
tablename: 't_pcd',
|
|
735
|
-
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
736
|
-
}
|
|
737
|
-
let http = new HttpResetClass()
|
|
738
|
-
let res = await http.load(
|
|
739
|
-
'POST',
|
|
740
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
741
|
-
{data: data},
|
|
742
|
-
{resolveMsg: null, rejectMsg: '区县查询失败!!!'}
|
|
743
|
-
)
|
|
744
|
-
|
|
745
|
-
return res.data.map(item => {
|
|
746
|
-
return {
|
|
747
|
-
label: item.f_pcd,
|
|
748
|
-
value: item.f_pcd
|
|
749
|
-
}
|
|
750
|
-
})
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
},
|
|
754
|
-
events: {
|
|
755
|
-
'complyInstallation' (index) {
|
|
756
|
-
if (this.show_data.f_is_have === '否') {
|
|
757
|
-
this.hideButtons('提交', '出图', '缴费')
|
|
758
|
-
this.showButtons('终止')
|
|
759
|
-
}
|
|
760
|
-
if (this.show_data.f_is_have === '是') {
|
|
761
|
-
this.hideButtons('终止')
|
|
762
|
-
this.showButtons('提交', '出图', '缴费')
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
async 'igniteDispatchReadyEvent' () {
|
|
766
|
-
let data = {
|
|
767
|
-
tablename: 'activityins',
|
|
768
|
-
condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
|
|
769
|
-
}
|
|
770
|
-
let http = new HttpResetClass()
|
|
771
|
-
let res = await http.load(
|
|
772
|
-
'POST',
|
|
773
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
774
|
-
{data: data},
|
|
775
|
-
{resolveMsg: null, rejectMsg: '查询失败!!!'}
|
|
776
|
-
)
|
|
777
|
-
if (res.data.length <= 0) {
|
|
778
|
-
console.log('+++++++++++++++++++++++++++++')
|
|
779
|
-
console.log('没有施工,不能退回')
|
|
780
|
-
this.hideButtons('退回')
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
'breakControl' () {
|
|
784
|
-
this.breakControl()
|
|
785
|
-
},
|
|
786
|
-
// 检查重复
|
|
787
|
-
'checkRepeat' (index) {
|
|
788
|
-
this.checkDuplicate(index)
|
|
789
|
-
},
|
|
790
|
-
'buildReadyEvent' () {
|
|
791
|
-
this.setLabelValue('施工单位', Vue.user.name)
|
|
792
|
-
this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
|
|
793
|
-
},
|
|
794
|
-
// 选择材料
|
|
795
|
-
async materialNameChenge (index, fieldIndex) {
|
|
796
|
-
let material = this.show_data.onetomany[index].fields[fieldIndex].value
|
|
797
|
-
|
|
798
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
799
|
-
if (material[item.field]) {
|
|
800
|
-
item.value = material[item.field]
|
|
801
|
-
}
|
|
802
|
-
})
|
|
803
|
-
},
|
|
804
|
-
// 打开模态框获取材料
|
|
805
|
-
async 'getMaterialName' (index) {
|
|
806
|
-
let data = {
|
|
807
|
-
condition: `1=1`
|
|
808
|
-
}
|
|
809
|
-
let http = new HttpResetClass()
|
|
810
|
-
let res = await http.load(
|
|
811
|
-
'POST',
|
|
812
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
|
|
813
|
-
{data: data},
|
|
814
|
-
{resolveMsg: null, rejectMsg: '材料查询失败!!!'}
|
|
815
|
-
)
|
|
816
|
-
|
|
817
|
-
this.show_data.onetomany[index].fields.forEach(field => {
|
|
818
|
-
if (field.label === '选择材料') {
|
|
819
|
-
field.options = res.data.map(item => {
|
|
820
|
-
return {
|
|
821
|
-
'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
|
|
822
|
-
'value': item
|
|
823
|
-
}
|
|
824
|
-
})
|
|
825
|
-
}
|
|
826
|
-
})
|
|
827
|
-
},
|
|
828
|
-
// 选择气价
|
|
829
|
-
'priceChange' (index) {
|
|
830
|
-
if (isEmpty(this.show_data.stairPrice)) {
|
|
831
|
-
return
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
let stairPrice = this.getLableValue('气价名称')
|
|
835
|
-
|
|
836
|
-
this.setLabelValue('气价类型', stairPrice.f_price_type)
|
|
837
|
-
this.setLabelValue('用气性质', stairPrice.f_gasproperties)
|
|
838
|
-
this.setLabelValue('价格', stairPrice.f_price)
|
|
839
|
-
this.setLabelValue('客户类型', stairPrice.f_user_type)
|
|
840
|
-
|
|
841
|
-
this.show_data.f_price_id = stairPrice.f_price_id
|
|
842
|
-
this.show_data.f_price_name = stairPrice.f_price_name
|
|
843
|
-
},
|
|
844
|
-
// 是否购买保险
|
|
845
|
-
isInsureChange (index) {
|
|
846
|
-
let f_is_insure = this.getLableValue('是否购买保险')
|
|
847
|
-
for (const item of this.show_data.fields) {
|
|
848
|
-
if (f_is_insure === '是') {
|
|
849
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
850
|
-
item.hidden = false
|
|
851
|
-
item.required = true
|
|
852
|
-
}
|
|
853
|
-
if (item.label === '保险备注') {
|
|
854
|
-
item.hidden = false
|
|
855
|
-
}
|
|
856
|
-
} else {
|
|
857
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
858
|
-
item.hidden = true
|
|
859
|
-
item.required = false
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
},
|
|
864
|
-
// 通气点火初始化
|
|
865
|
-
async 'gasReadyEvent' () {
|
|
866
|
-
console.log('----通气点火初始化----')
|
|
867
|
-
if (!isEmpty(this.show_data.f_price_id)) {
|
|
868
|
-
let priceList = await this.getPrice(this.show_data.f_price_id)
|
|
869
|
-
this.setLabelValue('气价名称', priceList[0].value)
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
let data = {
|
|
873
|
-
tablename: 't_userfees',
|
|
874
|
-
condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
console.log('---------查询是否有待执行保险-----------')
|
|
878
|
-
let http = new HttpResetClass()
|
|
879
|
-
let res = await http.load(
|
|
880
|
-
'POST',
|
|
881
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
882
|
-
{data: data},
|
|
883
|
-
{resolveMsg: null, rejectMsg: '保险查询失败!!!'}
|
|
884
|
-
)
|
|
885
|
-
if (res.data.length > 0) {
|
|
886
|
-
console.log('----------具有待执行保险------------')
|
|
887
|
-
this.setLabelValue('待执行保险', '是')
|
|
888
|
-
for (const item of this.show_data.fields) {
|
|
889
|
-
if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
890
|
-
item.hidden = true
|
|
891
|
-
item.required = false
|
|
892
|
-
item.value = null
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
console.log('----------具有待执行保险------------')
|
|
896
|
-
} else {
|
|
897
|
-
console.log('----------不有待执行保险------------')
|
|
898
|
-
this.setLabelValue('待执行保险', '否')
|
|
899
|
-
for (const item of this.show_data.fields) {
|
|
900
|
-
if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
901
|
-
item.hidden = false
|
|
902
|
-
item.required = true
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
console.log('----------具有待执行保险------------')
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
// 初始化显示内容
|
|
909
|
-
let f_is_insure = this.getLableValue('是否购买保险')
|
|
910
|
-
for (const item of this.show_data.fields) {
|
|
911
|
-
if (f_is_insure === '是') {
|
|
912
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
913
|
-
item.hidden = false
|
|
914
|
-
item.required = true
|
|
915
|
-
}
|
|
916
|
-
if (item.label === '保险备注') {
|
|
917
|
-
item.hidden = false
|
|
918
|
-
}
|
|
919
|
-
// 本期保费到期时间默认一年
|
|
920
|
-
if (isEmpty(this.selectdata.f_ins_expiration_date)) {
|
|
921
|
-
let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
|
|
922
|
-
this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
if (f_is_insure === '否') {
|
|
926
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
927
|
-
item.hidden = true
|
|
928
|
-
item.required = false
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
// 合同金额失去焦点
|
|
934
|
-
async 'contractMoneyChange' (index) {
|
|
935
|
-
let data = {
|
|
936
|
-
operator: '+',
|
|
937
|
-
num1: this.show_data.f_contract_money || 0,
|
|
938
|
-
num2: this.getLableValue('追加金额') || 0
|
|
939
|
-
}
|
|
940
|
-
let res = await this.$resetpost(
|
|
941
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
|
|
942
|
-
{data: data},
|
|
943
|
-
{resolveMsg: null, rejectMsg: '金额计算失败!!!'}
|
|
944
|
-
)
|
|
945
|
-
|
|
946
|
-
this.setLabelValue('应交金额', res.data)
|
|
947
|
-
},
|
|
948
|
-
// ===========================================
|
|
949
|
-
async 'button'() {
|
|
950
|
-
if (this.show_data.button.before) {
|
|
951
|
-
await this[this.show_data.button.before]()
|
|
952
|
-
}
|
|
953
|
-
// 点击重置按钮就重置数据
|
|
954
|
-
if (this.show_data.button.button_name === '重置') {
|
|
955
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
956
|
-
return
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
this.show_data.user = Vue.user
|
|
960
|
-
// this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
|
|
961
|
-
this.show_data.start_activity = this.json_datas.start_activity
|
|
962
|
-
this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
if (this.show_data.f_apply_type === '报警器报建' && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工'){
|
|
966
|
-
//判断是否添加报警器材料
|
|
967
|
-
let bjqlag = false
|
|
968
|
-
let datatemp = {
|
|
969
|
-
'bjqid':"",
|
|
970
|
-
'fprocessid':"",
|
|
971
|
-
'sqvalue':"",
|
|
972
|
-
'f_bjq_sid':"",
|
|
973
|
-
'f_material_code':""
|
|
974
|
-
}
|
|
975
|
-
let numOne = [];
|
|
976
|
-
this.show_data.onetomany.forEach(item=>{
|
|
977
|
-
item.rows.forEach(i=>{
|
|
978
|
-
if (i.f_material_name.substr(0,3) === '报警器'){
|
|
979
|
-
bjqlag = true
|
|
980
|
-
datatemp.bjqid = i.id
|
|
981
|
-
datatemp.fprocessid = i.f_process_id
|
|
982
|
-
datatemp.f_bjq_sid = i.f_bjq_sid
|
|
983
|
-
datatemp.f_material_code = i.f_material_code
|
|
984
|
-
numOne.push(i.f_bjq_sid)
|
|
985
|
-
}
|
|
986
|
-
})
|
|
987
|
-
})
|
|
988
|
-
if (!bjqlag){
|
|
989
|
-
this.$showMessage('请添加报警器物料信息!!!')
|
|
990
|
-
return
|
|
991
|
-
}
|
|
992
|
-
if (numOne.length > 1){
|
|
993
|
-
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
994
|
-
return
|
|
995
|
-
}
|
|
996
|
-
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
997
|
-
//区域地址存入材料记录表
|
|
998
|
-
let areares = await this.$resetpost(
|
|
999
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveArea`,
|
|
1000
|
-
// `rs/logic/saveArea`,
|
|
1001
|
-
{data: datatemp},
|
|
1002
|
-
{resolveMsg: null, rejectMsg: '区域地址保存失败'}
|
|
1003
|
-
)
|
|
1004
|
-
|
|
1005
|
-
// 完工之后推送数据到汉威
|
|
1006
|
-
let adddata = {
|
|
1007
|
-
f_bjq_sid : datatemp.f_bjq_sid,
|
|
1008
|
-
f_material_code : datatemp.f_material_code,
|
|
1009
|
-
f_bjq_address: this.show_data.areaData.sqvalue,
|
|
1010
|
-
f_user_name: this.show_data.f_user_name,
|
|
1011
|
-
f_address: this.show_data.f_address,
|
|
1012
|
-
f_user_phone: this.show_data.f_phone,
|
|
1013
|
-
f_userinfo_code: this.show_data.f_userinfo_code,
|
|
1014
|
-
installtime: this.show_data.f_construction_date,
|
|
1015
|
-
}
|
|
1016
|
-
let res = await this.$resetpost(
|
|
1017
|
-
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqadduser`,
|
|
1018
|
-
// `ncc/rs/logic/bjqadduser`,
|
|
1019
|
-
// `/rs/logic/bjqadduser`,
|
|
1020
|
-
adddata
|
|
1021
|
-
)
|
|
1022
|
-
if (res.data.code != 200){
|
|
1023
|
-
this.$showMessage(res.data.msg)
|
|
1024
|
-
return
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1028
|
-
let res = await this.$resetpost(
|
|
1029
|
-
// `rs/logic/ApplyProductService`,
|
|
1030
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
|
|
1031
|
-
{data: this.show_data},
|
|
1032
|
-
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
1033
|
-
)
|
|
1034
|
-
|
|
1035
|
-
if (this.show_data.button.after) {
|
|
1036
|
-
this[this.show_data.button.after]()
|
|
1037
|
-
}
|
|
1038
|
-
// 返回上层
|
|
1039
|
-
this.$dispatch('confirm')
|
|
1040
|
-
},
|
|
1041
|
-
// 失去焦点出触发事件
|
|
1042
|
-
'onchange' (index) {
|
|
1043
|
-
if (this.show_data.defname === '报装申请') {
|
|
1044
|
-
if (
|
|
1045
|
-
this.show_data.fields[index].label === '区/县' ||
|
|
1046
|
-
this.show_data.fields[index].label === '街道/乡镇' ||
|
|
1047
|
-
this.show_data.fields[index].label === '集收单位' ||
|
|
1048
|
-
this.show_data.fields[index].label === '楼号/组' ||
|
|
1049
|
-
this.show_data.fields[index].label === '单元/排' ||
|
|
1050
|
-
this.show_data.fields[index].label === '楼层' ||
|
|
1051
|
-
this.show_data.fields[index].label === '门牌号'
|
|
1052
|
-
) {
|
|
1053
|
-
|
|
1054
|
-
let f_pcd = this.getLableValue('区/县') || ''
|
|
1055
|
-
let f_street = this.getLableValue('街道/乡镇') || ''
|
|
1056
|
-
let f_residential_area = this.getLableValue('集收单位') || ''
|
|
1057
|
-
let f_building = this.getLableValue('楼号/组') || ''
|
|
1058
|
-
let f_building_suffix = f_building ? this.config.f_building_suffix : ''
|
|
1059
|
-
let f_unit = this.getLableValue('单元/排') || ''
|
|
1060
|
-
let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
|
|
1061
|
-
let f_floor = this.getLableValue('楼层') || ''
|
|
1062
|
-
let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
|
|
1063
|
-
let f_room = this.getLableValue('门牌号') || ''
|
|
1064
|
-
let f_room_suffix = f_room ? this.config.f_room_suffix : ''
|
|
1065
|
-
|
|
1066
|
-
let f_address = null
|
|
1067
|
-
|
|
1068
|
-
let f_address_type = this.show_data.f_address_type
|
|
1069
|
-
f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1070
|
-
/*if (f_address_type === '民用城区') {
|
|
1071
|
-
f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1072
|
-
}
|
|
1073
|
-
if (f_address_type === '民用农村') {
|
|
1074
|
-
f_address = f_building + f_unit + f_floor + f_room
|
|
1075
|
-
}
|
|
1076
|
-
if (f_address_type === '特殊城区') {
|
|
1077
|
-
f_address = f_street + f_residential_area
|
|
1078
|
-
}*/
|
|
1079
|
-
this.setLabelValue("地址", f_address)
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
},
|
|
1083
|
-
async getDesignerPeople () {
|
|
1084
|
-
let data = {
|
|
1085
|
-
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
1086
|
-
userid: this.$login.f.id
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
let http = new HttpResetClass()
|
|
1090
|
-
let res = await http.load(
|
|
1091
|
-
'POST',
|
|
1092
|
-
`rs/search`,
|
|
1093
|
-
{data: data},
|
|
1094
|
-
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
1095
|
-
)
|
|
1096
|
-
|
|
1097
|
-
return res.data.map(item => {
|
|
1098
|
-
return {
|
|
1099
|
-
label: item.name,
|
|
1100
|
-
value: item.id
|
|
1101
|
-
}
|
|
1102
|
-
})
|
|
1103
|
-
},
|
|
1104
|
-
// 申请节点初始化
|
|
1105
|
-
'applyReadyEvent' () {
|
|
1106
|
-
this.addressInitialization()
|
|
1107
|
-
|
|
1108
|
-
this.pcdChange()
|
|
1109
|
-
this.streetChange()
|
|
1110
|
-
},
|
|
1111
|
-
// 合同金额失去焦点
|
|
1112
|
-
async 'contractMoneyChange' (index) {
|
|
1113
|
-
let data = {
|
|
1114
|
-
operator: '+',
|
|
1115
|
-
num1: this.show_data.f_contract_money || 0,
|
|
1116
|
-
num2: this.getLableValue('追加金额') || 0
|
|
1117
|
-
}
|
|
1118
|
-
let res = await this.$resetpost(
|
|
1119
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
|
|
1120
|
-
{data: data},
|
|
1121
|
-
{resolveMsg: null, rejectMsg: '金额计算失败!!!'}
|
|
1122
|
-
)
|
|
1123
|
-
|
|
1124
|
-
this.setLabelValue('应交金额', res.data)
|
|
1125
|
-
},
|
|
1126
|
-
// 街道失去焦点
|
|
1127
|
-
async 'streetChange' (index) {
|
|
1128
|
-
if (isEmpty(this.show_data.f_street)) {
|
|
1129
|
-
return
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
this.setLabelValue('集收单位', null)
|
|
1133
|
-
|
|
1134
|
-
let data = {
|
|
1135
|
-
tablename: 't_area',
|
|
1136
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
1137
|
-
}
|
|
1138
|
-
let http = new HttpResetClass()
|
|
1139
|
-
let res = await http.load(
|
|
1140
|
-
'POST',
|
|
1141
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
1142
|
-
{data: data},
|
|
1143
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1144
|
-
)
|
|
1145
|
-
|
|
1146
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1147
|
-
return {
|
|
1148
|
-
label: item.f_residential_area,
|
|
1149
|
-
value: item.f_residential_area
|
|
1150
|
-
}
|
|
1151
|
-
}))
|
|
1152
|
-
},
|
|
1153
|
-
// 选择报建项目
|
|
1154
|
-
'selectApply' (row) {
|
|
1155
|
-
this.setLabelValue('工程名称', row.f_entry_name)
|
|
1156
|
-
this.setLabelValue('工程编号', row.f_apply_num)
|
|
1157
|
-
this.setLabelValue('报建类型', row.f_apply_type)
|
|
1158
|
-
this.setLabelValue('用户名称', row.f_user_name)
|
|
1159
|
-
this.setLabelValue('用户电话', row.f_phone)
|
|
1160
|
-
this.setLabelValue('证件类型', row.f_credentials)
|
|
1161
|
-
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1162
|
-
this.setLabelValue('地址', row.f_address)
|
|
1163
|
-
this.setLabelValue('累计缴费金额', row.f_cumulative_payment_money)
|
|
1164
|
-
|
|
1165
|
-
this.show_data.parentApply = JSON.parse(JSON.stringify(row))
|
|
1166
|
-
|
|
1167
|
-
delete row.id
|
|
1168
|
-
delete row.actid
|
|
1169
|
-
delete row.defid
|
|
1170
|
-
delete row.defname
|
|
1171
|
-
delete row.version
|
|
1172
|
-
delete row.f_apply_num
|
|
1173
|
-
delete row.f_sub_state
|
|
1174
|
-
delete row.f_apply_type
|
|
1175
|
-
delete row.f_process_id
|
|
1176
|
-
|
|
1177
|
-
this.show_data = Object.assign({}, this.show_data, row)
|
|
1178
|
-
|
|
1179
|
-
this.show_data.f_parent_process_id = this.show_data.parentApply.f_process_id
|
|
1180
|
-
},
|
|
1181
|
-
// 区县失去焦点
|
|
1182
|
-
async 'pcdChange' (index) {
|
|
1183
|
-
if (isEmpty(this.show_data.f_pcd)) {
|
|
1184
|
-
return
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
this.setLabelValue('街道/乡镇', null)
|
|
1188
|
-
this.setLabelValue('集收单位', null)
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
let data = {
|
|
1193
|
-
tablename: 't_street',
|
|
1194
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
1195
|
-
}
|
|
1196
|
-
let f_address_type = this.getLableValue('地址类型')
|
|
1197
|
-
|
|
1198
|
-
if (f_address_type === '民用市区') {
|
|
1199
|
-
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
1200
|
-
}
|
|
1201
|
-
if (f_address_type === '民用乡镇') {
|
|
1202
|
-
data.condition = `f_filialeid = '${Vue.user.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
let http = new HttpResetClass()
|
|
1206
|
-
let res = await http.load(
|
|
1207
|
-
'POST',
|
|
1208
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
1209
|
-
{data: data},
|
|
1210
|
-
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
1211
|
-
)
|
|
1212
|
-
|
|
1213
|
-
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
1214
|
-
return {
|
|
1215
|
-
label: item.f_street,
|
|
1216
|
-
value: item.f_street
|
|
1217
|
-
}
|
|
1218
|
-
}))
|
|
1219
|
-
},
|
|
1220
|
-
// 选择用户档案信息
|
|
1221
|
-
'selectUserinfo' (row) {
|
|
1222
|
-
this.setLabelValue('用户编号', row.f_userinfo_code)
|
|
1223
|
-
this.setLabelValue('用户名称', row.f_user_name)
|
|
1224
|
-
this.setLabelValue('用户电话', row.f_user_phone)
|
|
1225
|
-
this.setLabelValue('证件类型', row.f_credentials)
|
|
1226
|
-
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1227
|
-
this.setLabelValue('地址', row.f_address)
|
|
1228
|
-
|
|
1229
|
-
this.show_data.f_userinfo_id = row.f_userinfo_id
|
|
1230
|
-
this.show_data.f_userinfo_code = row.f_userinfo_code
|
|
1231
|
-
},
|
|
1232
|
-
// 地址类型失去焦点
|
|
1233
|
-
'addressTypeChange' (index) {
|
|
1234
|
-
this.setLabelValue('街道/乡镇', null)
|
|
1235
|
-
this.setLabelValue('集收单位', null)
|
|
1236
|
-
let f_address_type = this.show_data.fields[index].value
|
|
1237
|
-
for (const item of this.show_data.fields) {
|
|
1238
|
-
if (f_address_type === '民用市区') {
|
|
1239
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1240
|
-
item.hidden = false
|
|
1241
|
-
item.required = true
|
|
1242
|
-
item.value = null
|
|
1243
|
-
}
|
|
1244
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1245
|
-
item.hidden = false
|
|
1246
|
-
item.required = false
|
|
1247
|
-
item.value = null
|
|
1248
|
-
}
|
|
1249
|
-
if (item.label === '地址') {
|
|
1250
|
-
item.readonly = true
|
|
1251
|
-
item.value = null
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
if (f_address_type === '民用乡镇') {
|
|
1255
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1256
|
-
item.hidden = false
|
|
1257
|
-
item.required = true
|
|
1258
|
-
item.value = null
|
|
1259
|
-
}
|
|
1260
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1261
|
-
item.hidden = false
|
|
1262
|
-
item.required = false
|
|
1263
|
-
item.value = null
|
|
1264
|
-
}
|
|
1265
|
-
if (item.label === '楼层') {
|
|
1266
|
-
item.hidden = true
|
|
1267
|
-
item.required = false
|
|
1268
|
-
item.value = null
|
|
1269
|
-
}
|
|
1270
|
-
if (item.label === '地址') {
|
|
1271
|
-
item.readonly = true
|
|
1272
|
-
item.value = null
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
if (f_address_type === '特殊地址') {
|
|
1276
|
-
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
1277
|
-
item.hidden = false
|
|
1278
|
-
item.required = true
|
|
1279
|
-
item.value = null
|
|
1280
|
-
}
|
|
1281
|
-
if (item.label === '集收单位') {
|
|
1282
|
-
item.hidden = false
|
|
1283
|
-
item.required = false
|
|
1284
|
-
item.value = null
|
|
1285
|
-
}
|
|
1286
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
1287
|
-
item.hidden = true
|
|
1288
|
-
item.required = false
|
|
1289
|
-
item.value = null
|
|
1290
|
-
}
|
|
1291
|
-
if (item.label === '地址') {
|
|
1292
|
-
item.readonly = false
|
|
1293
|
-
item.value = null
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
},
|
|
1298
|
-
// 搜索小区
|
|
1299
|
-
async 'searchArea' (area, index) {
|
|
1300
|
-
let data = {
|
|
1301
|
-
tablename: 't_area',
|
|
1302
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
|
|
1303
|
-
}
|
|
1304
|
-
let http = new HttpResetClass()
|
|
1305
|
-
let res = await http.load(
|
|
1306
|
-
'POST',
|
|
1307
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
1308
|
-
{data: data},
|
|
1309
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1310
|
-
)
|
|
1311
|
-
|
|
1312
|
-
if (res.data.length === 0) {
|
|
1313
|
-
return
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1317
|
-
return {
|
|
1318
|
-
label: item.f_residential_area,
|
|
1319
|
-
value: item.f_residential_area
|
|
1320
|
-
}
|
|
1321
|
-
}))
|
|
1322
|
-
},
|
|
1323
|
-
// 团购转散户初始化
|
|
1324
|
-
'apply2ReadyEvent' () {
|
|
1325
|
-
if (this.show_data.f_apply_source === '线下发起') {
|
|
1326
|
-
this.addressInitialization()
|
|
1327
|
-
this.hideLabels('用户编号')
|
|
1328
|
-
this.electiveLabels('用户编号')
|
|
1329
|
-
this.showLabels('片区', '地址类型')
|
|
1330
|
-
this.requiredLabels('片区', '地址类型')
|
|
1331
|
-
}
|
|
1332
|
-
if (this.show_data.f_apply_source === '自动发起') {
|
|
1333
|
-
this.hideLabels('片区', '地址类型')
|
|
1334
|
-
this.electiveLabels('片区', '地址类型',)
|
|
1335
|
-
}
|
|
1336
|
-
},
|
|
1337
|
-
'onblur' (index) {},
|
|
1338
|
-
'oninput' (index) {},
|
|
1339
|
-
'initializtionView' () {},
|
|
1340
|
-
async 'onchangeModal' (index, fieldIndex) {
|
|
1341
|
-
},
|
|
1342
|
-
async 'onblurModal' (index, fieldIndex) {
|
|
1343
|
-
|
|
1344
|
-
},
|
|
1345
|
-
async 'oninputModal' (index, fieldIndex) {
|
|
1346
|
-
|
|
1347
|
-
},
|
|
1348
|
-
async 'onetomanydelete' (index, rowIndex) {
|
|
1349
|
-
|
|
1350
|
-
let http = new HttpResetClass()
|
|
1351
|
-
|
|
1352
|
-
let res = await http.load(
|
|
1353
|
-
'DELETE',
|
|
1354
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
1355
|
-
null,
|
|
1356
|
-
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
1357
|
-
)
|
|
1358
|
-
res = await this.$resetpost(
|
|
1359
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1360
|
-
this.show_data
|
|
1361
|
-
)
|
|
1362
|
-
this.breakControl()
|
|
1363
|
-
},
|
|
1364
|
-
async 'onetomanyupdate' (index, rowIndex) {
|
|
1365
|
-
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
1366
|
-
|
|
1367
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1368
|
-
data[item.field] = item.value
|
|
1369
|
-
})
|
|
1370
|
-
let res = await this.$resetpost(
|
|
1371
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1372
|
-
data
|
|
1373
|
-
)
|
|
1374
|
-
res = await this.$resetpost(
|
|
1375
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1376
|
-
this.show_data
|
|
1377
|
-
)
|
|
1378
|
-
this.breakControl()
|
|
1379
|
-
},
|
|
1380
|
-
async 'onetomanyadd' (index) {
|
|
1381
|
-
let data = {
|
|
1382
|
-
f_process_id : this.show_data.f_process_id,
|
|
1383
|
-
f_operator_id: Vue.user.id,
|
|
1384
|
-
f_operator: Vue.user.name,
|
|
1385
|
-
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
1386
|
-
f_orgid: Vue.user.orgid,
|
|
1387
|
-
f_orgname: Vue.user.orgs
|
|
1388
|
-
}
|
|
1389
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1390
|
-
data[item.field] = item.value
|
|
1391
|
-
})
|
|
1392
|
-
let res = await this.$resetpost(
|
|
1393
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1394
|
-
data
|
|
1395
|
-
)
|
|
1396
|
-
res = await this.$resetpost(
|
|
1397
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1398
|
-
this.show_data
|
|
1399
|
-
)
|
|
1400
|
-
this.breakControl()
|
|
1401
|
-
},
|
|
1402
|
-
'onbutchange' (index) {
|
|
1403
|
-
|
|
1404
|
-
},
|
|
1405
|
-
'onbutblur' (index) {
|
|
1406
|
-
|
|
1407
|
-
},
|
|
1408
|
-
'onbutinput' (index) {
|
|
1409
|
-
|
|
1410
|
-
}
|
|
1411
|
-
},
|
|
1412
|
-
watch: {
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
</script>
|
|
1416
|
-
<style scoped>
|
|
1417
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
+
<accordion one-at-a-time="true">
|
|
4
|
+
<panel :header="selectdata.defname" :is-open="true" type="primary">
|
|
5
|
+
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
6
|
+
</panel>
|
|
7
|
+
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
8
|
+
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
|
|
9
|
+
</panel>
|
|
10
|
+
<panel header="签字" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
11
|
+
<app-sign @sign-success="signSuccess" :file-path="selectdata.f_process_id" @sign-clean="signClean"></app-sign>
|
|
12
|
+
</panel>
|
|
13
|
+
</accordion>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<script>
|
|
17
|
+
import Vue from 'vue'
|
|
18
|
+
import {HttpResetClass} from 'vue-client'
|
|
19
|
+
import {isEmpty} from "../../Util";
|
|
20
|
+
// Date格式化
|
|
21
|
+
Date.prototype.Format = function (fmt) {
|
|
22
|
+
var o = {
|
|
23
|
+
'M+': this.getMonth() + 1, // 月份
|
|
24
|
+
'd+': this.getDate(), // 日
|
|
25
|
+
'H+': this.getHours(), // 小时
|
|
26
|
+
'm+': this.getMinutes(), // 分
|
|
27
|
+
's+': this.getSeconds(), // 秒
|
|
28
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
29
|
+
'S': this.getMilliseconds() // 毫秒
|
|
30
|
+
}
|
|
31
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
32
|
+
for (var k in o) {
|
|
33
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
34
|
+
}
|
|
35
|
+
return fmt
|
|
36
|
+
}
|
|
37
|
+
export default {
|
|
38
|
+
title: '报建流程业务控制层',
|
|
39
|
+
props: ['selectdata'],
|
|
40
|
+
data () {
|
|
41
|
+
return {
|
|
42
|
+
json_datas: null,
|
|
43
|
+
data: null,
|
|
44
|
+
show_data: null,
|
|
45
|
+
showview: false,
|
|
46
|
+
config: {}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
ready () {
|
|
50
|
+
this.refurbish()
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
async refurbish() {
|
|
54
|
+
let data = {
|
|
55
|
+
workname: this.selectdata.processname
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
let res = await this.$resetpost(
|
|
59
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
|
|
60
|
+
{data: data},
|
|
61
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
this.json_datas = res.data
|
|
65
|
+
|
|
66
|
+
let sum = 0
|
|
67
|
+
let jsonData = {}
|
|
68
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
69
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
this.json_datas.activitys.forEach(item => {
|
|
73
|
+
if (this.selectdata.defname === item.title) {
|
|
74
|
+
jsonData = item // 拿到当前节点的json配置信息
|
|
75
|
+
sum++ // 节点名一样的个数
|
|
76
|
+
}
|
|
77
|
+
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
if (sum === 0) {
|
|
81
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
82
|
+
return
|
|
83
|
+
}
|
|
84
|
+
if (sum > 1) {
|
|
85
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
86
|
+
return
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
this.selectdata = Object.assign({}, this.selectdata, jsonData)
|
|
90
|
+
|
|
91
|
+
// fields 字段填充值
|
|
92
|
+
for (const item of this.selectdata.fields) {
|
|
93
|
+
if (!item.value) {
|
|
94
|
+
item.value = null
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
98
|
+
if (item.eval) {
|
|
99
|
+
let user = Vue.user
|
|
100
|
+
// 将PC用户信息 替换成 APP的
|
|
101
|
+
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
102
|
+
} else {
|
|
103
|
+
item.value = item.default
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (this.selectdata[item.field]) {
|
|
108
|
+
// 将json字符串格式化赋值给value
|
|
109
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
110
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
111
|
+
} else {
|
|
112
|
+
item.value = this.selectdata[item.field]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (this.selectdata[item.field] === 0) {
|
|
116
|
+
item.value = 0
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// datepicker
|
|
120
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
121
|
+
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
125
|
+
if (item.type === 'select' || item.type === 'checkbox') {
|
|
126
|
+
if (item.param) {
|
|
127
|
+
let temp = this.$appdata.getParam(item.label)
|
|
128
|
+
|
|
129
|
+
if (temp && temp.length > 0) {
|
|
130
|
+
item.options = temp
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (item.paramLabel) {
|
|
134
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
135
|
+
if (temp && temp.length > 0) {
|
|
136
|
+
item.options = temp
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
console.log("item.ready"+item.ready)
|
|
141
|
+
if (item.ready) {
|
|
142
|
+
item.options = await this[item.ready]()
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
if (item.type === 'checkbox') {
|
|
148
|
+
if (this.selectdata[item.field]) {
|
|
149
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
150
|
+
} else {
|
|
151
|
+
item.value = []
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// 控制组件
|
|
157
|
+
if (this.selectdata.components) {
|
|
158
|
+
this.selectdata.components.forEach(item => {
|
|
159
|
+
if (!item.mark) {
|
|
160
|
+
item.mark = 0
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// 初始化onetomany
|
|
166
|
+
if (this.selectdata.onetomany) {
|
|
167
|
+
for (const item of this.selectdata.onetomany) {
|
|
168
|
+
let res = null
|
|
169
|
+
if (item.queryEvent) {
|
|
170
|
+
res = this[item.queryEvent]()
|
|
171
|
+
} else {
|
|
172
|
+
let http = new HttpResetClass()
|
|
173
|
+
let data = {
|
|
174
|
+
tablename: item.tables[0],
|
|
175
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
176
|
+
}
|
|
177
|
+
res = await http.load(
|
|
178
|
+
'POST',
|
|
179
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
180
|
+
// `rs/sql/singleTable`,
|
|
181
|
+
{data: data},
|
|
182
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
item.rows = res.data
|
|
187
|
+
|
|
188
|
+
// 初始化onetomany中的fields
|
|
189
|
+
for (const field of item.fields) {
|
|
190
|
+
if (!field.value) {
|
|
191
|
+
if (field.value !== 0) {
|
|
192
|
+
field.value = null
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (field.default || field.default === 0) {
|
|
197
|
+
field.value = field.default
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// datepicker
|
|
201
|
+
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
202
|
+
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (field.type === 'select') {
|
|
206
|
+
|
|
207
|
+
if (field.param) {
|
|
208
|
+
let temp = this.$appdata.getParam(field.label)
|
|
209
|
+
|
|
210
|
+
if (temp && temp.length > 0) {
|
|
211
|
+
field.options = temp
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (field.paramLabel) {
|
|
215
|
+
temp = this.$appdata.getParam(field.paramLabel)
|
|
216
|
+
if (temp && temp.length > 0) {
|
|
217
|
+
item.options = temp
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// 初始化 buttons_fields
|
|
228
|
+
for (const item of this.selectdata.buttons) {
|
|
229
|
+
if (item.button_name === '下发') {
|
|
230
|
+
let data = {
|
|
231
|
+
source: item.source,
|
|
232
|
+
userid: Vue.user.id
|
|
233
|
+
// userid: '51953'
|
|
234
|
+
}
|
|
235
|
+
if (item.sourceMethod) {
|
|
236
|
+
data.source = this[item.sourceMethod]()
|
|
237
|
+
}
|
|
238
|
+
if (!data.source) {
|
|
239
|
+
this.$showMessage("请配置获取人员表达式")
|
|
240
|
+
return
|
|
241
|
+
}
|
|
242
|
+
let res = await this.$resetpost(
|
|
243
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
244
|
+
// `rs/search`,
|
|
245
|
+
{data: data},
|
|
246
|
+
{resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
let options = res.data.map(source => {
|
|
250
|
+
return {
|
|
251
|
+
"label": source.name,
|
|
252
|
+
"value": source.id
|
|
253
|
+
}
|
|
254
|
+
})
|
|
255
|
+
|
|
256
|
+
if (item.button_fields.length !== 1) {
|
|
257
|
+
this.$showMessage("下发有且只能有一个字段!!!")
|
|
258
|
+
return
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
item.button_fields[0].options = options
|
|
262
|
+
}
|
|
263
|
+
if (item.button_fields) {
|
|
264
|
+
item.button_fields.forEach(x => {
|
|
265
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
266
|
+
if (x.type === 'select') {
|
|
267
|
+
|
|
268
|
+
if (x.param) {
|
|
269
|
+
let temp = this.$appdata.getParam(x.label)
|
|
270
|
+
|
|
271
|
+
if (temp && temp.length > 0) {
|
|
272
|
+
x.options = temp
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (x.paramLabel) {
|
|
276
|
+
temp = this.$appdata.getParam(x.paramLabel)
|
|
277
|
+
if (temp && temp.length > 0) {
|
|
278
|
+
x.options = temp
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
}
|
|
284
|
+
})
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
289
|
+
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
290
|
+
|
|
291
|
+
this.show_data = temp
|
|
292
|
+
this.$nextTick(() => {
|
|
293
|
+
this.showview = true
|
|
294
|
+
})
|
|
295
|
+
},
|
|
296
|
+
signClean () {
|
|
297
|
+
this.selectdata.f_construction_sign = null
|
|
298
|
+
},
|
|
299
|
+
signSuccess (fileUrl) {
|
|
300
|
+
console.log('==============签字回调==================')
|
|
301
|
+
console.log(fileUrl)
|
|
302
|
+
this.selectdata.f_construction_sign = fileUrl
|
|
303
|
+
},
|
|
304
|
+
// 金额转大写
|
|
305
|
+
smalltoBIG(n) {
|
|
306
|
+
let fraction = ['角', '分'];
|
|
307
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
308
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
309
|
+
let head = n < 0 ? '欠' : '';
|
|
310
|
+
n = Math.abs(n);
|
|
311
|
+
|
|
312
|
+
let s = '';
|
|
313
|
+
|
|
314
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
315
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
316
|
+
}
|
|
317
|
+
s = s || '整';
|
|
318
|
+
n = Math.floor(n);
|
|
319
|
+
|
|
320
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
321
|
+
let p = '';
|
|
322
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
323
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
324
|
+
n = Math.floor(n / 10);
|
|
325
|
+
}
|
|
326
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
327
|
+
}
|
|
328
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
329
|
+
},
|
|
330
|
+
getLableValue(label) {
|
|
331
|
+
for (const item of this.show_data.fields) {
|
|
332
|
+
if (item.label === label && item.type !== 'number') {
|
|
333
|
+
return item.value || ''
|
|
334
|
+
}
|
|
335
|
+
if (item.label === label && item.type === 'number') {
|
|
336
|
+
return item.value || 0
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
getLableOptions(label) {
|
|
341
|
+
for (const item of this.show_data.fields) {
|
|
342
|
+
if (item.label === label) {
|
|
343
|
+
return item.options
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
setLabelValue(label, value) {
|
|
348
|
+
for (const item of this.show_data.fields) {
|
|
349
|
+
if (item.label === label) {
|
|
350
|
+
item.value = value
|
|
351
|
+
this.show_data[item.field] = value
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
setLabelOptions(label, options) {
|
|
356
|
+
for (const item of this.show_data.fields) {
|
|
357
|
+
if (item.label === label) {
|
|
358
|
+
item.options = options
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
disabledButtons(...buttons) {
|
|
363
|
+
for (const item of this.show_data.buttons) {
|
|
364
|
+
if (buttons.includes(item.button_name)) {
|
|
365
|
+
item.disabled = true
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
enableButtons(...buttons) {
|
|
370
|
+
for (const item of this.show_data.buttons) {
|
|
371
|
+
if (buttons.includes(item.button_name)) {
|
|
372
|
+
item.disabled = false
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
showButtons(...buttons) {
|
|
377
|
+
for (const item of this.show_data.buttons) {
|
|
378
|
+
if (buttons.includes(item.button_name)) {
|
|
379
|
+
item.hidden = false
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
hideButtons(...buttons) {
|
|
384
|
+
for (const item of this.show_data.buttons) {
|
|
385
|
+
if (buttons.includes(item.button_name)) {
|
|
386
|
+
item.hidden = true
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
async streetChange () {
|
|
391
|
+
if (isEmpty(this.show_data.f_street)) {
|
|
392
|
+
return
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
let data = {
|
|
396
|
+
tablename: 't_area',
|
|
397
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
398
|
+
}
|
|
399
|
+
let http = new HttpResetClass()
|
|
400
|
+
let res = await http.load(
|
|
401
|
+
'POST',
|
|
402
|
+
`rs/sql/singleTable`,
|
|
403
|
+
{data: data},
|
|
404
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
405
|
+
)
|
|
406
|
+
|
|
407
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
408
|
+
return {
|
|
409
|
+
label: item.f_residential_area,
|
|
410
|
+
value: item.f_residential_area
|
|
411
|
+
}
|
|
412
|
+
}))
|
|
413
|
+
},
|
|
414
|
+
async pcdChange () {
|
|
415
|
+
if (isEmpty(this.show_data.f_pcd)) {
|
|
416
|
+
return
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
let data = {
|
|
420
|
+
tablename: 't_street',
|
|
421
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
422
|
+
}
|
|
423
|
+
let f_address_type = this.getLableValue('地址类型')
|
|
424
|
+
|
|
425
|
+
if (f_address_type === '民用市区') {
|
|
426
|
+
data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
427
|
+
}
|
|
428
|
+
if (f_address_type === '民用乡镇') {
|
|
429
|
+
data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
let http = new HttpResetClass()
|
|
433
|
+
let res = await http.load(
|
|
434
|
+
'POST',
|
|
435
|
+
`rs/sql/singleTable`,
|
|
436
|
+
{data: data},
|
|
437
|
+
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
441
|
+
return {
|
|
442
|
+
label: item.f_street,
|
|
443
|
+
value: item.f_street
|
|
444
|
+
}
|
|
445
|
+
}))
|
|
446
|
+
},
|
|
447
|
+
async addressInitialization () {
|
|
448
|
+
//this.$getConfig(this, 'UserAddress')
|
|
449
|
+
//获取地址配置文件
|
|
450
|
+
try {
|
|
451
|
+
let res = await new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,null,{resolveMsg: null, rejectMsg: null})
|
|
452
|
+
Object.assign(this.config, res.data)
|
|
453
|
+
} catch (error) {
|
|
454
|
+
console.log("未获取到地址信息")
|
|
455
|
+
}
|
|
456
|
+
console.log("???????????不走了吗!")
|
|
457
|
+
let f_address_type = this.show_data.f_address_type
|
|
458
|
+
|
|
459
|
+
for (const item of this.show_data.fields) {
|
|
460
|
+
if (f_address_type === '民用市区') {
|
|
461
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
462
|
+
item.hidden = false
|
|
463
|
+
item.required = true
|
|
464
|
+
}
|
|
465
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
466
|
+
item.hidden = false
|
|
467
|
+
item.required = false
|
|
468
|
+
}
|
|
469
|
+
if (item.label === '地址') {
|
|
470
|
+
item.readonly = true
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (f_address_type === '民用乡镇') {
|
|
474
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
475
|
+
item.hidden = false
|
|
476
|
+
item.required = true
|
|
477
|
+
}
|
|
478
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
479
|
+
item.hidden = false
|
|
480
|
+
item.required = false
|
|
481
|
+
}
|
|
482
|
+
if (item.label === '楼层') {
|
|
483
|
+
item.hidden = true
|
|
484
|
+
item.required = false
|
|
485
|
+
}
|
|
486
|
+
if (item.label === '地址') {
|
|
487
|
+
item.readonly = true
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
if (f_address_type === '特殊地址') {
|
|
491
|
+
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
492
|
+
item.hidden = false
|
|
493
|
+
item.required = true
|
|
494
|
+
}
|
|
495
|
+
if (item.label === '集收单位') {
|
|
496
|
+
item.hidden = false
|
|
497
|
+
item.required = false
|
|
498
|
+
}
|
|
499
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
500
|
+
item.hidden = true
|
|
501
|
+
item.required = false
|
|
502
|
+
}
|
|
503
|
+
if (item.label === '地址') {
|
|
504
|
+
item.readonly = false
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
|
|
509
|
+
item.hidden = true
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
|
|
514
|
+
async checkDuplicate(index) {
|
|
515
|
+
let http = new HttpResetClass()
|
|
516
|
+
let data = {
|
|
517
|
+
tablename: 't_apply',
|
|
518
|
+
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
519
|
+
}
|
|
520
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
521
|
+
resolveMsg: null,
|
|
522
|
+
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
523
|
+
})
|
|
524
|
+
if (res.data.length > 0) {
|
|
525
|
+
this.show_data.fields[index].value = null
|
|
526
|
+
this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
async breakControl () {
|
|
530
|
+
if (this.show_data.id) {
|
|
531
|
+
let data = {
|
|
532
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
533
|
+
data: {
|
|
534
|
+
id: Vue.user.id,
|
|
535
|
+
orgid: Vue.user.orgid
|
|
536
|
+
// id: '51953',
|
|
537
|
+
// orgid: '10101'
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
let res = await this.$resetpost(
|
|
541
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
542
|
+
// `rs/sql/checkuser`,
|
|
543
|
+
{data: data},
|
|
544
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
545
|
+
)
|
|
546
|
+
|
|
547
|
+
this.selectdata = res.data[0]
|
|
548
|
+
} else {
|
|
549
|
+
this.selectdata = servicedata
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
this.refurbish()
|
|
553
|
+
},
|
|
554
|
+
async addressTips () {
|
|
555
|
+
let res = ''
|
|
556
|
+
if (this.show_data.f_apply_type === '报警器报建') {
|
|
557
|
+
res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
558
|
+
}else{
|
|
559
|
+
res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
560
|
+
}
|
|
561
|
+
if (res == 'confirm') {
|
|
562
|
+
return
|
|
563
|
+
}
|
|
564
|
+
throw '用户信息确认!!!'
|
|
565
|
+
},
|
|
566
|
+
// 缴费前置
|
|
567
|
+
chargeBefore () {
|
|
568
|
+
if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
|
|
569
|
+
this.$showAlert('费用未结清!!!', 'warning', 3000)
|
|
570
|
+
throw null
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
// 施工前置
|
|
574
|
+
async constructionBefore () {
|
|
575
|
+
let http = new HttpResetClass()
|
|
576
|
+
let data = {
|
|
577
|
+
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_table_state = '待开通'`
|
|
578
|
+
}
|
|
579
|
+
let res = await http.load(
|
|
580
|
+
'POST',
|
|
581
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
|
|
582
|
+
{data: data},
|
|
583
|
+
{
|
|
584
|
+
resolveMsg: null,
|
|
585
|
+
rejectMsg: '安装明细查询失败!!!'
|
|
586
|
+
})
|
|
587
|
+
if (res.data[0].num > 0) {
|
|
588
|
+
this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
|
|
589
|
+
throw `还有${res.data[0].num}户未安装,无法提交`
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
changePipeBuild () {
|
|
593
|
+
if (this.selectdata.f_process_dep === '工程部') {
|
|
594
|
+
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
595
|
+
}
|
|
596
|
+
if (this.selectdata.f_process_dep === '运营部') {
|
|
597
|
+
return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
|
|
598
|
+
}
|
|
599
|
+
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
600
|
+
},
|
|
601
|
+
async getPrice (f_price_id) {
|
|
602
|
+
console.log('=======================')
|
|
603
|
+
console.log(f_price_id)
|
|
604
|
+
|
|
605
|
+
let data = {
|
|
606
|
+
condition: `sp.f_filialeid = '${Vue.user.orgid}'`
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
if (!isEmpty(f_price_id)) {
|
|
610
|
+
data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
611
|
+
}
|
|
612
|
+
let http = new HttpResetClass()
|
|
613
|
+
let res = await http.load(
|
|
614
|
+
'POST',
|
|
615
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetPrice`,
|
|
616
|
+
{data: data},
|
|
617
|
+
{resolveMsg: null, rejectMsg: '气价查询失败!!!'}
|
|
618
|
+
)
|
|
619
|
+
|
|
620
|
+
return res.data.map(item => {
|
|
621
|
+
return {
|
|
622
|
+
label: item.f_price_name,
|
|
623
|
+
value: item
|
|
624
|
+
}
|
|
625
|
+
})
|
|
626
|
+
},
|
|
627
|
+
async getDesignerPeople () {
|
|
628
|
+
let data = {
|
|
629
|
+
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
630
|
+
userid: Vue.user.id
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
let http = new HttpResetClass()
|
|
634
|
+
let res = await http.load(
|
|
635
|
+
'POST',
|
|
636
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
637
|
+
{data: data},
|
|
638
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
639
|
+
)
|
|
640
|
+
|
|
641
|
+
return res.data.map(item => {
|
|
642
|
+
return {
|
|
643
|
+
label: item.name,
|
|
644
|
+
value: item.id
|
|
645
|
+
}
|
|
646
|
+
})
|
|
647
|
+
},
|
|
648
|
+
async surveyStopApply () {
|
|
649
|
+
console.log('终止报建!!!!!')
|
|
650
|
+
|
|
651
|
+
this.show_data.f_stop_reason = '现场勘察不符合报装条件'
|
|
652
|
+
|
|
653
|
+
let data = {
|
|
654
|
+
data: this.show_data,
|
|
655
|
+
user: Vue.user
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
let res = await this.$resetpost(
|
|
659
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
|
|
660
|
+
{data: data},
|
|
661
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
662
|
+
)
|
|
663
|
+
|
|
664
|
+
this.$dispatch('loadPage')
|
|
665
|
+
|
|
666
|
+
throw '终止报建!!!'
|
|
667
|
+
},
|
|
668
|
+
async getDevInfo () {
|
|
669
|
+
let data = {
|
|
670
|
+
tablename: 't_dev_info',
|
|
671
|
+
condition: `f_orgid = '${Vue.user.orgid}'`
|
|
672
|
+
}
|
|
673
|
+
let http = new HttpResetClass()
|
|
674
|
+
let res = await http.load(
|
|
675
|
+
'POST',
|
|
676
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
677
|
+
{data: data},
|
|
678
|
+
{resolveMsg: null, rejectMsg: '公司查询失败!!!'}
|
|
679
|
+
)
|
|
680
|
+
|
|
681
|
+
return res.data.map(item => {
|
|
682
|
+
return {
|
|
683
|
+
label: item.f_dev_name,
|
|
684
|
+
value: item.f_dev_name
|
|
685
|
+
}
|
|
686
|
+
})
|
|
687
|
+
},
|
|
688
|
+
async getDesignerPeople () {
|
|
689
|
+
let data = {
|
|
690
|
+
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
691
|
+
userid: Vue.user.id
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
let http = new HttpResetClass()
|
|
695
|
+
let res = await http.load(
|
|
696
|
+
'POST',
|
|
697
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
698
|
+
{data: data},
|
|
699
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
700
|
+
)
|
|
701
|
+
|
|
702
|
+
return res.data.map(item => {
|
|
703
|
+
return {
|
|
704
|
+
label: item.name,
|
|
705
|
+
value: item.id
|
|
706
|
+
}
|
|
707
|
+
})
|
|
708
|
+
},
|
|
709
|
+
// 获取片区
|
|
710
|
+
async getSliceArea () {
|
|
711
|
+
let data = {
|
|
712
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
713
|
+
userid: Vue.user.id
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
let http = new HttpResetClass()
|
|
717
|
+
let res = await http.load(
|
|
718
|
+
'POST',
|
|
719
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
720
|
+
{data: data},
|
|
721
|
+
{resolveMsg: null, rejectMsg: '片区查询失败!!!'}
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
return res.data.map(item => {
|
|
725
|
+
return {
|
|
726
|
+
label: item.name,
|
|
727
|
+
value: item.name
|
|
728
|
+
}
|
|
729
|
+
})
|
|
730
|
+
},
|
|
731
|
+
// 获取区县
|
|
732
|
+
async getPcd () {
|
|
733
|
+
let data = {
|
|
734
|
+
tablename: 't_pcd',
|
|
735
|
+
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
736
|
+
}
|
|
737
|
+
let http = new HttpResetClass()
|
|
738
|
+
let res = await http.load(
|
|
739
|
+
'POST',
|
|
740
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
741
|
+
{data: data},
|
|
742
|
+
{resolveMsg: null, rejectMsg: '区县查询失败!!!'}
|
|
743
|
+
)
|
|
744
|
+
|
|
745
|
+
return res.data.map(item => {
|
|
746
|
+
return {
|
|
747
|
+
label: item.f_pcd,
|
|
748
|
+
value: item.f_pcd
|
|
749
|
+
}
|
|
750
|
+
})
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
},
|
|
754
|
+
events: {
|
|
755
|
+
'complyInstallation' (index) {
|
|
756
|
+
if (this.show_data.f_is_have === '否') {
|
|
757
|
+
this.hideButtons('提交', '出图', '缴费')
|
|
758
|
+
this.showButtons('终止')
|
|
759
|
+
}
|
|
760
|
+
if (this.show_data.f_is_have === '是') {
|
|
761
|
+
this.hideButtons('终止')
|
|
762
|
+
this.showButtons('提交', '出图', '缴费')
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
async 'igniteDispatchReadyEvent' () {
|
|
766
|
+
let data = {
|
|
767
|
+
tablename: 'activityins',
|
|
768
|
+
condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
|
|
769
|
+
}
|
|
770
|
+
let http = new HttpResetClass()
|
|
771
|
+
let res = await http.load(
|
|
772
|
+
'POST',
|
|
773
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
774
|
+
{data: data},
|
|
775
|
+
{resolveMsg: null, rejectMsg: '查询失败!!!'}
|
|
776
|
+
)
|
|
777
|
+
if (res.data.length <= 0) {
|
|
778
|
+
console.log('+++++++++++++++++++++++++++++')
|
|
779
|
+
console.log('没有施工,不能退回')
|
|
780
|
+
this.hideButtons('退回')
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
'breakControl' () {
|
|
784
|
+
this.breakControl()
|
|
785
|
+
},
|
|
786
|
+
// 检查重复
|
|
787
|
+
'checkRepeat' (index) {
|
|
788
|
+
this.checkDuplicate(index)
|
|
789
|
+
},
|
|
790
|
+
'buildReadyEvent' () {
|
|
791
|
+
this.setLabelValue('施工单位', Vue.user.name)
|
|
792
|
+
this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
|
|
793
|
+
},
|
|
794
|
+
// 选择材料
|
|
795
|
+
async materialNameChenge (index, fieldIndex) {
|
|
796
|
+
let material = this.show_data.onetomany[index].fields[fieldIndex].value
|
|
797
|
+
|
|
798
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
799
|
+
if (material[item.field]) {
|
|
800
|
+
item.value = material[item.field]
|
|
801
|
+
}
|
|
802
|
+
})
|
|
803
|
+
},
|
|
804
|
+
// 打开模态框获取材料
|
|
805
|
+
async 'getMaterialName' (index) {
|
|
806
|
+
let data = {
|
|
807
|
+
condition: `1=1`
|
|
808
|
+
}
|
|
809
|
+
let http = new HttpResetClass()
|
|
810
|
+
let res = await http.load(
|
|
811
|
+
'POST',
|
|
812
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
|
|
813
|
+
{data: data},
|
|
814
|
+
{resolveMsg: null, rejectMsg: '材料查询失败!!!'}
|
|
815
|
+
)
|
|
816
|
+
|
|
817
|
+
this.show_data.onetomany[index].fields.forEach(field => {
|
|
818
|
+
if (field.label === '选择材料') {
|
|
819
|
+
field.options = res.data.map(item => {
|
|
820
|
+
return {
|
|
821
|
+
'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
|
|
822
|
+
'value': item
|
|
823
|
+
}
|
|
824
|
+
})
|
|
825
|
+
}
|
|
826
|
+
})
|
|
827
|
+
},
|
|
828
|
+
// 选择气价
|
|
829
|
+
'priceChange' (index) {
|
|
830
|
+
if (isEmpty(this.show_data.stairPrice)) {
|
|
831
|
+
return
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
let stairPrice = this.getLableValue('气价名称')
|
|
835
|
+
|
|
836
|
+
this.setLabelValue('气价类型', stairPrice.f_price_type)
|
|
837
|
+
this.setLabelValue('用气性质', stairPrice.f_gasproperties)
|
|
838
|
+
this.setLabelValue('价格', stairPrice.f_price)
|
|
839
|
+
this.setLabelValue('客户类型', stairPrice.f_user_type)
|
|
840
|
+
|
|
841
|
+
this.show_data.f_price_id = stairPrice.f_price_id
|
|
842
|
+
this.show_data.f_price_name = stairPrice.f_price_name
|
|
843
|
+
},
|
|
844
|
+
// 是否购买保险
|
|
845
|
+
isInsureChange (index) {
|
|
846
|
+
let f_is_insure = this.getLableValue('是否购买保险')
|
|
847
|
+
for (const item of this.show_data.fields) {
|
|
848
|
+
if (f_is_insure === '是') {
|
|
849
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
850
|
+
item.hidden = false
|
|
851
|
+
item.required = true
|
|
852
|
+
}
|
|
853
|
+
if (item.label === '保险备注') {
|
|
854
|
+
item.hidden = false
|
|
855
|
+
}
|
|
856
|
+
} else {
|
|
857
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
858
|
+
item.hidden = true
|
|
859
|
+
item.required = false
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
// 通气点火初始化
|
|
865
|
+
async 'gasReadyEvent' () {
|
|
866
|
+
console.log('----通气点火初始化----')
|
|
867
|
+
if (!isEmpty(this.show_data.f_price_id)) {
|
|
868
|
+
let priceList = await this.getPrice(this.show_data.f_price_id)
|
|
869
|
+
this.setLabelValue('气价名称', priceList[0].value)
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
let data = {
|
|
873
|
+
tablename: 't_userfees',
|
|
874
|
+
condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
console.log('---------查询是否有待执行保险-----------')
|
|
878
|
+
let http = new HttpResetClass()
|
|
879
|
+
let res = await http.load(
|
|
880
|
+
'POST',
|
|
881
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
882
|
+
{data: data},
|
|
883
|
+
{resolveMsg: null, rejectMsg: '保险查询失败!!!'}
|
|
884
|
+
)
|
|
885
|
+
if (res.data.length > 0) {
|
|
886
|
+
console.log('----------具有待执行保险------------')
|
|
887
|
+
this.setLabelValue('待执行保险', '是')
|
|
888
|
+
for (const item of this.show_data.fields) {
|
|
889
|
+
if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
890
|
+
item.hidden = true
|
|
891
|
+
item.required = false
|
|
892
|
+
item.value = null
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
console.log('----------具有待执行保险------------')
|
|
896
|
+
} else {
|
|
897
|
+
console.log('----------不有待执行保险------------')
|
|
898
|
+
this.setLabelValue('待执行保险', '否')
|
|
899
|
+
for (const item of this.show_data.fields) {
|
|
900
|
+
if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
901
|
+
item.hidden = false
|
|
902
|
+
item.required = true
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
console.log('----------具有待执行保险------------')
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
// 初始化显示内容
|
|
909
|
+
let f_is_insure = this.getLableValue('是否购买保险')
|
|
910
|
+
for (const item of this.show_data.fields) {
|
|
911
|
+
if (f_is_insure === '是') {
|
|
912
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
913
|
+
item.hidden = false
|
|
914
|
+
item.required = true
|
|
915
|
+
}
|
|
916
|
+
if (item.label === '保险备注') {
|
|
917
|
+
item.hidden = false
|
|
918
|
+
}
|
|
919
|
+
// 本期保费到期时间默认一年
|
|
920
|
+
if (isEmpty(this.selectdata.f_ins_expiration_date)) {
|
|
921
|
+
let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
|
|
922
|
+
this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
if (f_is_insure === '否') {
|
|
926
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
927
|
+
item.hidden = true
|
|
928
|
+
item.required = false
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
// 合同金额失去焦点
|
|
934
|
+
async 'contractMoneyChange' (index) {
|
|
935
|
+
let data = {
|
|
936
|
+
operator: '+',
|
|
937
|
+
num1: this.show_data.f_contract_money || 0,
|
|
938
|
+
num2: this.getLableValue('追加金额') || 0
|
|
939
|
+
}
|
|
940
|
+
let res = await this.$resetpost(
|
|
941
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
|
|
942
|
+
{data: data},
|
|
943
|
+
{resolveMsg: null, rejectMsg: '金额计算失败!!!'}
|
|
944
|
+
)
|
|
945
|
+
|
|
946
|
+
this.setLabelValue('应交金额', res.data)
|
|
947
|
+
},
|
|
948
|
+
// ===========================================
|
|
949
|
+
async 'button'() {
|
|
950
|
+
if (this.show_data.button.before) {
|
|
951
|
+
await this[this.show_data.button.before]()
|
|
952
|
+
}
|
|
953
|
+
// 点击重置按钮就重置数据
|
|
954
|
+
if (this.show_data.button.button_name === '重置') {
|
|
955
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
956
|
+
return
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
this.show_data.user = Vue.user
|
|
960
|
+
// this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
|
|
961
|
+
this.show_data.start_activity = this.json_datas.start_activity
|
|
962
|
+
this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
if (this.show_data.f_apply_type === '报警器报建' && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工'){
|
|
966
|
+
//判断是否添加报警器材料
|
|
967
|
+
let bjqlag = false
|
|
968
|
+
let datatemp = {
|
|
969
|
+
'bjqid':"",
|
|
970
|
+
'fprocessid':"",
|
|
971
|
+
'sqvalue':"",
|
|
972
|
+
'f_bjq_sid':"",
|
|
973
|
+
'f_material_code':""
|
|
974
|
+
}
|
|
975
|
+
let numOne = [];
|
|
976
|
+
this.show_data.onetomany.forEach(item=>{
|
|
977
|
+
item.rows.forEach(i=>{
|
|
978
|
+
if (i.f_material_name.substr(0,3) === '报警器'){
|
|
979
|
+
bjqlag = true
|
|
980
|
+
datatemp.bjqid = i.id
|
|
981
|
+
datatemp.fprocessid = i.f_process_id
|
|
982
|
+
datatemp.f_bjq_sid = i.f_bjq_sid
|
|
983
|
+
datatemp.f_material_code = i.f_material_code
|
|
984
|
+
numOne.push(i.f_bjq_sid)
|
|
985
|
+
}
|
|
986
|
+
})
|
|
987
|
+
})
|
|
988
|
+
if (!bjqlag){
|
|
989
|
+
this.$showMessage('请添加报警器物料信息!!!')
|
|
990
|
+
return
|
|
991
|
+
}
|
|
992
|
+
if (numOne.length > 1){
|
|
993
|
+
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
994
|
+
return
|
|
995
|
+
}
|
|
996
|
+
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
997
|
+
//区域地址存入材料记录表
|
|
998
|
+
let areares = await this.$resetpost(
|
|
999
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveArea`,
|
|
1000
|
+
// `rs/logic/saveArea`,
|
|
1001
|
+
{data: datatemp},
|
|
1002
|
+
{resolveMsg: null, rejectMsg: '区域地址保存失败'}
|
|
1003
|
+
)
|
|
1004
|
+
|
|
1005
|
+
// 完工之后推送数据到汉威
|
|
1006
|
+
let adddata = {
|
|
1007
|
+
f_bjq_sid : datatemp.f_bjq_sid,
|
|
1008
|
+
f_material_code : datatemp.f_material_code,
|
|
1009
|
+
f_bjq_address: this.show_data.areaData.sqvalue,
|
|
1010
|
+
f_user_name: this.show_data.f_user_name,
|
|
1011
|
+
f_address: this.show_data.f_address,
|
|
1012
|
+
f_user_phone: this.show_data.f_phone,
|
|
1013
|
+
f_userinfo_code: this.show_data.f_userinfo_code,
|
|
1014
|
+
installtime: this.show_data.f_construction_date,
|
|
1015
|
+
}
|
|
1016
|
+
let res = await this.$resetpost(
|
|
1017
|
+
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqadduser`,
|
|
1018
|
+
// `ncc/rs/logic/bjqadduser`,
|
|
1019
|
+
// `/rs/logic/bjqadduser`,
|
|
1020
|
+
adddata
|
|
1021
|
+
)
|
|
1022
|
+
if (res.data.code != 200){
|
|
1023
|
+
this.$showMessage(res.data.msg)
|
|
1024
|
+
return
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
}
|
|
1028
|
+
let res = await this.$resetpost(
|
|
1029
|
+
// `rs/logic/ApplyProductService`,
|
|
1030
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
|
|
1031
|
+
{data: this.show_data},
|
|
1032
|
+
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
1033
|
+
)
|
|
1034
|
+
|
|
1035
|
+
if (this.show_data.button.after) {
|
|
1036
|
+
this[this.show_data.button.after]()
|
|
1037
|
+
}
|
|
1038
|
+
// 返回上层
|
|
1039
|
+
this.$dispatch('confirm')
|
|
1040
|
+
},
|
|
1041
|
+
// 失去焦点出触发事件
|
|
1042
|
+
'onchange' (index) {
|
|
1043
|
+
if (this.show_data.defname === '报装申请') {
|
|
1044
|
+
if (
|
|
1045
|
+
this.show_data.fields[index].label === '区/县' ||
|
|
1046
|
+
this.show_data.fields[index].label === '街道/乡镇' ||
|
|
1047
|
+
this.show_data.fields[index].label === '集收单位' ||
|
|
1048
|
+
this.show_data.fields[index].label === '楼号/组' ||
|
|
1049
|
+
this.show_data.fields[index].label === '单元/排' ||
|
|
1050
|
+
this.show_data.fields[index].label === '楼层' ||
|
|
1051
|
+
this.show_data.fields[index].label === '门牌号'
|
|
1052
|
+
) {
|
|
1053
|
+
|
|
1054
|
+
let f_pcd = this.getLableValue('区/县') || ''
|
|
1055
|
+
let f_street = this.getLableValue('街道/乡镇') || ''
|
|
1056
|
+
let f_residential_area = this.getLableValue('集收单位') || ''
|
|
1057
|
+
let f_building = this.getLableValue('楼号/组') || ''
|
|
1058
|
+
let f_building_suffix = f_building ? this.config.f_building_suffix : ''
|
|
1059
|
+
let f_unit = this.getLableValue('单元/排') || ''
|
|
1060
|
+
let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
|
|
1061
|
+
let f_floor = this.getLableValue('楼层') || ''
|
|
1062
|
+
let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
|
|
1063
|
+
let f_room = this.getLableValue('门牌号') || ''
|
|
1064
|
+
let f_room_suffix = f_room ? this.config.f_room_suffix : ''
|
|
1065
|
+
|
|
1066
|
+
let f_address = null
|
|
1067
|
+
|
|
1068
|
+
let f_address_type = this.show_data.f_address_type
|
|
1069
|
+
f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1070
|
+
/*if (f_address_type === '民用城区') {
|
|
1071
|
+
f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1072
|
+
}
|
|
1073
|
+
if (f_address_type === '民用农村') {
|
|
1074
|
+
f_address = f_building + f_unit + f_floor + f_room
|
|
1075
|
+
}
|
|
1076
|
+
if (f_address_type === '特殊城区') {
|
|
1077
|
+
f_address = f_street + f_residential_area
|
|
1078
|
+
}*/
|
|
1079
|
+
this.setLabelValue("地址", f_address)
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
async getDesignerPeople () {
|
|
1084
|
+
let data = {
|
|
1085
|
+
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
1086
|
+
userid: this.$login.f.id
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
let http = new HttpResetClass()
|
|
1090
|
+
let res = await http.load(
|
|
1091
|
+
'POST',
|
|
1092
|
+
`rs/search`,
|
|
1093
|
+
{data: data},
|
|
1094
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
1095
|
+
)
|
|
1096
|
+
|
|
1097
|
+
return res.data.map(item => {
|
|
1098
|
+
return {
|
|
1099
|
+
label: item.name,
|
|
1100
|
+
value: item.id
|
|
1101
|
+
}
|
|
1102
|
+
})
|
|
1103
|
+
},
|
|
1104
|
+
// 申请节点初始化
|
|
1105
|
+
'applyReadyEvent' () {
|
|
1106
|
+
this.addressInitialization()
|
|
1107
|
+
|
|
1108
|
+
this.pcdChange()
|
|
1109
|
+
this.streetChange()
|
|
1110
|
+
},
|
|
1111
|
+
// 合同金额失去焦点
|
|
1112
|
+
async 'contractMoneyChange' (index) {
|
|
1113
|
+
let data = {
|
|
1114
|
+
operator: '+',
|
|
1115
|
+
num1: this.show_data.f_contract_money || 0,
|
|
1116
|
+
num2: this.getLableValue('追加金额') || 0
|
|
1117
|
+
}
|
|
1118
|
+
let res = await this.$resetpost(
|
|
1119
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
|
|
1120
|
+
{data: data},
|
|
1121
|
+
{resolveMsg: null, rejectMsg: '金额计算失败!!!'}
|
|
1122
|
+
)
|
|
1123
|
+
|
|
1124
|
+
this.setLabelValue('应交金额', res.data)
|
|
1125
|
+
},
|
|
1126
|
+
// 街道失去焦点
|
|
1127
|
+
async 'streetChange' (index) {
|
|
1128
|
+
if (isEmpty(this.show_data.f_street)) {
|
|
1129
|
+
return
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
this.setLabelValue('集收单位', null)
|
|
1133
|
+
|
|
1134
|
+
let data = {
|
|
1135
|
+
tablename: 't_area',
|
|
1136
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
1137
|
+
}
|
|
1138
|
+
let http = new HttpResetClass()
|
|
1139
|
+
let res = await http.load(
|
|
1140
|
+
'POST',
|
|
1141
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
1142
|
+
{data: data},
|
|
1143
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1144
|
+
)
|
|
1145
|
+
|
|
1146
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1147
|
+
return {
|
|
1148
|
+
label: item.f_residential_area,
|
|
1149
|
+
value: item.f_residential_area
|
|
1150
|
+
}
|
|
1151
|
+
}))
|
|
1152
|
+
},
|
|
1153
|
+
// 选择报建项目
|
|
1154
|
+
'selectApply' (row) {
|
|
1155
|
+
this.setLabelValue('工程名称', row.f_entry_name)
|
|
1156
|
+
this.setLabelValue('工程编号', row.f_apply_num)
|
|
1157
|
+
this.setLabelValue('报建类型', row.f_apply_type)
|
|
1158
|
+
this.setLabelValue('用户名称', row.f_user_name)
|
|
1159
|
+
this.setLabelValue('用户电话', row.f_phone)
|
|
1160
|
+
this.setLabelValue('证件类型', row.f_credentials)
|
|
1161
|
+
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1162
|
+
this.setLabelValue('地址', row.f_address)
|
|
1163
|
+
this.setLabelValue('累计缴费金额', row.f_cumulative_payment_money)
|
|
1164
|
+
|
|
1165
|
+
this.show_data.parentApply = JSON.parse(JSON.stringify(row))
|
|
1166
|
+
|
|
1167
|
+
delete row.id
|
|
1168
|
+
delete row.actid
|
|
1169
|
+
delete row.defid
|
|
1170
|
+
delete row.defname
|
|
1171
|
+
delete row.version
|
|
1172
|
+
delete row.f_apply_num
|
|
1173
|
+
delete row.f_sub_state
|
|
1174
|
+
delete row.f_apply_type
|
|
1175
|
+
delete row.f_process_id
|
|
1176
|
+
|
|
1177
|
+
this.show_data = Object.assign({}, this.show_data, row)
|
|
1178
|
+
|
|
1179
|
+
this.show_data.f_parent_process_id = this.show_data.parentApply.f_process_id
|
|
1180
|
+
},
|
|
1181
|
+
// 区县失去焦点
|
|
1182
|
+
async 'pcdChange' (index) {
|
|
1183
|
+
if (isEmpty(this.show_data.f_pcd)) {
|
|
1184
|
+
return
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
this.setLabelValue('街道/乡镇', null)
|
|
1188
|
+
this.setLabelValue('集收单位', null)
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
let data = {
|
|
1193
|
+
tablename: 't_street',
|
|
1194
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
1195
|
+
}
|
|
1196
|
+
let f_address_type = this.getLableValue('地址类型')
|
|
1197
|
+
|
|
1198
|
+
if (f_address_type === '民用市区') {
|
|
1199
|
+
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
1200
|
+
}
|
|
1201
|
+
if (f_address_type === '民用乡镇') {
|
|
1202
|
+
data.condition = `f_filialeid = '${Vue.user.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
let http = new HttpResetClass()
|
|
1206
|
+
let res = await http.load(
|
|
1207
|
+
'POST',
|
|
1208
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
1209
|
+
{data: data},
|
|
1210
|
+
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
1211
|
+
)
|
|
1212
|
+
|
|
1213
|
+
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
1214
|
+
return {
|
|
1215
|
+
label: item.f_street,
|
|
1216
|
+
value: item.f_street
|
|
1217
|
+
}
|
|
1218
|
+
}))
|
|
1219
|
+
},
|
|
1220
|
+
// 选择用户档案信息
|
|
1221
|
+
'selectUserinfo' (row) {
|
|
1222
|
+
this.setLabelValue('用户编号', row.f_userinfo_code)
|
|
1223
|
+
this.setLabelValue('用户名称', row.f_user_name)
|
|
1224
|
+
this.setLabelValue('用户电话', row.f_user_phone)
|
|
1225
|
+
this.setLabelValue('证件类型', row.f_credentials)
|
|
1226
|
+
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1227
|
+
this.setLabelValue('地址', row.f_address)
|
|
1228
|
+
|
|
1229
|
+
this.show_data.f_userinfo_id = row.f_userinfo_id
|
|
1230
|
+
this.show_data.f_userinfo_code = row.f_userinfo_code
|
|
1231
|
+
},
|
|
1232
|
+
// 地址类型失去焦点
|
|
1233
|
+
'addressTypeChange' (index) {
|
|
1234
|
+
this.setLabelValue('街道/乡镇', null)
|
|
1235
|
+
this.setLabelValue('集收单位', null)
|
|
1236
|
+
let f_address_type = this.show_data.fields[index].value
|
|
1237
|
+
for (const item of this.show_data.fields) {
|
|
1238
|
+
if (f_address_type === '民用市区') {
|
|
1239
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1240
|
+
item.hidden = false
|
|
1241
|
+
item.required = true
|
|
1242
|
+
item.value = null
|
|
1243
|
+
}
|
|
1244
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1245
|
+
item.hidden = false
|
|
1246
|
+
item.required = false
|
|
1247
|
+
item.value = null
|
|
1248
|
+
}
|
|
1249
|
+
if (item.label === '地址') {
|
|
1250
|
+
item.readonly = true
|
|
1251
|
+
item.value = null
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
if (f_address_type === '民用乡镇') {
|
|
1255
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1256
|
+
item.hidden = false
|
|
1257
|
+
item.required = true
|
|
1258
|
+
item.value = null
|
|
1259
|
+
}
|
|
1260
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1261
|
+
item.hidden = false
|
|
1262
|
+
item.required = false
|
|
1263
|
+
item.value = null
|
|
1264
|
+
}
|
|
1265
|
+
if (item.label === '楼层') {
|
|
1266
|
+
item.hidden = true
|
|
1267
|
+
item.required = false
|
|
1268
|
+
item.value = null
|
|
1269
|
+
}
|
|
1270
|
+
if (item.label === '地址') {
|
|
1271
|
+
item.readonly = true
|
|
1272
|
+
item.value = null
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
if (f_address_type === '特殊地址') {
|
|
1276
|
+
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
1277
|
+
item.hidden = false
|
|
1278
|
+
item.required = true
|
|
1279
|
+
item.value = null
|
|
1280
|
+
}
|
|
1281
|
+
if (item.label === '集收单位') {
|
|
1282
|
+
item.hidden = false
|
|
1283
|
+
item.required = false
|
|
1284
|
+
item.value = null
|
|
1285
|
+
}
|
|
1286
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
1287
|
+
item.hidden = true
|
|
1288
|
+
item.required = false
|
|
1289
|
+
item.value = null
|
|
1290
|
+
}
|
|
1291
|
+
if (item.label === '地址') {
|
|
1292
|
+
item.readonly = false
|
|
1293
|
+
item.value = null
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
// 搜索小区
|
|
1299
|
+
async 'searchArea' (area, index) {
|
|
1300
|
+
let data = {
|
|
1301
|
+
tablename: 't_area',
|
|
1302
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
|
|
1303
|
+
}
|
|
1304
|
+
let http = new HttpResetClass()
|
|
1305
|
+
let res = await http.load(
|
|
1306
|
+
'POST',
|
|
1307
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
1308
|
+
{data: data},
|
|
1309
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1310
|
+
)
|
|
1311
|
+
|
|
1312
|
+
if (res.data.length === 0) {
|
|
1313
|
+
return
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1317
|
+
return {
|
|
1318
|
+
label: item.f_residential_area,
|
|
1319
|
+
value: item.f_residential_area
|
|
1320
|
+
}
|
|
1321
|
+
}))
|
|
1322
|
+
},
|
|
1323
|
+
// 团购转散户初始化
|
|
1324
|
+
'apply2ReadyEvent' () {
|
|
1325
|
+
if (this.show_data.f_apply_source === '线下发起') {
|
|
1326
|
+
this.addressInitialization()
|
|
1327
|
+
this.hideLabels('用户编号')
|
|
1328
|
+
this.electiveLabels('用户编号')
|
|
1329
|
+
this.showLabels('片区', '地址类型')
|
|
1330
|
+
this.requiredLabels('片区', '地址类型')
|
|
1331
|
+
}
|
|
1332
|
+
if (this.show_data.f_apply_source === '自动发起') {
|
|
1333
|
+
this.hideLabels('片区', '地址类型')
|
|
1334
|
+
this.electiveLabels('片区', '地址类型',)
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
'onblur' (index) {},
|
|
1338
|
+
'oninput' (index) {},
|
|
1339
|
+
'initializtionView' () {},
|
|
1340
|
+
async 'onchangeModal' (index, fieldIndex) {
|
|
1341
|
+
},
|
|
1342
|
+
async 'onblurModal' (index, fieldIndex) {
|
|
1343
|
+
|
|
1344
|
+
},
|
|
1345
|
+
async 'oninputModal' (index, fieldIndex) {
|
|
1346
|
+
|
|
1347
|
+
},
|
|
1348
|
+
async 'onetomanydelete' (index, rowIndex) {
|
|
1349
|
+
|
|
1350
|
+
let http = new HttpResetClass()
|
|
1351
|
+
|
|
1352
|
+
let res = await http.load(
|
|
1353
|
+
'DELETE',
|
|
1354
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
1355
|
+
null,
|
|
1356
|
+
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
1357
|
+
)
|
|
1358
|
+
res = await this.$resetpost(
|
|
1359
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1360
|
+
this.show_data
|
|
1361
|
+
)
|
|
1362
|
+
this.breakControl()
|
|
1363
|
+
},
|
|
1364
|
+
async 'onetomanyupdate' (index, rowIndex) {
|
|
1365
|
+
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
1366
|
+
|
|
1367
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1368
|
+
data[item.field] = item.value
|
|
1369
|
+
})
|
|
1370
|
+
let res = await this.$resetpost(
|
|
1371
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1372
|
+
data
|
|
1373
|
+
)
|
|
1374
|
+
res = await this.$resetpost(
|
|
1375
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1376
|
+
this.show_data
|
|
1377
|
+
)
|
|
1378
|
+
this.breakControl()
|
|
1379
|
+
},
|
|
1380
|
+
async 'onetomanyadd' (index) {
|
|
1381
|
+
let data = {
|
|
1382
|
+
f_process_id : this.show_data.f_process_id,
|
|
1383
|
+
f_operator_id: Vue.user.id,
|
|
1384
|
+
f_operator: Vue.user.name,
|
|
1385
|
+
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
1386
|
+
f_orgid: Vue.user.orgid,
|
|
1387
|
+
f_orgname: Vue.user.orgs
|
|
1388
|
+
}
|
|
1389
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1390
|
+
data[item.field] = item.value
|
|
1391
|
+
})
|
|
1392
|
+
let res = await this.$resetpost(
|
|
1393
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1394
|
+
data
|
|
1395
|
+
)
|
|
1396
|
+
res = await this.$resetpost(
|
|
1397
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1398
|
+
this.show_data
|
|
1399
|
+
)
|
|
1400
|
+
this.breakControl()
|
|
1401
|
+
},
|
|
1402
|
+
'onbutchange' (index) {
|
|
1403
|
+
|
|
1404
|
+
},
|
|
1405
|
+
'onbutblur' (index) {
|
|
1406
|
+
|
|
1407
|
+
},
|
|
1408
|
+
'onbutinput' (index) {
|
|
1409
|
+
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
watch: {
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
</script>
|
|
1416
|
+
<style scoped>
|
|
1417
|
+
</style>
|