From a4362dfe3e0e9c6fad426685da0065455799d018 Mon Sep 17 00:00:00 2001 From: hdy <1105738590@qq.com> Date: 星期三, 10 七月 2024 20:06:15 +0800 Subject: [PATCH] cvt交互逻辑更新 --- jcdm-ui/src/views/main/kb/cvt/index.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/cvt/index.vue b/jcdm-ui/src/views/main/kb/cvt/index.vue index 25bb022..866977f 100644 --- a/jcdm-ui/src/views/main/kb/cvt/index.vue +++ b/jcdm-ui/src/views/main/kb/cvt/index.vue @@ -94,7 +94,7 @@ engineCheckList:[], showFlag:false, buttondisabled:true, - locationCode: "鏈厤缃伐浣�", + locationCode: "鏈厤缃甀P", 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 -- Gitblit v1.9.3