chengxiangling
2025-05-16 af1c9e588f1de0240390648f9bb56aa486870aff
src/views/mainPlan/platePlan/index.vue
@@ -6,17 +6,16 @@
      ref="queryRef"
      :inline="true"
      v-show="showSearch"
      :label-width="locale === 'zh' ? '90px' : '180px'"
      label-position="left"
    >
      <el-row :gutter="20">
        <el-col :span="12">
        <el-col :span="6">
          <el-form-item
            :label-width="locale === 'zh' ? '90px' : '140px'"
            :label="$t('plan.query.daterangePlanStartDay')"
            :style="{ width: '100%'  }"
          >
          <!-- locale === 'zh' ? '220px' : '240px' -->
            <el-date-picker
              :style="{ width: locale === 'zh' ? '220px' : '240px' }"
              v-model="daterangePlanStartDay"
              value-format="YYYY-MM-DD"
              type="daterange"
@@ -26,13 +25,12 @@
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
        <el-col :span="6">
          <el-form-item
            :label-width="locale === 'zh' ? '90px' : '140px'"
            :style="{ width: '100%'  }"
            :label="$t('plan.query.daterangePlanEndDay')"
          >
            <el-date-picker
              :style="{ width: locale === 'zh' ? '220px' : '240px' }"
              v-model="daterangePlanEndDay"
              value-format="YYYY-MM-DD"
              type="daterange"
@@ -42,16 +40,13 @@
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
        <el-col :span="6">
          <el-form-item
            :label-width="locale === 'zh' ? '90px' : '140px'"
            :style="{ width: '100%'  }"
            :label="$t('plan.query.documentNumber')"
            prop="documentNumber"
          >
            <el-input
              :style="{ width: locale === 'zh' ? '220px' : '240px' }"
              v-model="queryParams.documentNumber"
              :placeholder="$t('plan.placeholder.documentNumber')"
              clearable
@@ -59,10 +54,9 @@
            />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item :label="$t('plan.query.customer')" prop="customer">
        <el-col :span="6">
          <el-form-item :style="{ width: '100%'  }" :label="$t('plan.query.customer')" prop="customer">
            <el-input
              :style="{ width: locale === 'zh' ? '220px' : '240px' }"
              v-model="queryParams.customer"
              :placeholder="$t('plan.placeholder.customer')"
              clearable
@@ -70,10 +64,8 @@
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24" style="text-align: right">
          <el-form-item>
        <!-- <el-col :span="24" style="text-align: right">
          <el-form-item class="column-with-margin">
            <el-button type="primary" icon="Search" @click="handleQuery">{{
              $t("common.common.query")
            }}</el-button>
@@ -81,7 +73,7 @@
              $t("common.common.reset")
            }}</el-button>
          </el-form-item>
        </el-col>
        </el-col> -->
      </el-row>
    </el-form>
    <!-- </el-row> -->
@@ -130,7 +122,8 @@
      </el-col>
      <right-toolbar
        v-model:showSearch="showSearch"
        @queryTable="getList"
        @queryTable="handleQuery"
        @resetTable="resetQuery"
      ></right-toolbar>
    </el-row>
@@ -276,15 +269,9 @@
const { proxy } = getCurrentInstance();
const { t, locale } = useI18n();
const {
  aps_is_suspended,
  aps_document_status,
  aps_account,
  aps_business_type,
} = proxy.useDict(
  "aps_is_suspended",
  "aps_document_status",
  "aps_account",
  "aps_business_type"
  "aps_account"
);
const exampleList = ref([]);
const planList = ref([]);
@@ -295,7 +282,7 @@
const daterangePlanStartDay = ref([]);
const daterangePlanEndDay = ref([]);
const height = ref(document.documentElement.clientHeight - 270 + "px;");
const height = ref(document.documentElement.clientHeight - 220 + "px;");
const isVisible = ref(false);
const isError = ref(false);
const planned = ref(true);
@@ -542,6 +529,7 @@
        width: 60,
        align: "center",
        slots: { content: "expandContent" },
        fixed:"left",
      },
      { type: "checkbox", width: 60, align: "center" },
      { type: "seq", title: t("plan.table.seq"), width: 60 },
@@ -573,47 +561,47 @@
      {
        title: t("plan.table.mainPartNumber"),
        field: "mainPartNumber",
        width: 150,
        width: 160
      },
      // {
      //   title: '主件图号',
      //   field: 'mainPartDrawingNumber',
      //   width: 150,
      // },
      // {
      //   title: '客户名称',
      //   field: 'customer',
      //   width: 200,
      // },
      {
        title: t('plan.table.customer'),
        field: 'customer',
        width: 160
      },
      {
        title: t("plan.table.businessType"),
        field: "businessType",
        width: 100,
        width: "auto",
      },
      {
        title: t("plan.table.documentNumber"),
        field: "documentNumber",
        width: 140,
        width: "auto",
      },
      {
        title: t("plan.table.requirementType"),
        field: "requirementType",
        width: 100,
        width: "auto",
      },
      {
        title: t("plan.table.documentStatus"),
        field: "documentStatus",
        width: 100,
        width: "auto",
      },
      {
        title: t("plan.table.itemNumber"),
        field: "itemNumber",
        width: 100,
        width: "auto",
      },
      {
        title: t("plan.table.drawingNo"),
        field: "drawingNo",
        width: 100,
        width: 200,
      },
      // {
      //   title: '版本号',
@@ -623,7 +611,7 @@
      {
        title: t("plan.table.productionQuantity"),
        field: "productionQuantity",
        width: 100,
        width: "auto",
      },
      // {
      //   title: '良品数量',
@@ -633,12 +621,12 @@
      {
        title: t("plan.table.processNumber"),
        field: "processNumber",
        width: 100,
        width: "auto",
      },
      {
        title: t("plan.table.factoryCenter"),
        field: "workCenter",
        width: 180,
        width: "auto",
      },
      // {
      //   title: '所属部门',
@@ -653,7 +641,7 @@
      {
        title: t("plan.table.planEndDayDate"),
        field: "planEndDay",
        width: 100,
        width: 160,
      },
      // {
      //   title: '备料料号',
@@ -685,11 +673,21 @@
      //   field: 'isOutsourcing',
      //   width: 100,
      // },
      // {
      //   title: '账套',
      //   field: 'account',
      //   width: 100,
      // },
      {
        title: t('plan.table.account'),
        field: 'account',
        width: "auto",
        // formatter: ({ cellValue, row, column }) => {
        //   if (cellValue) {
        //     console.log(cellValue,aps_account.value,"llll")
        //     for (let i = 0; i < aps_account.value.length; i++) {
        //       if (cellValue === aps_account.value[i].value) {
        //         return aps_account.value[i].label;
        //       }
        //     }
        //   }
        // },
      },
      // {
      //   title: '上阶物料',
      //   field: 'advancedMaterials',
@@ -727,12 +725,12 @@
      // },
    ];
    subGridOptions.value.columns = [
      {
        title: t("plan.table.itemNumber"),
        field: "itemNo",
        width: 150,
        align: "center",
      },
      // {
      //   title: t("plan.table.itemNumber"),
      //   field: "itemNo",
      //   width: 150,
      //   align: "center",
      // },
      {
        title: t("plan.table.workOrderNo"),
        field: "workOrderNo",
@@ -781,18 +779,18 @@
      //   width: 90,
      //   align:"center",
      // },
      {
        title: t("plan.table.standardTime"),
        field: "standardTime",
        width: 90,
        align: "center",
      },
      {
        title: t("plan.table.processOrder"),
        field: "processOrder",
        width: 90,
        align: "center",
      },
      // {
      //   title: t("plan.table.standardTime"),
      //   field: "standardTime",
      //   width: 90,
      //   align: "center",
      // },
      // {
      //   title: t("plan.table.processOrder"),
      //   field: "processOrder",
      //   width: 90,
      //   align: "center",
      // },
      {
        title: t("plan.table.integrationDay"),
        field: "integrationDay",
@@ -1048,7 +1046,15 @@
getList();
</script>
<style lang="css" scoped>
.column-with-margin {
  margin-right: 0px;
}
h4 {
  font-weight: bold;
}
</style>
<style>
.vxe-cell{
  padding:0 20px;
}
</style>