Browse Source

计划外出库

master_hella_20240701
wangyufei 5 months ago
parent
commit
e7a2524fd0
  1. 24
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  2. 1
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

24
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -42,6 +42,8 @@
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="formRef" ref="formRef"
:isOpenSearchTable="true"
fieldTableColumn="itemCode"
@success="getList" @success="getList"
:rules="UnplannedissueRequestMainRules" :rules="UnplannedissueRequestMainRules"
:formAllSchemas="UnplannedissueRequestMain.allSchemas" :formAllSchemas="UnplannedissueRequestMain.allSchemas"
@ -112,15 +114,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if(formField === 'itemCode'){ if(formField === 'itemCode'){
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[formField] =item[searchField]
row['batch'] = val[0]['batch'] newRow['packingNumber'] = item['packingNumber']
row['inventoryStatus'] = val[0]['inventoryStatus'] newRow['containerNumber'] = item['containerNumber']
row['fromLocationCode'] = val[0]['locationCode'] newRow['batch'] = item['batch']
row['itemCode'] = val[0]['itemCode'] newRow['inventoryStatus'] = item['inventoryStatus']
row['uom'] = val[0]['uom'] newRow['fromLocationCode'] = item['locationCode']
row['qty'] = val[0]['qty'] newRow['itemCode'] = item['itemCode']
newRow['uom'] = item['uom']
newRow['qty'] = item['qty']
tableData.value.push(newRow)
})
} }
if(formField === 'costcentreCode'){ if(formField === 'costcentreCode'){
row['costcentreCode'] = val[0]['costcentreCode'] row['costcentreCode'] = val[0]['costcentreCode']

1
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

@ -615,6 +615,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