Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
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
wangweidong
patzn-cloud-web-back-soil
Commits
22f40f3c
Commit
22f40f3c
authored
Feb 20, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了样品留存到期提示
parent
ddab58f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
AddressManage.vue
...-sample-manage/storehouse-sample-manage/AddressManage.vue
+12
-4
No files found.
pages/soil-alone-sample-manage/storehouse-sample-manage/AddressManage.vue
View file @
22f40f3c
...
...
@@ -13,6 +13,7 @@
</Form-item>
<Form-item
class=
"search-item"
label=
"库房号:"
>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.warehouse"
name=
"warehouse"
placeholder=
"请输入库房号"
clearable
/>
{{
currentTime
}}
</Form-item>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary"
>
搜索
</Button>
...
...
@@ -34,12 +35,12 @@
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
v-for=
"item in pageColumns"
:key=
"item.key"
sortable
>
:key=
"item.key"
sortable
>
<template
slot-scope=
"scope"
>
<div
v-if=
"item.key==='status'"
>
{{
scope
.
row
[
item
.
key
]
===
0
?
'现行'
:
scope
.
row
[
item
.
key
]
===
1
?
'即将实施'
:
scope
.
row
[
item
.
key
]
===
2
?
'部分被代替'
:
scope
.
row
[
item
.
key
]
===
3
?
'被代替'
:
scope
.
row
[
item
.
key
]
===
4
?
'作废'
:
''
}}
</div>
<div
v-else-if=
"item.key==='classify'"
>
{{
scope
.
row
[
item
.
key
]
===
0
?
'判定依据'
:
scope
.
row
[
item
.
key
]
===
1
?
'检测依据'
:
scope
.
row
[
item
.
key
]
===
2
?
'其他'
:
''
}}
</div>
...
...
@@ -47,13 +48,13 @@
{{
scope
.
row
[
item
.
key
]
===
0
?
'待检'
:
scope
.
row
[
item
.
key
]
===
1
?
'备样'
:
scope
.
row
[
item
.
key
]
===
2
?
'备用'
:
''
}}
</div>
<div
v-else-if=
"item.date"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
<div
v-else-if=
"item.date"
:class=
'scope.row.keepLimitTime
<
=
currentTime
?"
redFont
"
:
""'
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</div>
<div
v-else-if=
"item.key==='fileUrl'"
>
<span
v-if=
"scope.row['fileUrl']"
class=
"green-color"
>
是
</span>
<span
v-else
class=
"red-color"
>
否
</span>
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
:class=
'scope.row.keepLimitTime
<
=
currentTime
?"
redFont
"
:
""'
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</vxe-table-column>
</PTVXETable>
...
...
@@ -110,6 +111,8 @@ export default {
{
title
:
'库房号'
,
key
:
'storehouse'
},
{
title
:
'架位号'
,
key
:
'shelfCode'
}
],
// 当前时间
currentTime
:
new
Date
().
getTime
(),
// 操作
iconMsg
:
[
{
...
...
@@ -350,3 +353,8 @@ export default {
}
}
</
script
>
<
style
>
.redFont
{
color
:
red
;
}
</
style
>
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