Handy_Cao 10 mesiacov pred
rodič
commit
3dfb72d655

+ 3 - 3
oem/tss/config/appconfig.json

@@ -1,9 +1,9 @@
 {
   "appId": "com.muchinfo.tss",
   "appName": "TCE",
-  "version": "1.0.34",
-  "versionCode": "100034",
-  "apiUrl": "http://47.128.190.111:8280/cfg?key=tss_sp",
+  "version": "1.0.33",
+  "versionCode": "100033",
+  "apiUrl": "http://192.168.31.210:8080/cfg?key=test_210",
   "tradeChannel": "ws",
   "showLoginAlert": true,
   "modules": [

+ 1 - 0
src/business/bank/index.ts

@@ -187,6 +187,7 @@ export function useDoBankSign() {
             formData.Currency = selectCusBank.value.currency
             formData.CusBankID = selectCusBank.value.cusbankid
             formData.TradeDate = selectCusBank.value.tradedate
+
             // 查找银行是否存在
             const bankItem = banklist.value.find(obj => obj.bankid === formData.OpenBankAccId)
             if (bankItem) {

+ 25 - 6
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -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
+    }
 })
 
 // 暴露组件属性给父组件调用

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

@@ -82,7 +82,7 @@ const SelectBank = defineAsyncComponent(() => import('./select-bank/index.vue'))
 // 搜索支行
 const SearchBank = defineAsyncComponent(() => import('./search-bank/index.vue'))
 
-const { formData, onSubmit, banklist, bankInfo, system_1010, system_1013, smsVerificationCode, system_1016 } = useDoBankSign()
+const { formData, onSubmit, banklist, bankInfo, system_1010, system_1013, smsVerificationCode } = useDoBankSign()
 const showModal = shallowRef(true)
 const refresh = shallowRef(false) // 是否刷新父组件数据
 const formRef = shallowRef<FormInstance>()