Browse Source

翻包修改

master_hella_20240701
陈薪名 8 months ago
parent
commit
61bfc676c9
  1. 5
      src/api/wms/packageoverJobMain/index.ts
  2. 13
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue

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

@ -74,8 +74,3 @@ export const deletePackageoverJobMain = async (id: number) => {
export const exportPackageoverJobMain = async (params) => {
return await request.download({ url: `/wms/packageover-job-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/packageover-job-main/get-import-template' })
}

13
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue

@ -62,8 +62,6 @@
:apiPage="PackageoverJobDetailApi.getPackageoverJobDetailPage"
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/packageover-job-main/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
@ -73,7 +71,6 @@ import * as PackageoverJobMainApi from '@/api/wms/packageoverJobMain'
import * as PackageoverJobDetailApi from '@/api/wms/packageoverJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'PackageoverJobMain' })
@ -226,15 +223,6 @@ const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '翻包任务主导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
@ -248,7 +236,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await PackageoverJobMainApi.importTemplate()
})
</script>

Loading…
Cancel
Save