|
|
@ -332,7 +332,22 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if(routeName.value == 'HoldtookRequestMain'){ |
|
|
|
//解决雪冰隔离转合格的bug导致其他页面没有到库位代码的问题 |
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ |
|
|
|
if(item.field=='toLocationCode'){ |
|
|
|
item.hidden = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ |
|
|
|
if(item.field=='toLocationCode'){ |
|
|
|
item.hidden = false |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
console.log('tableFormColumns',InventorymoveRequestDetail.allSchemas.tableFormColumns) |
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
@ -644,24 +659,24 @@ const handleExport = async () => { |
|
|
|
if(routeName.value == 'OktoholdRequestMain'){ |
|
|
|
const data = await InventorymoveRequestMainApi.exportOkToHoldRequestMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
}else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportHoldToOkRequestMain(tableObject.params) |
|
|
|
}else if ( routeName.value == 'HoldtookRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportHoldToOkRequestMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
}else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportHoldToScrapRequestMain(tableObject.params) |
|
|
|
}else if ( routeName.value == 'HoldtoscrapRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportHoldToScrapRequestMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
}else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportOkToScrapRequestMain(tableObject.params) |
|
|
|
}else if ( routeName.value == 'OktoscrapRequestMain') { |
|
|
|
const data = await InventorymoveRequestMainApi.exportOkToScrapRequestMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
} |
|
|
|
// else if ( routeName.value == 'ScraptoholdRequestMain') { |
|
|
|
// const data = await InventorymoveRequestMainApi.exportScrapToHoldRequestMain(tableObject.params) |
|
|
|
// download.excel(data, '报废转隔离申请主.xlsx') |
|
|
|
// } |
|
|
|
else{ |
|
|
|
const data = await InventorymoveRequestMainApi.exportInventorymoveRequestMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
else{ |
|
|
|
const data = await InventorymoveRequestMainApi.exportInventorymoveRequestMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -700,7 +715,7 @@ const submitForm = async (formType, submitData) => { |
|
|
|
if(data.masterId){ |
|
|
|
data.id = data.masterId |
|
|
|
} |
|
|
|
let findLocation = tableData.value.find(item=>item.fromLocationCode&&item.toLocationCode&&item.fromLocationCode==item.toLocationCode) |
|
|
|
let findLocation = tableData.value.find(item=>item.fromLocationCode==item.toLocationCode&&item.fromInventoryStatus==item.toInventoryStatus) |
|
|
|
if(findLocation){ |
|
|
|
message.warning('从库位和到库位不能相同') |
|
|
|
return |
|
|
|