lshcom 1.0.1 → 1.0.2
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
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
|
|
361
361
|
<EleDialog title="客户信息更正" ref="EleDialog" showFooter customFooter :modalAppendToBody="false" :modal="false">
|
|
362
362
|
<p>该手机号码的个人客户已经完成实名制,信息如下:</p>
|
|
363
|
-
<p
|
|
364
|
-
<p
|
|
363
|
+
<p>姓名:{{ custInfo.userName }}</p>
|
|
364
|
+
<p>证件号:{{ custInfo.certNo }}</p>
|
|
365
365
|
<p>是否使用正确的客户更新进行保存?</p>
|
|
366
366
|
<div slot="footer">
|
|
367
367
|
<el-button type="primary" @click="checkAuthCustomerInfoCancel">取消</el-button>
|
|
@@ -608,6 +608,7 @@ export default {
|
|
|
608
608
|
api.liApi.custVehcile.setCustVehicle(params, (res) => {
|
|
609
609
|
console.log(params,"paramsxxx");
|
|
610
610
|
if (res && res.data.code === "success") {
|
|
611
|
+
this.$refs.EleDialog.visible = false
|
|
611
612
|
this.$emit("preserve", res.data.obj.custVo);
|
|
612
613
|
this.$message({
|
|
613
614
|
message: "保存成功",
|
|
@@ -745,28 +746,32 @@ export default {
|
|
|
745
746
|
if (!this.queryParams.customerName) return this.$message.warning('请输入客户姓名')
|
|
746
747
|
if (!this.queryParams.customerGender) return this.$message.warning('请选择称谓')
|
|
747
748
|
if (!this.queryParams.customerCountryCode) return this.$message.warning('请选择国家/地区')
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
749
|
+
// 个人客户点击保存后校验实名制关系
|
|
750
|
+
if (this.queryParams.custType == 'customTypeIndividualCus'){
|
|
751
|
+
this.global.post(this.global.isdev + '/v1/ecep/customer/checkAuthCustomerInfo', {
|
|
752
|
+
certNo: this.queryParams.customerIdNo,
|
|
753
|
+
mobilePhone: this.queryParams.contactPhoneNo,
|
|
754
|
+
userName: this.queryParams.customerName,
|
|
755
|
+
}, (obj, res) => {
|
|
756
|
+
if(!res.data.obj) {
|
|
757
|
+
this[this.btnType]()
|
|
758
|
+
} else {
|
|
759
|
+
this.custInfo = obj
|
|
760
|
+
this.$refs.EleDialog.visible = true
|
|
761
|
+
}
|
|
762
|
+
})
|
|
763
|
+
} else {
|
|
764
|
+
this[type]()
|
|
765
|
+
}
|
|
760
766
|
},
|
|
761
767
|
checkAuthCustomerInfoConfirm(){
|
|
762
768
|
this.queryParams.customerName = this.custInfo.userName
|
|
763
769
|
this.queryParams.customerIdNo = this.custInfo.certNo
|
|
764
|
-
this.
|
|
770
|
+
this[this.btnType]()
|
|
765
771
|
},
|
|
766
772
|
checkAuthCustomerInfoCancel(){
|
|
767
773
|
this.$refs.EleDialog.visible = false
|
|
768
|
-
|
|
769
|
-
}
|
|
774
|
+
},
|
|
770
775
|
},
|
|
771
776
|
};
|
|
772
777
|
</script>
|
|
@@ -504,7 +504,8 @@ export default {
|
|
|
504
504
|
},
|
|
505
505
|
computed: {
|
|
506
506
|
showChange() {
|
|
507
|
-
return showBtn(ORDER_CHANGE_MASTER);
|
|
507
|
+
// return showBtn(ORDER_CHANGE_MASTER);
|
|
508
|
+
return this.custVoSpace && this.custVoSpace.customerName && this.custVoSpace.contactPhoneNo && this.custVoSpace.scvId
|
|
508
509
|
},
|
|
509
510
|
// 无需填写fin码标识
|
|
510
511
|
finFlag() {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
min-width="100" />
|
|
141
141
|
|
|
142
142
|
<el-table-column
|
|
143
|
-
|
|
143
|
+
v-if="showChange"
|
|
144
144
|
label="操作"
|
|
145
145
|
align="center"
|
|
146
146
|
prop="bpNo"
|
|
@@ -207,7 +207,17 @@ export default {
|
|
|
207
207
|
this.queryParams.licNum = val
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
-
|
|
210
|
+
computed: {
|
|
211
|
+
showChange() {
|
|
212
|
+
if(!this.global.userInfo.carBindingBusinessSet || !this.global.userInfo.carBindingBusinessSet.length) return false;
|
|
213
|
+
if(process.env.NODE_ENV === 'development') {
|
|
214
|
+
const list = this.global.userInfo.carBindingBusinessSet.map(item => item.slice(1)).map(item => item.slice(item.indexOf('/')))
|
|
215
|
+
return list.includes(location.pathname)
|
|
216
|
+
} else {
|
|
217
|
+
return this.global.userInfo.carBindingBusinessSet.includes(location.pathname)
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
},
|
|
211
221
|
created() {
|
|
212
222
|
this.init()
|
|
213
223
|
},
|
|
@@ -211,8 +211,8 @@
|
|
|
211
211
|
|
|
212
212
|
<EleDialog title="客户信息更正" ref="EleDialog" showFooter customFooter :modalAppendToBody="false" :modal="false">
|
|
213
213
|
<p>该手机号码的个人客户已经完成实名制,信息如下:</p>
|
|
214
|
-
<p
|
|
215
|
-
<p
|
|
214
|
+
<p>姓名:{{ custInfo.userName }}</p>
|
|
215
|
+
<p>证件号:{{ custInfo.certNo }}</p>
|
|
216
216
|
<p>是否使用正确的客户更新进行保存?</p>
|
|
217
217
|
<div slot="footer">
|
|
218
218
|
<el-button type="primary" @click="checkAuthCustomerInfoCancel">取消</el-button>
|
|
@@ -491,9 +491,11 @@
|
|
|
491
491
|
api.liApi.custVehcile.setCustVehicle(params, res => {
|
|
492
492
|
if (res && res.data.code === 'success') {
|
|
493
493
|
this.$message.success('保存成功')
|
|
494
|
+
this.$refs.EleDialog.visible = false
|
|
494
495
|
this.$emit('preserve', this.queryParams)
|
|
495
496
|
}
|
|
496
497
|
if(res && res.data.code === 'carIsBind'){
|
|
498
|
+
this.$refs.EleDialog.visible = false
|
|
497
499
|
this.$message({
|
|
498
500
|
message:'该车已绑定多个车主,请点击车主变更进行车主变更',
|
|
499
501
|
type: 'warning'
|
|
@@ -524,6 +526,7 @@
|
|
|
524
526
|
api.liApi.custVehcile.setCustVehicle(params, res => {
|
|
525
527
|
if (res && res.data.code === 'success') {
|
|
526
528
|
this.$message.success('操作成功')
|
|
529
|
+
this.$refs.EleDialog.visible = false
|
|
527
530
|
this.$emit('changeMaster', this.queryParams)
|
|
528
531
|
}
|
|
529
532
|
if(res && res.data.code === 'carIsBind'){
|
|
@@ -539,6 +542,7 @@
|
|
|
539
542
|
api.liApi.custVehcile.setCustVehicle(params, res => {
|
|
540
543
|
if (res && res.data.code === 'success') {
|
|
541
544
|
this.$message.success('操作成功')
|
|
545
|
+
this.$refs.EleDialog.visible = false
|
|
542
546
|
this.$emit('changeMaster', this.queryParams)
|
|
543
547
|
}
|
|
544
548
|
})
|
|
@@ -661,35 +665,39 @@
|
|
|
661
665
|
this.savePortrayalVisible(!this.portrayalVisible)
|
|
662
666
|
},
|
|
663
667
|
// 客户实名制校验
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
668
|
+
checkAuthCustomerInfo(type){
|
|
669
|
+
this.btnType = type
|
|
670
|
+
if (!this.queryParams.custType) return this.$message.warning('请选择客户类型')
|
|
667
671
|
if (!this.queryParams.contactPhoneNo) return this.$message.warning('请输入移动电话')
|
|
668
672
|
if (!this.queryParams.customerName) return this.$message.warning('请输入客户姓名')
|
|
669
673
|
if (!this.queryParams.customerGender) return this.$message.warning('请选择称谓')
|
|
670
674
|
if (!this.queryParams.customerCountryCode) return this.$message.warning('请选择国家/地区')
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
675
|
+
// 个人客户点击保存后校验实名制关系
|
|
676
|
+
if (this.queryParams.custType == 'customTypeIndividualCus'){
|
|
677
|
+
this.global.post(this.global.isdev + '/v1/ecep/customer/checkAuthCustomerInfo', {
|
|
678
|
+
certNo: this.queryParams.customerIdNo,
|
|
679
|
+
mobilePhone: this.queryParams.contactPhoneNo,
|
|
680
|
+
userName: this.queryParams.customerName,
|
|
681
|
+
}, (obj, res) => {
|
|
682
|
+
if(!res.data.obj) {
|
|
683
|
+
this[this.btnType]()
|
|
684
|
+
} else {
|
|
685
|
+
this.custInfo = obj
|
|
686
|
+
this.$refs.EleDialog.visible = true
|
|
687
|
+
}
|
|
688
|
+
})
|
|
689
|
+
} else {
|
|
690
|
+
this[type]()
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
checkAuthCustomerInfoConfirm(){
|
|
694
|
+
this.queryParams.customerName = this.custInfo.userName
|
|
695
|
+
this.queryParams.customerIdNo = this.custInfo.certNo
|
|
696
|
+
this[this.btnType]()
|
|
697
|
+
},
|
|
698
|
+
checkAuthCustomerInfoCancel(){
|
|
699
|
+
this.$refs.EleDialog.visible = false
|
|
700
|
+
},
|
|
693
701
|
}
|
|
694
702
|
}
|
|
695
703
|
</script>
|