瀏覽代碼

bug 修复

lilei 2 年之前
父節點
當前提交
a97a1eb3a4
共有 4 個文件被更改,包括 18 次插入3 次删除
  1. 6 0
      api/car.js
  2. 1 1
      pages/index/index.vue
  3. 1 1
      pages/vinInput/confirmVin.vue
  4. 10 1
      pagesA/digitalShelf/choosePart.vue

+ 6 - 0
api/car.js

@@ -222,6 +222,12 @@ export const scanVinLog = (params) => {
     method: 'post'
   })
 }
+export const scanVinLogCopy = (params) => {
+  return request({
+    url: `scanVinLog/logCopy/${params.id}`,
+    method: 'get'
+  })
+}
 // 滚动扫描记录
 export const scanVinLogQueryRoll = (params) => {
   return request({

+ 1 - 1
pages/index/index.vue

@@ -557,7 +557,7 @@
 			toChoosePart(item){
 				item.text = item.modelInfo
 				uni.navigateTo({
-					url: "/pagesA/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))
+					url: "/pagesA/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))+'&type=log'
 				})
 			}
 		}

+ 1 - 1
pages/vinInput/confirmVin.vue

@@ -166,7 +166,7 @@
 							}
 							// 打开选择配件页面
 							uni.redirectTo({
-								url: "/pagesA/digitalShelf/choosePart?vinNumber="+vinNo+"&carList="+encodeURIComponent(JSON.stringify(res.data))
+								url: "/pagesA/digitalShelf/choosePart?vinNumber="+vinNo+"&carList="+encodeURIComponent(JSON.stringify(res.data))+'&type=news'
 							})
 						} else {
 							uni.showModal({

+ 10 - 1
pagesA/digitalShelf/choosePart.vue

@@ -230,6 +230,7 @@
 
 <script>
 	import { getShelfProductList, getShelfProductType, queryPartCodeByVin, getShelfQueryList, shelfOrderFlowCreate } from '@/api/shelf'
+	import { scanVinLogCopy } from '@/api/car'
 	export default {
 		data() {
 			return {
@@ -302,7 +303,10 @@
 			this.carInfo = opts.carList?JSON.parse(decodeURIComponent(opts.carList)):null
 			// 获取vin 对应code
 			this.getCarCodeByVin()
-			console.log(this.$store.state.vuex_showPrice)
+			// 记录
+			if(opts.type == 'log'){
+				this.scanVinLogCopy()
+			}
 			// 游客
 			if(this.userInfo.sysUserFlag == '0'){
 				// 未认证
@@ -315,6 +319,11 @@
 			this.$store.state.vuex_shelfChoosePart = []
 		},
 		methods: {
+			scanVinLogCopy(){
+				scanVinLogCopy({id:this.carInfo.id}).then(res => {
+					console.log(res)
+				})
+			},
 			toAuthStore(){
 				this.showPopup = false
 				uni.redirectTo({