<template>
    <div class="content-main finishedQualificationPage">
        <el-tabs v-model='activeName' :tab-position="tabPosition" @tab-click="activeClick">

            <el-tab-pane label="申请书" name="申请书">
                <!-- v-if="defaultIsShow" -->
				<span slot="label"
					><i
						class="circleStyle"
						
						
					></i
					>申请书</span
				>
				<table>
					<tr>
						<th
							colspan="4"
							class="thPad centerStyle"
							style="font-size:20px;font-weight:600;"
						>
							申请书
						</th>
					</tr>
					<tr>
						<td colspan="4">
							根据《粮食流通管理条例》相关规定,我单位自愿从事省级储备粮承储业务,现申请省级储备粮承储资格,并承诺对所提供的申报资料的真实性、准确定、完整性负责。
						</td>
					</tr>
				</table>

				<el-form
					ref="getsForm"
					:model="formData.getsForm"
					
					:inline="true"
					label-width="160px"
					style="margin-top:40px;"
				>
					<el-row>
						<el-col :span="12">
							<el-form-item
								label="法定代表人(签字):"
								class="curLabelStyle"
								prop="fddbr"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.getsForm.fddbr"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item
								label="联系电话:"
								class="curLabelStyle"
								prop="lxdh"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.getsForm.lxdh"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item
								label="企业经办人:"
								class="curLabelStyle"
								prop="qyjbr"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.getsForm.qyjbr"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item
								label="联系电话(手机):"
								class="curLabelStyle"
								prop="lxsj"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.getsForm.lxsj"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="21">
							<el-form-item
								label="申请日期:"
								class="curLabelStyle"
								prop="sqrq"
								style="float:right;margin-left:6px;"
							>
								<el-date-picker
									v-model="formData.getsForm.sqrq"
									style="width:86%;"
									placeholder="申请日期"
									type="date"
									value-format="yyyy-MM-dd"
									clearable
								>{{}}</el-date-picker>
							</el-form-item>
						</el-col>
					</el-row>
				</el-form>
			</el-tab-pane>
    
            <el-tab-pane label="企业基本情况" name='企业基本情况'>
                <span slot="label"><i class='circleStyle'></i>企业基本情况</span>
                <table border="1" class="tabStyle">
					<tr>
						<th colspan="4" class="thPad centerStyle">企业基本信息</th>
					</tr>
					<tr>
						<td   align="right">企业名称:</td>
						<td >{{ formData.companyName }}</td>
						<td   align="right">统一社会信用代码:</td>
						<td >{{ formData.creditCode }}</td>
					</tr>
					<tr>
						<td  align="right">法人代表:</td>
						<td>{{ formData.legalName }}</td>
						<td  align="right">联系电话:</td>
						<td>{{ formData.officePhone }}</td>
						
					</tr>
					<tr>
						<td  align="right">手机号码:</td>
						<td>{{ formData.phone }}</td>
						<td   align="right">电子信箱:</td>
						<td>{{ formData.email }}</td>
						
					</tr>
					<tr>
						<td align="right">传真号码:</td>
						<td>{{ formData.fax }}</td>
						<td  align="right">邮政编码:</td>
						<td>{{ formData.postalCode }}</td>
					</tr>
					<tr>
						<td  align="right">通讯地址:</td>
						<td >{{ formData.companyAddress }}</td>
						<td  align="right">企业性质:</td>
						<td>{{ formData.unitOfNatureName }}</td>
					</tr>
					<tr>
						
						<td  align="right">经营范围:</td>
						<td>
							{{
								formData.businessVarietyName instanceof Array
									? formData.businessVarietyName.join(',')
									: formData.businessVarietyName
							}}
						</td>
						<td align="right">主营业务:</td>
						<td>
							{{
								formData.unitPrimaryServiceName instanceof Array
									? formData.unitPrimaryServiceName.join(',')
									: formData.unitPrimaryServiceName
							}}
						</td>
					</tr>
					<tr>
						<td  align="right">注册时间:</td>
						<td>{{ dateFormat(formData.registerDate) }}</td>
						<td  align="right">注册资本（万元）:</td>
						<td>{{ formData.registerMoney }}</td>
						
					</tr>
					<tr>
						<td  align="right">企业总人数:</td>
						<td>{{ formData.totalNum }}</td>
						<td align="right">隶属关系:</td>
						<td>{{ dateFormat(formData.registerDate) }}</td>
						
					</tr>
					<tr>
						<td  align="right">专职保管员:</td>
						<td>{{ formData.registerMoney }}</td>
						<td align="right">专职检化验员:</td>
						<td>{{ formData.totalNum }}</td>
					</tr>
					<tr>
						<td align="right">有职业资格证书人员:</td>
						<td>{{ formData.registerMoney }}</td>
						<td  align="right">企业收储粮食主要品种:</td>
						<td>{{ formData.totalNum }}</td>
					</tr>
				</table><table border="1" class="tabStyle">
                    <tr>
                        <th colspan="6" class="thPad centerStyle">企业基本信息</th>
                    </tr>
                    <tr>
                        <td class="tabTit" width='150' align='right'>企业名称</td>
                        <td colspan="2">{{ formData.companyName }}</td>
                        <td class="tabTit" width='150' align='right'>统一社会信用代码</td>
                        <td colspan="2">{{ formData.creditCode }}</td>
                    </tr>
                    <tr>
                        <td class="tabTit" width='150' align='right'>法人代表</td>
                        <td>{{ formData.legalName }}</td>
                        <td class="tabTit" width='150' align='right'>联系电话</td>
                        <td>{{ formData.officePhone }}</td>
                        <td class="tabTit" width='150' align='right'>手机号码</td>
                        <td>{{ formData.phone }}</td>
                    </tr>
                    <tr>
                        <td class="tabTit" width='150' align='right'>电子信箱</td>
                        <td>{{ formData.email }}</td>
                        <td class="tabTit" width='150' align='right'>传真号码</td>
                        <td>{{ formData.fax }}</td>
                        <td class="tabTit" width='150' align='right'>邮政编码</td>
                        <td>{{ formData.postalCode }}</td>
                    </tr>
                    <tr>
                        <td class="tabTit" width='150' align='right'>通讯地址</td>
                        <td colspan="5">{{ formData.companyAddress }}</td>
                    </tr>
                    <tr>
                        <td class="tabTit" width='150' align='right'>企业性质</td>
                        <td>{{ formData.unitOfNatureName }}</td>
                        <td class="tabTit" width='150' align='right'>经营范围</td>
                        <!-- {{ formData.businessVarietyName ? formData.businessVarietyName.join(',') : '' }} -->
                        <td>{{ formData.businessVarietyName }}</td>
                        <td class="tabTit" width='150' align='right'>主营业务</td>
                        <!-- {{ formData.unitPrimaryServiceName ? formData.unitPrimaryServiceName.join(',') : '' }} -->
                        <td>{{ formData.unitPrimaryServiceName }}</td>
                    </tr>
                    <tr>
                        <td class="tabTit" width='150' align='right'>注册时间</td>
                        <td>{{ formData.registerDate }}</td>
                        <td class="tabTit" width='150' align='right'>注册资本（万元）</td>
                        <td>{{ formData.registerMoney }}</td>
                        <td class="tabTit" width='150' align='right'>企业总人数</td>
                        <td>{{ formData.totalNum }}</td>
                    </tr>
                </table>
                <table border="1" class="tabStyle borderNone">
                    <tr>
                        <th class="borderNone thPad centerStyle" colspan="6">企业储粮情况</th>
                    </tr>
                    <tr>
                        <td class="tabTit" width='165' align='right'>企业收储粮食主要品种</td>
                        <td colspan="5">{{ formData.storeShouldForm.storeType ? formData.storeShouldForm.storeType.join(',') : '' }}</td>
                    </tr>
                    <tr align="center">
                        <td class="tabTit thPad">序号</td>
                        <td class="tabTit thPad">储粮品种</td>
                        <td class="tabTit thPad">储粮总量（万吨）</td>
                        <td class="tabTit thPad">中央储备粮（万吨）</td>
                        <td class="tabTit thPad">地方储备粮（万吨）</td>
                        <td class="tabTit thPad">其他粮食（万吨）</td>
                    </tr>
                    <tr v-for="(item,index) in formData.storeShouldForm.tableGrain" :key="index" align="center">
                        <td>{{ index+1 }}</td>
                        <td>{{ item.grainType }}</td>
                        <td>{{ item.grainZL }}</td>
                        <td>{{ item.grainZy }}</td>
                        <td>{{ item.grainDf }}</td>
                        <td>{{ item.grainOther }}</td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="库区基本情况" name='库区基本情况'>
                <span slot="label"><i class='circleStyle'></i>库区基本情况</span>
                <table border="1" class="tabStyle">
                    <!-- <tr>
                        <th colspan="6" class="thPad">企业基本信息</th>
                    </tr> -->
                    <tr align='center'>
                        <td class="tabTit">内 容</td>
                        <td class="tabTit"  v-for="(item, index) in formData.editableTabs" :key="index">{{ item.tabName }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>库区名称</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">{{ item.formStoreHouse.nameKq }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>总仓容（万吨）</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">{{ item.formStoreHouse.totalArea }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>申请仓容（万吨）</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">{{ item.formStoreHouse.applyArea }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>库区占地面积（平方米）</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">{{ item.formStoreHouse.storeArea }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>有无铁路专用线</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isRoad == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>有无水运码头</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isWharf == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>紧邻公路类别</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">{{ item.formStoreHouse.roadClose }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>与紧邻公路距离（公里）</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">{{ item.formStoreHouse.roadDistance }}</td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>防洪标准是否不低于50年一遇</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isFlood == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>周围是否无污染源及易燃易爆场所</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isHarmful == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>有无消防水源</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isWater == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>有无消防设施</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isFire == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>有无汽车衡</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isScale == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr align='center'>
                        <td class="tabTit" width='300'>有无化验室</td>
                        <td v-for="(item, index) in formData.editableTabs" :key="index">
                            <i class="el-icon-check" v-if="item.formStoreHouse.isAssay == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="仓房基本情况" name='仓房基本情况'>
                <span slot="label"><i class='circleStyle'></i>仓房基本情况</span>
                <table border="1" class="tabStyle">
                    <tr>
                        <th colspan="25" class="thPad centerStyle">仓房基本情况表</th>
                    </tr>
                    <tr>
                        <th align="center" class="tabTit thPad">序号</th>
                        <th align="center" class="tabTit thPad">仓号</th>
                        <th align="center" class="tabTit thPad">仓型</th>
                        <th align="center" class="tabTit thPad">仓容（万吨）</th>
                        <th align="center" class="tabTit thPad">仓顶能否防漏</th>
                        <th align="center" class="tabTit thPad">仓墙能否防湿</th>
                        <th align="center" class="tabTit thPad">仓底能否防潮</th>
                        <th align="center" class="tabTit thPad">门窗是否严密</th>
                        <th align="center" class="tabTit thPad">仓房能否隔热保冷</th>
                        <th align="center" class="tabTit thPad">仓房能否散装储存</th>
                        <th align="center" class="tabTit thPad">有无防鼠防雀装置</th>
                        <th align="center" class="tabTit thPad">有无防火防盗措施</th>
                        <th align="center" class="tabTit thPad">有无机械通风设施</th>
                        <th align="center" class="tabTit thPad">能否密闭熏蒸杀虫</th>
                        <th align="center" class="tabTit thPad">有无粮情检测设备</th>
                        <th align="center" class="tabTit thPad">有无粮食智能出入库系统</th>
                        <th align="center" class="tabTit thPad">有无智能粮情测控系统</th>
                        <th align="center" class="tabTit thPad">有无智能安防监控系统</th>
                        <th align="center" class="tabTit thPad">有无粮库综合业务管理系统</th>
                        <th align="center" class="tabTit thPad">是否粮库智能化升级项目</th>
                        <th align="center" class="tabTit thPad">建设时间(竣工时间)</th>
                        <th align="center" class="tabTit thPad">是否改造</th>
                        <th align="center" class="tabTit thPad">最近一次主要设施改造时间</th>
                        <th align="center" class="tabTit thPad">最近一次改造说明</th>
                        <th align="center" class="tabTit thPad">其他说明</th>
                    </tr>
                    <tr v-for="(item,index) in formData.tableHouse" :key="index" align="center">
                        <td>{{ index+1 }}</td>
                        <td class="widthStyle1">{{ item.houseNum }}</td>
                        <td class="widthStyle1">{{ item.houseShape }}</td>
                        <td class="widthStyle1">{{ item.houseArea }}</td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseFL"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseFs"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseFc"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseYm"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseBL"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseStore"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseZz"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseCs"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseSs"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseSc"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseDevice"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseOutIn"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseCk"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseJk"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseGL"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseZn"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td class="widthStyle1">{{ item.houseOver }}</td>
                        <td>
                            <i class="el-icon-check" v-if="item.houseGz"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td class="widthStyle1">{{ item.houseDateGz }}</td>
                        <td><el-tooltip class="item" effect="dark" :content="item.houseGzExplain" placement="top" v-if="item.houseGzExplain"><p class="widthStyle2">{{ item.houseGzExplain }}</p></el-tooltip></td>
                        <td><el-tooltip class="item" effect="dark" :content="item.houseOtherExplain" placement="top" v-if="item.houseOtherExplain"><p class="widthStyle2">{{ item.houseOtherExplain }}</p></el-tooltip></td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="仓房改造说明" name="仓房改造说明">
				<span slot="label"
					><i
						class="circleStyle"
		
					></i
					>仓房改造说明</span
				>
				<el-form
				
					:model="formData.houseTitle"
					:inline="true"
					ref="houseTitle"
				
					label-width="140px"
				>
					<el-row>
						<el-col :span="12">
							<el-form-item label="企业名称:" prop="qymc">
								<el-input
									v-model="formData.houseTitle.qymc"
									clearable
									placeholder="请输入"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item label="企业代码:" prop="qydm">
								<el-input
									v-model="formData.houseTitle.qydm"
									clearable
									placeholder="请输入"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="24">
							<el-form-item label="仓房改造内容说明:" prop="cfgznrsm">
								<el-input
									v-model="formData.houseTitle.cfgznrsm"
									placeholder="请输入"
									:rows="15"
									style="width:720px;"
									type="textarea"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item label="填报人签名:" prop="tbrqm">
								<el-input
									v-model="formData.houseTitle.tbrqm"
									clearable
									placeholder="请输入"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item label="企业(盖章):" prop="gz">
								<el-input
									v-model="formData.houseTitle.gz"
									clearable
									placeholder="请输入"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item label="企业负责人签字:" prop="qyfzrqm">
								<el-input
									v-model="formData.houseTitle.qyfzrqm"
									clearable
									placeholder="请输入"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item label="日期" prop="rq">
								<el-input
									v-model="formData.houseTitle.rq"
									clearable
									placeholder="请输入"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
				</el-form>
				
			</el-tab-pane>
            <el-tab-pane label="主要储粮技术应用说明" name='主要储粮技术应用说明'>
                <span slot="label"><i class='circleStyle'></i>主要储粮技术应用说明</span>
                <table border="1" class="tabStyle">
                    <tr><td align='center'>通风降温技术应用及粮情检测技术应用简要说明</td></tr>
                    <tr>
                        <td><p class="tdHeight">{{ formData.grainTechnologyForm.technologyExplain1 }}</p></td>
                    </tr>
                    <tr><td align='center'>熏蒸杀虫技术应用简要说明</td></tr>
                    <tr>
                        <td><p class="tdHeight">{{ formData.grainTechnologyForm.technologyExplain2 }}</p></td>
                    </tr>
                    <tr><td align='center'>粮库智能化技术应用简要说明</td></tr>
                    <tr>
                        <td><p class="tdHeight">{{ formData.grainTechnologyForm.technologyExplain3 }}</p></td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="企业检化验条件表" name='企业检化验条件表'>
                <span slot="label"><i class='circleStyle'></i>企业检化验条件表</span>
                <table border="1" class="tabStyle">
                    <tr>
                        <td class="tabTit" width='250' align='right'>有无专用检化验室</td>
                        <td>
                            <i class="el-icon-check" v-if="formData.checkForm.isCheckRoom == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td class="tabTit" width='250' align='right'>能否检测粮食质量等级和储存品质</td>
                        <td>
                            <i class="el-icon-check" v-if="formData.checkForm.isCheckPz == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr v-if="formData.checkForm.isCheckRoom == 1">
                        <td class="tabTit" width='250' align='right'>检化验室建筑面积(平方米)</td>
                        <td>{{ formData.checkForm.checkArea }}</td>
                        <td class="tabTit" width='250' align='right'>能否筛查粮食主要食品安全指标</td>
                        <td>
                            <i class="el-icon-check" v-if="formData.checkForm.isCheckSafe == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                    </tr>
                    <tr v-else>
                        <td class="tabTit" width='250' align='right'>能否筛查粮食主要食品安全指标</td>
                        <td>
                            <i class="el-icon-check" v-if="formData.checkForm.isCheckSafe == 1"></i>
                            <i class="el-icon-close" v-else></i>
                        </td>
                        <td class="tabTit" width='250' align='right'></td>
                        <td></td>
                    </tr>
                </table>
                <table border="1" class="tabStyle borderNone">
                    <tr>
                        <th class="borderNone thPad centerStyle" colspan="5">拥有粮食检化验仪器情况</th>
                    </tr>
                    <tr align="center">
                        <td>序号</td>
                        <td>仪器名称</td>
                        <td>仪器规格</td>
                        <td>数量</td>
                        <td>备注</td>
                    </tr>
                    <tr v-for="(item,index) in formData.checkForm.tableDevice" :key="index" align="center">
                        <td>{{ index+1 }}</td>
                        <td>{{ item.deviceName }}</td>
                        <td>{{ item.deviceGg }}</td>
                        <td>{{ item.deviceNum }}</td>
                        <td>{{ item.deviceNote }}</td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="主要专业人员" name='主要专业人员'>
                <span slot="label"><i class='circleStyle'></i>主要专业人员</span>
                <table border="1" class="tabStyle">
                    <tr>
                        <th colspan="7" class="thPad centerStyle">主要专职保管人员</th>
                    </tr>
                    <tr align="center">
                        <td>序号</td>
                        <td>姓名</td>
                        <td>学历</td>
                        <td>专业</td>
                        <td>技术职称</td>
                        <td>资格证书名称</td>
                        <td>发证单位</td>
                    </tr>
                    <tr v-for="(item,index) in formData.tablePersonForm.tableBgPerson" :key="index" align="center">
                        <td>{{ index+1 }}</td>
                        <td>{{ item.name }}</td>
                        <td>{{ item.education }}</td>
                        <td>{{ item.major }}</td>
                        <td>{{ item.technical }}</td>
                        <td>{{ item.qualification }}</td>
                        <td>{{ item.unit }}</td>
                    </tr>
                    <tr>
                        <th class="borderNone thPad centerStyle" colspan="7">主要专职检化验人员</th>
                    </tr>
                    <tr align="center">
                        <td>序号</td>
                        <td>姓名</td>
                        <td>学历</td>
                        <td>专业</td>
                        <td>技术职称</td>
                        <td>资格证书名称</td>
                        <td>发证单位</td>
                    </tr>
                    <tr v-for="(item,index) in formData.tablePeopleForm.tableCheckPerson" :key="index" align="center">
                        <td>{{ index+1 }}</td>
                        <td>{{ item.name }}</td>
                        <td>{{ item.education }}</td>
                        <td>{{ item.major }}</td>
                        <td>{{ item.technical }}</td>
                        <td>{{ item.qualification }}</td>
                        <td>{{ item.unit }}</td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="主要仓储设备" name='主要仓储设备'>
                <span slot="label"><i class='circleStyle'></i>主要仓储设备</span>
                <table border="1" class="tabStyle">
                    <tr>
                        <th colspan="5" class="thPad centerStyle">主要仓储设备</th>
                    </tr>
                    <tr align="center">
                        <td>序号</td>
                        <td>设备名称</td>
                        <td>型号规格</td>
                        <td>数量</td>
                        <td>备注</td>
                    </tr>
                    <tr v-for="(item,index) in formData.mainStoreForm.tableStoreDevi" :key="index" align="center">
                        <td>{{ index+1 }}</td>
                        <td>{{ item.name }}</td>
                        <td>{{ item.model }}</td>
                        <td>{{ item.num }}</td>
                        <td>{{ item.note }}</td>
                    </tr>
                </table>
            </el-tab-pane>
            <el-tab-pane label="企业仓储管理情况" name='企业仓储管理情况'>
                <span slot="label"><i class='circleStyle'></i>企业仓储管理情况</span>
                <el-form
					ref="storeManagerForm"
					:model="formData.storeManagerForm"
					label-width="248px"
				>
				<span>安全事故情况:</span>
				<el-row style="margin-bottom:20px;">
					<el-col :span="12" >
						<el-form-item
							prop="sgfsd"
							label="事故发生地:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sgfsd"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item
							prop="sgfssj"
							label="事故发生时间:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sgfssj"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="12">
						<el-form-item
							prop="sglx"
							label="事故类型:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sglx"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item
							prop="sgdj"
							label="事故等级:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sgdj"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="12" >
						<el-form-item
							prop="sgssqk"
							label="事故损失情况:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sgssqk"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="12">
						<el-form-item
							prop="ryssqk"
							label="人员受伤情况:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.ryssqk"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="12" >
						<el-form-item
							prop="ryswqk"
							label="人员死亡情况:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.ryswqk"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item
							prop="sbr"
							label="上报人:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sbr"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="24" >
						<el-form-item
							prop="sgfsyy"
							label="事故发生原因:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sgfsyy"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
					
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="24" >
						<el-form-item
							prop="sgclqk"
							label="事故处理情况:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sgclqk"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
					
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="24" >
						<el-form-item
							prop="sbsj"
							label="上报时间:"
							class="itemBottomStyle"
						>
							<el-input
								type="textarea"
								v-model="formData.storeManagerForm.sbsj"
								resize="none"
								placeholder="请输入"
							></el-input>
						</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="22" >
						<el-form-item label="两年内是否没有发生违反国家政策法规记录:"
								prop="isManagerBL"
								class="itemStyle"
								label-width="450px"
								>
								<el-radio
									v-model="formData.storeManagerForm.isManagerBL"
									label="1"
									>是</el-radio
								>
								<el-radio
									v-model="formData.storeManagerForm.isManagerBL"
									label="0"
									>否</el-radio
								>
							</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="24" >
						<el-form-item label="违反政策法规情况:"
								prop="ffzcfgqk"
								class="itemStyle"
								label-width="250px"
								>
								<el-input
								type="textarea"
								v-model="formData.storeManagerForm.ffzcfgqk"
								resize="none"
								placeholder="请输入"
							></el-input>
							</el-form-item>
					</el-col>
				</el-row>
				<el-row style="margin-bottom:20px;">
					<el-col :span="24" >
						<el-form-item label="处理决定:"
								prop="clgd"
								class="itemStyle"
								label-width="250px"
								>
								<el-input
								type="textarea"
								v-model="formData.storeManagerForm.clgd"
								resize="none"
								placeholder="请输入"
							></el-input>
							</el-form-item>
					</el-col>
				</el-row>
			
				</el-form>
            </el-tab-pane>
            <el-tab-pane label="企业财务状况" name='企业财务状况'>
                <span slot="label"><i class='circleStyle'></i>企业财务状况</span>
                <table border style="max-width:1000px;min-width:1000px;text-align:center;" :model="formData.financingForm.tableFinancingData">
						<tr>
							<td>项目</td>
							<td>行次</td>
							<td>其他企业下拉</td>
						</tr>
						<tr>
							<td>一、营业收入</td>
							<td>1</td>
							<td>{{formData.financingForm.tableFinancingData.jsdj}}</td>
						</tr>
						<tr>
							<td>1、粮油销售收入</td>
							<td>2</td>
							<td>{{formData.financingForm.tableFinancingData.xssr}}</td>
						</tr>
						<tr>
							<td>二、营业成本</td>
							<td>3</td>
							<td>{{formData.financingForm.tableFinancingData.yycb}}</td>
						</tr>
						<tr>
							<td>1、粮油销售成本</td>
							<td>4</td>
							<td>{{formData.financingForm.tableFinancingData.lyxscb}}</td>
						</tr>
						<tr>
							<td>三、费用总额</td>
							<td>5</td>
							<td>{{formData.financingForm.tableFinancingData.fyze}}</td>
						</tr>
						<tr>
							<td>其中:1、利息</td>
							<td>6</td>
							<td>{{formData.financingForm.tableFinancingData.lx}}</td>
						</tr>
						<tr>
							<td>2、工资和社保</td>
							<td>7</td>
							<td>{{formData.financingForm.tableFinancingData.gzhsb}}</td>
						</tr>
						<tr>
							<td>3、保管费</td>
							<td>8</td>
							<td>{{formData.financingForm.tableFinancingData.bgf}}</td>
						</tr>
						<tr>
							<td>5、运杂费</td>
							<td>9</td>
							<td>{{formData.financingForm.tableFinancingData.yzf}}</td>
						</tr>
						<tr>
							<td>6、折旧费及摊销</td>
							<td>10</td>
							<td>{{formData.financingForm.tableFinancingData.zkf}}</td>
						</tr>
						<tr>
							<td>四、税金及附加</td>
							<td>11</td>
							<td>{{formData.financingForm.tableFinancingData.sj}}</td>
						</tr>
						<tr>
							<td>五、营业外收支净额</td>
							<td>12</td>
							<td>{{formData.financingForm.tableFinancingData.yywsz}}</td>
						</tr>
						<tr>
							<td>1、政府补助</td>
							<td>13</td>
							<td>{{formData.financingForm.tableFinancingData.zfbt}}</td>
						</tr>
						<tr>
							<td>(1) 粮油补贴收入</td>
							<td>14</td>
							<td>{{formData.financingForm.tableFinancingData.lybtsr}}</td>
						</tr>
						<tr>
							<td>(2) 其他补助</td>
							<td>15</td>
							<td>{{formData.financingForm.tableFinancingData.qtbz}}</td>
						</tr>
						<tr>
							<td>六、其他项目收支净额(损失以"-"填列)</td>
							<td>16</td>
							<td>{{formData.financingForm.tableFinancingData.qtxmszje}}</td>
						</tr>
						<tr>
							<td>七、利润总额</td>
							<td>17</td>
							<td>{{formData.financingForm.tableFinancingData.lrze}}</td>
						</tr>
						<tr>
							<td>减: 所得税费用</td>
							<td>18</td>
							<td>{{formData.financingForm.tableFinancingData.sdsfy}}</td>
						</tr>
						<tr>
							<td>八、净利润</td>
							<td>19</td>
							<td>{{formData.financingForm.tableFinancingData.jlr}}</td>
						</tr>
						<tr>
							<td>九、资产总额</td>
							<td>20</td>
							<td>{{formData.financingForm.tableFinancingData.zcze}}</td>
						</tr>
						<tr>
							<td>其中: 流动资产</td>
							<td>21</td>
							<td>{{formData.financingForm.tableFinancingData.ldzc}}</td>
						</tr>
						<tr>
							<td>其中:1、存货</td>
							<td>22</td>
							<td>{{formData.financingForm.tableFinancingData.ch}}</td>
						</tr>
						<tr>
							<td>其中:粮油存货</td>
							<td>23</td>
							<td>{{formData.financingForm.tableFinancingData.lych}}</td>
						</tr>
						<tr>
							<td>2、货币资金</td>
							<td>24</td>
							<td>{{formData.financingForm.tableFinancingData.hbzj}}</td>
						</tr>
						<tr>
							<td>3、应收及预付帐款</td>
							<td>25</td>
							<td>{{formData.financingForm.tableFinancingData.ysjfzk}}</td>
						</tr>
						<tr>
							<td>4、其他应收款</td>
							<td>26</td>
							<td>{{formData.financingForm.tableFinancingData.ysqtk}}</td>
						</tr>
						<tr>
							<td>其中: 应收补贴款</td>
							<td>27</td>
							<td>{{formData.financingForm.tableFinancingData.ysbtk}}</td>
						</tr>
						<tr>
							<td>十、负债总额</td>
							<td>28</td>
							<td>{{formData.financingForm.tableFinancingData.fzze}}</td>
						</tr>
						<tr>
							<td>其中: 流动负债</td>
							<td>29</td>
							<td>{{formData.financingForm.tableFinancingData.ldfz}}</td>
						</tr>
						<tr>
							<td>其中: 1、短期借款</td>
							<td>30</td>
							<td>{{formData.financingForm.tableFinancingData.dqjk}}</td>
						</tr>
						<tr>
							<td>其中: 粮油借款</td>
							<td>31</td>
							<td>{{formData.financingForm.tableFinancingData.lyjk}}</td>
						</tr>
						<tr>
							<td>2、应付及预收帐款</td>
							<td>32</td>
							<td>{{formData.financingForm.tableFinancingData.yfjys}}</td>
						</tr>
						<tr>
							<td>3、其他应付款</td>
							<td>33</td>
							<td>{{formData.financingForm.tableFinancingData.qtyfk}}</td>
						</tr>
						<tr>
							<td>十一、所有者权益</td>
							<td>34</td>
							<td>{{formData.financingForm.tableFinancingData.syzqy}}</td>
						</tr>
						<tr>
							<td>其中:实收资本</td>
							<td>35</td>
							<td>{{formData.financingForm.tableFinancingData.sszb}}</td>
						</tr>
						<tr>
							<td>其中:国有资本</td>
							<td>36</td>
							<td>{{formData.financingForm.tableFinancingData.gyzb}}</td>
						</tr>
						<tr>
							<td>十二、已交税金</td>
							<td>37</td>
							<td>{{formData.financingForm.tableFinancingData.yjsj}}</td>
						</tr>
						<tr>
							<td>1、应交费用性税金(土地使用税、房产税)</td>
							<td>38</td>
							<td>{{formData.financingForm.tableFinancingData.yjfyxsj}}</td>
						</tr>
						<tr>
							<td>2、已交费用性税金(土地使用税、房产税)</td>
							<td>39</td>
							<td>{{formData.financingForm.tableFinancingData.yjfyxsj}}</td>
						</tr>
						<tr>
							<td>补充资料</td>
							<td>40</td>
							<td>{{formData.financingForm.tableFinancingData.bczl}}</td>
						</tr>
						<tr>
							<td>本年收购资金累计筹集金额</td>
							<td>41</td>
							<td>{{formData.financingForm.tableFinancingData.bnsgzjlj}}</td>
						</tr>
						<tr>
							<td>(1) 政策性贷款</td>
							<td>43</td>
							<td>{{formData.financingForm.tableFinancingData.zcxdk}}</td>
						</tr>
						<tr>
							<td>(2) 备用保证基金项下贷款</td>
							<td>44</td>
							<td>{{formData.financingForm.tableFinancingData.bybzjxxdk}}</td>
						</tr>
						<tr>
							<td>2、其他金融机构贷款</td>
							<td>45</td>
							<td>{{formData.financingForm.tableFinancingData.qtjrjgdk}}</td>
						</tr>
						<tr>
							<td>xxx银行</td>
							<td>46</td>
							<td>{{formData.financingForm.tableFinancingData.yh}}</td>
						</tr>
						<tr>
							<td>可增加行</td>
							<td>47</td>
							<td>{{formData.financingForm.tableFinancingData.kzjh}}</td>
						</tr>
						<tr>
							<td>3、自筹</td>
							<td>48</td>
							<td>{{formData.financingForm.tableFinancingData.zc}}</td>
						</tr>
					</table>
            </el-tab-pane>
            <el-tab-pane
				label="承储资格企业补充申请部分仓房粮食类资格附加表"
				name="承储资格企业补充申请部分仓房粮食类资格附加表"
			>
				<span slot="label" style="width:100px;display:inline-block;height:40px;"
					><i
						class="circleStyle"
					></i
					>承储资格企业补充申请部分仓房粮食类资格附加表</span
				>
				<p>
					注:本表仅供部分仓房已经取得承储资格得企业补充申请时使用,尚未取得省级储备粮承储资格得企业无需填报此表。<span
						style="float:right"
						>单位:万吨</span
					>
				</p>
				
				<el-form ref="lasttwo"
					:model="formData.lasttwo"
					:inline="true"
					label-width="160px"
					style="margin-top:40px;">
					<el-row>
						<el-col :span="24">
							<el-form-item
								label="企业名称:"
								class="curLabelStyle"
								prop="qymc"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.qymc"
								></el-input>
							</el-form-item>
						</el-col>
						
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item
								label="证书编号:"
								class="curLabelStyle"
								prop="zsbh"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.zsbh"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item
								label="企业代码:"
								class="curLabelStyle"
								prop="zsbh"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.qydm"
								></el-input>
							</el-form-item>
						</el-col>
						
					</el-row>
					<el-row>
						<el-col :span="12">
							<el-form-item
								label="企业总仓容:"
								class="curLabelStyle"
								prop="qyzcr"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.qyzcr"
								></el-input>
							</el-form-item>
						</el-col>
						<el-col :span="12">
							<el-form-item
								label="取得资格仓容:"
								class="curLabelStyle"
								prop="qdzgcr"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.qdzgcr"
								></el-input>
							</el-form-item>
						</el-col>
						
					</el-row>
					<el-row>
						
						<el-col :span="24">
							<el-form-item
								label="取得资格仓号:"
								class="curLabelStyle"
								prop="qdzgch"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.qdzgch"
								></el-input>
							</el-form-item>
						</el-col>
						
					</el-row>
					<el-row>
						
						<el-col :span="24">
							<el-form-item
								label="本次拟申请资格仓容:"
								class="curLabelStyle"
								prop="bcnsqzgcr"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.bcnsqzgcr"
								></el-input>
							</el-form-item>
						</el-col>
						
					</el-row>
					<el-row>
						<el-col :span="24">
							<el-form-item
								label="本次拟申请资格仓号:"
								class="curLabelStyle"
								prop="bcnsqzgcr"
							>
								<el-input
									type="text"
									placeholder="请输入"
									v-model="formData.lasttwo.bcnsqzgch"
								></el-input>
							</el-form-item>
						</el-col>
					</el-row>
				</el-form>
			</el-tab-pane>
            <el-tab-pane label="附件" name="附件">
				<span slot="label" style="width:100px;display:inline-block;height:40px;"
					><i
						class="circleStyle"
					></i
					>附件</span
				>
				<p>附件下载:</p>
				<el-form
					ref="fileso"
					:model="formData.fileso"
					label-width="260px"
					align="left"
				>
					<el-form-item label="(1) 企业基本情况:" v-model="formData.fileso.fjid1">
						 <a @click="downLoadFile(formData.fileso.fjid1&&formData.fileso.fjid1.id)" style="cursor:pointer">{{formData.fileso.fjid1&&formData.fileso.fjid1.name}}</a>
                    
					</el-form-item>
					<el-form-item label="(2) 库区总平面示意图:" v-model="formData.fileso.fjid2">
						 <a @click="downLoadFile(formData.fileso.fjid2&&formData.fileso.fjid2.id)" style="cursor:pointer">{{formData.fileso.fjid2&&formData.fileso.fjid2.name}}</a>
                        
					</el-form-item>

					<el-form-item
						label="(3) 企业营业执照和税务登记证复印:"
						v-model="formData.fileso.fjid3"
					>
                    <a @click="downLoadFile(formData.fileso.fjid3&&formData.fileso.fjid3.id)" style="cursor:pointer">{{formData.fileso.fjid3&&formData.fileso.fjid3.name}}</a>
						
					</el-form-item>
					<el-form-item
						label='(4) "一符四无"粮库证明材料:'
						v-model="formData.fileso.fjid4"
					>
                       <a @click="downLoadFile(formData.fileso.fjid4&&formData.fileso.fjid4.id)" style="cursor:pointer">{{formData.fileso.fjid4&&formData.fileso.fjid4.name}}</a>
						
					</el-form-item>
					<el-form-item label="(5) 企业资信证明复印件" v-model="formData.fileso.fjid5">
						   <a @click="downLoadFile(formData.fileso.fjid5&&formData.fileso.fjid5.id)" style="cursor:pointer">{{formData.fileso.fjid5&&formData.fileso.fjid5.name}}</a>
					</el-form-item>
					<el-form-item
						label="(6) 资产负债表和损益表复印件"
						v-model="formData.fileso.fjid6"
					>
						<a @click="downLoadFile(formData.fileso.fjid6&&formData.fileso.fjid6.id)" style="cursor:pointer">{{formData.fileso.fjid6&&formData.fileso.fjid6.name}}</a>
					</el-form-item>
					<el-form-item
						label="(7) 从业人员职业资格证书复印件"
						v-model="formData.fileso.fjid7"
					>
                       <a @click="downLoadFile(formData.fileso.fjid7&&formData.fileso.fjid7.id)" style="cursor:pointer">{{formData.fileso.fjid7&&formData.fileso.fjid7.name}}</a>
						
					</el-form-item>
				</el-form>
			</el-tab-pane>
            <el-tab-pane label="审核" name="审核">
              
				<span slot="label"><i class="circleStyle"></i>审核</span>
				<table border="1" class="tabStyle" :model="editable" v-if="shens">
                    <tr align="center">
                        <td width='300'>审核部门</td>
                        <td width='300'>审核人</td>
                        <td  width='300'>审核结果</td>
                         <td width="300" >审核日期</td>
                         <td  width='300'>审核意见</td>
                         <td  width='300'>附件上传</td>
                    </tr>
                    <!-- <tr>
                        <th colspan="6" class="thPad">企业基本信息</th>
                    </tr> -->
                    <tr align='center'>
                        <td>
                        <el-input
                            type="text"
                            placeholder="请输入"
                            v-model="editable.department"
                        ></el-input>
                        </td>
                        <td>
                            <el-input
                            type="text"
                            placeholder="请输入"
                            v-model="editable.assigneeName"
                        ></el-input>
                        </td>
                        <td>
                            <el-radio-group v-model="editable.status">
                                <el-radio :label="1">通过</el-radio>
                                <el-radio :label="2">驳回</el-radio>
                            </el-radio-group>
                            
                        </td>
                        <td>
                            <!-- value-format="yyyy-MM-dd" -->
                            <el-date-picker
                                v-model="editable.startTime"
                                style="width:86%;"
                                placeholder="申请日期"
                                type="date"
                                
                                clearable
                            ></el-date-picker>
                        </td>
                        <td>
                            <el-input
                            type="text"
                            placeholder="请输入"
                            v-model="editable.message"
                        ></el-input>
                        </td>
                        <td>
                         <template>
							
						<el-upload
						 v-model="editable.fjid"
							:action="fileApi"
							:limit="1"
							:with-credentials="true"
							:headers="myHeader"
							:fileList="fileList"
							:on-remove="handleFileRemove"
							:on-success="handleFileSuccess8"
							:on-error="handlerError"
							:on-exceed="handleExceed"
							
						>
							<el-button size="small" type="text"  >上传</el-button>
						</el-upload>
					
						 </template>
						
                         </td>
   
                    </tr>
                </table>
				<table border="1" class="tabStyle" :model="editable" v-if="chas">
                    <tr align="center">
                        <td width='300'>审核部门</td>
                        <td width='300'>审核人</td>
                        <td  width='300'>审核结果</td>
                         <td width="300" >审核日期</td>
                         <td  width='300'>审核意见</td>
                         <td  width='300'>附件下载</td>
                    </tr>
                    <!-- <tr>
                        <th colspan="6" class="thPad">企业基本信息</th>
                    </tr> -->
                    <tr align='center' v-for="(item,index) in editable" :key="index">
                        <td>
                        {{item.department}}
                        </td>
                        <td>
                            {{item.assigneeName}}
                        </td>
                        <td>
                            <el-radio-group v-model="item.status">
                                <el-radio :label="1">通过</el-radio>
                                <el-radio :label="2">驳回</el-radio>
                            </el-radio-group>
                            
                        </td>
                        <td>
                            <!-- value-format="yyyy-MM-dd" -->
                            <el-date-picker
                                v-model="item.startTime"
                                style="width:86%;"
                                placeholder="申请日期"
                                type="date"
                                
                                clearable
                            ></el-date-picker>
                        </td>
                        <td>
                            {{item.comment}}
                        </td>
                        <td>

                           <a @click="downLoadFile(item.fjid)" style="cursor:pointer">{{item.fjid}}</a>
                         </td>
   
                    </tr>
                </table>
			</el-tab-pane>
           
        </el-tabs>
        <el-row>
            <el-col :span="24" style="text-align: center;margin-top: 18px;">
                <el-button @click="saves" class="iconfont icontijiao" type="primary" v-if="cretus">提交</el-button>
                <el-button @click="back" class="iconfont iconfanhui" type="primary">返回</el-button>
            </el-col>
        </el-row>
    </div>
</template>
<script>
import {
	getQualificationStatus,
    getCompanyInfo,
    getZgDetail,downLoads,
	saveQualification,
	getZgStatistics,
    dictionaryFun,
    shenhe
} from '@/api/grainCoManage/warehousingLogistics/storageQualific'
import { FileApi } from '@/api/index'
import { getToken } from '@/utils/auth'
export default {
    computed: {
		myHeader() {
			return {
				token: getToken()
			}
		}
	},
    data() {
        return {
			fileList: [], // 文件列表

			fileApi: FileApi + '/file/upload',
			wjids: '',
			chas:false,
			shens:true,
            areaCode: '',
            creditCode: '', //企业信用代码
            processId:null,
            taskId:null,
            taskName:null,
            event:null,
            cretus:false,
            radio:'1',
             fromId:"",
             fromIds:"",
            isSee:"",
            fileList: [], // 文件列表
            wjids: '',
            activeName: '申请书',
            tabPosition: 'right',
            editable:{
                shbm:sessionStorage.getItem("orgName"),
                shr:sessionStorage.getItem("userName")
            },
            formData: {//几个tab的大对象
                getsForm: { // 申请书
					// fddbr: '',
					// lxdh: '',
					// qyjbr: '',
					// lxdh: '',
					// sqrq: ''
                },
                
                fileso:{

                },
                lasttwo:{

                },
                houseTitle:{

                },
                elevenChanges:{},
                companyName: '',//企业名称
                creditCode: '',//统一社会信用代码
                legalName: '',//法人代表
                officePhone: '',//联系电话
                phone: '',//手机号码
                email: '',//电子信箱
                fax: '',//传真号码
                postalCode: '',//邮政编码
                companyAddress: '',//通讯地址
                unitOfNatureName: '',//企业性质
                businessVarietyName: [],//经营范围
                unitPrimaryServiceName: [],//主营业务
                registerDate: '',//注册时间
                registerMoney: '',//注册资本（万元）
                // totalNum: '',//企业总人数
              storeShouldForm: {
                storeType: [],//企业收储粮食主要品种
                tableGrain: []//当前储粮品种表格
			  },
			  wjid8:"",
              editableTabs: [
                  {
                      tabName: '主库区',
                      formStoreHouse: {
                            nameKq: '',//库区名称
                            totalArea: '',//总仓容
                            applyArea: '',//申请仓容
                            storeArea: '',//库区占地面积
                            isRoad: '0',//有无铁路专用线
                            isWharf: '0',//有无水运码头
                            roadClose: '',//紧邻公路类别
                            roadDistance: '',//与紧邻公路距离（公里）
                            isFlood: '0',//防洪标准是否不低于50年一遇
                            isHarmful: '0',//周围是否无污染源及易燃易爆场所
                            isWater: '0',//有无消防水源
                            isFire: '0',//有无消防设施
                            isScale: '0',//有无汽车衡
                            isAssay: '0'//有无化验室
                      }
                  }
              ],//库区基本情况
              tableHouse: [],//仓房基本情况
                grainTechnologyForm: {//主要储粮技术应用说明
                    technologyExplain1: '',
                    technologyExplain2: '',
                    technologyExplain3: ''
                },
                checkForm: {//企业检化验条件表表格上边的表单
                    isCheckRoom: '0',//有无专用检化验室
                    isCheckPz: '0',//能否检测粮食质量等级和储存品质
                    checkArea: '',//检化验室建筑面积
                    isCheckSafe: '0',//能否筛查粮食主要食品安全指标
                    tableDevice: []//企业检化验条件表表格
                },
                tablePersonForm: {
                    tableBgPerson: []//主要专职保管人员
                },
                tablePeopleForm: {
                    tableCheckPerson: []//主要专职检化验人员
                },
                mainStoreForm: {
                    tableStoreDevi: [],//主要仓储设备
                },
                storeManagerForm: {//企业仓储管理情况
                    isManagerBL: '0',//“一符四无”粮仓比例是否达到100%
                    isManagerPd: '',//评定单位
                    isManagerSafe: '1',//两年内是否没有发生储粮安全事故
                    isManagerSafeSg: '',//两年内是否没有发生储粮安全事故：事故情况
                    isManagerSafeDeal: '',//两年内是否没有发生储粮安全事故：处理决定
                    isManagerSc: '1',//两年内是否没有发生安全生产事故
                    isManagerScSg: '',//两年内是否没有发生安全生产事故；事故情况
                    isManagerScDeal: '',//两年内是否没有发生安全生产事故；处理决定
                    isManagerFg: '1',//两年内是否没有发生违反国家政策法规记录
                    isManagerFgQk: '',//违反政策法规情况
                    isManagerFgDeal: ''//两年内是否没有发生违反国家政策法规记录：处理决定
                },
                financingForm: {//企业财务状况
                    mainNote: '',//近两年是否有重大经营性亏损及其说明
                    tableFinancingData: [
                        {},
                        {}
                    ]//近两年财务报表
                }
            }
        }
    },
   
    // props: ['fromId','isSee'],
    created() {
        if (this.$route.query.from == 'zgApply') {
			this.isSee = 'seeZgDetail'
			this.activeName="申请书"
            this.fromIds = this.$route.query.id
			this.zgzbh = this.$route.query.zgzbh
		} if(this.$route.query.from == 'zgApplyshenhe'){
			this.activeName="审核"
			this.cretus = true
            this.isSee = 'shenheZgDetail'
            this.taskId = this.$route.query.taskId,
            this.taskName = this.$route.query.taskName,
            this.processId = this.$route.query.lcslId,
			this.fromId = this.$route.query.id
			this.zgzbh = this.$route.query.zgzbh
        }else {
			let creditCode = this.$route.query.creditCode
			let userCreditCode = this.$route.query.userCreditCode
			this.fromId = this.$route.query.procInstId //当前数据的id
		}
        this.getInitInfo()
        this.areaCode = sessionStorage.getItem('areaCode')
		this.creditCode = sessionStorage.getItem('tyshxydm') //信用代码
		//tab位置
		const caseTabMark = sessionStorage.getItem('caseTabMark')
		// if (caseTabMark != '承储资格申请' && caseTabMark != '查看资格') {
		// 	this.activeName = '承储资格申请'
		// 	// this.getList() //检测标准列表
		// } else {
		// 	this.activeName = caseTabMark
		// 	if (caseTabMark == '承储资格申请') {
		// 		// this.getList()
		// 	} else if (caseTabMark == '查看资格') {
		// 		this.getInitInfo()
		// 	}
		// }
		this.getCheckType(8041, 'typeZgData')
		this.getCheckType(8042, 'typeYwData')
		this.getCheckType(8043, 'applyStatusData')
    },
    methods: {
		
        dateFormat(time) {
			if (time) {
				var day = time.split('T')
				//获取日期部分的年月日
				var days = day[0].split('-')
				return days[0] + '-' + days[1] + '-' + days[2]
			} else {
				return '--'
			}
		},
        getCheckType(num, curArr) {
			//获取检验类别
			dictionaryFun(num).then((res) => {
				if (res.infoCode == 200) {
					this[curArr] = res.data
				} else {
					this.$message({
						message: res.msg,
						type: 'error',
						duration: 2000
					})
				}
			})
		},
        saves(){
            if(this.editable.shjg == 1){
                this.event = "同意"
            }if(this.editable.shjg == 2){
                this.event = "驳回"
			}
			console.log(this.wjid8,"899")
            let data = {
                ...this.editable,
                event:this.event,
                message:this.editable.message,
                processId:this.processId,
                status:this.editable.status,
				statusKey:"status",
				fjid:this.wjid8,
                userId:sessionStorage.getItem("userCode"),
                userName:sessionStorage.getItem("userName"),
                taskId:this.taskId,
                taskName:this.taskName

            }
            shenhe(data).then(res => {
                console.log(res.data,"9090")
                if (res.infoCode === 200) {
                    this.$message.success("提交成功")
                    this.$router.push({path:
					'/grainCoManage/warehousingLogistics/storageQualific/index'})
				}else{
                   this.$message.error("提交失败") 
                }
            })

        },
        activeClick(val){
            if(this.$route.query.from == 'zgApplyshenhe' && val.name == '审核'){
                this.cretus = true
            }
        },
        back() {
			this.$router.back(-1)
		},
        xiazai(row) {
			var a = document.createElement('a')
			// 设置图片地址
			downLoads(row.fjid)
				.then((res) => {
					if (res.infoCode === 200) {
						a.download = '附件'
						a.href = res.data
						a.click()
					}
				})
				.catch((err) => {
					console.log(err)
				})
		},
		downLoadFile(id) {
      window.open(`${FileApi}/file/download?id=${id}`);
    },
        getFileDetail() {
           console.log(this.fjid,"222222fjid22222")
			downloadFile(this.fjid)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},getFileDetail2() {
     
			downloadFile(this.fjid2)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},getFileDetail3() {
     
			downloadFile(this.fjid3)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},getFileDetail4() {
     
			downloadFile(this.fjid4)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},getFileDetail5() {
     
			downloadFile(this.fjid5)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},getFileDetail6() {
     
			downloadFile(this.fjid6)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},getFileDetail7() {
     
			downloadFile(this.fjid7)
				.then((res) => {
					if (res.infoCode === 200) {
						this.fileList = [
							{
								url: res.data.link,
								name: res.data.name
							}
						]
						return
					}
					this.$message.error('获取文件信息失败')
				})
				.catch((err) => {
					this.$message.error('获取文件信息失败')
				})
		},
        handleFileSuccess(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids = this.formData.fileso.fjid
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},
		handleFileSuccess8(res, file,model) {
			if (res.infoCode === 200) {
				console.log('res,file upload',res.data)
				this.wjid8 = res.data.id
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},
		handleFileSuccess2(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids2 = this.formData.fileso.fjid2
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},
		handleFileSuccess3(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids = this.formData.fileso.fjid3
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},
		handleFileSuccess4(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids = this.formData.fileso.fjid4
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},handleFileSuccess5(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids = this.formData.fileso.fjid5
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},handleFileSuccess6(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids = this.formData.fileso.fjid6
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},handleFileSuccess7(res, file,model) {
			if (res.infoCode === 200) {
				this.wjids = this.formData.fileso.fjid7
				return
			}
			this.fileList = []
			this.$message.error(res.msg || '上传失败,请重试')
		},
        handleExceed(file, fileList) {
			this.$message.warning(`当前限制上传数量为1`)
		},
		handlerError() {
			this.$message.error('上传失败,请重试')
		},
        handleFileRemove(file, fileList) {
			this.wjids = ''
        },
        handlerDialogClose() {
			this.fileList = []
			this.tableDataspush = []
			// this.$refs.ruleForm.resetFields();
			// this.$ShowSeal("", 0);
		},
        getInitInfo() {
            if(this.isSee == 'seeZgDetail') {
				this.shens = false
				this.chas = true
                getZgDetail(this.fromIds).then(res => {
                    if(res.infoCode == 200) {
						
                        this.formData = JSON.parse(res.data.sqxx)
                        this.editable = res.data.historyVOs
                        this.editable.message = res.data.historyVOs.comment
                        
                        console.log(res.data,"9090historyVOs")
                        console.log(this.formData.fileso,"file")
                    }else {
                        this.$message({
                            message: res.msg,
                            type: 'error',
                            duration: 2000
                        })
                    }
                })
                
            }if(this.isSee == 'shenheZgDetail'){
				this.editable.department = sessionStorage.getItem("orgName")
				this.editable.assigneeName = sessionStorage.getItem("userName")
                getZgDetail(this.fromId).then(res => {
                    if(res.infoCode == 200) {
                        console.log(res.data.historyVOs,"shenghehistoryVOs")
                        this.formData = JSON.parse(res.data.sqxx)
                        console.log(this.formData.fileso,"file")
                    }else {
                        this.$message({
                            message: res.msg,
                            type: 'error',
                            duration: 2000
                        })
                    }
                })
            }
        }
    }
}
</script>
<style lang="scss" scoped>
    .seeZgPage{
        .tit{
            margin-bottom: 20px;
        }
        .circleStyle {
            display: inline-block;
            margin-right: 4px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #67C23A;
        }
        .tabStyle {
            width: 100%;
            height: 100%;
            border-collapse: collapse;
            border-spacing: 0;
            font-size: 14px;
            border: 1px solid #ccc;
            td, .thPad {
                padding: 10px;
            }
            .tabTit {
                font-weight: 500;
                font-size: 14px;
            }
        }
        .borderNone {
            border-top: none;
        }
        .el-tab-pane:nth-child(3) {
            overflow-x: auto;
        }
        .widthStyle1{
            width: auto;
            min-width: 110px;
        }
        .widthStyle2 {
            width: 110px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .tdHeight{
            min-height: 100px;
        }
        .centerStyle {
            text-align: center;
        }
    }
</style>


