apply-clients 4.1.30-weinan → 4.1.31-weinan
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
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
type="number"
|
|
212
212
|
placeholder="使用年限"
|
|
213
213
|
v-model="item.f_service_life"
|
|
214
|
+
@change="outdate(item)"
|
|
214
215
|
:value="item.f_service_life"
|
|
215
216
|
:readonly="mark === 1"/>
|
|
216
217
|
</div>
|
|
@@ -633,6 +634,7 @@ export default {
|
|
|
633
634
|
rejectMsg: '设备添加失败!!!'
|
|
634
635
|
})
|
|
635
636
|
this.showUserFile = false
|
|
637
|
+
this.search()
|
|
636
638
|
},
|
|
637
639
|
// 打开设备明细
|
|
638
640
|
async showUserFileModal (row) {
|
|
@@ -772,6 +774,22 @@ export default {
|
|
|
772
774
|
this.query = {}
|
|
773
775
|
this.condition = "1 = 1"
|
|
774
776
|
},
|
|
777
|
+
outdate(item){
|
|
778
|
+
console.log("数据",item)
|
|
779
|
+
debugger
|
|
780
|
+
if (item.f_make_date){
|
|
781
|
+
debugger
|
|
782
|
+
var t = new Date(item.f_make_date);//你已知的时间
|
|
783
|
+
var Y = t.getFullYear()+parseInt(item.f_service_life)+ '-'
|
|
784
|
+
var M = (t.getMonth()+1 < 10 ? '0'+(t.getMonth()+1):t.getMonth()+1) + '-'
|
|
785
|
+
var D = (t.getDate()< 10 ? '0'+t.getDate():t.getDate())+ ' '
|
|
786
|
+
var h = (t.getHours() < 10 ? '0'+t.getHours():t.getHours())+ ':'
|
|
787
|
+
var m = (t.getMinutes() < 10 ? '0'+t.getMinutes():t.getMinutes())+ ':'
|
|
788
|
+
var s = t.getSeconds() < 10 ? '0'+t.getSeconds():t.getSeconds()
|
|
789
|
+
item.f_expire_date = Y+M+D+h+m+s
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
}
|
|
775
793
|
},
|
|
776
794
|
events: {
|
|
777
795
|
async 'onFileUpload'(file, result) {
|
|
@@ -274,7 +274,13 @@
|
|
|
274
274
|
},
|
|
275
275
|
// 任意select选中时触发事件
|
|
276
276
|
'select_cascade'(index){
|
|
277
|
-
|
|
277
|
+
if (this.data.fields[index].label === '是否具备安装条件'&& this.show_data.fields[index].value === '否') {
|
|
278
|
+
this.show_data.fields[index+9].required = false
|
|
279
|
+
this.show_data.fields[index+10].required = false
|
|
280
|
+
this.show_data.fields[index+11].required = false
|
|
281
|
+
this.show_data.fields[index+12].required = false
|
|
282
|
+
this.show_data.fields[index+13].required = false
|
|
283
|
+
}
|
|
278
284
|
// this.$refs.service_show.model_temp // 子业务显示组件
|
|
279
285
|
// 级联操作示例:
|
|
280
286
|
/*
|
|
@@ -317,14 +323,14 @@
|
|
|
317
323
|
model=Object.assign({},this.selectdata,model)
|
|
318
324
|
console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
|
|
319
325
|
let http = new HttpResetClass()
|
|
320
|
-
if((this.selectdata.defname =='现场勘察' || this.selectdata.defname ==='入户安装') && model.f_is_have == '否'&& model.
|
|
326
|
+
if((this.selectdata.defname =='现场勘察' || this.selectdata.defname ==='入户安装') && model.f_is_have == '否'&& model.button.button_name == '提交'){
|
|
321
327
|
let model1 ={
|
|
322
328
|
f_stop_remarks : '不具备安装条件'
|
|
323
329
|
}
|
|
324
330
|
this.stopapply(model1,model)
|
|
325
331
|
return
|
|
326
332
|
}
|
|
327
|
-
if((this.selectdata.defname =='现场勘察' || this.selectdata.defname ==='入户安装') && model.f_is_aerate == '否' && model.
|
|
333
|
+
if((this.selectdata.defname =='现场勘察' || this.selectdata.defname ==='入户安装') && model.f_is_aerate == '否' && model.button.button_name == '提交'){
|
|
328
334
|
let model1 ={
|
|
329
335
|
f_stop_remarks : '未通气'
|
|
330
336
|
}
|
|
@@ -725,6 +725,7 @@
|
|
|
725
725
|
v-validate:f_idnumber="['required']"
|
|
726
726
|
placeholder="证件号码"
|
|
727
727
|
v-model="userinfo.f_idnumber"
|
|
728
|
+
@change="idnumber()"
|
|
728
729
|
:value="userinfo.f_idnumber"
|
|
729
730
|
:readonly="$parent.$parent.mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
730
731
|
</div>
|
|
@@ -1517,8 +1518,15 @@ export default {
|
|
|
1517
1518
|
this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
|
|
1518
1519
|
}
|
|
1519
1520
|
},
|
|
1520
|
-
|
|
1521
|
+
idnumber(){
|
|
1521
1522
|
debugger
|
|
1523
|
+
let num = this.userinfo.f_idnumber
|
|
1524
|
+
if (!(/^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(num))){
|
|
1525
|
+
this.userinfo.f_idnumber = ""
|
|
1526
|
+
this.$showAlert('身份证号格式不正确,请重新输入。', 'info', 2000)
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
onchange(){
|
|
1522
1530
|
if (this.userinfo.f_credentials ==='身份证'){
|
|
1523
1531
|
this.flag = false
|
|
1524
1532
|
this.flag1 = true
|