Commit 978dbc7d by Jaxon

feat: 嘀加上架 - 运营确认 - 流量方模块 - 支持 新建 流量方

1 parent 6a81d875
<template>
<el-drawer v-loading="loading"
:before-close="handleClose"
class="drawerContainer"
class="drawer-container"
direction="rtl"
size="50%"
size="600px"
:append-to-body="true"
:visible.sync="addMerVisible"
:wrapper-closable="wrapperClosable">
:wrapper-closable="false">
<template #title>
<div class="title">
新增商户
......@@ -107,13 +108,15 @@ export default {
},
},
props: {
addMerVisible: false,
addMerVisible: {
type: Boolean,
default: false,
},
},
data() {
// 这里存放数据
return {
loading: false,
wrapperClosable: false,
storeCurrentPage: 1, // 流量方 - 4s店数据分页
pageSize: 50,
merchantLoading: false,
......@@ -460,6 +463,9 @@ export default {
// this.$refs.brandListTree.getCheckList(this.editData.merchantBrandMain)
},
brandList() {
if (!this.$refs.brandListTree) {
return;
}
this.$refs.brandListTree.loading = true;
// const brandListTree = await brandList({})
brandList({}).then((res) => {
......@@ -560,18 +566,28 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep.drawerContainer {
::v-deep.drawer-container {
.el-drawer__header {
box-sizing: border-box;
height: 60px;
line-height: 60px;
border-bottom: 1px solid #e5e5e5;
padding: 0 0 0 20px;
margin-bottom: 16px;
}
.el-drawer__body {
overflow: scroll;
}
.add-merchant-page {
height: 100%;
display: flex;
flex-direction: column;
.edit-form-container {
flex: 1;
flex-shrink: 0;
}
}
.title {
color: #333333;
......
......@@ -14,7 +14,7 @@
<el-input v-model="form.merchantName" disabled></el-input>
</div>
<div v-if="shelfType === 1" class="actions-wrapper">
<el-button type="text">
<el-button type="text" @click="handleAppendTraffic">
新建
</el-button>
</div>
......@@ -28,12 +28,21 @@
</div>
</template>
</glsx-combi-form>
<AddMerchant :add-mer-visible="dialog.appendTraffic.show"
@handleClose="handleAppendTraffic">
</AddMerchant>
</div>
</template>
<script>
import AddMerchant from "@/views/goods/shelfManage/components/editCon/AddMerchant.vue";
export default {
name: "ShopMerchantInfo",
name: "ModifyTrafficSource",
components: {
AddMerchant,
},
props: {
schema: {
type: Array,
......@@ -57,6 +66,11 @@ export default {
data() {
return {
form: {},
dialog: {
appendTraffic: {
show: false,
},
},
};
},
......@@ -74,6 +88,9 @@ export default {
},
methods: {
handleAppendTraffic() {
this.dialog.appendTraffic.show = !this.dialog.appendTraffic.show;
},
// TODO: 运营模式:直营,默认,且不可编辑
dealPartnerMer() {
......
......@@ -11,7 +11,36 @@
</el-steps>
</div>
<div v-if="shelveId && shelvingData.shelfType && businessCode" class="wrapper">
<el-carousel ref="carouselRef"
<template v-if="steps.active === 0">
<!-- 基础信息 -->
<BaseInfo :shelve-id="shelveId" />
<TrafficSource ref="trafficSourceRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</template>
<div v-if="steps.active === 1">
<!-- 上架商品及测算 -->
<ProductShelving ref="productShelvingRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</div>
<div v-if="steps.active === 2">
<!-- 分账配置 -->
<ProfitSharingConfig ref="profitSharingConfigRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</div>
<div v-if="steps.active === 3">
<!-- 对账配置 -->
<ReconciliationConfig ref="reconciliationConfigRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</div>
<!-- <el-carousel ref="carouselRef"
arrow="never"
:autoplay="false"
indicator-position="none"
......@@ -19,44 +48,19 @@
:loop="false"
trigger="click">
<el-carousel-item>
<template v-if="steps.active === 0">
<!-- 基础信息 -->
<BaseInfo :shelve-id="shelveId" />
<TrafficSource ref="trafficSourceRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</template>
</el-carousel-item>
<el-carousel-item>
<div v-if="steps.active === 1">
<!-- 上架商品及测算 -->
<ProductShelving ref="productShelvingRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</div>
</el-carousel-item>
<el-carousel-item>
<div v-if="steps.active === 2">
<!-- 分账配置 -->
<ProfitSharingConfig ref="profitSharingConfigRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</div>
</el-carousel-item>
<el-carousel-item>
<div v-if="steps.active === 3">
<!-- 对账配置 -->
<ReconciliationConfig ref="reconciliationConfigRef"
:shelve-id="shelveId"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</div>
</el-carousel-item>
</el-carousel>
</el-carousel> -->
<!-- 流量方信息 - 新增 - 新增商户 -->
<!-- <AddMerchant v-if="addMerVisible"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!