From 233f8a5da0fd83e75f03f442626ac06d923dbf5b Mon Sep 17 00:00:00 2001 From: chenfang Date: Fri, 19 Jan 2024 13:59:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=80=80=E8=B4=A7=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86api=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/customerreturnRequestMain/index.ts | 10 ++ .../customerreturnRequestMain.data.ts | 7 +- .../customerreturnRequestMain/index.vue | 23 ++++- .../deliverRequestMain.data.ts | 39 +++++--- .../deliver/deliverRequestMain/index.vue | 6 +- .../deliverPlanMain/deliverPlanMain.data.ts | 27 ++++-- .../deliverplan/deliverPlanMain/index.vue | 6 +- .../inventorymoveJobMain/index.vue | 95 ++----------------- .../inventorymoveRecordMain/index.vue | 9 +- .../inventorymoveRequestMain/index.vue | 10 +- 10 files changed, 117 insertions(+), 115 deletions(-) diff --git a/src/api/wms/customerreturnRequestMain/index.ts b/src/api/wms/customerreturnRequestMain/index.ts index 6f42a5662..6fdeedba8 100644 --- a/src/api/wms/customerreturnRequestMain/index.ts +++ b/src/api/wms/customerreturnRequestMain/index.ts @@ -107,4 +107,14 @@ export const refused = async (id) => { // 处理驳回客户退货申请主 Excel export const handle = async (id) => { return await request.put({ url: `/wms/customerreturn-request-main/handle?id=` + id }) +} + +export const pageItemCodeToBalance = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/customerreturn-request-main/pageItemCodeToBalance', data }) + } else { + return request.get({ url: `/wms/customerreturn-request-main/pageItemCodeToBalance`, params }) + } } \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts index 569d5f3d9..adee29386 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts @@ -17,6 +17,9 @@ import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier import * as BalanceApi from '@/api/wms/balance' import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' + +import * as CustomerreturnRequestApi from '@/api/wms/customerreturnRequestMain' + const { t } = useI18n() // 国际化 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 @@ -705,7 +708,7 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive searchField: 'packingNumber', searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, - searchPage: BalanceApi.getBalancePage, + searchPage: CustomerreturnRequestApi.pageItemCodeToBalance, searchCondition: [{ key: 'locationCode', value: 'CUST', @@ -720,7 +723,7 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive searchField: 'packingNumber', searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, - searchPage: BalanceApi.getBalancePage, + searchPage: CustomerreturnRequestApi.pageItemCodeToBalance, searchCondition: [{ key: 'locationCode', value: 'CUST', diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index d0de662c8..affce8962 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -94,6 +94,7 @@ const { t } = useI18n() // 国际化 const route = useRoute() // 路由信息 const routeName = ref() +const customerCode = ref() routeName.value = route.name const tableColumns = ref(CustomerreturnRequestMain.allSchemas.tableColumns) @@ -105,6 +106,26 @@ const updataTableColumns = (val) => { // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { nextTick(() => { + if(formField == 'customerCode'){ + customerCode.value = val[0]['code'] + } + CustomerreturnRequestDetail.allSchemas.tableFormColumns.map(item => { + if(item.field == 'packingNumber') { + item.tableForm.searchCondition = [ + { + key: 'customerCode', + value: customerCode.value , + isMainValue: false + }] + item.form.componentProps.searchCondition = [ + { + key: 'customerCode', + value: customerCode.value , + isMainValue: false + }] + } + }) + console.log(128, customerCode.value) if (type == 'tableForm') { if(formField == 'packingNumber') { row['packingNumber'] = val[0]['packingNumber'] @@ -126,7 +147,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => setV['deliverPlanNumber'] = val[0]['deliverPlanNumber'] setV['customerCode'] = val[0]['customerCode'] setV['customerDockCode'] = val[0]['customerDockCode'] - // 获取子表数据 getBomDisassemble + // 获取子表数据 DeliverRecordDetailApi.getDeliverRecordDetailPage({masterId:val[0]['id']}) .then(res => { res.list.forEach(obj => { diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index 45edcf264..75ab5882c 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -5,8 +5,8 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' import { DeliverPlanMain } from '../../deliverplan/deliverPlanMain/deliverPlanMain.data' -import * as ItembasicApi from '@/api/wms/itembasic' -import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' +import * as CustomerItemApi from '@/api/wms/customeritem' +import { Customeritem } from '@/views/wms/basicDataManage/customerManage/customeritem/customeritem.data' import * as CustomerdockApi from '@/api/wms/customerdock' import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data' @@ -643,20 +643,37 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ tableForm:{ isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择物料代码', - searchField: 'code', - searchTitle: '物料基础信息', - searchAllSchemas: Itembasic.allSchemas, - searchPage: ItembasicApi.selectItembasicPageToFgAndSemibasicPage, + searchField: 'itemCode', + searchTitle: '客户物料基础信息', + searchAllSchemas: Customeritem.allSchemas, + searchPage: CustomerItemApi.getCustomeritemPage, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'customerCode', + value: 'customerCode', + isMainValue: true + }] }, form: { - // labelMessage: '信息提示说明!!!', componentProps: { isSearchList: true, searchListPlaceholder: '请选择物料代码', - searchField: 'code', - searchTitle: '物料基础信息', - searchAllSchemas: Itembasic.allSchemas, - searchPage: ItembasicApi.selectItembasicPageToFgAndSemibasicPage, + searchField: 'itemCode', + searchTitle: '客户物料基础信息', + searchAllSchemas: Customeritem.allSchemas, + searchPage: CustomerItemApi.getCustomeritemPage, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'customerCode', + value: 'customerCode', + isMainValue: true + }] } } }, diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index 30115c516..c1ead0df2 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -148,6 +148,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => console.log(err) message.error('错误') }) + if(formField == 'itemCode'){ + console.log( val[0]); + row['uom'] = val[0]['customerUom'] + } } else { setV[formField] = val[0][searchField] } @@ -161,7 +165,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { const setV = {} if(formField == 'itemCode') { setV['itemCode'] = val[0]['code'] - setV['uom'] = val[0]['uom'] + setV['uom'] = val[0]['customerUom'] }else { setV[formField] = val[0][searchField] } diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts index 977980018..6adcb194e 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts @@ -7,6 +7,9 @@ import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/cu import * as CustomerDockApi from '@/api/wms/customerdock' import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data' +import * as CustomerItemApi from '@/api/wms/customeritem' +import { Customeritem } from '@/views/wms/basicDataManage/customerManage/customeritem/customeritem.data' + import * as SaleMainApi from '@/api/wms/saleMain' import * as SaleDetailApi from '@/api/wms/saleDetail' import { SaleDetail, SaleMain } from '../saleMain/saleMain.data' @@ -376,28 +379,36 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ tableForm:{ isInpuFocusShow: true, // 开启查询弹窗 searchListPlaceholder: '请选择物料代码', - searchField: 'code', - searchTitle: '物料基础信息', - searchAllSchemas: Itembasic.allSchemas, - searchPage: ItembasicApi.getItembasicPage, + searchField: 'itemCode', + searchTitle: '客户物料基础信息', + searchAllSchemas: Customeritem.allSchemas, + searchPage: CustomerItemApi.getCustomeritemPage, searchCondition: [{ key: 'available', value: 'TRUE', isMainValue: false + },{ + key: 'customerCode', + value: 'customerCode', + isMainValue: true }] }, form: { componentProps: { isSearchList: true, searchListPlaceholder: '请选择物料代码', - searchField: 'code', - searchTitle: '物料基础信息', - searchAllSchemas: Itembasic.allSchemas, - searchPage: ItembasicApi.getItembasicPage, + searchField: 'itemCode', + searchTitle: '客户物料基础信息', + searchAllSchemas: Customeritem.allSchemas, + searchPage: CustomerItemApi.getCustomeritemPage, searchCondition: [{ key: 'available', value: 'TRUE', isMainValue: false + },{ + key: 'customerCode', + value: 'customerCode', + isMainValue: true }] } } diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue index 114c08764..944f00753 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue @@ -103,14 +103,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => nextTick(() => { if (type == 'tableForm') { if(formField == 'itemCode') { - row['uom'] = val[0]['uom'] + row['uom'] = val[0]['customerUom'] } // 明细查询页赋值 row[formField] = val[0][searchField] } else { const setV = {} if(formField == 'itemCode') { - row['uom'] = val[0]['uom'] + row['uom'] = val[0]['customerUom'] } setV[formField] = val[0][searchField] formRef.setValues(setV) @@ -126,7 +126,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { // setV['lineNumber'] = val[0]['lineNumber'] // setV['itemCode'] = val[0]['itemCode'] setV['remark'] = val[0]['remark'] - setV['uom'] = val[0]['uom'] + setV['uom'] = val[0]['customerUom'] formRef.setValues(setV) }) } diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue index f7fcce05a..27548a5cd 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue @@ -133,7 +133,7 @@ const Echo = [] const { tableObject, tableMethods } = useTable({ getListApi: InventorymoveJobMainApi.getInventorymoveJobMainPage // 分页接口 }) -console.log(99 , routeName.value) +const importFileName = ref() // 判断 路由名称 进行条件过滤 /** * OktoholdJobMain 合格转隔离 @@ -145,6 +145,7 @@ console.log(99 , routeName.value) } fromInventoryStatus.value = 'OK' toInventoryStatus.value = "HOLD" + importFileName.value = '合格转隔离任务' } else if ( routeName.value == 'HoldtookJobMain') { tableObject.params = { fromInventoryStatus: 'HOLD', @@ -152,6 +153,7 @@ console.log(99 , routeName.value) } fromInventoryStatus.value = 'HOLD' toInventoryStatus.value = "OK" + importFileName.value = '隔离转合格任务' } else if ( routeName.value == 'HoldtoscrapJobMain') { tableObject.params = { fromInventoryStatus: 'HOLD', @@ -159,6 +161,7 @@ console.log(99 , routeName.value) } fromInventoryStatus.value = 'HOLD' toInventoryStatus.value = "SCRAP" + importFileName.value = '隔离转报废任务' } else if ( routeName.value == 'OktoscrapJobMain') { tableObject.params = { fromInventoryStatus: 'OK', @@ -166,6 +169,7 @@ console.log(99 , routeName.value) } fromInventoryStatus.value = 'OK' toInventoryStatus.value = "SCRAP" + importFileName.value = '合格转报废任务' } else if ( routeName.value == 'ScraptoholdJobMain') { tableObject.params = { fromInventoryStatus: 'SCRAP', @@ -173,9 +177,11 @@ console.log(99 , routeName.value) } fromInventoryStatus.value = 'SCRAP' toInventoryStatus.value = "HOLD" + importFileName.value = '报废转隔离任务' } else { console.log(146 , fromInventoryStatus.value) fromInventoryStatus.value = null + importFileName.value = '库存移动任务' } // 获得表格的各种操作 @@ -231,90 +237,7 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { if (val == 'mainJobExe') { // 执行 - console.log('列表-操作按钮事件-执行') - let aaa = { - "id": 6, - "requestNumber": "REQ3720231218-0003", - "useOnTheWayLocation": "TRUE", - "fromWarehouseCode": "W1", - "requestTime": 1702868002000, - "requestDueTime": 1702867958000, - "status": "1", - "expiredTime": 1702867958000, - "updateTime": 1702868310000, - "updater": "超级管理员", - "jobStageStatus": null, - "priority": null, - "priorityIncrement": null, - "departmentCode": "研发部门", - "acceptUserId": null, - "acceptTime": null, - "completeUserId": null, - "completeTime": null, - "fromLocationTypes": "SCRAP", - "toLocationTypes": "SCRAP", - "number": "JOB1120231218-0003", - "businessType": "OkToHoldJob", - "remark": "主", - "createTime": 1702868310000, - "creator": "超级管理员", - "creatorName": null, - "toWarehouseCode": "W1", - "fromAreaCodes": "L-R-001", - "toAreaCodes": "L-R-001", - "autoComplete": "FALSE", - "allowModifyLocation": "FALSE", - "allowModifyQty": "TRUE", - "allowBiggerQty": "TRUE", - "allowSmallerQty": "TRUE", - "allowModifyInventoryStatus": "TRUE", - "allowContinuousScanning": "TRUE", - "allowPartialComplete": "TRUE", - "allowModifyBatch": "FALSE", - "allowModifyPackingNumber": "FALSE", - "subList": [{ - "id": "1809190000225116838", - "itemCode": "testCF", - "itemName": "陈放测试物料", - "itemDesc1": "测试用", - "itemDesc2": "测试用", - "projectCode": "5", - "qty": 1, - "uom": "EA", - "number": "JOB1120231218-0003", - "remark": "子", - "createTime": 1702868310000, - "creator": "超级管理员", - "packingNumber": "testCF", - "containerNumber": null, - "batch": "20230808", - "inventoryStatus": "OK", - "poNumber": null, - "poLine": null, - "fromLocationCode": "Loc_testCF", - "toLocationCode": "L-R-001-001-1-01", - "fromOwnerCode": null, - "toOwnerCode": null, - recordList: [{ - handleQty: 10, - toPackingNumber: '12', - toContainerNumber: '001', - toBatch: '21', - toInventoryStatus: 'OK', - toLocationCode: 'H03', - supplierCode: '31213', - },{ - handleQty: 22, - toPackingNumber: 'M20230421000005', - toContainerNumber: '001', - toBatch: '20230808', - toInventoryStatus: 'OK', - toLocationCode: 'SFG', - supplierCode: '31213', - }] -}] - } - InventorymoveJobMainApi.executeInventorymoveMain(aaa) + InventorymoveJobMainApi.executeInventorymoveMain(row.id) } else if (val == 'mainJobAba') { // 放弃 InventorymoveJobMainApi.abandonInventorymoveMain(row.id) } else if (val == 'mainJobClo') { // 关闭 @@ -339,7 +262,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await InventorymoveJobMainApi.exportInventorymoveJobMain(tableObject.params) - download.excel(data, '库存转移任务主.xlsx') + download.excel(data, importFileName.value + '.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue index f7d9531e6..e03e32249 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue @@ -72,6 +72,7 @@ defineOptions({ name: 'InventorymoveRecordMain' }) const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 +const importFileName = ref() const route = useRoute() // 路由信息 const routeName = ref() @@ -102,6 +103,7 @@ const { tableObject, tableMethods } = useTable({ } fromInventoryStatus.value = 'OK' toInventoryStatus.value = "HOLD" + importFileName.value = '合格转隔离记录' } else if ( routeName.value == 'HoldtookRecordMain') { tableObject.params = { fromInventoryStatus: 'HOLD', @@ -109,6 +111,7 @@ const { tableObject, tableMethods } = useTable({ } fromInventoryStatus.value = 'HOLD' toInventoryStatus.value = "OK" + importFileName.value = '隔离转合格记录' } else if ( routeName.value == 'HoldtoscrapRecordMain') { tableObject.params = { fromInventoryStatus: 'HOLD', @@ -116,6 +119,7 @@ const { tableObject, tableMethods } = useTable({ } fromInventoryStatus.value = 'HOLD' toInventoryStatus.value = "SCRAP" + importFileName.value = '隔离转报废记录' } else if ( routeName.value == 'OktoscrapRecordMain') { tableObject.params = { fromInventoryStatus: 'OK', @@ -123,6 +127,7 @@ const { tableObject, tableMethods } = useTable({ } fromInventoryStatus.value = 'OK' toInventoryStatus.value = "SCRAP" + importFileName.value = '合格转报废记录' } else if ( routeName.value == 'ScraptoholdRecordMain') { tableObject.params = { fromInventoryStatus: 'SCRAP', @@ -130,9 +135,11 @@ const { tableObject, tableMethods } = useTable({ } fromInventoryStatus.value = 'SCRAP' toInventoryStatus.value = "HOLD" + importFileName.value = '报废转隔离记录' } else { console.log(146 , fromInventoryStatus.value) fromInventoryStatus.value = null + importFileName.value = '库存移动记录' } // 获得表格的各种操作 @@ -190,7 +197,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await InventorymoveRecordMainApi.exportInventorymoveRecordMain(tableObject.params) - download.excel(data, '库存转移记录主.xlsx') + download.excel(data, importFileName.value + '.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index c470ee39a..e70c1bdb7 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -98,6 +98,7 @@ const businessType = ref() console.log(99 , routeName.value) const fromInventoryStatus = ref() const toInventoryStatus = ref() +const importFileName = ref() const { tableObject, tableMethods } = useTable({ getListApi: InventorymoveRequestMainApi.getInventorymoveRequestMainPage // 分页接口 @@ -115,6 +116,7 @@ const { tableObject, tableMethods } = useTable({ fromInventoryStatus.value = 'OK' toInventoryStatus.value = "HOLD" businessType.value = 'OkToHoldRequest' + importFileName.value = '合格转隔离申请' } else if ( routeName.value == 'HoldtookRequestMain') { tableObject.params = { fromInventoryStatus: 'HOLD', @@ -123,6 +125,7 @@ const { tableObject, tableMethods } = useTable({ fromInventoryStatus.value = 'HOLD' toInventoryStatus.value = "OK" businessType.value = 'HoldToOkRequest' + importFileName.value = '隔离转合格申请' } else if ( routeName.value == 'HoldtoscrapRequestMain') { tableObject.params = { fromInventoryStatus: 'HOLD', @@ -131,6 +134,7 @@ const { tableObject, tableMethods } = useTable({ fromInventoryStatus.value = 'HOLD' toInventoryStatus.value = "SCRAP" businessType.value = 'HoldToScrapRequest' + importFileName.value = '隔离转报废申请' } else if ( routeName.value == 'OktoscrapRequestMain') { tableObject.params = { fromInventoryStatus: 'OK', @@ -139,6 +143,7 @@ const { tableObject, tableMethods } = useTable({ fromInventoryStatus.value = 'OK' toInventoryStatus.value = "SCRAP" businessType.value = 'OkToScrapRequest' + importFileName.value = '合格转报废申请' } else if ( routeName.value == 'ScraptoholdRequestMain') { tableObject.params = { fromInventoryStatus: 'SCRAP', @@ -147,10 +152,11 @@ const { tableObject, tableMethods } = useTable({ fromInventoryStatus.value = 'SCRAP' toInventoryStatus.value = "HOLD" businessType.value = 'ScrapToHoldRequest' + importFileName.value = '报废转隔离申请' } else if( routeName.value == 'InventorymoveRequestMain'){ fromInventoryStatus.value = null businessType.value = 'InventorymoveRequest' - console.log(146 , businessType.value) + importFileName.value = '库存移动申请' }else { tableObject.params = { fromInventoryStatus: 'OK', @@ -570,7 +576,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '库存转移申请主导入模版.xlsx' + templateTitle: importFileName.value + '.xlsx' }) // 导入成功之后