spring
8 天以前 646135b9c54d6ccf5d47af30bf208bdfe5005017
src/pages/production/twist/components/StatisticsModal.vue
@@ -47,7 +47,7 @@
              </view>
              <view class="layer-details">
                <text class="detail-text">重量:{{ layer.weight.toFixed(2) }} kg</text>
                <text class="detail-text">长度:{{ layer.length.toFixed(2) }} M</text>
                <text class="detail-text">&nbsp;&nbsp;长度:{{ layer.length.toFixed(2) }} M</text>
              </view>
            </view>
          </view>
@@ -111,7 +111,7 @@
      node.strandedWireDish.forEach((item: any) => {
        stats[layerName].count++;
        stats[layerName].weight += parseFloat(item.actuallyWeight || 0);
        stats[layerName].length += parseFloat(item.amount || 0);
        stats[layerName].length += parseFloat(item.actuallyLength || 0);
      });
    }
  });
@@ -145,9 +145,12 @@
<style lang="scss" scoped>
.statistics-modal {
  width: 320px;
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
@@ -156,6 +159,7 @@
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  .title {
    font-size: 18px;
@@ -166,6 +170,9 @@
.modal-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.summary-section {
@@ -240,6 +247,7 @@
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  .cancel-btn {
    flex: 1;