You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
2.8 KiB
128 lines
2.8 KiB
import version from "./version.js";
|
|
|
|
const stateName = {
|
|
title: "状态",
|
|
type: "string",
|
|
input: "select",
|
|
options: [
|
|
{ text: "执行完成(任务成功)", value: "Succeeded" },
|
|
{ text: "执行完成(任务失败)", value: "Failed" },
|
|
{ text: "执行中", value: "Processing" },
|
|
{ text: "等待执行", value: "Enqueued" },
|
|
],
|
|
};
|
|
|
|
const schema = {
|
|
title: "期间设置",
|
|
type: "object",
|
|
properties: {
|
|
type: {
|
|
title: "版本号",
|
|
type: "string",
|
|
},
|
|
taskId: {
|
|
title: "单据流水号",
|
|
type: "string",
|
|
},
|
|
email: {
|
|
title: "创建人",
|
|
type: "string",
|
|
},
|
|
createdAt: {
|
|
title: "创建时间",
|
|
type: "DateTime",
|
|
},
|
|
remark: {
|
|
title: "说明",
|
|
type: "string",
|
|
},
|
|
stateName,
|
|
},
|
|
};
|
|
|
|
const queryUrl = "settleaccount/Job/list";
|
|
const deleteUrl = "settleaccount/Job/delete";
|
|
const exportUrl = "settleaccount/pub_sa_detail_service/export";
|
|
const compareUrl = "settleaccount/pub_sa_detail_service/pub-sa-se-compare";
|
|
const queryMethod = "POST";
|
|
const deleteMethod = "POST";
|
|
const exportMethod = "POST";
|
|
const compareMethod = "POST";
|
|
|
|
export default function () {
|
|
return {
|
|
query: {
|
|
url: queryUrl,
|
|
method: queryMethod,
|
|
|
|
autoSubmit: true,
|
|
disableQueryOnLoad: true,
|
|
schema: {
|
|
title: "期间设置",
|
|
type: "object",
|
|
properties: {
|
|
type: Object.assign({ defaultSelected: true }, version),
|
|
name: {
|
|
type: "string",
|
|
default: null,
|
|
hidden: true,
|
|
},
|
|
stateName,
|
|
filters: {
|
|
type: "array",
|
|
hidden: true,
|
|
items: {
|
|
type: "object",
|
|
properties: {
|
|
logic: {
|
|
type: "int",
|
|
},
|
|
column: {
|
|
type: "string",
|
|
},
|
|
action: {
|
|
type: "int",
|
|
},
|
|
value: {
|
|
type: "string",
|
|
},
|
|
},
|
|
},
|
|
default: [
|
|
// {
|
|
// logic: "and",
|
|
// column: "year",
|
|
// action: "like",
|
|
// value: null,
|
|
// readOnly: true,
|
|
// },
|
|
],
|
|
},
|
|
skipCount: {
|
|
hidden: true,
|
|
default: 0,
|
|
},
|
|
maxResultCount: {
|
|
hidden: true,
|
|
default: 10,
|
|
},
|
|
sorting: {
|
|
hidden: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
table: {
|
|
schema: schema,
|
|
},
|
|
edit: {
|
|
deleteUrl,
|
|
exportUrl,
|
|
compareUrl,
|
|
deleteMethod,
|
|
exportMethod,
|
|
compareMethod,
|
|
schema: schema,
|
|
},
|
|
};
|
|
}
|
|
|