<template>
	<view class="container">
		<view class="nav-top">
			<view class="nav-bar u-flex u-col-center u-row-between">
				<view class="l" @click="clickLeft">
					<uni-icons type="left" size="20" color="#666"></uni-icons>
				</view>
				<view class="title">
					{{title}}
				</view>
				<view class="r" @click="prev" v-if="type>0">
					上一项
				</view>
			</view>
			<view class="nav-types u-flex u-col-center u-row-between">
				<view class="l">
					第{{type+1}}/9项
				</view>
				<view class="r">
					<u-line-progress :percentage="percentage" activeColor="#58A8FF" :showText="false"></u-line-progress>
				</view>
			</view>
		</view>
		<view class="main" v-if="type==0">
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营主体全称<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbBaseInfo.fullName" placeholder="请输入">
					</view>
				</view>
				<view class="item2">
					<view class="l">
						主体类型<text>*</text>
					</view>
					<!-- mbBaseInfo.type -->
					<view class="r u-flex u-col-center ">
						<view class="i" :class="{on:index1 == index}" v-for="(item,index) in list1" :key="index"
							@click="change1(index)">
							{{item.dictLabel}}
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						产品类型<text>*</text>
					</view>
					<!-- mbBaseInfo.landmarkType -->
					<view class="r u-flex u-col-center u-row-right" @click="cpTypeChange">
						<text v-if="mbBaseInfo.landmarkType">{{landmarkTypeText}}</text>
						<text v-else>请选择</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						注册资本<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbBaseInfo.registeredCapital" placeholder="请输入">
						<text>万</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						实缴资本<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbBaseInfo.paidInCapital" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						纳税人<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="mbBaseInfo.taxpayer=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbBaseInfo.taxpayer==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbBaseInfo.taxpayer==0}">小规模</text>

						</view>
						<view class="i  u-flex u-col-center" @click="mbBaseInfo.taxpayer=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbBaseInfo.taxpayer==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbBaseInfo.taxpayer==1}">一般</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						工商登记时间<text>*</text>
					</view>
					<!-- mbBaseInfo.registrationTime -->
					<view class="r">
						<picker mode="date" :value="mbBaseInfo.registrationTime" :start="startDate" :end="endDate" @change="time1Change">
							<view class="picker u-flex u-col-center u-row-right">
								<text v-if="mbBaseInfo.registrationTime">{{mbBaseInfo.registrationTime}}</text>
								<text v-else>请选择</text>
								<uni-icons type="right" size="20" color="#999"></uni-icons>
							</view>
						</picker>
					</view>
				</view>
				<view class="item2">
					<view class="l">
						工商登记地址<text>*</text>
					</view>
					<view class="r ">
						<input type="text" v-model="mbBaseInfo.registrationAddress" placeholder="请输入">
					</view>
				</view>
				<view class="item2">
					<view class="l">
						经营地址<text>*</text>
					</view>
					<view class="r ">
						<input type="text" v-model="mbBaseInfo.address" placeholder="请输入">
					</view>
				</view>
				<view class="item2">
					<view class="l">
						经营范围/服务内容<text>*</text>
					</view>
					<view class="r ">
						<input type="text" v-model="mbBaseInfo.natureBusiness" placeholder="请输入">
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						开户行<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbBaseInfo.bank" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						银行卡号<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbBaseInfo.bankCard" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						联系人<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbBaseInfo.contactName" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						联系人手机号<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbBaseInfo.contactPhone" placeholder="请输入">
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						社会信用代码<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbBaseInfo.socialCreditCode" placeholder="请输入">
					</view>
				</view>
				<view class="item3">
					<view class="l">
						营业执照<text>*</text>
					</view>
					<view class="r" @click="upload('mbBaseInfo.businessLicenseUrl')">
						<image :src="config + mbBaseInfo.businessLicenseUrl" mode="aspectFill" v-if="mbBaseInfo.businessLicenseUrl"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
			</view>
		</view>

		<view class="main" v-if="type==1">
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						姓名<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.legalName" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						手机号<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.legalTel" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						身份证号<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.identityno" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						性别<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="mbLegalInfo.sex=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbLegalInfo.sex==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbLegalInfo.sex==1}">男</text>

						</view>
						<view class="i  u-flex u-col-center" @click="mbLegalInfo.sex=2">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbLegalInfo.sex==2"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbLegalInfo.sex==2}">女</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						邮箱
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.email" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						邮政编码
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.postCode" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						政治面貌<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="politicalChage">
						<text>{{mbLegalInfo.political||'请选择'}}</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						社会职务<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.work" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						住所
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.address" placeholder="非必填">
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						联系人<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.contacts" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						联系人手机号<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.contactTel" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						企业官网<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="mbLegalInfo.website" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人文化水平
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change82">
						<text v-if="mbLegalInfo.education == 0">-</text>
						<text v-if="mbLegalInfo.education == 1">大专学历</text>
						<text v-if="mbLegalInfo.education == 2">大学本科</text>
						<text v-if="mbLegalInfo.education == 3">研究生及以上</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人为实际控股人
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="mbLegalInfo.control=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbLegalInfo.control==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbLegalInfo.control==0}">是</text>
				
						</view>
						<view class="i  u-flex u-col-center" @click="mbLegalInfo.control=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbLegalInfo.control==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbLegalInfo.control==1}">否</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人本行业从业年限
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change83">
						<text v-if="mbLegalInfo.workYears == 0">-</text>
						<text v-if="mbLegalInfo.workYears == 1">2年-5年</text>
						<text v-if="mbLegalInfo.workYears == 2">5年-8年</text>
						<text v-if="mbLegalInfo.workYears == 3">8年以上</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人属行政职务<text @click="open('负责人当任人大政协、党代会代表或相当的其他社会职务法定代表')">?</text>
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change84">
						<text v-if="mbLegalInfo.level == 0">-</text>
						<text v-if="mbLegalInfo.level == 1">乡镇</text>
						<text v-if="mbLegalInfo.level == 2">县级</text>
						<text v-if="mbLegalInfo.level == 3">市级</text>
						<text v-if="mbLegalInfo.level == 4">省级或以上</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人获得荣誉<text @click="open('获得劳动模范、优秀党员、三八红旗手等表')">?</text>
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change85">
						<text v-if="mbLegalInfo.honor == 0">-</text>
						<text v-if="mbLegalInfo.honor == 1">县级</text>
						<text v-if="mbLegalInfo.honor == 2">市级</text>
						<text v-if="mbLegalInfo.honor == 3">省级</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
			</view>
		</view>

		<view class="main" v-if="type==2">
			<view class="list">
				<view class="item2">
					<view class="l">
						经营服务内容
					</view>
					<view class="r ">
						<input type="text" v-model="mbManagementInfo.serviceContent" placeholder="请输入">
					</view>
				</view>
				<view class="item2">
					<view class="l">
						主要经营类型
					</view>
					<view class="r u-flex u-col-center ">
						<view class="i" :class="{on:index2 == index}" v-for="(item,index) in list2" :key="index"
							@click="change2(index)">
							{{item.dictLabel}}
						</view>
					</view>
				</view>
				<view class="item2">
					<view class="l">
						示范级别<text>*</text>
					</view>
					<view class="r u-flex u-col-center ">
						<view class="i" :class="{on:index3 == index}" v-for="(item,index) in list3" :key="index"
							@click="change3(index)">
							{{item.dictLabel}}
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						新农直报认证
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="mbManagementInfo.isAuthentication=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbManagementInfo.isAuthentication==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbManagementInfo.isAuthentication==1}">是</text>

						</view>
						<view class="i  u-flex u-col-center" @click="mbManagementInfo.isAuthentication=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbManagementInfo.isAuthentication==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbManagementInfo.isAuthentication==0}">否</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						龙头企业
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="mbManagementInfo.isLeading=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbManagementInfo.isLeading==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbManagementInfo.isLeading==1}">是</text>

						</view>
						<view class="i  u-flex u-col-center" @click="mbManagementInfo.isLeading=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="mbManagementInfo.isLeading==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:mbManagementInfo.isLeading==0}">否</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						成员数量<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagementInfo.workers" placeholder="请输入">
						<text>人</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营流水
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagementInfo.managementFee" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						年销售总收入<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagementInfo.salesSum" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						净资产<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagementInfo.netAsset" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						纳税收入<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagementInfo.taxIncome" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						纳税额<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagementInfo.taxAmount" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						带动农户数<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="mbManagementInfo.farmerNum" placeholder="请输入">
						<text>个</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						带动贫困农户数<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="mbManagementInfo.poorFarmerNum" placeholder="请输入">
						<text>个</text>
					</view>
				</view>
			</view>
		</view>

		<view class="main" v-if="type == 3">
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						社员规模
					</view>
					<view class="r  u-flex u-col-center u-row-right">
						<input type="number" v-model="development.memberSize" placeholder="非必填">
						<text>户</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						股金规模
					</view>
					<view class="r  u-flex u-col-center u-row-right">
						<input type="text" v-model="development.capitalScale" placeholder="非必填">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						产业投入
					</view>
					<view class="r  u-flex u-col-center u-row-right">
						<input type="text" v-model="development.inputFee" placeholder="非必填">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						产业规模
					</view>
					<view class="r">
						<input type="text" v-model="development.industrialScale" placeholder="非必填">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						流转土地<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="development.circulatingLand" placeholder="请输入">
						<text>亩</text>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						种植土地类型
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="plantingLandTypeType">
							<text v-if="development.plantingLandType">{{development.plantingLandType}}</text>
							<text v-else>请选择</text>
							<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						种植品种<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="development.plantingArieties" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						种植产量
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="development.plantingYield" placeholder="非必填">
						<text>吨</text>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						养殖区<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="development.breedingArea" placeholder="请输入">
						<text>平方米</text>

					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						养殖品种<text>*</text>
					</view>
					<view class="r">
						<input type="text" v-model="development.breed" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						年出栏/存栏<text>*</text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="development.yearOut" placeholder="请输入">
						<text>头</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						种/养面积
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="development.measureArea" placeholder="非必填">
						<text>亩</text>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item2">
					<view class="l">
						主体服务范围
					</view>
					<view class="r">
						<textarea v-model="development.serviceScope" placeholder="非必填" />
					</view>
				</view>
			</view>
		</view>

		<view class="main" v-if="type == 4">
			<view class="list">
				<view class="item3">
					<view class="l">
						无公害认证
					</view>
					<view class="r" @click="upload('property.nuisanceless')">
						<image :src="config + property.nuisanceless" mode="aspectFill" v-if="property.nuisanceless"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
				<view class="item3">
					<view class="l">
						绿色产品认证
					</view>
					<view class="r" @click="upload('property.green')">
						<image :src="config + property.green" mode="aspectFill" v-if="property.green"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
				<view class="item3">
					<view class="l">
						有机产品认证
					</view>
					<view class="r" @click="upload('property.organic')">
						<image :src="config + property.organic" mode="aspectFill" v-if="property.organic"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
				<view class="item3">
					<view class="l">
						注册商标（名称）<text>*</text>
					</view>
					<view class="r" @click="upload('property.trademark')">
						<image :src="config + property.trademark" mode="aspectFill" v-if="property.trademark"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
				<view class="item3">
					<view class="l">
						专利证书
					</view>
					<view class="r" @click="upload('property.patent')">
						<image :src="config + property.patent" mode="aspectFill" v-if="property.patent"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
				<view class="item3">
					<view class="l">
						政府绿标认证
					</view>

					<view class="r" @click="upload('property.government')">
						<image :src="config + property.government" mode="aspectFill" v-if="property.government"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
				<view class="item3">
					<view class="l">
						农产品地理标志
					</view>
					<view class="r" @click="upload('property.geography')">
						<image :src="config + property.geography" mode="aspectFill" v-if="property.geography"></image>
						<image src="@/static/images/mine/up.jpg" mode="aspectFill" v-else></image>
					</view>
				</view>
			</view>
		</view>

		<view class="main" v-if="type == 5">
			<view class="year-title">
				本年度<text>*</text>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l" style="width: 360rpx;">
						年度生产经营总收入
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagement.totalIncome" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						年度生产经营支出
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="mbManagement.totalPay" placeholder="请输入">
						<text>万元</text>
					</view>
				</view>
			</view>

		</view>

		<view class="main" v-if="type == 6">
			<view class="year-title">
				本年度<text>*</text>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营土地类型
					</view>
					<!-- <view class="r">
						<input type="text" v-model="landManagement.landType" placeholder="请输入">
					</view> -->
					<view class="r u-flex u-col-center u-row-right" @click="sysLandTypeChange">
							<text v-if="landManagement.landType">{{landTypeText}}</text>
							<text v-else>请选择</text>
							<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营方式
					</view>
					<!-- <view class="r">
						<input type="text" v-model="landManagement.managementType" placeholder="请输入">
					</view> -->
					<view class="r u-flex u-col-center u-row-right" @click="sysManagementTypeChange">
							<text v-if="landManagement.managementType">{{managementTypeText}}</text>
							<text v-else>请选择</text>
							<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						土地面积
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="landManagement.landArea" placeholder="请输入">
						<text>亩</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营年限
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="landManagement.managementYears" placeholder="请输入">
						<text>年</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						到期时间
					</view>
					<view class="r">
						<!-- <input type="text" v-model="landManagement.expireTime" placeholder="请输入"> -->
						<picker mode="date" :value="landManagement.expireTime" :start="startDate" :end="endDate" @change="time1Change2">
							<view class="picker u-flex u-col-center u-row-right">
								<text v-if="landManagement.expireTime">{{landManagement.expireTime}}</text>
								<text v-else>请选择</text>
								<uni-icons type="right" size="20" color="#999"></uni-icons>
							</view>
						</picker>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						流转价格
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="text" v-model="landManagement.circulationPrice" placeholder="请输入">
						<text>元/亩</text>
					</view>
				</view>
			</view>
		</view>

		<view class="main" v-if="type == 7">
			<view class="year-title">
				本年度<text>*</text>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						主管产品名称
					</view>
					<view class="r">
						<input type="text" v-model="businessItems.mainProducts" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						数量
					</view>
					<view class="r">
						<input type="number" v-model="businessItems.quantity" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						计量单位
					</view>
					<!-- <view class="r">
						<input type="text" v-model="businessItems.measureUnit" placeholder="请输入">
					</view> -->
					<view class="r u-flex u-col-center u-row-right" @click="sysUnitChange">
							<text v-if="businessItems.measureUnit">{{measureUnitText}}</text>
							<text v-else>请选择</text>
							<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						注册商标
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="businessItems.isRegistered=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="businessItems.isRegistered==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:businessItems.isRegistered==1}">是</text>

						</view>
						<view class="i  u-flex u-col-center" @click="businessItems.isRegistered=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="businessItems.isRegistered==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:businessItems.isRegistered==0}">否</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						获得认证
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="businessItems.isAuthentication=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="businessItems.isAuthentication==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:businessItems.isAuthentication==1}">是</text>

						</view>
						<view class="i  u-flex u-col-center" @click="businessItems.isAuthentication=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="businessItems.isAuthentication==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:businessItems.isAuthentication==0}">否</text>
						</view>
					</view>
				</view>
			</view>

		</view>


		<view class="main" v-if="type==8"> 
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						流转土地获得补助
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change81">
						<text v-if="otherInfo.subsidy == 0">-</text>
						<text v-if="otherInfo.subsidy == 1">5000-10000</text>
						<text v-if="otherInfo.subsidy == 2">10000-50000</text>
						<text v-if="otherInfo.subsidy == 3">50000以上</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						理事会完整
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.council=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.council==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.council==0}">是</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.council=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.council==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.council==1}">否</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						监事会完整
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.supervisory=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.supervisory==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.supervisory==0}">是</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.supervisory=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.supervisory==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.supervisory==1}">否</text>
						</view>
					</view>
				</view>
			</view>
			<view class="list">

				
				<!-- <view class="item u-flex u-col-center u-row-between">
					<view class="l">
						新型农业经营主体荣誉<text @click="open('新型农业经营主体获得相关荣誉')">?</text>
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change86">
						<text v-if="xxnyjyztry == 0">-</text>
						<text v-if="xxnyjyztry == 1">县级3次以下</text>
						<text v-if="xxnyjyztry == 2">县级3次以上</text>
						<text v-if="xxnyjyztry == 3">市级3次以下</text>
						<text v-if="xxnyjyztry == 4">市级3次以上</text>
						<text v-if="xxnyjyztry == 5">省级3次以下</text>
						<text v-if="xxnyjyztry == 6">省级3次以上</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view> -->
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						主体县级荣誉次数
					</view>
					<view class="r">
						<input type="number" v-model="otherInfo.countyHonor" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						主体市级荣誉次数
					</view>
					<view class="r">
						<input type="number" v-model="otherInfo.cityHonor" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						主体省级荣誉次数
					</view>
					<view class="r">
						<input type="number" v-model="otherInfo.provincialHonor" placeholder="请输入">
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营不正常日常监管评价
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change90">
						<text v-if="otherInfo.rcjgqkpjs == 0">-</text>
						<text v-if="otherInfo.rcjgqkpjs == 1">经营异常</text>
						<text v-if="otherInfo.rcjgqkpjs == 2">无生产经营</text>
						<text v-if="otherInfo.rcjgqkpjs == 3">名存实亡或查无信息</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						经营正常日常监管评价
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change87">
						<text v-if="otherInfo.evaluate == 0">-</text>
						<text v-if="otherInfo.evaluate == 1">生产经营良好</text>
						<text v-if="otherInfo.evaluate == 2">生产经营一般</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						三年内不良信用记录<text @click="open('新型农业经营主体或主要负责人在金融机构有不良贷款信用记录，报告期内存在逾期贷款记录')">?</text>
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change88">
						<text v-if="otherInfo.overdueLevel == 0">-</text>
						<text v-if="otherInfo.overdueLevel == 1">30天（含）以内</text>
						<text v-if="otherInfo.overdueLevel == 2">30天-60天（含）</text>
						<text v-if="otherInfo.overdueLevel == 3">61天-90天（含）</text>
						<text v-if="otherInfo.overdueLevel == 4">不良贷款2户及以上</text>
						<text v-if="otherInfo.overdueLevel == 5">逾期超90天</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						行政告诫
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="otherInfo.warnCount" placeholder="请输入"><text>次</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						行政处罚
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="otherInfo.punishCount" placeholder="请输入"><text>次</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						刑事处罚
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.criminal=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.criminal==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.criminal==0}">无</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.criminal=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.criminal==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.criminal==1}">有</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						不履约行为
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="otherInfo.defaultCount" placeholder="请输入"><text>次</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						其他不诚信经营行为
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="otherInfo.dishonestyCount" placeholder="请输入"><text>次</text>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人(负责人)被行政告诫
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="otherInfo.legalWarnCount" placeholder="请输入"><text>次</text>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人(负责人)被行政处罚
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<input type="number" v-model="otherInfo.legalPunishCount" placeholder="请输入"><text>次</text>
					</view>
				</view>
				<view class="item">
					<view class="l">
						法人(负责人)被刑事处罚
					</view>
					<view class="r2 u-flex u-col-center">
						<view class="i  u-flex u-col-center" @click="otherInfo.legalCriminal=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.legalCriminal==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.legalCriminal==0}">无</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.legalCriminal=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.legalCriminal==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.legalCriminal==1}">1次</text>
						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.legalCriminal=2">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.legalCriminal==2"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.legalCriminal==2}">2次</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						法人被列入黑名单
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.black=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.black==0">
							</image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.black==0}">否</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.black=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.black==1">
							</image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.black==1}">是</text>
						</view>
					</view>
				</view>
			<!-- 	<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						财务管理不规范
					</view>
					<view class="r u-flex u-col-center u-row-right" @click="change89">
						<text v-if="cwglbgf == 0">-</text>
						<text v-if="cwglbgf == 1">未建立会计账簿</text>
						<text v-if="cwglbgf == 2">分配制度不规范</text>
						<uni-icons type="right" size="20" color="#999"></uni-icons>
					</view>
				</view> -->
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						未建立会计账簿<text @click="open('未建立会计账簿')"></text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.accountBook=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.accountBook==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.accountBook==0}">无</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.accountBook=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.accountBook==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.accountBook==1}">有</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						分配制度不规范<text @click="open('分配制度不规范')"></text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.standard=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.standard==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.standard==0}">无</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.standard=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.standard==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.standard==1}">有</text>
						</view>
					</view>
				</view>
				<view class="item u-flex u-col-center u-row-between">
					<view class="l">
						欠税信息<text @click="open('本年度有无未按期偿还贷款的')"></text>
					</view>
					<view class="r u-flex u-col-center u-row-right">
						<view class="i  u-flex u-col-center" @click="otherInfo.taxInfo=0">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.taxInfo==0"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.taxInfo==0}">无</text>

						</view>
						<view class="i  u-flex u-col-center" @click="otherInfo.taxInfo=1">
							<image src="@/static/images/mine/c2.png" mode="aspectFill" v-if="otherInfo.taxInfo==1"></image>
							<image src="@/static/images/mine/c1.png" mode="aspectFill" v-else></image>
							<text :class="{on:otherInfo.taxInfo==1}">有</text>
						</view>
					</view>
				</view>
			</view>

		</view>


		<!-- <view class="footer u-flex u-col-center u-row-between" v-if="type==0">
			<view class="btn1" @click="submit">
				保存本页
			</view>
			<view class="btn2" @click="next">
				下一项
			</view>
		</view> -->
		<view class="footer u-flex u-col-center u-row-between" v-if="type >=0 && type < 8">
			<view class="btn1" @click="submit">
				保存本页
			</view>
			<view class="btn2" @click="next">
				下一项
			</view>
		</view>
		<view class="footer u-flex u-col-center u-row-between" v-if="type == 8">
			<view class="btn1" @click="submit">
				保存本页
			</view>
			<view class="btn2" @click="submits">
				全部保存
			</view>
		</view>
	</view>
</template>

<style lang="scss" scoped>
	// @import "@/static/scss/form.scss";

	page {
		// background-color: white;
	}


	// 新版样式
	$color: #4892FD;

	.year-title {
		padding: 0 30rpx;
		font-size: 28rpx;
		color: #333;
		height: 80rpx;
		line-height: 80rpx;

		text {
			color: #c33;
			margin-left: 10rpx;
		}
	}

	.footer {
		position: fixed;
		left: 0;
		right: 0;
		background-color: #fff;
		padding: 20rpx 30rpx;
		z-index: 999;
		bottom: 0;

		.btn1 {
			width: calc(50% - 10rpx);
			height: 90rpx;
			line-height: 90rpx;
			text-align: center;
			border: 2rpx solid $color;
			border-radius: 45rpx;
			font-size: 28rpx;
			color: $color;
			box-sizing: border-box;

		}

		.btn2 {
			width: calc(50% - 10rpx);
			height: 90rpx;
			line-height: 90rpx;
			text-align: center;
			background: $color;
			border-radius: 45rpx;
			font-size: 28rpx;
			color: #fff;
		}

		.btn {
			height: 90rpx;
			line-height: 90rpx;
			text-align: center;
			background: $color;
			border-radius: 45rpx;
			font-size: 28rpx;
			color: #fff;

		}
	}

	.nav-top {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background-color: #fff;
		z-index: 9999;
	}

	.nav-types {
		padding: 0 30rpx 10rpx;

		.l {
			font-size: 26rpx;
			font-weight: 500;
			color: #333333;
		}

		.r {
			flex: 1;
			width: 1rpx;
			margin-left: 20rpx;
		}
	}

	.nav-bar {
		text-align: center;
		height: 88rpx;
		line-height: 88rpx;
		padding: 0 30rpx;

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

		.title {
			padding: 0 20rpx;
			flex: 1;
			width: 1rpx;
			color: #333;
			font-weight: 600;
			font-size: 36rpx;
			font-weight: bold;
		}

		.r {
			color: $color;
			font-size: 24rpx;
		}
	}

	.container {
		padding: 160rpx 30rpx 200rpx;
		.main{
			width:100%;
		}
		.f-btn {
			position: fixed;
			bottom: 60rpx;
			left: 30rpx;
			right: 30rpx;
			height: 90rpx;
			line-height: 90rpx;
			text-align: center;
			background-color: $color;
			color: #fff;
			font-size: 28rpx;
			border-radius: 15rpx;
		}



		.list {
			background-color: #fff;
			border-radius: 20rpx;
			padding: 10rpx 30rpx;
			margin-bottom: 20rpx;

			.item3 {
				padding: 10rpx 0;

				.l {
					font-size: 28rpx;
					font-weight: bold;
					color: #333333;
					line-height: 60rpx;
					height: 60rpx;

					text {
						color: #c33;
						margin-left: 6rpx;
					}
				}

				.r {
					margin-top: 20rpx;

					image {
						width: 160rpx;
						height: 160rpx;
					}
				}

			}

			.item2 {
				padding: 10rpx 0;

				.l {
					font-size: 28rpx;
					font-weight: bold;
					color: #333;
					line-height: 60rpx;
					height: 60rpx;

					text {
						color: #c33;
						margin-left: 6rpx;
					}

				}

				.r {
					margin-top: 10rpx;
					flex-wrap: wrap;

					input {
						width: 100%;
						height: 60rpx;
						min-height:40rpx;
						line-height: 60rpx;
						font-size: 28rpx;
						color: #333333;
						border-bottom: 2rpx solid #eee;
					}

					textarea {
						width: 100%;
						height: 100rpx;
						font-size: 28rpx;
						color: #333333;
					}

					.i {
						height: 50rpx;
						line-height: 50rpx;
						text-align: center;
						padding: 0 20rpx;
						border-radius: 10rpx;
						margin: 20rpx 20rpx 0 0;
						color: #666;
						border: 2rpx solid #eee;
						font-size: 24rpx;
					}

					.on {
						border: 2rpx solid $color;
						color: $color;
						background-color: #EEF7FF;
					}
				}
			}

			.item {
				padding: 10rpx 0;
				border-bottom: 1rpx solid #eee;

				&:last-child {
					border-bottom: 0;
				}

				.l {
					font-size: 28rpx;
					font-weight: bold;
					color: #333;
					line-height: 60rpx;
					height: 60rpx;
					width: 320rpx;

					text {
						color: #c33;
						margin-left: 6rpx;
					}
				}

				.r {
					flex: 1;
					width: 1rpx;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					text-align: right;
					input {
						width: 100%;
						height: 100%;
						font-size: 28rpx;
						color: #333333;
						flex: 1;

					}
					::v-deep .uni-input-input{
						min-height:40rpx;
					}
					image {
						width: 120rpx;
						height: 120rpx;
						border-radius: 50%;
						overflow: hidden;
					}

					.i {
						margin-left: 30rpx;

						image {
							width: 35rpx;
							height: 35rpx;
						}

						text {
							font-size: 24rpx;
							color: #666;
							margin-left: 10rpx;
						}

						.on {
							color: $color;
						}
					}

					text {
						font-size: 24rpx;
						color: #666;
						margin-left: 10rpx;
					}

				}

				.r2 {
					margin-top: 20rpx;
					width: 100%;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;



					.i {
						margin-right: 30rpx;

						image {
							width: 35rpx;
							height: 35rpx;
						}

						text {
							font-size: 24rpx;
							color: #666;
							margin-left: 10rpx;
						}

						.on {
							color: $color;
						}
					}

					text {
						font-size: 24rpx;
						color: #666;
						margin-left: 10rpx;
					}

				}
			}
		}

	}
</style>

<script>
	import {savePage,authenticationSubject} from '@/api/mine/index.js'
	import {subjectType,sysPoliticalype,businessScope,demonstrationLevel,plantingLandType,sysManagementType,sysLandType,sysUnit,sysLandmarkType} from '@/api/dictionary.js'
	import {uploadCommon} from '@/api/common.js'
	import config from "@/config";
	export default {
		name: "baseInfo",
		components: {},
		props: {},
		methods: {
			// 新版方法
			open(data) {
				uni.showModal({
					title: '提示',
					content: data,
					showCancel: false,
					success: (res) => {
						if (res.confirm) {
							console.log('用户点击确定');
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			},
			getDate(type) {
				const date = new Date();
				let year = date.getFullYear();
				let month = date.getMonth() + 1;
				let day = date.getDate();
				if (type === 'start') {
					year = year - 20;
				} else if (type === 'end') {
					year = year;
				}
				month = month > 9 ? month : '0' + month;
				day = day > 9 ? day : '0' + day;
				return `${year}-${month}-${day}`;
			},
			next() {
				// if(this.type == 0){
				// 	for(let i in this.mbBaseInfo){
				// 			if(!this.mbBaseInfo[i] && this.mbBaseInfo[i] === ''){
				// 				console.log('this.mbBaseInfo[i]',i)
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 1){
				// 	for(let i in this.mbLegalInfo){
				// 			if(!this.mbLegalInfo[i] && i != 'address' && i != 'postCode' && i != 'email' && i != 'honor' && i != 'education' && i != 'control' && i != 'workYears' && i != 'level'){
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 2){
				// 	for(let i in this.mbManagementInfo){
				// 			if(!this.mbManagementInfo[i] && i != 'serviceContent' && i != 'managementType' && i != 'isAuthentication' && i != 'isLeading'){
				// 				console.log('this.mbManagementInfo[i]',i)
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 3){
				// 	for(let i in this.development){
				// 			if(!this.development[i] && i == 'circulatingLand' && i == 'plantingArieties' && i == 'breed' && i == 'yearOut' && i == 'breedingArea '){
				// 				console.log('this.development[i]',i)
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 4){
				// 	for(let i in this.property){
				// 			if(!this.property[i] && i == 'trademark'){
				// 				console.log('this.property[i]',i)
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 5){
				// 	for(let i in this.mbManagement){
				// 			if(!this.mbManagement[i]){
				// 				console.log('this.mbManagement[i]',i)
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 6){
				// 	for(let i in this.landManagement){
				// 			if(!this.landManagement[i]){
				// 				console.log('this.landManagement[i]',i)
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }else if( this.type == 7){
				// 	for(let i in this.businessItems){
				// 			if(this.businessItems[i] == null || this.businessItems[i] === ""){
				// 				console.log('this.businessItems[i]',i,this.businessItems[i])
				// 				uni.showToast({
				// 					title: '请完善带*的必填信息',
				// 					icon: "none",
				// 					duration: 1500,
				// 						});
				// 						return
				// 			}
				// 	}
				// 	this.type++
				// }
				let off = this.submit()
				console.log('this.submit',off)
				if(off == undefined){
					this.type++
				}
			},
			prev() {
				this.type--
			},
			clickLeft() {
				uni.navigateBack({
					delta: 1
				})
			},
			// 计量单位
			sysUnitChange(index){
				uni.showActionSheet({
					itemList: this.list7.map((i)=>{
						return i.dictLabel
					}),
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.measureUnitText= this.list7[res.tapIndex].dictLabel
						this.businessItems.measureUnit = this.list7[res.tapIndex].dictValue
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			// 经营方式
			sysManagementTypeChange(index){
				uni.showActionSheet({
					itemList: this.list6.map((i)=>{
						return i.dictLabel
					}),
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.managementTypeText = this.list6[res.tapIndex].dictLabel
						this.landManagement.managementType = this.list6[res.tapIndex].dictValue
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			// 经营土地类型
			sysLandTypeChange(index){
				uni.showActionSheet({
					itemList: this.list5.map((i)=>{
						return i.dictLabel
					}),
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.landTypeText = this.list5[res.tapIndex].dictLabel
						this.landManagement.landType = this.list5[res.tapIndex].dictValue
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//种植类型
			plantingLandTypeType(index){
				uni.showActionSheet({
					itemList: this.list4.map((i)=>{
						return i.dictLabel
					}),
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.development.plantingLandType = this.list4[res.tapIndex].dictValue
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//流转土地获得补助
			change81() {
				let list = ['5000-10000', '10000-50000', '50000以上']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.otherInfo.subsidy = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//法定代表人文化水平
			change82() {
				let list = ['大专学历', '大学本科', '研究生及以上']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.mbLegalInfo.education = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//法定代表人本行业从业年限
			change83() {
				let list = ['2年-5年', '5年-8年', '8年以上']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.mbLegalInfo.workYears = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//法定代表人属人大代表或政协委员或党代表
			change84() {
				let list = ['乡镇', '县级', '市级', '省级']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.mbLegalInfo.level = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//法定代表人获得荣誉
			change85() {
				let list = ['县级', '市级', '省级']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.mbLegalInfo.honor = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//新型农业经营主体荣誉
			change86() {
				let list = ['县级3次以下', '县级3次以上', '市级3次以下', '市级3次以上', '省级3次以下', '省级3次以上']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.xxnyjyztry = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//日常监管情况评价
			change87() {
				let list = ['生产经营良好', '生产经营一般']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.otherInfo.evaluate = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//不良信用记录
			change88() {
				let list = ['30天（含）以内', '30天-60天（含）', '61天-90天（含）', '不良贷款2户及以上', '逾期超90天']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.otherInfo.overdueLevel = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//财务管理不规范
			change89() {
				let list = ['未建立会计账簿', '分配制度不规范']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.cwglbgf = res.tapIndex + 1
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//财务管理不规范
			change90() {
				let list = ['经营异常', '无生产经营', '名存实亡或查无信息']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.otherInfo.rcjgqkpjs = res.tapIndex + 1
						console.log(this.otherInfo.rcjgqkpjs);
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			change1(index) {
				this.index1 = index
				this.mbBaseInfo.type = this.list1[this.index1].dictValue
			},
			change2(index) {
				this.index2 = index
				this.mbManagementInfo.managementType = this.list2[this.index2].dictValue
			
			},
			change3(index) {
				this.index3 = index
				this.mbManagementInfo.level = this.list3[this.index3].dictValue
			},
			//0、地农产品类型
			cpTypeChange() {
				uni.showActionSheet({
					itemList: this.ncpList.map((i)=>{
						return i.dictLabel
					}),
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.landmarkTypeText = this.ncpList[res.tapIndex].dictLabel
						this.mbBaseInfo.landmarkType = this.ncpList[res.tapIndex].dictValue
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			//土地经营到期时间
			time1Change2(e) {
				this.landManagement.expireTime = e.detail.value
				console.log(e, this.landManagement.expireTime, 11)
			},
			//0、登记时间
			time1Change(e) {
				this.mbBaseInfo.registrationTime = e.detail.value
				console.log(e, this.mbBaseInfo.registrationTime, 11)
			},
			//1、政治面貌
			politicalChage() {
				let list = ['中共党员', '中共预备党员', '共青团员', '无党派人士', '群众']
				uni.showActionSheet({
					itemList: list,
					success: (res) => {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.mbLegalInfo.political = list[res.tapIndex]
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			// 图片上传
			upload(i) {
				
				uni.chooseImage({
									  count: 1, // 限制选择文件的数量，这里只选择1个文件
									  sizeType: ['compressed'], // 限制选择文件的类型，这里只选择压缩过的文件
									  success: (res) => {
				uploadCommon({
				  "filePath":res.tempFilePaths[0]
				}).then(res => {
					console.log('ressssss',res)
				 if (i == 'mbBaseInfo.businessLicenseUrl') {
				 	this.mbBaseInfo.businessLicenseUrl = res.fileName
				 }
				 if (i == 'property.nuisanceless') {
				 	this.property.nuisanceless = res.fileName
				 }
				 if (i == 'property.green') {
				 	this.property.green = res.fileName
				 }
				 if (i == 'property.organic') {
				 	this.property.organic = res.fileName
				 }
				 if (i == 'property.trademark') {
				 	this.property.trademark = res.fileName
				 }
				 if (i == 'property.patent') {
				 	this.property.patent = res.fileName
				 }
				 if (i == 'property.government') {
				 	this.property.government = res.fileName
				 }
				 if (i == 'property.geography') {
				 	this.property.geography = res.fileName
				 }
				})
									  },
									  fail: (err) => {
				console.log(err)
									  }
								})
			// 	uploadCommon().then(res => {
			// 		if (i == 'mbBaseInfo.businessLicenseUrl') {
			// 			this.mbBaseInfo.businessLicenseUrl = res
			// 		}
			// 		if (i == 'property.nuisanceless') {
			// 			this.property.nuisanceless = res
			// 		}
			// 		if (i == 'property.green') {
			// 			this.property.green = res
			// 		}
			// 		if (i == 'property.organic') {
			// 			this.property.organic = res
			// 		}
			// 		if (i == 'property.trademark') {
			// 			this.property.trademark = res
			// 		}
			// 		if (i == 'patentUrl') {
			// 			this.patentUrl = res
			// 		}
			// 		if (i == 'greenlabelUrl') {
			// 			this.greenlabelUrl = res
			// 		}
			// 		if (i == 'ncpdlbzUrl') {
			// 			this.ncpdlbzUrl = res
			// 		}
			
			// 	})
			},
			// 保存本页
			submit() {
				if (this.type == 0) {
					return this.submit1()
				}
				if (this.type == 1) {
					return this.submit2()
				}
				if (this.type == 2) {
					return this.submit3()
				}
				if (this.type == 3) {
					return this.submit4()
				}
				if (this.type == 4) {
					return this.submit5()
				}
				if (this.type == 5) {
					return this.submit6()
				}
				if (this.type == 6) {
					return this.submit7()
				}
				if (this.type == 7) {
					return this.submit8()
				}
				if (this.type == 8) {
					return this.submit9()
				}
			},
			submits() {
			// 	if (!this.mbBaseInfo.fullName || !this.mbBaseInfo.type || !this.mbBaseInfo.landmarkType || !this.mbBaseInfo.registeredCapital || !this.mbBaseInfo.paidInCapital  || !
			// 		this
			// 		.mbBaseInfo.registrationTime || !this.mbBaseInfo.registrationAddress || !this.mbBaseInfo.address || !this.mbBaseInfo.natureBusiness || !this.bankName || !this
			// 		.bankCode || !this.mbBaseInfo.contactName || !
			// 		this.mbBaseInfo.contactPhone || !this.mbBaseInfo.socialCreditCode || !this.mbBaseInfo.businessLicenseUrl || !this.mbLegalInfo.legalName || !this.mbLegalInfo.legalTel || !this.mbLegalInfo.identityno || !
			// 		this.mbLegalInfo.political || !this.mbLegalInfo.work || !this
			// 		.mbLegalInfo.contacts || !this.mbLegalInfo.contactTel || !this.mbLegalInfo.website || !this.development.circulatingLand || !this.development.breedingArea || !this.development.breed || !this
			// 		.development.yearOut || !this.property.trademark || !this.mbManagementInfo.level || !this.perennial || !this.ztincome || !this
			// 		.ranges || !this.taxable || !this.taxables || !this.mbManagementInfo.farmerNum || !this.mbManagementInfo.poorFarmerNum || !this.businessItems.mainpPoducts || !
			// 		this.businessItems.quantity || !this.businessItems.measureUnit || !this.landManagement.development.plantingLandType || !this.landManagement.managementType || !this.landManagement.landArea || !this
			// 		.landManagement.managementYears || !this.landManagement.expireTime || !this.landManagement.circulationPrice || !this.mbManagement.totalIncome || !this.mbManagement.totalPay) {
			// 		uni.showToast({
			// 			title: '请完善带*的必填信息',
			// 			icon: "none",
			// 			duration: 1500
			// 		});
			// 		return
			// 	}
			// 	savePage({
			
			// 	}).then(res => {
			// 		if (res.code == 200) {
			// 			console.log(res)
			// 			uni.showToast({
			// 				title: '操作成功',
			// 				icon: "none",
			// 				duration: 1500
			// 			});
			// 		} else {
			// 			uni.showToast({
			// 				title: res.msg,
			// 				icon: "none",
			// 				duration: 1500
			// 			});
			// 		}
			// 	})
			// for(let i = 1 ; i<=9 ; i++){
			// 	this.submit`${i}`()
			// }
			this.submit1()
			this.submit2()
			this.submit3()
			this.submit4()
			this.submit5()
			this.submit6()
			this.submit7()
			this.submit8()
			this.submit9()
			},
			submit9() {
			for(let i in this.otherInfo){
					if(!this.otherInfo[i]){
						console.log('this.otherInfo[i]',i)
						uni.showToast({
							title: '请完善带*的必填信息',
							icon: "none",
							duration: 1500,
								});
								return
					}
			}
			let otherInfo = {}
			let keys = Object.keys(this.otherInfo)
			keys.forEach(i=>{
				otherInfo[i] = this.otherInfo[i]
			})
			savePage({otherInfo,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			submit8() {
				for(let i in this.businessItems){
						if(this.businessItems[i] == null || this.businessItems[i] === ""){
							console.log('this.businessItems[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let businessItems = {}
				let keys = Object.keys(this.businessItems)
				keys.forEach(i=>{
					businessItems[i] = this.businessItems[i]
				})
				savePage({businessItems,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			submit7() {
			for(let i in this.landManagement){
					if(!this.landManagement[i]){
						console.log('this.landManagement[i]',i)
						uni.showToast({
							title: '请完善带*的必填信息',
							icon: "none",
							duration: 1500,
								});
								return false
					}
			}
			let landManagement = {}
			let keys = Object.keys(this.landManagement)
			keys.forEach(i=>{
				landManagement[i] = this.landManagement[i]
			})
			savePage({landManagement,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			submit6() {
				for(let i in this.mbManagement){
						if(!this.mbManagement[i]){
							console.log('this.mbManagement[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let mbManagement = {}
				let keys = Object.keys(this.mbManagement)
				keys.forEach(i=>{
					mbManagement[i] = Number(this.mbManagement[i])
				})
				savePage({mbManagement,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			
			submit5() {
				for(let i in this.property){
						if(!this.property[i] && i == 'trademark'){
							console.log('this.property[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let property = {}
				let keys = Object.keys(this.property)
				keys.forEach(i=>{
					property[i] = this.property[i]
				})
				savePage({property,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			submit4() {
				for(let i in this.development){
						if(!this.development[i] && i == 'circulatingLand' && i == 'plantingArieties' && i == 'breed' && i == 'yearOut' && i == 'breedingArea '){
							console.log('this.development[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let development = {}
				let keys = Object.keys(this.development)
				keys.forEach(i=>{
					development[i] = this.development[i]
				})
				savePage({development,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			
			submit3() {
				for(let i in this.mbManagementInfo){
						if(!this.mbManagementInfo[i] && i != 'serviceContent' && i != 'managementType' && i != 'isAuthentication' && i != 'isLeading'){
							console.log('this.mbManagementInfo[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let mbManagementInfo = {}
				let keys = Object.keys(this.mbManagementInfo)
				keys.forEach(i=>{
					mbManagementInfo[i] = this.mbManagementInfo[i]
				})
				savePage({mbManagementInfo,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			
			submit2() {
				for(let i in this.mbLegalInfo){
						if(!this.mbLegalInfo[i] && i != 'address' && i != 'postCode' && i != 'email' && i != 'honor' && i != 'education' && i != 'control' && i != 'workYears' && i != 'level'){
							console.log('this.mbLegalInfo[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let mbLegalInfo = {}
				let keys = Object.keys(this.mbLegalInfo)
				keys.forEach(i=>{
					mbLegalInfo[i] = this.mbLegalInfo[i]
				})
				savePage({mbLegalInfo,userId:this.userId
				}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			// 保存第一页
			submit1() {
				for(let i in this.mbBaseInfo){
						if(!this.mbBaseInfo[i] && this.mbBaseInfo[i] === ''){
							console.log('this.mbBaseInfo[i]',i)
							uni.showToast({
								title: '请完善带*的必填信息',
								icon: "none",
								duration: 1500,
									});
									return false
						}
				}
				let mbBaseInfo = {}
				let keys = Object.keys(this.mbBaseInfo)
				keys.forEach(i=>{
					mbBaseInfo[i] = this.mbBaseInfo[i]
				})
				savePage({mbBaseInfo,userId:this.userId}).then(res => {
					if (res.code == 200) {
						console.log(res)
						uni.showToast({
							title: '操作成功',
							icon: "none",
							duration: 1500
						});
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			// 数据回显
			getIndustrysInfo() {
				authenticationSubject(this.userId).then(res => {
					if (res.code == 200) {
							let keys = Object.keys(res.data)
							keys.forEach(i=>{
								if(res.data[i]){
									let keys2 = Object.keys(this[i])
									keys2.forEach(j=>{
										this[i][j] = res.data[i][j]
									})
								}
							})
							//回显工商信息中的主体类型
							this.list1.forEach((item,index)=>{
								if(item.dictValue == this.mbBaseInfo.type){
									this.index1 = index
								}
							})
							//回显工商信息中的产品类型
							this.ncpList.forEach((item,index)=>{
								if(item.dictValue == this.mbBaseInfo.landmarkType){
									this.landmarkTypeText = item.dictLabel
								}
							})
							// 回显经营信息中主要经营类型
							this.list2.forEach((item,index)=>{
								if(item.dictValue == this.mbManagementInfo.managementType){
									this.index2 = index
								}
							})
							// 回显经营信息中示范级别
							this.list3.forEach((item,index)=>{
								if(item.dictValue == this.mbManagementInfo.level){
									this.index3 = index
								}
							})
							// 回显土地经营状况里的经营土地类型
							this.list5.forEach((item,index)=>{
								if(item.dictValue == this.landManagement.landType){
									this.landTypeText = item.dictLabel
								}
							})
							// 回显土地经营状况里的经营方式
							this.list6.forEach((item,index)=>{
								console.log('shi',this.list6)
								if(item.dictValue == this.landManagement.managementType ){
									this.managementTypeText = item.dictLabel
								}
							})
							// 回显计量单位
							this.list7.forEach((item,index)=>{
								if(item.dictValue == this.businessItems.measureUnit ){
									this.measureUnitText = item.dictLabel
								}
							})
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 1500
						});
					}
				})
			},
			// 新版方法end
		},
		watch: {
			// 新版方法
			type: {
					handler(v1, v2){
						if (v1>=0) {
							this.percentage = (v1 + 1) * 11.11
						console.log('this.percentage',this.percentage)
							let list = ['工商信息', '法人信息', '经营信息', '企业发展信息', '知识产权', '经营状况', '土地经营状况', '经营项目记录', '补充信息']
							this.title = list[v1]
						}
					},
					immediate: true
				}
			// 新版方法end
		},

		// 页面周期函数--监听页面加载
		onLoad() {
			let user = uni.getStorageSync('user')
			this.userId =  user.userId
			if (!this.userId) {
				uni.reLaunch({
					url: '/pages/index/index'
				})
				return
			}
			
			// 获取主体类型
			subjectType().then(res=>{
				this.list1 = res.data
			})
			// 经营主体范围
			businessScope().then(res=>{
				this.list2 = res.data
			}) 
			// 示范级别
			demonstrationLevel().then(res=>{
				this.list3 = res.data
			})
			// 获取种植类型
			plantingLandType().then(res=>{
				this.list4 = res.data
			})
			//经营土地类型
			sysLandType().then(res=>{
				this.list5 = res.data
			})
			//经营方式
			sysManagementType().then(res=>{
				this.list6 = res.data
			})
			// 计量单位
			sysUnit().then(res=>{
				this.list7 = res.data
			})
			sysLandmarkType().then(res=>{
				this.ncpList = res.data
			})
			this.getIndustrysInfo()
		},
		// 页面周期函数--监听页面卸载
		onUnload() {
			const that = this
			return that.$listenOB.goBack()
		},
		// 页面处理函数--监听用户下拉动作
		onPullDownRefresh() {
			uni.stopPullDownRefresh();
		},
		// 页面处理函数--监听用户上拉触底
		// onReachBottom() {},
		// 页面处理函数--监听页面滚动(not-nvue)
		// onPageScroll(event) {},
		// 页面处理函数--用户点击右上角分享
		// onShareAppMessage(options) {},
		computed: {
			// 新版方法
			startDate() {
				return this.getDate('start');
			},
			endDate() {
				return this.getDate('end');
			}
			// 新版方法end
		},
		data() {
			return {
				config:config.baseUrl,
				// 能否下一页
				NextPage:true,
				type: 0,
				title: '工商信息',
				list1: ['家庭农场', '农民合作社', '农业企业', '种植大户'],
				list4:[],
				list5:[],
				list6:[],
				list7:[],
				ncpList: [],
				
				index1: 0,
				index2: 0,
				index3: 0,
				index4:0,
				percentage:'',
				landTypeText:'',// 工商信息经营土地类型lable值
				managementTypeText:'',//工商信息经营方式lable值
				measureUnitText:'',//经营项目记录的计量单位
				landmarkTypeText:'',//工商信息产品类型
				// 工商信息
				mbBaseInfo:{
					fullName:'',//经营主体全称
					type:'',//主体类型
					contactName:'',//联系人
					contactPhone:'',//联系镑人手机号
					// idCard:'',//联系人身份证号
					address:'',//经营地址
					landmarkType:'',//地标农产品类型
					socialCreditCode:'',//社会信用代码
					// serviceContent:'',//经营服务内容
					registeredCapital:'',//注册资本(万元)
					paidInCapital:'',//实缴资本(万元)
					registrationTime:'',//工商登记时间
					registrationAddress:'',//工商登记地址
					natureBusiness:'',//经营范围
					businessLicenseUrl:'@/static/images/mine/up.jpg',//营业执照图片
					// adcode:'',//地区编码
					
					taxpayer:'',//纳税人
					bank:'',//开户行
					bankCard:'',//开户行号
				},
				// 法人信息
				mbLegalInfo:{
					legalName:'',//法人姓名
					sex:'',//性别
					identityno:'',//身份证号
					legalTel:'',//法人电话
					postCode:'',//邮政编码
					email:'',//邮箱
					address:'',//住所
					political:'',//政治面貌
					work:'',//社会职务
					contactTel:'',//联系电话
					contacts:'',//联系人
					website:'',//企业官网
					
					level:'',//人大代表或政协等级 
					honor:'',//荣誉
					education:'',//学历水平
					control:'',//是否实际控制人
					workYears:'',//行业从业年限
				},
				// 经营信息
				mbManagementInfo:{
					serviceContent:'',//经营服务内容
					managementType:'',//主要经营类型
					isAuthentication:'',//新农直报认证
					isLeading:'',//是否龙头企业
					level:'',//示范级别
					workers:'',//成员数量(人)
					managementFee:'',//经营流水(万元)
					// incomeFee:'',//农业净收入(万元)
					// totalFee:'',//经营主体总收益(万元)
					// businessScope:'',//经营范围
					salesSum:'',//年销售总收入
					netAsset:'',//净资产
					taxIncome:'',//纳税收入
					taxAmount:'',//纳税额
					farmerNum:'',//带农户数
					poorFarmerNum:'',//带动贫农数
				},
				// 企业发展信息
				development:{
					memberSize:'',//社员规模(户)
					capitalScale:'',//股逛金指规模(万元)
					inputFee:'',//产业投入(万元)
					circulatingLand:'',//流转土地(亩)
					industrialScale:'',//产业规模
					olantingLandScale:'',//种植土地规模(亩)
					plantingArieties:'',//种植品种
					plantingYield:'',//种植产量(吨)
					breedingArea:'',//养殖区(平方米)
					breed:'',//养殖品种
					yearOut:'',//年出栏(存栏)(头)
					measureArea:'',//种(养) 植面积
					serviceScope:'',//主体服务范围
					plantingLandType:'',//土地种植类型
				},
				// 选识产权
				property:{
					nuisanceless:'',//无公害认证
					green:'',//绿色产品认证
					organic:'',//有机产品认证
					trademark:'',//注册商标(名称)
					  patent:'',//专利证书
					 government:'',//政府绿标认证
					 geography:'',//农产品地理标志
				},
				// 经营现状
				mbManagement:{
					totalIncome:'',//
					totalPay:''//
				},
				// 土地经营是
				landManagement:{
					landType:'',//经营土地类型
					managementType:'',//经营方式
					landArea:'',//土地面积
					managementYears:'',//经营年限
					expireTime:'',//到期时间
					circulationPrice:'',//流转价格
				},
				// 主要经营项目
				businessItems:{
					mainProducts:'',//主营产品名称
					measureUnit:'',//计量单位
					quantity:'',//数量
					isRegistered:null,//是否注册商标
					isAuthentication:null,//是否获得认证
				},
				// 其他信息
				otherInfo:{
					council:null,// 理事会完整情况
					supervisory:null,//监事会完整情况
					warnCount:'',//行为告诫次数
					punishCount:'',//行政处罚次数
					defaultCount:'',//不履约次数
					dishonestyCount:'',//其他不诚信经营行为次数
					legalWarnCount:'',//法人被行政告诫次数
					legalPunishCount:'',//法人被行政处罚次数
					subsidy:'',//获得补助
					criminal:null,//是否被刑事处罚
					legalCriminal:null,//法人是否被刑事处罚
					black:null,//法人是否被纳入黑名单
					evaluate:'',// 经营不正常日常监管情况评价
					overdueLevel:'',// 日产监管2责任农业局评价
					rcjgqkpjs:'',// 日产监管3责任农业局评价
					taxInfo:null,//一年内有欠税信息
					// poorEvaluate:'',//日常监管不规范评价
					accountBook:null,//一年内财物为建立会计账薄
					standard:null,//一年内财务分配制度不规
					
					countyHonor:'',//主体县级荣誉次数
					cityHonor:'',//主体市级荣誉次数
					provincialHonor:'',//主体省级荣誉次数
					
				},
			};
		},
	};
</script>