zhangwencui
2026-05-16 dd043652e2fb0e5613a39d09292fa32c7b789b30
过程检功能修改,修改三种检验修改时delete item.id限制
已修改5个文件
78 ■■■■ 文件已修改
src/pages/qualityManagement/finalInspection/add.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/materialInspection/add.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/processInspection/add.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/processInspection/detail.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/processInspection/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/finalInspection/add.vue
@@ -699,11 +699,11 @@
      loading.value = true;
      form.value.inspectType = 2;
      if (isEdit.value) {
        tableData.value.forEach(item => {
          delete item.id;
        });
      }
      // if (isEdit.value) {
      tableData.value.forEach(item => {
        delete item.id;
      });
      // }
      const data = { ...form.value, qualityInspectParams: tableData.value };
      data.quantity = Number(data.quantity);
src/pages/qualityManagement/materialInspection/add.vue
@@ -712,11 +712,11 @@
      loading.value = true;
      form.value.inspectType = 0;
      if (!isEdit.value) {
        tableData.value.forEach(item => {
          delete item.id;
        });
      }
      // if (!isEdit.value) {
      tableData.value.forEach(item => {
        delete item.id;
      });
      // }
      const data = { ...form.value, qualityInspectParams: tableData.value };
      data.quantity = Number(data.quantity);
src/pages/qualityManagement/processInspection/add.vue
@@ -115,10 +115,10 @@
        <up-input v-model="form.checkTime"
                  placeholder="请选择检测日期"
                  readonly />
        <!-- <template #right>
        <template #right>
          <up-icon name="calendar"
                   @click="showDatePicker"></up-icon>
        </template> -->
        </template>
      </up-form-item>
      <!-- 检验项目 -->
      <view class="inspection-items-container">
@@ -184,11 +184,15 @@
      </up-button>
    </view>
    <!-- 日期选择器 -->
    <up-popup v-model:show="showDate"
              mode="date"
              :start-year="2020"
              :end-year="2030"
              @confirm="confirmDate" />
    <up-popup :show="showDate"
              mode="bottom"
              @close="showDate = false">
      <up-datetime-picker :show="true"
                          v-model="pickerValue"
                          @confirm="confirmDate"
                          @cancel="showDate = false"
                          mode="date" />
    </up-popup>
    <!-- 工序选择 -->
    <up-action-sheet :show="showprocessSheet"
                     :actions="processOptions"
@@ -313,8 +317,8 @@
    qualityInspectParamInfo,
    qualityInspectDetailByProductId,
    getQualityTestStandardParamByTestStandardId,
    list,
  } from "@/api/qualityManagement/materialInspection.js";
  import { getProcessList } from "@/api/productionManagement/processManagement.js";
  import { userListNoPage } from "@/api/system/user.js";
  // 显示提示信息
@@ -602,8 +606,8 @@
  // 获取工序列表
  const getprocessList = () => {
    list().then(res => {
      processList.value = res.data;
    getProcessList({ size: -1, current: -1 }).then(res => {
      processList.value = res.data?.records || res.data || [];
    });
  };
@@ -699,11 +703,11 @@
      loading.value = true;
      form.value.inspectType = 1;
      if (isEdit.value) {
        tableData.value.forEach(item => {
          delete item.id;
        });
      }
      // if (!isEdit.value) {
      tableData.value.forEach(item => {
        delete item.id;
      });
      // }
      const data = { ...form.value, qualityInspectParams: tableData.value };
      data.quantity = Number(data.quantity);
src/pages/qualityManagement/processInspection/detail.vue
@@ -15,10 +15,11 @@
          </view>
          <text class="header-title">{{ detailData.productName || '-' }}</text>
          <view class="status-tags">
            <u-tag :type="getTagType(detailData.checkResult)"
            <u-tag v-if="detailData.checkResult"
                   :type="getTagType(detailData.checkResult)"
                   size="small"
                   class="status-tag">
              {{ detailData.checkResult || '-' }}
              {{ detailData.checkResult }}
            </u-tag>
            <u-tag :type="getStateTagType(detailData.inspectState)"
                   size="small"
src/pages/qualityManagement/processInspection/index.vue
@@ -76,7 +76,8 @@
              </view>
            </view>
            <view class="status-tags">
              <u-tag :type="getTagType(item.checkResult)"
              <u-tag v-if="item.checkResult"
                     :type="getTagType(item.checkResult)"
                     size="mini"
                     class="status-tag">
                {{ item.checkResult }}
@@ -117,29 +118,29 @@
          </view>
          <!-- 操作按钮 -->
          <view class="action-buttons">
            <!-- <u-button type="primary"
            <u-button type="primary"
                      size="small"
                      class="action-btn"
                      :disabled="item.inspectState"
                      @click.stop="startInspection(item)">
              编辑
            </u-button> -->
            </u-button>
            <u-button type="info"
                      size="small"
                      class="action-btn"
                      @click.stop="viewDetail(item)">
              详情
            </u-button>
            <!-- <u-button type="success"
            <u-button type="success"
                      size="small"
                      class="action-btn"
                      :disabled="item.inspectState"
                      @click.stop="submitInspection(item)">
              提交
            </u-button> -->
            </u-button>
          </view>
          <view class="action-buttons">
            <!-- <u-button type="info"
            <u-button type="info"
                      size="small"
                      class="action-btn"
                      @click.stop="viewFileList(item)">
@@ -151,7 +152,7 @@
                      :disabled="item.inspectState || item.checkName !== ''"
                      @click.stop="assignInspector(item)">
              分配检验员
            </u-button> -->
            </u-button>
          </view>
        </view>
      </view>
@@ -163,12 +164,12 @@
    </view>
    <!-- 分页组件 -->
    <!-- 浮动新增按钮 -->
    <!-- <view class="fab-button"
    <view class="fab-button"
          @click="addInspection">
      <up-icon name="plus"
               size="24"
               color="#ffffff"></up-icon>
    </view> -->
    </view>
    <!-- 日期选择器 -->
    <up-popup v-model:show="showDate"
              mode="date"