111
Showing
3 changed files
with
93 additions
and
20 deletions
| ... | @@ -35,6 +35,20 @@ export function loadQlrxx (bsmSldy) { | ... | @@ -35,6 +35,20 @@ export function loadQlrxx (bsmSldy) { |
| 35 | } | 35 | } |
| 36 | }) | 36 | }) |
| 37 | } | 37 | } |
| 38 | /** | ||
| 39 | * @description: 读取义务人信息 | ||
| 40 | * @param {*} bsmSldy | ||
| 41 | * @author: renchao | ||
| 42 | */ | ||
| 43 | export function loadYwrxx (bsmSldy) { | ||
| 44 | return request({ | ||
| 45 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/loadYwrxx', | ||
| 46 | method: 'get', | ||
| 47 | params: { | ||
| 48 | bsmSldy: bsmSldy | ||
| 49 | } | ||
| 50 | }) | ||
| 51 | } | ||
| 38 | 52 | ||
| 39 | /** | 53 | /** |
| 40 | * @description: 查询房产交易合同信息 | 54 | * @description: 查询房产交易合同信息 |
| ... | @@ -61,3 +75,16 @@ export function querySwwsxx (data) { | ... | @@ -61,3 +75,16 @@ export function querySwwsxx (data) { |
| 61 | data | 75 | data |
| 62 | }) | 76 | }) |
| 63 | } | 77 | } |
| 78 | |||
| 79 | /** | ||
| 80 | * @description: 契税完税信息共享 | ||
| 81 | * @param {*} bsmSldy | ||
| 82 | * @author: renchao | ||
| 83 | */ | ||
| 84 | export function saveDlxx (data) { | ||
| 85 | return request({ | ||
| 86 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/saveDlxx', | ||
| 87 | method: 'post', | ||
| 88 | data | ||
| 89 | }) | ||
| 90 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class='jyht'> | 2 | <div class='jyht'> |
| 3 | <el-form :model="queryForm"> | 3 | <el-form :model="formData" ref="formData"> |
| 4 | <el-row :gutter="10"> | 4 | <el-row :gutter="10"> |
| 5 | <el-col :span="8"> | 5 | <el-col :span="8"> |
| 6 | <el-form-item label="行政区"> | 6 | <el-form-item label="行政区"> |
| 7 | <el-input v-model="queryForm.sfzjhm"></el-input> | 7 | <el-input disabled v-model="formData.areaCode"></el-input> |
| 8 | </el-form-item> | 8 | </el-form-item> |
| 9 | </el-col> | 9 | </el-col> |
| 10 | <el-col :span="8"> | 10 | <el-col :span="8"> |
| 11 | <el-form-item label="业务号"> | 11 | <el-form-item label="业务号"> |
| 12 | <el-input v-model="queryForm.ywh"></el-input> | 12 | <el-input disabled v-model="formData.ywh"></el-input> |
| 13 | </el-form-item> | 13 | </el-form-item> |
| 14 | </el-col> | 14 | </el-col> |
| 15 | <el-col :span="8"> | 15 | <el-col :span="8"> |
| 16 | <el-form-item label="用户编号"> | 16 | <el-form-item label="用户编号" prop="cons_no" :rules="[{ required: true, message: '请输入用户编号', trigger: 'blur' }]"> |
| 17 | <el-input v-model="queryForm.ywh"></el-input> | 17 | <el-input v-model="formData.cons_no"></el-input> |
| 18 | </el-form-item> | 18 | </el-form-item> |
| 19 | </el-col> | 19 | </el-col> |
| 20 | </el-row> | 20 | </el-row> |
| 21 | <el-row :gutter="10"> | 21 | <el-row :gutter="10"> |
| 22 | <el-col :span="8"> | 22 | <el-col :span="8"> |
| 23 | <el-form-item label="房产证编号"> | 23 | <el-form-item label="房产证编号"> |
| 24 | <el-input v-model="queryForm.ywh"></el-input> | 24 | <el-input disabled v-model="formData.fczbh"></el-input> |
| 25 | </el-form-item> | 25 | </el-form-item> |
| 26 | </el-col> | 26 | </el-col> |
| 27 | <el-col :span="16"> | 27 | <el-col :span="16"> |
| 28 | <el-form-item label="房屋坐落(地址)"> | 28 | <el-form-item label="房屋坐落(地址)"> |
| 29 | <el-input v-model="queryForm.sfzjhm"></el-input> | 29 | <el-input disabled v-model="formData.fwzl"></el-input> |
| 30 | </el-form-item> | 30 | </el-form-item> |
| 31 | </el-col> | 31 | </el-col> |
| 32 | </el-row> | 32 | </el-row> |
| 33 | </el-form> | 33 | </el-form> |
| 34 | <div class="slxx_title title-block"> | ||
| 35 | 原户主信息 | ||
| 36 | <div class="triangle"></div> | ||
| 37 | </div> | ||
| 38 | <lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key" | ||
| 39 | :column="tableData.columns" | ||
| 40 | :data="ywrData"> | ||
| 41 | </lb-table> | ||
| 42 | <div class="slxx_title title-block"> | ||
| 43 | 新户主信息 | ||
| 44 | <div class="triangle"></div> | ||
| 45 | </div> | ||
| 34 | <lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key" | 46 | <lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key" |
| 35 | :column="tableData.columns" | 47 | :column="tableData.columns" |
| 36 | :data="tableData.data"> | 48 | :data="tableData.data"> |
| 37 | </lb-table> | 49 | </lb-table> |
| 50 | |||
| 38 | <div class="text-center"> | 51 | <div class="text-center"> |
| 39 | <el-button @click="$popupCacel">取消</el-button> | 52 | <el-button @click="$popupCacel">取消</el-button> |
| 40 | <el-button type="primary" @click="handleSearch">保存</el-button> | 53 | <el-button type="primary" @click="saveDlxx">保存</el-button> |
| 41 | </div> | 54 | </div> |
| 42 | </div> | 55 | </div> |
| 43 | </template> | 56 | </template> |
| 44 | <script> | 57 | <script> |
| 45 | import store from '@/store/index.js' | 58 | import store from '@/store/index.js' |
| 46 | import { loadQlrxx,queryTransactionDetails } from "@/api/workflow/swhtxx.js"; | 59 | import { loadQlrxx,loadYwrxx,saveDlxx } from "@/api/workflow/swhtxx.js"; |
| 47 | export default { | 60 | export default { |
| 48 | props: { | 61 | props: { |
| 49 | formData: { | 62 | formData: { |
| ... | @@ -94,7 +107,8 @@ | ... | @@ -94,7 +107,8 @@ |
| 94 | label: '联系电话' | 107 | label: '联系电话' |
| 95 | } | 108 | } |
| 96 | ] | 109 | ] |
| 97 | } | 110 | }, |
| 111 | ywrData:[] | ||
| 98 | } | 112 | } |
| 99 | }, | 113 | }, |
| 100 | mounted () { | 114 | mounted () { |
| ... | @@ -106,12 +120,25 @@ | ... | @@ -106,12 +120,25 @@ |
| 106 | this.queryForm.nsrmc= row.sqrmc; | 120 | this.queryForm.nsrmc= row.sqrmc; |
| 107 | this.queryForm.sfzjhm= row.zjh; | 121 | this.queryForm.sfzjhm= row.zjh; |
| 108 | }, | 122 | }, |
| 109 | handleSearch () { | 123 | saveDlxx () { |
| 110 | queryTransactionDetails(this.queryForm).then(res => { | 124 | this.$refs['formData'].validate((valid) => { |
| 125 | if (valid) { | ||
| 126 | saveDlxx(this.formData).then(res => { | ||
| 111 | if (res.code === 200 && res.result){ | 127 | if (res.code === 200 && res.result){ |
| 112 | 128 | ||
| 129 | }else{ | ||
| 130 | this.$message({ | ||
| 131 | showClose: true, | ||
| 132 | message: res.message, | ||
| 133 | type: "error" | ||
| 134 | }) | ||
| 113 | } | 135 | } |
| 114 | }) | 136 | }) |
| 137 | } else { | ||
| 138 | return false | ||
| 139 | } | ||
| 140 | }) | ||
| 141 | |||
| 115 | }, | 142 | }, |
| 116 | handleChange (row) { | 143 | handleChange (row) { |
| 117 | this.radioVal = row.bsmSqr; | 144 | this.radioVal = row.bsmSqr; |
| ... | @@ -126,9 +153,6 @@ | ... | @@ -126,9 +153,6 @@ |
| 126 | 153 | ||
| 127 | return foundItem ? foundItem.dname : undefined; | 154 | return foundItem ? foundItem.dname : undefined; |
| 128 | } | 155 | } |
| 129 | this.queryForm.htbh=this.formData.htbh; | ||
| 130 | this.queryForm.qxdm=this.formData.qxdm; | ||
| 131 | this.queryForm.bsmQlxx=this.formData.bsmQlxx; | ||
| 132 | loadQlrxx(this.formData.bsmSldy).then(res => { | 156 | loadQlrxx(this.formData.bsmSldy).then(res => { |
| 133 | let arr = store.getters.dictData['A30'] | 157 | let arr = store.getters.dictData['A30'] |
| 134 | this.tableData.data = res.result | 158 | this.tableData.data = res.result |
| ... | @@ -138,6 +162,16 @@ | ... | @@ -138,6 +162,16 @@ |
| 138 | } | 162 | } |
| 139 | }) | 163 | }) |
| 140 | this.key++ | 164 | this.key++ |
| 165 | }); | ||
| 166 | loadYwrxx(this.formData.bsmSldy).then(res => { | ||
| 167 | let arr = store.getters.dictData['A30'] | ||
| 168 | this.ywrData = res.result | ||
| 169 | this.ywrData.forEach(item => { | ||
| 170 | if (item.zjzl) { | ||
| 171 | item.zjzlmc = findValueByKey(arr, item.zjzl); | ||
| 172 | } | ||
| 173 | }) | ||
| 174 | this.key++ | ||
| 141 | }) | 175 | }) |
| 142 | } | 176 | } |
| 143 | } | 177 | } | ... | ... |
| ... | @@ -215,14 +215,26 @@ export default { | ... | @@ -215,14 +215,26 @@ export default { |
| 215 | handleDlxx() { | 215 | handleDlxx() { |
| 216 | let formData = { | 216 | let formData = { |
| 217 | bsmSldy: this.propsParam.bsmSldy, | 217 | bsmSldy: this.propsParam.bsmSldy, |
| 218 | qxdm: this.ruleForm.qlxx.qxdm, | ||
| 219 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, | 218 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, |
| 219 | areaCode: this.ruleForm.qlxx.qxdm, | ||
| 220 | ywh: this.ruleForm.qlxx.ywh, | ||
| 221 | mcOld:'', | ||
| 222 | zjhmOld:'', | ||
| 223 | lxdhOld:'', | ||
| 224 | mcNew:'', | ||
| 225 | zjhmNew:'', | ||
| 226 | lxdhNew:'', | ||
| 227 | fczbh:this.ruleForm.qlxx.bdcqzh, | ||
| 228 | fwzl:this.ruleForm.qlxx.zl, | ||
| 220 | }; | 229 | }; |
| 221 | if(this.ruleForm.wqht==null){ | 230 | if(this.ruleForm.wqht!=null){ |
| 222 | formData.htbh=''; | 231 | formData.cons_no=this.ruleForm.wqht.consNo; |
| 223 | }else{ | 232 | if(this.ruleForm.wqht.dlnr!=null&&this.ruleForm.wqht.dlnr!=''){ |
| 224 | formData.htbh=this.ruleForm.wqht.wqhth; | 233 | formData.ZJHM_OLD=this.ruleForm.wqht.dlnr.ZJHM_OLD; |
| 234 | formData.ZJHM_NEW=this.ruleForm.wqht.dlnr.ZJHM_NEW; | ||
| 225 | } | 235 | } |
| 236 | } | ||
| 237 | console.log(formData) | ||
| 226 | this.$popupDialog('房产电力过户详情', 'workflow/main/sdqxx/dlxx', formData, '60%', true) | 238 | this.$popupDialog('房产电力过户详情', 'workflow/main/sdqxx/dlxx', formData, '60%', true) |
| 227 | }, | 239 | }, |
| 228 | }, | 240 | }, | ... | ... |
-
Please register or sign in to post a comment