apply-clients 3.3.110-203 → 3.3.110-206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/android/Process/AppServiceControl.vue +93 -1
- package/src/components/android/Process/Processes/AppChargeManagement.vue +1 -1
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +21 -3
- package/src/components/product/OldApply/Handle/HandleApply.vue +34 -3
- package/src/components/product/OldApply/Monitor/MonitorApply.vue +32 -1
- package/src/components/product/OldApply/OldApply.vue +50 -2
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +71 -6
- package/src/components/product/Process/ExplorationSelect.vue +19 -0
- package/src/components/product/Process/Processes/InstallationDetails.vue +7 -1
- package/src/components/product/Process/Service/ServiceControl.vue +168 -2
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +99 -0
- package/src/components/product/Supervisory/SupervisoryList.vue +20 -1
- package/src/components/product/VueUtils/ApplyUpload.vue +1 -1
package/package.json
CHANGED
|
@@ -192,7 +192,71 @@ export default {
|
|
|
192
192
|
this[this.show_data.button.after]()
|
|
193
193
|
}
|
|
194
194
|
// 返回上层
|
|
195
|
-
this
|
|
195
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
196
|
+
let data = {
|
|
197
|
+
tablename: 't_apply',
|
|
198
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
199
|
+
}
|
|
200
|
+
let http = new HttpResetClass()
|
|
201
|
+
let restp = await http.load(
|
|
202
|
+
'POST',
|
|
203
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
204
|
+
{data: data},
|
|
205
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
206
|
+
)
|
|
207
|
+
restp.data[0].processname = '散户报建流程'
|
|
208
|
+
restp.data[0].defname = '合同签订'
|
|
209
|
+
this.$dispatch('gotoson',restp.data[0])
|
|
210
|
+
this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self', restp.data[0])
|
|
211
|
+
// this.$dispatch('apply',restp.data[0])
|
|
212
|
+
|
|
213
|
+
} else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
214
|
+
let data2 = {
|
|
215
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
216
|
+
data: {
|
|
217
|
+
id: Vue.user.id,
|
|
218
|
+
orgid: Vue.user.orgid
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
let http = new HttpResetClass()
|
|
222
|
+
let restp1 = await http.load(
|
|
223
|
+
'POST',
|
|
224
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
225
|
+
{data: data2},
|
|
226
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
227
|
+
)
|
|
228
|
+
console.log('打印查询的内容',restp1)
|
|
229
|
+
restp1.data[0].processname = '散户报建流程'
|
|
230
|
+
restp1.data[0].defname = '报装缴费'
|
|
231
|
+
this.$dispatch('gotoson',restp1.data[0])
|
|
232
|
+
this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self',restp1.data[0])
|
|
233
|
+
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
234
|
+
let data3 = {
|
|
235
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
236
|
+
data: {
|
|
237
|
+
id: Vue.user.id,
|
|
238
|
+
orgid: Vue.user.orgid
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
let http = new HttpResetClass()
|
|
242
|
+
let restp2 = await http.load(
|
|
243
|
+
'POST',
|
|
244
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
245
|
+
{data: data3},
|
|
246
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
247
|
+
)
|
|
248
|
+
console.log('打印查询的内容',restp2)
|
|
249
|
+
restp2.data[0].processname = '散户报建流程'
|
|
250
|
+
restp2.data[0].defname = '工程派工'
|
|
251
|
+
this.$dispatch('gotoson',restp2.data[0])
|
|
252
|
+
this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self',restp2.data[0])
|
|
253
|
+
}
|
|
254
|
+
else{
|
|
255
|
+
// console.log('-----')
|
|
256
|
+
this.$dispatch('confirm')
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
196
260
|
},
|
|
197
261
|
async refurbish() {
|
|
198
262
|
let data = {
|
|
@@ -493,6 +557,34 @@ export default {
|
|
|
493
557
|
}
|
|
494
558
|
}
|
|
495
559
|
},
|
|
560
|
+
hideLabels(...labels) {
|
|
561
|
+
for (const item of this.show_data.fields) {
|
|
562
|
+
if (labels.includes(item.label)) {
|
|
563
|
+
item.hidden = true
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
requiredLabels(...labels) {
|
|
568
|
+
for (const item of this.show_data.fields) {
|
|
569
|
+
if (labels.includes(item.label)) {
|
|
570
|
+
item.required = true
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
electiveLabels(...labels) {
|
|
575
|
+
for (const item of this.show_data.fields) {
|
|
576
|
+
if (labels.includes(item.label)) {
|
|
577
|
+
item.required = false
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
showLabels(...labels) {
|
|
582
|
+
for (const item of this.show_data.fields) {
|
|
583
|
+
if (labels.includes(item.label)) {
|
|
584
|
+
item.hidden = false
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
},
|
|
496
588
|
setLabelValue(label, value) {
|
|
497
589
|
for (const item of this.show_data.fields) {
|
|
498
590
|
if (item.label === label) {
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
|
|
203
203
|
},*/
|
|
204
204
|
charge: {
|
|
205
|
-
payment_terms:[{f_payment_term: '',f_charge_money: '',f_amount_words:'',f_payment_method : '
|
|
205
|
+
payment_terms:[{f_payment_term: '',f_charge_money: '',f_amount_words:'',f_payment_method : '手机APP'}]
|
|
206
206
|
},
|
|
207
207
|
order: null,
|
|
208
208
|
timeLeft: 120,
|
|
@@ -130,6 +130,18 @@
|
|
|
130
130
|
:value-single="true"
|
|
131
131
|
close-on-select ></v-select>
|
|
132
132
|
</div>
|
|
133
|
+
<div class="form-group col-sm-3">
|
|
134
|
+
<label class="font_normal_body">收费项目:</label>
|
|
135
|
+
<v-select
|
|
136
|
+
v-model="model.f_payment_term"
|
|
137
|
+
placeholder='请选择'
|
|
138
|
+
condition="cr.f_payment_term = '{}'"
|
|
139
|
+
:value.sync="model.f_payment_term"
|
|
140
|
+
:options='$parent.$parent.paymentTerm'
|
|
141
|
+
class="select select_list"
|
|
142
|
+
:value-single="true"
|
|
143
|
+
close-on-select ></v-select>
|
|
144
|
+
</div>
|
|
133
145
|
<div class="form-group col-sm-3">
|
|
134
146
|
<label class="font_normal_body">流 水 号:</label>
|
|
135
147
|
<input type="text" style="width: 60%" class="input_search" placeholder='流水号' v-model="model.f_payer_number"
|
|
@@ -207,6 +219,7 @@
|
|
|
207
219
|
<th style="white-space: nowrap;">用户地址</th>
|
|
208
220
|
<th style="white-space: nowrap;">身份证号</th>
|
|
209
221
|
<th style="white-space: nowrap;">缴费编码</th>
|
|
222
|
+
<th style="white-space: nowrap;">收费项目</th>
|
|
210
223
|
<th style="white-space: nowrap;">收费金额(退款金额)</th>
|
|
211
224
|
<th style="white-space: nowrap;">付款方式</th>
|
|
212
225
|
<th style="white-space: nowrap;">流水号</th>
|
|
@@ -250,6 +263,9 @@
|
|
|
250
263
|
<td style="text-align: center;">
|
|
251
264
|
<nobr><font>{{row.f_charge_number}}</font></nobr>
|
|
252
265
|
</td>
|
|
266
|
+
<td style="text-align: center;">
|
|
267
|
+
<nobr><font>{{row.f_payment_term}}</font></nobr>
|
|
268
|
+
</td>
|
|
253
269
|
<td style="text-align: center;">
|
|
254
270
|
<nobr><font>{{row.f_charge_money}}</font></nobr>
|
|
255
271
|
</td>
|
|
@@ -299,6 +315,7 @@ export default {
|
|
|
299
315
|
servicerList:[],
|
|
300
316
|
operatorList:[],
|
|
301
317
|
curuserid: [],
|
|
318
|
+
paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
|
|
302
319
|
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
303
320
|
applyNatures: [{label: '全部', value: ''}], // 报建性质
|
|
304
321
|
paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
|
|
@@ -337,7 +354,7 @@ export default {
|
|
|
337
354
|
// 调用查询
|
|
338
355
|
this.search()
|
|
339
356
|
this.getservicer()
|
|
340
|
-
this.
|
|
357
|
+
this.getapplyoperator()
|
|
341
358
|
},
|
|
342
359
|
methods: {
|
|
343
360
|
async getservicer(){
|
|
@@ -360,13 +377,13 @@ export default {
|
|
|
360
377
|
})
|
|
361
378
|
})},
|
|
362
379
|
|
|
363
|
-
async
|
|
380
|
+
async getapplyoperator(){
|
|
364
381
|
debugger
|
|
365
382
|
let data = {
|
|
366
383
|
condition: `1=1`
|
|
367
384
|
}
|
|
368
385
|
let http = new HttpResetClass()
|
|
369
|
-
let res = await http.load('POST', 'rs/sql/
|
|
386
|
+
let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
370
387
|
res.data.forEach(item => {
|
|
371
388
|
this.operatorList.push({
|
|
372
389
|
'label': item.f_operator,
|
|
@@ -402,6 +419,7 @@ export default {
|
|
|
402
419
|
search () {
|
|
403
420
|
this.$refs.cp.$refs.cri.search()
|
|
404
421
|
this.getChargeAll()
|
|
422
|
+
this.getapplyoperator()
|
|
405
423
|
},
|
|
406
424
|
async getChargeAll () {
|
|
407
425
|
let http = new HttpResetClass()
|
|
@@ -87,6 +87,18 @@
|
|
|
87
87
|
:value-single="true"
|
|
88
88
|
close-on-select ></v-select>
|
|
89
89
|
</div>
|
|
90
|
+
<div class="form-group col-sm-3">
|
|
91
|
+
<label class="font_normal_body">真实流程状态:</label>
|
|
92
|
+
<v-select
|
|
93
|
+
v-model="model.f_reality_sub_state"
|
|
94
|
+
placeholder='流程状态'
|
|
95
|
+
condition="f_reality_sub_state = '{}'"
|
|
96
|
+
:value.sync="model.f_reality_sub_state"
|
|
97
|
+
:options='$parent.$parent.showrevise'
|
|
98
|
+
class="select select_list"
|
|
99
|
+
:value-single="true"
|
|
100
|
+
close-on-select ></v-select>
|
|
101
|
+
</div>
|
|
90
102
|
<div class="form-group col-sm-3">
|
|
91
103
|
<label class="font_normal_body">用气性质:</label>
|
|
92
104
|
<v-select
|
|
@@ -135,12 +147,16 @@
|
|
|
135
147
|
<th style="white-space: nowrap;">报建类型</th>
|
|
136
148
|
<th style="white-space: nowrap;">用气性质</th>
|
|
137
149
|
<th style="white-space: nowrap;">流程状态</th>
|
|
150
|
+
<th style="white-space: nowrap;">真实流程状态</th>
|
|
138
151
|
<th style="white-space: nowrap;">收费项目</th>
|
|
139
152
|
<th style="white-space: nowrap;">合同金额</th>
|
|
140
153
|
<th style="white-space: nowrap;">表号</th>
|
|
141
154
|
<th style="white-space: nowrap;">防盗卡号</th>
|
|
142
155
|
<th style="white-space: nowrap;">报建日期</th>
|
|
143
156
|
<th style="white-space: nowrap;">客户编号</th>
|
|
157
|
+
|
|
158
|
+
<th style="white-space: nowrap;">修改日期</th>
|
|
159
|
+
<th style="white-space: nowrap;">修改人</th>
|
|
144
160
|
<th style="white-space: nowrap;">操作</th>
|
|
145
161
|
</tr>
|
|
146
162
|
</template>
|
|
@@ -170,6 +186,9 @@
|
|
|
170
186
|
<td style="text-align: center;">
|
|
171
187
|
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
172
188
|
</td>
|
|
189
|
+
<td style="text-align: center;">
|
|
190
|
+
<nobr><font>{{row.f_reality_sub_state}}</font></nobr>
|
|
191
|
+
</td>
|
|
173
192
|
<td style="text-align: center;">
|
|
174
193
|
<nobr><font>{{row.f_payment_term}}</font></nobr>
|
|
175
194
|
</td>
|
|
@@ -188,6 +207,13 @@
|
|
|
188
207
|
<td style="text-align: center;">
|
|
189
208
|
<nobr><font>{{row.f_userinfo_code}}</font></nobr>
|
|
190
209
|
</td>
|
|
210
|
+
|
|
211
|
+
<td style="text-align: center;">
|
|
212
|
+
<nobr><font>{{row.f_reality_sub_date}}</font></nobr>
|
|
213
|
+
</td>
|
|
214
|
+
<td style="text-align: center;">
|
|
215
|
+
<nobr><font>{{row.f_reality_sub_user}}</font></nobr>
|
|
216
|
+
</td>
|
|
191
217
|
<td style="text-align: center;">
|
|
192
218
|
<dropdown>
|
|
193
219
|
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
@@ -195,8 +221,9 @@
|
|
|
195
221
|
</button>
|
|
196
222
|
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
197
223
|
<li>
|
|
198
|
-
<a href="#" v-if="this.$login.f.rolesnames.indexOf('工程部派工') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1 || (this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 && row.f_sub_state === '待点火')" @click="$parent.$parent.$parent.click(row)">{{row.f_sub_state}}</a
|
|
199
|
-
<a href="#" v-if="this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1" @click="$parent.$parent.$parent.stopApply(row)">异常终止</a
|
|
224
|
+
<!-- <a href="#" v-if="this.$login.f.rolesnames.indexOf('工程部派工') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1 || (this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 && row.f_sub_state === '待点火')" @click="$parent.$parent.$parent.click(row)">{{row.f_sub_state}}</a>-->
|
|
225
|
+
<!-- <a href="#" v-if="this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1" @click="$parent.$parent.$parent.stopApply(row)">异常终止</a>-->
|
|
226
|
+
<a href="#" v-if="this.$login.f.rolesnames.indexOf('营业厅报装') !== -1 || this.$login.f.rolesnames.indexOf('运营部派工') !== -1" @click="$parent.$parent.$parent.reviseApply(row)">修改真实流程状态</a>
|
|
200
227
|
</li>
|
|
201
228
|
</ul>
|
|
202
229
|
</dropdown>
|
|
@@ -241,7 +268,8 @@ export default {
|
|
|
241
268
|
{label: '民用',value: '民用'},
|
|
242
269
|
{label: '商业',value: '商业'},
|
|
243
270
|
{label: '工业',value: '工业'}
|
|
244
|
-
]
|
|
271
|
+
],
|
|
272
|
+
showrevise:this.$appdata.getParam('真实流程状态')
|
|
245
273
|
}
|
|
246
274
|
},
|
|
247
275
|
ready () {
|
|
@@ -251,6 +279,9 @@ export default {
|
|
|
251
279
|
stopApply (row) {
|
|
252
280
|
this.$dispatch('stopApply', row)
|
|
253
281
|
},
|
|
282
|
+
reviseApply (row) {
|
|
283
|
+
this.$dispatch('reviseApply', row)
|
|
284
|
+
},
|
|
254
285
|
click (row) {
|
|
255
286
|
this.$dispatch('openApply', row, 'handle')
|
|
256
287
|
},
|
|
@@ -92,6 +92,18 @@
|
|
|
92
92
|
:value-single="true"
|
|
93
93
|
close-on-select ></v-select>
|
|
94
94
|
</div>
|
|
95
|
+
<div class="form-group col-sm-3">
|
|
96
|
+
<label class="font_normal_body">真实流程状态:</label>
|
|
97
|
+
<v-select
|
|
98
|
+
v-model="model.f_reality_sub_state"
|
|
99
|
+
placeholder='流程状态'
|
|
100
|
+
condition="f_reality_sub_state = '{}'"
|
|
101
|
+
:value.sync="model.f_reality_sub_state"
|
|
102
|
+
:options='$parent.$parent.showrevise'
|
|
103
|
+
class="select select_list"
|
|
104
|
+
:value-single="true"
|
|
105
|
+
close-on-select ></v-select>
|
|
106
|
+
</div>
|
|
95
107
|
<div class="form-group col-sm-3">
|
|
96
108
|
<label class="font_normal_body">用气性质:</label>
|
|
97
109
|
<v-select
|
|
@@ -152,12 +164,16 @@
|
|
|
152
164
|
<th style="white-space: nowrap;">报建类型</th>
|
|
153
165
|
<th style="white-space: nowrap;">用气性质</th>
|
|
154
166
|
<th style="white-space: nowrap;">流程状态</th>
|
|
167
|
+
<th style="white-space: nowrap;">真实流程状态</th>
|
|
155
168
|
<th style="white-space: nowrap;">收费项目</th>
|
|
156
169
|
<th style="white-space: nowrap;">合同金额</th>
|
|
157
170
|
<th style="white-space: nowrap;">表号</th>
|
|
158
171
|
<th style="white-space: nowrap;">防盗卡号</th>
|
|
159
172
|
<th style="white-space: nowrap;">报建日期</th>
|
|
160
173
|
<th style="white-space: nowrap;">客户编号</th>
|
|
174
|
+
|
|
175
|
+
<th style="white-space: nowrap;">修改日期</th>
|
|
176
|
+
<th style="white-space: nowrap;">修改人</th>
|
|
161
177
|
</tr>
|
|
162
178
|
</template>
|
|
163
179
|
<template partial='body'>
|
|
@@ -186,6 +202,9 @@
|
|
|
186
202
|
<td @click="$parent.$parent.$parent.click(row)" style="text-align: center;">
|
|
187
203
|
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
188
204
|
</td>
|
|
205
|
+
<td style="text-align: center;">
|
|
206
|
+
<nobr><font>{{row.f_reality_sub_state}}</font></nobr>
|
|
207
|
+
</td>
|
|
189
208
|
<td @click="$parent.$parent.$parent.click(row)" style="text-align: center;">
|
|
190
209
|
<nobr><font>{{row.f_payment_term}}</font></nobr>
|
|
191
210
|
</td>
|
|
@@ -204,6 +223,14 @@
|
|
|
204
223
|
<td @click="$parent.$parent.$parent.click(row)" style="text-align: center;">
|
|
205
224
|
<nobr><font>{{row.f_userinfo_code}}</font></nobr>
|
|
206
225
|
</td>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<td style="text-align: center;">
|
|
229
|
+
<nobr><font>{{row.f_reality_sub_date}}</font></nobr>
|
|
230
|
+
</td>
|
|
231
|
+
<td style="text-align: center;">
|
|
232
|
+
<nobr><font>{{row.f_reality_sub_user}}</font></nobr>
|
|
233
|
+
</td>
|
|
207
234
|
</tr>
|
|
208
235
|
</template>
|
|
209
236
|
</data-grid>
|
|
@@ -245,6 +272,7 @@ export default {
|
|
|
245
272
|
{label: '商业', value: '商业'},
|
|
246
273
|
{label: '工业', value: '工业'}
|
|
247
274
|
],
|
|
275
|
+
showrevise: [{label: '全部', value: ''}, ...this.$appdata.getParam('真实流程状态')],
|
|
248
276
|
stopReasons: [{label: '全部', value: ''}, ...this.$appdata.getParam('终止原因')],
|
|
249
277
|
getfield: {
|
|
250
278
|
'f_userinfo_code': '用户编号',
|
|
@@ -281,7 +309,10 @@ export default {
|
|
|
281
309
|
'f_stop_reason': '终止原因',
|
|
282
310
|
'f_stop_user': '终止人员',
|
|
283
311
|
'f_stop_date': '终止时间',
|
|
284
|
-
'f_stop_remarks': '终止备注'
|
|
312
|
+
'f_stop_remarks': '终止备注',
|
|
313
|
+
'f_reality_sub_state': '真实流程状态',
|
|
314
|
+
'f_reality_sub_user': '修改人员',
|
|
315
|
+
'f_reality_sub_date': '修改时间'
|
|
285
316
|
}
|
|
286
317
|
}
|
|
287
318
|
},
|
|
@@ -60,6 +60,35 @@
|
|
|
60
60
|
</footer>
|
|
61
61
|
</modal>
|
|
62
62
|
|
|
63
|
+
|
|
64
|
+
<modal v-if="showRevise" :show.sync="showRevise" backdrop="false" large>
|
|
65
|
+
<header slot="modal-header" class="modal-header">
|
|
66
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
67
|
+
<span class="modal-title"><font size="3">修改状态</font></span>
|
|
68
|
+
</header>
|
|
69
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
70
|
+
<div class="col-sm-12 form-group" :class="apply.f_reality_sub_state ? '':'has-error'">
|
|
71
|
+
<label class="control-label-justify control-label col-sm-2" style="line-height: 35px">真实流程状态</label>
|
|
72
|
+
<div class="col-sm-10">
|
|
73
|
+
<v-select
|
|
74
|
+
width="100%"
|
|
75
|
+
v-model="apply.f_reality_sub_state"
|
|
76
|
+
:value.sync="apply.f_reality_sub_state"
|
|
77
|
+
:options='showrevise'
|
|
78
|
+
class="select select_list"
|
|
79
|
+
:value-single="true"
|
|
80
|
+
close-on-select ></v-select>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</article>
|
|
84
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
85
|
+
<button :class="apply.f_reality_sub_state ? 'btn btn-primary' : 'btn btn-default'"
|
|
86
|
+
:disabled="!apply.f_reality_sub_state" type="button" @click="reviseApply()">
|
|
87
|
+
确认
|
|
88
|
+
</button>
|
|
89
|
+
</footer>
|
|
90
|
+
</modal>
|
|
91
|
+
|
|
63
92
|
</template>
|
|
64
93
|
|
|
65
94
|
<script>
|
|
@@ -74,9 +103,11 @@ export default {
|
|
|
74
103
|
show: [true],
|
|
75
104
|
showMessage: false,
|
|
76
105
|
showStop: false,
|
|
106
|
+
showRevise:false,
|
|
77
107
|
apply: null,
|
|
78
108
|
type: null,
|
|
79
|
-
stopReasons: this.$appdata.getParam('终止原因')
|
|
109
|
+
stopReasons: this.$appdata.getParam('终止原因'),
|
|
110
|
+
showrevise:this.$appdata.getParam('真实流程状态')
|
|
80
111
|
}
|
|
81
112
|
},
|
|
82
113
|
methods: {
|
|
@@ -94,6 +125,19 @@ export default {
|
|
|
94
125
|
|
|
95
126
|
this.closeModal()
|
|
96
127
|
},
|
|
128
|
+
async reviseApply(){
|
|
129
|
+
let data = {
|
|
130
|
+
apply: this.apply,
|
|
131
|
+
user: this.$login.f
|
|
132
|
+
}
|
|
133
|
+
let http = new HttpResetClass()
|
|
134
|
+
let res = await http.load('POST', 'rs/logic/reviseOldApply', {data:data}, {
|
|
135
|
+
resolveMsg: null,
|
|
136
|
+
rejectMsg: '状态修改失败!!!'
|
|
137
|
+
})
|
|
138
|
+
this.closeModal()
|
|
139
|
+
|
|
140
|
+
},
|
|
97
141
|
async stopApply () {
|
|
98
142
|
let data = {
|
|
99
143
|
apply: this.apply,
|
|
@@ -112,7 +156,7 @@ export default {
|
|
|
112
156
|
closeModal () {
|
|
113
157
|
this.showMessage = false
|
|
114
158
|
this.showStop = false
|
|
115
|
-
|
|
159
|
+
this.showRevise = false
|
|
116
160
|
this.apply = null
|
|
117
161
|
|
|
118
162
|
this.type = null
|
|
@@ -131,6 +175,10 @@ export default {
|
|
|
131
175
|
this.apply = apply
|
|
132
176
|
this.showStop = true
|
|
133
177
|
},
|
|
178
|
+
'reviseApply' (apply) {
|
|
179
|
+
this.apply = apply
|
|
180
|
+
this.showRevise = true
|
|
181
|
+
},
|
|
134
182
|
'openApply' (apply, type) {
|
|
135
183
|
this.showMessage = false
|
|
136
184
|
|
|
@@ -57,6 +57,18 @@
|
|
|
57
57
|
v-on:keyup.enter="$parent.$parent.search()"
|
|
58
58
|
condition="f_construction_unit = '{}'">
|
|
59
59
|
</div>
|
|
60
|
+
<div class="form-group col-sm-3">
|
|
61
|
+
<label class="font_normal_body">是否打印:</label>
|
|
62
|
+
<v-select
|
|
63
|
+
v-model="model.f_prints_number"
|
|
64
|
+
placeholder='是否打印'
|
|
65
|
+
condition=" f_prints_number {}"
|
|
66
|
+
:value.sync="model.f_prints_number"
|
|
67
|
+
:options='$parent.$parent.isprints'
|
|
68
|
+
class="select select_list"
|
|
69
|
+
:value-single="true"
|
|
70
|
+
close-on-select ></v-select>
|
|
71
|
+
</div>
|
|
60
72
|
<div class="form-group col-sm-3">
|
|
61
73
|
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
62
74
|
<datepicker id="startDate" placeholder="开始日期"
|
|
@@ -79,6 +91,29 @@
|
|
|
79
91
|
condition="f_construction_date <= '{}'">
|
|
80
92
|
</datepicker>
|
|
81
93
|
</div>
|
|
94
|
+
|
|
95
|
+
<div class="form-group col-sm-3">
|
|
96
|
+
<label for="startDate" class="font_normal_body">打印开始时间:</label>
|
|
97
|
+
<datepicker id="startDate1" placeholder="打印开始日期"
|
|
98
|
+
style="width: 60%!important;"
|
|
99
|
+
v-model="model.startDate1"
|
|
100
|
+
:value.sync="model.startDate1"
|
|
101
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
102
|
+
:show-reset-button="true"
|
|
103
|
+
condition="f_prints_date >= to_char('{}','yyyy-MM-dd hh24:mi:ss')">
|
|
104
|
+
</datepicker>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="form-group col-sm-3">
|
|
107
|
+
<label for="endDate" class="font_normal_body">打印结束时间:</label>
|
|
108
|
+
<datepicker id="endDate1" placeholder="打印结束日期"
|
|
109
|
+
style="width: 60%!important;"
|
|
110
|
+
v-model="model.endDate2"
|
|
111
|
+
:value.sync="model.endDate2"
|
|
112
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
113
|
+
:show-reset-button="true"
|
|
114
|
+
condition="f_prints_date <= to_char('{}','yyyy-MM-dd hh24:mi:ss')">
|
|
115
|
+
</datepicker>
|
|
116
|
+
</div>
|
|
82
117
|
</div>
|
|
83
118
|
</div>
|
|
84
119
|
</criteria>
|
|
@@ -92,6 +127,8 @@
|
|
|
92
127
|
<th>地址</th>
|
|
93
128
|
<th>安装单位</th>
|
|
94
129
|
<th>安装时间</th>
|
|
130
|
+
<th>打印次数</th>
|
|
131
|
+
<th>打印时间</th>
|
|
95
132
|
</tr>
|
|
96
133
|
</template>
|
|
97
134
|
<template partial='body'>
|
|
@@ -117,6 +154,12 @@
|
|
|
117
154
|
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
118
155
|
<nobr><font>{{row.f_construction_date}}</font></nobr>
|
|
119
156
|
</td>
|
|
157
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
158
|
+
<nobr><font>{{row.f_prints_number}}</font></nobr>
|
|
159
|
+
</td>
|
|
160
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
161
|
+
<nobr><font>{{row.f_prints_date}}</font></nobr>
|
|
162
|
+
</td>
|
|
120
163
|
</tr>
|
|
121
164
|
</template>
|
|
122
165
|
</data-grid>
|
|
@@ -168,7 +211,8 @@ export default {
|
|
|
168
211
|
showProgress: false,
|
|
169
212
|
percent: 0,
|
|
170
213
|
type: 'PREVIEW',
|
|
171
|
-
showRow:false
|
|
214
|
+
showRow:false,
|
|
215
|
+
isprints: [{label: '全部', value: ''},{label: '是', value: '>0'},{label: '否', value: '=0'}],
|
|
172
216
|
}
|
|
173
217
|
},
|
|
174
218
|
ready () {
|
|
@@ -181,6 +225,23 @@ export default {
|
|
|
181
225
|
if (selectPrint.length > 0) {
|
|
182
226
|
let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
|
|
183
227
|
if (res == 'confirm') {
|
|
228
|
+
for(var i=0;i<selectPrint.length;i++){
|
|
229
|
+
if(selectPrint[i].f_prints_number==null){
|
|
230
|
+
selectPrint[i].f_prints_number=0
|
|
231
|
+
selectPrint[i].f_prints_number ++
|
|
232
|
+
}else{
|
|
233
|
+
selectPrint[i].f_prints_number ++
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
console.log('打印内容',selectPrint)
|
|
237
|
+
let http = new HttpResetClass()
|
|
238
|
+
let data = {
|
|
239
|
+
selectPrint:selectPrint
|
|
240
|
+
}
|
|
241
|
+
let res2 = await http.load('POST', 'rs/logic/getPrintsNumber', {data:data}, {
|
|
242
|
+
resolveMsg: null,
|
|
243
|
+
rejectMsg: '保存次数值失败!!!'
|
|
244
|
+
})
|
|
184
245
|
this.showProgress = true
|
|
185
246
|
for (let i = 0; i < selectPrint.length; i++) {
|
|
186
247
|
this.type = 'PRINT'
|
|
@@ -238,11 +299,15 @@ export default {
|
|
|
238
299
|
this.selectdata = res.data[0]
|
|
239
300
|
debugger
|
|
240
301
|
console.log("打印数据 ",this.selectdata)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
302
|
+
if(this.selectdata.f_downloadpath !=null){
|
|
303
|
+
let temp = this.selectdata.f_downloadpath
|
|
304
|
+
let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
|
|
305
|
+
this.selectdata.f_downloadpath = "http://" + location.host + "/" + URL
|
|
306
|
+
debugger
|
|
307
|
+
console.log('打印地址',this.selectdata.f_downloadpath)
|
|
308
|
+
}else{
|
|
309
|
+
this.selectdata.f_downloadpath=''
|
|
310
|
+
}
|
|
246
311
|
},
|
|
247
312
|
clear () {
|
|
248
313
|
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
@@ -56,6 +56,12 @@
|
|
|
56
56
|
v-on:keyup.enter="$parent.$parent.search()"
|
|
57
57
|
condition="u.f_apply_num = '{}'">
|
|
58
58
|
</div>
|
|
59
|
+
<div class="form-group col-sm-3">
|
|
60
|
+
<label class="font_normal_body">合同编号:</label>
|
|
61
|
+
<input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_money"
|
|
62
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
63
|
+
condition="u.f_contract_money like '%{}%'">
|
|
64
|
+
</div>
|
|
59
65
|
<div class="form-group col-sm-3">
|
|
60
66
|
<label class="font_normal_body">联系电话:</label>
|
|
61
67
|
<input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
|
|
@@ -145,6 +151,18 @@
|
|
|
145
151
|
:value-single="true"
|
|
146
152
|
close-on-select ></v-select>
|
|
147
153
|
</div>
|
|
154
|
+
<div class="form-group col-sm-3">
|
|
155
|
+
<label class="font_normal_body">是否对账:</label>
|
|
156
|
+
<v-select
|
|
157
|
+
v-model="model.f_no_reconciliation"
|
|
158
|
+
placeholder='是否对账'
|
|
159
|
+
condition="f_no_reconciliation = '{}'"
|
|
160
|
+
:value.sync="model.f_no_reconciliation"
|
|
161
|
+
:options='$parent.$parent.reconciliation'
|
|
162
|
+
class="select select_list"
|
|
163
|
+
:value-single="true"
|
|
164
|
+
close-on-select ></v-select>
|
|
165
|
+
</div>
|
|
148
166
|
<div class="form-group col-sm-3">
|
|
149
167
|
<label class="font_normal_body">节点发起人:</label>
|
|
150
168
|
<input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
|
|
@@ -282,6 +300,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
|
282
300
|
showModal: false, // 控制发起类型选择
|
|
283
301
|
applyType: '', // 报建类型
|
|
284
302
|
curorgid: [this.$login.f.orgid],
|
|
303
|
+
reconciliation: [{label: '全部', value: ''}, ...this.$appdata.getParam('是否对账')], // 是否合账
|
|
285
304
|
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
286
305
|
defnames: [{label: '全部', value: ''}], // 流程节点
|
|
287
306
|
applyNatures: [{label: '全部', value: ''}], // 报建性质
|
|
@@ -306,7 +306,13 @@ export default {
|
|
|
306
306
|
'f_aroundmeter': '表向',
|
|
307
307
|
'f_user_phone': '电话',
|
|
308
308
|
'f_userinfo_comments': '备注',
|
|
309
|
-
'f_position': '安装位置'
|
|
309
|
+
'f_position': '安装位置',
|
|
310
|
+
|
|
311
|
+
'f_material_name': '材料名称',
|
|
312
|
+
'f_material_style': '材料型号',
|
|
313
|
+
'f_material_price': '材料价格',
|
|
314
|
+
'f_material_unit': '材料单位',
|
|
315
|
+
'f_material_number': '材料数量'
|
|
310
316
|
},
|
|
311
317
|
showWork: false
|
|
312
318
|
}
|
|
@@ -59,7 +59,6 @@ export default {
|
|
|
59
59
|
)
|
|
60
60
|
debugger
|
|
61
61
|
this.setLabelOptions('服务人', res.data.map(item => {
|
|
62
|
-
debugger
|
|
63
62
|
return {
|
|
64
63
|
label: item.name,
|
|
65
64
|
value: item.name
|
|
@@ -292,6 +291,10 @@ export default {
|
|
|
292
291
|
this.$nextTick(() => {
|
|
293
292
|
this.showview = true
|
|
294
293
|
})
|
|
294
|
+
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
295
|
+
&& (this.show_data.defname === '合同签订')){
|
|
296
|
+
this.contract_number()
|
|
297
|
+
}
|
|
295
298
|
},
|
|
296
299
|
// 金额转大写
|
|
297
300
|
smalltoBIG(n) {
|
|
@@ -742,6 +745,107 @@ export default {
|
|
|
742
745
|
this.$dispatch('loadPage')
|
|
743
746
|
|
|
744
747
|
throw '终止报建!!!'
|
|
748
|
+
},
|
|
749
|
+
async contract_number() {
|
|
750
|
+
console.log("进入编号合同编号生成",this.$login.f.orgs)
|
|
751
|
+
let f_contract_number = ''
|
|
752
|
+
const nowDate = new Date();
|
|
753
|
+
const date = {
|
|
754
|
+
year: nowDate.getFullYear(),
|
|
755
|
+
month: nowDate.getMonth() + 1,
|
|
756
|
+
day: nowDate.getDate()
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
function upperCaseChars(dir) {
|
|
760
|
+
let string = '';
|
|
761
|
+
switch (dir){
|
|
762
|
+
case '周口市天然气有限公司':
|
|
763
|
+
string = 'ZK' // 当表达式的结果等于 房产 时,则执行该代码
|
|
764
|
+
break;
|
|
765
|
+
case '项城市天然气有限公司':
|
|
766
|
+
string = "XC" // 当表达式的结果等于 自建房 时,则执行该代码
|
|
767
|
+
break;
|
|
768
|
+
case '西华县天然气有限公司':
|
|
769
|
+
string = 'XH' // 当表达式的结果等于 商业 时,则执行该代码
|
|
770
|
+
break;
|
|
771
|
+
case '鹿邑县天然气有限公司':
|
|
772
|
+
string = 'LY' // 当表达式的结果等于 工业 时,则执行该代码
|
|
773
|
+
break;
|
|
774
|
+
case '郸城县天然气有限公司':
|
|
775
|
+
string = 'DC' // 当表达式的结果等于 中压 时,则执行该代码
|
|
776
|
+
break;
|
|
777
|
+
default :
|
|
778
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
779
|
+
}
|
|
780
|
+
return string;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
const dir = upperCaseChars(this.$login.f.orgs) //分公司
|
|
784
|
+
|
|
785
|
+
let type = 0 //类型
|
|
786
|
+
let entry_type = ''
|
|
787
|
+
if(this.show_data.f_apply_type === '团购报建') {
|
|
788
|
+
entry_type = this.show_data.f_apply_nature
|
|
789
|
+
}else {
|
|
790
|
+
entry_type = this.show_data.f_entry_type
|
|
791
|
+
}
|
|
792
|
+
switch (entry_type){
|
|
793
|
+
case '城区':
|
|
794
|
+
type = 1 // 当表达式的结果等于 城区 时,则执行该代码
|
|
795
|
+
break;
|
|
796
|
+
case '新农村':
|
|
797
|
+
type = 2 // 当表达式的结果等于 新农村 时,则执行该代码
|
|
798
|
+
break;
|
|
799
|
+
default :
|
|
800
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
let nature = 0 // 性质
|
|
804
|
+
switch (this.show_data.f_new_entry){
|
|
805
|
+
case '房产':
|
|
806
|
+
nature = 1 // 当表达式的结果等于 房产 时,则执行该代码
|
|
807
|
+
break;
|
|
808
|
+
case '自建房':
|
|
809
|
+
nature = 2 // 当表达式的结果等于 自建房 时,则执行该代码
|
|
810
|
+
break;
|
|
811
|
+
case '商业':
|
|
812
|
+
nature = 3 // 当表达式的结果等于 商业 时,则执行该代码
|
|
813
|
+
break;
|
|
814
|
+
case '工业':
|
|
815
|
+
nature = 4 // 当表达式的结果等于 工业 时,则执行该代码
|
|
816
|
+
break;
|
|
817
|
+
case '中压':
|
|
818
|
+
nature = 5 // 当表达式的结果等于 中压 时,则执行该代码
|
|
819
|
+
break;
|
|
820
|
+
default :
|
|
821
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
const newMonth = date.month >= 10 ? date.month : '0' + date.month //月份
|
|
825
|
+
const dataYm = date.year + '-01-01'
|
|
826
|
+
const newYear = date.year + 1
|
|
827
|
+
const year = date.year.toString().substring(2,4) //年份
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
let http = new HttpResetClass()
|
|
832
|
+
let res = await http.load('POST', 'rs/sql/contractCount', {data: {dataYm: dataYm, newYear: newYear, orgid: this.$login.f.orgid}}, {
|
|
833
|
+
resolveMsg: null,
|
|
834
|
+
rejectMsg: null
|
|
835
|
+
})
|
|
836
|
+
if (res.data[0].count === 0) {
|
|
837
|
+
f_contract_number = dir + type + nature + year + newMonth + '001'
|
|
838
|
+
console.log("触发if", f_contract_number)
|
|
839
|
+
} else {
|
|
840
|
+
let count = res.data[0].count
|
|
841
|
+
f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
|
|
842
|
+
console.log("触发else", f_contract_number)
|
|
843
|
+
}
|
|
844
|
+
this.setLabelValue("合同编号", f_contract_number)
|
|
845
|
+
return f_contract_number
|
|
846
|
+
},
|
|
847
|
+
PrefixInteger(num, n) {
|
|
848
|
+
return (Array(n).join(0) + num).slice(-n);
|
|
745
849
|
}
|
|
746
850
|
},
|
|
747
851
|
events: {
|
|
@@ -1392,7 +1496,69 @@ export default {
|
|
|
1392
1496
|
if (this.show_data.button.after) {
|
|
1393
1497
|
this[this.show_data.button.after]()
|
|
1394
1498
|
}
|
|
1395
|
-
|
|
1499
|
+
|
|
1500
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
1501
|
+
let data = {
|
|
1502
|
+
tablename: 't_apply',
|
|
1503
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
1504
|
+
}
|
|
1505
|
+
let http = new HttpResetClass()
|
|
1506
|
+
let restp = await http.load(
|
|
1507
|
+
'POST',
|
|
1508
|
+
`rs/sql/singleTable`,
|
|
1509
|
+
{data: data},
|
|
1510
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1511
|
+
)
|
|
1512
|
+
debugger
|
|
1513
|
+
restp.data[0].processname = '散户报建流程'
|
|
1514
|
+
restp.data[0].defname = '合同签订'
|
|
1515
|
+
this.$dispatch('apply',restp.data[0])
|
|
1516
|
+
|
|
1517
|
+
} else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
1518
|
+
let data2 = {
|
|
1519
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
1520
|
+
data: {
|
|
1521
|
+
id: this.$login.f.id,
|
|
1522
|
+
orgid: this.$login.f.orgid
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
let http = new HttpResetClass()
|
|
1526
|
+
let restp1 = await http.load(
|
|
1527
|
+
'POST',
|
|
1528
|
+
`rs/sql/checkuser`,
|
|
1529
|
+
{data: data2},
|
|
1530
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1531
|
+
)
|
|
1532
|
+
debugger
|
|
1533
|
+
console.log('打印查询的内容',restp1)
|
|
1534
|
+
restp1.data[0].processname = '散户报建流程'
|
|
1535
|
+
restp1.data[0].defname = '报装缴费'
|
|
1536
|
+
this.$dispatch('apply',restp1.data[0])
|
|
1537
|
+
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
1538
|
+
let data3 = {
|
|
1539
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
1540
|
+
data: {
|
|
1541
|
+
id: this.$login.f.id,
|
|
1542
|
+
orgid: this.$login.f.orgid
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
let http = new HttpResetClass()
|
|
1546
|
+
let restp2 = await http.load(
|
|
1547
|
+
'POST',
|
|
1548
|
+
`rs/sql/checkuser`,
|
|
1549
|
+
{data: data3},
|
|
1550
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1551
|
+
)
|
|
1552
|
+
debugger
|
|
1553
|
+
console.log('打印查询的内容',restp2)
|
|
1554
|
+
restp2.data[0].processname = '散户报建流程'
|
|
1555
|
+
restp2.data[0].defname = '工程派工'
|
|
1556
|
+
this.$dispatch('apply',restp2.data[0])
|
|
1557
|
+
}
|
|
1558
|
+
else{
|
|
1559
|
+
this.$dispatch('loadPage')
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1396
1562
|
},
|
|
1397
1563
|
// 失去焦点出触发事件
|
|
1398
1564
|
'onchange' (index) {
|
|
@@ -256,6 +256,10 @@
|
|
|
256
256
|
this.$nextTick(() => {
|
|
257
257
|
this.showview = true
|
|
258
258
|
})
|
|
259
|
+
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
260
|
+
&& (this.show_data.defname === '合同签订')){
|
|
261
|
+
this.contract_number()
|
|
262
|
+
}
|
|
259
263
|
},
|
|
260
264
|
// 金额转大写
|
|
261
265
|
smalltoBIG(n) {
|
|
@@ -545,6 +549,101 @@
|
|
|
545
549
|
value: item.id
|
|
546
550
|
}
|
|
547
551
|
})
|
|
552
|
+
},
|
|
553
|
+
async contract_number() {
|
|
554
|
+
console.log("进入编号合同编号生成",this.$login.f.orgs)
|
|
555
|
+
let f_contract_number = ''
|
|
556
|
+
const nowDate = new Date();
|
|
557
|
+
const date = {
|
|
558
|
+
year: nowDate.getFullYear(),
|
|
559
|
+
month: nowDate.getMonth() + 1,
|
|
560
|
+
day: nowDate.getDate()
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function upperCaseChars(dir) {
|
|
564
|
+
let string = '';
|
|
565
|
+
switch (dir){
|
|
566
|
+
case '周口市天然气有限公司':
|
|
567
|
+
string = 'ZK' // 当表达式的结果等于 房产 时,则执行该代码
|
|
568
|
+
break;
|
|
569
|
+
case '项城市天然气有限公司':
|
|
570
|
+
string = "XC" // 当表达式的结果等于 自建房 时,则执行该代码
|
|
571
|
+
break;
|
|
572
|
+
case '西华县天然气有限公司':
|
|
573
|
+
string = 'XH' // 当表达式的结果等于 商业 时,则执行该代码
|
|
574
|
+
break;
|
|
575
|
+
case '鹿邑县天然气有限公司':
|
|
576
|
+
string = 'LY' // 当表达式的结果等于 工业 时,则执行该代码
|
|
577
|
+
break;
|
|
578
|
+
case '郸城县天然气有限公司':
|
|
579
|
+
string = 'DC' // 当表达式的结果等于 中压 时,则执行该代码
|
|
580
|
+
break;
|
|
581
|
+
default :
|
|
582
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
583
|
+
}
|
|
584
|
+
return string;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
const dir = upperCaseChars(this.$login.f.orgs) //分公司
|
|
588
|
+
|
|
589
|
+
let type = 0 //类型
|
|
590
|
+
switch (this.show_data.f_entry_type){
|
|
591
|
+
case '城区':
|
|
592
|
+
type = 1 // 当表达式的结果等于 城区 时,则执行该代码
|
|
593
|
+
break;
|
|
594
|
+
case '新农村':
|
|
595
|
+
type = 2 // 当表达式的结果等于 新农村 时,则执行该代码
|
|
596
|
+
break;
|
|
597
|
+
default :
|
|
598
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
let nature = 0 // 性质
|
|
602
|
+
switch (this.show_data.f_new_entry){
|
|
603
|
+
case '房产':
|
|
604
|
+
nature = 1 // 当表达式的结果等于 房产 时,则执行该代码
|
|
605
|
+
break;
|
|
606
|
+
case '自建房':
|
|
607
|
+
nature = 2 // 当表达式的结果等于 自建房 时,则执行该代码
|
|
608
|
+
break;
|
|
609
|
+
case '商业':
|
|
610
|
+
nature = 3 // 当表达式的结果等于 商业 时,则执行该代码
|
|
611
|
+
break;
|
|
612
|
+
case '工业':
|
|
613
|
+
nature = 4 // 当表达式的结果等于 工业 时,则执行该代码
|
|
614
|
+
break;
|
|
615
|
+
case '中压':
|
|
616
|
+
nature = 5 // 当表达式的结果等于 中压 时,则执行该代码
|
|
617
|
+
break;
|
|
618
|
+
default :
|
|
619
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
const newMonth = date.month >= 10 ? date.month : '0' + date.month //月份
|
|
623
|
+
const dataYm = date.year + '-01-01'
|
|
624
|
+
const newYear = date.year + 1
|
|
625
|
+
const year = date.year.toString().substring(2,4) //年份
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
let http = new HttpResetClass()
|
|
630
|
+
let res = await http.load('POST', 'rs/sql/contractCount', {data: {dataYm: dataYm, newYear: newYear, orgid: this.$login.f.orgid}}, {
|
|
631
|
+
resolveMsg: null,
|
|
632
|
+
rejectMsg: null
|
|
633
|
+
})
|
|
634
|
+
if (res.data[0].count === 0) {
|
|
635
|
+
f_contract_number = dir + type + nature + year + newMonth + '001'
|
|
636
|
+
console.log("触发if", f_contract_number)
|
|
637
|
+
} else {
|
|
638
|
+
let count = res.data[0].count
|
|
639
|
+
f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
|
|
640
|
+
console.log("触发else", f_contract_number)
|
|
641
|
+
}
|
|
642
|
+
this.setLabelValue("合同编号", f_contract_number)
|
|
643
|
+
return f_contract_number
|
|
644
|
+
},
|
|
645
|
+
PrefixInteger(num, n) {
|
|
646
|
+
return (Array(n).join(0) + num).slice(-n);
|
|
548
647
|
}
|
|
549
648
|
},
|
|
550
649
|
events:{
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
v-on:keyup.enter="search"
|
|
55
55
|
condition="f_apply_num = '{}'">
|
|
56
56
|
</div>
|
|
57
|
+
<div class="form-group col-sm-3">
|
|
58
|
+
<label class="font_normal_body">合同编号:</label>
|
|
59
|
+
<input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_money"
|
|
60
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
61
|
+
condition="f_contract_money like '%{}%'">
|
|
62
|
+
</div>
|
|
57
63
|
<div class="form-group col-sm-3">
|
|
58
64
|
<label class="font_normal_body">联系电话:</label>
|
|
59
65
|
<input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
|
|
@@ -166,6 +172,12 @@
|
|
|
166
172
|
v-on:keyup.enter="$parent.$parent.search()"
|
|
167
173
|
condition="fyr like '%{}%'">
|
|
168
174
|
</div>
|
|
175
|
+
<div class="form-group col-sm-3">
|
|
176
|
+
<label class="font_normal_body">发起人:</label>
|
|
177
|
+
<input type="text" style="width:60%" class="input_search" placeholder='发起人' v-model="model.f_operator"
|
|
178
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
179
|
+
condition="f_operator like '%{}%'">
|
|
180
|
+
</div>
|
|
169
181
|
<div class="form-group col-sm-3">
|
|
170
182
|
<label class="font_normal_body">领用状态:</label>
|
|
171
183
|
<v-select
|
|
@@ -201,6 +213,7 @@
|
|
|
201
213
|
<th style="white-space: nowrap;">缴费金额</th>
|
|
202
214
|
<th style="white-space: nowrap;">领用人</th>
|
|
203
215
|
<th style="white-space: nowrap;">发货人</th>
|
|
216
|
+
<th style="white-space: nowrap;">发起人</th>
|
|
204
217
|
</tr>
|
|
205
218
|
</template>
|
|
206
219
|
<template partial='body'>
|
|
@@ -256,6 +269,9 @@
|
|
|
256
269
|
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
257
270
|
<nobr>{{row.fyr}}</nobr>
|
|
258
271
|
</td>
|
|
272
|
+
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
273
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
274
|
+
</td>
|
|
259
275
|
</tr>
|
|
260
276
|
</template>
|
|
261
277
|
</data-grid>
|
|
@@ -308,12 +324,15 @@
|
|
|
308
324
|
'f_apply_date': '报建日期',
|
|
309
325
|
'f_apply_remarks': '备注',
|
|
310
326
|
'f_payment_remarks': '缴费备注',
|
|
311
|
-
'f_operator': '发起人',
|
|
312
327
|
'f_install_project': '安装项目',
|
|
313
328
|
'f_construction_unit': '施工单位',
|
|
314
329
|
'f_construction_date': '施工时间',
|
|
330
|
+
'f_operator': '发起人',
|
|
331
|
+
'f_depname':'发起人部门',
|
|
315
332
|
'lyr': '领用人',
|
|
333
|
+
'fdnyr':'领用人部门',
|
|
316
334
|
'fyr': '发货人',
|
|
335
|
+
'fdnfr':'发货人部门',
|
|
317
336
|
'meternumber':'表号'
|
|
318
337
|
}
|
|
319
338
|
}
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
143
143
|
// 查询
|
|
144
144
|
async load() {
|
|
145
145
|
let condition = ''
|
|
146
|
-
if(this.businessid){
|
|
146
|
+
if(!isEmpty(this.businessid)){
|
|
147
147
|
condition = `f_businessid= '${this.headers.businessid}' `
|
|
148
148
|
}else{
|
|
149
149
|
condition = `f_blobid= '${this.headers.blodid}' `
|