Merge remote-tracking branch 'origin/dev' into dev

dev
黄泽腾 2 years ago
commit aa9022af13

@ -314,7 +314,6 @@ export default {
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
invCode: this.$store.getters.locInvCode
}, },
corpLoading: false, corpLoading: false,
@ -601,6 +600,7 @@ export default {
}, },
getCodeDetailLists() { getCodeDetailLists() {
debugger
this.filterQuery.invoiceEncode = this.inputQuery.invoiceEncode this.filterQuery.invoiceEncode = this.inputQuery.invoiceEncode
this.filterQuery.vueType = 'supInvoice' this.filterQuery.vueType = 'supInvoice'
this.codeDetailLoading = true this.codeDetailLoading = true
@ -713,22 +713,26 @@ export default {
this.$message.error('发票编码不能为空!') this.$message.error('发票编码不能为空!')
return return
} }
// if(this.list.length==0){
checkInvoiceCode({invoiceEncode:this.inputQuery.invoiceEncode}) //
.then((response) => { checkInvoiceCode({invoiceEncode:this.inputQuery.invoiceEncode})
if (response.code === 20000) { .then((response) => {
this.invoiceSelectRegByOrderVisible = true if (response.code === 20000) {
} else { this.invoiceSelectRegByOrderVisible = true
} else {
this.$message.error(response.message)
}
})
.catch((response) => {
this.$message.error(response.message) this.$message.error(response.message)
} })
}) }else{
.catch((response) => { this.invoiceSelectRegByOrderVisible = true
this.$message.error(response.message) }
})
}, },
closeAcceptDialog(){ closeAcceptDialog(){
this.invoiceSelectRegByOrderVisible = false this.invoiceSelectRegByOrderVisible = false
this.getCodeDetailLists() this.getCodeDetailLists()
}, },
delectSub(row){ delectSub(row){
deleteInvoiceByOrderFk({billNo:row.billNo,invoiceEncode:this.inputQuery.invoiceEncode}) deleteInvoiceByOrderFk({billNo:row.billNo,invoiceEncode:this.inputQuery.invoiceEncode})
@ -787,7 +791,7 @@ export default {
} }
if(this.curInvoice.id!=null){ if(this.curInvoice.id!=null){
this.inputQuery=this.curInvoice this.inputQuery=this.curInvoice
this.getOrderDetail(); this.getOrderDetail();
} }
} }
} }

Loading…
Cancel
Save