|
|
@ -186,7 +186,8 @@
|
|
|
|
<el-tab-pane>
|
|
|
|
<el-tab-pane>
|
|
|
|
<span slot="label">单据 {{ currentRow.billNo }}-单据详情</span>
|
|
|
|
<span slot="label">单据 {{ currentRow.billNo }}-单据详情</span>
|
|
|
|
<el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border
|
|
|
|
<el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border
|
|
|
|
row-key="id" @row-click="BizDetail" highlight-current-row
|
|
|
|
@current-change="BizDetail"
|
|
|
|
|
|
|
|
row-key="id" highlight-current-row
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -272,7 +273,6 @@
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tabs type="border-card" style="margin: 15px">
|
|
|
|
<el-tabs type="border-card" style="margin: 15px">
|
|
|
|
<!--单据业务详情-->
|
|
|
|
<!--单据业务详情-->
|
|
|
|
<el-tab-pane>
|
|
|
|
<el-tab-pane>
|
|
|
@ -439,8 +439,6 @@ import { previewImage } from '@/api/purchase/supCompany'
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
const formJson = {
|
|
|
|
site_id: "",
|
|
|
|
site_id: "",
|
|
|
|
site_name: "",
|
|
|
|
site_name: "",
|
|
|
@ -616,12 +614,12 @@ export default {
|
|
|
|
insertInvoice(row)
|
|
|
|
insertInvoice(row)
|
|
|
|
.then(response => {
|
|
|
|
.then(response => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.closeInvoice();
|
|
|
|
this.closeInvoice(row);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch((response) => {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -659,14 +657,18 @@ export default {
|
|
|
|
console.log(this.imgList)
|
|
|
|
console.log(this.imgList)
|
|
|
|
this.imgViewerVisible = true;
|
|
|
|
this.imgViewerVisible = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
const m = (e) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
};
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeImgViewer() {
|
|
|
|
closeImgViewer() {
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
const m = (e) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
};
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -899,13 +901,14 @@ export default {
|
|
|
|
this.bizQuery.page = 1;
|
|
|
|
this.bizQuery.page = 1;
|
|
|
|
this.getBizDetailList();
|
|
|
|
this.getBizDetailList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getBizDetailList() {
|
|
|
|
getBizDetailList(row) {
|
|
|
|
if (isBlank(this.currentRow.billNo)) {
|
|
|
|
if (isBlank(this.currentRow.billNo)) {
|
|
|
|
this.$message.error("请先选择需要查询的单据!")
|
|
|
|
this.$message.error("请先选择需要查询的单据!")
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.bizDetailLoading = true;
|
|
|
|
this.bizDetailLoading = true;
|
|
|
|
this.bizQuery.orderIdFk = this.currentRow.billNo;
|
|
|
|
this.bizQuery.orderIdFk = this.currentRow.billNo;
|
|
|
|
|
|
|
|
this.bizQuery.bizIdFk = row.id;
|
|
|
|
filterListInvoice(this.bizQuery).then((res) => {
|
|
|
|
filterListInvoice(this.bizQuery).then((res) => {
|
|
|
|
this.bizDetailLoading = false;
|
|
|
|
this.bizDetailLoading = false;
|
|
|
|
if (res.code === 20000) {
|
|
|
|
if (res.code === 20000) {
|
|
|
@ -923,9 +926,9 @@ export default {
|
|
|
|
this.bizTotal = 0;
|
|
|
|
this.bizTotal = 0;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
BizDetail(){
|
|
|
|
BizDetail(row) {
|
|
|
|
this.bizQuery.page = 1;
|
|
|
|
this.bizQuery.page = 1;
|
|
|
|
this.getBizDetailList();
|
|
|
|
this.getBizDetailList(row);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -956,9 +959,9 @@ export default {
|
|
|
|
this.getBizDetailList();
|
|
|
|
this.getBizDetailList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeInvoice() {
|
|
|
|
closeInvoice(row) {
|
|
|
|
this.InvoiceRegisterv = false;
|
|
|
|
this.InvoiceRegisterv = false;
|
|
|
|
this.getBizDetailList();
|
|
|
|
this.getBizDetailList(row);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//开始验收
|
|
|
|
//开始验收
|
|
|
|