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