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 13947daa
authored
Oct 06, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.0.0-1014' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.0.0-1014
2 parents
af613b50
9cca35c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
10 deletions
api/request/http.js
api/request/signHttp.js
init.js
pages/usedCar/tool/components/DailyReport.vue
api/request/http.js
View file @
13947da
...
...
@@ -37,10 +37,10 @@ class Request {
success
(
res
)
{
if
(
res
.
networkType
==
"none"
)
{
uni
.
hideLoading
();
//
uni.showToast({
//
title: '网络异常',
// icon: "error
",
//
});
uni
.
showToast
({
title
:
'网络异常'
,
icon
:
"none
"
,
});
reject
(
"网络异常"
);
return
;
}
...
...
api/request/signHttp.js
View file @
13947da
import
{
Request
}
from
'glsk-toolkit'
module
.
exports
=
{
gscPost
:
(
url
,
data
,
_config
=
{})
=>
{
if
(
!
uni
.
$signHttp
)
uni
.
$signHttp
=
new
Request
(
uni
.
signHttpConfig
)
return
uni
.
$signHttp
.
post
(
url
,
data
,
_config
)
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
getNetworkType
({
success
(
res
)
{
if
([
'none'
].
includes
(
res
.
networkType
))
{
uni
.
hideLoading
();
uni
.
showToast
({
title
:
'网络异常'
,
icon
:
"none"
,
});
reject
({
msg
:
'网络异常'
});
return
;
}
if
(
!
uni
.
$signHttp
)
uni
.
$signHttp
=
new
Request
(
uni
.
signHttpConfig
)
resolve
(
uni
.
$signHttp
.
post
(
url
,
data
,
_config
))
}
})
})
}
}
init.js
View file @
13947da
...
...
@@ -68,6 +68,16 @@ uni.signHttpConfig = {
},
error
:
(
error
,
config
)
=>
{
console
.
log
(
'error事件触发'
,
error
,
config
)
if
(
error
&&
error
.
errMsg
==
'request:fail'
)
{
return
uni
.
showToast
({
title
:
'网络异常'
,
icon
:
'none'
,
})
}
uni
.
showToast
({
title
:
error
.
msg
||
'接口请求失败或没错误返回'
,
icon
:
'none'
,
})
},
logout
:
config
=>
{
console
.
log
(
'logout事件触发'
,
config
)
...
...
pages/usedCar/tool/components/DailyReport.vue
View file @
13947da
...
...
@@ -312,11 +312,11 @@ export default {
let
{
orderObj
,
currentDate
}
=
this
,
apiName
=
'addCarDailyReport'
if
(
orderObj
.
orderQuantity
==
null
||
orderObj
.
orderQuantity
==
''
)
throw
{
message
:
'新车下订'
,
errorText
:
'新车下订'
,
refId
:
'orderQuantity'
}
if
(
orderObj
.
deliveryQuantity
==
null
||
orderObj
.
deliveryQuantity
==
''
)
throw
{
message
:
'新车交付'
,
errorText
:
'新车交付'
,
refId
:
'deliveryQuantity'
}
if
(
orderObj
.
id
!=
null
)
apiName
=
'editCarDailyReport'
...
...
@@ -331,9 +331,9 @@ export default {
}
}
catch
(
errorObj
)
{
uni
.
hideLoading
()
if
(
errorObj
.
message
)
{
if
(
errorObj
.
errorText
)
{
uni
.
showToast
({
title
:
`
${
errorObj
.
message
}
不能为空`
,
title
:
`
${
errorObj
.
errorText
}
不能为空`
,
icon
:
'none'
})
this
.
to
=
errorObj
.
refId
...
...
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