17ab45eb by 任超

style:家庭房产

1 parent 01dded5c
...@@ -21,14 +21,12 @@ ...@@ -21,14 +21,12 @@
21 </el-col> 21 </el-col>
22 </el-row> 22 </el-row>
23 </el-form> 23 </el-form>
24 <!-- <personInfoTable @getInfoList="handleGetSqList" :dataList="form.sqrList" /> --> 24 <lb-table :column="sqrColumns" key="sqr1" :data="form.sqrList" :maxHeight="200" heightNumSetting
25 <lb-table border :column="sqrColumns" key="sqr1" :data="form.sqrList" :maxHeight="200" heightNumSetting
26 :pagination="false"> 25 :pagination="false">
27 </lb-table> 26 </lb-table>
28 27
29 <b class="title">权利人</b> 28 <b class="title">权利人</b>
30 <!-- <personInfoTable @getInfoList="handleGetQlList" :dataList="form.qlrList" :isGanged="isGanged" /> --> 29 <lb-table :column="qlrColumns" key="ql2r" :data="form.qlrList" :maxHeight="200" heightNumSetting
31 <lb-table border :column="qlrColumns" key="ql2r" :data="form.qlrList" :maxHeight="200" heightNumSetting
32 :pagination="false"> 30 :pagination="false">
33 </lb-table> 31 </lb-table>
34 <div v-show="isSearch"> 32 <div v-show="isSearch">
...@@ -41,10 +39,10 @@ ...@@ -41,10 +39,10 @@
41 <el-divider></el-divider> 39 <el-divider></el-divider>
42 <div class="submit-button" style="padding-bottom:50px"> 40 <div class="submit-button" style="padding-bottom:50px">
43 <el-button @click="resetClick">重置</el-button> 41 <el-button @click="resetClick">重置</el-button>
44 <el-button type="primary" v-show="isSearch==false" @click="queryChick">查询</el-button> 42 <el-button type="primary" v-show="isSearch == false" @click="queryChick">查询</el-button>
45 <el-button type="primary" v-show="isSearch&&form.dyjlList.length > 0">房产结果打印({{form.dyjlList.length}} 43 <el-button type="primary" v-show="isSearch && form.dyjlList.length > 0">房产结果打印({{ form.dyjlList.length }}
46 </el-button> 44 </el-button>
47 <el-button type="primary" v-show="isSearch&&form.dyjlList.length == 0">无房证明打印({{form.dyjlList.length}} 45 <el-button type="primary" v-show="isSearch && form.dyjlList.length == 0">无房证明打印({{ form.dyjlList.length }}
48 </el-button> 46 </el-button>
49 <el-button @click="closeDialog">关闭</el-button> 47 <el-button @click="closeDialog">关闭</el-button>
50 </div> 48 </div>
...@@ -68,10 +66,10 @@ export default { ...@@ -68,10 +66,10 @@ export default {
68 value: { type: Boolean, default: false }, 66 value: { type: Boolean, default: false },
69 bsmSqcx: { type: String, default: "" }, 67 bsmSqcx: { type: String, default: "" },
70 }, 68 },
71 mounted() { 69 mounted () {
72 sendThis(this); 70 sendThis(this);
73 }, 71 },
74 data() { 72 data () {
75 return { 73 return {
76 myValue: this.value, 74 myValue: this.value,
77 //是否查询 75 //是否查询
...@@ -99,7 +97,7 @@ export default { ...@@ -99,7 +97,7 @@ export default {
99 }; 97 };
100 }, 98 },
101 watch: { 99 watch: {
102 value(val) { 100 value (val) {
103 this.myValue = val; 101 this.myValue = val;
104 if (val) { 102 if (val) {
105 //this.$alert(this.bsmSqcx); 103 //this.$alert(this.bsmSqcx);
...@@ -109,9 +107,9 @@ export default { ...@@ -109,9 +107,9 @@ export default {
109 } else { 107 } else {
110 this.loadData(); 108 this.loadData();
111 } 109 }
112 } 110 }
113 }, 111 },
114 "form.djSqcxDO.ycyrgx"(val) { 112 "form.djSqcxDO.ycyrgx" (val) {
115 if (val == "1") { 113 if (val == "1") {
116 this.form.qlrList = this.form.sqrList; 114 this.form.qlrList = this.form.sqrList;
117 } else { 115 } else {
...@@ -119,15 +117,17 @@ export default { ...@@ -119,15 +117,17 @@ export default {
119 this.add("qlr"); 117 this.add("qlr");
120 } 118 }
121 }, 119 },
122 "form.sqrList"(val) { 120 "form.sqrList" (val) {
123 //this.$alert(val); 121 if (this.form.djSqcxDO.ycyrgx == '1') {
124 }, 122 this.form.qlrList = this.form.sqrList
123 }
124 }
125 }, 125 },
126 methods: { 126 methods: {
127 closeDialog() { 127 closeDialog () {
128 this.$emit("input", false); 128 this.$emit("input", false);
129 }, 129 },
130 loadData() { 130 loadData () {
131 this.$startLoading(); 131 this.$startLoading();
132 getJtfcInfo({ sqcxBsm: sqcxBsm }).then((res) => { 132 getJtfcInfo({ sqcxBsm: sqcxBsm }).then((res) => {
133 this.$endLoading(); 133 this.$endLoading();
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
137 } 137 }
138 }); 138 });
139 }, 139 },
140 queryChick() { 140 queryChick () {
141 this.$startLoading(); 141 this.$startLoading();
142 addJtfcCxjgXx(this.form).then((res) => { 142 addJtfcCxjgXx(this.form).then((res) => {
143 this.$endLoading(); 143 this.$endLoading();
...@@ -148,30 +148,30 @@ export default { ...@@ -148,30 +148,30 @@ export default {
148 } 148 }
149 }); 149 });
150 }, 150 },
151 resetClick() { 151 resetClick () {
152 this.form.djSqcxDO = { ycyrgx: "1", cxyt: "" }; 152 this.form.djSqcxDO = { ycyrgx: "1", cxyt: "" };
153 this.form.sqrList = _.cloneDeep([this.newData]); 153 this.form.sqrList = _.cloneDeep([this.newData]);
154 this.form.qlrList =_.cloneDeep([this.newData]); 154 this.form.qlrList = _.cloneDeep([this.newData]);
155 this.form.cxjgList = []; 155 this.form.cxjgList = [];
156 this.form.dyjlList = []; 156 this.form.dyjlList = [];
157 this.isSearch = false; 157 this.isSearch = false;
158 }, 158 },
159 handleRead(scope) {}, 159 handleRead (scope) { },
160 add(type) { 160 add (type) {
161 if (type == "sqr") { 161 if (type == "sqr") {
162 this.form.sqrList.push(this.newData); 162 this.form.sqrList.push(_.cloneDeep(this.newData));
163 } else { 163 } else {
164 this.form.qlrList.push(this.newData); 164 this.form.qlrList.push(_.cloneDeep(this.newData));
165 } 165 }
166 }, 166 },
167 remove(index, row, type) { 167 remove (index, row, type) {
168 if (type == "sqr") { 168 if (type == "sqr") {
169 this.form.sqrList.splice(index, 1); 169 this.form.sqrList.splice(index, 1);
170 } else { 170 } else {
171 this.form.qlrList.splice(index, 1); 171 this.form.qlrList.splice(index, 1);
172 } 172 }
173 }, 173 },
174 teltest(row) { 174 teltest (row) {
175 const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/; 175 const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
176 if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) { 176 if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
177 row.inputErr = true; 177 row.inputErr = true;
......
...@@ -8,7 +8,7 @@ class data extends filter { ...@@ -8,7 +8,7 @@ class data extends filter {
8 constructor() { 8 constructor() {
9 super() 9 super()
10 } 10 }
11 columns() { 11 columns () {
12 return [ 12 return [
13 { 13 {
14 prop: 'qszt', 14 prop: 'qszt',
...@@ -74,7 +74,7 @@ class data extends filter { ...@@ -74,7 +74,7 @@ class data extends filter {
74 } 74 }
75 ] 75 ]
76 } 76 }
77 sqrCol() { 77 sqrCol () {
78 return [ 78 return [
79 { 79 {
80 width: "60", 80 width: "60",
...@@ -94,7 +94,7 @@ class data extends filter { ...@@ -94,7 +94,7 @@ class data extends filter {
94 <i 94 <i
95 class="el-icon-minus pointer" 95 class="el-icon-minus pointer"
96 onClick={() => { 96 onClick={() => {
97 vm.remove(scope.$index, scope.row,"sqr"); 97 vm.remove(scope.$index, scope.row, "sqr");
98 }} 98 }}
99 ></i> 99 ></i>
100 ); 100 );
...@@ -142,6 +142,7 @@ class data extends filter { ...@@ -142,6 +142,7 @@ class data extends filter {
142 return ( 142 return (
143 <el-select 143 <el-select
144 class="width100" 144 class="width100"
145 clearable
145 value={scope.row[scope.column.property]} 146 value={scope.row[scope.column.property]}
146 onChange={(val) => { 147 onChange={(val) => {
147 scope.row[scope.column.property] = val; 148 scope.row[scope.column.property] = val;
...@@ -211,7 +212,7 @@ class data extends filter { ...@@ -211,7 +212,7 @@ class data extends filter {
211 }, 212 },
212 ] 213 ]
213 } 214 }
214 qlrCol() { 215 qlrCol () {
215 return [ 216 return [
216 { 217 {
217 width: "60", 218 width: "60",
...@@ -231,7 +232,7 @@ class data extends filter { ...@@ -231,7 +232,7 @@ class data extends filter {
231 <i 232 <i
232 class="el-icon-minus pointer" 233 class="el-icon-minus pointer"
233 onClick={() => { 234 onClick={() => {
234 vm.remove(scope.$index, scope.row,"qlr"); 235 vm.remove(scope.$index, scope.row, "qlr");
235 }} 236 }}
236 ></i> 237 ></i>
237 ); 238 );
......
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
3 作者:calliope 3 作者:calliope
4 --> 4 -->
5 <template> 5 <template>
6 <lb-table border :column="tableData.columns" :data="tableData.data" :maxHeight="200" heightNumSetting 6 <lb-table :column="tableData.columns" :data="tableData.data" :maxHeight="200" heightNumSetting :pagination="false">
7 :pagination="false">
8 </lb-table> 7 </lb-table>
9 </template> 8 </template>
10 <script> 9 <script>
...@@ -13,7 +12,7 @@ export default { ...@@ -13,7 +12,7 @@ export default {
13 props: { 12 props: {
14 dataList: { type: Array, default: () => [{}] }, 13 dataList: { type: Array, default: () => [{}] },
15 }, 14 },
16 created() { 15 created () {
17 if (this.dataList.length == 0) { 16 if (this.dataList.length == 0) {
18 this.add(); 17 this.add();
19 } 18 }
...@@ -21,7 +20,7 @@ export default { ...@@ -21,7 +20,7 @@ export default {
21 computed: { 20 computed: {
22 ...mapGetters(["dictData"]), 21 ...mapGetters(["dictData"]),
23 }, 22 },
24 data() { 23 data () {
25 return { 24 return {
26 tableData: { 25 tableData: {
27 columns: [ 26 columns: [
...@@ -184,7 +183,7 @@ export default { ...@@ -184,7 +183,7 @@ export default {
184 // }, 183 // },
185 }, 184 },
186 methods: { 185 methods: {
187 add() { 186 add () {
188 this.tableData.data.push({ 187 this.tableData.data.push({
189 sqrxm: "", 188 sqrxm: "",
190 sqrzjlxbm: "", 189 sqrzjlxbm: "",
...@@ -193,10 +192,10 @@ export default { ...@@ -193,10 +192,10 @@ export default {
193 inputErr: false, 192 inputErr: false,
194 }); 193 });
195 }, 194 },
196 remove(index, row) { 195 remove (index, row) {
197 this.tableData.data.splice(index, 1); 196 this.tableData.data.splice(index, 1);
198 }, 197 },
199 teltest(row) { 198 teltest (row) {
200 const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/; 199 const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
201 if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) { 200 if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
202 row.inputErr = true; 201 row.inputErr = true;
......