【类 型】:fix 飞机超重提示标签bug

【原  因】:飞机载重上线 和 货物总重量比较 字符串比较 出错
【过  程】:转成number类型
【影  响】:
This commit is contained in:
tk 2024-08-08 17:57:06 +08:00
parent d2ef187ae7
commit 5ca0c40754
2 changed files with 51 additions and 37 deletions

View File

@ -62,16 +62,16 @@
</el-select>
</el-form-item>
<template v-else>
<el-form-item v-if="waringTags.length > 0" label="提示:">
<el-form-item v-if="waringTags.length > 0" label="提示">
<el-tag v-for="(tag, index) in waringTags" :key="index" class="m-r-5" type="warning">{{ tag }}</el-tag>
</el-form-item>
<el-form-item label="订单ID:">
<el-form-item label="订单ID">
{{ executeOrder.id }}
</el-form-item>
<el-form-item label="收货站点:">
<el-form-item label="收货站点">
{{ executeOrder.receive_site_name }}
</el-form-item>
<el-form-item label="联系电话:">
<el-form-item label="联系电话">
{{ executeOrder.tel }}
</el-form-item>
</template>
@ -811,7 +811,7 @@ export default {
}
}
//
if (this.plane.weight_max < order.total_weight) {
if (Number(this.plane.weight_max) < Number(order.total_weight)) {
if (cIndex === -1) {
this.waringTags.push('超出飞机载重')
}

View File

@ -85,17 +85,18 @@ label {
height: 100%;
}
/* Element-ui 全局部分*/
.el-button {
font-size: 16px !important;
}
/*抽屉样式 默认上侧加圆角*/
//抽屉样式 默认上侧加圆角
.el-drawer {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
/* 抽屉样式 大于480px时的圆角样式 */
//抽屉样式 大于480px时的圆角样式
.el-drawer-large {
border-top-left-radius: 10px !important;
border-bottom-left-radius: 10px !important;
@ -103,7 +104,7 @@ label {
border-bottom-right-radius: 0px !important;
}
/*抽屉样式 小于480px时的圆角样式 */
// 抽屉样式 小于480px时的圆角样式
.el-drawer-small {
border-top-left-radius: 10px !important;
border-top-right-radius: 10px !important;
@ -111,6 +112,48 @@ label {
border-bottom-right-radius: 0px !important;
}
.el-transfer__buttons {
margin-top: 10px;
}
.el-row {
margin-top: 10px;
.el-header {
color: $maintext-color;
padding: 0px;
background-color: $border4-color;
}
.el-main {
padding: 0px;
}
}
//表单label
.el-form-item__label {
font-style: italic;
font-weight: bold;
color: #303133 !important;
}
/* 当屏幕宽度小于等于480px时 */
@media (max-width: 480px) {
.el-dialog {
width: 90% !important;
/* 根据需要调整宽度 */
max-width: 360px !important;
/* 根据需要设置最大宽度 */
}
.el-message-box {
width: 90% !important;
/* 调整宽度以适应小屏幕 */
max-width: 360px !important;
/* 根据需要设置最大宽度 */
}
}
//mapboxgl
.mapboxgl-ctrl-bottom-left a {
display: none !important;
@ -253,36 +296,7 @@ label {
font-weight: bold;
}
.el-row {
margin-top: 10px;
.el-header {
color: $maintext-color;
padding: 0px;
background-color: $border4-color;
}
.el-main {
padding: 0px;
}
}
/* 当屏幕宽度小于等于420px时 */
@media (max-width: 420px) {
.el-dialog {
width: 90% !important;
/* 根据需要调整宽度 */
max-width: 360px !important;
/* 根据需要设置最大宽度 */
}
.el-message-box {
width: 90% !important;
/* 调整宽度以适应小屏幕 */
max-width: 360px !important;
/* 根据需要设置最大宽度 */
}
}
/*隐藏声音api 的弹出框*/
.rvNotification {