|
@@ -401,16 +401,16 @@
|
|
|
sum += Number(r.invoiceAmount);
|
|
sum += Number(r.invoiceAmount);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if (val && +val > +item.unInvoiceAmount) {
|
|
|
|
|
- this.$message.error('物品开票金额不能大于未开票金额');
|
|
|
|
|
- this.$set(item, 'invoiceAmount', '');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- if (sum > item.defaultAmountTotalPrice) {
|
|
|
|
|
- this.$message.error('物品开票金额不能大于本次开票合计');
|
|
|
|
|
- this.$set(item, 'invoiceAmount', '');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (val && +val > +item.unInvoiceAmount) {
|
|
|
|
|
+ // this.$message.warning('物品开票金额不能大于未开票金额');
|
|
|
|
|
+ // this.$set(item, 'invoiceAmount', '');
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (sum > item.defaultAmountTotalPrice) {
|
|
|
|
|
+ // this.$message.warning('物品开票金额不能大于本次开票合计');
|
|
|
|
|
+ // this.$set(item, 'invoiceAmount', '');
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
this.$set(item, 'invoiceAmount', val);
|
|
this.$set(item, 'invoiceAmount', val);
|
|
|
const amountTotalPrice = this.fromPrecision(sum);
|
|
const amountTotalPrice = this.fromPrecision(sum);
|
|
|
const targetItems = this.tableForm.detailList.filter(d => d.key === key);
|
|
const targetItems = this.tableForm.detailList.filter(d => d.key === key);
|