Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c84b5941
authored
Jan 28, 2026
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.6.1' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.6.1
2 parents
f62f1224
9980c3e1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
190 additions
and
97 deletions
api/module/common.js
components/Entrance.vue
components/HomeFrame/components/Point.vue
components/HomeFrame/index.vue
js_sdk/wa-permission/permission.js
pages/boutique/tool/components/DailyReport.vue
pages/common/wageAppeal/components/AttendanceRecord.vue
pages/common/wageAppeal/index.vue
pages/equity/tool/components/DailyReport.vue
api/module/common.js
View file @
c84b594
...
@@ -610,4 +610,23 @@ module.exports = {
...
@@ -610,4 +610,23 @@ module.exports = {
...
data
...
data
})
})
},
},
/**
* 检查今天是否在T1-T5之间
*/
checkTodayInT1T5
(
data
=
{})
{
return
http
.
post
({
method
:
'dj.api.staff.miniprogram.salaryapply.daily.report.fill.check'
,
projectName
:
'staffMiniprogram'
,
...
data
,
})
},
// 工资申诉入口判断
getWageAppealEntrance
(
data
=
{})
{
return
http
.
post
({
method
:
'dj.staff.api.has.performance.config.formerchant'
,
projectName
:
'staffMiniprogram'
,
...
data
,
})
},
}
}
components/Entrance.vue
View file @
c84b594
...
@@ -30,11 +30,20 @@ export default {
...
@@ -30,11 +30,20 @@ export default {
}
}
},
},
data
()
{
data
()
{
return
{}
return
{
// 工资申诉入口是否允许显示
wageAppealAllowed
:
false
,
// 工资申诉入口加载中,加载完成前不展示避免误显示
loadingEntrance
:
true
}
},
created
()
{
// 组件创建时请求工资申诉入口权限
this
.
fetchWageAppealEntrance
()
},
},
computed
:
{
computed
:
{
entranceList
()
{
entranceList
()
{
let
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
),
let
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
,
entranceList
=
[
entranceList
=
[
{
{
icon
:
'daily-report'
,
icon
:
'daily-report'
,
...
@@ -93,10 +102,45 @@ export default {
...
@@ -93,10 +102,45 @@ export default {
sceneType
:
[
7
]
sceneType
:
[
7
]
}
}
]
]
return
entranceList
.
filter
(
e
=>
e
.
sceneType
.
includes
(
sceneType
))
// 先根据场景过滤
let
list
=
entranceList
.
filter
(
e
=>
e
.
sceneType
.
includes
(
sceneType
))
// 加载阶段或不允许显示时,移除工资申诉入口
if
(
this
.
loadingEntrance
||
!
this
.
wageAppealAllowed
)
{
list
=
list
.
filter
(
e
=>
e
.
name
!==
'WageAppeal'
)
}
return
list
}
}
},
},
methods
:
{
methods
:
{
// 请求工资申诉入口权限,并设置显示开关
async
fetchWageAppealEntrance
()
{
try
{
this
.
loadingEntrance
=
true
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
{
shopMerchantId
}
=
userInfo
// 缺少商户ID时降级为不展示
if
(
!
shopMerchantId
)
{
this
.
wageAppealAllowed
=
false
return
}
const
res
=
await
uni
.
$api
.
commonApi
.
getWageAppealEntrance
({
merchantId
:
shopMerchantId
})
// 兼容不同返回结构,解析是否允许显示
this
.
wageAppealAllowed
=
!!
res
}
catch
(
error
)
{
// 接口异常降级:不展示工资申诉入口,并提示(非打断式)
this
.
wageAppealAllowed
=
false
if
(
error
)
{
uni
.
showToast
({
title
:
'工资申诉入口获取失败'
,
icon
:
'none'
})
}
}
finally
{
this
.
loadingEntrance
=
false
}
},
handleClick
(
item
)
{
handleClick
(
item
)
{
// 这里可以根据实际需求进行跳转或功能处理
// 这里可以根据实际需求进行跳转或功能处理
this
.
$emit
(
'entranceClick'
,
item
)
this
.
$emit
(
'entranceClick'
,
item
)
...
...
components/HomeFrame/components/Point.vue
View file @
c84b594
...
@@ -33,15 +33,9 @@ export default {
...
@@ -33,15 +33,9 @@ export default {
componentList
:[
'Attendance'
,
'Income'
],
componentList
:[
'Attendance'
,
'Income'
],
tabName
:
'Attendance'
,
tabName
:
'Attendance'
,
tabList
:[
tabList
:[
// {
// name:'我的积分',
// },
{
{
name
:
'我的考勤'
,
name
:
'我的考勤'
,
},
},
{
name
:
'我的收入'
,
}
]
]
}
}
},
},
...
@@ -67,25 +61,25 @@ export default {
...
@@ -67,25 +61,25 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.tab-box
{
.tab-box
{
margin-top
:
68
rpx
;
margin-top
:
toRpx
(
68
);
width
:
550
rpx
;
width
:
toRpx
(
290
);
height
:
84
rpx
;
height
:
toRpx
(
84
);
line-height
:
74
rpx
;
line-height
:
toRpx
(
74
);
background
:
rgba
(
101
,
171
,
250
,
0.12
);
background
:
rgba
(
101
,
171
,
250
,
0.12
);
border-radius
:
20
rpx
;
border-radius
:
toRpx
(
20
);
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.tab-item
{
.tab-item
{
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
);
color
:
#1a1a1a
;
color
:
#1a1a1a
;
text-align
:
center
;
text-align
:
center
;
width
:
50%
;
width
:
50%
;
&.active
{
&.active
{
width
:
260
rpx
;
width
:
toRpx
(
260
);
height
:
72
rpx
;
height
:
toRpx
(
72
);
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
16
rpx
;
border-radius
:
toRpx
(
16
);
text-align
:
center
;
text-align
:
center
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#4673ff
;
color
:
#4673ff
;
...
...
components/HomeFrame/index.vue
View file @
c84b594
...
@@ -617,7 +617,7 @@ export default {
...
@@ -617,7 +617,7 @@ export default {
async
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
console
.
log
(
item
,
'item'
)
console
.
log
(
item
,
'item'
)
// 清除评估单的图片视频资源缓存
// 清除评估单的图片视频资源缓存
const
noInterceptPage
=
[
'DailyReport'
,
'DeliveryManagement'
,
'ReportManagement'
],
const
noInterceptPage
=
[
'DailyReport'
,
'DeliveryManagement'
,
'ReportManagement'
,
'WageAppeal'
],
{
sceneType
}
=
this
{
sceneType
}
=
this
if
(
!
noInterceptPage
.
includes
(
item
.
name
))
{
if
(
!
noInterceptPage
.
includes
(
item
.
name
))
{
if
(
sceneType
!=
7
)
{
if
(
sceneType
!=
7
)
{
...
...
js_sdk/wa-permission/permission.js
View file @
c84b594
...
@@ -164,11 +164,11 @@ function requestAndroidPermission (permissionID) {
...
@@ -164,11 +164,11 @@ function requestAndroidPermission (permissionID) {
},
},
[
'android.permission.CAMERA'
]:
{
[
'android.permission.CAMERA'
]:
{
title
:
'相机'
,
title
:
'相机'
,
content
:
'
为了拍摄活动现场照片及客户购车凭证,展业助手需要申请您的相机权限
。'
content
:
'
展业助手需要申请相机权限,用于上传相关图片资料以完成业务办理
。'
},
},
[
'android.permission.READ_EXTERNAL_STORAGE'
]:
{
[
'android.permission.READ_EXTERNAL_STORAGE'
]:
{
title
:
'相册'
,
title
:
'相册'
,
content
:
'
为了上传活动现场照片及客户购车凭证,展业助手需要申请您的相册权限
。'
content
:
'
展业助手需要申请相册权限,用于上传相关图片资料以完成业务办理
。'
}
}
}[
permissionID
]
||
{
}[
permissionID
]
||
{
title
:
permissionID
,
title
:
permissionID
,
...
...
pages/boutique/tool/components/DailyReport.vue
View file @
c84b594
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
src=
"../../../../assets/images/common/report-no-data.webp"
src=
"../../../../assets/images/common/report-no-data.webp"
class=
"icon"
class=
"icon"
/>
/>
已超过 7 个自然日,暂不支持补填操作
暂不支持补填操作
</view>
</view>
</
template
>
</
template
>
</template>
</template>
...
@@ -390,7 +390,8 @@ export default {
...
@@ -390,7 +390,8 @@ export default {
return
`¥
${
this
.
orderObj
.
totalOrderMoney
||
0
}
`
return
`¥
${
this
.
orderObj
.
totalOrderMoney
||
0
}
`
}
}
}
}
])
]),
editableDay
:
null
}
}
},
},
computed
:
{
computed
:
{
...
@@ -426,8 +427,9 @@ export default {
...
@@ -426,8 +427,9 @@ export default {
back
()
{
back
()
{
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
initData
()
{
async
initData
()
{
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
this
.
userInfo
let
inT1T5
=
await
uni
.
$api
.
commonApi
.
checkTodayInT1T5
(),
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
this
.
userInfo
this
.
orderObj
=
{
this
.
orderObj
=
{
yqMerchantId
:
merchantId
,
yqMerchantId
:
merchantId
,
yqMerchantName
:
merchantName
,
yqMerchantName
:
merchantName
,
...
@@ -436,6 +438,7 @@ export default {
...
@@ -436,6 +438,7 @@ export default {
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
merchantName
:
shopMerchantName
merchantName
:
shopMerchantName
}
}
if
(
inT1T5
)
this
.
editableDay
=
dayjs
().
subtract
(
1
,
'M'
).
startOf
(
'M'
)
this
.
getDailyReportCarBrand
()
this
.
getDailyReportCarBrand
()
},
},
async
getDailyReportCarBrand
()
{
async
getDailyReportCarBrand
()
{
...
@@ -509,11 +512,14 @@ export default {
...
@@ -509,11 +512,14 @@ export default {
async
getStaffDailyReportDetail
()
{
async
getStaffDailyReportDetail
()
{
this
.
isEditReport
=
false
this
.
isEditReport
=
false
this
.
loadComplete
=
false
this
.
loadComplete
=
false
let
{
currentDate
,
let
{
currentDate
,
userInfo
,
userInfo
,
carBandList
,
carBandList
,
hwOhterObjArray
,
hwOhterObjArray
,
orderObj
}
=
this
,
orderObj
,
editableDay
}
=
this
,
{
shopMerchantId
,
merchantId
,
uuid
}
=
userInfo
{
shopMerchantId
,
merchantId
,
uuid
}
=
userInfo
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
...
@@ -567,14 +573,15 @@ export default {
...
@@ -567,14 +573,15 @@ export default {
return
item
return
item
})
})
}
}
let
diffDay
=
dayjs
().
diff
(
dayjs
(
currentDate
),
'day'
)
let
diffDay
=
dayjs
().
diff
(
dayjs
(
currentDate
),
'day'
),
disabledReport
=
false
if
(
editableDay
&&
editableDay
.
diff
(
dayjs
(
currentDate
),
'day'
)
>
0
)
disabledReport
=
true
this
.
hwOhterObjArray
=
hwOhterObjArray
this
.
hwOhterObjArray
=
hwOhterObjArray
this
.
carBandList
=
carBandList
this
.
carBandList
=
carBandList
this
.
orderObj
=
{
this
.
orderObj
=
{
...
orderObj
,
...
orderObj
,
reportDate
:
currentDate
,
reportDate
:
currentDate
,
isDateWithin7Days
:
diffDay
<
7
,
isDateWithin7Days
:
editableDay
?
!
disabledReport
:
diffDay
<
7
,
isDateWithin60Days
:
diffDay
<
60
,
remark
,
remark
,
lastStaffName
:
data
.
lastStaffName
,
lastStaffName
:
data
.
lastStaffName
,
lastStaffUuid
:
data
.
lastStaffUuid
,
lastStaffUuid
:
data
.
lastStaffUuid
,
...
...
pages/common/wageAppeal/components/AttendanceRecord.vue
View file @
c84b594
<
template
>
<
template
>
<RightPopup
ref=
"rightPopup"
:title=
"title[
t
ype]"
:showFooter=
"true"
@
confirm=
"confirm"
:confirmDisabled=
"confirmDisabled"
>
<RightPopup
ref=
"rightPopup"
:title=
"title[
popT
ype]"
:showFooter=
"true"
@
confirm=
"confirm"
:confirmDisabled=
"confirmDisabled"
>
<view
class=
"popup-content"
>
<view
class=
"popup-content"
>
<view
class=
"appeal-desc"
>
<view
class=
"appeal-desc"
>
<view
class=
"sprite-icon icon-icon-appeal"
></view>
规定申诉时间为
<view
class=
"blod-text"
>
每月
6号-每月15
号
</view>
<view
class=
"sprite-icon icon-icon-appeal"
></view>
规定申诉时间为
<view
class=
"blod-text"
>
每月
{{
appealStartTime
}}
号-每月
{{
appealEndTime
}}
号
</view>
,支持提交修订异议处理,总部流转审批,请在规定时间内完成,逾期不再受理。
,支持提交修订异议处理,总部流转审批,请在规定时间内完成,逾期不再受理。
</view>
</view>
<view
class=
"form-item flex-item line"
>
<view
class=
"form-item flex-item line"
v-if=
"formItem[popType]"
>
<view
class=
"label"
>
{{
formItem
[
t
ype
][
0
].
label
}}
</view>
<view
class=
"label"
>
{{
formItem
[
popT
ype
][
0
].
label
}}
</view>
<view
class=
"value"
><text
class=
"blue-text"
>
{{
c
urrentCount
}}
</text>
{{
formItem
[
type
][
1
].
unit
}}
</view>
<view
class=
"value"
><text
class=
"blue-text"
>
{{
c
ount
}}
</text>
{{
formItem
[
popType
][
0
].
unit
}}
</view>
</view>
</view>
<view
class=
"form-item"
>
<view
class=
"form-item"
v-if=
"formItem[popType]"
>
<view
class=
"label m-b"
>
{{
formItem
[
t
ype
][
1
].
label
}}
</view>
<view
class=
"label m-b"
>
{{
formItem
[
popT
ype
][
1
].
label
}}
</view>
<view
class=
"input-box"
>
<view
class=
"input-box"
>
<input
type=
"number"
v-model=
"formData.modifyCount"
:maxlength=
"formItem[
t
ype][1].maxlength"
placeholder=
"请输入"
placeholder-class=
"placeholder"
@
input=
"onInput"
/>
<input
type=
"number"
v-model=
"formData.modifyCount"
:maxlength=
"formItem[
popT
ype][1].maxlength"
placeholder=
"请输入"
placeholder-class=
"placeholder"
@
input=
"onInput"
/>
<text
class=
"suffix"
>
{{
formItem
[
t
ype
][
1
].
unit
}}
</text>
<text
class=
"suffix"
>
{{
formItem
[
popT
ype
][
1
].
unit
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -71,6 +71,7 @@ import dayjs from 'dayjs'
...
@@ -71,6 +71,7 @@ import dayjs from 'dayjs'
import
{
uploadFile
}
from
'@/utils/ossUpload.js'
import
{
uploadFile
}
from
'@/utils/ossUpload.js'
import
RightPopup
from
'../../components/RightPopup.vue'
import
RightPopup
from
'../../components/RightPopup.vue'
import
{
title
,
formItem
}
from
'./contant.js'
import
{
title
,
formItem
}
from
'./contant.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
const
MAX_IMAGE_SIZE
=
10
*
1024
*
1024
,
// 图片最大10MB
const
MAX_IMAGE_SIZE
=
10
*
1024
*
1024
,
// 图片最大10MB
MAX_IMG_COUNT
=
10
// 最大图片数量
MAX_IMG_COUNT
=
10
// 最大图片数量
export
default
{
export
default
{
...
@@ -87,14 +88,22 @@ export default {
...
@@ -87,14 +88,22 @@ export default {
type
:
[
Number
,
String
],
type
:
[
Number
,
String
],
default
:
0
default
:
0
},
},
t
ype
:
{
popT
ype
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
'
attendance
'
},
},
lastRecord
:
{
lastRecord
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
}
},
appealStartTime
:
{
type
:
String
,
default
:
''
},
appealEndTime
:
{
type
:
String
,
default
:
''
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -106,7 +115,8 @@ export default {
...
@@ -106,7 +115,8 @@ export default {
remark
:
''
,
remark
:
''
,
otherAbnormalMessage
:
''
otherAbnormalMessage
:
''
},
},
confirmDisabled
:
true
confirmDisabled
:
true
,
count
:
''
}
}
},
},
watch
:
{
watch
:
{
...
@@ -119,32 +129,40 @@ export default {
...
@@ -119,32 +129,40 @@ export default {
},
},
lastRecord
:
{
lastRecord
:
{
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
val
)
if
(
!
val
)
return
if
(
!
val
)
return
const
{
appealType
,
actualAttendanceDays
,
applyActualAttendanceDays
,
padRecordNum
,
applyPadRecordNum
,
remark
,
otherAbnormalMessage
,
attachmentList
}
=
val
const
{
appealType
,
actualAttendanceDays
,
applyActualAttendanceDays
,
padRecordNum
,
applyPadRecordNum
,
remark
,
otherAbnormalMessage
,
attachmentList
,
shopCount
}
=
val
const
typeMap
=
{
const
typeMap
=
{
1
:
{
count
:
actualAttendanceDays
,
modify
:
applyActualAttendanceDays
},
1
:
{
count
:
actualAttendanceDays
,
modify
:
applyActualAttendanceDays
},
2
:
{
count
:
padRecordNum
,
modify
:
applyPadRecordNum
}
2
:
{
count
:
padRecordNum
,
modify
:
applyPadRecordNum
}
}
}
const
currentType
=
typeMap
[
appealType
]
const
currentType
=
typeMap
[
appealType
]
if
(
currentType
)
{
if
(
currentType
)
{
this
.
c
urrentC
ount
=
currentType
.
count
this
.
count
=
currentType
.
count
if
(
currentType
.
modify
)
this
.
formData
.
modifyCount
=
currentType
.
modify
if
(
currentType
.
modify
)
this
.
formData
.
modifyCount
=
currentType
.
modify
}
}
if
(
remark
)
this
.
formData
.
remark
=
remark
if
(
remark
)
this
.
formData
.
remark
=
remark
if
(
otherAbnormalMessage
)
this
.
formData
.
otherAbnormalMessage
=
otherAbnormalMessage
if
(
otherAbnormalMessage
)
this
.
formData
.
otherAbnormalMessage
=
otherAbnormalMessage
if
(
attachmentList
)
this
.
formData
.
images
=
attachmentList
if
(
attachmentList
)
this
.
formData
.
images
=
attachmentList
if
(
shopCount
)
this
.
formData
.
shopCount
=
shopCount
console
.
log
(
this
.
formData
,
'=='
)
},
},
deep
:
true
deep
:
true
},
currentCount
:
{
handler
(
val
)
{
if
(
val
)
this
.
count
=
val
}
}
}
},
},
methods
:
{
methods
:
{
onInput
:
debounce
(
function
(
e
)
{
onInput
:
debounce
(
function
(
e
)
{
let
value
=
e
.
detail
.
value
let
value
=
e
.
detail
.
value
if
(
this
.
t
ype
===
'record'
)
{
if
(
this
.
popT
ype
===
'record'
)
{
// Integer only
// Integer only
value
=
value
.
replace
(
/
[^\d]
/g
,
''
)
value
=
value
.
replace
(
/
[^\d]
/g
,
''
)
}
else
if
(
this
.
t
ype
===
'attendance'
)
{
}
else
if
(
this
.
popT
ype
===
'attendance'
)
{
// Decimal with 2 places
// Decimal with 2 places
value
=
value
.
replace
(
/
[^\d
.
]
/g
,
''
)
// Remove non-digits/dots
value
=
value
.
replace
(
/
[^\d
.
]
/g
,
''
)
// Remove non-digits/dots
.
replace
(
/^
\.
/g
,
''
)
// No starting dot
.
replace
(
/^
\.
/g
,
''
)
// No starting dot
...
@@ -252,9 +270,9 @@ export default {
...
@@ -252,9 +270,9 @@ export default {
})
})
},
},
async
confirm
()
{
async
confirm
()
{
const
{
modifyCount
,
remark
,
images
,
otherAbnormalMessage
}
=
this
.
formData
,
{
currentC
ount
}
=
this
const
{
modifyCount
,
remark
,
images
,
otherAbnormalMessage
,
shopCount
}
=
this
.
formData
,
{
c
ount
}
=
this
// 校验申诉天数是否在上个月自然日天数内
// 校验申诉天数是否在上个月自然日天数内
if
(
this
.
t
ype
==
'attendance'
&&
modifyCount
&&
!
this
.
checkLastNaturalDay
(
modifyCount
))
return
if
(
this
.
popT
ype
==
'attendance'
&&
modifyCount
&&
!
this
.
checkLastNaturalDay
(
modifyCount
))
return
const
{
sceneType
,
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
sceneType
,
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
params
=
{
const
params
=
{
appealMonth
:
this
.
month
,
appealMonth
:
this
.
month
,
...
@@ -264,22 +282,27 @@ export default {
...
@@ -264,22 +282,27 @@ export default {
if
(
remark
)
params
.
remark
=
remark
if
(
remark
)
params
.
remark
=
remark
if
(
images
.
length
>
0
)
params
.
attachmentList
=
images
if
(
images
.
length
>
0
)
params
.
attachmentList
=
images
if
(
otherAbnormalMessage
)
params
.
otherAbnormalMessage
=
otherAbnormalMessage
if
(
otherAbnormalMessage
)
params
.
otherAbnormalMessage
=
otherAbnormalMessage
if
(
this
.
t
ype
==
'record'
)
{
if
(
this
.
popT
ype
==
'record'
)
{
params
.
appealType
=
2
params
.
appealType
=
2
params
.
padRecordNum
=
currentCount
params
.
padRecordNum
=
count
params
.
shopCount
=
shopCount
if
(
modifyCount
)
params
.
applyPadRecordNum
=
modifyCount
if
(
modifyCount
)
params
.
applyPadRecordNum
=
modifyCount
}
else
if
(
this
.
t
ype
==
'attendance'
)
{
}
else
if
(
this
.
popT
ype
==
'attendance'
)
{
params
.
appealType
=
1
params
.
appealType
=
1
params
.
actualAttendanceDays
=
c
urrentC
ount
params
.
actualAttendanceDays
=
count
if
(
modifyCount
)
params
.
applyActualAttendanceDays
=
modifyCount
if
(
modifyCount
)
params
.
applyActualAttendanceDays
=
modifyCount
}
}
console
.
log
(
params
,
'params'
)
console
.
log
(
params
,
'params'
)
const
res
=
await
uni
.
$api
.
commonApi
.
addWageAppeal
(
params
)
const
res
=
await
uni
.
$api
.
commonApi
.
addWageAppeal
(
params
)
console
.
log
(
res
,
'=res'
)
console
.
log
(
res
,
'=res'
)
// this.$emit('confirm', {
if
(
res
)
uni
.
showToast
({
// month: this.month,
title
:
'申诉成功'
,
// ...this.formData
icon
:
'success'
// })
})
this
.
$emit
(
'confirm'
,
{
month
:
this
.
month
,
...
this
.
formData
})
this
.
close
()
this
.
close
()
}
}
}
}
...
@@ -288,14 +311,14 @@ export default {
...
@@ -288,14 +311,14 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.popup-content
{
.popup-content
{
padding
:
16
rpx
64
rpx
;
padding
:
toRpx
(
16
)
toRpx
(
64
)
;
}
}
.appeal-desc
{
.appeal-desc
{
border-radius
:
8
rpx
;
border-radius
:
toRpx
(
8
)
;
font-size
:
24
rpx
;
font-size
:
toRpx
(
24
)
;
line-height
:
1.5
;
line-height
:
1.5
;
margin-bottom
:
56
rpx
;
margin-bottom
:
toRpx
(
56
)
;
display
:
inline-block
;
display
:
inline-block
;
display
:
block
;
display
:
block
;
...
@@ -307,12 +330,12 @@ export default {
...
@@ -307,12 +330,12 @@ export default {
.sprite-icon
{
.sprite-icon
{
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
middle
;
vertical-align
:
middle
;
margin-right
:
8
rpx
;
margin-right
:
toRpx
(
8
)
;
}
}
}
}
.form-item
{
.form-item
{
margin-bottom
:
32
rpx
;
margin-bottom
:
toRpx
(
32
)
;
&.flex-item
{
&.flex-item
{
display
:
flex
;
display
:
flex
;
...
@@ -321,60 +344,60 @@ export default {
...
@@ -321,60 +344,60 @@ export default {
}
}
&
.line
{
&
.line
{
border-bottom
:
1
rpx
solid
#EFF0F2
;
border-bottom
:
toRpx
(
1
)
solid
#EFF0F2
;
padding-bottom
:
32
rpx
;
padding-bottom
:
toRpx
(
32
)
;
}
}
.label
{
.label
{
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333
;
color
:
#333
;
&.m-b
{
&.m-b
{
margin-bottom
:
16
rpx
;
margin-bottom
:
toRpx
(
16
)
;
}
}
}
}
.value
{
.value
{
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
color
:
#333
;
color
:
#333
;
.blue-text
{
.blue-text
{
color
:
#2A82E4
;
color
:
#2A82E4
;
margin-right
:
8
rpx
;
margin-right
:
toRpx
(
8
)
;
}
}
}
}
.input-box
{
.input-box
{
background
:
#F5F6F8
;
background
:
#F5F6F8
;
border-radius
:
16
rpx
;
border-radius
:
toRpx
(
16
)
;
height
:
80
rpx
;
height
:
toRpx
(
80
)
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
padding
:
0
24
rpx
;
padding
:
0
toRpx
(
24
)
;
input
{
input
{
flex
:
1
;
flex
:
1
;
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
color
:
#333
;
color
:
#333
;
}
}
.suffix
{
.suffix
{
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
color
:
#333
;
color
:
#333
;
margin-left
:
16
rpx
;
margin-left
:
toRpx
(
16
)
;
}
}
}
}
.textarea-box
{
.textarea-box
{
background
:
#F5F6F8
;
background
:
#F5F6F8
;
border-radius
:
8
rpx
;
border-radius
:
toRpx
(
8
)
;
padding
:
24
rpx
;
padding
:
toRpx
(
24
)
;
textarea
{
textarea
{
width
:
100%
;
width
:
100%
;
height
:
192
rpx
;
height
:
toRpx
(
192
)
;
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
color
:
#333
;
color
:
#333
;
line-height
:
1.5
;
line-height
:
1.5
;
}
}
...
@@ -384,12 +407,12 @@ export default {
...
@@ -384,12 +407,12 @@ export default {
.upload-container
{
.upload-container
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
20
rpx
;
gap
:
toRpx
(
20
)
;
.image-item
{
.image-item
{
width
:
160
rpx
;
width
:
toRpx
(
160
)
;
height
:
160
rpx
;
height
:
toRpx
(
160
)
;
border-radius
:
16
rpx
;
border-radius
:
toRpx
(
16
)
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -402,8 +425,8 @@ export default {
...
@@ -402,8 +425,8 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
width
:
40
rpx
;
width
:
toRpx
(
40
)
;
height
:
40
rpx
;
height
:
toRpx
(
40
)
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
background
:
rgba
(
0
,
0
,
0
,
0.5
);
//
border-bottom-left-radius
:
8
rpx
;
//
border-bottom-left-radius
:
8
rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
...
@@ -414,19 +437,19 @@ export default {
...
@@ -414,19 +437,19 @@ export default {
}
}
.upload-btn
{
.upload-btn
{
width
:
160
rpx
;
width
:
toRpx
(
160
)
;
height
:
160
rpx
;
height
:
toRpx
(
160
)
;
background
:
#F5F8FF
;
background
:
#F5F8FF
;
border-radius
:
8
rpx
;
border-radius
:
toRpx
(
8
)
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.count
{
.count
{
font-size
:
24
rpx
;
font-size
:
toRpx
(
24
)
;
color
:
#999
;
color
:
#999
;
margin-top
:
8
rpx
;
margin-top
:
toRpx
(
8
)
;
}
}
}
}
}
}
...
...
pages/common/wageAppeal/index.vue
View file @
c84b594
This diff is collapsed.
Click to expand it.
pages/equity/tool/components/DailyReport.vue
View file @
c84b594
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
src=
"../../../../assets/images/common/report-no-data.webp"
src=
"../../../../assets/images/common/report-no-data.webp"
class=
"icon"
class=
"icon"
/>
/>
已超过 7 个自然日,
暂不支持补填操作
暂不支持补填操作
</view>
</view>
</
template
>
</
template
>
</template>
</template>
...
@@ -377,6 +377,7 @@ export default {
...
@@ -377,6 +377,7 @@ export default {
]),
]),
weeklyList
:
[],
weeklyList
:
[],
isEditReport
:
false
,
isEditReport
:
false
,
editableDay
:
null
}
}
},
},
computed
:
{
computed
:
{
...
@@ -503,8 +504,9 @@ export default {
...
@@ -503,8 +504,9 @@ export default {
this
.
isEditReport
=
false
this
.
isEditReport
=
false
},
},
methods
:
{
methods
:
{
initData
()
{
async
initData
()
{
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
this
.
userInfo
let
inT1T5
=
await
uni
.
$api
.
commonApi
.
checkTodayInT1T5
(),
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
this
.
userInfo
this
.
orderObj
=
{
this
.
orderObj
=
{
yqMerchantId
:
merchantId
,
yqMerchantId
:
merchantId
,
yqMerchantName
:
merchantName
,
yqMerchantName
:
merchantName
,
...
@@ -513,6 +515,7 @@ export default {
...
@@ -513,6 +515,7 @@ export default {
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
merchantName
:
shopMerchantName
merchantName
:
shopMerchantName
}
}
if
(
inT1T5
)
this
.
editableDay
=
dayjs
().
subtract
(
1
,
'M'
).
startOf
(
'M'
)
this
.
getDailyReportCarBrand
()
this
.
getDailyReportCarBrand
()
},
},
async
getDailyReportCarBrand
()
{
async
getDailyReportCarBrand
()
{
...
@@ -598,7 +601,9 @@ export default {
...
@@ -598,7 +601,9 @@ export default {
carBandList
,
carBandList
,
hwOhterObjArray
,
hwOhterObjArray
,
orderObj
,
orderObj
,
isHmStore
}
=
this
,
isHmStore
,
editableDay
}
=
this
,
{
shopMerchantId
,
merchantId
,
uuid
}
=
userInfo
{
shopMerchantId
,
merchantId
,
uuid
}
=
userInfo
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
...
@@ -654,14 +659,15 @@ export default {
...
@@ -654,14 +659,15 @@ export default {
return
item
return
item
})
})
}
}
let
diffDay
=
dayjs
().
diff
(
dayjs
(
currentDate
),
'day'
)
let
diffDay
=
dayjs
().
diff
(
dayjs
(
currentDate
),
'day'
),
disabledReport
=
false
if
(
editableDay
&&
editableDay
.
diff
(
dayjs
(
currentDate
),
'day'
)
>
0
)
disabledReport
=
true
this
.
hwOhterObjArray
=
hwOhterObjArray
this
.
hwOhterObjArray
=
hwOhterObjArray
this
.
carBandList
=
carBandList
this
.
carBandList
=
carBandList
this
.
orderObj
=
{
this
.
orderObj
=
{
...
orderObj
,
...
orderObj
,
reportDate
:
currentDate
,
reportDate
:
currentDate
,
isDateWithin7Days
:
diffDay
<
7
,
isDateWithin7Days
:
editableDay
?
!
disabledReport
:
diffDay
<
7
,
isDateWithin60Days
:
diffDay
<
60
,
remark
,
remark
,
lastStaffName
:
data
.
lastStaffName
,
lastStaffName
:
data
.
lastStaffName
,
lastStaffUuid
:
data
.
lastStaffUuid
,
lastStaffUuid
:
data
.
lastStaffUuid
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment