diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 030a7705d..573628a29 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -263,16 +263,20 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { nextTick(() => { const setV = {} setV[formField] = val[0][searchField] - setV['containerNumber'] = val[0]['containerNumber'] - setV['itemCode'] = val[0]['itemCode'] - setV['packingNumber'] = val[0]['packingNumber'] - setV['batch'] = val[0]['batch'] - setV['uom'] = val[0]['uom'] - setV['qty'] = val[0]['qty'] - setV['inventoryStatus'] = val[0]['inventoryStatus'] - setV['fromLocationCode'] = val[0]['locationCode'] - setV['produceDate'] = val[0]['produceDate'] - setV['expireDate'] = val[0]['expireDate'] + if(formField == 'packingNumber'){ + setV['containerNumber'] = val[0]['containerNumber'] + setV['itemCode'] = val[0]['itemCode'] + setV['packingNumber'] = val[0]['packingNumber'] + setV['batch'] = val[0]['batch'] + setV['uom'] = val[0]['uom'] + setV['qty'] = val[0]['qty'] + setV['inventoryStatus'] = val[0]['inventoryStatus'] + setV['fromLocationCode'] = val[0]['locationCode'] + setV['produceDate'] = val[0]['produceDate'] + setV['expireDate'] = val[0]['expireDate'] + }else if(formField == 'bomVersion') { + setV['bomVersion'] = val[0]['version'] + } formRef.setValues(setV) }) }