|
|
@@ -7,16 +7,25 @@
|
|
|
</template>
|
|
|
<Form ref="formRef" class="g-form__container" @submit="formSubmit">
|
|
|
<CellGroup inset>
|
|
|
- <Field :label="$t('banksign.bankchannel')" v-model="cusBankName" :placeholder="$t('banksign.tips16')" name="cusBankName"
|
|
|
- :rules="formRules.CusBankID" @click-input="showCusBank = true" is-link />
|
|
|
- <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="formData.ExBankName" readonly
|
|
|
+ <!-- 错误 #6595 已签约状态的签约信息,修改时应限制修改银行渠道 -->
|
|
|
+ <Field v-if="bankInfo?.signstatus === 4 && selectCusBank" :label="$t('banksign.bankchannel')" v-model="selectCusBank.cusbankname" name="cusBankName" :rules="formRules.CusBankID" readonly />
|
|
|
+ <Field :label="$t('banksign.bankchannel')" v-model="cusBankName" :placeholder="$t('banksign.tips16')" name="cusBankName" :rules="formRules.CusBankID" @click-input="showCusBank = true" is-link v-else />
|
|
|
+ <!-- <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="formData.ExBankName" readonly
|
|
|
v-if="!isedit && userInfo.bankid" />
|
|
|
<Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="formData.ExBankName"
|
|
|
:placeholder="$t('banksign.Pleaseselectyourbank')" :rules="formRules.OpenBankAccId"
|
|
|
- @click-input="showSelect = true" readonly is-link v-else />
|
|
|
- <Field type="number" name="BankNo" :label="$t('banksign.bankaccountno')"
|
|
|
+ @click-input="showSelect = true" readonly is-link v-else /> -->
|
|
|
+ <!-- 改成不限制 -->
|
|
|
+ <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="formData.ExBankName"
|
|
|
+ :placeholder="$t('banksign.Pleaseselectyourbank')" :rules="formRules.OpenBankAccId"
|
|
|
+ @click-input="showSelect = true" readonly is-link />
|
|
|
+ <!-- <Field type="number" name="BankNo" :label="$t('banksign.bankaccountno')"
|
|
|
:readonly="!isedit && !!userInfo.bankaccount" maxlength="30"
|
|
|
v-model.trim="formData.BankAccountNo" :placeholder="$t('banksign.Pleaseenterbankaccountno')"
|
|
|
+ :rules="formRules.BankAccountNo" /> -->
|
|
|
+ <!-- 改成不限制 -->
|
|
|
+ <Field type="number" name="BankNo" :label="$t('banksign.bankaccountno')" maxlength="30"
|
|
|
+ v-model.trim="formData.BankAccountNo" :placeholder="$t('banksign.Pleaseenterbankaccountno')"
|
|
|
:rules="formRules.BankAccountNo" />
|
|
|
<Field name="AccountName" :label="$t('banksign.bankaccountname')" readonly
|
|
|
v-model="formData.AccountName" :placeholder="$t('banksign.Pleaseenterbankaccountname')"
|
|
|
@@ -134,10 +143,15 @@ const cusBankChange = ({ selectedOptions }) => {
|
|
|
const { tradedate, currency, cusbankid, cusbankname } = selectCusBank.value ?? {}
|
|
|
cusBankName.value = cusbankname ?? ''
|
|
|
|
|
|
+ if (selectedOptions[0].value != formData.CusBankID) {
|
|
|
+ // 清空银行信息
|
|
|
+ formData.ExBankName = undefined
|
|
|
+ formData.OpenBankAccId = undefined
|
|
|
+ }
|
|
|
+
|
|
|
formData.TradeDate = tradedate
|
|
|
formData.Currency = currency
|
|
|
|
|
|
- console.log(userInfo.value)
|
|
|
if (userInfo.value.bankid === '') {
|
|
|
formData.OpenBankAccId = undefined
|
|
|
}
|
|
|
@@ -324,6 +338,11 @@ onMounted(() => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ if (formData.CusBankID) {
|
|
|
+ cusBankName.value = bankInfo.value.cusbankname
|
|
|
+ formData.CusBankID = bankInfo.value.cusbankid
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
// 暴露组件属性给父组件调用
|