wanggang
1 year ago
3 changed files with 71 additions and 183 deletions
@ -1,113 +0,0 @@ |
|||
//不可结算明细
|
|||
import { version, state } from "../_options.js"; |
|||
|
|||
const schema = { |
|||
title: "可结算单", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state, |
|||
billNum: { |
|||
title: "结算单据", |
|||
type: "string", |
|||
oneToMany: "/settle/detail", |
|||
config: "/models/settle/detail.js", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
export default function (businessType) { |
|||
let service; |
|||
if (businessType === "JisBBAC") { |
|||
service = "bbac_can_sa_service"; |
|||
} else if (businessType === "JisHBPO" || businessType === "MaiDanJianHBPO") { |
|||
service = "hbpo_can_sa_service"; |
|||
} else { |
|||
service = "pub_can_sa_service"; |
|||
} |
|||
const queryUrl = `settleaccount/${service}/main-query`; |
|||
const exportUrl = `settleaccount/${service}/export`; |
|||
const addUrl = `settleaccount/${service}/generate-invoice`; |
|||
|
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const addMethod = "POST"; |
|||
|
|||
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, |
|||
}, |
|||
businessType: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
exportUrl, |
|||
addUrl, |
|||
exportMethod, |
|||
addMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
Loading…
Reference in new issue