|
|
|
@ -3,23 +3,14 @@ |
|
|
|
<!-- <el-card class="resi-card"> --> |
|
|
|
<div> |
|
|
|
|
|
|
|
<el-form :inline="true" |
|
|
|
class="header_form_box" |
|
|
|
v-for="(item, index) in sliceList(itemList, 4)" |
|
|
|
:class="boxHeight ? 'm-form-box-height-auto' : 'm-form-box-height'" |
|
|
|
:key="index"> |
|
|
|
<el-form-item v-for="n in item" |
|
|
|
:key="n.id"> |
|
|
|
<el-form :inline="true" class="header_form_box" v-for="(item, index) in sliceList(itemList, 4)" |
|
|
|
:class="boxHeight ? 'setFormBoxHeightAuto' : 'setFormBoxHeight'" :key="index"> |
|
|
|
<el-form-item v-for="n in item" :key="n.id"> |
|
|
|
<div class="resi-cell"> |
|
|
|
<div style="width:100px;text-align: right;padding-right:14px ;">{{ n.label }}:</div> |
|
|
|
<div class="resi-cell-value" |
|
|
|
:class="n.itemType === 'radio' && 'resi-cell-value-radio'"> |
|
|
|
<el-input v-if="n.itemType === 'input' || n.itemType === 'textarea'" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
class="u-item-width-normal" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
placeholder="请输入内容"> |
|
|
|
<div class="resi-cell-value" :class="n.itemType === 'radio' && 'resi-cell-value-radio'"> |
|
|
|
<el-input v-if="n.itemType === 'input' || n.itemType === 'textarea'" v-model.trim="form[n.columnName]" |
|
|
|
class="item_width_normal" size="small" clearable placeholder="请输入内容"> |
|
|
|
</el-input> |
|
|
|
<template v-else-if="n.itemType == 'inputRange'"> |
|
|
|
<!-- <el-input |
|
|
|
@ -29,153 +20,69 @@ |
|
|
|
clearable |
|
|
|
placeholder="请输入内容" |
|
|
|
/> --> |
|
|
|
<inputRange style="height:37px;" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
:type="n.validType" |
|
|
|
@change="handleAgeChange" /> |
|
|
|
<inputRange style="height:37px;" v-model="form[n.columnName]" :type="n.validType" @change="handleAgeChange" /> |
|
|
|
</template> |
|
|
|
<template v-else-if="n.itemType === 'datepicker'"> |
|
|
|
<el-date-picker style="width:218px ;" |
|
|
|
v-if="n.queryType === 'daterange'" |
|
|
|
v-model.trim="timer.startPickerTime" |
|
|
|
:picker-options="startPickerOptions" |
|
|
|
type="date" |
|
|
|
align="right" |
|
|
|
unlink-panels |
|
|
|
placeholder="开始时间" |
|
|
|
class="u-item-width-daterange" |
|
|
|
size="small" |
|
|
|
format="yyyy-MM-dd" |
|
|
|
value-format="yyyy-MM-dd"> |
|
|
|
<el-date-picker style="width:218px ;" v-if="n.queryType === 'daterange'" v-model.trim="timer.startPickerTime" |
|
|
|
:picker-options="startPickerOptions" type="date" align="right" unlink-panels placeholder="开始时间" |
|
|
|
class="item_width_daterange" size="small" format="yyyy-MM-dd" value-format="yyyy-MM-dd"> |
|
|
|
</el-date-picker> |
|
|
|
<el-date-picker style="width:219px ;" |
|
|
|
v-if="n.queryType === 'daterange'" |
|
|
|
v-model.trim="timer.endPickerTime" |
|
|
|
:picker-options="endPickerOptions" |
|
|
|
class="u-item-width-daterange u-data-tag" |
|
|
|
size="small" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
value="yyyy-MM-dd" |
|
|
|
placeholder="结束时间"> |
|
|
|
<el-date-picker style="width:219px ;" v-if="n.queryType === 'daterange'" v-model.trim="timer.endPickerTime" |
|
|
|
:picker-options="endPickerOptions" class="item_width_daterange data-tag" size="small" type="date" |
|
|
|
value-format="yyyy-MM-dd" value="yyyy-MM-dd" placeholder="结束时间"> |
|
|
|
</el-date-picker> |
|
|
|
<el-date-picker v-else |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
class="resi-cell-input" |
|
|
|
type="inputRange" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
format="yyyy-MM-dd" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
placeholder="选择日期"> |
|
|
|
<el-date-picker v-else v-model.trim="form[n.columnName]" class="resi-cell-input" type="inputRange" |
|
|
|
size="small" clearable format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期"> |
|
|
|
</el-date-picker> |
|
|
|
</template> |
|
|
|
<el-select v-else-if="n.itemType === 'select' || n.itemType === 'radio'" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
placeholder="请选择" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
class="u-item-width-normal" |
|
|
|
:collapse-tags="n.multiSelect == 1 ? true : false" |
|
|
|
:multiple="n.multiSelect == 1 ? true : false"> |
|
|
|
<el-option v-for="item in n.options" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<el-select v-else-if="n.itemType === 'select' || n.itemType === 'radio'" v-model.trim="form[n.columnName]" |
|
|
|
placeholder="请选择" size="small" clearable class="item_width_normal" |
|
|
|
:collapse-tags="n.multiSelect == 1 ? true : false" :multiple="n.multiSelect == 1 ? true : false"> |
|
|
|
<el-option v-for="item in n.options" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-cascader v-else-if="n.itemType === 'cascader'" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:options="n.options" |
|
|
|
:props="{ checkStrictly: true }" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
class="resi-cell-select"> |
|
|
|
<el-cascader v-else-if="n.itemType === 'cascader'" v-model.trim="form[n.columnName]" :options="n.options" |
|
|
|
:props="{ checkStrictly: true }" clearable size="small" class="resi-cell-select"> |
|
|
|
</el-cascader> |
|
|
|
<template v-else-if="n.itemType === 'checkbox'"> |
|
|
|
<el-checkbox-group v-model="form[n.columnName]"> |
|
|
|
<el-checkbox v-for="ns in n.options" |
|
|
|
:key="ns.value" |
|
|
|
:label="ns.value">{{ ns.label }}</el-checkbox> |
|
|
|
<el-checkbox v-for="ns in n.options" :key="ns.value" :label="ns.value">{{ ns.label }}</el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item prop="agencyIdArray"> |
|
|
|
<span style="width:100px;text-align: right;padding-right:14px;display: inline-block; ">所属组织:</span> |
|
|
|
<el-cascader class="u-item-width-normal" |
|
|
|
ref="myCascader" |
|
|
|
v-model="agencyIdArray" |
|
|
|
:options="orgOptions" |
|
|
|
:props="orgOptionProps" |
|
|
|
:show-all-levels="false" |
|
|
|
@change="handleChangeAgency"></el-cascader> |
|
|
|
<el-form-item prop="agencyIdArray"> |
|
|
|
<span style="width:100px;text-align: right;padding-right:14px;display: inline-block; " >所属组织:</span> |
|
|
|
<el-cascader class="item_width_normal" ref="myCascader" v-model="agencyIdArray" :options="orgOptions" |
|
|
|
:props="orgOptionProps" :show-all-levels="false" @change="handleChangeAgency"></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item prop="VILLAGE_ID"> |
|
|
|
<el-form-item prop="VILLAGE_ID" > |
|
|
|
<div class="resi-cell"> |
|
|
|
<div class="resi-cell-value"> |
|
|
|
<span style="width:100px;text-align: right;padding-right:14px;display: inline-block; ">所属房屋:</span> |
|
|
|
<el-select v-model.trim="form.VILLAGE_ID" |
|
|
|
placeholder="请选择小区" |
|
|
|
size="small" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
class="u-item-width-communitycascader" |
|
|
|
@clear="handleClearVillage" |
|
|
|
@change="handleChangeV"> |
|
|
|
<el-option v-for="item in optionsV" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<span style="width:100px;text-align: right;padding-right:14px;display: inline-block; " >所属房屋:</span> |
|
|
|
<el-select v-model.trim="form.VILLAGE_ID" placeholder="请选择小区" size="small" filterable clearable |
|
|
|
class="item_width_communitycascader" @clear="handleClearVillage" @change="handleChangeV"> |
|
|
|
<el-option v-for="item in optionsV" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select v-model.trim="form.BUILD_ID" |
|
|
|
placeholder="楼号" |
|
|
|
size="small" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
style="margin-left: 5px" |
|
|
|
class="u-item-width-buildcascader" |
|
|
|
:disabled="changeVDisabled" |
|
|
|
@clear="handleClearBuild" |
|
|
|
@change="handleChangeB"> |
|
|
|
<el-option v-for="item in optionsB" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<el-select v-model.trim="form.BUILD_ID" placeholder="楼号" size="small" filterable clearable |
|
|
|
style="margin-left: 5px" class="item_width_buildcascader" :disabled="changeVDisabled" @clear="handleClearBuild" |
|
|
|
@change="handleChangeB"> |
|
|
|
<el-option v-for="item in optionsB" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select v-model.trim="form.UNIT_ID" |
|
|
|
:disabled="changeBDisabled" |
|
|
|
placeholder="单元" |
|
|
|
size="small" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
style="margin-left: 5px" |
|
|
|
class="u-item-width-buildcascader" |
|
|
|
@click="handleClearDan" |
|
|
|
@change="handleChangeD"> |
|
|
|
<el-option v-for="item in optionsD" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<el-select v-model.trim="form.UNIT_ID" :disabled="changeBDisabled" placeholder="单元" size="small" |
|
|
|
filterable clearable style="margin-left: 5px" class="item_width_buildcascader" @click="handleClearDan" |
|
|
|
@change="handleChangeD"> |
|
|
|
<el-option v-for="item in optionsD" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select v-model.trim="form.HOME_ID" |
|
|
|
:disabled="changeDDisabled" |
|
|
|
placeholder="房号" |
|
|
|
size="small" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
style="margin-left: 5px" |
|
|
|
class="u-item-width-buildcascader"> |
|
|
|
<el-option v-for="item in optionsH" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
<el-select v-model.trim="form.HOME_ID" :disabled="changeDDisabled" placeholder="房号" size="small" |
|
|
|
filterable clearable style="margin-left: 5px" class="item_width_buildcascader"> |
|
|
|
<el-option v-for="item in optionsH" :key="item.value" :label="item.label" :value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
@ -184,48 +91,30 @@ |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-row v-if="showSmartSearchForm" |
|
|
|
class="resi-row-more M_m0"> |
|
|
|
<el-row v-if="showSmartSearchForm" class="resi-row-more f-m0"> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
<span style="width:100px;">智能查询</span> |
|
|
|
<el-button v-for="btnItem in btnList" |
|
|
|
:key="btnItem.index" |
|
|
|
size="small" |
|
|
|
:class="selBtnIndex === btnItem.index ? 'diy-button--blue' : 'diy-button--gray'" |
|
|
|
@click="handelSelSmartBtn(btnItem.index)">{{ btnItem.name }}</el-button> |
|
|
|
<span style="width:100px;display: inline-block;text-align: right;padding-right: 18px;">智能查询</span> |
|
|
|
<el-button v-for="btnItem in btnList" :key="btnItem.index" size="small" |
|
|
|
:class="selBtnIndex === btnItem.index ? 'diy-button--white' : 'diy-button--common'" |
|
|
|
@click="handelSelSmartBtn(btnItem.index)">{{ btnItem.name }}</el-button> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
<el-col> |
|
|
|
<smart-search-rule ref="ref_rule" |
|
|
|
:formType="formType"></smart-search-rule> |
|
|
|
<smart-search-rule ref="ref_rule" :formType="formType"></smart-search-rule> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row v-if="isArrow" |
|
|
|
class="resi-search"> |
|
|
|
<el-row v-if="isArrow" class="resi-search"> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
class="diy-button--blue" |
|
|
|
@click="handleSmartSearch">智能查询</el-button> |
|
|
|
<el-button style="margin-left:10px" |
|
|
|
size="small" |
|
|
|
class="diy-button--white" |
|
|
|
type="primary" |
|
|
|
plain |
|
|
|
@click="resetForm">重置</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
class="diy-button--blue" |
|
|
|
@click="handleSearch" |
|
|
|
plain>查询 </el-button> |
|
|
|
<el-button style="margin-left:15px" |
|
|
|
size="small" |
|
|
|
class="div-table-button--blue showUnfold" |
|
|
|
type="text" |
|
|
|
@click="boxHeight = !boxHeight">{{ boxHeight ? '收起' : '展开' }}<i :class="boxHeight ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i></el-button> |
|
|
|
<el-button type="primary" size="small" plain class="diy-button--blue" |
|
|
|
@click="handleSmartSearch">智能查询</el-button> |
|
|
|
<el-button style="margin-left:10px" size="small" class="diy-button--white" type="primary" plain |
|
|
|
@click="resetForm">重置</el-button> |
|
|
|
<el-button type="primary" size="small" class="diy-button--blue" @click="handleSearch" plain>查询 </el-button> |
|
|
|
<el-button style="margin-left:15px" size="small" class="div-table-button--blue showUnfold" type="text" |
|
|
|
@click="boxHeight = !boxHeight">{{ boxHeight ? '收起' : '展开' }}<i |
|
|
|
:class="boxHeight ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i></el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
@ -258,7 +147,7 @@ export default { |
|
|
|
default: false |
|
|
|
} |
|
|
|
}, |
|
|
|
data () { |
|
|
|
data() { |
|
|
|
let initForm = (arr, columnName) => { |
|
|
|
let _form = {} |
|
|
|
// console.log('formInfo', obj) |
|
|
|
@ -364,7 +253,7 @@ export default { |
|
|
|
shortcuts: [ |
|
|
|
{ |
|
|
|
text: '最近一周', |
|
|
|
onClick (picker) { |
|
|
|
onClick(picker) { |
|
|
|
const end = new Date() |
|
|
|
const start = new Date() |
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7) |
|
|
|
@ -373,7 +262,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: '最近一个月', |
|
|
|
onClick (picker) { |
|
|
|
onClick(picker) { |
|
|
|
const end = new Date() |
|
|
|
const start = new Date() |
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30) |
|
|
|
@ -382,7 +271,7 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
text: '最近三个月', |
|
|
|
onClick (picker) { |
|
|
|
onClick(picker) { |
|
|
|
const end = new Date() |
|
|
|
const start = new Date() |
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90) |
|
|
|
@ -503,7 +392,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
sliceList () { |
|
|
|
sliceList() { |
|
|
|
return function (data, count) { |
|
|
|
// 接收 |
|
|
|
if (data !== undefined) { |
|
|
|
@ -521,19 +410,19 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
changeVDisabled () { |
|
|
|
changeVDisabled() { |
|
|
|
return !this.form.VILLAGE_ID |
|
|
|
}, |
|
|
|
changeBDisabled () { |
|
|
|
changeBDisabled() { |
|
|
|
return !this.form.BUILD_ID |
|
|
|
}, |
|
|
|
changeDDisabled () { |
|
|
|
changeDDisabled() { |
|
|
|
return !this.form.UNIT_ID |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
form: { |
|
|
|
handler (val, val2) { |
|
|
|
handler(val, val2) { |
|
|
|
// console.log('valpppp----', val, val2) |
|
|
|
for (let n in val) { |
|
|
|
if (this.constForm[n] !== val[n]) { |
|
|
|
@ -546,14 +435,14 @@ export default { |
|
|
|
deep: true |
|
|
|
}, |
|
|
|
timer: { |
|
|
|
handler (newVal) { |
|
|
|
handler(newVal) { |
|
|
|
this.handelWatchStartDate(newVal) |
|
|
|
}, |
|
|
|
deep: true, |
|
|
|
immediate: true |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
created() { |
|
|
|
// this.initForm() |
|
|
|
// console.log('formcccc---', this.form) |
|
|
|
this.getOrgTreeList() |
|
|
|
@ -562,39 +451,39 @@ export default { |
|
|
|
if (this.columnName) this.handleChangeForm(this.columnName) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSmartSearch () { |
|
|
|
handleSmartSearch() { |
|
|
|
this.showSmartSearchForm = !this.showSmartSearchForm |
|
|
|
}, |
|
|
|
handelSelSmartBtn (index) { |
|
|
|
handelSelSmartBtn(index) { |
|
|
|
|
|
|
|
this.selBtnIndex = index |
|
|
|
}, |
|
|
|
handelWatchStartDate (val) { |
|
|
|
handelWatchStartDate(val) { |
|
|
|
return val |
|
|
|
}, |
|
|
|
initForm () { |
|
|
|
initForm() { |
|
|
|
this.formList.forEach((item) => { |
|
|
|
this.$set(this.form, item.columnName, '') |
|
|
|
}) |
|
|
|
console.log('formcccc---', this.form) |
|
|
|
}, |
|
|
|
computdSpan (len) { |
|
|
|
computdSpan(len) { |
|
|
|
return len == 1 ? 24 : 6 |
|
|
|
}, |
|
|
|
handleClearVillage () { |
|
|
|
handleClearVillage() { |
|
|
|
this.form.BUILD_ID = '' |
|
|
|
this.form.HOME_ID = '' |
|
|
|
}, |
|
|
|
handleClearBuild () { |
|
|
|
handleClearBuild() { |
|
|
|
this.form.BUILD_ID = '' |
|
|
|
this.form.UNIT_ID = '' |
|
|
|
this.form.HOME_ID = '' |
|
|
|
}, |
|
|
|
handleClearDan () { |
|
|
|
handleClearDan() { |
|
|
|
this.form.UNIT_ID = '' |
|
|
|
this.form.HOME_ID = '' |
|
|
|
}, |
|
|
|
resetForm (formName) { |
|
|
|
resetForm(formName) { |
|
|
|
for (const n in this.form) { |
|
|
|
if (n == 'age') { |
|
|
|
this.form.age = { |
|
|
|
@ -614,7 +503,7 @@ export default { |
|
|
|
// this.handleSearch() |
|
|
|
// this.orgOptions = []; |
|
|
|
}, |
|
|
|
handleSearch () { |
|
|
|
handleSearch() { |
|
|
|
if (this.showSmartSearchForm) { |
|
|
|
let refObj = this.$refs['ref_rule'] |
|
|
|
refObj.getRule() |
|
|
|
@ -656,7 +545,7 @@ export default { |
|
|
|
} else { |
|
|
|
let i = arr3.findIndex(item => item.columnName == 'BIRTHDAY') |
|
|
|
console.log(i, '标'); |
|
|
|
arr3 = arr3.splice(i, 1) |
|
|
|
arr3 = arr3.splice(i,1) |
|
|
|
console.log(arr3); |
|
|
|
} |
|
|
|
this.$emit('search', arr3) |
|
|
|
@ -666,24 +555,24 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
handleOpenSearch () { |
|
|
|
handleOpenSearch() { |
|
|
|
this.openSearch = !this.openSearch |
|
|
|
}, |
|
|
|
handleAgeChange (val) { |
|
|
|
handleAgeChange(val) { |
|
|
|
// debugger |
|
|
|
console.log('val----age---', val) |
|
|
|
// console.log(v); |
|
|
|
if (val.start) { |
|
|
|
const s = this.computedBirth1(val.start) |
|
|
|
const e = this.computedBirth(val.start) |
|
|
|
this.form.BIRTHDAY = [s, e] |
|
|
|
} else { |
|
|
|
this.form.BIRTHDAY = [] |
|
|
|
return |
|
|
|
} |
|
|
|
if(val.start){ |
|
|
|
const s = this.computedBirth1(val.start) |
|
|
|
const e = this.computedBirth(val.start) |
|
|
|
this.form.BIRTHDAY = [s, e] |
|
|
|
}else { |
|
|
|
this.form.BIRTHDAY = [] |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
handleChangeAgency (val) { |
|
|
|
handleChangeAgency(val) { |
|
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
|
if (obj) { |
|
|
|
if (obj.level === 'grid') { |
|
|
|
@ -705,7 +594,7 @@ export default { |
|
|
|
this.form.HOME_ID = '' |
|
|
|
this.getValiheList() |
|
|
|
}, |
|
|
|
handleChangeGrid (val) { |
|
|
|
handleChangeGrid(val) { |
|
|
|
console.log('val', val) |
|
|
|
this.form.VILLAGE_ID = '' |
|
|
|
this.form.BUILD_ID = '' |
|
|
|
@ -713,26 +602,26 @@ export default { |
|
|
|
this.form.HOME_ID = '' |
|
|
|
this.getValiheList() |
|
|
|
}, |
|
|
|
handleChangeV (val) { |
|
|
|
handleChangeV(val) { |
|
|
|
console.log('val', val) |
|
|
|
this.form.BUILD_ID = '' |
|
|
|
this.form.UNIT_ID = '' |
|
|
|
this.form.HOME_ID = '' |
|
|
|
this.getBuildList() |
|
|
|
}, |
|
|
|
handleChangeB (val) { |
|
|
|
handleChangeB(val) { |
|
|
|
console.log('val', val) |
|
|
|
this.form.UNIT_ID = '' |
|
|
|
this.form.HOME_ID = '' |
|
|
|
this.getUniList() |
|
|
|
}, |
|
|
|
handleChangeD (val) { |
|
|
|
handleChangeD(val) { |
|
|
|
console.log('val', val) |
|
|
|
this.form.HOME_ID = '' |
|
|
|
this.getHouseList() |
|
|
|
}, |
|
|
|
// 监听基础form |
|
|
|
handleChangeForm (val) { |
|
|
|
handleChangeForm(val) { |
|
|
|
for (let n in this.fixedForm) { |
|
|
|
if (n === val) { |
|
|
|
if (this.fixedList.length > 0) { |
|
|
|
@ -771,7 +660,7 @@ export default { |
|
|
|
if (item.columnName === val) item.isChange = true |
|
|
|
}) |
|
|
|
}, |
|
|
|
getOrgTreeList () { |
|
|
|
getOrgTreeList() { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.$http |
|
|
|
.post('/gov/org/customeragency/agencygridtree', {}) |
|
|
|
@ -788,7 +677,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getGridList () { |
|
|
|
getGridList() { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.$http |
|
|
|
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' }) |
|
|
|
@ -804,7 +693,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getValiheList () { |
|
|
|
getValiheList() { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.$http |
|
|
|
.post('/gov/org/icneighborhood/neighborhoodoption', { |
|
|
|
@ -824,7 +713,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getBuildList () { |
|
|
|
getBuildList() { |
|
|
|
this.$http |
|
|
|
.post('/gov/org/icbuilding/buildingoption', { |
|
|
|
neighborHoodId: this.form.VILLAGE_ID |
|
|
|
@ -841,7 +730,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getUniList () { |
|
|
|
getUniList() { |
|
|
|
this.$http |
|
|
|
.post('/gov/org/icbuildingunit/unitoption', { |
|
|
|
buildingId: this.form.BUILD_ID |
|
|
|
@ -858,7 +747,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getHouseList () { |
|
|
|
getHouseList() { |
|
|
|
this.$http |
|
|
|
.post('/gov/org/ichouse/houseoption', { unitId: this.form.UNIT_ID }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
@ -873,7 +762,7 @@ export default { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
computedBirth (age) { |
|
|
|
computedBirth(age) { |
|
|
|
let now = new Date(); |
|
|
|
let nowYear = now.getFullYear(); |
|
|
|
let nowMonth = now.getMonth() + 1; |
|
|
|
@ -887,7 +776,7 @@ export default { |
|
|
|
} |
|
|
|
return subYear + '-' + nowMonth + '-' + nowDay |
|
|
|
}, |
|
|
|
computedBirth1 (age) { |
|
|
|
computedBirth1(age) { |
|
|
|
let now = new Date(); |
|
|
|
let nowYear = now.getFullYear(); |
|
|
|
let nowMonth = now.getMonth() + 1; |
|
|
|
@ -909,6 +798,8 @@ export default { |
|
|
|
@import "@/assets/scss/modules/management/list-main.scss"; |
|
|
|
@import "@/assets/scss/modules/visual/communityManage.scss"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.header_form_box { |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
|