Browse Source

备件领用添加明细多选

master_hella_20240701
wangyufei 5 months ago
parent
commit
2941b72222
  1. 21
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue
  2. 1
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts

21
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

@ -41,6 +41,8 @@
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
:isOpenSearchTable="true"
fieldTableColumn="itemCode"
ref="formRef" ref="formRef"
@success="getList" @success="getList"
:rules="UnplannedissueRequestMainRules" :rules="UnplannedissueRequestMainRules"
@ -111,14 +113,17 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] let newRow = JSON.parse(JSON.stringify(tableFormKeys))
row['packingNumber'] = val[0]['packingNumber'] val.forEach(item=>{
row['containerNumber'] = val[0]['containerNumber'] newRow['packingNumber'] = item['packingNumber']
row['batch'] = val[0]['batch'] newRow['containerNumber'] = item['containerNumber']
row['inventoryStatus'] = val[0]['inventoryStatus'] newRow['batch'] = item['batch']
row['fromLocationCode'] = val[0]['locationCode'] newRow['inventoryStatus'] = item['inventoryStatus']
row['itemCode'] = val[0]['itemCode'] newRow['fromLocationCode'] = item['locationCode']
row['uom'] = val[0]['uom'] newRow['itemCode'] = item['itemCode']
newRow['uom'] = item['uom']
tableData.value.push(newRow)
})
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

1
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/sparepartsrequisitionRequestMain.data.ts

@ -548,6 +548,7 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm:{ tableForm:{
multiple:true,//多选
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber', searchField: 'packingNumber',

Loading…
Cancel
Save