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