浏览代码

前端清除质检新增客户缓存

gjy 2 年之前
父节点
当前提交
7c91096a20
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. 2 2
      config/index.js
  2. 11 0
      pages/erpbusiness/add_quality_testing.vue

+ 2 - 2
config/index.js

@@ -4,11 +4,11 @@ const dev = {
 	// baseUrlNew: 'http://192.168.110.67:9100/',
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.110.9:9100/',
-	// baseUrlNew: 'http://192.168.110.138:8090/',
+	baseUrlNew: 'http://192.168.110.138:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// 上传图片的
-	baseUrlNew: 'https://api2.eliangeyun.com/',
+	// baseUrlNew: 'https://api2.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 11 - 0
pages/erpbusiness/add_quality_testing.vue

@@ -1073,6 +1073,15 @@
 			groupChange(e) {
 				console.log(e,this.gridListInit)
 				this.gridListInit.warehouseName=this.gridList.warehouseName
+				if (uni.getStorageSync('checkcustomer')) {
+					uni.setStorageSync('checkcustomer','')
+						this.gridListInit.identityId =''
+						this.gridListInit.customerName =''
+						this.gridListInit.customerPhone =''
+						this.gridListInit.carNumber = ''
+						this.gridListInit.customerNumberCard = ''
+						this.$forceUpdate()
+				}
 				// this.gridList = JSON.parse(JSON.stringify(this.gridListInit))
 				this.gridList = this.$u.deepClone(this.gridListInit)
 				this.gridList.serviceManagementType = e
@@ -1096,6 +1105,8 @@
 					console.log(res)
 					this.taskNolist = res.data.data
 				})
+				
+				console.log(this.gridList,111111111111)
 			},
 			outtypepicker(e, status) {
 				if (status == 0) {