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
277e963d
Commit
277e963d
authored
May 24, 2023
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1账单回收站, 2修复收据账单金额过长时图片大写金额无法显示BUG
parent
91ad6dc5
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
2534 additions
and
1959 deletions
+2534
-1959
index.js
api/maintain/index.js
+1
-1
recyled.js
api/mine/recyled.js
+16
-0
manifest.json
manifest.json
+3
-3
pages.json
pages.json
+10
-1
debit-note.vue
pages/bill/debit-note/debit-note.vue
+2
-1
index.vue
pages/index/index.vue
+5
-5
show-voucher.vue
pages/maintain-bill/components/show-voucher.vue
+778
-741
debit-detail.vue
pages/mine/recyled/components/debit-detail.vue
+133
-0
recyled.vue
pages/mine/recyled/recyled.vue
+273
-0
employee-create.vue
pages/workpoint/employees/employee-create.vue
+1
-1
create.vue
pages/workpoint/workpoint-create/create.vue
+1290
-1204
index.js
utils/options/maintain-bill/index.js
+2
-2
index.js
utils/options/mine/index.js
+6
-0
recyled.js
utils/options/mine/recyled.js
+14
-0
No files found.
api/maintain/index.js
View file @
277e963d
...
@@ -3,7 +3,7 @@ import request from "@/utils/request.js"
...
@@ -3,7 +3,7 @@ import request from "@/utils/request.js"
// 天气
// 天气
export
async
function
getWeather
(
data
)
{
export
async
function
getWeather
(
data
)
{
return
request
({
return
request
({
url
:
`/rest/anno/weather/getWeather`
,
url
:
`/rest/anno/weather/
v2/
getWeather`
,
method
:
'GET'
,
method
:
'GET'
,
data
,
data
,
noLoading
:
true
noLoading
:
true
...
...
api/mine/recyled.js
0 → 100644
View file @
277e963d
import
request
from
"@/utils/request.js"
export
async
function
getList
(
data
)
{
return
request
({
url
:
`/rest/user/getRecyclingStationList`
,
method
:
'GET'
,
data
})
}
export
async
function
deleteById
(
data
)
{
return
request
({
url
:
`/rest/user/backRecyclingStation`
,
method
:
'GET'
,
data
})
}
\ No newline at end of file
manifest.json
View file @
277e963d
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
"name"
:
"扳手记账"
,
"name"
:
"扳手记账"
,
"appid"
:
"__UNI__EDB8C7C"
,
"appid"
:
"__UNI__EDB8C7C"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.2.
3
"
,
"versionName"
:
"1.2.
4
"
,
"versionCode"
:
12
3
,
"versionCode"
:
12
4
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
],
],
"abiFilters"
:
[
"arm
eabi-v7a"
,
"arm64-v8a"
,
"x86
"
],
"abiFilters"
:
[
"arm
64-v8a
"
],
"autoSdkPermissions"
:
false
,
"autoSdkPermissions"
:
false
,
"permissionExternalStorage"
:
{
"permissionExternalStorage"
:
{
"request"
:
"none"
,
"request"
:
"none"
,
...
...
pages.json
View file @
277e963d
...
@@ -377,6 +377,15 @@
...
@@ -377,6 +377,15 @@
}
}
}
}
,{
"path"
:
"recyled/recyled"
,
"style"
:
{
"navigationBarTitleText"
:
"账单回收站"
,
"enablePullDownRefresh"
:
false
}
}
]
]
},
},
{
{
...
...
pages/bill/debit-note/debit-note.vue
View file @
277e963d
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
current
:
0
,
// tabs组件的current值,表示当前活动的tab选项
current
:
0
,
// tabs组件的current值,表示当前活动的tab选项
swiperCurrent
:
0
,
// swiper组件的current值,表示当前那个swiper-item是活动的
swiperCurrent
:
0
,
// swiper组件的current值,表示当前那个swiper-item是活动的
tabs
:
debitNoteTabs
,
tabs
:
debitNoteTabs
,
pages
:
debitNotePages
,
pages
:
JSON
.
parse
(
JSON
.
stringify
(
debitNotePages
))
,
activeItemStyle
:
{
activeItemStyle
:
{
color
:
'#ff286d'
color
:
'#ff286d'
},
},
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
this
.
swiperCurrent
=
current
;
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
this
.
current
=
current
;
console
.
log
(
'-------animationfinish------'
);
console
.
log
(
'-------animationfinish------'
);
console
.
log
(
this
.
currentPage
);
if
(
this
.
currentPage
.
pageNumber
===
1
)
{
if
(
this
.
currentPage
.
pageNumber
===
1
)
{
this
.
onRefresh
();
this
.
onRefresh
();
}
}
...
...
pages/index/index.vue
View file @
277e963d
...
@@ -19,15 +19,15 @@
...
@@ -19,15 +19,15 @@
<view
class=
"title-view"
>
扳手记账
</view>
<view
class=
"title-view"
>
扳手记账
</view>
</view>
</view>
<view
class=
"right-view"
@
click=
"$u.throttle(getWeather, 1000)"
>
<view
class=
"right-view"
@
click=
"$u.throttle(getWeather, 1000)"
>
<view
class=
"location-view"
>
<view
class=
"location-view"
v-if=
"!weather.text"
>
<view
class=
"location-icon-view"
><image
:src=
"dingweidizhiImage"
></image></view>
<view
class=
"location-icon-view"
><image
:src=
"dingweidizhiImage"
></image></view>
<view>
{{
weather
.
city
||
'查天气'
}}
</view>
<view>
查天气
</view>
</view>
</view>
<view
class=
"weather-view"
v-if=
"weather.
weather
"
>
<view
class=
"weather-view"
v-if=
"weather.
text
"
>
<!--
<view
class=
"weather-icon-view"
>
<!--
<view
class=
"weather-icon-view"
>
<image
:src=
"weather.icon"
></image>
<image
:src=
"weather.icon"
></image>
</view>
-->
</view>
-->
<view
class=
"weather-text"
>
{{
weather
.
weather
}}
</view>
<view
class=
"weather-text"
>
{{
weather
.
text
}}
</view>
<view>
{{
weather
.
temp
}}
℃
</view>
<view>
{{
weather
.
temp
}}
℃
</view>
</view>
</view>
</view>
</view>
...
@@ -658,7 +658,7 @@ export default {
...
@@ -658,7 +658,7 @@ export default {
color
:
#333333
;
color
:
#333333
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
24rpx
;
//
margin-left: 24rpx;
.weather-icon-view
{
.weather-icon-view
{
margin-right
:
8rpx
;
margin-right
:
8rpx
;
width
:
28rpx
;
width
:
28rpx
;
...
...
pages/maintain-bill/components/show-voucher.vue
View file @
277e963d
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
</view>
</view>
</view>
</view>
<view
class=
"voucher-head"
>
<view
class=
"voucher-head"
>
<view
class=
"voucher-head-item"
:style=
"
{ width: item.width }" v-for="(item, index) in voucherHeadOptions" :key="index">
<view
class=
"voucher-head-item"
:style=
"
{ width: item.width }" v-for="(item, index) in voucherHeadOptions"
:key="index">
<view
class=
"voucher-head-item-label"
>
<view
class=
"voucher-head-item-label"
>
<text>
{{
item
.
label
}}
</text>
<text>
{{
item
.
label
}}
</text>
<text>
:
</text>
<text>
:
</text>
...
@@ -22,20 +23,18 @@
...
@@ -22,20 +23,18 @@
<view
class=
"table table-striped table-bordered table-hover view-userinfo"
>
<view
class=
"table table-striped table-bordered table-hover view-userinfo"
>
<view
class=
"tbody"
>
<view
class=
"tbody"
>
<view
class=
"tr border-bottom"
>
<view
class=
"tr border-bottom"
>
<view
class=
"td no-border-top"
:style=
"
{ width: item.width }" v-for="(item, index) in tableCellOptions" :key="index">
{{
item
.
label
}}
</view>
<view
class=
"td no-border-top"
:style=
"
{ width: item.width }"
v-for="(item, index) in tableCellOptions" :key="index">
{{
item
.
label
}}
</view>
<view
class=
"td no-border-top no-border-right"
style=
"width: 128rpx;"
>
备注/说明
</view>
<view
class=
"td no-border-top no-border-right"
style=
"width: 128rpx;"
>
备注/说明
</view>
</view>
</view>
<view
class=
"tr"
>
<view
class=
"tr"
>
<view
class=
"td voucher-table-content"
id=
"table-left"
>
<view
class=
"td voucher-table-content"
id=
"table-left"
>
<view
class=
"tr"
v-for=
"(detailItem, detailIndex) in expenseArray"
:key=
"detailIndex"
>
<view
class=
"tr"
v-for=
"(detailItem, detailIndex) in expenseArray"
:key=
"detailIndex"
>
<!-- textAlign: index === 1 ? 'left' : 'center' -->
<!-- textAlign: index === 1 ? 'left' : 'center' -->
<view
<view
class=
"td"
class=
"td"
:class=
"
{ 'no-border-top': detailIndex === 0, 'align-left': index === 1
&&
detailItem[item.value]
&&
detailItem[item.value].length > 9 }"
:class=
"
{ 'no-border-top': detailIndex === 0, 'align-left': index === 1
&&
detailItem[item.value]
&&
detailItem[item.value].length > 9 }"
:style="{ width: item.width }"
:style="{ width: item.width }" v-for="(item, index) in tableCellOptions"
v-for="(item, index) in tableCellOptions"
:key="index">
:key="index"
>
<text
:class=
"
{scale:platform==='4'}">
<text
:class=
"
{scale:platform==='4'}">
<text>
{{
(
detailItem
.
id
&&
item
.
currencySign
)
||
''
}}
</text>
<text>
{{
(
detailItem
.
id
&&
item
.
currencySign
)
||
''
}}
</text>
<text
v-if=
"index === 0"
>
{{
detailIndex
+
1
}}
</text>
<text
v-if=
"index === 0"
>
{{
detailIndex
+
1
}}
</text>
...
@@ -44,7 +43,8 @@
...
@@ -44,7 +43,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"td no-border-right no-border-top remark-view"
:style=
"
{ width: '128rpx', 'max-height': initialHeight }">
<view
class=
"td no-border-right no-border-top remark-view"
:style=
"
{ width: '128rpx', 'max-height': initialHeight }">
<text
v-text=
"detail.remark"
></text>
<text
v-text=
"detail.remark"
></text>
</view>
</view>
</view>
</view>
...
@@ -66,10 +66,13 @@
...
@@ -66,10 +66,13 @@
</view>
</view>
</view>
</view>
<view
class=
"voucher-table-declare"
><text
class=
"voucher-table-declare-text"
>
本收据为电子凭证 , 具有同等效力
</text></view>
<view
class=
"voucher-table-declare"
><text
class=
"voucher-table-declare-text"
>
本收据为电子凭证 , 具有同等效力
</text></view>
<view
class=
"seal-view"
v-if=
"detail.showSeal"
><image
:src=
"sealImage"
></image></view>
<view
class=
"seal-view"
v-if=
"detail.showSeal"
>
<image
:src=
"sealImage"
></image>
</view>
</view>
</view>
<view
class=
"voucher-head voucher-footer"
>
<view
class=
"voucher-head voucher-footer"
>
<view
class=
"voucher-head-item voucher-footer-item"
v-for=
"(item, index) in voucherFooterOptions"
:key=
"index"
>
<view
class=
"voucher-head-item voucher-footer-item"
v-for=
"(item, index) in voucherFooterOptions"
:key=
"index"
>
<view
class=
"voucher-head-item-label"
>
<view
class=
"voucher-head-item-label"
>
<text>
{{
item
.
label
}}
</text>
<text>
{{
item
.
label
}}
</text>
<text>
:
</text>
<text>
:
</text>
...
@@ -82,19 +85,39 @@
...
@@ -82,19 +85,39 @@
</view>
</view>
</view>
</view>
<view
class=
"voucher-preview"
hover-class=
"u-hover-class"
@
click=
"preview"
>
<view
class=
"voucher-preview"
hover-class=
"u-hover-class"
@
click=
"preview"
>
<view
class=
"voucher-preview-icon"
><image
:src=
"previewIcon"
mode=
""
></image></view>
<view
class=
"voucher-preview-icon"
>
<image
:src=
"previewIcon"
mode=
""
></image>
</view>
<text>
点击查看大图
</text>
<text>
点击查看大图
</text>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
voucherHeadOptions
,
voucherFooterOptions
,
tableCellOptions
,
canvasTableCellOptions
,
tableFooterOptions
}
from
'@/utils/options/maintain-bill/index.js'
;
import
{
import
{
refundFooterOptions
,
refundTableCellOptions
,
refundCanvasTableCellOptions
}
from
'@/utils/options/maintain-bill/refund.js'
;
voucherHeadOptions
,
import
{
billBaseUrl
,
baseUrl
}
from
'@/utils/config.js'
;
voucherFooterOptions
,
import
{
convertCurrency
,
keepTwoDecimalFull
}
from
'@/utils/common.js'
;
tableCellOptions
,
import
{
mapGetters
}
from
'vuex'
;
canvasTableCellOptions
,
export
default
{
tableFooterOptions
}
from
'@/utils/options/maintain-bill/index.js'
;
import
{
refundFooterOptions
,
refundTableCellOptions
,
refundCanvasTableCellOptions
}
from
'@/utils/options/maintain-bill/refund.js'
;
import
{
billBaseUrl
,
baseUrl
}
from
'@/utils/config.js'
;
import
{
convertCurrency
,
keepTwoDecimalFull
}
from
'@/utils/common.js'
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
props
:
{
props
:
{
detail
:
{
detail
:
{
type
:
Object
,
type
:
Object
,
...
@@ -145,7 +168,10 @@ export default {
...
@@ -145,7 +168,10 @@ export default {
return
arr
;
return
arr
;
},
},
arearAmount
()
{
arearAmount
()
{
let
{
receivableAmount
,
actualAmount
}
=
this
.
detail
;
let
{
receivableAmount
,
actualAmount
}
=
this
.
detail
;
return
parseFloat
(
receivableAmount
)
-
parseFloat
(
actualAmount
);
return
parseFloat
(
receivableAmount
)
-
parseFloat
(
actualAmount
);
},
},
expenseCount
()
{
expenseCount
()
{
...
@@ -173,7 +199,7 @@ export default {
...
@@ -173,7 +199,7 @@ export default {
let
length
=
this
.
expenseArray
.
length
>
5
?
this
.
expenseArray
.
length
:
5
;
let
length
=
this
.
expenseArray
.
length
>
5
?
this
.
expenseArray
.
length
:
5
;
let
h
=
30
;
let
h
=
30
;
if
(
this
.
platform
===
'4'
)
{
if
(
this
.
platform
===
'4'
)
{
h
=
28
h
=
28
}
}
let
height
=
`
${
length
*
h
}
rpx`
;
let
height
=
`
${
length
*
h
}
rpx`
;
return
this
.
tableLeftHeight
?
this
.
tableLeftHeight
+
'px'
:
height
;
return
this
.
tableLeftHeight
?
this
.
tableLeftHeight
+
'px'
:
height
;
...
@@ -279,14 +305,12 @@ export default {
...
@@ -279,14 +305,12 @@ export default {
lineHeight
:
'11px'
,
lineHeight
:
'11px'
,
'margin-bottom'
:
'2px'
'margin-bottom'
:
'2px'
},
},
views
:
[
views
:
[{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
display
:
'inline'
display
:
'inline'
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
css
:
{
css
:
{
color
:
orangeColor
color
:
orangeColor
...
@@ -298,11 +322,12 @@ export default {
...
@@ -298,11 +322,12 @@ export default {
css
:
{
css
:
{
color
:
'#333333'
color
:
'#333333'
},
},
text
:
item
.
value
===
'customer'
?
this
.
detail
[
item
.
value
][
item
.
childrenValue
]
||
''
:
this
.
detail
[
item
.
value
]
||
''
text
:
item
.
value
===
'customer'
?
this
.
detail
[
item
.
value
][
item
}
.
childrenValue
]
]
||
''
:
this
.
detail
[
item
.
value
]
||
''
}
}
]
]
}]
};
};
// if (index === this.voucherHeadOptions.length - 1) {
// if (index === this.voucherHeadOptions.length - 1) {
// view.css.width = '70%';
// view.css.width = '70%';
...
@@ -316,13 +341,11 @@ export default {
...
@@ -316,13 +341,11 @@ export default {
...
thCss
,
...
thCss
,
width
:
item
.
width
width
:
item
.
width
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
css
:
{},
css
:
{},
text
:
item
.
label
text
:
item
.
label
}
}]
]
};
};
return
view
;
return
view
;
});
});
...
@@ -333,12 +356,10 @@ export default {
...
@@ -333,12 +356,10 @@ export default {
width
:
`
${
66
*
scale
}
px`
,
width
:
`
${
66
*
scale
}
px`
,
borderRight
:
'none'
borderRight
:
'none'
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
text
:
'备注/说明'
text
:
'备注/说明'
}
}]
]
});
});
let
tableBodyLeft
=
this
.
expenseArray
.
map
((
el
,
i
)
=>
{
let
tableBodyLeft
=
this
.
expenseArray
.
map
((
el
,
i
)
=>
{
let
views
=
this
.
canvasTableCellOptions
.
map
((
item
,
index
)
=>
{
let
views
=
this
.
canvasTableCellOptions
.
map
((
item
,
index
)
=>
{
...
@@ -356,8 +377,7 @@ export default {
...
@@ -356,8 +377,7 @@ export default {
width
:
item
.
width
,
width
:
item
.
width
,
display
:
'inline-block'
display
:
'inline-block'
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
text
:
(
el
.
id
&&
item
.
currencySign
)
||
''
text
:
(
el
.
id
&&
item
.
currencySign
)
||
''
},
},
...
@@ -388,8 +408,7 @@ export default {
...
@@ -388,8 +408,7 @@ export default {
return
view
;
return
view
;
});
});
console
.
log
(
'tableBodyLeft'
,
tableBodyLeft
);
console
.
log
(
'tableBodyLeft'
,
tableBodyLeft
);
let
tableBody
=
[
let
tableBody
=
[{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
width
:
`
${
260
*
scale
}
px`
,
width
:
`
${
260
*
scale
}
px`
,
...
@@ -412,14 +431,12 @@ export default {
...
@@ -412,14 +431,12 @@ export default {
// height: `${this.expenseArray.length * 18}px`
// height: `${this.expenseArray.length * 18}px`
height
:
this
.
initialHeight
height
:
this
.
initialHeight
},
},
views
:
[
views
:
[{
{
css
:
{},
css
:
{},
type
:
'text'
,
type
:
'text'
,
// 'line-clamp': 6,
// 'line-clamp': 6,
text
:
this
.
detail
.
remark
text
:
this
.
detail
.
remark
}
}]
]
}
}
];
];
if
(
this
.
platform
===
'4'
)
{
if
(
this
.
platform
===
'4'
)
{
...
@@ -453,38 +470,35 @@ export default {
...
@@ -453,38 +470,35 @@ export default {
};
};
return
view
;
return
view
;
});
});
let
tableFooterCell
=
this
.
tableFooterOptions
.
map
((
item
,
index
)
=>
{
let
tableFooterCell
=
[]
let
text
=
item
.
value
===
'upperCase'
?
this
.
upperCase
:
this
.
keepTwoDecimalFull
(
this
.
expenseCount
);
this
.
tableFooterOptions
.
map
((
item
,
index
)
=>
{
let
text
=
item
.
value
===
'upperCase'
?
this
.
upperCase
:
this
.
keepTwoDecimalFull
(
this
.
expenseCount
);
if
(
item
.
value
===
'lowerCase'
&&
text
)
{
if
(
item
.
value
===
'lowerCase'
&&
text
)
{
text
=
'¥'
+
text
;
text
=
'¥'
+
text
;
}
}
let
view
=
{
let
label
=
{
type
:
'view'
,
css
:
{
height
:
'100%'
,
display
:
'inline-block'
,
width
:
item
.
width
,
textAlign
:
'left'
,
lineHeight
:
'15px'
},
views
:
[
{
type
:
'text'
,
type
:
'text'
,
css
:
{
css
:
{
color
:
orangeColor
color
:
orangeColor
,
},
},
text
:
item
.
label
text
:
item
.
label
}
if
(
index
===
1
){
label
.
css
.
marginLeft
=
"35px"
}
let
value
=
{
css
:
{
width
:
item
.
width
,
color
:
orangeColor
,
},
},
{
type
:
'text'
,
type
:
'text'
,
text
:
text
text
:
text
}
}
]
tableFooterCell
.
push
(
label
)
};
tableFooterCell
.
push
(
value
)
return
view
;
});
});
let
tableFooter
=
[
let
tableFooter
=
[{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
height
:
'100%'
,
height
:
'100%'
,
...
@@ -494,12 +508,10 @@ export default {
...
@@ -494,12 +508,10 @@ export default {
textAlign
:
'center'
,
textAlign
:
'center'
,
lineHeight
:
'15px'
lineHeight
:
'15px'
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
text
:
'合计'
text
:
'合计'
}
}]
]
},
},
{
{
type
:
'view'
,
type
:
'view'
,
...
@@ -510,7 +522,7 @@ export default {
...
@@ -510,7 +522,7 @@ export default {
textAlign
:
'left'
,
textAlign
:
'left'
,
lineHeight
:
'15px'
,
lineHeight
:
'15px'
,
'margin-left'
:
'8px'
,
'margin-left'
:
'8px'
,
background
:
'#FFFFFF
'
background
:
'#ffffff
'
},
},
views
:
tableFooterCell
views
:
tableFooterCell
}
}
...
@@ -568,12 +580,10 @@ export default {
...
@@ -568,12 +580,10 @@ export default {
'text-align'
:
'center'
,
'text-align'
:
'center'
,
color
:
orangeColor
color
:
orangeColor
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
text
:
'本收据为电子凭证,具有同等效力'
text
:
'本收据为电子凭证,具有同等效力'
}
}]
]
}
}
];
];
// 表格底部
// 表格底部
...
@@ -588,14 +598,12 @@ export default {
...
@@ -588,14 +598,12 @@ export default {
lineHeight
:
'11px'
,
lineHeight
:
'11px'
,
'margin-bottom'
:
'2px'
'margin-bottom'
:
'2px'
},
},
views
:
[
views
:
[{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
display
:
'inline'
display
:
'inline'
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
css
:
{
css
:
{
color
:
orangeColor
color
:
orangeColor
...
@@ -610,8 +618,7 @@ export default {
...
@@ -610,8 +618,7 @@ export default {
text
:
`
${
item
.
currencySign
||
''
}${
text
||
''
}
`
text
:
`
${
item
.
currencySign
||
''
}${
text
||
''
}
`
}
}
]
]
}
}]
]
};
};
if
(
index
===
this
.
voucherFooterOptions
.
length
-
1
)
{
if
(
index
===
this
.
voucherFooterOptions
.
length
-
1
)
{
view
.
css
.
width
=
'75%'
;
view
.
css
.
width
=
'75%'
;
...
@@ -653,14 +660,12 @@ export default {
...
@@ -653,14 +660,12 @@ export default {
display
:
'flex'
,
display
:
'flex'
,
justifyContent
:
'center'
justifyContent
:
'center'
},
},
views
:
[
views
:
[{
{
type
:
'view'
,
type
:
'view'
,
css
:
{
css
:
{
display
:
'inline-block'
display
:
'inline-block'
},
},
views
:
[
views
:
[{
{
type
:
'text'
,
type
:
'text'
,
css
:
{
css
:
{
display
:
'inline-block'
,
display
:
'inline-block'
,
...
@@ -688,8 +693,7 @@ export default {
...
@@ -688,8 +693,7 @@ export default {
text
:
this
.
detail
.
repairShopName
text
:
this
.
detail
.
repairShopName
}
}
]
]
}
}]
]
},
},
// 头部信息
// 头部信息
{
{
...
@@ -734,18 +738,20 @@ export default {
...
@@ -734,18 +738,20 @@ export default {
};
};
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/static/styles/scss/table.scss'
;
@import
'@/static/styles/scss/table.scss'
;
// 橙色字体
// 橙色字体
$orange-color
:
var
(
--
color
);
$orange-color
:
var
(
--
color
);
.voucher
{
.voucher
{
padding
:
24rpx
16rpx
;
padding
:
24rpx
16rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
color
:
#333333
;
color
:
#333333
;
&
-title
{
&
-title
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
...
@@ -754,16 +760,19 @@ $orange-color: var(--color);
...
@@ -754,16 +760,19 @@ $orange-color: var(--color);
font-weight
:
bold
;
font-weight
:
bold
;
color
:
$orange-color
;
color
:
$orange-color
;
line-height
:
52rpx
;
line-height
:
52rpx
;
&
-text
{
&
-text
{
// display: flex;
// display: flex;
display
:
inline-block
;
display
:
inline-block
;
position
:
relative
;
position
:
relative
;
&
-underline
{
&
-underline
{
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
6rpx
;
height
:
6rpx
;
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
box-sizing
:
border-box
;
// 为了与原元素等大
box-sizing
:
border-box
;
// 为了与原元素等大
...
@@ -780,11 +789,13 @@ $orange-color: var(--color);
...
@@ -780,11 +789,13 @@ $orange-color: var(--color);
}
}
}
}
}
}
&
-head
{
&
-head
{
margin-top
:
16rpx
;
margin-top
:
16rpx
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
overflow
:
hidden
;
overflow
:
hidden
;
&
-item
{
&
-item
{
width
:
30%
;
width
:
30%
;
display
:
flex
;
display
:
flex
;
...
@@ -796,24 +807,29 @@ $orange-color: var(--color);
...
@@ -796,24 +807,29 @@ $orange-color: var(--color);
word-break
:
break-all
;
word-break
:
break-all
;
transform
:
scale
(
0
.85
);
transform
:
scale
(
0
.85
);
transform-origin
:
left
center
;
transform-origin
:
left
center
;
&
:last-child
{
&
:last-child
{
width
:
70%
;
width
:
70%
;
white-space
:
nowrap
;
white-space
:
nowrap
;
// overflow: hidden;
// overflow: hidden;
word-break
:
break-all
;
word-break
:
break-all
;
}
}
&
-label
{
&
-label
{
flex-shrik
:
0
;
flex-shrik
:
0
;
color
:
$orange-color
;
color
:
$orange-color
;
}
}
&
-value
{
}
&
-value
{
}
}
}
}
}
&
-footer
{
&
-footer
{
margin-top
:
10rpx
;
margin-top
:
10rpx
;
&
-item
{
&
-item
{
width
:
25%
;
width
:
25%
;
&
:last-child
{
&
:last-child
{
width
:
75%
;
width
:
75%
;
white-space
:
nowrap
;
white-space
:
nowrap
;
...
@@ -831,6 +847,7 @@ $orange-color: var(--color);
...
@@ -831,6 +847,7 @@ $orange-color: var(--color);
margin-top
:
6rpx
;
margin-top
:
6rpx
;
// border: 2rpx solid $orange-color;
// border: 2rpx solid $orange-color;
position
:
relative
;
position
:
relative
;
.seal-view
{
.seal-view
{
position
:
absolute
;
position
:
absolute
;
width
:
188rpx
;
width
:
188rpx
;
...
@@ -838,11 +855,13 @@ $orange-color: var(--color);
...
@@ -838,11 +855,13 @@ $orange-color: var(--color);
right
:
16rpx
;
right
:
16rpx
;
bottom
:
16rpx
;
bottom
:
16rpx
;
}
}
&
-content
{
&
-content
{
padding
:
0
!
important
;
padding
:
0
!
important
;
border-width
:
0
!
important
;
border-width
:
0
!
important
;
border-width
:
0
!
important
;
border-width
:
0
!
important
;
}
}
&
-tr
{
&
-tr
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
...
@@ -852,6 +871,7 @@ $orange-color: var(--color);
...
@@ -852,6 +871,7 @@ $orange-color: var(--color);
line-height
:
34rpx
;
line-height
:
34rpx
;
position
:
relative
;
position
:
relative
;
}
}
&
-th
{
&
-th
{
height
:
100%
;
height
:
100%
;
color
:
$orange-color
;
color
:
$orange-color
;
...
@@ -864,10 +884,12 @@ $orange-color: var(--color);
...
@@ -864,10 +884,12 @@ $orange-color: var(--color);
// white-space: nowrap;
// white-space: nowrap;
// overflow: hidden;
// overflow: hidden;
word-break
:
break-all
;
word-break
:
break-all
;
&
:last-child
{
&
:last-child
{
border-right
:
none
;
border-right
:
none
;
}
}
}
}
&
-td
{
&
-td
{
height
:
100%
;
height
:
100%
;
padding
:
4rpx
4rpx
;
padding
:
4rpx
4rpx
;
...
@@ -880,22 +902,27 @@ $orange-color: var(--color);
...
@@ -880,22 +902,27 @@ $orange-color: var(--color);
// white-space: nowrap;
// white-space: nowrap;
// overflow: hidden;
// overflow: hidden;
word-break
:
break-all
;
word-break
:
break-all
;
&
:last-child
{
&
:last-child
{
border-right
:
none
;
border-right
:
none
;
}
}
}
}
.remark-view
{
.remark-view
{
overflow
:
hidden
;
overflow
:
hidden
;
text-align
:
left
;
text-align
:
left
;
}
}
.align-left
{
.align-left
{
text-align
:
left
!
important
;
text-align
:
left
!
important
;
}
}
&
-tbody
{
&
-tbody
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
flex-start
;
&
-content
{
&
-content
{
.voucher-table-tr
{
.voucher-table-tr
{
.voucher-table-td
{
.voucher-table-td
{
...
@@ -905,6 +932,7 @@ $orange-color: var(--color);
...
@@ -905,6 +932,7 @@ $orange-color: var(--color);
}
}
}
}
}
}
&
-remark
{
&
-remark
{
flex
:
1
;
flex
:
1
;
height
:
100%
;
height
:
100%
;
...
@@ -917,15 +945,18 @@ $orange-color: var(--color);
...
@@ -917,15 +945,18 @@ $orange-color: var(--color);
overflow
:
hidden
;
overflow
:
hidden
;
}
}
}
}
.voucher-table-tfooter
{
.voucher-table-tfooter
{
position
:
relative
;
position
:
relative
;
height
:
34rpx
;
height
:
34rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
// border-top: 2rpx solid $orange-color;
// border-top: 2rpx solid $orange-color;
.voucher-table-td
{
.voucher-table-td
{
border-bottom
:
none
;
border-bottom
:
none
;
}
}
&
-col
{
&
-col
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -935,18 +966,22 @@ $orange-color: var(--color);
...
@@ -935,18 +966,22 @@ $orange-color: var(--color);
line-height
:
26rpx
;
line-height
:
26rpx
;
/* #ifdef APP-PLUS */
/* #ifdef APP-PLUS */
line-height
:
28rpx
;
line-height
:
28rpx
;
/* #endif */
/* #endif */
&
-left
{
&
-left
{
width
:
70%
;
width
:
70%
;
}
}
&
-right
{
&
-right
{
width
:
30%
;
width
:
30%
;
}
}
}
}
&
-col-label
{
&
-col-label
{
color
:
$orange-color
;
color
:
$orange-color
;
}
}
}
}
&
-declare
{
&
-declare
{
position
:
absolute
;
position
:
absolute
;
right
:
-18rpx
;
right
:
-18rpx
;
...
@@ -957,10 +992,11 @@ $orange-color: var(--color);
...
@@ -957,10 +992,11 @@ $orange-color: var(--color);
text-align
:
center
;
text-align
:
center
;
color
:
$orange-color
;
color
:
$orange-color
;
transform
:
scale
(
0
.7
);
transform
:
scale
(
0
.7
);
&
-text
{
}
&
-text
{
}
}
}
}
}
&
-preview
{
&
-preview
{
margin-top
:
28rpx
;
margin-top
:
28rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -968,11 +1004,12 @@ $orange-color: var(--color);
...
@@ -968,11 +1004,12 @@ $orange-color: var(--color);
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
&
-icon
{
&
-icon
{
width
:
32rpx
;
width
:
32rpx
;
height
:
24rpx
;
height
:
24rpx
;
margin-right
:
8rpx
;
margin-right
:
8rpx
;
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/mine/recyled/components/debit-detail.vue
0 → 100644
View file @
277e963d
<
template
>
<view
class=
"debit-detail"
>
<view
class=
"debit-detail-icon"
v-if=
"detail.icon"
>
<image
:src=
"detail.icon"
mode=
""
></image>
</view>
<view
class=
"content"
>
<view
class=
"content-title"
>
<view
class=
"content-title-text ellipsis"
>
<text>
{{
detail
.
name
}}
</text>
</view>
<view
class=
"amount ellipsis"
v-if=
"detail.amount"
>
{{
detail
.
amount
}}
</view>
</view>
<view
class=
"content-item"
>
<text
class=
"content-item-label"
>
创建时间
</text>
<text
class=
"content-item-value"
>
{{
detail
.
createTime
||
''
}}
</text>
</view>
<view
class=
"content-item"
>
<text
class=
"content-item-label"
>
删除时间
</text>
<text
class=
"content-item-value"
>
{{
detail
.
deleteTime
||
''
}}
</text>
</view>
</view>
<view
class=
"debit-detail-right"
hover-class=
"u-hover-class"
@
click=
"toRecyled"
>
恢复
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
detail
:
{
type
:
Object
,
default
:
()
=>
{}
},
current
:
{
type
:
Number
,
default
:
0
},
},
computed
:{
showDebtAmount
(){
let
debtAmount
=
this
.
detail
.
debtAmount
if
(
!
debtAmount
){
return
false
}
return
parseFloat
(
debtAmount
)
>
0
}
},
data
()
{
return
{};
},
methods
:{
toBill
(){
this
.
$u
.
route
({
url
:
'/pages/maintain-bill/index'
,
type
:
'navigateTo'
,
params
:
{
customerId
:
this
.
detail
.
customerId
,
onlyDebt
:
1
,
}
});
},
toRecyled
(){
this
.
$emit
(
"handleClick"
,
this
.
detail
)
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.debit-detail
{
// height: 152upx;
background
:
#FFFFFF
;
border-radius
:
16upx
;
padding
:
24upx
;
padding-right
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
24upx
;
.content
{
flex
:
1
;
// width: 420upx;
position
:
relative
;
overflow
:
hidden
;
&
-title
{
font-size
:
28upx
;
// line-height: 40upx;
// min-height: 40upx;
margin-bottom
:
12upx
;
font-weight
:
bold
;
&
-text
{
display
:
inline-block
;
margin-right
:
24rpx
;
max-width
:
422rpx
;
}
.amount
{
display
:
inline-block
;
// max-width: 108rpx;
}
}
&
-item
{
font-size
:
24upx
;
line-height
:
40upx
;
min-height
:
40upx
;
&
-label
{
color
:
#8D8D8D
;
}
&
-value
{
// font-weight: bold;
margin-left
:
24rpx
;
color
:
#8D8D8D
;
}
}
}
&
-icon
{
width
:
72rpx
;
height
:
72rpx
;
margin-right
:
24rpx
;
}
&
-right
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
28rpx
;
margin-left
:
24rpx
;
width
:
100rpx
;
height
:
100%
;
color
:
#3383FE
;
}
}
</
style
>
pages/mine/recyled/recyled.vue
0 → 100644
View file @
277e963d
<
template
>
<!-- 查欠账 -->
<view
class=
"debit-note"
>
<!--
<view
class=
"search-wrap"
>
<u-search
v-model=
"form.keyword"
height=
"80"
bg-color=
"#ffffff"
:show-action=
"false"
placeholder=
"搜索客户姓名/手机"
@
search=
"changeSearch"
></u-search>
</view>
-->
<view
class=
"tabs-box"
>
<u-tabs-swiper
ref=
"uTabs"
bg-color=
"#f6f7fa"
font-size=
"28"
bar-width=
"32"
bar-height=
"4"
height=
"60"
inactive-color=
"#8D8D8D"
active-color=
"#02A074"
name=
"title"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
<view
class=
"swiper-box"
>
<swiper
duration=
"200"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
style=
"height:100%"
>
<swiper-item
class=
"swiper-item"
v-for=
"(listData, index) in list"
:key=
"index"
>
<scroll-view
scroll-y
scroll-anchoring
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"onreachBottom"
@
refresherrefresh=
"refresherrefresh"
@
refresherrestore=
"onRestore"
enable-back-to-top
refresher-enabled
:refresher-triggered=
"getCurrentPage(index).triggered"
:refresher-threshold=
"100"
>
<view
class=
"scroll-view"
>
<NoData
v-if=
"noData(index)"
:text=
"noDataText"
customStyle=
"margin-top: 0rpx;"
/>
<template
v-else
>
<view
class=
"container"
><debit-detail
v-for=
"item in listData"
:key=
"item.id"
:detail=
"item"
:current=
"current"
@
handleClick=
"handleClick"
></debit-detail>
</view>
<view
class=
"loading-view"
v-if=
"!getCurrentPage(index).loaded && getCurrentPage(index).freshing"
><u-loading
mode=
"flower"
></u-loading></view>
<view
v-show=
"(getCurrentPage(index).pageNumber === 1 && getCurrentPage(index).loaded) || getCurrentPage(index).pageNumber > 1"
>
<u-loadmore
:status=
"getCurrentPage(index).loadStatus"
/>
</view>
</
template
>
</view>
</scroll-view>
</swiper-item>
</swiper>
</view>
<PopInput
title=
"提醒"
type=
"text"
sureText=
"恢复"
:content=
"popContent"
:visible
.
sync=
"showConfirm"
@
click=
"handleConfirm"
/>
</view>
</template>
<
script
>
import
NoData
from
'@/components/no-data'
;
import
PopInput
from
'@/components/pop-input-view'
;
import
DebitDetail
from
'./components/debit-detail.vue'
;
import
{
billBaseUrl
}
from
'@/utils/config.js'
;
import
{
debitNotePages
}
from
'@/utils/options/bill/index.js'
;
import
{
tabsOptions
}
from
'@/utils/options/mine/recyled.js'
;
import
{
getList
,
deleteById
}
from
'@/api/mine/recyled.js'
;
export
default
{
components
:
{
NoData
,
DebitDetail
,
PopInput
},
data
()
{
return
{
form
:
{
keyword
:
''
},
// list: [[], [], []],
list
:
{
'0'
:
[],
'1'
:
[],
'2'
:
[]
},
current
:
0
,
// tabs组件的current值,表示当前活动的tab选项
swiperCurrent
:
0
,
// swiper组件的current值,表示当前那个swiper-item是活动的
tabs
:
tabsOptions
,
pages
:
JSON
.
parse
(
JSON
.
stringify
(
debitNotePages
)),
activeItemStyle
:
{
color
:
'#ff286d'
},
noDataText
:
'当前暂无账单信息'
,
currentItem
:
null
,
showConfirm
:
false
,
// 删除弹框
};
},
computed
:
{
currentTab
()
{
return
this
.
tabs
[
this
.
current
];
},
currentPage
()
{
return
this
.
pages
[
this
.
current
];
},
popContent
()
{
return
this
.
current
===
2
?
"确定恢复此记录吗?"
:
"确定恢复此账单吗?"
}
},
onLoad
(
options
)
{
this
.
init
();
uni
.
$on
(
'debit-bill-list'
,
res
=>
{
this
.
init
();
});
},
onUnload
()
{
uni
.
$off
(
'debit-bill-list'
);
},
methods
:
{
handleClick
(
info
)
{
this
.
currentItem
=
info
this
.
showConfirm
=
true
},
handleConfirm
()
{
this
.
handleDelete
();
},
async
handleDelete
()
{
if
(
!
this
.
currentItem
.
id
)
{
this
.
showToast
(
this
.
current
===
2
?
"记录不存在"
:
"账单不存在"
);
return
false
;
}
try
{
await
deleteById
({
id
:
this
.
currentItem
.
id
,
type
:
this
.
currentItem
.
type
.
code
});
this
.
showToast
(
'删除成功'
,
true
);
this
.
onRefresh
();
}
catch
(
e
)
{
//TODO handle the exception
}
},
changeSearch
()
{
this
.
onRefresh
();
},
noData
(
index
)
{
return
this
.
list
[
index
].
length
==
0
&&
this
.
getCurrentPage
(
index
).
loaded
;
},
getCurrentPage
(
index
)
{
return
this
.
pages
[
index
];
},
init
()
{
this
.
onRefresh
();
},
async
getData
()
{
if
(
this
.
currentPage
.
pageNumber
===
1
)
{
this
.
currentPage
.
loaded
=
false
;
}
var
postData
=
{
// keyword: this.form.keyword,
type
:
this
.
currentTab
.
name
,
size
:
this
.
currentPage
.
size
,
current
:
this
.
currentPage
.
pageNumber
};
try
{
let
res
=
await
getList
(
postData
);
let
records
=
res
.
data
;
if
(
this
.
currentPage
.
pageNumber
===
1
)
{
// 下拉刷新或切换到新tab,清空对应数组
this
.
list
[
this
.
current
]
=
[];
}
if
(
records
&&
records
.
length
)
{
this
.
list
[
this
.
current
].
push
(...
records
);
// 更新底部加载状态
}
// 更新底部加载状态
this
.
currentPage
.
loadStatus
=
'nomore'
;
}
catch
(
e
)
{
console
.
log
(
'error'
,
e
);
}
this
.
currentPage
.
loaded
=
true
;
this
.
$nextTick
(()
=>
{
this
.
currentPage
.
triggered
=
false
;
this
.
currentPage
.
freshing
=
false
;
});
},
// tabs通知swiper切换
tabsChange
(
index
)
{
this
.
swiperCurrent
=
index
;
console
.
log
(
'-------tabsChange------'
);
// this.getWalletRecord(); // 与swiper change重复,tab变化无需再次请求数据
},
// swiper-item左右移动,通知tabs的滑块跟随移动
transition
(
e
)
{
let
dx
=
e
.
detail
.
dx
;
this
.
$refs
.
uTabs
.
setDx
(
dx
);
},
// 由于swiper的内部机制问题,快速切换swiper不会触发dx的连续变化,需要在结束时重置状态
// swiper滑动结束,分别设置tabs和swiper的状态
animationfinish
(
e
)
{
let
current
=
e
.
detail
.
current
;
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
);
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
console
.
log
(
'-------animationfinish------'
);
console
.
log
(
this
.
currentPage
);
if
(
this
.
currentPage
.
pageNumber
===
1
)
{
this
.
onRefresh
();
}
},
onRefresh
()
{
if
(
this
.
currentPage
.
freshing
)
return
;
this
.
currentPage
.
freshing
=
true
;
this
.
currentPage
.
pageNumber
=
1
;
this
.
getData
();
},
refresherrefresh
()
{
this
.
currentPage
.
triggered
=
true
;
this
.
onRefresh
()
},
onRestore
()
{
// this.currentPage.triggered = 'restore'; // 需要重置
},
onreachBottom
(
e
)
{
//上拉触底函数
if
(
this
.
currentPage
.
loadStatus
===
'loadmore'
)
{
//此处判断,上锁,防止重复请求
this
.
currentPage
.
loadStatus
==
'loading'
;
this
.
currentPage
.
pageNumber
+=
1
;
this
.
getData
();
}
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.debit-note
{
padding
:
24upx
;
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
.search-wrap
{
width
:
100%
;
}
.tabs-box
{
margin
:
32upx
0
;
}
.swiper-box
{
flex
:
1
;
width
:
100%
;
}
.swiper-item
{
height
:
100%
;
}
.container
{
padding
:
20upx
0
;
}
.loading-view
{
width
:
100%
;
background-color
:
transparent
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
top
:
50%
;
left
:
0
;
position
:
fixed
;
}
.scroll-view
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
\ No newline at end of file
pages/workpoint/employees/employee-create.vue
View file @
277e963d
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
current
:
1
,
current
:
1
,
size
:
20
,
size
:
20
,
employees
:
[],
employees
:
[],
//
showMember: false,
showMember
:
false
,
platform
:
''
,
platform
:
''
,
focus
:
false
,
focus
:
false
,
currentPopInfo
:
{}
currentPopInfo
:
{}
...
...
pages/workpoint/workpoint-create/create.vue
View file @
277e963d
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
<u-form-item
label=
"项目名称"
prop=
"projectId"
required
>
<u-form-item
label=
"项目名称"
prop=
"projectId"
required
>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"placeholder"
@
click=
"openSelect"
>
<view
class=
"placeholder"
@
click=
"openSelect"
>
<text
:class=
"
{ 'value-text': !recordId }" v-if="form.projectName">
{{
form
.
projectName
}}
</text>
<text
:class=
"
{ 'value-text': !recordId }"
v-if="form.projectName">
{{
form
.
projectName
}}
</text>
<text
v-else
>
选择项目
</text>
<text
v-else
>
选择项目
</text>
<u-icon
name=
"arrow-right"
class=
"arrow"
v-if=
"!recordId"
></u-icon>
<u-icon
name=
"arrow-right"
class=
"arrow"
v-if=
"!recordId"
></u-icon>
</view>
</view>
...
@@ -15,18 +16,25 @@
...
@@ -15,18 +16,25 @@
<u-form-item
label=
"日期"
v-if=
"!isDateRange"
prop=
"happenTime"
required
>
<u-form-item
label=
"日期"
v-if=
"!isDateRange"
prop=
"happenTime"
required
>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"date-view"
hover-class=
"u-hover-class"
@
click=
"handleClickShowDateRange"
>
<view
class=
"date-view"
hover-class=
"u-hover-class"
@
click=
"handleClickShowDateRange"
>
<view
class=
"date-text"
v-if=
"form.happenTime"
>
{{
resetHappenTime
(
form
.
happenTime
)
}}
</view>
<view
class=
"date-text"
v-if=
"form.happenTime"
>
{{
resetHappenTime
(
form
.
happenTime
)
}}
</view>
<view
class=
"placeholder"
v-else
>
选择服务日期
</view>
<view
class=
"placeholder"
v-else
>
选择服务日期
</view>
<view
class=
"image-view"
><image
:src=
"dateImage"
></image></view>
<view
class=
"image-view"
>
<image
:src=
"dateImage"
></image>
</view>
</view>
</view>
</view>
</view>
</u-form-item>
</u-form-item>
<u-form-item
label=
"日期(可多选)"
v-else
prop=
"dateRange"
required
>
<u-form-item
label=
"日期(可多选)"
v-else
prop=
"dateRange"
required
>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"date-view"
hover-class=
"u-hover-class"
@
click=
"handleClickShowDateRange"
>
<view
class=
"date-view"
hover-class=
"u-hover-class"
@
click=
"handleClickShowDateRange"
>
<view
class=
"date-text"
v-if=
"form.dateRange.length"
>
{{
form
.
dateRange
.
length
>
1
?
`已选${form.dateRange.length
}
天`
:
resetHappenTime
(
form
.
dateRange
[
0
])
}}
<
/view
>
<view
class=
"date-text"
v-if=
"form.dateRange.length"
>
{{
form
.
dateRange
.
length
>
1
?
`已选${form.dateRange.length
}
天`
:
resetHappenTime
(
form
.
dateRange
[
0
])
}}
<
/view
>
<
view
class
=
"placeholder"
v
-
else
>
选择服务日期
<
/view
>
<
view
class
=
"placeholder"
v
-
else
>
选择服务日期
<
/view
>
<
view
class
=
"image-view"
><
image
:
src
=
"dateImage"
><
/image></
view
>
<
view
class
=
"image-view"
>
<
image
:
src
=
"dateImage"
><
/image
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
...
@@ -35,12 +43,14 @@
...
@@ -35,12 +43,14 @@
<
text
class
=
"placeholder"
>
{{
form
.
memberName
}}
<
/text
>
<
text
class
=
"placeholder"
>
{{
form
.
memberName
}}
<
/text
>
<
/view
>
<
/view
>
<
view
class
=
"right-view"
@
click
=
"checkAllUser"
v
-
else
>
<
view
class
=
"right-view"
@
click
=
"checkAllUser"
v
-
else
>
<
view
class
=
"checkbox-view"
:
class
=
"{ checked: checkedAll
}
"
><
u
-
icon
name
=
"checkbox-mark"
v
-
if
=
"checkedAll"
><
/u-icon></
view
>
<
view
class
=
"checkbox-view"
:
class
=
"{ checked: checkedAll
}
"
><
u
-
icon
name
=
"checkbox-mark"
v
-
if
=
"checkedAll"
><
/u-icon></
view
>
<
text
>
全选
<
/text
>
<
text
>
全选
<
/text
>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
<
view
class
=
"billing-category"
v
-
if
=
"!recordId"
>
<
view
class
=
"billing-category"
v
-
if
=
"!recordId"
>
<
billing
-
category
ref
=
"billing-category"
:
list
=
"membersList"
@
handleClick
=
"membersChange"
@
setting
=
"toSetting"
><
/billing-category
>
<
billing
-
category
ref
=
"billing-category"
:
list
=
"membersList"
@
handleClick
=
"membersChange"
@
setting
=
"toSetting"
><
/billing-category
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"maintain-view"
>
<
view
class
=
"maintain-view"
>
...
@@ -50,32 +60,18 @@
...
@@ -50,32 +60,18 @@
<
view
class
=
"work"
v
-
if
=
"tabCurrent === 1"
>
<
view
class
=
"work"
v
-
if
=
"tabCurrent === 1"
>
<
u
-
form
-
item
label
=
"本次借支"
prop
=
"loanAmount"
required
>
<
u
-
form
-
item
label
=
"本次借支"
prop
=
"loanAmount"
required
>
<
view
class
=
"right-view"
>
<
view
class
=
"right-view"
>
<
u
-
input
<
u
-
input
type
=
"digit"
v
-
model
=
"form.loanAmount"
placeholder
=
"填写金额"
type
=
"digit"
:
clearable
=
"false"
input
-
align
=
"right"
maxlength
=
"11"
cursor
-
spacing
=
"50"
v
-
model
=
"form.loanAmount"
:
custom
-
style
=
"customStyle"
/>
placeholder
=
"填写金额"
:
clearable
=
"false"
input
-
align
=
"right"
maxlength
=
"11"
cursor
-
spacing
=
"50"
:
custom
-
style
=
"customStyle"
/>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
<
/view
>
<
/view
>
<
view
class
=
"overtime"
v
-
else
>
<
view
class
=
"overtime"
v
-
else
>
<
u
-
form
-
item
label
=
"本次结算"
prop
=
"statementAmount"
required
>
<
u
-
form
-
item
label
=
"本次结算"
prop
=
"statementAmount"
required
>
<
view
class
=
"right-view"
>
<
view
class
=
"right-view"
>
<
u
-
input
<
u
-
input
type
=
"digit"
v
-
model
=
"form.statementAmount"
placeholder
=
"填写金额"
type
=
"digit"
:
clearable
=
"false"
input
-
align
=
"right"
maxlength
=
"11"
cursor
-
spacing
=
"50"
v
-
model
=
"form.statementAmount"
:
custom
-
style
=
"customStyle"
/>
placeholder
=
"填写金额"
:
clearable
=
"false"
input
-
align
=
"right"
maxlength
=
"11"
cursor
-
spacing
=
"50"
:
custom
-
style
=
"customStyle"
/>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
<
/view
>
<
/view
>
...
@@ -83,20 +79,16 @@
...
@@ -83,20 +79,16 @@
<
block
v
-
else
>
<
block
v
-
else
>
<
view
class
=
"work"
v
-
if
=
"tabCurrent === 1"
>
<
view
class
=
"work"
v
-
if
=
"tabCurrent === 1"
>
<
u
-
form
-
item
label
=
"上班"
prop
=
"normalNumber"
label
-
position
=
"left"
label
-
width
=
"90"
required
>
<
u
-
form
-
item
label
=
"上班"
prop
=
"normalNumber"
label
-
position
=
"left"
label
-
width
=
"90"
required
>
<
view
class
=
"form-slot"
>
<
view
class
=
"form-slot"
>
<
view
class
=
"check-box"
>
<
view
class
=
"check-box"
>
<
checkbox
-
groups
<
checkbox
-
groups
:
checked
=
"form.normalText"
:
checked
=
"form.normalText"
:
customStyle
=
"checkboxCustomStyle"
:
options
=
"workTypeOptions"
:
customStyle
=
"checkboxCustomStyle"
@
handleClick
=
"workTypeChange"
><
/checkbox-groups
>
:
options
=
"workTypeOptions"
<
view
class
=
"custom-box placeholder"
@
handleClick
=
"workTypeChange"
><
/checkbox-groups
>
<
view
class
=
"custom-box placeholder"
:
class
=
"{ 'custom-box-checked': form.normalText === 3
}
"
:
class
=
"{ 'custom-box-checked': form.normalText === 3
}
"
@
click
=
"customNumberClick('normalCustomNumber')"
@
click
=
"customNumberClick('normalCustomNumber')"
>
>
<
text
class
=
"value-text"
v
-
if
=
"form.normalCustomNumber"
>
<
text
class
=
"value-text"
v
-
if
=
"form.normalCustomNumber"
>
{{
form
.
normalCustomNumber
}}
{{
form
.
normalType
===
'HOURS'
?
'小时'
:
'个工'
}}
{{
form
.
normalCustomNumber
}}
{{
form
.
normalType
===
'HOURS'
?
'小时'
:
'个工'
}}
<
/text
>
<
/text
>
...
@@ -109,17 +101,12 @@
...
@@ -109,17 +101,12 @@
<
u
-
form
-
item
label
=
"加班"
prop
=
"overNumber"
label
-
position
=
"left"
label
-
width
=
"90"
>
<
u
-
form
-
item
label
=
"加班"
prop
=
"overNumber"
label
-
position
=
"left"
label
-
width
=
"90"
>
<
view
class
=
"form-slot"
>
<
view
class
=
"form-slot"
>
<
view
class
=
"check-box"
>
<
view
class
=
"check-box"
>
<
checkbox
-
groups
<
checkbox
-
groups
:
checked
=
"form.overText"
:
customStyle
=
"checkboxCustomStyle"
:
checked
=
"form.overText"
:
customStyle
=
"checkboxCustomStyle"
:
options
=
"overtimeTypeOptions"
:
options
=
"overtimeTypeOptions"
@
handleClick
=
"overtimeTypeChange"
@
handleClick
=
"overtimeTypeChange"
><
/checkbox-groups
>
><
/checkbox-groups
>
<
view
class
=
"custom-box placeholder"
<
view
class
=
"custom-box placeholder"
:
class
=
"{ 'custom-box-checked': form.overText === 3
}
"
:
class
=
"{ 'custom-box-checked': form.overText === 3
}
"
@
click
=
"customNumberClick('overCustomNumber')"
@
click
=
"customNumberClick('overCustomNumber')"
>
>
<
text
class
=
"value-text"
v
-
if
=
"form.overCustomNumber"
>
<
text
class
=
"value-text"
v
-
if
=
"form.overCustomNumber"
>
{{
form
.
overCustomNumber
}}
{{
form
.
overType
===
'HOURS'
?
'小时'
:
'个工'
}}
{{
form
.
overCustomNumber
}}
{{
form
.
overType
===
'HOURS'
?
'小时'
:
'个工'
}}
<
/text
>
<
/text
>
...
@@ -129,83 +116,52 @@
...
@@ -129,83 +116,52 @@
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
<
u
-
form
-
item
label
=
"补扣"
prop
=
"rewardAmount"
:
border
-
bottom
=
"false"
:
label
-
style
=
"labelStyle"
label
-
position
=
"left"
label
-
width
=
"90"
>
<
u
-
form
-
item
label
=
"补扣"
prop
=
"rewardAmount"
:
border
-
bottom
=
"false"
:
label
-
style
=
"labelStyle"
label
-
position
=
"left"
label
-
width
=
"90"
>
<
view
class
=
"form-slot"
>
<
view
class
=
"form-slot"
>
<
checkbox
-
groups
<
checkbox
-
groups
:
checked
=
"form.deductText"
:
customStyle
=
"checkboxCustomStyle"
:
checked
=
"form.deductText"
:
customStyle
=
"checkboxCustomStyle"
:
options
=
"deductTypeOptions"
:
options
=
"deductTypeOptions"
@
handleClick
=
"deductTypeChange"
@
handleClick
=
"deductTypeChange"
><
/checkbox-groups
>
><
/checkbox-groups
>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
<!--
补扣
-->
<!--
补扣
-->
<
view
class
=
"deduct"
>
<
view
class
=
"deduct"
>
<
view
class
=
"deduct-box"
v
-
if
=
"form.deductText !== 1"
>
<
view
class
=
"deduct-box"
v
-
if
=
"form.deductText !== 1"
>
<
text
v
-
if
=
"form.deductText !== 1"
class
=
"deduct-box-unit"
:
class
=
"{ 'deduct-box-add': form.deductText === '+'
}
"
>
<
text
v
-
if
=
"form.deductText !== 1"
class
=
"deduct-box-unit"
:
class
=
"{ 'deduct-box-add': form.deductText === '+'
}
"
>
{{
form
.
deductText
}}
{{
form
.
deductText
}}
<
/text
>
<
/text
>
<
u
-
input
<
u
-
input
type
=
"digit"
v
-
model
=
"form.rewardAmount"
placeholder
=
"请输入金额"
type
=
"digit"
:
clearable
=
"false"
:
focus
=
"rewardAmountFocus"
input
-
align
=
"right"
v
-
model
=
"form.rewardAmount"
height
=
"56"
maxlength
=
"11"
cursor
-
spacing
=
"50"
@
blur
=
"onBlurDeductNumber"
placeholder
=
"请输入金额"
:
custom
-
style
=
"deductCustomStyle"
/>
:
clearable
=
"false"
:
focus
=
"rewardAmountFocus"
input
-
align
=
"right"
height
=
"56"
maxlength
=
"11"
cursor
-
spacing
=
"50"
@
blur
=
"onBlurDeductNumber"
:
custom
-
style
=
"deductCustomStyle"
/>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<!--
当前工资
-->
<!--
当前工资
-->
<
view
class
=
"wage"
v
-
if
=
"wageList.length"
><
wage
-
table
:
list
=
"wageList"
><
/wage-table></
view
>
<
view
class
=
"wage"
v
-
if
=
"wageList.length"
><
wage
-
table
:
list
=
"wageList"
><
/wage-table
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"overtime"
v
-
else
>
<
view
class
=
"overtime"
v
-
else
>
<
u
-
form
-
item
label
=
"工程量"
prop
=
"number"
required
>
<
u
-
form
-
item
label
=
"工程量"
prop
=
"number"
required
>
<
view
class
=
"value-view number-view"
>
<
view
class
=
"value-view number-view"
>
<
view
class
=
"form-input"
>
<
view
class
=
"form-input"
>
<
u
-
input
<
u
-
input
type
=
"digit"
v
-
model
=
"form.number"
placeholder
=
"施工量"
type
=
"digit"
:
clearable
=
"false"
input
-
align
=
"right"
height
=
"56"
maxlength
=
"11"
v
-
model
=
"form.number"
cursor
-
spacing
=
"50"
:
custom
-
style
=
"inputCustomStyle"
/>
placeholder
=
"施工量"
:
clearable
=
"false"
input
-
align
=
"right"
height
=
"56"
maxlength
=
"11"
cursor
-
spacing
=
"50"
:
custom
-
style
=
"inputCustomStyle"
/>
<
/view
>
<
/view
>
<
view
class
=
"unit-view"
>
<
view
class
=
"unit-view"
>
<
u
-
input
<
u
-
input
type
=
"text"
:
clearable
=
"false"
:
custom
-
style
=
"unitCustomStyle"
type
=
"text"
:
placeholder
-
style
=
"placeholderStyle"
height
=
"56"
input
-
align
=
"right"
:
clearable
=
"false"
v
-
model
=
"form.unit"
placeholder
=
"单位"
cursor
-
spacing
=
"50"
/>
:
custom
-
style
=
"unitCustomStyle"
<
ab
-
button
content
=
"常用"
:
customStyle
=
"customStyleUnit"
:
placeholder
-
style
=
"placeholderStyle"
@
click
=
"chooseUnit"
><
/ab-button
>
height
=
"56"
input
-
align
=
"right"
v
-
model
=
"form.unit"
placeholder
=
"单位"
cursor
-
spacing
=
"50"
/>
<
ab
-
button
content
=
"常用"
:
customStyle
=
"customStyleUnit"
@
click
=
"chooseUnit"
><
/ab-button
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/u-form-item
>
<
/u-form-item
>
<
u
-
form
-
item
label
=
"单价"
prop
=
"unitPrice"
required
>
<
u
-
form
-
item
label
=
"单价"
prop
=
"unitPrice"
required
>
<
u
-
input
<
u
-
input
type
=
"digit"
v
-
model
=
"form.unitPrice"
placeholder
=
"请输入单价"
type
=
"digit"
:
clearable
=
"false"
input
-
align
=
"right"
maxlength
=
"11"
cursor
-
spacing
=
"50"
v
-
model
=
"form.unitPrice"
:
custom
-
style
=
"customStyle"
/>
placeholder
=
"请输入单价"
:
clearable
=
"false"
input
-
align
=
"right"
maxlength
=
"11"
cursor
-
spacing
=
"50"
:
custom
-
style
=
"customStyle"
/>
<
/u-form-item
>
<
/u-form-item
>
<
u
-
form
-
item
label
=
"工钱"
prop
=
"totalPrice"
required
>
<
u
-
form
-
item
label
=
"工钱"
prop
=
"totalPrice"
required
>
<
view
class
=
"right-view"
>
<
view
class
=
"right-view"
>
...
@@ -229,7 +185,8 @@
...
@@ -229,7 +185,8 @@
<
/scroll-view
>
<
/scroll-view
>
<
/view
>
<
/view
>
<
view
class
=
"images-view"
>
<
view
class
=
"images-view"
>
<
UploadImages
max
-
count
=
"4"
:
uploading
.
sync
=
"uploading"
:
width
=
"144"
:
height
=
"144"
:
list
=
"form.attach"
@
on
-
list
-
change
=
"handleListChange"
/>
<
UploadImages
max
-
count
=
"4"
:
uploading
.
sync
=
"uploading"
:
width
=
"144"
:
height
=
"144"
:
list
=
"form.attach"
@
on
-
list
-
change
=
"handleListChange"
/>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -237,61 +194,67 @@
...
@@ -237,61 +194,67 @@
<
/u-form
>
<
/u-form
>
<
/view
>
<
/view
>
<
view
class
=
"submit-button-box"
>
<
view
class
=
"submit-button-box"
>
<
bottom
-
buttons
<
bottom
-
buttons
showCancel
:
loading
=
"buttonLoading"
:
disabled
=
"!canConfirm"
:
cancelText
=
"cancelText"
showCancel
:
customCancel
=
"customCancel"
@
cancel
=
"handleClickAgain"
@
confirm
=
"handleClickSure"
><
/bottom-buttons
>
:
loading
=
"buttonLoading"
:
disabled
=
"!canConfirm"
:
cancelText
=
"cancelText"
:
customCancel
=
"customCancel"
@
cancel
=
"handleClickAgain"
@
confirm
=
"handleClickSure"
><
/bottom-buttons
>
<
/view
>
<
/view
>
<
view
class
=
"loading-view"
v
-
if
=
"loading"
><
u
-
loading
mode
=
"flower"
><
/u-loading></
view
>
<
view
class
=
"loading-view"
v
-
if
=
"loading"
><
u
-
loading
mode
=
"flower"
><
/u-loading></
view
>
<
u
-
toast
ref
=
"uToast"
/>
<
u
-
toast
ref
=
"uToast"
/>
<!--
日历
-->
<!--
日历
-->
<
calendar
-
popup
:
type
=
"dateType"
:
date
=
"selectedDates"
ref
=
"calendar-popup"
@
confirm
=
"calendarChange"
><
/calendar-popup
>
<
calendar
-
popup
:
type
=
"dateType"
:
date
=
"selectedDates"
ref
=
"calendar-popup"
@
confirm
=
"calendarChange"
><
/calendar-popup
>
<
unit
-
popup
ref
=
"unit-popup"
:
options
=
"unitOptions"
:
unit
=
"form.unit"
@
change
=
"handleChangeUnit"
><
/unit-popup
>
<
unit
-
popup
ref
=
"unit-popup"
:
options
=
"unitOptions"
:
unit
=
"form.unit"
@
change
=
"handleChangeUnit"
><
/unit-popup
>
<
u
-
select
<
u
-
select
v
-
if
=
"selectShow"
v
-
model
=
"selectShow"
mode
=
"single-column"
cancel
-
color
=
"#02A074"
v
-
if
=
"selectShow"
cancel
-
text
=
"+ 新建项目"
value
-
name
=
"id"
label
-
name
=
"name"
:
default
-
value
=
"defaultProject"
:
list
=
"projectList"
v
-
model
=
"selectShow"
@
cancel
=
"toAddProject"
@
confirm
=
"selectConfirm"
><
/u-select
>
mode
=
"single-column"
<
PopInput
title
=
"删除提醒"
type
=
"text"
sureText
=
"确定"
content
=
"确认删除该账单?"
:
visible
.
sync
=
"showDeletePopup"
cancel
-
color
=
"#02A074"
@
click
=
"handleConfirmDelete"
/>
cancel
-
text
=
"+ 新建项目"
<
PopInput
:
title
=
"memberPopupTitle"
type
=
"text"
sureText
=
"确定"
content
=
"是否前往设置工价?"
value
-
name
=
"id"
:
visible
.
sync
=
"showMemberPopup"
@
click
=
"handleConfirmMember"
/>
label
-
name
=
"name"
<
pop
-
number
-
view
ref
=
"pop-number-view"
:
title
=
"customPopupTitle"
:
valueKey
=
"customNumberKey"
:
default
-
value
=
"defaultProject"
:
type
=
"customNumberType"
@
confirm
=
"handleConfirmCustom"
><
/pop-number-view
>
:
list
=
"projectList"
@
cancel
=
"toAddProject"
@
confirm
=
"selectConfirm"
><
/u-select
>
<
PopInput
title
=
"删除提醒"
type
=
"text"
sureText
=
"确定"
content
=
"确认删除该账单?"
:
visible
.
sync
=
"showDeletePopup"
@
click
=
"handleConfirmDelete"
/>
<
PopInput
:
title
=
"memberPopupTitle"
type
=
"text"
sureText
=
"确定"
content
=
"是否前往设置工价?"
:
visible
.
sync
=
"showMemberPopup"
@
click
=
"handleConfirmMember"
/>
<
pop
-
number
-
view
ref
=
"pop-number-view"
:
title
=
"customPopupTitle"
:
valueKey
=
"customNumberKey"
:
type
=
"customNumberType"
@
confirm
=
"handleConfirmCustom"
><
/pop-number-view
>
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
CheckboxGroups
from
'@/components/checkbox-groups/checkbox-groups.vue'
;
import
CheckboxGroups
from
'@/components/checkbox-groups/checkbox-groups.vue'
;
import
AbButton
from
'@/components/common/ab-button.vue'
;
import
AbButton
from
'@/components/common/ab-button.vue'
;
import
BottomButtons
from
'@/components/common/bottom-buttons.vue'
;
import
BottomButtons
from
'@/components/common/bottom-buttons.vue'
;
import
UnitPopup
from
'@/components/unit-popup/unit-popup.vue'
;
import
UnitPopup
from
'@/components/unit-popup/unit-popup.vue'
;
import
UploadImages
from
'@/components/upload'
;
import
UploadImages
from
'@/components/upload'
;
import
PopInput
from
'@/components/pop-input-view'
;
import
PopInput
from
'@/components/pop-input-view'
;
import
PopNumberView
from
'./components/pop-number-view'
;
import
PopNumberView
from
'./components/pop-number-view'
;
import
PopRewardView
from
'./components/pop-reward-view'
;
import
PopRewardView
from
'./components/pop-reward-view'
;
import
SubmitButton
from
'@/components/submit-button/index.vue'
;
import
SubmitButton
from
'@/components/submit-button/index.vue'
;
import
CalendarPopup
from
'@/components/calendar-popup/calendar-popup.vue'
;
import
CalendarPopup
from
'@/components/calendar-popup/calendar-popup.vue'
;
import
BillTabs
from
'../components/bill-tabs.vue'
;
import
BillTabs
from
'../components/bill-tabs.vue'
;
import
BillingCategory
from
'../components/billing-category.vue'
;
import
BillingCategory
from
'../components/billing-category.vue'
;
import
WageTable
from
'./components/wage-table.vue'
;
import
WageTable
from
'./components/wage-table.vue'
;
import
{
checkOpenPermission
,
checkOpenService
}
from
'@/utils/app-plus-auth.js'
;
import
{
import
{
getMembers
,
getProject
,
getProjectList
,
update
,
recordCalculateDetail
}
from
'@/api/workpoint/index.js'
;
checkOpenPermission
,
import
{
getBillInfo
,
deleteBill
}
from
'@/api/workpoint/project-bill.js'
;
checkOpenService
import
{
updateProject
}
from
'@/api/project/index.js'
;
}
from
'@/utils/app-plus-auth.js'
;
import
{
formatCount
}
from
'@/utils/common.js'
;
import
{
import
{
baseUrl
,
billBaseUrl
}
from
'@/utils/config.js'
;
getMembers
,
import
{
getProject
,
getProjectList
,
update
,
recordCalculateDetail
}
from
'@/api/workpoint/index.js'
;
import
{
getBillInfo
,
deleteBill
}
from
'@/api/workpoint/project-bill.js'
;
import
{
updateProject
}
from
'@/api/project/index.js'
;
import
{
formatCount
}
from
'@/utils/common.js'
;
import
{
baseUrl
,
billBaseUrl
}
from
'@/utils/config.js'
;
import
{
tabOptions
,
tabOptions
,
loanTabOptions
,
loanTabOptions
,
workTypeOptions
,
workTypeOptions
,
...
@@ -304,10 +267,12 @@ import {
...
@@ -304,10 +267,12 @@ import {
timeValidate
,
timeValidate
,
contractorValidate
,
contractorValidate
,
unitOptions
unitOptions
}
from
'@/utils/options/workpoint/index.js'
;
}
from
'@/utils/options/workpoint/index.js'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
export
default
{
components
:
{
components
:
{
CheckboxGroups
,
CheckboxGroups
,
AbButton
,
AbButton
,
...
@@ -463,12 +428,10 @@ export default {
...
@@ -463,12 +428,10 @@ export default {
limit
:
6
,
limit
:
6
,
membersList
:
[],
membersList
:
[],
membersLength
:
0
,
membersLength
:
0
,
defaultList
:
[
defaultList
:
[{
{
id
:
'setting'
,
id
:
'setting'
,
name
:
'管理'
name
:
'管理'
}
}
],
],
tabCurrent
:
1
,
tabCurrent
:
1
,
path
:
'workpoint'
,
path
:
'workpoint'
,
notification
:
'workpoint-create-remark'
,
notification
:
'workpoint-create-remark'
,
...
@@ -488,9 +451,19 @@ export default {
...
@@ -488,9 +451,19 @@ export default {
canConfirm
()
{
canConfirm
()
{
let
flag
=
true
;
let
flag
=
true
;
this
.
defaultValidate
.
map
(
key
=>
{
this
.
defaultValidate
.
map
(
key
=>
{
if
(
key
===
"happenTime"
)
{
if
(
this
.
isDateRange
)
{
flag
=
this
.
form
.
dateRange
.
length
!==
0
}
else
{
if
(
!
this
.
form
[
key
])
{
if
(
!
this
.
form
[
key
])
{
flag
=
false
;
flag
=
false
;
}
}
}
}
else
{
if
(
!
this
.
form
[
key
])
{
flag
=
false
;
}
}
}
);
}
);
if
(
this
.
path
===
'loan'
)
{
if
(
this
.
path
===
'loan'
)
{
let
key
=
this
.
form
.
type
===
'BORROWING'
?
'loanAmount'
:
'statementAmount'
;
let
key
=
this
.
form
.
type
===
'BORROWING'
?
'loanAmount'
:
'statementAmount'
;
...
@@ -499,7 +472,7 @@ export default {
...
@@ -499,7 +472,7 @@ export default {
}
}
}
else
{
}
else
{
if
(
this
.
form
.
type
===
'TIME'
)
{
if
(
this
.
form
.
type
===
'TIME'
)
{
if
(
this
.
form
.
normalNumber
<=
0
&&
this
.
form
.
overNumber
<=
0
&&
this
.
form
.
rewardAmount
<=
0
)
{
if
(
this
.
form
.
normalNumber
<=
0
&&
this
.
form
.
overNumber
<=
0
&&
this
.
form
.
rewardAmount
<=
0
)
{
flag
=
false
;
flag
=
false
;
}
}
}
else
{
}
else
{
...
@@ -510,6 +483,7 @@ export default {
...
@@ -510,6 +483,7 @@ export default {
}
);
}
);
}
}
}
}
console
.
log
(
flag
)
return
flag
;
return
flag
;
}
,
}
,
totalPrice
()
{
totalPrice
()
{
...
@@ -572,7 +546,7 @@ export default {
...
@@ -572,7 +546,7 @@ export default {
this
.
dateType
=
'date'
this
.
dateType
=
'date'
this
.
getBillInfo
();
this
.
getBillInfo
();
}
else
{
}
else
{
this
.
dateType
=
this
.
form
.
type
==
'TIME'
?
'daterange'
:
'dat
e'
this
.
dateType
=
this
.
path
===
'loan'
?
'date'
:
'daterang
e'
}
}
}
,
}
,
onReady
()
{
onReady
()
{
...
@@ -596,9 +570,34 @@ export default {
...
@@ -596,9 +570,34 @@ export default {
}
,
}
,
async
getBillInfo
()
{
async
getBillInfo
()
{
try
{
try
{
let
{
data
}
=
await
getBillInfo
({
projectId
:
this
.
projectId
,
recordId
:
this
.
recordId
}
);
let
{
let
{
dateRange
,
happenTime
,
memberId
,
memberName
,
type
,
remark
,
attach
}
=
data
;
data
let
{
normalNumber
,
normalText
,
normalType
,
overNumber
,
overText
,
overType
,
number
,
unit
,
unitPrice
,
amount
,
rewardAmount
}
=
data
.
data
;
}
=
await
getBillInfo
({
projectId
:
this
.
projectId
,
recordId
:
this
.
recordId
}
);
let
{
dateRange
,
happenTime
,
memberId
,
memberName
,
type
,
remark
,
attach
}
=
data
;
let
{
normalNumber
,
normalText
,
normalType
,
overNumber
,
overText
,
overType
,
number
,
unit
,
unitPrice
,
amount
,
rewardAmount
}
=
data
.
data
;
let
form
=
{
let
form
=
{
...
this
.
form
,
...
this
.
form
,
...
@@ -608,7 +607,7 @@ export default {
...
@@ -608,7 +607,7 @@ export default {
type
:
type
.
code
,
type
:
type
.
code
,
remark
,
remark
,
// 点工
// 点工
normalNumber
:
normalNumber
,
normalNumber
:
normalText
?
normalNumber
:
1
,
normalText
:
normalText
||
1
,
normalText
:
normalText
||
1
,
normalType
:
(
normalType
&&
normalType
.
code
)
||
'UNIT'
,
normalType
:
(
normalType
&&
normalType
.
code
)
||
'UNIT'
,
overNumber
,
overNumber
,
...
@@ -630,12 +629,10 @@ export default {
...
@@ -630,12 +629,10 @@ export default {
if
(
type
.
code
===
'CONTRACTOR'
||
type
.
code
===
'SETTLE'
)
{
if
(
type
.
code
===
'CONTRACTOR'
||
type
.
code
===
'SETTLE'
)
{
this
.
tabCurrent
=
2
;
this
.
tabCurrent
=
2
;
}
}
form
.
memberId
=
[
form
.
memberId
=
[{
{
id
:
this
.
recordId
,
id
:
this
.
recordId
,
memberId
:
memberId
memberId
:
memberId
}
}
];
];
if
(
normalText
===
3
)
{
if
(
normalText
===
3
)
{
form
.
normalCustomNumber
=
normalNumber
;
form
.
normalCustomNumber
=
normalNumber
;
}
}
...
@@ -652,7 +649,7 @@ export default {
...
@@ -652,7 +649,7 @@ export default {
form
.
deductText
=
1
;
form
.
deductText
=
1
;
}
}
this
.
form
=
form
;
this
.
form
=
form
;
console
.
log
(
"form"
,
form
);
console
.
log
(
"form"
,
form
);
this
.
setWageList
();
this
.
setWageList
();
}
catch
(
e
)
{
}
catch
(
e
)
{
//TODO handle the exception
//TODO handle the exception
...
@@ -661,7 +658,11 @@ export default {
...
@@ -661,7 +658,11 @@ export default {
}
,
}
,
async
getProjectInfo
()
{
async
getProjectInfo
()
{
try
{
try
{
let
{
data
}
=
await
getProject
({
id
:
this
.
projectId
}
);
let
{
data
}
=
await
getProject
({
id
:
this
.
projectId
}
);
this
.
form
.
projectName
=
data
.
name
;
this
.
form
.
projectName
=
data
.
name
;
}
catch
(
e
)
{
}
catch
(
e
)
{
//TODO handle the exception
//TODO handle the exception
...
@@ -670,7 +671,9 @@ export default {
...
@@ -670,7 +671,9 @@ export default {
}
,
}
,
async
getProjectList
(
text
)
{
async
getProjectList
(
text
)
{
try
{
try
{
let
{
data
}
=
await
getProjectList
();
let
{
data
}
=
await
getProjectList
();
this
.
projectList
=
[...
data
];
this
.
projectList
=
[...
data
];
if
(
!
this
.
projectId
)
{
if
(
!
this
.
projectId
)
{
if
(
this
.
prevProjectId
)
{
if
(
this
.
prevProjectId
)
{
...
@@ -704,7 +707,17 @@ export default {
...
@@ -704,7 +707,17 @@ export default {
}
;
}
;
if
(
this
.
path
!==
'loan'
)
{
if
(
this
.
path
!==
'loan'
)
{
if
(
this
.
form
.
type
===
'TIME'
)
{
if
(
this
.
form
.
type
===
'TIME'
)
{
let
{
normalNumber
,
normalCustomNumber
,
normalText
,
normalType
,
overNumber
,
overText
,
overType
,
deductText
,
rewardAmount
}
=
this
.
form
;
let
{
normalNumber
,
normalCustomNumber
,
normalText
,
normalType
,
overNumber
,
overText
,
overType
,
deductText
,
rewardAmount
}
=
this
.
form
;
form
.
data
=
{
form
.
data
=
{
normalNumber
,
normalNumber
,
normalText
,
normalText
,
...
@@ -730,7 +743,8 @@ export default {
...
@@ -730,7 +743,8 @@ export default {
form
.
data
.
rewardAmount
=
0
;
form
.
data
.
rewardAmount
=
0
;
}
else
{
}
else
{
console
.
log
(
deductText
);
console
.
log
(
deductText
);
form
.
data
.
rewardAmount
=
rewardAmount
&&
deductText
===
'-'
?
deductText
+
rewardAmount
:
rewardAmount
;
form
.
data
.
rewardAmount
=
rewardAmount
&&
deductText
===
'-'
?
deductText
+
rewardAmount
:
rewardAmount
;
}
}
this
.
getCalculateDetail
(
form
);
this
.
getCalculateDetail
(
form
);
}
}
...
@@ -738,7 +752,10 @@ export default {
...
@@ -738,7 +752,10 @@ export default {
}
,
}
,
async
getCalculateDetail
(
params
)
{
async
getCalculateDetail
(
params
)
{
try
{
try
{
let
{
code
,
data
}
=
await
recordCalculateDetail
(
params
);
let
{
code
,
data
}
=
await
recordCalculateDetail
(
params
);
if
(
code
===
0
)
{
if
(
code
===
0
)
{
this
.
wageList
=
data
;
this
.
wageList
=
data
;
console
.
log
(
'wageList'
,
this
.
wageList
);
console
.
log
(
'wageList'
,
this
.
wageList
);
...
@@ -794,7 +811,10 @@ export default {
...
@@ -794,7 +811,10 @@ export default {
updateProject
(
params
)
{
updateProject
(
params
)
{
updateProject
(
params
)
updateProject
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
{
data
,
code
}
=
res
;
let
{
data
,
code
}
=
res
;
if
(
code
===
0
&&
data
)
{
if
(
code
===
0
&&
data
)
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
'项目创建成功'
,
title
:
'项目创建成功'
,
...
@@ -869,6 +889,11 @@ export default {
...
@@ -869,6 +889,11 @@ export default {
if
(
item
.
value
===
2
)
{
if
(
item
.
value
===
2
)
{
this
.
wageList
=
[];
this
.
wageList
=
[];
}
else
{
}
else
{
// if(this.path !== 'loan')
{
// if(this.recordId&&!this.form.normalNumber)
{
// this.form.normalNumber
//
}
//
}
this
.
setWageList
();
this
.
setWageList
();
}
}
}
,
}
,
...
@@ -890,7 +915,11 @@ export default {
...
@@ -890,7 +915,11 @@ export default {
}
,
}
,
async
getMembersOptions
()
{
async
getMembersOptions
()
{
try
{
try
{
let
{
data
}
=
await
getMembers
({
projectId
:
this
.
projectId
}
);
let
{
data
}
=
await
getMembers
({
projectId
:
this
.
projectId
}
);
let
list
=
[];
let
list
=
[];
data
.
map
((
item
,
index
)
=>
{
data
.
map
((
item
,
index
)
=>
{
item
.
checked
=
false
;
item
.
checked
=
false
;
...
@@ -963,20 +992,24 @@ export default {
...
@@ -963,20 +992,24 @@ export default {
}
);
}
);
return
;
return
;
}
}
let
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
if
(
this
.
isDateRange
)
{
if
(
this
.
isDateRange
)
{
this
.
f
orm
.
happenTime
=
''
dataF
orm
.
happenTime
=
''
}
else
{
}
else
{
this
.
f
orm
.
dateRange
=
[]
dataF
orm
.
dateRange
=
[]
}
}
this
.
$refs
.
uForm
.
validate
(
valid
=>
{
this
.
$refs
.
uForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
'验证通过'
);
console
.
log
(
'验证通过'
);
let
form
=
{
let
form
=
{
...
this
.
f
orm
...
dataF
orm
}
;
}
;
if
(
this
.
path
===
'loan'
)
{
if
(
this
.
path
===
'loan'
)
{
let
{
loanAmount
,
statementAmount
}
=
this
.
form
;
let
{
if
(
this
.
form
.
type
===
'BORROWING'
)
{
loanAmount
,
statementAmount
}
=
dataForm
;
if
(
dataForm
.
type
===
'BORROWING'
)
{
if
(
!
Number
(
loanAmount
))
{
if
(
!
Number
(
loanAmount
))
{
this
.
showToast
(
'请输入借支金额'
);
this
.
showToast
(
'请输入借支金额'
);
return
false
;
return
false
;
...
@@ -984,7 +1017,7 @@ export default {
...
@@ -984,7 +1017,7 @@ export default {
form
.
data
=
{
form
.
data
=
{
amount
:
loanAmount
amount
:
loanAmount
}
;
}
;
}
else
if
(
this
.
f
orm
.
type
===
'SETTLE'
)
{
}
else
if
(
dataF
orm
.
type
===
'SETTLE'
)
{
if
(
!
Number
(
statementAmount
))
{
if
(
!
Number
(
statementAmount
))
{
this
.
showToast
(
'请输入结算金额'
);
this
.
showToast
(
'请输入结算金额'
);
return
false
;
return
false
;
...
@@ -994,7 +1027,7 @@ export default {
...
@@ -994,7 +1027,7 @@ export default {
}
;
}
;
}
}
}
else
{
}
else
{
if
(
this
.
f
orm
.
type
===
'TIME'
)
{
if
(
dataF
orm
.
type
===
'TIME'
)
{
let
{
let
{
normalNumber
,
normalNumber
,
normalCustomNumber
,
normalCustomNumber
,
...
@@ -1006,7 +1039,7 @@ export default {
...
@@ -1006,7 +1039,7 @@ export default {
overType
,
overType
,
deductText
,
deductText
,
rewardAmount
rewardAmount
}
=
this
.
f
orm
;
}
=
dataF
orm
;
form
.
data
=
{
form
.
data
=
{
normalNumber
,
normalNumber
,
normalText
,
normalText
,
...
@@ -1024,10 +1057,15 @@ export default {
...
@@ -1024,10 +1057,15 @@ export default {
if
(
deductText
===
1
)
{
if
(
deductText
===
1
)
{
form
.
data
.
rewardAmount
=
0
;
form
.
data
.
rewardAmount
=
0
;
}
else
{
}
else
{
form
.
data
.
rewardAmount
=
rewardAmount
&&
deductText
===
'-'
?
deductText
+
rewardAmount
:
rewardAmount
;
form
.
data
.
rewardAmount
=
rewardAmount
&&
deductText
===
'-'
?
deductText
+
rewardAmount
:
rewardAmount
;
}
}
}
else
if
(
this
.
form
.
type
===
'CONTRACTOR'
)
{
}
else
if
(
dataForm
.
type
===
'CONTRACTOR'
)
{
let
{
number
,
unit
,
unitPrice
}
=
this
.
form
;
let
{
number
,
unit
,
unitPrice
}
=
dataForm
;
form
.
data
=
{
form
.
data
=
{
number
,
number
,
unit
,
unit
,
...
@@ -1126,7 +1164,11 @@ export default {
...
@@ -1126,7 +1164,11 @@ export default {
}
,
}
,
async
handleConfirmDelete
()
{
async
handleConfirmDelete
()
{
try
{
try
{
let
{
code
}
=
await
deleteBill
({
id
:
this
.
recordId
}
);
let
{
code
}
=
await
deleteBill
({
id
:
this
.
recordId
}
);
if
(
code
===
0
)
{
if
(
code
===
0
)
{
this
.
updateOtherPage
();
this
.
updateOtherPage
();
this
.
$u
.
route
({
this
.
$u
.
route
({
...
@@ -1206,7 +1248,11 @@ export default {
...
@@ -1206,7 +1248,11 @@ export default {
//
}
,
300
);
//
}
,
300
);
}
,
}
,
handleConfirmCustom
(
params
)
{
handleConfirmCustom
(
params
)
{
let
{
number
,
key
,
type
}
=
params
;
let
{
number
,
key
,
type
}
=
params
;
this
.
form
[
key
]
=
number
||
'0'
;
this
.
form
[
key
]
=
number
||
'0'
;
if
(
key
===
'normalCustomNumber'
)
{
if
(
key
===
'normalCustomNumber'
)
{
this
.
form
.
normalType
=
type
;
this
.
form
.
normalType
=
type
;
...
@@ -1218,19 +1264,21 @@ export default {
...
@@ -1218,19 +1264,21 @@ export default {
this
.
setWageList
();
this
.
setWageList
();
}
}
}
}
}
;
}
;
<
/script
>
<
/script
>
<
style
scoped
lang
=
"scss"
>
<
style
scoped
lang
=
"scss"
>
/deep/
.
u
-
border
-
bottom
:
after
{
/deep/
.
u
-
border
-
bottom
:
after
{
border
:
2
solid
#
f6f7fa
!
important
;
border
:
2
solid
#
f6f7fa
!
important
;
}
}
/deep/
.
u
-
form
-
item__message
{
/deep/
.
u
-
form
-
item__message
{
text
-
align
:
right
!
important
;
text
-
align
:
right
!
important
;
}
}
.
workpoint
-
create
{
.
workpoint
-
create
{
background
-
color
:
#
f6f7fa
;
background
-
color
:
#
f6f7fa
;
color
:
#
333333
;
color
:
#
333333
;
.
submit
-
button
-
box
{
.
submit
-
button
-
box
{
width
:
100
%
;
width
:
100
%
;
position
:
fixed
;
position
:
fixed
;
...
@@ -1240,28 +1288,36 @@ export default {
...
@@ -1240,28 +1288,36 @@ export default {
padding
:
0
24
rpx
;
padding
:
0
24
rpx
;
background
-
color
:
#
f6f7fa
;
background
-
color
:
#
f6f7fa
;
}
}
.
content
-
view
{
.
content
-
view
{
padding
:
0
24
rpx
;
padding
:
0
24
rpx
;
padding
-
bottom
:
144
rpx
;
padding
-
bottom
:
144
rpx
;
.
placeholder
{
.
placeholder
{
font
-
weight
:
bold
;
font
-
weight
:
bold
;
color
:
#
cccccc
;
color
:
#
cccccc
;
}
}
.
value
-
text
{
.
value
-
text
{
color
:
#
333333
;
color
:
#
333333
;
}
}
.
arrow
{
.
arrow
{
margin
-
left
:
12
rpx
;
margin
-
left
:
12
rpx
;
}
}
.
work
{
.
work
{
width
:
100
%
;
width
:
100
%
;
}
}
.
form
-
slot
{
.
form
-
slot
{
width
:
100
%
;
width
:
100
%
;
.
check
-
box
{
.
check
-
box
{
width
:
100
%
;
width
:
100
%
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
.
custom
-
box
{
.
custom
-
box
{
margin
-
left
:
24
rpx
;
margin
-
left
:
24
rpx
;
display
:
flex
;
display
:
flex
;
...
@@ -1277,22 +1333,26 @@ export default {
...
@@ -1277,22 +1333,26 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
white
-
space
:
nowrap
;
white
-
space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
// word-break: break-all;
// word-break: break-all;
&-
icon
{
&-
icon
{
margin
-
top
:
2
rpx
;
margin
-
top
:
2
rpx
;
}
}
}
}
.
custom
-
box
-
checked
{
.
custom
-
box
-
checked
{
border
:
2
rpx
solid
#
02
a074
;
border
:
2
rpx
solid
#
02
a074
;
}
}
}
}
}
}
.
deduct
{
.
deduct
{
width
:
100
%
;
width
:
100
%
;
padding
-
bottom
:
24
rpx
;
padding
-
bottom
:
24
rpx
;
padding
-
left
:
90
rpx
;
padding
-
left
:
90
rpx
;
border
-
bottom
:
2
rpx
solid
#
f6f7fa
;
border
-
bottom
:
2
rpx
solid
#
f6f7fa
;
}
}
.
deduct
-
box
{
.
deduct
-
box
{
margin
-
top
:
24
rpx
;
margin
-
top
:
24
rpx
;
width
:
456
rpx
;
width
:
456
rpx
;
...
@@ -1302,6 +1362,7 @@ export default {
...
@@ -1302,6 +1362,7 @@ export default {
padding
:
0
24
rpx
;
padding
:
0
24
rpx
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
.
deduct
-
box
-
unit
{
.
deduct
-
box
-
unit
{
font
-
size
:
32
rpx
;
font
-
size
:
32
rpx
;
font
-
weight
:
bold
;
font
-
weight
:
bold
;
...
@@ -1310,31 +1371,36 @@ export default {
...
@@ -1310,31 +1371,36 @@ export default {
line
-
height
:
80
rpx
;
line
-
height
:
80
rpx
;
margin
-
bottom
:
8
rpx
;
margin
-
bottom
:
8
rpx
;
}
}
.
deduct
-
box
-
add
{
.
deduct
-
box
-
add
{
font
-
size
:
32
rpx
;
font
-
size
:
32
rpx
;
}
}
}
}
.
wage
{
.
wage
{
width
:
100
%
;
width
:
100
%
;
}
}
.
part
-
view
{
.
part
-
view
{
padding
:
24
rpx
;
padding
:
24
rpx
;
background
-
color
:
#
ffffff
;
background
-
color
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
margin
-
top
:
24
rpx
;
margin
-
top
:
24
rpx
;
padding
-
top
:
0
;
padding
-
top
:
0
;
.
right
-
view
{
.
right
-
view
{
width
:
100
%
;
width
:
100
%
;
display
:
flex
;
display
:
flex
;
justify
-
content
:
flex
-
end
;
justify
-
content
:
flex
-
end
;
align
-
items
:
center
;
align
-
items
:
center
;
.
date
-
view
{
.
date
-
view
{
display
:
flex
;
display
:
flex
;
justify
-
content
:
flex
-
end
;
justify
-
content
:
flex
-
end
;
align
-
items
:
center
;
align
-
items
:
center
;
font
-
weight
:
bold
;
font
-
weight
:
bold
;
.
date
-
text
{
}
.
date
-
text
{
}
.
image
-
view
{
.
image
-
view
{
width
:
32
rpx
;
width
:
32
rpx
;
...
@@ -1343,6 +1409,7 @@ export default {
...
@@ -1343,6 +1409,7 @@ export default {
margin
-
left
:
16
rpx
;
margin
-
left
:
16
rpx
;
}
}
}
}
.
checkbox
-
view
{
.
checkbox
-
view
{
width
:
32
rpx
;
width
:
32
rpx
;
height
:
32
rpx
;
height
:
32
rpx
;
...
@@ -1354,24 +1421,28 @@ export default {
...
@@ -1354,24 +1421,28 @@ export default {
margin
-
right
:
12
rpx
;
margin
-
right
:
12
rpx
;
font
-
size
:
24
rpx
;
font
-
size
:
24
rpx
;
}
}
.
checked
{
.
checked
{
background
:
$default
-
color
;
background
:
$default
-
color
;
border
:
2
rpx
solid
$default
-
color
;
border
:
2
rpx
solid
$default
-
color
;
color
:
#
ffffff
;
color
:
#
ffffff
;
}
}
}
}
.
value
-
view
{
.
value
-
view
{
font
-
weight
:
bold
;
font
-
weight
:
bold
;
color
:
#
333333
;
color
:
#
333333
;
text
-
align
:
right
;
text
-
align
:
right
;
width
:
100
%
;
width
:
100
%
;
}
}
.
number
-
view
{
.
number
-
view
{
width
:
100
%
;
width
:
100
%
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
justify
-
content
:
flex
-
end
;
justify
-
content
:
flex
-
end
;
}
}
.
unit
-
view
{
.
unit
-
view
{
border
-
left
:
2
rpx
solid
#
f6f7fa
;
border
-
left
:
2
rpx
solid
#
f6f7fa
;
margin
-
left
:
20
rpx
;
margin
-
left
:
20
rpx
;
...
@@ -1388,35 +1459,43 @@ export default {
...
@@ -1388,35 +1459,43 @@ export default {
margin
:
16
rpx
0
;
margin
:
16
rpx
0
;
}
}
}
}
.
maintain
-
view
{
.
maintain
-
view
{
margin
-
top
:
24
rpx
;
margin
-
top
:
24
rpx
;
width
:
100
%
;
width
:
100
%
;
background
-
color
:
#
ffffff
;
background
-
color
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
.
part
-
view
{
.
part
-
view
{
margin
-
top
:
0
;
margin
-
top
:
0
;
}
}
.
images
-
view
{
.
images
-
view
{
padding
:
24
rpx
0
;
padding
:
24
rpx
0
;
}
}
.
remark
-
view
{
.
remark
-
view
{
margin
-
top
:
24
rpx
;
margin
-
top
:
24
rpx
;
}
}
.
area
-
view
{
.
area
-
view
{
margin
:
24
rpx
0
;
margin
:
24
rpx
0
;
height
:
240
rpx
;
height
:
240
rpx
;
padding
:
24
rpx
;
padding
:
24
rpx
;
background
:
#
f6f7fa
;
background
:
#
f6f7fa
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
.
scroll
-
Y
{
.
scroll
-
Y
{
width
:
100
%
;
width
:
100
%
;
height
:
100
%
;
height
:
100
%
;
.
remark
-
text
{
.
remark
-
text
{
text
-
align
:
left
;
text
-
align
:
left
;
font
-
size
:
28
rpx
;
font
-
size
:
28
rpx
;
line
-
height
:
36
rpx
;
line
-
height
:
36
rpx
;
font
-
weight
:
bold
;
font
-
weight
:
bold
;
}
}
.
placeholder
-
style
{
.
placeholder
-
style
{
color
:
#
cccccc
;
color
:
#
cccccc
;
}
}
...
@@ -1424,9 +1503,11 @@ export default {
...
@@ -1424,9 +1503,11 @@ export default {
}
}
}
}
}
}
.
bottom
-
view
{
.
bottom
-
view
{
position
:
fixed
;
position
:
fixed
;
margin
:
16
rpx
32
rpx
36
rpx
32
rpx
;
margin
:
16
rpx
32
rpx
36
rpx
32
rpx
;
.
confirm
-
view
{
.
confirm
-
view
{
color
:
#
ffffff
;
color
:
#
ffffff
;
height
:
96
rpx
;
height
:
96
rpx
;
...
@@ -1435,6 +1516,7 @@ export default {
...
@@ -1435,6 +1516,7 @@ export default {
font
-
size
:
32
rpx
;
font
-
size
:
32
rpx
;
}
}
}
}
.
loading
-
view
{
.
loading
-
view
{
width
:
100
%
;
width
:
100
%
;
background
-
color
:
transparent
;
background
-
color
:
transparent
;
...
@@ -1445,18 +1527,21 @@ export default {
...
@@ -1445,18 +1527,21 @@ export default {
left
:
0
;
left
:
0
;
position
:
fixed
;
position
:
fixed
;
}
}
.
custom
{
.
custom
{
width
:
100
%
;
width
:
100
%
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
justify
-
content
:
space
-
between
;
justify
-
content
:
space
-
between
;
font
-
size
:
28
rpx
;
font
-
size
:
28
rpx
;
&-
label
{
&-
label
{
color
:
$default
-
color
;
color
:
$default
-
color
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
justify
-
content
:
flex
-
end
;
justify
-
content
:
flex
-
end
;
width
:
180
rpx
;
width
:
180
rpx
;
&-
icon
{
&-
icon
{
width
:
28
rpx
;
width
:
28
rpx
;
height
:
28
rpx
;
height
:
28
rpx
;
...
@@ -1469,10 +1554,11 @@ export default {
...
@@ -1469,10 +1554,11 @@ export default {
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
&-
unit
{
&-
unit
{
margin
-
left
:
12
rpx
;
margin
-
left
:
12
rpx
;
}
}
}
}
}
}
}
}
<
/style>
<
/style>
\ No newline at end of file
utils/options/maintain-bill/index.js
View file @
277e963d
...
@@ -244,12 +244,12 @@ export const canvasTableCellOptions = [{
...
@@ -244,12 +244,12 @@ export const canvasTableCellOptions = [{
export
const
tableFooterOptions
=
[{
export
const
tableFooterOptions
=
[{
value
:
"upperCase"
,
value
:
"upperCase"
,
label
:
"大写金额:"
,
label
:
"大写金额:"
,
width
:
"
70%
"
,
width
:
"
140px
"
,
},
},
{
{
value
:
"lowerCase"
,
value
:
"lowerCase"
,
label
:
"(小写)"
,
label
:
"(小写)"
,
width
:
"
30%
"
,
width
:
"
55px
"
,
},
},
]
]
...
...
utils/options/mine/index.js
View file @
277e963d
...
@@ -49,6 +49,12 @@ export const packageOptions = [
...
@@ -49,6 +49,12 @@ export const packageOptions = [
icon
:
'file-text'
,
icon
:
'file-text'
,
path
:
"/pages/mine/import-export/import-export"
path
:
"/pages/mine/import-export/import-export"
},
},
{
id
:
5
,
title
:
'账单回收站'
,
icon
:
'file-text'
,
path
:
"/pages/mine/recyled/recyled"
},
{
{
id
:
1
,
id
:
1
,
title
:
'关于'
,
title
:
'关于'
,
...
...
utils/options/mine/recyled.js
0 → 100644
View file @
277e963d
export
const
tabsOptions
=
[{
title
:
'日常记账'
,
name
:
"DAILY"
},
{
title
:
'收据记账'
,
name
:
"REPAIR"
},
{
title
:
'记工时'
,
name
:
'PROJECT'
},
]
\ No newline at end of file
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