发票bug修复

dev
郑明梁 2 years ago
parent 767c7ad844
commit c342391e65

@ -449,7 +449,7 @@ export default {
imgList: [], imgList: [],
imgViewerVisible: false, imgViewerVisible: false,
cowEn:null,
// //
orderLoading: false, orderLoading: false,
orderList: [], orderList: [],
@ -686,6 +686,7 @@ export default {
// this.resultDetailList = []; // this.resultDetailList = [];
}, },
handleInvoiceChange(val) { handleInvoiceChange(val) {
this.cowEn=val;
this.getOrderList(val) this.getOrderList(val)
this.getProductDetailList(val) this.getProductDetailList(val)
}, },
@ -694,11 +695,11 @@ export default {
getProductDetailList(row) { getProductDetailList(row) {
this.productDetailLoading = true this.productDetailLoading = true
this.productDetailList = [] this.productDetailList = []
if (row == null || isBlank(row.invoiceEncode)) { if (this.cowEn == null || isBlank(this.cowEn.invoiceEncode)) {
this.$message.error('请选择对应发票!') this.$message.error('请选择对应发票!')
return return
} }
this.productQuery.invoiceEncode = row.invoiceEncode this.productQuery.invoiceEncode = this.cowEn.invoiceEncode
productDetail(this.productQuery).then((res) => { productDetail(this.productQuery).then((res) => {
this.productDetailLoading = false this.productDetailLoading = false
if (res.code === 20000) { if (res.code === 20000) {

Loading…
Cancel
Save