修改发票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>
@ -295,35 +299,36 @@
<!--单据业务详情-->
<el-tab-pane>
<span slot="label">单据 {{ currentRow.billNo }}-单据详情</span>
<el-table :data="codeDetailList" style="width: 100%" border row-key="id" highlight-current-row>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="发票编码" prop="invoiceCodes" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="物资名称" prop="coName" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" width="150" prop="spec"></el-table-column>
<el-table-column label="批次号" width="100" prop="batchNo"></el-table-column>
<el-table-column label="数量" prop="count" width="100"></el-table-column>
<el-table-column label="价格" prop="price" width="100"></el-table-column>
<el-table-column label="金额" prop="amount" width="100"></el-table-column>
<el-table-column label="生产日期" prop="productDate" width="100"></el-table-column>
<el-table-column label="失效日期" prop="expireDate" width="100"></el-table-column>
<el-table-column width="100" label="计量单位" prop="measname"></el-table-column>
<el-table-column label="生产企业" prop="manufacturer" width="160" show-overflow-tooltip></el-table-column>
<el-table-column label="注册/备案号" width="160" prop="certCode" show-overflow-tooltip></el-table-column>
<el-table-column label="扫码数量" prop="reCount" width="100"></el-table-column>
</el-table>
<pagination
v-show="codeTotal>0"
:total="codeTotal"
:page.sync="codeQuery.page"
:limit.sync="codeQuery.limit"
@pagination="getCodeDetailList"
/>
<el-table :data="codeDetailList" style="width: 100%" border row-key="id" highlight-current-row>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="发票编码" prop="invoiceCodes" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="物资名称" prop="coName" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" width="150" prop="spec"></el-table-column>
<el-table-column label="批次号" width="100" prop="batchNo"></el-table-column>
<el-table-column label="数量" prop="count" width="100"></el-table-column>
<el-table-column label="价格" prop="price" width="100"></el-table-column>
<el-table-column label="金额" prop="amount" width="100"></el-table-column>
<el-table-column label="生产日期" prop="productDate" width="100"></el-table-column>
<el-table-column label="失效日期" prop="expireDate" width="100"></el-table-column>
<el-table-column width="100" label="计量单位" prop="measname"></el-table-column>
<el-table-column label="生产企业" prop="manufacturer" width="160" show-overflow-tooltip></el-table-column>
<el-table-column label="注册/备案号" width="160" prop="certCode" show-overflow-tooltip></el-table-column>
<el-table-column label="扫码数量" prop="reCount" width="100"></el-table-column>
</el-table>
<pagination
v-show="codeTotal>0"
:total="codeTotal"
:page.sync="codeQuery.page"
:limit.sync="codeQuery.limit"
@pagination="getCodeDetailList"
/>
</el-tab-pane>
</el-tabs>
<el-dialog
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
}
this.invoiceSelectRegByOrderVisible = true
//
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