3c42c895 by 任超

feat:抵押信息

1 parent bbf83756
<template>
<div>
<lb-table :column="column" border :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList">
<lb-table :column="column" :maxHeight="300" heightNumSetting :pagination="false" :key="key" :data="tableDataList">
</lb-table>
<addQlr v-model="dialog" :details="details" @updateDetail="updateDetail" />
<addQlr v-model="dialog" :details="details" @updateDetail="handleupdateDetail" />
</div>
</template>
<script>
......@@ -67,7 +67,14 @@ export default {
},
{
prop: "zjzl",
label: "证件种类"
label: "证件种类",
render: (h, scope) => {
return this.dictData['A30'].map(option => {
if (option.dcode == scope.row.zjzl) {
return <span>{option.dname}</span>
}
})
}
},
{
prop: "zjh",
......@@ -96,13 +103,14 @@ export default {
}
}
],
column: this.InformationTable
column: []
}
},
watch: {
tableData: {
handler: function (val, oldVal) {
let that = this
this.$nextTick(() => {
if (val.length == 0 || !val) {
that.tableDataList = _.cloneDeep([{
sqrmc: '',
......@@ -113,8 +121,9 @@ export default {
} else {
that.tableDataList = _.cloneDeep(val)
}
this.column = this.InformationTable
})
},
immediate: true,
deep: true
},
gyfs: {
......@@ -122,7 +131,7 @@ export default {
let dataList = _.cloneDeep(this.InformationTable)
if (newVal == '0') {
this.column = _.cloneDeep(dataList).slice(1, dataList.length)
} else if ((newVal == '1'||newVal == '3')) {
} else if ((newVal == '1' || newVal == '3')) {
this.column = dataList
} else {
this.column = _.cloneDeep(dataList)
......@@ -137,11 +146,12 @@ export default {
}
},
methods: {
updateDetail (value) {
this.tableDataList[this.dataIndex] = value;
console.log(this.tableDataList);
this.key++
handleupdateDetail (value) {
if (!_.isEqual(value, this.tableData)) {
this.tableDataList[this.dataIndex] = _.cloneDeep(value);
// this.key++
this.$emit('upDateQlrxxList', this.tableDataList)
}
},
// 新增
......
......@@ -196,18 +196,6 @@ export default {
this.$refs["ruleForm"].resetFields();
},
submitForm () {
// this.$refs['ruleForm'].validate((valid) => {
// if (valid) {
// this.$message({
// message: '修改成功!',
// type: 'success'
// })
// } else {
// this.$message.error('请完善必填项');
// }
// })
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.$emit("input", false);
......
......@@ -20,6 +20,7 @@ export default {
},
//切换选项卡内容组件
getFromRouter (tabname) {
console.log(tabname);
this.componentTag = getForm(tabname, this.$route.query.sqywbm);
}
}
......
......@@ -207,8 +207,8 @@
抵押人信息
<div class="triangle"></div>
</div>
<InformationTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
:viewtype="$route.query.viewtype" />
<!-- <InformationTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
:viewtype="$route.query.viewtype" /> -->
<div class="slxx_title title-block">
登记原因
......@@ -249,7 +249,7 @@ export default {
this.ruleForm = res.result;
this.ruleForm.diyaq.sfczjzhxz = "0";
}
});
})
},
components: { InformationTable },
computed: {
......@@ -291,13 +291,17 @@ export default {
// 更新权利人信息
upDateQlrxxList (val) {
if (!_.isEqual(val, this.ruleForm.qlrList)) {
this.ruleForm.qlrList = _.cloneDeep(val);
}
},
// 更新义务人信息
upDateYwrxxList (val) {
if (!_.isEqual(val, this.ruleForm.ywrList)) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
},
}
}
}
};
</script>
<style scoped lang='scss'>
......