|
|
@ -82,7 +82,7 @@ |
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm |
|
|
|
ref="importFormRef" |
|
|
|
url="/eam/sparePartsApplyDetail/import" |
|
|
|
url="/eam/spare-parts-in-location-main/import" |
|
|
|
:importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" |
|
|
|
/> |
|
|
@ -131,6 +131,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
row['areaCode'] = val[0].areaCode |
|
|
|
row['sparePartsCode'] = val[0].sparePartsCode |
|
|
|
row['currentQty'] = val[0].qty |
|
|
|
row['isRadeIn'] = val[0].isRadeIn |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (formField == 'locationCode') { |
|
|
@ -138,6 +139,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
setV['areaCode'] = val[0].areaCode |
|
|
|
setV['sparePartsCode'] = val[0].sparePartsCode |
|
|
|
setV['currentQty'] = val[0].qty |
|
|
|
setV['isRadeIn'] = val[0].isRadeIn |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -149,9 +151,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(async () => { |
|
|
|
const setV = {} |
|
|
|
if (formField == 'sparePartsCode') { |
|
|
|
setV['sparePartsCode'] = val[0].itemNumber |
|
|
|
setV['currentQty'] = val[0].qty |
|
|
|
if (formField == 'locationCode') { |
|
|
|
setV['locationCode'] = val[0].code |
|
|
|
setV['areaCode'] = val[0].areaCode |
|
|
|
setV['sparePartsCode'] = val[0].sparePartsCode |
|
|
|
setV['currentQty'] = val[0].qty |
|
|
|
setV['isRadeIn'] = val[0].isRadeIn |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
@ -218,8 +223,8 @@ const isShowMainButton = (row, val) => { |
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListEditBtn({ hasPermi: 'eam:spare-parts-in-location-main:update' }) // 编辑 |
|
|
|
// defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:sparePartsInLocationMain:delete' }) // 删除 |
|
|
|
defaultButtons.mainListEditBtn({ hasPermi: 'eam:spare-parts-in-location-main:update' }), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:spare-parts-in-location-main:delete' }) // 删除 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|