Browse Source

修改迁入死亡

shibei_master
wanggongfeng 3 years ago
parent
commit
60ab2c05fb
  1. 12
      src/views/components/resiChangeTransfer.vue

12
src/views/components/resiChangeTransfer.vue

@ -169,7 +169,7 @@
<script> <script>
import util from '@js/util.js'; import util from '@js/util.js';
import { Loading } from 'element-ui' // Loading import { Loading } from 'element-ui' // Loading
import { requestPost } from '@/js/dai/request' import { requestPost, requestGet } from '@/js/dai/request'
let loading // let loading //
export default { export default {
@ -283,7 +283,7 @@ export default {
this.dataForm.idCard = row.ID_CARD this.dataForm.idCard = row.ID_CARD
this.dataForm.mobile = row.MOBILE this.dataForm.mobile = row.MOBILE
await this.loadHouseInfo(row.HOME_ID) await this.loadHouseInfo(row.HOME_ID_VALUE)
this.dataForm.name = row.NAME this.dataForm.name = row.NAME
this.dataForm.gender = row.GENDER this.dataForm.gender = row.GENDER
@ -294,13 +294,13 @@ export default {
await this.getAgencylist() await this.getAgencylist()
}, },
async loadHouseInfo (homeId) { async loadHouseInfo (homeIdValue) {
const url = "/gov/org/ichouse/" + homeId const url = "/gov/org/ichouse/" + homeIdValue
const { data, code, msg } = await requestGet(url) const { data, code, msg } = await requestGet(url)
if (code === 0) { if (code === 0) {
this.dataForm.oldDept = '' this.dataForm.oldDept = ''
this.dataForm.oldAddress = row.houseName this.dataForm.oldAddress = data.houseName
this.dataForm.ownerName = row.ownerName this.dataForm.ownerName = data.ownerName
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }

Loading…
Cancel
Save