3dbb80e7 by xiaomiao

--no commit message

1 parent 610a6876
...@@ -11,11 +11,7 @@ ...@@ -11,11 +11,7 @@
11 </div> 11 </div>
12 12
13 <div v-for="(item, index) in tableData" :key="index"> 13 <div v-for="(item, index) in tableData" :key="index">
14 <el-form 14 <el-form :model="tableData[index]" label-width="120px" ref="ruleForm'" :rules="rules">
15 :model="tableData[index]"
16 label-width="120px"
17 ref="ruleFormRef'"
18 >
19 <div class="spyj_form"> 15 <div class="spyj_form">
20 <div class="item_left"> 16 <div class="item_left">
21 <div class="right">{{ item.jdmc }}意见</div> 17 <div class="right">{{ item.jdmc }}意见</div>
...@@ -23,7 +19,11 @@ ...@@ -23,7 +19,11 @@
23 <div class="item_right"> 19 <div class="item_right">
24 <el-row> 20 <el-row>
25 <el-col :span="24"> 21 <el-col :span="24">
26 <el-form-item label-width="0" class="opinion_item"> 22 <el-form-item
23 label-width="0"
24 prop="shyj"
25 class="opinion_item"
26 >
27 <el-input 27 <el-input
28 :disabled="!viewEdit || item.show" 28 :disabled="!viewEdit || item.show"
29 type="textarea" 29 type="textarea"
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
58 </el-form> 58 </el-form>
59 </div> 59 </div>
60 <div class="submit_button" v-if="viewEdit"> 60 <div class="submit_button" v-if="viewEdit">
61 <el-button type="primary" :disabled="shows" @click="onSubmit()">保存</el-button> 61 <el-button type="primary" :disabled="shows" @click="onSubmit()"
62 >保存</el-button
63 >
62 </div> 64 </div>
63 </div> 65 </div>
64 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> --> 66 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> -->
...@@ -87,7 +89,10 @@ export default { ...@@ -87,7 +89,10 @@ export default {
87 falg1: false, 89 falg1: false,
88 jdmc: "", 90 jdmc: "",
89 indexdqlc: 0, 91 indexdqlc: 0,
90 shows:false 92 shows: false,
93 rules: {
94 shyj: [{ required: true, message: "意见不能为空", trigger: "blur" }],
95 },
91 }; 96 };
92 }, 97 },
93 98
...@@ -138,8 +143,8 @@ export default { ...@@ -138,8 +143,8 @@ export default {
138 if (res.code === 200 && res.result) { 143 if (res.code === 200 && res.result) {
139 this.$nextTick(() => { 144 this.$nextTick(() => {
140 this.tableData = res.result; 145 this.tableData = res.result;
141 if(this.shows){ 146 if (this.shows) {
142 this.shows=false 147 this.shows = false;
143 } 148 }
144 149
145 var index = this.tableData.findIndex( 150 var index = this.tableData.findIndex(
...@@ -169,8 +174,7 @@ export default { ...@@ -169,8 +174,7 @@ export default {
169 item.show = false; 174 item.show = false;
170 } 175 }
171 }); 176 });
172 }) 177 });
173
174 } 178 }
175 }); 179 });
176 }, 180 },
...@@ -185,7 +189,9 @@ export default { ...@@ -185,7 +189,9 @@ export default {
185 * @author: renchao 189 * @author: renchao
186 */ 190 */
187 onSubmit() { 191 onSubmit() {
188 this.shows=true 192 this.$refs.ruleForm.validate((valid) => {
193 if (valid) {
194 this.shows = true;
189 this.tableData.forEach((item, index) => { 195 this.tableData.forEach((item, index) => {
190 item["bsmBusiness"] = this.propsParam.bsmBusiness; 196 item["bsmBusiness"] = this.propsParam.bsmBusiness;
191 item["czjg"] = "1"; 197 item["czjg"] = "1";
...@@ -199,9 +205,10 @@ export default { ...@@ -199,9 +205,10 @@ export default {
199 this.$message.error(res.message); 205 this.$message.error(res.message);
200 } 206 }
201 }); 207 });
202 // } else { 208 } else {
203 // return false; 209 return false;
204 // } 210 }
211 });
205 }, 212 },
206 //打开常用意见列表弹窗 213 //打开常用意见列表弹窗
207 /** 214 /**
......
...@@ -212,7 +212,27 @@ ...@@ -212,7 +212,27 @@
212 this.$popup("登记簿详情", "registerBook/djbFrame", { 212 this.$popup("登记簿详情", "registerBook/djbFrame", {
213 formData: param 213 formData: param
214 }) 214 })
215 },
216 /**
217 * @description: handleLpbClick
218 * @param {*} row
219 * @author: miaofang
220 */
221 handleLpbClick (item) {
222 console.log("item",item);
223 console.log("this.sqywInfo",this.sqywInfo);
224 this.$popup('楼盘表', 'lpb/index', {
225 width: '85%',
226 formData: {
227 bsm: item.bsm,
228 zrzbsm: item.bsm,
229 zdbsm: item.zdbsm,
230 bsmSqyw: this.sqywInfo.bsmSqyw,
231 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
232 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
215 } 233 }
234 })
235 },
216 } 236 }
217 } 237 }
218 </script> 238 </script>
......
...@@ -105,7 +105,7 @@ class data extends filter { ...@@ -105,7 +105,7 @@ class data extends filter {
105 render: (h, scope) => { 105 render: (h, scope) => {
106 return ( 106 return (
107 <div> 107 <div>
108 <el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button> 108 <el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表1</el-button>
109 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openBook(scope.row) }}>登记薄</el-button> 109 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openBook(scope.row) }}>登记薄</el-button>
110 </div> 110 </div>
111 ) 111 )
......