Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
e14c1794
Commit
e14c1794
authored
Oct 17, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 批量处理
parent
abae9fe6
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
2362 additions
and
1364 deletions
+2362
-1364
index.js
api/maintain/index.js
+32
-0
index.vue
components/cell-maintain-bill/index.vue
+87
-35
index.vue
components/fab-view/index.vue
+12
-2
index.vue
components/submit-button/index.vue
+5
-1
pages.json
pages.json
+9
-0
index.vue
pages/bill/batch-settle/index.vue
+443
-0
debit-note.vue
pages/bill/debit-note/debit-note.vue
+6
-0
cell-employee.vue
pages/maintain-bill/components/cell-employee.vue
+174
-0
show-voucher.vue
pages/maintain-bill/components/show-voucher.vue
+13
-14
create - 副本.vue
pages/maintain-bill/create - 副本.vue
+0
-0
create.vue
pages/maintain-bill/create.vue
+958
-833
detail.vue
pages/maintain-bill/detail.vue
+1
-1
index.vue
pages/maintain-bill/index.vue
+26
-8
normal-create - 副本.vue
pages/maintain-bill/normal-create - 副本.vue
+0
-0
normal-create.vue
pages/maintain-bill/normal-create.vue
+586
-467
show.vue
pages/maintain-bill/show.vue
+1
-1
common.js
utils/common.js
+7
-0
refund.js
utils/options/maintain-bill/refund.js
+2
-2
No files found.
api/maintain/index.js
View file @
e14c1794
...
@@ -159,3 +159,35 @@ export async function createOrUpdateService(data) {
...
@@ -159,3 +159,35 @@ export async function createOrUpdateService(data) {
noLoading
:
true
noLoading
:
true
})
})
}
}
<<<<<<<
HEAD
// 获取批量结算数据
export
async
function
batchSettleInfo
(
data
)
{
return
request
({
url
:
`/rest/repair/batchSettleInfo`
,
method
:
'PUT'
,
data
,
noLoading
:
true
})
}
// 批量结清
export
async
function
batchSettle
(
data
)
{
return
request
({
url
:
`/rest/repair/batchSettle`
,
method
:
'POST'
,
data
,
noLoading
:
true
})
}
=======
export
async
function
getProjectMembersKnow
(
data
)
{
return
request
({
url
:
`/rest/repair/customer`
,
method
:
'GET'
,
data
,
noLoading
:
true
})
}
>>>>>>>
99
e09f9d86cff0a0236b74c285848ed7af1a7f1a
components/cell-maintain-bill/index.vue
View file @
e14c1794
<
template
>
<
template
>
<view
class=
"cell-maintain-bill
"
>
<view
:class=
"['cell-maintain-bill',
{select: isSelect}]
">
<view
<view
v-if=
"isSelect"
class=
"left-select-view"
@
click=
"$u.throttle(handleAction, 500)"
hover-class=
"u-hover-class"
>
class=
"content-view"
<u-icon
v-if=
"info.selected"
name=
"checkmark-circle-fill"
color=
"#02A074"
size=
"42"
></u-icon>
hover-class=
"u-hover-class"
<view
v-else
class=
"select-icon"
></view>
@
click
.
stop=
"$u.throttle(handleSelect, 500)"
</view>
>
<view
class=
"content-view"
hover-class=
"u-hover-class"
@
click
.
stop=
"$u.throttle(handleSelect, 500)"
>
<view
class=
"title-view"
>
<view
class=
"title-view"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
<view
class=
"type-view"
:style=
"currentType.style"
><text>
{{
currentType
.
name
}}
</text></view>
<view
:class=
"['type-view',
{select: isSelect}]" :style="currentMaintainType.style">
<text>
{{
currentMaintainType
.
name
}}
</text></view>
<view>
{{
info
.
id
}}
</view>
<view>
{{
info
.
id
}}
</view>
</view>
</view>
<view
class=
"status-view"
>
<view
class=
"status-view"
>
...
@@ -16,7 +17,7 @@
...
@@ -16,7 +17,7 @@
<image
:src=
"statusSetting[info.settleState.code].image"
></image>
<image
:src=
"statusSetting[info.settleState.code].image"
></image>
</view>
</view>
<view
class=
"status-text"
>
{{
<view
class=
"status-text"
>
{{
statusSetting
[
info
.
settleState
.
code
].
text
statusSetting
[
info
.
settleState
.
code
].
text
}}
</view>
}}
</view>
</view>
</view>
<view
class=
"item-view"
>
<view
class=
"item-view"
>
...
@@ -24,7 +25,7 @@
...
@@ -24,7 +25,7 @@
<image
:src=
"statusSetting[info.sendStatus.code].image"
></image>
<image
:src=
"statusSetting[info.sendStatus.code].image"
></image>
</view>
</view>
<view
class=
"status-text"
>
{{
<view
class=
"status-text"
>
{{
statusSetting
[
info
.
sendStatus
.
code
].
text
statusSetting
[
info
.
sendStatus
.
code
].
text
}}
</view>
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -52,16 +53,13 @@
...
@@ -52,16 +53,13 @@
</view>
</view>
<!--
<view
class=
"line-view"
></view>
-->
<!--
<view
class=
"line-view"
></view>
-->
<view
<view
class=
"bottom-view"
:style=
"statusSetting[info.settleState.code].style"
>
class=
"bottom-view"
:style=
"statusSetting[info.settleState.code].style"
>
<view
v-for=
"(item, index) in bottoms"
:key=
"index"
class=
"item-view"
>
<view
v-for=
"(item, index) in bottoms"
:key=
"index"
class=
"item-view"
>
<view
v-if=
"index % 2"
class=
"line-view"
>
</view>
<view
v-if=
"index % 2"
class=
"line-view"
>
</view>
<template
v-else
>
<template
v-else
>
<view>
{{
item
.
title
}}
</view>
<view>
{{
item
.
title
}}
</view>
<view
:style=
"'color:' + item.color"
class=
"count-view"
>
{{
<view
:style=
"'color:' + item.color"
class=
"count-view"
>
{{
item
.
value
item
.
value
}}
</view>
}}
</view>
</
template
>
</
template
>
</view>
</view>
...
@@ -77,7 +75,7 @@ export default {
...
@@ -77,7 +75,7 @@ export default {
props
:
{
props
:
{
info
:
{
info
:
{
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
return
{}
return
{}
},
},
},
},
...
@@ -85,38 +83,45 @@ export default {
...
@@ -85,38 +83,45 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
type
:
{
type
:
String
,
default
:
'normal'
}
},
},
data
()
{
data
()
{
return
{}
return
{}
},
},
computed
:
{
computed
:
{
baseUrl
()
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
return
process
.
uniEnv
.
qn_base_url
},
},
middleImage
()
{
isSelect
()
{
return
this
.
type
==
'select'
},
middleImage
()
{
return
this
.
baseUrl
+
'fengexuxian-s@3x.png'
return
this
.
baseUrl
+
'fengexuxian-s@3x.png'
},
},
locationImage
()
{
locationImage
()
{
return
this
.
baseUrl
+
'weixiudizhi-l@3x.png'
return
this
.
baseUrl
+
'weixiudizhi-l@3x.png'
},
},
timeImage
()
{
timeImage
()
{
return
this
.
baseUrl
+
'weixiushijian-l@3x.png'
return
this
.
baseUrl
+
'weixiushijian-l@3x.png'
},
},
yijieqingImage
()
{
yijieqingImage
()
{
return
this
.
baseUrl
+
'yijieqing-n@3x.png'
return
this
.
baseUrl
+
'yijieqing-n@3x.png'
},
},
weiquerenImage
()
{
weiquerenImage
()
{
return
this
.
baseUrl
+
'weiqueren@3x.png'
return
this
.
baseUrl
+
'weiqueren@3x.png'
},
},
weijieqingImage
()
{
weijieqingImage
()
{
return
this
.
baseUrl
+
'weijieqing@3x.png'
return
this
.
baseUrl
+
'weijieqing@3x.png'
},
},
weifasongImage
()
{
weifasongImage
()
{
return
this
.
baseUrl
+
'weifasong@3x.png'
return
this
.
baseUrl
+
'weifasong@3x.png'
},
},
// sendStatus WAIT:未发送;WAIT_SURE:未确定;SURE:已确定
// sendStatus WAIT:未发送;WAIT_SURE:未确定;SURE:已确定
// settleState NO:未结清;YES:已结清
// settleState NO:未结清;YES:已结清
statusSetting
()
{
statusSetting
()
{
return
{
return
{
WAIT_SURE
:
{
text
:
'未确认'
,
image
:
this
.
weiquerenImage
},
WAIT_SURE
:
{
text
:
'未确认'
,
image
:
this
.
weiquerenImage
},
NO
:
{
NO
:
{
...
@@ -135,7 +140,7 @@ export default {
...
@@ -135,7 +140,7 @@ export default {
SURE
:
{
text
:
'已确认'
,
image
:
this
.
yijieqingImage
},
SURE
:
{
text
:
'已确认'
,
image
:
this
.
yijieqingImage
},
}
}
},
},
bottoms
()
{
bottoms
()
{
var
result
=
var
result
=
Number
(
this
.
info
[
'receivableAmount'
]
||
0
)
-
Number
(
this
.
info
[
'receivableAmount'
]
||
0
)
-
Number
(
this
.
info
[
'actualAmount'
]
||
0
)
Number
(
this
.
info
[
'actualAmount'
]
||
0
)
...
@@ -162,15 +167,15 @@ export default {
...
@@ -162,15 +167,15 @@ export default {
},
},
]
]
},
},
isRefund
()
{
isRefund
()
{
return
this
.
info
.
type
==
'refund'
return
this
.
info
.
type
==
'refund'
},
},
types
()
{
maintainTypes
()
{
return
{
return
{
'receipt'
:
{
'receipt'
:
{
name
:
'小票'
,
name
:
'小票'
,
style
:
'background-color: #A4E9D5'
style
:
'background-color: #A4E9D5'
},
},
'voucher'
:
{
'voucher'
:
{
name
:
'凭证'
,
name
:
'凭证'
,
style
:
'background-color: #FFDCAF'
style
:
'background-color: #FFDCAF'
...
@@ -185,16 +190,20 @@ export default {
...
@@ -185,16 +190,20 @@ export default {
},
},
}
}
},
},
current
Type
()
{
current
MaintainType
()
{
return
this
.
info
.
type
?
this
.
t
ypes
[
this
.
info
.
type
]
:
{}
return
this
.
info
.
type
?
this
.
maintainT
ypes
[
this
.
info
.
type
]
:
{}
}
}
},
},
methods
:
{
methods
:
{
handleSelect
()
{
handleSelect
()
{
this
.
$emit
(
'select'
,
this
.
info
.
id
)
this
.
$emit
(
'select'
,
this
.
info
.
id
)
},
},
formatCount
(
count
)
{
handleAction
()
{
this
.
info
.
selected
=
!
this
.
info
.
selected
this
.
$emit
(
'action'
,
this
.
info
.
selected
,
this
.
info
.
id
)
},
formatCount
(
count
)
{
return
formatCount
(
count
)
return
formatCount
(
count
)
},
},
},
},
...
@@ -202,11 +211,33 @@ export default {
...
@@ -202,11 +211,33 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.cell-maintain-bill
{
.cell-maintain-bill
{
&
.select
{
display
:
flex
;
align-items
:
center
;
}
.left-select-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
height
:
100%
;
width
:
80rpx
;
flex-shrink
:
0
;
.select-icon
{
width
:
32rpx
;
height
:
32rpx
;
border-radius
:
50%
;
border
:
2rpx
solid
#cccccc
;
}
}
.content-view
{
.content-view
{
padding
:
32rpx
0
0
0
;
padding
:
32rpx
0
0
0
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
flex
:
1
;
.title-view
{
.title-view
{
padding
:
0
24rpx
0
0
;
padding
:
0
24rpx
0
0
;
...
@@ -215,10 +246,12 @@ export default {
...
@@ -215,10 +246,12 @@ export default {
align-items
:
center
;
align-items
:
center
;
color
:
#333333
;
color
:
#333333
;
font-size
:
28rpx
;
font-size
:
28rpx
;
.left-view
{
.left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
color
:
#8D8D8F
;
color
:
#8D8D8F
;
.type-view
{
.type-view
{
height
:
32rpx
;
height
:
32rpx
;
width
:
56rpx
;
width
:
56rpx
;
...
@@ -230,8 +263,13 @@ export default {
...
@@ -230,8 +263,13 @@ export default {
align-items
:
center
;
align-items
:
center
;
color
:
#333333
;
color
:
#333333
;
font-size
:
16rpx
;
font-size
:
16rpx
;
&
.select
{
margin-right
:
8rpx
;
}
}
}
}
}
.status-view
{
.status-view
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -239,15 +277,18 @@ export default {
...
@@ -239,15 +277,18 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
.item-view
{
.item-view
{
width
:
116rpx
;
width
:
116rpx
;
height
:
40rpx
;
height
:
40rpx
;
position
:
relative
;
position
:
relative
;
.image-view
{
.image-view
{
position
:
absolute
;
position
:
absolute
;
width
:
116rpx
;
width
:
116rpx
;
height
:
40rpx
;
height
:
40rpx
;
}
}
.status-text
{
.status-text
{
position
:
relative
;
position
:
relative
;
text-align
:
center
;
text-align
:
center
;
...
@@ -258,6 +299,7 @@ export default {
...
@@ -258,6 +299,7 @@ export default {
}
}
}
}
}
}
// .middle-view {
// .middle-view {
// background-color: transparent;
// background-color: transparent;
// width: 100%;
// width: 100%;
...
@@ -268,6 +310,7 @@ export default {
...
@@ -268,6 +310,7 @@ export default {
// margin: 32rpx 24rpx;
// margin: 32rpx 24rpx;
// background-color: #f6f7fa;
// background-color: #f6f7fa;
padding
:
32rpx
24rpx
;
padding
:
32rpx
24rpx
;
.name-view
{
.name-view
{
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
...
@@ -275,16 +318,19 @@ export default {
...
@@ -275,16 +318,19 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
.phone-view
{
.phone-view
{
margin-left
:
44rpx
;
margin-left
:
44rpx
;
}
}
}
}
.location-view
{
.location-view
{
color
:
#8D8D8F
;
color
:
#8D8D8F
;
font-size
:
28rpx
;
font-size
:
28rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
flex-start
;
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
.image-view
{
.image-view
{
width
:
28rpx
;
width
:
28rpx
;
height
:
28rpx
;
height
:
28rpx
;
...
@@ -293,11 +339,13 @@ export default {
...
@@ -293,11 +339,13 @@ export default {
margin-top
:
4rpx
;
margin-top
:
4rpx
;
}
}
}
}
.time-view
{
.time-view
{
color
:
#8D8D8F
;
color
:
#8D8D8F
;
font-size
:
28rpx
;
font-size
:
28rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.image-view
{
.image-view
{
width
:
28rpx
;
width
:
28rpx
;
height
:
28rpx
;
height
:
28rpx
;
...
@@ -307,10 +355,11 @@ export default {
...
@@ -307,10 +355,11 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.time-text
{
}
.time-text
{
}
}
}
}
}
// .line-view {
// .line-view {
// height: 2rpx;
// height: 2rpx;
// background-color: #f6f7fa;
// background-color: #f6f7fa;
...
@@ -324,11 +373,13 @@ export default {
...
@@ -324,11 +373,13 @@ export default {
color
:
#333333
;
color
:
#333333
;
font-size
:
24rpx
;
font-size
:
24rpx
;
height
:
92rpx
;
height
:
92rpx
;
.item-view
{
.item-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
text-align
:
center
;
text-align
:
center
;
color
:
#8D8D8F
;
color
:
#8D8D8F
;
.count-view
{
.count-view
{
color
:
#333333
;
color
:
#333333
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -336,6 +387,7 @@ export default {
...
@@ -336,6 +387,7 @@ export default {
margin-left
:
16rpx
;
margin-left
:
16rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
}
}
.line-view
{
.line-view
{
background-color
:
#eeeeee
;
background-color
:
#eeeeee
;
width
:
2rpx
;
width
:
2rpx
;
...
...
components/fab-view/index.vue
View file @
e14c1794
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
opacity: opacity,
opacity: opacity,
left: left + 'px',
left: left + 'px',
top: top + 'px',
top: top + 'px',
'background-color': backgroundColor,
'box-shadow': boxShadow
}"
}"
@click.stop="handleClick"
@click.stop="handleClick"
>
>
...
@@ -45,6 +47,14 @@ export default {
...
@@ -45,6 +47,14 @@ export default {
canMove
:
{
canMove
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
},
backgroundColor
:
{
type
:
String
,
default
:
'#02A074'
},
boxShadow
:
{
type
:
String
,
default
:
'0px 6px 12px 0px rgba(2, 160, 116, 0.3500)'
}
}
},
},
data
()
{
data
()
{
...
@@ -183,7 +193,7 @@ export default {
...
@@ -183,7 +193,7 @@ export default {
height
:
96rpx
;
height
:
96rpx
;
width
:
96rpx
;
width
:
96rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
background-color
:
#02A074
;
//
background-color: #02A074;
// background: linear-gradient(to right, #fff100, #ffde00);
// background: linear-gradient(to right, #fff100, #ffde00);
z-index
:
999
;
z-index
:
999
;
display
:
flex
;
display
:
flex
;
...
@@ -192,7 +202,7 @@ export default {
...
@@ -192,7 +202,7 @@ export default {
color
:
#ffffff
;
color
:
#ffffff
;
font-size
:
24rpx
;
font-size
:
24rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
box-shadow
:
0px
6px
12px
0px
rgba
(
2
,
160
,
116
,
0
.3500
);
//
box-shadow: 0px 6px 12px 0px rgba(2, 160, 116, 0.3500);
// padding-right: 4rpx;
// padding-right: 4rpx;
.image-icon
{
.image-icon
{
width
:
96rpx
;
width
:
96rpx
;
...
...
components/submit-button/index.vue
View file @
e14c1794
<
template
>
<
template
>
<view
:style=
"
{background:background}" class="submit-button-box" v-loading="loading">
<view
:style=
"
{background:background
,position:position
}" class="submit-button-box" v-loading="loading">
<view
class=
"submit-button"
:class=
"
{ disabled: disabled }" :style="buttonStyleString" hover-class="u-hover-class" @click.stop="$u.throttle(submit, 500)">
<view
class=
"submit-button"
:class=
"
{ disabled: disabled }" :style="buttonStyleString" hover-class="u-hover-class" @click.stop="$u.throttle(submit, 500)">
<u-icon
name=
"plus"
v-if=
"plusIcon"
class=
"plus-icon"
></u-icon>
<u-icon
name=
"plus"
v-if=
"plusIcon"
class=
"plus-icon"
></u-icon>
<view
class=
"submit-button-text"
>
{{
text
}}
</view>
<view
class=
"submit-button-text"
>
{{
text
}}
</view>
...
@@ -35,6 +35,10 @@ export default {
...
@@ -35,6 +35,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
position
:{
type
:
String
,
default
:
'fixed'
}
},
},
data
()
{
data
()
{
return
{};
return
{};
...
...
pages.json
View file @
e14c1794
...
@@ -110,6 +110,15 @@
...
@@ -110,6 +110,15 @@
}
}
},
{
},
{
"path"
:
"batch-settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"批量结清"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
},
{
"path"
:
"quoted-price/quoted-price"
,
"path"
:
"quoted-price/quoted-price"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"查报价"
,
"navigationBarTitleText"
:
"查报价"
,
...
...
pages/bill/batch-settle/index.vue
0 → 100644
View file @
e14c1794
This diff is collapsed.
Click to expand it.
pages/bill/debit-note/debit-note.vue
View file @
e14c1794
...
@@ -94,6 +94,12 @@ export default {
...
@@ -94,6 +94,12 @@ export default {
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
init
();
this
.
init
();
uni
.
$on
(
'debit-bill-list'
,
res
=>
{
this
.
init
();
});
},
onUnload
()
{
uni
.
$off
(
'debit-bill-list'
);
},
},
methods
:
{
methods
:
{
changeSearch
()
{
changeSearch
()
{
...
...
pages/maintain-bill/components/cell-employee.vue
0 → 100644
View file @
e14c1794
<
template
>
<view
class=
"cell-employee"
>
<view
class=
"content-view"
:hover-class=
"isNormal ? 'u-hover-class' : ''"
@
click
.
stop=
"$u.throttle(handleCickCell, 500)"
>
<view
class=
"left-view"
>
<view
class=
"image-view"
>
{{
imagekName
}}
</view>
<view
class=
"name-view"
>
{{
member
.
name
}}
</view>
<view
:class=
"['info-view',
{edit: isEdit}]">
{{
textInfo
}}
</view>
</view>
<view
class=
"right-view"
v-if=
"isSelect || isEdit"
>
<view
v-if=
"isSelect"
class=
"select-view"
@
click=
"$u.throttle(handleSelect, 500)"
hover-class=
"u-hover-class"
>
<u-icon
v-if=
"member.selected"
name=
"checkmark-circle-fill"
color=
"#02A074"
size=
"42"
></u-icon>
<view
v-else
class=
"select-icon"
></view>
</view>
<view
v-if=
"isEdit"
class=
"edit-view"
@
click=
"$u.throttle(handleClickButton, 500)"
hover-class=
"u-hover-class"
>
<image
:src=
"editImage"
class=
"edit-image"
></image>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
formatCount
}
from
'@/utils/common.js'
;
export
default
{
props
:
{
member
:
{
type
:
Object
,
default
()
{
return
{
id
:
''
,
name
:
''
,
notSettleAmount
:
''
,
mobile
:
''
,
}
},
},
// edit 编辑;select: 选择; normal
type
:
{
type
:
String
,
default
:
'edit'
,
},
},
data
()
{
return
{}
},
computed
:
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
imagekName
()
{
var
length
=
(
this
.
member
.
name
||
''
).
length
return
(
this
.
member
.
name
||
''
).
substring
(
length
-
2
)
},
isSelect
()
{
return
this
.
type
==
'select'
},
isEdit
()
{
return
this
.
type
==
'edit'
},
isNormal
()
{
return
this
.
type
==
'normal'
},
editImage
()
{
return
this
.
baseUrl
+
'bianjifuwufenlei@3x.png'
},
textInfo
()
{
var
count
=
(
Number
(
this
.
member
.
notSettleAmount
||
0
)
==
0
?
''
:
'¥'
+
formatCount
(
this
.
member
.
notSettleAmount
||
0
))
var
mobile
=
this
.
member
.
mobile
?
(
this
.
member
.
mobile
.
substring
(
0
,
3
)
+
' '
+
this
.
member
.
mobile
.
substring
(
3
,
7
)
+
' '
+
this
.
member
.
mobile
.
substring
(
7
,
11
))
:
''
return
this
.
isEdit
?
count
:
mobile
}
},
created
()
{
},
methods
:
{
handleClickButton
()
{
this
.
$emit
(
'action'
,
this
.
member
.
id
)
},
handleSelect
()
{
this
.
member
.
selected
=
!
this
.
member
.
selected
this
.
$emit
(
'select'
,
this
.
member
.
id
,
this
.
member
.
selected
)
},
handleCickCell
()
{
if
(
this
.
isNormal
)
{
this
.
$emit
(
'selectCell'
,
{...
this
.
member
})
}
}
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.cell-employee
{
padding
:
28rpx
0
28rpx
24rpx
;
min-height
:
120rpx
;
border-radius
:
8rpx
;
background-color
:
#ffffff
;
.content-view
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.left-view
{
display
:
flex
;
align-items
:
center
;
font-size
:
28rpx
;
font-weight
:
bold
;
color
:
#333333
;
.image-view
{
width
:
72rpx
;
height
:
72rpx
;
background-color
:
#02a074
;
border-radius
:
16rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
color
:
#ffffff
;
font-size
:
26rpx
;
}
.info-view
{
color
:
#333333
;
&
.edit
{
color
:
#fc524d
;
}
}
.name-view
{
margin-right
:
32rpx
;
margin-left
:
24rpx
;
max-width
:
120rpx
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
}
.right-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
flex
:
1
;
.select-view
{
width
:
80rpx
;
height
:
80rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.select-icon
{
width
:
32rpx
;
height
:
32rpx
;
border-radius
:
50%
;
border
:
2rpx
solid
#cccccc
;
}
}
}
.edit-view
{
width
:
80rpx
;
height
:
72rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.edit-image
{
width
:
32rpx
;
height
:
32rpx
;
}
}
}
}
</
style
>
pages/maintain-bill/components/show-voucher.vue
View file @
e14c1794
<
template
>
<
template
>
<view
class=
"voucher"
:style=
"
{'--color':defaultColor
,'--border':`2rpx solid ${borderColor}`
}">
<view
class=
"voucher"
:style=
"
{'--color':defaultColor}">
<view
class=
"voucher-title"
>
<view
class=
"voucher-title"
>
<view
class=
"voucher-title-text"
>
<view
class=
"voucher-title-text"
>
<text>
{{
detail
.
repairShopName
}}
</text>
<text>
{{
detail
.
repairShopName
}}
</text>
...
@@ -634,9 +634,7 @@ export default {
...
@@ -634,9 +634,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
// 橙色字体
// 橙色字体
// $orange-color: #eb872f;
$orange-color
:
var
(
--
color
);
$orange-color
:
var
(
--
color
);
$border
:
var
(
--
border
);
.voucher
{
.voucher
{
padding
:
24rpx
16rpx
;
padding
:
24rpx
16rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
...
@@ -660,8 +658,6 @@ $border: var(--border);
...
@@ -660,8 +658,6 @@ $border: var(--border);
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
6rpx
;
height
:
6rpx
;
// border-top: 2rpx solid $orange-color;
// border-bottom: 2rpx solid $orange-color;
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
box-sizing
:
border-box
;
// 为了与原元素等大
box-sizing
:
border-box
;
// 为了与原元素等大
...
@@ -670,7 +666,6 @@ $border: var(--border);
...
@@ -670,7 +666,6 @@ $border: var(--border);
top
:
0
;
top
:
0
;
width
:
200%
;
width
:
200%
;
height
:
200%
;
height
:
200%
;
// border: 1px solid gray;
border-top
:
2rpx
solid
$orange-color
;
border-top
:
2rpx
solid
$orange-color
;
border-bottom
:
2rpx
solid
$orange-color
;
border-bottom
:
2rpx
solid
$orange-color
;
transform
:
scale
(
0
.5
);
transform
:
scale
(
0
.5
);
...
@@ -728,7 +723,7 @@ $border: var(--border);
...
@@ -728,7 +723,7 @@ $border: var(--border);
line-height
:
22rpx
;
line-height
:
22rpx
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
6rpx
;
margin-top
:
6rpx
;
border
:
$borde
r
;
border
:
2rpx
solid
$orange-colo
r
;
position
:
relative
;
position
:
relative
;
.seal-view
{
.seal-view
{
position
:
absolute
;
position
:
absolute
;
...
@@ -742,7 +737,7 @@ $border: var(--border);
...
@@ -742,7 +737,7 @@ $border: var(--border);
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
height
:
34rpx
;
height
:
34rpx
;
border-top
:
$borde
r
;
border-top
:
2rpx
solid
$orange-colo
r
;
line-height
:
34rpx
;
line-height
:
34rpx
;
position
:
relative
;
position
:
relative
;
}
}
...
@@ -754,7 +749,7 @@ $border: var(--border);
...
@@ -754,7 +749,7 @@ $border: var(--border);
/* #ifdef APP-PLUS */
/* #ifdef APP-PLUS */
line-height
:
34rpx
;
line-height
:
34rpx
;
/* #endif */
/* #endif */
border-right
:
$borde
r
;
border-right
:
2rpx
solid
$orange-colo
r
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
word-break
:
break-all
;
word-break
:
break-all
;
...
@@ -767,9 +762,9 @@ $border: var(--border);
...
@@ -767,9 +762,9 @@ $border: var(--border);
padding
:
4rpx
4rpx
;
padding
:
4rpx
4rpx
;
line-height
:
26rpx
;
line-height
:
26rpx
;
/* #ifdef APP-PLUS */
/* #ifdef APP-PLUS */
line-height
:
34
rpx
;
line-height
:
26
rpx
;
/* #endif */
/* #endif */
border-right
:
$borde
r
;
border-right
:
2rpx
solid
$orange-colo
r
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -787,7 +782,7 @@ $border: var(--border);
...
@@ -787,7 +782,7 @@ $border: var(--border);
.voucher-table-tr
{
.voucher-table-tr
{
.voucher-table-td
{
.voucher-table-td
{
&
:last-child
{
&
:last-child
{
border-right
:
$borde
r
;
border-right
:
2rpx
solid
$orange-colo
r
;
}
}
}
}
}
}
...
@@ -796,7 +791,7 @@ $border: var(--border);
...
@@ -796,7 +791,7 @@ $border: var(--border);
flex
:
1
;
flex
:
1
;
height
:
100%
;
height
:
100%
;
padding
:
4rpx
4rpx
;
padding
:
4rpx
4rpx
;
border-top
:
$borde
r
;
border-top
:
2rpx
solid
$orange-colo
r
;
text-align
:
left
;
text-align
:
left
;
word-break
:
break-all
;
word-break
:
break-all
;
-webkit-line-clamp
:
7
;
-webkit-line-clamp
:
7
;
...
@@ -809,7 +804,7 @@ $border: var(--border);
...
@@ -809,7 +804,7 @@ $border: var(--border);
height
:
34rpx
;
height
:
34rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
border-top
:
$borde
r
;
border-top
:
2rpx
solid
$orange-colo
r
;
.voucher-table-td
{
.voucher-table-td
{
border-bottom
:
none
;
border-bottom
:
none
;
}
}
...
@@ -819,6 +814,10 @@ $border: var(--border);
...
@@ -819,6 +814,10 @@ $border: var(--border);
text-align
:
left
;
text-align
:
left
;
height
:
100%
;
height
:
100%
;
padding-left
:
16rpx
;
padding-left
:
16rpx
;
line-height
:
26rpx
;
/* #ifdef APP-PLUS */
line-height
:
28rpx
;
/* #endif */
&
-left
{
&
-left
{
width
:
70%
;
width
:
70%
;
}
}
...
...
pages/maintain-bill/create - 副本.vue
View file @
e14c1794
This diff is collapsed.
Click to expand it.
pages/maintain-bill/create.vue
View file @
e14c1794
This diff is collapsed.
Click to expand it.
pages/maintain-bill/detail.vue
View file @
e14c1794
...
@@ -427,7 +427,7 @@ export default {
...
@@ -427,7 +427,7 @@ export default {
duration
:
1500
,
duration
:
1500
,
callback
:
()
=>
{}
callback
:
()
=>
{}
});
});
uni
.
$emit
(
'
reloadList-
maintain-bill-list'
);
uni
.
$emit
(
'maintain-bill-list'
);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
})
})
...
...
pages/maintain-bill/index.vue
View file @
e14c1794
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</scroll-view>
</scroll-view>
</view>
</view>
<view
class=
"loading-view"
v-if=
"loading && !freshing"
><u-loading
mode=
"flower"
></u-loading></view>
<view
class=
"loading-view"
v-if=
"loading && !freshing"
><u-loading
mode=
"flower"
></u-loading></view>
<FabView
@
click=
"handleClickFab"
v-if=
"!customerId
"
/>
<FabView
:backgroundColor=
"fabStyle.backgroundColor"
:boxShadow=
"fabStyle.boxShadow"
:text=
"fabStyle.text"
@
click=
"handleClickFab
"
/>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
<DateRangePicker
ref=
"date-range-picker"
v-model=
"daterange"
:canReset=
"true"
type=
"daterange"
@
change=
"handleClickChange"
>
<DateRangePicker
ref=
"date-range-picker"
v-model=
"daterange"
:canReset=
"true"
type=
"daterange"
@
change=
"handleClickChange"
>
<view
style=
"left:200%"
></view>
<view
style=
"left:200%"
></view>
...
@@ -156,6 +156,17 @@ export default {
...
@@ -156,6 +156,17 @@ export default {
},
},
end
()
{
end
()
{
return
this
.
daterange
.
length
>
0
&&
this
.
daterange
[
1
]
?
this
.
daterange
[
1
]
+
' 23:59:59'
:
''
;
return
this
.
daterange
.
length
>
0
&&
this
.
daterange
[
1
]
?
this
.
daterange
[
1
]
+
' 23:59:59'
:
''
;
},
fabStyle
()
{
return
this
.
customerId
?
{
backgroundColor
:
'#3383FE'
,
boxShadow
:
'0px 6px 12px 0px rgba(51, 131, 254, 0.3500)'
,
text
:
'批量结清'
}
:
{
backgroundColor
:
'#02A074'
,
boxShadow
:
'0px 6px 12px 0px rgba(2, 160, 116, 0.3500)'
,
text
:
'记账收据'
}
}
}
},
},
onLoad
(
query
)
{
onLoad
(
query
)
{
...
@@ -177,9 +188,6 @@ export default {
...
@@ -177,9 +188,6 @@ export default {
uni
.
$off
(
'maintain-bill-list'
);
uni
.
$off
(
'maintain-bill-list'
);
},
},
onShow
()
{
onShow
()
{
uni
.
$on
(
'reloadList-maintain-bill-list'
,
res
=>
{
this
.
reloadList
();
});
},
},
methods
:
{
methods
:
{
toDetail
(
item
)
{
toDetail
(
item
)
{
...
@@ -292,10 +300,20 @@ export default {
...
@@ -292,10 +300,20 @@ export default {
});
});
},
},
handleClickFab
()
{
handleClickFab
()
{
this
.
$u
.
route
({
if
(
this
.
customerId
)
{
url
:
'pages/maintain-bill/bill-style'
,
this
.
$u
.
route
({
params
:
{}
url
:
'pages/bill/batch-settle/index'
,
});
params
:
{
customerId
:
this
.
customerId
}
});
}
else
{
this
.
$u
.
route
({
url
:
'pages/maintain-bill/bill-style'
,
params
:
{}
});
}
},
},
handlClickRight
()
{
handlClickRight
()
{
this
.
$u
.
route
({
this
.
$u
.
route
({
...
...
pages/maintain-bill/normal-create - 副本.vue
0 → 100644
View file @
e14c1794
This diff is collapsed.
Click to expand it.
pages/maintain-bill/normal-create.vue
View file @
e14c1794
This diff is collapsed.
Click to expand it.
pages/maintain-bill/show.vue
View file @
e14c1794
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<view
class=
"scroll-view"
v-else-if=
"info.type === 'collection'"
>
<view
class=
"scroll-view"
v-else-if=
"info.type === 'collection'"
>
<show-collection
ref=
"show-collection"
:detail=
"info"
@
save=
"savePoster"
@
preview=
"previewPoster"
></show-collection>
<show-collection
ref=
"show-collection"
:detail=
"info"
@
save=
"savePoster"
@
preview=
"previewPoster"
></show-collection>
</view>
</view>
<view
class=
"scroll-view
>
"
v-else
>
<view
class=
"scroll-view"
v-else
>
<view
class=
"info-view part-view"
>
<view
class=
"info-view part-view"
>
<view
class=
"title-view"
>
账单信息
</view>
<view
class=
"title-view"
>
账单信息
</view>
<view
class=
"list-view"
v-for=
"(item, key) in infoKeys"
:key=
"key"
>
<view
class=
"list-view"
v-for=
"(item, key) in infoKeys"
:key=
"key"
>
...
...
utils/common.js
View file @
e14c1794
...
@@ -637,7 +637,14 @@ export function formatCount(count) {
...
@@ -637,7 +637,14 @@ export function formatCount(count) {
var
index
=
string
.
indexOf
(
'.'
)
var
index
=
string
.
indexOf
(
'.'
)
if
(
index
!=
-
1
)
{
if
(
index
!=
-
1
)
{
string
+=
'00'
string
+=
'00'
var
num
=
0
if
(
Number
(
string
.
substring
(
index
+
3
,
index
+
4
)
||
0
)
>=
5
)
{
num
=
0.01
}
string
=
string
.
substring
(
0
,
index
+
3
)
string
=
string
.
substring
(
0
,
index
+
3
)
if
(
num
>
0
)
{
return
formatCount
(
Number
(
string
)
+
num
)
}
}
else
{
}
else
{
string
+=
'.00'
string
+=
'.00'
}
}
...
...
utils/options/maintain-bill/refund.js
View file @
e14c1794
...
@@ -41,12 +41,12 @@ export const refundTableCellOptions = [{
...
@@ -41,12 +41,12 @@ export const refundTableCellOptions = [{
{
{
value
:
"unit"
,
value
:
"unit"
,
label
:
"单位"
,
label
:
"单位"
,
width
:
"
6
0rpx"
,
width
:
"
5
0rpx"
,
},
},
{
{
value
:
"number"
,
value
:
"number"
,
label
:
"退货数量"
,
label
:
"退货数量"
,
width
:
"
6
4rpx"
,
width
:
"
7
4rpx"
,
},
},
{
{
value
:
"unitPrice"
,
value
:
"unitPrice"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment