学 赵
1 year ago
46 changed files with 5383 additions and 1782 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, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,33 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Enums; |
|||
|
|||
/// <summary>
|
|||
/// Pub结算与发运比对类型
|
|||
/// </summary>
|
|||
public enum EnumPubSaSeCompareCategory |
|||
{ |
|||
/// <summary>
|
|||
/// 未定义
|
|||
/// </summary>
|
|||
[Display(Name = "未定义")] |
|||
None = 0, |
|||
|
|||
/// <summary>
|
|||
/// 有结算有发运
|
|||
/// </summary>
|
|||
[Display(Name = "有结算有发运")] |
|||
HaveSaHaveSe = 1, |
|||
|
|||
/// <summary>
|
|||
/// 有结算无发运
|
|||
/// </summary>
|
|||
[Display(Name = "有结算无发运")] |
|||
HaveSaNotHaveSe = 2, |
|||
|
|||
/// <summary>
|
|||
/// 无结算有发运
|
|||
/// </summary>
|
|||
[Display(Name = "无结算有发运")] |
|||
NotHaveSaHaveSe = 3 |
|||
} |
@ -1,35 +1,56 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public class VmiBalance : Entity<Guid> |
|||
{ |
|||
/// <summary>
|
|||
/// LU零件号:BBAC发运单BBAC_SE_DETAIL.LU
|
|||
/// </summary>
|
|||
[Display(Name = "Erp目标库位", Description = "Key")] |
|||
public string ErpToLoc { get; set; } |
|||
|
|||
[Display(Name = "LU零件号", Description = "Key")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 生产码:BBAC发运单BBAC_SE_DETAIL.PN
|
|||
/// </summary>
|
|||
public string PN { get; set; } |
|||
[Display(Name = "客户零件号")] |
|||
public string PartCode { get; set; } |
|||
|
|||
[Display(Name = "生产码", Description = "Key")] |
|||
public string VinCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 生产码类型(01前保、02后保、03门槛等)
|
|||
/// </summary>
|
|||
public int PNType { get; set; } |
|||
[Display(Name = "生产码类型")] |
|||
public string CodeType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 发货类型???
|
|||
/// </summary>
|
|||
public string Type { get; set; } |
|||
[Display(Name = "发货类型")] |
|||
public string ProType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[Display(Name = "数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "发运日期")] |
|||
public DateTime ShippingDate { get; set; } |
|||
|
|||
[Display(Name = "订单日期")] |
|||
public DateTime CreationTime { get; set; } |
|||
|
|||
[Display(Name = "EDI顺序号")] |
|||
public string SeqNumber { get; set; } |
|||
|
|||
[Display(Name = "客户订单号")] |
|||
public string Tmpe4 { get; set; } |
|||
|
|||
[Display(Name = "塑件唯一码")] |
|||
public string UniqueCode { get; set; } |
|||
|
|||
[Display(Name = "EDI总成号")] |
|||
public string MatchNumber { get; set; } |
|||
|
|||
[Display(Name = "PJIS生产顺序号")] |
|||
public string PjsNum { get; set; } |
|||
|
|||
[Display(Name = "备注")] |
|||
public string Desc { get; set; } |
|||
|
|||
public List<VmiLog> Logs { get; set; } = new List<VmiLog>(); |
|||
} |
|||
|
File diff suppressed because it is too large
@ -0,0 +1,227 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi2 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropUniqueConstraint( |
|||
name: "AK_Set_VmiBalance_PN_LU", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("6efe1947-a242-4d20-b633-20b0f716a782")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PNType", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "Type", |
|||
table: "Set_VmiBalance", |
|||
newName: "VinCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PN", |
|||
table: "Set_VmiBalance", |
|||
newName: "PartCode"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CreatedBy", |
|||
table: "Set_VmiLog", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CreatedDate", |
|||
table: "Set_VmiLog", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "OrderNumber", |
|||
table: "Set_VmiLog", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CodeType", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CreationTime", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Desc", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpToLoc", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(450)", |
|||
nullable: false, |
|||
defaultValue: ""); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "MatchNumber", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "PjsNum", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProType", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SeqNumber", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "ShippingDate", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Tmpe4", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "UniqueCode", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddUniqueConstraint( |
|||
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "ErpToLoc", "PartCode", "LU" }); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_JobItem", |
|||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|||
values: new object[] { new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropUniqueConstraint( |
|||
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CreatedBy", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CreatedDate", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "OrderNumber", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CodeType", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CreationTime", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Desc", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpToLoc", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "MatchNumber", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PjsNum", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProType", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SeqNumber", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ShippingDate", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Tmpe4", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "UniqueCode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "VinCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "Type"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "PN"); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "PNType", |
|||
table: "Set_VmiBalance", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddUniqueConstraint( |
|||
name: "AK_Set_VmiBalance_PN_LU", |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "PN", "LU" }); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_JobItem", |
|||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|||
values: new object[] { new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
using AutoMapper; |
|||
using Win.Sfs.SettleAccount.Reports; |
|||
|
|||
namespace SettleAccount.Job |
|||
{ |
|||
public class SettleAccountJobAutoMapperProfile : Profile |
|||
{ |
|||
public SettleAccountJobAutoMapperProfile() |
|||
{ |
|||
CreateMapPubSaSeCompare(); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Pub结算与发运对比
|
|||
/// </summary>
|
|||
private void CreateMapPubSaSeCompare() |
|||
{ |
|||
CreateMap<PubSaSeCompareDiff, PubSaSeCompareDetailExport>() |
|||
.ForMember(x => x.ReplaceLU, y => y.MapFrom(y => y.ReplaceLU)); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue