Commit 978dbc7d by Jaxon

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

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