add:待检区点位大屏
This commit is contained in:
@@ -46,6 +46,7 @@ public class BstIvtPackageinfoivtController {
|
|||||||
* @param page 分页参数
|
* @param page 分页参数
|
||||||
*/
|
*/
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
@SaIgnore
|
||||||
@Log("查询点位库存")
|
@Log("查询点位库存")
|
||||||
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page) {
|
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(bstIvtPackageinfoivtService.queryAll(whereJson, page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(bstIvtPackageinfoivtService.queryAll(whereJson, page)), HttpStatus.OK);
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ public class BstIvtPackageinfoivtServiceImpl extends ServiceImpl<BstIvtPackagein
|
|||||||
String isUsed = MapUtil.getStr(whereJson, "is_used");
|
String isUsed = MapUtil.getStr(whereJson, "is_used");
|
||||||
String pointCode = MapUtil.getStr(whereJson, "point_code");
|
String pointCode = MapUtil.getStr(whereJson, "point_code");
|
||||||
String packageInfoArea = MapUtil.getStr(whereJson, "packageinfo_area");
|
String packageInfoArea = MapUtil.getStr(whereJson, "packageinfo_area");
|
||||||
|
String container_name = MapUtil.getStr(whereJson, "container_name");
|
||||||
String ivtStatus = MapUtil.getStr(whereJson, "ivt_status");
|
String ivtStatus = MapUtil.getStr(whereJson, "ivt_status");
|
||||||
if (StringUtils.isNotEmpty(isUsed)) {
|
if (StringUtils.isNotEmpty(isUsed)) {
|
||||||
queryWrapper.eq(BstIvtPackageinfoivt::getIs_used, isUsed);
|
queryWrapper.eq(BstIvtPackageinfoivt::getIs_used, isUsed);
|
||||||
@@ -109,6 +110,9 @@ public class BstIvtPackageinfoivtServiceImpl extends ServiceImpl<BstIvtPackagein
|
|||||||
if (StringUtils.isNotEmpty(pointCode)) {
|
if (StringUtils.isNotEmpty(pointCode)) {
|
||||||
queryWrapper.like(BstIvtPackageinfoivt::getPoint_code, pointCode);
|
queryWrapper.like(BstIvtPackageinfoivt::getPoint_code, pointCode);
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isNotEmpty(container_name)) {
|
||||||
|
queryWrapper.eq(BstIvtPackageinfoivt::getContainer_name, container_name);
|
||||||
|
}
|
||||||
if (StringUtils.isNotEmpty(packageInfoArea)) {
|
if (StringUtils.isNotEmpty(packageInfoArea)) {
|
||||||
queryWrapper.eq(BstIvtPackageinfoivt::getPoint_status, packageInfoArea);
|
queryWrapper.eq(BstIvtPackageinfoivt::getPoint_status, packageInfoArea);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,16 @@
|
|||||||
@keyup.enter.native="crud.toQuery"
|
@keyup.enter.native="crud.toQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item label="点位区域">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.packageinfo_area"
|
v-model="query.packageinfo_area"
|
||||||
@@ -125,6 +135,7 @@
|
|||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
:row-style="rowStyle"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
@@ -186,7 +197,7 @@ const defaultForm = {
|
|||||||
qzzno: null,
|
qzzno: null,
|
||||||
vehicle_code: null,
|
vehicle_code: null,
|
||||||
point_status: null,
|
point_status: null,
|
||||||
packageinfo_area: null,
|
packageinfo_area: '3',
|
||||||
sch_packageinfo_status: null,
|
sch_packageinfo_status: null,
|
||||||
sort_seq: null,
|
sort_seq: null,
|
||||||
is_used: null,
|
is_used: null,
|
||||||
@@ -211,6 +222,10 @@ export default {
|
|||||||
idField: 'ivt_id',
|
idField: 'ivt_id',
|
||||||
sort: 'ivt_id,desc',
|
sort: 'ivt_id,desc',
|
||||||
crudMethod: { ...crudDeliverypointivt },
|
crudMethod: { ...crudDeliverypointivt },
|
||||||
|
query: {
|
||||||
|
packageinfo_area:'3',
|
||||||
|
size:100
|
||||||
|
},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: false,
|
add: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
@@ -241,6 +256,20 @@ export default {
|
|||||||
[CRUD.HOOK.beforeRefresh]() {
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
return true
|
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) {
|
hand(value) {
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user