hurx 3 дней назад
Родитель
Сommit
7752073ff6

+ 6 - 10
src/api/customer/bank/types.ts

@@ -34,6 +34,7 @@ export interface BankVO {
    */
   bankNo: string;
 
+  isture: number;
 }
 
 export interface BankForm extends BaseEntity {
@@ -75,7 +76,7 @@ export interface BankForm extends BaseEntity {
   /**
    * 账户有效性标识(1-有效, 0-无效)
    */
-  isture?: string;
+  isture?: number;
 
   /**
    * 纳税人识别号
@@ -106,11 +107,9 @@ export interface BankForm extends BaseEntity {
    * 工商地址
    */
   businessAddress?: string;
-
 }
 
 export interface BankQuery extends PageQuery {
-
   /**
    * 账户序号
    */
@@ -146,11 +145,8 @@ export interface BankQuery extends PageQuery {
    */
   bankNo?: string;
 
-    /**
-     * 日期范围参数
-     */
-    params?: any;
+  /**
+   * 日期范围参数
+   */
+  params?: any;
 }
-
-
-

+ 2 - 2
src/views/customer/info/components/AccountTab.vue

@@ -3,9 +3,9 @@
     <div class="info-section">
       <div class="section-title-row">
         <div class="section-title-left">
-          <span class="section-title-text">付款信息</span>
+          <span class="section-title-text">财务信息</span>
         </div>
-        <el-button v-if="!isViewMode" type="primary" icon="Plus" @click="emit('addPayment')">新增付款信息</el-button>
+        <el-button v-if="!isViewMode" type="primary" icon="Plus" @click="emit('addPayment')">新增财务信息</el-button>
       </div>
       <el-table :data="paymentInfoList" border style="width: 100%">
         <el-table-column prop="isture" label="是否主账号" align="center">

+ 6 - 4
src/views/customer/info/detail.vue

@@ -181,8 +181,8 @@
           <el-input v-model="paymentForm.businessAddress" placeholder="工商地址" disabled />
         </el-form-item>
 
-        <el-form-item label="是否主账号:" prop="num">
-          <el-radio-group v-model="paymentForm.num">
+        <el-form-item label="是否主账号:" prop="isture">
+          <el-radio-group v-model="paymentForm.isture">
             <el-radio :label="1">是</el-radio>
             <el-radio :label="0">否</el-radio>
           </el-radio-group>
@@ -855,7 +855,7 @@ const paymentForm = ref<BankForm>({
   bankInfoNo: undefined,
   bankName: '',
   bankNo: '',
-  isture: '1',
+  isture: 1,
   circlesName: '',
   phone: '',
   invoiceTypeNo: undefined,
@@ -2554,6 +2554,7 @@ const handleViewPayment = async (row: any) => {
   try {
     const res = await getBank(row.id);
     Object.assign(paymentForm.value, res.data);
+    paymentForm.value.isture = Number(res.data.isture);
     paymentDialogTitle.value = '查看付款信息';
     paymentDialogReadonly.value = true;
     paymentDialogVisible.value = true;
@@ -2568,6 +2569,7 @@ const handleEditPayment = async (row: any) => {
   try {
     const res = await getBank(row.id);
     Object.assign(paymentForm.value, res.data);
+    paymentForm.value.isture = Number(res.data.isture);
     // 从供应商详情中获取企业工商名称和工商地址
     paymentForm.value.businessName = detailData.value.businessName || '';
     paymentForm.value.businessAddress = detailData.value.businessAddress || '';
@@ -2599,7 +2601,7 @@ const handleAddPayment = () => {
     bankInfoNo: undefined,
     bankName: '',
     bankNo: '',
-    isture: '1',
+    isture: 1,
     circlesName: detailData.value.socialCreditCode || '',
     phone: '',
     invoiceTypeNo: undefined,