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 9b0352c6
authored
Jul 20, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(商品上架): 业务开发
1 parent
5868d21c
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
249 additions
and
107 deletions
src/components/remoteSearchSelect/index.vue
src/views/goods/shelfProduct/api/index.js
src/views/goods/shelfProduct/components/shelfProductConfirm/components/combo/components/detail/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/components/combo/components/modify/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/detail/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/modify/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/shelfProductConfirm.data.js
src/views/goods/shelfProduct/components/shelfProductImport/shelfProductImport.data.js
src/views/goods/shelfProduct/constant/index.js
src/views/goods/shelfProduct/view/detail/index.vue
src/views/goods/shelfProduct/view/modify/index.vue
src/views/goods/shelfProduct/view/normalDetail/index.vue
src/components/remoteSearchSelect/index.vue
View file @
9b0352c
...
...
@@ -109,7 +109,6 @@ export default {
},
value
:
{
required
:
true
,
type
:
[
Array
,
String
,
Number
],
},
fieldName
:
{
type
:
Object
,
...
...
@@ -236,8 +235,7 @@ export default {
});
}
},
handleSelectChange
(
e
)
{
console
.
log
(
"handleSelectChange"
,
e
);
handleSelectChange
(
e
,
d
)
{
this
.
$emit
(
"input"
,
e
);
if
(
isFunction
(
this
.
$listeners
?.
change
))
{
this
.
$listeners
.
change
(
e
);
...
...
src/views/goods/shelfProduct/api/index.js
View file @
9b0352c
...
...
@@ -207,3 +207,9 @@ export function postProductServiceList(data = {}) {
data
.
categoryId
=
1
;
return
getServiceItem
(
data
);
}
// 获取 服务项目
export
function
postProductCostCalculateApi
(
data
=
{})
{
data
.
method
=
"dj.api.smartcarlife.merchantGoodsInfo.productCost.calculate"
;
return
request
(
data
,
RequestMethods
.
POST
);
}
src/views/goods/shelfProduct/components/shelfProductConfirm/components/combo/components/detail/index.vue
View file @
9b0352c
...
...
@@ -11,7 +11,6 @@
:merchant-id-list=
"merchantIdList"
:product=
"productData"
:shelf-type=
"shelfType"
:show-business-line=
"false"
:show-gift-cost=
"false"
:show-old-merchant-goods-code=
"false"
...
...
@@ -19,7 +18,6 @@
:show-sales-proportion-percent=
"false"
:show-settlement-type=
"false"
:show-shelf-style=
"false"
@
update:upgradeGoods=
"handleUpdateProduct($event, index)"
/>
<el-divider
class=
"divider"
></el-divider>
</div>
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/components/combo/components/modify/index.vue
View file @
9b0352c
...
...
@@ -49,8 +49,8 @@
placeholder=
"原上架ID"
:fetch-api=
"fetchMerchantGoodsCode"
:field-name=
"{
value: '
goodsCode
',
label: 'p
roductName
',
value: '
packageId
',
label: 'p
ackageId
',
}"
:immediate=
"true"
:multiple=
"false"
...
...
@@ -135,21 +135,6 @@
</div>
</el-form-item>
</el-col>
<!-- <el-col v-if="isQualityUpgrade(baseSceneCode)"
title="按子商品的回收成本进行累计,实时计算"
:span="12">
<el-form-item label="回收成本:" prop="recoveryCost">
<div class="form-item-append-fix">
<VenusNumberInput disabled
:controls="false"
:min="0"
:precision="2"
:value="getSumValue.totalRecoveryCost">
</VenusNumberInput>
<span class="fix-symbol">元</span>
</div>
</el-form-item>
</el-col> -->
</el-row>
</el-form>
...
...
@@ -192,6 +177,7 @@
import
{
cloneDeep
,
isFunction
,
pick
,
reduce
}
from
"lodash-es"
;
import
{
nanoid
}
from
"nanoid"
;
import
{
settlementTypeOpt
}
from
"@/common/constants.js"
;
import
RemoteSelect
from
"@/components/remoteSearchSelect/index.vue"
;
import
VenusNumberInput
from
"@/components/venusNumberInput/index.vue"
;
import
{
baseConfig
}
from
"@/main"
;
import
{
postComboOldMerchantGoodsCodeList
}
from
"@/views/goods/shelfProduct/api"
;
...
...
@@ -204,6 +190,7 @@ export default {
components
:
{
Product
,
VenusNumberInput
,
RemoteSelect
,
},
props
:
{
merchantIdList
:
{
...
...
@@ -211,7 +198,7 @@ export default {
required
:
true
,
},
merchantId
:
{
type
:
Number
,
type
:
[
Number
,
Array
]
,
required
:
true
,
},
baseSceneCode
:
{
...
...
@@ -307,7 +294,7 @@ export default {
async
fetchMerchantGoodsCode
({
pageQuery
})
{
const
res
=
await
postComboOldMerchantGoodsCodeList
({
...
pageQuery
,
merchantIds
:
[
this
.
merchantId
],
merchantIds
:
Array
.
isArray
(
this
.
merchantId
)
?
this
.
merchantId
:
[
this
.
merchantId
],
baseSceneCode
:
this
.
baseSceneCode
,
productName
:
pageQuery
.
searchValue
,
});
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/detail/index.vue
View file @
9b0352c
...
...
@@ -68,18 +68,23 @@ export default {
computed
:
{
filterSchema
()
{
return
this
.
schema
.
filter
((
item
)
=>
{
// 结算方式
if
(
item
.
name
===
"settlementType"
)
{
return
this
.
showSettlementType
;
}
// 销售占比
if
(
item
.
name
===
"salesProportionPercent"
)
{
return
this
.
showSalesProportionPercent
;
}
// 上架类型
if
(
item
.
name
===
"shelfStyle"
)
{
return
this
.
showShelfStyle
;
}
// 原上架id
if
(
item
.
name
===
"oldMerchantGoodsCode"
)
{
return
this
.
showOldMerchantGoodsCode
;
}
// 赠送成本
if
(
item
.
name
===
"detailList.0.giftCost"
)
{
return
this
.
showGiftCost
;
}
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/modify/index.vue
View file @
9b0352c
...
...
@@ -77,7 +77,7 @@
:fetch-api=
"fetchMerchantGoodsCode"
:field-name=
"
{
value: 'goodsCode',
label: '
productNam
e',
label: '
goodsCod
e',
}"
:immediate="true"
:multiple="false"
...
...
@@ -103,7 +103,6 @@
:rules=
"[{ required: true, message: '请选择服务项目', trigger: 'change' }]"
>
<RemoteSelect
v-model=
"product.detailList[0].serviceItemId"
placeholder=
"请选择服务项目"
value-key=
"id"
:fetch-api=
"fetchServiceListItem"
:field-name=
"{
value: 'id',
...
...
@@ -111,7 +110,8 @@
}"
:immediate=
"true"
:multiple=
"false"
:options
.
sync=
"options.serviceList"
>
:options
.
sync=
"options.serviceList"
@
change=
"handlesServiceItemChange"
>
</RemoteSelect>
</el-form-item>
...
...
@@ -144,20 +144,6 @@
</el-select>
</el-form-item>
</el-col>
<!-- <el-col v-if="showSalesProportionPercent" :span="12">
<el-form-item label="销售占比:" prop="salesProportionPercent">
<div class="form-item-append-fix">
<VenusNumberInput v-model="product.salesProportionPercent"
placeholder="请输入销售占比"
:controls="false"
:max="100"
:min="0"
:precision="2">
</VenusNumberInput>
<span class="fix-symbol">%</span>
</div>
</el-form-item> -->
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"售价/件:"
prop=
"detailList[0].sellPrice"
...
...
@@ -208,7 +194,7 @@
<VenusNumberInput
v-model=
"product.detailList[0].thirdPartyCost"
placeholder=
"请输入第三方成本"
:controls=
"false"
:disabled=
"isUpgradeProductCostStyleDefault(product.upgradeProductCostStyle) || isDirectOperation(product.detailList[0].supplyFlag)"
:disabled=
"isUpgradeProductCostStyleDefault(product.
detailList[0].
upgradeProductCostStyle) || isDirectOperation(product.detailList[0].supplyFlag)"
:max=
"999999"
:min=
"0"
:precision=
"2"
/>
...
...
@@ -224,7 +210,7 @@
<VenusNumberInput
v-model=
"product.detailList[0].upgradeProductCost"
placeholder=
"请输入产品、升级成本"
:controls=
"false"
:disabled=
"isUpgradeProductCostStyleDefault(product.upgradeProductCostStyle)"
:disabled=
"isUpgradeProductCostStyleDefault(product.
detailList[0].
upgradeProductCostStyle)"
:max=
"999999"
:min=
"0"
:precision=
"2"
>
...
...
@@ -234,9 +220,23 @@
</el-form-item>
</el-col>
<el-col
v-if=
"showUpgradeProductCostStyle"
:span=
"12"
>
<el-form-item
label=
"商品成本带入方式:"
prop=
"detailList[0].upgradeProductCostStyle"
:rules=
"[{ required: true, message: '请选择商品成本带入方式', trigger: 'change' }]"
>
<el-radio-group
v-model=
"product.detailList[0].upgradeProductCostStyle"
@
change=
"handleUpgradeProductCostStyleChange"
>
<
template
v-for=
"item in options.productCostStyleOpt"
>
<el-radio
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</
template
>
</el-radio-group>
</el-form-item>
</el-col>
<!-- ●赠送成本(仅精品升级场景存在) -->
<!-- TODO 5.8.6 ○若否则默认为空 -->
<!-- TODO 5.8.6 ○若是则自动带入对应的产品、升级成本,成本的获取方式与产品、升级成本一致; -->
<el-col
v-if=
"isQualityUpgrade(baseSceneCode) && showGiftCost"
:span=
"12"
>
<el-form-item
label=
"赠送成本:"
prop=
"detailList[0].giftCost"
>
...
...
@@ -271,10 +271,20 @@ import { BaseData, settlementTypeOpt } from "@/common/constants.js";
import
Descriptions
from
"@/components/descriptions/index.vue"
;
import
RemoteSelect
from
"@/components/remoteSearchSelect/index.vue"
;
import
VenusNumberInput
from
"@/components/venusNumberInput/index.vue"
;
import
{
postProductOldMerchantGoodsCodeList
,
postProductServiceList
}
from
"@/views/goods/shelfProduct/api"
;
import
{
postProductCostCalculateApi
,
postProductOldMerchantGoodsCodeList
,
postProductServiceList
,
}
from
"@/views/goods/shelfProduct/api"
;
import
SelectGoodsDialog
from
"@/views/goods/shelfProduct/components/shelfProductConfirm/components/selectGoods/index.vue"
;
import
{
getProductDetailUpgradeGoodsDescriptionSchema
}
from
"@/views/goods/shelfProduct/components/shelfProductConfirm/shelfProductConfirm.data.js"
;
import
{
inventoryTypeOption
,
shelfStyleOptions
}
from
"@/views/goods/shelfProduct/constant/index.js"
;
import
{
getProductDetailUpgradeGoodsDescriptionSchema
,
}
from
"@/views/goods/shelfProduct/components/shelfProductConfirm/shelfProductConfirm.data.js"
;
import
{
inventoryTypeOption
,
productCostStyleOpt
,
shelfStyleOptions
,
}
from
"@/views/goods/shelfProduct/constant/index.js"
;
import
{
isDirectOperation
,
isMemberRightsUpgrade
,
...
...
@@ -301,7 +311,7 @@ export default {
required
:
true
,
},
merchantId
:
{
type
:
Number
,
type
:
[
Number
,
Array
]
,
required
:
true
,
},
baseSceneCode
:
{
...
...
@@ -358,6 +368,7 @@ export default {
settlementType
:
settlementTypeOpt
,
inventoryType
:
inventoryTypeOption
,
shelfStyleOptions
,
productCostStyleOpt
,
position
:
[],
serviceList
:
[],
oldMerchantGoodsCode
:
[],
...
...
@@ -372,7 +383,22 @@ export default {
};
},
computed
:
{},
computed
:
{
showUpgradeProductCostStyle
()
{
// 未选择产品 不显示
if
(
!
(
this
.
product
.
upgradeGoodsId
||
this
.
product
.
detailList
[
0
].
upgradeGoodsId
))
{
return
false
;
}
//
if
(
isSolarFilm
(
this
.
product
?.
detailList
?.[
0
]?.
upgradeGoods
?.
goodsInfo
?.
goodsType
))
{
// 如果是膜类 还要额外判断 服务项目未选择的时候 也不显示
if
(
!
this
.
product
?.
detailList
?.[
0
]?.
serviceItemId
)
{
return
false
;
}
}
return
true
;
},
},
watch
:
{
product
:
{
handler
(
val
)
{
...
...
@@ -406,15 +432,11 @@ export default {
isDirectOperation
,
async
initOptions
()
{
this
.
options
.
position
=
await
this
.
get
(
BaseData
.
positionTypeList
);
this
.
options
.
oldMerchantGoodsCode
=
await
postProductOldMerchantGoodsCodeList
({
merchantIds
:
[
this
.
merchantId
],
baseSceneCode
:
this
.
baseSceneCode
,
});
},
async
fetchMerchantGoodsCode
({
pageQuery
})
{
const
res
=
await
postProductOldMerchantGoodsCodeList
({
...
pageQuery
,
merchantIds
:
[
this
.
merchantId
],
merchantIds
:
Array
.
isArray
(
this
.
merchantId
)
?
this
.
merchantId
:
[
this
.
merchantId
],
baseSceneCode
:
this
.
baseSceneCode
,
productName
:
pageQuery
.
searchValue
,
});
...
...
@@ -430,6 +452,7 @@ export default {
return
await
postProductServiceList
({
...
pageQuery
,
serviceItemsName
:
pageQuery
.
searchValue
,
});
},
showPositionItem
(
position
)
{
return
this
.
product
?.
detailList
[
0
]?.
upgradeGoods
?.
positionList
?.
includes
(
position
);
},
...
...
@@ -446,15 +469,62 @@ export default {
this
.
dialog
.
selectGoods
.
show
=
false
;
},
handleSelectGoodsConfirm
(
upgradeGoods
)
{
// 库存-sku001
// 商品成本带入方式变动 更新成本
async
updateCost
()
{
// 如果是自定义成本带入方式 则 不更新成本
if
(
isUpgradeProductCostStyleCustom
(
this
.
product
?.
detailList
?.[
0
]?.
upgradeProductCostStyle
))
{
return
;
}
// 权益延保第三方成本 equityOperationCost;
// 轻改产品升级成本 upgradeCost;
const
{
equityOperationCost
,
upgradeCost
}
=
await
postProductCostCalculateApi
({
serviceItemId
:
this
.
product
?.
detailList
?.[
0
]?.
serviceItemId
,
upgradeGoodsId
:
this
.
product
.
upgradeGoodsId
||
this
.
product
.
detailList
[
0
].
upgradeGoodsId
,
});
// 如果是会员权益升级场景
if
(
isMemberRightsUpgrade
(
this
.
baseSceneCode
))
{
this
.
product
.
detailList
[
0
].
thirdPartyCost
=
equityOperationCost
;
}
// 如果是精品升级场景
if
(
isQualityUpgrade
(
this
.
baseSceneCode
))
{
this
.
product
.
detailList
[
0
].
upgradeProductCost
=
upgradeCost
;
// 如果 是否作为赠送产品
if
(
this
.
product
.
detailList
[
0
].
isGiftCost
===
"Y"
)
{
this
.
product
.
detailList
[
0
].
giftCost
=
upgradeCost
;
}
}
},
/**
* 商品成本带入方式 变更
*/
async
handleUpgradeProductCostStyleChange
(
e
)
{
await
this
.
$nextTick
();
await
this
.
updateCost
();
},
/**
* 服务项目 变更
*/
async
handlesServiceItemChange
(
e
)
{
const
serviceItem
=
this
.
options
.
serviceList
.
find
(
item
=>
item
.
id
===
e
);
// 同步更改名字
if
(
serviceItem
)
{
this
.
product
.
detailList
[
0
].
serviceItem
=
serviceItem
.
serviceItemsName
;
}
await
this
.
$nextTick
();
await
this
.
updateCost
();
},
/**
* 选择商品时
*/
async
handleSelectGoodsConfirm
(
upgradeGoods
)
{
upgradeGoods
.
djCost
=
upgradeGoods
.
djCost
??
0
;
upgradeGoods
.
positionList
=
[];
if
(
upgradeGoods
.
position
)
{
upgradeGoods
.
positionList
=
upgradeGoods
.
position
.
split
(
","
).
map
(
Number
);
}
this
.
$emit
(
"update:upgradeGoods"
,
upgradeGoods
);
await
this
.
$nextTick
();
await
this
.
updateCost
();
this
.
handleSelectGoodsClose
();
},
async
validate
()
{
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/index.vue
View file @
9b0352c
...
...
@@ -22,15 +22,17 @@
<span
class=
"label"
>
{{
row
.
productName
}}
</span>
<span
v-if=
"useEdit && isView(editState)"
<!-- 5.8.4 不允许删除 -->
<!--
<span
v-if=
"useEdit && isView(editState)"
class=
"actions el-icon-close"
@
click
.
stop=
"handleRemoveTitleSelectItem(row)"
>
</span>
</span>
-->
</div>
</
template
>
</RemoteSelect>
</div>
<div
v-if=
"useEdit && isView(editState)"
class=
"actions-wrapper"
>
<!-- 5.8.4 取消新增功能 -->
<!-- <div v-if="useEdit && isView(editState)" class="actions-wrapper">
<el-dropdown @command="handleAppendProductPackages">
<el-button size="small" plain>
新增
...
...
@@ -47,7 +49,7 @@
</el-dropdown-menu>
</template>
</el-dropdown>
</div>
</div>
-->
</div>
<div
class=
"content-wrapper"
>
...
...
@@ -154,7 +156,7 @@ export default {
required
:
true
,
},
merchantId
:
{
type
:
Number
,
type
:
[
Number
,
Array
]
,
required
:
true
,
},
shelfType
:
{
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/shelfProductConfirm.data.js
View file @
9b0352c
...
...
@@ -65,7 +65,6 @@ export async function getProductDetailDescriptionSchema(shelfType) {
},
isHide
({
formModel
})
{
const
goodsType
=
getUpgradeGoods
(
formModel
)?.
goodsInfo
?.
goodsType
;
// 不是太阳膜类型的 隐藏
return
!
(
isSolarFilm
(
goodsType
));
},
...
...
@@ -83,7 +82,7 @@ export async function getProductDetailDescriptionSchema(shelfType) {
);
},
isHide
({
formModel
})
{
// 单店模式
才存在;
// 单店模式
存在
return
!
(
isSingleShopMode
(
shelfType
));
},
},
...
...
@@ -93,16 +92,15 @@ export async function getProductDetailDescriptionSchema(shelfType) {
label
:
"原上架ID"
,
col
:
12
,
render
(
h
,
{
data
,
schemaItem
})
{
// const value = get(data, schemaItem.name);
// const item = value && shelfStyleOptions.find(item => item.value === value);
const
value
=
get
(
data
,
schemaItem
.
name
);
return
h
(
"span"
,
"动态获取"
||
"-"
,
value
||
"-"
,
);
},
isHide
({
formModel
})
{
// 单店模式 且 shelfStyle === 修改才存在
return
!
(
isSingleShopMode
(
shelfType
)
&&
!
isShelfStyleEdit
(
formModel
.
shelfStyle
));
return
!
(
isSingleShopMode
(
shelfType
)
&&
isShelfStyleEdit
(
formModel
.
shelfStyle
));
},
},
...
...
@@ -124,6 +122,31 @@ export async function getProductDetailDescriptionSchema(shelfType) {
);
},
},
{
name
:
"detailList.0.serviceItem"
,
label
:
"服务项目"
,
col
:
12
,
render
(
h
,
{
data
,
schemaItem
})
{
const
value
=
get
(
data
,
schemaItem
.
name
);
return
h
(
"div"
,
{
attrs
:
{
title
:
value
,
},
class
:
"text-hide"
,
},
value
||
"-"
,
);
},
isHide
({
formModel
})
{
const
goodsType
=
getUpgradeGoods
(
formModel
)?.
goodsInfo
?.
goodsType
;
// 不是太阳膜类型的 隐藏
return
!
(
isSolarFilm
(
goodsType
));
},
},
// 套餐加载时不显示
{
name
:
"settlementType"
,
...
...
@@ -151,19 +174,6 @@ export async function getProductDetailDescriptionSchema(shelfType) {
);
},
},
// 套餐加载时不显示
// {
// name: "salesProportionPercent",
// label: "销售占比",
// col: 12,
// render(h, { data, schemaItem }) {
// const value = isZeroOrNumber(get(data, schemaItem.name));
// return h(
// "span",
// value === "-" ? value : `${value}%`,
// );
// },
// },
{
name
:
"detailList.0.sellPrice"
,
label
:
"售价/件"
,
...
...
@@ -628,16 +638,16 @@ export async function getPackagesDetailDescriptionSchema(shelfType) {
label
:
"原上架ID"
,
col
:
12
,
render
(
h
,
{
data
,
schemaItem
})
{
//
const value = get(data, schemaItem.name);
const
value
=
get
(
data
,
schemaItem
.
name
);
// const item = value && shelfStyleOptions.find(item => item.value === value);
return
h
(
"span"
,
"动态获取"
||
"-"
,
value
||
"-"
,
);
},
isHide
({
formModel
})
{
// 单店模式 且 shelfStyle === 修改才存在
return
!
(
isSingleShopMode
(
shelfType
)
&&
!
isShelfStyleEdit
(
formModel
.
shelfStyle
));
return
!
(
isSingleShopMode
(
shelfType
)
&&
isShelfStyleEdit
(
formModel
.
shelfStyle
));
},
},
{
...
...
src/views/goods/shelfProduct/components/shelfProductImport/shelfProductImport.data.js
View file @
9b0352c
...
...
@@ -140,36 +140,91 @@ export async function getShelfProductImportSchema() {
col
:
24
,
render
(
h
,
{
data
})
{
const
fileName
=
last
(
data
?.
goodsCreateExcel
?.
split
(
"/"
));
// 利润率测算表
const
onShelvesExcel
=
last
(
data
?.
onShelvesExcel
?.
split
(
"/"
));
return
h
(
"div"
,
{
attrs
:
{
title
:
fileName
,
},
style
:
{
display
:
"flex"
,
"display"
:
"flex"
,
"flex-direction"
:
"column"
,
"align-items"
:
"flex-start"
,
},
},
[
// 商品上架表
h
(
"
span
"
,
"
div
"
,
{
class
:
"text-hide"
,
attrs
:
{
title
:
fileName
,
},
style
:
{
"
max-width"
:
"400p
x"
,
"
display"
:
"inline-block
"
,
"
display"
:
"fle
x"
,
"
align-items"
:
"center
"
,
},
},
fileName
,
),
h
(
"el-link"
,
{
props
:
{
type
:
"text"
,
href
:
data
?.
goodsCreateExcel
,
target
:
"_blank"
},
style
:
{
"marginLeft"
:
"8px"
,
"line-height"
:
1
},
},
"下载"
,
[
h
(
"span"
,
{
class
:
"text-hide"
,
style
:
{
"max-width"
:
"400px"
,
"display"
:
"inline-block"
,
},
},
fileName
,
),
h
(
"el-link"
,
{
props
:
{
type
:
"text"
,
href
:
data
?.
goodsCreateExcel
,
target
:
"_blank"
},
style
:
{
"marginLeft"
:
"8px"
,
"line-height"
:
1
},
},
"下载"
,
),
],
),
// 利润率测算表
onShelvesExcel
?
h
(
"div"
,
{
attrs
:
{
title
:
onShelvesExcel
,
},
style
:
{
"display"
:
"flex"
,
"align-items"
:
"center"
,
"margin-top"
:
"4px"
,
},
},
[
h
(
"span"
,
{
class
:
"text-hide"
,
style
:
{
"max-width"
:
"400px"
,
"display"
:
"inline-block"
,
},
},
onShelvesExcel
,
),
h
(
"el-link"
,
{
props
:
{
type
:
"text"
,
href
:
data
?.
onShelvesExcel
,
target
:
"_blank"
},
style
:
{
"marginLeft"
:
"8px"
,
"line-height"
:
1
},
},
"下载"
,
),
],
)
:
null
,
],
);
},
...
...
src/views/goods/shelfProduct/constant/index.js
View file @
9b0352c
...
...
@@ -15,6 +15,12 @@ export const sceneTypeOptions = [
{
value
:
"110202"
,
label
:
"2.3.2 售后延保"
},
];
// 商品上架 商品成本带入方式
export
const
productCostStyleOpt
=
[
{
value
:
2
,
label
:
"默认带入产品成本"
},
{
value
:
1
,
label
:
"自定义成本"
},
];
export
const
VIEW_MODE
=
{
EDIT
:
"edit"
,
VIEW
:
"view"
,
...
...
src/views/goods/shelfProduct/view/detail/index.vue
View file @
9b0352c
...
...
@@ -34,6 +34,7 @@
style=
"margin-top:20px"
>
<ShelfProductConfirm
:base-scene-code=
"baseSceneCode"
:business-code=
"businessCode"
:merchant-id=
"merchantIdList"
:shelf-type=
"shelfType"
:use-edit=
"false"
/>
</FormStep>
...
...
@@ -118,12 +119,14 @@ export default {
baseSceneCode
:
undefined
,
businessCode
:
undefined
,
shelfType
:
undefined
,
merchantIdList
:
undefined
,
logList
:
[],
};
},
computed
:
{
isReadyForNextStep
()
{
return
this
.
baseSceneCode
&&
this
.
businessCode
&&
this
.
shelfType
;
return
this
.
baseSceneCode
&&
this
.
businessCode
&&
this
.
shelfType
&&
this
.
merchantIdList
;
},
},
async
created
()
{
...
...
src/views/goods/shelfProduct/view/modify/index.vue
View file @
9b0352c
...
...
@@ -46,6 +46,7 @@
<FormStep
v-loading=
"data.isStepLoading"
name=
"ProductConfirm"
>
<ShelfProductConfirm
:base-scene-code=
"baseSceneCode"
:business-code=
"businessCode"
:merchant-id=
"merchantId"
:shelf-type=
"shelfType"
/>
</FormStep>
<FormStep
v-loading=
"data.isStepLoading"
name=
"ProfitSharingConfig"
>
...
...
@@ -222,9 +223,10 @@ export default {
});
},
async
getStep
()
{
const
{
confirmStep
}
=
await
getShelfProductUpdateStep
({
const
{
confirmStep
,
merchantId
}
=
await
getShelfProductUpdateStep
({
businessCode
:
this
.
businessCode
,
});
this
.
merchantId
=
merchantId
;
return
confirmStep
-
1
;
},
async
beforeChangeStepBefore
(
isNext
)
{
...
...
src/views/goods/shelfProduct/view/normalDetail/index.vue
View file @
9b0352c
...
...
@@ -14,7 +14,7 @@
style=
"margin-top:20px"
>
<ShelfProductConfirm
:base-scene-code=
"baseSceneCode"
:business-code=
"businessCode"
:merchant-id=
"merchantId"
:merchant-id=
"merchantId
List
"
:shelf-type=
"shelfType"
:use-edit=
"false"
/>
</FormStep>
...
...
@@ -82,13 +82,13 @@ export default {
baseSceneCode
:
undefined
,
businessCode
:
undefined
,
shelfType
:
undefined
,
merchantId
:
undefined
,
merchantId
List
:
undefined
,
logList
:
[],
};
},
computed
:
{
isReadyForNextStep
()
{
return
this
.
baseSceneCode
&&
this
.
businessCode
&&
this
.
shelfType
;
return
this
.
baseSceneCode
&&
this
.
businessCode
&&
this
.
shelfType
&&
this
.
merchantIdList
;
},
},
async
created
()
{
...
...
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