修改发票bug

fp_dev
郑明梁 2 years ago
parent 536e6f9f7d
commit 7aeb4dfc8f

@ -74,8 +74,13 @@ export function deleteInvoiceByOrderFk(params) {
});
}
export function checkInvoiceCode(params) {
return axios({
url: "/udiwms/inout/invoice/checkInvoiceCode",
method: "post",
data: params
});
}
export function updateorderBiz(params) {
return axios({

@ -13,12 +13,16 @@
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="发票代码:">
<el-input v-model="invoiceQuery.invoiceCode" placeholder="请输入发票代码" style="width: 90%" clearable="true" ></el-input>
<el-input v-model="invoiceQuery.invoiceCode" placeholder="请输入发票代码" style="width: 90%"
clearable="true"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="机器编码:">
<el-input v-model="invoiceQuery.machineNo" placeholder="请输入机器编码" style="width: 90%" clearable="true" ></el-input>
<el-input v-model="invoiceQuery.machineNo" placeholder="请输入机器编码" style="width: 90%"
clearable="true"
></el-input>
</el-form-item>
</el-col>
</el-row>
@ -324,6 +328,7 @@
title="发票登记"
:visible.sync="checkInvoice"
width="60%"
:before-close="closeAcceptDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="checkInvoice"
@ -543,6 +548,9 @@ export default {
if (res.code === 20000) {
this.invoiceList = res.data.list || []
this.invoicTotal = res.data.total || 0
this.productDetailList = []
this.codeDetailList = []
this.orderList = []
} else {
this.$message.error(res.message)
this.invoiceList = []
@ -737,7 +745,7 @@ export default {
this.codeDetailList = []
this.codeTotal = 0
})
},
}
},
created() {
let supId = this.$store.getters.customerId

@ -248,7 +248,7 @@ import {
uploadInvoice,
updateOrder,
filterBizOrderList,
updateorderBiz, parseInvoice, deleteInvoiceByOrderFk
updateorderBiz, parseInvoice, deleteInvoiceByOrderFk,checkInvoiceCode
} from '@/api/inout/orderDetailBiz'
import AcceptOrder from '@/views/inout/DialogReviewOrder'
import DialogInvoice from '@/views/inout/DialogInvoice'
@ -705,12 +705,22 @@ export default {
/** -------------------------------------------------后续加的js------------------------------------------------------------- */
/** * 选入单据页面 */
selectOrderFunction() {
if (this.$isBlank(this.inputQuery.invoiceEncode)) {
this.$message.error('发票编码不能为空!')
return
}
//
checkInvoiceCode({invoiceEncode:this.inputQuery.invoiceEncode})
.then((response) => {
if (response.code === 20000) {
this.invoiceSelectRegByOrderVisible = true
} else {
this.$message.error(response.message)
}
})
.catch((response) => {
this.$message.error(response.message)
})
},
closeAcceptDialog(){
this.invoiceSelectRegByOrderVisible = false

Loading…
Cancel
Save