chengxiangling
2025-05-16 af1c9e588f1de0240390648f9bb56aa486870aff
src/views/mainPlan/sheetMetalSupplyGap/index.vue
@@ -6,27 +6,26 @@
      ref="queryRef"
      :inline="true"
      v-show="showSearch"
      :label-width="locale === 'zh' ? '90px' : '200px'"
      label-position="left"
    >
      <el-row type="flex" justify="left">
        <el-col :span="locale === 'zh' ? 5 : 10">
      <el-row :gutter="20">
        <el-col :span="6">
          <el-form-item
            :style="{ width: '100%'  }"
            :label="$t('plan.query.requireTraceID')"
            prop="requireTrackId"
          >
            <el-input
              :style="{ width: locale === 'zh' ? '140px' : '300px' }"
              v-model="queryParams.requireTrackId"
              :placeholder="`${$t('plan.placeholder.requireTraceID')}`"
              :placeholder="`${$t('common.common.placeholder')}${$t('plan.query.requireTraceID')}`"
              clearable
              @keyup.enter="handleQuery"
            />
          </el-form-item>
        </el-col>
        <el-col :span="locale === 'zh' ? 8 : 9">
          <el-form-item :label="$t('plan.query.itemNumber')" prop="bomLineCode">
        <el-col :span="6">
          <el-form-item :style="{ width: '100%'  }" :label="$t('plan.query.itemNumber')" prop="bomLineCode">
            <el-input
              :style="{ width: locale === 'zh' ? '140px' : '210px' }"
              v-model="queryParams.bomLineCode"
              :placeholder="`${$t('common.common.placeholder')}${$t(
                'plan.query.itemNumber'
@@ -36,7 +35,7 @@
            />
          </el-form-item>
        </el-col>
        <el-col :span="locale === 'zh' ? 11 : 5" style="text-align: right">
        <!-- <el-col :span="6" style="text-align: right">
          <el-form-item class="column-with-margin">
            <el-button type="primary" icon="Search" @click="handleQuery">{{
              $t("common.common.query")
@@ -45,7 +44,7 @@
              $t("common.common.reset")
            }}</el-button>
          </el-form-item>
        </el-col>
        </el-col> -->
      </el-row>
    </el-form>
@@ -62,7 +61,8 @@
      </el-col>
      <right-toolbar
        v-model:showSearch="showSearch"
        @queryTable="getList"
        @queryTable="handleQuery"
        @resetTable="resetQuery"
      ></right-toolbar>
    </el-row>
    <HxlhTable
@@ -126,67 +126,67 @@
      {
        title: t("plan.table.requireID"),
        field: "id",
        width: 150,
        width: "180",
        align: "center",
      },
      {
        title: t("plan.table.requireTraceID"),
        field: "requireTrackId",
        width: 200,
        width: "180",
        align: "center",
      },
      {
        title: t("plan.table.itemNumber"),
        field: "bomLineCode",
        width: 200,
        width: "auto",
        align: "center",
      },
      {
        title: t("plan.table.bomLowCode"),
        field: "bomLineLevel",
        width: 200,
        align: "center",
      },
      {
        title: t("plan.table.matchState"),
        field: "matchState",
        width: 200,
        align: "center",
      },
      {
        title: t("plan.table.matchPattern"),
        field: "matchMode",
        width: 200,
        align: "center",
      },
      // {
      //   title: t("plan.table.bomLowCode"),
      //   field: "bomLineLevel",
      //   width: 200,
      //   align: "center",
      // },
      // {
      //   title: t("plan.table.matchState"),
      //   field: "matchState",
      //   width: 200,
      //   align: "center",
      // },
      // {
      //   title: t("plan.table.matchPattern"),
      //   field: "matchMode",
      //   width: 200,
      //   align: "center",
      // },
      {
        title: t("plan.table.unmatchedDemandQuantity"),
        field: "unmatchedDemandAmount",
        width: 200,
        width: "auto",
        align: "center",
      },
      {
        title: t("plan.table.planStartDay"),
        field: "startDate",
        width: 200,
        width: 162,
        align: "center",
      },
      {
        title: t("plan.table.planEndDayDate"),
        field: "completeDate",
        width: 200,
        width: 162,
        align: "center",
      },
      {
        title: t("plan.table.requirementDate"),
        field: "demandDate",
        width: 200,
        width: 162,
        align: "center",
      },
      {
        title: t("plan.table.applicableFactories"),
        field: "orgCode",
        width: 200,
        width: "auto",
        align: "center",
        formatter: ({ cellValue, row, column }) => {
          if (cellValue) {
@@ -201,7 +201,7 @@
      {
        title: t("plan.table.productionBase"),
        field: "productionBase",
        width: 200,
        width: "auto",
        align: "center",
      },
    ];