Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biz-trina5-app
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
贺双
biz-trina5-app
Commits
ac6110ef
Commit
ac6110ef
authored
Jun 10, 2025
by
贺世双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整上传
parent
9114e792
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
68 deletions
+27
-68
apiList.js
api/apiList.js
+5
-14
bs-pageHeader-orderNo.vue
...omponents/bs-pageHeader-orderNo/bs-pageHeader-orderNo.vue
+1
-1
onWayUpload.vue
subpkg/onWayUpload/onWayUpload.vue
+1
-1
reportSign.vue
subpkg/reportSign/reportSign.vue
+20
-52
No files found.
api/apiList.js
View file @
ac6110ef
...
@@ -31,20 +31,14 @@ export function userMobileOperation(action, data) {
...
@@ -31,20 +31,14 @@ export function userMobileOperation(action, data) {
}
}
}
}
//获取手机验证码
/*export function userMobileSendMessage(data) {
return Request(`/api/auth/app-login/{mini}/sendMessage`, data)
}*/
// 获取手机验证码发送
// 获取手机验证码发送
export
function
userMobileSendMessage
(
data
)
{
export
function
userMobileSendMessage
(
data
)
{
return
Request
(
`/handler/sendMessage`
,
data
);
return
Request
(
`/handler/sendMessage`
,
data
);
}
}
//获取地图key
//获取地图key
export
function
getMap
()
{
export
function
getMap
()
{
return
Request
(
`/api/
query/*/
action/getMap`
);
return
Request
(
`/api/
entry/{mini}/m-
action/getMap`
);
}
}
//获取地图颜色
//获取地图颜色
export
function
getMapColor
(
data
)
{
export
function
getMapColor
(
data
)
{
...
@@ -190,13 +184,10 @@ export function getAppUpdatePodSign(data) {
...
@@ -190,13 +184,10 @@ export function getAppUpdatePodSign(data) {
return
Request
(
`/api/entry/{mini}/m-action/getAppUpdatePodSign`
,
data
);
return
Request
(
`/api/entry/{mini}/m-action/getAppUpdatePodSign`
,
data
);
}
}
// 查询货量明细
// 运单在途上报
// OM模式
export
function
getOnWayReport
(
data
)
{
export
function
OMOrderDetail
(
data
)
{
return
Request
(
`/api/entry/{mini}/m-action/getOnWayReport`
,
data
);
return
Request
(
`/api/entry/{mini}/m-action/biz.tm.OrderMovementLine.tm_ordermovementline_m_search.paging`
,
data
);
}
}
// OR模式
// OR模式
export
function
OROrderDetail
(
data
)
{
export
function
OROrderDetail
(
data
)
{
...
...
components/baseComponents/bs-pageHeader-orderNo/bs-pageHeader-orderNo.vue
View file @
ac6110ef
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
export
default
{
export
default
{
name
:
"bs-pageHeader-orderNo"
,
name
:
"bs-pageHeader-orderNo"
,
props
:
{
props
:
{
shipment
N
o
:
{
shipment
_n
o
:
{
type
:
String
,
type
:
String
,
default
:
""
//运单号
default
:
""
//运单号
},
},
...
...
subpkg/onWayUpload/onWayUpload.vue
View file @
ac6110ef
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<view
class=
"start-btn flex_center flex_cen flex_right"
@
click=
"onwayupload(propData)"
>
在途上报
</view>
<view
class=
"start-btn flex_center flex_cen flex_right"
@
click=
"onwayupload(propData)"
>
在途上报
</view>
</view>
-->
</view>
-->
<view
class=
"flex_cen flex_center orderItemButtonGroup"
>
<view
class=
"flex_cen flex_center orderItemButtonGroup"
>
<button
class=
"flex_cen flex_center"
@
click=
"onwayupload()"
>
在途上报
</button>
<button
class=
"flex_cen flex_center"
@
click=
"onwayupload(
propData
)"
>
在途上报
</button>
</view>
</view>
</view>
</view>
...
...
subpkg/reportSign/reportSign.vue
View file @
ac6110ef
...
@@ -18,22 +18,17 @@
...
@@ -18,22 +18,17 @@
</view>
</view>
<view
class=
"form-content"
>
<view
class=
"form-content"
>
<u--form
:model=
"formData"
:rules=
"rules"
ref=
"myForm"
errorType=
'none'
>
<u--form
:model=
"formData"
:rules=
"rules"
ref=
"myForm"
errorType=
'none'
>
<u-form-item
prop=
"eventType"
required
label=
"在途异常"
labelWidth=
"30%"
>
<u-form-item
prop=
"report_explain"
label=
"事件内容"
labelWidth=
"25%"
borderBottom
>
<view
@
click=
"onVisible"
>
<u-input
:disabledColor=
"'#ffffff'"
placeholder=
"请输入事件内容"
border=
"none"
v-model=
"formData.report_explain"
/>
<u-input
border=
"none"
readonly
inputAlign=
"left"
placeholder=
"请选择上报类型"
placeholderClass=
"input-tip"
:value=
"viewEnums[formData.eventType]"
/>
</view>
<u-icon
slot=
"right"
name=
"arrow-right"
@
click=
"onVisible"
/>
</u-form-item>
</u-form-item>
</u--form>
</u--form>
</view>
</view>
<view
class=
"reported-detail"
>
<view
class=
"reported-detail"
>
<!-- 备注信息 -->
<!-- 备注信息 -->
<bs-todoRemark
ref=
"myRemark"
/>
<bs-todoRemark
ref=
"myRemark"
title=
"备注"
/>
<!-- 上传图片 -->
<!-- 上传图片 -->
<view
class=
"uploader-img"
>
<view
class=
"uploader-img"
>
<bs-uploader
ref=
"myUploadImg"
:required=
"formData.eventType !== 'LocationReporting'"
<bs-uploader
ref=
"myUploadImg"
uploadTitle=
"上传图片"
/>
uploadTitle=
"上传图片"
/>
</view>
</view>
</view>
</view>
...
@@ -49,7 +44,7 @@
...
@@ -49,7 +44,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
reportInfo
,
getOptionEnum
}
from
'../../api/apiList'
import
{
getOnWayReport
}
from
'../../api/apiList'
const
getUserLocation
=
require
(
'../../mixins/getUserLocation'
)
const
getUserLocation
=
require
(
'../../mixins/getUserLocation'
)
export
default
{
export
default
{
mixins
:
[
getUserLocation
],
mixins
:
[
getUserLocation
],
...
@@ -57,22 +52,22 @@
...
@@ -57,22 +52,22 @@
data
()
{
data
()
{
return
{
return
{
formData
:
{
formData
:
{
eventType
:
""
,
//上报类型
report_explain
:
""
,
//事件内容
},
},
rules
:
{
'
eventType
'
:
{
required
:
true
}
},
rules
:
{
'
report_explain
'
:
{
required
:
true
}
},
selectedIds
:
[],
//运单id
selectedIds
:
[],
//运单id
shipment_no
:
""
,
//运单号
shipment_no
:
""
,
//运单号
visible
:
false
,
//选择上报类型弹窗
visible
:
false
,
//选择上报类型弹窗
optionEnums
:
[],
// 上报类型枚举
optionEnums
:
[],
// 上报类型枚举
viewEnums
:
{},
//仅页面显示使用
viewEnums
:
{},
//仅页面显示使用
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
initMap
();
this
.
getUserSetting
();
this
.
initMapService
();
const
data
=
getApp
().
globalData
.
propData
;
this
.
shipment_no
=
data
.
shipment_no
;
this
.
shipment_no
=
data
.
shipment_no
;
this
.
selectedIds
=
[
data
.
id
]
this
.
getUserSetting
()
},
},
onReady
:
function
(
options
)
{
onReady
:
function
(
options
)
{
// #ifdef H5
// #ifdef H5
...
@@ -111,31 +106,26 @@
...
@@ -111,31 +106,26 @@
},
},
//提交数据
//提交数据
onSubmit
()
{
onSubmit
()
{
this
.
$refs
.
myForm
.
validate
().
then
(
res
=>
{
const
{
eventType
}
=
this
.
formData
const
imgInstance
=
this
.
$refs
.
myUploadImg
const
imgInstance
=
this
.
$refs
.
myUploadImg
const
remarkInstance
=
this
.
$refs
.
myRemark
const
remarkInstance
=
this
.
$refs
.
myRemark
const
remarks
=
remarkInstance
.
value
const
remarks
=
remarkInstance
.
value
;
//备注信息
imgInstance
.
uploadImage
(
images
=>
{
imgInstance
.
uploadImage
(
images
=>
{
const
{
longitude
,
latitude
,
address
,
time
}
=
this
.
locationInfo
const
{
longitude
,
latitude
,
address
}
=
this
.
locationInfo
const
{
viewEnums
,
selectedIds
}
=
this
const
baseData
=
{
const
data
=
{
"aux"
:
{
"aux"
:
{
"eventType"
:
eventType
,
"report_explain"
:
this
.
formData
.
report_explain
,
"signType"
:
viewEnums
[
eventType
],
'ship_event_code'
:
'report'
,
"content"
:
remarks
,
"report_remark"
:
remarks
,
eventSource
:
'DriverApp'
,
images
,
images
,
longitude
,
longitude
,
latitude
,
latitude
,
address
,
address
time
},
},
args
:
{
args
:
{
"
selectedIds"
:
selectedIds
"
row"
:
getApp
().
globalData
.
propData
}
}
}
}
reportInfo
(
'sign'
,
d
ata
).
then
(
res
=>
{
getOnWayReport
(
baseD
ata
).
then
(
res
=>
{
if
(
res
.
data
.
messageType
===
'success'
)
{
if
(
res
.
data
.
messageType
===
'success'
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'信息上报成功'
,
title
:
'信息上报成功'
,
...
@@ -147,11 +137,6 @@
...
@@ -147,11 +137,6 @@
}
}
})
})
})
})
}).
catch
(
errors
=>
{
this
.
$refs
.
uToast
.
show
({
message
:
'请选择上报类型'
,
})
})
},
},
//上报类型选择
//上报类型选择
onVisible
()
{
onVisible
()
{
...
@@ -168,23 +153,6 @@
...
@@ -168,23 +153,6 @@
this
.
visible
=
true
this
.
visible
=
true
}
}
},
},
getOptions
()
{
getOptionEnum
(
'TransitType'
).
then
(
res
=>
{
let
datas
=
res
.
data
.
data
.
datas
datas
.
map
((
item
,
index
)
=>
{
if
(
item
.
value
===
'LocationReporting'
)
{
datas
.
splice
(
index
,
1
)
datas
.
unshift
(
item
)
}
})
let
viewEnums
=
{}
datas
.
map
(
item
=>
{
viewEnums
[
item
.
value
]
=
item
.
label
})
this
.
optionEnums
=
datas
this
.
viewEnums
=
viewEnums
})
},
//确认选择
//确认选择
onConfirmSelect
(
value
)
{
onConfirmSelect
(
value
)
{
this
.
formData
.
eventType
=
value
this
.
formData
.
eventType
=
value
...
...
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