| | |
| | | |
| | | }) |
| | | } |
| | | this.table.operator = [{ |
| | | text: '审核', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.examineHandle, |
| | | showFun: (row)=>{return row.type==='首检'}, |
| | | show: { |
| | | key: 'checkState', |
| | | val: ['0'] |
| | | } |
| | | }] |
| | | if(this.permissions.quality_rawMaterial_check){ |
| | | this.table.operator = [{ |
| | | text: '审核', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.examineHandle, |
| | | showFun: (row)=>{return row.type==='首检'&& row.insState==='1'}, |
| | | show: { |
| | | key: 'checkState', |
| | | val: ['0','2'] |
| | | } |
| | | }] |
| | | } |
| | | if(this.permissions.quality_rawMaterial_del){ |
| | | this.table.operator.push({ |
| | | text: '作废', |
| | |
| | | if(res.data.code == 0 && (res.data.data=='1'|| res.data.data=='0')){ |
| | | sessionStorage.setItem("raw-resultVal-"+this.dataForm.id,res.data.data) |
| | | this.$message.success("上报成功"); |
| | | this.$router.go(-1) |
| | | }else{ |
| | | this.$message.error("上报失败,",res.data.data); |
| | | } |