huminmin
3 天以前 781778cdea9e3656dc00ae9945aa73deaea32f9b
src/views/salesManagement/salesLedger/index.vue
@@ -466,6 +466,10 @@
                              <span class="label">送货地址:</span>
                              <span class="value">{{ item.companyAddress }}</span>
                           </div>
                  <div>
                    <span class="label">联系方式:</span>
                    <span class="value">{{ item.contactPerson }}   {{ item.contactPhone }}</span>
                  </div>
                        </div>
                        <div class="info-row">
                           <div>
@@ -480,17 +484,14 @@
                           <div>
                              <span class="label">联系电话:</span>
                              <span class="value">{{ item.contactPhone }}</span>
                              <span class="value">{{ item.companyPhone }}</span>
                           </div>
                        </div>
                     </div>
                     <div class="info-section">
                        <div class="info-row">
                           <div>
                              <span class="label">联系方式:</span>
                              <span class="value"></span>
                           </div>
                           <div>
                              <span class="label">送货单位:</span>
                              <span class="value">湖南鹏创电子有限公司</span>
@@ -502,47 +503,56 @@
                        </div>
                     </div>
                     <span style="font-size: 16px;">货物详细信息:</span>
                     <span style="font-size: 14px; margin-top: 5px;">货物详细信息:</span>
                     <div class="table-section">
                        <table class="product-table">
                           <thead>
                              <tr>
                                 <th>序号</th>
                                 <th>料号</th>
                                 <th>品名/规格</th>
                                 <th>物料名称</th>
                                 <th>产品名称</th>
                                 <th>产品规格</th>
                                 <th>单位</th>
                                 <th>数量</th>
                                 <th>订单号</th>
                                 <th>订单编号</th>
                              </tr>
                           </thead>
                           <tbody>
                              <tr v-for="(product, index) in item.products" :key="product.id">
                                 <td>{{ index + 1 }}</td>
                                 <td>{{ product.materialCode || '' }}</td>
                                 <td>{{ `${product.productCategory || ''}/${product.specificationModel || ''}`
                                    }}</td>
                                 <td>{{ product.productCategory || '' }}</td>
                                 <td>{{ product.specificationModel || '' }}</td>
                                 <td>{{ product.unit || '' }}</td>
                                 <td>{{ product.quantity || '0' }}</td>
                                 <td>{{ item.salesContractNo || '' }}</td>
                              </tr>
                              <tr v-if="!item.products || item.products.length === 0">
                                 <td colspan="6" style="text-align: center; color: #999;">暂无产品数据</td>
                              <!-- 添加空白行以确保至少5行 -->
                              <tr v-for="n in Math.max(0, 5 - (item.products ? item.products.length : 0))" :key="'empty-' + n" style="height: 25px;">
                                 <td style="height: 25px;"></td>
                                 <td style="height: 25px;"></td>
                                 <td style="height: 25px;"></td>
                                 <td style="height: 25px;"></td>
                                 <td style="height: 25px;"></td>
                                 <td style="height: 25px;"></td>
                                 <td style="height: 25px;"></td>
                              </tr>
                           </tbody>
                           <tfoot>
                              <tr>
                                 <td class="label"></td>
                                 <td class="label">合计</td>
                                 <td class="total-value"></td>
                                 <td class="total-value"></td>
                      <td class="label" colspan="5" style="text-align: right;">合计</td>
                                 <td class="total-value">{{ getTotalQuantity(item.products) }}</td>
                                 <td class="total-value"></td>
                              </tr>
                           </tfoot>
                        </table>
                        <div style="width: 30px;">
                           共四联存根回单客户仓库
                        <div style="width: 40px; display: flex; flex-direction: column; gap: 2px;">
                  <div style="border-bottom: 1px dashed #000; padding-bottom: 2px; text-align: center;">共四联</div>
                  <div style="border-bottom: 1px dashed #000; padding-bottom: 2px; text-align: center;">存根</div>
                  <div style="border-bottom: 1px dashed #000; padding-bottom: 2px; text-align: center;">客户</div>
                  <div style="border-bottom: 1px dashed #000; padding-bottom: 2px; text-align: center;">记账</div>
                  <div style="text-align: center;">仓库</div>
                        </div>
                     </div>
@@ -550,12 +560,32 @@
                        <el-descriptions-item
                           label="备注:">贵公司在收货后请即刻核实数量及品质,若有异议,请在3日内提出,否则视为收妥。</el-descriptions-item>
                     </el-descriptions>
                     <el-descriptions :column="2">
                        <el-descriptions-item label="送货单位(签章):" />
                        <el-descriptions-item label="收货单位:" />
                        <el-descriptions-item label="送货人:" />
                        <el-descriptions-item label="收货人:" />
                     </el-descriptions>
              <div class="footer">
                <div class="info-section">
                  <div class="info-row">
                    <div>
                      <span class="label">送货单位(签章):</span>
                      <span class="value"></span>
                    </div>
                    <div>
                      <span class="label">送货人:</span>
                      <span class="value"></span>
                    </div>
                  </div>
                </div>
                <div class="info-section">
                  <div class="info-row">
                    <div>
                      <span class="label">收货单位:</span>
                      <span class="value"></span>
                    </div>
                    <div>
                      <span class="label">收货人:</span>
                    </div>
                  </div>
                </div>
              </div>
                  </div>
               </div>
            </div>
@@ -1516,7 +1546,7 @@
          background: white;
        }
        .print-page {
          width: 200mm;
          width: 241mm;
          height: 75mm;
          padding: 10mm;
          padding-left: 20mm;
@@ -1549,9 +1579,9 @@
        .document-title {
          font-size: 16px;
          font-weight: bold;
          letter-spacing: 10px;
        }
        .info-section {
          margin-bottom: 8px;
          display: flex;
          justify-content: space-between;
          align-items: center;
@@ -1598,14 +1628,38 @@
        .sign-section {
          margin-top: 15px;
        }
        .footer {
           display: flex;
          .info-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 50%;
          }
          .info-row {
            line-height: 20px;
          }
          .label {
            font-weight: bold;
            min-width: 60px;
            font-size: 12px;
          }
          .value {
            margin-right: 20px;
            min-width: 80px;
            font-size: 12px;
          }
        }
        @media print {
          body {
            margin: 0;
            padding: 0;
          }
          .print-page {
            box-shadow: none;
            margin: 0;
            padding: 10mm;
            padding-left: 20mm;
            page-break-inside: avoid;
            page-break-after: always;
          }
@@ -2137,11 +2191,11 @@
   .document-title {
      font-size: 16px;
      font-weight: bold;
      letter-spacing: 10px;
   }
}
.info-section {
   margin-bottom: 8px;
   display: flex;
   justify-content: space-between;
   align-items: center;
@@ -2230,6 +2284,29 @@
   }
}
.footer {
  display: flex;
  .info-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
  }
  .info-row {
    line-height: 20px;
  }
  .label {
    font-weight: bold;
    min-width: 60px;
    font-size: 12px;
  }
  .value {
    margin-right: 20px;
    min-width: 80px;
    font-size: 12px;
  }
}
@media print {
   .app-container {
      display: none;