|
|
@@ -8,7 +8,7 @@
|
|
|
<Cell title="开户银行" :value="bankInfo.bankname" />
|
|
|
<Cell title="银行卡号" :value="bankInfo.bankaccountno" />
|
|
|
<Cell title="姓名" :value="bankInfo.bankaccountname" />
|
|
|
- <Cell title="支行名称" v-if="bankInfo.branchbankname !=''" :value="bankInfo.branchbankname" />
|
|
|
+ <Cell title="支行名称" v-if="bankInfo.branchbankname != ''" :value="bankInfo.branchbankname" />
|
|
|
<Cell title="状态" :value="getSignStatusName(bankInfo.signstatus)" />
|
|
|
</CellGroup>
|
|
|
</div>
|
|
|
@@ -19,13 +19,13 @@
|
|
|
<template #footer>
|
|
|
<div class="g-form__footer inset" v-if="bankInfo">
|
|
|
<Button type="warning" round block @click="formSubmit"
|
|
|
- v-if="bankInfo.signstatus === SignStatus.Signed && cusBank?.canrelease === 1">解约</Button>
|
|
|
- <Button type="danger" round block @click="showComponent(true)"
|
|
|
- v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed].includes(bankInfo.signstatus) &&
|
|
|
- cusBank?.canmodifysigninfo === 1">修改</Button>
|
|
|
+ v-if="bankInfo.signstatus === SignStatus.Signed && cusBank?.canrelease === 1">解约</Button>
|
|
|
+ <Button type="danger" round block @click="showComponent(true)" v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed].includes(bankInfo.signstatus) &&
|
|
|
+ cusBank?.canmodifysigninfo === 1">修改</Button>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <component ref="componentRef" v-bind="{ isedit }" :is="componentMap.get(componentId)" @closed="closeComponent" v-if="componentId" />
|
|
|
+ <component ref="componentRef" v-bind="{ isedit }" :is="componentMap.get(componentId)" @closed="closeComponent"
|
|
|
+ v-if="componentId" />
|
|
|
</app-view>
|
|
|
</template>
|
|
|
|
|
|
@@ -39,12 +39,14 @@ import { useDoCancelBankSign } from '@/business/bank'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryCusBankSignBank } from '@/services/api/bank'
|
|
|
+import { useUserStore } from '@/stores'
|
|
|
import { shallowRef } from 'vue'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['edit', defineAsyncComponent(() => import('./components/edit/Index.vue'))],
|
|
|
])
|
|
|
|
|
|
+const useStore = useUserStore()
|
|
|
const cusBank = shallowRef<Model.CusBankSignBankRsp>()
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => formRefresh())
|
|
|
const { cancelSubmit, formRefresh, bankInfo } = useDoCancelBankSign()
|
|
|
@@ -85,7 +87,10 @@ const showComponent = (isEdit: boolean) => {
|
|
|
openComponent('edit')
|
|
|
}
|
|
|
|
|
|
-onActivated(() => formRefresh())
|
|
|
+onActivated(() => {
|
|
|
+ useStore.getUserData()
|
|
|
+ formRefresh()
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|