陈薪名 11 months ago
parent
commit
50a581a58a
  1. 32
      src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
  2. 2
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  3. 51
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

32
src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts

@ -7,14 +7,23 @@ import * as BomApi from "@/api/wms/bom";
* @returns {Array} * @returns {Array}
*/ */
export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true
},
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, }
isSearch: true
}, },
{ {
label: '车间代码', label: '车间代码',
@ -155,16 +164,7 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true
},
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
@ -368,6 +368,14 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '成品库位代码',
field: 'fgFromLocationCode',
sort: 'custom',
table: {
width: 150
}
},
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',

2
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -211,6 +211,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['batch'] = val[0]['batch'] row['batch'] = val[0]['batch']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['fgFromLocationCode'] = val[0]['locationCode']
} else if(formField == 'productionLineCode'){ } else if(formField == 'productionLineCode'){
row['productionLineCode'] = val[0]['code'] row['productionLineCode'] = val[0]['code']
} else if(formField == 'workStationCode'){ } else if(formField == 'workStationCode'){
@ -242,6 +243,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['batch'] = val[0]['batch'] setV['batch'] = val[0]['batch']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
setV['inventoryStatus'] = val[0]['inventoryStatus'] setV['inventoryStatus'] = val[0]['inventoryStatus']
setV['fgFromLocationCode'] = val[0]['locationCode']
// setV['fromLocationCode'] = val[0]['locationCode'] // setV['fromLocationCode'] = val[0]['locationCode']
} else if(formField == 'productionLineCode'){ } else if(formField == 'productionLineCode'){
setV['productionLineCode'] = val[0]['code'] setV['productionLineCode'] = val[0]['code']

51
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -549,6 +549,17 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{
label: 'Bom来源库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{ {
label: '工序代码', label: '工序代码',
field: 'processCode', field: 'processCode',
@ -586,6 +597,17 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
@ -595,7 +617,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
}, },
tableForm:{ tableForm:{
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择物料',
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
@ -610,7 +632,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择物料',
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
@ -624,8 +646,8 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '器具号', label: '成品库位代码',
field: 'containerNumber', field: 'fgFromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -635,8 +657,8 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '批次', label: '器具号',
field: 'batch', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -646,8 +668,8 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '从库位代码', label: '批次',
field: 'fromLocationCode', field: 'batch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -656,6 +678,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
disabled: true disabled: true
} }
}, },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -685,17 +708,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

Loading…
Cancel
Save