|
@ -4,7 +4,7 @@ import { ref, nextTick, onMounted, watch } from "vue"; |
|
|
import request from "../../request/index.js"; |
|
|
import request from "../../request/index.js"; |
|
|
import AppForm from "../../components/form/index.js"; |
|
|
import AppForm from "../../components/form/index.js"; |
|
|
import AppTable from "../../components/table/index.js"; |
|
|
import AppTable from "../../components/table/index.js"; |
|
|
import { getUrl } from "../../request/index.js"; |
|
|
import extraProperties from "../../models/_extraProperties.js"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { AppForm, AppTable }, |
|
|
components: { AppForm, AppTable }, |
|
@ -13,22 +13,22 @@ export default { |
|
|
<el-row style="height:calc(100vh - 160px);" v-loading="loading"> |
|
|
<el-row style="height:calc(100vh - 160px);" v-loading="loading"> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-tabs> |
|
|
<el-tabs> |
|
|
<el-tab-pane label="发票和结算分组对应关系" v-if="model.invoicE_MAP_GROUP.length"> |
|
|
<el-tab-pane :label="columns1.title" v-if="model.invoicE_MAP_GROUP.length"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
|
<app-table :data="model.invoicE_MAP_GROUP" :columns="columns1" /> |
|
|
<app-table :data="model.invoicE_MAP_GROUP" :columns="columns1" /> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="发票明细" v-if="model.invoicE_WAIT_DETAIL.length"> |
|
|
<el-tab-pane :label="columns2.title" v-if="model.invoicE_WAIT_DETAIL.length"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
|
<app-table :data="model.invoicE_WAIT_DETAIL" :columns="columns2" /> |
|
|
<app-table :data="model.invoicE_WAIT_DETAIL" :columns="columns2" /> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="已结分组包含不可结算零件" v-if="model.invoicE_NOT_SETTLE.length"> |
|
|
<el-tab-pane :label="columns3.title" v-if="model.invoicE_NOT_SETTLE.length"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
|
<app-table :data="model.invoicE_NOT_SETTLE" :columns="columns3" /> |
|
|
<app-table :data="model.invoicE_NOT_SETTLE" :columns="columns3" /> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="发票调整明细" v-if="model.adJ_DETAIL.length"> |
|
|
<el-tab-pane :label="columns4.title" v-if="model.adJ_DETAIL.length"> |
|
|
<el-scrollbar> |
|
|
<el-scrollbar> |
|
|
<app-table :data="model.adJ_DETAIL" :columns="columns4" /> |
|
|
<app-table :data="model.adJ_DETAIL" :columns="columns4" /> |
|
|
</el-scrollbar> |
|
|
</el-scrollbar> |
|
@ -157,110 +157,132 @@ export default { |
|
|
adJ_DETAIL: [], |
|
|
adJ_DETAIL: [], |
|
|
}); |
|
|
}); |
|
|
//
|
|
|
//
|
|
|
const columns1 = [ |
|
|
const columns1 = { |
|
|
{ |
|
|
type: "object", |
|
|
dataKey: "invbillNum", |
|
|
title: "发票和结算分组对应关系", |
|
|
title: "发票号", |
|
|
properties: { |
|
|
}, |
|
|
invbillNum: { |
|
|
{ |
|
|
type: "string", |
|
|
dataKey: "invGroupNum", |
|
|
title: "发票号", |
|
|
title: "发票分组号", |
|
|
}, |
|
|
}, |
|
|
invGroupNum: { |
|
|
{ |
|
|
type: "string", |
|
|
dataKey: "settleGroupNum", |
|
|
title: "发票分组号", |
|
|
title: "结算分组号", |
|
|
}, |
|
|
}, |
|
|
settleGroupNum: { |
|
|
{ |
|
|
type: "string", |
|
|
dataKey: "amt", |
|
|
title: "结算分组号", |
|
|
title: "金额", |
|
|
}, |
|
|
}, |
|
|
|
|
|
]; |
|
|
|
|
|
const columns2 = [ |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "invbillNum", |
|
|
|
|
|
title: "发票号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "invGroupNum", |
|
|
|
|
|
title: "发票分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "lu", |
|
|
|
|
|
title: "零件号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "price", |
|
|
|
|
|
title: "单价", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "qty", |
|
|
|
|
|
title: "数量", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "amt", |
|
|
|
|
|
title: "金额", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "bussiessType", |
|
|
|
|
|
title: "业务分类", |
|
|
|
|
|
}, |
|
|
|
|
|
]; |
|
|
|
|
|
const columns3 = [ |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "invGroupNum", |
|
|
|
|
|
title: "发票分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "settleGroupNum", |
|
|
|
|
|
title: "结算分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "lu", |
|
|
|
|
|
title: "可结算分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "lu1", |
|
|
|
|
|
title: "不可结算分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
]; |
|
|
|
|
|
const columns4 = [ |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "oldInvBillNum", |
|
|
|
|
|
title: "作废发票号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "invBillNum", |
|
|
|
|
|
title: "发票号", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "settleDate", |
|
|
|
|
|
title: "下线日期", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
dataKey: "invGroupNum", |
|
|
|
|
|
title: "发票分组号", |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
}; |
|
|
dataKey: "lu", |
|
|
const columns2 = { |
|
|
title: "零件号", |
|
|
type: "object", |
|
|
|
|
|
title: "发票明细", |
|
|
|
|
|
properties: { |
|
|
|
|
|
invbillNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "发票号", |
|
|
|
|
|
}, |
|
|
|
|
|
invGroupNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "发票分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
lu: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "零件号", |
|
|
|
|
|
}, |
|
|
|
|
|
price: { |
|
|
|
|
|
type: "number", |
|
|
|
|
|
title: "单价", |
|
|
|
|
|
}, |
|
|
|
|
|
qty: { |
|
|
|
|
|
type: "number", |
|
|
|
|
|
title: "数量", |
|
|
|
|
|
}, |
|
|
|
|
|
amt: { |
|
|
|
|
|
type: "number", |
|
|
|
|
|
title: "金额", |
|
|
|
|
|
}, |
|
|
|
|
|
bussiessType: { |
|
|
|
|
|
type: "number", |
|
|
|
|
|
title: "业务分类", |
|
|
|
|
|
}, |
|
|
|
|
|
extraProperties, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
}; |
|
|
dataKey: "pn", |
|
|
const columns3 = { |
|
|
title: "标识号", |
|
|
type: "object", |
|
|
|
|
|
title: "已结分组包含不可结算零件", |
|
|
|
|
|
properties: { |
|
|
|
|
|
invGroupNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "发票分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
settleGroupNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "结算分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
lu: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "可结算分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
lu1: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "不可结算分组号", |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
}; |
|
|
dataKey: "qty", |
|
|
const columns4 = { |
|
|
title: "数量", |
|
|
type: "object", |
|
|
|
|
|
title: "发票调整明细", |
|
|
|
|
|
properties: { |
|
|
|
|
|
oldInvBillNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "作废发票号", |
|
|
|
|
|
}, |
|
|
|
|
|
invBillNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "发票号", |
|
|
|
|
|
}, |
|
|
|
|
|
settleDate: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "下线日期", |
|
|
|
|
|
input: "datetime", |
|
|
|
|
|
}, |
|
|
|
|
|
invGroupNum: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "发票分组号", |
|
|
|
|
|
}, |
|
|
|
|
|
lu: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "零件号", |
|
|
|
|
|
}, |
|
|
|
|
|
pn: { |
|
|
|
|
|
type: "string", |
|
|
|
|
|
title: "标识号", |
|
|
|
|
|
}, |
|
|
|
|
|
qty: { |
|
|
|
|
|
type: "number", |
|
|
|
|
|
title: "数量", |
|
|
|
|
|
}, |
|
|
|
|
|
groupNum: { |
|
|
|
|
|
type: "number", |
|
|
|
|
|
title: "结算分组", |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
}; |
|
|
dataKey: "groupNum", |
|
|
const columns5 = { |
|
|
title: "结算分组", |
|
|
type: "object", |
|
|
|
|
|
title: "", |
|
|
|
|
|
properties: { |
|
|
|
|
|
selection: { |
|
|
|
|
|
input: "selection", |
|
|
|
|
|
}, |
|
|
|
|
|
...columns4.properties, |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
}; |
|
|
const columns5 = columns4.filter((o) => o.dataKey !== "oldInvBillNum" && o.dataKey !== "invGroupNum"); |
|
|
delete columns5.properties["oldInvBillNum"]; |
|
|
columns5.unshift({ |
|
|
delete columns5.properties["invGroupNum"]; |
|
|
input: "selection", |
|
|
|
|
|
}); |
|
|
|
|
|
//显示重开发票对话框
|
|
|
//显示重开发票对话框
|
|
|
const setupDialogVisable = ref(false); |
|
|
const setupDialogVisable = ref(false); |
|
|
const setupRef = ref(1); |
|
|
const setupRef = ref(1); |
|
@ -437,7 +459,6 @@ export default { |
|
|
columns2, |
|
|
columns2, |
|
|
columns3, |
|
|
columns3, |
|
|
columns4, |
|
|
columns4, |
|
|
columns4, |
|
|
|
|
|
columns5, |
|
|
columns5, |
|
|
showSetupDialog, |
|
|
showSetupDialog, |
|
|
setupRef, |
|
|
setupRef, |
|
|