mahao
1 year ago
64 changed files with 1503 additions and 21518 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,13 @@ |
|||
const options = [ |
|||
{ value: 0, label: "未定义" }, |
|||
{ value: 1, label: "JisBBAC" }, |
|||
{ value: 2, label: "JisHBPO" }, |
|||
{ value: 3, label: "直供件BBAC" }, |
|||
{ value: 4, label: "直供件HBPO" }, |
|||
{ value: 5, label: "买单件BBAC" }, |
|||
{ value: 6, label: "买单件HBPO" }, |
|||
{ value: 7, label: "备件" }, |
|||
{ value: 8, label: "印度件" }, |
|||
]; |
|||
const businessType = { title: "业务类型", type: "string", input: "select", options }; |
|||
export default businessType; |
@ -0,0 +1,200 @@ |
|||
import { billType, codeType, changedType, subBillType } from "./inventory.js"; |
|||
|
|||
const schema = { |
|||
title: "库存事务日志", |
|||
type: "object", |
|||
properties: { |
|||
changedNumber: { |
|||
title: "变动单号", |
|||
type: "string", |
|||
}, |
|||
changedTime: { |
|||
title: "变动时间", |
|||
type: "string", |
|||
input: "dateTime", |
|||
}, |
|||
changedType, |
|||
changedBy: { |
|||
title: "变动人", |
|||
type: "string", |
|||
}, |
|||
partCode: { |
|||
title: "调整LU零件号", |
|||
type: "string", |
|||
}, |
|||
customerPartCode: { |
|||
title: "调整客户零件号", |
|||
type: "string", |
|||
}, |
|||
orderNum: { |
|||
title: "EDI原始订单号", |
|||
type: "string", |
|||
}, |
|||
billType, |
|||
subBillType, |
|||
reMark: { |
|||
title: "备注", |
|||
type: "string", |
|||
}, |
|||
vinCode: { |
|||
title: "调整生产码", |
|||
type: "string", |
|||
}, |
|||
codeType, |
|||
qty: { |
|||
title: "调整生产码", |
|||
type: "number", |
|||
}, |
|||
billTime: { |
|||
title: "发运日期", |
|||
type: "string", |
|||
}, |
|||
billNum: { |
|||
title: "WMS发运单号", |
|||
type: "string", |
|||
}, |
|||
deliverTime: { |
|||
title: "订单日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
erpToLoc: { |
|||
title: "ERP库位", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/vmi"; |
|||
const queryUrl = `${baseUrl}/log`; |
|||
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: "erpToLoc", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "createdDate", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "lu", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "tmpe4", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "vinCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "codeType", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "proType", |
|||
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,5 +1,43 @@ |
|||
import html from "html"; |
|||
import AppList from "../../../components/list/index.js"; |
|||
|
|||
export default { |
|||
template: html`<a href="../assets/导入模版.zip" target="blank">导入模板下载</a>`, |
|||
components: { AppList }, |
|||
template: html`</app-list :config="config" @command="onCommand"></app-list>
|
|||
<el-table :data="tableData" border style="width: 100%"> |
|||
<el-table-column prop="date" label="custoner/type" width="180" /> |
|||
<el-table-column prop="name" label="BBAC" width="180" /> |
|||
<el-table-column prop="address" label="HBPO" width="180" /> |
|||
</el-table> |
|||
`,
|
|||
setup() { |
|||
const tableData = [ |
|||
{ |
|||
date: "JIS", |
|||
name: "√", |
|||
address: "√", |
|||
}, |
|||
{ |
|||
date: "直供件", |
|||
name: "√", |
|||
address: "√", |
|||
}, |
|||
{ |
|||
date: "印度件", |
|||
name: "√", |
|||
address: "", |
|||
}, |
|||
{ |
|||
date: "备件", |
|||
name: "√", |
|||
address: "", |
|||
}, |
|||
{ |
|||
date: "买单件", |
|||
name: "对比√ 开票×", |
|||
address: "√", |
|||
}, |
|||
]; |
|||
return { tableData }; |
|||
}, |
|||
}; |
|||
|
@ -1,18 +1,24 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/job-service.js"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
config.query.schema.title = "发运与结算"; |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = 8; |
|||
config.query.schema.properties.businessType.default = "YinDuJian"; |
|||
config.query.schema.properties.name.default = "印度件结算与发运数据对比"; |
|||
return { config, onCommand }; |
|||
const appListRef = ref(null); |
|||
onMounted(() => |
|||
PubSub.subscribe(config.query.schema.properties.name.default, async () => await appListRef.value.load()) |
|||
); |
|||
onUnmounted(() => PubSub.unsubscribe(config.query.schema.properties.businessType.default)); |
|||
return { config, onCommand, appListRef }; |
|||
}, |
|||
}; |
|||
|
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/inventory/adjust.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 }; |
|||
}, |
|||
}; |
@ -1,18 +1,24 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/job-service.js"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
config.query.schema.title = "发运与结算"; |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = 3; |
|||
config.query.schema.properties.businessType.default = "ZhiGongJianBBAC"; |
|||
config.query.schema.properties.name.default = "直供件BBAC结算与发运数据对比"; |
|||
return { config, onCommand }; |
|||
const appListRef = ref(null); |
|||
onMounted(() => |
|||
PubSub.subscribe(config.query.schema.properties.name.default, async () => await appListRef.value.load()) |
|||
); |
|||
onUnmounted(() => PubSub.unsubscribe(config.query.schema.properties.businessType.default)); |
|||
return { config, onCommand, appListRef }; |
|||
}, |
|||
}; |
|||
|
@ -1,18 +1,24 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/job-service.js"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
config.query.schema.title = "发运与结算"; |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = 4; |
|||
config.query.schema.properties.businessType.default = "ZhiGongJianHBPO"; |
|||
config.query.schema.properties.name.default = "直供件HBPO结算与发运数据对比"; |
|||
return { config, onCommand }; |
|||
const appListRef = ref(null); |
|||
onMounted(() => |
|||
PubSub.subscribe(config.query.schema.properties.name.default, async () => await appListRef.value.load()) |
|||
); |
|||
onUnmounted(() => PubSub.unsubscribe(config.query.schema.properties.businessType.default)); |
|||
return { config, onCommand, appListRef }; |
|||
}, |
|||
}; |
@ -0,0 +1,24 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/job-service.js"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
config.query.schema.title = "发运与结算"; |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianHBPO"; |
|||
// config.query.schema.properties.name.default = "直供件BBAC结算与发运数据对比";
|
|||
const appListRef = ref(null); |
|||
onMounted(() => |
|||
PubSub.subscribe(config.query.schema.properties.name.default, async () => await appListRef.value.load()) |
|||
); |
|||
onUnmounted(() => PubSub.unsubscribe(config.query.schema.properties.businessType.default)); |
|||
return { config, onCommand, appListRef }; |
|||
}, |
|||
}; |
@ -0,0 +1,16 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_sa_detail_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); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,16 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_sa_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); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,16 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_se_detail_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); |
|||
}; |
|||
config.query.schema.properties.businessType.default = "MaiDanJianHBPO"; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_ba_detail_service"; |
|||
|
|||
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/pub_ba_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 }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_can_sa_detail_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 }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_can_sa_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 }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_not_sa_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 }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_pd_detail_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 }; |
|||
}, |
|||
}; |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../../models/pub_pd_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