chengxiangling
2025-05-16 af1c9e588f1de0240390648f9bb56aa486870aff
src/views/mainPlan/abnormalPartNumberReport/index.vue
@@ -6,37 +6,36 @@
      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-form-item :label="$t('plan.query.itemNumber')" prop="itemNumber">
      <el-row :gutter="20">
        <el-col :span="6">
          <el-form-item :style="{ width: '100%'  }" :label="$t('plan.query.itemNumber')" prop="itemNum">
            <el-input
              :style="{ width: locale === 'zh' ? '140px' : '300px' }"
              v-model="queryParams.itemNumber"
              :placeholder="`${$t('plan.placeholder.requireTraceID')}`"
              v-model="queryParams.itemNum"
              :placeholder="`${$t('common.common.placeholder')}${$t('plan.query.itemNumber')}`"
              clearable
              @keyup.enter="handleQuery"
            />
          </el-form-item>
        </el-col>
        <el-col :span="locale === 'zh' ? 8 : 9">
        <el-col :span="6">
          <el-form-item
            :style="{ width: '100%'  }"
            :label="$t('plan.query.workOrderNo')"
            prop="documentNumber"
            prop="docNum"
          >
            <el-input
              :style="{ width: locale === 'zh' ? '140px' : '210px' }"
              v-model="queryParams.documentNumber"
              v-model="queryParams.docNum"
              :placeholder="`${$t('common.common.placeholder')}${$t(
                'plan.query.itemNumber'
                'plan.query.workOrderNo'
              )}`"
              clearable
              @keyup.enter="handleQuery"
            />
          </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>
@@ -56,13 +55,14 @@
          plain
          icon="Download"
          @click="handleExport"
          v-hasPermi="['Aps:apsPlatePlan:redundantOrderListExport']"
          v-hasPermi="['Aps:ApsPlateStandardRequireError:export']"
          >{{ $t("common.common.export") }}</el-button
        >
      </el-col>
      <right-toolbar
        v-model:showSearch="showSearch"
        @queryTable="getList"
        @queryTable="handleQuery"
        @resetTable="resetQuery"
      ></right-toolbar>
    </el-row>
    <HxlhTable
@@ -82,7 +82,7 @@
  </div>
</template>
<script setup name="Calendar">
<script setup name="AbnormalPartNumberReport">
import HxlhTable from "@/components/HxlhTable";
import { redundantOrderList } from "@/api/basicData/sheetMetalConfig/sheetMetalConfig";
import { listAll_plant } from "@/api/basicData/plant";
@@ -98,8 +98,8 @@
  queryParams: {
    pageNum: 1,
    pageSize: 10,
    documentNumber: null,
    itemNumber: null,
    docNum: null,
    itemNum: null,
  },
});
const { queryParams, form, rules } = toRefs(data);
@@ -120,19 +120,16 @@
      {
        title: t("plan.table.workOrderNo"),
        field: "docNum",
        width: 150,
        align: "center",
      },
      {
        title: t("plan.table.itemNumber"),
        field: "itemNum",
        width: 200,
        align: "center",
      },
      {
        title: t("plan.table.applicableFactories"),
        field: "orgCode",
        width: 200,
        align: "center",
        formatter: ({ cellValue, row, column }) => {
          if (cellValue) {
@@ -147,13 +144,11 @@
      {
        title: t("plan.table.abnormalCause"),
        field: "message",
        width: 200,
        align: "center",
      },
      {
        title: t("plan.table.creationTime"),
        field: "createTime",
        width: 200,
        align: "center",
      }
    ];