Browse Source

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

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

Loading…
Cancel
Save