Ver código fonte

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-app

# Conflicts:
#	config/index.js
ccjgmwz 3 anos atrás
pai
commit
bd90749aa8

+ 1 - 2
config/index.js

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

+ 149 - 124
pageA/product/Identity_switching.vue

@@ -1,35 +1,46 @@
 <template>
-	
+
 	<view class="center">
 		<view v-for="(item , index) in lists" :Key="index">
-			<view class="forList">
+			<view class="forList" @click="definition(item)">
 				<view class="flex">
 					<view class="company" v-if="item.customerType == '企业'">{{item.customerType}}</view>
 					<view class="company1" v-if="item.customerType == '个人'">{{item.customerType}}</view>
 					<view class="guess-item" @click="navToDetailPage(item)">
-				</view>
-				
+					</view>
+
 					<view class="infos">
-	
-						<view class="info1">{{item.customerName}}
-							<view class='but but1' v-if="item.authenticationStatus == '已认证'">{{item.authenticationStatus}}</view>
-							<view class='but but2' v-if="item.authenticationStatus == '审核中'">{{item.authenticationStatus}}</view>
-							<view class='but but3' v-if="item.authenticationStatus == '未通过'">{{item.authenticationStatus}}</view>
-							<view class='but but4' v-if="item.authenticationStatus == '已覆盖'">{{item.authenticationStatus}}</view>
+
+						<view class="info1">
+							<view v-if="item.customerType == '企业'">{{item.compName}}</view>
+							<view v-if="item.customerType == '个人'">{{item.customerName}}</view>
+							<view class='but but1' v-if="item.authenticationStatus == '已认证'">
+								{{item.authenticationStatus}}
+							</view>
+							<view class='but but2' v-if="item.authenticationStatus == '审核中'">
+								{{item.authenticationStatus}}
+							</view>
+							<view class='but but3' v-if="item.authenticationStatus == '未通过'">
+								{{item.authenticationStatus}}
+							</view>
+							<view class='but but4' v-if="item.authenticationStatus == '已覆盖'">
+								{{item.authenticationStatus}}
+							</view>
 						</view>
-						<view class="info2">{{item.customerPhone}}</view>	
+						<view class="info2">{{item.customerPhone}}</view>
 					</view>
-	
+
 				</view>
-					<hr style="margin: 10px 0px;">
+				<hr style="margin: 10px 0px;">
 				<label>
-					<checkbox style='transform: scale(0.8);' :value='item.id' :checked="item.checked" @click.stop="checkBox($event,item)" ></checkbox>
+					<checkbox style='transform: scale(0.8);' :value='item.id' :checked="item.checked"
+						@click.stop="checkBox($event,item)"></checkbox>
 					<text>设置默认</text>
 				</label>
 			</view>
 		</view>
 	</view>
-	
+
 	</view>
 	</view>
 </template>
@@ -42,7 +53,7 @@
 		name: "buy",
 		data() {
 			return {
-				lists:[],
+				lists: [],
 				PageCur: "buy",
 				buyInfo: [],
 				pages: 1, //页数
@@ -53,28 +64,28 @@
 				scrollTop: 0,
 				TabCur: 0,
 				current: 1,
-				checked:false,
-				goodsName:'',
-				receivePrivate:'',
-				receiveCity:'',
-				receiveArea:'',
-				minimumVolume:'',
-				basis:'',
-				buyer:'',
-				unitPrice:'',
-				receiveWarehouse:'',
-				procurementPlanType:'',
-				procurementPlan:'',
+				checked: false,
+				goodsName: '',
+				receivePrivate: '',
+				receiveCity: '',
+				receiveArea: '',
+				minimumVolume: '',
+				basis: '',
+				buyer: '',
+				unitPrice: '',
+				receiveWarehouse: '',
+				procurementPlanType: '',
+				procurementPlan: '',
 				identityAuthenticationInfo: {
 					pageSize: 10,
 					currentPage: 1,
 					commonId: "",
-					
-					
+
+
 				},
 			};
 		},
-		onShow(){
+		onShow() {
 			this.getList()
 		},
 		onLoad(options) {
@@ -88,40 +99,47 @@
 			this.unitPrice = options.unitPrice
 			this.receiveWarehouse = options.receiveWarehouse
 			this.procurementPlanType = options.procurementPlanType
-			this.procurementPlan=options.procurementPlanNo
+			this.procurementPlan = options.procurementPlanNo
 		},
 		computed: {
 			...mapState(['hasLogin', 'userInfo'])
 		},
 		methods: {
+			definition(item){
+				if (item.customerType == "企业") {
+					this.$store.commit('configfreightChoice', item.compName)
+				} else if (item.customerType == "个人") {
+					this.$store.commit('configfreightChoice', item.customerName)
+				}
+				uni.navigateBack(1)
+			},
 			getList() {
 				this.identityAuthenticationInfo.commonId = this.userInfo.id
 				this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfo', {
 						pageSize: 10,
 						currentPage: 1,
 						commonId: this.userInfo.id,
-						flag:1
+						flag: 1
 					}, 'application/json;charset=UTF-8').then(res => {
-						if(res.data.code==200){
-							for(var i=0;i<res.data.data.records.length;i++){
-								if(res.data.data.records[i].defaultFlag!=1){
-									res.data.data.records[i].checked=false
-								}else{
-									res.data.data.records[i].checked=true
+						if (res.data.code == 200) {
+							for (var i = 0; i < res.data.data.records.length; i++) {
+								if (res.data.data.records[i].defaultFlag != 1) {
+									res.data.data.records[i].checked = false
+								} else {
+									res.data.data.records[i].checked = true
 								}
 							}
 							this.lists = res.data.data.records
 						}
 					})
 					.catch(res => {
-						if(res.errmsg){
+						if (res.errmsg) {
 							uni.showToast({
 								title: res.errmsg,
 								icon: 'none',
 								duration: 2000
 							})
-						}
-						else{
+						} else {
 							uni.showToast({
 								title: "系统异常,请联系管理员",
 								icon: 'none',
@@ -130,35 +148,34 @@
 						}
 					});
 			},
-			checkBox(e,item){
-				for(var i=0;i<this.lists.length;i++){
-					this.lists[i].checked=true
+			checkBox(e, item) {
+				for (var i = 0; i < this.lists.length; i++) {
+					this.lists[i].checked = true
 				}
-				item.checked=true
+				item.checked = true
 				this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', {
-						id:item.id,
-						defaultFlag:1,
+						id: item.id,
+						defaultFlag: 1,
 						commonId: this.userInfo.id
 					}).then(res => {
-						if(res.data.code==200){
+						if (res.data.code == 200) {
 							// this.lists = res.data.data.records
-							
+
 							uni.navigateBack({
-							 
-							  delta: 1
-							 
-})
+
+								delta: 1
+
+							})
 						}
 					})
 					.catch(res => {
-						if(res.errmsg){
+						if (res.errmsg) {
 							uni.showToast({
 								title: res.errmsg,
 								icon: 'none',
 								duration: 2000
 							})
-						}
-						else{
+						} else {
 							uni.showToast({
 								title: "系统异常,请联系管理员",
 								icon: 'none',
@@ -180,17 +197,17 @@
 			// },
 			navToDetailPage(item) {
 				// if (index == 1) {
-					uni.navigateTo({
-						url: `/pageA/product/business_buy?id=${item.id}&customerName=${item.customerName}&goodsName=${this.goodsName}
+				uni.navigateTo({
+					url: `/pageA/product/business_buy?id=${item.id}&customerName=${item.customerName}&goodsName=${this.goodsName}
 						&receivePrivate=${this.receivePrivate}&receiveCity=${this.receiveCity}&receiveArea=${this.receiveArea}&minimumVolume=${this.minimumVolume}&buyer=${this.buyer}&basisPrice=${this.basis}&unitPrice=${this.unitPrice}
 						&receiveWarehouse=${this.receiveWarehouse}&procurementPlanType=${this.procurementPlanType}&procurementPlanNo=${this.procurementPlan}`
-					})
-					},
-				// } else {
-				// 	uni.navigateTo({
-				// 		url: `/pageD/identity/driverIdentityLook`
-				// 	})
-				
+				})
+			},
+			// } else {
+			// 	uni.navigateTo({
+			// 		url: `/pageD/identity/driverIdentityLook`
+			// 	})
+
 
 			// }
 		}
@@ -220,68 +237,76 @@
 		line-height: 35px;
 		color: #22C572;
 		font-size: 12px;
-		
+
 	}
-	.company1{
-			width: 35px;
-			height: 35px;
-			background-color: #FEECE6;
-			font-size: 16px;
-			margin-top: 10px;
-			border-radius: 5px;
-			text-align: center;
-			line-height: 35px;
-			color:#FE6430;
-			font-size: 12px;
-		}
-	
-		.infos {
-			/* margin: 10px 20px; */
-			width: 100%;
-			display: inline-table;
-		}
-	
-		.info {
-			line-height: 20px;
-		}
-	
-		.but {
-			margin-right: 30px;
-			float: right;
-			font-size: 14px;
-			
-			background-color: #FFFFFF;
-		}
-		.but1{
-			color: #22C572 ;
-		}
-		.but2{
-			color:#FE6430;
-		}
-		.but3{
-			color:#FB1E1E;
-		}
-		.but4{
-			color:#AFB3BF;
-		}
-		.forList{
-			background-color: #FFFFFF;
-			padding: 10px 10px;
-			border-radius: 10px;
-			margin-top: 10px;
-		}
+
+	.company1 {
+		width: 35px;
+		height: 35px;
+		background-color: #FEECE6;
+		font-size: 16px;
+		margin-top: 10px;
+		border-radius: 5px;
+		text-align: center;
+		line-height: 35px;
+		color: #FE6430;
+		font-size: 12px;
+	}
+
+	.infos {
+		/* margin: 10px 20px; */
+		width: 100%;
+		display: inline-table;
+	}
+
+	.info {
+		line-height: 20px;
+	}
+
+	.but {
+		margin-right: 30px;
+		float: right;
+		font-size: 14px;
+
+		background-color: #FFFFFF;
+	}
+
+	.but1 {
+		color: #22C572;
+	}
+
+	.but2 {
+		color: #FE6430;
+	}
+
+	.but3 {
+		color: #FB1E1E;
+	}
+
+	.but4 {
+		color: #AFB3BF;
+	}
+
+	.forList {
+		background-color: #FFFFFF;
+		padding: 10px 10px;
+		border-radius: 10px;
+		margin-top: 10px;
+	}
+
 	/* 	.guess-item{
 			font-size: 18px;
 			margin-left: 20px;
 			font-weight: 700;
 		} */
-		.info1{
-			font-size: 18px;
-			margin-left: 20px;
-			font-weight: 700;
-		}
-		.info2{
-			margin-left: 20px;
-			color: #AFB3BF;
-		}
+	.info1 {
+		font-size: 18px;
+		margin-left: 20px;
+		font-weight: 700;
+	}
+
+	.info2 {
+		margin-left: 20px;
+		color: #AFB3BF;
+	}
 </style>

+ 30 - 19
pageA/product/business_buy.vue

@@ -216,7 +216,8 @@
 				unloadingFee: 0,
 				packingMoney: 0,
 				packing: '散装',
-				packingFee: 0
+				packingFee: 0,
+				// choice : false,
 			};
 		},
 		onLoad(options) {
@@ -240,25 +241,34 @@
 		},
 		computed: {
 			...mapState(['hasLogin', 'userInfo']),
+			
 		},
 		onShow() {
-			this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
-				commonId: this.userInfo.id
-			}).then(res => {
-				if (res.data.code == 200) {
-					this.goods = res.data.data
-					if (this.goods.customerTypeFlag == 1) {
-						this.purchaseOrder.invoiceFee = -20
-						this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) - Number(this
-							.purchaseOrder.invoiceFee)
-					} else {
-						this.purchaseOrder.invoiceFee = 0
-						this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) - Number(this
-							.purchaseOrder.invoiceFee)
-					}
+			if( this.$store.state.choice != "" ){
+				if(this.goods.customerTypeFlag==1){
+					this.goods.customerName = this.$store.state.choice
+				}else if(this.goods.customerTypeFlag==2){
+					this.goods.compName = this.$store.state.choice
 				}
-				uni.hideLoading()
-			})
+			}else{
+				this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
+					commonId: this.userInfo.id
+				}).then(res => {
+					if (res.data.code == 200) {
+						this.goods = res.data.data
+						if (this.goods.customerTypeFlag == 1) {
+							this.purchaseOrder.invoiceFee = -20
+							this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) - Number(this
+								.purchaseOrder.invoiceFee)
+						} else {
+							this.purchaseOrder.invoiceFee = 0
+							this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) - Number(this
+								.purchaseOrder.invoiceFee)
+						}
+					}
+					uni.hideLoading()
+				})
+			}	
 		},
 		methods: {
 			liang() {
@@ -343,7 +353,9 @@
 												icon: 'none',
 												duration: 2000,
 												success() {
-													uni.navigateBack(1)
+													setTimeout(()=>{
+														uni.navigateBack(1)
+													},2000)
 												}
 											})
 										} else {
@@ -388,7 +400,6 @@
 				})
 			},
 			someprice(e) {
-
 				if (this.purchaseOrder.pointPrice && this.purchaseOrder.invoiceFee && this.packingFee) {
 					this.purchaseOrder.settlementPrice = Number(this.purchaseOrder.basis) + Number(this.purchaseOrder
 						.pointPrice) + Number(this.purchaseOrder.invoiceFee) + Number(-this.packingFee)

+ 12 - 1
pageA/product/business_sale.vue

@@ -235,6 +235,13 @@
 				...mapState(['hasLogin','userInfo']),
 			},
 			onShow() {
+				if( this.$store.state.choice != "" ){
+					if(this.goods.customerTypeFlag==1){
+						this.goods.customerName = this.$store.state.choice
+					}else if(this.goods.customerTypeFlag==2){
+						this.goods.compName = this.$store.state.choice
+					}
+				}else{
 				this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo',{commonId:this.userInfo.id}).then(res => {
 					if(res.data.code==200){
 						this.goods=res.data.data
@@ -248,6 +255,7 @@
 					}
 					uni.hideLoading()
 				})
+				}
 			},
 			methods: {
 				liang(){
@@ -328,7 +336,10 @@
 													icon: 'none',
 													duration: 2000,
 													success() {
-														uni.navigateBack(1)
+														setTimeout(()=>{
+														uni.navigateBack(1)	
+														},2000)
+														
 													}
 												})
 											}

+ 20 - 4
pageD/myRelease/sellGrain.vue

@@ -268,6 +268,13 @@
 			}
 		},
 		onShow() {
+			if( this.$store.state.choice != "" ){
+				if(this.goods.customerTypeFlag==1){
+					this.goods.customerName = this.$store.state.choice
+				}else if(this.goods.customerTypeFlag==2){
+					this.goods.compName = this.$store.state.choice
+				}
+			}else{
 			var that = this
 			this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {
 				commonId: this.userInfo.id
@@ -282,6 +289,7 @@
 				}
 				uni.hideLoading()
 			})
+			}
 		},
 		methods: {
 			yearchange() {
@@ -621,11 +629,19 @@
 							that.$api.doRequest('post', '/salePlanInfo/api/insertSalePlanInfo', that
 									.insertSalePlanInfo).then(res => {
 									if (res.data.code == 200) {
-										that.$api.msg('发布成功')
-										that.deptList = {}
-										uni.navigateTo({
-											url: `/pages/release/release`
+										uni.showToast({
+											title:'发布成功',
+											icon: 'none',
+											duration: 2000,
+											success() {
+												setTimeout(()=>{
+													uni.navigateTo({
+														url: `/pages/release/release`
+													})
+												},2000)
+											}
 										})
+										that.deptList = {}
 									} else {
 										uni.showToast({
 											title: res.data.message,

+ 99 - 86
pageD/warehousings/ex_warehouse.vue

@@ -219,7 +219,7 @@
 					pcFlag: 0,
 					contractNo: {},
 					carNo: {},
-					warehouseName:{},
+					warehouseName: {},
 				},
 				WarehouseInOutInfo1: {
 					contractNo: {},
@@ -235,7 +235,7 @@
 				maxSize: 5 * 1024 * 1024, //限制文件大小 5M
 				btnLoading: false, //防止重复点击
 				imgUrls: [],
-				binNumber:[],
+				binNumber: [],
 				warehouse: [],
 				warehouseIndex: -1,
 				warehouse1: [],
@@ -249,7 +249,7 @@
 				},
 				show: false,
 				license1: "",
-				ids:"",
+				ids: "",
 
 			}
 		},
@@ -267,23 +267,6 @@
 				}
 				return year + '-' + month + "-" + date1
 			},
-			// time:{
-			// 	var date = new Date()
-			// 	var year = date.getFullYear()
-			// 	var month = date.getMonth()
-			// 	var date1 = date.getDate()
-			// 	set() {
-			// 			if (month + 1 < 10) {
-			// 				month = "0" + (month + 1)
-			// 			}
-			// 			if (date1 + 1 < 10) {
-			// 				date1 = "0" + date1
-			// 			}
-			// 		},
-			// 		get() {
-			// 			return year + '-' + month + "-" + date1
-			// 		},
-			// },
 			startDate() {
 				return new Date(new Date(new Date().toLocaleDateString()).getTime() - (1 * 60 * 60 * 1000))
 			},
@@ -303,9 +286,12 @@
 			this.WarehouseInOutInfo.warehouseName = option.warehouseName
 			this.getList(this.WarehouseInOutInfo.id)
 		},
-		onShow() {	
-			this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {contractNo:this.WarehouseInOutInfo.contractNo,warehouseType:1,}).then(res => {
-				 if(res.data.code==200){
+		onShow() {
+			this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {
+				contractNo: this.WarehouseInOutInfo.contractNo,
+				warehouseType: 1,
+			}).then(res => {
+				if (res.data.code == 200) {
 					this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {
 						compId: res.data.data,
 						warehouseType: 1,
@@ -313,66 +299,88 @@
 						if (res.data.code == 200) {
 							var arr = []
 							for (var i = 0; i < res.data.data.length; i++) {
-								if (res.data.data[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
+								if (res.data.data[i].warehouseName == this.WarehouseInOutInfo
+									.warehouseName) {
 									this.warehouseIndex = i
 									this.ids = res.data.data[i].id
 								}
 								arr.push(res.data.data[i].warehouseName)
 							}
 							this.warehouselist = res.data.data
+
 							this.warehouse = arr
+							for (var i = 0; i < this.warehouselist.length; i++) {
+								if (this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
+									var id = this.warehouselist[i].id
+									this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
+										id: id,
+									}).then(res => {
+										var arr = []
+										for (var i = 0; i < res.data.data.warehousePositionInfoList
+											.length; i++) {
+											if (res.data.data.warehousePositionInfoList[i]
+												.binNumber == this.WarehouseInOutInfo.binNumber) {
+												this.warehouseIndex1 = i
+											}
+											arr.push(res.data.data.warehousePositionInfoList[i]
+												.binNumber)
+										}
+										this.warehouse1 = arr
+										this.warehouselist11 = res.data.data
+									})
+								}
+							}
 						}
 					})
-				 }
-			})	
+				}
+			})
 		},
-		
+
 		methods: {
 			getList(id1) {
 				var that = this
 				this.$api.doRequest('get', '/warehouseInOutInfo/getInfo', {
 						id: id1
 					}).then(res => {
-						if(res.data.code == 200){
+						if (res.data.code == 200) {
 							this.WarehouseInOutInfo = res.data.data
-							if (this.WarehouseInOutInfo.warehouseInOutDetail != null ) {
-									this.list = this.WarehouseInOutInfo.warehouseInOutDetail
-								}
-								if(this.WarehouseInOutInfo.inOutTypeKey != null){
-										this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
-								}
-							    if(this.WarehouseInOutInfo.warehouseNameKey != null){
-									this.warehouseIndex = this.WarehouseInOutInfo.warehouseNameKey
-								}
-								this.warehouseIndex1 = this.WarehouseInOutInfo.binNumberKey
-								
-								if(this.WarehouseInOutInfo.gradeKey != null){
-									this.pinIndex = this.WarehouseInOutInfo.gradeKey
-								}
-								var positionid
-								for (var i = 0; i < this.warehouselist.length; i++) {
-									if (this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
-										this.warehouseIndex = i
-										positionid = this.warehouselist[i].id
-									}
+							if (this.WarehouseInOutInfo.warehouseInOutDetail != null) {
+								this.list = this.WarehouseInOutInfo.warehouseInOutDetail
+							}
+							if (this.WarehouseInOutInfo.inOutTypeKey != null) {
+								this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
+							}
+							if (this.WarehouseInOutInfo.warehouseNameKey != null) {
+								this.warehouseIndex = this.WarehouseInOutInfo.warehouseNameKey
+							}
+							this.warehouseIndex1 = this.WarehouseInOutInfo.binNumberKey
+
+							if (this.WarehouseInOutInfo.gradeKey != null) {
+								this.pinIndex = this.WarehouseInOutInfo.gradeKey
+							}
+							var positionid
+							for (var i = 0; i < this.warehouselist.length; i++) {
+								if (this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
+									this.warehouseIndex = i
+									positionid = this.warehouselist[i].id
 								}
+							}
 							this.warehouseChange3(positionid)
-								for (var i = 0; i < this.warehouse1.length; i++) {
-									if (this.warehouse1[i] == this.WarehouseInOutInfo.binNumber) {
-										this.warehouseIndex1 = i
-									}
+							for (var i = 0; i < this.warehouse1.length; i++) {
+								if (this.warehouse1[i] == this.WarehouseInOutInfo.binNumber) {
+									this.warehouseIndex1 = i
 								}
+							}
 						}
 					})
 					.catch(res => {
-						if(res.errmsg){
+						if (res.errmsg) {
 							uni.showToast({
 								title: res.errmsg,
 								icon: 'none',
 								duration: 2000
 							})
-						}
-						else{
+						} else {
 							uni.showToast({
 								title: "系统异常,请联系管理员",
 								icon: 'none',
@@ -381,27 +389,27 @@
 						}
 					});
 			},
-	 async warehouseChange3(id){
-			var that = this
-			this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
-				id: id,
-			}).then(res => {
-				if(res.data.code == 200 ){
-					that.binNumber=res.data.data.warehousePositionInfoList
-					var arr = []
-					for (var i = 0; i < res.data.data.warehousePositionInfoList.length; i++) {
-						arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
-					}
-					that.warehouse1 = arr
-					for(var i = 0 ; i < that.warehouse1.length ; i++){
-						if(that.warehouse1[i] == that.WarehouseInOutInfo.binNumber){
-							that.warehouseIndex1 = i
+			async warehouseChange3(id) {
+				var that = this
+				this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
+					id: id,
+				}).then(res => {
+					if (res.data.code == 200) {
+						that.binNumber = res.data.data.warehousePositionInfoList
+						var arr = []
+						for (var i = 0; i < res.data.data.warehousePositionInfoList.length; i++) {
+							arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
+						}
+						that.warehouse1 = arr
+						for (var i = 0; i < that.warehouse1.length; i++) {
+							if (that.warehouse1[i] == that.WarehouseInOutInfo.binNumber) {
+								that.warehouseIndex1 = i
+							}
 						}
 					}
-				}			
-			})
-			return 	that.warehouse1
-		},
+				})
+				return that.warehouse1
+			},
 			warehouseChange(e) {
 				var id = ''
 				this.warehouseIndex = e.detail.value
@@ -414,7 +422,7 @@
 				this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
 					id: id,
 				}).then(res => {
-					this.binNumber=res.data.data
+					this.binNumber = res.data.data
 					var arr = []
 					for (var i = 0; i < res.data.data.warehousePositionInfoList.length; i++) {
 						// console.log(res.data.data.warehousePositionInfoList[i])
@@ -429,8 +437,8 @@
 				this.WarehouseInOutInfo.binNumberKey = this.warehouseIndex1
 				this.WarehouseInOutInfo.binNumber = this.warehouse1[this.warehouseIndex1]
 				for (var i = 0; i < this.binNumber.length; i++) {
-					if(this.binNumber[i].binNumber==this.warehouse1[this.warehouseIndex1]){
-						this.WarehouseInOutInfo.baseId=this.binNumber[i].baseId
+					if (this.binNumber[i].binNumber == this.warehouse1[this.warehouseIndex1]) {
+						this.WarehouseInOutInfo.baseId = this.binNumber[i].baseId
 					}
 				}
 			},
@@ -503,12 +511,13 @@
 						return
 					}
 				}
-				if(this.list.bulkDensity&&this.list.bulkDensity<500||this.list.bulkDensity&&this.list.bulkDensity>1000){
+				if (this.list.bulkDensity && this.list.bulkDensity < 500 || this.list.bulkDensity && this.list
+					.bulkDensity > 1000) {
 					this.$api.msg('容重输入错误')
 					return
 				}
-				if(this.list.bulkDensity&&this.list.bulkDensity.indexOf('.')!=-1){
-					if(this.list.bulkDensity.split('.')[1].length>2){
+				if (this.list.bulkDensity && this.list.bulkDensity.indexOf('.') != -1) {
+					if (this.list.bulkDensity.split('.')[1].length > 2) {
 						this.$api.msg('容重输入错误')
 						return
 					}
@@ -564,6 +573,9 @@
 				if (this.imgUrls.length > 0) {
 					this.WarehouseInOutInfo.addressUrl = this.imgUrls[0]
 				}
+				console.log(this.WarehouseInOutInfo)
+				return
+				
 				this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.WarehouseInOutInfo).then(res => {
 					if (res.data.code == 200) {
 						uni.showToast({
@@ -659,12 +671,13 @@
 						return
 					}
 				}
-				if(this.list.bulkDensity&&this.list.bulkDensity<500||this.list.bulkDensity&&this.list.bulkDensity>1000){
+				if (this.list.bulkDensity && this.list.bulkDensity < 500 || this.list.bulkDensity && this.list
+					.bulkDensity > 1000) {
 					this.$api.msg('容重输入错误')
 					return
 				}
-				if(this.list.bulkDensity&&this.list.bulkDensity.indexOf('.')!=-1){
-					if(this.list.bulkDensity.split('.')[1].length>2){
+				if (this.list.bulkDensity && this.list.bulkDensity.indexOf('.') != -1) {
+					if (this.list.bulkDensity.split('.')[1].length > 2) {
 						this.$api.msg('容重输入错误')
 						return
 					}
@@ -718,8 +731,8 @@
 				this.WarehouseInOutInfo.warehouseInOutDetail = this.list
 				this.WarehouseInOutInfo.statusFlag = 3
 				this.WarehouseInOutInfo.pcFlag = 0
-				for(let i = 0 ;i < this.warehouselist.length ; i++){
-					if(this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName){
+				for (let i = 0; i < this.warehouselist.length; i++) {
+					if (this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
 						this.WarehouseInOutInfo.baseId = this.warehouselist[i].id
 					}
 				}
@@ -727,7 +740,7 @@
 				uni.showLoading({
 					title: "正在提交"
 				})
-
+			
 				this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.WarehouseInOutInfo).then(res => {
 					if (res.data.code == 200) {
 						uni.showToast({

+ 1 - 1
pageD/warehousings/warehousings.vue

@@ -297,7 +297,7 @@ import upload from '@/components/upload.vue';
 										})
 								 	}
 								 }
-						 		 this.warehouse=arr
+						 		 // this.warehouse=arr
 						 	 }
 						 })
 					 }

+ 6 - 1
store/index.js

@@ -86,7 +86,8 @@ const store = new Vuex.Store({
 		],
 		clientId: lifeData.clientId?lifeData.clientId: "",
 		// 确定收货
-		isConfigfreightTransport:false
+		isConfigfreightTransport:false,
+		choice:""
 	},
 	mutations: {
 		$uStore(state, payload) {
@@ -121,8 +122,12 @@ const store = new Vuex.Store({
 		},
 		configfreightTransport(state,flag){
 			state.isConfigfreightTransport = flag
+		},
+		configfreightChoice(state,val){
+			state.choice = val
 		}
 		
+		
 	},
 	actions: {