Browse Source

YT-1669WMS中采购订单菜单没有按照需求进行修改

intex_online20241216
张立 7 months ago
parent
commit
250721d8b1
  1. 596
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts

596
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts

@ -17,11 +17,33 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false, isForm: false,
sortTableDefault: 1,
table: { table: {
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
}, },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.PURCHASE_ORDER_STATUS,
dictClass: 'string',
isTable: true,
isForm: false,
isSearch: true,
sortSearchDefault: 1000,
sortTableDefault: 2,
sort: 'custom',
table: {
width: 150
},
form: {
value: '1',
componentProps: {
disabled: true
}
}
},
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',
@ -54,54 +76,50 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isFormModel: true isFormModel: true
}], // 失去焦点校验参数 }], // 失去焦点校验参数
} }
}
},
{
label: '订单类型',
field: 'type',
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE,
dictClass: 'string',
isTable: true,
isSearch: true,
sort: 'custom',
table: {
width: 150
}, },
sortTableDefault: 3,
}, },
{ {
label: '行类型', label: '供应商名称',
field: 'poLineType', field: 'supplierName',
dictClass: 'string',
isTable: true, isTable: true,
isSearch: true, isSearch: false,
isForm: false,
sort: 'custom', sort: 'custom',
sortTableDefault: 4,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '状态', label: '订单类型',
field: 'status', field: 'type',
dictType: DICT_TYPE.PURCHASE_ORDER_STATUS, dictType: DICT_TYPE.PURCHASE_ORDER_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
isForm:false,
isSearch: true, isSearch: true,
sortSearchDefault:1000,
sort: 'custom', sort: 'custom',
sortTableDefault: 5,
table: { table: {
width: 150 width: 150
}, },
form: {
value: '1',
componentProps: {
disabled: true
}
}
}, },
// {
// label: '行类型',
// field: 'poLineType',
// isTable: false,
// isSearch: true,
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '订单日期', label: '订单日期',
field: 'orderDate', field: 'orderDate',
isTable: true, isTable: false,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -110,6 +128,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
sortTableDefault: 6,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -134,6 +153,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
sortTableDefault: 7,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -144,6 +164,15 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '版本',
field: 'version',
sort: 'custom',
isTable: false,
table: {
width: 150
},
},
{ {
label: '税率', label: '税率',
field: 'taxRate', field: 'taxRate',
@ -151,6 +180,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
@ -162,29 +192,27 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '订单备注', label: '支付周期',
field: 'poRmks', field: 'paymentCycle',
sort: 'custom', sort: 'custom',
isTable:true, isTable: false,
isForm: false, isForm: false,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '管理编号', label: '联系人姓名',
field: 'poContract', field: 'contactName',
sort: 'custom', sort: 'custom',
isTable:true, isTable: false,
isForm:false,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '版本', label: '联系人电话',
field: 'version', field: 'contactPhone',
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
table: { table: {
@ -192,22 +220,13 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '当前阶段', label: '联系人电子邮件',
field: 'currentStage', field: 'contactEmail',
sort: 'custom', sort: 'custom',
isTable: false,
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
componentProps: {
style: {width:'100%'},
min: 0
}
},
isTableForm: false,
isForm: false,
isTable:false,
}, },
{ {
label: '是否寄存订单', label: '是否寄存订单',
@ -230,49 +249,22 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '是否可用', label: '订单备注',
field: 'available', field: 'poRmks',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
},
isForm:false,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE',
disabled: true
}
},
},
{
label: '联系人姓名',
field: 'contactName',
sort: 'custom',
isTable:false,
table: {
width: 150
},
},
{
label: '联系人电话',
field: 'contactPhone',
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '联系人电子邮件', label: '管理编号',
field: 'contactEmail', field: 'poContract',
sort: 'custom', sort: 'custom',
isTable:false, isTable: true,
isForm: false,
table: { table: {
width: 150 width: 150
}, },
@ -294,20 +286,52 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '数据来源区分',
field: 'dataSource',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false,
form: {
}
},
// {
// label: '当前阶段',
// field: 'currentStage',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// style: {width:'100%'},
// min: 0
// }
// },
// isTableForm: false,
// isForm: false,
// isTable:false,
// },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable:false, isTable: true,
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1000,
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable:false, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -335,48 +359,17 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
sortTableDefault: 1000,
}, },
{
label: '最后更新者', // {
field: 'updater', // label: '备注',
sort: 'custom', // field: 'remark',
isForm: false, // isTable: false,
isTable:false, // table: {
table: { // width: 150
width: 150 // },
}, // },
},
{
label: '最后更新时间',
field: 'updateTime',
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
isForm: false,
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '备注',
field: 'remark',
isTable: false,
table: {
width: 150
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -432,20 +425,6 @@ export const PurchaseMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
isTableForm: false,
hiddenInMain:true,
table: {
width: 180
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '行号', label: '行号',
field: 'lineNumber', field: 'lineNumber',
@ -458,7 +437,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '物料代码', label: '品番',
field: 'itemCode', field: 'itemCode',
isSearch: true, isSearch: true,
table: { table: {
@ -528,28 +507,17 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '计量单位', label: '行类型',
field: 'uom', field: 'poLineType',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true, isTable: true,
isTableForm:true, isSearch: false,
form:{ sort: 'custom',
componentProps: {
disabled:true
}
},
tableForm:{
disabled: true,
type:'Select',
},
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '订单数量', label: '采购订单数量',
field: 'orderQty', field: 'orderQty',
table: { table: {
width: 150 width: 150
@ -571,54 +539,72 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '默认收货库区', label: '采购标包数量',
field: 'defaultAreaCode', field: 'purchaseStdQty',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, form: {
isForm: false, component: 'InputNumber',
isTable: true, componentProps: {
disabled: false,
min: 1,
precision: 6
}
},
hiddenInMain: true,
tableForm: {
disabled: false,
hidden: false,
type: 'InputNumber',
min: 1,
precision: 6
},
}, },
{ {
label: '库区描述', label: '采购计量单位',
field: 'areaDescription', field: 'purchaseStdUom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
isTableForm: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
type: 'Select',
},
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
isTable: true,
}, },
// {
// label: 'ERP库位',
// field: 'erpLocationCode',
// dictType : DICT_TYPE.ERP_LOCATION,
// dictClass: 'string',
// table: {
// width: 150
// },
// hiddenInMain:true,
// isTableForm: false,
// isForm: false,
// },
{ {
label: '项目代码', label: '转换率',
field: 'projectCode', field: 'convertRate',
form: {
component: 'InputNumber',
componentProps: {
min: 0
}
},
hiddenInMain: true,
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '包装数量', label: t('ts.单价'),
field: 'packQty', field: 'singlePrice',
hiddenInMain:true,
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
@ -627,24 +613,28 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
{ {
label: '包装规格', label: '金额',
hiddenInMain:true, field: 'amount',
field: 'packUnit',
// dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string',
isTable: true,
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true,
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
{ {
label: '供应商计量数量', label: '库存标包数量',
field: 'supplierQty', field: 'packQty',
hiddenInMain: true, hiddenInMain: true,
table: { table: {
width: 150 width: 150
@ -659,13 +649,14 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '供应商计量单位', label: '库存标包规格',
field: 'supplierUom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
hiddenInMain: true, hiddenInMain: true,
field: 'packUnit',
// dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string',
isTable: true,
table: { table: {
width: 150 width: 150
}, },
@ -673,42 +664,60 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '转换率', label: '库存计量单位',
field: 'convertRate', field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
isTableForm: true,
hiddenInMain: true,
form: { form: {
component: 'InputNumber',
componentProps: { componentProps: {
min: 0 disabled: true
} }
}, },
hiddenInMain:true, tableForm: {
disabled: true,
type: 'Select',
},
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
// { // {
// label: t('ts.已计划数量'), // label: 'ERP库位',
// field: 'plannedQty', // field: 'erpLocationCode',
// dictType : DICT_TYPE.ERP_LOCATION,
// dictClass: 'string',
// table: { // table: {
// width: 150 // width: 150
// }, // },
// hiddenInMain:true, // hiddenInMain:true,
// form: {
// component: 'InputNumber',
// componentProps: {
// min: 1,
// precision: 6
// },
// value: 1
// },
// isTableForm: false, // isTableForm: false,
// isForm: false, // isForm: false,
// isTable: false,
// }, // },
{ {
label: t('ts.已发货数量'), label: '默认收货库区',
field: 'shippedQty', field: 'defaultAreaCode',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
isTableForm: false,
isForm: false,
isTable: true,
},
{
label: '已计划采购数量',
field: 'plannedPurchaseQty',
table: { table: {
width: 150 width: 150
}, },
@ -725,26 +734,26 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: t('ts.已收货数量'), label: '已发货采购数量',
field: 'receivedQty', field: 'shippedPurchaseQty',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0,
componentProps: { componentProps: {
min: 1, min: 1,
precision: 6 precision: 6
} },
value: 1
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false,
}, },
{ {
label: t('ts.已退货数量'), label: '已收货采购数量',
field: 'returnedQty', field: 'receivedPurchaseQty',
table: { table: {
width: 150 width: 150
}, },
@ -761,15 +770,15 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false isForm: false
}, },
{ {
label: t('ts.已上架数量'), label: '已退货采购数量',
field: 'putawayQty', field: 'returnedPurchaseQty',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 1, value: 0,
componentProps: { componentProps: {
min: 1, min: 1,
precision: 6 precision: 6
@ -779,14 +788,15 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false isForm: false
}, },
{ {
label: t('ts.单价'), label: "已上架采购数量",
field: 'singlePrice', field: 'putawayPurchaseQty',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 1,
componentProps: { componentProps: {
min: 1, min: 1,
precision: 6 precision: 6
@ -795,48 +805,69 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ {
label: '金额', label: '库区描述',
field: 'amount', field: 'areaDescription',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
form: { form: {
component: 'InputNumber',
componentProps: { componentProps: {
min: 1, disabled: true
precision: 6
} }
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false,
isTable: false,
}, },
{ {
label: '是否可用', label: '项目代码',
field: 'available', field: 'projectCode',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
tableForm:{ isTableForm: false,
type:'Select', isForm: false,
default: 'TRUE', isTable: false,
inactiveValue: 'FALSE', },
activeValue: 'TRUE'
{
label: '供应商计量数量',
field: 'supplierQty',
hiddenInMain: true,
table: {
width: 150
}, },
form: { form: {
component: 'Switch', component: 'InputNumber',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', min: 1,
activeValue: 'TRUE' precision: 6
}
} }
}, },
isTableForm: false,
isForm: false,
isTable: false,
},
{
label: '供应商计量单位',
field: 'supplierUom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: false,
hiddenInMain: true,
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{ {
label: '超收百分比', label: '超收百分比',
field: 'overReceivingPercent', field: 'overReceivingPercent',
@ -857,53 +888,19 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
min: 0 min: 0
} }
}, },
{
label: '创建时间',
field: 'createTime',
isTable: true,
isTableForm: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
},
hiddenInMain:false,
isForm: false,
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
isTableForm: false,
table: {
width: 150
},
hiddenInMain:false,
isForm: false,
},
// { // {
// label: '最后更新时间', // label: '创建时间',
// field: 'updateTime', // field: 'createTime',
// isTableForm: false,
// isTable: true, // isTable: true,
// hiddenInMain:false, // isTableForm: false,
// formatter: dateFormatter, // formatter: dateFormatter,
// detail: { // detail: {
// dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
// }, // },
// table: { // table: {
// width: 150 // width: 180
// }, // },
// hiddenInMain:false,
// isForm: false, // isForm: false,
// form: { // form: {
// component: 'DatePicker', // component: 'DatePicker',
@ -916,23 +913,14 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// }, // },
// { // {
// label: '最后更新者', // label: '创建者',
// field: 'updater', // field: 'creator',
// isTableForm: false, // isTableForm: false,
// table: { // table: {
// width: 150 // width: 150
// }, // },
// hiddenInMain:false, // hiddenInMain:false,
// isForm: false, // isForm: false,
// // form: {
// // component: 'DatePicker',
// // componentProps: {
// // style: {width:'100%'},
// // type: 'datetime',
// // dateFormat: 'YYYY-MM-DD HH:mm:ss',
// // valueFormat: 'x',
// // }
// // }
// }, // },
{ {
label: '备注', label: '备注',
@ -941,6 +929,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false,
}, },
{ {
label: '操作', label: '操作',
@ -948,7 +937,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false, isForm: false,
isTable: false ,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

Loading…
Cancel
Save