<style lang="less">
</style>
<template>
  <div>
  <Tabs size="small" @on-click="handlTabsNei">
    <!-- <TabPane label="常用事项">
      <Table style="margin: 1px" height="360" :columns="columns1" :data="data2"></Table>
    </TabPane> -->
    <TabPane :label="item.name" v-for="(item, index) in itemlist" v-bind:key="index" :name="'' + index" :index="index">
      <Table v-if="item.name != '房产'" style="margin: 1px" height="360" ref="tableList" :columns="columns2" :data="tablelist" @on-expand="openTable">
        <template slot-scope="{ row }" slot="text">
          {{row.text}}
          <Tag style="margin-left:10px" color="purple" v-if="row.type_icon">{{row.type_icon}}</Tag>
        </template>
        <template slot-scope="{ row }" slot="buttons">
          <Button type="success" class="mr5" size="small" @click="getItemNotice(row)">办理</Button>
          <Button v-if="row.type_name == '社会救助' && row.id !== '11210101000000MZJD5212000327000'" type="primary" class="mr5" size="small" @click="dbWuMi(row)">免密登录</Button>
          <Button type="info" class="mr5" size="small" v-show="row.id=='11210101000000MZJD5212000330000'" @click="stodo(row)">收受分离</Button>
          <Button type="info" class="mr5" size="small" v-show="row.id=='11210101000000RSJD5212000233000'" @click="employmentPrint(row)">打印</Button>
          <!-- <Button type="info" size="small" v-show="row.ORG_ID === '12210100738669464Y' || row.id == '11210101000000RSJD5212000263000' || row.id == '11210101000000RSJD5212000252000' || row.id == '11210101000000RSJD5212000289000' || row.id == '11210101000000RSJD5212000267000' || row.id == '11210101000000FCJD5212000334000' || row.id == '11210101000000FCJD5212000472000' || row.id == '11210101000000FCJD5212000473000'" @click="btodo(row)">办结成功</Button> -->
        </template>
        <template slot-scope="{ row }" slot="number">
          {{row.number}}（件）
        </template>
      </Table>
      <vxe-table class="fc-div" style="border: 1px solid #dcdee2;font-size: 12px;" height="360" v-if="item.name == '房产'"
        resizable
        border="inner"
        ref="xTree"
        :tree-config="{children: 'children'}"
        :data="tableData">
        <vxe-table-column class="title-div-icon" width="70%" title="事项名称" tree-node>
          <template v-slot="{ row }">
            <div v-if="row.type_id != '' && row.type_id != undefined && row.type_icon" style="float:left">{{row.text}}</div>
            <div v-else>{{row.text}}</div>
            <Tag style="margin-left:10px" color="purple" v-if="row.type_id != '' && row.type_id != undefined && row.type_icon">{{row.type_icon}}</Tag>
          </template>
        </vxe-table-column>
        <vxe-table-column field="type_name" width="10%" title="级别"></vxe-table-column>
        <vxe-table-column width="20%" title="操作">
          <template v-slot="{ row }">
            <Button v-if="row.type_id != '' && row.type_id != undefined" size="small" type="success" style="margin-right: 10px" @click="getItemNotice(row)">办理</Button>
          </template>
        </vxe-table-column>
      </vxe-table>
    </TabPane>
    <!-- <expand-row ref="fangchan" v-show="true"></expand-row> -->
  </Tabs>
  <Row v-if="loadData == true">
    <Col class="demo-spin-col" span="8" offset="8">
      <Spin fix>
        <Icon type="ios-loading" size=18 class="demo-spin-icon-load"></Icon>
        <div>数据正在加载</div>
      </Spin>
    </Col>
  </Row>
  <Modal v-model="modal1" :title="modalTitle" width="800" :closable="false">
    <Form label-position="right" :label-width="100" style="position: relative;">
      <Row class="mb20">
        <Col span="4" class="ivu-form-item-label">户籍情况：</Col>
        <Col span="3" class="ivu-form-item-label" v-if="registerFlag == '0'" style="text-align: left">{{register}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="registerFlag != '0'" style="text-align: left;color: red">{{register}}</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="registerFlag != ''" ghost size="small" @click="getHjInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
        <Col span="4" class="ivu-form-item-label">低保情况：</Col>
        <Col span="5" class="ivu-form-item-label" v-if="lowInsuredFlag == '9999' || lowInsuredFlag == '0000'" style="text-align: left;color: red">{{lowInsured}}</Col>
        <Col span="5" class="ivu-form-item-label" v-if="lowInsuredFlag != '9999' && lowInsuredFlag != '0000'" style="text-align: left">{{lowInsured}}</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="lowInsuredFlag != 'reset'" ghost size="small" @click="getDbInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
      </Row>
      <Row class="mb20">
        <Col span="4" class="ivu-form-item-label">残疾情况：</Col>
        <Col span="3" class="ivu-form-item-label" v-if="disabledPersonFlag == 0" style="text-align: left;">{{disabledLevel}}{{disabledPerson}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="disabledPersonFlag != 0" style="text-align: left;color:red">{{disabledLevel}}{{disabledPerson}}</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="disabledPersonFlag != 'reset'" ghost size="small" @click="getCjInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
        <Col span="4" class="ivu-form-item-label">殡葬情况：</Col>
        <Col span="5" class="ivu-form-item-label" v-if="funeralPersonnelFlag == 'true'" style="text-align: left;color:red">{{funeralPersonnel}}</Col>
        <Col span="5" class="ivu-form-item-label" v-if="funeralPersonnelFlag == 'false'" style="text-align: left">{{funeralPersonnel}}</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="funeralPersonnelFlag != 'reset'" ghost size="small" @click="getBzInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
      </Row>
      <Row class="mb20" v-if="item_id==='11210101000000MZJD5212000207000'">
        <Col span="4" class="ivu-form-item-label">孤儿情况：</Col>
        <Col span="3" class="ivu-form-item-label" v-if="orphan !== ''" style="text-align: left;color: red">{{orphan}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="orphan === ''" style="text-align: left">非孤儿人员</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="orphan != '接口查询失败'" ghost size="small" @click="getGeInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
        <Col span="4" class="ivu-form-item-label">特困情况：</Col>
        <Col span="5" class="ivu-form-item-label" v-if="difficulty !== ''" style="text-align: left;color:red">{{difficulty}}</Col>
        <Col span="5" class="ivu-form-item-label" v-if="difficulty ===''" style="text-align: left">非特困人员</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="difficulty != '接口查询失败'" ghost size="small" @click="getTkInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
      </Row>
      <Row class="mb20" v-if="item_id!=='11210101000000MZJD5212000207000'">
        <Col span="4" class="ivu-form-item-label">孤儿情况：</Col>
        <Col span="3" class="ivu-form-item-label" v-if="orphan !== ''" style="text-align: left">{{orphan}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="orphan === ''" style="text-align: left">非孤儿人员</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="orphan != '接口查询失败'" ghost size="small" @click="getGeInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
        <Col span="4" class="ivu-form-item-label">特困情况：</Col>
        <Col span="5" class="ivu-form-item-label" v-if="difficulty !== ''" style="text-align: left;color:red">{{difficulty}}</Col>
        <Col span="5" class="ivu-form-item-label" v-if="difficulty ===''" style="text-align: left">非特困人员</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="difficulty != '接口查询失败'" ghost size="small" @click="getTkInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
      </Row>
      <Row class="mb20">
        <Col span="4" class="ivu-form-item-label">工伤情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="occupationa == '领取工伤补贴人员'" style="text-align: left;color:red">{{occupationa}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="occupationa != '领取工伤补贴人员'" style="text-align: left">{{occupationa}}</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="occupationa != '接口查询失败'" ghost size="small" @click="getGsInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
        <Col span="4" class="ivu-form-item-label">失能老人补贴情况：</Col>
        <Col span="5" class="ivu-form-item-label" v-if="snlr == '没有查询到该老人'" style="text-align: left">{{snlr}}</Col>
        <Col span="5" class="ivu-form-item-label" v-if="snlr != '没有查询到该老人'" style="text-align: left; color:red">{{snlr}}</Col>
        <Col span="3" class="ivu-form-item-content">
          <Button type="primary" :disabled="snlr != '接口查询失败'" ghost size="small" @click="getSNInfo(item_id, cardno, usernname)">查询信息</Button>
        </Col>
      </Row>
      <Row class="mb20">
        <Col span="4" class="ivu-form-item-label">年龄情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="age > 80" style="text-align: left;color:red">80岁以上老人</Col>
        <Col span="6" class="ivu-form-item-label" v-if="age < 80 || age == 80" style="text-align: left">80岁以下（包括80岁）</Col>
        <!-- <Col span="3" class="ivu-form-item-content">
          <Button type="primary" ghost size="small" @click="getAge(cardno)">查询信息</Button>
        </Col> -->
        <Col span="4"  v-if="register == '沈阳有效户籍'" class="ivu-form-item-label">户籍详情：</Col>
        <Col span="10"  v-if="register == '沈阳有效户籍'" class="ivu-form-item-label" style="text-align: left;">{{hjdz}}</Col>
      </Row>
      <Row class="mb20" v-if="subsidyData.length > 0">
        <Col span="4" class="ivu-form-item-label">补贴情况：</Col>
        <Col span="20" class="ivu-form-item-label" style="text-align: left;color:red">
          <div v-for="(item, index) in subsidyData" v-bind:key="index" style="width: 40%;float: left;">
            <span>{{item.name}}</span>
            <span v-if="item.subsidy_money == '80'">已领取过护理补贴</span>
            <span v-if="item.subsidy_money == '100'">已领取过生活补贴</span>
          </div>
        </Col>
      </Row>
    </Form>
    <div slot="footer">
<!--      <Button type="success" v-show="subsidyData.length == 1 && item_id == '11210101000000MZJD5212000207000' && subsidyData[0].subsidy_money != '100'" @click="saveInfo()">办理</Button>-->
<!--      <Button type="success" v-show="subsidyData.length == 1 && item_id == '11210101000000MZJD5212000216000' && subsidyData[0].subsidy_money != '80'" @click="saveInfo()">办理</Button>-->
      <Button type="success" @click="saveInfo()">办理</Button>
      <Button type="error" @click="modal1=false">关闭</Button>
    </div>
  </Modal>
    <Modal
      width="800"
      v-model="modal2"
      title="申请办理儿童福利证（社会散居孤儿）">
      <div>
        <template>
          <Form :model="formItem" :label-width="100" >
            <Row>
              <Col span="12">
                <FormItem label="父亲姓名：">
                  <Input v-model="formItem.fname" placeholder="请输入父亲姓名"></Input>
                </FormItem>
              </Col>
              <Col span="12">
                <FormItem label="母亲姓名：">
                  <Input v-model="formItem.mname" placeholder="请输入母亲姓名"></Input>
                </FormItem>
              </Col>
            </Row>
            <Row>
              <Col span="12">
                <FormItem label="父亲身份证号：">
                  <Input v-model="formItem.fidcard" placeholder="请输入身份证号"></Input>
                </FormItem>
              </Col>
              <Col span="12">
                <FormItem label="母亲身份证号：">
                  <Input v-model="formItem.midcard" placeholder="请输入身份证号"></Input>
                </FormItem>
              </Col>
            </Row>
            <Row>
              <Col span="12">
                <FormItem label="父亲死亡情况：">
                  <Input v-model="formItem.fregister" disabled></Input>
                </FormItem>
              </Col>
              <Col span="12">
                <FormItem label="母亲死亡情况：">
                  <Input v-model="formItem.mregister" disabled></Input>
                </FormItem>
              </Col>
            </Row>
            <Row>
              <Col span="12">
                <FormItem label="父亲残疾情况：">
                  <Input v-model="formItem.fcanji" disabled></Input>
                </FormItem>
              </Col>
              <Col span="12">
                <FormItem label="母亲残疾情况：">
                  <Input v-model="formItem.mcanji" disabled></Input>
                </FormItem>
              </Col>
            </Row>
            <FormItem label="孤儿户籍情况：">
              <Input v-model="formItem.register" disabled ></Input>
            </FormItem>
            <FormItem label="孤儿死亡情况：">
              <Input v-model="formItem.siwang" disabled ></Input>
            </FormItem>
            <FormItem label="孤儿残疾情况：">
              <Input v-model="formItem.canji" disabled ></Input>
            </FormItem>

          </Form>
        </template>
      </div>
      <div slot="footer">
        <Button type="success" size="default" @click="Orphan">办理</Button>
        <Button type="primary" size="default"  @click="getOrphanInfo">查询</Button>
      </div>
    </Modal>
    <Modal
      v-model="disModal"
      title="申请低收入一级残疾人专项救助">
      <div style="padding-right: 20px">
        <template>
          <Form :model="disFormItem" :label-width="120" >
            <FormItem label="低保户情况：">
              <Input v-model="disFormItem.dibao" disabled ></Input>
            </FormItem>
            <FormItem label="是否死亡：">
              <Input v-model="disFormItem.register" disabled ></Input>
            </FormItem>
          </Form>
        </template>
      </div>
      <div slot="footer">
        <Button type="success" @click="disCl">办理</Button>
      </div>
    </Modal>
    <Modal v-model="modal3" :title="'重复申请信息验证'" width="700" @on-cancel="modal3===false">
      <Form label-position="right" :label-width="100">
        <Row class="mb20" >
          <Col span="7" class="ivu-form-item-label">姓名：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aac003" disabled></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">身份证：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aac002" disabled></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">申请年度：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aec01b"></Input>
          </Col>
        </Row>
        <Row class="mb20" v-if="itemInfo.id === '11210101000000CLJD5212000229005'" >
          <Col span="7" class="ivu-form-item-label">就学阶段：</Col>
          <Select v-model="itemData.aec011" style="width:334px">
            <Option v-for="item in employment.schoolStageList" :value="item.value" v-bind:key="item.value">{{item.label}}</Option>
          </Select>
        </Row>
        <Row class="mb20"><h2 style="margin-left: 120px; color: red">{{ itemData.checkTable }}</h2></Row>
      </Form>
      <div slot="footer">
        <Button type="info" @click="checkStudentInfo()">确定</Button>
        <Button @click="modal3=false">关闭</Button>
      </div>
    </Modal>
    <Modal v-model="modal4" :title="'重复申请信息验证'" width="700" @on-cancel="modal4===false">
      <Form label-position="right" :label-width="100">
        <Row class="mb20" >
          <Col span="7" class="ivu-form-item-label">姓名：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aac003" disabled></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">身份证：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aac002" disabled></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">适用范围：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Select v-model="itemData.aca051" :disabled="item_id !== '11210101000000CLJD5212000406004'">
              <Option v-for="item in selectList.suitableRangeList" :value="item.value" v-bind:key="item.value">{{item.label}}</Option>
            </Select>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">辅具类别：{{itemData.aca051}}</Col>
          <Col span="12" class="ivu-form-item-content">
            <Select v-model="itemData.aca052" :disabled="item_id !== '11210101000000CLJD5212000406004'" filterable>
              <template v-for="item in selectList.subsidiaryCategoryList">
                <Option :value="item.value" v-if="itemData.aca051 == item.type" v-bind:key="item.value">{{item.label}}</Option>
              </template>
            </Select>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">辅具名称：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Select v-model="itemData.aca053" :disabled="item_id !== '11210101000000CLJD5212000406004'" filterable @on-change="checkaAssistanteviceInfo()">
              <template v-for="item in selectList.equipmentNameList">
                <Option v-if="itemData.aca052 === item.type" :value="item.value" v-bind:key="item.value">{{item.label}}</Option>
              </template>
            </Select>
          </Col>
        </Row>
        <Row class="mb20"><h2 style="margin-left: 120px; color: red">{{ itemData.checkTable }}</h2></Row>
      </Form>
      <div slot="footer">
        <Button type="info" @click="checkaAssistanteviceInfo()">确定</Button>
        <Button @click="modal4=false">关闭</Button>
      </div>
    </Modal>
    <!-- 55-59周岁验证 -->
    <Modal v-model="modal6" :title="'重复申请信息验证'" width="700" @on-cancel="modal3===false">
      <Form label-position="right" :label-width="100">
        <Row class="mb20" >
          <Col span="7" class="ivu-form-item-label">姓名：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aac003" disabled></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">身份证：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.aac002" disabled></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">申请年度：</Col>
          <Col span="12" class="ivu-form-item-content">
            <Input v-model="itemData.ajc114"></Input>
          </Col>
        </Row>
        <Row class="mb20">
          <Col span="7" class="ivu-form-item-label">申请季度：</Col>
          <Select v-model="itemData.ajc115" style="width:334px">
            <Option v-for="item in employment.quarterList" :value="item.value" v-bind:key="item.value">{{item.label}}</Option>
          </Select>
        </Row>
        <Row class="mb20"><h2 style="margin-left: 120px; color: red">{{ itemData.checkTable }}</h2></Row>
      </Form>
      <div slot="footer">
        <Button type="info" @click="checkaDisabilitySevereInfo()">确定</Button>
        <Button @click="modal6=false">关闭</Button>
      </div>
    </Modal>
    <Modal
      v-model="jyzDZZZModal"
      width="700"
      height="700"
      title="就业创业证">
      <div v-show="jyzState" style="display: flex;justify-content: center">
          <span style="font-size:15px;text-align: center">您已办理过就业创业证！请点击下方查看按钮查看电子证！</span>
        </div>
      <div style="width:650px" v-show="imgState" id="printMe1">
        <img :src="urlL" style="width: 650px;height: 650px"/>
<!--        <Carousel v-model="picIndex" style="width:450px" dots="outside" trigger="hover">-->
<!--          <CarouselItem  v-for="(imginfo, index) in jyzDzzzUrl" :key="index">-->
<!--            <img :src="imginfo" style="width: 450px;height: 450px"/>-->
<!--          </CarouselItem>-->
<!--        </Carousel>-->
      </div>
      <div slot="footer">
        <Button type="primary" @click="jyzDZZZModal=false" >确定</Button>
        <Button type="success" v-print="'#printMe1'" v-if="imgState ">打印</Button>
        <Button type="info"  @click="findJyzDzzz" v-if="jyzState ">查看</Button>
      </div>
    </Modal>
    <print
      :employmentInfo="employmentInfo"
      ref="testprint" v-if="istest">
    </print>
    <Modal
      v-model="employment.modelData"
      title="未办理就业创业证"
      width="400">
      <p>未办理就业创业证，请先办理成功后点击打印</p>
      <div slot="footer">
        <Button type="primary" size="large"  @click="employment.modelData = false">确定</Button>
      </div>
    </Modal>
    <Modal
      v-model="renshecuowu"
      title="注意："
      width="800">
      <div>
        <h3>
        &nbsp;&nbsp;&nbsp;&nbsp;即日起，因省人社厅及省医保局系统改造，灵活就业人员参保登记、灵活就业人员缴费档次调整、
        企业社会化管理服务整体移交退休人员采暖费报销、退休人员社会化管理信息登记四项业务在社区暂停办理，
        申请办理业务的参保人员需到所在区社会保险分中心窗口办理，何时恢复社区经办，另行通知。请各社区做好解释说明工作。具体联系电话请查看公告信息。
        </h3>
      </div>
    </Modal>
    <div>
      <wl-equipment
        ref="wlEquipment"
        @goonTodo="goonTodo"
      ></wl-equipment>
    </div>
    <Modal v-model="modal5" title="基本信息" width="600" :closable="false">
      <Row class="mb20">
        <Col span="4" offset="2" class="ivu-form-item-label">户籍情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="registerFlag == '0'" style="text-align: left">{{register}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="registerFlag != '0'" style="text-align: left;color: red">{{register}}</Col>
        <Col span="4" class="ivu-form-item-label">年龄情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="age >= 60" style="text-align: left">60岁以上老人（包括60岁）</Col>
        <Col span="6" class="ivu-form-item-label" v-if="age < 60" style="text-align: left;color:red">60岁以下（不包括60岁）</Col>
      </Row>
      <Row class="mb20">
        <Col span="4" offset="2" class="ivu-form-item-label">特困情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="difficulty !== ''" style="text-align: left;color:red">{{difficulty}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="difficulty ===''" style="text-align: left">非特困人员</Col>
        <Col span="4" class="ivu-form-item-label">殡葬情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="funeralPersonnelFlag == 'true'" style="text-align: left;color:red">{{funeralPersonnel}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="funeralPersonnelFlag == 'false'" style="text-align: left">{{funeralPersonnel}}</Col>
      </Row>
      <Row class="mb20">
        <Col span="7" offset="2" class="ivu-form-item-label">残疾人两补领取情况：</Col>
        <Col span="3" class="ivu-form-item-label" v-if="disabilityFlag === '0'" style="text-align: left;color:red">{{disability}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="disabilityFlag === '1'" style="text-align: left">{{disability}}</Col>
        <Col span="7" class="ivu-form-item-label">政府购买服务办理情况：</Col>
        <Col span="3" class="ivu-form-item-label" v-if="doubleCheckFlag == false" style="text-align: left;color:red">{{doubleCheck}}</Col>
        <Col span="3" class="ivu-form-item-label" v-if="doubleCheckFlag == true" style="text-align: left">{{doubleCheck}}</Col>
      </Row>
      <div slot="footer">
        <Button type="success" :loading="!(this.paramData.doubleCheckFlag&&
        this.paramData.disabilityFlag
        &&this.paramData.funeralPersonnelFlag
        &&this.paramData.lowInsuredFlag
        &&this.paramData.difficulty
        &&this.paramData.registerFlag)" @click="OrYL()">办理</Button>
        <Button type="error" @click="modal5=false">关闭</Button>
      </div>
    </Modal>
    <Modal v-model="modal7" title="基本信息" width="650" :closable="false">
      <Row class="mb20">
        <Col span="4" offset="2" class="ivu-form-item-label" style="margin-top: 8px">申请类型：</Col>
        <Col span="10" class="ivu-form-item-label">
          <Select v-model="applicationType">
            <Option value="1" :disabled="card_type == '2'">普通老人</Option>
            <Option value="2">驻沈部队</Option>
          </Select>
        </Col>
        <Button type="success" @click="checkYanglao(applicationType)" style="margin-left: 40px">校验</Button>
      </Row>
      <Row class="mb20" v-if="applicationType == 1">
        <Col span="4" offset="2" class="ivu-form-item-label">户籍情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="registerFlag == '0'" style="text-align: left">{{register}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="registerFlag != '0'" style="text-align: left;color: red">{{register}}</Col>
        <Col span="4" class="ivu-form-item-label">年龄情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="age >= 90" style="text-align: left">90岁以上老人（包括90岁）</Col>
        <Col span="6" class="ivu-form-item-label" v-if="age < 90" style="text-align: left;color:red">90岁以下（不包括90岁）</Col>
      </Row>
      <Row class="mb20" v-if="applicationType == 1">
        <Col span="4" offset="2" class="ivu-form-item-label">殡葬情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="funeralPersonnelFlag == 'true'" style="text-align: left;color:red">{{funeralPersonnel}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="funeralPersonnelFlag == 'false'" style="text-align: left">{{funeralPersonnel}}</Col>
        <Col span="4" offset="2" class="ivu-form-item-label">领取情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="disabilityPersonnelFlag == true" style="text-align: left;color:red">{{disabilityPersonnel}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="disabilityPersonnelFlag == false" style="text-align: left">{{disabilityPersonnel}}</Col>
      </Row>
      <Row class="mb20" v-if="applicationType == 2">
        <Col span="4" offset="2" class="ivu-form-item-label">领取情况：</Col>
        <Col span="6" class="ivu-form-item-label" v-if="disabilityPersonnelFlag == true" style="text-align: left;color:red">{{disabilityPersonnel}}</Col>
        <Col span="6" class="ivu-form-item-label" v-if="disabilityPersonnelFlag == false" style="text-align: left">{{disabilityPersonnel}}</Col>
      </Row>
      <div slot="footer">
        <Button type="success" @click="OkYangLlao()">办理</Button>
        <Button type="error" @click="modal7=false">关闭</Button>
      </div>
    </Modal>
    <Modal v-model="modal8" title="采暖补贴" width="600">
      <template>
        <Form :label-width="100" :label-colon="true">
          <Row class="mb20" >
            <Col span="4" class="ivu-form-item-label"><span style="color: red">*</span>姓 &nbsp; &nbsp; &nbsp; 名：</Col>
            <Col span="7" class="ivu-form-item-content">
              <Input v-model="paramData.name" disabled></Input>
            </Col>
            <Col span="5" class="ivu-form-item-label"><span style="color: red">*</span>身份证号：</Col>
            <Col span="7" class="ivu-form-item-content">
              <Input v-model="paramData.cardno" disabled></Input>
            </Col>
          </Row>
          <Row class="mb20" >
            <Col span="4" class="ivu-form-item-label"><span style="color: red">*</span>救助类型：</Col>
            <Col span="12" offset="1" class="ivu-form-item-content">
              <RadioGroup v-model="paramData.isCheck">
                <Radio :label="'1'">低保</Radio>
                <Radio :label="'2'">特困</Radio>
                <Radio :label="'3'">低保边缘家庭</Radio>
              </RadioGroup>
            </Col>
          </Row>
        </Form>
        <div slot="footer">
          <Button type="success" :loading="paramData.loading" @click="OkCaiNuan()">办理</Button>
          <Button type="error" @click="modal8=false">关闭</Button>
        </div>
      </template>
    </Modal>
    <Modal v-model="showNotice" title="通知公告" width="700">
      <Form :model="noticeData">
        <Row class="item1">
          <Col span="6" style="text-align: right" class="red-name">标题:</Col>
          <Col span="12" offset="1">{{noticeData.title}}</Col>
        </Row>
        <Row class="item1" style="height: auto;line-height: unset">
          <Col span="6" style="text-align: right" class="">内容:</Col>
          <Col span="12" offset="1">{{noticeData.content}}</Col>
        </Row>
        <Row class="item1">
          <Col span="6" style="text-align: right" class="">排序:</Col>
          <Col span="12" offset="1">{{noticeData.sort}}</Col>
        </Row>
        <Row class="item1">
          <Col span="6" style="text-align: right" class="">文件:</Col>
        </Row>
        <Row class="item1" style="height:auto;line-height:20px;margin-top: 10px;padding-left:20%">
          <Col span="4" v-for="(item, index) in fileArr" v-bind:key="index" style="margin-top:10px;">
            <div>
              <Tooltip max-width="800" :content="item.file_name" placement="top" style="margin-left:30%;width: max-content;">
                <i class='iconfont icon-pdf' style="font-size:30px;color:red;margin-right:50px;cursor: pointer;" v-if="(item.file_url).indexOf('.pdf') != -1" @click="openFile(item.file_url)"></i>
                <i class='iconfont icon-tupian' style="font-size:30px;color:orange;margin-right:50px;cursor: pointer;" v-if="(item.file_url).indexOf('.jpg') != -1" @click="openFile(item.file_url)"></i>
                <i class='iconfont icon-tupian' style="font-size:30px;color:orange;margin-right:50px;cursor: pointer;" v-if="(item.file_url).indexOf('.png') != -1" @click="openFile(item.file_url)"></i>
                <i class='iconfont icon-tupian' style="font-size:30px;color:orange;margin-right:50px;cursor: pointer;" v-if="(item.file_url).indexOf('.jpeg') != -1" @click="openFile(item.file_url)"></i>
                <i class='iconfont icon-WORD' style="font-size:30px;color:blue;margin-right:50px;cursor: pointer;" v-if="(item.file_url).indexOf('.doc') != -1" @click="openFile(item.file_url)"></i>
                <i class='iconfont icon-excel1' style="font-size:30px;color:green;margin-right:50px;cursor: pointer;" v-if="(item.file_url).indexOf('.xls') != -1" @click="openFile(item.file_url)"></i>
              </Tooltip>
              <div class="fileNameDiv">{{item.file_name}}</div>
            </div>
          </Col>
        </Row>
        <Row class="item1">
          <Col span="6" style="text-align: right" class="red-name">发布时间:</Col>
          <Col span="12" offset="1">{{noticeData.release_time}}</Col>
        </Row>
      </Form>
      <div slot="footer">
        <Button type="error" @click="showNotice=false">关闭</Button>
      </div>
    </Modal>
  </div>
</template>

<script>
// eslint-disable-next-line no-unused-vars
import expandRow from './table_expand'
import {
  yiBaoToken,
  renSheToken,
  createPostNew,
  findCanlian,
  getRegisterInfo,
  getFuneralInfo,
  createFangChanLogin,
  getDifficultyByCard,
  getOrphanByCard,
  getOccupationalInfo,
  getInfoByCard,
  teKunToken,
  authentication,
  repeatApplicationValidation,
  // checkDisabilityCertificateAll,
  gllrxxCXJK,
  createDisabilityApi,
  getJyzDzzzUrl,
  createWumiLog,
  date2str,
  getDisabilityInfo,
  qureyAgeByCard,
  getDoubleCheckState,
  // getDisabilityInfoNew,
  // getHouseholdInfoNew,
  // getFuneralInfoNew,
  // getOldAgeDisabilityNew,
  // getIndustrialInjuryInfoNew,
  // getAllowancesInfoNew,
  // checkDisabilityHandleInfoNew,
  postCN,
  getItemNotice
} from '@/api/eventlist'
import { itemtodolistForCSC } from '@/api/mainv3'
// import { createPost } from '@/api/post'
// import { findEmploymentInfo } from '@/api/print'
import print from '../components/test_print'
import WlEquipment from '@/components/wl-equipment/index'
// import disabilitydata from '@/view/xian-page/handinformation/components/itemdata'
import Gmk from '@/view/login/Gmk.vue'

export default {
  name: 'MyTabs',
  props: {
    loaduser: Boolean,
    searchname: String,
    usernname: String,
    cardno: String,
    card_type: String
  },
  // eslint-disable-next-line vue/no-unused-components
  components: { WlEquipment, print, expandRow },
  data () {
    return {
      fcText: '',
      lzfData: '',
      gzfData: '',
      fileArr: [],
      noticeData: {},
      showNotice: false,
      severUserInfo: {},
      subsidyData: [], // 办理过补贴的人员信息
      paramData: {
        isCheck: '1',
        loading: false
      },
      loading: true,
      istest: Gmk.istest,
      urlL: '',
      imgState: false,
      jyzState: true,
      renshecuowu: false,
      jyzAbstractcode: '',
      jyzName: '',
      picIndex: 0,
      jyzDzzzUrl: [],
      jyzDZZZModal: false,
      loadData: true,
      disFormItem: {
        dibao: '',
        register: ''
      },
      formItem: {
        fname: '',
        fidcard: '',
        fregister: '',
        mname: '',
        midcard: '',
        mregister: '',
        register: '',
        canji: '',
        fcanji: '',
        mcanji: '',
        siwang: '',
        checkInfo: {
          aac001: '身份信息不存在,请核实后重新申请',
          aac003: '姓名不能为空',
          aac002: '身份证不能为空',
          aca051: '适用范围不能为空',
          aca052: '辅具类别不能为空',
          aca053: '辅具名称不能为空',
          ajc114: '申请年度不能为空',
          ajc115: '申请季度不能为空'
        }
      },
      disability: '',
      disabilityFlag: '', // 残疾人两项补贴办理状态
      doubleCheck: '',
      doubleCheckFlag: true,
      bank_name: '', // 开户行
      bank_peoplename: '', // 银行账户名
      bank_cardno: '', // 银行卡号
      low_income_No: '', // 低保证号
      str: '',
      GUARD_PHONE: '', // 监护人联系电话
      GUARD_NAME: '', // 监护人姓名
      RESRESIDENCEIDENCE: '', // 户口性质
      CJR_ALLOCATION_ID_NAME: '', // 社区
      FIRST_TIME: '', // 发证时间
      subsidySituation: '', // 补贴情况
      age: '',
      occupationa: '',
      item_id: '',
      difficulty: '',
      orphan: '',
      itemInfo: {},
      modalTitle: '基本情况',
      modal1: false,
      modal2: false,
      modal3: false,
      modal4: false,
      modal5: false,
      modal6: false,
      modal7: false,
      modal8: false,
      disModal: false,
      registerFlag: '',
      register: '',
      hjdz: '',
      snlr: '',
      disabledPersonFlag: '',
      disabledPerson: '',
      disabledLevel: '',
      DISABLED_NUMBER: '',
      lowInsuredFlag: '',
      lowInsured: '',
      subsidies: '',
      funeralPersonnelFlag: '',
      funeralPersonnel: '',
      disabilityPersonnelFlag: '',
      disabilityPersonnel: '',
      applicationType: '0',
      itemlist: [],
      tablelist: [],
      item_index: 0,
      columns2: [
        { title: '事项名称', slot: 'text', width: 420 },
        { title: '级别', key: 'type_name', align: 'center', width: 150 },
        { title: '操作', align: 'center', className: 'nopadding', slot: 'buttons' }
      ],
      employmentInfo: {
      },
      itemData: {
        aac002: '',
        aac003: '',
        aca051: '',
        aca052: '',
        aca053: '',
        checkTable: ''
      },
      employment: {
        schoolStageList: [
          { value: '1', label: '学龄前' },
          { value: '2', label: '小学' },
          { value: '3', label: '初中' },
          { value: '4', label: '高中(中专)' }
        ],
        quarterList: [
          { value: 1, label: '第一季度' },
          { value: 2, label: '第二季度' },
          { value: 3, label: '第三季度' },
          { value: 4, label: '第四季度' }
        ],
        modelData: false
      },
      selectList: {
        suitableRangeList: disabilitydata.suitableRangeList,
        equipmentNameList: disabilitydata.equipmentNameList,
        subsidiaryCategoryList: disabilitydata.subsidiaryCategoryList
      },
      householdRegisterInfo: '', // 户籍信息
      subsistenceAllowancesInfo: '', // 低保信息
      orphanInfo: '', // 孤儿信息
      extremelyPoorInfo: '', // 特困信息
      disabilityInfo: '', // 残疾信息
      injuryInfo: '', // 工伤信息
      funeralInfo: '', // 殡葬信息
      tableData: [
        { id: '0001',
          text: '公共租赁住房',
          type_name: '房产',
          children: [
            { id: '1001',
              text: '城镇中等偏下收入住房困难家庭',
              type_name: '房产',
              children: []
            },
            { id: '1002',
              text: '外来务工人员',
              type_name: '房产',
              children: []
            },
            { id: '1003',
              text: '外地来沈新就业中高等教育毕业生',
              type_name: '房产',
              children: []
            }
          ]
        },
        { id: '0002',
          text: '低收入住房困难家庭（廉租住房）',
          type_name: '房产',
          children: []
        },
        { id: '0003',
          text: '住宅房屋租赁',
          type_name: '房产',
          children: []
        }
      ]
    }
  },
  methods: {
    // 高龄老人人员信息查询接口
    checkYanglao (data) {
      if (this.cardno.indexOf('沈字第') === -1 && this.card_type === '2') {
        this.$Notice.error({ title: '身份证不合法,请用' + '"' + '沈字第' + '"' + '开头的军官证进行办理', desc: '' })
        this.disabilityPersonnel = '身份证不合法,请用' + '"' + '沈字第' + '"' + '开头的军官证进行办理'
        this.disabilityPersonnelFlag = true
        return false
      }
      let state = data === '1' ? '2' : '1'
      let params = {
        cardno: this.cardno,
        card_type: '' + state
      }
      gllrxxCXJK(params).then(ret => {
        if (!ret.data.data.status && !ret.data.data.code && ret.data.errcode === 0) {
          this.disabilityPersonnelFlag = ret.data.data.success
          if (ret.data.data.success === true) {
            this.disabilityPersonnel = ret.data.data.data
          } else {
            params.card_type = data
            gllrxxCXJK(params).then(ret => {
              if (!ret.data.data.status && !ret.data.data.code && ret.data.errcode === 0) {
                this.disabilityPersonnelFlag = ret.data.data.success
                if (ret.data.data.success === true) {
                  this.disabilityPersonnel = ret.data.data.data
                } else {
                  this.disabilityPersonnel = ret.data.data.message
                }
              } else {
                this.disabilityPersonnelFlag = true
                this.disabilityPersonnel = '信息查询失败, 请重新校验'
                this.$Notice.error({ title: '信息查询失败', desc: ret.data.data.status === 500 ? '信息查询接口异常... (如: 多次查询结果都为异常,请联系管理员)' : (ret.data.data.code ? '异常编码: ' + ret.data.data.code : ret.data.data.message) })
              }
            })
          }
        } else {
          this.disabilityPersonnelFlag = true
          this.disabilityPersonnel = '信息查询失败, 请重新校验'
          this.$Notice.error({ title: '信息查询失败', desc: ret.data.data.status === 500 ? '信息查询接口异常... (如: 多次查询结果都为异常,请联系管理员)' : (ret.data.data.code ? '异常编码: ' + ret.data.data.code : ret.data.data.message) })
        }
      })
    },
    findJyzDzzz () {
      this.jyzState = true
      this.imgState = false
      this.jyzDzzzUrl = []
      if (this.jyzName === undefined || this.jyzName === null || this.jyzName === '') {
        this.$Notice.error({ title: '错误', desc: '没有电子证提取码无法获取电子图片' })
      } else {
        let data = {
          cardno: this.cardno,
          document_name: 'param409',
          jyzdzzz: this.jyzAbstractcode,
          name: this.jyzName

        }
        getJyzDzzzUrl(data).then(res => {
          if (res.data.errcode === 0) {
            let url = res.data.data.url.toString().substring(0, res.data.data.url.toString().length - 1)
            let start = url.lastIndexOf(',')
            // this.jyzDzzzUrl = start.substring(start, url.length).split(',')
            this.urlL = url.substring(start + 1, url.length)
            console.log(this.urlL)
            this.jyzState = false
            this.imgState = true
          } else {
            this.$Notice.error({ title: '错误', desc: res.data.errmsg })
          }
        })
      }
    },
    disCl () {
      // console.log(this.cardno)
      this.$router.push({
        name: 'handinformation',
        params: {
          itemid: '11210101000000CLJD5212000201000',
          cardno: this.cardno,
          operation: '1'
        }
      })
    },
    Orphan () {
      this.$router.push({
        name: 'handinformation',
        params: {
          itemid: '11210101000000MZJD5212000222000',
          cardno: this.cardno,
          operation: '1'
        }
      })
    },
    getOrphanInfo () { // // 孤儿父母信息查询
      var params1 = {
        method: 'getQSTBCardInfo',
        disabled_data: {
          'item_id': '11210101000000MZJD5212000222000',
          'cardno': this.formItem.fidcard,
          'Name': this.usernname
        },
        accountid: 'qstb'
      }
      createDisabilityApi(params1).then(ret => {
        if (ret.data.errcode === 0) {
          if (ret.data.data.errcode === 0) {
            if (!ret.data.data.data.getFuneralInfoMap.hhsj) {
              this.formItem.fregister = '未死亡'
            } else {
              this.formItem.fregister = '死亡时间' + ret.data.data.data.getFuneralInfoMap.hhsj
            }
          }
        }
      })
      var params2 = {
        method: 'getQSTBCardInfo',
        disabled_data: {
          'item_id': '11210101000000MZJD5212000222000',
          'cardno': this.formItem.midcard,
          'Name': this.usernname
        },
        accountid: 'qstb'
      }
      createDisabilityApi(params2).then(ret => {
        if (ret.data.errcode === 0) {
          if (ret.data.data.errcode === 0) {
            if (!ret.data.data.data.getFuneralInfoMap.hhsj) {
              this.formItem.mregister = '未死亡'
            } else {
              this.formItem.mregister = '死亡时间' + ret.data.data.data.getFuneralInfoMap.hhsj
            }
          }
        }
      })
      var params3 = {
        method: 'getQSTBCardInfo',
        disabled_data: {
          'item_id': '11210101000000MZJD5212000222000',
          'cardno': this.formItem.midcard,
          'Name': this.usernname
        },
        accountid: 'qstb'
      }
      createDisabilityApi(params3).then(ret => {
        if (ret.data.errcode === 0) {
          // console.log('********')
          if (ret.data.data.errcode === 0) {
            // console.log('********-----')
            let msg = ret.data.data.data.findCanlianMap
            if (msg.length === 0) {
              this.formItem.mcanji = '非残疾人'
            } else {
              this.formItem.mcanji = msg[0].DISABLED_LEVEL + ',' + msg[0].DISABLED_TYPE_NAME
            }
            if (!ret.data.data.data.getFuneralInfoMap.hhsj) {
              this.formItem.siwang = '未死亡'
            } else {
              this.formItem.siwang = '死亡时间' + ret.data.data.data.getFuneralInfoMap.hhsj
            }
          }
        }
      })
      var params4 = {
        method: 'getQSTBCardInfo',
        disabled_data: {
          'item_id': '11210101000000MZJD5212000222000',
          'cardno': this.formItem.fidcard,
          'Name': this.usernname
        },
        accountid: 'qstb'
      }
      createDisabilityApi(params4).then(ret => {
        if (ret.data.errcode === 0) {
          // console.log('********')
          if (ret.data.data.errcode === 0) {
            // console.log('********-----')
            let msg = ret.data.data.data.findCanlianMap
            if (msg.length === 0) {
              this.formItem.fcanji = '非残疾人'
            } else {
              this.formItem.fcanji = msg[0].DISABLED_LEVEL + ',' + msg[0].DISABLED_TYPE_NAME
            }
          }
        }
      })
    },
    // 切换表格
    handlTabsNei (index) {
      this.item_index = index
      this.filterData()
    },
    // 根据搜索框内关键字筛选事项列表
    filterData (index) {
      let datalist = this.itemlist[this.item_index].datalist || []
      this.tablelist = []
      if (this.searchname) {
        datalist.forEach(element => {
          if (element.text.indexOf(this.searchname) >= 0) {
            this.tablelist.push(element)
          }
        })
      } else {
        this.tablelist = datalist
      }
    },
    openTable (row, status) {
      console.log(row)
      console.log(status)
    },
    dbWuMi (item) {
      getItemNotice({ item_id: item.id }).then(res => {
        if (res.data.errcode === 0 && res.data.data.state === '1') {
          this.noticeData = {}
          this.fileArr = []
          this.showNotice = true
          this.noticeData.title = res.data.data.data.title
          this.noticeData.content = res.data.data.data.content
          this.noticeData.sort = res.data.data.data.sort
          this.noticeData.release_time = res.data.data.data.release_time
          if (res.data.data.data.file_url) {
            this.fileArr = JSON.parse(res.data.data.data.file_url)
          }
        } else { // 社会救助类型事项免密登录
          this.diBao(item)
          // console.log('公告获取失败：', item)
          // this.$Notice.error({ title: '失败', desc: res.data.errmsg })
          // this.todo(item)
        }
      })
    },
    diBao (item) {
      if (this.loaduser) {
        if (item.startTime && item.endTime) {
          // 获取当前时间
          let nowDate = date2str(new Date())
          console.log(nowDate)
          if (nowDate < item.startTime || nowDate > item.endTime) {
            this.$Notice.warning({ title: '不在办理时间内', desc: '请在' + item.startTime + '到' + item.endTime + '办理该事项' })
            return
          }
        }
        window.open('/#/db_wumi')
      } else {
        this.$Notice.warning({ title: '无用户信息', desc: '请先获取用户信息后再办理事项' })
      }
    },
    getItemNotice (item) {
      getItemNotice({ item_id: item.id }).then(res => {
        if (res.data.errcode === 0 && res.data.data.state === '1') {
          this.noticeData = {}
          this.fileArr = []
          this.showNotice = true
          this.noticeData.title = res.data.data.data.title
          this.noticeData.content = res.data.data.data.content
          this.noticeData.sort = res.data.data.data.sort
          this.noticeData.release_time = res.data.data.data.release_time
          if (res.data.data.data.file_url) {
            this.fileArr = JSON.parse(res.data.data.data.file_url)
          }
        } else {
          // console.log('公告获取失败：', item)
          // this.$Notice.error({ title: '失败', desc: res.data.errmsg })
          this.todo(item)
        }
      })
    },
    todo (item) {
      console.log('banlishixiang', item.type_id)
      this.subsidyData = []
      // this.$refs.wlEquipment.readIdCard(item)
      if (this.loaduser) {
        if (item.startTime && item.endTime) {
          // 获取当前时间
          let nowDate = date2str(new Date())
          console.log(nowDate)
          if (nowDate < item.startTime || nowDate > item.endTime) {
            this.$Notice.warning({ title: '不在办理时间内', desc: '请在' + item.startTime + '到' + item.endTime + '办理该事项' })
            return
          }
        }
        if (item.type_id === '112101010000YLBZJD') {
          console.log('医保点击办结成功')
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          yiBaoToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else if (item.id === '11210101000000CLJD5212000201000') {
          this.getHouseholdRegister()
          if (this.register === '死亡') {
            this.disFormItem.register = '死亡'
          } else {
            this.disFormItem.register = '未死亡'
          }
          this.getLowPerson()
          var param1 = {
            'request_map': {
              'azcp0001': this.cardno
            },
            'headers_map': {
              'serialNumber': this.str,
              'idcardNumber': this.cardno
            },
            'url': 'base/queryAssistanceDetail',
            'code': this.cardno
          }
          createPostNew(param1).then(ret => {
            if (ret.data.errcode === 0) {
              if (ret.data.data.rescode === '0000') {
                // this.disFormItem.dibao = ret.data.data.data.type
                // console.log('dis' + )
                if (ret.data.data.data.type === '1010') {
                  this.disFormItem.dibao = '城市低保对象'
                } else if (ret.data.data.data.type === '1020') {
                  this.disFormItem.dibao = '城市边缘户对象'
                } else if (ret.data.data.data.type === '1030') {
                  this.disFormItem.dibao = '农村低保对象'
                } else if (ret.data.data.data.type === '1040') {
                  this.disFormItem.dibao = '农村边缘户对象'
                } else if (ret.data.data.data.type === '9999') {
                  this.disFormItem.dibao = '非保障对象'
                } else if (ret.data.data.data.type === '1050') {
                  this.disFormItem.dibao = '城市单人保'
                }
              }
            }
          })
          this.disModal = true
        } else if (item.id === '11210101000000MZJD5212000222000') {
          let data = {
            IDcard: this.cardno,
            Name: this.usernname,
            cardno: this.cardno,
            method: 'getQSTBCardInfo',
            disabled_data: {
              'item_id': '11210101000000MZJD5212000222000',
              'cardno': this.cardno,
              'Name': this.usernname
            },
            accountid: 'qstb'
          }
          getRegisterInfo(data).then(ret => {
            if (ret.data.errcode === 0) {
              if (ret.data.data.result === '-1') {
                this.formItem.register = '非沈阳户籍'
              } else if (ret.data.data.result === '0') {
                this.formItem.register = '沈阳有效户籍'
              } else if (ret.data.data.result === '1') {
                this.formItem.register = '户籍已删除'
              } else if (ret.data.data.result === '2') {
                this.formItem.register = '户籍被加锁'
              } else if (ret.data.data.result === '3') {
                this.formItem.register = '重错号'
              } else if (ret.data.data.result === '4') {
                this.formItem.register = '跨市重错号'
              } else if (ret.data.data.result === '6') {
                this.formItem.register = '持证'
              } else if (ret.data.data.result === '7') {
                this.formItem.register = '在逃犯'
              } else if (ret.data.data.result === '8') {
                this.formItem.register = '户籍已迁出沈阳'
              } else if (ret.data.data.result === '9') {
                this.formItem.register = '死亡'
              }
            } else {
              this.formItem.register = '查询失败'
            }
          })
          createDisabilityApi(data).then(ret => {
            if (ret.data.errcode === 0) {
              // console.log('********')
              if (ret.data.data.errcode === 0) {
                // console.log('********-----')
                let msg = ret.data.data.data.findCanlianMap
                if (msg.length === 0) {
                  this.formItem.canji = '非残疾人'
                } else {
                  this.formItem.canji = msg[0].DISABLED_LEVEL + ',' + msg[0].DISABLED_TYPE_NAME
                }
                if (!ret.data.data.data.getFuneralInfoMap.hhsj) {
                  this.formItem.siwang = '未死亡'
                } else {
                  this.formItem.siwang = '死亡时间' + ret.data.data.data.getFuneralInfoMap.hhsj
                }
              }
            }
          })
          // findCanlian(data).then(ret => {
          //   if (ret.data.errcode === 0) {
          //     if (ret.data.data === null) {
          //       this.formItem.canji = '非残疾人'
          //     } else {
          //       this.formItem.canji = ret.data.data[0].DISABLED_LEVEL + ',' + ret.data.data[0].DISABLED_TYPE_NAME
          //     }
          //   }
          // })
          this.modal2 = true
        } else if (item.id === '11210101000000RSJD5212000263000' || item.id === '11210101000000RSJD5212000252000' ||
        item.id === '11210101000000RSJD5212000289000' || item.id === '11210101000000RSJD5212000267000') {
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          // let a = 1
          // let b = 1
          // 人社事项暂停!
          // if (a === b) {
          //   this.renshecuowu = true
          //   return
          // }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          renSheToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000330000') { // 申请低保
          // window.open('/#/db_wumi') // 新的低保免密登录
          let timestamp = new Date().getTime().toString()
          var str1 = Math.ceil(Math.random() * 10)
          var str2 = Math.ceil(Math.random() * 10)
          var str = str1 + timestamp + str2
          var param = {
            'idcardNumber': this.cardno,
            'serialNumber': str
          }
          getCheckAssistanceInfo(param).then(res => {
            var retdata = res.data.data.data
            console.log('低保重复申请校验返回值1：', retdata)
            if (retdata.state === '1' || retdata.state === '2') {
              let stateName = ''
              let typeName = ''
              if (retdata.state === '1') {
                stateName = '在保'
              } else if (retdata.state === '2') {
                stateName = '申请办理中'
              }
              if (retdata.type === '1010') {
                typeName = '城市最低生活保障对象'
              } else if (retdata.type === '1020') {
                typeName = '城市低收入家庭'
              } else if (retdata.type === '1030') {
                typeName = '农村最低生活保障对象'
              } else if (retdata.type === '1040') {
                typeName = '农村低收入家庭'
              } else if (retdata.type === '1050') {
                typeName = '城市单人保障对象'
              } else if (retdata.type === '1060') {
                typeName = '城市因病致贫保障对象'
              } else if (retdata.type === '1070') {
                typeName = '农村单人保障对象'
              } else if (retdata.type === '1080') {
                typeName = '农村因病致贫保障对象'
              } else if (retdata.type === '1090') {
                typeName = '农村建档立卡保障对象'
              } else if (retdata.type === '9999') {
                typeName = '非保障对象'
              }
              let msg = '当前人员保障状态为：' + stateName + '，保障类型：' + typeName + '。请勿重复申请。'
              this.$Notice.error({ title: '错误', desc: msg })
            } else {
              this.$router.push({
                name: 'db_subsistenceapplication',
                params: {
                  cardno: this.cardno,
                  name: this.usernname,
                  operation: '1',
                  itemid: item.id
                }
              })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000351000') {
          this.$router.push({
            name: 'subsistenceapplication',
            params: {
              cardno: this.cardno,
              name: this.usernname,
              operation: '1',
              itemid: item.id
            }
          })
        } else if (item.id === '11210101000000MZJD5212000322000') {
          this.$router.push({
            name: 'tk_subsistenceapplication',
            params: {
              cardno: this.cardno,
              name: this.usernname,
              operation: '1',
              itemid: item.id
            }
          })
        } else if (item.id === '11210101000000MZJD5212000328000') {
          this.$router.push({
            name: 'transregionalmigration',
            params: {
              cardno: this.cardno,
              operation: '1'
            }
          })
        } else if (item.id === '11210101000000MZJD5212000173000') {
          this.$router.push({
            name: 'stopinsurance',
            params: {
              cardno: this.cardno,
              operation: '1'
            }
          })
        } else if (item.type_id === '11210101000000FCJD' && item.id !== '11210101000000FCJD5212000334000' && item.id !== '11210101000000FCJD5212000472000' && item.id !== '11210101000000FCJD5212000473000') {
          this.$router.push({
            name: 'house_handinformation',
            params: {
              itemid: item.id,
              cardno: this.cardno,
              operation: '1',
              interface_code: item.interface_code
            }
          })
        } else if (item.id === '11210101000000RSJD5212000232000' || item.id === '11210101000000RSJD5212000244000' || item.id === '11210101000000RSJD5212000410000') {
          let param = {
            apiName: 'sq4zjbxx',
            aac002: this.cardno
          }
          createPost(param).then(ret => {
            console.log(ret, 'rrrrrr')
            if (ret.data.data.msg === '没有查询到结果') {
              this.$Notice.error({ title: '错误', desc: '无就业创业证,请先办理就业创业证' })
            } else {
              this.$router.push({
                name: 'handinformation',
                params: { itemid: item.id, cardno: this.cardno, operation: '1' }
              })
            }
          })
        } else if (item.id === '11210101000000RSJD5212000233000') {
          let param = {
            apiName: 'sq4zecert',
            aac002: this.cardno
          }
          createPost(param).then(ret => {
            if (ret.data.data.result === '1') {
              console.log()
              this.jyzAbstractcode = ret.data.data.abstractcode
              this.jyzName = this.usernname
              this.jyzDZZZModal = true
            } else {
              this.$router.push({
                name: 'handinformation',
                params: { itemid: item.id, cardno: this.cardno, operation: '1' }
              })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000207000' || item.id === '11210101000000MZJD5212000216000') { // 残疾人两补
          console.log('办理残疾人两补事项')
          this.getHjInfo(item.id, this.cardno, this.usernname)
          this.getCjInfo(item.id, this.cardno, this.usernname)
          this.getBzInfo(item.id, this.cardno, this.usernname)
          this.getDbInfo(item.id, this.cardno, this.usernname)
          this.getGsInfo(item.id, this.cardno, this.usernname)
          this.getGeInfo(item.id, this.cardno, this.usernname)
          this.getTkInfo(item.id, this.cardno, this.usernname)
          this.getSubsidyInfo(item.id, this.cardno, this.usernname)
          this.getSNInfo(item.id, this.cardno, this.usernname)
          this.item_id = item.id
          // 调用对接接口
          this.itemInfo = item
          // this.getInfoByCard(item.id)
          // this.getHouseholdRegister()
          // this.getDisablePerson(item.id)
          // this.getLowPerson()
          // this.getFuneral()
          // this.getOrphanByCard()
          // this.getDifficultyByCard()
          // this.getOccupationalInfo()
          this.age = this.getAge(this.cardno)
          this.modal1 = true
        } else if (item.id === '11210101000000FCJD5212000334000' || item.id === '11210101000000FCJD5212000472000' || item.id === '11210101000000FCJD5212000473000') { // 房产租赁事项房屋租赁登记备案证明
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          createFangChanLogin({}).then(res => {
            if (res.data.errcode === 0) {
              var a = this.getBrowerInfo()
              let version = a.version.split('.')[0]
              console.log('浏览器版本version======', version)
              console.log('浏览器类型type======', a.type)
              if (a.type === '谷歌' && version > 90) {
                console.log('aaaa')
                window.open(res.data.data.request_url, '_blank')
                setTimeout(function () {
                  window.open(res.data.data.browse_url, '_blank')
                }, 100)
              } else {
                const { href } = this.$router.resolve({
                  path: '/newhouserent',
                  query: {
                    request_url: res.data.data.request_url,
                    browse_url: res.data.data.browse_url
                  }
                })
                window.open(href, '_blank')
              }
            } else {
              this.$Notice.error({ title: '失败', desc: res.data.errmsg })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000322000') { // 房产租赁事项房屋租赁登记备案证明
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          teKunToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else if (item.id === '11210101000000CLJD5212000229005' || item.id === '11210101000000CLJD5212000229004' || item.id === '11210101000000CLJD5212000229003' || item.id === '11210101000000CLJD5212000229002' || item.id === '11210101000000CLJD5212000229001') {
          this.getDisabledInfo(item.id, this.cardno)
          this.item_id = item.id
          // 调用对接接口
          this.itemInfo = item
          this.getHouseholdRegister()
          this.getLowPerson()
          this.getOrphanByCard()
          this.getDifficultyByCard()
          this.getOccupationalInfo()
          this.age = this.getAge(this.cardno)
          this.modal1 = true
        // } else if (item.id === '11210101000000CLJD5212000201000' || item.id === '11210101000000CLJD5212000199000' || item.id === '11210101000000CLJD5212000406001' || item.id === '11210101000000CLJD5212000406002' || item.id === '11210101000000CLJD5212000406003' || item.id === '11210101000000CLJD5212000406004') {
        //   this.getDisabledInfo(item.id, this.cardno)
        //   this.item_id = item.id
        //   // 调用对接接口
        //   this.itemInfo = item
        //   this.getHouseholdRegister()
        //   this.getLowPerson()
        //   this.getOrphanByCard()
        //   this.getDifficultyByCard()
        //   this.getOccupationalInfo()
        //   this.age = this.getAge(this.cardno)
        //   this.modal1 = true
        // } else if (item.id === '11210101000000CLJD5212000234000' || item.id === '11210101000000CLJD5212000312000') {
        //   checkDisabilityCertificateAll({ name: this.usernname, cardno: this.cardno, item_id: item.id }).then(res => {
        //     if (res.data.errcode === 0) {
        //       this.ruleData = res.data.data.data
        //       if (res.data.data.code !== '1') {
        //         this.$Notice.error({ title: '获取个人信息失败', desc: res.data.data.msg })
        //         return false
        //       }
        //       this.$router.push({ name: 'handinformation', params: { itemid: item.id, cardno: this.cardno, operation: '1' } })
        //     } else {
        //       this.$Notice.error({ title: '申请失败', desc: res.data.errmsg })
        //       return false
        //     }
        //   })
        } else if (item.id === '11210101000000MZJD5212000475000') {
          this.getDisabledInfo(item.id, this.cardno)
          this.item_id = item.id
          // 调用对接接口
          this.itemInfo = item
          // this.getInfoByCard(item.id)
          this.getHouseholdRegister()
          // this.getDisablePerson(item.id)
          this.getLowPerson()
          // this.getOrphanByCard()
          this.getDifficultyByCard()
          // this.getOccupationalInfo()
          // this.age = this.onBlurCard(this.cardno)
          this.qureyAge(this.cardno)
          this.getDisabilityInfo()
          this.getDoubleCheckState()
          this.modal5 = true
          console.log('办理沈阳市政府购买居家养老服务')
        } else if (item.id === '11210101000000MZJD5212000474000') {
          if (this.card_type === '1') {
            // 沈阳市高龄老年人补贴发放
            this.getDisabledInfo(item.id, this.cardno)
            this.item_id = item.id
            // 调用对接接口
            this.itemInfo = item
            this.getHouseholdRegister()
            this.getDifficultyByCard()
            this.qureyAge(this.cardno)
            this.getDisabilityInfo()
            this.getDoubleCheckState()
          }
          this.modal7 = true
        } else if (item.id === '11210101000000MZJD5212000327000') { // 采暖补贴
          this.paramData.name = this.usernname
          this.paramData.cardno = this.cardno
          this.modal8 = true
        } else {
          this.$router.push({
            name: 'handinformation',
            params: {
              itemid: item.id,
              cardno: this.cardno,
              operation: '1'
            }
          })
        }
      } else {
        this.$Notice.warning({ title: '无用户信息', desc: '请先获取用户信息后再办理事项' })
      }
    },
    goonTodo (item) {
      if (this.loaduser) {
        if (item.type_id === '112101010000YLBZJD') {
          console.log('医保点击办结成功')
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          yiBaoToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else if (item.id === '11210101000000CLJD5212000201000') {
          this.getHouseholdRegister()
          if (this.register === '死亡') {
            this.disFormItem.register = '死亡'
          } else {
            this.disFormItem.register = '未死亡'
          }
          this.getLowPerson()
          var param1 = {
            'request_map': {
              'azcp0001': this.cardno
            },
            'headers_map': {
              'serialNumber': this.str,
              'idcardNumber': this.cardno
            },
            'url': 'base/queryAssistanceDetail',
            'code': this.cardno
          }
          createPostNew(param1).then(ret => {
            if (ret.data.errcode === 0) {
              if (ret.data.data.rescode === '0000') {
                // this.disFormItem.dibao = ret.data.data.data.type
                // console.log('dis' + )
                if (ret.data.data.data.type === '1010') {
                  this.disFormItem.dibao = '城市低保对象'
                } else if (ret.data.data.data.type === '1020') {
                  this.disFormItem.dibao = '城市边缘户对象'
                } else if (ret.data.data.data.type === '1030') {
                  this.disFormItem.dibao = '农村低保对象'
                } else if (ret.data.data.data.type === '1040') {
                  this.disFormItem.dibao = '农村边缘户对象'
                } else if (ret.data.data.data.type === '9999') {
                  this.disFormItem.dibao = '非保障对象'
                }
              }
            }
          })
          this.disModal = true
        } else if (item.id === '11210101000000MZJD5212000222000') {
          let data = {
            IDcard: this.cardno,
            Name: this.usernname,
            cardno: this.cardno,
            method: 'getQSTBCardInfo',
            disabled_data: {
              'item_id': '11210101000000MZJD5212000222000',
              'cardno': this.cardno,
              'Name': this.usernname
            },
            accountid: 'qstb'
          }
          getRegisterInfo(data).then(ret => {
            if (ret.data.errcode === 0) {
              if (ret.data.data.result === '-1') {
                this.formItem.register = '非沈阳户籍'
              } else if (ret.data.data.result === '0') {
                this.formItem.register = '沈阳有效户籍'
              } else if (ret.data.data.result === '1') {
                this.formItem.register = '户籍已删除'
              } else if (ret.data.data.result === '2') {
                this.formItem.register = '户籍被加锁'
              } else if (ret.data.data.result === '3') {
                this.formItem.register = '重错号'
              } else if (ret.data.data.result === '4') {
                this.formItem.register = '跨市重错号'
              } else if (ret.data.data.result === '6') {
                this.formItem.register = '持证'
              } else if (ret.data.data.result === '7') {
                this.formItem.register = '在逃犯'
              } else if (ret.data.data.result === '8') {
                this.formItem.register = '户籍已迁出沈阳'
              } else if (ret.data.data.result === '9') {
                this.formItem.register = '死亡'
              }
            } else {
              this.formItem.register = '查询失败'
            }
          })
          createDisabilityApi(data).then(ret => {
            if (ret.data.errcode === 0) {
              // console.log('********')
              if (ret.data.data.errcode === 0) {
                // console.log('********-----')
                let msg = ret.data.data.data.findCanlianMap
                if (msg.length === 0) {
                  this.formItem.canji = '非残疾人'
                } else {
                  this.formItem.canji = msg[0].DISABLED_LEVEL + ',' + msg[0].DISABLED_TYPE_NAME
                }
                if (!ret.data.data.data.getFuneralInfoMap.hhsj) {
                  this.formItem.siwang = '未死亡'
                } else {
                  this.formItem.siwang = '死亡时间' + ret.data.data.data.getFuneralInfoMap.hhsj
                }
              }
            }
          })
          // findCanlian(data).then(ret => {
          //   if (ret.data.errcode === 0) {
          //     if (ret.data.data === null) {
          //       this.formItem.canji = '非残疾人'
          //     } else {
          //       this.formItem.canji = ret.data.data[0].DISABLED_LEVEL + ',' + ret.data.data[0].DISABLED_TYPE_NAME
          //     }
          //   }
          // })
          this.modal2 = true
        } else if (item.id === '11210101000000RSJD5212000263000' || item.id === '11210101000000RSJD5212000252000' ||
        item.id === '11210101000000RSJD5212000289000' || item.id === '11210101000000RSJD5212000267000') {
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          // let a = 1
          // let b = 1
          // // 人社事项暂停!
          // if (a === b) {
          //   this.renshecuowu = true
          //   return
          // }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          renSheToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000330000' || item.id === '11210101000000MZJD5212000351000') {
          this.$router.push({
            name: 'subsistenceapplication',
            params: {
              cardno: this.cardno,
              name: this.usernname,
              operation: '1',
              itemid: item.id
            }
          })
        } else if (item.id === '11210101000000MZJD5212000322000') {
          this.$router.push({
            name: 'tk_subsistenceapplication',
            params: {
              cardno: this.cardno,
              name: this.usernname,
              operation: '1',
              itemid: item.id
            }
          })
        } else if (item.id === '11210101000000MZJD5212000328000') {
          this.$router.push({
            name: 'transregionalmigration',
            params: {
              cardno: this.cardno,
              operation: '1'
            }
          })
        } else if (item.id === '11210101000000MZJD5212000173000') {
          this.$router.push({
            name: 'stopinsurance',
            params: {
              cardno: this.cardno,
              operation: '1'
            }
          })
        } else if (item.type_id === '11210101000000FCJD' && item.id !== '11210101000000FCJD5212000334000' && item.id !== '11210101000000FCJD5212000472000' && item.id !== '11210101000000FCJD5212000473000') {
          this.$router.push({
            name: 'house_handinformation',
            params: {
              itemid: item.id,
              cardno: this.cardno,
              operation: '1',
              interface_code: item.interface_code
            }
          })
        } else if (item.id === '11210101000000RSJD5212000232000' || item.id === '11210101000000RSJD5212000244000' || item.id === '11210101000000RSJD5212000410000') {
          let param = {
            apiName: 'sq4zjbxx',
            aac002: this.cardno
          }
          createPost(param).then(ret => {
            console.log(ret, 'rrrrrr')
            if (ret.data.data.msg === '没有查询到结果') {
              this.$Notice.error({ title: '错误', desc: '无就业创业证,请先办理就业创业证' })
            } else {
              this.$router.push({
                name: 'handinformation',
                params: { itemid: item.id, cardno: this.cardno, operation: '1' }
              })
            }
          })
        } else if (item.id === '11210101000000RSJD5212000233000') {
          let param = {
            apiName: 'sq4zecert',
            aac002: this.cardno
          }
          createPost(param).then(ret => {
            if (ret.data.data.result === '1') {
              console.log()
              this.jyzAbstractcode = ret.data.data.abstractcode
              this.jyzName = this.usernname
              this.jyzDZZZModal = true
            } else {
              this.$router.push({
                name: 'handinformation',
                params: { itemid: item.id, cardno: this.cardno, operation: '1' }
              })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000207000' || item.id === '11210101000000MZJD5212000216000') { // 残疾人两补
          console.log('办理残疾人两补事项')
          this.getHjInfo(item.id, this.cardno, this.usernname)
          this.getDisabledInfo(item.id, this.cardno, this.usernname)
          this.item_id = item.id
          // 调用对接接口
          this.itemInfo = item
          // this.getInfoByCard(item.id)
          this.getHouseholdRegister()
          // this.getDisablePerson(item.id)
          this.getLowPerson()
          // this.getFuneral()
          this.getOrphanByCard()
          this.getDifficultyByCard()
          this.getOccupationalInfo()
          this.age = this.getAge(this.cardno)
          this.modal1 = true
        } else if (item.id === '11210101000000FCJD5212000334000' || item.id === '11210101000000FCJD5212000472000' || item.id === '11210101000000FCJD5212000473000') { // 房产租赁事项房屋租赁登记备案证明
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          createFangChanLogin({}).then(res => {
            if (res.data.errcode === 0) {
              console.log('href2======')
              const { href } = this.$router.resolve({
                path: '/newhouserent',
                query: {
                  request_url: res.data.data.request_url,
                  browse_url: res.data.data.browse_url
                }
              })
              window.open(href, '_blank')
            } else {
              this.$Notice.error({ title: '失败', desc: res.data.errmsg })
            }
          })
        } else if (item.id === '11210101000000MZJD5212000322000') { // 房产租赁事项房屋租赁登记备案证明
          let wumilog = {
            cardno: this.cardno,
            item_id: item.type_id,
            item_name: item.text
          }
          console.log('保存无密登录log', wumilog)
          createWumiLog(wumilog).then(ret => {})
          teKunToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else {
          this.$router.push({
            name: 'handinformation',
            params: {
              itemid: item.id,
              cardno: this.cardno,
              operation: '1'
            }
          })
        }
      } else {
        this.$Notice.warning({ title: '无用户信息', desc: '请先获取用户信息后再办理事项' })
      }
    },
    stodo (item) {
      if (this.loaduser) {
        let itemid = item.id + ''
        if (item.type_id === '12210100738669464Y') {
          yiBaoToken({}).then(ret => {
            if (ret.data.data) {
              window.open(ret.data.data.url, '_blank')
            } else {
              this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
            }
          })
        } else if (itemid === '11210101000000MZJD5212000330000') {
          this.$router.push({
            name: 'handinformation',
            params: {
              itemid: '372510',
              cardno: this.cardno,
              operation: '1'
            }
          })
        }
      } else {
        this.$Notice.warning({ title: '无用户信息', desc: '请先获取用户信息后再办理事项' })
      }
    },
    btodo (item) {
      if (this.loaduser) {
        let itemid = item.id + ''
        if (item.type_id === '12210100738669464Y' || itemid === '11210101000000RSJD5212000263000' || itemid === '11210101000000RSJD5212000252000' || itemid === '11210101000000RSJD5212000289000' || itemid === '11210101000000RSJD5212000267000' || itemid === '11210101000000FCJD5212000334000' || itemid === '11210101000000FCJD5212000472000' || itemid === '11210101000000FCJD5212000473000') {
          this.$router.push({
            name: 'handinformation',
            params: {
              itemid: itemid,
              cardno: this.cardno,
              operation: '1'
            }
          })
        } else {
          this.$Notice.error({ title: '错误', desc: '获取链接失败，请重试' })
        }
      } else {
        this.$Notice.warning({ title: '无用户信息', desc: '请先获取用户信息后再办理事项' })
      }
    },
    // 低保对象过滤
    formatLowPerson (val) {
      return val === '1010' ? '城市低保对象' : val === '1020' ? '城市边缘户对象' : val === '1030' ? '农村低保对象' : val === '1040' ? '农村边缘户对象' : val === '9999' ? '非保障对象' : val === '1050' ? '城市单人保' : val === '1060' ? '城市因病致贫保障对象' : val === '1070' ? '农村单人保障对象' : val === '1080' ? '农村因病致贫保障对象' : val === '1090' ? '农村建档立卡保障对象' : val === '0000' ? '低保停救对象' : ''
    },
    formatLowSubsidies (val) {
      return val === '1010' ? '低保残疾人' : val === '1020' ? '低收入家庭残疾人' : val === '1030' ? '低保残疾人' : val === '1040' ? '低收入家庭残疾人' : val === '9999' ? '非保障对象' : val === '1050' ? '低保残疾人' : val === '1060' ? '低保残疾人' : val === '1070' ? '低保残疾人' : val === '1080' ? '低保残疾人' : val === '1090' ? '低保残疾人' : val === '0000' ? '低保停救对象' : ''
    },
    // 查询户籍情况
    getHouseholdRegister () {
      var param = { 'IDcard': this.cardno, 'Name': this.usernname }
      getRegisterInfo(param).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.registerFlag = true
          this.registerFlag = ret.data.data.result
          if (ret.data.data.result === '-1') {
            this.register = '非沈阳户籍'
          } else if (ret.data.data.result === '0') {
            this.register = '沈阳有效户籍'
          } else if (ret.data.data.result === '1') {
            this.register = '户籍已删除'
          } else if (ret.data.data.result === '2') {
            this.register = '户籍被加锁'
          } else if (ret.data.data.result === '3') {
            this.register = '重错号'
          } else if (ret.data.data.result === '4') {
            this.register = '跨市重错号'
          } else if (ret.data.data.result === '6') {
            this.register = '持证'
          } else if (ret.data.data.result === '7') {
            this.register = '在逃犯'
          } else if (ret.data.data.result === '8') {
            this.register = '户籍已迁出沈阳'
          } else if (ret.data.data.result === '9') {
            this.register = '死亡'
          }
          return
        }
        this.$Modal.error({
          title: '错误',
          content: ret.data.errmsg
        })
      })
    },
    // 查询是否为孤儿
    getOrphanByCard () {
      let param = { 'cardno': this.cardno }
      getOrphanByCard(param).then(ret => {
        if (ret.data.errcode === 0) {
          this.orphan = '是孤儿人员'
        } else {
          this.orphan = ''
        }
      })
    },
    // 查询是否为工伤护理人员
    getOccupationalInfo () {
      let param = { 'cardno': this.cardno }
      console.log(this.cardno)
      getOccupationalInfo(param).then(ret => {
        let result = ret.data.data
        console.log(ret.data.data, 'rrrrrrr')
        if (result.res === '有数据') {
          this.occupationa = '领取工伤补贴人员'
        } else if (result.res === undefined) {
          console.log(result, '!@@@@@')
          this.occupationa = '接口调用不通'
        } else {
          this.occupationa = '非领取工伤补贴人员'
        }
      })
    },
    // 查询是否办理过补贴
    getInfoByCard (id) {
      let param = { 'cardno': this.cardno }
      getInfoByCard(param).then(ret => {
        if (ret.data.errcode === 0) {
          if (ret.data.data.length === 1) {
            for (var i = 0; i < ret.data.data.length; i++) {
              if (ret.data.data[i].subsidy_money === 80) {
                this.subsidySituation = '在册领取护理补贴人员'
              } else if (ret.data.data[i].subsidy_money === 100) {
                this.subsidySituation = '在册领取生活补贴人员'
              }
            }
          } else if (ret.data.data.length === 2) {
            this.subsidySituation = '在册领取生活补贴、护理补贴人员'
          } else {
            this.subsidySituation = ''
          }
          let that = this
          if (id === '11210101000000MZJD5212000207000') { // 困难残疾人
            if (that.subsidySituation === '在册领取生活补贴人员' || that.subsidySituation === '在册领取生活补贴、护理补贴人员') {
              this.$Notice.open({
                title: '错误',
                desc: '该人员为在领取过生活补贴人员，不可重复申请'
              })
            } else {
              this.$router.push({
                name: 'handinformation',
                params: { itemid: this.itemInfo.id, cardno: this.cardno, subsidies: this.subsidies, operation: '1', disabledPerson: this.disabledPerson, disabledLevel: this.disabledLevel, DISABLED_NUMBER: this.DISABLED_NUMBER, CJR_ALLOCATION_ID_NAME: this.CJR_ALLOCATION_ID_NAME, FIRST_TIME: this.FIRST_TIME, RESIDENCE: this.RESIDENCE, GUARD_NAME: this.GUARD_NAME, GUARD_PHONE: this.GUARD_PHONE, bank_name: this.bank_name, bank_peoplename: this.bank_peoplename, bank_cardno: this.bank_cardno, low_income_No: this.low_income_No }
              })
              // that.modal1 = true
            }
          } else if (id === '11210101000000MZJD5212000216000') { // 重度残疾人
            if (that.subsidySituation === '在册领取护理补贴人员' || that.subsidySituation === '在册领取生活补贴、护理补贴人员') {
              this.$Notice.open({
                title: '错误',
                desc: '该人员为在领取过护理补贴人员，不可重复申请'
              })
            } else {
              this.$router.push({
                name: 'handinformation',
                params: { itemid: this.itemInfo.id, cardno: this.cardno, operation: '1', disabledPerson: this.disabledPerson, disabledLevel: this.disabledLevel, DISABLED_NUMBER: this.DISABLED_NUMBER, CJR_ALLOCATION_ID_NAME: this.CJR_ALLOCATION_ID_NAME, FIRST_TIME: this.FIRST_TIME, RESIDENCE: this.RESIDENCE, GUARD_NAME: this.GUARD_NAME, GUARD_PHONE: this.GUARD_PHONE, bank_name: this.bank_name, bank_peoplename: this.bank_peoplename, bank_cardno: this.bank_cardno, low_income_No: this.low_income_No }
              })
              // that.modal1 = true
            }
          }
        }
      })
    },
    // 查询是否为特困人员
    getDifficultyByCard () {
      let param = { 'cardno': this.cardno }
      getDifficultyByCard(param).then(ret => {
        this.paramData.difficulty = true
        if (ret.data.errcode === 0) {
          this.difficulty = '是特困人员'
        } else {
          this.difficulty = ''
        }
      })
    },
    // 查询低保情况
    getLowPerson (cardno) {
      var param1 = {
        'request_map': {
          'azcp0001': this.cardno
        },
        'headers_map': {
          'serialNumber': this.str,
          'idcardNumber': this.cardno
        },
        'url': 'base/queryAssistanceDetail',
        'code': this.cardno
      }
      createPostNew(param1).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.lowInsuredFlag = true
          if (ret.data.data.rescode === '0000') {
            this.lowInsuredFlag = ret.data.data.data.type
            this.lowInsured = this.formatLowPerson(ret.data.data.data.type)
            this.bank_name = ret.data.data.data.ssca0009
            this.bank_peoplename = ret.data.data.data.ssca0010
            this.bank_cardno = ret.data.data.data.ssca0011
            this.low_income_No = ret.data.data.data.ssca0014
            return
          }
          this.$Modal.error({
            title: '错误',
            content: ret.data.data.memo
            /* onOk: () => {
             this.modal1 = false
             } */
          })
          return
        }
        this.$Modal.error({
          title: '错误',
          content: ret.data.errmsg,
          onOk: () => {
            this.modal1 = false
          }
        })
      })
    },
    // 查询残疾情况
    getDisablePerson (itemId) {
      var param2 = {
        cardno: this.cardno
      }
      findCanlian(param2).then(ret => {
        if (ret.data.errcode === 0) {
          this.disabledPersonFlag = ret.data.data.length
          if (ret.data.data.length === 0) {
            this.disabledPerson = '非残疾人'
            this.disabledLevel = ''
          } else if (itemId === '11210101000000MZJD5212000216000') {
            this.disabledPerson = ret.data.data[0].DISABLED_TYPE_NAME
            this.DISABLED_NUMBER = ret.data.data[0].DISABLED_NUMBER
            this.CJR_ALLOCATION_ID_NAME = ret.data.data[0].CJR_ALLOCATION_ID_NAME
            this.FIRST_TIME = ret.data.data[0].FIRST_TIME
            if (ret.data.data[0].DISABLED_LEVEL !== '一级' && ret.data.data[0].DISABLED_LEVEL !== '二级') {
              this.disabledLevel = '非一，二级'
            } else {
              this.disabledLevel = ret.data.data[0].DISABLED_LEVEL
            }
          } else {
            this.disabledPerson = ret.data.data[0].DISABLED_TYPE_NAME
            this.disabledLevel = ret.data.data[0].DISABLED_LEVEL
            this.DISABLED_NUMBER = ret.data.data[0].DISABLED_NUMBER
            this.CJR_ALLOCATION_ID_NAME = ret.data.data[0].CJR_ALLOCATION_ID_NAME
            this.FIRST_TIME = ret.data.data[0].FIRST_TIME
          }
          return
        }
        this.$Modal.error({
          title: '错误',
          content: ret.data.errmsg,
          onOk: () => {
          }
        })
      })
    },
    // 查询殡葬
    getFuneral () {
      var param1 = {
        'idCode': this.cardno
      }
      getFuneralInfo(param1).then(ret => {
        if (ret.data.errcode === 0) {
          this.funeralPersonnelFlag = ret.data.data.flag
          if (ret.data.data.flag === 'false') {
            this.funeralPersonnel = '未查询到该人员殡葬信息'
            return
          }
          if (ret.data.data.flag === 'true') {
            this.funeralPersonnel = '登记死亡人员,请精神操作'
            return
          }
          this.$Modal.error({
            title: '错误',
            content: ret.data.data.memo
            /* onOk: () => {
              this.modal1 = false
              } */
          })
          return
        }
        this.$Modal.error({
          title: '错误',
          content: ret.data.errmsg,
          onOk: () => {
            this.modal1 = false
          }
        })
      })
    },
    // 根据身份证号获取年龄
    getAge (identityCard) {
      var len = (identityCard + '').length
      if (len === 0) {
        return 0
      } else {
        if ((len !== 15) && (len !== 18)) { // 身份证号码只能为15位或18位其它不合法
          return 0
        }
      }
      var strBirthday = ''
      if (len === 18) { // 处理18位的身份证号码从号码中得到生日和性别代码
        strBirthday = identityCard.substr(6, 4) + '/' + identityCard.substr(10, 2) + '/' + identityCard.substr(12, 2)
      } else if (len === 15) {
        strBirthday = '19' + identityCard.substr(6, 2) + '/' + identityCard.substr(8, 2) + '/' + identityCard.substr(10, 2)
      }
      var birthDate = new Date(strBirthday)
      var nowDateTime = new Date()
      var age = nowDateTime.getFullYear() - birthDate.getFullYear()
      if (nowDateTime.getMonth() < birthDate.getMonth() || (nowDateTime.getMonth() === birthDate.getMonth() && nowDateTime.getDate() < birthDate.getDate())) {
        age--
      }
      return age
    },
    saveInfo () { // 前置查询模态框办理按钮事件
      this.modal1 = false
      let item = { id: this.itemInfo.id }
      if (item.id === '11210101000000CLJD5212000229005' || item.id === '11210101000000CLJD5212000229004' || item.id === '11210101000000CLJD5212000229003' || item.id === '11210101000000CLJD5212000229002' || item.id === '11210101000000CLJD5212000229001') { // 残联事项
        authentication({ name: this.usernname, cardno: this.cardno, item_id: this.itemInfo.id }).then(res => {
          if (res.data.errcode === 0) {
            this.ruleData = res.data.data.data
            if (res.data.data.code !== '1') {
              this.$Notice.error({ title: res.data.data.msg })
              return
            }
            this.itemData.aac001 = this.ruleData !== ('' || undefined) ? this.ruleData.aac001 : 0// 主键
            this.itemData.aac002 = this.cardno// 身份证
            this.itemData.aac003 = this.usernname// 姓名
            this.itemData.aec01b = new Date().getFullYear() // 申请年度
            this.modal3 = true
            this.itemData.checkTable = ''
          } else {
            this.$Notice.error({ title: res.data.errmsg })
            return false
          }
        })
      } else if (item.id === '11210101000000CLJD5212000406001' || item.id === '11210101000000CLJD5212000406002' || item.id === '11210101000000CLJD5212000406003' || item.id === '11210101000000CLJD5212000406004') { // 辅助器具
        authentication({ name: this.usernname, cardno: this.cardno, item_id: this.itemInfo.id }).then(res => {
          if (res.data.errcode === 0) {
            this.ruleData = res.data.data.data
            if (res.data.data.code !== '1' && res.data.data.code !== '0') {
              this.$Notice.error({ title: '获取个人信息失败', desc: res.data.data.msg })
              return
            } else if (res.data.data.code === '0') {
              this.$Notice.error({ title: '获取个人信息失败', desc: res.data.data.msg })
            }
            this.itemData.aac001 = this.ruleData !== ('' || undefined) ? this.ruleData.aac001 : 0// 主键
            this.itemData.aac002 = this.cardno// 身份证
            this.itemData.aac003 = this.usernname// 姓名
            this.itemData.aca051 = '01' // 适用范围
            this.itemData.aca052 = '0108' // 辅具类别
            this.itemData.aca053 = '010801' // 辅具名称

            if (item.id === '11210101000000CLJD5212000406002') {
              this.itemData.aca053 = '010802' // 辅具名称
            } else if (item.id === '11210101000000CLJD5212000406003') {
              this.itemData.aca053 = '010803' // 辅具名称
            } else if (item.id === '11210101000000CLJD5212000406004') {
              this.itemData.aca051 = '' // 适用范围
              this.itemData.aca052 = '' // 辅具类别
              this.itemData.aca053 = '' // 辅具名称
            }
            this.modal4 = true
            this.itemData.checkTable = ''
          } else {
            this.$Notice.error({ title: '申请失败', desc: res.data.errmsg })
            return false
          }
        })
      } else if (item.id === '11210101000000CLJD5212000199000') {
        authentication({ name: this.usernname, cardno: this.cardno, item_id: this.itemInfo.id }).then(res => {
          if (res.data.errcode === 0) {
            this.ruleData = res.data.data.data
            if (res.data.data.code !== '1' && res.data.data.code !== '0') {
              this.$Notice.error({ title: '获取个人信息失败', desc: res.data.data.msg })
              return
            } else if (res.data.data.code === '0') {
              this.$Notice.error({ title: '获取个人信息失败', desc: res.data.data.msg })
            }
            this.itemData.aac001 = this.ruleData.aac001 // 主键
            this.itemData.aac002 = this.cardno // 身份证
            this.itemData.aac003 = this.usernname // 姓名
            this.itemData.ajc114 = new Date().getFullYear() // 年度
            var currQuarter = new Date().getMonth() + 1
            this.itemData.ajc115 = Math.floor((currQuarter % 3 === 0 ? (currQuarter / 3) : (currQuarter / 3 + 1)))

            this.modal6 = true
            this.itemData.checkTable = ''
          } else {
            this.$Notice.error({ title: '申请失败', desc: res.data.errmsg })
            return false
          }
        })
      } else {
        this.$router.push({
          name: 'handinformation',
          params: { itemid: this.itemInfo.id, cardno: this.cardno, operation: '1', disabledPerson: this.disabledPerson, disabledLevel: this.disabledLevel, DISABLED_NUMBER: this.DISABLED_NUMBER, CJR_ALLOCATION_ID_NAME: this.CJR_ALLOCATION_ID_NAME, FIRST_TIME: this.FIRST_TIME, RESIDENCE: this.RESIDENCE, GUARD_NAME: this.GUARD_NAME, GUARD_PHONE: this.GUARD_PHONE, bank_name: this.bank_name, bank_peoplename: this.bank_peoplename, bank_cardno: this.bank_cardno, low_income_No: this.low_income_No }
        })
      }
    },
    isDuringDate (birthday) {
      var curDate = new Date()
      var beginDate = curDate.getFullYear() - 3
      var endDate = beginDate - 3

      birthday = new Date(birthday)
      beginDate = new Date(beginDate + '09-01')
      endDate = new Date(endDate + '08-31')

      if (birthday >= beginDate && birthday <= endDate) {
        return true
      }
      return false
    },
    checkStudentInfo () {
      if (this.itemInfo.id === '11210101000000CLJD5212000229005') {
        var birthday = this.cardno.substr(6, 4) + '-' + this.cardno.substr(10, 2) + '-' + this.cardno.substr(12, 2)
        if (this.itemData.aec011 === '1' && this.isDuringDate(birthday)) {
          this.$Notice.error({ title: '学龄前：必须满足年龄在 3 至 6 岁之间', desc: '' })
          return false
        }
      }
      if (!this.itemData.aec01b && (this.itemInfo.id !== '11210101000000CLJD5212000229001' || this.itemInfo.id !== '11210101000000CLJD5212000229002')) {
        this.$Notice.error({ title: '请填写申请年度', desc: '' })
        return false
      }
      if (!this.itemData.aac002 && (this.itemInfo.id === '11210101000000CLJD5212000229003' || this.itemInfo.id === '11210101000000CLJD5212000229002')) {
        this.$Notice.error({ title: '请填写学生身份证', desc: '' })
        return false
      }

      let param = {
        aac001: this.itemData.aac001, // 主键
        aac002: this.itemData.aac002, // 身份证
        aac003: this.itemData.aac003, // 姓名
        aec01b: this.itemData.aec01b, // 申请年度
        aec011: this.itemData.aec011, // 就学阶段
        item_id: this.itemInfo.id
      }

      repeatApplicationValidation(param).then(res => {
        if (res.data.errcode === 0) {
          this.ruleData = res.data.data
          if (this.ruleData.code !== '1') {
            this.itemData.checkTable = this.ruleData.msg
            return false
          }
          this.modal3 = false
          this.$router.push({ name: 'handinformation', params: { itemid: this.itemInfo.id, cardno: this.cardno, operation: '1' } })
        } else {
          this.$Notice.error({ title: res.data.errmsg })
        }
      })
    },
    checkaAssistanteviceInfo () {
      const arr = ['aca051', 'aca052', 'aca053', 'aac002', 'aac003']
      for (let i = 0; i < arr.length; i++) {
        if (this.itemData[arr[i]] === '' || this.itemData[arr[i]] === undefined) {
          this.$Notice.error({ title: this.formItem.checkInfo[arr[i]], desc: '' })
          return false
        }
      }

      let param = {
        aac001: this.itemData.aac001,
        aac002: this.itemData.aac002, // 身份证
        aac003: this.itemData.aac003, // 姓名
        aca051: this.itemData.aca051, // 适用范围
        aca052: this.itemData.aca052, // 辅具类别
        aca053: this.itemData.aca053, // 辅具名称
        item_id: this.itemInfo.id
      }

      repeatApplicationValidation(param).then(res => {
        if (res.data.errcode === 0) {
          this.ruleData = res.data.data
          if (this.ruleData.code !== '1') {
            this.itemData.checkTable = this.ruleData.msg
            return false
          }
          this.modal4 = false
          this.$router.push({
            name: 'handinformation',
            params: {
              itemid: this.itemInfo.id,
              cardno: this.cardno,
              operation: '1',
              aca051: this.itemData.aca051, // 适用范围
              aca052: this.itemData.aca052, // 辅具类别
              aca053: this.itemData.aca053 // 辅具名称
            }
          })
        } else {
          this.$Notice.error({ title: '申请失败', desc: res.data.errmsg })
        }
      })
    },
    checkaDisabilitySevereInfo () {
      const arr = ['aac001', 'ajc114', 'ajc115']
      for (let i = 0; i < arr.length; i++) {
        if (this.itemData[arr[i]] === '' || this.itemData[arr[i]] === undefined) {
          this.$Notice.error({ title: this.formItem.checkInfo[arr[i]], desc: '' })
          return false
        }
      }

      let param = {
        aac001: this.itemData.aac001,
        ajc114: this.itemData.ajc114, // 年度
        ajc115: this.itemData.ajc115, // 季度
        item_id: this.itemInfo.id
      }

      repeatApplicationValidation(param).then(res => {
        if (res.data.errcode === 0) {
          this.ruleData = res.data.data
          if (this.ruleData.code !== '1') {
            this.itemData.checkTable = this.ruleData.msg
            return false
          }
          this.modal4 = false
          this.$router.push({
            name: 'handinformation',
            params: { itemid: this.itemInfo.id, cardno: this.cardno, operation: '1' } })
        } else {
          this.$Notice.error({ title: '申请失败', desc: res.data.errmsg })
        }
      })
    },
    getDisabledInfo (item_id, cardno) { // 查询残疾殡葬前置信息
      var param1 = {
        'method': 'getQSTBCardInfo',
        'disabled_data': {
          'item_id': item_id,
          'cardno': cardno,
          'Name': this.usernname
        },
        'accountid': 'qstb'
      }
      createDisabilityApi(param1).then(ret => {
        if (ret.data.errcode === 0) {
          console.log('!@!@!@!@!@')
          this.paramData.funeralPersonnelFlag = true
          console.log(ret.data.data.data.findCanlianMap, '!@!@!!@!')
          if (!ret.data.data.data.getFuneralInfoMap.hhsj) {
            this.funeralPersonnelFlag = 'false'
            this.funeralPersonnel = '未查询到该人员殡葬信息'
          } else {
            this.funeralPersonnelFlag = 'true'
            this.funeralPersonnel = '火化时间：' + ret.data.data.data.getFuneralInfoMap.hhsj
          }
          if (ret.data.data.data.findCanlianMap.length !== 0) {
            console.log(ret.data.data.data.findCanlianMap[0], '残疾情况')
            this.disabledPersonFlag = 0
            this.disabledLevel = ret.data.data.data.findCanlianMap[0].DISABLED_LEVEL
            this.disabledPerson = ret.data.data.data.findCanlianMap[0].DISABLED_TYPE_NAME
            this.DISABLED_NUMBER = ret.data.data.data.findCanlianMap[0].DISABLED_NUMBER
            this.CJR_ALLOCATION_ID_NAME = ret.data.data.data.findCanlianMap[0].CJR_ALLOCATION_ID_NAME
            this.FIRST_TIME = ret.data.data.data.findCanlianMap[0].FIRST_TIME
          } else {
            this.disabledPersonFlag = 1
            this.disabledLevel = ''
            this.disabledPerson = '非残疾人'
          }
          return
        }
        this.$Modal.error({
          title: '错误',
          content: ret.data.errmsg,
          onOk: () => {
          }
        })
      })
    },
    // 就业创业证打印
    employmentPrint () {
      var param1 = {
        'AAC002': this.cardno
      }
      findEmploymentInfo(param1).then(ret => {
        if (this.loaduser) {
          if (ret.data.errcode === 0) {
            if (ret.data.data.result === '1') {
              this.employmentInfo = ret.data.data
              this.$refs.testprint.listPrintInfoView()
            } else {
              this.employment.modelData = true
            }
          }
        } else {
          this.$Notice.warning({ title: '无用户信息', desc: '请先获取用户信息后再办理事项' })
        }
      })
    },
    // 查询是否办理残疾人两项补贴
    getDisabilityInfo () {
      let params = {
        'cardno': this.cardno
      }
      getDisabilityInfo(params).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.disabilityFlag = true
          this.disabilityFlag = ret.data.data.state
          if (this.disabilityFlag === '0') {
            this.disability = '已领取'
          } else if (this.disabilityFlag === '1') {
            this.disability = '未领取'
          } else {
            this.disability = '错误'
          }
        } else {
          this.$Notice.error({ title: '残疾人两项补贴查询失败', desc: ret.data.errmsg })
        }
      })
    },
    // 查询办理人是否已申报政府购买服务
    getDoubleCheckState () {
      let params = {
        'idcardno': this.cardno
      }
      getDoubleCheckState(params).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.doubleCheckFlag = true
          this.doubleCheckFlag = ret.data.data.success
          if (this.doubleCheckFlag === true) {
            this.doubleCheck = '未办理'
          } else if (this.doubleCheckFlag === false) {
            this.doubleCheck = '已办理'
          } else {
            this.doubleCheck = '错误'
          }
        } else {
          this.$Notice.error({ title: '政府购买服务查询失败', desc: ret.data.errmsg })
        }
      })
    },
    OrYL () {
      // console.log(this.registerFlag !== '0', 'registerFlag')
      // console.log(this.age < 60, 'age')
      // console.log(this.difficulty !== '', 'difficulty')
      // console.log(this.funeralPersonnelFlag === 'true', 'funeralPersonnelFlag')
      // console.log(this.disabilityFlag === '0', 'disabilityFlag')
      // console.log(this.doubleCheckFlag === false, 'doubleCheckFlag')
      // if (this.paramData.doubleCheckFlag === true &&
      //   this.paramData.disabilityFlag === true &&
      // this.paramData.funeralPersonnelFlag === true &&
      // this.paramData.lowInsuredFlag === true && this.paramData.difficulty === true && this.paramData.registerFlag === true) {
      //   if (this.registerFlag !== '0' || this.age < 60 || this.difficulty !== '' || this.funeralPersonnelFlag === 'true' || this.disabilityFlag === '0' || this.doubleCheckFlag === false) {
      //     this.$Message.error({
      //       background: true,
      //       content: '该人员未满足办理条件'
      //     })
      //   } else {
      //     this.$router.push({
      //       name: 'handinformation',
      //       params: {
      //         itemid: '11210101000000MZJD5212000475000',
      //         cardno: this.cardno,
      //         operation: '1'
      //       }
      //     })
      //   }
      // } else {
      //   this.$Message.error({
      //     background: true,
      //     content: '正在为您查询请稍后'
      //   })
      // }
      if (this.registerFlag !== '0' || this.age < 60 || this.difficulty !== '' || this.funeralPersonnelFlag === 'true' || this.disabilityFlag === '0' || this.doubleCheckFlag === false) {
        this.$Message.error({
          background: true,
          content: '该人员未满足办理条件'
        })
      } else {
        this.$router.push({
          name: 'handinformation',
          params: {
            itemid: '11210101000000MZJD5212000475000',
            cardno: this.cardno,
            operation: '1'
          }
        })
      }
      // this.$router.push({
      //   name: 'handinformation',
      //   params: {
      //     itemid: '11210101000000MZJD5212000475000',
      //     cardno: this.cardno,
      //     operation: '1'
      //   }
      // })
    },
    qureyAge (idCardNo) {
      qureyAgeByCard({ 'cardno': idCardNo }).then(ret => {
        if (ret.data.errcode === 0) {
          this.age = ret.data.data.age
        } else {
          this.$Notice.error({ title: '高龄老人人员年龄信息查询失败', desc: ret.data.errmsg })
        }
      })
    },
    onBlurCard (idCardNo) {
      const val = idCardNo.length // 获取身份证号码长度
      const iden = idCardNo // 获取身份证号码输入框的值
      const myDate = new Date()
      myDate.setMonth(myDate.getMonth() + 3)
      const month = myDate.getMonth() + 1
      const day = myDate.getDate()
      let age = 0

      if (val === 18) {
        age = myDate.getFullYear() - iden.substring(6, 10) - 1
        if (iden.substring(10, 12) < month || (Number(iden.substring(10, 12)) === month && iden.substring(12, 14) <= day)) age++
      }
      if (val === 15) {
        age = myDate.getFullYear() - iden.substring(6, 8) - 1901
        if (iden.substring(8, 10) < month || (Number(iden.substring(8, 10)) === month && iden.substring(10, 12) <= day)) age++
      }
      return age
    },
    OkYangLlao () {
      if (this.applicationType === '0') {
        this.$Message.error({
          background: true,
          content: '请点击校验按钮,验证该人员是否办理过此事项'
        })
        return false
      }
      console.log('年龄', this.age)
      if (this.disabilityPersonnelFlag === true) {
        this.$Message.error({
          background: true,
          content: this.disabilityPersonnel
        })
        return false
      } else if (this.applicationType === '1' && (this.registerFlag !== '0' || this.age < 90 || this.funeralPersonnelFlag === 'true')) {
        this.$Message.error({
          background: true,
          content: '该人员未满足办理条件或未点击校验按钮'
        })
        return false
      } else {
        this.$router.push({
          name: 'handinformation',
          params: {
            itemid: '11210101000000MZJD5212000474000',
            cardno: this.cardno,
            operation: '1'
          }
        })
        return false
      }
    },
    OkCaiNuan () {
      this.paramData.loading = true
      if (this.paramData.isCheck === undefined || this.paramData.isCheck === '') {
        this.$Notice.error({ title: '请选择救助类型', desc: '' })
        return false
      }
      // let type = this.paramData.isCheck
      // if (type === '0') {
      //   type = '1'
      // }
      let data = {
        method: 'selectUserType',
        card_no: this.paramData.cardno,
        // card_no: '211382199611083135',
        // type: '1'
        type: this.paramData.isCheck,
        postCN: '0'
      }
      postCN(data).then(res => {
        if (res.data.errcode === 0) {
          this.subsidyacceptance()
        } else if (res.data.errcode === 9999) {
          this.paramData.loading = false
          this.$Notice.error({
            title: '身份验证失败！',
            desc: '1. 当前无法查询到当前用户信息，不是补贴救助对象，请重新确认。<br>' +
              '2. 救助类型说明：【低保】：城乡低保；【低保边缘家庭】：城乡低保边缘户；；【特困对象】：城乡分散供养特困。'
          })
          this.paramData.loading = false
        } else if (res.data.errcode === 9997) {
          this.paramData.loading = false
          this.$Notice.error({
            title: '身份验证失败！',
            desc: '1. 你所提交的用户信息已申请采暖补贴，请勿重复申请！<br>' +
            '2. 提醒说明：当前用户本人已申请过采暖补贴；当前用户所在家庭其他成员已申请过采暖补贴。'
          })
          this.paramData.loading = false
        } else if (res.data.errcode === 9990) {
          this.paramData.loading = false
          this.$Notice.error({
            title: '身份验证失败！',
            desc: res.data.errmsg
          })
        }
      })
      console.log(this.paramData.name, this.paramData.cardno, this.paramData.isCheck, 'paramsData')
    },
    getSNInfo (item_id, cardno, name) { // 前置查询查询失能老人信息 2021年10月12日更改
      var param = {
        method: 'getOldAgeDisability',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          if (ret.data.data.data) {
            this.snlr = ret.data.data.data.data.message
            return
          }
          this.snlr = '接口查询失败'
        }
      })
    },
    subsidyacceptance () {
      this.$router.push({
        name: 'cn_subsidyacceptance',
        params: {
          cardno: this.paramData.cardno,
          name: this.paramData.name,
          type: this.paramData.isCheck,
          operation: '1',
          itemid: '11210101000000MZJD5212000327000'
        }
      })
      return false
    },
    getHjInfo (item_id, cardno, name) { // 前置查询查询户籍信息 2021年4月30日更改
      var param = {
        method: 'getHouseholdInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.registerFlag = true
          if (ret.data.data.data.data.result) {
            this.registerFlag = ret.data.data.data.data.result
            if (ret.data.data.data.data.result === '-1') {
              this.register = '非沈阳户籍'
            } else if (ret.data.data.data.data.result === '0') {
              this.register = '沈阳有效户籍'
              this.hjdz = ret.data.data.data.data.hjdz
            } else if (ret.data.data.data.data.result === '1') {
              this.register = '户籍已删除'
            } else if (ret.data.data.data.data.result === '2') {
              this.register = '户籍被加锁'
            } else if (ret.data.data.data.data.result === '3') {
              this.register = '重错号'
            } else if (ret.data.data.data.data.result === '4') {
              this.register = '跨市重错号'
            } else if (ret.data.data.data.data.result === '6') {
              this.register = '持证'
            } else if (ret.data.data.data.data.result === '7') {
              this.register = '在逃犯'
            } else if (ret.data.data.data.data.result === '8') {
              this.register = '户籍已迁出沈阳'
            } else if (ret.data.data.data.data.result === '9') {
              this.register = '死亡'
            }
            return
          }
          this.registerFlag = ''
          this.register = '接口查询失败'
        }
        // if (ret.data.errcode === 0) {
        //   console.log(ret.data.data.data.data.result, '新户籍信息')
        // } else {
        //   this.$Notice.error({ title: '残疾人两项补贴查询失败', desc: ret.data.errmsg })
        // }
      })
    },
    getCjInfo (item_id, cardno, name) { // 前置查询查询残疾信息 2021年4月30日更改
      var param = {
        method: 'getDisabilityCheckInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          if (ret.data.data.errcode === 0) {
            console.log(ret.data.data.data, '新残疾信息')
            let msg = ret.data.data.data
            if (msg.NAME !== '' && msg.NAME !== undefined) {
              console.log(ret.data.data.data, '残疾情况')
              this.disabledPersonFlag = 0
              this.disabledLevel = ret.data.data.data.DISABLED_LEVEL
              this.disabledPerson = ret.data.data.data.DISABLED_TYPE_NAME
              this.DISABLED_NUMBER = ret.data.data.data.DISABLED_NUMBER
              this.CJR_ALLOCATION_ID_NAME = ret.data.data.data.CJR_ALLOCATION_ID_NAME
              this.FIRST_TIME = ret.data.data.data.FIRST_TIME
            } else {
              this.disabledPersonFlag = 1
              this.disabledLevel = ''
              this.disabledPerson = '非残疾人'
            }
            return
          }
          this.disabledPersonFlag = 'reset'
          this.disabledLevel = ''
          this.disabledPerson = ret.data.data.data.errMsg + ',请重试'
        }
      })
    },
    getBzInfo (item_id, cardno, name) { // 前置查询查询殡葬信息 2021年4月30日更改
      var param = {
        method: 'getFuneralInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.funeralPersonnelFlag = true
          console.log(ret.data.data.data.data, '新殡葬信息')
          if (!ret.data.data.data.data.hhsj) {
            this.funeralPersonnelFlag = 'false'
            this.funeralPersonnel = '未查询到该人员殡葬信息'
          } else {
            this.funeralPersonnelFlag = 'true'
            this.funeralPersonnel = '火化时间：' + ret.data.data.data.data.hhsj
          }
          return
        }
        this.funeralPersonnelFlag = 'reset'
        this.funeralPersonnel = '接口查询失败'
      })
    },
    getDbInfo (item_id, cardno, name) { // 前置查询查询低保信息 2021年4月30日更改
      this.lowInsured = ''
      var param = {
        method: 'getAllowancesInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          console.log(ret.data.data.data.data, '新低保信息')
          this.paramData.lowInsuredFlag = true
          if (ret.data.data.data.data.type) {
            this.lowInsuredFlag = ret.data.data.data.data.type
            this.lowInsured = this.formatLowPerson(ret.data.data.data.data.type)
            this.subsidies = this.formatLowSubsidies(ret.data.data.data.data.type)
            this.bank_name = ret.data.data.data.data.ssca0009
            this.bank_peoplename = ret.data.data.data.data.ssca0010
            this.bank_cardno = ret.data.data.data.data.ssca0011
            this.low_income_No = ret.data.data.data.data.ssca0014
            return
          }
          this.lowInsuredFlag = ''
        }
        this.lowInsuredFlag = 'reset'
        this.lowInsured = '接口查询失败'
      })
    },
    getGsInfo (item_id, cardno, name) { // 前置查询查询工伤信息 2021年4月30日更改
      var param = {
        method: 'getIndustrialInjuryInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          console.log(ret.data.data.data.data, '新工伤信息')
          if (ret.data.data.data.data.errcode === '200') {
            if (ret.data.data.data.data.res === '99999') {
              this.occupationa = '非领取工伤补贴人员'
            } else if (ret.data.data.data.data.res === '100') {
              this.occupationa = '领取工伤补贴人员'
            }
            return
          }
          this.occupationa = '接口查询失败'
        }
      })
    },
    getGeInfo (item_id, cardno, name) { // 前置查询查询孤儿信息 2021年4月30日更改
      var param = {
        method: 'checkOrphanInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          console.log(ret.data.data.data, '新孤儿信息')
          if (ret.data.data.data.result === '0') {
            this.orphan = '孤儿人员'
          } else if (ret.data.data.data.result === '-1') {
            this.orphan = ''
          }
          return
        }
        this.orphan = '接口查询失败'
      })
    },
    getTkInfo (item_id, cardno, name) { // 前置查询查询特困信息 2021年4月30日更改
      var param = {
        method: 'checkDifficultyInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          this.paramData.difficulty = true
          console.log(ret.data.data.data, '新特困信息')
          if (ret.data.data.data.result === '0') {
            this.difficulty = '特困供养人员'
          } else if (ret.data.data.data.result === '-1') {
            this.difficulty = ''
          }
          return
        }
        this.difficulty = '接口查询失败'
      })
    },
    getSubsidyInfo (item_id, cardno, name) { // 查询是否办理过两项补贴
      var param = {
        method: 'checkDisabilityHandleInfo',
        disabled_data: {
          'item_id': item_id,
          'cardno': cardno,
          'Name': name
        },
        accountid: 'qstb'
      }
      createDisabilityApi(param).then(ret => {
        if (ret.data.errcode === 0) {
          this.subsidyData = ret.data.data.data.data
          console.log(this.subsidyData, '查询个人是否办理过两补')
          return
        }
        this.$Message.error({
          title: '错误',
          content: ret.data.errmsg
        })
      })
    },
    openFile (url) {
      window.open(url)
    },
    /*
    * 获取浏览器版本信息
    */
    getBrowerInfo () {
      let userAgent = window.navigator.userAgent.toLowerCase()
      let browserType = ''
      let browserVersion = ''
      // let isIE = userAgent.match(/msie/) != null || userAgent.match(/trident/) != null
      if (userAgent.match(/msie/) != null || userAgent.match(/trident/) != null) {
        // 浏览器类型-IE
        browserType = 'IE'
        browserVersion = this.getIeVersion()
      } else if (window.opera || (userAgent.indexOf('opr') > 0)) {
        // 欧朋
        browserType = '欧朋'
        browserVersion = this.getOperaVersion(userAgent)
      } else if (userAgent.indexOf('ubrowser') > 0) {
        // UC
        browserType = 'UC'
        browserVersion = userAgent.match(/ubrowser\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('bidubrowser') > 0) {
        // 百度
        browserType = '百度'
        browserVersion = userAgent.match(/bidubrowser\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('metasr') > 0 || userAgent.indexOf('se 2.x') > 0) {
        // 搜狗
        browserType = '搜狗'
        // browserVersion =  userAgent.match(/metasr\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('tencenttraveler') > 0) {
        // QQ
        browserType = 'QQ'
        browserVersion = userAgent.match(/tencenttraveler\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('qqbrowser') > 0) {
        // QQ
        browserType = 'QQ'
        browserVersion = userAgent.match(/qqbrowser\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('maxthon') > 0) {
        // 遨游
        browserType = '遨游'
        browserVersion = userAgent.match(/maxthon\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('firefox') > 0) {
        // 火狐
        browserType = '火狐'
        browserVersion = userAgent.match(/firefox\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('edge') > 0) {
        // edge
        browserType = 'Edge'
        browserVersion = userAgent.match(/edge\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('chrome') > 0) {
        // 谷歌
        browserType = '谷歌'
        browserVersion = userAgent.match(/chrome\/([\d.]+)/)[1]
      } else if (userAgent.indexOf('Safari') > -1) {
        // 苹果
        browserType = 'Safari'
        browserVersion = userAgent.match(/version\/([\d.]+)/)[1]
      }
      let info = {
        type: browserType,
        version: browserVersion
      }
      return info
    }
  },
  watch: {
    searchname (data) {
      this.filterData()
    }
  },
  mounted () {
    this.severUserInfo = this.$store.state.user.severUserInfo
    let timestamp = new Date().getTime().toString()
    var str1 = Math.ceil(Math.random() * 10)
    var str2 = Math.ceil(Math.random() * 10)
    this.str = str1 + timestamp + str2
    itemtodolistForCSC().then(ret => {
      if (ret.data.errcode === 0) {
        var array = ret.data.data
        this.itemlist = array
        this.tablelist = this.itemlist[0].datalist || []
        var fcData = this.itemlist[2].datalist
        var temp1 = []
        var temp2 = []
        var temp3 = []
        var temp4 = []
        var temp9 = []
        fcData && fcData.forEach(element => {
          if (element.text.indexOf('公共租赁住房') !== -1 && element.text.indexOf('城镇中等偏下收入住房困难家庭') !== -1) {
            temp1.push(element)
            this.tableData[0].children[0].children = temp1
          }
          if (element.text.indexOf('公共租赁住房') !== -1 && element.text.indexOf('外来务工人员') !== -1) {
            temp2.push(element)
            this.tableData[0].children[1].children = temp2
          }
          if (element.text.indexOf('公共租赁住房') !== -1 && element.text.indexOf('外地来沈新就业中高等教育毕业生') !== -1) {
            temp3.push(element)
            this.tableData[0].children[2].children = temp3
          }
          if (element.text.indexOf('低收入住房困难家庭（廉租住房）') !== -1) {
            temp4.push(element)
            this.tableData[1].children = temp4
          }
          if (element.text.indexOf('住宅房屋租赁登记') !== -1 || element.text === '房屋租赁登记备案证明') {
            temp9.push(element)
            this.tableData[2].children = temp9
          }
        })
        console.log(this.tableData, '房产数据')
        this.loadData = false
      } else {
        this.loadData = true
      }
    })
  }
}
</script>
<style>
  .fc-div >>> .vxe-header--row {
    background-color: #f8f8f9;
  }
  /* .fc-div >>> .vxe-table .vxe-header--column:not(.col--ellipsis) {
    padding: 6px 0;
  } */
</style>
