|
|
@@ -21,7 +21,7 @@
|
|
|
<Button type="warning" round block @click="formSubmit"
|
|
|
v-if="bankInfo.signstatus === SignStatus.Signed">解约</Button>
|
|
|
<Button type="danger" round block @click="openComponent('edit')"
|
|
|
- v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed].includes(bankInfo.signstatus)">修改</Button>
|
|
|
+ v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed, SignStatus.Rescinded].includes(bankInfo.signstatus)">修改</Button>
|
|
|
</div>
|
|
|
</template>
|
|
|
<component ref="componentRef" :is="componentMap.get(componentId)" @closed="closeComponent" v-if="componentId" />
|
|
|
@@ -36,6 +36,7 @@ import { useComponent } from '@/hooks/component'
|
|
|
import { getSignStatusName, SignStatus } from '@/constants/bank'
|
|
|
import { useDoCancelBankSign } from '@/business/bank'
|
|
|
import { useNavigation } from '../../../router/navigation'
|
|
|
+import { useErrorInfoStore } from '@/stores'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['edit', defineAsyncComponent(() => import('./components/edit/Index.vue'))],
|
|
|
@@ -53,11 +54,12 @@ const formSubmit = () => {
|
|
|
fullloading((hideLoading) => {
|
|
|
cancelSubmit().then(() => {
|
|
|
hideLoading()
|
|
|
- dialog('签约提交成功,请耐心等待审核。').then(() => {
|
|
|
+ dialog('解约提交成功,请耐心等待审核。').then(() => {
|
|
|
router.back()
|
|
|
})
|
|
|
}).catch((err) => {
|
|
|
- showFailToast(err)
|
|
|
+ const { getErrorInfoByCode } = useErrorInfoStore()
|
|
|
+ showFailToast(getErrorInfoByCode(Number(err)) ?? '')
|
|
|
})
|
|
|
})
|
|
|
})
|