Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
赵雪冰 10 months ago
parent
commit
71df91ab31
  1. 248
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  2. 513
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

248
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -568,17 +568,7 @@ export const PurchasereceiptRequestMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
hiddenInMain:true,
isForm: false
},
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
@ -587,6 +577,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:5,
tableForm:{ tableForm:{
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择订单号', searchListPlaceholder: '请选择订单号',
@ -696,6 +687,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 180 width: 180
}, },
sortTableDefault:5,
hiddenInMain:true, hiddenInMain:true,
isForm: false, isForm: false,
tableForm:{ tableForm:{
@ -738,6 +730,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:7,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
@ -749,6 +742,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:7,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
@ -761,6 +755,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain:true,
isTable:false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -798,7 +793,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
precision: 6 precision: 6
}, },
}, },
hiddenInMain:true, sortTableDefault:9,
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 1, min: 1,
@ -842,6 +837,18 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
disabled: true disabled: true
} }
}, },
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
hiddenInMain:true,
sortTableDefault:11,
isForm: false
},
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
@ -868,7 +875,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:12, sortTableDefault:11,
form: { form: {
componentProps: { componentProps: {
isSearchList: true, isSearchList: true,
@ -957,44 +964,84 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false isForm: false
}, },
{ {
label: '生产日期', label: '从货主代码',
field: 'produceDate', field: 'fromOwnerCode',
formatter: dateFormatter2, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD' width: 150
}, },
sortTableDefault:13,
hiddenInMain:true,
isTableForm: false,
isForm: false
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
sortTableDefault:13,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false,
isForm: false
},
{
label: '供应商计量数量',
field: 'supplierPackQty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:13,
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { componentProps: {
style: {width: '100%'}, min: 1,
type: 'date', precision: 6
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
}, },
tableForm:{
type:'FormDate',
placeholder: '请选择生产日期',
valueFormat: 'x',
}, },
hiddenInMain:true,
isTableForm: false,
isForm: false
}, },
{ {
label: '批次', label: '供应商计量单位',
field: 'batch', field: 'supplierPackUnit',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
sortTableDefault:8,
table: { table: {
width: 150 width: 150
}, },
tableForm:{ sortTableDefault:13,
disabled: true hiddenInMain:true,
isTableForm: false,
isForm: false,
tableForm: {
type: 'Select'
} }
}, },
{
label: '转换率',
field: 'convertRate',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:13,
hiddenInMain:true,
form: {
component: 'InputNumber',
componentProps: {
min: 0
},
},
isTableForm: false,
isForm: false
},
// { // {
// label: '替代批次', // label: '替代批次',
// field: 'altBatch', // field: 'altBatch',
@ -1016,6 +1063,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 180 width: 180
}, },
sortTableDefault:11,
hiddenInMain:true, hiddenInMain:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -1032,6 +1080,46 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
valueFormat: 'x', valueFormat: 'x',
}, },
}, },
{
label: '生产日期',
field: 'produceDate',
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 180
},
hiddenInMain:true,
sortTableDefault:11,
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
},
tableForm:{
type:'FormDate',
placeholder: '请选择生产日期',
valueFormat: 'x',
},
},
{
label: '批次',
field: 'batch',
sort: 'custom',
sortTableDefault:8,
table: {
width: 150
},
tableForm:{
disabled: true
}
},
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
@ -1040,9 +1128,11 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
sortTableDefault:11,
table: { table: {
width: 180 width: 180
}, },
isTable:true,
hiddenInMain:true, hiddenInMain:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -1063,18 +1153,6 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
disabled: true disabled: true
} }
}, },
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:12,
isTableForm: false,
isForm: false
},
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -1085,6 +1163,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:12,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
@ -1092,57 +1171,26 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
type: 'Select' type: 'Select'
} }
}, },
{ {
label: '供应商计量数量', label: '从库位代码',
field: 'supplierPackQty', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { sortTableDefault:12,
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
},
},
hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ {
label: '供应商计量单位', label: '项目代码',
field: 'supplierPackUnit', field: 'projectCode',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
isTableForm: false,
isForm: false,
tableForm: {
type: 'Select'
}
},
{
label: '转换率',
field: 'convertRate',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain:true,
form: {
component: 'InputNumber',
componentProps: {
min: 0
},
},
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -1161,39 +1209,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
} }
}, },
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
isTableForm: false,
isForm: false
},
{
label: '从货主代码',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
isTableForm: false,
isForm: false
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
isTableForm: false,
isForm: false
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

513
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

@ -47,9 +47,9 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
sortSearchDefault:1,
isForm: false, isForm: false,
isSearch: true, isSearch: true,
sortSearchDefault:1
}, },
{ {
label: '采购订单号', label: '采购订单号',
@ -96,26 +96,26 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 180 width: 180
}, },
isForm: true, isSearch:true,
sortTableDefault:2,
sortSearchDefault:3, sortSearchDefault:3,
isSearch: true, isForm: true,
sortTableDefault:2
}, },
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
sortTableDefault:1,
table: { table: {
width: 150 width: 150
}, },
sortSearchDefault:2,
sortTableDefault:1,
isSearch: true, isSearch: true,
sortSearchDefault:2,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 disabled: true,
isSearchList: false, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题 searchTitle: '供应商信息', // 查询弹窗标题
@ -177,6 +177,7 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isSearch: false,
}, },
{ {
label: '车牌号', label: '车牌号',
@ -195,7 +196,7 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
// width: 150 // width: 150
// }, // },
// form: { // form: {
// value: 'spare_PartsReceipt', // value: 'ASN_ExternalReceipt',
// componentProps: { // componentProps: {
// disabled: true // disabled: true
// } // }
@ -206,21 +207,21 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTable:false
}, },
{ {
label: '到仓库代码', label: '到仓库代码',
field: 'toWarehouseCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTable:false
}, },
{ {
label: '从库区类型范围', label: '从库区类型范围',
@ -250,37 +251,37 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '从库区代码范围', label: '从库区代码范围',
field: 'fromAreaCodes', field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
isTable: false,
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTable:false
}, },
{ {
label: '到库区代码范围', label: '到库区代码范围',
field: 'toAreaCodes', field: 'toAreaCodes',
sort: 'custom', sort: 'custom',
isTable: false,
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTable:false
}, },
{ {
label: '到月台代码', label: '到月台代码',
field: 'toDockCode', field: 'toDockCode',
sort: 'custom', sort: 'custom',
isTable: false,
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTable:false
}, },
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
sort: 'custom', sort: 'custom',
isTable:false, isTable: false,
table: { table: {
width: 150 width: 150
}, },
@ -321,8 +322,8 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTable:false,
isForm: false, isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '创建者',
@ -331,8 +332,8 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTable:false,
isForm: false, isForm: false,
isTable: false,
}, },
{ {
label: '申请时间', label: '申请时间',
@ -354,8 +355,8 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTable:false,
isForm: false, isForm: false,
isTable: false,
}, },
// { // {
// label: '截止时间', // label: '截止时间',
@ -406,6 +407,7 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
field: 'status', field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS, dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string', dictClass: 'string',
isSearch: false,
isTable: true, isTable: true,
sortTableDefault:3, sortTableDefault:3,
isForm:false, isForm:false,
@ -426,8 +428,8 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: false, isTable: false,
sort: 'custom',
isForm:false, isForm:false,
sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
@ -507,15 +509,15 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '标签状态', label: '标签状态',
field: 'labelStatus', field: 'labelStatus',
sort: 'custom',
dictType: DICT_TYPE.LABEL_STATUS, dictType: DICT_TYPE.LABEL_STATUS,
dictClass: 'string', dictClass: 'string',
sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false,
isTable: false,
isSearch: false, isSearch: false,
isTable:false,
}, },
{ {
label: '操作', label: '操作',
@ -567,14 +569,16 @@ export const PurchasereceiptRequestMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, sortTableDefault:5,
tableForm:{ tableForm:{
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择订单号', searchListPlaceholder: '请选择订单号',
@ -619,6 +623,23 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
} }
}, },
{
label: '订单类型',
field: 'type',
dictType: DICT_TYPE.WORK_ORDER_TYPE,
dictClass: 'string',
isSearch: false,
isTable: false,
isTableForm: true,
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled:true
},
isForm: false,
},
{ {
label: '订单行', label: '订单行',
field: 'poLine', field: 'poLine',
@ -645,6 +666,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
tableForm:{ tableForm:{
multiple:true,
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择订单行', // 输入框占位文本 searchListPlaceholder: '请选择订单行', // 输入框占位文本
searchField: 'lineNumber', // 查询弹窗赋值字段 searchField: 'lineNumber', // 查询弹窗赋值字段
@ -659,6 +681,20 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}] }]
} }
}, },
{
label: '行类型',
field: 'poLineType',
sort: 'custom',
table: {
width: 180
},
sortTableDefault:5,
hiddenInMain:true,
isForm: false,
tableForm:{
disabled: true
}
},
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -666,11 +702,11 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
isSearch:true,
sortTableDefault:6,
tableForm:{ tableForm:{
disabled: true disabled: true
}, },
isSearch: true,
sortTableDefault:6,
form: { form: {
componentProps: { componentProps: {
disabled: true disabled: true
@ -695,6 +731,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:7,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
@ -706,18 +743,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, sortTableDefault:7,
isTableForm: false,
isForm: false
},
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
@ -730,17 +756,37 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
hiddenInMain:true, hiddenInMain:true,
isTable:false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
// {
// label: '数量',
// field: 'qty',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// min: 1,
// precision: 6
// },
// },
// tableForm: {
// type: 'InputNumber',
// min: 1,
// precision: 6
// }
// },
{ {
label: '数量', label: '订单数量',
field: 'qty', field: 'orderQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
@ -748,6 +794,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
precision: 6 precision: 6
}, },
}, },
sortTableDefault:9,
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 1, min: 1,
@ -792,16 +839,91 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
{ {
label: '从库位代码', label: '包装号',
field: 'fromLocationCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:13,
isTableForm: false, isTableForm: false,
hiddenInMain:true,
sortTableDefault:11,
isForm: false isForm: false
}, },
{
label: '包装规格',
field: 'packUnit',
dictClass: 'string',
isTable: true,
isTableForm: false,
sort: 'custom',
table: {
width: 150,
componentProps: {
disabled: true
}
},
sortTableDefault:11,
tableForm:{
disabled:true
},
isForm: true
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:11,
form: {
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packQty',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packQty',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
isTableForm: false,
isForm: true
},
{ {
label: '到库位代码', label: '到库位代码',
field: 'defaultToLocationCode', field: 'defaultToLocationCode',
@ -843,55 +965,94 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false isForm: false
}, },
{ {
label: '生产日期', label: '从货主代码',
field: 'produceDate', field: 'fromOwnerCode',
formatter: dateFormatter2, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD' width: 150
},
sortTableDefault:13,
hiddenInMain:true,
isTableForm: false,
isForm: false
}, },
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
sortTableDefault:13,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false,
isForm: false
},
{
label: '供应商计量数量',
field: 'supplierPackQty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:13,
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { componentProps: {
style: {width: '100%'}, min: 1,
type: 'date', precision: 6
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
}, },
tableForm:{
type:'FormDate',
placeholder: '请选择生产日期',
valueFormat: 'x',
}, },
hiddenInMain:true,
isTableForm: false,
isForm: false
}, },
{ {
label: '批次', label: '供应商计量单位',
field: 'batch', field: 'supplierPackUnit',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:8, sortTableDefault:13,
tableForm:{ hiddenInMain:true,
disabled: true isTableForm: false,
isForm: false,
tableForm: {
type: 'Select'
} }
}, },
{ {
label: '替代批次', label: '转换率',
field: 'altBatch', field: 'convertRate',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, sortTableDefault:13,
isForm: false,
hiddenInMain:true, hiddenInMain:true,
form: {
component: 'InputNumber',
componentProps: {
min: 0
},
},
isTableForm: false,
isForm: false
}, },
// {
// label: '替代批次',
// field: 'altBatch',
// sort: 'custom',
// table: {
// width: 150
// },
// isTableForm: false,
// isForm: false
// },
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
@ -903,6 +1064,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 180 width: 180
}, },
sortTableDefault:11,
hiddenInMain:true, hiddenInMain:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -920,8 +1082,8 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
}, },
{ {
label: '过期日期', label: '生产日期',
field: 'expireDate', field: 'produceDate',
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -931,6 +1093,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
width: 180 width: 180
}, },
hiddenInMain:true, hiddenInMain:true,
sortTableDefault:11,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -940,135 +1103,68 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
valueFormat: 'x', valueFormat: 'x',
} }
}, },
// tableForm:{
// type:'FormDate',
// placeholder: '请选择过期日期',
// valueFormat: 'x',
// },
tableForm:{ tableForm:{
type: 'slot', type:'FormDate',
disabled: true placeholder: '请选择生产日期',
} valueFormat: 'x',
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}, },
isTableForm: false,
hiddenInMain:true,
isForm: false,
tableForm: {
type: 'Select'
}
}, },
{ {
label: '包装数量', label: '批次',
field: 'packQty', field: 'batch',
sort: 'custom', sort: 'custom',
sortTableDefault:8,
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:12, tableForm:{
form: { disabled: true
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packQty',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
} }
}, },
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packQty',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{ {
key: 'available', label: '过期日期',
value: 'TRUE', field: 'expireDate',
isMainValue: false formatter: dateFormatter2,
}] detail: {
}, dateFormat: 'YYYY-MM-DD'
isTableForm: true,
isForm: true
}, },
{
label: '包装规格',
field: 'packUnit',
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150,
componentProps: {
disabled: true
}
},
tableForm:{
disabled:true
},
sortTableDefault:11, sortTableDefault:11,
isTableForm: true,
isForm: true
},
{
label: '供应商计量数量',
field: 'supplierPackQty',
sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
isTable:true,
hiddenInMain:true, hiddenInMain:true,
form: { form: {
component: 'InputNumber', component: 'DatePicker',
componentProps: { componentProps: {
min: 1, style: {width: '100%'},
precision: 6 type: 'date',
}, dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
}, },
isTableForm: false, // tableForm:{
isForm: false // type:'FormDate',
// placeholder: '请选择过期日期',
// valueFormat: 'x',
// },
tableForm:{
type: 'slot',
disabled: true
}
}, },
{ {
label: '供应商计量单位', label: '库存状态',
field: 'supplierPackUnit', field: 'inventoryStatus',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:12,
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
@ -1077,37 +1173,17 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
{ {
label: '转换率', label: '从库位代码',
field: 'convertRate', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true, sortTableDefault:12,
form: {
component: 'InputNumber',
componentProps: {
min: 0
},
},
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 180
},
hiddenInMain:true,
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -1120,35 +1196,29 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false isForm: false
}, },
{ {
label: '从货主代码', label: '单据号',
field: 'fromOwnerCode', field: 'number',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
isTableForm: false,
isForm: false
},
{
label: '到货主代码',
field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
hiddenInMain:true, hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
hiddenInMain:true,
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
}, },
{ {
label: '创建者', label: '创建者',
@ -1185,17 +1255,18 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
// { {
// label: '操作', label: '操作',
// field: 'action', hiddenInMain:true,
// isDetail: false, field: 'action',
// isForm: false , isDetail: false,
// table: { isForm: false ,
// width: 150, table: {
// fixed: 'right' width: 150,
// }, fixed: 'right'
// isTableForm:false, },
// } isTableForm:false,
}
])) ]))
//表单校验 //表单校验

Loading…
Cancel
Save