apply-clients 3.0.3-ys → 3.0.4-ys
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
|
@@ -141,7 +141,6 @@
|
|
|
141
141
|
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
142
142
|
return fmt;
|
|
143
143
|
}
|
|
144
|
-
let num = 1;
|
|
145
144
|
|
|
146
145
|
export default {
|
|
147
146
|
title: '报建流程业务控制层',
|
|
@@ -501,9 +500,6 @@
|
|
|
501
500
|
}
|
|
502
501
|
// 下发人 options 处理,options初始化
|
|
503
502
|
console.log("流程下发测试一-this.selectdata.actorexpression:",this.selectdata)
|
|
504
|
-
if (this.selectdata.defname == '用户建档'){
|
|
505
|
-
this.getBussTop10DataByTimer()
|
|
506
|
-
}
|
|
507
503
|
|
|
508
504
|
// 原代码
|
|
509
505
|
// if (this.selectdata.defname == '开户申请' && this.selectdata.actorexpression) {
|
|
@@ -576,6 +572,7 @@
|
|
|
576
572
|
}
|
|
577
573
|
})
|
|
578
574
|
}
|
|
575
|
+
|
|
579
576
|
// selectdata 填充 data
|
|
580
577
|
// this.data = Object.assign({}, this.data, this.selectdata)
|
|
581
578
|
// onetomany 数据获取
|
|
@@ -1130,22 +1127,38 @@
|
|
|
1130
1127
|
this.show_data.fields[i].required = false
|
|
1131
1128
|
}
|
|
1132
1129
|
|
|
1130
|
+
//对勘察时间进行转换
|
|
1131
|
+
if (this.selectdata.defname == '现场勘察') {
|
|
1132
|
+
if (this.show_data.fields[i].label === '勘察时间') {
|
|
1133
|
+
this.show_data.fields[i].value = new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1133
1137
|
//所属公司和自动生成项目编号
|
|
1134
1138
|
if (this.selectdata.defname == '用户建档') {
|
|
1135
1139
|
if (this.show_data.fields[i].label === '所属公司') {
|
|
1136
1140
|
this.show_data.fields[i].value = this.$login.f.orgs
|
|
1137
1141
|
}
|
|
1138
1142
|
if (this.show_data.fields[i].label === '项目编号') {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1143
|
+
let http2 = new HttpResetClass()
|
|
1144
|
+
let entryNum = await http2.load('POST', 'rs/logic/getProjectNo', {
|
|
1145
|
+
data: {
|
|
1146
|
+
f_filiale: this.$login.f.orgs
|
|
1147
|
+
}
|
|
1148
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1149
|
+
console.log("生成的项目编号为:" + entryNum.data)
|
|
1150
|
+
this.show_data.fields[i].value = entryNum.data
|
|
1151
|
+
|
|
1152
|
+
}
|
|
1153
|
+
if (this.show_data.fields[i].label === '报建编号') {
|
|
1154
|
+
let http2 = new HttpResetClass()
|
|
1155
|
+
let applyNum = await http2.load('POST', 'rs/logic/getConstructionNo', {
|
|
1156
|
+
data: {
|
|
1157
|
+
f_filiale: this.$login.f.orgs
|
|
1158
|
+
}
|
|
1159
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
1160
|
+
console.log("生成的报建编号为:" + applyNum.data)
|
|
1161
|
+
this.show_data.fields[i].value = applyNum.data
|
|
1149
1162
|
}
|
|
1150
1163
|
//placeholder required
|
|
1151
1164
|
if (this.selectdata.f_apply_type == '新用户') {
|
|
@@ -1217,6 +1230,7 @@
|
|
|
1217
1230
|
console.log("来了没2")
|
|
1218
1231
|
this.show_data.fields[k].hidden = false
|
|
1219
1232
|
this.show_data.fields[k].required = true
|
|
1233
|
+
this.show_data.fields[k].value = '抄表本2'
|
|
1220
1234
|
}
|
|
1221
1235
|
}
|
|
1222
1236
|
}
|
|
@@ -1408,65 +1422,6 @@
|
|
|
1408
1422
|
// }
|
|
1409
1423
|
},
|
|
1410
1424
|
|
|
1411
|
-
getBussTop10DataByTimer() {
|
|
1412
|
-
let config={
|
|
1413
|
-
time: '00:00:00', // 每天几点执行
|
|
1414
|
-
interval: 1, // 隔几天执行一次
|
|
1415
|
-
runNow: false, // 是否立即执行
|
|
1416
|
-
intervalTimer: '',
|
|
1417
|
-
timeOutTimer: ''
|
|
1418
|
-
}
|
|
1419
|
-
if (config.runNow) {
|
|
1420
|
-
// 如果配置了立刻运行则立刻运行任务函数
|
|
1421
|
-
this.initTopTenBusiness()
|
|
1422
|
-
}
|
|
1423
|
-
// 获取下次要执行的时间,如果执行时间已经过了今天,就让把执行时间设到明天的按时执行的时间
|
|
1424
|
-
let nowTime = new Date().getTime()
|
|
1425
|
-
let timePoint = config.time.split(':').map((i) => parseInt(i))
|
|
1426
|
-
let recent = new Date().setHours(...timePoint) // 获取执行时间的时间戳
|
|
1427
|
-
console.log("now",nowTime);
|
|
1428
|
-
console.log("timepoint",timePoint);
|
|
1429
|
-
console.log("recent",recent)
|
|
1430
|
-
if (recent <= nowTime) {
|
|
1431
|
-
// debugger
|
|
1432
|
-
recent += 24 * 60 * 60 * 1000
|
|
1433
|
-
}
|
|
1434
|
-
// debugger
|
|
1435
|
-
// 未来程序执行的时间减去现在的时间,就是程序要多少秒之后执行
|
|
1436
|
-
let doRunTime = recent - nowTime
|
|
1437
|
-
console.log("doRunTime",doRunTime)
|
|
1438
|
-
// config.timeOutTimer = setTimeout(setTimer(), doRunTime)
|
|
1439
|
-
config.timeOutTimer=setTimeout(()=>{
|
|
1440
|
-
this.setTimer()
|
|
1441
|
-
},doRunTime)
|
|
1442
|
-
},
|
|
1443
|
-
|
|
1444
|
-
setTimer() {
|
|
1445
|
-
let config={
|
|
1446
|
-
time: '00:00:00', // 每天几点执行
|
|
1447
|
-
interval: 1, // 隔几天执行一次
|
|
1448
|
-
runNow: false, // 是否立即执行
|
|
1449
|
-
intervalTimer: '',
|
|
1450
|
-
timeOutTimer: ''
|
|
1451
|
-
}
|
|
1452
|
-
console.log('进入定时器')
|
|
1453
|
-
//配置后的第一天12点执行
|
|
1454
|
-
this.initTopTenBusiness()
|
|
1455
|
-
// 每隔多少天再执行一次
|
|
1456
|
-
let intTime = config.interval * 24 * 60 * 60 * 1000
|
|
1457
|
-
// config.intervalTimer = setInterval(initTopTenBusiness, intTime)
|
|
1458
|
-
config.intervalTimer=setInterval(()=>{
|
|
1459
|
-
this.initTopTenBusiness()
|
|
1460
|
-
},intTime)
|
|
1461
|
-
// debugger
|
|
1462
|
-
console.log("定时任务已经执行完毕")
|
|
1463
|
-
},
|
|
1464
|
-
|
|
1465
|
-
initTopTenBusiness(){
|
|
1466
|
-
num=1;
|
|
1467
|
-
console.log("正在执行定时任务.......ing.....")
|
|
1468
|
-
},
|
|
1469
|
-
|
|
1470
1425
|
dataChange(button_name) {
|
|
1471
1426
|
let beforeData = this.data.fields
|
|
1472
1427
|
let submitData = this.$refs.service_show.data.fields
|
|
@@ -3024,10 +2979,8 @@
|
|
|
3024
2979
|
resolveMsg: null,
|
|
3025
2980
|
rejectMsg: "建档失败"
|
|
3026
2981
|
})
|
|
3027
|
-
num++;
|
|
3028
2982
|
console.log("返回的消息:" + JSON.stringify(res.data))
|
|
3029
2983
|
if (res.data != '建档成功') {
|
|
3030
|
-
num--;
|
|
3031
2984
|
let check = await this.$showMessage(res.data, ['confirm', 'cancel'])
|
|
3032
2985
|
if (check == 'confirm') {
|
|
3033
2986
|
} else {
|