Browse Source

【前端pc】大屏看板-物流时刻状态需求更改

dev_pc_nev
安虹睿 2 months ago
parent
commit
d345767854
  1. 104
      fe/WmsLargeScreen/src/views/logisticsTimeBoard.vue

104
fe/WmsLargeScreen/src/views/logisticsTimeBoard.vue

@ -8,11 +8,18 @@
></boardHeader>
<dv-loading v-show="dataLoading">Loading... </dv-loading>
<ul class="stateExplain">
<!-- 计划statuNomal 提前statuWarning 准时statuSuccess 延后statuLate 延期statuError -->
<li class="colorNomal"><span class="state statuNomal"></span>计划</li>
<li class="colorWarning"><span class="state statuWarning"></span>提前</li>
<li class="colorSucess"><span class="state statuSuccess"></span>准时</li>
<li class="colorLate"><span class="state statuLate"></span>延后</li>
<li class="colorError"><span class="state statuError"></span>延期</li>
<!-- <li :style="{color:colors.nomal}"><span class="state" :style="{background:colors.nomal}"></span>无计划</li> -->
<!-- :style="{background:colors.green}" -->
<li class="colorSucess"><span class="state statuSuccess"></span>准时</li>
<!-- 2025-03-12前版本 -->
<!-- <li class="colorSucess"><span class="state statuSuccess"></span>准时</li>
<li class="colorWarning"><span class="state statuWarning"></span>提前/延迟</li>
<li class="colorError"><span class="state statuError"></span>未到</li>
<li class="colorError"><span class="state statuError"></span>未到</li> -->
</ul>
<div class="lineContain" v-if="!dataLoading">
<dv-scroll-board :config="config" ref="logisticsScrollBoard" style="height:100%" />
@ -154,35 +161,54 @@ export default {
// 1绿2022-11-01 14:151
// if((Math.abs(_number_planTime - _number_time) <= _oneHour) && v.sta == '1'){
// -------------2025-03-12star------------------
// if(v.receiptStatus == ""){
// // _background = this.colors.green
// _background_class= "statuSuccess";
// }
// // 2/2022-11-01 14:15
// // 60
// // 60
// // if((Math.abs(_number_planTime - _number_time) > _oneHour) && v.sta == '1'){
// if(v.receiptStatus == "" || v.receiptStatus == ""){
// // _background = this.colors.yellow
// _background_class= "statuWarning";
// }
// // 360
// //
// //
// // if((Math.abs(_number_planTime - _number_time) > _oneHour) && v.sta == '0'){
// // v.receiptStatus == "" || v.isDelay = true
// // v.isDelay = true
// if(v.receiptStatus == "" || v.isDelay){
// // _background = this.colors.red
// // _background_name = this.colors.red
// _background_class= "statuError";
// if(this.headerType == 'night'){
// _background_name_class = "statuError"
// }else{
// _background_name_class= "";
// }
// }
// -------------2025-03-12end------------------
// -------------2025-03-12star------------------
if(v.receiptStatus == "计划"){
_background_class= "statuNomal";
}
if(v.receiptStatus == "提前"){
_background_class= "statuWarning";
}
if(v.receiptStatus == "准时"){
// _background = this.colors.green
_background_class= "statuSuccess";
}
// 2/2022-11-01 14:15
// 60
// 60
// if((Math.abs(_number_planTime - _number_time) > _oneHour) && v.sta == '1'){
if(v.receiptStatus == "延后" || v.receiptStatus == "提前"){
// _background = this.colors.yellow
_background_class= "statuWarning";
if(v.receiptStatus == "延后"){
_background_class= "statuLate";
}
// 360
//
//
// if((Math.abs(_number_planTime - _number_time) > _oneHour) && v.sta == '0'){
// v.receiptStatus == "" || v.isDelay = true
// v.isDelay = true
if(v.receiptStatus == "延期" || v.isDelay){
// _background = this.colors.red
// _background_name = this.colors.red
if(v.receiptStatus == "延期"){
_background_class= "statuError";
if(this.headerType == 'night'){
_background_name_class = "statuError"
}else{
_background_name_class= "";
}
}
// -------------2025-03-12end------------------
if(name || name == ""){
//
@ -651,34 +677,47 @@ export default {
<style lang="less">
.logisticsTimeBoardPage{
@borderColor:#43caff;
@colorNomal:rgba(82,172,197, 1);
@colorNomal:rgba(127,170,251, 1);
@colorSuccess:rgba(11, 254, 255, 1);
@colorWarning:rgba(254,140,10, 1) ;
@colorWarning:rgba(254,140,10, 1);
@colorLate:rgba(255, 45, 140, 1);
@colorError:rgba(255,45,45,1);
@statuSize:1.2rem;
@fillNomal:linear-gradient(to right, rgba(82,172,197,0.7) , rgba(82,172,197,0.3));
@fillNomal:linear-gradient(to right, rgba(127,170,251, 0.7), rgba(127,170,251, 0.3));
@fillSuccess:linear-gradient(to right, rgba(11, 254, 255,0.7) , rgba(11, 254, 255,0.3));
@fillWarning:linear-gradient(to right, rgba(254,140,10,0.7) , rgba(254,140,10,0.3));
@fillLate:linear-gradient(to right, rgba(255, 45, 140, 0.7), rgba(255, 45, 140, 0.3));
@fillError:linear-gradient(to right, rgba(255,45,45,0.7) , rgba(255,45,45,0.3));
//
//
.statuNomal{
border: @colorNomal solid 0.1rem;
background-image: @fillNomal;
width: 100%;
}
//
.statuWarning{
border: @colorWarning solid 0.1rem;
background-image: @fillWarning;
width: 100%;
box-sizing: border-box;
}
//
.statuSuccess{
border: @colorSuccess solid 0.1rem;
background-image: @fillSuccess;
width: 100%;
box-sizing: border-box;
}
.statuWarning{
border: @colorWarning solid 0.1rem;
background-image: @fillWarning;
//
.statuLate{
border: @colorLate solid 0.1rem;
background-image: @fillLate;
width: 100%;
box-sizing: border-box;
}
//
.statuError{
border: @colorError solid 0.1rem;
background-image: @fillError;
@ -686,8 +725,9 @@ export default {
box-sizing: border-box;
}
.colorNomal{color:@colorNomal}
.colorSucess{color:@colorSuccess}
.colorWarning{color:@colorWarning}
.colorSucess{color:@colorSuccess}
.colorLate{color:@colorLate}
.colorError{color:@colorError}
//
.stateExplain{

Loading…
Cancel
Save