|
@@ -240,6 +240,9 @@
|
|
},
|
|
},
|
|
userInfo(){
|
|
userInfo(){
|
|
return this.$store.state.vuex_userInfo
|
|
return this.$store.state.vuex_userInfo
|
|
|
|
+ },
|
|
|
|
+ storeApply(){
|
|
|
|
+ return this.$store.state.vuex_storeAuthInfo || null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opts) {
|
|
onLoad(opts) {
|
|
@@ -249,9 +252,12 @@
|
|
// 获取vin 对应code
|
|
// 获取vin 对应code
|
|
this.getCarCodeByVin()
|
|
this.getCarCodeByVin()
|
|
|
|
|
|
- // 游客去认证
|
|
|
|
|
|
+ // 游客
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
- this.showPopup = true
|
|
|
|
|
|
+ // 未认证
|
|
|
|
+ if(!storeApply.auditStatus){
|
|
|
|
+ this.showPopup = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -509,14 +515,42 @@
|
|
})
|
|
})
|
|
return [partList,tempList]
|
|
return [partList,tempList]
|
|
},
|
|
},
|
|
- // 立即提交
|
|
|
|
- submitForm(){
|
|
|
|
|
|
+ validRz(){
|
|
// 游客去认证
|
|
// 游客去认证
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
- this.showPopup = true
|
|
|
|
- return
|
|
|
|
|
|
+ // 未认证
|
|
|
|
+ if(!storeApply.auditStatus){
|
|
|
|
+ this.showPopup = true
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ // 认证中
|
|
|
|
+ if(storeApply&&storeApply.auditStatus=='WAIT'){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '门店认证资料审核中,请耐心等待!',
|
|
|
|
+ confirmText: '好的',
|
|
|
|
+ showCancel: false
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 认证通过
|
|
|
|
+ if(storeApply&&(storeApply.auditStatus=='WAIT' || storeApply.auditStatus == 'REFUSE')){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: storeApply.auditStatus=='WAIT' ? '门店认证资料审核中,请耐心等待!' : '门店认证资料审核不通过,请重新提交审核!',
|
|
|
|
+ confirmText: '好的',
|
|
|
|
+ showCancel: false
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ return false
|
|
|
|
+ },
|
|
|
|
+ // 立即提交
|
|
|
|
+ submitForm(){
|
|
|
|
+ if(this.validRz()){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if(this.partListData.length==0){
|
|
if(this.partListData.length==0){
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|