Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5ed903b4
authored
Mar 09, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 嘀加上架 - 上架及商品测算 - 套餐类型 初步代码拆分
1 parent
6ee9d370
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
171 additions
and
76 deletions
src/views/goods/shelfManage/components/descriptions/index.vue
src/views/goods/shelfManage/components/editCon/GoodsInfo.vue
src/views/goods/shelfManage/components/productShelving/components/combo/components/detail/index.vue
src/views/goods/shelfManage/components/productShelving/components/combo/components/modify/index.vue
src/views/goods/shelfManage/components/productShelving/components/combo/index.vue
src/views/goods/shelfManage/components/productShelving/components/product/components/detail/index.vue
src/views/goods/shelfManage/components/productShelving/index.vue
src/views/goods/shelfManage/components/productShelving/productShelving.data.js
src/views/goods/shelfManage/components/profitSharingConfig/index.vue
src/views/goods/shelfManage/components/descriptions/index.vue
View file @
5ed903b
...
@@ -66,6 +66,8 @@ export default {
...
@@ -66,6 +66,8 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.description-wrapper
{
.description-wrapper
{
padding
:
20px
;
.form-item
{
.form-item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
...
src/views/goods/shelfManage/components/editCon/GoodsInfo.vue
View file @
5ed903b
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
:name=
"item.name"
>
:name=
"item.name"
>
<template
#
label
>
<template
#
label
>
<span>
<span>
<i
v-if=
"item.valiadError == 'Y'"
class=
"el-icon-warning car-error-txt"
/>
{{
item
.
title
<i
v-if=
"item.valiadError == 'Y'"
class=
"el-icon-warning car-error-txt"
/>
?
item
.
title
+
(
idx
+
1
)
:
item
.
goodsName
}}
{{
item
.
title
?
item
.
title
+
(
idx
+
1
)
:
item
.
goodsName
}}
</span>
</span>
</
template
>
</
template
>
<span>
<span>
...
@@ -41,8 +41,8 @@
...
@@ -41,8 +41,8 @@
:name=
"item.name"
>
:name=
"item.name"
>
<
template
#
label
>
<
template
#
label
>
<span>
<span>
<i
v-if=
"item.valiadError == 'Y'"
class=
"el-icon-warning car-error-txt"
/>
{{
item
.
title
<i
v-if=
"item.valiadError == 'Y'"
class=
"el-icon-warning car-error-txt"
/>
?
item
.
title
+
(
idx
+
1
)
:
item
.
goodsName
}}
{{
item
.
title
?
item
.
title
+
(
idx
+
1
)
:
item
.
goodsName
}}
</span>
</span>
</
template
>
</
template
>
<span>
<span>
...
...
src/views/goods/shelfManage/components/productShelving/components/combo/components/detail/index.vue
View file @
5ed903b
<
template
>
<
template
>
<div
class=
""
>
<div
class=
"
detail-wrapper
"
>
<Descriptions
:form-items=
"formItems"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Descriptions
from
"@/views/goods/shelfManage/components/descriptions/index.vue"
;
import
{
productShelvingComboDetailFormItems
}
from
"@/views/goods/shelfManage/components/productShelving/productShelving.data.js"
;
export
default
{
export
default
{
name
:
""
,
components
:
{
Descriptions
,
},
props
:
{
props
:
{
},
},
data
()
{
data
()
{
return
{
return
{
formItems
:
productShelvingComboDetailFormItems
,
};
};
},
},
computed
:
{
computed
:
{
...
...
src/views/goods/shelfManage/components/productShelving/components/combo/components/modify/index.vue
View file @
5ed903b
This diff is collapsed.
Click to expand it.
src/views/goods/shelfManage/components/productShelving/components/combo/index.vue
View file @
5ed903b
<
template
>
<
template
>
<div
class=
""
>
<div
class=
"content"
>
<div
class=
"tabs-wrapper"
>
<Detail
v-if=
"mode === VIEW_MODE.VIEW"
></Detail>
<!--
<ShopMerchantInfo
v-if=
"mode === VIEW_MODE.EDIT"
/>
-->
<Modify
v-if=
"mode === VIEW_MODE.EDIT"
/>
<div
class=
"add_div"
>
<!-- // plus -->
<!--
<img
alt=
""
src=
"../../../images/add.png"
/>
-->
<span
class=
"add_span"
@
click=
"handleAppendProduct"
>
添加商品
</span>
</div>
</div>
<el-button
@
click=
"handleChangeMode"
>
编辑
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
VIEW_MODE
}
from
"@/views/goods/shelfManage/constant/baseData.js"
;
import
Detail
from
"./components/detail/index.vue"
;
import
Modify
from
"./components/modify/index.vue"
;
export
default
{
export
default
{
name
:
""
,
name
:
""
,
components
:
{
Modify
,
Detail
,
},
props
:
{
props
:
{
},
},
data
()
{
data
()
{
return
{
return
{
VIEW_MODE
,
mode
:
VIEW_MODE
.
EDIT
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -22,6 +45,10 @@ export default {
...
@@ -22,6 +45,10 @@ export default {
},
},
methods
:
{
methods
:
{
handleAppendProduct
()
{},
handleChangeMode
()
{
this
.
mode
=
this
.
mode
===
VIEW_MODE
.
VIEW
?
VIEW_MODE
.
EDIT
:
VIEW_MODE
.
VIEW
;
},
},
},
};
};
...
...
src/views/goods/shelfManage/components/productShelving/components/product/components/detail/index.vue
View file @
5ed903b
...
@@ -4,21 +4,16 @@
...
@@ -4,21 +4,16 @@
<template
#
upgradeGoodsId-value
>
<template
#
upgradeGoodsId-value
>
<div
class=
"sub-desc-wrapper"
>
<div
class=
"sub-desc-wrapper"
>
<Descriptions
:form-items=
"subFormItems"
/>
<Descriptions
:form-items=
"subFormItems"
/>
</div>
</div>
</
template
>
</
template
>
</Descriptions>
</Descriptions>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Descriptions
from
"@/views/goods/shelfManage/components/descriptions/index.vue"
;
import
Descriptions
from
"@/views/goods/shelfManage/components/descriptions/index.vue"
;
import
{
productShelvingProductDetailFormItems
,
productShelvingProductDetailSubFormItems
}
from
"@/views/goods/shelfManage/components/productShelving/productShelving.data.js"
;
const
subFormItemsStyle
=
{
"line-height"
:
"22px"
,
"margin-bottom"
:
"16px"
,
};
export
default
{
export
default
{
name
:
""
,
name
:
""
,
components
:
{
components
:
{
...
@@ -29,31 +24,9 @@ export default {
...
@@ -29,31 +24,9 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
formItems
:
[
formItems
:
productShelvingProductDetailFormItems
,
{
name
:
"upgradeGoodsId"
,
label
:
"上架商品"
,
col
:
24
},
{
name
:
"goodsAlias"
,
label
:
"商品别名"
,
col
:
12
},
{
name
:
"businessLine"
,
label
:
"业务线"
,
col
:
12
},
{
name
:
"sellPrice"
,
label
:
"售价/件"
,
col
:
12
},
{
name
:
"minSellPrice"
,
label
:
"最低售价/件"
,
col
:
12
},
{
name
:
"djCost"
,
label
:
"嘀加成本/件"
,
col
:
12
},
{
name
:
"thirdPartyCost"
,
label
:
"第三方成本/件"
,
col
:
12
},
{
name
:
"settlementType"
,
label
:
"结算方式"
,
col
:
12
},
{
name
:
"salesProportionPercent"
,
label
:
"销售占比"
,
col
:
12
},
],
subFormItems
:
[
subFormItems
:
productShelvingProductDetailSubFormItems
,
{
name
:
"upgradeGoodsName"
,
label
:
"商品名称"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"specificationData"
,
label
:
"规格"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"type"
,
label
:
"商品编码"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"thirdPartyCode"
,
label
:
"第三方编码"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"serviceItemNames"
,
label
:
"服务项目"
,
col
:
8
,
slot
:
"serviceItemNames"
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"purchasePrice"
,
label
:
"采购价/件"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"upgradePrice"
,
label
:
"参考售价/件"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"carTypeConfigName"
,
label
:
"适用车型"
,
col
:
8
,
slot
:
"carTypeConfigName"
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"goodsName"
,
label
:
"所属系列"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"tempGoodsTypeName"
,
label
:
"所属分类"
,
col
:
8
,
itemStyle
:
{
...
subFormItemsStyle
,
"margin-bottom"
:
0
}
},
{
name
:
"upgradeCommodityCode"
,
label
:
"商品ID"
,
col
:
8
,
itemStyle
:
{
...
subFormItemsStyle
,
"margin-bottom"
:
0
}
},
],
};
};
},
},
...
...
src/views/goods/shelfManage/components/productShelving/index.vue
View file @
5ed903b
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</span>
</span>
</div>
</div>
<div
class=
"content-wrapper"
>
<div
class=
"content-wrapper"
>
<
Product
/
>
<
!--
<Product
/>
--
>
<Combo
/>
<Combo
/>
</div>
</div>
<d2-dialog
v-if=
"chooseVisible"
<d2-dialog
v-if=
"chooseVisible"
...
...
src/views/goods/shelfManage/components/productShelving/productShelving.data.js
0 → 100644
View file @
5ed903b
export
const
productShelvingComboRules
=
{
packageName
:
[
{
required
:
true
,
message
:
"请输入套餐名称"
,
trigger
:
"blur"
,
},
],
businessLine
:
[
{
required
:
true
,
message
:
"请选择业务线"
,
trigger
:
"change"
,
},
],
settlementType
:
[
{
required
:
true
,
message
:
"请选择结算方式"
,
trigger
:
"change"
,
},
],
sellPrice
:
[
{
required
:
true
,
message
:
"请输入售价"
,
trigger
:
"blur"
,
},
],
minSellPrice
:
[
{
required
:
true
,
message
:
"请输入最低售价"
,
trigger
:
"blur"
,
},
],
thirdPartyCost
:
[
{
required
:
true
,
message
:
"请输入第三方成本"
,
trigger
:
"blur"
,
},
],
};
export
const
productShelvingProductRules
=
{
upgradeGoodsId
:
[
{
required
:
true
,
message
:
"请选择上架商品"
,
trigger
:
"change"
},
],
sellPrice
:
[
{
required
:
true
,
message
:
"请输入售价"
,
trigger
:
"blur"
,
},
],
minSellPrice
:
[
{
required
:
true
,
message
:
"请输入最低售价"
,
trigger
:
"blur"
,
},
],
thirdPartyCost
:
[
{
required
:
true
,
message
:
"请输入第三方成本"
,
trigger
:
"blur"
,
},
],
salesProportionPercent
:
[
{
required
:
true
,
message
:
"请输入销售占比"
,
trigger
:
"blur"
,
},
],
};
export
const
productShelvingProductDetailFormItems
=
[
{
name
:
"upgradeGoodsId"
,
label
:
"上架商品"
,
col
:
24
},
{
name
:
"goodsAlias"
,
label
:
"商品别名"
,
col
:
12
},
{
name
:
"businessLine"
,
label
:
"业务线"
,
col
:
12
},
{
name
:
"sellPrice"
,
label
:
"售价/件"
,
col
:
12
},
{
name
:
"minSellPrice"
,
label
:
"最低售价/件"
,
col
:
12
},
{
name
:
"djCost"
,
label
:
"嘀加成本/件"
,
col
:
12
},
{
name
:
"thirdPartyCost"
,
label
:
"第三方成本/件"
,
col
:
12
},
{
name
:
"settlementType"
,
label
:
"结算方式"
,
col
:
12
},
{
name
:
"salesProportionPercent"
,
label
:
"销售占比"
,
col
:
12
},
];
const
subFormItemsStyle
=
{
"line-height"
:
"22px"
,
"margin-bottom"
:
"16px"
,
};
export
const
productShelvingProductDetailSubFormItems
=
[
{
name
:
"upgradeGoodsName"
,
label
:
"商品名称"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"specificationData"
,
label
:
"规格"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"type"
,
label
:
"商品编码"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"thirdPartyCode"
,
label
:
"第三方编码"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"serviceItemNames"
,
label
:
"服务项目"
,
col
:
8
,
slot
:
"serviceItemNames"
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"purchasePrice"
,
label
:
"采购价/件"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"upgradePrice"
,
label
:
"参考售价/件"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"carTypeConfigName"
,
label
:
"适用车型"
,
col
:
8
,
slot
:
"carTypeConfigName"
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"goodsName"
,
label
:
"所属系列"
,
col
:
8
,
itemStyle
:
subFormItemsStyle
},
{
name
:
"tempGoodsTypeName"
,
label
:
"所属分类"
,
col
:
8
,
itemStyle
:
{
...
subFormItemsStyle
,
"margin-bottom"
:
0
}
},
{
name
:
"upgradeCommodityCode"
,
label
:
"商品ID"
,
col
:
8
,
itemStyle
:
{
...
subFormItemsStyle
,
"margin-bottom"
:
0
}
},
];
export
const
productShelvingComboDetailFormItems
=
[
{
name
:
"packageName"
,
label
:
"套餐名称"
,
col
:
12
},
{
name
:
"packageAlias"
,
label
:
"套餐别名"
,
col
:
12
},
{
name
:
"businessLine"
,
label
:
"业务线"
,
col
:
12
},
{
name
:
"settlementType"
,
label
:
"结算方式"
,
col
:
12
},
{
name
:
"sellPrice"
,
label
:
"售价/件"
,
col
:
12
},
{
name
:
"minSellPrice"
,
label
:
"最低售价/件"
,
col
:
12
},
{
name
:
"djCost"
,
label
:
"嘀加成本/件"
,
col
:
12
},
{
name
:
"thirdPartyCost"
,
label
:
"第三方成本/件"
,
col
:
12
},
{
name
:
"salesProportionPercent"
,
label
:
"销售占比"
,
col
:
12
},
];
src/views/goods/shelfManage/components/profitSharingConfig/index.vue
View file @
5ed903b
...
@@ -76,39 +76,6 @@
...
@@ -76,39 +76,6 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="" prop="autoFlag">
<span class="tips-block" slot="label">
<span class="tips-label">线上自动分账</span>
<el-tooltip popper-class="tooltip-class" effect="dark" content="产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
placement="top">
<span class="tips-icon" /> </el-tooltip>:
</span>
<el-switch v-model="financialObj.autoFlag" active-value="Y" inactive-value="N" />
</el-form-item>
<el-form-item label="结算时间方式" prop="settleTimeType">
<span class="tips-block" slot="label">
<span class="tips-label">分账周期</span>
<el-tooltip popper-class="tooltip-class" effect="dark" content="用户支付的款项可按T+1或指定日自动打款给商户。" placement="top">
<span class="tips-icon" /> </el-tooltip>:
</span>
<el-radio-group v-model="financialObj.settleTimeType" :disabled="financialObj.autoFlag === 'N'">
<div class="block_item" style="margin-bottom: 20px">
<el-radio :label="1">
分账周期 T+
<el-input-number v-model="settleTimeObj.first" controls-position="right" size="small" :min="0" :max="20"
:disabled="financialObj.autoFlag === 'N'" />
日
<span v-show="financialObj.settleTimeType == 1">(分账后第2天到分账方对公账户)</span>
</el-radio>
</div>
</el-radio-group>
</el-form-item> -->
<!-- <el-form-item label="流量方分账方" prop="realityShopMerchantId" required>
<el-select v-model="financialObj.realityShopMerchantId" placeholder="请选择流量方分账方">
<el-option v-for="item in baseData.merchantLevelList" :key="item.merchantId" :label="item.showMerchantName"
:value="item.merchantId" />
</el-select>
</el-form-item> -->
<el-form-item
label=
"流量方分账方"
<el-form-item
label=
"流量方分账方"
prop=
"realityShopLevel"
prop=
"realityShopLevel"
required
>
required
>
...
@@ -128,12 +95,12 @@
...
@@ -128,12 +95,12 @@
<!-- closable -->
<!-- closable -->
<el-tab-pane
v-for=
"(item, idx) in editableTabs"
<el-tab-pane
v-for=
"(item, idx) in editableTabs"
:key=
"item.name"
:key=
"item.name"
:closable=
"idx != 0"
:closable=
"idx !=
=
0"
:label=
"item.title"
:label=
"item.title"
:name=
"item.name"
>
:name=
"item.name"
>
<
template
#
label
>
<
template
#
label
>
<span>
<span>
<i
v-show=
"item.testFlag != 'Y' || item.calculateModeError"
<i
v-show=
"item.testFlag !=
=
'Y' || item.calculateModeError"
class=
"el-icon-warning car-error-txt"
/>
{{
item
.
title
}}
class=
"el-icon-warning car-error-txt"
/>
{{
item
.
title
}}
</span>
</span>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment