Procházet zdrojové kódy

fix(财务模块): 修复应收应付列表对话框关闭逻辑和数据传递问题

liujt před 4 měsíci
rodič
revize
4983abb6ac

+ 3 - 2
src/views/financialManage/payableManage/components/paymentListDialog.vue

@@ -7,7 +7,7 @@
     :append-to-body="true"
     :close-on-click-modal="false"
     width="60%"
-    :before-close="cancel"
+    :before-close="cache"
     :maxable="true"
     :resizable="true"
   >
@@ -299,6 +299,7 @@
     },
     data() {
       return {
+        title: '应付列表',
         detailDialogFlag1: false,
         paymentType,
         invoiceStatusOp,
@@ -336,7 +337,7 @@
       done(data){
         console.log(data,'data')
 
-        this.$emit('receivableDone',data)
+        this.$emit('receivableDone',[data])
         this.cache()
       },
       cache(){

+ 11 - 10
src/views/financialManage/receivableManage/components/receivableDialog.vue

@@ -7,7 +7,7 @@
     :append-to-body="true"
     :close-on-click-modal="false"
     width="60%"
-    :before-close="cancel"
+    :before-close="cache"
     :maxable="true"
     :resizable="true"
   >
@@ -273,14 +273,14 @@
             return _row.externalId? '已推送' : '未推送';
           }
         },
-        {
-          minWidth: 100,
-          prop: 'createTime',
-          label: '创建时间',
-          align: 'center',
-          slot: 'createTime',
-          showOverflowTooltip: true
-        },
+        // {
+        //   minWidth: 100,
+        //   prop: 'createTime',
+        //   label: '创建时间',
+        //   align: 'center',
+        //   slot: 'createTime',
+        //   showOverflowTooltip: true
+        // },
           {
             minWidth: 100,
             prop: 'approvalStatus',
@@ -307,6 +307,7 @@
     },
     data() {
       return {
+        title: '应收列表',
         detailDialogFlag1: false,
         paymentStatus,
         invoiceStatusOp,
@@ -344,7 +345,7 @@
       done(data){
         console.log(data,'data')
 
-        this.$emit('receivableDone',data)
+        this.$emit('receivableDone',[data])
         this.cache()
       },
       cache(){