|
@ -102,10 +102,10 @@ |
|
|
<!-- <el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add" |
|
|
<!-- <el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add" |
|
|
type="parimary" @click="confirmBatch"></el-button> --> |
|
|
type="parimary" @click="confirmBatch"></el-button> --> |
|
|
<el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px" |
|
|
<el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px" |
|
|
@command="(command) => confirmBatch(command)"> |
|
|
@command="(command) => confirmBatch(command)" v-if="updeBtn" > |
|
|
信息无误确认 |
|
|
信息无误确认 |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-item command="1">全部确认</el-dropdown-item> |
|
|
<el-dropdown-item command="1" >全部确认</el-dropdown-item> |
|
|
<el-dropdown-item command="2">批量确认</el-dropdown-item> |
|
|
<el-dropdown-item command="2">批量确认</el-dropdown-item> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
@ -212,7 +212,7 @@ |
|
|
<el-dropdown-item v-if="false && btnAuths.ic_resi_change_rec" command="bgjl">变更记录</el-dropdown-item> |
|
|
<el-dropdown-item v-if="false && btnAuths.ic_resi_change_rec" command="bgjl">变更记录</el-dropdown-item> |
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="swdj">死亡登记</el-dropdown-item> |
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="swdj">死亡登记</el-dropdown-item> |
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="qcdj">迁出登记</el-dropdown-item> |
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="qcdj">迁出登记</el-dropdown-item> |
|
|
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="confirm">信息无误确认</el-dropdown-item> |
|
|
<!-- <el-dropdown-item v-if="btnAuths.ic_resi_update" command="confirm">信息无误确认</el-dropdown-item> --> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
</template> |
|
|
</template> |
|
@ -295,6 +295,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
updeBtn:false, |
|
|
showSercahStatus: false, |
|
|
showSercahStatus: false, |
|
|
exportLoading:false, |
|
|
exportLoading:false, |
|
|
exportBtn: false, |
|
|
exportBtn: false, |
|
@ -743,7 +744,9 @@ export default { |
|
|
this.$message.warning("请先选择要删除的居民"); |
|
|
this.$message.warning("请先选择要删除的居民"); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 确认无误居民信息提交 |
|
|
confirmBatch(command) { |
|
|
confirmBatch(command) { |
|
|
|
|
|
|
|
|
if(command === '1'){ |
|
|
if(command === '1'){ |
|
|
this.$confirm("是否全部确认信息", "提示", { |
|
|
this.$confirm("是否全部确认信息", "提示", { |
|
|
confirmButtonText: "确定", |
|
|
confirmButtonText: "确定", |
|
@ -1114,10 +1117,31 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
//处理参数 |
|
|
|
|
|
extractSpecificKeys(obj, keys) { |
|
|
|
|
|
const resultArray = []; |
|
|
|
|
|
keys.forEach(key => { |
|
|
|
|
|
if (key in obj) { |
|
|
|
|
|
const value = obj[key]; |
|
|
|
|
|
if (Array.isArray(value)) { |
|
|
|
|
|
resultArray.push(...value); // 展开数组并加入结果数组 |
|
|
|
|
|
} else if(value){ |
|
|
|
|
|
resultArray.push(value); // 将非数组的值加入结果数组 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
return resultArray; |
|
|
|
|
|
}, |
|
|
async confirresiBatch(ids) { |
|
|
async confirresiBatch(ids) { |
|
|
const url = `/actual/base/residentCategoryUpdateInfo/unchangePartUpdate`; |
|
|
this.valueb = this.$route.query.param1; |
|
|
let params = {ids}; |
|
|
let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form)); |
|
|
|
|
|
_obj.attentionCrowds = _obj.attentionCrowds.flat() |
|
|
|
|
|
let updateCategorys = this.extractSpecificKeys(_obj,['attentionCrowds','healthStatus','specialCategoryCodes','identity']) |
|
|
|
|
|
const url = `/actual/base/residentCategoryUpdateInfo/${ids?'unchangePartUpdate':'unchangeMultiUpdate'}`; |
|
|
|
|
|
let params = {ids,partyFlag:_obj.partyFlag,updateCategorys}; |
|
|
|
|
|
if(!ids){ |
|
|
|
|
|
params = { ..._obj,updateCategorys} |
|
|
|
|
|
} |
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
if (code !== 0) { |
|
|
if (code !== 0) { |
|
|
return this.$message.error(msg); |
|
|
return this.$message.error(msg); |
|
@ -1242,7 +1266,12 @@ export default { |
|
|
watch: { |
|
|
watch: { |
|
|
$route: { |
|
|
$route: { |
|
|
handler: function (newVal, oldVal) { |
|
|
handler: function (newVal, oldVal) { |
|
|
if((newVal.name == "base-resi" || oldVal.name === 'home') && newVal.query.type){ |
|
|
if(newVal.name == "base-resi" && newVal.query.type === 'residentCategory'){ |
|
|
|
|
|
this.updeBtn = true |
|
|
|
|
|
}else { |
|
|
|
|
|
this.updeBtn = false |
|
|
|
|
|
} |
|
|
|
|
|
if((newVal.name == "base-resi" || oldVal.name === 'home') && newVal.query.type ==='updateResi'){ |
|
|
this.$nextTick(()=>{ |
|
|
this.$nextTick(()=>{ |
|
|
this.$refs.myResiSearch.form.updateCategory = newVal.query.category; |
|
|
this.$refs.myResiSearch.form.updateCategory = newVal.query.category; |
|
|
this.handleSearchFrom(); |
|
|
this.handleSearchFrom(); |
|
|