17ab45eb by 任超

style:家庭房产

1 parent 01dded5c
......@@ -21,14 +21,12 @@
</el-col>
</el-row>
</el-form>
<!-- <personInfoTable @getInfoList="handleGetSqList" :dataList="form.sqrList" /> -->
<lb-table border :column="sqrColumns" key="sqr1" :data="form.sqrList" :maxHeight="200" heightNumSetting
<lb-table :column="sqrColumns" key="sqr1" :data="form.sqrList" :maxHeight="200" heightNumSetting
:pagination="false">
</lb-table>
<b class="title">权利人</b>
<!-- <personInfoTable @getInfoList="handleGetQlList" :dataList="form.qlrList" :isGanged="isGanged" /> -->
<lb-table border :column="qlrColumns" key="ql2r" :data="form.qlrList" :maxHeight="200" heightNumSetting
<lb-table :column="qlrColumns" key="ql2r" :data="form.qlrList" :maxHeight="200" heightNumSetting
:pagination="false">
</lb-table>
<div v-show="isSearch">
......@@ -41,10 +39,10 @@
<el-divider></el-divider>
<div class="submit-button" style="padding-bottom:50px">
<el-button @click="resetClick">重置</el-button>
<el-button type="primary" v-show="isSearch==false" @click="queryChick">查询</el-button>
<el-button type="primary" v-show="isSearch&&form.dyjlList.length > 0">房产结果打印({{form.dyjlList.length}}
<el-button type="primary" v-show="isSearch == false" @click="queryChick">查询</el-button>
<el-button type="primary" v-show="isSearch && form.dyjlList.length > 0">房产结果打印({{ form.dyjlList.length }}
</el-button>
<el-button type="primary" v-show="isSearch&&form.dyjlList.length == 0">无房证明打印({{form.dyjlList.length}}
<el-button type="primary" v-show="isSearch && form.dyjlList.length == 0">无房证明打印({{ form.dyjlList.length }}
</el-button>
<el-button @click="closeDialog">关闭</el-button>
</div>
......@@ -68,10 +66,10 @@ export default {
value: { type: Boolean, default: false },
bsmSqcx: { type: String, default: "" },
},
mounted() {
mounted () {
sendThis(this);
},
data() {
data () {
return {
myValue: this.value,
//是否查询
......@@ -99,7 +97,7 @@ export default {
};
},
watch: {
value(val) {
value (val) {
this.myValue = val;
if (val) {
//this.$alert(this.bsmSqcx);
......@@ -109,9 +107,9 @@ export default {
} else {
this.loadData();
}
}
}
},
"form.djSqcxDO.ycyrgx"(val) {
"form.djSqcxDO.ycyrgx" (val) {
if (val == "1") {
this.form.qlrList = this.form.sqrList;
} else {
......@@ -119,15 +117,17 @@ export default {
this.add("qlr");
}
},
"form.sqrList"(val) {
//this.$alert(val);
},
"form.sqrList" (val) {
if (this.form.djSqcxDO.ycyrgx == '1') {
this.form.qlrList = this.form.sqrList
}
}
},
methods: {
closeDialog() {
closeDialog () {
this.$emit("input", false);
},
loadData() {
loadData () {
this.$startLoading();
getJtfcInfo({ sqcxBsm: sqcxBsm }).then((res) => {
this.$endLoading();
......@@ -137,7 +137,7 @@ export default {
}
});
},
queryChick() {
queryChick () {
this.$startLoading();
addJtfcCxjgXx(this.form).then((res) => {
this.$endLoading();
......@@ -148,30 +148,30 @@ export default {
}
});
},
resetClick() {
resetClick () {
this.form.djSqcxDO = { ycyrgx: "1", cxyt: "" };
this.form.sqrList = _.cloneDeep([this.newData]);
this.form.qlrList =_.cloneDeep([this.newData]);
this.form.qlrList = _.cloneDeep([this.newData]);
this.form.cxjgList = [];
this.form.dyjlList = [];
this.isSearch = false;
},
handleRead(scope) {},
add(type) {
handleRead (scope) { },
add (type) {
if (type == "sqr") {
this.form.sqrList.push(this.newData);
this.form.sqrList.push(_.cloneDeep(this.newData));
} else {
this.form.qlrList.push(this.newData);
this.form.qlrList.push(_.cloneDeep(this.newData));
}
},
remove(index, row, type) {
remove (index, row, type) {
if (type == "sqr") {
this.form.sqrList.splice(index, 1);
} else {
this.form.qlrList.splice(index, 1);
}
},
teltest(row) {
teltest (row) {
const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
row.inputErr = true;
......
......@@ -8,7 +8,7 @@ class data extends filter {
constructor() {
super()
}
columns() {
columns () {
return [
{
prop: 'qszt',
......@@ -74,7 +74,7 @@ class data extends filter {
}
]
}
sqrCol() {
sqrCol () {
return [
{
width: "60",
......@@ -94,7 +94,7 @@ class data extends filter {
<i
class="el-icon-minus pointer"
onClick={() => {
vm.remove(scope.$index, scope.row,"sqr");
vm.remove(scope.$index, scope.row, "sqr");
}}
></i>
);
......@@ -142,6 +142,7 @@ class data extends filter {
return (
<el-select
class="width100"
clearable
value={scope.row[scope.column.property]}
onChange={(val) => {
scope.row[scope.column.property] = val;
......@@ -211,7 +212,7 @@ class data extends filter {
},
]
}
qlrCol() {
qlrCol () {
return [
{
width: "60",
......@@ -231,7 +232,7 @@ class data extends filter {
<i
class="el-icon-minus pointer"
onClick={() => {
vm.remove(scope.$index, scope.row,"qlr");
vm.remove(scope.$index, scope.row, "qlr");
}}
></i>
);
......
......@@ -3,8 +3,7 @@
作者:calliope
-->
<template>
<lb-table border :column="tableData.columns" :data="tableData.data" :maxHeight="200" heightNumSetting
:pagination="false">
<lb-table :column="tableData.columns" :data="tableData.data" :maxHeight="200" heightNumSetting :pagination="false">
</lb-table>
</template>
<script>
......@@ -13,7 +12,7 @@ export default {
props: {
dataList: { type: Array, default: () => [{}] },
},
created() {
created () {
if (this.dataList.length == 0) {
this.add();
}
......@@ -21,7 +20,7 @@ export default {
computed: {
...mapGetters(["dictData"]),
},
data() {
data () {
return {
tableData: {
columns: [
......@@ -184,7 +183,7 @@ export default {
// },
},
methods: {
add() {
add () {
this.tableData.data.push({
sqrxm: "",
sqrzjlxbm: "",
......@@ -193,10 +192,10 @@ export default {
inputErr: false,
});
},
remove(index, row) {
remove (index, row) {
this.tableData.data.splice(index, 1);
},
teltest(row) {
teltest (row) {
const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
row.inputErr = true;
......