Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-web-master
Commits
9480a718
Commit
9480a718
authored
Nov 28, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控货订单放货业务修改
parent
acce30d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
14 deletions
+53
-14
Release.vue
src/views/jiedao/profile/components/Release.vue
+53
-14
No files found.
src/views/jiedao/profile/components/Release.vue
View file @
9480a718
...
...
@@ -15,41 +15,72 @@
label-width=
"100px"
>
<el-row>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
8
"
>
<el-form-item
:label=
"$t('release.orderNo')"
>
{{
detail
.
orderNo
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('release.sumNum')"
>
{{
detail
.
sumNum
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('release.sumVolume')"
>
{{
detail
.
sumVolume
}}
m³
</el-form-item>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
8
"
>
<el-form-item
:label=
"$t('release.sumWeight')"
>
{{
detail
.
sumWeight
}}
kg
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('release.sumNum')"
>
{{
detail
.
sumNum
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('release.sumConNum')"
>
{{
detail
.
sumNum
}}
</el-form-item>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
8
"
>
<el-form-item
:label=
"$t('release.remainNum')"
>
{{
detail
.
sumNum
-
detail
.
releaseNum
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('release.unloadTime')"
>
{{
detail
.
unloadTime
||
'
-
'
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('release.lockConsigneeTime')"
>
{{
detail
.
lockConsigneeTime
||
'
-
'
}}
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
:label=
"$t('release.limitUpdateConsignee')"
>
{{
detail
.
isLimitUpdateConsignee
?
$t
(
"
release.yes
"
)
:
$t
(
"
release.no
"
)
}}
</el-form-item>
</el-col>
</el-row>
<div
class=
"title"
>
{{
$t
(
'
release.releaseNotice
'
)
}}
</div>
<div
class=
"title flex"
>
<div>
{{
$t
(
'
release.releaseNotice
'
)
}}
</div>
<div
class=
"ml-20 red"
v-if=
"detail.isLimitUpdateConsignee && detail.unloadTime && Date.now()
<
=
(
new
Date
(
detail
.
lockConsigneeTime
)).
getTime
()"
>
{{
$t
(
'
release.releaseNotesOne
'
)
}}
</div>
<div
class=
"ml-20 red"
v-if=
"detail.isLimitUpdateConsignee && detail.unloadTime && Date.now() > (new Date(detail.lockConsigneeTime)).getTime()"
>
{{
$t
(
'
release.releaseNotesTwo
'
)
}}
</div>
<div
class=
"ml-20 red"
v-if=
"detail.isLimitUpdateConsignee && !detail.unloadTime"
>
{{
$t
(
'
release.releaseNotesThree
'
)
}}
</div>
<div
class=
"ml-20 red"
v-if=
"!detail.isLimitUpdateConsignee"
>
{{
$t
(
'
release.releaseNotesFour
'
)
}}
</div>
</div>
<div
class=
"flex"
>
<el-form-item
:label=
"$t('release.consigneeName')"
prop=
"consigneeName"
>
<el-input
v-model=
"formData.consigneeName"
:placeholder=
"$t('release.consigneeNameNotice')"
clearable
:disabled=
"isSuccess"
:disabled=
"
disableUpdateCongsignee ||
isSuccess"
class=
"w-150"
/>
</el-form-item>
...
...
@@ -58,7 +89,7 @@
v-model=
"formData.consigneePhone"
:placeholder=
"$t('release.consigneePhoneNotice')"
clearable
:disabled=
"isSuccess"
:disabled=
"
disableUpdateCongsignee ||
isSuccess"
class=
"w-250 ml-10"
>
<el-select
slot=
"prepend"
v-model=
"formData.consigneeCountryCode"
placeholder=
""
style=
"width:100px"
>
...
...
@@ -70,7 +101,7 @@
v-model=
"formData.consigneeEmail"
:placeholder=
"$t('release.consigneeEmailNotice')"
clearable
:disabled=
"isSuccess"
:disabled=
"
disableUpdateCongsignee ||
isSuccess"
class=
"w-150"
/>
</el-form-item>
...
...
@@ -204,6 +235,14 @@ export default {
t
=
this
.
$t
(
'
release.releaseSuccess
'
)
}
return
t
},
disableUpdateCongsignee
(){
if
(
!
this
.
detail
?.
isLimitUpdateConsignee
)
return
false
// 锁定且过期了返回false,其他情况全部是true
if
(
this
.
detail
.
isLimitUpdateConsignee
&&
this
.
detail
.
lockConsigneeTime
&&
new
Date
(
this
.
detail
.
lockConsigneeTime
).
getTime
()
<
Date
.
now
()){
return
false
}
return
true
}
},
created
()
{
...
...
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