Browse Source

HL-5785制品子件报废字段调整

hella_online_20240904
yufei_wang 3 months ago
parent
commit
a049b66ca9
  1. 82
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  2. 3
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

82
src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

@ -100,22 +100,22 @@ export const ProductscrapRecordMain = useCrudSchemas(
width: 150 width: 150
} }
}, },
{ // {
label: '班组', // label: '班组',
field: 'team', // field: 'team',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
} // }
}, // },
{ // {
label: '班次', // label: '班次',
field: 'shift', // field: 'shift',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
} // }
}, // },
{ {
label: '报废原因', label: '报废原因',
field: 'scrappingReason', field: 'scrappingReason',
@ -270,15 +270,15 @@ export const ProductscrapRecordMain = useCrudSchemas(
}, },
isTable: false isTable: false
}, },
{ // {
label: '备注', // label: '备注',
field: 'remark', // field: 'remark',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false // isTable: false
}, // },
{ {
label: '是否已撤销', label: '是否已撤销',
field: 'revokeFlag', field: 'revokeFlag',
@ -729,22 +729,22 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ // {
label: '备注', // label: '备注',
field: 'remark', // field: 'remark',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isSearch: true, // isSearch: true,
search: { // search: {
component: 'Input', // component: 'Input',
componentProps: { // componentProps: {
placeholder: '请输入备注' // placeholder: '请输入备注'
} // }
}, // },
isTable: true, // isTable: true,
}, // },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

3
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -390,6 +390,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
if(formField == 'productionLineCode'){ if(formField == 'productionLineCode'){
row['productionLineCode'] = val[0]['code'] row['productionLineCode'] = val[0]['code']
tableData.value = []
}else if(formField == 'fromLocationCode'){ }else if(formField == 'fromLocationCode'){
// val.forEach(item=>{ // val.forEach(item=>{
// const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) // const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
@ -458,6 +459,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
// //
setV['costCenterType'] = val[0]['costcentreType'] setV['costCenterType'] = val[0]['costcentreType']
}else if(formField == 'productionLineCode'){
tableData.value = []
} }
formRef.setValues(setV) formRef.setValues(setV)
} }

Loading…
Cancel
Save