姜旭之
1 year ago
28 changed files with 58 additions and 1674 deletions
@ -1,132 +0,0 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
project: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
value: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
description: { |
|||
title: "描述", |
|||
type: "string", |
|||
input: "textarea", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
{ max: 60 }, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/code-setting"; |
|||
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 createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "project", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,132 +0,0 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
project: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
value: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
description: { |
|||
title: "描述", |
|||
type: "string", |
|||
input: "textarea", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
{ max: 60 }, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/code-setting"; |
|||
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 createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "project", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,132 +0,0 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
project: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
value: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
description: { |
|||
title: "描述", |
|||
type: "string", |
|||
input: "textarea", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
{ max: 60 }, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/code-setting"; |
|||
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 createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "project", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,132 +0,0 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
project: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
value: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
description: { |
|||
title: "描述", |
|||
type: "string", |
|||
input: "textarea", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
{ max: 60 }, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/code-setting"; |
|||
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 createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "project", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,137 +0,0 @@ |
|||
const schema = { |
|||
title: "期间设置", |
|||
type: "object", |
|||
properties: { |
|||
year: { |
|||
title: "年度", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
period: { |
|||
title: "期间", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
input: "month", |
|||
format: "YYYYMM", |
|||
showForList: true, |
|||
watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
trigger: "blur", |
|||
}, |
|||
], |
|||
}, |
|||
state: { |
|||
title: "状态", |
|||
type: "boolean", |
|||
showForList: true, |
|||
default: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/centralized-control"; |
|||
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 queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
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: "year", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,137 +0,0 @@ |
|||
const schema = { |
|||
title: "期间设置", |
|||
type: "object", |
|||
properties: { |
|||
year: { |
|||
title: "年度", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
period: { |
|||
title: "期间", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
input: "month", |
|||
format: "YYYYMM", |
|||
showForList: true, |
|||
watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
trigger: "blur", |
|||
}, |
|||
], |
|||
}, |
|||
state: { |
|||
title: "状态", |
|||
type: "boolean", |
|||
showForList: true, |
|||
default: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/centralized-control"; |
|||
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 queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
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: "year", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,137 +0,0 @@ |
|||
const schema = { |
|||
title: "期间设置", |
|||
type: "object", |
|||
properties: { |
|||
year: { |
|||
title: "年度", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
period: { |
|||
title: "期间", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
input: "month", |
|||
format: "YYYYMM", |
|||
showForList: true, |
|||
watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
trigger: "blur", |
|||
}, |
|||
], |
|||
}, |
|||
state: { |
|||
title: "状态", |
|||
type: "boolean", |
|||
showForList: true, |
|||
default: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/centralized-control"; |
|||
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 queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
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: "year", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,137 +0,0 @@ |
|||
const schema = { |
|||
title: "期间设置", |
|||
type: "object", |
|||
properties: { |
|||
year: { |
|||
title: "年度", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
period: { |
|||
title: "期间", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
input: "month", |
|||
format: "YYYYMM", |
|||
showForList: true, |
|||
watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
trigger: "blur", |
|||
}, |
|||
], |
|||
}, |
|||
state: { |
|||
title: "状态", |
|||
type: "boolean", |
|||
showForList: true, |
|||
default: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/centralized-control"; |
|||
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 queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
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: "year", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,137 +0,0 @@ |
|||
const schema = { |
|||
title: "期间设置", |
|||
type: "object", |
|||
properties: { |
|||
year: { |
|||
title: "年度", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
period: { |
|||
title: "期间", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
input: "month", |
|||
format: "YYYYMM", |
|||
showForList: true, |
|||
watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
trigger: "blur", |
|||
}, |
|||
], |
|||
}, |
|||
state: { |
|||
title: "状态", |
|||
type: "boolean", |
|||
showForList: true, |
|||
default: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/centralized-control"; |
|||
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 queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
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: "year", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,137 +0,0 @@ |
|||
const schema = { |
|||
title: "期间设置", |
|||
type: "object", |
|||
properties: { |
|||
year: { |
|||
title: "年度", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
period: { |
|||
title: "期间", |
|||
type: "string", |
|||
hidden: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
input: "month", |
|||
format: "YYYYMM", |
|||
showForList: true, |
|||
watch: "(model,value)=>{model.year=value.substr(0,4);model.period=value.substr(4,2);}", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
trigger: "blur", |
|||
}, |
|||
], |
|||
}, |
|||
state: { |
|||
title: "状态", |
|||
type: "boolean", |
|||
showForList: true, |
|||
default: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/centralized-control"; |
|||
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 queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
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: "year", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,132 +0,0 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
project: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
value: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
description: { |
|||
title: "描述", |
|||
type: "string", |
|||
input: "textarea", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
{ max: 60 }, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/code-setting"; |
|||
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 createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "project", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,132 +0,0 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
project: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
value: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
description: { |
|||
title: "描述", |
|||
type: "string", |
|||
input: "textarea", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
{ max: 60 }, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/code-setting"; |
|||
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 createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "project", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
Loading…
Reference in new issue