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.
92 lines
1.9 KiB
92 lines
1.9 KiB
2 years ago
|
const schema = {
|
||
|
title: "物料主数据",
|
||
|
type: "object",
|
||
|
properties: {
|
||
|
erpMaterialCode: {
|
||
|
title: "厂内零件号",
|
||
|
type: "string",
|
||
|
},
|
||
|
settleMaterialCode: {
|
||
|
title: "客户零件号",
|
||
|
type: "string",
|
||
|
},
|
||
|
materialDesc: {
|
||
|
title: "物料描述",
|
||
|
type: "string",
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
const baseUrl = "settleaccount/material-relationship";
|
||
|
const queryUrl = `${baseUrl}/get-list`;
|
||
|
const exportUrl = `${baseUrl}/export`;
|
||
|
const queryMethod = "POST";
|
||
|
const exportMethod = "POST";
|
||
|
|
||
|
export default function () {
|
||
|
return {
|
||
|
baseUrl,
|
||
|
query: {
|
||
|
url: queryUrl,
|
||
|
method: queryMethod,
|
||
|
schema: {
|
||
|
title: "物料主数据",
|
||
|
type: "object",
|
||
|
properties: {
|
||
|
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: "erpMaterialCode",
|
||
|
action: "like",
|
||
|
value: null,
|
||
|
readOnly: true,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
skipCount: {
|
||
|
hidden: true,
|
||
|
default: 0,
|
||
|
},
|
||
|
maxResultCount: {
|
||
|
hidden: true,
|
||
|
default: 10,
|
||
|
},
|
||
|
sorting: {
|
||
|
hidden: true,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
table: {
|
||
|
schema: schema,
|
||
|
},
|
||
|
edit: {
|
||
|
queryUrl,
|
||
|
exportUrl,
|
||
|
queryMethod,
|
||
|
exportMethod,
|
||
|
schema: schema,
|
||
|
},
|
||
|
};
|
||
|
}
|