wangchao hace 3 años
padre
commit
a2b8fbe824

+ 3 - 1
common/helper.js

@@ -1,5 +1,6 @@
 const selectContractNo = {}
 const selectContractNo = {}
 const detailData = {}
 const detailData = {}
+const erpWarehouse={}
 const now = Date.now || function () {  
 const now = Date.now || function () {  
     return new Date().getTime();  
     return new Date().getTime();  
 };  
 };  
@@ -11,5 +12,6 @@ export default {
 	detailData,
 	detailData,
 	selectContractNo,
 	selectContractNo,
     now,  
     now,  
-    isArray  
+    isArray,
+	erpWarehouse
 }
 }

+ 24 - 14
pages/erp/index.vue

@@ -9,10 +9,10 @@
 					:range="warehouseList"></u-picker>
 					:range="warehouseList"></u-picker>
 			</view>
 			</view>
 			<view class="right" @click='show2=true'>
 			<view class="right" @click='show2=true'>
-				<view>{{positionName}}</view>
+				<view>{{binNumber}}</view>
 				<u-icon name="arrow-right" color=""></u-icon>
 				<u-icon name="arrow-right" color=""></u-icon>
-				<u-select v-model="show2" :default-value='[0]' :list="positionList" @confirm="confirmPositon">
-				</u-select>
+				<u-picker @confirm="warehouseCWchange" range-key='binNumber' mode="selector" v-model="show2"
+					:range="warehouseCWList"></u-picker>
 			</view>
 			</view>
 		</view>
 		</view>
 
 
@@ -34,7 +34,7 @@
 	import {
 	import {
 		mapState
 		mapState
 	} from 'vuex';
 	} from 'vuex';
-
+import helper from '@/common/helper.js'; 
 	export default {
 	export default {
 		components: {
 		components: {
 
 
@@ -46,12 +46,10 @@
 				isShowAlert: false,
 				isShowAlert: false,
 				content: '易粮易运ERP系统包含合同管理、仓库管理、运输管理、结算管理等多个模块,可为粮企提供粮食贸易的全流程服务,平台诚邀您的加入。',
 				content: '易粮易运ERP系统包含合同管理、仓库管理、运输管理、结算管理等多个模块,可为粮企提供粮食贸易的全流程服务,平台诚邀您的加入。',
 				warehouseName: '',
 				warehouseName: '',
-				positionName: '102仓位',
+				binNumber: '',
+				compId:'',
 				warehouseList: [],
 				warehouseList: [],
-				positionList: [{
-					"label": '102仓位',
-					"value": '1'
-				}],
+				warehouseCWList:[],
 				gridCol: 4,
 				gridCol: 4,
 				gridBorder: false,
 				gridBorder: false,
 				gridList: [{
 				gridList: [{
@@ -193,6 +191,12 @@
 					})
 					})
 				} else {
 				} else {
 					if (item.url) {
 					if (item.url) {
+						helper.erpWarehouse = {
+							warehouseName:this.warehouseName,
+							binNumber:this.binNumber,
+							compId:this.compId
+							
+						}
 						uni.navigateTo({
 						uni.navigateTo({
 							url: item.url
 							url: item.url
 						})
 						})
@@ -213,21 +217,27 @@
 						} else {
 						} else {
 							this.warehouseName = res.data.data[0].warehouseName
 							this.warehouseName = res.data.data[0].warehouseName
 							this.warehouseList = res.data.data;
 							this.warehouseList = res.data.data;
-							this.makeBinNumber()
+							this.compId = res.data.data[0].compId
+							this.binNumber = res.data.data[0].positionInfos[0].binNumber
+							this.warehouseCWList = res.data.data[0].positionInfos
+							console.log('this.warehouseCWList',this.warehouseCWList)
+							// this.makeBinNumber()
 						}
 						}
 					}
 					}
 				})
 				})
 			},
 			},
-			makeBinNumber(){debugger
-
-				console.log(_arr)
+			makeBinNumber(){
 			
 			
 			},
 			},
 			warehousechange(e) {
 			warehousechange(e) {
-				debugger
 				this.warehouseName = this.warehouseList[e[0]].warehouseName
 				this.warehouseName = this.warehouseList[e[0]].warehouseName
+				this.compId = this.warehouseList[e[0]].compId
+				this.warehouseCWList = this.warehouseList[e[0]].positionInfos
 				console.log(e)
 				console.log(e)
 			},
 			},
+			warehouseCWchange(e){
+				this.binNumber = this.warehouseCWList[e[0]].binNumber
+			}
 
 
 		}
 		}
 	}
 	}

+ 10 - 5
pages/erp/warehousing/warehousing.vue

@@ -1,8 +1,8 @@
 <template>
 <template>
 	<view class="warp">
 	<view class="warp">
 		<view class="top">
 		<view class="top">
-			<view class="top-left">鲅鱼圈一号库</view>
-			<view>102仓位</view>
+			<view class="top-left">{{warehouseName}}</view>
+			<view>{{binNumber}}仓位</view>
 		</view>
 		</view>
 		<view class="content">
 		<view class="content">
 			<view class="row">
 			<view class="row">
@@ -155,6 +155,7 @@
 
 
 <script>
 <script>
 	import upload from '@/components/upload.vue';
 	import upload from '@/components/upload.vue';
+	import helper from '@/common/helper.js'; 
 	export default {
 	export default {
 		components: {
 		components: {
 			upload
 			upload
@@ -168,6 +169,8 @@
 				show4: false,
 				show4: false,
 				show5: false,
 				show5: false,
 				show6: false,
 				show6: false,
+				warehouseName:'',
+				binNumber:'',
 				contractNoList: [{
 				contractNoList: [{
 					contractNo: "123"
 					contractNo: "123"
 				}],
 				}],
@@ -222,7 +225,7 @@
 				btnLoading: false, //防止重复点击
 				btnLoading: false, //防止重复点击
 				isAdd: true,
 				isAdd: true,
 				detailData: {
 				detailData: {
-					contractNo: "123",
+					contractNo: "请选择合同编号",
 					carNo:'辽H12345',
 					carNo:'辽H12345',
 					name: "",
 					name: "",
 					goodsName: "123",
 					goodsName: "123",
@@ -231,8 +234,10 @@
 			}
 			}
 		},
 		},
 		onLoad(options) {
 		onLoad(options) {
-			this.id = options.id
-			this.cangId = options.cangId
+			this.binNumber = helper.erpWarehouse.binNumber
+			this.warehouseName = helper.erpWarehouse.warehouseName
+			this.compId = helper.erpWarehouse.compId
+			console.log(helper.erpWarehouse)
 		},
 		},
 		onShow() {
 		onShow() {
 			// this.getWeighingManagement()
 			// this.getWeighingManagement()

+ 1 - 0
pages/erpbusiness/acquisitionInspection/acquisitionInspection.vue

@@ -258,6 +258,7 @@
 			margin: 20rpx 0;
 			margin: 20rpx 0;
 			color: #878C9C;
 			color: #878C9C;
 			padding-left: 24rpx;
 			padding-left: 24rpx;
+			align-items: center;
 		}
 		}
 
 
 		.row3 {
 		.row3 {

+ 2 - 2
pages/erpbusiness/acquisitionInspection/warehouseWeighing.vue

@@ -188,7 +188,7 @@
 				})
 				})
 			},
 			},
 			tareClick(item) {
 			tareClick(item) {
-				// debugger
+				// 
 				uni.navigateTo({
 				uni.navigateTo({
 					url: './tareDetail1?id=' + item.id+'&cangId='+this.cangId
 					url: './tareDetail1?id=' + item.id+'&cangId='+this.cangId
 				})
 				})
@@ -220,7 +220,7 @@
 						} else if (res.cancel) {
 						} else if (res.cancel) {
 							console.log('用户点击取消');
 							console.log('用户点击取消');
 						}
 						}
-						// debugger
+						// 
 
 
 					}
 					}
 				})
 				})

+ 1 - 1
pages/erpbusiness/customer.vue

@@ -145,7 +145,7 @@
 				
 				
 			},
 			},
 			checkcustomer(item){
 			checkcustomer(item){
-				debugger
+				
 				var that = this
 				var that = this
 				var count=''
 				var count=''
 				
 				

+ 2 - 1
pages/erpbusiness/quality_testing.vue

@@ -229,7 +229,7 @@
 				this.currentPage=1
 				this.currentPage=1
 				this.getList()
 				this.getList()
 			},
 			},
-			warehousechange(e){debugger
+			warehousechange(e){
 				this.warehouseName=this.selector[e[0]].warehouseName
 				this.warehouseName=this.selector[e[0]].warehouseName
 				this.cangid=this.selector[e[0]].id
 				this.cangid=this.selector[e[0]].id
 				this.warehouseCount = this.selector[e[0]].count
 				this.warehouseCount = this.selector[e[0]].count
@@ -463,6 +463,7 @@
 			justify-content: space-around;
 			justify-content: space-around;
 			margin: 20rpx;
 			margin: 20rpx;
 			color: #878C9C;
 			color: #878C9C;
+			align-items: center;
 		}
 		}
 	
 	
 		.row3 {
 		.row3 {

+ 1 - 1
pages/public/login.vue

@@ -666,7 +666,7 @@
 				// wx.getSetting({
 				// wx.getSetting({
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//    success(res){
 				//    success(res){
-				// 	debugger
+				// 	
 				//    if(res.subscriptionsSetting.mainSwitch){
 				//    if(res.subscriptionsSetting.mainSwitch){
 				    
 				    
 				//    }else{
 				//    }else{

+ 1 - 1
pages/public/login_account_number.vue

@@ -671,7 +671,7 @@
 				// wx.getSetting({
 				// wx.getSetting({
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//    success(res){
 				//    success(res){
-				// 	debugger
+				// 	
 				//    if(res.subscriptionsSetting.mainSwitch){
 				//    if(res.subscriptionsSetting.mainSwitch){
 				    
 				    
 				//    }else{
 				//    }else{

+ 1 - 1
pages/public/register.vue

@@ -805,7 +805,7 @@
 				// wx.getSetting({
 				// wx.getSetting({
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//    success(res){
 				//    success(res){
-				// 	debugger
+				// 	
 				//    if(res.subscriptionsSetting.mainSwitch){
 				//    if(res.subscriptionsSetting.mainSwitch){
 				    
 				    
 				//    }else{
 				//    }else{

+ 1 - 1
pages/public/reset.vue

@@ -524,7 +524,7 @@
 				// wx.getSetting({
 				// wx.getSetting({
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//  	 withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回
 				//    success(res){
 				//    success(res){
-				// 	debugger
+				// 	
 				//    if(res.subscriptionsSetting.mainSwitch){
 				//    if(res.subscriptionsSetting.mainSwitch){
 				    
 				    
 				//    }else{
 				//    }else{