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 dd762e7e
authored
Feb 25, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
嘀加详情
1 parent
8736d7a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
79 deletions
src/views/goods/shelfManage/components/detailCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
src/views/goods/shelfManage/components/editCon/components/tableAccount.vue
src/views/goods/shelfManage/components/detailCon/DivisionConfig.vue
View file @
dd762e7
...
@@ -98,23 +98,17 @@
...
@@ -98,23 +98,17 @@
}}
</span>
}}
</span>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<!-- <el-form-item
label="资源费"
prop="realityShopMerchantId"
required
>
<span>{{ financialObj.realityShopMerchantId }}</span>
</el-form-item>
<el-form-item
label="服务商分润"
prop="realityShopMerchantId"
required
>
<span>{{ financialObj.realityShopMerchantId }}</span>
</el-form-item> -->
</el-form>
</el-form>
</div>
</div>
<tableAccount
ref=
"tableAccount"
:merchant-distribution-rules=
"
financialObj.goodsTypeGroupRules[editableTabsValue]
.merchantDistributionRules
"
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -123,8 +117,12 @@
...
@@ -123,8 +117,12 @@
<
script
>
<
script
>
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
import
tableAccount
from
"../../components/editCon/components/tableAccount"
export
default
{
export
default
{
name
:
"DivisionConfig"
,
name
:
"DivisionConfig"
,
components
:
{
tableAccount
},
props
:
{
props
:
{
divisiObj
:
{
divisiObj
:
{
type
:
Object
,
type
:
Object
,
...
@@ -144,7 +142,67 @@ export default {
...
@@ -144,7 +142,67 @@ export default {
editableTabsValue
:
"1"
editableTabsValue
:
"1"
}
}
},
},
computed
:
{
tableClassificationObjSelect
()
{
const
filterObj
=
deepClone
(
this
.
financialObj
.
goodsTypeGroupRules
[
this
.
editableTabsValue
]
.
expenseCategoryRules
)
console
.
log
(
filterObj
)
const
obj
=
{
trafficSide
:
filterObj
}
const
arr
=
[
{
id
:
4
,
expenseCategoryId
:
4
,
applicationObjectName
:
"手续费"
,
applicationObjectType
:
3
},
{
id
:
701
,
expenseCategoryId
:
701
,
applicationObjectName
:
"第三方成本"
,
applicationObjectType
:
3
}
]
obj
.
trafficSide
&&
obj
.
trafficSide
.
push
(...
arr
)
return
obj
},
tableSelectOptions
:
{
get
()
{
const
info
=
this
.
financialObj
// 平台方
const
platformSideobj
=
{
merchantId
:
info
.
realityPlatformMerchantId
,
// 实际分账平台方商户id(嘀加智慧云为-1)
merchantName
:
info
.
realityPlatformMerchantName
,
targetMerchantType
:
1
}
// 4s 店
const
merchantSideobj
=
{
merchantId
:
info
.
realityShopMerchantId
,
// 实际分账商户方商户id(嘀加智慧云为-1)
merchantName
:
info
.
realityShopMerchantName
,
targetMerchantType
:
3
}
// // 如果勾选商户 就追加进去
// if (info.djzhySubMerchantId) {
// const dizhySubMerchantObj = {
// merchantId: info.djzhySubMerchantId, // 实际分账商户方商户id(嘀加智慧云为-1)
// merchantName: info.djzhySubMerchantName,
// targetMerchantType: 4
// }
// return [
// platformSideobj,
// dizhySubMerchantObj,
// ...this.serviceSelectList,
// merchantSideobj
// ]
// }
return
[
platformSideobj
,
merchantSideobj
]
}
},
},
watch
:
{
watch
:
{
divisiObj
:
{
divisiObj
:
{
handler
(
val
,
oldVal
)
{
handler
(
val
,
oldVal
)
{
...
@@ -235,9 +293,8 @@ export default {
...
@@ -235,9 +293,8 @@ export default {
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
item
.
upgradeGoods
=
[]
// 与具体商品互不干扰
}
}
})
})
this
.
financialObj
=
result
this
.
financialObj
=
result
this
.
filterData
()
this
.
filterData
()
},
},
filterData
(
data
)
{
filterData
(
data
)
{
let
arrIdx
=
[
1
,
302
,
2
]
let
arrIdx
=
[
1
,
302
,
2
]
...
@@ -245,16 +302,22 @@ export default {
...
@@ -245,16 +302,22 @@ export default {
item
.
expenseCategoryTypeRules
=
[]
item
.
expenseCategoryTypeRules
=
[]
item
.
expenseCategoryRules
.
forEach
((
type
)
=>
{
item
.
expenseCategoryRules
.
forEach
((
type
)
=>
{
if
(
arrIdx
.
includes
(
type
.
expenseCategoryId
))
{
if
(
arrIdx
.
includes
(
type
.
expenseCategoryId
))
{
if
(
type
.
expenseCategoryId
==
1100
)
type
.
expenseCategoryName
=
"一线阳光激励费"
if
(
type
.
expenseCategoryId
==
1100
)
if
(
type
.
expenseCategoryId
==
809
)
type
.
expenseCategoryName
=
"一线阳光2激励费"
type
.
expenseCategoryName
=
"一线阳光激励费"
if
(
type
.
expenseCategoryId
==
809
)
type
.
expenseCategoryName
=
"一线阳光2激励费"
item
.
expenseCategoryTypeRules
.
push
(
type
)
item
.
expenseCategoryTypeRules
.
push
(
type
)
}
}
})
})
this
.
$set
(
item
,
"expenseCategoryTypeRules"
,
item
.
expenseCategoryTypeRules
)
this
.
$set
(
item
,
"expenseCategoryTypeRules"
,
item
.
expenseCategoryTypeRules
)
})
})
this
.
financialObj
=
data
this
.
financialObj
=
data
this
.
initSettleTimeObj
()
this
.
initSettleTimeObj
()
console
.
log
(
this
.
financialObj
,
76666
)
console
.
log
(
this
.
financialObj
,
76666
)
},
},
initSettleTimeObj
()
{
initSettleTimeObj
()
{
const
{
settleTimeType
,
settleTime
}
=
this
.
financialObj
const
{
settleTimeType
,
settleTime
}
=
this
.
financialObj
...
...
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
View file @
dd762e7
...
@@ -208,17 +208,6 @@
...
@@ -208,17 +208,6 @@
:table-select-options=
"tableSelectOptions"
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
:classification-obj-select=
"tableClassificationObjSelect"
/>
/>
<!-- <tipsDialog
v-if="tipsDialogVisible"
:account-valid-merchants="accountValidMerchants"
:visible.sync="tipsDialogVisible"
/>
<financialCalculationDialog
v-if="financialCalculationVisible"
v-on="$listeners"
:financial-calculation-obj="financialCalculationObj"
:visible.sync="financialCalculationVisible"
/> -->
</div>
</div>
</template>
</template>
...
@@ -550,18 +539,7 @@ export default {
...
@@ -550,18 +539,7 @@ export default {
}
}
})
})
}
}
console
.
log
(
obj
,
"obj"
)
// if (this.classificationObj.goodsCostFlag == "Y") {
// const arr = [
// {
// id: 3,
// expenseCategoryId: 3,
// applicationObjectName: "产品成本",
// applicationObjectType: 3
// }
// ]
// obj.platformPublic && obj.platformPublic.push(...arr)
// }
if
(
this
.
classificationObj
.
virtualAccountCostFlag
==
"Y"
)
{
if
(
this
.
classificationObj
.
virtualAccountCostFlag
==
"Y"
)
{
const
arr
=
[
const
arr
=
[
{
{
...
@@ -595,17 +573,6 @@ export default {
...
@@ -595,17 +573,6 @@ export default {
]
]
obj
.
platformPublic
&&
obj
.
platformPublic
.
push
(...
arr
)
obj
.
platformPublic
&&
obj
.
platformPublic
.
push
(...
arr
)
}
}
// if (this.classificationObj.thirdPartyCostFlag == "Y") {
// const arr = [
// {
// id: 701,
// expenseCategoryId: 701,
// applicationObjectName: "第三方成本",
// applicationObjectType: 3
// }
// ]
// obj.platformPublic && obj.platformPublic.push(...arr)
// }
obj
.
platformPublic
&&
obj
.
platformPublic
&&
obj
.
platformPublic
.
push
({
obj
.
platformPublic
.
push
({
...
@@ -615,9 +582,6 @@ export default {
...
@@ -615,9 +582,6 @@ export default {
applicationObjectType
:
3
applicationObjectType
:
3
})
})
return
obj
return
obj
// else {
// return this.classificationObjSelect
// }
},
},
goodsTypeGroupDivisionId
()
{
goodsTypeGroupDivisionId
()
{
// console.log(
// console.log(
...
...
src/views/goods/shelfManage/components/editCon/components/tableAccount.vue
View file @
dd762e7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<td>
分账对象/分账类目
</td>
<td>
分账对象/分账类目
</td>
<!--
<td>
平台方分账金额
</td>
-->
<!--
<td>
平台方分账金额
</td>
-->
<td
v-for=
"(item, index) in radioList"
:key=
"index"
>
<td
v-for=
"(item, index) in radioList"
:key=
"index"
>
{{
item
.
applicationObjectName
}}
{{
item
.
applicationObjectName
||
item
.
expenseCategoryName
}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -28,18 +28,6 @@
...
@@ -28,18 +28,6 @@
{{
item
|
filterMerchantType
}}
{{
item
|
filterMerchantType
}}
</p>
</p>
</td>
</td>
<!--
<td
class=
"p-b-20"
>
<el-form-item
label-width=
"0px"
>
<el-radio-group
v-model=
"platformSideLabel"
>
<el-radio
v-for=
"(item, index) in tableSelectOptions"
:key=
"index + 'index'"
:disabled=
"item != 0"
:label=
"index"
/>
</el-radio-group>
</el-form-item>
</td>
-->
<td
<td
class=
"p-b-20"
class=
"p-b-20"
v-for=
"(item, index) in radioList"
v-for=
"(item, index) in radioList"
...
@@ -87,10 +75,6 @@ export default {
...
@@ -87,10 +75,6 @@ export default {
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
},
// merchantInfo: {
// type: Object,
// default: () => { }
// },
merchantDistributionRules
:
{
merchantDistributionRules
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
{
default
:
()
=>
{
...
@@ -164,15 +148,14 @@ export default {
...
@@ -164,15 +148,14 @@ export default {
arrIdx
=
[
1
,
2
,
302
,
701
,
4
]
arrIdx
=
[
1
,
2
,
302
,
701
,
4
]
for
(
const
key
in
obj
)
{
for
(
const
key
in
obj
)
{
obj
[
key
].
map
((
item
)
=>
{
obj
[
key
].
map
((
item
)
=>
{
if
(
arrIdx
.
includes
(
item
.
id
))
{
if
(
arrIdx
.
includes
(
item
.
id
)
||
arrIdx
.
includes
(
item
.
expenseCategoryId
)
)
{
list
.
push
(
item
)
list
.
push
(
item
)
}
}
})
})
}
}
arr
=
list
.
filter
((
item
)
=>
{
arr
=
list
.
filter
((
item
)
=>
{
return
arrIdx
.
includes
(
item
.
id
)
return
arrIdx
.
includes
(
item
.
id
)
||
arrIdx
.
includes
(
item
.
expenseCategoryId
)
})
})
console
.
log
(
arr
)
return
arr
return
arr
}
}
},
},
...
@@ -193,6 +176,7 @@ export default {
...
@@ -193,6 +176,7 @@ export default {
},
},
tableSelectOptions
:
{
tableSelectOptions
:
{
handler
()
{
handler
()
{
console
.
log
(
this
.
tableSelectOptions
,
"🚀🚀"
)
// this.initList()
// this.initList()
this
.
changFormList
()
this
.
changFormList
()
},
},
...
@@ -208,7 +192,7 @@ export default {
...
@@ -208,7 +192,7 @@ export default {
// console.log(this.merchantDistributionRules)
// console.log(this.merchantDistributionRules)
const
obj
=
this
.
classificationObjSelect
const
obj
=
this
.
classificationObjSelect
const
form
=
{}
const
form
=
{}
//
console.log('obj', obj)
console
.
log
(
'obj'
,
obj
)
for
(
const
key
in
obj
)
{
for
(
const
key
in
obj
)
{
obj
[
key
].
map
((
item
)
=>
{
obj
[
key
].
map
((
item
)
=>
{
// 数字转字符串
// 数字转字符串
...
...
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