|
@@ -40,25 +40,6 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
|
|
|
- <!-- <el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" >新增</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" >查看认领</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="danger" plain icon="el-icon-edit" size="mini" :disabled="multiple" @click="handleDelete" >变更</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="primary" :plain="nhykis" icon="el-icon-view" size="mini" @click="chajnd" >查看常住人口信息</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button type="primary" :plain="nhyki" icon="el-icon-view" size="mini" @click="chajnds" >查看户籍人口信息</el-button>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
- </el-row> -->
|
|
|
|
|
|
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" stripe style="width: 100%" :height="tableMaxHeight">
|
|
|
<el-table-column label="查询结果" align="center" prop="result" />
|
|
@@ -66,214 +47,8 @@
|
|
|
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
|
- <!-- 添加或修改疫苗信息对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="opens" width="1240px" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="8" v-if="shouwef">
|
|
|
- <el-form-item label="身份证号" prop="idCard"><el-input v-model="form.idCard" placeholder="请输入身份证号码" @blur="idcde" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="shouwef">
|
|
|
- <el-form-item label="姓名" prop="userName"><el-input v-model="form.userName" placeholder="请输入姓名" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="shouwef">
|
|
|
- <el-form-item label="性别" prop="gender">
|
|
|
-
|
|
|
- <!-- <el-input v-model="form.gender" placeholder="请输入性别" /> -->
|
|
|
-
|
|
|
- <el-select v-model="form.gender" placeholder="性别" clearable style="width: 100%;">
|
|
|
- <el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" v-if="shouwef">
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="联系号码" prop="phoneNum"><el-input v-model="form.phoneNum" placeholder="请输入联系号码" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="人员分类" prop="keyIndustries">
|
|
|
- <el-select v-model="form.keyIndustries" placeholder="人员分类" clearable style="width: 100%;">
|
|
|
- <el-option v-for="dict in typeOptionsname" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="年龄" prop="age"><el-input v-model="form.age" placeholder="请输入年龄" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12" style="position: relative;">
|
|
|
- <span style="position: absolute;top:5px; color: red;left:25px;">*</span>
|
|
|
- <el-form-item label="户籍地址" style="margin-bottom: 5px;" >
|
|
|
- <!-- <el-input v-model="form.villageTowns" type="textarea" placeholder="请输入内容" /> -->
|
|
|
- <!-- <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" :multiple=true placeholder="点击选择户籍地" /> -->
|
|
|
- <el-cascader
|
|
|
- v-if="nhyesfx"
|
|
|
- :placeholder="nhdyesfgh"
|
|
|
- :options="optionsLists"
|
|
|
- :filterable="true"
|
|
|
- separator="/"
|
|
|
- @change="chahe"
|
|
|
- :props="optionPropsss"
|
|
|
- style="width: 100%;"
|
|
|
- ref="myCascader"
|
|
|
- @active-item-change="handleItemChanges"
|
|
|
- :class="[nhdyesfgh == '点击选择户籍地址' ? '' : 'placf']"
|
|
|
- ></el-cascader>
|
|
|
- <!-- @click.native="clicks"
|
|
|
- :popper-class="'cascader' + id" -->
|
|
|
- <!-- <el-cascader
|
|
|
- :placeholder="nhdyesfgh"
|
|
|
- :options="optionsList"
|
|
|
- :filterable="true"
|
|
|
- separator="/"
|
|
|
- @change="chahe(index)"
|
|
|
- v-model="selected"
|
|
|
- :props="optionPropsss"
|
|
|
- style="width: 100%;"
|
|
|
- ref="myCascader"
|
|
|
- @active-item-change="handleItemChange"
|
|
|
- :class="[nhdyesfgh == '点击选择居住地址' ? '' : 'placf']"
|
|
|
- ></el-cascader> -->
|
|
|
- <p style="line-height: 20px; font-size: 12px;color: red;">点击小圆圈一级一级选择</p>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="详细地址" prop="nowIn"><el-input v-model="form.nowIn" type="input" placeholder="请输入户籍详细地址" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
|
|
|
- <el-col :span="24" v-for="(item, index) in form.czrkJzdzList" :key="index" v-show="senlsduea == false || index !== 0">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="居住地址" prop="province" style="margin-bottom: 5px;">
|
|
|
- <el-cascader
|
|
|
- :placeholder="item.plaed"
|
|
|
- :options="item.optiodne"
|
|
|
- :filterable="true"
|
|
|
- separator="/"
|
|
|
- @change="onSelected(index)"
|
|
|
- :props="optionPropsss"
|
|
|
- style="width: 100%;"
|
|
|
- :ref="'myCascaderf' + '' + index"
|
|
|
- v-model="item.seleted"
|
|
|
- @active-item-change="handleItemChange"
|
|
|
- :class="[item.plaed == '请选择居住地址' ? '' : 'placf']"
|
|
|
- ></el-cascader>
|
|
|
- <!-- :popper-class="'cascader' + idsg"
|
|
|
- @click.native="click(index)" -->
|
|
|
- <!-- @active-item-change="handleItemChange" v-if = 'nhdyesku' -->
|
|
|
- <p style="line-height: 20px; font-size: 12px;color: red;">点击小圆圈一级一级选择</p>
|
|
|
- </el-form-item>
|
|
|
- <!-- :key="cascaderKey" seleted -->
|
|
|
-
|
|
|
- </el-col>
|
|
|
- <el-col :span="11">
|
|
|
- <el-form-item label="详细地址" prop="nowIn"><el-input v-model="item.nowIn" type="input" placeholder="请输入内容" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1">
|
|
|
- <div class="hyeoa" style="margin-top: 10px;">
|
|
|
- <el-tooltip class="item" effect="dark" content="新增居住地址信息,请慎重操作" placement="top-start">
|
|
|
- <img src="../../../assets/images/icon_tc_add.png" alt="" class="hueyde" @click="tijea(index)" />
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip class="item" effect="dark" content="删除无法恢复,请慎重操作" placement="top-start">
|
|
|
- <img src="../../../assets/images/delei.png" alt="" class="hueydele" @click="naeyrfakjf(index, item)" />
|
|
|
- </el-tooltip>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="24" >
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="户主" prop="houseType">
|
|
|
- <el-select v-model="form.houseType" placeholder="户主" clearable style="width: 100%;" @change="changese">
|
|
|
- <el-option v-for="dict in typeOptionshuuj" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="户编号" prop="code">
|
|
|
- <el-input v-model="form.code" placeholder="请输入户主编号"/>
|
|
|
- <!-- :disabled="nhe" -->
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" >
|
|
|
- <el-col :span="12" >
|
|
|
- <el-form-item label="与户主关系" prop="yhzgx">
|
|
|
- <el-select v-model="form.yhzgx" placeholder="与户主关系" clearable style="width: 100%;">
|
|
|
- <el-option v-for="dict in typeOptionstyzandeh" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictLabel" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="网格" prop="houseTyper">
|
|
|
- <el-cascader
|
|
|
- :placeholder="ndhesdweaf"
|
|
|
- :options="optionsListwg"
|
|
|
- filterable
|
|
|
- @change="chahetwoswge"
|
|
|
- :props="optionPropsssdwg"
|
|
|
- style="width: 100%;"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- :key="nhduesw"
|
|
|
- ref = "cddfr"
|
|
|
- @active-item-change="handleItemChangefrwg"
|
|
|
- :class="[ndhesdweaf == '点击选择网格' ? '' : 'placf']"
|
|
|
- ></el-cascader>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="备注" prop="remark">
|
|
|
- <el-input v-model="form.remark" type="input" placeholder="请输入户籍详细地址" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <!-- 图片预览 -->
|
|
|
- <el-dialog :close-on-click-modal="false" title="变更原因" :visible.sync="imashow" width="800px" append-to-body >
|
|
|
- <el-form ref="formgt" :model="formgt" :rules="ruleshy" label-width="100px" style="padding-bottom: 30px;">
|
|
|
- <el-form-item label="变更:" prop="houseType">
|
|
|
- <el-select v-model="formgt.houseType" placeholder="请选择变更原因" clearable style="width: 100%;">
|
|
|
- <el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitFormfr">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <el-dialog :close-on-click-modal="false" title="查看信息" :visible.sync="jiezhong" width="1100px" append-to-body class="ojhgy">
|
|
|
- <el-table :data="jiezheList" stripe style="width: 100%">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="姓名" align="center" prop="userName" fixed width="100"/>
|
|
|
- <el-table-column label="与户主关系" align="center" prop="yhzgx" fixed width="100"/>
|
|
|
- <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
|
|
|
- <el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
|
|
|
- <el-table-column label="户籍地址" align="center" prop="domicileSelect" width="250" />
|
|
|
- <!-- nowInSelect -->
|
|
|
- <el-table-column label="居住地址" align="center" prop="nowInSelect" />
|
|
|
- <!-- <el-table-column label="是否户主" align="center" prop="houseType" width="90" /> -->
|
|
|
- <el-table-column v-if="nhyesoder !== 3" label="操作人" align="center" prop="updateBy" width="90" />
|
|
|
- <el-table-column v-if="nhyesoder !== 3" label="创建时间" align="center" prop="createTime" />
|
|
|
- </el-table>
|
|
|
- </el-table>
|
|
|
- <pagination v-show="totalfr > 0" :total="totalfr" :page.sync="ndhuwosdjh.pageNum" :limit.sync="ndhuwosdjh.pageSize" @pagination="chakei" />
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -561,31 +336,6 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
this.nameutaiL = data
|
|
|
- console.log(this.nameutaiL,76543)
|
|
|
- console.log(this.form.czrkJzdzList[data].seleted)
|
|
|
- console.log(this.$refs['myCascaderf' + '' + data],123)
|
|
|
- console.log(this.$refs['myCascaderf' + '' + data][0].$refs.panel.checkedValue,data)
|
|
|
- console.log(this.$refs['myCascaderf' + '' + data][0].getCheckedNodes()[0].pathLabels)
|
|
|
-
|
|
|
- // if(data !== 0){
|
|
|
- // if(this.nhyeojd = true){
|
|
|
- // this.$refs['myCascaderf' + '' + this.nameutaiL][0].$refs.panel.clearCheckedNodes()
|
|
|
- // }
|
|
|
- // }
|
|
|
- // var nhedse = []
|
|
|
- // nhedse = this.$refs['myCascaderf']
|
|
|
- // if(nhedse.length > 1){
|
|
|
- // this.$refs['myCascaderf'] = this.$refs['myCascaderf'][0];
|
|
|
- // console.log(this.$refs['myCascaderf'],133)
|
|
|
- // // for(var i = 0 ; i < nhedse.length; i++){
|
|
|
- // // if(i == 0){
|
|
|
- // // this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes()
|
|
|
- // // }
|
|
|
- // // }
|
|
|
- // }
|
|
|
- // this.$refs['myCascaderf'][0].$refs.panel.checkedValue = this.form.czrkJzdzList[data].seleted
|
|
|
- // console.log(this.$refs['myCascaderf'][0].$refs.panel.checkedValue,data)
|
|
|
- // console.log(this.$refs['myCascaderf'][0].getCheckedNodes()[0].pathLabels)
|
|
|
this.nhyeojd = false
|
|
|
// this.nhdyesku = false
|
|
|
// province
|
|
@@ -630,19 +380,6 @@ export default {
|
|
|
this.form.czrkJzdzList[data].village = nhdye[ nhdye.length - 1];
|
|
|
}
|
|
|
this.form.czrkJzdzList[data].deptId = nhyhe[ nhyhe.length - 1]
|
|
|
- // id
|
|
|
- // this.form.province = data[0];
|
|
|
- // this.form.city = data[1];
|
|
|
- // this.form.region = data[2];
|
|
|
- // 名称
|
|
|
- // this.naiseurya = this.form.province + this.form.city + this.form.region;
|
|
|
- // if (this.jdourdjoaj == false) {
|
|
|
- // // 修改
|
|
|
- // this.form.nowIn = '';
|
|
|
- // }
|
|
|
- // this.form.nowIn = undefined
|
|
|
- // this.form.villageTowns = data[3]
|
|
|
- console.log(this.form)
|
|
|
},
|
|
|
dakousr() {
|
|
|
console.log(2345);
|
|
@@ -663,7 +400,6 @@ export default {
|
|
|
this.form.czrkJzdzList[this.nameutaiL].optiodne = this.handleData(response.data);
|
|
|
this.optionsLists = this.handleData(response.data);
|
|
|
this.optionsList = this.handleData(response.data);
|
|
|
-
|
|
|
// this.form.czrkJzdzList[0].optiodne
|
|
|
this.loading = false;
|
|
|
console.log(this.cascaderKey,8765)
|
|
@@ -788,18 +524,6 @@ export default {
|
|
|
console.log(this.nameutaiL,2345)
|
|
|
console.log(this.form.czrkJzdzList,12365)
|
|
|
this.$set(this.form.czrkJzdzList[this.nameutaiL],'optiodne',this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level))
|
|
|
- // this.form.czrkJzdzList[this.nameutaiL].optiodne = this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level);
|
|
|
- // console.log(this.optionsList,23456)
|
|
|
- // console.log(this.$refs.myCascaderf,2588)
|
|
|
- // console.log(this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes(),258)
|
|
|
- // if(data !== 0){
|
|
|
- // if(this.nhyeojd == true){
|
|
|
- // this.$refs['myCascaderf'][this.nameutaiL].$refs.panel.clearCheckedNodes()
|
|
|
- // }
|
|
|
- // }
|
|
|
- // this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes()
|
|
|
- // console.log(this.$refs['myCascaderf'][this.nameutaiL].$refs.panel.checkedValue,345678)
|
|
|
-
|
|
|
},
|
|
|
|
|
|
|
|
@@ -914,9 +638,8 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listInfo(this.queryParams).then(response => {
|
|
|
- this.infoList = response.rows;
|
|
|
+ this.infoList = response.data;
|
|
|
this.nbdgywkajs = true
|
|
|
- this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
@@ -1476,25 +1199,6 @@ export default {
|
|
|
}
|
|
|
console.log(this.villageTownshy,3455)
|
|
|
|
|
|
- // if (this.form.vaccineInfoUserList !== null) {
|
|
|
- // if (this.form.vaccineInfoUserList.length == 0) {
|
|
|
-
|
|
|
- // }else {
|
|
|
- // this.form.isVaccination = '是'
|
|
|
- // this.form.vaccineInfoUserList.filter(router =>{
|
|
|
- // if(router.url == undefined){
|
|
|
- // router.url = null
|
|
|
- // }else if(router.url == []){
|
|
|
- // router.url = null
|
|
|
- // }
|
|
|
- // router.disableg = true
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // villageTownshy
|
|
|
- // }
|
|
|
- // this.heuiq.push()
|
|
|
- // this.form = response.data;
|
|
|
this.naiseurya = '';
|
|
|
this.hsuej = '';
|
|
|
this.opens = true;
|
|
@@ -1504,15 +1208,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
chahe(data) {
|
|
|
- console.log(data);
|
|
|
- // let labelValue = this.$refs['myCascader'].inputValue
|
|
|
- // console.log(labelValue)
|
|
|
- console.log(this.$refs['myCascader'])
|
|
|
- // this.form.provinceId = data[1];
|
|
|
- // this.form.cityId = data[2];
|
|
|
- // this.form.regionId = data[3];
|
|
|
- // this.form.villageTownsId = data[3];
|
|
|
- // this.form.villageId = data[3];
|
|
|
let nhdye = []
|
|
|
nhdye = this.$refs['myCascader'].getCheckedNodes()[0].pathLabels
|
|
|
if(data.length == 1){
|
|
@@ -1552,239 +1247,19 @@ export default {
|
|
|
this.form.village = nhdye[ data.length - 1];
|
|
|
}
|
|
|
this.form.deptId = data[ data.length - 1];
|
|
|
-
|
|
|
- // if (this.form.villageTowns !== undefined) {
|
|
|
- // this.hsuej = this.form.villageTowns;
|
|
|
- // if (this.form.village !== undefined) {
|
|
|
- // this.hsuej = this.form.villageTowns + this.form.village;
|
|
|
- // if (this.form.villagerGroup !== undefined) {
|
|
|
- // this.hsuej = this.form.villageTowns + this.form.village + this.form.villagerGroup;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
this.form.domicile = '';
|
|
|
- console.log(this.form)
|
|
|
|
|
|
- // if(this.jdourdjoaj == true){
|
|
|
- // //新增
|
|
|
- // this.form.nowIn = this.hsuej
|
|
|
-
|
|
|
- // }else{
|
|
|
- // this.form.nowIn != this.hsuej
|
|
|
- // }
|
|
|
},
|
|
|
chahetwo(data) {
|
|
|
- console.log(data)
|
|
|
- if(data.length == 1){
|
|
|
- this.queryParams.provinceId = data[ data.length - 1];
|
|
|
- }else if(data.length == 2){
|
|
|
- this.queryParams.provinceId = undefined
|
|
|
- this.queryParams.cityId = data[ data.length - 1];
|
|
|
- }else if(data.length == 3){
|
|
|
- this.queryParams.provinceId = undefined
|
|
|
- this.queryParams.cityId = undefined
|
|
|
- this.queryParams.regionId = data[ data.length - 1];
|
|
|
- }else if(data.length == 4){
|
|
|
- this.queryParams.provinceId = undefined
|
|
|
- this.queryParams.cityId = undefined
|
|
|
- this.queryParams.regionId = undefined
|
|
|
- this.queryParams.villageTownsId = data[ data.length - 1];
|
|
|
- }else if(data.length == 5){
|
|
|
- this.queryParams.provinceId = undefined
|
|
|
- this.queryParams.cityId = undefined
|
|
|
- this.queryParams.regionId = undefined
|
|
|
- this.queryParams.villageTownsId = undefined
|
|
|
- this.queryParams.villageId = data[ data.length - 1];
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
// 居住地址搜索条件
|
|
|
chahetwos(data) {
|
|
|
- console.log(data)
|
|
|
- if(data.length == 1){
|
|
|
- this.queryParams.provinceIdXjd = data[ data.length - 1];
|
|
|
- this.queryParams.cityIdXjd = undefined
|
|
|
- this.queryParams.regionIdXjd = undefined
|
|
|
- this.queryParams.villageTownsIdXjd = undefined
|
|
|
- this.queryParams.villageIdXjd = undefined
|
|
|
- }else if(data.length == 2){
|
|
|
- this.queryParams.provinceIdXjd = undefined
|
|
|
- this.queryParams.cityIdXjd = data[ data.length - 1];
|
|
|
- this.queryParams.regionIdXjd = undefined
|
|
|
- this.queryParams.villageTownsIdXjd = undefined
|
|
|
- this.queryParams.villageIdXjd = undefined
|
|
|
- }else if(data.length == 3){
|
|
|
- this.queryParams.provinceIdXjd = undefined
|
|
|
- this.queryParams.cityIdXjd = undefined
|
|
|
- this.queryParams.regionIdXjd = data[ data.length - 1];
|
|
|
- this.queryParams.villageTownsIdXjd = undefined
|
|
|
- this.queryParams.villageIdXjd = undefined
|
|
|
- }else if(data.length == 4){
|
|
|
- this.queryParams.provinceIdXjd = undefined
|
|
|
- this.queryParams.cityIdXjd = undefined
|
|
|
- this.queryParams.regionIdXjd = undefined
|
|
|
- this.queryParams.villageTownsIdXjd = data[ data.length - 1];
|
|
|
- this.queryParams.villageIdXjd = undefined
|
|
|
- }else if(data.length == 5){
|
|
|
- this.queryParams.provinceIdXjd = undefined
|
|
|
- this.queryParams.cityIdXjd = undefined
|
|
|
- this.queryParams.regionIdXjd = undefined
|
|
|
- this.queryParams.villageTownsIdXjd = undefined
|
|
|
- this.queryParams.villageIdXjd = data[ data.length - 1];
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.$refs['form'].validate(valid => {
|
|
|
- console.log(this.selected);
|
|
|
- if (valid) {
|
|
|
- let reg = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
|
|
- let _IDre15 = /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/;
|
|
|
- // 护照
|
|
|
- // let ncjsle = /^1[45][0-9]{7}$|(^[P|p|S|s]\d{7}$)|(^[S|s|G|g|E|e]\d{8}$)|(^[Gg|Tt|Ss|Ll|Qq|Dd|Aa|Ff]\d{8}$)|(^[H|h|M|m]\d{8,10}$)/;
|
|
|
- let ncjsle = /^[a-zA-Z0-9]{5,17}$/
|
|
|
- let nhyeli = /^[a-zA-Z]{5,17}$/
|
|
|
- // 港澳
|
|
|
- let gnse = /^([A-Z]\d{6,10}(\(\w{1}\))?)$/;
|
|
|
- // 台湾
|
|
|
- // let tw = /^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/
|
|
|
- var tw = /^[0-9]{8}$/;
|
|
|
- var twe = /^[0-9]{10}$/;
|
|
|
- // 校验身份证:
|
|
|
- console.log(reg.test(this.form.idCard),23741)
|
|
|
- if ( reg.test(this.form.idCard)|| _IDre15.test(this.form.idCard)) {
|
|
|
- this.idea();
|
|
|
- // this.go(this.form.idCard.length);
|
|
|
- // callback()
|
|
|
- } else {
|
|
|
- if(ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)){
|
|
|
- console.log(3)
|
|
|
- }else{
|
|
|
- if(gnse.test(this.form.idCard) ){
|
|
|
- console.log(4)
|
|
|
- }else{
|
|
|
- if(tw.test(this.form.idCard) || twe.test(this.form.idCard)){
|
|
|
- console.log(5)
|
|
|
- }else{
|
|
|
- this.msgInfo('证件格式不正确');
|
|
|
- return false
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- // callback(new Error('身份证号码不正确'))
|
|
|
- }
|
|
|
- // let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
|
|
|
- // if (reg.test(this.form.idCard)) {
|
|
|
- // // this.idea();
|
|
|
- // // this.go(this.form.idCard.length);
|
|
|
- // // callback()
|
|
|
- // } else {
|
|
|
- // // callback(new Error('身份证号码不正确'))
|
|
|
- // this.msgInfo('身份证号码不正确');
|
|
|
- // return false
|
|
|
- // }
|
|
|
-
|
|
|
- // let redw = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
|
|
- // console.log(this.form)
|
|
|
- // console.log(redw.test(this.form.phoneNum))
|
|
|
- // if (this.form.phoneNum == null) {
|
|
|
- // // this.idea();
|
|
|
- // // this.go(this.form.idCard.length);
|
|
|
- // // callback()
|
|
|
- // } else{
|
|
|
- // if(this.form.phoneNum !== ''){
|
|
|
- // if(redw.test(this.form.phoneNum)){
|
|
|
-
|
|
|
- // }else{
|
|
|
- // this.msgInfo('手机号码不正确');
|
|
|
- // return false
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // // callback(new Error('身份证号码不正确'))
|
|
|
-
|
|
|
- // }
|
|
|
-
|
|
|
- if (this.form.id != null) {
|
|
|
- // this.form.nowIn = this.naiseurya + this.form.nowIn;
|
|
|
- // this.form.domicile = this.hsuej + this.form.domicile;
|
|
|
- if(this.ncdwee == 1){
|
|
|
- this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
|
|
|
- }
|
|
|
- this.ncdwee = this.ncdwee + 1
|
|
|
- // this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
|
|
|
- this.senlsduea = false
|
|
|
- this.form.isRl = '是'
|
|
|
- console.log(this.form.czrkJzdzList)
|
|
|
- updateInfo(this.form).then(response => {
|
|
|
- console.log(response)
|
|
|
- if(response.code == 200){
|
|
|
- this.ncdwee = 1;
|
|
|
- this.nhdyesfgh ='点击选择户籍地址';
|
|
|
- this.msgSuccess('操作成功');
|
|
|
- this.opens = false;
|
|
|
- this.nhyesfx = false
|
|
|
- if(this.queryParams.queryType == 'cz'){
|
|
|
- this.getListch();
|
|
|
- }else if(this.queryParams.queryType == 'hj'){
|
|
|
- this.getList();
|
|
|
- }
|
|
|
- // this.getList();
|
|
|
- this.ncdwee = 1
|
|
|
- // this.getTreeselectjuetj()
|
|
|
- return false
|
|
|
- }else{
|
|
|
- // this.senlsduea = true
|
|
|
- // this.form.czrkJzdzList.unshift(this.form.czrkJzdzList[0])
|
|
|
- this.nhdyesfgh ='点击选择户籍地址'
|
|
|
- this.ncdwee = 1
|
|
|
- this.$message.error(response.msg + '请重新填写');
|
|
|
- // this.mnyesfjerty(0)
|
|
|
- // if(this.nhyesaw == 1){
|
|
|
- // this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
|
|
|
- // }
|
|
|
- this.opens = false
|
|
|
- }
|
|
|
|
|
|
- });
|
|
|
- } else {
|
|
|
- // this.form.nowIn = this.naiseurya + this.form.nowIn;
|
|
|
- // this.form.domicile = this.hsuej + this.form.domicile;
|
|
|
- // if (this.form.nowIn == 'undefined') {
|
|
|
- // this.form.nowIn = null;
|
|
|
- // }
|
|
|
- // if(this.form.czrkJzdzList[0].province == ''){
|
|
|
- // this.msgSuccess('请填写居住地址');
|
|
|
- // return false
|
|
|
- // }
|
|
|
- console.log(this.form)
|
|
|
- this.form.czrkJzdzList.filter(route =>{
|
|
|
- route.seleted = []
|
|
|
- route.optiodne = []
|
|
|
- })
|
|
|
- // return
|
|
|
- addInfo(this.form).then(response => {
|
|
|
- // this.msgSuccess('新增成功');
|
|
|
- // this.opens = false;
|
|
|
- // this.getList();
|
|
|
- if(response.code == 200){
|
|
|
- this.msgSuccess('新增成功');
|
|
|
- this.opens = false;
|
|
|
- this.nhyesfx = false
|
|
|
- if(this.queryParams.queryType == 'cz'){
|
|
|
- this.getListch();
|
|
|
- }else if(this.queryParams.queryType == 'hj'){
|
|
|
- this.getList();
|
|
|
- }
|
|
|
- // this.getList();
|
|
|
- }else{
|
|
|
- this.$message.error(response.msg + '请重新填写');
|
|
|
- this.opens = false
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
@@ -1826,108 +1301,11 @@ export default {
|
|
|
},
|
|
|
// 点击新增
|
|
|
tijea(index) {
|
|
|
- console.log(index+ 1)
|
|
|
- this.nameutaiL = index+ 1
|
|
|
- this.cascaderKey = index + 1
|
|
|
- this.form.czrkJzdzList.push({
|
|
|
- provinceId: '',
|
|
|
- province: '',
|
|
|
- deptId: '',
|
|
|
- cityId: '',
|
|
|
- city: '',
|
|
|
- regionId:'',
|
|
|
- region: '',
|
|
|
- townId: '',
|
|
|
- town: '',
|
|
|
- villageId: '',
|
|
|
- village: '',
|
|
|
- nowIn:'',
|
|
|
- disableg:false,
|
|
|
- seleted:[],
|
|
|
- optiodne:[],
|
|
|
- plaed:'请选择居住地址',
|
|
|
- });
|
|
|
- this.nhyeojd = true
|
|
|
- this.mnyesfjer(0)
|
|
|
- // this.form.czrkJzdzList[this.nameutaiL].optiodne
|
|
|
- // console.log(this.cascaderKey,123465)
|
|
|
- // // console.log()
|
|
|
- // console.log( this.$refs.myCascaderf[this.$refs.myCascaderf.length - 1] ,258)
|
|
|
- // // console.log(this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes(),258)
|
|
|
- // this.$refs['myCascaderf'][this.$refs.myCascaderf.length - 1].$refs.panel.clearCheckedNodes()
|
|
|
- // console.log(this.$refs['myCascaderf'][0].$refs.panel.checkedValue,34567)
|
|
|
- // this.mnyesfjer(0)
|
|
|
},
|
|
|
// 点击删除
|
|
|
naeyrfakjf(index, item) {
|
|
|
- if(this.form.czrkJzdzList.length == 2){
|
|
|
- this.$message.error('居住地为必填不可全删除');
|
|
|
- return false
|
|
|
- }
|
|
|
- var that = this
|
|
|
- this.$confirm('是否确认删除信息?', '警告', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(function() {
|
|
|
- return that.delseeug(index,item)
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- // this.getList();
|
|
|
- // this.msgSuccess('删除成功');
|
|
|
- });
|
|
|
-
|
|
|
},
|
|
|
delseeug(index,item){
|
|
|
- console.log(234)
|
|
|
- if (this.form.czrkJzdzList.length == 1) {
|
|
|
- // if (this.jdourdjoaj == true) {
|
|
|
- // // 新增
|
|
|
- // this.form.vaccineInfoUserList = [{
|
|
|
- // vaccineName: '',
|
|
|
- // vaccinationTime: '',
|
|
|
- // vaccinationPlace: '',
|
|
|
- // jici: '',
|
|
|
- // progress: '',
|
|
|
- // url:null,
|
|
|
- // disableg:false
|
|
|
- // }]
|
|
|
- // } else {
|
|
|
- // // 修改
|
|
|
- // let ide = this.form.vaccineInfoUserList[index].id;
|
|
|
- // console.log(this.form.vaccineInfoUserList[index]);
|
|
|
- // // ()
|
|
|
- // console.log(ide);
|
|
|
- // if (ide !== undefined) {
|
|
|
- // console.log(234);
|
|
|
- // delInfort(ide).then(response => {
|
|
|
- // this.msgSuccess('操作成功');
|
|
|
- // });
|
|
|
- // }
|
|
|
- // this.form.vaccineInfoUserList = [{
|
|
|
- // vaccineName: '',
|
|
|
- // vaccinationTime: '',
|
|
|
- // vaccinationPlace: '',
|
|
|
- // jici: '',
|
|
|
- // progress: '',
|
|
|
- // url:null,
|
|
|
- // disableg:false
|
|
|
- // }]
|
|
|
- // }
|
|
|
-
|
|
|
- this.msgSuccess('只剩一条数据,无法删除');
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (this.jdourdjoaj == true) {
|
|
|
- // 新增
|
|
|
- this.form.czrkJzdzList.splice(index, 1);
|
|
|
- } else {
|
|
|
- // 修改
|
|
|
- // ()
|
|
|
- this.form.czrkJzdzList.splice(index, 1);
|
|
|
- }
|
|
|
- this.msgSuccess('删除成功');
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -1980,33 +1358,7 @@ export default {
|
|
|
},
|
|
|
// 点击查看
|
|
|
chakei(row) {
|
|
|
- console.log(row);
|
|
|
- let nhyes= {pageNum: 1,
|
|
|
- pageSize: 10,}
|
|
|
- this.nhyesoder = row
|
|
|
- if(row == 0){
|
|
|
- // 新增
|
|
|
- listInfotjxz(this.ndhuwosdjh).then(response => {
|
|
|
- // this.msgSuccess('操作成功');
|
|
|
- this.jiezheList = response.rows
|
|
|
- this.totalfr = response.total
|
|
|
- })
|
|
|
- } else if(row == 1){
|
|
|
- // 减少
|
|
|
- listInfotjjs(this.ndhuwosdjh).then(response => {
|
|
|
- // this.msgSuccess('操作成功');
|
|
|
- this.jiezheList = response.rows
|
|
|
- this.totalfr = response.total
|
|
|
-
|
|
|
- } )
|
|
|
- }// yiaoe({idCard:row.idCard}).then(response => {
|
|
|
- // // this.msgSuccess('操作成功');
|
|
|
- // if(response.code == 200){
|
|
|
- // this.jiezheList = response.data
|
|
|
- // }
|
|
|
- // });
|
|
|
|
|
|
- this.jiezhong = true;
|
|
|
},
|
|
|
// 查看家庭成员信息
|
|
|
handleDeletefamide(row){
|
|
@@ -2082,11 +1434,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
let d = document.getElementsByClassName("cascader"+ this.idsg)
|
|
|
this.nameutaiL +'s'
|
|
|
- console.log("cascader"+ '' +this.nameutaiL);
|
|
|
- console.log(48);
|
|
|
- console.log(d);
|
|
|
- console.log(d[0]);
|
|
|
- console.log( !d[0].onclick);
|
|
|
if( d[event] && !d[event].onclick ){
|
|
|
d[event].onclick = function(e) {
|
|
|
console.log(e);
|
|
@@ -2100,11 +1447,6 @@ export default {
|
|
|
clicks(event) {
|
|
|
this.$nextTick(() => {
|
|
|
let d = document.getElementsByClassName("cascader"+'' +this.id);
|
|
|
- console.log("cascader"+ '' +this.nameutaiL);
|
|
|
- console.log(48);
|
|
|
- console.log(d);
|
|
|
- console.log(d[0]);
|
|
|
- console.log( !d[0].onclick);
|
|
|
if( d[0] && !d[0].onclick ){
|
|
|
d[0].onclick = function(e) {
|
|
|
console.log(e);
|