浏览代码

fix(发票管理): 修复新增发票时业务ID未传递的问题

liujt 4 月之前
父节点
当前提交
c63edcd8a9

+ 3 - 1
src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

@@ -631,6 +631,7 @@
     },
     data() {
       return {
+        businessId: '',
         paymentTypeOp,
         fullscreen: false,
         receivableDialogFlag: false,
@@ -678,6 +679,7 @@
     methods: {
       //从发票管理新增发票初始化
       async init(row = {}, type) {
+        this.businessId = row.id || '';
         this.title = type == 'add' ? '新增' : '修改';
         console.log('row', row, type);
         this.dialogType = type;
@@ -1175,7 +1177,7 @@
       },
       //提交-开启流程
       async handleSub(id = '') {
-        let data = await invoiceApplyInfoV2API(id);
+        let data = await invoiceApplyInfoV2API(this.businessId || id);
         this.processSubmitDialogFlag = true;
         let key =
           data.type == 1 ? 'fin_invoice_apply' : 'fin_invoice_receive_apply';

+ 1 - 1
src/views/financialManage/invoiceManage/index.vue

@@ -130,7 +130,7 @@
       ref="addOrEditDialogNewRef"
       :add-or-edit-dialog-flag.sync="addOrEditDialogNewFlag"
       v-if="addOrEditDialogNewFlag"
-      @success="reload"
+      @reload="reload"
     />
   </div>
 </template>