a1940cef by tianhaohao@pashanhoo.com

修改税务合同信息

1 parent d803c5dd
......@@ -34,4 +34,30 @@ export function loadQlrxx (bsmSldy) {
bsmSldy: bsmSldy
}
})
}
/**
* @description: 查询房产交易合同信息
* @param {*} bsmSldy
* @author: renchao
*/
export function queryTransactionDetails (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/queryTransactionDetails',
method: 'post',
data
})
}
/**
* @description: 契税完税信息共享
* @param {*} bsmSldy
* @author: renchao
*/
export function querySwwsxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/querySwwsxx',
method: 'post',
data
})
}
\ No newline at end of file
......
<!--
* @Description: 交易合同
* @Autor: renchao
* @LastEditTime: 2024-03-21 16:58:45
-->
<template>
<div class='jyht'>
<el-form :model="queryForm">
<el-row :gutter="10">
<el-col :span="6">
<el-form-item label="合同号">
<el-input v-model="queryForm.htbh"></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="6">
<el-form-item label="证件号码">
<el-input v-model="queryForm.sfzjhm"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="业务号">
<el-input v-model="queryForm.ywh"></el-input>
</el-form-item>
</el-col> -->
<!-- <el-col :span="6" class="btnColRight">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-col> -->
</el-row>
</el-form>
<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="handleSubmit" plain>保存</el-button> -->
<el-button type="primary" @click="handleSearch">查询</el-button>
</div>
</div>
</template>
<script>
import store from '@/store/index.js'
import { loadQlrxx,queryTransactionDetails } from "@/api/workflow/swhtxx.js";
export default {
props: {
formData: {
type: Object,
default: {}
}
},
components: {},
data () {
return {
key: 0,
radioVal: '',
queryForm: {
htbh: '',
sfzjhm: '',
ywh: ''
},
tableData: {
data: [],
columns: [
{
label: '选择',
width: '50px',
render: (h, scope) => {
return (
<div class="orgColumn">
<el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bsmSqr}>
&ensp;
</el-radio>
</div>
)
}
},
{
prop: 'sqrmc',
label: '权利人名称',
},
{
prop: 'zjzlmc',
label: '证件种类'
},
{
prop: 'zjh',
label: '证件号码'
},
{
prop: 'dh',
label: '联系电话'
}
]
}
}
},
mounted () {
this.loadData()
},
methods: {
handleRowClick (val) {
this.radioVal = row.bsmSqr;
this.queryForm.nsrmc= row.sqrmc;
this.queryForm.sfzjhm= row.zjh;
},
handleSearch () {
queryTransactionDetails(this.queryForm).then(res => {
if (res.code === 200 && res.result){
}
})
},
handleChange (row) {
this.radioVal = row.bsmSqr;
this.queryForm.nsrmc= row.sqrmc;
this.queryForm.sfzjhm= row.zjh;
},
loadData () {
function findValueByKey (array, keyToFind) {
var foundItem = array.find(function (item) {
return item.dcode === keyToFind;
});
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
this.tableData.data.forEach(item => {
if (item.zjzl) {
item.zjzlmc = findValueByKey(arr, item.zjzl);
}
})
this.key++
})
}
}
}
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
</style>
\ No newline at end of file
......@@ -212,7 +212,9 @@ export default {
if (res.result.wqht == null) {
return;
}
this.dlxxForm = JSON.parse(res.result.wqht.dlnr);
if (res.result.wqht.dlnr != "" && res.result.wqht.dlnr != null) {
this.dlxxForm = JSON.parse(res.result.wqht.dlnr);
}
}
}
});
......
......@@ -65,10 +65,11 @@
</el-row>
<div class="slxx_title title-block">
<el-row>
<el-col :span="20"> 房屋合同信息 </el-col>
<el-col :span="4" class="btnColRight">
<el-button type="primary" @click="handleContract">查询房屋交易合同</el-button>
</el-col>
<el-col :span="24"> 房屋合同信息
&nbsp;&nbsp;<el-button type="primary" @click="handleContract">查询房屋交易合同</el-button> </el-col>
<!-- <el-col :span="4" class="btnColRight">
</el-col> -->
</el-row>
<div class="triangle"></div>
</div>
......@@ -179,8 +180,11 @@
:heightNumSetting="true" :minHeight="0" :rowStyleHeight='25'
:data="ywrList">
</lb-table>
<div class="slxx_title title-block">
缴税信息
<el-row>
<el-col :span="24"> 缴税信息 <el-button type="primary" @click="handleSwwsxx">查询契税完税信息</el-button></el-col>
</el-row>
<div class="triangle"></div>
</div>
<lb-table
......@@ -304,7 +308,31 @@
})
},
handleContract () {
this.$popupDialog('合同信息', 'workflow/main/swxx/jyht', { bsmSldy: this.propsParam.bsmSldy }, '60%', true)
let formData = {
bsmSldy: this.propsParam.bsmSldy,
qxdm: this.ruleForm.qlxx.qxdm,
bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
};
if(this.ruleForm.wqht==null){
formData.htbh='';
}else{
formData.htbh=this.ruleForm.wqht.wqhth;
}
this.$popupDialog('查询房产交易合同信息', 'workflow/main/swxx/jyht', formData, '60%', true)
},
handleSwwsxx () {
let formData = {
bsmSldy: this.propsParam.bsmSldy,
qxdm: this.ruleForm.qlxx.qxdm,
bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
ywh: this.ruleForm.qlxx.ywh,
};
if(this.ruleForm.wqht==null){
formData.htbh='';
}else{
formData.htbh=this.ruleForm.wqht.wqhth;
}
this.$popupDialog('查询契税完税信息共享', 'workflow/main/swxx/swwsxx', formData, '60%', true)
}
}
}
......
......@@ -12,7 +12,7 @@
<el-input v-model="queryForm.htbh"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<!-- <el-col :span="6">
<el-form-item label="证件号码">
<el-input v-model="queryForm.sfzjhm"></el-input>
</el-form-item>
......@@ -21,10 +21,10 @@
<el-form-item label="业务号">
<el-input v-model="queryForm.ywh"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" class="btnColRight">
</el-col> -->
<!-- <el-col :span="6" class="btnColRight">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-col>
</el-col> -->
</el-row>
</el-form>
......@@ -34,13 +34,14 @@
</lb-table>
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="handleSubmit" plain>保存</el-button>
<!-- <el-button type="primary" @click="handleSubmit" plain>保存</el-button> -->
<el-button type="primary" @click="handleSearch">查询</el-button>
</div>
</div>
</template>
<script>
import store from '@/store/index.js'
import { loadQlrxx } from "@/api/workflow/swhtxx.js";
import { loadQlrxx,queryTransactionDetails } from "@/api/workflow/swhtxx.js";
export default {
props: {
formData: {
......@@ -91,24 +92,31 @@
label: '联系电话'
}
]
},
queryForm: {
hth: ''
}
}
},
mounted () {
this.handleSearch()
this.loadData()
},
methods: {
handleRowClick (val) {
this.radioVal = row.bsmSqr
this.radioVal = row.bsmSqr;
this.queryForm.nsrmc= row.sqrmc;
this.queryForm.sfzjhm= row.zjh;
},
handleSearch () {
queryTransactionDetails(this.queryForm).then(res => {
if (res.code === 200 && res.result){
}
})
},
handleSubmit () { },
handleChange (row) {
this.radioVal = row.bsmSqr
this.radioVal = row.bsmSqr;
this.queryForm.nsrmc= row.sqrmc;
this.queryForm.sfzjhm= row.zjh;
},
handleSearch () {
loadData () {
function findValueByKey (array, keyToFind) {
var foundItem = array.find(function (item) {
return item.dcode === keyToFind;
......@@ -116,7 +124,9 @@
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
......
<!--
* @Description: 交易合同
* @Autor: renchao
* @LastEditTime: 2024-03-21 16:58:45
-->
<template>
<div class='jyht'>
<el-form :model="queryForm">
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="合同号">
<el-input v-model="queryForm.htbh"></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>
</el-col>
</el-row>
</el-form>
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<!-- <el-button type="primary" @click="handleSubmit" plain>保存</el-button> -->
<el-button type="primary" @click="handleSearch">查询</el-button>
</div>
</div>
</template>
<script>
import store from '@/store/index.js'
import { loadQlrxx,querySwwsxx } from "@/api/workflow/swhtxx.js";
export default {
props: {
formData: {
type: Object,
default: {}
}
},
components: {},
data () {
return {
key: 0,
radioVal: '',
queryForm: {
htbh: '',
sfzjhm: '',
ywh: ''
}
}
},
mounted () {
this.loadData()
},
methods: {
handleSearch () {
querySwwsxx(this.queryForm).then(res => {
if (res.code === 200 && res.result){
}
})
},
loadData () {
this.queryForm.htbh=this.formData.htbh;
this.queryForm.qxdm=this.formData.qxdm;
this.queryForm.ywh=this.formData.ywh;
this.queryForm.bsmQlxx=this.formData.bsmQlxx;
}
}
}
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
</style>
\ No newline at end of file