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 abc4a7f1
authored
May 08, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
菜单按钮权限问题 财务配置校验问题 bug修复
1 parent
c141dd81
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
89 additions
and
25 deletions
src/layout/header-aside/components/header-user/index.vue
src/views/orderManage/integralShopping.vue
src/views/purchase/procurementBusiness.vue
src/views/purchase/procurementReview.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/index.vue
src/layout/header-aside/components/header-user/index.vue
View file @
abc4a7f
...
@@ -275,11 +275,16 @@ export default {
...
@@ -275,11 +275,16 @@ export default {
item
.
ifSuccess
=
ele
.
progress
==
100
&&
(
ele
.
failNum
>
0
||
ele
.
succNum
>
0
)
item
.
ifSuccess
=
ele
.
progress
==
100
&&
(
ele
.
failNum
>
0
||
ele
.
succNum
>
0
)
if
(
item
.
ifSuccess
)
{
if
(
item
.
ifSuccess
)
{
flag
=
true
flag
=
true
if
(
ele
.
failNum
)
{
if
(
ele
.
failNum
&&
ele
.
succNum
!=
0
)
{
this
.
notice
.
warningTips
(
'部分导入失败,请修改后重新导入'
)
this
.
notice
.
warningTips
(
'部分导入失败,请修改后重新导入'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
downLoadFile
(
ele
.
url
)
downLoadFile
(
ele
.
url
)
}
,
7000
)
}
,
7000
)
}
else
if
(
ele
.
failNum
&&
ele
.
succNum
==
0
)
{
this
.
notice
.
warningTips
(
'导入失败,请修改后重新导入'
)
setTimeout
(()
=>
{
downLoadFile
(
ele
.
url
)
}
,
7000
)
}
else
{
}
else
{
this
.
notice
.
okTips
(
'导入成功'
)
this
.
notice
.
okTips
(
'导入成功'
)
}
}
...
...
src/views/orderManage/integralShopping.vue
View file @
abc4a7f
...
@@ -109,30 +109,26 @@
...
@@ -109,30 +109,26 @@
<el-button type="text" size="mini" style="margin-left: 10px" @click="cancelRelat(scope.scope)">
<el-button type="text" size="mini" style="margin-left: 10px" @click="cancelRelat(scope.scope)">
取消关联
取消关联
</el-button> -->
</el-button> -->
<auth-button
:show-btn-ids=
"['9040138', '9040139']"
<auth-button
slot=
"auth-button"
:show-btn-ids=
"['9040138', '9040139']"
:data=
"scope.scope"
/>
category=
"Button"
/>
</span>
</span>
<span
v-if=
"scope.scope.ledgerStatus == '2'"
style=
"margin-left: 10px"
>
<span
v-if=
"scope.scope.ledgerStatus == '2'"
style=
"margin-left: 10px"
>
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="chooseRule(scope.scope)">
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="chooseRule(scope.scope)">
发起分账
发起分账
</el-button> -->
</el-button> -->
<auth-button
:show-btn-ids=
"['9040140']"
<auth-button
slot=
"auth-button"
:show-btn-ids=
"['9040140']"
:data=
"scope.scope"
/>
category=
"Button"
/>
</span>
</span>
<span
v-if=
"scope.scope.ledgerStatus == '3'"
style=
"margin-left: 10px"
>
<span
v-if=
"scope.scope.ledgerStatus == '3'"
style=
"margin-left: 10px"
>
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="ruleHistory(scope.scope)">
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="ruleHistory(scope.scope)">
分账记录
分账记录
</el-button> -->
</el-button> -->
<auth-button
:show-btn-ids=
"['9040141']"
<auth-button
slot=
"auth-button"
:show-btn-ids=
"['9040141']"
:data=
"scope.scope"
/>
category=
"Button"
/>
</span>
</span>
<!-- 取消分账 分账中状态 -->
<!-- 取消分账 分账中状态 -->
<span
v-if=
"scope.scope.ledgerStatus == '4'"
style=
"margin-left: 10px"
>
<span
v-if=
"scope.scope.ledgerStatus == '4'"
style=
"margin-left: 10px"
>
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="cancelRule(scope.scope)">
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="cancelRule(scope.scope)">
取消分账
取消分账
</el-button> -->
</el-button> -->
<auth-button
:show-btn-ids=
"['9040142']"
<auth-button
slot=
"auth-button"
:show-btn-ids=
"['9040142']"
:data=
"scope.scope"
/>
category=
"Button"
/>
</span>
</span>
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<span
v-if=
"scope.scope.tailOrderStatus == '1' && signRefundFlag"
>
<span
v-if=
"scope.scope.tailOrderStatus == '1' && signRefundFlag"
>
...
@@ -145,16 +141,14 @@
...
@@ -145,16 +141,14 @@
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="writeOff(scope.scope)">
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="writeOff(scope.scope)">
订单核销
订单核销
</el-button> -->
</el-button> -->
<auth-button
:show-btn-ids=
"['9040143']"
<auth-button
slot=
"auth-button"
:show-btn-ids=
"['9040143']"
:data=
"scope.scope"
/>
category=
"Button"
/>
</span>
</span>
<!-- 商品发货 -->
<!-- 商品发货 -->
<span
v-if=
"scope.scope.deliveryType == 2 && scope.scope.orderStatus == 6"
style=
"margin-left: 10px"
>
<span
v-if=
"scope.scope.deliveryType == 2 && scope.scope.orderStatus == 6"
style=
"margin-left: 10px"
>
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="handleExpressInfo(scope.scope)">
<!-- <el-button type="text" size="mini" style="margin-left: 10px" @click="handleExpressInfo(scope.scope)">
商品发货
商品发货
</el-button> -->
</el-button> -->
<auth-button
:show-btn-ids=
"['9040144']"
<auth-button
slot=
"auth-button"
:show-btn-ids=
"['9040144']"
:data=
"scope.scope"
/>
category=
"Button"
/>
</span>
</span>
<!-- 退款 -->
<!-- 退款 -->
<!-- <span v-if="scope.scope.showRefund == '1'">
<!-- <span v-if="scope.scope.showRefund == '1'">
...
...
src/views/purchase/procurementBusiness.vue
View file @
abc4a7f
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<d2-table-header>
<d2-table-header>
<
span
slot=
"left"
>
<
!--
<span
slot=
"left"
>
--
>
<!--
<auth-button
category=
"Button"
/>
-->
<!--
<auth-button
category=
"Button"
/>
-->
<auth-button
category=
"Button"
/>
<
!--
<
auth-button
category=
"Button"
/>
</span>
</span>
-->
<span>
<span>
<!--
<el-button
type=
"primary"
<!--
<el-button
type=
"primary"
size=
"mini"
size=
"mini"
...
...
src/views/purchase/procurementReview.vue
View file @
abc4a7f
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<d2-table-header>
<d2-table-header>
<
span
slot=
"left"
>
<
!--
<span
slot=
"left"
>
--
>
<!--
<auth-button
category=
"Button"
/>
-->
<!--
<auth-button
category=
"Button"
/>
-->
<auth-button
category=
"Button"
/>
<
!--
<
auth-button
category=
"Button"
/>
</span>
</span>
-->
<span>
<span>
<!--
<el-button
type=
"primary"
<!--
<el-button
type=
"primary"
size=
"mini"
size=
"mini"
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
abc4a7f
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<d2-table-header>
<d2-table-header>
<
span
slot=
"left"
>
<
!--
<span
slot=
"left"
>
--
>
<!--
<auth-button
category=
"Button"
/>
-->
<!--
<auth-button
category=
"Button"
/>
-->
<auth-button
category=
"Button"
/>
<
!--
<
auth-button
category=
"Button"
/>
</span>
</span>
-->
<span>
<span>
<!--
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
<!--
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
导出
导出
...
...
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
abc4a7f
...
@@ -1440,7 +1440,7 @@ export default {
...
@@ -1440,7 +1440,7 @@ export default {
{
{
id
:
300
,
id
:
300
,
expenseCategoryId
:
300
,
expenseCategoryId
:
300
,
applicationObjectName
:
"虚拟
账户
成本"
,
applicationObjectName
:
"虚拟
对账
成本"
,
applicationObjectType
:
3
applicationObjectType
:
3
}
}
]
]
...
...
src/views/systemConfig/merchant/financialRules/index.vue
View file @
abc4a7f
...
@@ -773,20 +773,24 @@ export default {
...
@@ -773,20 +773,24 @@ export default {
:
""
:
""
// let flag = true
// let flag = true
let
errorTips
=
0
let
errorTips
=
0
let
[
allTrafficSide
,
allTrafficSideArr
,
allServiceProvider
,
allServiceProviderArr
,
allPlatformPublic
,
allPlatformPublicArr
]
=
[[],
[],
[],
[],
[],
[]]
this
.
submitParams
?.
goodsTypeGroupRules
?.
forEach
((
val
,
index
)
=>
{
this
.
submitParams
?.
goodsTypeGroupRules
?.
forEach
((
val
,
index
)
=>
{
this
.
editableTabs
[
index
].
calculateModeError
=
false
this
.
editableTabs
[
index
].
calculateModeError
=
false
const
node
=
const
node
=
this
.
$refs
[
`classification
${
this
.
editableTabs
[
index
].
name
}
`
][
0
]
this
.
$refs
[
`classification
${
this
.
editableTabs
[
index
].
name
}
`
][
0
]
let
[
trafficSide
,
serviceProvider
,
platformPublic
]
=
[[],
[],
[]]
let
[
trafficSide
,
serviceProvider
,
platformPublic
]
=
[[],
[],
[]]
val
?.
expenseCategoryRules
?.
forEach
((
subV
,
subIndex
)
=>
{
val
?.
expenseCategoryRules
?.
forEach
((
subV
,
subIndex
)
=>
{
if
(
subV
?.
targetType
==
1
)
{
if
(
subV
?.
targetType
==
1
)
{
trafficSide
.
push
(
subV
)
trafficSide
.
push
(
subV
)
allTrafficSideArr
.
push
(
subV
)
}
else
if
(
subV
?.
targetType
==
2
)
{
}
else
if
(
subV
?.
targetType
==
2
)
{
serviceProvider
.
push
(
subV
)
serviceProvider
.
push
(
subV
)
allServiceProviderArr
.
push
(
subV
)
}
else
if
(
subV
?.
targetType
==
3
)
{
}
else
if
(
subV
?.
targetType
==
3
)
{
platformPublic
.
push
(
subV
)
platformPublic
.
push
(
subV
)
allPlatformPublicArr
.
push
(
subV
)
}
}
// 单独品类tab校验
if
(
subIndex
==
val
.
expenseCategoryRules
?.
length
-
1
)
{
if
(
subIndex
==
val
.
expenseCategoryRules
?.
length
-
1
)
{
// 若自定义费用类目存在按整单分润模式,则流量方类目设置和服务商类目设置时,在按(收入-自定义其他费用)比例、按(收入-其他费用)比例按、园区店毛利(不扣除产品成本)、按园区店毛利仅支持整单模式(面向整套规则),存在该情况则无法提交(短信验证提交时)并toast提示:存在费用类目的计算模式冲突,请确认后重新操作
// 若自定义费用类目存在按整单分润模式,则流量方类目设置和服务商类目设置时,在按(收入-自定义其他费用)比例、按(收入-其他费用)比例按、园区店毛利(不扣除产品成本)、按园区店毛利仅支持整单模式(面向整套规则),存在该情况则无法提交(短信验证提交时)并toast提示:存在费用类目的计算模式冲突,请确认后重新操作
let
platformPublicCalculateModeFlag
=
platformPublic
.
findIndex
(
let
platformPublicCalculateModeFlag
=
platformPublic
.
findIndex
(
...
@@ -838,6 +842,67 @@ export default {
...
@@ -838,6 +842,67 @@ export default {
}
}
}
}
})
})
allTrafficSide
.
push
(
trafficSide
)
allServiceProvider
.
push
(
serviceProvider
)
allPlatformPublic
.
push
(
platformPublic
)
// 全部tab品类校验
// 若自定义费用类目存在按整单分润模式,则流量方类目设置和服务商类目设置时,在按(收入-自定义其他费用)比例、按(收入-其他费用)比例按、园区店毛利(不扣除产品成本)、按园区店毛利仅支持整单模式(面向整套规则),存在该情况则无法提交(短信验证提交时)并toast提示:存在费用类目的计算模式冲突,请确认后重新操作
let
platformPublicCalculateModeFlag
=
allPlatformPublicArr
.
findIndex
(
(
i
)
=>
i
.
calculateMode
==
2
)
// 若流量方费用类目存在按整单分润模式,则服务商类目设置时,在按园区店总金额、按园区店毛利(不扣除产品成本)、按园区店毛利仅支持整单模式(面向整套规则),存在该情况则无法提交(短信验证提交时)并toast提示:存在费用类目的计算模式冲突,请确认后重新操作
let
trafficSideCalculateModeFlag
=
allTrafficSideArr
.
findIndex
(
(
i
)
=>
i
.
calculateMode
==
2
)
if
(
platformPublicCalculateModeFlag
>
-
1
)
{
allTrafficSide
?.
map
((
value
,
subI
)
=>
{
let
subNode
=
this
.
$refs
[
`classification
${
this
.
editableTabs
[
subI
].
name
}
`
][
0
]
subNode
.
setCalculateError
(
subI
,
"trafficSide"
,
false
)
value
?.
map
((
v
,
i
)
=>
{
if
(
v
?.
calculateMode
==
1
&&
[
8
,
9
].
includes
(
v
.
expenseCategoryCalculateType
)
)
{
// flag = false
this
.
editableTabs
[
subI
].
calculateModeError
=
true
errorTips
++
subNode
.
setCalculateError
(
i
,
"trafficSide"
)
}
})
})
allServiceProvider
?.
map
((
value
,
subI
)
=>
{
let
subNode
=
this
.
$refs
[
`classification
${
this
.
editableTabs
[
subI
].
name
}
`
][
0
]
subNode
.
setCalculateError
(
subI
,
"serviceProvider"
,
false
)
value
?.
map
((
v
,
i
)
=>
{
if
(
v
?.
calculateMode
==
1
&&
[
5
,
6
,
8
,
9
].
includes
(
v
.
expenseCategoryCalculateType
)
)
{
// flag = false
this
.
editableTabs
[
subI
].
calculateModeError
=
true
errorTips
++
subNode
.
setCalculateError
(
i
,
"serviceProvider"
)
}
})
})
}
else
if
(
trafficSideCalculateModeFlag
>
-
1
)
{
allServiceProvider
?.
map
((
value
,
subI
)
=>
{
let
subNode
=
this
.
$refs
[
`classification
${
this
.
editableTabs
[
subI
].
name
}
`
][
0
]
subNode
.
setCalculateError
(
subI
,
"trafficSide"
,
false
)
subNode
.
setCalculateError
(
subI
,
"serviceProvider"
,
false
)
value
?.
map
((
v
,
i
)
=>
{
if
(
v
?.
calculateMode
==
1
&&
[
5
,
6
,
8
,
9
].
includes
(
v
.
expenseCategoryCalculateType
)
)
{
// flag = false
this
.
editableTabs
[
subI
].
calculateModeError
=
true
errorTips
++
subNode
.
setCalculateError
(
i
,
"serviceProvider"
)
}
})
})
}
})
})
if
(
errorTips
)
{
if
(
errorTips
)
{
return
this
.
$message
.
error
(
return
this
.
$message
.
error
(
...
...
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