|
@ -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: "发票和结算分组对应关系", |
|
|
|
|
|
properties: { |
|
|
|
|
|
invbillNum: { |
|
|
|
|
|
type: "string", |
|
|
title: "发票号", |
|
|
title: "发票号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
invGroupNum: { |
|
|
dataKey: "invGroupNum", |
|
|
type: "string", |
|
|
title: "发票分组号", |
|
|
title: "发票分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
settleGroupNum: { |
|
|
dataKey: "settleGroupNum", |
|
|
type: "string", |
|
|
title: "结算分组号", |
|
|
title: "结算分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
dataKey: "amt", |
|
|
|
|
|
title: "金额", |
|
|
|
|
|
}, |
|
|
}, |
|
|
]; |
|
|
}; |
|
|
const columns2 = [ |
|
|
const columns2 = { |
|
|
{ |
|
|
type: "object", |
|
|
dataKey: "invbillNum", |
|
|
title: "发票明细", |
|
|
|
|
|
properties: { |
|
|
|
|
|
invbillNum: { |
|
|
|
|
|
type: "string", |
|
|
title: "发票号", |
|
|
title: "发票号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
invGroupNum: { |
|
|
dataKey: "invGroupNum", |
|
|
type: "string", |
|
|
title: "发票分组号", |
|
|
title: "发票分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
lu: { |
|
|
dataKey: "lu", |
|
|
type: "string", |
|
|
title: "零件号", |
|
|
title: "零件号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
price: { |
|
|
dataKey: "price", |
|
|
type: "number", |
|
|
title: "单价", |
|
|
title: "单价", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
qty: { |
|
|
dataKey: "qty", |
|
|
type: "number", |
|
|
title: "数量", |
|
|
title: "数量", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
amt: { |
|
|
dataKey: "amt", |
|
|
type: "number", |
|
|
title: "金额", |
|
|
title: "金额", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
bussiessType: { |
|
|
dataKey: "bussiessType", |
|
|
type: "number", |
|
|
title: "业务分类", |
|
|
title: "业务分类", |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
extraProperties, |
|
|
const columns3 = [ |
|
|
}, |
|
|
{ |
|
|
}; |
|
|
dataKey: "invGroupNum", |
|
|
const columns3 = { |
|
|
|
|
|
type: "object", |
|
|
|
|
|
title: "已结分组包含不可结算零件", |
|
|
|
|
|
properties: { |
|
|
|
|
|
invGroupNum: { |
|
|
|
|
|
type: "string", |
|
|
title: "发票分组号", |
|
|
title: "发票分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
settleGroupNum: { |
|
|
dataKey: "settleGroupNum", |
|
|
type: "string", |
|
|
title: "结算分组号", |
|
|
title: "结算分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
lu: { |
|
|
dataKey: "lu", |
|
|
type: "string", |
|
|
title: "可结算分组号", |
|
|
title: "可结算分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
lu1: { |
|
|
dataKey: "lu1", |
|
|
type: "string", |
|
|
title: "不可结算分组号", |
|
|
title: "不可结算分组号", |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
}, |
|
|
const columns4 = [ |
|
|
}; |
|
|
{ |
|
|
const columns4 = { |
|
|
dataKey: "oldInvBillNum", |
|
|
type: "object", |
|
|
|
|
|
title: "发票调整明细", |
|
|
|
|
|
properties: { |
|
|
|
|
|
oldInvBillNum: { |
|
|
|
|
|
type: "string", |
|
|
title: "作废发票号", |
|
|
title: "作废发票号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
invBillNum: { |
|
|
dataKey: "invBillNum", |
|
|
type: "string", |
|
|
title: "发票号", |
|
|
title: "发票号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
settleDate: { |
|
|
dataKey: "settleDate", |
|
|
type: "string", |
|
|
title: "下线日期", |
|
|
title: "下线日期", |
|
|
|
|
|
input: "datetime", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
invGroupNum: { |
|
|
dataKey: "invGroupNum", |
|
|
type: "string", |
|
|
title: "发票分组号", |
|
|
title: "发票分组号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
lu: { |
|
|
dataKey: "lu", |
|
|
type: "string", |
|
|
title: "零件号", |
|
|
title: "零件号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
pn: { |
|
|
dataKey: "pn", |
|
|
type: "string", |
|
|
title: "标识号", |
|
|
title: "标识号", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
qty: { |
|
|
dataKey: "qty", |
|
|
type: "number", |
|
|
title: "数量", |
|
|
title: "数量", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
groupNum: { |
|
|
dataKey: "groupNum", |
|
|
type: "number", |
|
|
title: "结算分组", |
|
|
title: "结算分组", |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
}, |
|
|
const columns5 = columns4.filter((o) => o.dataKey !== "oldInvBillNum" && o.dataKey !== "invGroupNum"); |
|
|
}; |
|
|
columns5.unshift({ |
|
|
const columns5 = { |
|
|
|
|
|
type: "object", |
|
|
|
|
|
title: "", |
|
|
|
|
|
properties: { |
|
|
|
|
|
selection: { |
|
|
input: "selection", |
|
|
input: "selection", |
|
|
}); |
|
|
}, |
|
|
|
|
|
...columns4.properties, |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
delete columns5.properties["oldInvBillNum"]; |
|
|
|
|
|
delete columns5.properties["invGroupNum"]; |
|
|
//显示重开发票对话框
|
|
|
//显示重开发票对话框
|
|
|
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, |
|
|