984bb562 by 焦泽平

实预测转换提交

1 parent 144011e0
......@@ -53,4 +53,16 @@ export function getLpb (data) {
syclx:0,
},
})
}
/**
* 楼盘表 批量实预测转换
* zrzbsm 自然幢标识码 ,
* scyclx 实测预测类型 0预测,1实测
*/
export function batchScYcChange (data) {
return request({
url: 'fw/lpbbatch/batchScYcChange',
method: 'post',
data:data
})
}
\ No newline at end of file
......
......@@ -20,7 +20,7 @@
<el-col :span="16">
<div class="fr">
<el-button class="radioBtn" label="1" border @click="create">创建楼盘</el-button>
<el-button class="radioBtn" label="2" border>实预测转换</el-button>
<el-button class="radioBtn" label="2" border @click="plScYcChange">实预测转换</el-button>
<el-button class="radioBtn" label="3" border @click="plhVisible=true">批量户</el-button>
<el-button class="radioBtn" label="4" border @click="plcVisible=true">批量层</el-button>
<el-button class="radioBtn" label="5" border @click="plShVisible=true">批量室号</el-button>
......@@ -137,7 +137,8 @@ import addZdy from "./zdy/index";
import addCh from "./ch/index";
import hbj from "./hbj/index"
import lpbContent from "./lpbContent/index";
import { getLpbMenuTree } from "../../../../api/lpb";
import {getLpbMenuTree,batchScYcChange} from "../../../../api/lpb";
export default {
name: "",
......@@ -357,7 +358,19 @@ export default {
//调用楼盘表信息查询接口
getlpbData(){
this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm)
}
},
plScYcChange(){
let data={
zrzbsm:this.$store.state.zrzbsm,
scyclx:"0"
}
batchScYcChange(data).then((res)=>{
if(res.code===200){
this.$message.success("实预测转换成功")
}
})
},
},
computed: {
},
......