|
@ -1,7 +1,17 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="registerShop"> |
|
|
<view class="registerShop"> |
|
|
|
|
|
|
|
|
<navbar :title="titleList[titleIndex]" leftClick @leftClick="$utils.navigateBack" /> |
|
|
|
|
|
|
|
|
<navbar |
|
|
|
|
|
v-if="key" |
|
|
|
|
|
:title="titleUpdateList[titleIndex]" |
|
|
|
|
|
leftClick |
|
|
|
|
|
@leftClick="$utils.navigateBack" /> |
|
|
|
|
|
|
|
|
|
|
|
<navbar |
|
|
|
|
|
v-else |
|
|
|
|
|
:title="titleList[titleIndex]" |
|
|
|
|
|
leftClick |
|
|
|
|
|
@leftClick="$utils.navigateBack" /> |
|
|
|
|
|
|
|
|
<view class="frame"> |
|
|
<view class="frame"> |
|
|
<!--基本信息--> |
|
|
<!--基本信息--> |
|
@ -114,8 +124,15 @@ |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="uni-color-btn" |
|
|
|
|
|
@click="showModel" |
|
|
|
|
|
v-if="key"> |
|
|
|
|
|
确认修改 |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="bottom"> |
|
|
|
|
|
|
|
|
<view class="bottom" |
|
|
|
|
|
v-else> |
|
|
<view class="btns"> |
|
|
<view class="btns"> |
|
|
<!--申请审核--> |
|
|
<!--申请审核--> |
|
|
<span @click="applyReview" class="sqsh"> |
|
|
<span @click="applyReview" class="sqsh"> |
|
@ -147,14 +164,40 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import customerServicePopup from "@/components/config/customerServicePopup.vue"; |
|
|
import customerServicePopup from "@/components/config/customerServicePopup.vue"; |
|
|
|
|
|
|
|
|
|
|
|
import { mapState } from 'vuex' |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
customerServicePopup |
|
|
customerServicePopup |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
this.titleIndex = option.identity |
|
|
|
|
|
this.form.role = option.identity |
|
|
|
|
|
|
|
|
if(option.key){ |
|
|
|
|
|
this.key = option.key |
|
|
|
|
|
this.form = this[option.key] |
|
|
|
|
|
|
|
|
|
|
|
this.titleIndex = ['buy', 'shopData'].indexOf(option.key) |
|
|
|
|
|
|
|
|
|
|
|
this.yyzzfileList = this.form.businessLicense.split(',').map(url => { |
|
|
|
|
|
return { |
|
|
|
|
|
url |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
this.jbhxxfileList = this.form.basicAccount.split(',').map(url => { |
|
|
|
|
|
return { |
|
|
|
|
|
url |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
this.skyhfileList = this.form.bankInfo.split(',').map(url => { |
|
|
|
|
|
return { |
|
|
|
|
|
url |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.titleIndex = option.identity |
|
|
|
|
|
this.form.role = option.identity |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
computed : { |
|
|
|
|
|
...mapState(['buy', 'shopData']), |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -165,6 +208,11 @@ |
|
|
this.$t('other.supplierRegistration'), |
|
|
this.$t('other.supplierRegistration'), |
|
|
this.$t('other.domesticCustomsClearanceApplication') |
|
|
this.$t('other.domesticCustomsClearanceApplication') |
|
|
], |
|
|
], |
|
|
|
|
|
titleUpdateList: [ |
|
|
|
|
|
// 采购商注册 供应商注册 国内清关申请 |
|
|
|
|
|
'修改采购商信息', |
|
|
|
|
|
'修改供应商信息', |
|
|
|
|
|
], |
|
|
form: { |
|
|
form: { |
|
|
"address": "", |
|
|
"address": "", |
|
|
"auditStatus": 0, |
|
|
"auditStatus": 0, |
|
@ -183,9 +231,19 @@ |
|
|
yyzzfileList: [],//营业执照 |
|
|
yyzzfileList: [],//营业执照 |
|
|
jbhxxfileList: [],//基本户信息 |
|
|
jbhxxfileList: [],//基本户信息 |
|
|
skyhfileList: [],//收款银行 |
|
|
skyhfileList: [],//收款银行 |
|
|
|
|
|
key : '', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
showModel(){ |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
title: '确认修改吗?', |
|
|
|
|
|
content: '修改后该身份将需要重新审核!', |
|
|
|
|
|
success: (res) => { |
|
|
|
|
|
this.applyReview() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 申请审核 |
|
|
// 申请审核 |
|
|
applyReview() { |
|
|
applyReview() { |
|
|
|
|
|
|
|
@ -219,10 +277,14 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let api = this.titleIndex == 2 ? 'addCustoms' : 'roleOption' |
|
|
|
|
|
|
|
|
this.$api(this.titleIndex == 2 ? |
|
|
|
|
|
'addCustoms' |
|
|
|
|
|
: 'roleOption', data, res => { |
|
|
|
|
|
|
|
|
if(this.key){ |
|
|
|
|
|
api = 'updateRoleInfo' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$api(api, data, res => { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
// uni.removeStorageSync('token') |
|
|
// uni.removeStorageSync('token') |
|
|
// this.$store.state.userInfo = {} |
|
|
// this.$store.state.userInfo = {} |
|
@ -235,7 +297,14 @@ |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
setTimeout(uni.navigateBack, 1000, -1) |
|
|
|
|
|
|
|
|
if(this.key){ |
|
|
|
|
|
setTimeout(uni.reLaunch, 1000, { |
|
|
|
|
|
url: '/pages_order/auth/selectionIdentity' |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
setTimeout(uni.navigateBack, 1000, -1) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|