姜旭之
1 year ago
8 changed files with 2456 additions and 136 deletions
@ -0,0 +1,99 @@ |
|||
const schema = { |
|||
title: "备件价格单", |
|||
type: "object", |
|||
properties: { |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
beginDate: { |
|||
title: "开始时间", |
|||
type: "DateTime", |
|||
}, |
|||
endDate: { |
|||
title: "结算时间", |
|||
type: "DateTime", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/price-list-app-service-bj"; |
|||
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: "lu", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
queryMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,111 @@ |
|||
const schema = { |
|||
title: "销售价格单", |
|||
type: "object", |
|||
properties: { |
|||
version: { |
|||
title: "版本", |
|||
type: "string", |
|||
}, |
|||
beginDate: { |
|||
title: "开始时间", |
|||
type: "DateTime", |
|||
}, |
|||
endDate: { |
|||
title: "结算时间", |
|||
type: "DateTime", |
|||
}, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
materialCode: { |
|||
title: "物料编号", |
|||
type: "string", |
|||
}, |
|||
type: { |
|||
title: "价格类型", |
|||
type: "int", |
|||
}, |
|||
customerCode: { |
|||
title: "客户", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/price-list"; |
|||
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: "version", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
queryMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,91 @@ |
|||
const schema = { |
|||
title: "采购价格单", |
|||
type: "object", |
|||
properties: { |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/purchase_price_service"; |
|||
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: "lu", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
queryMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,15 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/price-list-app-service-bj.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/price-list.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/purchase_price_service.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
Loading…
Reference in new issue