Browse Source

备货任务导入代码删除

master_hella_20240701
chenfang 8 months ago
parent
commit
2939864a64
  1. 23
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

23
src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

@ -53,17 +53,14 @@
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="StockupMainJob.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/job/stockup-main-job/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { StockupMainJob,StockupMainJobRules } from './stockupMainJob.data'
import * as StockupMainJobApi from '@/api/job/stockupMainJob'
import * as StockupMainJobApi from '@/api/wms/stockupMainJob'
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: 'StockupMainJob' })
@ -119,8 +116,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
@ -211,21 +206,6 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '备货任务主导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -238,7 +218,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await StockupMainJobApi.importTemplate()
})
</script>

Loading…
Cancel
Save