f2dd2e08 by yangwei

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents 79d4a20c 84e7ab3c
/*
* @Description: 企业银行接口
* @Autor: renchao
* @LastEditTime: 2023-09-13 17:08:10
* @LastEditTime: 2023-09-20 14:49:22
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
......@@ -108,4 +108,20 @@ export function editCompanyMaterialList (data, bsmCompany) {
method: 'post',
data
})
}
/**
* @description: 是否覆盖才材料信息
* @author: renchao
*/
export function replace (bsmCompany, bsmSldy, bsmSlsq) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/company/replace',
method: 'get',
params: {
bsmCompany: bsmCompany,
bsmSldy: bsmSldy,
bsmSlsq: bsmSlsq
}
})
}
\ No newline at end of file
......
......@@ -21,7 +21,6 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') {
removeTreeListItem(treeList[i].children, dictId)
}
}
// 创造id
/**
* @description: 创造id
* @param {*} len
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-17 15:20:29
* @LastEditTime: 2023-09-19 15:52:44
-->
<template>
<div class='ywdialog'>
......@@ -33,4 +33,7 @@
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
.ywdialog {
min-width: 230px;
}
</style>
\ No newline at end of file
......
......@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-02-28 15:47:12
* @LastEditors: yangwei
* @LastEditTime: 2023-09-20 15:54:25
* @LastEditTime: 2023-09-20 17:14:39
* @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue
* @Description:
*
......@@ -16,16 +16,14 @@
border="1"
cellspacing="0"
cellpadding="0"
v-show="ch.length"
>
v-show="ch.length">
<tr v-for="(cs, csIndex) in ch" :key="csIndex">
<!-- 显示层数 -->
<td
class="floor"
ref="cBsm"
@contextmenu.prevent="openMenu($event, cs, 'c')"
@click="handleClickC($event, cs)"
>
@click="handleClickC($event, cs)">
{{ cs.sjc }}
</td>
<!-- 显示户 -->
......@@ -41,18 +39,11 @@
:class="hs.select ? 'tdSelect' : ''"
@click="handleClickH($event.target, hs.bsm, hs)"
@dblclick="dbclick(hs.bsm)"
@contextmenu.prevent="openMenu($event, hs, 'h')"
>
@contextmenu.prevent="openMenu($event, hs, 'h')">
{{ hs.shbw }}
<span @click.stop="" class="hqszt lin" v-show="hs.qszt == '0'"
></span
>
<span @click.stop="" class="hqszt zheng" v-show="hs.qszt == '1'"
></span
>
<span @click.stop="" class="hqszt xian" v-show="hs.qszt == '2'"
></span
>
<span @click.stop="" class="hqszt lin" v-show="hs.qszt == '0'"></span>
<span @click.stop="" class="hqszt zheng" v-show="hs.qszt == '1'"></span>
<span @click.stop="" class="hqszt xian" v-show="hs.qszt == '2'"></span>
<ul @click.stop="hDyztClick($event, hs.bsm, hs)" class="dyzt">
<li style="background-color: #6edee1" v-show="hs.qqzt == '1'">
......@@ -119,14 +110,14 @@ export default {
},
mounted() {
// 根据申请单元列表数据处理选中户
console.log("window.unitData",window.unitData);
if(window.unitData && window.unitData.length){
let unitIdList = []
window.unitData.forEach(e => {
unitIdList.push(e.bdcdyid)
this.unitIdList.push(e.bdcdyid)
})
this.ch.forEach((c) => {
c.hs.forEach((h) => {
if (unitIdList.indexOf(h.dyhbsm) > -1) {
if (h.dyhbsm.indexOf(this.unitIdList) > -1) {
h.select = true;
// 使用hbsmList时,需要去重
this.hbsmList.push(h.bsm)
......@@ -318,92 +309,91 @@ export default {
},
};
</script>
<style lang="scss" scoped>
.ch-wrap {
display: flex;
flex-direction: column-reverse;
.chTable {
// margin-left: -1px;
border-color: #e4ebf4 !important;
border-collapse: collapse;
border-spacing: 0;
// position: relative;
tr {
.floor {
min-width: 56px;
background: #e8f2ff;
border: 1px solid #acbae8;
}
&:first-child {
.ch-wrap {
display: flex;
flex-direction: column-reverse;
.chTable {
// margin-left: -1px;
border-color: #e4ebf4 !important;
border-collapse: collapse;
border-spacing: 0;
// position: relative;
tr {
.floor {
border-radius: 4px 0px 0px 1px;
}
}
td {
min-width: 138px;
height: 64px;
line-height: 64px;
text-align: center;
cursor: pointer;
position: relative;
.hqszt {
display: inline-block;
width: 16px;
height: 16px;
font-size: 12px;
line-height: 16px;
position: absolute;
left: 6px;
top: 6px;
border: 1px solid;
border-radius: 3px 0px 3px 0px;
min-width: 56px;
background: #e8f2ff;
border: 1px solid #acbae8;
}
.lin {
color: #f7b500;
border-color: #f7b500;
}
.zheng {
color: #1ad6e1;
border-color: #1ad6e1;
}
.xian {
color: #45aefd;
border-color: #45aefd;
&:first-child {
.floor {
border-radius: 4px 0px 0px 1px;
}
}
.dyzt {
user-select: none;
width: 138px;
height: 18px;
position: absolute;
bottom: 28px;
box-sizing: border-box;
padding: 0 6px;
li {
td {
min-width: 138px;
height: 64px;
line-height: 64px;
text-align: center;
cursor: pointer;
position: relative;
.hqszt {
display: inline-block;
width: 18px;
height: 18px;
width: 16px;
height: 16px;
font-size: 12px;
line-height: 18px;
color: #ffffff;
line-height: 16px;
position: absolute;
left: 6px;
top: 6px;
border: 1px solid;
border-radius: 9px;
border-radius: 3px 0px 3px 0px;
}
.lin {
color: #f7b500;
border-color: #f7b500;
}
.zheng {
color: #1ad6e1;
border-color: #1ad6e1;
}
.xian {
color: #45aefd;
border-color: #45aefd;
}
.dyzt {
user-select: none;
width: 138px;
height: 18px;
position: absolute;
bottom: 28px;
box-sizing: border-box;
padding: 0 6px;
li {
display: inline-block;
width: 18px;
height: 18px;
font-size: 12px;
line-height: 18px;
color: #ffffff;
border: 1px solid;
border-radius: 9px;
}
}
}
}
.tdSelect {
border: 1px solid ;
border-color: #5A78DE !important;
background-image: url("./images/tdSelect.png");
background-repeat: no-repeat;
background-position: right top;
background-size: 30px;
}
.hasBorder {
border-width: 1px;
border-style: solid;
.tdSelect {
border: 1px solid;
border-color: #5a78de !important;
background-image: url("./images/tdSelect.png");
background-repeat: no-repeat;
background-position: right top;
background-size: 30px;
}
.hasBorder {
border-width: 1px;
border-style: solid;
}
}
}
}
}
</style>
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-12 08:55:14
* @LastEditTime: 2023-09-20 16:07:43
-->
<template>
<dialogBox
......@@ -286,13 +286,12 @@
</el-table-column>
<el-table-column label="操作" width="50">
<template slot-scope="scope">
<el-button type="text" @click="handlesQYSelect(scope.row)">使用</el-button>
<el-button type="text" @click="handleSelect(scope.row)">使用</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination background layout="prev, pager, next,total" :total="tableDataQy.total"
@current-change="handleQYCurrentChange"></el-pagination>
</div>
<div v-if="activeName==3" class="padding10">
......@@ -327,7 +326,7 @@
</el-table-column>
<el-table-column label="操作" width="50">
<template slot-scope="scope">
<el-button type="text" @click="handlesYHSelect(scope.row)">使用</el-button>
<el-button type="text" @click="handleSelect(scope.row)">使用</el-button>
</template>
</el-table-column>
</el-table>
......@@ -340,6 +339,8 @@
<script>
import { mapGetters } from "vuex";
import store from '@/store/index.js'
import { getUuid } from "@/utils/operation.js"
import { replace } from "@/api/company.js"
import { getIdCardInfo } from '@/utils/operation.js'
import { queryQyByPage, queryYhByPage, addQy } from "@/api/xxba.js";
import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData";
......@@ -500,7 +501,7 @@
}
},
/**
* @description: handleSearchQY
* @description: 企业信息搜索
* @author: renchao
*/
handleSearchQY () {
......@@ -515,6 +516,7 @@
item.zjzlMc = this.dicStatus(item.zjzl, 'A30')
item.sqrmc = item.qymc
item.txdz = item.dwdz
item.id = getUuid(16)
})
}
})
......@@ -533,13 +535,34 @@
* @param {*} val
* @author: renchao
*/
handlesQYSelect (val) {
this.$emit("updateDetail", _.cloneDeep(val));
this.$emit("input", false);
handleSelect (val) {
let that = this
let bsmSldy = window.currentSelect.bsmSldy ? window.currentSelect.bsmSldy : ''
this.$confirm('是否同步材料信息?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(() => {
replace(val.bsmCompany, this.$route.query.bsmSlsq, bsmSldy).then(res => {
that.$emit("updateDetail", _.cloneDeep(val));
that.$emit("input", false);
if (res.code == 200) {
that.$message({
type: 'success',
message: '同步成功!'
})
} else {
this.$message.error(res.message);
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
})
})
},
// 银行
/**
* @description: 银行
* @description: 银行信息搜索
* @author: renchao
*/
handleSearchYH () {
......@@ -554,6 +577,7 @@
item.zjzlMc = this.dicStatus(item.zjzl, 'A30')
item.sqrmc = item.qymc
item.txdz = item.dwdz
item.id = getUuid(16)
})
}
})
......@@ -568,15 +592,6 @@
this.handleSearchQY()
},
/**
* @description: handlesYHSelect
* @param {*} val
* @author: renchao
*/
handlesYHSelect (val) {
this.$emit("updateDetail", _.cloneDeep(val));
this.$emit("input", false);
},
/**
* @description: 身份证打卡器
* @author: renchao
*/
......@@ -608,7 +623,9 @@
*/
closeDialog () {
this.$emit("input", false);
this.$refs["ruleForm"].resetFields();
this.$nextTick(() => {
this.$refs["ruleForm"].resetFields();
})
},
/**
* @description: submitForm
......@@ -618,6 +635,7 @@
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.$emit("input", false);
this.ruleForm.id = getUuid(16)
this.$emit("updateDetail", _.cloneDeep(this.ruleForm));
this.$refs["ruleForm"].resetFields();
} else {
......
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-09-18 11:00:38
* @LastEditTime: 2023-09-20 15:46:25
-->
<template>
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
......@@ -75,7 +75,7 @@
isRefresh: {
handler (newVal, oldVal) {
if (newVal) {
this.loadBdcdylist()
this.loadBdcdylist(true)
}
},
immediate: true
......@@ -86,7 +86,7 @@
* @description: 读取申请单元信息
* @author: renchao
*/
loadBdcdylist () {
loadBdcdylist (status = false) {
let that = this
var formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
......@@ -104,13 +104,15 @@
that.currentSelectProps = res.result[0];
that.$emit('getCurrentSelectProps', this.currentSelectProps);
that.judgeBatchShow();
if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
if (!status) {
if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
}
}
}
}
......@@ -123,13 +125,15 @@
this.currentSelectProps = res.result[0];
this.$emit('getCurrentSelectProps', this.currentSelectProps);
this.judgeBatchShow();
if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
if (!status) {
if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
}
}
}
}
......@@ -205,6 +209,7 @@
* @author: renchao
*/
batchUnitClick () {
window.currentSelect = {}
this.currentSelectProps.batchOperation = true;
this.activeIndex = "-1";
this.$parent.stepForm(0);
......@@ -226,6 +231,7 @@
* @author: renchao
*/
unitClick (index) {
window.currentSelect = this.unitData[index]
if (this.unitData.length == 0) return
this.currentSelectProps = this.unitData[index];
this.currentSelectProps.batchOperation = false;
......
<!--
* @Description: workFrame左侧菜单列表-分割
* @Autor: renchao
* @LastEditTime: 2023-09-15 15:02:25
* @LastEditTime: 2023-09-20 15:33:05
-->
<template>
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
......@@ -88,7 +88,7 @@
watch: {
isRefresh: {
handler (newVal, oldVal) {
if (newVal) this.loadBdcdylist()
if (newVal) this.loadBdcdylist(true)
},
immediate: true
}
......@@ -98,7 +98,7 @@
* @description: 读取申请单元信息
* @author: renchao
*/
loadBdcdylist () {
loadBdcdylist (status = false) {
let that = this
var formdata = new FormData();
// 受理申请标识码
......@@ -114,13 +114,15 @@
this.currentSelectProps = res.result[0];
this.$emit('getCurrentSelectProps', this.currentSelectProps);
this.judgeBatchShow();
if (sessionStorage.getItem('keyPath')) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
if (!status) {
if (sessionStorage.getItem('keyPath')) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
}
}
}
}
......@@ -133,13 +135,15 @@
this.currentSelectProps = res.result[0];
this.$emit('getCurrentSelectProps', this.currentSelectProps);
this.judgeBatchShow();
if (sessionStorage.getItem('keyPath')) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
if (!status) {
if (sessionStorage.getItem('keyPath')) {
that.unitClick(sessionStorage.getItem('keyPath') - 0)
} else {
that.unitClick(0)
if (that.showBatch) {
//满足批量查封/批量抵押按钮出现 即先展示批量表单
that.batchUnitClick();
}
}
}
}
......@@ -214,6 +218,7 @@
* @author: renchao
*/
unitClick (index) {
window.currentSelect = this.unitData[index]
this.activeHIndex = '-1'
this.currentSelectProps = this.aroundUnitData[index];
this.currentSelectProps.issave = '1'
......@@ -230,6 +235,7 @@
* @author: renchao
*/
handleAfterunitClick (index) {
window.currentSelect = this.unitData[index]
this.activeIndex = '-1'
this.currentSelectProps = this.afterUnitData[index];
this.currentSelectProps.batchOperation = false;
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-11 09:56:42
* @LastEditTime: 2023-09-19 15:24:14
-->
<template>
<div class="slxx">
......@@ -72,12 +72,6 @@
<el-input v-model="ruleForm.cfdjList[0].cfwh" :disabled="!ableOperation|| isJfOperation"></el-input>
</el-form-item>
</el-col>
<!-- 批量查封状态有多种查封类型,不予展示 -->
<!-- <el-col :span="8">
<el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflxmc">
<el-input v-model="ruleForm.cfdjList[0].cflxmc" disabled></el-input>
</el-form-item>
</el-col>-->
</el-row>
<el-row :gutter="10">
<el-col :span="8">
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:56:19
* @LastEditTime: 2023-09-19 15:47:56
-->
<template>
<div class="slxx">
......@@ -128,15 +128,7 @@
<el-row :gutter="10">
<el-col :span="8">
<el-form-item :class="flag ? 'marginBot0' : ''" label="权利性质">
<treeselect
disabled
v-model="ruleForm.ztQlxx.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.ztQlxx.qlxzmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:56:41
* @LastEditTime: 2023-09-20 14:09:36
-->
<template>
<!-- 受理信息 -->
......@@ -100,15 +100,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:">
<treeselect
disabled
v-model="ruleForm.ztQlxx.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.ztQlxx.qlxzmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -306,10 +298,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -391,14 +383,21 @@
}, 200)
if (res.code === 200 && res.result) {
that.ruleForm = res.result;
that.czrOptions = this.ruleForm.qlrList;
that.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
that.czr = item.zjh
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = this.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
that.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
......@@ -410,6 +409,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -481,21 +481,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
type: "error"
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
......@@ -528,7 +528,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......
<!--
* @Description: 房屋多幢受理信息
* @Autor: ssq
* @LastEditTime: 2023-09-14 17:20:40
* @LastEditTime: 2023-09-20 13:39:05
-->
<template>
<div class="slxx">
......@@ -220,16 +220,16 @@
<el-col
:span="5"
v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
<el-form-item label="持证人1:">
<el-form-item label="持证人:">
<el-select
v-model="czr"
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh"></el-option>
:value="item.id"></el-option>
</el-select>
</el-form-item>
</el-col>
......@@ -272,7 +272,7 @@
</el-row>
</div>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -291,6 +291,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
......@@ -303,19 +304,28 @@
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = {
that.ruleForm = {
...res.result,
...res.result.qlxxdatas,
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
this.czrOptions = this.ruleForm.qlrList;
that.czrOptions = that.ruleForm.qlrList;
that.isSave = this.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
})
},
components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable },
......@@ -324,6 +334,7 @@
},
data () {
return {
isSave: true,
loading: false,
disabled: true,
tdytOption: [],
......@@ -386,7 +397,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -402,7 +413,6 @@
updaterow () {
this.czr = "";
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
......@@ -461,7 +471,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -469,16 +479,15 @@
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
this.ruleForm.qlrList.forEach(item => {
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
......@@ -491,13 +500,13 @@
this.$message({
showClose: true,
message: res.message,
type: "error",
});
type: "error"
})
}
});
},
},
};
})
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2023-09-15 16:09:33
* @LastEditTime: 2023-09-20 14:30:39
-->
<template>
<div class="slxx">
......@@ -227,7 +227,7 @@
style="width: 500%"
:disabled="!viewEdit"
oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
<el-select v-model="ruleForm.fdcq2.jedw" :disabled="!viewEdit">
<el-select v-model="ruleForm.fdcq2.jedw" disabled>
<el-option
v-for="item in dictData['A57']"
:key="item.dcode"
......@@ -355,10 +355,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -400,7 +400,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -418,6 +418,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this;
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
......@@ -430,18 +431,25 @@
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = {
that.ruleForm = {
...res.result,
...res.result.qlxxdatas,
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
this.czrOptions = this.ruleForm.qlrList;
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
......@@ -453,6 +461,7 @@
},
data () {
return {
isSave: true,
loading: false,
mjdw: "1",
// 键名转换,方法默认是label和children进行树状渲染
......@@ -511,11 +520,13 @@
* @author: renchao
*/
upDateQlrxxList (val) {
this.ruleForm.qlrList = _.cloneDeep(val);
this.czrOptions = this.ruleForm.qlrList;
if (!_.isEqual(val, this.ruleForm.qlrList)) {
this.ruleForm.qlrList = _.cloneDeep(val);
this.czrOptions = this.ruleForm.qlrList;
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -591,7 +602,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -600,7 +611,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2023-09-14 17:20:53
* @LastEditTime: 2023-09-20 13:32:47
-->
<template>
<div class="slxx">
......@@ -225,10 +225,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -258,7 +258,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -275,6 +275,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
......@@ -287,23 +288,31 @@
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = {
that.ruleForm = {
...res.result,
...res.result.zdjbxxdatas,
...res.result.qlxxdatas,
...res.result.jsydsyqdatas,
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
this.czrOptions = this.ruleForm.qlrList;
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable },
......@@ -312,6 +321,7 @@
},
data () {
return {
isSave: true,
loading: false,
mjdw: "1",
//表单是否可操作
......@@ -397,7 +407,6 @@
this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
this.key++;
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -418,7 +427,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -426,7 +435,6 @@
this.czr = ''
}
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
......@@ -486,21 +494,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
type: "error"
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
this.ruleForm.qlrList.forEach(item => {
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
saveData(this.ruleForm).then((res) => {
......
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2023-09-14 17:20:59
* @LastEditTime: 2023-09-20 13:41:15
-->
<template>
<div class="slxx">
......@@ -9,6 +9,7 @@
:model="ruleForm"
:rules="rules"
ref="ruleForm"
v-Loading="loading"
:label-position="flag ? 'top' : ''"
:inline="flag"
label-width="130px">
......@@ -178,10 +179,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh"></el-option>
:value="item.id"></el-option>
</el-select>
</el-form-item>
</el-col>
......@@ -210,7 +211,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -231,21 +232,13 @@
export default {
mixins: [ywmix],
computed: {
...mapGetters(["dictData", "flag"]),
...mapGetters(["dictData", "flag"])
},
components: { qlrCommonTable },
// 更新义务人信息
/**
* @description: 更新义务人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList (val) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
data () {
return {
isSave: true,
loading: false,
disabled: true,
tdytOption: [],
ruleForm: {
......@@ -283,6 +276,8 @@
};
},
mounted (callbackfn, thisArg) {
let that = this
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
......@@ -291,23 +286,34 @@
formdata.append("bsmSlsq", this.bsmSlsq);
formdata.append("isEdit", this.viewEdit);
BatchInit(formdata).then((res) => {
setTimeout(() => {
this.loading = false
}, 200)
if (res.code == 200) {
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
this.gyfs = this.ruleForm.sldyList[0].gyfs;
this.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.isSave = this.viewEdit
this.splicingFdcq2Info();
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
}
});
});
}).catch(() => {
this.loading = false
})
},
methods: {
//组装房地产权通用信息
/**
* @description: 组装房地产权通用信息
* @author: renchao
......@@ -322,7 +328,6 @@
fwjgArr.push(fdcq2.fwjgmc);
jzmj += parseFloat(fdcq2.jzmj);
});
//将数据转为字符串
//房屋性质
let fwxz = Array.from(new Set(fwxzArr)).join(",");
//房屋结构
......@@ -344,7 +349,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -352,7 +357,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -411,21 +415,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
type: "error"
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
saveBatchData(this.ruleForm).then((res) => {
......@@ -440,13 +444,13 @@
this.$message({
showClose: true,
message: res.message,
type: "error",
});
type: "error"
})
}
});
},
},
};
})
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:56:59
* @LastEditTime: 2023-09-20 14:27:29
-->
<template>
<!-- 受理信息 -->
......@@ -94,15 +94,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:" prop="qlxzmc">
<treeselect
disabled
v-model="ruleForm.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.qlxzmc"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -196,17 +188,17 @@
</el-col>
<el-col
:span="5"
v-show="ruleForm.gyfs != '1' && ruleForm.sffbcz == '0'">
v-show="ruleForm.gyfs != '0' && ruleForm.sffbcz == '0'">
<el-form-item label="持证人:">
<el-select
v-model="czr"
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.value"
:label="item.label"
:value="item.value">
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -214,6 +206,7 @@
</el-row>
<qlrCommonTable
:tableData="ruleForm.qlrList"
@upDateQlrxxList="upDateQlrxxList"
:gyfs="ruleForm.gyfs"
:disabled="viewEdit" />
<div class="slxx_title title-block">
......@@ -235,7 +228,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -252,13 +245,16 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
formdata.append("bsmSldy", this.propsParam.bsmSldy);
Init(formdata).then((res) => {
this.loading = false
setTimeout(() => {
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = {
...res.result,
......@@ -267,16 +263,24 @@
...res.result.jsydsyqdatas,
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
this.czrOptions = this.ruleForm.qlrList;
that.isSave = this.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable },
......@@ -285,6 +289,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -351,7 +356,26 @@
this.czrOptions = this.ruleForm.qlrData;
this.key++;
},
// 是否持证人变化
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList (val) {
if (!_.isEqual(val, this.ruleForm.qlrList)) {
this.ruleForm.qlrList = _.cloneDeep(val);
this.czrOptions = this.ruleForm.qlrList;
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.id == this.czr) {
this.num++
}
})
if (this.num == 0) {
this.czr = ''
}
},
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -433,21 +457,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
});
type: "error"
})
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
fristReg(this.ruleForm).then((res) => {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:57:23
* @LastEditTime: 2023-09-20 14:27:17
-->
<template>
<!-- 受理信息 -->
......@@ -15,7 +15,7 @@
:label-position="flag ? 'top' : ''"
:inline="flag"
label-width="120px">
<div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''">
<div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
<div class="slxx_title title-block">
申请业务信息
<div class="triangle"></div>
......@@ -70,10 +70,9 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="权利性质">
<el-form-item label="权利性质">
<treeselect
disabled
v-model="ruleForm.zdjbxx.qlxzmc"
v-model="ruleForm.zdjbxx.qlxz"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
......@@ -193,7 +192,7 @@
v-for="(item, index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -238,7 +237,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -256,29 +255,39 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
let that = this;
this.loading = true
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
this.loading = false
this.$nextTick(() => {
setTimeout(() => {
that.loading = false
}, 200)
if (res.code === 200) {
that.ruleForm = res.result;
that.isShow = true;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr);
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable, ywrCommonTable },
......@@ -295,6 +304,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -312,7 +322,6 @@
viewEdit: true,
czr: "",
key: 0,
isShow: false,
disabled: true,
czrOptions: [],
ruleForm: {},
......@@ -331,7 +340,6 @@
this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
this.key++;
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
......@@ -340,10 +348,9 @@
upDateQlrxxList (val) {
this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val));
this.czrOptions = this.ruleForm.qlrList;
this.key++;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -351,7 +358,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -360,7 +366,6 @@
updaterow () {
this.czr = "";
},
// 更新义务人信息
/**
* @description: 更新义务人信息
* @param {*} val
......@@ -420,7 +425,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -429,7 +434,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......@@ -453,13 +458,13 @@
this.$message({
showClose: true,
message: res.message,
type: "error",
});
type: "error"
})
}
});
},
},
};
})
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
......@@ -2,14 +2,15 @@
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:57:35
* @LastEditTime: 2023-09-20 14:26:30
-->
<template>
<!-- 受理信息 -->
<div class="slxx loadingtext">
<div class="slxx">
<el-form
:model="ruleForm"
:rules="rules"
v-Loading="loading"
ref="ruleForm"
:label-position="flag ? 'top' : ''"
:inline="flag"
......@@ -72,15 +73,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:">
<treeselect
disabled
v-model="ruleForm.zdjbxx.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -186,10 +179,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -219,7 +212,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -236,27 +229,40 @@
export default {
mixins: [ywmix],
mounted () {
let that = this;
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
this.$startLoading();
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
setTimeout(() => {
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
that.ruleForm = res.result;
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
}
});
this.$endLoading();
});
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable },
computed: {
......@@ -264,6 +270,8 @@
},
data () {
return {
isSave: true,
loading: false,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -313,7 +321,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -321,7 +329,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -381,7 +388,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -390,12 +397,12 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
}
});
})
}
}
saveData(this.ruleForm).then((res) => {
......
<!--
* @Description: 房屋多幢受理信息
* @Autor: ssq
* @LastEditTime: 2023-09-11 11:14:35
* @LastEditTime: 2023-09-20 14:25:52
-->
<template>
<div class="slxx">
......@@ -171,7 +171,6 @@
</el-col>
<el-col :span="8">
<el-form-item label="林地使用(承包)起始时间:">
<!-- <el-input v-model="ruleForm.lq.ldsyqssj"></el-input> -->
<el-date-picker
class="width100"
value-format="yyyy-MM-dd HH:mm:ss"
......@@ -182,7 +181,6 @@
</el-col>
<el-col :span="8">
<el-form-item label="林地使用(承包)结束时间:">
<!-- <el-input v-model="ruleForm.lq.ldsyjssj"></el-input> -->
<el-date-picker
class="width100"
value-format="yyyy-MM-dd HH:mm:ss"
......@@ -193,11 +191,6 @@
</el-col>
</el-row>
<el-row :gutter="10">
<!-- <el-col :span="8">
<el-form-item label="土地用途:">
<el-input v-model="ruleForm.lq.xdm"></el-input>
</el-form-item>
</el-col> -->
<el-col :span="8">
<el-form-item label="林地使用 (承包)期限:">
<el-input v-model="ruleForm.lq.ldsyqx" :disabled="!viewEdit"></el-input>
......@@ -216,14 +209,6 @@
</el-form-item>
</el-col>
</el-row>
<!-- <div class="slxx_title title-block">
土地用途
<div class="triangle"></div>
</div>
<tdytTable
:ableOperation="viewEdit"
:tableData="ruleForm.tdytqxList"
@upDateTdytxxList="upDateTdytxxList" /> -->
<div class="slxx_title title-block">
权利人信息
<div class="triangle"></div>
......@@ -264,7 +249,7 @@
v-for="(item, index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -307,7 +292,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -316,15 +301,16 @@
</div>
</template>
<script>
import { mapGetters } from "vuex";
import ywmix from "@/views/ywbl/mixin/index";
import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
import ywrCommonTable from "@/views/workflow/components/ywrCommonTable";
import tdytTable from "@/views/workflow/components/tdytTable";
import { Init, saveData } from "@/api/workflow/lqFlow.js";
import { mapGetters } from "vuex";
export default {
mixins: [ywmix],
mounted () {
let that = this;
this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
......@@ -333,28 +319,34 @@
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
setTimeout(() => {
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = {
that.ruleForm = {
...res.result,
...res.result.qlxxdatas,
...res.result.qlxxdatas
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
that.ruleForm.qlrList.forEach(item => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
//初始化发证方式,1:小证,2:大正
this.ruleForm.slsq.fzfs == null
? (this.ruleForm.slsq.fzfs = "1")
: this.ruleForm.slsq.fzfs;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.lq.zlnd ? this.$set(this.ruleForm.lq, 'zlnd', this.ruleForm.lq.zlnd.toString()) : this.$set(this.ruleForm.lq, 'zlnd', "")
setTimeout(() => {
this.loading = false
}, 200)
})
that.czrOptions = that.ruleForm.qlrList;
that.ruleForm.lq.zlnd ? that.$set(that.ruleForm.lq, 'zlnd', that.ruleForm.lq.zlnd.toString()) : that.$set(that.ruleForm.lq, 'zlnd', "")
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable, ywrCommonTable },
......@@ -363,6 +355,7 @@
},
data () {
return {
isSave: true,
loading: false,
disabled: true,
tdytOption: [],
......@@ -405,7 +398,6 @@
upDateTdytxxList (val) {
this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -424,7 +416,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -482,7 +474,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -490,13 +482,13 @@
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
this.ruleForm.qlrList.forEach(item => {
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
saveData(this.ruleForm).then((res) => {
......
......@@ -65,15 +65,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:">
<treeselect
disabled
v-model="ruleForm.zdjbxx.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -271,10 +263,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -313,7 +305,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -330,6 +322,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
this.loading = true
......@@ -338,16 +331,30 @@
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
this.loading = false
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
}
})
setTimeout(() => {
that.loading = false
}, 200)
if (res.code === 200) {
that.ruleForm = res.result;
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, JtcyTable },
......@@ -356,6 +363,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -427,16 +435,16 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
});
})
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......@@ -474,7 +482,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......
......@@ -4,7 +4,7 @@
<el-form
:model="ruleForm"
:rules="rules"
class="loadingtext"
v-Loading="loading"
ref="ruleForm"
:label-position="flag ? 'top' : ''"
:inline="flag"
......@@ -65,15 +65,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:">
<treeselect
disabled
v-model="ruleForm.zdjbxx.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -275,10 +267,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -325,7 +317,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -343,23 +335,40 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
this.$startLoading();
this.loading = true
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
}
});
this.$endLoading();
});
setTimeout(() => {
that.loading = false
}, 200)
if (res.code === 200) {
that.ruleForm = res.result;
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = that.ruleForm.qlrList
that.isSave = that.viewEdit
} else {
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, JtcyTable, ywrCommonTable },
computed: {
......@@ -367,6 +376,8 @@
},
data () {
return {
isSave: true,
loading: false,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -432,21 +443,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
type: "error"
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
......@@ -477,7 +488,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -485,7 +496,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......
<!--
* @Description: 房屋多幢受理信息
* @Autor: ssq
* @LastEditTime: 2023-09-11 09:51:59
* @LastEditTime: 2023-09-20 14:23:42
-->
<template>
<div class="slxx">
......@@ -9,6 +9,7 @@
:model="ruleForm"
:rules="rules"
ref="ruleForm"
v-Loading="loading"
:label-position="flag ? 'top' : ''"
:inline="flag"
label-width="190px">
......@@ -262,7 +263,7 @@
v-for="(item, index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -305,7 +306,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -323,32 +324,43 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
this.loading = true
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
setTimeout(() => {
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = {
...res.result,
...res.result.qlxxdatas,
};
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
//初始化发证方式,1:小证,2:大正
this.ruleForm.slsq.fzfs == null
? (this.ruleForm.slsq.fzfs = "1")
: this.ruleForm.slsq.fzfs;
this.czrOptions = this.ruleForm.qlrList;
})
that.czrOptions = that.ruleForm.qlrList
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
});
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable, ywrCommonTable },
computed: {
......@@ -356,6 +368,8 @@
},
data () {
return {
isSave: true,
loading: false,
disabled: true,
tdytOption: [],
czrOptions: [],
......@@ -406,11 +420,13 @@
* @author: renchao
*/
upDateQlrxxList (val) {
this.ruleForm.qlrList = _.cloneDeep(val);
this.czrOptions = this.ruleForm.qlrList;
if (!_.isEqual(val, this.ruleForm.qlrList)) {
this.ruleForm.qlrList = _.cloneDeep(val);
this.czrOptions = this.ruleForm.qlrList;
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -418,7 +434,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -473,11 +488,11 @@
//是否分别持证
if (this.ruleForm.sldy.sqfbcz == "1") {
//是
this.ruleForm.qlrList.forEach((item, index) => {
this.ruleForm.qlrList.forEach(item => {
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -485,8 +500,8 @@
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
this.ruleForm.qlrList.forEach(item => {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......@@ -506,13 +521,13 @@
this.$message({
showClose: true,
message: res.message,
type: "error",
});
type: "error"
})
}
});
},
},
};
})
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-19 10:58:26
* @LastEditTime: 2023-09-20 10:52:39
-->
<template>
<!-- 受理信息 -->
......@@ -9,12 +9,12 @@
<el-form
:model="ruleForm"
:rules="rules"
class="loadingtext"
v-Loading="loading"
ref="ruleForm"
:label-position="flag ? 'top' : ''"
:inline="flag"
label-width="120px">
<div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''">
<div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
<div class="slxx_title title-block">
申请业务信息
<div class="triangle"></div>
......@@ -70,15 +70,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="权利性质:">
<treeselect
disabled
v-model="ruleForm.zdjbxx.qlxzmc"
noOptionsText="暂无数据"
:default-expand-level="1"
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A9']" />
<el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -93,8 +85,6 @@
<el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="农用地面积:">
<div class="flex">
......@@ -117,6 +107,8 @@
</div>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="耕地面积:">
<div class="flex">
......@@ -161,8 +153,6 @@
</div>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="草地面积:">
<div class="flex">
......@@ -185,6 +175,8 @@
</div>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="其他农用地面积:">
<div class="flex">
......@@ -229,8 +221,6 @@
</div>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="未利用地面积:">
<div class="flex">
......@@ -299,10 +289,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item, index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -347,7 +337,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -370,31 +360,43 @@
this.propsParam = this.$attrs;
var formdata = new FormData();
let that = this;
this.$startLoading();
this.loading = true
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
this.$nextTick(() => {
setTimeout(() => {
this.loading = false
}, 200)
if (res.code === 200) {
that.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
that.$endLoading();
that.isShow = true;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
});
});
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.isSave = false
this.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
})
},
computed: {
...mapGetters(["dictData", "flag"]),
},
data () {
return {
isSave: true,
loading: false,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -416,11 +418,9 @@
value: "id",
keyword: "keyword",
},
//表单是否可操作
viewEdit: true,
key: 0,
isShow: false,
disabled: true,
czrOptions: [],
czr: "",
......@@ -450,7 +450,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -458,7 +458,6 @@
this.czr = ''
}
},
// 更新义务人信息
/**
* @description: 更新义务人信息
* @param {*} val
......@@ -468,7 +467,6 @@
this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val));
this.key++;
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -526,23 +524,23 @@
//是
this.ruleForm.qlrList.forEach((item, index) => {
item.sfczr = "1";
});
})
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
});
return false;
type: "error"
})
return false
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
/**
......
......@@ -226,10 +226,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -278,7 +278,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -295,6 +295,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
this.loading = true
......@@ -303,26 +304,39 @@
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
setTimeout(() => {
this.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.sqrmc
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
setTimeout(() => {
this.loading = false
}, 200)
that.czrOptions = this.ruleForm.qlrList
that.isSave = that.viewEdit
} else {
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.isSave = false
this.loading = false
})
},
components: { qlrCommonTable, ywrCommonTable },
computed: {
...mapGetters(["dictData", "flag"]),
...mapGetters(["dictData", "flag"])
},
data () {
return {
isSave: true,
loading: false,
mjdw: "1",
//表单是否可操作
......@@ -354,7 +368,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -370,7 +384,6 @@
upDateYwrxxList (val) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -421,21 +434,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
type: "error"
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
saveData(this.ruleForm).then((res) => {
......
......@@ -4,7 +4,7 @@
<el-form
:model="ruleForm"
:rules="rules"
class="loadingtext"
v-Loading="loading"
ref="ruleForm"
:label-position="flag ? 'top' : ''"
:inline="flag"
......@@ -152,10 +152,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -194,7 +194,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -211,26 +211,39 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
this.$startLoading();
this.loading = true
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
setTimeout(() => {
that.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.$endLoading();
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
that.ruleForm = res.result;
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = this.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
that.isSave = false
that.loading = false
})
},
components: { qlrCommonTable, ywrCommonTable },
......@@ -239,6 +252,8 @@
},
data () {
return {
isSave: true,
loading: false,
//表单是否可操作
viewEdit: true,
disabled: true,
......@@ -274,7 +289,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -341,21 +356,21 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
type: "error",
type: "error"
});
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
item.sfczr = "1";
if (item.id == that.czr) {
item.sfczr = "1"
} else {
item.sfczr = "0";
item.sfczr = "0"
}
});
})
}
}
saveData(this.ruleForm).then((res) => {
......
......@@ -238,10 +238,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh"></el-option>
:value="item.id"></el-option>
</el-select>
</el-form-item>
</el-col>
......@@ -289,7 +289,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmit">保存</el-button>
</el-form-item>
......@@ -306,30 +306,40 @@
export default {
mixins: [ywmix],
mounted () {
let that = this;
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
let that = this;
this.loading = true;
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
Init(formdata).then((res) => {
setTimeout(() => {
that.loading = false
}, 200)
if (res.code === 200 && res.result) {
that.ruleForm = res.result;
that.czrOptions = this.ruleForm.qlrList;
that.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
that.czr = item.zjh;
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
});
setTimeout(() => {
that.loading = false
}, 200)
})
that.czrOptions = this.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, ywrCommonTable },
......@@ -338,6 +348,7 @@
},
data () {
return {
isSave: true,
//表单是否可操作
viewEdit: true,
loading: false,
......@@ -362,7 +373,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -427,7 +438,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -436,7 +447,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......
......@@ -204,7 +204,6 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="5" v-show="ruleForm.sldyList[0].gyfs != '0'">
<el-form-item label="是否分别持证:">
<el-radio-group
......@@ -228,10 +227,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -284,7 +283,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmitClick()">保存</el-button>
</el-form-item>
......@@ -299,6 +298,7 @@
import { mapGetters } from "vuex";
export default {
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
......@@ -308,17 +308,26 @@
formdata.append("djlx", this.propsParam.djlx);
formdata.append("isEdit", this.viewEdit);
bacthInit(formdata).then((res) => {
this.loading = false
setTimeout(() => {
that.loading = false
}, 200)
if (res.code === 200 && res.result) {
this.ruleForm = res.result;
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message)
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
......@@ -330,6 +339,7 @@
},
data () {
return {
isSave: true,
loading: false,
//表单是否可操作
viewEdit: true,
......@@ -362,7 +372,7 @@
if (this.ruleForm.qlrList.length > 1) {
this.$message({
showClose: true,
message: "共有方式:单独所有,权利人只能是一个人",
message: "共有方式:单独所有,抵押权人只能是一个人",
type: "error",
});
return false;
......@@ -373,7 +383,7 @@
this.$message({
showClose: true,
message:
"共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
"共有方式:共同所有,按份所有,其他所有,抵押权人必须是两个以上",
type: "error",
});
return false;
......@@ -385,7 +395,7 @@
item.sfczr = "1"
})
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -394,7 +404,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......@@ -428,7 +438,7 @@
this.czr = "";
},
/**
* @description: 更新权利人信息
* @description: 更新抵押权人信息
* @param {*} val
* @author: renchao
*/
......@@ -439,7 +449,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......
......@@ -143,17 +143,19 @@
<el-row :gutter="10">
<el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
<el-form-item label="被担保主债权数额:">
<el-input
v-model="ruleForm.diyaq.bdbzzqse"
:disabled="!viewEdit"></el-input>
<el-select v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit">
<el-option
v-for="item in dictData['A57']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode">
</el-option>
</el-select>
<div style="display:flex">
<el-input
v-model="ruleForm.diyaq.bdbzzqse"
:disabled="!viewEdit"></el-input>
<el-select style="width: 68px" v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit">
<el-option
v-for="item in dictData['A57']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode">
</el-option>
</el-select>
</div>
</el-form-item>
</el-col>
......@@ -229,7 +231,7 @@
<div class="triangle"></div>
</div>
<el-row :gutter="10">
<el-col :span="14">
<el-col :span="12">
<el-form-item label="共有方式:">
<el-radio-group
:disabled="!viewEdit"
......@@ -261,10 +263,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
v-for="(item,index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.zjh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -314,7 +316,7 @@
</el-col>
</el-row>
</div>
<el-row class="btn" v-if="viewEdit">
<el-row class="btn" v-if="isSave">
<el-form-item>
<el-button type="primary" @click="onSubmitClick()">保存</el-button>
</el-form-item>
......@@ -328,6 +330,7 @@
import { mapGetters } from "vuex";
export default {
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
var formdata = new FormData();
......@@ -342,12 +345,20 @@
window.djlx = res.result.sldy.djlx
this.czrOptions = this.ruleForm.qlrList;
this.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
this.czr = item.zjh
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.bsmSqr
}
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.$message.error(res.message);
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
})
}
}).catch(() => {
this.loading = false
......@@ -359,6 +370,7 @@
},
data () {
return {
isSave: true,
loading: false,
//表单是否可操作
viewEdit: true,
......@@ -425,7 +437,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -434,7 +446,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......@@ -471,7 +483,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......