Browse Source

HL-5416:上架策略,增加导入功能

hella_online_20240913
tengxiaofei 2 months ago
parent
commit
900c1cb488
  1. 15
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue

15
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue

@ -48,13 +48,14 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm
ref="importFormRef" ref="importFormRef"
url="/wms/supplierdeliver-request-main/import" url="/wms/rule/import"
:importTemplateData="importTemplateData" :importTemplateData="importTemplateData"
@success="importSuccess" @success="importSuccess"
:updateIsDisable="true"
:coverIsDisable="true"
:mode="2"
/> />
<!-- :updateIsDisable="true"-->
<!-- :coverIsDisable="true"-->
<!-- :mode="2"-->
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<AddForm ref="formRef" @success="getList" /> <AddForm ref="formRef" @success="getList" />
</template> </template>
@ -67,6 +68,7 @@ import AddForm from './AddForm.vue'
import download from '@/utils/download' import download from '@/utils/download'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import * as CustomerApi from "@/api/wms/customer";
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SupplieDeliveryStrategy' }) defineOptions({ name: 'SupplieDeliveryStrategy' })
const queryFormRef = ref() // const queryFormRef = ref() //
@ -179,7 +181,7 @@ const handleImport = () => {
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultImportBtn({ hasPermi: 'wms:supplierdeliver-request-main:import' }), // defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn({ hasPermi: 'wms:supplierdeliver-request-main:export' }), // // defaultButtons.defaultExportBtn({ hasPermi: 'wms:supplierdeliver-request-main:export' }), //
] ]
@ -213,8 +215,9 @@ const buttonTableClick = (val, row) => {
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted( async() => {
getList() getList()
importTemplateData.templateUrl = await RuleApi.importTemplate()
}) })
</script> </script>

Loading…
Cancel
Save