Browse Source

备货记录导入代码删除

master_hella_20240701
chenfang 9 months ago
parent
commit
e87562ea13
  1. 24
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue

24
src/views/wms/deliversettlementManage/stockup/stockupMainRecord/index.vue

@ -53,17 +53,15 @@
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="StockupMainRecord.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/record/stockup-main-record/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { StockupMainRecord,StockupMainRecordRules } from './stockupMainRecord.data'
import * as StockupMainRecordApi from '@/api/record/stockupMainRecord'
import * as StockupMainRecordApi from '@/api/wms/stockupMainRecord'
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: 'StockupMainRecord' })
@ -100,7 +98,6 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:stockupMainRecord:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:stockupMainRecord:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:stockupMainRecord:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
@ -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,20 +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) => {
@ -238,7 +219,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await StockupMainRecordApi.importTemplate()
})
</script>

Loading…
Cancel
Save