| | |
| | | operator: [ |
| | | { |
| | | text: '检验', |
| | | icon: 'el-icon-delete', |
| | | icon: 'el-icon-position', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.check |
| | |
| | | }) |
| | | }, |
| | | handleCurrentChange(row){ |
| | | console.log(row,"一行"); |
| | | if(row.state=='已报检'){ |
| | | this.isCheck = true |
| | | } |
| | |
| | | }, |
| | | rightquery(){ |
| | | list({packageBoxId:this.goid}).then((res) =>{ |
| | | console.log(res,"nihaoa"); |
| | | this.testStandardParams = res.data.data |
| | | }) |
| | | }, |
| | | //详情添加 |
| | | relateOperationParam(){ |
| | | this.increase = true |
| | | if (this.dataway.state == "未报检") { |
| | | this.increase = true |
| | | }else{ |
| | | this.$message.error('请先选择包装项目') |
| | | } |
| | | }, |
| | | preserve(datalist){ |
| | | this.testStandardParams = datalist |
| | |
| | | }, |
| | | //右边保存 |
| | | addpreserve(){ |
| | | console.log(this.testStandardParams,"保存数据"); |
| | | this.testStandardParams.forEach(el => { |
| | | el.packageBoxId =this.goid |
| | | }); |
| | | saveList(this.testStandardParams).then((res) =>{ |
| | | console.log(res,"保存成功"); |
| | | this.$message.success('保存成功') |
| | | this.rightquery() |
| | | }) |
| | | }, |
| | | //删除 |
| | | deleteadd(row){ |
| | | console.log(row,""); |
| | | deledata({id:row.id}).then((res)=>{ |
| | | this.$message.success('删除成功') |
| | | this.rightquery() |
| | |
| | | }, |
| | | //审核 |
| | | check(row){ |
| | | console.log(row,"审核"); |
| | | let packageBox = { |
| | | id:row.id, |
| | | packageNo:row.packageNo, |