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 04a8f7d3
authored
Apr 11, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
473191f4
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
217 additions
and
71 deletions
src/api/request.js
src/plugin/chaining/index.js
src/views/goods/shelfManage/components/common/goodTab.vue
src/views/goods/shelfManage/components/detailCon/DivisionConfig.vue
src/views/goods/shelfManage/components/detailCon/FinanceConfig.vue
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
src/views/goods/shelfManage/components/editCon/ShopMerchantInfo.vue
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
src/views/goods/shelfManage/components/editCon/components/classificationCptCheck.vue
src/api/request.js
View file @
04a8f7d
...
@@ -26,7 +26,7 @@ const request = (
...
@@ -26,7 +26,7 @@ const request = (
}
else
if
(
params
.
method
.
includes
(
"dj.api.script"
))
{
}
else
if
(
params
.
method
.
includes
(
"dj.api.script"
))
{
apiName
=
"script"
apiName
=
"script"
}
else
{
}
else
{
console
.
log
(
params
.
method
.
split
(
".api"
))
//
console.log(params.method.split(".api"))
apiName
=
params
.
method
.
split
(
".api"
)[
0
]
apiName
=
params
.
method
.
split
(
".api"
)[
0
]
}
}
...
...
src/plugin/chaining/index.js
View file @
04a8f7d
...
@@ -7,7 +7,7 @@ const chaining = {
...
@@ -7,7 +7,7 @@ const chaining = {
const
name
=
rest
[
key
]
const
name
=
rest
[
key
]
tmp
=
tmp
?.[
name
]
tmp
=
tmp
?.[
name
]
}
}
return
tmp
||
""
return
[
null
,
undefined
,
""
].
includes
(
tmp
)
?
""
:
tmp
}
}
// const test = (obj, ...rest) => {
// const test = (obj, ...rest) => {
// let tmp = obj
// let tmp = obj
...
...
src/views/goods/shelfManage/components/common/goodTab.vue
View file @
04a8f7d
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"嘀加成本/件:"
prop=
"djCost"
>
<el-form-item
label=
"嘀加成本/件:"
prop=
"djCost"
>
<el-input
<el-input
v-model=
"formData.
upgradeGoods.
djCost"
v-model=
"formData.djCost"
placeholder=
"自动带入产品对应的嘀加成本"
placeholder=
"自动带入产品对应的嘀加成本"
class=
"sortInput"
class=
"sortInput"
disabled
disabled
...
@@ -423,6 +423,7 @@ export default {
...
@@ -423,6 +423,7 @@ export default {
handleData
(
goods
)
{
handleData
(
goods
)
{
const
_formData
=
deepClone
(
goods
)
const
_formData
=
deepClone
(
goods
)
_formData
.
settlementType
=
_formData
.
createBusinessProduct
.
settlementType
_formData
.
settlementType
=
_formData
.
createBusinessProduct
.
settlementType
_formData
.
djCost
=
_formData
.
upgradeGoods
?.
djCost
// console.log('_formData', _formData)
// console.log('_formData', _formData)
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
const
{
goodsTypeName
,
secondaryGoodsTypeName
,
thirdLevelGoodsTypeName
}
=
_formData
?.
goodsInfo
||
{}
_formData
?.
goodsInfo
||
{}
...
...
src/views/goods/shelfManage/components/detailCon/DivisionConfig.vue
View file @
04a8f7d
...
@@ -5,26 +5,49 @@
...
@@ -5,26 +5,49 @@
<span>
分账配置
</span>
<span>
分账配置
</span>
</div>
</div>
<div
style=
"padding: 20px"
>
<div
style=
"padding: 20px"
>
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
<el-form-item
label=
""
prop=
"autoFlag"
>
<el-form-item
label=
""
prop=
"autoFlag"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
线上自动分账
</span>
<span
class=
"tips-label"
>
线上自动分账
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
<el-tooltip
placement=
"top"
>
popper-class=
"tooltip-class"
<span
class=
"tips-icon"
/>
</el-tooltip>
:
effect=
"dark"
content=
"产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip
>
:
</span>
</span>
<el-switch
v-model=
"financialObj.autoFlag"
active-value=
"Y"
disabled
inactive-value=
"N"
/>
<el-switch
v-model=
"financialObj.autoFlag"
active-value=
"Y"
disabled
inactive-value=
"N"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结算时间方式"
>
<el-form-item
label=
"结算时间方式"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
分账周期
</span>
<span
class=
"tips-label"
>
分账周期
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"用户支付的款项可按T+1或指定日自动打款给商户。"
placement=
"top"
>
<el-tooltip
<span
class=
"tips-icon"
/>
</el-tooltip>
:
popper-class=
"tooltip-class"
effect=
"dark"
content=
"用户支付的款项可按T+1或指定日自动打款给商户。"
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip
>
:
</span>
</span>
<div
class=
"block_item"
style=
"margin-bottom: 20px"
>
<div
class=
"block_item"
style=
"margin-bottom: 20px"
>
<span>
<span>
分账周期 T+
{{
settleTimeObj
.
first
}}
日
分账周期 T+
{{
settleTimeObj
.
first
}}
日
<span
v-show=
"financialObj.settleTimeType == 1"
>
(分账后第2天到分账方对公账户)
</span>
<span
v-show=
"financialObj.settleTimeType == 1"
>
(分账后第2天到分账方对公账户)
</span
>
</span>
</span>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -34,28 +57,49 @@
...
@@ -34,28 +57,49 @@
</el-form>
</el-form>
<el-tabs
v-model=
"editableTabsValue"
type=
"card"
class=
"my-tab-pane"
>
<el-tabs
v-model=
"editableTabsValue"
type=
"card"
class=
"my-tab-pane"
>
<!-- closable -->
<!-- closable -->
<el-tab-pane
v-for=
"item in editableTabs"
:key=
"item.name"
:label=
"item.title"
:name=
"item.name"
>
<el-tab-pane
v-for=
"item in editableTabs"
:key=
"item.name"
:label=
"item.title"
:name=
"item.name"
>
<span
slot=
"label"
>
{{
item
.
title
}}
</span>
<span
slot=
"label"
>
{{
item
.
title
}}
</span>
<div
class=
"classificationCptContainer"
>
<div
class=
"classificationCptContainer"
>
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
<el-form
<h3
v-if=
"financialObj.goodsTypeGroupRules[editableTabsValue - 1].groupType == 1"
>
全部品类
</h3>
ref=
"divisionRuleRef"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
<h3
v-if=
"
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.groupType == 1
"
>
全部品类
</h3>
<div
v-else
style=
"display: flex"
>
<div
v-else
style=
"display: flex"
>
<el-form-item
label=
"分账品类"
>
<el-form-item
label=
"分账品类"
>
{{
{{
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
.
categoryType
||
"--"
.
categoryType
||
"--"
}}
</el-form-item>
}}
</el-form-item
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
{{
{{
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
.
packageArrText
.
packageArrText
}}
</el-form-item>
}}
</el-form-item
>
</div>
</div>
<template
v-for=
"(item, index) in financialObj.goodsTypeGroupRules[
<template
v-for=
"(item, index) in financialObj.goodsTypeGroupRules[
editableTabsValue - 1
editableTabsValue - 1
].expenseCategoryRules"
>
].expenseCategoryRules"
>
<el-form-item
:key=
"index"
:label=
"item.expenseCategoryName"
>
<el-form-item
:key=
"index"
:label=
"item.expenseCategoryName"
>
<span>
{{
<span>
{{
getExpenseCategoryCalculateType
(
getExpenseCategoryCalculateType
(
...
@@ -67,9 +111,15 @@
...
@@ -67,9 +111,15 @@
</
template
>
</
template
>
</el-form>
</el-form>
</div>
</div>
<tableAccount
ref=
"tableAccount"
:merchant-distribution-rules=
"financialObj.goodsTypeGroupRules[editableTabsValue - 1]
<tableAccount
ref=
"tableAccount"
:merchant-distribution-rules=
"
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.merchantDistributionRules
.merchantDistributionRules
"
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
/>
"
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -87,7 +137,7 @@ export default {
...
@@ -87,7 +137,7 @@ export default {
props
:
{
props
:
{
divisiObj
:
{
divisiObj
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
}
},
},
data
()
{
data
()
{
...
@@ -178,7 +228,7 @@ export default {
...
@@ -178,7 +228,7 @@ export default {
deep
:
true
deep
:
true
}
}
},
},
created
()
{
},
created
()
{},
methods
:
{
methods
:
{
initData
(
data
)
{
initData
(
data
)
{
...
@@ -190,13 +240,20 @@ export default {
...
@@ -190,13 +240,20 @@ export default {
if
(
result
?.
settleTimeType
==
2
)
result
.
settleTimeType
=
1
if
(
result
?.
settleTimeType
==
2
)
result
.
settleTimeType
=
1
result
&&
(
this
.
financialObj
=
result
)
result
&&
(
this
.
financialObj
=
result
)
result
.
goodsTypeGroupRules
&&
// result.goodsTypeGroupRules &&
if
(
result
.
goodsTypeGroupRules
)
{
const
hasAllGoodsType
=
result
.
goodsTypeGroupRules
.
find
(
(
item
)
=>
item
.
groupType
==
1
)
result
.
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
result
.
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
const
upgradeArr
=
[]
const
upgradeArr
=
[]
const
packageArr
=
[]
const
packageArr
=
[]
const
textArr
=
[]
const
textArr
=
[]
this
.
editableTabs
[
index
]
=
{
this
.
editableTabs
[
index
]
=
{
title
:
"特殊品类"
+
(
index
+
1
),
title
:
item
.
groupType
==
1
?
"全部品类"
:
"特殊品类"
+
(
hasAllGoodsType
?
index
:
index
+
1
),
name
:
(
index
+
1
).
toString
(),
name
:
(
index
+
1
).
toString
(),
testFlag
:
item
.
testFlag
==
"Y"
&&
autoFlag
?
"Y"
:
"N"
,
testFlag
:
item
.
testFlag
==
"Y"
&&
autoFlag
?
"Y"
:
"N"
,
groupDivisionRuleId
:
groupDivisionRuleId
:
...
@@ -260,6 +317,8 @@ export default {
...
@@ -260,6 +317,8 @@ export default {
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
}
}
})
})
}
this
.
financialObj
=
result
this
.
financialObj
=
result
this
.
initSettleTimeObj
()
this
.
initSettleTimeObj
()
},
},
...
...
src/views/goods/shelfManage/components/detailCon/FinanceConfig.vue
View file @
04a8f7d
...
@@ -123,12 +123,17 @@ export default {
...
@@ -123,12 +123,17 @@ export default {
initData
(
data
)
{
initData
(
data
)
{
const
typeList
=
data
.
goodsTypeGroupReconciliationRules
||
[]
const
typeList
=
data
.
goodsTypeGroupReconciliationRules
||
[]
this
.
editableTabs
=
[]
this
.
editableTabs
=
[]
const
hasAllGoodsType
=
typeList
.
find
((
item
)
=>
item
.
groupType
==
1
)
typeList
.
forEach
((
item
,
index
)
=>
{
typeList
.
forEach
((
item
,
index
)
=>
{
const
upgradeArr
=
[]
const
upgradeArr
=
[]
const
packageArr
=
[]
const
packageArr
=
[]
const
textArr
=
[]
const
textArr
=
[]
this
.
editableTabs
.
push
({
this
.
editableTabs
.
push
({
title
:
"特殊品类"
+
(
index
+
1
),
title
:
item
.
groupType
==
1
?
"全部品类"
:
"特殊品类"
+
(
hasAllGoodsType
?
index
:
index
+
1
),
name
:
(
index
+
1
).
toString
()
name
:
(
index
+
1
).
toString
()
})
})
// 按具体商品
// 按具体商品
...
...
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
View file @
04a8f7d
...
@@ -536,10 +536,17 @@ export default {
...
@@ -536,10 +536,17 @@ export default {
const
upgradeArr
=
[]
const
upgradeArr
=
[]
const
packageArr
=
[]
const
packageArr
=
[]
goodsTypeGroupRules
&&
// goodsTypeGroupRules &&
if
(
goodsTypeGroupRules
)
{
const
hasAllGoodsType
=
goodsTypeGroupRules
.
find
(
(
item
)
=>
item
.
groupType
==
1
)
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
this
.
editableTabs
[
index
]
=
{
this
.
editableTabs
[
index
]
=
{
title
:
"特殊品类"
+
(
index
+
1
),
title
:
item
.
groupType
==
1
?
"全部品类"
:
"特殊品类"
+
(
hasAllGoodsType
?
index
:
index
+
1
),
name
:
(
index
+
1
).
toString
(),
name
:
(
index
+
1
).
toString
(),
testFlag
:
item
.
testFlag
==
"Y"
&&
autoFlag
?
"Y"
:
"N"
,
testFlag
:
item
.
testFlag
==
"Y"
&&
autoFlag
?
"Y"
:
"N"
,
groupDivisionRuleId
:
groupDivisionRuleId
:
...
@@ -590,6 +597,8 @@ export default {
...
@@ -590,6 +597,8 @@ export default {
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
}
}
})
})
}
// 获取商品
// 获取商品
this
.
getSelectingList
(
upgradeArr
)
this
.
getSelectingList
(
upgradeArr
)
this
.
getSelectingListPackage
(
packageArr
)
this
.
getSelectingListPackage
(
packageArr
)
...
@@ -1325,8 +1334,15 @@ export default {
...
@@ -1325,8 +1334,15 @@ export default {
return
item
return
item
})
})
const
newTabIndex
=
(
this
.
editableTabs
.
length
+
1
).
toString
()
const
newTabIndex
=
(
this
.
editableTabs
.
length
+
1
).
toString
()
const
hasAllGoodsType
=
this
.
financialObj
.
goodsTypeGroupRules
.
find
(
(
item
)
=>
{
return
item
.
groupType
==
1
}
)
this
.
editableTabs
.
push
({
this
.
editableTabs
.
push
({
title
:
"特殊品类"
+
this
.
addIndex
++
,
title
:
"特殊品类"
+
(
hasAllGoodsType
?
+
this
.
addIndex
+
2
:
+
this
.
addIndex
+
1
),
name
:
newTabIndex
name
:
newTabIndex
})
})
this
.
editableTabsValue
=
newTabIndex
this
.
editableTabsValue
=
newTabIndex
...
@@ -1405,10 +1421,17 @@ export default {
...
@@ -1405,10 +1421,17 @@ export default {
)
)
this
.
deleteSelectPackageGoodsList
(
childParams
[
0
].
packageGoods
)
this
.
deleteSelectPackageGoodsList
(
childParams
[
0
].
packageGoods
)
console
.
log
(
childParams
,
"packageArr"
)
console
.
log
(
childParams
,
"packageArr"
)
goodsTypeGroupRules
&&
// goodsTypeGroupRules &&
if
(
goodsTypeGroupRules
)
{
const
hasAllGoodsType
=
goodsTypeGroupRules
.
find
(
(
item
)
=>
item
.
groupType
==
1
)
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
this
.
editableTabs
[
index
]
=
{
this
.
editableTabs
[
index
]
=
{
title
:
"特殊品类"
+
(
index
+
1
),
title
:
item
.
groupType
==
1
?
"全部品类"
:
"特殊品类"
+
(
hasAllGoodsType
?
index
:
index
+
1
),
name
:
(
index
+
1
).
toString
(),
name
:
(
index
+
1
).
toString
(),
testFlag
:
item
.
testFlag
==
"Y"
&&
autoFlag
?
"Y"
:
"N"
,
testFlag
:
item
.
testFlag
==
"Y"
&&
autoFlag
?
"Y"
:
"N"
,
groupDivisionRuleId
:
groupDivisionRuleId
:
...
@@ -1460,6 +1483,8 @@ export default {
...
@@ -1460,6 +1483,8 @@ export default {
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
}
}
})
})
}
console
.
log
(
upgradeArr
,
"upgradeArr"
)
console
.
log
(
upgradeArr
,
"upgradeArr"
)
console
.
log
(
packageArr
,
"upgradeArr"
)
console
.
log
(
packageArr
,
"upgradeArr"
)
// 获取商品
// 获取商品
...
...
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
View file @
04a8f7d
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
:query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe"
:query-fee-category-by-type-platform="
:query-fee-category-by-type-platform="
queryFeeCategoryByTypePlatform
queryFeeCategoryByTypePlatform
Filter
"
"
:tabindex="idx"
:tabindex="idx"
:key="idx"
:key="idx"
...
@@ -123,7 +123,8 @@ export default {
...
@@ -123,7 +123,8 @@ export default {
upgradeGoodsList
:
[],
upgradeGoodsList
:
[],
selectPackageGoodsList
:
[],
selectPackageGoodsList
:
[],
packageGoodsList
:
[],
packageGoodsList
:
[],
ruleInfo
:
{}
ruleInfo
:
{},
operationMode
:
0
}
}
},
},
computed
:
{
computed
:
{
...
@@ -137,6 +138,18 @@ export default {
...
@@ -137,6 +138,18 @@ export default {
const
length2
=
this
.
editableTabs
.
length
-
1
const
length2
=
this
.
editableTabs
.
length
-
1
const
length3
=
this
.
goodsSelectList
.
length
const
length3
=
this
.
goodsSelectList
.
length
return
length1
-
length3
>
0
&&
length1
>
length2
return
length1
-
length3
>
0
&&
length1
>
length2
},
queryFeeCategoryByTypePlatformFilter
:
{
get
()
{
const
queryFeeCategoryByTypePlatformFilter
=
this
.
queryFeeCategoryByTypePlatform
.
filter
((
item
)
=>
{
return
item
.
id
!=
807
})
return
this
.
operationMode
==
0
?
queryFeeCategoryByTypePlatformFilter
:
this
.
queryFeeCategoryByTypePlatform
// return this.queryFeeCategoryByTypePlatform
}
}
}
},
},
created
()
{
created
()
{
...
@@ -144,6 +157,9 @@ export default {
...
@@ -144,6 +157,9 @@ export default {
this
.
getQueryFeeCategoryByType
()
// 获取费用类别
this
.
getQueryFeeCategoryByType
()
// 获取费用类别
},
},
mounted
()
{
mounted
()
{
this
.
$EventBus
.
$on
(
"operationMode"
,
(
val
)
=>
{
this
.
operationMode
=
val
})
this
.
$EventBus
.
$on
(
"packageInfoList"
,
(
obj
)
=>
{
this
.
$EventBus
.
$on
(
"packageInfoList"
,
(
obj
)
=>
{
// if(JSON.stringify(obj)== this.set)
// if(JSON.stringify(obj)== this.set)
this
.
getSelectingListPackage
([],
obj
)
this
.
getSelectingListPackage
([],
obj
)
...
@@ -427,10 +443,15 @@ export default {
...
@@ -427,10 +443,15 @@ export default {
item
.
name
=
index
+
1
+
""
item
.
name
=
index
+
1
+
""
return
item
return
item
})
})
const
hasAllGoodsType
=
this
.
goodsTypeGroupReconciliationRules
.
find
(
(
item
)
=>
{
return
item
.
groupType
==
1
}
)
const
newTabIndex
=
this
.
tabIndex
+
""
const
newTabIndex
=
this
.
tabIndex
+
""
this
.
editableTabs
.
push
({
this
.
editableTabs
.
push
({
title
:
"特殊品类"
+
this
.
addIndex
++
,
title
:
"特殊品类"
+
(
hasAllGoodsType
?
this
.
tabIndex
-
1
:
this
.
tabIndex
),
name
:
newTabIndex
name
:
newTabIndex
})
})
this
.
editableTabsValue
=
newTabIndex
this
.
editableTabsValue
=
newTabIndex
...
@@ -498,15 +519,16 @@ export default {
...
@@ -498,15 +519,16 @@ export default {
this
.
deleteSelectGoodsList
(
childParams
[
0
].
goodsTypeGroupRelations
)
this
.
deleteSelectGoodsList
(
childParams
[
0
].
goodsTypeGroupRelations
)
this
.
deleteSelectUpgradeGoodsList
(
childParams
[
0
].
upgradeGoods
)
this
.
deleteSelectUpgradeGoodsList
(
childParams
[
0
].
upgradeGoods
)
this
.
deleteSelectPackageGoodsList
(
childParams
[
0
].
packageGoods
)
this
.
deleteSelectPackageGoodsList
(
childParams
[
0
].
packageGoods
)
const
hasAllGoodsType
=
goodsTypeGroupRules
.
find
(
(
item
)
=>
item
.
groupType
==
1
)
const
typeList
=
goodsTypeGroupRules
const
typeList
=
goodsTypeGroupRules
typeList
.
forEach
((
item
,
index
)
=>
{
typeList
.
forEach
((
item
,
index
)
=>
{
// index && this.editableTabs.push({
// title: '特殊品类' + index,
// name: (index + 1).toString()
// })
this
.
editableTabs
[
index
]
=
{
this
.
editableTabs
[
index
]
=
{
title
:
"特殊品类"
+
(
index
+
1
),
title
:
item
.
groupType
==
1
?
"全部品类"
:
"特殊品类"
+
(
hasAllGoodsType
?
index
:
index
+
1
),
name
:
(
index
+
1
).
toString
()
name
:
(
index
+
1
).
toString
()
// testFlag: (item.testFlag == 'Y' && autoFlag) ? 'Y' : 'N',
// testFlag: (item.testFlag == 'Y' && autoFlag) ? 'Y' : 'N',
// groupDivisionRuleId: item.testFlag == 'Y' ? '' : (item.groupDivisionRuleId || '')
// groupDivisionRuleId: item.testFlag == 'Y' ? '' : (item.groupDivisionRuleId || '')
...
@@ -653,6 +675,7 @@ export default {
...
@@ -653,6 +675,7 @@ export default {
const
res
=
await
merchantSettleDistributeRuleLastRule
(
params
)
const
res
=
await
merchantSettleDistributeRuleLastRule
(
params
)
console
.
log
(
res
,
"getEffectRule"
)
console
.
log
(
res
,
"getEffectRule"
)
if
(
res
)
{
if
(
res
)
{
this
.
operationMode
=
res
.
createBusinessApproveMerchant
.
operationMode
// debugger
// debugger
this
.
ruleInfo
=
res
this
.
ruleInfo
=
res
const
typeList
=
const
typeList
=
...
@@ -664,10 +687,16 @@ export default {
...
@@ -664,10 +687,16 @@ export default {
// 所有按具体商品已选中的商品数据
// 所有按具体商品已选中的商品数据
const
upgradeArr
=
[]
const
upgradeArr
=
[]
const
packageArr
=
[]
const
packageArr
=
[]
const
hasAllGoodsType
=
this
.
goodsTypeGroupReconciliationRules
.
find
(
(
item
)
=>
item
.
groupType
==
1
)
typeList
.
forEach
((
item
,
index
)
=>
{
typeList
.
forEach
((
item
,
index
)
=>
{
// index &&
// index &&
this
.
editableTabs
.
push
({
this
.
editableTabs
.
push
({
title
:
"特殊品类"
+
(
index
+
1
),
title
:
item
.
groupType
==
1
?
"全部品类"
:
"特殊品类"
+
(
hasAllGoodsType
?
index
:
index
+
1
),
name
:
(
index
+
1
).
toString
()
name
:
(
index
+
1
).
toString
()
})
})
// 按具体商品
// 按具体商品
...
@@ -860,6 +889,7 @@ export default {
...
@@ -860,6 +889,7 @@ export default {
beforeDestroy
()
{
beforeDestroy
()
{
this
.
$EventBus
.
$off
(
"packageInfoList"
)
this
.
$EventBus
.
$off
(
"packageInfoList"
)
this
.
$EventBus
.
$off
(
"shelfUpdatMerchantId"
)
this
.
$EventBus
.
$off
(
"shelfUpdatMerchantId"
)
this
.
$EventBus
.
$off
(
"operationMode"
)
// 删除子组件保留的数据
// 删除子组件保留的数据
localStorage
.
removeItem
(
"getListPartnerMerchant"
)
localStorage
.
removeItem
(
"getListPartnerMerchant"
)
...
...
src/views/goods/shelfManage/components/editCon/ShopMerchantInfo.vue
View file @
04a8f7d
...
@@ -5,18 +5,43 @@
...
@@ -5,18 +5,43 @@
<span>
流量方信息
</span>
<span>
流量方信息
</span>
</div>
</div>
<div
style=
"padding: 20px"
>
<div
style=
"padding: 20px"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
<glsx-combi-form
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<div
slot=
"merchantId"
slot-scope=
"scope"
>
<div
slot=
"merchantId"
slot-scope=
"scope"
>
<el-select
v-model=
"editData[scope.scope.name]"
disabled
:placeholder=
"scope.scope.placeholder"
<el-select
@
change=
"scope.scope.changeAttr"
style=
"width: 274px"
filterable
remote
reserve-keyword
v-model=
"editData[scope.scope.name]"
@
visible-change=
"(event) => selectVisibleChange(event, scope.scope)"
:remote-method=
"(event) => remoteMethod(event, scope.scope.searchKey, 'store')
disabled
"
v-el-select-loadmore=
"interestsLoadmoreMerchant"
>
:placeholder=
"scope.scope.placeholder"
<el-option
v-for=
"subItem in scope.scope.optionList"
:key=
"subItem[scope.scope.optionId]"
@
change=
"scope.scope.changeAttr"
:label=
"subItem[scope.scope.optionLabel]"
:value=
"subItem[scope.scope.optionId]"
>
style=
"width: 274px"
filterable
remote
reserve-keyword
@
visible-change=
"(event) => selectVisibleChange(event, scope.scope)"
:remote-method=
"
(event) => remoteMethod(event, scope.scope.searchKey, 'store')
"
v-el-select-loadmore=
"interestsLoadmoreMerchant"
>
<el-option
v-for=
"subItem in scope.scope.optionList"
:key=
"subItem[scope.scope.optionId]"
:label=
"subItem[scope.scope.optionLabel]"
:value=
"subItem[scope.scope.optionId]"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-button
type=
"text"
class=
"add-mer-btn"
@
click=
"handleAddMerchant"
>
新建
</el-button>
<el-button
type=
"text"
class=
"add-mer-btn"
@
click=
"handleAddMerchant"
>
新建
</el-button
>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
...
@@ -44,7 +69,7 @@ export default {
...
@@ -44,7 +69,7 @@ export default {
props
:
{
props
:
{
editData
:
{
editData
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
}
},
},
...
@@ -262,6 +287,13 @@ export default {
...
@@ -262,6 +287,13 @@ export default {
}
}
},
},
{
{
label
:
"上级服务商"
,
name
:
"parentPartnerMerchantName"
,
type
:
"input"
,
style
:
{
width
:
"42%"
},
maxlength
:
50
},
{
label
:
"一线阳光是否开启线上积分"
,
label
:
"一线阳光是否开启线上积分"
,
name
:
"firstLineSunshineOnlinePointsFlag"
,
name
:
"firstLineSunshineOnlinePointsFlag"
,
type
:
"select"
,
type
:
"select"
,
...
@@ -393,6 +425,7 @@ export default {
...
@@ -393,6 +425,7 @@ export default {
this
.
editData
.
partnerMerchantId
=
obj
?.
merchantId
this
.
editData
.
partnerMerchantId
=
obj
?.
merchantId
this
.
editData
.
partnerMerchantName
=
obj
?.
merchantName
this
.
editData
.
partnerMerchantName
=
obj
?.
merchantName
}
}
this
.
$EventBus
.
$emit
(
"operationMode"
,
this
.
editData
.
operationMode
)
},
},
dealInitData
()
{
dealInitData
()
{
this
.
editData
.
businessMode
=
this
.
editData
.
businessMode
=
...
...
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
View file @
04a8f7d
...
@@ -359,20 +359,7 @@ export default {
...
@@ -359,20 +359,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
tableData
:
[
tableData
:
[],
{
column1
:
"数据1"
,
column2
:
"数据2"
,
column3
:
"数据3"
,
column4
:
"数据4"
},
{
column1
:
"数据5"
,
column2
:
"数据6"
,
column3
:
"数据7"
,
column4
:
"数据8"
}
],
filterIdList
:
[
1
,
2
,
302
],
filterIdList
:
[
1
,
2
,
302
],
financialCalculationVisible
:
false
,
financialCalculationVisible
:
false
,
tipsDialogVisible
:
false
,
tipsDialogVisible
:
false
,
...
@@ -386,7 +373,7 @@ export default {
...
@@ -386,7 +373,7 @@ export default {
shop4sDeductChargeFlag
:
"Y"
,
// 导流方POS机支付是否扣除手续费(Y:扣除,N:不扣)
shop4sDeductChargeFlag
:
"Y"
,
// 导流方POS机支付是否扣除手续费(Y:扣除,N:不扣)
partnerDeductChargeFlag
:
"Y"
,
// 服务商POS机支付是否扣除手续费(Y:扣除,N:不扣)
partnerDeductChargeFlag
:
"Y"
,
// 服务商POS机支付是否扣除手续费(Y:扣除,N:不扣)
goodsCostFlag
:
"N"
,
// 平台方是否扣除产品成本(Y:计算,N:不计算)
goodsCostFlag
:
"N"
,
// 平台方是否扣除产品成本(Y:计算,N:不计算)
groupType
:
1
,
groupType
:
2
,
categoryType
:
""
,
// 分类类别
categoryType
:
""
,
// 分类类别
upgradeGoods
:
[],
// 具体商品
upgradeGoods
:
[],
// 具体商品
packageGoods
:
[],
packageGoods
:
[],
...
@@ -1107,7 +1094,7 @@ export default {
...
@@ -1107,7 +1094,7 @@ export default {
})
})
},
},
initList
(
name
)
{
initList
(
name
)
{
this
.
classificationObj
.
groupType
=
this
.
tabindex
?
1
:
2
//
this.classificationObj.groupType = this.tabindex ? 1 : 2
const
expenseCategoryRules
=
const
expenseCategoryRules
=
deepClone
(
this
.
goodsTypeGroupRules
.
expenseCategoryRules
)
||
[]
deepClone
(
this
.
goodsTypeGroupRules
.
expenseCategoryRules
)
||
[]
const
setList
=
this
.
classificationObjSelect
const
setList
=
this
.
classificationObjSelect
...
@@ -1409,7 +1396,7 @@ export default {
...
@@ -1409,7 +1396,7 @@ export default {
}
}
}
}
// console.log('expenseCategoryRules', expenseCategoryRules)
// console.log('expenseCategoryRules', expenseCategoryRules)
const
groupType
=
this
.
tabindex
?
2
:
1
//
const groupType = this.tabindex ? 2 : 1
const
goodsTypes
=
obj
.
goodsTypes
const
goodsTypes
=
obj
.
goodsTypes
goodsTypes
&&
goodsTypes
&&
goodsTypes
.
map
((
val
)
=>
{
goodsTypes
.
map
((
val
)
=>
{
...
@@ -1457,7 +1444,7 @@ export default {
...
@@ -1457,7 +1444,7 @@ export default {
thirdPartyCostFlag
:
obj
.
thirdPartyCostFlag
,
thirdPartyCostFlag
:
obj
.
thirdPartyCostFlag
,
goodsCostFlag
:
obj
.
goodsCostFlag
,
goodsCostFlag
:
obj
.
goodsCostFlag
,
goodsSource
:
obj
.
goodsSource
,
goodsSource
:
obj
.
goodsSource
,
groupType
,
groupType
:
obj
.
groupType
,
goodsTypes
,
goodsTypes
,
upgradeGoods
,
upgradeGoods
,
packageGoods
packageGoods
...
...
src/views/goods/shelfManage/components/editCon/components/classificationCptCheck.vue
View file @
04a8f7d
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
label-suffix=
":"
label-suffix=
":"
label-width=
"154px"
label-width=
"154px"
>
>
<!-- v-if="tabindex && classificationObj.goodsSource == 1" -->
<h3
v-if=
"classificationObj.groupType == 1"
style=
"margin-left: 20px"
>
<h3
v-if=
"classificationObj.groupType == 1"
style=
"margin-left: 20px"
>
全部品类
全部品类
</h3>
</h3>
...
@@ -354,6 +353,7 @@ export default {
...
@@ -354,6 +353,7 @@ export default {
categoryType
:
""
,
// 分类类别
categoryType
:
""
,
// 分类类别
upgradeGoods
:
[],
// 具体商品
upgradeGoods
:
[],
// 具体商品
goodsSource
:
1
,
goodsSource
:
1
,
groupType
:
2
,
packageGoods
:
[]
packageGoods
:
[]
},
},
rules
:
{
rules
:
{
...
@@ -1023,6 +1023,10 @@ export default {
...
@@ -1023,6 +1023,10 @@ export default {
}
}
return
{
"text-align"
:
"center"
,
height
:
"40px"
}
return
{
"text-align"
:
"center"
,
height
:
"40px"
}
},
},
uniqueArr
(
arr
)
{
const
res
=
new
Map
()
return
arr
.
filter
((
a
)
=>
!
res
.
has
(
a
.
id
)
&&
res
.
set
(
a
.
id
,
1
))
},
// 按照场景类型和应用对象查询:表头 (流量方)
// 按照场景类型和应用对象查询:表头 (流量方)
getQueryFeeCategoryByTypeFlow
(
res
)
{
getQueryFeeCategoryByTypeFlow
(
res
)
{
const
that
=
this
const
that
=
this
...
@@ -1041,6 +1045,7 @@ export default {
...
@@ -1041,6 +1045,7 @@ export default {
that
.
titleListFlow
.
push
(
temp
)
that
.
titleListFlow
.
push
(
temp
)
}
}
})
})
this
.
temporaryArr
=
this
.
uniqueArr
(
this
.
temporaryArr
)
// that.titleListFlow = titleListFlow
// that.titleListFlow = titleListFlow
const
listLength
=
that
.
titleListFlow
.
length
const
listLength
=
that
.
titleListFlow
.
length
const
resultArr
=
that
.
addTitleList
(
listLength
,
1
)
const
resultArr
=
that
.
addTitleList
(
listLength
,
1
)
...
@@ -1140,6 +1145,7 @@ export default {
...
@@ -1140,6 +1145,7 @@ export default {
that
.
titleListPlatform
.
push
(
temp
)
that
.
titleListPlatform
.
push
(
temp
)
}
}
})
})
this
.
temporaryArr
=
this
.
uniqueArr
(
this
.
temporaryArr
)
// that.titleListPlatform = titleListPlatform
// that.titleListPlatform = titleListPlatform
const
listLength
=
that
.
titleListPlatform
.
length
const
listLength
=
that
.
titleListPlatform
.
length
const
resultArr
=
that
.
addTitleList
(
listLength
,
2
)
const
resultArr
=
that
.
addTitleList
(
listLength
,
2
)
...
@@ -1347,7 +1353,7 @@ export default {
...
@@ -1347,7 +1353,7 @@ export default {
})
})
console
.
log
(
flowServiceCostArr
,
"flowServiceCostArr"
)
console
.
log
(
flowServiceCostArr
,
"flowServiceCostArr"
)
const
expenseCategoryRulesObj
=
{
const
expenseCategoryRulesObj
=
{
groupType
:
this
.
tabindex
==
0
?
1
:
2
,
groupType
:
this
.
classificationObj
.
groupType
,
categoryType
:
this
.
classificationObj
.
categoryType
,
categoryType
:
this
.
classificationObj
.
categoryType
,
expenseCategoryRules
:
flowServiceCostArr
,
expenseCategoryRules
:
flowServiceCostArr
,
goodsSource
:
this
.
classificationObj
.
goodsSource
goodsSource
:
this
.
classificationObj
.
goodsSource
...
...
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