Commit 1b359ed6 by Jaxon

feat(shelfProductImport): 添加货架模型参数至模板导出接口

通过组件链传递shelfModel参数,并将其加入模板导出接口的请求参数中,完善导出功能的参数配置。
1 parent f43aac67
......@@ -54,6 +54,10 @@ export default {
// merchantNames: "",
// shelfType: 1,
// }
shelfModel: {
type: Number,
default: 1,
},
formData: {
type: Object,
required: true,
......@@ -147,7 +151,12 @@ export default {
this.$message.error("请选择上架类型和业务场景");
return;
}
const params = { baseSceneCode, shelfType, method: "dj.api.create.business.approve.template.export" };
const params = {
baseSceneCode,
shelfType,
method: "dj.api.create.business.approve.template.export",
shelfModel: this.shelfModel,
};
const list = [
...this.dowloadList,
{
......
......@@ -13,6 +13,7 @@
ref="modifyRef"
v-bind="$attrs"
:form-data="form"
:shelf-model="shelfModel"
v-on="$listeners" />
</div>
<VenusDialog v-model="dialog.importProgress.show"
......@@ -55,6 +56,10 @@ export default {
type: Boolean,
default: true,
},
shelfModel: {
type: Number,
default: 1,
},
baseSceneCode: {
type: String,
default: undefined,
......
......@@ -39,6 +39,7 @@
<div v-loading="data.isProviderLoading" class="wrapper">
<FormStep name="ProductImport" :on-submit="handleSubmitProductImport">
<ShelfProductImport ref="shelfProductImportRef"
:shelf-model="shelfModel"
@handleNext="handleNextProductImport()" />
</FormStep>
<FormStep v-loading="data.isStepLoading" name="ProductConfirm">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!