学 赵
1 year ago
60 changed files with 2014 additions and 323 deletions
@ -0,0 +1,126 @@ |
|||
const schema = { |
|||
title: "可结算单明细", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "int", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "int", |
|||
}, |
|||
price: { |
|||
title: "单价", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "结算日期", |
|||
type: "DateTime", |
|||
}, |
|||
settleInvGroupNumDate: { |
|||
title: "发票组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
materialDesc: { |
|||
title: "物料描述", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "生产号", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNumy: { |
|||
title: "结算分组号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/hbpo_can_sa_detail_service"; |
|||
const queryUrl = `${baseUrl}/get-list`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "发票分组号明细", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "billNum", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
detailsMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,103 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "寄售库库存扣减审批", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state3, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "地点", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/bbac_pd_service"; |
|||
const queryUrl = `${baseUrl}/main-query`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,128 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "商务审批", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
version, |
|||
state2, |
|||
price: { |
|||
title: "单价", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
|
|||
settleDate: { |
|||
title: "结算日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "生产号", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/bbac_ba_service"; |
|||
const queryUrl = `${baseUrl}/main-query`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "商务审批", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,103 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "寄售库库存扣减审批", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state3, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "地点", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/bbac_pd_service"; |
|||
const queryUrl = `${baseUrl}/main-query`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,121 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "商务审批", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
version, |
|||
state2, |
|||
price: { |
|||
title: "单价", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
|
|||
settleDate: { |
|||
title: "结算日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "生产号", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/b-bAC_BA_SERVICE/detail-query"; |
|||
const queryMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "商务审批", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
queryMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,103 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "寄售库库存扣减审批", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state3, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "地点", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/bbac_pd_service"; |
|||
const queryUrl = `${baseUrl}/main-query`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,128 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
state2, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
version, |
|||
price: { |
|||
title: "单价", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
|
|||
settleDate: { |
|||
title: "结算日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "生产号", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/hbpo_ba_service"; |
|||
const queryUrl = `${baseUrl}/main-query`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,107 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "寄售库库存扣减审批", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state3, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "地点", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/hbpo_pd_service"; |
|||
const queryUrl = `${baseUrl}/get-list`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const createUrl = `${baseUrl}/create`; |
|||
const updateUrl = `${baseUrl}/update/%s`; |
|||
const deleteUrl = `${baseUrl}/delete-list`; |
|||
const importUrl = `${baseUrl}/code-setting-upload-excel-import`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,126 @@ |
|||
const schema = { |
|||
title: "可结算单明细", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "int", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "int", |
|||
}, |
|||
price: { |
|||
title: "单价", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "结算日期", |
|||
type: "DateTime", |
|||
}, |
|||
settleInvGroupNumDate: { |
|||
title: "发票组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
materialDesc: { |
|||
title: "物料描述", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "生产号", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNumy: { |
|||
title: "结算分组号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/hbpo_can_sa_detail_service"; |
|||
const queryUrl = `${baseUrl}/get-list`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "发票分组号明细", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "billNum", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
detailsMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,103 @@ |
|||
import version from "../../version.js"; |
|||
import { state2, state3 } from "../../state.js"; |
|||
|
|||
const schema = { |
|||
title: "寄售库库存扣减审批", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state3, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "地点", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/bbac_pd_service"; |
|||
const queryUrl = `${baseUrl}/main-query`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "不可结算单", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/bj/settlement/bj_pub_ba_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/bj/settlement/bj_pub_pd_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/in/settlement/in_pub_ba_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/in/settlement/in_pub_pd_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-bbac/settlement/bbac_ba_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-bbac/settlement/bbac_pd_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-hbpo/settlement/hbpo_ba_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jis-hbpo/settlement/hbpo_pd_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jit/settlement/jit_pub_ba_detail_service"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/jit/settlement/jit_pub_pd_detail_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,88 @@ |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.OpenApi.Extensions; |
|||
using SettleAccount.Job.Services.Report; |
|||
using TaskJob.EventArgs; |
|||
using Volo.Abp.Application.Services; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|||
using Win.Sfs.SettleAccount.Entities.TaskJobs; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ; |
|||
|
|||
/// <summary>
|
|||
/// Edi与发运对比服务
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/settleaccount/[controller]/[action]")]
|
|||
public class EdiSeCompareService : ApplicationService |
|||
{ |
|||
/// <summary>
|
|||
/// 任务服务
|
|||
/// </summary>
|
|||
private readonly TaskJobService _taskJobService; |
|||
|
|||
public EdiSeCompareService(TaskJobService taskJobService) |
|||
{ |
|||
_taskJobService = taskJobService; |
|||
} |
|||
|
|||
#region 对比
|
|||
/// <summary>
|
|||
/// BBACEdi与发运比对
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
public async Task<string> BBACEdiSeCompare(PubSaSeCompareRequestDto pubSaSeCompareRequestDto) |
|||
{ |
|||
var businessTypeDisplayName = pubSaSeCompareRequestDto.BusinessType.ToString(); |
|||
DisplayAttribute attributeOfType = pubSaSeCompareRequestDto.BusinessType.GetAttributeOfType<DisplayAttribute>(); |
|||
if (attributeOfType != null) |
|||
{ |
|||
businessTypeDisplayName = attributeOfType.Name; |
|||
} |
|||
var projectName = $"{businessTypeDisplayName}结算与发运数据对比"; |
|||
|
|||
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|||
customConditionList.Add(new CustomCondition() { Name = "Version", Value = pubSaSeCompareRequestDto.Version }); |
|||
customConditionList.Add(new CustomCondition() { Name = "BusinessType", Value = ((int)pubSaSeCompareRequestDto.BusinessType).ToString() }); |
|||
customConditionList.Add(new CustomCondition() { Name = "LU", Value = pubSaSeCompareRequestDto.LU }); |
|||
customConditionList.Add(new CustomCondition() { Name = "PN", Value = pubSaSeCompareRequestDto.PN }); |
|||
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = projectName }); |
|||
|
|||
var _taskid = await _taskJobService.ExportEnqueueAsync(projectName, ExportExtentsion.Excel, pubSaSeCompareRequestDto.Version, string.Empty, CurrentUser, typeof(BBACEdiSeCompareExportService), customConditionList, (rs) => |
|||
{ |
|||
}); |
|||
return _taskid; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// HBPOEdi与发运比对
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
public async Task<string> HBPOEdiSeCompare(PubSaSeCompareRequestDto pubSaSeCompareRequestDto) |
|||
{ |
|||
var businessTypeDisplayName = pubSaSeCompareRequestDto.BusinessType.ToString(); |
|||
DisplayAttribute attributeOfType = pubSaSeCompareRequestDto.BusinessType.GetAttributeOfType<DisplayAttribute>(); |
|||
if (attributeOfType != null) |
|||
{ |
|||
businessTypeDisplayName = attributeOfType.Name; |
|||
} |
|||
var projectName = $"{businessTypeDisplayName}结算与发运数据对比"; |
|||
|
|||
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|||
customConditionList.Add(new CustomCondition() { Name = "Version", Value = pubSaSeCompareRequestDto.Version }); |
|||
customConditionList.Add(new CustomCondition() { Name = "BusinessType", Value = ((int)pubSaSeCompareRequestDto.BusinessType).ToString() }); |
|||
customConditionList.Add(new CustomCondition() { Name = "LU", Value = pubSaSeCompareRequestDto.LU }); |
|||
customConditionList.Add(new CustomCondition() { Name = "PN", Value = pubSaSeCompareRequestDto.PN }); |
|||
customConditionList.Add(new CustomCondition() { Name = "ProjectName", Value = projectName }); |
|||
|
|||
var _taskid = await _taskJobService.ExportEnqueueAsync(projectName, ExportExtentsion.Excel, pubSaSeCompareRequestDto.Version, string.Empty, CurrentUser, typeof(HBPOEdiSeCompareExportService), customConditionList, (rs) => |
|||
{ |
|||
}); |
|||
return _taskid; |
|||
} |
|||
#endregion
|
|||
|
|||
} |
@ -0,0 +1,46 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using TaskJob.EventArgs; |
|||
using TaskJob.Interfaces; |
|||
using Volo.Abp.BlobStoring; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.ObjectMapping; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
|
|||
namespace SettleAccount.Job.Services.Report |
|||
{ |
|||
/// <summary>
|
|||
/// BBACEdi与发运对比导出服务
|
|||
/// </summary>
|
|||
public class BBACEdiSeCompareExportService : ITransientDependency, IExportJob |
|||
{ |
|||
/// <summary>
|
|||
/// 文件容器
|
|||
/// </summary>
|
|||
private readonly IBlobContainer<MyFileContainer> _fileContainer; |
|||
|
|||
/// <summary>
|
|||
/// AutoMapper
|
|||
/// </summary>
|
|||
private readonly IObjectMapper _objectMapper; |
|||
|
|||
/// <summary>
|
|||
/// 构造
|
|||
/// </summary>
|
|||
public BBACEdiSeCompareExportService( |
|||
IBlobContainer<MyFileContainer> fileContainer, |
|||
IObjectMapper objectMapper) |
|||
{ |
|||
_fileContainer = fileContainer; |
|||
_objectMapper = objectMapper; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> property) |
|||
{ |
|||
return ""; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,46 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using TaskJob.EventArgs; |
|||
using TaskJob.Interfaces; |
|||
using Volo.Abp.BlobStoring; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.ObjectMapping; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
|
|||
namespace SettleAccount.Job.Services.Report |
|||
{ |
|||
/// <summary>
|
|||
/// HBPOEdi与发运对比导出服务
|
|||
/// </summary>
|
|||
public class HBPOEdiSeCompareExportService : ITransientDependency, IExportJob |
|||
{ |
|||
/// <summary>
|
|||
/// 文件容器
|
|||
/// </summary>
|
|||
private readonly IBlobContainer<MyFileContainer> _fileContainer; |
|||
|
|||
/// <summary>
|
|||
/// AutoMapper
|
|||
/// </summary>
|
|||
private readonly IObjectMapper _objectMapper; |
|||
|
|||
/// <summary>
|
|||
/// 构造
|
|||
/// </summary>
|
|||
public HBPOEdiSeCompareExportService( |
|||
IBlobContainer<MyFileContainer> fileContainer, |
|||
IObjectMapper objectMapper) |
|||
{ |
|||
_fileContainer = fileContainer; |
|||
_objectMapper = objectMapper; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> property) |
|||
{ |
|||
return ""; |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue