002392ea by tianhaohao@pashanhoo.com

111

1 parent 16cd8026
...@@ -36,7 +36,7 @@ import { getLpb } from "@/api/lpcx.js"; ...@@ -36,7 +36,7 @@ import { getLpb } from "@/api/lpcx.js";
36 import chCpn from "./ch.vue"; 36 import chCpn from "./ch.vue";
37 import zdyCpn from "./zdys.vue"; 37 import zdyCpn from "./zdys.vue";
38 import ljzsCpn from "./ljzs.vue"; 38 import ljzsCpn from "./ljzs.vue";
39 import { startBusinessFlow, choiceBdcdy } from "@/api/workFlow.js"; 39 import { startBusinessFlow, choiceBdcdy,againAddSldy } from "@/api/workFlow.js";
40 import jump from "../../ywbl/ywsq/components/mixin/jump"; 40 import jump from "../../ywbl/ywsq/components/mixin/jump";
41 import store from '@/store/index.js' 41 import store from '@/store/index.js'
42 import { ywPopupCacel } from "@/utils/popup.js"; 42 import { ywPopupCacel } from "@/utils/popup.js";
...@@ -132,10 +132,45 @@ export default { ...@@ -132,10 +132,45 @@ export default {
132 * @author: renchao 132 * @author: renchao
133 */ 133 */
134 saveLpb(){ 134 saveLpb(){
135 if (this.bsmList.length == 0) {
136 this.$message.error("请至少选择一条数据");
137 return;
138 }
139 this.loading = true;
140 againAddSldy({
141 bsmSqyw: this.sqywInfo.bsmSqyw,
142 bsmSlsq: this.sqywInfo.bsmSlsq,
143 bdcdysz: this.bsmList,
144 sjlx: "houses"
145 }).then((res) => {
146 this.loading = false
147 if (res.code == 200) {
148 this.$message({
149 showClose: true,
150 message: '添加成功',
151 type: 'success'
152 })
153 if (!this.isJump) {
154 this.jump(res.result, this.sqywInfo.djywbm)
155 } else {
156 store.dispatch('user/refreshPage', true);
157 }
158 //this.close();
159 this.$popupCacel();
160 } else {
161 if (res.result && res.result.length > 0) {
162 this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{result: res.result} })
163 } else {
164 this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{message: res.message} })
165 }
166 }
167 }).catch(() => {
168 this.loading = false
169 })
135 // todo 调用保存接口 传入参数待定 170 // todo 调用保存接口 传入参数待定
136 console.log(this.bsmList,'this.bsmList'); 171 //console.log(this.bsmList,'this.bsmList');
137 // 保存成功后关闭弹框 172 // 保存成功后关闭弹框
138 this.$popupCacel() 173 //this.$popupCacel()
139 }, 174 },
140 // 改变户选中状态 175 // 改变户选中状态
141 /** 176 /**
......