王震
2023-12-04 bea4b9e9da44517844bff2e8952b85206ce839ca
src/views/quality/Packaging_ledger/index.vue
@@ -289,7 +289,6 @@
        })
      },
      handleCurrentChange(row){
        console.log(row,"一行");
        this.dataway = row
        this.packageBoxId = {
          packageBoxId:row.id
@@ -299,7 +298,6 @@
      },
      rightquery(){
        list({packageBoxId:this.goid}).then((res) =>{
          console.log(res,"nihaoa");
          this.testStandardParams = res.data.data
        })
      },
@@ -308,7 +306,7 @@
        if (this.dataway.state == "未报检") {
            this.increase = true
        }else{
          this.$message.error('请先选择包装项目')
          this.$message.error('改项目已完成检验')
        }
      },
      preserve(datalist){
@@ -317,19 +315,16 @@
      },
      //右边保存
      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()
@@ -337,7 +332,6 @@
      },
      //审核
      check(row){
        console.log(row,"审核");
        let packageBox = {
                id:row.id,
                packageNo:row.packageNo,