|
|
@ -42,6 +42,8 @@ |
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<BasicForm |
|
|
|
ref="formRef" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="itemCode" |
|
|
|
@success="getList" |
|
|
|
:rules="ProductputawayRequestMainRules" |
|
|
|
:formAllSchemas="ProductputawayRequestMain.allSchemas" |
|
|
@ -87,7 +89,7 @@ import * as ProductputawayRequestMainApi from '@/api/wms/productputawayRequestMa |
|
|
|
import * as ProductputawayRequestDetailApi from '@/api/wms/productputawayRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
|
|
// 制品上架申请 |
|
|
|
// 制品上架申请 装配上架申请 |
|
|
|
defineOptions({ name: 'ProductputawayRequestMain' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -108,14 +110,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['poLine'] = val[0]['itemCode'] |
|
|
|
row['packingNumber'] = val[0]['packingNumber'] |
|
|
|
row['containerNumber'] = val[0]['containerNumber'] |
|
|
|
row['batch'] = val[0]['batch'] |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
val.forEach(item=>{ |
|
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
|
newRow[formField] = item[searchField] |
|
|
|
newRow['poLine'] = item['itemCode'] |
|
|
|
newRow['packingNumber'] = item['packingNumber'] |
|
|
|
newRow['containerNumber'] = item['containerNumber'] |
|
|
|
newRow['batch'] = item['batch'] |
|
|
|
newRow['uom'] = item['uom'] |
|
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|