|
|
|
@ -185,7 +185,7 @@
|
|
|
|
|
<!--单据业务详情-->
|
|
|
|
|
<el-tab-pane>
|
|
|
|
|
<span slot="label">单据 {{ currentRow.billNo }}-单据详情</span>
|
|
|
|
|
<el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border
|
|
|
|
|
<el-table :data="codeDetailList" style="width: 100%" border
|
|
|
|
|
@current-change="BizDetail"
|
|
|
|
|
row-key="id" highlight-current-row
|
|
|
|
|
>
|
|
|
|
@ -273,66 +273,66 @@
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tabs type="border-card" style="margin: 15px">
|
|
|
|
|
<!--单据业务详情-->
|
|
|
|
|
<el-tab-pane>
|
|
|
|
|
<span slot="label">单据 {{ currentRow.billNo }}-发票信息</span>
|
|
|
|
|
<el-table v-loading="bizDetailLoading" :data="bizDetailList" style="width: 100%" border
|
|
|
|
|
<el-table :data="bizDetailList" style="width: 100%" border
|
|
|
|
|
row-key="id"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="规格型号"
|
|
|
|
|
prop="ggxh"
|
|
|
|
|
label="物资名称"
|
|
|
|
|
prop="cpmctymc" width="150"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物资名称"
|
|
|
|
|
prop="cpmctymc"
|
|
|
|
|
label="规格型号" width="150"
|
|
|
|
|
prop="ggxh"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="批次号"
|
|
|
|
|
label="批次号" width="100"
|
|
|
|
|
prop="batchNo"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="机器编码"
|
|
|
|
|
label="机器编码" width="150"
|
|
|
|
|
prop="machineNo"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="发票代码"
|
|
|
|
|
label="发票代码" width="150"
|
|
|
|
|
prop="invoiceCode"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="发票编码"
|
|
|
|
|
label="发票编码" width="150"
|
|
|
|
|
prop="invoiceEncode"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="开票日期"
|
|
|
|
|
label="开票日期" width="150"
|
|
|
|
|
prop="invoiceDate"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="发票价格"
|
|
|
|
|
prop="price"
|
|
|
|
|
prop="price" width="100"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="生产日期"
|
|
|
|
|
label="生产日期" width="100"
|
|
|
|
|
prop="productDate"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="失效日期"
|
|
|
|
|
prop="expireDate"
|
|
|
|
|
prop="expireDate" width="100"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="备注"
|
|
|
|
|
prop="remark"
|
|
|
|
|
prop="remark" width="140"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="160">
|
|
|
|
|
<el-table-column label="操作" width="160" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
@ -440,8 +440,6 @@ import {previewImage} from '@/api/purchase/supCompany'
|
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
|
site_id: "",
|
|
|
|
|
site_name: "",
|
|
|
|
@ -591,6 +589,7 @@ export default {
|
|
|
|
|
resultDetailList: [],
|
|
|
|
|
acceptQuery: null,
|
|
|
|
|
acceptOrderVisible: false,
|
|
|
|
|
subRow: null,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer},
|
|
|
|
@ -614,7 +613,13 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
InvoiceRegister(row) {
|
|
|
|
|
insertInvoice(row)
|
|
|
|
|
|
|
|
|
|
this.$confirm('是否登记新的发票?', '提示', {
|
|
|
|
|
confirmButtonText: '确认',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.insertInvoice(row)
|
|
|
|
|
.then(response => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.closeInvoice(row);
|
|
|
|
@ -625,6 +630,10 @@ export default {
|
|
|
|
|
.catch((response) => {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onSubmit() {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -704,7 +713,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteInvoice(row) {
|
|
|
|
|
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
|
|
|
|
|
this.$confirm("此操作将永久删除该发票信息, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
@ -714,7 +723,7 @@ export default {
|
|
|
|
|
deleteById(params)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.getBizDetailList();
|
|
|
|
|
this.getBizDetailList(this.subRow);
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "删除成功!",
|
|
|
|
@ -911,6 +920,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.bizDetailLoading = true;
|
|
|
|
|
this.bizQuery.orderIdFk = this.currentRow.billNo;
|
|
|
|
|
this.bizQuery.batchNo = row.batchNo;
|
|
|
|
|
this.bizQuery.relId = row.bindRlFk;
|
|
|
|
|
filterListInvoice(this.bizQuery).then((res) => {
|
|
|
|
|
this.bizDetailLoading = false;
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
@ -929,11 +940,11 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
BizDetail(val){
|
|
|
|
|
|
|
|
|
|
BizDetail(row) {
|
|
|
|
|
this.bizQuery.page = 1;
|
|
|
|
|
this.bizQuery.productName=val.coName;
|
|
|
|
|
this.bizQuery.batchNo=val.batchNo;
|
|
|
|
|
this.getBizDetailList();
|
|
|
|
|
this.subRow = row;
|
|
|
|
|
this.getBizDetailList(row);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|