Преглед изворни кода

新增物料需求清单和首件两检的bug

695593266@qq.com пре 5 месеци
родитељ
комит
291dbb2a5b

+ 69 - 0
src/api/requirementListOrder/index.js

@@ -0,0 +1,69 @@
+import request from '@/utils/request';
+
+// 获取需求列表计划
+export async function getRequirementListOrder(data) {
+  const res = await request.get('/mes/mesmaterialrequirements/page', data);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 获取需求计划-详情分页
+export async function getRequirementListOrderDetailPage(params) {
+  const res = await request.get('/mes/mesmaterialrequirements/detailPage', {
+    params
+  });
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 获取需求计划-详情
+export async function getRequirementListOrderDetail(id) {
+  const res = await request.get(`/mes/mesmaterialrequirements/getById/${id}`);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 获取需求计划-保存
+export async function saveRequirementListOrder(data) {
+  const res = await request.post('/mes/mesmaterialrequirements/save', data);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 获取需求计划-修改
+export async function updateRequirementListOrder(data) {
+  const res = await request.put('/mes/mesmaterialrequirements/update', data);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 获取需求计划-删除
+export async function deleteRequirementListOrder(data) {
+  const res = await request.delete(`/mes/mesmaterialrequirements/delete`, {
+    data
+  });
+
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 获取需求计划-导出
+export async function dowloadRequirementListOrder(data) {
+  const res = await request.get('/mes/mesmaterialrequirements/export', data);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}

+ 10 - 12
src/views/produce/index.vue

@@ -1737,16 +1737,16 @@
 
       /* ================== job ================== */
       async handleJob() {
-        const resultValue = await this.getFirstArticleConfig();
+        // const resultValue = await this.getFirstArticleConfig();
 
         if (this.activeName == '1') {
-          return this.handleTaskJob(resultValue);
+          return this.handleTaskJob();
         }
 
-        return this.handleWorkOrderJob(resultValue);
+        return this.handleWorkOrderJob();
       },
 
-      async handleTaskJob(resultValue) {
+      async handleTaskJob() {
         if (!this.taskData) {
           this.isFinalCheckProduction = false;
           return this.$message.warning('请选择一条任务单进行报工');
@@ -1763,8 +1763,8 @@
         const row = this.taskData;
 
         if (
-          resultValue === '1' &&
-          row.totalFirstArticleDualInspectionStatus !== 2
+          row.hasFirstArticleDualInspection == '1' &&
+          row.totalFirstArticleDualInspectionStatus != '2'
         ) {
           this.isFinalCheckProduction = false;
           return this.$message.warning('请先完成首件两检再报工');
@@ -1819,14 +1819,12 @@
         });
       },
 
-      async handleWorkOrderJob(resultValue) {
+      async handleWorkOrderJob() {
         if (!this.checkWorkOrder({ min: 1 })) return;
 
-        if (resultValue === '1') {
-          const result = await this.checkQualityResult();
-          if (!result?.firstArticleDualInspectionResult) {
-            return this.$message.warning('请完成首件两检再报工!');
-          }
+        const result = await this.checkQualityResult();
+        if (!result?.firstArticleDualInspectionResult) {
+          return this.$message.warning('请完成首件两检再报工!');
         }
 
         if ([2, 3, 6].includes(this.taskObj.type)) {

+ 489 - 0
src/views/requirementListOrder/components/details.vue

@@ -0,0 +1,489 @@
+<template>
+  <div class="ele-body">
+    <el-card shadow="never" class="tabs_box">
+      <el-button
+        size="small"
+        type="primary"
+        class="ele-btn-icon"
+        @click="closeDetail"
+        >关闭</el-button
+      >
+      <headerTitle style="margin-top: 10px" />
+      <el-form
+        ref="form"
+        :model="form"
+        :rules="rules"
+        label-position="right"
+        label-width="140px"
+      >
+        <el-row :gutter="10" class="basic">
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="计划编号:">
+              <el-input v-model="form.planCode" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="批次号:">
+              <el-input v-model="form.batchNo" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="编码:">
+              <el-input v-model="form.categoryCode" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="名称:">
+              <el-input v-model="form.categoryName" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="零部件图号:">
+              <el-input v-model="form.imgCode" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <!-- <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="计划数量:">
+              <el-input v-model="form.order" disabled></el-input>
+            </el-form-item>
+          </el-col> -->
+
+          <!-- <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="BOM类型:">
+              <el-input v-model="form.order" disabled></el-input>
+            </el-form-item>
+          </el-col> -->
+
+          <!-- <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="BOM版本:">
+              <el-input v-model="form.order" disabled></el-input>
+            </el-form-item>
+          </el-col> -->
+
+          <!-- <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="投料控制清单号:">
+              <el-input v-model="form.order" disabled></el-input>
+            </el-form-item>
+          </el-col> -->
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="需求订单号:">
+              <el-input v-model="form.code" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="顶级产品编号:">
+              <el-input v-model="form.topCategoryName" disabled></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="顶级产品名称:">
+              <el-input v-model="form.topCategoryName" disabled></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
+            <el-form-item label="生产工单号:">
+              <el-input v-model="form.order" disabled></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+
+      <seek-page :seekList="seekList" @search="search"></seek-page>
+
+      <!--feedingControlQty -->
+
+      <ele-pro-table
+        ref="table"
+        :columns="columns"
+        :datasource="detailList"
+        :selection.sync="selection"
+        row-key="id"
+        cache-key="entrust_list_data"
+        :height="tableHeight"
+        :pageSize="20"
+        @fullscreen-change="fullscreenChange"
+      >
+        <template #quantity="{ row }">
+          <span
+            >{{ row.feedingControlQty ? row.feedingControlQty : 0 }}/{{
+              row.quantity ? row.quantity : 0
+            }}</span
+          >
+        </template>
+
+        <template #componentAttribute="{ row }">
+          <el-tag size="small">{{
+            componentAttributeMap[row.componentAttribute]
+          }}</el-tag>
+        </template>
+
+        <template #attributeType="{ row }">
+          <el-tag type="success" size="small">{{
+            attributeTypeMap[row.attributeType]
+          }}</el-tag>
+        </template>
+
+        <template #produceType="{ row }">
+          <el-tag type="warning" size="small">{{
+            produceTypeMap[row.produceType]
+          }}</el-tag></template
+        >
+      </ele-pro-table>
+    </el-card>
+  </div>
+</template>
+
+<script>
+  import {
+    getRequirementListOrderDetail,
+    getRequirementListOrderDetailPage
+  } from '@/api/requirementListOrder';
+  export default {
+    data() {
+      return {
+        visible: false,
+        form: {},
+        rules: {},
+        tableHeight: 'calc(100vh - 560px)',
+        selection: [],
+        detailList: [],
+
+        componentAttributeMap: {
+          1: '自制件',
+          2: '采购件',
+          3: '外协件',
+          4: '受托件'
+        },
+
+        attributeTypeMap: {
+          1: '总装',
+          2: '部装',
+          3: '零件',
+          4: '原材料'
+        },
+        produceTypeMap: {
+          1: '加工',
+          2: '装配',
+          3: '下料'
+        }
+      };
+    },
+
+    computed: {
+      columns() {
+        return [
+          // {
+          //   columnKey: 'selection',
+          //   type: 'selection',
+          //   width: 45,
+          //   align: 'center',
+          //   fixed: 'left'
+          // },
+          {
+            columnKey: 'index',
+            label: '序号',
+            type: 'index',
+            width: 55,
+            align: 'center',
+            showOverflowTooltip: true,
+            fixed: 'left'
+          },
+          {
+            prop: 'categoryLevelName',
+            label: '物料分类',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          ,
+          {
+            prop: 'componentAttribute',
+            label: '属性类型',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true,
+            slot: 'componentAttribute'
+          },
+          ,
+          {
+            prop: 'attributeType',
+            label: '存货类型',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true,
+            slot: 'attributeType'
+          },
+          ,
+          {
+            prop: 'produceType',
+            label: '生产类型',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true,
+            slot: 'produceType'
+          },
+          ,
+          {
+            prop: 'categoryCode',
+            label: '物料编码',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          ,
+          {
+            prop: 'type',
+            label: '需求订单号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true,
+            slot: 'type'
+          },
+
+          {
+            prop: 'categoryName',
+            label: '物料名称',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'modelType',
+            label: '型号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'specification',
+            label: '规格',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'categorySize',
+            label: '尺寸',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'baseQuantity',
+            label: '基本数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'quantity',
+            label: '投料控制数量/定额数量',
+            width: 190,
+            align: 'center',
+            showOverflowTooltip: true,
+            slot: 'quantity'
+          },
+
+          {
+            prop: 'measuringUnit',
+            label: '计量单位',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'brandNum',
+            label: '牌号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'weight',
+            label: '重量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'weightUnit',
+            label: '重量单位',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'pickQuantity',
+            label: '已领数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'unPickQuantity',
+            label: '未领数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'outQuantity',
+            label: '已出库数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'unOutQuantity',
+            label: '未出库数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'feedQuantity',
+            label: '已投数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'unFeedQuantity',
+            label: '未投数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'oddmentsQuantity',
+            label: '余料数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'createUserName',
+            label: '创建人',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'createTime',
+            label: '创建时间',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          }
+        ];
+      },
+
+      seekList() {
+        return [
+          // {
+          //   label: '计划编号:',
+          //   value: 'name',
+          //   type: 'input',
+          //   labelWidth: 100
+          // },
+          // {
+          //   label: '批次号:',
+          //   value: 'name',
+          //   type: 'input',
+          //   labelWidth: 80
+          // },
+          {
+            label: '编码:',
+            value: 'categoryCode',
+            type: 'input',
+            labelWidth: 50
+          }
+        ];
+      }
+    },
+
+    mounted() {
+      this.initPage();
+    },
+
+    methods: {
+      initPage() {
+        const { id } = this.$route.query;
+        if (!id) return;
+
+        this.getDetailData(id);
+        this.getDetailPage(id);
+      },
+
+      datasource() {
+        return [];
+      },
+
+      open() {
+        this.visible = true;
+      },
+
+      cancel() {
+        this.visible = false;
+      },
+
+      search() {},
+
+      closeDetail() {
+        this.$nextTick(() => {
+          this.$router.back();
+        });
+      },
+
+      async getDetailData(id) {
+        this.form = (await getRequirementListOrderDetail(id)) || {};
+      },
+
+      async getDetailPage(id) {
+        const res = await getRequirementListOrderDetailPage({
+          materialRequirementsId: id
+        });
+        this.detailList = res?.list || [];
+      },
+
+      fullscreenChange(fullscreen) {
+        if (fullscreen) {
+          this.tableHeight = 'calc(100vh - 120px)';
+        } else {
+          this.tableHeight = 'calc(100vh - 560px)';
+        }
+      }
+    }
+  };
+</script>
+
+<style scoped>
+  ::v-deep .el-form-item {
+    margin-bottom: 15px !important;
+  }
+</style>

+ 347 - 0
src/views/requirementListOrder/index.vue

@@ -0,0 +1,347 @@
+<template>
+  <div class="ele-body">
+    <el-card shadow="never" v-loading="loading">
+      <seek-page :seekList="seekList" @search="reload"></seek-page>
+
+      <ele-pro-table
+        ref="table"
+        :columns="columns"
+        :datasource="datasource"
+        :selection.sync="selection"
+        row-key="id"
+        cache-key="entrust_list_data"
+        :height="tableHeight"
+        :pageSize="20"
+        @fullscreen-change="fullscreenChange"
+      >
+        <template v-slot:code="{ row }">
+          <el-link type="primary" :underline="false" @click="goDetail(row)">
+            {{ row.code }}
+          </el-link>
+        </template>
+
+        <template v-slot:action="{ row }">
+          <el-popconfirm
+            class="ele-action"
+            title="确定要删除该计划吗?"
+            @confirm="remove(row)"
+          >
+            <template v-slot:reference>
+              <el-link type="danger" :underline="false" icon="el-icon-delete">
+                删除
+              </el-link>
+            </template>
+          </el-popconfirm>
+        </template>
+        <!-- <template v-slot:toolbar>
+          <el-button
+            size="small"
+            type="primary"
+            icon="el-icon-plus"
+            class="ele-btn-icon"
+            @click="detail"
+          >
+            详情
+          </el-button>
+        </template> -->
+      </ele-pro-table>
+    </el-card>
+  </div>
+</template>
+
+<script>
+  import dictMixins from '@/mixins/dictMixins';
+  import {
+    getRequirementListOrder,
+    deleteRequirementListOrder
+  } from '@/api/requirementListOrder';
+  export default {
+    mixins: [dictMixins],
+    data() {
+      return {
+        loading: false,
+        factoryList: [],
+        selection: [],
+        tableHeight: 'calc(100vh - 320px)'
+      };
+    },
+
+    computed: {
+      columns() {
+        return [
+          {
+            columnKey: 'selection',
+            type: 'selection',
+            width: 45,
+            align: 'center',
+            fixed: 'left'
+          },
+          {
+            columnKey: 'index',
+            label: '序号',
+            type: 'index',
+            width: 55,
+            align: 'center',
+            showOverflowTooltip: true,
+            fixed: 'left'
+          },
+          {
+            prop: 'code',
+            label: '需求清单号',
+            width: 150,
+            align: 'center',
+            showOverflowTooltip: true,
+            slot: 'code'
+          },
+          {
+            prop: 'topCategoryCode',
+            label: '顶级产品编号',
+            width: 150,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'topCategoryName',
+            label: '顶级产品名称',
+            width: 150,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'planCode',
+            label: '计划编号',
+            width: 150,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'batchNo',
+            label: '批次号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+
+          {
+            prop: 'categoryCode',
+            label: '编码',
+            width: 150,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'categoryName',
+            label: '名称',
+            width: 140,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'type',
+            label: '零部件图号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'modelType',
+            label: '型号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'specification',
+            label: '规格',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'categorySize',
+            label: '尺寸',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'quantity',
+            label: '计划数量',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'measuringUnit',
+            label: '计量单位',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'brandNum',
+            label: '牌号',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'type',
+            label: '加工类型',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'type',
+            label: '作业名称',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'type',
+            label: '承制单位',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'type',
+            label: '计划类别',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'type',
+            label: '创建人',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'createTime',
+            label: '创建时间',
+            width: 100,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            label: '操作',
+            width: 80,
+            align: 'center',
+            resizable: false,
+            fixed: 'right',
+            slot: 'action'
+          }
+        ];
+      },
+
+      seekList() {
+        return [
+          {
+            label: '计划编号:',
+            value: 'planCode',
+            type: 'input',
+            labelWidth: 100
+          },
+          {
+            label: '批次号:',
+            value: 'batchNo',
+            type: 'input',
+            labelWidth: 80
+          },
+          {
+            label: '编码:',
+            value: 'categoryCode',
+            type: 'input',
+            labelWidth: 50
+          },
+          {
+            label: '需求清单号:',
+            value: 'code',
+            type: 'input',
+            labelWidth: 100
+          },
+          {
+            label: '顶级产品编号:',
+            value: 'topCategoryCode',
+            type: 'input',
+            labelWidth: 100
+          },
+          {
+            label: '顶级产品名称:',
+            value: 'topCategoryName',
+            type: 'input',
+            labelWidth: 100
+          },
+          {
+            label: '计划状态:',
+            value: 'name',
+            type: 'select',
+            labelWidth: 100,
+            planList: this.factoryList
+          },
+          {
+            label: '计划类别:',
+            value: 'name',
+            type: 'select',
+            labelWidth: 100,
+            planList: this.factoryList
+          },
+          {
+            label: '承制单位:',
+            value: 'name',
+            type: 'select',
+            labelWidth: 100,
+            planList: this.factoryList
+          }
+        ];
+      }
+    },
+
+    methods: {
+      async datasource({ page, limit, where }) {
+        const res = await getRequirementListOrder({
+          ...where,
+          pageNum: page,
+          size: limit
+        });
+        return res;
+      },
+
+      reload(where) {
+        this.$refs.table.reload({ page: 1, where: where });
+      },
+
+      fullscreenChange(fullscreen) {
+        if (fullscreen) {
+          this.tableHeight = 'calc(100vh - 120px)';
+        } else {
+          this.tableHeight = 'calc(100vh - 320px)';
+        }
+      },
+
+      async remove(row) {
+        const ids = [row.id];
+        await deleteRequirementListOrder(ids).then((res) => {
+          this.$message.success('删除成功');
+          this.reload();
+        });
+      },
+
+      goDetail(item) {
+        this.$router.push({
+          path: '/requirementListOrder/components/details',
+          query: {
+            id: item.id
+          }
+        });
+      }
+    }
+  };
+</script>
+
+<style></style>

+ 14 - 13
src/views/taskList/index.vue

@@ -80,10 +80,10 @@
             @click="details('report', row)"
             v-if="
               (row.disposalStatus == '1' &&
-                isInspection == '0' &&
+                row.hasFirstArtieleDualInspection == '0' &&
                 tabValue != '4') ||
               (row.totalFirstArticleDualInspectionStatus == 2 &&
-                isInspection == '1' &&
+                row.hasFirstArtieleDualInspection == '1' &&
                 tabValue != '4')
             "
             >报工
@@ -122,6 +122,7 @@
               (row.disposalStatus == '1' || tabValue == '2') &&
               row.hasFirstArticleDualInspection == 1
             " -->
+
           <el-link
             :underline="false"
             type="primary"
@@ -129,7 +130,7 @@
             v-if="
               row.disposalStatus == '1' &&
               tabValue != '4' &&
-              isInspection == '1'
+              row.hasFirstArticleDualInspection == '1'
             "
             >首件两检
           </el-link>
@@ -264,8 +265,8 @@
         },
         dialogFormVisible: false,
         teamList: [],
-        tableHeight: 'calc(100vh - 380px)',
-        isInspection: '0'
+        tableHeight: 'calc(100vh - 380px)'
+        // isInspection: '0'
       };
     },
     computed: {
@@ -672,7 +673,7 @@
     },
     created() {},
     mounted() {
-      this.getInspections();
+      // this.getInspections();
     },
     methods: {
       handleTabClick(e) {
@@ -744,13 +745,13 @@
         // if()
       },
 
-      async getInspections() {
-        await parameterGetByCode({
-          code: 'first_article_dual_inspection_for_report'
-        }).then((res) => {
-          this.isInspection = res.value ? res.value : '0';
-        });
-      },
+      // async getInspections() {
+      //   await parameterGetByCode({
+      //     code: 'first_article_dual_inspection_for_report'
+      //   }).then((res) => {
+      //     this.isInspection = res.value ? res.value : '0';
+      //   });
+      // },
 
       async chooseUser() {
         if (!this.form.userId) {