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 c0e716a6
authored
Jul 06, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style: 格式化
1 parent
577a2aba
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
86 additions
and
71 deletions
src/components/d2-container/components/d2-container-full.vue
src/components/d2-container/components/d2-header-switch.vue
src/components/d2-form/index.vue
src/store/modules/d2admin/modules/tsearch.js
src/views/goods/shelfProduct/components/shelfProductConfirm/components/combo/components/detail/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/components/product/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/components/selectGoods/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/index.vue
src/views/goods/shelfProduct/components/shelfProductConfirm/shelfProductConfirm.data.js
src/components/d2-container/components/d2-container-full.vue
View file @
c0e716a
src/components/d2-container/components/d2-header-switch.vue
View file @
c0e716a
<
template
>
<
template
>
<div
v-if=
"show"
class=
"d2-header-switch"
:class=
"
{ 'd2-header-switch--active': isActive }" @click="handleClick">
<div
v-if=
"show"
class=
"d2-header-switch"
:class=
"
{ 'd2-header-switch--active': isActive }"
@click="handleClick">
<d2-el-icon
:name=
"name"
/>
<d2-el-icon
:name=
"name"
/>
<li
:class=
"$store.state.d2admin.tsearch.active ? 'fa fa-compress' : 'fa fa-expand'"
/>
<li
:class=
"$store.state.d2admin.tsearch.active ? 'fa fa-compress' : 'fa fa-expand'"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapMutations
}
from
'vuex'
import
{
mapMutations
}
from
"vuex"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isActive
:
false
,
isActive
:
false
,
path
:
''
path
:
""
,
}
};
},
},
computed
:
{
computed
:
{
show
()
{
show
()
{
return
true
return
true
;
},
},
name
()
{
name
()
{
return
this
.
$store
.
state
.
d2admin
.
tsearch
.
active
?
'top-right'
:
'bottom-left'
return
this
.
$store
.
state
.
d2admin
.
tsearch
.
active
?
"top-right"
:
"bottom-left"
;
}
},
},
},
mounted
()
{
mounted
()
{
setTimeout
(()
=>
(
this
.
isActive
=
true
),
0
)
setTimeout
(()
=>
(
this
.
isActive
=
true
),
0
);
},
},
methods
:
{
methods
:
{
...
mapMutations
(
'd2admin/tsearch'
,
[
'toggle'
]),
...
mapMutations
(
"d2admin/tsearch"
,
[
"toggle"
]),
// 点击按钮的时候跳转到源代码
// 点击按钮的时候跳转到源代码
handleClick
()
{
handleClick
()
{
this
.
toggle
()
this
.
toggle
();
}
},
}
},
}
}
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/d2-form/index.vue
View file @
c0e716a
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<i
class=
"suffix"
>
{{
item
.
unit
}}
</i>
<i
class=
"suffix"
>
{{
item
.
unit
}}
</i>
</
template
>
</
template
>
</el-input>
</el-input>
<el-input
v-if=
"item.type === 'textarea'"
<el-input
v-if=
"item.type === 'textarea'"
v-model
.
trim=
"formData[item.name]"
v-model
.
trim=
"formData[item.name]"
class=
"desc-input"
class=
"desc-input"
...
@@ -53,6 +54,7 @@
...
@@ -53,6 +54,7 @@
:maxlength=
"item.maxlength"
:maxlength=
"item.maxlength"
:placeholder=
"item.label"
:placeholder=
"item.label"
:rows=
"4"
/>
:rows=
"4"
/>
<!-- 选择框 -->
<!-- 选择框 -->
<el-select
v-else-if=
"item.type === 'select'"
<el-select
v-else-if=
"item.type === 'select'"
v-model=
"formData[item.name]"
v-model=
"formData[item.name]"
...
@@ -67,6 +69,7 @@
...
@@ -67,6 +69,7 @@
:label=
"subItem[item.optionLabel]"
:label=
"subItem[item.optionLabel]"
:value=
"subItem[item.optionId]"
/>
:value=
"subItem[item.optionId]"
/>
</el-select>
</el-select>
<!-- 可添加选项选择框 -->
<!-- 可添加选项选择框 -->
<el-select
v-else-if=
"item.type === 'special-select'"
<el-select
v-else-if=
"item.type === 'special-select'"
v-model=
"formData[item.name]"
v-model=
"formData[item.name]"
...
@@ -167,6 +170,7 @@
...
@@ -167,6 +170,7 @@
</div>
</div>
</div>
</div>
</el-select>
</el-select>
<
template
v-else-if=
"item.type === 'button'"
>
<
template
v-else-if=
"item.type === 'button'"
>
<div
v-if=
"item.name === 'linkMerchants'"
>
<div
v-if=
"item.name === 'linkMerchants'"
>
<div
class=
"add-btns"
>
<div
class=
"add-btns"
>
...
@@ -224,6 +228,7 @@
...
@@ -224,6 +228,7 @@
</el-table>
</el-table>
</div>
</div>
</template>
</template>
<
template
v-else-if=
"item.type === 'relatePro'"
>
<
template
v-else-if=
"item.type === 'relatePro'"
>
<div
class=
"add-btns"
>
<div
class=
"add-btns"
>
<el-button
type=
"primary"
<el-button
type=
"primary"
...
@@ -277,6 +282,7 @@
...
@@ -277,6 +282,7 @@
<
/p
>
<
/p
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
template
v
-
else
-
if
=
"item.type === 'photo'"
>
<
template
v
-
else
-
if
=
"item.type === 'photo'"
>
<
p
class
=
"photo-top-tips"
>
<
p
class
=
"photo-top-tips"
>
{{
item
.
topTips
}}
{{
item
.
topTips
}}
...
@@ -318,6 +324,7 @@
...
@@ -318,6 +324,7 @@
</div>
</div>
</template>
</template>
</template>
</template>
<template v-else-if="
item
.
type
===
'video'
">
<template v-else-if="
item
.
type
===
'video'
">
<p class="
photo
-
top
-
tips
"
>
<p class="
photo
-
top
-
tips
"
>
{{
item
.
topTips
}}
{{
item
.
topTips
}}
...
@@ -359,6 +366,7 @@
...
@@ -359,6 +366,7 @@
</div>
</div>
</template>
</template>
</template>
</template>
<template v-else-if="
item
.
type
===
'descList'
">
<template v-else-if="
item
.
type
===
'descList'
">
<el-row class="
desc
-
btns
">
<el-row class="
desc
-
btns
">
<el-button size="
small
" @click="
handleAddDesc
(
2
,
item
)
">
<el-button size="
small
" @click="
handleAddDesc
(
2
,
item
)
">
...
@@ -404,6 +412,7 @@
...
@@ -404,6 +412,7 @@
<
/div
>
<
/div
>
<
/el-row
>
<
/el-row
>
<
/template
>
<
/template
>
<
span
v
-
else
>
<
span
v
-
else
>
{{
{{
item
.
name
?
formData
[
item
.
name
]
:
item
.
value
item
.
name
?
formData
[
item
.
name
]
:
item
.
value
...
...
src/store/modules/d2admin/modules/tsearch.js
View file @
c0e716a
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
namespaced
:
true
,
namespaced
:
true
,
state
:
{
state
:
{
// 列表搜索框状态
// 列表搜索框状态
active
:
true
active
:
true
,
},
},
mutations
:
{
mutations
:
{
/**
/**
...
@@ -10,7 +10,7 @@ export default {
...
@@ -10,7 +10,7 @@ export default {
* @param {Object} state state
* @param {Object} state state
*/
*/
toggle
(
state
)
{
toggle
(
state
)
{
state
.
active
=
!
state
.
active
state
.
active
=
!
state
.
active
;
},
},
/**
/**
* @description 设置搜索框状态
* @description 设置搜索框状态
...
@@ -18,13 +18,13 @@ export default {
...
@@ -18,13 +18,13 @@ export default {
* @param {Boolean} active active
* @param {Boolean} active active
*/
*/
set
(
state
,
active
)
{
set
(
state
,
active
)
{
state
.
active
=
active
state
.
active
=
active
;
}
},
},
},
actions
:
{
actions
:
{
reset
({
state
})
{
reset
({
state
})
{
state
.
active
=
true
state
.
active
=
true
;
}
},
}
},
}
}
;
src/views/goods/shelfProduct/components/shelfProductConfirm/components/combo/components/detail/index.vue
View file @
c0e716a
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
<div
v-for=
"(productData, index) in productList"
<div
v-for=
"(productData, index) in productList"
:key=
"productData.id"
:key=
"productData.id"
class=
"product-detail-wrapper"
>
class=
"product-detail-wrapper"
>
<Product
:product=
"productData"
<Product
use-parent-mode
:edit-state=
"VIEW_MODE.VIEW"
:base-scene-code=
"baseSceneCode"
:base-scene-code=
"baseSceneCode"
:edit-state=
"VIEW_MODE.VIEW"
:merchant-id-list=
"merchantIdList"
:product=
"productData"
:show-business-line=
"false"
:show-business-line=
"false"
:show-sales-proportion-percent=
"false"
:show-settlement-type=
"false"
:show-gift-cost=
"false"
:show-gift-cost=
"false"
:merchant-id-list=
"merchantIdList"
:show-penetration-rate=
"false"
:show-penetration-rate=
"false"
use-parent-mode
:show-sales-proportion-percent=
"false"
:show-settlement-type=
"false"
@
update:upgradeGoods=
"handleUpdateProduct($event, index)"
/>
@
update:upgradeGoods=
"handleUpdateProduct($event, index)"
/>
<el-divider
class=
"divider"
></el-divider>
<el-divider
class=
"divider"
></el-divider>
</div>
</div>
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/detail/index.vue
View file @
c0e716a
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/modify/index.vue
View file @
c0e716a
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
size=
"small"
size=
"small"
:model=
"product"
:model=
"product"
:rules=
"formRules"
>
:rules=
"formRules"
>
<el-row
:gutter=
"32
"
<el-row
align=
"top
"
style=
"width:100%;overflow:hidden;flex-wrap: wrap"
style=
"width:100%;overflow:hidden;flex-wrap: wrap"
type=
"flex"
type=
"flex"
align=
"top
"
>
:gutter=
"32
"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
class=
"info-form-item"
<el-form-item
class=
"info-form-item"
label=
"上架商品:"
label=
"上架商品:"
...
@@ -88,10 +88,10 @@
...
@@ -88,10 +88,10 @@
<el-form-item
label=
"销售占比:"
prop=
"salesProportionPercent"
>
<el-form-item
label=
"销售占比:"
prop=
"salesProportionPercent"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.salesProportionPercent"
<VenusNumberInput
v-model=
"product.salesProportionPercent"
placeholder=
"请输入销售占比"
:controls=
"false"
:controls=
"false"
:max=
"100"
:max=
"100"
:min=
"0"
:min=
"0"
placeholder=
"请输入销售占比"
:precision=
"2"
>
:precision=
"2"
>
</VenusNumberInput>
</VenusNumberInput>
<span
class=
"fix-symbol"
>
%
</span>
<span
class=
"fix-symbol"
>
%
</span>
...
@@ -104,10 +104,10 @@
...
@@ -104,10 +104,10 @@
:rules=
"[{ required: true, message: '请输入售价', trigger: 'blur' }]"
>
:rules=
"[{ required: true, message: '请输入售价', trigger: 'blur' }]"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.detailList[0].sellPrice"
<VenusNumberInput
v-model=
"product.detailList[0].sellPrice"
placeholder=
"请输入售价"
:controls=
"false"
:controls=
"false"
:max=
"999999"
:max=
"999999"
:min=
"0"
:min=
"0"
placeholder=
"请输入售价"
:precision=
"2"
/>
:precision=
"2"
/>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
</div>
</div>
...
@@ -119,10 +119,10 @@
...
@@ -119,10 +119,10 @@
:rules=
"[{ required: true, message: '请输入最低售价', trigger: 'blur' }]"
>
:rules=
"[{ required: true, message: '请输入最低售价', trigger: 'blur' }]"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.detailList[0].minSellPrice"
<VenusNumberInput
v-model=
"product.detailList[0].minSellPrice"
placeholder=
"请输入最低售价"
:controls=
"false"
:controls=
"false"
:max=
"999999"
:max=
"999999"
:min=
"0"
:min=
"0"
placeholder=
"请输入最低售价"
:precision=
"2"
/>
:precision=
"2"
/>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
</div>
</div>
...
@@ -134,8 +134,8 @@
...
@@ -134,8 +134,8 @@
prop=
"djCost"
>
prop=
"djCost"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<el-input
v-model=
"product.detailList[0].upgradeGoods.djCost"
<el-input
v-model=
"product.detailList[0].upgradeGoods.djCost"
disabled
placeholder=
"自动带入产品对应的嘀加成本"
placeholder=
"自动带入产品对应的嘀加成本"
/>
disabled
/>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -146,10 +146,10 @@
...
@@ -146,10 +146,10 @@
:rules=
"[{ required: true, message: '请输入第三方成本', trigger: 'blur' }]"
>
:rules=
"[{ required: true, message: '请输入第三方成本', trigger: 'blur' }]"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.detailList[0].thirdPartyCost"
<VenusNumberInput
v-model=
"product.detailList[0].thirdPartyCost"
placeholder=
"请输入第三方成本"
:controls=
"false"
:controls=
"false"
:max=
"999999"
:max=
"999999"
:min=
"0"
:min=
"0"
placeholder=
"请输入第三方成本"
:precision=
"2"
/>
:precision=
"2"
/>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
</div>
</div>
...
@@ -161,10 +161,10 @@
...
@@ -161,10 +161,10 @@
:rules=
"[{ required: true, message: '请输入产品、升级成本', trigger: 'blur' }]"
>
:rules=
"[{ required: true, message: '请输入产品、升级成本', trigger: 'blur' }]"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.detailList[0].upgradeProductCost"
<VenusNumberInput
v-model=
"product.detailList[0].upgradeProductCost"
placeholder=
"请输入产品、升级成本"
:controls=
"false"
:controls=
"false"
:max=
"999999"
:max=
"999999"
:min=
"0"
:min=
"0"
placeholder=
"请输入产品、升级成本"
:precision=
"2"
>
:precision=
"2"
>
</VenusNumberInput>
</VenusNumberInput>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
...
@@ -177,10 +177,10 @@
...
@@ -177,10 +177,10 @@
prop=
"detailList[0].recoveryCost"
>
prop=
"detailList[0].recoveryCost"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.detailList[0].recoveryCost"
<VenusNumberInput
v-model=
"product.detailList[0].recoveryCost"
placeholder=
"请输入回收成本"
:controls=
"false"
:controls=
"false"
:max=
"999999"
:max=
"999999"
:min=
"0"
:min=
"0"
placeholder=
"请输入回收成本"
:precision=
"2"
>
:precision=
"2"
>
</VenusNumberInput>
</VenusNumberInput>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
...
@@ -193,10 +193,10 @@
...
@@ -193,10 +193,10 @@
prop=
"detailList[0].giftCost"
>
prop=
"detailList[0].giftCost"
>
<div
class=
"form-item-append-fix"
>
<div
class=
"form-item-append-fix"
>
<VenusNumberInput
v-model=
"product.detailList[0].giftCost"
<VenusNumberInput
v-model=
"product.detailList[0].giftCost"
placeholder=
"请输入赠送成本"
:controls=
"false"
:controls=
"false"
:max=
"999999"
:max=
"999999"
:min=
"0"
:min=
"0"
placeholder=
"请输入赠送成本"
:precision=
"2"
>
:precision=
"2"
>
</VenusNumberInput>
</VenusNumberInput>
<span
class=
"fix-symbol"
>
元
</span>
<span
class=
"fix-symbol"
>
元
</span>
...
@@ -206,10 +206,10 @@
...
@@ -206,10 +206,10 @@
</el-row>
</el-row>
</el-form>
</el-form>
<SelectGoodsDialog
v-if=
"dialog.selectGoods.show"
<SelectGoodsDialog
v-if=
"dialog.selectGoods.show"
:show
.
sync=
"dialog.selectGoods.show
"
:active-id=
"product.detailList[0].upgradeCommodityCode
"
:base-scene-code=
"baseSceneCode"
:base-scene-code=
"baseSceneCode"
:merchant-id-list=
"merchantIdList"
:merchant-id-list=
"merchantIdList"
:active-id=
"product.detailList[0].upgradeCommodityCode
"
:show
.
sync=
"dialog.selectGoods.show
"
@
confirm=
"handleSelectGoodsConfirm"
/>
@
confirm=
"handleSelectGoodsConfirm"
/>
</div>
</div>
</template>
</template>
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/index.vue
View file @
c0e716a
src/views/goods/shelfProduct/components/shelfProductConfirm/components/selectGoods/index.vue
View file @
c0e716a
<
template
>
<
template
>
<VenusDialog
v-model=
"showDialog"
<VenusDialog
v-model=
"showDialog"
height=
"700px"
title=
"选择产品"
title=
"选择产品"
width=
"70%"
width=
"70%"
height=
"700px"
draggable
destroy-on-close
destroy-on-close
draggable
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:confirm-loading=
"dialog.confirmLoading"
:confirm-loading=
"dialog.confirmLoading"
@
confirm=
"handleSelectGoodsConfirm"
>
@
confirm=
"handleSelectGoodsConfirm"
>
...
@@ -12,48 +12,48 @@
...
@@ -12,48 +12,48 @@
v-loading=
"loading"
v-loading=
"loading"
class=
"selected-product-wrapper"
>
class=
"selected-product-wrapper"
>
<d2-search
class=
"show-search"
<d2-search
class=
"show-search"
:form-data=
"table.formSchema"
label-width=
"100px"
label-width=
"100px"
:form-data=
"table.formSchema"
:search-form=
"table.form"
>
:search-form=
"table.form"
>
<template
#
commodityCode
>
<template
#
commodityCode
>
<el-input
v-model
.
trim=
"table.form.commodityCode"
<el-input
v-model
.
trim=
"table.form.commodityCode"
placeholder=
"请输入商品ID"
:clearable=
"true"
:clearable=
"true"
:maxlength=
"50"
:maxlength=
"50"
placeholder=
"请输入商品ID"
:style=
"
{ width: '100%' }"
:style=
"
{ width: '100%' }"
@input="event => searchInput(event, 'commodityCode')" />
@input="event => searchInput(event, 'commodityCode')" />
</
template
>
</
template
>
<
template
#
type
>
<
template
#
type
>
<el-input
v-model
.
trim=
"table.form.type"
<el-input
v-model
.
trim=
"table.form.type"
:style=
"
{ width: '100%' }"
placeholder=
"请输入商品编码"
placeholder=
"请输入商品编码"
:clearable=
"true"
:clearable=
"true"
:maxlength="50" />
:maxlength=
"50"
:style=
"
{ width: '100%' }" />
</
template
>
</
template
>
<
template
#
thirdPartyCode
>
<
template
#
thirdPartyCode
>
<el-input
v-model
.
trim=
"table.form.thirdPartyCode"
<el-input
v-model
.
trim=
"table.form.thirdPartyCode"
placeholder=
"请输入第三方编码"
:clearable=
"true"
:clearable=
"true"
:maxlength=
"50"
:maxlength=
"50"
placeholder=
"请输入第三方编码"
:style=
"
{ width: '100%' }"
:style=
"
{ width: '100%' }"
@input="event => searchInput(event, 'thirdPartyCode')" />
@input="event => searchInput(event, 'thirdPartyCode')" />
</
template
>
</
template
>
<
template
#
baseGoodsCommodityCode
>
<
template
#
baseGoodsCommodityCode
>
<el-input
v-model
.
trim=
"table.form.baseGoodsCommodityCode"
<el-input
v-model
.
trim=
"table.form.baseGoodsCommodityCode"
placeholder=
"请输入系列ID"
:clearable=
"true"
:clearable=
"true"
:maxlength=
"50"
:maxlength=
"50"
placeholder=
"请输入系列ID"
:style=
"
{ width: '100%' }"
:style=
"
{ width: '100%' }"
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
</
template
>
</
template
>
<
template
#
goodsCascader
>
<
template
#
goodsCascader
>
<el-cascader
v-model=
"table.form.tempGoodsType"
<el-cascader
v-model=
"table.form.tempGoodsType"
placeholder=
"请选择"
style=
"width: 100%;"
clearable
clearable
filterable
filterable
:options=
"options.productTypeList"
:options=
"options.productTypeList"
placeholder=
"请选择"
:props=
"
{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
:props=
"
{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }"
style="width: 100%;"
@change="handleGoodsCascaderChange($event)">
@change="handleGoodsCascaderChange($event)">
</el-cascader>
</el-cascader>
</
template
>
</
template
>
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/index.vue
View file @
c0e716a
...
@@ -5,20 +5,20 @@
...
@@ -5,20 +5,20 @@
<div
class=
"select-wrapper"
>
<div
class=
"select-wrapper"
>
<RemoteSelect
ref=
"remoteSelectRef"
<RemoteSelect
ref=
"remoteSelectRef"
v-model=
"tabsActive"
v-model=
"tabsActive"
:options
.
sync=
"tabs.list"
class=
"tab-select"
class=
"tab-select"
:fetch-api=
"getTitleOptions"
placeholder=
"请输入相关名称以搜索"
placeholder=
"请输入相关名称以搜索"
size=
"mini"
immediate
immediate
:collapse-tags=
"false"
:disabled=
"isEdit()"
:disabled=
"isEdit()"
size=
"mini"
:fetch-api=
"getTitleOptions"
:popper-append-to-body=
"false"
:field-name=
"
{
:field-name=
"
{
value: 'id',
value: 'id',
label: 'productName',
label: 'productName',
}"
}"
:multiple="false"
:multiple="false"
:collapse-tags="false"
:options.sync="tabs.list"
:popper-append-to-body="false"
@change="handleTitleSelectChange($event)">
@change="handleTitleSelectChange($event)">
<template
#
options=
"
{ row }">
<template
#
options=
"
{ row }">
<div
class=
"tab-select-options-wrapper"
>
<div
class=
"tab-select-options-wrapper"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</div>
</div>
<div
v-if=
"useEdit && isView(editState)"
class=
"actions-wrapper"
>
<div
v-if=
"useEdit && isView(editState)"
class=
"actions-wrapper"
>
<el-dropdown
@
command=
"handleAppendProductPackages"
>
<el-dropdown
@
command=
"handleAppendProductPackages"
>
<el-button
plain
size=
"small"
>
<el-button
size=
"small"
plain
>
新增
新增
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
</el-button>
...
@@ -57,23 +57,23 @@
...
@@ -57,23 +57,23 @@
<
template
v-if=
"tabsActive && tabs.list && tabs.list.length || (!isEmpty(productDetail) || productDetail.productType)"
>
<
template
v-if=
"tabsActive && tabs.list && tabs.list.length || (!isEmpty(productDetail) || productDetail.productType)"
>
<div
v-if=
"useEdit"
class=
"actions-wrapper"
>
<div
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
v-if=
"isView(editState)"
<el-button
v-if=
"isView(editState)"
plain
style=
"width:160px"
size=
"small"
size=
"small"
style=
"width:160px"
type=
"primary"
type=
"primary"
plain
@
click=
"handleChangeEditState"
>
@
click=
"handleChangeEditState"
>
编辑
编辑
</el-button>
</el-button>
<div
v-else
>
<div
v-else
>
<el-button
style=
"width:160px"
<el-button
class=
"cancel-btn"
class=
"cancel-btn"
size=
"small"
size=
"small"
style=
"width:160px"
@
click=
"handleCancelEdit"
>
@
click=
"handleCancelEdit"
>
取消
取消
</el-button>
</el-button>
<el-button
style=
"width:160px"
<el-button
size=
"small"
style=
"width:160px"
type=
"primary"
type=
"primary"
size=
"small"
@
click=
"saveEdit"
>
@
click=
"saveEdit"
>
保存
保存
</el-button>
</el-button>
...
@@ -83,22 +83,22 @@
...
@@ -83,22 +83,22 @@
<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"
:key=
"tabsActive + productDetail.productName"
:key=
"tabsActive + productDetail.productName"
ref=
"productRefs"
:base-scene-code=
"baseSceneCode"
:edit-state=
"editState"
:edit-state=
"editState"
:merchant-id-list=
"merchantIdList"
:merchant-id-list=
"merchantIdList"
:base-scene-code=
"baseSceneCode"
:product=
"productDetail ||
{ detailList: [] }"
:product=
"productDetail ||
{ detailList: [] }"
@update:upgradeGoods="handleProductUpdateUpgradeGoods" />
@update:upgradeGoods="handleProductUpdateUpgradeGoods" />
<Combo
v-if=
"productDetail.productType === 2"
<Combo
v-if=
"productDetail.productType === 2"
ref=
"packageRefs"
:key=
"tabsActive"
:key=
"tabsActive"
:prefix=
"$data._prefix"
ref=
"packageRefs"
:merchant-id-list=
"merchantIdList"
:edit-state=
"editState"
:base-scene-code=
"baseSceneCode"
:base-scene-code=
"baseSceneCode"
:shelf-type=
"shelfType"
:edit-state=
"editState"
:merchant-id-list=
"merchantIdList"
:packages=
"productDetail ||
{ detailList: [] }"
:packages=
"productDetail ||
{ detailList: [] }"
:prefix="$data._prefix"
:shelf-type="shelfType"
@update:packages="handleComboUpdatePackages" />
@update:packages="handleComboUpdatePackages" />
</div>
</div>
...
...
src/views/goods/shelfProduct/components/shelfProductConfirm/shelfProductConfirm.data.js
View file @
c0e716a
...
@@ -363,10 +363,12 @@ export async function getProductDetailUpgradeGoodsDescriptionSchema() {
...
@@ -363,10 +363,12 @@ export async function getProductDetailUpgradeGoodsDescriptionSchema() {
return
h
(
"span"
,
"-"
);
return
h
(
"span"
,
"-"
);
}
}
const
types
=
[
goodsInfo
?.
goodsTypeName
];
const
types
=
[
goodsInfo
?.
goodsTypeName
];
if
(
goodsInfo
?.
secondaryGoodsTypeName
)
if
(
goodsInfo
?.
secondaryGoodsTypeName
)
{
types
.
push
(
goodsInfo
?.
secondaryGoodsTypeName
);
types
.
push
(
goodsInfo
?.
secondaryGoodsTypeName
);
if
(
goodsInfo
?.
thirdLevelGoodsTypeName
)
}
if
(
goodsInfo
?.
thirdLevelGoodsTypeName
)
{
types
.
push
(
goodsInfo
?.
thirdLevelGoodsTypeName
);
types
.
push
(
goodsInfo
?.
thirdLevelGoodsTypeName
);
}
return
h
(
return
h
(
"span"
,
"span"
,
types
?
types
.
join
(
"/"
)
:
"-"
,
types
?
types
.
join
(
"/"
)
:
"-"
,
...
...
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