Browse Source

bug 修复

lilei 2 years ago
parent
commit
3a7e52ddcb
1 changed files with 1 additions and 4 deletions
  1. 1 4
      pages/vinInput/confirmVin.vue

+ 1 - 4
pages/vinInput/confirmVin.vue

@@ -160,10 +160,7 @@
 						vin:vinNo
 						vin:vinNo
 					}).then(res => {
 					}).then(res => {
 						if (res.status == 200&&res.data) {
 						if (res.status == 200&&res.data) {
-							// 非游客,生成vin记录
-							if(_this.userInfo.sysUserFlag == '1'){
-								_this.creatRecord(res.data)
-							}
+							_this.creatRecord(_this.userInfo.sysUserFlag == '1' ? res.data : null)
 							// 打开选择配件页面
 							// 打开选择配件页面
 							uni.redirectTo({
 							uni.redirectTo({
 								url: "/pagesA/digitalShelf/choosePart?vinNumber="+vinNo+"&carList="+encodeURIComponent(JSON.stringify(res.data))+'&type=news'
 								url: "/pagesA/digitalShelf/choosePart?vinNumber="+vinNo+"&carList="+encodeURIComponent(JSON.stringify(res.data))+'&type=news'