Browse Source

fix: 修复对话框关闭时未销毁组件及表单重置问题

liujt 5 tháng trước cách đây
mục cha
commit
8c53f95295

+ 14 - 14
src/views/financialManage/invoiceManage/components/collectionPlanDialog.vue

@@ -51,7 +51,7 @@
   import { getAccountstatementList } from '@/api/saleManage/accountstatement';
   import accountInfoDialog from './accountInfoDialog.vue';
   import { shippingModeOp, transactionMethodsOp } from '@/enum/dict.js';
-
+  import { receiptPaymentPlanPage } from '@/api/financialManage/payAndCollectPlan';
   export default {
     mixins: [dictMixins, tabMixins],
     components: {
@@ -366,16 +366,16 @@
               return _row.overdueStatus == 1 ? '逾期中' : '未逾期';
             }
           },
-          {
-            columnKey: 'action',
-            label: '操作',
-            width: 180,
-            align: 'center',
-            resizable: false,
-            slot: 'action',
-            showOverflowTooltip: true,
-            fixed: 'right'
-          }
+          // {
+          //   columnKey: 'action',
+          //   label: '操作',
+          //   width: 180,
+          //   align: 'center',
+          //   resizable: false,
+          //   slot: 'action',
+          //   showOverflowTooltip: true,
+          //   fixed: 'right'
+          // }
         ]
       }
     },
@@ -409,12 +409,12 @@
         if (this.contactData.id) {
           where['contactId'] = this.contactData.id;
         }
-        return getAccountstatementList({
+        return receiptPaymentPlanPage({
           pageNum: page,
           size: limit,
           ...where,
-          reviewStatus: 2,
-          type: this.type
+          // reviewStatus: 2,
+          sourceType: this.type
         });
       },
 

+ 1 - 1
src/views/salesServiceManagement/components/info.vue

@@ -1943,7 +1943,7 @@ export default {
       if (this.$refs.sparePartsRef) {
         this.$refs.sparePartsRef.clearList();
       }
-      this.$refs.form.resetFields();
+      // this.$refs.form.resetFields();
     },
     saleorderDialogOpen() {
       // if (!this.form?.contractInfo?.id) {

+ 1 - 0
src/views/salesServiceManagement/demandList/components/addDialog.vue

@@ -8,6 +8,7 @@
     width="85%"
     :maxable="true"
     append-to-body
+    destroy-on-close
     @close="handleClose"
   >
     <info