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 d950c91e
authored
Feb 21, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
财务生效日期 选项处理
1 parent
9d9423bb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
190 additions
and
95 deletions
src/views/systemConfig/deviceManage/deviceHistory.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/components/verificationCodeDialog.vue
src/views/systemConfig/merchant/financialRules/index.vue
src/views/systemConfig/merchant/merchantStep/merchantCheck.vue
src/views/systemConfig/merchant/merchantStep/merchantCheckRecord.vue
src/views/systemConfig/deviceManage/deviceHistory.vue
View file @
d950c91
...
@@ -2,35 +2,33 @@
...
@@ -2,35 +2,33 @@
<d2-Container>
<d2-Container>
<div
class=
"divece-history"
>
<div
class=
"divece-history"
>
<div
class=
"title"
>
<div
class=
"title"
>
{{
recordInfo
.
posTrmNo
}}
{{
recordInfo
.
posTrmNo
}}
</div>
</div>
<div
class=
"account-detail"
<div
class=
"account-detail"
ref=
"accountDetail"
>
ref=
"accountDetail"
>
<div
v-if=
"formArray && formArray.length"
>
<div
v-if=
"formArray && formArray.length"
>
<div
v-for=
"(formItem, index) in formArray"
<div
v-for=
"(formItem, index) in formArray"
:ref=
"'resize' + index"
:key=
"index"
>
:ref=
"'resize' + index"
<p
class=
"edit-sub-title"
:class=
"
{ 'sub-border': !formItem.show }">
:key=
"index"
>
<p
class=
"edit-sub-title"
:class=
"
{ 'sub-border': !formItem.show }">
<span
class=
"label"
>
<span
class=
"label"
>
<span>
{{
formItem
.
formatEffectStartDate
}}
</span>
<span>
{{
formItem
.
formatEffectStartDate
}}
</span>
<span
v-if=
"formItem.formatEffectStartDate"
>
-
</span>
<span
v-if=
"formItem.formatEffectStartDate"
>
-
</span>
<span
:class=
"
{ labelColor: !formItem.formatEffectEndDate }">
{{
<span
:class=
"
{ labelColor: !formItem.formatEffectEndDate }">
{{
formItem
.
formatEffectStartDate
formItem
.
formatEffectStartDate
?
formItem
.
formatEffectEndDate
?
formItem
.
formatEffectEndDate
?
formItem
.
formatEffectEndDate
?
formItem
.
formatEffectEndDate
:
"生效中"
:
"生效中"
:
"待生效"
:
"待生效"
}}
</span>
}}
</span>
</span>
</span>
<span
class=
"updatedInfo"
>
<span
class=
"updatedInfo"
>
操作人:
{{
formItem
.
createdBy
}}
操作时间:
操作人:
{{
formItem
.
createdBy
}}
操作时间:
{{
formItem
.
formatCreatedDate
}}
{{
formItem
.
formatCreatedDate
}}
</span>
</span>
<span
class=
"collapse"
<span
class=
"updatedInfo"
>
@
click=
"collapseItem(index)"
>
审核人:
{{
formItem
.
auditorName
}}
审核时间:
<i
:class=
"
{ move: !formItem.show }"
{{
formItem
.
formatAuditDate
}}
class="arrow el-icon-arrow-down" />
</span>
<span
class=
"collapse"
@
click=
"collapseItem(index)"
>
<i
:class=
"
{ move: !formItem.show }" class="arrow el-icon-arrow-down" />
{{
formItem
.
show
?
"收起"
:
"展开"
}}
{{
formItem
.
show
?
"收起"
:
"展开"
}}
</span>
</span>
</p>
</p>
...
@@ -59,19 +57,15 @@
...
@@ -59,19 +57,15 @@
</div>
</div>
</div>
</div>
<div
v-else
<div
v-else
class=
"nothingtips"
>
class=
"nothingtips"
>
<img
style=
"height: 109px; width: 109px"
src=
"../images/empty.png"
/>
<img
style=
"height: 109px; width: 109px"
src=
"../images/empty.png"
/>
<p
class=
"title"
>
暂无历史记录
</p>
<p
class=
"title"
>
暂无历史记录
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
</div>
</div>
</div>
</div>
<div
class=
"btns"
>
<div
class=
"btns"
>
<el-button
@
click=
"handleCancel"
<el-button
@
click=
"handleCancel"
size=
"small"
type=
"primary"
>
size=
"small"
type=
"primary"
>
返回
返回
</el-button>
</el-button>
</div>
</div>
...
@@ -88,7 +82,7 @@ export default {
...
@@ -88,7 +82,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
formArray
:
[],
formArray
:
[],
recordInfo
:
null
,
recordInfo
:
null
}
}
},
},
components
:
{
components
:
{
...
@@ -109,7 +103,6 @@ export default {
...
@@ -109,7 +103,6 @@ export default {
}),
}),
collapseItem
(
SelectIndex
)
{
collapseItem
(
SelectIndex
)
{
this
.
formArray
=
this
.
formArray
.
map
((
element
,
index
)
=>
{
this
.
formArray
=
this
.
formArray
.
map
((
element
,
index
)
=>
{
if
(
SelectIndex
==
index
)
{
if
(
SelectIndex
==
index
)
{
element
.
show
=
!
element
.
show
element
.
show
=
!
element
.
show
...
@@ -136,6 +129,7 @@ export default {
...
@@ -136,6 +129,7 @@ export default {
?
dayjs
(
item
.
effectStartDate
).
format
(
format
)
?
dayjs
(
item
.
effectStartDate
).
format
(
format
)
:
""
:
""
item
.
formatCreatedDate
=
dayjs
(
item
.
createdDate
).
format
(
format
)
item
.
formatCreatedDate
=
dayjs
(
item
.
createdDate
).
format
(
format
)
item
.
formatAuditDate
=
dayjs
(
item
.
auditDate
).
format
(
format
)
item
.
show
=
false
item
.
show
=
false
return
item
return
item
})
})
...
@@ -150,16 +144,18 @@ export default {
...
@@ -150,16 +144,18 @@ export default {
name
:
'deviceManage'
name
:
'deviceManage'
})
})
this
.
close
({
tagName
:
'/deviceHistory'
})
this
.
close
({
tagName
:
'/deviceHistory'
})
}
,
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
$
color
:
#2a58ad
;
$
color
:
#2a58ad
;
.divece-history
{
.divece-history
{
padding-left
:
20px
;
padding-left
:
20px
;
padding-right
:
16px
;
padding-right
:
16px
;
padding-bottom
:
20px
;
padding-bottom
:
20px
;
.account-detail
{
.account-detail
{
//
height
:
400px
;
//
height
:
400px
;
//
height
:
calc
(
100vh
-
200px
);
//
height
:
calc
(
100vh
-
200px
);
...
@@ -167,12 +163,14 @@ $color: #2a58ad;
...
@@ -167,12 +163,14 @@ $color: #2a58ad;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
}
}
.edit-sub-title
{
.edit-sub-title
{
padding
:
17px
0
;
padding
:
17px
0
;
margin
:
0
;
margin
:
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
font-size
:
14px
;
font-size
:
14px
;
&::before
{
&::before
{
top
:
50%
;
top
:
50%
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
...
@@ -182,37 +180,46 @@ $color: #2a58ad;
...
@@ -182,37 +180,46 @@ $color: #2a58ad;
padding-left
:
8px
;
padding-left
:
8px
;
width
:
37%
;
width
:
37%
;
}
}
.labelColor
{
.labelColor
{
color
:
#0947c6
;
color
:
#0947c6
;
}
}
.updatedInfo
{
.updatedInfo
{
width
:
40%
;
width
:
40%
;
text-align
:
left
;
text-align
:
left
;
}
}
.collapse
{
.collapse
{
padding-right
:
20px
;
padding-right
:
20px
;
color
:
#0947c6
;
color
:
#0947c6
;
cursor
:
pointer
;
cursor
:
pointer
;
.arrow
{
.arrow
{
transition
:
all
1s
;
transition
:
all
1s
;
}
}
.move
{
.move
{
transform
:
rotate
(
-180deg
);
transform
:
rotate
(
-180deg
);
}
}
}
}
}
}
.sub-border
{
.sub-border
{
animation
:
border-delay
1s
forwards
;
animation
:
border-delay
1s
forwards
;
}
}
@keyframes
border-delay
{
@keyframes
border-delay
{
0
%
{
0
%
{
/* opacity: 0; */
/* opacity: 0; */
/* right: -100%; */
/* right: -100%; */
}
}
100
%
{
100
%
{
border-bottom
:
1px
solid
#d8d8d8
;
border-bottom
:
1px
solid
#d8d8d8
;
}
}
}
}
//
.account-detail
.detail-img
{
//
.account-detail
.detail-img
{
//
width
:
180px
;
//
width
:
180px
;
//
height
:
104px
;
//
height
:
104px
;
...
@@ -318,16 +325,19 @@ $color: #2a58ad;
...
@@ -318,16 +325,19 @@ $color: #2a58ad;
text-align
:
center
;
text-align
:
center
;
font-size
:
16px
;
font-size
:
16px
;
padding-top
:
40px
;
padding-top
:
40px
;
.title
{
.title
{
font-size
:
20px
;
font-size
:
20px
;
color
:
#666
;
color
:
#666
;
margin
:
16px
0
;
margin
:
16px
0
;
}
}
.tips
{
.tips
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#999
;
color
:
#999
;
}
}
}
}
//
.title
{
//
.title
{
//
}
//
}
//
.type
{
//
.type
{
...
@@ -350,18 +360,23 @@ $color: #2a58ad;
...
@@ -350,18 +360,23 @@ $color: #2a58ad;
//
}
//
}
.cont
{
.cont
{
background-color
:
#fff
;
background-color
:
#fff
;
&.cont-table
{
&.cont-table
{
display
:
block
;
display
:
block
;
}
}
&
.cont-table1
{
&
.cont-table1
{
padding
:
16px
20px
20px
;
padding
:
16px
20px
20px
;
}
}
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding
:
16px
20px
32px
;
padding
:
16px
20px
32px
;
.mt16
{
.mt16
{
margin-top
:
16px
;
margin-top
:
16px
;
}
}
.msg
{
.msg
{
padding-bottom
:
12px
;
padding-bottom
:
12px
;
flex
:
1
0
auto
;
flex
:
1
0
auto
;
...
@@ -369,6 +384,7 @@ $color: #2a58ad;
...
@@ -369,6 +384,7 @@ $color: #2a58ad;
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
flex-start
;
line-height
:
24px
;
line-height
:
24px
;
.msg-title
{
.msg-title
{
width
:
138px
;
width
:
138px
;
//
height
:
20px
;
//
height
:
20px
;
...
@@ -376,6 +392,7 @@ $color: #2a58ad;
...
@@ -376,6 +392,7 @@ $color: #2a58ad;
color
:
#666666
;
color
:
#666666
;
text-align
:
right
;
text-align
:
right
;
}
}
.msg-val
{
.msg-val
{
//
height
:
20px
;
//
height
:
20px
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -383,24 +400,29 @@ $color: #2a58ad;
...
@@ -383,24 +400,29 @@ $color: #2a58ad;
text-align
:
left
;
text-align
:
left
;
}
}
}
}
.compute
{
.compute
{
&:first-child
{
&:first-child
{
margin-top
:
0px
;
margin-top
:
0px
;
}
}
margin-top
:
16px
;
margin-top
:
16px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
display
:
flex
;
display
:
flex
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
.manner
{
}
.manner
{}
.online
{
.online
{
&
+
.online
{
&
+
.online
{
margin-left
:
44px
;
margin-left
:
44px
;
}
}
color
:
$
color
;
color
:
$
color
;
}
}
}
}
.white-table
{
.white-table
{
margin-bottom
:
16px
;
margin-bottom
:
16px
;
display
:
flex
;
display
:
flex
;
...
@@ -409,6 +431,7 @@ $color: #2a58ad;
...
@@ -409,6 +431,7 @@ $color: #2a58ad;
color
:
#666666
;
color
:
#666666
;
border-top
:
1px
solid
#e5e5e5
;
border-top
:
1px
solid
#e5e5e5
;
border-left
:
1px
solid
#e5e5e5
;
border-left
:
1px
solid
#e5e5e5
;
.type1
{
.type1
{
//
&:first-child
{
//
&:first-child
{
//
border-top
:
1px
solid
#E5E5E5
;
//
border-top
:
1px
solid
#E5E5E5
;
...
@@ -421,66 +444,79 @@ $color: #2a58ad;
...
@@ -421,66 +444,79 @@ $color: #2a58ad;
border-bottom
:
1px
solid
#e5e5e5
;
border-bottom
:
1px
solid
#e5e5e5
;
border-right
:
1px
solid
#e5e5e5
;
border-right
:
1px
solid
#e5e5e5
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.type-name
{
.type-name
{
text-align
:
right
;
text-align
:
right
;
width
:
90px
;
width
:
90px
;
}
}
.type-val
{
.type-val
{
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
color
:
#1d1d1d
;
color
:
#1d1d1d
;
}
}
.type-color
{
.type-color
{
color
:
$
color
;
color
:
$
color
;
}
}
.date
{
.date
{
margin-right
:
10px
;
margin-right
:
10px
;
color
:
#1d1d1d
;
color
:
#1d1d1d
;
}
}
}
}
.type2
{
.type2
{
width
:
66.66%
;
width
:
66.66%
;
}
}
}
}
.title-table
{
.title-table
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
border
:
1px
solid
#e8e8ea
;
border
:
1px
solid
#e8e8ea
;
.head
{
.head
{
display
:
flex
;
display
:
flex
;
height
:
40px
;
height
:
40px
;
line-height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
text-align
:
center
;
background
:
#f2f4f7
;
background
:
#f2f4f7
;
.cost
{
.cost
{
&
+
.cost
{
&
+
.cost
{
border-left
:
1px
solid
#e8e8ea
;
border-left
:
1px
solid
#e8e8ea
;
}
}
flex
:
1
;
flex
:
1
;
}
}
}
}
.detail
{
.detail
{
display
:
flex
;
display
:
flex
;
min-height
:
40px
;
min-height
:
40px
;
color
:
#666666
;
color
:
#666666
;
border-top
:
1px
solid
#e8e8ea
;
border-top
:
1px
solid
#e8e8ea
;
.detail-i
{
.detail-i
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
&
+
.detail-i
{
&+.detail-i
{
border-left
:
1px
solid
#e8e8ea
;
border-left
:
1px
solid
#e8e8ea
;
}
}
flex
:
1
;
flex
:
1
;
}
}
}
}
}
}
}
}
.btns
{
.btns
{
margin-top
:
16px
;
margin-top
:
16px
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
}
}
</
style
>
</
style
>
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
d950c91
...
@@ -840,7 +840,7 @@ export default {
...
@@ -840,7 +840,7 @@ export default {
// return false
// return false
// let obj
// let obj
const
filterObj
=
deepClone
(
this
.
classificationObjSelect
)
const
filterObj
=
deepClone
(
this
.
classificationObjSelect
)
console
.
log
(
filterObj
,
"filterObj"
)
//
console.log(filterObj, "filterObj")
const
obj
=
{}
const
obj
=
{}
// obj = deepClone(...obj, this.classificationObjSelect[key])
// obj = deepClone(...obj, this.classificationObjSelect[key])
for
(
const
key
in
filterObj
)
{
for
(
const
key
in
filterObj
)
{
...
@@ -857,7 +857,7 @@ export default {
...
@@ -857,7 +857,7 @@ export default {
}
}
})
})
}
}
console
.
log
(
obj
,
'obj'
)
//
console.log(obj, 'obj')
if
(
this
.
classificationObj
.
goodsCostFlag
==
"Y"
)
{
if
(
this
.
classificationObj
.
goodsCostFlag
==
"Y"
)
{
const
arr
=
[
const
arr
=
[
{
{
...
@@ -1139,7 +1139,7 @@ export default {
...
@@ -1139,7 +1139,7 @@ export default {
return
item
return
item
})
})
this
.
forceUpdate
()
this
.
forceUpdate
()
console
.
log
(
this
.
classificationObj
[
name
][
index
].
children
,
"this.classificationObj[name][index].children"
)
//
console.log(this.classificationObj[name][index].children, "this.classificationObj[name][index].children")
}
}
},
},
handleInput
(
newValue
,
name
,
type
,
index
,
ChildrenIndex
)
{
handleInput
(
newValue
,
name
,
type
,
index
,
ChildrenIndex
)
{
...
@@ -1205,15 +1205,15 @@ export default {
...
@@ -1205,15 +1205,15 @@ export default {
// console.log('expenseCategoryRules', expenseCategoryRules)
// console.log('expenseCategoryRules', expenseCategoryRules)
const
setList
=
this
.
classificationObjSelect
const
setList
=
this
.
classificationObjSelect
// const list = {}
// const list = {}
console
.
log
(
'setList'
,
this
.
classificationObjSelect
)
//
console.log('setList', this.classificationObjSelect)
// 初始化类目
// 初始化类目
for
(
const
key
in
setList
)
{
for
(
const
key
in
setList
)
{
console
.
log
(
'setList[key]'
,
setList
[
key
])
//
console.log('setList[key]', setList[key])
console
.
log
(
'key'
,
key
)
//
console.log('key', key)
this
.
classificationObj
[
key
]
=
[]
this
.
classificationObj
[
key
]
=
[]
setList
[
key
].
forEach
((
item
)
=>
{
setList
[
key
].
forEach
((
item
)
=>
{
// debugger
// debugger
console
.
log
(
setList
[
key
])
//
console.log(setList[key])
const
editObj
=
const
editObj
=
expenseCategoryRules
.
find
(
expenseCategoryRules
.
find
(
(
el
)
=>
el
.
expenseCategoryId
==
item
.
expenseCategoryId
(
el
)
=>
el
.
expenseCategoryId
==
item
.
expenseCategoryId
...
@@ -1282,14 +1282,14 @@ export default {
...
@@ -1282,14 +1282,14 @@ export default {
// console.log(childrenObj, 'editChildrenObj')
// console.log(childrenObj, 'editChildrenObj')
}
}
// return Object.assign(childrenObj, editChildrenObj)
// return Object.assign(childrenObj, editChildrenObj)
console
.
log
(
editChildrenObj
,
'editChildrenObj'
)
//
console.log(editChildrenObj, 'editChildrenObj')
return
Object
.
assign
(
childrenObj
,
editChildrenObj
)
return
Object
.
assign
(
childrenObj
,
editChildrenObj
)
})
})
// console.log(obj.children, ' obj.children')
// console.log(obj.children, ' obj.children')
}
}
console
.
log
(
editObj
,
'obj'
)
//
console.log(editObj, 'obj')
this
.
classificationObj
[
key
].
push
(
Object
.
assign
(
obj
,
editObj
))
this
.
classificationObj
[
key
].
push
(
Object
.
assign
(
obj
,
editObj
))
console
.
log
(
this
.
classificationObj
,
' this.classificationObj'
)
//
console.log(this.classificationObj, ' this.classificationObj')
// debugger
// debugger
// this.classificationObj[key].push(Object.assign(obj))
// this.classificationObj[key].push(Object.assign(obj))
// 流量方分润/其他费用是按整单计算 服务商分润 均为按整单计算 不可操作
// 流量方分润/其他费用是按整单计算 服务商分润 均为按整单计算 不可操作
...
...
src/views/systemConfig/merchant/financialRules/components/verificationCodeDialog.vue
View file @
d950c91
...
@@ -5,12 +5,14 @@
...
@@ -5,12 +5,14 @@
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-suffix=
":"
label-width=
"180px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-suffix=
":"
label-width=
"180px"
>
<el-form-item
label=
"规则生效日期"
prop=
"effectStartDate"
required
>
<el-form-item
label=
"规则生效日期"
prop=
"effectStartDate"
:rules=
"[
{ required: !effectStartDate, message: '请选择生效开始日期', trigger: 'blur' }]">
<!-- placeholder="请输入服务开始时间"
<!-- placeholder="请输入服务开始时间"
prefix-icon="0" -->
prefix-icon="0" -->
<el-date-picker
value-format=
"yyyy-MM-dd"
v-model=
"form.effectStartDate"
type=
"date"
<el-date-picker
v
-if=
"!effectStartDate"
v
alue-format=
"yyyy-MM-dd"
v-model=
"form.effectStartDate"
type=
"date"
:picker-options=
"expireTimeOPtion"
>
:picker-options=
"expireTimeOPtion"
>
</el-date-picker>
</el-date-picker>
<span
v-else
>
立即生效
</span>
<!--
<el-input
placeholder=
"请填写验证码"
<!--
<el-input
placeholder=
"请填写验证码"
v-model=
"form.smsCode"
v-model=
"form.smsCode"
:size=
"size"
:size=
"size"
...
@@ -39,6 +41,9 @@ export default {
...
@@ -39,6 +41,9 @@ export default {
// 弹窗是否展示
// 弹窗是否展示
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
effectStartDate
:
{
type
:
Boolean
}
}
},
},
computed
:
{
computed
:
{
...
@@ -66,8 +71,8 @@ export default {
...
@@ -66,8 +71,8 @@ export default {
effectStartDate
:
''
effectStartDate
:
''
},
},
rules
:
{
rules
:
{
smsCode
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
,
smsCode
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
effectStartDate
:
[{
required
:
true
,
message
:
'请选择生效开始日期'
,
trigger
:
'blur'
}]
//
effectStartDate: [{ required: true, message: '请选择生效开始日期', trigger: 'blur' }]
},
},
// 短信模块
// 短信模块
isSend
:
false
,
isSend
:
false
,
...
...
src/views/systemConfig/merchant/financialRules/index.vue
View file @
d950c91
...
@@ -109,8 +109,8 @@
...
@@ -109,8 +109,8 @@
</div>
</div>
</div>
</div>
<verificationCodeDialog
v-if=
"verificationCodeVisible"
@
handleConfirm=
"codeHandleConfirm
"
<verificationCodeDialog
v-if=
"verificationCodeVisible"
:effect-start-date=
"effectStartDate
"
:visible
.
sync=
"verificationCodeVisible"
/>
@
handleConfirm=
"codeHandleConfirm"
:visible
.
sync=
"verificationCodeVisible"
/>
<!-- 财务分账测试 -->
<!-- 财务分账测试 -->
<merchantTestDialog
v-if=
"merchantTestVisible"
:rules-test-params=
"rulesTestParams"
<merchantTestDialog
v-if=
"merchantTestVisible"
:rules-test-params=
"rulesTestParams"
...
@@ -123,8 +123,12 @@
...
@@ -123,8 +123,12 @@
import
{
mapActions
,
mapGetters
,
mapMutations
}
from
'vuex'
import
{
mapActions
,
mapGetters
,
mapMutations
}
from
'vuex'
import
{
sceneList
,
userType
,
attrToVal
as
attrToValOptions
}
from
'@/common/constants'
import
{
sceneList
,
userType
,
attrToVal
as
attrToValOptions
}
from
'@/common/constants'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
scenemerchantrefQueryServiceRefByShop
,
merchantSettleDistributeRuleLastRule
,
merchantSettleDistributeRule
,
getMerchantLevelApi
,
getDjzhySubMerchant
}
from
'@api/merchant'
import
{
scenemerchantrefQueryServiceRefByShop
,
merchantSettleDistributeRuleLastRule
,
merchantSettleDistributeRule
,
getMerchantLevelApi
,
getDjzhySubMerchant
,
getLedgerHistoryRecordApi
}
from
'@api/merchant'
import
{
getPlatformMerchantList
}
from
'@api/index'
import
{
getPlatformMerchantList
}
from
'@api/index'
import
{
queryFeeCategoryByType
,
getGoodsCategoryConfiguration
}
from
'@/api/sys.base.js'
import
{
queryFeeCategoryByType
,
getGoodsCategoryConfiguration
}
from
'@/api/sys.base.js'
import
verificationCodeDialog
from
'./components/verificationCodeDialog'
import
verificationCodeDialog
from
'./components/verificationCodeDialog'
import
classificationCpt
from
'./components/classificationCpt.vue'
import
classificationCpt
from
'./components/classificationCpt.vue'
...
@@ -207,7 +211,8 @@ export default {
...
@@ -207,7 +211,8 @@ export default {
DjzhySubMerchantObj
:
{
DjzhySubMerchantObj
:
{
djzhySubMerchantId
:
''
,
djzhySubMerchantId
:
''
,
djzhySubMerchantName
:
''
djzhySubMerchantName
:
''
}
},
effectStartDate
:
false
// 规则时间 true 表示可以立即生效 是否立即生效
}
}
},
},
computed
:
{
computed
:
{
...
@@ -304,6 +309,7 @@ export default {
...
@@ -304,6 +309,7 @@ export default {
this
.
init4sServiceList
()
this
.
init4sServiceList
()
this
.
initFeeCategoryByType
()
this
.
initFeeCategoryByType
()
this
.
getGoodsCategoryConfiguration
()
this
.
getGoodsCategoryConfiguration
()
this
.
getLedgerHistoryRecordApi
()
const
{
merchantId
}
=
this
.
routerInfo
const
{
merchantId
}
=
this
.
routerInfo
// yqMerchant && this.getMerchantLevel(yqMerchant.merchantId, 'PlatformLevelList')
// yqMerchant && this.getMerchantLevel(yqMerchant.merchantId, 'PlatformLevelList')
this
.
initPlatformLevelList
()
this
.
initPlatformLevelList
()
...
@@ -338,6 +344,25 @@ export default {
...
@@ -338,6 +344,25 @@ export default {
const
{
settleTimeType
,
settleTime
}
=
this
.
financialObj
const
{
settleTimeType
,
settleTime
}
=
this
.
financialObj
this
.
settleTimeObj
[
settleTimeType
==
1
?
'first'
:
'second'
]
=
settleTime
this
.
settleTimeObj
[
settleTimeType
==
1
?
'first'
:
'second'
]
=
settleTime
},
},
getLedgerHistoryRecordApi
()
{
// 根据历史记录 处理财务生效记录的选项
const
{
merchantId
,
scene
:
sceneType
}
=
this
.
routerInfo
getLedgerHistoryRecordApi
({
merchantId
,
sceneType
}).
then
(
res
=>
{
// 立即生效或者需选择
// console.log(res.every(item => {
// return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi')
this
.
effectStartDate
=
res
.
every
(
item
=>
{
return
item
.
rule
.
enableFlag
==
3
})
||
!
res
.
length
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
getGoodsCategoryConfiguration
()
{
getGoodsCategoryConfiguration
()
{
// const { scene: sceneType } = this.routerInfo
// const { scene: sceneType } = this.routerInfo
// sceneType
// sceneType
...
@@ -512,8 +537,9 @@ export default {
...
@@ -512,8 +537,9 @@ export default {
},
},
codeHandleConfirm
({
smsCode
,
effectStartDate
})
{
codeHandleConfirm
({
smsCode
,
effectStartDate
})
{
this
.
submitParams
.
smsCode
=
smsCode
this
.
submitParams
.
smsCode
=
smsCode
this
.
submitParams
.
effectStartDate
=
effectStartDate
+
' 00:00:00'
// this.submitParams.effectStartDate = effectStartDate
// console.log(this.submitParams)
this
.
submitParams
.
effectStartDate
=
effectStartDate
?
effectStartDate
+
' 00:00:00'
:
''
console
.
log
(
this
.
submitParams
)
// return
// return
merchantSettleDistributeRule
({
json
:
JSON
.
stringify
(
this
.
submitParams
)
}).
then
((
result
)
=>
{
merchantSettleDistributeRule
({
json
:
JSON
.
stringify
(
this
.
submitParams
)
}).
then
((
result
)
=>
{
...
...
src/views/systemConfig/merchant/merchantStep/merchantCheck.vue
View file @
d950c91
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
<el-button
size=
"small"
@
click=
"handleReset"
>
取消
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
取消
</el-button>
</div>
</div>
</div>
</div>
<verificationCodeDialog
v-if=
"verificationCodeVisible"
@
handleConfirm=
"codeHandleConfirm
"
<verificationCodeDialog
v-if=
"verificationCodeVisible"
:effect-start-date=
"effectStartDate
"
:visible
.
sync=
"verificationCodeVisible"
/>
@
handleConfirm=
"codeHandleConfirm"
:visible
.
sync=
"verificationCodeVisible"
/>
</d2-Container>
</d2-Container>
</template>
</template>
...
@@ -89,8 +89,9 @@ import { sceneList } from "@/common/constants"
...
@@ -89,8 +89,9 @@ import { sceneList } from "@/common/constants"
import
{
import
{
saveRuleApi
,
saveRuleApi
,
getEffectRuleApi
,
getEffectRuleApi
,
getQueryFeeCategoryByTypeApi
getQueryFeeCategoryByTypeApi
,
addContactgetReconciliationHistoryRecordApi
}
from
"@api/merchant"
}
from
"@api/merchant"
import
{
getGoodsCategoryConfiguration
}
from
'@/api/sys.base.js'
import
{
getGoodsCategoryConfiguration
}
from
'@/api/sys.base.js'
import
classificationCpt
from
"./components/classificationCpt.vue"
import
classificationCpt
from
"./components/classificationCpt.vue"
import
verificationCodeDialog
from
'../financialRules/components/verificationCodeDialog'
import
verificationCodeDialog
from
'../financialRules/components/verificationCodeDialog'
...
@@ -104,10 +105,11 @@ export default {
...
@@ -104,10 +105,11 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
effectStartDateDate
:
''
,
effectStartDate
:
false
,
// 规则时间 true 表示可以立即生效 是否立即生效
sceneList
,
sceneList
,
verificationCodeVisible
:
false
,
verificationCodeVisible
:
false
,
smsCode
:
''
,
smsCode
:
''
,
effectStartDate
:
''
,
goodsTypeGroupRulesAll
:
[],
// 所有的要提交的formdata goodsTypeGroupRules
goodsTypeGroupRulesAll
:
[],
// 所有的要提交的formdata goodsTypeGroupRules
editableTabsValue
:
"1"
,
editableTabsValue
:
"1"
,
currentIndex
:
1
,
currentIndex
:
1
,
...
@@ -175,6 +177,7 @@ export default {
...
@@ -175,6 +177,7 @@ export default {
this
.
getEffectRule
()
// 获取对账规则
this
.
getEffectRule
()
// 获取对账规则
},
1000
)
},
1000
)
this
.
initBaseData
()
this
.
initBaseData
()
this
.
addContactgetReconciliationHistoryRecordApi
()
},
},
watch
:
{
watch
:
{
productType
:
{
productType
:
{
...
@@ -193,6 +196,25 @@ export default {
...
@@ -193,6 +196,25 @@ export default {
}
}
return
"%"
return
"%"
},
},
addContactgetReconciliationHistoryRecordApi
()
{
// 根据历史记录 处理财务生效记录的选项
const
{
merchantId
,
scene
:
sceneType
}
=
this
.
routerInfo
getLedgerHistoryRecordApi
({
merchantId
,
sceneType
}).
then
(
res
=>
{
// 立即生效或者需选择
// console.log(res.every(item => {
// return item.rule.enableFlag == 3
// }), 'getLedgerHistoryRecordApi')
this
.
effectStartDate
=
res
.
every
(
item
=>
{
return
item
.
rule
.
enableFlag
==
3
})
||
!
res
.
length
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
getQueryFeeCategoryByType
()
{
getQueryFeeCategoryByType
()
{
const
params
=
{
const
params
=
{
feeCategoryType
:
2
,
feeCategoryType
:
2
,
...
@@ -539,7 +561,7 @@ export default {
...
@@ -539,7 +561,7 @@ export default {
},
},
// 获取弹框中的验证码
// 获取弹框中的验证码
codeHandleConfirm
({
smsCode
,
effectStartDate
})
{
codeHandleConfirm
({
smsCode
,
effectStartDate
})
{
this
.
effectStartDate
=
effectStartDate
+
' 00:00:00
'
this
.
effectStartDate
Date
=
effectStartDate
?
effectStartDate
+
' 00:00:00'
:
'
'
this
.
smsCode
=
smsCode
this
.
smsCode
=
smsCode
this
.
submitFormData
()
this
.
submitFormData
()
},
},
...
@@ -548,7 +570,7 @@ export default {
...
@@ -548,7 +570,7 @@ export default {
const
{
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
}
=
this
.
formObj
const
{
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
}
=
this
.
formObj
const
params
=
{
const
params
=
{
smsCode
:
this
.
smsCode
,
smsCode
:
this
.
smsCode
,
effectStartDate
:
this
.
effectStartDate
,
effectStartDate
:
this
.
effectStartDate
Date
,
merchantId
:
this
.
merchantRow
.
merchantId
,
merchantId
:
this
.
merchantRow
.
merchantId
,
sceneType
:
this
.
merchantRow
.
scene
,
sceneType
:
this
.
merchantRow
.
scene
,
goodsTypeGroupRules
:
this
.
goodsTypeGroupRulesAll
,
goodsTypeGroupRules
:
this
.
goodsTypeGroupRulesAll
,
...
...
src/views/systemConfig/merchant/merchantStep/merchantCheckRecord.vue
View file @
d950c91
...
@@ -28,6 +28,10 @@
...
@@ -28,6 +28,10 @@
操作人:
{{
formItem
.
updatedBy
}}
操作时间:
操作人:
{{
formItem
.
updatedBy
}}
操作时间:
{{
formItem
.
formatUpdatedDate
}}
{{
formItem
.
formatUpdatedDate
}}
</span>
</span>
<span
class=
"updatedInfo"
>
审核人:
{{
formItem
.
auditorName
}}
审核时间:
{{
formItem
.
formatAuditDate
}}
</span>
<span
class=
"collapse"
@
click=
"collapseItem(index)"
>
<span
class=
"collapse"
@
click=
"collapseItem(index)"
>
<i
:class=
"
{ move: formItem.show }" class="arrow el-icon-arrow-down" />
<i
:class=
"
{ move: formItem.show }" class="arrow el-icon-arrow-down" />
{{
formItem
.
show
?
"收起"
:
"展开"
}}
{{
formItem
.
show
?
"收起"
:
"展开"
}}
...
@@ -126,40 +130,41 @@ export default {
...
@@ -126,40 +130,41 @@ export default {
}
}
})
})
},
},
getDetail
()
{
// getDetail() {
// const merchantId = this.merchantRow.merchantId
// // const merchantId = this.merchantRow.merchantId
const
merchantId
=
44209883
// const merchantId = 44209883
if
(
!
merchantId
)
return
// if (!merchantId) return
getHistoryRecord
({
merchantId
}).
then
((
res
)
=>
{
// getHistoryRecord({ merchantId }).then((res) => {
// console.log(res)
// // console.log(res)
// dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD')
// // dayjs(this.summaryDate).startOf('month').format('YYYY-MM-DD')
// const timeLabele = {
// // const timeLabele = {
// }
// // }
// let financialRulesList = res
// // let financialRulesList = res
// 财务规则有三个模式 待生效 生效中 历史
// // 财务规则有三个模式 待生效 生效中 历史
// 根据effectEndDate 和 effectStartDate
// // 根据effectEndDate 和 effectStartDate
// console.log(res)
// // console.log(res)
this
.
formArray
=
res
.
map
((
item
)
=>
{
// this.formArray = res.map((item) => {
const
format
=
"YYYY/MM/DD HH:mm"
// const format = "YYYY/MM/DD HH:mm"
const
createdDate
=
item
.
createdDate
// const createdDate = item.createdDate
item
.
merchant
=
item
?.
divisionRule
?.
realityDivisionMerchant
// item.merchant = item?.divisionRule?.realityDivisionMerchant
item
=
Object
.
assign
(
item
,
item
.
settleRule
,
item
.
divisionRule
)
// item = Object.assign(item, item.settleRule, item.divisionRule)
// 这个值强制取item里面的
// // 这个值强制取item里面的
item
.
createdDate
=
createdDate
// item.createdDate = createdDate
item
.
formatEffectEndDate
=
item
.
effectEndDate
// item.formatEffectEndDate = item.effectEndDate
?
dayjs
(
item
.
effectEndDate
).
format
(
format
)
// ? dayjs(item.effectEndDate).format(format)
:
""
// : ""
item
.
formatEffectStartDate
=
item
.
effectStartDate
// item.formatEffectStartDate = item.effectStartDate
?
dayjs
(
item
.
effectStartDate
).
format
(
format
)
// ? dayjs(item.effectStartDate).format(format)
:
""
// : ""
// console.log('item.createdDate', item.createdDate)
// // console.log('item.createdDate', item.createdDate)
item
.
formatUpdatedDate
=
dayjs
(
item
.
createdDate
).
format
(
format
)
// item.formatUpdatedDate = dayjs(item.createdDate).format(format)
item
.
show
=
false
// item.formatAuditDate = dayjs(item.auditDate).format(format)
return
item
// item.show = false
})
// return item
})
// })
},
// })
// },
init
()
{
init
()
{
if
(
this
.
activeName
==
"first"
)
{
if
(
this
.
activeName
==
"first"
)
{
this
.
getLedgerHistoryRecord
()
this
.
getLedgerHistoryRecord
()
...
@@ -263,7 +268,7 @@ $color: #2a58ad;
...
@@ -263,7 +268,7 @@ $color: #2a58ad;
.label
{
.label
{
padding-left
:
8px
;
padding-left
:
8px
;
width
:
37
%
;
width
:
25
%
;
}
}
.labelColor
{
.labelColor
{
...
@@ -271,7 +276,7 @@ $color: #2a58ad;
...
@@ -271,7 +276,7 @@ $color: #2a58ad;
}
}
.updatedInfo
{
.updatedInfo
{
width
:
4
0%
;
width
:
2
0%
;
text-align
:
left
;
text-align
:
left
;
}
}
...
@@ -661,4 +666,5 @@ $color: #2a58ad;
...
@@ -661,4 +666,5 @@ $color: #2a58ad;
//
.part5
{
//
.part5
{
//
}
//
}
}
}
}
</
style
>
}
</
style
>
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