<template>
	<view class="content">
		<view class="box"></view>
		<view class="main-title">
			<image class="title-icon" src="../../static/icon/order.png" mode=""></image>
			<view class="title">
				规格1(<text class="red">黄色,37码,3双</text>)
			</view>
		</view>
		<view class="main">
			<view class="main-item">
				<view class="main-item-item flex">
					<view class="main-item-font">检验员：</view>
					<view class="main-item-font">李丹丹</view>
				</view>
				<view class="main-item-item flex">
					<view class="main-item-font">提交人：</view>
					<view class="main-item-font">林一</view>
				</view>
				<view class="main-item-item flex">
					<view class="main-item-font">类别：</view>
					<view class="main-item-font">组长</view>
				</view>
			</view>
			<view class="main-item">
				<view class="main-item-item flex">
					<view class="main-item-type">类型：</view>
					<view class="main-item-font">返工</view>
				</view>
				<view class="main-item-item flex">
					<view class="main-item-type">数量：</view>
					<input type="number" class="main-item-type right" placeholder="请填写数量">
				</view>
				<view class="main-item-item fcenter">
					<image class="main-icon" src="../../static/icon/add-b.png" mode=""></image>
					<view class="main-item-font mleft">
						添加材料
					</view>
				</view>
				<view class="main-item-item fcenter" @click="navTo('/pages/scrap/gxlist')">
					<image class="main-icon" src="../../static/icon/add-b.png" mode=""></image>
					<view class="main-item-font mleft">
						添加工序
					</view>
				</view>
				<view class="main-item-item fcenter">
					<image class="main-icon" src="../../static/icon/add-b.png" mode=""></image>
					<view class="main-item-font mleft">
						添加责任人
					</view>
				</view>
			</view>
			<view class="main-item">
				<view class="main-item-item flex">
					<view class="main-item-type">类型：</view>
					<view class="main-item-font">报废</view>
				</view>
				<view class="main-item-item flex">
					<view class="main-item-type">数量：</view>
					<input type="number" class="main-item-type right" placeholder="请填写数量">
				</view>
				<view class="main-item-item fcenter">
					<image class="main-icon" src="../../static/icon/add-b.png" mode=""></image>
					<view class="main-item-font mleft">
						添加责任人
					</view>
				</view>
			</view>
			<view class="main-item">
				<view class="main-item-item fcenter">
					<image class="main-icon" src="../../static/icon/add-c.png" mode=""></image>
					<view class="main-item-font mleft">
						添加处理
					</view>
				</view>
			</view>
			<view class="btn">
				保存提交
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		onLoad() {},
		onShow() {},
		onReachBottom() {},
		onReady() {},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url
				})
			}
		}
	};
</script>

<style lang="scss">
	page,
	.content {
		min-height: 100%;
		height: auto;
		background: #ffffff;
	}

	.box {
		width: 100%;
		height: 20rpx;
		background: #f8f8f8;
	}

	.main-title {
		padding: 20rpx 48rpx;
		display: flex;
		align-items: center;
		border-bottom: 1px solid #eaeced;

		.title-icon {
			width: 32rpx;
			height: 37rpx;
		}

		.title {
			margin-left: 10rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #333333;
		}

		.red {
			color: #FF4C4C;
		}
	}

	.main {
		padding: 0 24rpx;

		.main-item {
			margin-top: 20rpx;
			padding: 0 20rpx;
			width: 100%;
			background: #FFFFFF;
			border: 2px solid #EAECED;
			box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
			border-radius: 20rpx;

			.main-item-item {
				padding: 20rpx 0;
				border-bottom: 1px dashed #EAECED;

				.main-item-font {
					font-size: 32rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #323333;
				}

				.mleft {
					margin-left: 10rpx;
				}

				.main-item-type {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #666666;
				}

				.right {
					text-align: right;
				}

				.main-icon {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.fcenter {
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}
	}

	.btn {
		margin: 100rpx auto 0;
		width: 622rpx;
		height: 85rpx;
		background: #069CFA;
		border-radius: 15rpx;
		text-align: center;
		line-height: 85rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
	}
</style>