Browse Source

YT-318装配计划、装配备件计划,新增、主页面,班次应显示中文,现显示英文

syhx
zhaoyiran 2 months ago
parent
commit
a41a9a5d38
  1. 5
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  2. 15
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  3. 4
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  4. 15
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

5
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -170,6 +170,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else{ }else{
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
// const setV = {}
if (formField == 'shift') {
setV['shift'] = val[0]['code']
setV['shiftName'] = val[0]['name']
}
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

15
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -199,7 +199,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '班次', label: '班次代码',
field: 'shift', field: 'shift',
sort: 'custom', sort: 'custom',
table: { table: {
@ -231,6 +231,19 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '班次名称',
field: 'shiftName',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
},
},
// { // {
// label: '物料代码', // label: '物料代码',
// field: 'detailItemCode', // field: 'detailItemCode',

4
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -162,6 +162,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else{ }else{
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
if (formField == 'shift') {
setV['shift'] = val[0]['code']
setV['shiftName'] = val[0]['name']
}
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

15
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

@ -203,7 +203,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '班次', label: '班次代码',
field: 'shift', field: 'shift',
sort: 'custom', sort: 'custom',
table: { table: {
@ -235,6 +235,19 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '班次名称',
field: 'shiftName',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
},
},
// { // {
// label: '物料代码', // label: '物料代码',
// field: 'detailItemCode', // field: 'detailItemCode',

Loading…
Cancel
Save