apply-clients 3.0.2-ys → 3.0.3-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 +1 -1
- package/src/components/product/Function/InstallInfoSelect.vue +9 -9
- package/src/components/product/Process/ExplorationSelect.vue +8 -8
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +81 -3
- package/src/components/product/Supervisory/SupervisoryList.vue +12 -11
package/package.json
CHANGED
|
@@ -54,14 +54,13 @@
|
|
|
54
54
|
</v-select>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
57
|
-
<div class="form-group col-sm-1">
|
|
58
|
-
<!--<label class="col-sm-6"> 报建类型:</label>-->
|
|
57
|
+
<!-- <div class="form-group col-sm-1">
|
|
59
58
|
<div class="col-sm-12">
|
|
60
59
|
<v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.projecttype" placeholder='项目类型' condition="f_project_type like '%{}%'"
|
|
61
60
|
v-model="model.f_project_type" :value.sync="model.f_project_type" close-on-select>
|
|
62
61
|
</v-select>
|
|
63
62
|
</div>
|
|
64
|
-
</div>
|
|
63
|
+
</div> -->
|
|
65
64
|
<!-- <div class="form-group col-sm-1">-->
|
|
66
65
|
<!-- <input type="text" class="form-control" placeholder='经办人' v-model="model.f_apply_operator"-->
|
|
67
66
|
<!-- v-on:keyup.enter="search"-->
|
|
@@ -102,9 +101,9 @@
|
|
|
102
101
|
<th>
|
|
103
102
|
<nobr>报建类型</nobr>
|
|
104
103
|
</th>
|
|
105
|
-
<th>
|
|
104
|
+
<!-- <th>
|
|
106
105
|
<nobr>项目类型</nobr>
|
|
107
|
-
</th>
|
|
106
|
+
</th> -->
|
|
108
107
|
<th>
|
|
109
108
|
<nobr>报建日期</nobr>
|
|
110
109
|
</th>
|
|
@@ -142,9 +141,9 @@
|
|
|
142
141
|
<td style="text-align: center;">
|
|
143
142
|
<nobr>{{row.f_apply_type}}</nobr>
|
|
144
143
|
</td>
|
|
145
|
-
<td style="text-align: center;">
|
|
144
|
+
<!-- <td style="text-align: center;">
|
|
146
145
|
<nobr>{{row.f_project_type}}</nobr>
|
|
147
|
-
</td>
|
|
146
|
+
</td> -->
|
|
148
147
|
<td style="text-align: center;">
|
|
149
148
|
<nobr>{{row.f_apply_date}}</nobr>
|
|
150
149
|
</td>
|
|
@@ -184,8 +183,9 @@
|
|
|
184
183
|
refreshed:true,
|
|
185
184
|
usertype: this.$appdata.getParam('用户类型'),
|
|
186
185
|
defnameType: this.$appdata.getParam('流程状态'),
|
|
187
|
-
projecttype: this.$appdata.getParam('项目类型'),
|
|
188
|
-
applytype: [{label:"全部",value:''},{label:"新用户",value:'新用户'},{label:"零星散户",value:'零星散户'},{label:"工商业",value:'工商业'}],
|
|
186
|
+
// projecttype: this.$appdata.getParam('项目类型'),
|
|
187
|
+
// applytype: [{label:"全部",value:''},{label:"新用户",value:'新用户'},{label:"零星散户",value:'零星散户'},{label:"工商业",value:'工商业'}],
|
|
188
|
+
applytype: [{label:"零星散户",value:'零星散户'}],
|
|
189
189
|
//中燃 专用
|
|
190
190
|
fapplytype: this.$appdata.getParam('用户类型'),
|
|
191
191
|
funcs:[],
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
</v-select>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
60
|
-
|
|
60
|
+
<!-- <div class="form-group col-sm-2">
|
|
61
61
|
<label class="col-sm-6">项目类型:</label>
|
|
62
62
|
<div class="col-sm-6">
|
|
63
63
|
<v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.projecttype" placeholder='项目类型' condition="f_project_type like '%{}%'"
|
|
64
64
|
v-model="model.f_project_type" :value.sync="model.f_project_type" close-on-select>
|
|
65
65
|
</v-select>
|
|
66
66
|
</div>
|
|
67
|
-
</div>
|
|
67
|
+
</div> -->
|
|
68
68
|
<div class="form-group col-sm-2">
|
|
69
69
|
<label class="col-sm-6">营业所:</label>
|
|
70
70
|
<div class="col-sm-6">
|
|
@@ -125,9 +125,9 @@
|
|
|
125
125
|
<th>
|
|
126
126
|
<nobr>报建类型</nobr>
|
|
127
127
|
</th>
|
|
128
|
-
<th>
|
|
128
|
+
<!-- <th>
|
|
129
129
|
<nobr>项目类型</nobr>
|
|
130
|
-
</th>
|
|
130
|
+
</th> -->
|
|
131
131
|
<th>
|
|
132
132
|
<nobr>报建日期</nobr>
|
|
133
133
|
</th>
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
<td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
173
173
|
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
174
174
|
</td>
|
|
175
|
-
<td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
175
|
+
<!-- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
176
176
|
<nobr><font>{{row.f_project_type}}</font></nobr>
|
|
177
|
-
</td>
|
|
177
|
+
</td> -->
|
|
178
178
|
<td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
179
179
|
<nobr><font>{{row.f_apply_date}}</font></nobr>
|
|
180
180
|
</td>
|
|
@@ -247,8 +247,8 @@
|
|
|
247
247
|
data() {
|
|
248
248
|
return {
|
|
249
249
|
// applytype: [{label:"全部",value:''},...this.$appdata.getParam('报建类型')],
|
|
250
|
-
applytype: [{label:"
|
|
251
|
-
projecttype: this.$appdata.getParam('项目类型'),
|
|
250
|
+
applytype: [{label:"零星散户",value:'零星散户'}],
|
|
251
|
+
// projecttype: this.$appdata.getParam('项目类型'),
|
|
252
252
|
business_office: this.$appdata.getParam('营业所'),
|
|
253
253
|
// applytype: [{label:"全部",value:''},{label:"零星散户",value:'零星散户'},{label:"工商业",value:'工商业'}],
|
|
254
254
|
timer: null,
|
|
@@ -141,6 +141,7 @@
|
|
|
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;
|
|
144
145
|
|
|
145
146
|
export default {
|
|
146
147
|
title: '报建流程业务控制层',
|
|
@@ -500,7 +501,11 @@
|
|
|
500
501
|
}
|
|
501
502
|
// 下发人 options 处理,options初始化
|
|
502
503
|
console.log("流程下发测试一-this.selectdata.actorexpression:",this.selectdata)
|
|
503
|
-
|
|
504
|
+
if (this.selectdata.defname == '用户建档'){
|
|
505
|
+
this.getBussTop10DataByTimer()
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// 原代码
|
|
504
509
|
// if (this.selectdata.defname == '开户申请' && this.selectdata.actorexpression) {
|
|
505
510
|
if (this.selectdata.defname == '开户申请') {
|
|
506
511
|
let http = new HttpResetClass()
|
|
@@ -1125,11 +1130,23 @@
|
|
|
1125
1130
|
this.show_data.fields[i].required = false
|
|
1126
1131
|
}
|
|
1127
1132
|
|
|
1128
|
-
|
|
1133
|
+
//所属公司和自动生成项目编号
|
|
1129
1134
|
if (this.selectdata.defname == '用户建档') {
|
|
1130
1135
|
if (this.show_data.fields[i].label === '所属公司') {
|
|
1131
1136
|
this.show_data.fields[i].value = this.$login.f.orgs
|
|
1132
1137
|
}
|
|
1138
|
+
if (this.show_data.fields[i].label === '项目编号') {
|
|
1139
|
+
var myDate = new Date();
|
|
1140
|
+
var entryNum = 'WS'+myDate.getFullYear()+(parseInt(myDate.getMonth())+1<10?'0'+(parseInt(myDate.getMonth())+1):parseInt(myDate.getMonth())+1)+''+(parseInt(myDate.getDate())<10?'0'+myDate.getDate():myDate.getDate())
|
|
1141
|
+
if(num<10){
|
|
1142
|
+
entryNum+='000'+num
|
|
1143
|
+
}else if(num<100){
|
|
1144
|
+
entryNum+='00'+num
|
|
1145
|
+
}else if(num<1000){
|
|
1146
|
+
entryNum+='0'+num
|
|
1147
|
+
}
|
|
1148
|
+
this.show_data.fields[i].value = entryNum
|
|
1149
|
+
}
|
|
1133
1150
|
//placeholder required
|
|
1134
1151
|
if (this.selectdata.f_apply_type == '新用户') {
|
|
1135
1152
|
if (this.show_data.fields[i].label === '项目名称' ||
|
|
@@ -1391,6 +1408,65 @@
|
|
|
1391
1408
|
// }
|
|
1392
1409
|
},
|
|
1393
1410
|
|
|
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
|
+
|
|
1394
1470
|
dataChange(button_name) {
|
|
1395
1471
|
let beforeData = this.data.fields
|
|
1396
1472
|
let submitData = this.$refs.service_show.data.fields
|
|
@@ -2449,6 +2525,7 @@
|
|
|
2449
2525
|
}
|
|
2450
2526
|
}
|
|
2451
2527
|
}
|
|
2528
|
+
|
|
2452
2529
|
//报建状态
|
|
2453
2530
|
// if (this.selectdata.defname == '用户建档') {
|
|
2454
2531
|
// this.selectdata.f_sub_state = '未安装'
|
|
@@ -2947,11 +3024,12 @@
|
|
|
2947
3024
|
resolveMsg: null,
|
|
2948
3025
|
rejectMsg: "建档失败"
|
|
2949
3026
|
})
|
|
3027
|
+
num++;
|
|
2950
3028
|
console.log("返回的消息:" + JSON.stringify(res.data))
|
|
2951
3029
|
if (res.data != '建档成功') {
|
|
3030
|
+
num--;
|
|
2952
3031
|
let check = await this.$showMessage(res.data, ['confirm', 'cancel'])
|
|
2953
3032
|
if (check == 'confirm') {
|
|
2954
|
-
|
|
2955
3033
|
} else {
|
|
2956
3034
|
this.$refs.service_show.disable_button = false
|
|
2957
3035
|
return
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
68
|
<!-- <div class="form-group col-sm-2"></div>-->
|
|
69
|
-
<div class="form-group col-sm-2">
|
|
69
|
+
<!-- <div class="form-group col-sm-2">
|
|
70
70
|
<label class="col-sm-6">项目类型:</label>
|
|
71
71
|
<div class="col-sm-6">
|
|
72
72
|
<v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.projecttype" placeholder='项目类型' condition="f_project_type like '%{}%'"
|
|
73
73
|
v-model="model.f_project_type" :value.sync="model.f_project_type" close-on-select>
|
|
74
74
|
</v-select>
|
|
75
75
|
</div>
|
|
76
|
-
</div>
|
|
76
|
+
</div> -->
|
|
77
77
|
<div class="form-group col-sm-2">
|
|
78
78
|
<label class="col-sm-6">营业所:</label>
|
|
79
79
|
<div class="col-sm-6">
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
<th>
|
|
127
127
|
<nobr>报建类型</nobr>
|
|
128
128
|
</th>
|
|
129
|
-
<th>
|
|
129
|
+
<!-- <th>
|
|
130
130
|
<nobr>项目类型</nobr>
|
|
131
|
-
</th>
|
|
131
|
+
</th> -->
|
|
132
132
|
<th>
|
|
133
133
|
<nobr>报建日期</nobr>
|
|
134
134
|
</th>
|
|
@@ -166,9 +166,9 @@
|
|
|
166
166
|
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
167
167
|
<nobr>{{row.f_apply_type}}</nobr>
|
|
168
168
|
</td>
|
|
169
|
-
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
169
|
+
<!-- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
170
170
|
<nobr>{{row.f_project_type}}</nobr>
|
|
171
|
-
</td>
|
|
171
|
+
</td> -->
|
|
172
172
|
|
|
173
173
|
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
174
174
|
<nobr>{{row.f_apply_date}}</nobr>
|
|
@@ -190,8 +190,9 @@
|
|
|
190
190
|
title: '勘探详情',
|
|
191
191
|
data() {
|
|
192
192
|
return {
|
|
193
|
-
applytype: this.$appdata.getParam('报建类型'),
|
|
194
|
-
|
|
193
|
+
// applytype: this.$appdata.getParam('报建类型'),
|
|
194
|
+
applytype:[{label:"零星散户",value:'零星散户'}],
|
|
195
|
+
// projecttype: this.$appdata.getParam('项目类型'),
|
|
195
196
|
business_office: this.$appdata.getParam('营业所'),
|
|
196
197
|
model: new PagedListLogic('rs/sql/supervisory', 20, {
|
|
197
198
|
data: {
|
|
@@ -533,9 +534,9 @@
|
|
|
533
534
|
defnameType() {
|
|
534
535
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
|
|
535
536
|
},
|
|
536
|
-
applytype() {
|
|
537
|
-
|
|
538
|
-
}
|
|
537
|
+
// applytype() {
|
|
538
|
+
// return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
|
|
539
|
+
// }
|
|
539
540
|
}
|
|
540
541
|
}
|
|
541
542
|
</script>
|