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
...@@ -137,40 +142,39 @@ export default { ...@@ -137,40 +142,39 @@ export default {
137 this.$endLoading(); 142 this.$endLoading();
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 }
144
145 var index = this.tableData.findIndex(
146 (item) => item.jddm === this.$parent.dqhj
147 );
148 if (index == -1) {
149 switch (this.$parent.dqhj) {
150 case "cs":
151 this.tableData.push({ jdmc: "初审", jddm: "cs", sxh: 1 });
152 break;
153 case "fs":
154 this.tableData.push({ jdmc: "复审", jddm: "fs", sxh: 2 });
155 break;
156 case "hd":
157 this.tableData.push({ jdmc: "核定", jddm: "hd", sxh: 3 });
158 break;
159 } 148 }
160 } 149
161 this.tableData.forEach((item) => { 150 var index = this.tableData.findIndex(
162 item.show = true; 151 (item) => item.jddm === this.$parent.dqhj
163 if (this.$parent.dqhj == item.jddm) { 152 );
164 item["stepid"] = this.$route.query.bestepid; 153 if (index == -1) {
165 item.shjssj = getNewDatesh(); 154 switch (this.$parent.dqhj) {
166 item.shkssj = getNewDatesh(); 155 case "cs":
167 item["shryxm"] = this.userInfo.name; 156 this.tableData.push({ jdmc: "初审", jddm: "cs", sxh: 1 });
168 item["userid"] = this.userInfo.id; 157 break;
169 item.show = false; 158 case "fs":
159 this.tableData.push({ jdmc: "复审", jddm: "fs", sxh: 2 });
160 break;
161 case "hd":
162 this.tableData.push({ jdmc: "核定", jddm: "hd", sxh: 3 });
163 break;
164 }
170 } 165 }
166 this.tableData.forEach((item) => {
167 item.show = true;
168 if (this.$parent.dqhj == item.jddm) {
169 item["stepid"] = this.$route.query.bestepid;
170 item.shjssj = getNewDatesh();
171 item.shkssj = getNewDatesh();
172 item["shryxm"] = this.userInfo.name;
173 item["userid"] = this.userInfo.id;
174 item.show = false;
175 }
176 });
171 }); 177 });
172 })
173
174 } 178 }
175 }); 179 });
176 }, 180 },
...@@ -185,23 +189,26 @@ export default { ...@@ -185,23 +189,26 @@ export default {
185 * @author: renchao 189 * @author: renchao
186 */ 190 */
187 onSubmit() { 191 onSubmit() {
188 this.shows=true 192 this.$refs.ruleForm.validate((valid) => {
189 this.tableData.forEach((item, index) => { 193 if (valid) {
190 item["bsmBusiness"] = this.propsParam.bsmBusiness; 194 this.shows = true;
191 item["czjg"] = "1"; 195 this.tableData.forEach((item, index) => {
192 }); 196 item["bsmBusiness"] = this.propsParam.bsmBusiness;
193 saveSpyjBySlsq(this.tableData).then((res) => { 197 item["czjg"] = "1";
194 if (res.code === 200) { 198 });
195 this.$message.success("保存成功"); 199 saveSpyjBySlsq(this.tableData).then((res) => {
196 this.refresh += 1; 200 if (res.code === 200) {
197 this.getShList(); 201 this.$message.success("保存成功");
202 this.refresh += 1;
203 this.getShList();
204 } else {
205 this.$message.error(res.message);
206 }
207 });
198 } else { 208 } else {
199 this.$message.error(res.message); 209 return false;
200 } 210 }
201 }); 211 });
202 // } else {
203 // return false;
204 // }
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 } 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 : "",
233 }
234 })
235 },
216 } 236 }
217 } 237 }
218 </script> 238 </script>
......
...@@ -92,7 +92,7 @@ class data extends filter { ...@@ -92,7 +92,7 @@ class data extends filter {
92 { 92 {
93 prop: "qlmjmc", 93 prop: "qlmjmc",
94 label: "面积", 94 label: "面积",
95 }, 95 },
96 { 96 {
97 prop: "zl", 97 prop: "zl",
98 label: "坐落", 98 label: "坐落",
...@@ -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 )
......