Browse Source

修改

master_hella_20240701
赵雪冰 9 months ago
parent
commit
8ca6cbe52b
  1. 1
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  2. 75
      src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

1
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -180,7 +180,6 @@ const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }
const tableData = ref([])
// form // form
const formsSuccess = async (formType,data) => { const formsSuccess = async (formType,data) => {

75
src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

@ -15,33 +15,49 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '完工数量', label: '完工数量',
field: 'completedQuantity', field: 'completedQuantity',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '报废数量', label: '报废数量',
field: 'scrapQuantity', field: 'scrapQuantity',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isTable:false,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -49,6 +65,7 @@ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
isTable:false,
}, },
{ {
label: '删除时间', label: '删除时间',
@ -130,11 +147,13 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
field: 'id', field: 'id',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable:false,
}, },
{ {
label: '主表ID', label: '主表ID',
field: 'masterId', field: 'masterId',
sort: 'custom', sort: 'custom',
isTable:false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
@ -145,37 +164,59 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 150
},
hiddenInMain:true,
}, },
{ {
label: '工序', label: '工序',
field: 'processCode', field: 'processCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '生产线', label: '生产线',
field: 'productionLine', field: 'productionLine',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '库位代码', label: '库位代码',
field: 'locationCode', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '子物料代码', label: '子物料代码',
field: 'componentItemCode', field: 'componentItemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
table: {
width: 150
},
}, },
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '子物料数量', label: '子物料数量',
field: 'componentItemcodeQty', field: 'componentItemcodeQty',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '生效日期', label: '生效日期',
@ -189,11 +230,18 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
valueFormat: 'x' valueFormat: 'x'
} }
}, },
table: {
width: 150
},
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
isTable:false,
table: {
width: 150
},
}, },
{ {
label: '备注', label: '备注',
@ -206,13 +254,20 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
table: {
width: 150
},
}, },
{ {
label: '删除时间', label: '删除时间',
field: 'deletionTime', field: 'deletionTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, isSearch: false,
isTable:false,
table: {
width: 150
},
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -233,19 +288,25 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
label: '删除者ID', label: '删除者ID',
field: 'deleterId', field: 'deleterId',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
isTable:false,
table: {
width: 150
},
}, },
{ {
label: '扩展属性', label: '扩展属性',
field: 'extraProperties', field: 'extraProperties',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
isTable:false,
}, },
{ {
label: '并发乐观锁', label: '并发乐观锁',
field: 'concurrencyStamp', field: 'concurrencyStamp',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
isTable:false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
@ -255,12 +316,14 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
label: '地点ID', label: '地点ID',
field: 'siteId', field: 'siteId',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
isTable:false,
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
hiddenInMain:true,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

Loading…
Cancel
Save