|
@@ -2,6 +2,32 @@
|
|
<div class="main-content">
|
|
<div class="main-content">
|
|
<div v-for="(item, index) in companyList" :key="index">
|
|
<div v-for="(item, index) in companyList" :key="index">
|
|
<div v-if="item.vipAccountBasicInfoList && item.vipAccountBasicInfoList.length === 0 && item.customerStatus === '生效'" class="company-box-cont">
|
|
<div v-if="item.vipAccountBasicInfoList && item.vipAccountBasicInfoList.length === 0 && item.customerStatus === '生效'" class="company-box-cont">
|
|
|
|
+ <div class="company-box">
|
|
|
|
+ <div class="company-title">
|
|
|
|
+ <div>
|
|
|
|
+ <div class="supplier">供应商企业名称</div>
|
|
|
|
+ <div class="supplier-name">{{ item.customerName }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="supplier-operation">
|
|
|
|
+ <div>客户状态: {{ item.customerStatus }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ class="normal"
|
|
|
|
+ style="display: flex; justify-content: space-between"
|
|
|
|
+ >
|
|
|
|
+ <div>客户号{{ item.customerNumber }}</div>
|
|
|
|
+ <!-- v-tooltip="addAccountTip" -->
|
|
|
|
+ <!-- <div>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="item.addVipAccount === 1"
|
|
|
|
+ :id="`new-account-${index}`"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="openActivation(item.bocomBasicInfoId)"
|
|
|
|
+ >新建账户</el-button>
|
|
|
|
+ </div> -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<empty
|
|
<empty
|
|
v-if="item.customerStatus === '生效'"
|
|
v-if="item.customerStatus === '生效'"
|
|
type="cyAccountManage"
|
|
type="cyAccountManage"
|
|
@@ -271,13 +297,13 @@ export default {
|
|
msg: '修改绑卡信息',
|
|
msg: '修改绑卡信息',
|
|
icon: 'iconfont icon-orange icon-a-Group8151',
|
|
icon: 'iconfont icon-orange icon-a-Group8151',
|
|
power: '',
|
|
power: '',
|
|
- category: 'number'
|
|
|
|
|
|
+ category: 'seeBindCard'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- msg: '查看绑卡信息',
|
|
|
|
- icon: 'iconfont icon-orange icon-a-Group8141',
|
|
|
|
|
|
+ msg: '修改付款方信息',
|
|
|
|
+ icon: 'iconfont icon-orange icon-a-Group8151',
|
|
power: '',
|
|
power: '',
|
|
- category: 'seeBindCard'
|
|
|
|
|
|
+ category: 'number'
|
|
}
|
|
}
|
|
// {
|
|
// {
|
|
// msg: '账单流水',
|
|
// msg: '账单流水',
|
|
@@ -311,7 +337,7 @@ export default {
|
|
width: 240
|
|
width: 240
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- authActiveInfo: {}, // 待授权弹窗组件入参
|
|
|
|
|
|
+ authActiveInfo: [], // 待授权弹窗组件入参
|
|
curActiveRow: {}, // 入金激活组件入参
|
|
curActiveRow: {}, // 入金激活组件入参
|
|
activeAccountName: '',
|
|
activeAccountName: '',
|
|
activeAccountNumber: '',
|
|
activeAccountNumber: '',
|
|
@@ -425,7 +451,7 @@ export default {
|
|
} else if (type === 'physicalAccount') {
|
|
} else if (type === 'physicalAccount') {
|
|
// 查看实体账户
|
|
// 查看实体账户
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- name: 'CyAccountaccountBind',
|
|
|
|
|
|
+ name: 'CyAccountaccountSee',
|
|
query: { type: 'bindCard', id: row.id }
|
|
query: { type: 'bindCard', id: row.id }
|
|
})
|
|
})
|
|
} else if (type === 'flowingWater') {
|
|
} else if (type === 'flowingWater') {
|
|
@@ -449,29 +475,28 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else if (type === 'authorization') {
|
|
} else if (type === 'authorization') {
|
|
|
|
+ if (row.noticeInfoList.length === 0) {
|
|
|
|
+ this.$message.warning('授权信息有误,请重试')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
// 去授权 -- 这里做一个判断,如果二维码认证时间过期 需要重新调用生成二维码接口
|
|
// 去授权 -- 这里做一个判断,如果二维码认证时间过期 需要重新调用生成二维码接口
|
|
const nowTimeTemp = new Date().getTime()
|
|
const nowTimeTemp = new Date().getTime()
|
|
- const qrCodeValidTime = new Date(row.qrCodeEffectTime).getTime() + this.timeReduce
|
|
|
|
|
|
+ const qrCodeValidTime = new Date(row.noticeInfoList[0].qrCodeEffectTime).getTime() + this.timeReduce
|
|
|
|
|
|
if (qrCodeValidTime - nowTimeTemp <= 0) {
|
|
if (qrCodeValidTime - nowTimeTemp <= 0) {
|
|
this.resetQrCodeUri(row)
|
|
this.resetQrCodeUri(row)
|
|
} else {
|
|
} else {
|
|
this.$refs.authorizationRef.openDialog(true)
|
|
this.$refs.authorizationRef.openDialog(true)
|
|
- // authenticator
|
|
|
|
- console.log(row)
|
|
|
|
- this.authActiveInfo = {
|
|
|
|
- name: this.companyList[row.parentIdx].authenticator,
|
|
|
|
- qrcodeUrl: row.qrCode,
|
|
|
|
- effectTime: row.qrCodeEffectTime
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ this.authActiveInfo = row.noticeInfoList
|
|
}
|
|
}
|
|
} else if (type === 'refreshRegister') {
|
|
} else if (type === 'refreshRegister') {
|
|
this.refreshRegister(row)
|
|
this.refreshRegister(row)
|
|
} else if (type === 'seeBindCard') {
|
|
} else if (type === 'seeBindCard') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- name: 'CyAccountaccountSee',
|
|
|
|
|
|
+ name: 'CyAccountaccountBind',
|
|
query: {
|
|
query: {
|
|
- type: 'see',
|
|
|
|
|
|
+ type: 'edit',
|
|
id: row.id
|
|
id: row.id
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -488,26 +513,28 @@ export default {
|
|
console.log('addMemberRegister----', res)
|
|
console.log('addMemberRegister----', res)
|
|
|
|
|
|
if (res.success && res.data && res.data.authorizationStatus !== 4) {
|
|
if (res.success && res.data && res.data.authorizationStatus !== 4) {
|
|
- this.authActiveInfo = {
|
|
|
|
- name: res.data.authenticator,
|
|
|
|
- qrcodeUrl: res.data.qrCode,
|
|
|
|
- effectTime: res.data.qrCodeEffectTime
|
|
|
|
- }
|
|
|
|
|
|
+ this.authActiveInfo = res.data.noticeInfoList
|
|
// 回调触发微信授权
|
|
// 回调触发微信授权
|
|
this.$refs.authorizationRef.openDialog(true)
|
|
this.$refs.authorizationRef.openDialog(true)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 重置授权二维码
|
|
// 重置授权二维码
|
|
async resetQrCodeUri(curRow) {
|
|
async resetQrCodeUri(curRow) {
|
|
|
|
+ this.authActiveInfo = []
|
|
const res = await resetAuthCode({ id: curRow.id })
|
|
const res = await resetAuthCode({ id: curRow.id })
|
|
|
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- this.authActiveInfo = {
|
|
|
|
- name: this.companyList[curRow.parentIdx].authenticator,
|
|
|
|
- qrcodeUrl: res.data.qrCode,
|
|
|
|
- effectTime: res.data.qrCodeEffectTime
|
|
|
|
|
|
+ if ('noticeInfoList' in res.data) {
|
|
|
|
+ this.authActiveInfo = res.data.noticeInfoList
|
|
|
|
+ } else if (Array.isArray(res.data)) {
|
|
|
|
+ this.authActiveInfo = res.data
|
|
|
|
+ } else {
|
|
|
|
+ this.authActiveInfo.push({
|
|
|
|
+ qrCodeEffectTime: res.data.qrCodeEffectTime,
|
|
|
|
+ qrCode: res.data.qrCode,
|
|
|
|
+ authenticator: res.data.authenticator
|
|
|
|
+ })
|
|
}
|
|
}
|
|
-
|
|
|
|
this.$refs.authorizationRef.openDialog(true)
|
|
this.$refs.authorizationRef.openDialog(true)
|
|
}
|
|
}
|
|
},
|
|
},
|