ccjgmwz 3 anni fa
parent
commit
0255082597

+ 2 - 2
config/index.js

@@ -1,8 +1,8 @@
 const dev = {
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
 	baseUrl: 'https://www.zthymaoyi.com',
-	// baseUrlNew: 'http://192.168.1.122:8090/',
+	baseUrlNew: 'http://192.168.1.122:8090/',
 	// baseUrlNew: 'http://192.168.1.103:9100/',
 	// baseUrlNew: 'http://192.168.1.103:9100/',
-	baseUrlNew: 'https://apitest.eliangeyun.com/',
+	// baseUrlNew: 'https://apitest.eliangeyun.com/',
 	// baseUrlNew: 'http://api1.eliangeyun.com/',
 	// baseUrlNew: 'http://api1.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 	debug: false

+ 1 - 1
pages/bill/index.vue

@@ -39,7 +39,7 @@
 				<view>{{item.netWeight}}</view>
 				<view>{{item.netWeight}}</view>
 			</view>
 			</view>
 			<view class='flex justify-between align-item-center'>
 			<view class='flex justify-between align-item-center'>
-				<view style="color:#878C9C;padding:5px;">单价</view><view>{{item.tidalGrainPrice}}</view>
+				<view style="color:#878C9C;padding:5px;">单价</view><view>{{(item.tidalGrainPrice-item.unitDeduction).toFixed(2)}}</view>
 			</view>
 			</view>
 			<view class='flex justify-between align-item-center'>
 			<view class='flex justify-between align-item-center'>
 				<view style="color:#878C9C;padding:5px;">应付</view>
 				<view style="color:#878C9C;padding:5px;">应付</view>

+ 22 - 4
pages/erpbusiness/acquisitionInspection/acquisitionInspection.vue

@@ -81,9 +81,16 @@
 				dataList: [],
 				dataList: [],
 				pageSize:10,
 				pageSize:10,
 				currentPage:1,
 				currentPage:1,
+				cangid:''
 			}
 			}
 		},
 		},
 		onShow() {
 		onShow() {
+			if(this.cangid){
+				uni.setStorageSync("cangid",this.cangid)
+			}
+			else{
+				this.cangid = uni.getStorageSync("cangid")
+			}
 			this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
 			this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
 					if (res.data.data == "INVALID") {
 					if (res.data.data == "INVALID") {
 						uni.showModal({
 						uni.showModal({
@@ -133,22 +140,31 @@
 		},
 		},
 		methods: {
 		methods: {
 			loadData() {
 			loadData() {
+				var that = this
 				this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelf', {
 				this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelf', {
 					compId: '',
 					compId: '',
 					personCharge:this.userInfo.phone
 					personCharge:this.userInfo.phone
 				}).then(res => {
 				}).then(res => {
 					console.log("warehouseBaseInfo", res)
 					console.log("warehouseBaseInfo", res)
 					let _resData = res.data.data
 					let _resData = res.data.data
-					this.warehouseList = []
+					that.warehouseList = []
 					for (let i = 0; i < _resData.length; i++) {
 					for (let i = 0; i < _resData.length; i++) {
 						let _obj = {
 						let _obj = {
 							"label": _resData[i].warehouseName,
 							"label": _resData[i].warehouseName,
 							"value": _resData[i].id,
 							"value": _resData[i].id,
 						}
 						}
-						this.warehouseList.push(_obj)
+						that.warehouseList.push(_obj)
+						if (that.cangid&&that.cangid == _resData[i].id) {
+						  that.warehouseName = _resData[i].warehouseName
+						  that.warehouseId =  _resData[i].id
+						} 
+					}
+					if(that.warehouseList.length > 0 && !that.cangid){
+						that.warehouseName = that.warehouseList[0].label
+						that.warehouseId =  that.warehouseList[0].value
+						that.cangid =  that.warehouseList[0].value
 					}
 					}
-					this.warehouseName = this.warehouseList[0].label
-					this.warehouseId = this.warehouseList[0].value
+					
 					this.getList(true)
 					this.getList(true)
 				})
 				})
 			},
 			},
@@ -183,6 +199,8 @@
 				console.log(e)
 				console.log(e)
 				this.warehouseName = e[0].label
 				this.warehouseName = e[0].label
 				this.dataList.warehouseName = e[0].label;
 				this.dataList.warehouseName = e[0].label;
+				this.cangid=e[0].value
+				uni.setStorageSync("cangid",this.cangid)
 				this.getList(true)
 				this.getList(true)
 			},
 			},
 			//毛重
 			//毛重