Browse Source

YT-1981:《品番发料消耗记录表》开发

intex_online20250311
songguoqiang 1 month ago
parent
commit
70d5b741fd
  1. 7
      src/api/wms/itemcodeConsumeRecord/index.ts
  2. 2
      src/views/wms/issueManage/itemcodeConsumeRecord/index.vue

7
src/api/wms/itemcodeConsumeRecord/index.ts

@ -45,9 +45,16 @@ export const deleteItemcodeConsumeRecord = async (id: number) => {
// 导出品番消耗记录 Excel
export const exportItemcodeConsumeRecord = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/itemcode-consume-record/export-excel-senior`, data })
}else{
return await request.download({ url: `/wms/itemcode-consume-record/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/itemcode-consume-record/get-import-template' })

2
src/views/wms/issueManage/itemcodeConsumeRecord/index.vue

@ -101,7 +101,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:itemcodeConsumeRecord:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:itemcodeConsumeRecord:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:itemcodeConsumeRecord:export'}), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save