chenhj
15 小时以前 ea1a0a7522dbe869e02cdde1042fe2596d413bef
src/views/productionManagement/productStatistics/index.vue
@@ -26,6 +26,12 @@
                :page="page"
                :tableLoading="tableLoading"
                @pagination="pagination">
        <template #inputQuantitySlot="{ row }">
          {{ row.inputQuantity === 0 ? '-' : row.inputQuantity }}
        </template>
        <template #outputQuantitySlot="{ row }">
          {{ row.outputQuantity === 0 ? '-' : row.inputQuantity }}
        </template>
      </PIMTable>
    </div>
  </div>
@@ -57,11 +63,15 @@
    label: "投入数量",
    prop: "inputQuantity",
    width: "140",
    dataType: 'slot',
    slot: 'inputQuantitySlot',
  },
  {
    label: "产出数量",
    prop: "outputQuantity",
    width: "140",
    dataType: 'slot',
    slot: 'outputQuantitySlot',
  }
]);
const tableData = ref([]);
@@ -118,10 +128,12 @@
<style scoped lang="scss">
.search_form {
  margin-bottom: 20px;
  .search-row {
    display: flex;
    gap: 20px;
    align-items: center;
    .search-item {
      display: flex;
      align-items: center;
@@ -141,26 +153,32 @@
  display: flex;
  gap: 20px;
  height: 350px;
  .transfer-card-info {
    flex: 1;
    overflow: auto;
    .info-group {
      width: 50%;
      float: left;
    }
    .info-item {
      display: flex;
      margin-bottom: 15px;
      .info-label {
        width: 120px;
        font-weight: bold;
        margin-right: 20px;
      }
      .info-value {
        flex: 1;
      }
    }
  }
  .transfer-card-qr {
    width: 240px;
    display: flex;
@@ -171,7 +189,7 @@
}
</style>
<style  lang="scss">
<style lang="scss">
@media print {
  @page {
    size: landscape;
@@ -219,20 +237,24 @@
  }
  .transfer-card-info {
    flex: 1;
    .info-group {
      width: 100%;
      float: none;
      margin-bottom: 20px;
    }
    .info-item {
      display: flex;
      margin-bottom: 10px;
      .info-label {
        width: 100px;
        font-weight: bold;
        margin-right: 15px;
        white-space: nowrap;
      }
      .info-value {
        flex: 1;
        word-break: break-word;
@@ -251,4 +273,4 @@
    height: 140px !important;
  }
}
</style>
</style>