apply-clients 3.3.110-212 → 3.3.110-215
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
CHANGED
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
|
|
257
257
|
this.meterialOptions = res.data.map(item => {
|
|
258
258
|
return {
|
|
259
|
-
'label': `${item.f_material_name}--${item.f_material_style}
|
|
259
|
+
'label': `${item.f_material_name}--${item.f_material_style}`,
|
|
260
260
|
'value': item
|
|
261
261
|
}
|
|
262
262
|
})
|
|
@@ -291,10 +291,6 @@ export default {
|
|
|
291
291
|
this.$nextTick(() => {
|
|
292
292
|
this.showview = true
|
|
293
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
|
-
}
|
|
298
294
|
},
|
|
299
295
|
// 金额转大写
|
|
300
296
|
smalltoBIG(n) {
|
|
@@ -841,7 +837,8 @@ export default {
|
|
|
841
837
|
f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
|
|
842
838
|
console.log("触发else", f_contract_number)
|
|
843
839
|
}
|
|
844
|
-
this.
|
|
840
|
+
this.selectdata.f_contract_number = f_contract_number
|
|
841
|
+
this.show_data.f_contract_number = f_contract_number
|
|
845
842
|
return f_contract_number
|
|
846
843
|
},
|
|
847
844
|
PrefixInteger(num, n) {
|
|
@@ -1485,7 +1482,27 @@ export default {
|
|
|
1485
1482
|
}
|
|
1486
1483
|
}
|
|
1487
1484
|
}
|
|
1488
|
-
|
|
1485
|
+
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
1486
|
+
&& (this.show_data.defname === '报装申请')){
|
|
1487
|
+
await this.contract_number()
|
|
1488
|
+
}
|
|
1489
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
1490
|
+
let dataz = {
|
|
1491
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
1492
|
+
data: {
|
|
1493
|
+
id: this.$login.f.id,
|
|
1494
|
+
orgid: this.$login.f.orgid
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
let http = new HttpResetClass()
|
|
1498
|
+
let restpz = await http.load(
|
|
1499
|
+
'POST',
|
|
1500
|
+
`rs/sql/checkuser`,
|
|
1501
|
+
{data: dataz},
|
|
1502
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1503
|
+
)
|
|
1504
|
+
this.show_data.actid=restpz.data[0].actid
|
|
1505
|
+
}
|
|
1489
1506
|
let res = await this.$resetpost(
|
|
1490
1507
|
`rs/logic/ApplyProductService`,
|
|
1491
1508
|
{data: this.show_data},
|
|
@@ -1496,6 +1513,52 @@ export default {
|
|
|
1496
1513
|
if (this.show_data.button.after) {
|
|
1497
1514
|
this[this.show_data.button.after]()
|
|
1498
1515
|
}
|
|
1516
|
+
//改管报建 增容报建 优化
|
|
1517
|
+
if((this.show_data.f_apply_type === '改管报建'||this.show_data.f_apply_type === '增容报建') && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '缴费'){
|
|
1518
|
+
let datagg = {
|
|
1519
|
+
tablename: 't_apply',
|
|
1520
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
1521
|
+
}
|
|
1522
|
+
let http = new HttpResetClass()
|
|
1523
|
+
let restgg = await http.load(
|
|
1524
|
+
'POST',
|
|
1525
|
+
`rs/sql/singleTable`,
|
|
1526
|
+
{data: datagg},
|
|
1527
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1528
|
+
)
|
|
1529
|
+
debugger
|
|
1530
|
+
if(this.show_data.f_apply_type === '改管报建'){
|
|
1531
|
+
restgg.data[0].processname = '改管报建流程'
|
|
1532
|
+
restgg.data[0].defname = '报装缴费'
|
|
1533
|
+
}else{
|
|
1534
|
+
restgg.data[0].processname = '增容报建'
|
|
1535
|
+
restgg.data[0].defname = '报装缴费'
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
this.$dispatch('apply',restgg.data[0])
|
|
1539
|
+
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
// 退款报建 优化
|
|
1543
|
+
if(this.show_data.f_apply_type === '退款报建' && this.show_data.defname === '终止报建' && this.show_data.button.button_name === '提交'){
|
|
1544
|
+
let datatk = {
|
|
1545
|
+
tablename: 't_apply',
|
|
1546
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
1547
|
+
}
|
|
1548
|
+
let http = new HttpResetClass()
|
|
1549
|
+
let resttk = await http.load(
|
|
1550
|
+
'POST',
|
|
1551
|
+
`rs/sql/singleTable`,
|
|
1552
|
+
{data: datatk},
|
|
1553
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1554
|
+
)
|
|
1555
|
+
debugger
|
|
1556
|
+
resttk.data[0].processname = '退款报建流程'
|
|
1557
|
+
resttk.data[0].defname = '退款'
|
|
1558
|
+
this.$dispatch('apply',resttk.data[0])
|
|
1559
|
+
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1499
1562
|
|
|
1500
1563
|
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
1501
1564
|
let data = {
|
|
@@ -256,10 +256,6 @@
|
|
|
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
|
-
}
|
|
263
259
|
},
|
|
264
260
|
// 金额转大写
|
|
265
261
|
smalltoBIG(n) {
|
|
@@ -549,101 +545,6 @@
|
|
|
549
545
|
value: item.id
|
|
550
546
|
}
|
|
551
547
|
})
|
|
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);
|
|
647
548
|
}
|
|
648
549
|
},
|
|
649
550
|
events:{
|