|
@ -77,6 +77,7 @@ |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
:isShowAddBtn="true" |
|
|
:isShowAddBtn="true" |
|
|
:detailButtonIsShowAdd="true" |
|
|
:detailButtonIsShowAdd="true" |
|
|
|
|
|
:detailButtonIsShowAddStatusArray="['0']" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -144,14 +145,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
nextTick(async () => { |
|
|
nextTick(async () => { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
// if(formField == 'itemCode'){ |
|
|
if (formField == 'sparePartsCode') { |
|
|
// await ItembasicApi.getItembasicPage({ |
|
|
setV['sparePartsCode'] = val[0].itemNumber |
|
|
// code: setV['itemCode'] |
|
|
setV['currentQty'] = val[0].qty |
|
|
// }).then(res => { |
|
|
} |
|
|
// setV['uom'] = res.list[0].uom |
|
|
|
|
|
// setV[formField] = val[0][searchField] |
|
|
|
|
|
// }) |
|
|
|
|
|
// } |
|
|
|
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -217,8 +214,8 @@ const isShowMainButton = (row, val) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListEditBtn({ hasPermi: 'wms:sparePartsInLocationMain:update' }), // 编辑 |
|
|
defaultButtons.mainListEditBtn({ hasPermi: 'wms:sparePartsInLocationMain:update' }) // 编辑 |
|
|
defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:sparePartsInLocationMain:delete' }) // 删除 |
|
|
// defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:sparePartsInLocationMain:delete' }) // 删除 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -299,7 +296,9 @@ const handleExport = async () => { |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
const data = await SparePartsInLocationMainApi.exportSparePartsInLocationMain(tableObject.params) |
|
|
const data = await SparePartsInLocationMainApi.exportSparePartsInLocationMain( |
|
|
|
|
|
tableObject.params |
|
|
|
|
|
) |
|
|
download.excel(data, '备件申领记录主.xlsx') |
|
|
download.excel(data, '备件申领记录主.xlsx') |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|