apply-clients 4.1.79 → 4.1.83
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
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
class="select select_list"
|
|
198
198
|
:value.sync="item.f_install_person"
|
|
199
199
|
v-model="item.f_install_person"
|
|
200
|
-
:options="
|
|
200
|
+
:options="installpersons"
|
|
201
201
|
:disable="mark === 1"
|
|
202
202
|
:valueSingle="true"></input-select>
|
|
203
203
|
</div>
|
|
@@ -253,6 +253,7 @@ export default {
|
|
|
253
253
|
meterbrands: [], // 气表品牌
|
|
254
254
|
useradders: null,
|
|
255
255
|
userinfo: {},
|
|
256
|
+
installpersons:[],
|
|
256
257
|
getfield: {
|
|
257
258
|
'f_address': '地址',
|
|
258
259
|
'f_meternumber': '表号',
|
|
@@ -271,6 +272,7 @@ export default {
|
|
|
271
272
|
ready () {
|
|
272
273
|
this.search()
|
|
273
274
|
this.getMeterbrands()
|
|
275
|
+
this.installperson()
|
|
274
276
|
},
|
|
275
277
|
methods: {
|
|
276
278
|
// 追加表具
|
|
@@ -430,6 +432,21 @@ export default {
|
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
434
|
},
|
|
435
|
+
// 安装人
|
|
436
|
+
async installperson() {
|
|
437
|
+
let http = new HttpResetClass()
|
|
438
|
+
let res = await http.load('POST', 'rs/search', {
|
|
439
|
+
source: "this.getParentByType($organization$).getChildByName($安全员$).getChildren()",
|
|
440
|
+
userid: this.$login.f.id
|
|
441
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
442
|
+
|
|
443
|
+
this.installpersons = res.data.map(item =>{
|
|
444
|
+
return {
|
|
445
|
+
label: item.name,
|
|
446
|
+
value: item.name
|
|
447
|
+
}
|
|
448
|
+
})
|
|
449
|
+
},
|
|
433
450
|
// 关闭安装明细
|
|
434
451
|
closeUserFile() {
|
|
435
452
|
this.showUserFile = false
|
|
@@ -464,16 +481,6 @@ export default {
|
|
|
464
481
|
}
|
|
465
482
|
return data
|
|
466
483
|
},
|
|
467
|
-
// 安装人
|
|
468
|
-
installperson() {
|
|
469
|
-
console.log("安装人",this.$login.f.f_installman)
|
|
470
|
-
return this.$login.f.f_installman.map(item => {
|
|
471
|
-
return {
|
|
472
|
-
label: item.name,
|
|
473
|
-
value: item.name
|
|
474
|
-
}
|
|
475
|
-
})
|
|
476
|
-
},
|
|
477
484
|
// 表向
|
|
478
485
|
aroundmeters() {
|
|
479
486
|
return this.$appdata.getParam('左右表')
|
|
@@ -87,7 +87,11 @@ export default {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
if (item.default || item.default == 0) {
|
|
90
|
-
item.
|
|
90
|
+
if(item.type === 'datepicker'){
|
|
91
|
+
item.value = ''
|
|
92
|
+
}else {
|
|
93
|
+
item.value = item.default
|
|
94
|
+
}
|
|
91
95
|
}
|
|
92
96
|
if (this.selectdata[item.field]) {
|
|
93
97
|
// 将json字符串格式化赋值给value
|
|
@@ -303,7 +307,7 @@ export default {
|
|
|
303
307
|
// }
|
|
304
308
|
// }
|
|
305
309
|
for (const item of this.show_data.fields) {
|
|
306
|
-
if (item.label === '工程状态') {
|
|
310
|
+
if (item.label === '工程状态' && !item.value) {
|
|
307
311
|
return item.value = '未开工'
|
|
308
312
|
}
|
|
309
313
|
}
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
this.$dispatch('onblur', index)
|
|
547
547
|
// 如果有错误信息提示走错误信息判断处理
|
|
548
548
|
|
|
549
|
-
if (this.data.fields[index].error
|
|
549
|
+
if (this.data.fields[index].error && this.data.fields[index].type === 'datepicker') {
|
|
550
550
|
this.$dispatch('error_check', index)
|
|
551
551
|
}
|
|
552
552
|
},
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
this.$dispatch('onchange', index)
|
|
570
570
|
|
|
571
571
|
// 如果有错误信息提示走错误信息判断处理
|
|
572
|
-
if (this.data.fields[index].error
|
|
572
|
+
if (this.data.fields[index].error && this.data.fields[index].type === 'datepicker') {
|
|
573
573
|
this.$dispatch('error_check', index)
|
|
574
574
|
}
|
|
575
575
|
},
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
this.$dispatch('oninput', index)
|
|
581
581
|
|
|
582
582
|
// 如果有错误信息提示走错误信息判断处理
|
|
583
|
-
if (this.data.fields[index].error
|
|
583
|
+
if (this.data.fields[index].error && this.data.fields[index].type === 'datepicker') {
|
|
584
584
|
this.$dispatch('error_check', index)
|
|
585
585
|
}
|
|
586
586
|
},
|