diff --git a/src/views/modules/ecss/components/PackingDetailTab.vue b/src/views/modules/ecss/components/PackingDetailTab.vue index 6b37af0..dd2ada2 100644 --- a/src/views/modules/ecss/components/PackingDetailTab.vue +++ b/src/views/modules/ecss/components/PackingDetailTab.vue @@ -63,11 +63,10 @@ label="操作" width="120" align="center" - fixed="right" - v-if="showActions"> + fixed="right"> @@ -103,11 +102,10 @@ label="操作" width="120" align="center" - fixed="right" - v-if="showActions"> + fixed="right"> @@ -358,7 +356,7 @@ @@ -378,12 +376,11 @@ -
注:输入的总毛重不含托盘重量 @@ -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; }