ebe40d5e by tianhaohao@pashanhoo.com

111

1 parent 94fb2fac
......@@ -35,6 +35,20 @@ export function loadQlrxx (bsmSldy) {
}
})
}
/**
* @description: 读取义务人信息
* @param {*} bsmSldy
* @author: renchao
*/
export function loadYwrxx (bsmSldy) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/loadYwrxx',
method: 'get',
params: {
bsmSldy: bsmSldy
}
})
}
/**
* @description: 查询房产交易合同信息
......@@ -61,3 +75,16 @@ export function querySwwsxx (data) {
data
})
}
/**
* @description: 契税完税信息共享
* @param {*} bsmSldy
* @author: renchao
*/
export function saveDlxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/saveDlxx',
method: 'post',
data
})
}
\ No newline at end of file
......
<template>
<div class='jyht'>
<el-form :model="queryForm">
<el-form :model="formData" ref="formData">
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="行政区">
<el-input v-model="queryForm.sfzjhm"></el-input>
<el-input disabled v-model="formData.areaCode"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="业务号">
<el-input v-model="queryForm.ywh"></el-input>
<el-input disabled v-model="formData.ywh"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="用户编号">
<el-input v-model="queryForm.ywh"></el-input>
<el-form-item label="用户编号" prop="cons_no" :rules="[{ required: true, message: '请输入用户编号', trigger: 'blur' }]">
<el-input v-model="formData.cons_no"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="房产证编号">
<el-input v-model="queryForm.ywh"></el-input>
<el-input disabled v-model="formData.fczbh"></el-input>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="房屋坐落(地址)">
<el-input v-model="queryForm.sfzjhm"></el-input>
<el-input disabled v-model="formData.fwzl"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="slxx_title title-block">
原户主信息
<div class="triangle"></div>
</div>
<lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key"
:column="tableData.columns"
:data="ywrData">
</lb-table>
<div class="slxx_title title-block">
新户主信息
<div class="triangle"></div>
</div>
<lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key"
:column="tableData.columns"
:data="tableData.data">
</lb-table>
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="handleSearch">保存</el-button>
<el-button type="primary" @click="saveDlxx">保存</el-button>
</div>
</div>
</template>
<script>
import store from '@/store/index.js'
import { loadQlrxx,queryTransactionDetails } from "@/api/workflow/swhtxx.js";
import { loadQlrxx,loadYwrxx,saveDlxx } from "@/api/workflow/swhtxx.js";
export default {
props: {
formData: {
......@@ -94,7 +107,8 @@
label: '联系电话'
}
]
}
},
ywrData:[]
}
},
mounted () {
......@@ -106,12 +120,25 @@
this.queryForm.nsrmc= row.sqrmc;
this.queryForm.sfzjhm= row.zjh;
},
handleSearch () {
queryTransactionDetails(this.queryForm).then(res => {
saveDlxx () {
this.$refs['formData'].validate((valid) => {
if (valid) {
saveDlxx(this.formData).then(res => {
if (res.code === 200 && res.result){
}else{
this.$message({
showClose: true,
message: res.message,
type: "error"
})
}
})
} else {
return false
}
})
},
handleChange (row) {
this.radioVal = row.bsmSqr;
......@@ -126,9 +153,6 @@
return foundItem ? foundItem.dname : undefined;
}
this.queryForm.htbh=this.formData.htbh;
this.queryForm.qxdm=this.formData.qxdm;
this.queryForm.bsmQlxx=this.formData.bsmQlxx;
loadQlrxx(this.formData.bsmSldy).then(res => {
let arr = store.getters.dictData['A30']
this.tableData.data = res.result
......@@ -138,6 +162,16 @@
}
})
this.key++
});
loadYwrxx(this.formData.bsmSldy).then(res => {
let arr = store.getters.dictData['A30']
this.ywrData = res.result
this.ywrData.forEach(item => {
if (item.zjzl) {
item.zjzlmc = findValueByKey(arr, item.zjzl);
}
})
this.key++
})
}
}
......
......@@ -215,14 +215,26 @@ export default {
handleDlxx() {
let formData = {
bsmSldy: this.propsParam.bsmSldy,
qxdm: this.ruleForm.qlxx.qxdm,
bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
areaCode: this.ruleForm.qlxx.qxdm,
ywh: this.ruleForm.qlxx.ywh,
mcOld:'',
zjhmOld:'',
lxdhOld:'',
mcNew:'',
zjhmNew:'',
lxdhNew:'',
fczbh:this.ruleForm.qlxx.bdcqzh,
fwzl:this.ruleForm.qlxx.zl,
};
if(this.ruleForm.wqht==null){
formData.htbh='';
}else{
formData.htbh=this.ruleForm.wqht.wqhth;
if(this.ruleForm.wqht!=null){
formData.cons_no=this.ruleForm.wqht.consNo;
if(this.ruleForm.wqht.dlnr!=null&&this.ruleForm.wqht.dlnr!=''){
formData.ZJHM_OLD=this.ruleForm.wqht.dlnr.ZJHM_OLD;
formData.ZJHM_NEW=this.ruleForm.wqht.dlnr.ZJHM_NEW;
}
}
console.log(formData)
this.$popupDialog('房产电力过户详情', 'workflow/main/sdqxx/dlxx', formData, '60%', true)
},
},
......