ccjgmwz 3 tahun lalu
induk
melakukan
2751807b8a
3 mengubah file dengan 43 tambahan dan 21 penghapusan
  1. 2 2
      config/index.js
  2. 4 3
      manifest.json
  3. 37 16
      pages/erpbusiness/add_quality_testing.vue

+ 2 - 2
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
 	baseUrl: 'https://www.zthymaoyi.com',
-	baseUrlNew: 'http://192.168.1.119:9100/',
-	// baseUrlNew: 'http://api1.eliangeyun.com/',
+	// baseUrlNew: 'http://192.168.1.119:9100/',
+	baseUrlNew: 'http://api1.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 	debug: false
 }
 }

+ 4 - 3
manifest.json

@@ -2,8 +2,8 @@
     "name" : "易粮易运",
     "name" : "易粮易运",
     "appid" : "__UNI__7297DA2",
     "appid" : "__UNI__7297DA2",
     "description" : "易粮易运——为天下粮食人服务的App",
     "description" : "易粮易运——为天下粮食人服务的App",
-    "versionName" : "1.1.40",
-    "versionCode" : 1140,
+    "versionName" : "1.1.43",
+    "versionCode" : 1143,
     "transformPx" : false,
     "transformPx" : false,
     /* SDK配置 */
     /* SDK配置 */
     "quickapp" : {},
     "quickapp" : {},
@@ -195,6 +195,7 @@
         },
         },
         "statusbar" : {
         "statusbar" : {
             "immersed" : false
             "immersed" : false
-        }
+        },
+        "nativePlugins" : {}
     }
     }
 }
 }

+ 37 - 16
pages/erpbusiness/add_quality_testing.vue

@@ -230,7 +230,9 @@
 					tidalGrainPrice: '',
 					tidalGrainPrice: '',
 					dryGrainPrice: '',
 					dryGrainPrice: '',
 					buckleMiscellaneous: '',
 					buckleMiscellaneous: '',
-					carNumber:''
+					carNumber:'',
+					customerName:'',
+					customerPhone:''
 				},
 				},
 				typeList: ['潮粮', '干粮'],
 				typeList: ['潮粮', '干粮'],
 				managementType: '',
 				managementType: '',
@@ -314,23 +316,23 @@
 			this.managementType = options.managementType
 			this.managementType = options.managementType
 			let that = this
 			let that = this
 			this.purchasePriceList = uni.getStorageSync('purchasePriceList')
 			this.purchasePriceList = uni.getStorageSync('purchasePriceList')
-			if (uni.getStorageSync('checkcustomer')) {
+			// if (uni.getStorageSync('checkcustomer')) {
 			
 			
-				let _customerInfo = uni.getStorageSync('checkcustomer')
-				if (_customerInfo.shipperName) {
-					this.gridList.identityId = _customerInfo.id
-					//点击登记客户
-					this.gridList.customerName = _customerInfo.shipperName
-					this.gridList.customerPhone = _customerInfo.shipperPhone
-					this.gridList.carNumber=_customerInfo.carNo
-				} else {
-					//点击搜索客户
-					this.gridList.customerName = _customerInfo.customerName
-					this.gridList.customerPhone = _customerInfo.customerPhone
-				}
+			// 	let _customerInfo = uni.getStorageSync('checkcustomer')
+			// 	if (_customerInfo.shipperName) {
+			// 		this.gridList.identityId = _customerInfo.id
+			// 		//点击登记客户
+			// 		this.gridList.customerName = _customerInfo.shipperName
+			// 		this.gridList.customerPhone = _customerInfo.shipperPhone
+			// 		this.gridList.carNumber=_customerInfo.carNo
+			// 	} else {
+			// 		//点击搜索客户
+			// 		this.gridList.customerName = _customerInfo.customerName
+			// 		this.gridList.customerPhone = _customerInfo.customerPhone
+			// 	}
 			
 			
-				this.gridList.customerNumberCard = _customerInfo.customerNumberCard
-			}
+			// 	this.gridList.customerNumberCard = _customerInfo.customerNumberCard
+			// }
 			this.gridList.grade = this.gradeList[0].value
 			this.gridList.grade = this.gradeList[0].value
 			this.gridList.gradeKey = this.gradeList[0].key
 			this.gridList.gradeKey = this.gradeList[0].key
 			this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
 			this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
@@ -363,6 +365,25 @@
 				}
 				}
 			})
 			})
 		},
 		},
+		onShow(){
+			if (uni.getStorageSync('checkcustomer')) {
+			
+				let _customerInfo = uni.getStorageSync('checkcustomer')
+				if (_customerInfo.shipperName) {
+					this.gridList.identityId = _customerInfo.id
+					//点击登记客户
+					this.gridList.customerName = _customerInfo.shipperName
+					this.gridList.customerPhone = _customerInfo.shipperPhone
+					this.gridList.carNumber=_customerInfo.carNo
+				} else {
+					//点击搜索客户
+					this.gridList.customerName = _customerInfo.customerName
+					this.gridList.customerPhone = _customerInfo.customerPhone
+				}
+			
+				this.gridList.customerNumberCard = _customerInfo.customerNumberCard
+			}
+		},
 		methods: {
 		methods: {
 			change(e){
 			change(e){
 				if(e){
 				if(e){