|
|
@@ -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 {
|