浏览代码

前端小程序sdy

zhongtianhaoyuan 3 年之前
父节点
当前提交
227c3b39db

+ 158 - 113
pageD/warehousings/ex_warehouse.vue

@@ -108,7 +108,14 @@
 				</view>
 				<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
 					:size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
-					@on-uploaded="isAdd = true" :before-upload="filterFileType"></upload>
+					@on-uploaded="isAdd = true" :before-upload="filterFileType"></upload> 
+					<!-- <view style="height: 90px; margin-left: 16px;" class="flex">
+							<image v-bind:src="license1" class="picture1" v-if="this.license1 != null || this.license1 !=''"></image>
+						<view  @click="uploadPictures">
+							<image src="../../static/img/authentication/business@3x.png" mode="" class="picture"></image>
+							<image src="../../static/img/authentication/xiangji-2@3x.png" mode="" class="xiangji"></image>
+						</view>
+					</view> -->
 			</view>
 		</view>
 		<view class="center">
@@ -213,10 +220,10 @@
 					contractNo: {},
 					carNo: {},
 				},
-				pinIndex: '不限(默认)',
+				pinIndex: 0,
 				pinTypes: '',
 				pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
-				ruIndex: '销售出库',
+				ruIndex: 0,
 				rutypes: '',
 				ruType: ['销售出库', '移库出库', '暂存出库', '贸易服务出库', '采购出库'],
 				action: this.$uploadUrl,
@@ -234,7 +241,8 @@
 					month: true,
 					day: true,
 				},
-				show: false
+				show: false,
+				license1:"",
 			}
 		},
 		computed: {
@@ -252,8 +260,6 @@
 				return year + '-' + month + "-" + date1
 			},
 			startDate() {
-				//限制开始时间;
-				//也可以直接限定为当天日期 var date= new Date(); return date
 				return new Date(new Date(new Date().toLocaleDateString()).getTime() - (1 * 60 * 60 * 1000))
 			},
 			endDate() {
@@ -302,6 +308,26 @@
 			this.time = year + '-' + month + "-" + date1
 		},
 		methods: {
+			uploadPictures(){
+				var that = this
+				wx.chooseImage({
+					sourceType: ['camera', 'album'],
+					success: function(res) {
+						wx.uploadFile({
+							url: 'https://www.zthymaoyi.com/upload/admin',
+							filePath: res.tempFilePaths[0],
+							name: 'file',
+							success(res) {
+								var data = res.data
+								var strToObj = JSON.parse(data)
+								that.WarehouseInOutInfo.addressUrl = strToObj.url
+								that.license1 = strToObj.url
+								that.certificates = false
+							}
+						})
+					}
+				})
+			},
 			warehouseChange(e) {
 				var id = ''
 				this.warehouseIndex = e.detail.value
@@ -345,114 +371,115 @@
 				}
 			},
 			getImgUrl(res) {
+				console.log()
 				this.imgUrls.push(res.data);
 			},
 			onRemove(index) {
 				this.imgUrls.splice(index, 1);
 			},
 			commit1() {
-				// if (this.WarehouseInOutInfo.grossWeight > 100 || this.WarehouseInOutInfo.grossWeight < 1) {
-				// 	this.$api.msg('毛重输入错误')
-				// 	return
-				// }
-				// if (this.WarehouseInOutInfo.grossWeight.indexOf('.') != -1) {
-				// 	if (this.WarehouseInOutInfo.grossWeight.split('.')[1].length > 2) {
-				// 		this.$api.msg('毛重输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.WarehouseInOutInfo.tare > 50 || this.WarehouseInOutInfo.tare < 1) {
-				// 	this.$api.msg('皮重输入错误')
-				// 	return
-				// }
-				// if (this.WarehouseInOutInfo.tare.indexOf('.') != -1) {
-				// 	if (this.WarehouseInOutInfo.tare.split('.')[1].length > 2) {
-				// 		this.$api.msg('皮重输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.qualityInspector && this.list.qualityInspector < 2 || this.list.qualityInspector && this.list
-				// 	.qualityInspector > 10) {
-				// 	this.$api.msg('质检员姓名输入错误')
-				// 	return
-				// }
-				// if (this.list.protein && this.list.protein < 1 || this.list.protein && this.list.protein > 80) {
-				// 	this.$api.msg('蛋白占比输入错误')
-				// 	return
-				// }
-				// if (this.list.protein && this.list.protein.indexOf('.') != -1) {
-				// 	if (this.list.protein.split('.')[1].length > 2) {
-				// 		this.$api.msg('蛋白占比输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.waterContent && this.list.waterContent < 1 || this.list.waterContent && this.list
-				// 	.waterContent > 40) {
-				// 	this.$api.msg('水分输入错误')
-				// 	return
-				// }
-				// if (this.list.waterContent && this.list.waterContent.indexOf('.') != -1) {
-				// 	if (this.list.waterContent.split('.')[1].length > 2) {
-				// 		this.$api.msg('水分输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.bulkDensity && this.list.bulkDensity < 1 || this.list.bulkDensity && this.list.bulkDensity >
-				// 	40) {
-				// 	this.$api.msg('容重输入错误')
-				// 	return
-				// }
-				// if (this.list.bulkDensity && this.list.bulkDensity.indexOf('.') != -1) {
-				// 	if (this.list.bulkDensity.split('.')[1].length > 2) {
-				// 		this.$api.msg('容重输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.jiaorenli && this.list.jiaorenli < 1 || this.list.jiaorenli && this.list.jiaorenli > 40) {
-				// 	this.$api.msg('热损伤输入错误')
-				// 	return
-				// }
-				// if (this.list.jiaorenli && this.list.jiaorenli.indexOf('.') != -1) {
-				// 	if (this.list.jiaorenli.split('.')[1].length > 2) {
-				// 		this.$api.msg('热损伤输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.impurity && this.list.impurity < 1 || this.list.impurity && this.list.impurity > 40) {
-				// 	this.$api.msg('杂质输入错误')
-				// 	return
-				// }
-				// if (this.list.impurity && this.list.impurity.indexOf('.') != -1) {
-				// 	if (this.list.impurity.split('.')[1].length > 2) {
-				// 		this.$api.msg('杂质输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.mildewGrain && this.list.mildewGrain < 1 || this.list.mildewGrain && this.list.mildewGrain >
-				// 	40) {
-				// 	this.$api.msg('霉变粒输入错误')
-				// 	return
-				// }
-				// if (this.list.mildewGrain && this.list.mildewGrain.indexOf('.') != -1) {
-				// 	if (this.list.mildewGrain.split('.')[1].length > 2) {
-				// 		this.$api.msg('霉变粒输入错误')
-				// 		return
-				// 	}
-				// }
-				// if (this.list.imperfectGrain && this.list.imperfectGrain < 1 || this.list.imperfectGrain && this.list
-				// 	.imperfectGrain > 40) {
-				// 	this.$api.msg('不完整粒输入错误')
-				// 	return
-				// }
-				// if (this.list.imperfectGrain && this.list.imperfectGrain.indexOf('.') != -1) {
-				// 	if (this.list.imperfectGrain.split('.')[1].length > 2) {
-				// 		this.$api.msg('不完整粒输入错误')
-				// 		return
-				// 	}
-				// }
-				// uni.showLoading({
-				// 	title: "正在暂存"
-				// })
+				if (this.WarehouseInOutInfo.grossWeight > 100 || this.WarehouseInOutInfo.grossWeight < 1) {
+					this.$api.msg('毛重输入错误')
+					return
+				}
+				if (this.WarehouseInOutInfo.grossWeight.indexOf('.') != -1) {
+					if (this.WarehouseInOutInfo.grossWeight.split('.')[1].length > 2) {
+						this.$api.msg('毛重输入错误')
+						return
+					}
+				}
+				if (this.WarehouseInOutInfo.tare > 50 || this.WarehouseInOutInfo.tare < 1) {
+					this.$api.msg('皮重输入错误')
+					return
+				}
+				if (this.WarehouseInOutInfo.tare.indexOf('.') != -1) {
+					if (this.WarehouseInOutInfo.tare.split('.')[1].length > 2) {
+						this.$api.msg('皮重输入错误')
+						return
+					}
+				}
+				if (this.list.qualityInspector && this.list.qualityInspector < 2 || this.list.qualityInspector && this.list
+					.qualityInspector > 10) {
+					this.$api.msg('质检员姓名输入错误')
+					return
+				}
+				if (this.list.protein && this.list.protein < 1 || this.list.protein && this.list.protein > 80) {
+					this.$api.msg('蛋白占比输入错误')
+					return
+				}
+				if (this.list.protein && this.list.protein.indexOf('.') != -1) {
+					if (this.list.protein.split('.')[1].length > 2) {
+						this.$api.msg('蛋白占比输入错误')
+						return
+					}
+				}
+				if (this.list.waterContent && this.list.waterContent < 1 || this.list.waterContent && this.list
+					.waterContent > 40) {
+					this.$api.msg('水分输入错误')
+					return
+				}
+				if (this.list.waterContent && this.list.waterContent.indexOf('.') != -1) {
+					if (this.list.waterContent.split('.')[1].length > 2) {
+						this.$api.msg('水分输入错误')
+						return
+					}
+				}
+				if (this.list.bulkDensity && this.list.bulkDensity < 1 || this.list.bulkDensity && this.list.bulkDensity >
+					40) {
+					this.$api.msg('容重输入错误')
+					return
+				}
+				if (this.list.bulkDensity && this.list.bulkDensity.indexOf('.') != -1) {
+					if (this.list.bulkDensity.split('.')[1].length > 2) {
+						this.$api.msg('容重输入错误')
+						return
+					}
+				}
+				if (this.list.jiaorenli && this.list.jiaorenli < 1 || this.list.jiaorenli && this.list.jiaorenli > 40) {
+					this.$api.msg('热损伤输入错误')
+					return
+				}
+				if (this.list.jiaorenli && this.list.jiaorenli.indexOf('.') != -1) {
+					if (this.list.jiaorenli.split('.')[1].length > 2) {
+						this.$api.msg('热损伤输入错误')
+						return
+					}
+				}
+				if (this.list.impurity && this.list.impurity < 1 || this.list.impurity && this.list.impurity > 40) {
+					this.$api.msg('杂质输入错误')
+					return
+				}
+				if (this.list.impurity && this.list.impurity.indexOf('.') != -1) {
+					if (this.list.impurity.split('.')[1].length > 2) {
+						this.$api.msg('杂质输入错误')
+						return
+					}
+				}
+				if (this.list.mildewGrain && this.list.mildewGrain < 1 || this.list.mildewGrain && this.list.mildewGrain >
+					40) {
+					this.$api.msg('霉变粒输入错误')
+					return
+				}
+				if (this.list.mildewGrain && this.list.mildewGrain.indexOf('.') != -1) {
+					if (this.list.mildewGrain.split('.')[1].length > 2) {
+						this.$api.msg('霉变粒输入错误')
+						return
+					}
+				}
+				if (this.list.imperfectGrain && this.list.imperfectGrain < 1 || this.list.imperfectGrain && this.list
+					.imperfectGrain > 40) {
+					this.$api.msg('不完整粒输入错误')
+					return
+				}
+				if (this.list.imperfectGrain && this.list.imperfectGrain.indexOf('.') != -1) {
+					if (this.list.imperfectGrain.split('.')[1].length > 2) {
+						this.$api.msg('不完整粒输入错误')
+						return
+					}
+				}
+				uni.showLoading({
+					title: "正在暂存"
+				})
 				this.WarehouseInOutInfo.deductionAmount = -this.WarehouseInOutInfo.deductionAmount
 				this.WarehouseInOutInfo.warehouseInOutDetail = this.list
 				this.WarehouseInOutInfo.statusFlag = 1
@@ -460,7 +487,6 @@
 					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({
@@ -609,6 +635,8 @@
 				}
 				this.WarehouseInOutInfo.warehouseInOutDetail = this.list
 				this.WarehouseInOutInfo.statusFlag = 3
+				this.WarehouseInOutInfo.pcFlag = 0
+				this.WarehouseInOutInfo.taskType = "出库任务"
 				uni.showLoading({
 					title: "正在提交"
 				})
@@ -661,10 +689,12 @@
 				}
 			},
 			ruChange(e) {
+				this.ruIndex = e.detail.value
 				this.WarehouseInOutInfo.inOutTypeKey = e.detail.value
 				this.WarehouseInOutInfo.inOutType = this.ruType[this.ruIndex];
 			},
 			pinChange(e) {
+				this.pinIndex = e.detail.value
 				this.WarehouseInOutInfo.gradeKey = e.detail.value
 				this.WarehouseInOutInfo.grade = this.pinType[this.pinIndex];
 			},
@@ -674,7 +704,6 @@
 </script>
 <style scoped lang='scss'>
 	.upload {
-
 		/deep/.u-list-item,
 		.u-add-wrap {
 			background-color: #eceae8;
@@ -820,11 +849,27 @@
 				font-size: 46upx;
 			}
 		}
-
-
 	}
-
 	.container {
 		padding-bottom: 160upx;
 	}
+	.xiangji{
+		width: 25px;
+		height: 25px;	
+		margin: 0 auto;
+		margin-top: 35px;
+		margin-left: -60px;
+	}
+	.picture{
+		width: 90px;
+		height: 90px;
+		border-radius: 10px;
+/* 
+		position: relative; */
+	}
+	.picture1{
+		width: 90px;
+		height: 90px;
+		border-radius: 10px;
+	}
 </style>

+ 198 - 160
pageD/warehousings/ex_warehouse_detail.vue

@@ -5,218 +5,240 @@
 			<view class="c-row ">
 				<text class="tit">合同编号</text>
 				<view class="con-list">
-					<text>{{warehouseInOutInfo.contractNo}}</text>
+					<text>{{WarehouseInOutInfo.contractNo}}</text>
 				</view>
 			</view>
 			<view class="c-row ">
-				<text class="tit">货名</text>
+				<text class="tit">收货方</text>
 				<view class="con-list">
-					<text>{{warehouseInOutInfo.goodsName}}</text>
+					<text>{{WarehouseInOutInfo.consignee}}</text>
 				</view>
 			</view>
 			<view class="c-row ">
-				<text class="tit">发车净重(吨)</text>
+				<text class="tit">货名</text>
 				<view class="con-list">
-					<text>{{warehouseInOutInfo.startWeight}}</text>
+					<text>{{WarehouseInOutInfo.goodsName}}</text>
 				</view>
 			</view>
 			<view class="c-row ">
 				<text class="tit">车牌号</text>
 				<view class="con-list">
-					<text>{{warehouseInOutInfo.carNo}}</text>
+					<text>{{WarehouseInOutInfo.carNo}} ({{WarehouseInOutInfo.tranCarNo}})</text>
+				</view>
+			</view>
+			<view class="c-row ">
+				<text class="tit">箱号</text>
+				<view class="con-list">
+					<text>{{WarehouseInOutInfo.boxNo}}</text>
+				</view>
+			</view>
+			<view class="c-row ">
+				<text class="tit">封号</text>
+				<view class="con-list">
+					<text>{{WarehouseInOutInfo.titleNo}}</text>
 				</view>
 			</view>
 		</view>
 		<view class="center">
-			<view class="title_b">出库信息</view>
+			<view class="title_c ">出库信息</view>
 			<view class="c-list">
-				<view class="c-row ">
+				<view class="c-row b-b">
 					<text class="tit">毛重(吨)</text>
+					<view style="color: #ff0000; padding-left: 10rpx;">*</view>
 					<view class="con-list">
-						<text>{{warehouseInOutInfo.grossWeight}}</text>
+						{{WarehouseInOutInfo.grossWeight}}
 					</view>
 				</view>
-				<view class="c-row ">
-					<text class="tit">皮重(吨)</text>
+				<view class="c-row b-b">
+					<view class="tit">皮重(吨)</view>
+					<view style="color: #ff0000; padding-left: 10rpx;">*</view>
 					<view class="con-list">
-						<text>{{warehouseInOutInfo.tare}}</text>
+						{{WarehouseInOutInfo.tare}}
 					</view>
 				</view>
-				<view class="c-row ">
+				<view class="c-row b-b">
 					<text class="tit">净重(吨)</text>
 					<view class="con-list">
-						<text>{{warehouseInOutInfo.netWeight}}</text>
+						<text>{{WarehouseInOutInfo.netWeight}}</text>
 					</view>
 				</view>
-				<view class="c-row ">
+				<view class="c-row b-b">
 					<text class="tit">仓库</text>
+					<view style="color: #ff0000; padding-left: 10rpx;">*</view>
 					<view class="con-list">
-						<text>{{warehouseInOutInfo.warehouseName}}</text>
+						<view>
+							{{WarehouseInOutInfo.warehouseName}}
+						</view>
 					</view>
 				</view>
-				<view class="c-row ">
-					<text class="tit">仓位号</text>
+				<view class="c-row b-b">
+					<view class="title">仓位号</view>
+					<view style="color: #ff0000; padding-left: 10rpx;">*</view>
 					<view class="con-list">
-						<text>{{warehouseInOutInfo.binNumber}}</text>
+						{{WarehouseInOutInfo.binNumber}}
 					</view>
 				</view>
-				<view class="c-row ">
-					<text class="tit">入库类型</text>
-					<view class="con-list">
-						<text>{{warehouseInOutInfo.inOutType}}</text>
-					</view>
-				</view>
-				<view class="c-row ">
-					<text class="tit">扣款金额(元/吨)</text>
-					<view class="con-list">
-						<text>{{warehouseInOutInfo.deductionAmount}}</text>
-					</view>
-				</view>
-				<view class="c-row ">
-					<text class="tit">扣款项</text>
+
+				<view class="c-row b-b">
+					<text class="tit">出库类型 </text>
 					<view class="con-list">
-						<text>{{warehouseInOutInfo.deductionItems}}</text>
+						{{WarehouseInOutInfo.inOutType}}
 					</view>
 				</view>
-				<view class="c-row ">
-					<text class="tit">库日期</text>
-					<view class="con-list">
-						<text>{{warehouseInOutInfo.inOutDate}}</text>
+				<view class="c-row b-b">
+					<text class="tit">出库日期</text>
+					<view class="con-list" @click="show = true">
+						<text>{{WarehouseInOutInfo.inOutDate}}</text>
 					</view>
+
+
 				</view>
 				<view class="c-row ">
 					<text class="tit">磅单照片</text>
 				</view>
-				<view style="padding-left: 30rpx;">
-					<u-image width="30%" height="180rpx" :src="warehouseInOutInfo.addressUrl"></u-image>
-				</view>
-			</view>
-		</view>
-		<view class="center">
-			<view class="title_b">化验信息</view>
-			<view class="c-row ">
-				<text class="tit">质检员</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.qualityInspector}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">蛋白(%){{'>='}}</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.protein}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">水分(%){{'<='}}</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.waterContent}}</text>
+				<view style="width: 90px;height: 90px; margin-left: 16px;" >
+					<image src="../../static/img/authentication/business@3x.png" mode="" style="width: 90px; height: 90px;" class="picture"></image>
+					<image src="../../static/img/authentication/xiangji-2@3x.png" mode="" class="xiangji"></image>
+					<!-- <image src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/4f284ec4444f497e9aee0a2c90a1b400.png" mode=""></image> -->
 				</view>
+				<!-- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
+					:size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
+					@on-uploaded="isAdd = true" :before-upload="filterFileType"></upload> -->
 			</view>
-			<view class="c-row ">
-				<text class="tit">容重(g/L){{'<='}}</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.bulkDensity}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">热损伤(%){{'<='}}</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.jiaorenli}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">杂质(%){{'<='}}</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.impurity}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">霉变粒(%){{'<='}}</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.mildewGrain}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">不完整粒(%){{'<='}} </text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.imperfectGrain}}</text>
-				</view>
-			</view>
-			<view class="c-row ">
-				<text class="tit">品级</text>
-				<view class="con-list">
-					<text>{{warehouseInOutInfo.grade}}</text>
-				</view>
-			</view>
-		</view>
-
-	</view>
+			<view class="center">
+				<view class="title_c ">化验信息</view>
+				<view class="c-list">
+					<view class="c-row b-b">
+						<view class="title">质检员</view>
+						<view class="con-list">
+							{{WarehouseInOutInfo.warehouseInOutDetail.qualityInspector}}
+						</view>
+					</view>
+					<view class="c-row b-b">
+						<view class="title">蛋白(%)>=</view>
+						<view class="con-list">
+							{{WarehouseInOutInfo.warehouseInOutDetail.protein}}
+						</view>
+					</view>
+					<view class="c-row b-b">
+						<view class="title">水分(%)<= </view>
+								<view class="con-list">
+									{{WarehouseInOutInfo.warehouseInOutDetail.waterContent}}
+								</view>
+						</view>
+						<view class="c-row b-b">
+							<view class="title">容重(克/升)>= </view>
+							<view class="con-list">
+								{{WarehouseInOutInfo.warehouseInOutDetail.bulkDensity}}
+							</view>
+						</view>
+						<view class="c-row b-b">
+							<view class="title">热损伤(%)<= </view>
+									<view class="con-list">
+										{{WarehouseInOutInfo.warehouseInOutDetail.jiaorenli}}
+									</view>
+							</view>
+							<view class="c-row b-b">
+								<view class="title">杂质(%)<= </view>
+										<view class="con-list">
+											{{WarehouseInOutInfo.warehouseInOutDetail.impurity}}
+										</view>
+								</view>
+								<view class="c-row b-b">
+									<view class="title">霉变粒(%)<= </view>
+											<view class="con-list">
+												{{WarehouseInOutInfo.warehouseInOutDetail.mildewGrain}}
+											</view>
+									</view>
+									<view class="c-row b-b">
+										<view class="title">不完整粒(%)<= </view>
+												<view class="con-list">
+													{{WarehouseInOutInfo.warehouseInOutDetail.imperfectGrain}}
+												</view>
+										</view>
+										<view class="c-row b-b">
+											<text class="tit">品级 </text>
+											<view class="con-list">
+												{{WarehouseInOutInfo.grade}}
+											</view>
+										</view>
+									</view>
+								</view>
+							</view>
+						</view>
 </template>
 <script>
 	export default {
-
 		data() {
 			return {
-				warehouseInOutInfo: {
-					warehouseInOutDetail:{
-						qualityInspector:''
-					}
-				}
+				WarehouseInOutInfo: {},
 			}
 		},
-		onLoad(options){
-				
+		onLoad(options) {
 			this.getList(options.id)
-			console.log(options.id,"idwei1")
 		},
 		methods: {
-			typeChange(e){
+			// action() {
+
+			// },
+			// maxSize() {
+
+			// },
+			// filterFileType() {
+
+			// },
+			typeChange(e) {
 				this.typesIndex = e.detail.value
 				this.types = this.typesType[this.typesIndex];
 			},
-			getList(id1){
-				var that=this
-				this.$api.doRequest('get','/warehouseInOutInfo/getInfo',{id:id1}).then(res => {
-					console.log(res)
-					that.warehouseInOutInfo = res.data.data
-					
-				})
-				.catch(res => {
-					uni.showToast({
-						title: res.errmsg,
-						icon:'none',
-						duration: 2000
+			getList(id1) {
+				var that = this
+				this.$api.doRequest('get', '/warehouseInOutInfo/getInfo', {
+						id: id1
+					}).then(res => {
+						console.log(res)
+						this.WarehouseInOutInfo = res.data.data
+
+
 					})
-				});
-				console.log(this.warehouseInOutInfo)
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
 			}
 		}
-		}
+	}
 </script>
 <style scoped lang='scss'>
-	.center{
+	.center {
 		margin: 15rpx 15rpx 10rpx 15rpx;
-		padding:0rpx 10rpx 30rpx 10rpx;
+		/* padding: 0rpx 10rpx 30rpx 10rpx; */
 		background-color: #FFFFFF;
 		border-radius: 15px;
 	}
-	.title_b{
+
+	.title_b {
 		margin: 20rpx 20rpx 0rpx 20rpx;
-		padding:20rpx 10rpx 20rpx 10rpx;
+		padding: 20rpx 10rpx 20rpx 10rpx;
 		font-size: 18px;
 		font-weight: 550;
 		border-bottom: 1px solid #d6d6d6;
 	}
-	.title_c{
+
+	.title_c {
 		margin: 20rpx 20rpx 0rpx 20rpx;
-		padding:20rpx 10rpx 20rpx 10rpx;
+		padding: 20rpx 10rpx 20rpx 10rpx;
 		font-size: 18px;
 		font-weight: 550;
 	}
+
 	.margin-bottom {
 		margin-bottom: 30px;
 	}
-	
+
 	.c-row {
 		display: -webkit-box;
 		display: -webkit-flex;
@@ -227,7 +249,7 @@
 		padding: 20rpx 30rpx;
 		position: relative;
 	}
-	
+
 	.con-list {
 		-webkit-box-flex: 1;
 		-webkit-flex: 1;
@@ -244,7 +266,7 @@
 		text-align: right;
 		padding-right: 20rpx;
 	}
-	
+
 	.d-header {
 		display: flex;
 		justify-content: center;
@@ -253,14 +275,14 @@
 		font-size: $font-base + 2upx;
 		color: $font-color-dark;
 		position: relative;
-	
+
 		text {
 			padding: 0 20upx;
 			background: #fff;
 			position: relative;
 			z-index: 1;
 		}
-	
+
 		&:after {
 			position: absolute;
 			left: 50%;
@@ -272,33 +294,38 @@
 			border-bottom: 1px solid #ccc;
 		}
 	}
+
 	/* 底部操作菜单 */
 	.page-bottom1 {
 		position: fixed;
 		left: 0;
 		bottom: 0;
 		z-index: 95;
-		width:100%;
+		width: 100%;
 		height: 70px;
 		background: rgba(255, 255, 255, .9);
-		padding:15px;
+		padding: 15px;
 		border-radius: 0;
-		text-align:right;
-		button{
-			display:inline-block;
-			border-radius:18px;
-			margin:0 10px;
-			font-size:14px;background:#fff;
-			color:#333;
-			border:1px solid #333;
+		text-align: right;
+
+		button {
+			display: inline-block;
+			border-radius: 18px;
+			margin: 0 10px;
+			font-size: 14px;
+			background: #fff;
+			color: #333;
+			border: 1px solid #333;
 			padding-left: 50rpx;
 			padding-right: 50rpx;
 		}
-		.action-btn{
-			background:#22C572;
-			color:#fff;
-			border:1px solid #22C572;
+
+		.action-btn {
+			background: #22C572;
+			color: #fff;
+			border: 1px solid #22C572;
 		}
+
 		.p-b-btn {
 			display: flex;
 			flex-direction: column;
@@ -308,33 +335,44 @@
 			color: $font-color-base;
 			width: 96upx;
 			height: 80upx;
-	
+
 			.yticon {
 				font-size: 40upx;
 				line-height: 48upx;
 				color: $font-color-light;
 			}
-	
+
 			&.active,
 			&.active .yticon {
 				color: $uni-color-primary;
 			}
-	
+
 			.icon-fenxiang2 {
 				font-size: 42upx;
 				transform: translateY(-2upx);
 			}
-	
+
 			.icon-shoucang {
 				font-size: 46upx;
 			}
 		}
-	
-		
+
+
+	}
+	.container {
+		padding-bottom: 16upx;
 	}
-	.container{
-		padding-bottom: 160upx;
+	.xiangji{
+		width: 25px;
+		height: 25px;
+		position: absolute;
+		margin: 0 auto;
+		margin-top: 35px;
+		margin-left: -58px;
+	}
+	.picture{
+		width: 90px;
+		height: 90px;
+		border-radius: 10px;
 	}
 </style>
-
-

+ 1 - 0
pageD/warehousings/warehousings.vue

@@ -606,6 +606,7 @@ import upload from '@/components/upload.vue';
 				}
 				this.WarehouseInOutInfo.warehouseInOutDetail = this.list
 				this.WarehouseInOutInfo.statusFlag = 3
+				this.WarehouseInOutInfo.taskType = "入库任务"
 				uni.showLoading({
 					title:"正在提交"
 				})

二进制
static/img/authentication/xiangji-2@3x.png