2d7d3d57 by xiaomiao

--no commit message

1 parent 5a8b29e4
...@@ -189,12 +189,17 @@ export default { ...@@ -189,12 +189,17 @@ export default {
189 * @author: renchao 189 * @author: renchao
190 */ 190 */
191 onSubmit() { 191 onSubmit() {
192 this.shows = true; 192
193 this.tableData.forEach((item, index) => { 193 this.tableData.forEach((item, index) => {
194 item["bsmBusiness"] = this.propsParam.bsmBusiness; 194 item["bsmBusiness"] = this.propsParam.bsmBusiness;
195 item["czjg"] = "1"; 195 item["czjg"] = "1";
196 }); 196 });
197 saveSpyjBySlsq(this.tableData).then((res) => { 197 var index = this.tableData.findIndex(
198 (item) => item.shyj === null||item.shyj === ""
199 );
200 if(index==-1){
201 this.shows = true;
202 saveSpyjBySlsq(this.tableData).then((res) => {
198 if (res.code === 200) { 203 if (res.code === 200) {
199 this.$message.success("保存成功"); 204 this.$message.success("保存成功");
200 this.refresh += 1; 205 this.refresh += 1;
...@@ -203,6 +208,10 @@ export default { ...@@ -203,6 +208,10 @@ export default {
203 this.$message.error(res.message); 208 this.$message.error(res.message);
204 } 209 }
205 }); 210 });
211 }else{
212 this.$message.error("意见不能为空");
213 }
214
206 }, 215 },
207 //打开常用意见列表弹窗 216 //打开常用意见列表弹窗
208 /** 217 /**
......