Jelajahi Sumber

feat: 对账单字段

liujt 2 minggu lalu
induk
melakukan
1806dd890d

+ 9 - 2
src/views/saleManage/saleOrder/accountstatement/components/accountDetailTable.vue

@@ -8,7 +8,7 @@
         :columns="columns"
         max-height="500px"
         :datasource="flatList"
-        cache-key="account-detail-table"
+        :cache-key="cacheKeyUrl"
         class="time-form"
       >
         <template v-slot:toolbar>
@@ -165,6 +165,7 @@
 
 <script>
   import { parameterGetByCode } from '@/api/main/index.js';
+  import { pricingWayList } from '@/enum/dict.js';
 
   export default {
     name: 'accountDetailTable',
@@ -184,6 +185,7 @@
     },
     data() {
       return {
+        cacheKeyUrl: 'eom-202608171423-account-detail-table',
         isTaxRate: 0,
         flatList: [],
         totalStatementAmount: 0,
@@ -192,7 +194,7 @@
         batchType: '',
         batchValue: '',
         batchLabel: '',
-        
+        columnsVersion: 1,
       };
     },
     computed: {
@@ -200,6 +202,7 @@
         return this.dialogType === 'view';
       },
       columns() {
+        let columnsVersion = this.columnsVersion;
         return [
           {
             width: 60,
@@ -383,6 +386,10 @@
             prop: 'pricingWay',
             label: '计价方式',
             align: 'center',
+            formatter: (row, column) => {
+              return pricingWayList.find((item) => item.id == row.pricingWay)
+                ?.name;
+            }
           },
         ]
       }

+ 3 - 2
src/views/saleManage/saleOrder/accountstatement/components/addAccountDialog.vue

@@ -436,8 +436,9 @@
             ...this.dataForm,
             totalAdvanceConfirmAmount,
             totalReceivableAmount,
-            orderList: this.datasource,
-            receivableList: this.receivableList
+            productList: this.datasource,
+            receivableList: this.receivableList,
+            statReceipt: this.statReceipt
             // recorpayList: this.recorpayList
           };
           this.saveLoading = true;

+ 2 - 1
src/views/saleManage/saleOrder/accountstatement/components/receivableInfo.vue

@@ -37,7 +37,7 @@
         :columns="columns"
         max-height="400px"
         :datasource="receivableList"
-        cache-key="account-receivable-table"
+        :cache-key="cacheKeyUrl"
         class="time-form"
       >
         <template v-slot:fundType="scope">
@@ -155,6 +155,7 @@
     },
     data() {
       return {
+        cacheKeyUrl: 'eom-202608171425-account-receivable-table',
         paymentTypeOp,
         transactionMethodsOp,
         paymentStatusOp: paymentStatus,