spring
3 天以前 4d787e603c88aa6f8894db78ac5aa1f336593db3
fix: 生产核算样式调整
已修改1个文件
53 ■■■■ 文件已修改
src/views/productionManagement/productionCosting/index.vue 53 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionCosting/index.vue
@@ -1,8 +1,9 @@
<template>
    <div class="app-container">
        <div class="content-layout">
        <el-row :gutter="16" class="content-row">
            <!-- 左侧台账 + 顶部筛选 -->
            <div class="left-panel">
            <el-col :xs="24" :sm="24" :md="24" :lg="8" :xl="8" class="left-col">
                <div class="left-panel">
                <div class="left-header">
          <el-form :model="searchForm" inline>
            <el-form-item prop="dateType">
@@ -21,7 +22,7 @@
                  end-placeholder="结束日期"
                  format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD"
                  style="width: 300px"
                  style="width: 200px"
                  @change="handleDateRangeChange"
              />
            </el-form-item>
@@ -33,17 +34,21 @@
                    :tableData="leftTableData"
                    :tableLoading="tableLoading"
          :page="page"
          :height="200"
          @row-click="handleLeftRowClick"
          @pagination="pagination"
        ></PIMTable>
            </div>
                </div>
            </el-col>
            <!-- 右侧明细(原有内容) -->
            <div class="right-panel">
                <div class="header-filters">
                        <el-button @click="handleOut" class="ml10">导出</el-button>
                    </div>
            <!-- 右侧明细 -->
            <el-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16" class="right-col">
                <div class="right-panel">
                    <el-form inline>
                        <el-form-item>
                            <el-button type="primary" @click="handleOut">导出</el-button>
                        </el-form-item>
                    </el-form>
                    <PIMTable
                        rowKey="id"
                        :column="tableColumn"
@@ -53,8 +58,9 @@
                        style="margin-right: 20px;"
                        @pagination="pagination1"
                    ></PIMTable>
            </div>
        </div>
                </div>
            </el-col>
        </el-row>
    </div>
</template>
@@ -146,7 +152,10 @@
        label: "合格率",
        prop: "outputRate",
    minWidth: 100,
    formatData: (val) => {
      if (val == null || val === '') return '-'
      return parseFloat(val).toFixed(2)
    },
    },
]);
@@ -316,31 +325,27 @@
</script>
<style scoped lang="scss">
.content-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
.content-row {
  width: 100%;
}
.left-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
.content-row .left-col,
.content-row .right-col {
  margin-bottom: 16px;
}
.left-panel,
.right-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.left-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.left-title {