|
|
@ -1,10 +1,11 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 库存余额 |
|
|
|
*/ |
|
|
|
export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const Balance = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
@ -12,7 +13,27 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料类型', |
|
|
|
field: 'itemType', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.ITEM_TYPE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 100 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
@ -21,7 +42,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
@ -30,7 +51,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装规格', |
|
|
@ -38,7 +59,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装数量', |
|
|
@ -46,7 +67,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '器具代码',
|
|
|
@ -65,7 +86,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
component: 'InputNumber' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -77,7 +98,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库位代码', |
|
|
@ -86,7 +107,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库存状态', |
|
|
@ -97,7 +118,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库区类型', |
|
|
@ -108,7 +129,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
@ -117,7 +138,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库位组代码', |
|
|
@ -125,7 +146,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库区代码', |
|
|
@ -133,7 +154,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: 'ERP库位代码',
|
|
|
@ -170,12 +191,12 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width: '100%'}, |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '生产日期', |
|
|
@ -192,12 +213,12 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width: '100%'}, |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '失效日期', |
|
|
@ -214,12 +235,12 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width: '100%'}, |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '货主代码', |
|
|
@ -228,7 +249,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '锁定数量', |
|
|
@ -239,7 +260,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
component: 'InputNumber' |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
@ -311,7 +332,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '冻结原因',
|
|
|
@ -363,7 +384,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -379,10 +400,10 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
@ -394,7 +415,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -421,7 +442,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
@ -446,9 +467,10 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 200, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
} |
|
|
|
])) |
|
|
|
} |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const BalanceRules = reactive({ |
|
|
|