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 a2bed2e4
authored
Oct 06, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复bug
1 parent
200f23df
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
104 additions
and
13 deletions
js_sdk/wa-permission/permission.js
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/GeneralPopup.vue
pages/evaluationForm/components/SelectCity.vue
pages/evaluationForm/components/uploadMedia.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/signInfo.vue
js_sdk/wa-permission/permission.js
View file @
a2bed2e
This diff is collapsed.
Click to expand it.
pages/evaluationForm/addEvaluationFrom.vue
View file @
a2bed2e
...
@@ -80,11 +80,35 @@
...
@@ -80,11 +80,35 @@
<!-- 弹窗 -->
<!-- 弹窗 -->
<OrderPopup
ref=
"orderPopup"
:data=
"displayData"
:isDefeatOrder=
"true"
:externalData=
"[]"
@
onConfirm=
"onConfirm"
:popupType=
"0"
/>
<OrderPopup
ref=
"orderPopup"
:data=
"displayData"
:isDefeatOrder=
"true"
:externalData=
"[]"
@
onConfirm=
"onConfirm"
:popupType=
"0"
/>
<SelectCar
ref=
"selectCar"
title=
"选择车型"
@
car-selected=
"handleCarSelected"
/>
<SelectCar
ref=
"selectCar"
title=
"选择车型"
@
car-selected=
"handleCarSelected"
/>
<SelectCity
ref=
"selectCity"
title=
"选择城市"
@
city-selected=
"handleCitySelected"
/>
<SelectCity
<SelectCity
ref=
"selectCarCity"
title=
"选择城市"
@
city-selected=
"handleCarCitySelected"
/>
ref=
"selectCity"
title=
"选择城市"
@
city-selected=
"handleCitySelected"
:defaultProvince=
"
{
code: formData.carBaseReqDTO.registrationProvinceId,
name: formData.carBaseReqDTO.registrationProvinceName
}"
:defaultCity="{
code: formData.carBaseReqDTO.registrationCityId,
name: formData.carBaseReqDTO.registrationCityName
}"
/>
<SelectCity
ref=
"selectCarCity"
title=
"选择城市"
@
city-selected=
"handleCarCitySelected"
:defaultProvince=
"
{
code: formData.carBaseReqDTO.carProvinceId,
name: formData.carBaseReqDTO.carProvinceName
}"
:defaultCity="{
code: formData.carBaseReqDTO.carCityId,
name: formData.carBaseReqDTO.carCityName
}"
/>
<GeneralPopup
ref=
"calendarGeneralPopup"
popupClass=
"calendarGeneralPopup"
:showClose=
"false"
:showTitle=
"false"
@
confirm=
"confirmCalendar"
>
<GeneralPopup
ref=
"calendarGeneralPopup"
popupClass=
"calendarGeneralPopup"
:showClose=
"false"
:showTitle=
"false"
@
confirm=
"confirmCalendar"
>
<template
#
content
>
<template
#
content
>
<uni-calendar
class=
"calendar"
:showMonth=
"false"
:endDate=
"endDate"
@
change=
"calendarChange"
/>
<uni-calendar
class=
"calendar"
:showMonth=
"false"
:
startDate=
"startDate"
:
endDate=
"endDate"
@
change=
"calendarChange"
/>
</
template
>
</
template
>
</GeneralPopup>
</GeneralPopup>
<GeneralPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
:noTitle=
"true"
>
<GeneralPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
:noTitle=
"true"
>
...
@@ -124,7 +148,7 @@ import UploadMedia from './components/uploadMedia.vue'
...
@@ -124,7 +148,7 @@ import UploadMedia from './components/uploadMedia.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
debounce
}
from
'lodash'
import
{
debounce
}
from
'lodash'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
max
}
from
'lodash
'
import
permision
from
'@/js_sdk/wa-permission/permission.js
'
export
default
{
export
default
{
name
:
'AddEvaluationFrom'
,
name
:
'AddEvaluationFrom'
,
components
:
{
components
:
{
...
@@ -159,6 +183,7 @@ export default {
...
@@ -159,6 +183,7 @@ export default {
popupTypeEnum
,
popupTypeEnum
,
title
:
'新增评估单'
,
title
:
'新增评估单'
,
selectedCarInfo
:
null
,
selectedCarInfo
:
null
,
startDate
:
''
,
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
isExistSamePlate
:
false
,
isExistSamePlate
:
false
,
formData
:
{
formData
:
{
...
@@ -851,15 +876,15 @@ export default {
...
@@ -851,15 +876,15 @@ export default {
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carTypeName'
,
date
.
year
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carTypeName'
,
date
.
year
.
name
)
},
},
handleCitySelected
(
date
)
{
handleCitySelected
(
date
)
{
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationProvinceId'
,
''
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationProvinceId'
,
date
.
province
.
code
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationProvinceName'
,
date
.
province
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationProvinceName'
,
date
.
province
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationCityId'
,
''
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationCityId'
,
date
.
city
.
code
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationCityName'
,
date
.
city
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'registrationCityName'
,
date
.
city
.
name
)
},
},
handleCarCitySelected
(
date
)
{
handleCarCitySelected
(
date
)
{
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carProvinceId'
,
''
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carProvinceId'
,
date
.
province
.
code
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carProvinceName'
,
date
.
province
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carProvinceName'
,
date
.
province
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carCityId'
,
''
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carCityId'
,
date
.
city
.
code
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carCityName'
,
date
.
city
.
name
)
this
.
$set
(
this
.
formData
.
carBaseReqDTO
,
'carCityName'
,
date
.
city
.
name
)
console
.
log
(
'handleCarCitySelected'
,
this
.
formData
.
carBaseReqDTO
)
console
.
log
(
'handleCarCitySelected'
,
this
.
formData
.
carBaseReqDTO
)
},
},
...
@@ -1031,7 +1056,22 @@ export default {
...
@@ -1031,7 +1056,22 @@ export default {
})
})
},
},
scan
(
type
)
{
async
scan
(
type
)
{
const
photoLibrary
=
await
permision
.
requestAndroidPermission
(
'android.permission.READ_EXTERNAL_STORAGE'
)
const
camera
=
await
permision
.
requestAndroidPermission
(
'android.permission.CAMERA'
)
const
isOnline
=
await
uni
.
$isNetWork
()
if
(
photoLibrary
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持相册功能或未授权访问,请前往设置中开启相册权限'
,
icon
:
'none'
})
return
}
if
(
camera
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持摄像头功能或未授权访问,请前往设置中开启摄像头权限'
,
icon
:
'none'
})
return
}
if
(
!
isOnline
)
{
uni
.
showToast
({
title
:
'当前无网络连接,请连接网络后重试'
,
icon
:
'none'
})
return
}
uni
.
showActionSheet
({
uni
.
showActionSheet
({
itemList
:
[
'拍照'
,
'从相册选择'
],
itemList
:
[
'拍照'
,
'从相册选择'
],
success
:
res
=>
{
success
:
res
=>
{
...
...
pages/evaluationForm/components/GeneralPopup.vue
View file @
a2bed2e
...
@@ -149,6 +149,9 @@ export default {
...
@@ -149,6 +149,9 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
toRpx
(
164
);
height
:
toRpx
(
164
);
background-color
:
#fff
;
background-color
:
#fff
;
.btn
{
width
:
toRpx
(
720
);
}
}
}
}
}
//
小弹窗
//
小弹窗
...
@@ -221,7 +224,7 @@ export default {
...
@@ -221,7 +224,7 @@ export default {
width
:
100%
;
width
:
100%
;
}
}
.btn
{
.btn
{
flex
:
1
;
width
:
toRpx
(
720
)
;
height
:
toRpx
(
76
);
height
:
toRpx
(
76
);
border-radius
:
toRpx
(
48
);
border-radius
:
toRpx
(
48
);
opacity
:
1
;
opacity
:
1
;
...
...
pages/evaluationForm/components/SelectCity.vue
View file @
a2bed2e
This diff is collapsed.
Click to expand it.
pages/evaluationForm/components/uploadMedia.vue
View file @
a2bed2e
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<
script
>
<
script
>
// import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
// import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import
{
uploadFile
}
from
'@/utils/ossUpload.js'
import
{
uploadFile
}
from
'@/utils/ossUpload.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
export
default
{
export
default
{
name
:
'UploadMedia'
,
name
:
'UploadMedia'
,
...
@@ -73,7 +74,22 @@ export default {
...
@@ -73,7 +74,22 @@ export default {
},
},
methods
:
{
methods
:
{
// 处理媒体上传
// 处理媒体上传
handleMediaUpload
(
field
)
{
async
handleMediaUpload
(
field
)
{
const
photoLibrary
=
await
permision
.
requestAndroidPermission
(
'android.permission.READ_EXTERNAL_STORAGE'
)
const
camera
=
await
permision
.
requestAndroidPermission
(
'android.permission.CAMERA'
)
const
isOnline
=
await
uni
.
$isNetWork
()
if
(
photoLibrary
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持相册功能或未授权访问,请前往设置中开启相册权限'
,
icon
:
'none'
})
return
}
if
(
camera
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持摄像头功能或未授权访问,请前往设置中开启摄像头权限'
,
icon
:
'none'
})
return
}
if
(
!
isOnline
)
{
uni
.
showToast
({
title
:
'当前无网络连接,请连接网络后重试'
,
icon
:
'none'
})
return
}
// 根据字段类型显示不同的操作菜单
// 根据字段类型显示不同的操作菜单
const
itemList
=
[]
const
itemList
=
[]
if
(
field
.
accept
===
'image'
||
!
field
.
accept
)
{
if
(
field
.
accept
===
'image'
||
!
field
.
accept
)
{
...
...
pages/evaluationForm/confirmCar.vue
View file @
a2bed2e
...
@@ -114,6 +114,7 @@ import OrderPopup from '@/components/OrderPopup/index.vue'
...
@@ -114,6 +114,7 @@ import OrderPopup from '@/components/OrderPopup/index.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
debounce
}
from
'lodash'
import
{
debounce
}
from
'lodash'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
export
default
{
export
default
{
components
:
{
components
:
{
FormCell
,
FormCell
,
...
@@ -374,7 +375,22 @@ export default {
...
@@ -374,7 +375,22 @@ export default {
})
})
}
}
},
},
handleImageUpload
(
field
)
{
async
handleImageUpload
(
field
)
{
const
photoLibrary
=
await
permision
.
requestAndroidPermission
(
'android.permission.READ_EXTERNAL_STORAGE'
)
const
camera
=
await
permision
.
requestAndroidPermission
(
'android.permission.CAMERA'
)
const
isOnline
=
await
uni
.
$isNetWork
()
if
(
photoLibrary
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持相册功能或未授权访问,请前往设置中开启相册权限'
,
icon
:
'none'
})
return
}
if
(
camera
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持摄像头功能或未授权访问,请前往设置中开启摄像头权限'
,
icon
:
'none'
})
return
}
if
(
!
isOnline
)
{
uni
.
showToast
({
title
:
'当前无网络连接,请连接网络后重试'
,
icon
:
'none'
})
return
}
// 显示操作菜单,让用户选择拍照或从相册选择
// 显示操作菜单,让用户选择拍照或从相册选择
uni
.
showActionSheet
({
uni
.
showActionSheet
({
itemList
:
[
'拍照'
,
'从相册选择'
],
itemList
:
[
'拍照'
,
'从相册选择'
],
...
...
pages/evaluationForm/signInfo.vue
View file @
a2bed2e
...
@@ -271,6 +271,7 @@ import dayjs from 'dayjs'
...
@@ -271,6 +271,7 @@ import dayjs from 'dayjs'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
debounce
}
from
'lodash'
import
{
debounce
}
from
'lodash'
import
{
max
}
from
'lodash'
import
{
max
}
from
'lodash'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
export
default
{
export
default
{
components
:
{
components
:
{
FormCell
,
FormCell
,
...
@@ -823,7 +824,22 @@ export default {
...
@@ -823,7 +824,22 @@ export default {
.
join
(
', '
)
.
join
(
', '
)
console
.
log
(
'selectedItemsText'
,
this
.
selectedItemsText
)
console
.
log
(
'selectedItemsText'
,
this
.
selectedItemsText
)
},
},
handleImageUpload
(
field
)
{
async
handleImageUpload
(
field
)
{
const
photoLibrary
=
await
permision
.
requestAndroidPermission
(
'android.permission.READ_EXTERNAL_STORAGE'
)
const
camera
=
await
permision
.
requestAndroidPermission
(
'android.permission.CAMERA'
)
const
isOnline
=
await
uni
.
$isNetWork
()
if
(
photoLibrary
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持相册功能或未授权访问,请前往设置中开启相册权限'
,
icon
:
'none'
})
return
}
if
(
camera
!=
1
)
{
uni
.
showToast
({
title
:
'您的设备不支持摄像头功能或未授权访问,请前往设置中开启摄像头权限'
,
icon
:
'none'
})
return
}
if
(
!
isOnline
)
{
uni
.
showToast
({
title
:
'当前无网络连接,请连接网络后重试'
,
icon
:
'none'
})
return
}
uni
.
showActionSheet
({
uni
.
showActionSheet
({
itemList
:
[
'拍照'
,
'从相册选择'
],
itemList
:
[
'拍照'
,
'从相册选择'
],
success
:
res
=>
{
success
:
res
=>
{
...
...
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