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
716b7ce7
You need to sign in or sign up before continuing.
Commit
716b7ce7
authored
Jul 22, 2025
by
刘威龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录角色问题,运单节点判断、回单运单页面调整
parent
26bba789
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
21 deletions
+44
-21
dirverMenu.vue
pages/dirverMenu/dirverMenu.vue
+2
-2
login.vue
pages/login/login.vue
+4
-2
orderAllPodSign.vue
subpkg/orderAllPodSign/orderAllPodSign.vue
+9
-5
orderPod.vue
subpkg/orderPod/orderPod.vue
+2
-2
orderPodSignEdit.vue
subpkg/orderPodSignEdit/orderPodSignEdit.vue
+13
-6
shipment.vue
subpkg/shipment/shipment.vue
+13
-4
shipmentReport.vue
subpkg/shipmentReport/shipmentReport.vue
+1
-0
No files found.
pages/dirverMenu/dirverMenu.vue
View file @
716b7ce7
...
...
@@ -35,11 +35,11 @@
title
:
"回单管理"
,
path
:
"/subpkg/orderPod/orderPod"
,
src
:
"../../static/img/bg/orderPod.png"
},{
}
/*
,{
title:"在途上报",
path:"/subpkg/onWayUpload/onWayUpload",
src: "../../static/img/bg/onWay.png"
}
}
*/
],
isAgree
:
false
,
...
...
pages/login/login.vue
View file @
716b7ce7
...
...
@@ -31,9 +31,9 @@
</u-form-item>
</
template
>
</u-form>
<view
class=
"login-actionBtn"
@
click=
"chooseVerifLogin"
>
{{isVerifLogin==false ? '
返回上一级' : '
承运商登录'}}
</view>
<view
class=
"login-actionBtn"
@
click=
"chooseVerifLogin"
>
{{isVerifLogin==false ? '
跳转司机登录' : '跳转
承运商登录'}}
</view>
<!-- 登录按钮 -->
<button
class=
"loginBtn font_bolder"
@
click=
"submitForm"
>
登录
</button>
<button
class=
"loginBtn font_bolder"
@
click=
"submitForm"
>
{{isVerifLogin==false ? '承运商登录' : '司机登录'}}
</button>
</view>
<!-- 用户隐私协议
<bs-userPrivacy ref="userPrivacy" />-->
...
...
@@ -206,6 +206,7 @@
//获取用户信息
userMobileOperation
(
'getUserInfo'
).
then
(
res
=>
{
var
user
=
res
.
data
.
data
getApp
().
globalData
.
user_role
=
user
.
user_gid
if
(
user
.
user_gid
!=
"DEFAULT.CARRIER_ADMIN"
){
getApp
().
globalData
.
tabList
=
[{
"pagePath"
:
"pages/carrierMenu/carrierMenu"
,
...
...
@@ -256,6 +257,7 @@
//获取用户信息
userMobileOperation
(
'getUserInfo'
).
then
(
res
=>
{
var
user
=
res
.
data
.
data
getApp
().
globalData
.
user_role
=
user
.
user_gid
if
(
user
.
user_gid
==
"DEFAULT.CARRIER_ADMIN"
){
getApp
().
globalData
.
tabList
=
[{
"pagePath"
:
"pages/dirverMenu/dirverMenu"
,
...
...
subpkg/orderAllPodSign/orderAllPodSign.vue
View file @
716b7ce7
...
...
@@ -71,8 +71,8 @@
<u-input
border=
"none"
readonly
placeholder=
"请选择签收状态"
:value=
"viewEnums[formData.sign_status]"
/>
</view>
</u-form-item>
<u-form-item
prop=
"
plan
_qty"
label=
"应签收数量"
labelWidth=
"35%"
borderBottom
>
<u-input
:disabledColor=
"'#cecece'"
disabled
border=
"none"
v-model=
"formData.
plan
_qty"
/>
<u-form-item
prop=
"
shipment_loadbox
_qty"
label=
"应签收数量"
labelWidth=
"35%"
borderBottom
>
<u-input
:disabledColor=
"'#cecece'"
disabled
border=
"none"
v-model=
"formData.
shipment_loadbox
_qty"
/>
</u-form-item>
<u-form-item
prop=
"sign_qty"
label=
"签收数量"
:required=
"disableSignQ()"
labelWidth=
"35%"
borderBottom
>
<u-input
:disabledColor=
"'#cecece'"
:disabled=
"disableSign()"
border=
"none"
v-model=
"formData.sign_qty"
/>
...
...
@@ -118,7 +118,7 @@
formData
:
{
time
:
""
,
//签收时间
sign_qty
:
""
,
//签收数量
plan
_qty
:
""
,
//应签收数量
shipment_loadbox
_qty
:
""
,
//应签收数量
sign_status
:
""
,
//签收状态
remark
:
""
,
//备注
},
...
...
@@ -141,10 +141,14 @@
onLoad
(
options
)
{
const
data
=
getApp
().
globalData
.
orderAllPodSign
if
(
data
.
execute_bu
==
'TBU'
){
this
.
formData
.
plan
_qty
=
data
.
pod_count
;
this
.
formData
.
shipment_loadbox
_qty
=
data
.
pod_count
;
this
.
formData
.
sign_qty
=
data
.
pod_count
;
//签收数量
}
else
if
(
data
.
execute_bu
==
'ESBU'
){
this
.
formData
.
shipment_loadbox_qty
=
data
.
sp__qty
;
}
else
{
this
.
formData
.
shipment_loadbox_qty
=
data
.
shipment_loadbox_qty
}
this
.
execute_bu
=
data
.
execute_bu
this
.
execute_bu
=
data
.
execute_bu
const
isEmpty
=
!
Object
.
keys
(
data
).
length
this
.
podList
=
data
;
...
...
subpkg/orderPod/orderPod.vue
View file @
716b7ce7
...
...
@@ -7,8 +7,8 @@
</view>
<view
class=
"tabs-outer"
>
<view
class=
"tabs flex"
>
<text
:class=
"['tab',
{'active' : tabActive==='空'}]" @click="switchTab('空')">未
回单
</text>
<text
:class=
"['tab',
{'active' : tabActive==='非空'}]" @click="switchTab('非空')">已
回单
</text>
<text
:class=
"['tab',
{'active' : tabActive==='空'}]" @click="switchTab('空')">未
上传
</text>
<text
:class=
"['tab',
{'active' : tabActive==='非空'}]" @click="switchTab('非空')">已
上传
</text>
</view>
</view>
<view
class=
"select-options"
>
...
...
subpkg/orderPodSignEdit/orderPodSignEdit.vue
View file @
716b7ce7
...
...
@@ -76,8 +76,8 @@
:value=
"viewEnums[formData.sign_status]"
/>
</view>
</u-form-item>
<u-form-item
prop=
"
plan
_qty"
label=
"应签收数量"
labelWidth=
"35%"
borderBottom
>
<u-input
:disabledColor=
"'#cecece'"
disabled
border=
"none"
v-model=
"formData.
plan
_qty"
/>
<u-form-item
prop=
"
shipment_loadbox
_qty"
label=
"应签收数量"
labelWidth=
"35%"
borderBottom
>
<u-input
:disabledColor=
"'#cecece'"
disabled
border=
"none"
v-model=
"formData.
shipment_loadbox
_qty"
/>
</u-form-item>
<u-form-item
prop=
"sign_qty"
label=
"签收数量"
:required=
"true"
labelWidth=
"35%"
borderBottom
>
<u-input
:disabledColor=
"'#cecece'"
border=
"none"
v-model=
"formData.sign_qty"
/>
...
...
@@ -96,7 +96,7 @@
<!-- 底部按钮 -->
<view
class=
"operation-btn flex_sb"
>
<button
class=
"backBtn common_btn"
@
click=
"onNavBack"
>
返回
</button>
<
button
class=
"submitBtn common_btn"
@
click=
"onSubmitForm"
>
确认
</button
>
<
!--
<button
class=
"submitBtn common_btn"
@
click=
"onSubmitForm"
>
确认
</button>
--
>
</view>
<!-- 类型选择动作面板 -->
...
...
@@ -127,7 +127,7 @@
sign_status
:
""
,
//签收状态
remark
:
""
,
//备注
sign_qty
:
""
,
//签收数量
plan
_qty
:
""
,
//应签收数量
shipment_loadbox
_qty
:
""
,
//应签收数量
remark
:
""
,
//备注
id
:
""
,
//id
...
...
@@ -150,10 +150,10 @@
type
:
'operation'
,
align
:
'center'
,
label
:
'操作'
,
renders
:
[{
renders
:
[
/*
{
name: '编辑',
func: 'edit' // func 代表子元素点击的事件 父元素接收的事件 父元素 @edit
},
},
*/
{
name
:
'删除'
,
type
:
'warn'
,
...
...
@@ -196,6 +196,13 @@
const
data
=
getApp
().
globalData
.
orderPodSignEdit
const
isEmpty
=
!
Object
.
keys
(
data
).
length
this
.
podList
=
data
;
if
(
data
.
execute_bu
==
'TBU'
){
this
.
formData
.
shipment_loadbox_qty
=
data
.
pod_count
;
}
else
if
(
data
.
execute_bu
==
'ESBU'
){
this
.
formData
.
shipment_loadbox_qty
=
data
.
sp__qty
;
}
else
{
this
.
formData
.
shipment_loadbox_qty
=
data
.
shipment_loadbox_qty
}
//获取明细
this
.
onAppIeShipmentStatus
(
data
.
id
);
...
...
subpkg/shipment/shipment.vue
View file @
716b7ce7
...
...
@@ -37,7 +37,7 @@
<u-button
@
click=
"outGate()"
shape=
"circle"
color=
"#2E75E6"
text=
"已提重箱"
v-if=
"shouldShowoutGateButton"
></u-button>
<u-button
@
click=
"emptyCommitted()"
shape=
"circle"
color=
"#2E75E6"
text=
"已还箱"
v-if=
"shouldShowemptyCommittedButton"
customStyle=
"margin-left: 20rpx;"
></u-button>
<u-button
@
click=
"report()"
shape=
"circle"
color=
"#2E75E6"
text=
"在途上报"
v-if=
"shouldShowreportButton"
customStyle=
"margin-left: 20rpx;"
></u-button>
<u-button
@
click=
"onAbnormalEvents()"
shape=
"circle"
color=
"#2E75E6"
customStyle=
"margin-left: 20rpx;"
text=
"异常上报"
></u-button>
<u-button
@
click=
"onAbnormalEvents()"
shape=
"circle"
color=
"#2E75E6"
customStyle=
"margin-left: 20rpx;"
v-if=
"!is_driver"
text=
"异常上报"
></u-button>
</view>
</view>
<!--
<view
class=
"box_4"
>
...
...
@@ -279,14 +279,19 @@
'actual_arrival_factory_time'
:{
required
:
true
},
},
shipment_type
:
''
,
multi_shipment_type
:
false
multi_shipment_type
:
false
,
is_driver
:
false
}
},
computed
:
{
// 计算属性:判断是否显示派车按钮
shouldShowDispatchButton
()
{
const
validTypes
=
[
'国内直达'
,
'国际直达'
,
'拖车段'
];
return
validTypes
.
includes
(
this
.
shipment_type
)
&&
!
this
.
multi_shipment_type
;
if
(
this
.
is_driver
){
return
false
}
else
{
const
validTypes
=
[
'国内直达'
,
'国际直达'
,
'拖车段'
];
return
validTypes
.
includes
(
this
.
shipment_type
)
&&
!
this
.
multi_shipment_type
;
}
},
//已到厂
shouldShowDeliveryArrivalButton
(){
...
...
@@ -406,6 +411,10 @@
let
reqData
=
{
"args"
:
{
pageNum
,
pageSize
}
}
var
user_gid
=
getApp
().
globalData
.
user_role
console
.
log
(
"用户角色为"
+
user_gid
)
this
.
is_driver
=
(
user_gid
==
'DEFAULT.CARRIER_ADMIN'
?
true
:
false
)
console
.
log
(
"是否为司机"
+
this
.
is_driver
)
if
(
this
.
searchValue
){
reqData
.
args
.
restrictions
=
[{
"field"
:
'shipment_no'
,
...
...
subpkg/shipmentReport/shipmentReport.vue
View file @
716b7ce7
...
...
@@ -105,6 +105,7 @@
onLoad
(
options
)
{
const
data
=
getApp
().
globalData
.
choose
;
//勾选的数据
const
isEmpty
=
!
Object
.
keys
(
data
).
length
this
.
formData
.
report_time
=
this
.
convertTimeHh24
(
new
Date
())
},
methods
:
{
...
...
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