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 351cdf9e
authored
Mar 16, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户管理-财务-分账比例
1 parent
dc2ff5e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
35 deletions
src/views/systemConfig/merchantDetail.vue
src/views/systemConfig/merchantDetail.vue
View file @
351cdf9
...
...
@@ -112,7 +112,6 @@
</el-radio-group>
-->
</el-form-item>
<div>
<!--
<h4
class=
"form_gp_title"
>
导流方(4S店)财务对账结算规则
</h4>
-->
<p
class=
"edit-sub-title"
>
分账比例设置
</p>
<div
class=
"account-card-block"
>
<p
class=
"card-title"
>
...
...
@@ -134,11 +133,11 @@
>
<p
class=
"account-content p-l-30"
v-for=
"(item, index) in accountSetForm"
v-for=
"(item, index) in accountSetForm
.list
"
:key=
"index"
>
<el-form-item
:prop=
"index + '.goodsType'"
:prop=
"
'list.' +
index + '.goodsType'"
:rules=
"
{ required: true, message: '请选择分账品类', trigger: 'change'}"
>
<span
...
...
@@ -166,13 +165,13 @@
:key=
"subIndex"
:label=
"subItem.goodsTypeName"
:value=
"subItem.goodsType"
:disabled=
"accountSetForm.filter(k => k.goodsType !== item.goodsType).map(i => i.goodsType).includes(subItem.goodsType)"
:disabled=
"accountSetForm.
list.
filter(k => k.goodsType !== item.goodsType).map(i => i.goodsType).includes(subItem.goodsType)"
></el-option>
</el-select>
<span
v-show=
"!isFirstSetEdit || index === 0"
>
{{
item
.
goodsTypeName
}}
</span>
</el-form-item>
<el-form-item
:prop=
"index + '.merchantSettleType'"
:prop=
"
'list.' +
index + '.merchantSettleType'"
:rules=
"
{ required: true, message: '请选择分账模式', trigger: 'change'}"
>
<span
...
...
@@ -204,7 +203,7 @@
<span
v-show=
"!isFirstSetEdit"
>
{{
merchantSettleTypeList
.
find
(
i
=>
i
.
confId
===
item
.
merchantSettleType
).
confLabel
}}
</span>
</el-form-item>
<el-form-item
:prop=
"index + '.merchantProfitValue'"
:prop=
"
'list.' +
index + '.merchantProfitValue'"
:rules=
"[
{ required: true, message: '请输入分润比例', trigger: 'change'}, { pattern: /^(([1-9][0-9])|[0-9])$/, message: '请输入小于100正整数', trigger: 'blur' }]"
>
<span
...
...
@@ -232,16 +231,18 @@
>
%
</i></el-input>
<span
v-show=
"!isFirstSetEdit"
>
{{
item
.
merchantProfitValue
?
(
item
.
merchantProfitValue
+
'%'
)
:
''
}}
</span>
</el-form-item>
<el-form-item
style=
"width: 3%;"
>
<el-form-item
v-if=
"isFirstSetEdit && index !== 0"
style=
"width: 3%;"
>
<el-button
v-show=
"isFirstSetEdit && index !== 0"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleAccountDelete(item, index)"
></el-button>
</el-form-item>
</p>
<el-form-item
class=
"p-l-30"
>
<el-form-item
class=
"p-l-30"
style=
"width: 63%;"
>
<el-button
v-if=
"isFirstSetEdit"
size=
"small"
...
...
@@ -249,19 +250,36 @@
@
click=
"handleAccountAdd(item, index)"
>
+新增分账品类
</el-button>
</el-form-item>
</el-form>
<!--
<p>
<span>
分账品类
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"用户支付的款项可按T+1或指定日自动打款给商户。"
placement=
"top"
<el-form-item
prop=
"incentiveValue"
:rules=
"[
{ required: true, message: '请输入激励费', trigger: 'change'}, { pattern: /^(([1-9][0-9])|[0-9])$/, message: '请输入小于100正整数', trigger: 'blur' }]"
>
<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"
></span>
</el-tooltip>
:
</span>
<el-input
size=
"small"
v-show=
"isFirstSetEdit"
v-model=
"accountSetForm.incentiveValue"
>
<span
class=
"tips-icon"
></span>
</el-tooltip>
:全部
</span>
</p>
-->
<i
slot=
"suffix"
class=
"suffix"
>
%
</i></el-input>
<span
v-show=
"!isFirstSetEdit"
>
{{
accountSetForm
.
incentiveValue
?
(
accountSetForm
.
incentiveValue
+
'%'
)
:
''
}}
</span>
</el-form-item>
</el-form>
</div>
<!--
<el-form-item
label=
"结算模式"
...
...
@@ -477,12 +495,15 @@ export default {
merchantSettleType
:
'1'
,
merchantProfitValue
:
''
}),
accountSetForm
:
[{
goodsType
:
'全部'
,
goodsTypeName
:
'全部'
,
merchantSettleType
:
'1'
,
merchantProfitValue
:
''
}],
accountSetForm
:
{
incentiveValue
:
''
,
list
:
[{
goodsType
:
'全部'
,
goodsTypeName
:
'全部'
,
merchantSettleType
:
'1'
,
merchantProfitValue
:
''
}]
},
merchantId
:
''
,
channelType
:
''
,
contactName
:
''
,
...
...
@@ -581,7 +602,7 @@ export default {
this
.
baseData
.
productTypeList
=
_
.
cloneDeep
(
await
this
.
get
(
BaseData
.
productType
))
},
handleSelectChange
(
value
,
index
,
currentItem
)
{
this
[
currentItem
][
index
].
goodsTypeName
=
this
.
baseData
.
productTypeList
.
find
(
item
=>
item
.
goodsType
===
value
).
goodsTypeName
this
[
currentItem
]
.
list
[
index
].
goodsTypeName
=
this
.
baseData
.
productTypeList
.
find
(
item
=>
item
.
goodsType
===
value
).
goodsTypeName
},
// handleincentiveValue(newVal) {
// this.form.incentiveValue = this.form.incentiveType === 1 ? limitPrice(newVal, this.oldVal.incentiveValue, 3, 0, 0, 100) : limitPrice(newVal, this.oldVal.incentiveValue, 6, 2)
...
...
@@ -603,12 +624,12 @@ export default {
this
.
isFirstSetEdit
=
!
this
.
isFirstSetEdit
},
handleAccountAdd
()
{
var
validArr
=
this
.
accountSetForm
.
map
((
i
,
index
)
=>
index
+
'.goodsType'
)
var
validArr
=
this
.
accountSetForm
.
list
.
map
((
i
,
index
)
=>
'list.'
+
index
+
'.goodsType'
)
var
isEmpty
=
false
this
.
$refs
.
accountValiteForm
.
validateField
(
validArr
,
valid
=>
{
valid
&&
(
isEmpty
=
true
)
})
!
isEmpty
&&
this
.
accountSetForm
.
push
(
_
.
cloneDeep
(
this
.
accountSetStruct
))
!
isEmpty
&&
this
.
accountSetForm
.
list
.
push
(
_
.
cloneDeep
(
this
.
accountSetStruct
))
},
handleAccountDelete
(
item
,
index
)
{
this
.
$confirm
(
'是否删除该品类'
,
'提示'
,
{
...
...
@@ -616,7 +637,7 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
accountSetForm
.
splice
(
index
,
1
)
this
.
accountSetForm
.
list
.
splice
(
index
,
1
)
})
},
onSubmit
()
{
...
...
@@ -717,14 +738,14 @@ export default {
.p-l-30
{
padding-left
:
30px
;
}
.tips-icon
{
top
:
11px
;
}
.account-content
{
.el-form-item
{
width
:
3
1
%
;
width
:
3
0
%
;
margin-bottom
:
16px
;
}
.tips-icon
{
top
:
11px
;
}
}
}
.block_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