e09d8f62 by 杨威

户合并完善

1 parent 2cecdedf
......@@ -307,6 +307,7 @@
import moveH from "./../../../../../components/moveH/moveH";
import { getLpb, insertUpDownC, deleteCByBsm } from "@api/lpb";
import { hhb } from "@api/h";
import { Message } from 'element-ui';
export default {
name: "",
components: { moveH },
......@@ -576,7 +577,6 @@ export default {
this.lpbChTop = e.pageY;
if (this.isHbfg) {
this.rightClickFlag = 'hb';
console.log(this.fghbChoosedList,'this.fghbChoosedList ');
if (this.fghbChoosedList.length>1) {
this.lpbChVisible = true;
//判断选中户可以执行的合并类型
......@@ -717,19 +717,25 @@ export default {
.then(() => {
//确定合并 调用合并接口 this.hbsmList为选中户bsm数组 TO DO
let params = {
"ljzbsm": "",
"newuserbsm": "",
"oldBsms": olbBsms,
"scyclx": "",
"zdybsm": "",
"zrzbsm": ""
"scyclx": this.$parent.scyclx,
"ljzbsm": this.fghbChoosedList[0].ljzbsm,
"zdybsm": this.fghbChoosedList[0].zdybsm,
"zrzbsm": this.fghbChoosedList[0].zrzbsm
}
console.log(params,'params');
// hhb(params).then(() => {
//合并成功后更新楼盘表
// })
// .catch(() => {});
// console.log(params,'params');
hhb(params).then((res) => {
if(res.code == 200){
Message.success('合并成功');
// 清除选中户
this.clearChoosedH();
this.fghbChoosedList = [];
// 更新楼盘表
this.getLpb(this.zrzbsm, this.$parent.scyclx);
}
})
.catch(() => {});
})
.catch(() => {});
}else{
......