学 赵
1 year ago
25 changed files with 5366 additions and 104 deletions
@ -0,0 +1 @@ |
|||
[导入模板下载](/assets/导入模版.zip) |
Binary file not shown.
@ -0,0 +1,114 @@ |
|||
const schema = { |
|||
title: "BOM结构", |
|||
type: "object", |
|||
properties: { |
|||
parentItemCode: { |
|||
title: "父物料编码", |
|||
type: "string", |
|||
}, |
|||
parentItemDesc: { |
|||
title: "父物料描述", |
|||
type: "string", |
|||
}, |
|||
childItemCode: { |
|||
title: "组件编码", |
|||
type: "string", |
|||
}, |
|||
childItemDesc: { |
|||
title: "组件描述", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "用量", |
|||
type: "number", |
|||
}, |
|||
bomType: { |
|||
title: "结构类型", |
|||
type: "string", |
|||
}, |
|||
effectiveTime: { |
|||
title: "生效时间", |
|||
type: "string", |
|||
input: "date", |
|||
}, |
|||
effectiveTime: { |
|||
title: "失效时间", |
|||
type: "string", |
|||
input: "date", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/bom"; |
|||
const queryUrl = `${baseUrl}/get-list`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "BOM结构", |
|||
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: "childItemCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
exportUrl, |
|||
queryMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,95 @@ |
|||
const schema = { |
|||
title: "客户零件关系", |
|||
type: "object", |
|||
properties: { |
|||
erpMaterialCode: { |
|||
title: "厂内零件号", |
|||
type: "string", |
|||
}, |
|||
settleMaterialCode: { |
|||
title: "客户零件号", |
|||
type: "string", |
|||
}, |
|||
materialDesc: { |
|||
title: "物料描述", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/material-relationship"; |
|||
const queryUrl = `${baseUrl}/get-list`; |
|||
const importUrl = `${baseUrl}/import`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const importMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
baseUrl, |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
schema: { |
|||
title: "客户零件关系", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "settleMaterialCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
queryMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,99 @@ |
|||
const schema = { |
|||
title: "物料主数据", |
|||
type: "object", |
|||
properties: { |
|||
factory: { |
|||
title: "客户物料号", |
|||
type: "string", |
|||
}, |
|||
materialCode: { |
|||
title: "厂内物料号", |
|||
type: "string", |
|||
}, |
|||
materialDesc: { |
|||
title: "物料描述", |
|||
type: "string", |
|||
}, |
|||
unit: { |
|||
title: "基本计量单位", |
|||
type: "string", |
|||
}, |
|||
estimateType: { |
|||
title: "产品类型", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/material"; |
|||
const queryUrl = `${baseUrl}/get-list`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "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: "materialCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
queryUrl, |
|||
exportUrl, |
|||
queryMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,99 @@ |
|||
const schema = { |
|||
title: "客户替换件关系", |
|||
type: "object", |
|||
properties: { |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
repLU: { |
|||
title: "替换零件号", |
|||
type: "string", |
|||
}, |
|||
clientCode: { |
|||
title: "客户编码", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务类型", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/tb_re-parts-relationship_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, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,15 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/bom.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/material-relationship.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/tb_re-parts-relationship_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 }; |
|||
}, |
|||
}; |
@ -1,7 +1,7 @@ |
|||
import html from 'html'; |
|||
import Md from '../components/markdown/index.js' |
|||
import html from "html"; |
|||
import Md from "../components/markdown/index.js"; |
|||
|
|||
export default { |
|||
components: { Md }, |
|||
template: html`Home <md name="test"></md>` |
|||
} |
|||
template: html`<md name="home" />`, |
|||
}; |
|||
|
File diff suppressed because it is too large
@ -0,0 +1,163 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202307181 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Site", |
|||
table: "Set_BBAC_CAN_SA"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "MaterialProperty", |
|||
table: "Set_relationship", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(36)", |
|||
oldMaxLength: 36); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend1", |
|||
table: "Set_PUB_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend2", |
|||
table: "Set_PUB_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend3", |
|||
table: "Set_PUB_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend4", |
|||
table: "Set_PUB_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend1", |
|||
table: "Set_HBPO_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend2", |
|||
table: "Set_HBPO_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend3", |
|||
table: "Set_HBPO_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend4", |
|||
table: "Set_HBPO_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend1", |
|||
table: "Set_BBAC_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend2", |
|||
table: "Set_BBAC_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend3", |
|||
table: "Set_BBAC_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Extend4", |
|||
table: "Set_BBAC_PD_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Extend1", |
|||
table: "Set_PUB_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend2", |
|||
table: "Set_PUB_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend3", |
|||
table: "Set_PUB_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend4", |
|||
table: "Set_PUB_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend1", |
|||
table: "Set_HBPO_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend2", |
|||
table: "Set_HBPO_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend3", |
|||
table: "Set_HBPO_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend4", |
|||
table: "Set_HBPO_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend1", |
|||
table: "Set_BBAC_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend2", |
|||
table: "Set_BBAC_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend3", |
|||
table: "Set_BBAC_PD_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Extend4", |
|||
table: "Set_BBAC_PD_DETAIL"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "MaterialProperty", |
|||
table: "Set_relationship", |
|||
type: "nvarchar(36)", |
|||
maxLength: 36, |
|||
nullable: false, |
|||
defaultValue: "", |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Site", |
|||
table: "Set_BBAC_CAN_SA", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
Binary file not shown.
Loading…
Reference in new issue