e025969c by renchao@pashanhoo.com

style:权利人信息持证人模块的重构

1 parent 52f6e7a0
......@@ -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-09-12 08:55:14
* @LastEditTime: 2023-09-20 10:06:22
-->
<template>
<dialogBox
......@@ -340,6 +340,7 @@
<script>
import { mapGetters } from "vuex";
import store from '@/store/index.js'
import { getUuid } from "@/utils/operation.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)
})
}
})
......@@ -537,9 +539,8 @@
this.$emit("updateDetail", _.cloneDeep(val));
this.$emit("input", false);
},
// 银行
/**
* @description: 银行
* @description: 银行信息搜索
* @author: renchao
*/
handleSearchYH () {
......@@ -554,6 +555,7 @@
item.zjzlMc = this.dicStatus(item.zjzl, 'A30')
item.sqrmc = item.qymc
item.txdz = item.dwdz
item.id = getUuid(16)
})
}
})
......@@ -618,6 +620,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:
* @Autor: renchao
* @LastEditTime: 2023-09-19 15:23:42
* @LastEditTime: 2023-09-20 14:09:36
-->
<template>
<!-- 受理信息 -->
......@@ -298,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>
......@@ -383,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
......@@ -402,6 +409,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -473,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"
}
});
})
}
}
......@@ -520,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-19 16:42:02
* @LastEditTime: 2023-09-20 13:32:40
-->
<template>
<div class="slxx">
......@@ -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>
......@@ -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,20 +431,21 @@
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;
this.isSave = this.viewEdit
})
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.isSave = false
this.$confirm(res.message, '提示', {
that.isSave = false
that.$confirm(res.message, '提示', {
cancelButtonText: '取消',
showConfirmButton: false,
type: 'warning'
......@@ -518,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++
}
})
......@@ -598,7 +602,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -607,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 15:55:59
* @LastEditTime: 2023-09-20 14:27:29
-->
<template>
<!-- 受理信息 -->
......@@ -188,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>
......@@ -206,6 +206,7 @@
</el-row>
<qlrCommonTable
:tableData="ruleForm.qlrList"
@upDateQlrxxList="upDateQlrxxList"
:gyfs="ruleForm.gyfs"
:disabled="viewEdit" />
<div class="slxx_title title-block">
......@@ -227,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>
......@@ -244,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,
......@@ -259,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 },
......@@ -277,6 +289,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -343,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
......@@ -425,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 17:19:32
* @LastEditTime: 2023-09-20 14:27:17
-->
<template>
<!-- 受理信息 -->
......@@ -192,7 +192,7 @@
v-for="(item, index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.sxh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -237,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>
......@@ -255,10 +255,10 @@
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);
......@@ -269,12 +269,13 @@
}, 200)
if (res.code === 200) {
that.ruleForm = res.result;
that.czrOptions = that.ruleForm.qlrList;
that.ruleForm.qlrList.forEach((item) => {
if (item.sfczr == 1) {
that.czr = item.sxh
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
......@@ -286,6 +287,7 @@
}
}).catch(() => {
this.loading = false
this.isSave = false
})
},
components: { qlrCommonTable, tdytTable, ywrCommonTable },
......@@ -338,7 +340,6 @@
this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
this.key++;
},
// 更新权利人信息
/**
* @description: 更新权利人信息
* @param {*} val
......@@ -347,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.sxh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -358,7 +358,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -367,7 +366,6 @@
updaterow () {
this.czr = "";
},
// 更新义务人信息
/**
* @description: 更新义务人信息
* @param {*} val
......@@ -427,7 +425,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -436,7 +434,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.sxh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......@@ -460,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 15:45:34
* @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"
......@@ -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">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -211,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>
......@@ -228,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: {
......@@ -256,6 +270,8 @@
},
data () {
return {
isSave: true,
loading: false,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -305,7 +321,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -313,7 +329,6 @@
this.czr = ''
}
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
......@@ -373,7 +388,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -382,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) => {
......
......@@ -263,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>
......@@ -305,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>
......@@ -322,6 +322,7 @@
export default {
mixins: [ywmix],
mounted () {
let that = this
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
this.loading = true
......@@ -330,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 },
......@@ -348,6 +363,7 @@
},
data () {
return {
isSave: true,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -419,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";
......@@ -466,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"
......@@ -267,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>
......@@ -317,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>
......@@ -335,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: {
......@@ -359,6 +376,8 @@
},
data () {
return {
isSave: true,
loading: false,
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -424,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"
}
});
})
}
}
......@@ -469,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++
}
})
......@@ -477,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 17:02:47
* @LastEditTime: 2023-09-20 10:52:39
-->
<template>
<!-- 受理信息 -->
......@@ -289,10 +289,10 @@
placeholder="持证人"
:disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.sxh"
v-for="(item, index) in czrOptions"
:key="index"
:label="item.sqrmc"
:value="item.sxh">
:value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -337,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,13 +370,14 @@
}, 200)
if (res.code === 200) {
that.ruleForm = res.result;
that.czrOptions = that.ruleForm.qlrList;
that.ruleForm.qlrList.forEach((item) => {
item.id = item.bsmSqr
if (item.sfczr == '1') {
that.czr = item.sxh
that.czr = item.bsmSqr
}
})
this.isSave = this.viewEdit
that.czrOptions = that.ruleForm.qlrList;
that.isSave = that.viewEdit
} else {
this.isSave = false
this.$confirm(res.message, '提示', {
......@@ -417,7 +418,6 @@
value: "id",
keyword: "keyword",
},
//表单是否可操作
viewEdit: true,
key: 0,
......@@ -450,7 +450,7 @@
this.czrOptions = this.ruleForm.qlrList;
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.sxh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......@@ -526,7 +526,7 @@
item.sfczr = "1";
})
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -535,7 +535,7 @@
return false
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.sxh == that.czr) {
if (item.id == that.czr) {
item.sfczr = "1"
} else {
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";
......
......@@ -228,10 +228,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 +284,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 +299,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 +309,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 +340,7 @@
},
data () {
return {
isSave: true,
loading: false,
//表单是否可操作
viewEdit: true,
......@@ -385,7 +396,7 @@
item.sfczr = "1"
})
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -394,7 +405,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";
......@@ -439,7 +450,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......
......@@ -261,10 +261,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 +314,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 +328,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();
......@@ -339,14 +340,21 @@
this.loading = false
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
......@@ -358,6 +366,7 @@
},
data () {
return {
isSave: true,
loading: false,
//表单是否可操作
viewEdit: true,
......@@ -424,7 +433,7 @@
item.sfczr = "1";
});
} else {
if (!that.czr) {
if (that.czr === '') {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -433,7 +442,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";
......@@ -470,7 +479,7 @@
}
this.num = 0
this.ruleForm.qlrList.forEach(item => {
if (item.zjh == this.czr) {
if (item.id == this.czr) {
this.num++
}
})
......