Commit 2c942651 by Jaxon

Merge branch 'feature/goods-shelf' into 'SAAS+V5.8.0'

Feature/goods shelf

See merge request !622
2 parents c1248381 e3228bfd
...@@ -294,6 +294,13 @@ export default { ...@@ -294,6 +294,13 @@ export default {
padding: 10px 20px; padding: 10px 20px;
> .title { > .title {
border-bottom: 0; border-bottom: 0;
height: 50px;
line-height: 50px;
padding: 0 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
} }
> .simp-filter-wrapper { > .simp-filter-wrapper {
flex: 1; flex: 1;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
:key="item.targetMerchantType" :key="item.targetMerchantType"
class="table-body"> class="table-body">
<td class="merchant-name-wrapper"> <td class="merchant-name-wrapper">
<span :title="getMerchantTypeName(item)"> <div class="text-hide" :title="getMerchantTypeName(item)">
{{ getMerchantTypeName(item) }} {{ getMerchantTypeName(item) }}
</span> </div>
</td> </td>
<template v-for="(colItem, colIndex) in tableCols"> <template v-for="(colItem, colIndex) in tableCols">
<td :key="`${colIndex}colList`" class="radio-wrapper"> <td :key="`${colIndex}colList`" class="radio-wrapper">
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
&:first-child { &:first-child {
width: 150px; width: 180px;
} }
.required-star { .required-star {
color: #f56c6c; color: #f56c6c;
...@@ -190,12 +190,24 @@ export default { ...@@ -190,12 +190,24 @@ export default {
padding: 18px 0; padding: 18px 0;
} }
.merchant-name-wrapper { .merchant-name-wrapper {
padding: 0 6px;
width: 188px;
line-height: 20px; line-height: 20px;
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
} }
.radio-wrapper { .radio-wrapper {
.el-radio {
.el-radio__input {
&.is-checked {
.el-radio__inner {
background-color: #2a58ad;
border-color: #2a58ad;
}
}
}
}
text-align: center; text-align: center;
.el-form-item { .el-form-item {
margin-bottom: 0 !important; margin-bottom: 0 !important;
......
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
prop-prefix="owningMerchantDistributionRulesMap" prop-prefix="owningMerchantDistributionRulesMap"
title="费用归属设置" title="费用归属设置"
disabled disabled
:shelf-type="shelfType"
:table-cols="tableCols" :table-cols="tableCols"
:table-rows="tableRows" /> :table-rows="tableRows" />
<CostAttributionSetting :value="merchantDistributionRulesMap" <CostAttributionSetting :value="merchantDistributionRulesMap"
prop-prefix="merchantDistributionRulesMap" prop-prefix="merchantDistributionRulesMap"
title="实际分账设置" title="实际分账设置"
disabled disabled
:shelf-type="shelfType"
:table-cols="tableCols" :table-cols="tableCols"
:table-rows="tableRows" /> :table-rows="tableRows" />
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-form-item label="分账品类" <el-form-item label="分账品类"
prop="specialDetail.categoryType"> prop="specialDetail.categoryType">
<el-select v-model="form.categoryType" <el-select v-model="form.categoryType"
style="width:530px" style="width:414px"
@change="handleCategoryTypeChange"> @change="handleCategoryTypeChange">
<el-option v-for="item in options.categoryType" <el-option v-for="item in options.categoryType"
:key="item.value" :key="item.value"
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<el-form-item :prop="getTrafficSideRuleProp(item, 'expenseCategoryCalculateType')" <el-form-item :prop="getTrafficSideRuleProp(item, 'expenseCategoryCalculateType')"
:rules="[{ required: true, message: '请选择分润模式', trigger: 'change' }]"> :rules="[{ required: true, message: '请选择分润模式', trigger: 'change' }]">
<el-select v-model="item.expenseCategoryCalculateType" <el-select v-model="item.expenseCategoryCalculateType"
style="width:530px" style="width:414px"
placeholder="请选择分润模式"> placeholder="请选择分润模式">
<el-option v-for="option in getExpenseCategoryCalculateTypeOptions(item.applicationObjectType)" <el-option v-for="option in getExpenseCategoryCalculateTypeOptions(item.applicationObjectType)"
:key="option.expenseCategoryCalculateType" :key="option.expenseCategoryCalculateType"
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</el-form-item> </el-form-item>
<!-- 批量模式用这个 --> <!-- 批量模式用这个 -->
<el-form-item v-if="isBatchPublishMode(shelfType)" <el-form-item v-if="isBatchPublishMode(shelfType)"
label="流量方分账方1" label="流量方分账方"
prop="realityShopLevel"> prop="realityShopLevel">
<el-select v-model="profitSharingForm.realityShopLevel" <el-select v-model="profitSharingForm.realityShopLevel"
style="width:530px" style="width:530px"
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</el-form-item> </el-form-item>
<!-- 单店模式 --> <!-- 单店模式 -->
<el-form-item v-if="isSingleShopMode(shelfType)" <el-form-item v-if="isSingleShopMode(shelfType)"
label="流量方分账方2" label="流量方分账方"
prop="realityShopMerchantId"> prop="realityShopMerchantId">
<el-select v-model="profitSharingForm.realityShopMerchantId" <el-select v-model="profitSharingForm.realityShopMerchantId"
:disabled="!useEdit " :disabled="!useEdit "
...@@ -185,6 +185,7 @@ ...@@ -185,6 +185,7 @@
:edit-state="editState" :edit-state="editState"
:base-scene-code="baseSceneCode" :base-scene-code="baseSceneCode"
:business-code="businessCode" :business-code="businessCode"
:shelf-type="shelfType"
:prefix="$data._prefix" :prefix="$data._prefix"
@update:specialDetail="(e) => profitSharingForm.specialDetail = e" /> @update:specialDetail="(e) => profitSharingForm.specialDetail = e" />
</div> </div>
...@@ -564,6 +565,7 @@ export default { ...@@ -564,6 +565,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.profit-sharing-config-config { .profit-sharing-config-config {
background-color: white;
.body-wrapper { .body-wrapper {
> .title-wrapper { > .title-wrapper {
display: flex; display: flex;
...@@ -572,6 +574,12 @@ export default { ...@@ -572,6 +574,12 @@ export default {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
> .title { > .title {
border-bottom: 0; border-bottom: 0;
height: 50px;
line-height: 50px;
padding: 0 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
} }
.select-wrapper { .select-wrapper {
flex-shrink: 0; flex-shrink: 0;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-form-item label="分账品类" <el-form-item label="分账品类"
prop="specialDetail.categoryType"> prop="specialDetail.categoryType">
<el-select v-model="form.categoryType" <el-select v-model="form.categoryType"
style="width:530px" style="width:414px"
@change="handleCategoryTypeChange"> @change="handleCategoryTypeChange">
<el-option v-for="item in options.categoryType" <el-option v-for="item in options.categoryType"
:key="item.value" :key="item.value"
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
:prop="getTrafficSideRuleProp(item, 'expenseCategoryCalculateType')" :prop="getTrafficSideRuleProp(item, 'expenseCategoryCalculateType')"
label-width="154px"> label-width="154px">
<el-select v-model="item.expenseCategoryCalculateType" <el-select v-model="item.expenseCategoryCalculateType"
style="width:530px" style="width:414px"
placeholder="请选择对账模式"> placeholder="请选择对账模式">
<el-option v-for="(option, index) in getExpenseCategoryCalculateTypeOptions(item.applicationObjectType)" <el-option v-for="(option, index) in getExpenseCategoryCalculateTypeOptions(item.applicationObjectType)"
:key="`${index}${option.label}`" :key="`${index}${option.label}`"
......
...@@ -447,6 +447,7 @@ export default { ...@@ -447,6 +447,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.profit-sharing-config-config { .profit-sharing-config-config {
background-color: white;
.body-wrapper { .body-wrapper {
> .title-wrapper { > .title-wrapper {
display: flex; display: flex;
...@@ -456,6 +457,12 @@ export default { ...@@ -456,6 +457,12 @@ export default {
box-sizing: border-box; box-sizing: border-box;
> .title { > .title {
border-bottom: 0; border-bottom: 0;
height: 50px;
line-height: 50px;
padding: 0 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
} }
.select-wrapper { .select-wrapper {
flex-shrink: 0; flex-shrink: 0;
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<div v-if="hasMerchantIdList" class="tabs-wrapper"> <div v-if="hasMerchantIdList" class="tabs-wrapper">
<Product v-if="productDetail.productType === 1" <Product v-if="productDetail.productType === 1"
ref="productRefs" ref="productRefs"
:key="tabsActive" :key="tabsActive + productDetail.productName"
:edit-state="editState" :edit-state="editState"
:merchant-id-list="merchantIdList" :merchant-id-list="merchantIdList"
:base-scene-code="baseSceneCode" :base-scene-code="baseSceneCode"
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
@update:upgradeGoods="handleProductUpdateUpgradeGoods" /> @update:upgradeGoods="handleProductUpdateUpgradeGoods" />
<Combo v-if="productDetail.productType === 2" <Combo v-if="productDetail.productType === 2"
ref="packageRefs" ref="packageRefs"
:key="tabsActive" :key="tabsActive + productDetail.productName"
:prefix="$data._prefix" :prefix="$data._prefix"
:merchant-id-list="merchantIdList" :merchant-id-list="merchantIdList"
:edit-state="editState" :edit-state="editState"
...@@ -471,6 +471,7 @@ export default { ...@@ -471,6 +471,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.product-shelving-wrapper { .product-shelving-wrapper {
margin-bottom: 0; margin-bottom: 0;
background-color: white;
> .title-wrapper { > .title-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -478,6 +479,12 @@ export default { ...@@ -478,6 +479,12 @@ export default {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
> .title { > .title {
border-bottom: 0; border-bottom: 0;
height: 50px;
line-height: 50px;
padding: 0 20px;
font-size: 16px;
font-weight: 600;
color: #333333;
} }
.select-wrapper { .select-wrapper {
flex-shrink: 0; flex-shrink: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!