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.
 
 
 
 
 
 

103 lines
2.1 KiB

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 importUrl = `${baseUrl}/import`;
const exportUrl = `${baseUrl}/export`;
const queryMethod = "POST";
const importMethod = "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: "settleMaterialCode",
action: "like",
value: null,
readOnly: true,
},
],
},
skipCount: {
hidden: true,
default: 0,
},
maxResultCount: {
hidden: true,
default: 10,
},
sorting: {
hidden: true,
},
},
},
},
table: {
schema: schema,
},
import: {
schema: {
properties: {
isBj: {
title: "是否为备件",
type: "boolean",
},
},
},
},
edit: {
importUrl,
exportUrl,
importMethod,
exportMethod,
schema: schema,
},
};
}