|
|
@ -12,25 +12,16 @@ const { t } = useI18n() // 国际化 |
|
|
|
* @returns {Array} 要货计划主表 |
|
|
|
*/ |
|
|
|
export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 180, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
sortTableDefault:1, |
|
|
|
form: { |
|
|
|
labelMessage: '影响明细中物料代码,需在供应商物料中维护', |
|
|
|
componentProps: { |
|
|
@ -49,6 +40,59 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
//仅是主列表页面的筛选搜索条件
|
|
|
|
{ |
|
|
|
label: '送达日期', |
|
|
|
field: 'deliveryDate', |
|
|
|
sort: 'custom', |
|
|
|
isDetail:false, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isSearch:true, |
|
|
|
formatter: dateFormatter, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 '), new Date('1 ')] |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '送达日期', |
|
|
|
field: 'deliveryDate', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
formatter: dateFormatter2, |
|
|
|
sortTableDefault:2, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width: '100%'}, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 180, |
|
|
|
}, |
|
|
|
sortTableDefault:11, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '采购订单', |
|
|
|
field: 'poNumber', |
|
|
@ -110,47 +154,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
//仅是主列表页面的筛选搜索条件
|
|
|
|
{ |
|
|
|
label: '送达日期', |
|
|
|
field: 'deliveryDate', |
|
|
|
sort: 'custom', |
|
|
|
isDetail:false, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false, |
|
|
|
isSearch:true, |
|
|
|
formatter: dateFormatter, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD', |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 '), new Date('1 ')] |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '送达日期', |
|
|
|
field: 'deliveryDate', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:1000, |
|
|
|
formatter: dateFormatter2, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width: '100%'}, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '时间窗口', |
|
|
|
field: 'timeWindow', |
|
|
@ -167,7 +171,9 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:1001, |
|
|
|
isTable:false, |
|
|
|
isForm:false, |
|
|
|
isDetail:false, |
|
|
|
form:{ |
|
|
|
component:"TimePicker", |
|
|
|
componentProps: { |
|
|
@ -182,7 +188,9 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:1002, |
|
|
|
isTable:false, |
|
|
|
isForm:false, |
|
|
|
isDetail:false, |
|
|
|
form:{ |
|
|
|
component:"TimePicker", |
|
|
|
componentProps: { |
|
|
@ -238,6 +246,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:12, |
|
|
|
form: { |
|
|
|
value: '1', |
|
|
|
componentProps: { |
|
|
@ -379,6 +388,8 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm:false, |
|
|
|
isDetail:false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
@ -443,7 +454,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '采购订单号', |
|
|
|
field: 'poNumber', |
|
|
|
isSearch:true, |
|
|
|
isTable:false, |
|
|
|
isTable:true, |
|
|
|
sortTableDefault:8, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false |
|
|
|
}, |
|
|
@ -454,6 +466,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
hiddenInMain:true, |
|
|
|
isTableForm:false, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
isInpuFocusShow: false, |
|
|
@ -511,6 +525,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:9, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
@ -560,6 +575,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:3, |
|
|
|
isSearch:true, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
@ -582,6 +598,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
sortTableDefault:9, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
@ -598,6 +615,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
type: 'InputNumber', |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
sortTableDefault:4, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
@ -614,8 +632,29 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
hiddenInMain:true, |
|
|
|
|
|
|
|
sortTableDefault:5, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '已收货数量(没有字段,需要加)', |
|
|
|
field: 'shippedQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
sortTableDefault:6, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '在途数量(没有字段,需要加)', |
|
|
|
field: 'shippedQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
sortTableDefault:7, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
@ -627,6 +666,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault:10, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled:true, |
|
|
@ -638,6 +678,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isTableForm:false, |
|
|
|
hiddenInMain:true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -697,6 +738,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
hiddenInMain:true, |
|
|
|
isTableForm:false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|