li.shaoyi il y a 2 mois
Parent
commit
7024179a9d

+ 1 - 11
src/packages/mobile/views/bank/sign/Index.vue

@@ -27,7 +27,7 @@
                     v-if="[SignStatus.Refuse, SignStatus.Rescinded].includes(bankInfo.signstatus)">{{ $t('banksign.signagain') }}</Button>
                 <Button type="warning" round block @click="formSubmit"
                     v-if="bankInfo.signstatus === SignStatus.Signed && cusBank?.canrelease === 1">{{ $t('banksign.cancel') }}</Button>
-                <Button type="danger" round block @click="beforeShowComponent"
+                <Button type="danger" round block @click="showComponent(true)"
                     v-if="bankInfo.signstatus === SignStatus.Signed && cusBank?.canmodifysigninfo === 1">{{ $t('banksign.modify') }}</Button>
                 <Button type="danger" round block @click="showComponent(false)"
                     v-if="bankInfo.signstatus === SignStatus.Unsigned && cusBank?.cansign === 1">{{ $t('banksign.addbanksign') }}</Button>
@@ -98,16 +98,6 @@ const showComponent = (isEdit: boolean) => {
     openComponent('edit')
 }
 
-const beforeShowComponent = () => {
-    if (bankInfo.value?.cusbankid === 'jdjs') {
-        dialog(t('banksign.tips9')).then(() => {
-            showComponent(true)
-        })
-    } else {
-        showComponent(true)
-    }
-}
-
 formRefresh()
 </script>
 

+ 1 - 11
src/packages/pc/views/account/sign/index.vue

@@ -32,7 +32,7 @@
                     size="small" @click="openComponent('cancel')">{{ t('banksign.cancel') }}</el-button>
                 <el-button
                     v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Rescinded].includes(row.signstatus) || (row.signstatus === SignStatus.Signed && cusBank?.canmodifysigninfo === 1)"
-                    type="primary" size="small" @click="beforeShowComponent(row)">{{ t('operation.modify') }}</el-button>
+                    type="primary" size="small" @click="showComponent('sign')">{{ t('operation.modify') }}</el-button>
             </div>
         </template>
     </app-table>
@@ -151,16 +151,6 @@ const showComponent = ((componentName: string) => {
     openComponent(componentName)
 })
 
-const beforeShowComponent = (row: Model.BankAccountSignRsp) => {
-    if (row.cusbankid === 'jdjs') {
-        ElMessageBox.alert(t('banksign.tips9')).finally(() => {
-            showComponent('sign')
-        })
-    } else {
-        showComponent('sign')
-    }
-}
-
 const tableColumns = shallowRef<Model.TableColumn[]>([
     { field: 'accountcode', label: 'banksign.wallet.inoutapply.accountcode' },
     { field: 'accountname', label: 'banksign.accountname' },

+ 1 - 11
src/packages/tss/views/bank/sign/Index.vue

@@ -26,7 +26,7 @@
                     v-if="[SignStatus.Refuse, SignStatus.Rescinded].includes(bankInfo.signstatus)">{{ $t('banksign.signagain') }}</Button>
                 <Button type="warning" round block @click="formSubmit"
                     v-if="bankInfo.signstatus === SignStatus.Signed && cusBank?.canrelease === 1">{{ $t('banksign.cancel') }}</Button>
-                <Button type="danger" round block @click="beforeShowComponent"
+                <Button type="danger" round block @click="showComponent(true)"
                     v-if="bankInfo.signstatus === SignStatus.Signed && cusBank?.canmodifysigninfo === 1">{{ $t('banksign.modify') }}</Button>
                 <Button type="danger" round block @click="showComponent(false)"
                     v-if="bankInfo.signstatus === SignStatus.Unsigned && cusBank?.cansign === 1">{{ $t('banksign.addbanksign') }}</Button>
@@ -96,16 +96,6 @@ const showComponent = (isEdit: boolean) => {
     openComponent('edit')
 }
 
-const beforeShowComponent = () => {
-    if (bankInfo.value?.cusbankid === 'jdjs') {
-        dialog(t('banksign.tips9')).then(() => {
-            showComponent(true)
-        })
-    } else {
-        showComponent(true)
-    }
-}
-
 formRefresh()
 </script>