|
@ -114,6 +114,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
import * as ruleApi from '@/api/wms/rule/index' |
|
|
import * as ruleApi from '@/api/wms/rule/index' |
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
// 生产退料申请 |
|
|
// 生产退料申请 |
|
|
defineOptions({ name: 'ProductionreturnRequestMain' }) |
|
|
defineOptions({ name: 'ProductionreturnRequestMain' }) |
|
@ -238,11 +239,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
newRow['qty'] = item['qty'] |
|
|
newRow['qty'] = item['qty'] |
|
|
// 如果有批次 赋值库存余额批次 无批次 赋值 000000 |
|
|
// 如果有批次 赋值库存余额批次 无批次 赋值 000000 |
|
|
if (item['batch'] != '') { |
|
|
// if (item['batch'] != '') { |
|
|
newRow['batch'] = item['batch'] |
|
|
newRow['batch'] = item['batch'] |
|
|
}else{ |
|
|
// }else{ |
|
|
newRow['batch'] = getFormattedDate(); // 获取 YYYYMMDD 格式的日期 |
|
|
// newRow['batch'] = getFormattedDate(); // 获取 YYYYMMDD 格式的日期 |
|
|
} |
|
|
// } |
|
|
|
|
|
|
|
|
// else { |
|
|
// else { |
|
|
// newRow['batch'] = '000000' |
|
|
// newRow['batch'] = '000000' |
|
@ -324,6 +325,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
// 来源工位代码 |
|
|
// 来源工位代码 |
|
|
setV['workStationCode'] = val[0]['code'] |
|
|
setV['workStationCode'] = val[0]['code'] |
|
|
setV['fromLocationCode'] = val[0]['rawLocationCode'] |
|
|
setV['fromLocationCode'] = val[0]['rawLocationCode'] |
|
|
|
|
|
let locationInfo = await LocationApi.getFromWarehouseCode(val[0]['rawLocationCode']) |
|
|
|
|
|
setV['toWarehouseCode'] = locationInfo.warehouseCode |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
} |
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|