7f5e8bfb by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 97bbcc72 f6de5c50
......@@ -218,12 +218,14 @@
this.isActive = -1
this.titleActive = index
this.loadComponent(data.form);
this.currentSelectProps.bdcdyid=data.bdcdyid;
this.currentSelectProps.bdcdyh=data.bdcdyh;
this.highlight = false
},
taplist (data, index) {
this.loadComponent(data.form);
this.isActive = index;
this.titleActive = -1
this.titleActive = -1;
this.highlight = false
},
/**
......
......@@ -58,7 +58,7 @@ export function loadTreeData (bdcdyh) {
}
export function loadsfqData (qlxxData, bdcdyh, bdcdyid) {
let treedata = {
bdcdyid: bdcdyid, id: "bdcqljqtsx", form: "bdcqljqtsx.vue", label: "不动产权利及其他事项\n (" + bdcdyh.slice(19) + ")", children: [],
bdcdyh:bdcdyh,bdcdyid: bdcdyid, id: "bdcqljqtsx", form: "bdcqljqtsx.vue", label: "不动产权利及其他事项\n (" + bdcdyh.slice(19) + ")", children: [],
};
//主体权利
treedata.children.push(getNode(qlxxData.ztqllx, qlxxData.ztql, qlxxData.bdcdylx, bdcdyid));
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-13 14:24:09
* @LastEditTime: 2024-01-31 09:52:39
-->
<template>
<div class="content loadingtext">
......@@ -89,8 +89,98 @@
showTab: "bdcqldjml", // 选中状态,根据表格中权利类型判断
};
},
mounted () {
this.loadData(this.getCaption(window.location.href));
/**
* @description: loadData
* @author: renchao
*/
loadData(val) {
getBdcqljqtsxBdcdyh({
bdcdyh: val,
}).then((res) => {
if (res.code === 200) {
this.treedata = loadTreeData(val);
this.sfqdata.push(loadsfqData(res.result, val, res.result.bdcdyid));
this.$nextTick(function () {
this.defaultNode = getNode(
res.result.ztqllx,
{ linShi: 0, xianShi: 0, liShi: 0 },
res.result.bdcdylx || ""
);
this.sfqdata[0].children.forEach((item, index) => {
if (item.id == this.defaultNode.id) {
this.loadComponent(item.form);
this.isActive = index;
}
});
this.currentSelectProps = {
bdcdyid: res.result.bdcdyid,
bdcdyh: val,
qllx: res.result.qllx,
bsmQlxx: this.currentSelectProps.bsmQlxx,
};
// this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点
// this.loadComponent(this.defaultNode.form);
// this.setstyle(0, 0, this.iskey);
});
}
});
},
/*
点击登记簿菜单
*/
/**
* @description: 点击登记簿菜单
* @param {*} data
* @author: renchao
*/
handleNodeClick(data) {
this.loadComponent(data.form);
},
/**
* @description: setstyle
* @param {*} data
* @author: renchao
* 设置样式和点击定位到当前功能
*/
// setstyle (newindex, index, key) {
// if (key != undefined || this.keyy == index) {
// if (key != undefined) {
// this.keyy = key
// }
// this.loadComponent(this.$refs.sfq[newindex].$children[this.keyy].$attrs.re.form);
// let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el
// dpme.style.backgroundColor = "#f5f5f5";
// dpme.style.color = "#0079fe";
// dpme.style.borderRight = "4px solid #0079fe";
// } else {
// let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el
// dpme.style.backgroundColor = "#ffffff";
// dpme.style.color = "black";
// dpme.style.border = "none";
// }
// },
/**
* @description: tap
* @param {*} data
* @author: renchao
* 新增列表功能
*/
tap(data, index) {
this.loadComponent(data.form);
this.currentSelectProps.bdcdyid=data.bdcdyid
this.currentSelectProps.bdcdyh=data.bdcdyh
},
/**
* @description: taplist
* @param {*} data
* @author: renchao
* 新增列表功能
*/
taplist(data, index) {
this.loadComponent(data.form);
this.isActive = index;
},
methods: {
// 截取字符的方法
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-26 15:29:54
* @LastEditTime: 2024-01-31 09:38:51
-->
<template>
<!-- 受理信息 -->
......@@ -338,7 +338,7 @@
v-model="ruleForm.diyaq.zxdyyy">
</el-input>
</el-form-item>
<el-form-item v-else label="登记原因:" prop="djyy">
<el-form-item v-else label="登记原因:" prop="diyaq.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -436,8 +436,12 @@
isJfOperation: false,
//传递参数
propsParam: {},
rules: {},
};
rules: {
'diyaq.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
}
},
methods: {
/**
......@@ -499,22 +503,35 @@
}
}
saveData(this.ruleForm, this.propsParam.djlx).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm, that.propsParam.djlx).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
})
},
/**
* @description: 更新权利人信息
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-20 14:27:29
* @LastEditTime: 2024-01-31 09:38:06
-->
<template>
<!-- 受理信息 -->
......@@ -342,8 +342,12 @@
},
//传递参数
propsParam: {},
rules: {},
};
rules: {
djyy: [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
}
},
methods: {
/**
......
<!--
* @Description: 房屋多幢受理信息
* @Autor: ssq
* @LastEditTime: 2023-11-15 15:47:55
* @LastEditTime: 2024-01-31 09:46:04
-->
<template>
<div class="slxx">
......@@ -279,7 +279,7 @@
</div>
<el-row :gutter="10">
<el-col>
<el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy">
<el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="lq.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -386,7 +386,11 @@
propsParam: this.$attrs,
//表单是否可操作
viewEdit: true,
rules: {}
rules: {
'lq.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
};
},
methods: {
......@@ -491,24 +495,36 @@
})
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
},
},
})
}
}
};
</script>
<style scoped lang="scss">
......
......@@ -292,7 +292,7 @@
</div>
<el-row :gutter="10">
<el-col>
<el-form-item label="登记原因:" prop="djyy">
<el-form-item label="登记原因:" prop="nydsyq.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -389,7 +389,11 @@
propsParam: {},
//表单是否可操作
viewEdit: true,
rules: {},
rules: {
'nydsyq.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
},
};
},
methods: {
......@@ -452,23 +456,35 @@
});
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
})
},
/**
* @description: upDateQlrxxList
......
......@@ -304,7 +304,7 @@
</div>
<el-row :gutter="10">
<el-col>
<el-form-item label="登记原因:" prop="djyy">
<el-form-item label="登记原因:" prop="nydsyq.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -397,8 +397,12 @@
ruleForm: {},
//传递参数
propsParam: {},
rules: {},
};
rules: {
'nydsyq.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
}
},
methods: {
/**
......@@ -460,23 +464,34 @@
})
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
})
},
/**
* @description: 权利人更新
......
......@@ -265,7 +265,7 @@
v-model="ruleForm.ygdj.zxyy">
</el-input>
</el-form-item>
<el-form-item v-else label="登记原因:" prop="djyy">
<el-form-item v-else label="登记原因:" prop="ygdj.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -354,7 +354,11 @@
},
//传递参数
propsParam: this.$attrs,
rules: {}
rules: {
'ygdj.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
}
},
methods: {
......@@ -451,25 +455,37 @@
})
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
that.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
},
},
};
})
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
......@@ -181,7 +181,7 @@
</div>
<el-row :gutter="10">
<el-col>
<el-form-item label="登记原因:" prop="djyy">
<el-form-item label="登记原因:" prop="ygdj.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -263,8 +263,12 @@
ruleForm: {},
//传递参数
propsParam: this.$attrs,
rules: {},
};
rules: {
'ygdj.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
}
},
methods: {
/**
......@@ -373,22 +377,37 @@
})
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
that.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
})
},
/**
* @description: compare
......
......@@ -290,7 +290,7 @@
v-model="ruleForm.ygdj.zxyy">
</el-input>
</el-form-item>
<el-form-item v-else label="登记原因:" prop="djyy">
<el-form-item v-else label="登记原因:" prop="ygdj.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -387,6 +387,9 @@
zwlxqssjrules: [{ required: true, message: "债务履行起始时间", trigger: "blur" }],
zwlxjssjrules: [{ required: true, message: "债务履行结束时间", trigger: "blur" }],
dbfwrules: [{ required: true, message: "担保范围", trigger: "blur" }],
'ygdj.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
}
}
},
......
......@@ -280,7 +280,7 @@
v-model="ruleForm.diyaqList[0].zxdyyy">
</el-input>
</el-form-item>
<el-form-item v-else label="登记原因:" prop="djyy">
<el-form-item v-else label="登记原因:" prop="diyaqList[0].djyy">
<el-input
class="textArea"
type="textarea"
......@@ -360,7 +360,11 @@
ruleForm: {},
//传递参数
propsParam: {},
rules: {},
rules: {
'diyaqList[0].djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
},
tableData: [],
};
},
......@@ -423,22 +427,34 @@
});
}
}
saveBatchData(this.ruleForm, this.propsParam.djlx).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveBatchData(that.ruleForm, that.propsParam.djlx).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
that.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
})
},
/**
* @description: 是否持证人变化
......
......@@ -338,7 +338,7 @@
v-model="ruleForm.diyaq.zxdyyy">
</el-input>
</el-form-item>
<el-form-item v-else label="登记原因:" prop="djyy">
<el-form-item v-else label="登记原因:" prop="diyaq.djyy">
<el-input
class="textArea"
type="textarea"
......@@ -416,7 +416,11 @@
ruleForm: {},
//传递参数
propsParam: {},
rules: {},
rules: {
'diyaq.djyy': [
{ required: true, message: '请输入登记原因', trigger: 'blur' }
]
},
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
......@@ -490,22 +494,35 @@
});
}
}
saveData(this.ruleForm, this.propsParam.djlx).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
this.$store.dispatch("user/refreshPage", true);
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
that.$store.dispatch("user/refreshPage", false);
saveData(that.ruleForm, that.propsParam.djlx).then((res) => {
if (res.code === 200) {
that.$message({
showClose: true,
message: "保存成功!",
type: "success",
});
that.$store.dispatch("user/refreshPage", true);
} else {
that.$message({
showClose: true,
message: res.message,
type: "error",
});
}
})
} else {
this.$message({
that.$message({
showClose: true,
message: res.message,
type: "error",
});
message: "请输入登记原因",
type: "error"
})
return false
}
});
})
},
/**
* @description: 更新权利人信息
......