add:待检区点位大屏

This commit is contained in:
zhangzq
2025-04-10 15:30:18 +08:00
parent 1cecbe8496
commit a969d2f707
3 changed files with 35 additions and 1 deletions

View File

@@ -21,6 +21,16 @@
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="子卷编码">
<el-input
v-model="query.container_name"
clearable
placeholder="输入子卷编码"
style="width: 185px;"
class="filter-item"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="点位区域">
<el-select
v-model="query.packageinfo_area"
@@ -125,6 +135,7 @@
v-loading="crud.loading"
:data="crud.data"
size="mini"
:row-style="rowStyle"
style="width: 100%;"
@selection-change="crud.selectionChangeHandler"
>
@@ -186,7 +197,7 @@ const defaultForm = {
qzzno: null,
vehicle_code: null,
point_status: null,
packageinfo_area: null,
packageinfo_area: '3',
sch_packageinfo_status: null,
sort_seq: null,
is_used: null,
@@ -211,6 +222,10 @@ export default {
idField: 'ivt_id',
sort: 'ivt_id,desc',
crudMethod: { ...crudDeliverypointivt },
query: {
packageinfo_area:'3',
size:100
},
optShow: {
add: false,
edit: false,
@@ -241,6 +256,20 @@ export default {
[CRUD.HOOK.beforeRefresh]() {
return true
},
rowStyle({row,index}){
let backgroun = {}
if (row.container_name!=null && row.update_time!=null && row.update_time!=undefined){
let now = new Date()
let before = new Date(row.update_time)
const diff = now.getTime() - before.getTime();
let min = Math.floor(diff/(1000*60))
console.log(min)
if (min>120){
backgroun.background = 'red';
}
}
return backgroun;
},
hand(value) {
this.crud.toQuery()
}