Browse Source

YT-507备料计划变更

intex_online20241228
zhaoyiran 3 months ago
parent
commit
d438dd5eb6
  1. 18
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  2. 2
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

18
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -119,8 +119,22 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
message.warning(`物料${val[0]['componentItemCode']}已经存在`)
return
}
row['itemCode'] = val[0]['componentItemCode']
row['uom'] = val[0]['componentUom']
val.forEach((item, index)=>{
let tableForm = JSON.parse(JSON.stringify(tableFormKeys))
if(index == 0){
row['itemCode'] = item['componentItemCode']
row['uom'] = item['componentUom']
}else{
const newRow = JSON.parse(JSON.stringify({...tableForm,...item}))
newRow['itemCode'] = item['componentItemCode']
newRow['uom'] = item['componentUom']
newRow['workStation'] = row['workStation']
newRow['toLocationCode'] = row['toLocationCode']
newRow['remark'] = ''
tableData.value.push(newRow)
}
})
} else if(formField == 'workStation'){
if(isShowButton.value){
val.forEach(item=>{

2
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -617,6 +617,7 @@ export const PreparetoissueDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '物料清单信息', // 查询弹窗标题
multiple: true,
searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineitemApi.getProductionlineitemPageByItemtype, // 查询弹窗所需分页方法
searchCondition: [{
@ -642,6 +643,7 @@ export const PreparetoissueDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '物料清单信息', // 查询弹窗标题
searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
multiple: true,
searchPage: ProductionlineitemApi.getProductionlineitemPageByItemtype, // 查询弹窗所需分页方法
searchCondition: [{
key: 'productionLineCode',

Loading…
Cancel
Save