Browse Source

样式调整

java8
han\hanst 1 month ago
parent
commit
60d95c6622
  1. 47
      src/views/modules/ecss/components/PackingDetailTab.vue

47
src/views/modules/ecss/components/PackingDetailTab.vue

@ -63,11 +63,10 @@
label="操作"
width="120"
align="center"
fixed="right"
v-if="showActions">
fixed="right">
<template slot-scope="scope">
<a type="text" size="small" @click="handleEditDetail(scope.row, props.row)">修改</a>
<a type="text" size="small" @click="handleDeleteDetail(scope.row, props.row)">删除</a>
<a type="text" size="small" v-if="showActions" @click="handleEditDetail(scope.row, props.row)">修改</a>
<a type="text" size="small" v-if="showActions" @click="handleDeleteDetail(scope.row, props.row)">删除</a>
</template>
</el-table-column>
</el-table>
@ -103,11 +102,10 @@
label="操作"
width="120"
align="center"
fixed="right"
v-if="showActions">
fixed="right">
<template slot-scope="scope">
<a type="text" size="small" @click="handleEditBox(scope.row)">修改</a>
<a type="text" size="small" @click="handleDeleteBox(scope.row)">删除</a>
<a type="text" size="small" v-if="showActions" @click="handleEditBox(scope.row)">修改</a>
<a type="text" size="small" v-if="showActions" @click="handleDeleteBox(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
@ -358,7 +356,7 @@
<el-dialog
title="调整实际总毛重"
:visible.sync="adjustWeightDialogVisible"
width="600px"
width="450px"
:close-on-click-modal="false">
<el-form :model="adjustWeightForm" label-width="250px">
@ -378,12 +376,11 @@
<el-input
ref="actualWeightInput"
v-model="adjustWeightForm.actualGrossWeight"
placeholder="请输入实际称重的总毛重"
type="number" @keyup.enter.native="submitAdjustWeight()"
size="medium"
placeholder="请输入实际称重的总毛重(KG)"
@keyup.enter.native="submitAdjustWeight()"
size="large"
clearable
autofocus>
<template slot="append">KG</template>
</el-input>
<div style="font-size: 12px; color: #909399; margin-top: 5px; line-height: 1.5;">
输入的总毛重不含托盘重量
@ -956,16 +953,16 @@ export default {
try {
const newBoxQty = parseFloat(value) || 0;
const boxWeight = parseFloat(this.editBoxForm.boxWeight) || 0;
if (boxWeight <= 0) {
this.$message.warning('该物料未配置箱重量,无法自动计算毛重');
this._isCalculating = false;
return;
}
// = ×
const newGrossWeight = boxWeight * newBoxQty;
// = - box_qty/2
const newNetWeight = newGrossWeight - (newBoxQty / 2);
@ -1402,24 +1399,24 @@ export default {
try {
const boxKey = row._boxKey;
const newBoxQty = parseFloat(row.box_qty) || 0;
//
const originalData = this.batchEditOriginalData[boxKey];
if (!originalData) return;
const boxWeight = parseFloat(originalData.boxWeight) || 0;
if (boxWeight <= 0) {
this.$message.warning('该物料未配置箱重量,无法自动计算毛重');
return;
}
// = ×
const newGrossWeight = boxWeight * newBoxQty;
// = - box_qty/2
const newNetWeight = newGrossWeight - (newBoxQty / 2);
//
row.grossWeight = newGrossWeight.toFixed(3);
row.netWeight = newNetWeight.toFixed(3);
@ -1929,7 +1926,7 @@ export default {
}
/deep/ .expand-detail-table .el-table__header th {
background: #eef7f0;
background: #e6e8eb;
color: #333;
font-weight: 500;
border-bottom: 2px solid #e9ecef;
@ -2182,7 +2179,7 @@ export default {
/* 输入框高亮 */
.input-highlight /deep/ .el-input__inner {
height: 50px;
font-size: 18px;
font-size: 12px;
font-weight: 600;
border: 2px solid #409eff;
font-family: 'Courier New', monospace;
@ -2204,7 +2201,7 @@ export default {
}
.input-highlight /deep/ .el-form-item__label {
font-size: 15px;
font-size: 12px;
font-weight: 600;
color: #303133;
}

Loading…
Cancel
Save