Browse Source

备件收货记录

master_hella_20240701
yufei0306 7 months ago
parent
commit
e4724e9b02
  1. 268
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts

268
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts

@ -16,7 +16,9 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left'
},
isSearch: true,
sortSearchDefault:1
sortSearchDefault:1,
sortTableDefault:1
},
{
label: '申请单号',
@ -25,6 +27,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
sortTableDefault:2
},
{
label: '任务单号',
@ -33,6 +36,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
sortTableDefault:3
},
{
label: '发货单号',
@ -41,8 +45,19 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
sortTableDefault:4,
isSearch: true
},
{
label: 'ERP单据号(无用)',
field: 'erpNumber',
isTable:false,
isTableForm:false,
sort: 'custom',
table: {
width: 180
},
},
{
label: 'ERP单据号',
field: 'qadNumber',
@ -50,6 +65,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 200
},
sortTableDefault:5,
},
{
label: '要货计划单号',
@ -58,7 +74,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable:false
},
{
label: '供应商代码',
@ -68,8 +84,8 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isSearch: true,
isTable: false,
sortSearchDefault:2,
isTable:false
},
{
label: '到月台代码',
@ -78,7 +94,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '承运商',
@ -87,7 +103,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '运输方式',
@ -96,7 +112,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '数据来源',
@ -106,13 +122,13 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
form: {
componentProps: {
disabled: true
}
},
isSearch: false,
isTable:false
},
{
label: '车牌号',
@ -121,7 +137,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '从仓库代码',
@ -130,7 +146,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '到仓库代码',
@ -139,7 +155,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '从库区类型范围',
@ -170,7 +186,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '到库区代码范围',
@ -179,7 +195,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '出库事务类型',
@ -188,7 +204,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '入库事务类型',
@ -197,7 +213,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false
},
{
label: '执行时间',
@ -210,7 +226,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable:false,
form: {
component: 'DatePicker',
componentProps: {
@ -231,7 +247,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable:false,
form: {
component: 'DatePicker',
componentProps: {
@ -253,7 +269,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable:false,
form: {
component: 'DatePicker',
componentProps: {
@ -274,7 +290,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable:false,
form: {
component: 'DatePicker',
componentProps: {
@ -291,7 +307,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false,
},
// {
// label: '代码',
@ -319,7 +335,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false,
},
{
label: '备注',
@ -328,7 +344,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false,
},
{
label: '创建者',
@ -337,7 +353,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isTable: false,
isTable:false,
},
{
label: '创建时间',
@ -350,7 +366,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
isTable: false,
isTable:false,
form: {
component: 'DatePicker',
componentProps: {
@ -384,10 +400,9 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '操作',
field: 'action',
isDetail: false,
isTable:false,
isForm: false,
table: {
width: 150,
width: 300,
fixed: 'right'
},
},
@ -400,7 +415,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:1000
sortTableDefault:12,
},
{
label: '包装号', // 实际是子表的从包装号,为了不影响页面,单独放上面
@ -409,7 +424,25 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
sortTableDefault:1001
sortTableDefault:16,
},
{
label: '检验申请单号',
field: 'inspectNumber',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:6,
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:12,
},
]))
@ -472,8 +505,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom',
table: {
width: 180,
fixed: 'left'
},
sortTableDefault:1998,
hiddenInMain:true
},
{
@ -483,9 +516,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
isTableForm: false,
isForm: false,
hiddenInMain:false
isTable:false,
sortTableDefault:6,
},
{
label: '采购订单号',
@ -494,6 +526,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortSearchDefault:5,
sortTableDefault:7,
isSearch: true
},
{
@ -503,6 +537,22 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortSearchDefault:5,
sortTableDefault:8,
},
{
label: '行类型',
field: 'poLineType',
sort: 'custom',
table: {
width: 180
},
sortTableDefault:9,
hiddenInMain:true,
isForm: false,
tableForm:{
disabled: true
},
},
{
label: '物料代码',
@ -511,6 +561,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:10,
isSearch: true
},
{
@ -520,6 +571,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:10,
},
{
label: '物料描述1',
@ -528,6 +580,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:11,
hiddenInMain:true
},
{
@ -537,6 +590,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:11,
hiddenInMain:true
},
{
@ -546,6 +600,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:14,
hiddenInMain:true
},
{
@ -555,6 +610,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:14,
hiddenInMain:true
},
{
@ -564,6 +620,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
isTable:false,
hiddenInMain:true
},
{
@ -573,6 +630,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:15,
hiddenInMain:true
},
{
@ -582,8 +640,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:15,
hiddenInMain:true
},
{
label: '从器具号',
@ -592,6 +650,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
isTable:false,
hiddenInMain:true
},
{
@ -601,8 +660,30 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
isTable:false,
hiddenInMain:true
},
{
label: '订单数量',
field: 'orderQty',
sort: 'custom',
table: {
width: 150
},
isTable:false,
hiddenInMain:true,
sortTableDefault:1004
},
{
label: '收货数量',
field: 'receivedQty',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:12,
},
{
label: '数量',
field: 'qty',
@ -610,10 +691,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:1000,
isTable:false,
form: {
component: 'InputNumber',
}
},
sortTableDefault:12,
},
{
label: '计量单位',
@ -625,7 +707,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:1000,
sortTableDefault:13,
},
{
label: '包装规格',
@ -636,7 +718,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:1001
sortTableDefault:16,
},
{
label: '包装数量',
@ -645,10 +727,14 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:1001,
form: {
component: 'InputNumber',
}
},
tableForm: {
disabled: true,
},
isForm:false,
sortTableDefault:16,
},
{
label: '供应商计量数量',
@ -657,10 +743,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
hiddenInMain:true,
form: {
component: 'InputNumber',
}
},
sortTableDefault:24,
hiddenInMain:true
},
{
label: '供应商计量单位',
@ -668,11 +755,12 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
hiddenInMain:true,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:24,
hiddenInMain:true
},
{
@ -681,11 +769,12 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
hiddenInMain:true,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:18,
hiddenInMain:true
},
{
label: '从库位代码',
@ -694,7 +783,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:1100
sortTableDefault:18,
},
{
label: '到库位代码',
@ -703,61 +793,67 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
sortTableDefault:1101
sortTableDefault:18,
},
{
label: '从库位组代码',
label: '从库位组',
field: 'fromLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:19,
hiddenInMain:true
},
{
label: '到库位组代码',
label: '到库位组',
field: 'toLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:19,
hiddenInMain:true
},
{
label: '从库区代码',
label: '从库区',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
sortTableDefault:22,
hiddenInMain:true,
},
{
label: '到库区代码',
label: '到库区',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:22,
hiddenInMain:true
},
{
label: '从货主代码',
label: '从货主',
field: 'fromOwnerCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:23,
hiddenInMain:true
},
{
label: '到货主代码',
label: '到货主',
field: 'toOwnerCode',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:23,
hiddenInMain:true
},
{
label: '到货日期',
@ -770,7 +866,6 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 180
},
hiddenInMain:true,
form: {
component: 'DatePicker',
componentProps: {
@ -780,6 +875,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
valueFormat: 'x',
}
},
sortTableDefault:17,
hiddenInMain:true
},
{
label: '生产日期',
@ -789,7 +886,6 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
hiddenInMain:true,
table: {
width: 180
},
@ -802,6 +898,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
valueFormat: 'x',
}
},
sortTableDefault:17,
hiddenInMain:true
},
{
label: '过期日期',
@ -814,7 +912,6 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 180
},
hiddenInMain:true,
form: {
component: 'DatePicker',
componentProps: {
@ -824,6 +921,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
valueFormat: 'x',
}
},
sortTableDefault:17,
hiddenInMain:true
},
{
label: '转换率',
@ -832,10 +931,11 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
hiddenInMain:true,
form: {
component: 'InputNumber',
}
},
sortTableDefault:1997,
hiddenInMain:true
},
{
label: '目检结果',
@ -844,7 +944,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
hiddenInMain:true,
isTable:false,
hiddenInMain:true
},
{
label: '目检照片',
@ -853,19 +954,20 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
hiddenInMain:true,
isTable:false,
hiddenInMain:true
},
{
label: '不合格原因',
field: 'failedReason',
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string',
isTable: true,
isTable:false,
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
hiddenInMain:true
},
{
label: '单价',
@ -877,7 +979,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
form: {
component: 'InputNumber',
},
hiddenInMain:true,
isTable:false,
hiddenInMain:true
},
{
label: '金额',
@ -889,7 +992,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
form: {
component: 'InputNumber',
},
hiddenInMain:true,
isTable:false,
hiddenInMain:true
},
// {
// label: '任务明细ID',
@ -907,7 +1011,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:1998,
hiddenInMain:true
},
// {
// label: '代码',
@ -927,7 +1032,8 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
hiddenInMain:true,
isTable:false,
hiddenInMain:true
},
{
label: '备注',
@ -937,6 +1043,17 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150
},
hiddenInMain:true,
sortTableDefault:2000,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:2000,
},
{
label: '创建时间',
@ -958,15 +1075,20 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
valueFormat: 'x',
}
},
sortTableDefault:2000,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
label: '操作',
hiddenInMain:true,
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150
width: 150,
fixed: 'right'
},
hiddenInMain:true,
isTableForm:true,
}
]))

Loading…
Cancel
Save