Your Name
2022-05-11 d813339081185b17cfbb6f60e0b3c09e75441e49
src/views/safetyproduction/review.vue
@@ -124,7 +124,7 @@
              <el-col :span="24">
                <el-form-item label="是否否决项">
                  <el-radio-group v-model="list.safetyInspectionItemResult">
                    <el-radio :label="0">是</el-radio>
                    <el-radio :label="0" v-if="list.veto!='' && list.veto!=null">是</el-radio>
                    <el-radio :label="1">否</el-radio>
                  </el-radio-group>
                </el-form-item></el-col
@@ -255,14 +255,13 @@
    },
    modItem() {
      if(this.list.safetyInspectionItemResult!=null){
        console.log(this.list)
              let pointFlag = this.pointDel
        for(var i=0;i<this.list.selfDeductionList.length;i++){
          this.pointDel=this.pointDel-this.list.selfDeductionList[i].point
                  pointFlag=pointFlag-this.list.selfDeductionList[i].point
        }
              if(pointFlag>=0){
      safetySelfInspectionModItemInfo(this.list).then((res) => {
        if (res.data.code == 200) {
          if(this.pointDel>=0){
          this.$notify({
            type: "success",
            duration: 2000,
@@ -275,12 +274,13 @@
          id:this.id
        }
          });
                      }
                  })
             }else{
        alert(`扣分不得超过总分${this.point}`)
      }
        }
      });
      }else{
          else{
          this.$confirm('是否否决项未选择','提示', {
            confirmButtonText: '确认',
            cancelButtonText: '取消',
@@ -304,7 +304,7 @@
    addC(){
       if(this.form.point<=this.point){
        for(let i = 0;i<this.list.selfDeductionList.length;i++){
            if (this.form.id==this.list.selfDeductionList[i].id){
                  if (this.form.safetyInspectionItemDeductionId==this.list.selfDeductionList[i].safetyInspectionItemDeductionId){
                this.list.selfDeductionList[i].point = this.form.point
                this.list.selfDeductionList[i].remark = this.form.remark
            }