Przeglądaj źródła

fix: 修改 createInvoice1 方法,支持已付管理新增发票功能

xieyong 1 tydzień temu
rodzic
commit
9cf2d139a1

+ 2 - 2
src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

@@ -1108,7 +1108,7 @@ import tabMixins from '@/mixins/tableColumnsMixin';
         // this.getPlanData(tableInfo)
       },
       //订单、合同列表
-      async createInvoice1(data, type, sourceType) {
+      async createInvoice1(data, type, sourceType, sourceCode) {
         console.log('createInvoice1~~~', data);
 
         this.$set(this.form, 'type', Number(type));
@@ -1118,7 +1118,7 @@ import tabMixins from '@/mixins/tableColumnsMixin';
         await this.init({}, 'add');
         let tempIds = []
         let tempNames = []
-        if(sourceType == 5) {
+        if(sourceType == 5 || (sourceCode && sourceCode == 'paid')) {
           tempIds = data.map((item) => item.detailId);
           tempNames = data.map((item) => item.detailCode);
         } else {