hdy
2024-07-10 a4362dfe3e0e9c6fad426685da0065455799d018
jcdm-ui/src/views/main/kb/cvt/index.vue
@@ -94,7 +94,7 @@
      engineCheckList:[],
      showFlag:false,
      buttondisabled:true,
      locationCode: "未配置工位",
      locationCode: "未配置IP",
      locationName: "未配置工位",
      scannerFlag: false,
@@ -159,13 +159,19 @@
        this.scannerFlag = true
        console.log("条码:",this.form.engineNo)
        if(this.form.engineNo !== null && this.form.engineNo !== undefined) {
          addPassingStationCollection({sfcCode:this.form.engineNo,locationCode:this.locationCode}).then(res =>{
            console.log("rrrrr",res)
          })
          if(this.locationCode === 'BCOP040'|| this.locationCode === 'BCOP060'|| this.locationCode === 'BCOP100'|| this.locationCode === 'BP020' ){
          console.log("条码2:",this.locationCode)
            initializedData({sfcCode:this.form.engineNo,locationCode:this.locationCode}).then(res =>{
              if(res.code===500){
                  this.$createElement;
              }else {
                addPassingStationCollection({sfcCode:this.form.engineNo,locationCode:this.locationCode}).then(res =>{
                  console.log("rrrrr",res)})
                this.$message({
                  message: '扫码成功',
                  type: 'success'
                });
              }
            })
          }
        }else{
          this.reset();
          this.buttondisabled = true