apply-clients 4.1.29-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 +1 -1
- package/src/components/app_apply/AppInstallationDetails.vue +1 -1
- package/src/components/app_apply/AppdevicesDetails.vue +18 -0
- package/src/components/app_apply/ServiceControl.vue +9 -3
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +28 -6
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
|
}
|
|
@@ -714,14 +714,26 @@
|
|
|
714
714
|
:value.sync="userinfo.f_credentials"
|
|
715
715
|
v-model="userinfo.f_credentials"
|
|
716
716
|
:options="credentialsList"
|
|
717
|
+
@change="onchange()"
|
|
717
718
|
:valueSingle="true"></input-select>
|
|
718
719
|
</div>
|
|
719
720
|
</div>
|
|
720
|
-
<div class="form-group col-sm-6" :class="[$v.f_idnumber.required ? 'has-error' : '']">
|
|
721
|
+
<div class="form-group col-sm-6" :class="[$v.f_idnumber.required ? 'has-error' : '']" v-if="flag1" >
|
|
722
|
+
<label class="col-sm-4 control-label">证件号码:</label>
|
|
723
|
+
<div class="col-sm-7">
|
|
724
|
+
<input class="form-control input_view" style=""
|
|
725
|
+
v-validate:f_idnumber="['required']"
|
|
726
|
+
placeholder="证件号码"
|
|
727
|
+
v-model="userinfo.f_idnumber"
|
|
728
|
+
@change="idnumber()"
|
|
729
|
+
:value="userinfo.f_idnumber"
|
|
730
|
+
:readonly="$parent.$parent.mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
<div class="form-group col-sm-6" v-if="flag">
|
|
721
734
|
<label class="col-sm-4 control-label">证件号码:</label>
|
|
722
735
|
<div class="col-sm-7">
|
|
723
736
|
<input class="form-control input_view" style=""
|
|
724
|
-
v-validate:userinfo.f_credentials=="身份证"?f_idnumber="['required']":""
|
|
725
737
|
placeholder="证件号码"
|
|
726
738
|
v-model="userinfo.f_idnumber"
|
|
727
739
|
:value="userinfo.f_idnumber"
|
|
@@ -932,7 +944,8 @@ export default {
|
|
|
932
944
|
"f_people_num": "人口数"
|
|
933
945
|
},
|
|
934
946
|
condition: "1 = 1",
|
|
935
|
-
flag:true
|
|
947
|
+
flag:true,
|
|
948
|
+
flag1:false
|
|
936
949
|
}
|
|
937
950
|
},
|
|
938
951
|
ready () {
|
|
@@ -1505,12 +1518,21 @@ export default {
|
|
|
1505
1518
|
this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
|
|
1506
1519
|
}
|
|
1507
1520
|
},
|
|
1508
|
-
|
|
1521
|
+
idnumber(){
|
|
1509
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(){
|
|
1510
1530
|
if (this.userinfo.f_credentials ==='身份证'){
|
|
1511
|
-
this.flag = true
|
|
1512
|
-
}else {
|
|
1513
1531
|
this.flag = false
|
|
1532
|
+
this.flag1 = true
|
|
1533
|
+
}else {
|
|
1534
|
+
this.flag = true
|
|
1535
|
+
this.flag1 = false
|
|
1514
1536
|
}
|
|
1515
1537
|
}
|
|
1516
1538
|
},
|