Browse Source

维修备件导入修改

hella_online_20240829
zhaoxuebing 4 months ago
parent
commit
ea5fcff09a
  1. 5
      src/api/wms/purchasereturnRequestMain/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

5
src/api/wms/purchasereturnRequestMain/index.ts

@ -88,6 +88,11 @@ export const importTemplate = () => {
return request.download({ url: '/wms/purchasereturn-request-main/get-import-template' }) return request.download({ url: '/wms/purchasereturn-request-main/get-import-template' })
} }
// 下载用户维修备件导入模板
export const importTemplateSpare = () => {
return request.download({ url: '/wms/purchasereturn-request-main/get-import-template-spare' })
}
// 关闭采购退货申请主 Excel // 关闭采购退货申请主 Excel
export const closePurchasereturnRequestMain = async (id) => { export const closePurchasereturnRequestMain = async (id) => {
return await request.put({ url: `/wms/purchasereturn-request-main/close?id=` + id }) return await request.put({ url: `/wms/purchasereturn-request-main/close?id=` + id })

4
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

@ -111,7 +111,7 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm
ref="importFormRef" ref="importFormRef"
url="/wms/purchasereturn-request-main/import" url="/wms/purchasereturn-request-main/importSpare"
:importTemplateData="importTemplateData" :importTemplateData="importTemplateData"
@success="importSuccess" @success="importSuccess"
:updateIsDisable="true" :updateIsDisable="true"
@ -1012,6 +1012,6 @@ const showLabelSuccess = async (formField, searchField, val, formRef, type, row)
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await PurchasereturnRequestMainApi.importTemplate() importTemplateData.templateUrl = await PurchasereturnRequestMainApi.importTemplateSpare()
}) })
</script> </script>

Loading…
Cancel
Save