licp
2024-08-23 cd3705905c58a74b811ce5efaa15e305945b5b1e
修改复核功能
已修改1个文件
17 ■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -261,9 +261,10 @@
        <el-button size="small" type="primary" @click="handleSubmit" v-if="state==1"
          :loading="submitLoading">提交</el-button>
        <!-- 复核 -->
        <el-button size="medium" type="primary" @click="upInsReview(1)" :loading="reviewLoading"
          v-if="state>1">通过</el-button>
        <el-button size="medium" @click="upInsReview(0)" v-if="state>1">不通过</el-button>
        <el-button size="small" type="primary" @click="upInsReview(1)" :loading="reviewLoading"
          v-if="state>1">继续试验</el-button>
        <el-button size="small" @click="upInsReview(0)" v-if="state>1" type="danger">再次试验</el-button>
        <el-button size="small" @click="upInsReview(2)" v-if="state>1">结束试验</el-button>
        <el-button size="small" @click="$emit('goback')">返回</el-button>
      </el-col>
    </el-row>
@@ -3291,12 +3292,12 @@
      },
      // 复核
      upInsReview(e) {
        if (e == 1) {
          // 通过
        if (e == 1||e==2) {
          // 继续试验
          this.reviewLoading = true;
          this.$axios.post(this.$api.insOrderPlan.verifyPlan, {
            orderId: this.orderId,
            type: 1,
            type: e,
            laboratory: this.sonLaboratory,
            tell: null
          }).then(res => {
@@ -3309,8 +3310,8 @@
            console.error(error)
            this.reviewLoading = false;
          })
        } else {
          // 不通过
        } else if (e == 1) {
          // 再次试验
          this.reviewDia = true;
        }
      },