192baa40 by tianhaohao@pashanhoo.com

1111

1 parent 07a8d673
......@@ -77,21 +77,3 @@ export function deleteSfmx (bsmSf) {
}
})
}
export function getDlxxByBsmSldy (bsmSldy) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/getDlxxByBsmSldy',
method: 'get',
params: {
bsmSldy: bsmSldy
}
})
}
export function saveOrUpdateDlxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/saveOrUpdateDlxx',
method: 'post',
data
})
}
......
......@@ -11,7 +11,8 @@
v-Loading="loading"
:label-position="flag ? 'top' : ''"
:inline="flag"
label-width="130px">
label-width="130px"
>
<div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
<div class="slxx_title title-block">
申请信息
......@@ -70,6 +71,8 @@
</el-row>
<div class="slxx_title title-block">
电力过户信息
<el-button @click="showDialogDlxx">电力过户信息修改</el-button>
<div class="triangle"></div>
</div>
<el-row :gutter="10">
......@@ -89,7 +92,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="原户主姓名:">
<el-input disabled v-model="dlxxForm.MC_OLD"></el-input>
......@@ -106,7 +109,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="新户主姓名:">
<el-input disabled v-model="dlxxForm.MC_NEW"></el-input>
......@@ -122,15 +125,15 @@
<el-input disabled v-model="dlxxForm.LXDH_NEW"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
</el-row>
<el-row :gutter="10">
<el-col :span="24">
<el-form-item label="房屋坐落(地址):">
<el-input disabled v-model="dlxxForm.FWZL"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10">
</el-row>
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="房产证编号:">
<el-input disabled v-model="dlxxForm.FCZBH"></el-input>
......@@ -138,12 +141,14 @@
</el-col>
<el-col :span="8">
<el-form-item label="是否过户:">
<el-switch disabled
<el-switch
disabled
v-model="dlxxForm.SFGH"
:active-value='1'
:active-value="1"
active-text="是"
:inactive-value="0"
inactive-text="否">
inactive-text="否"
>
</el-switch>
</el-form-item>
</el-col>
......@@ -152,73 +157,73 @@
<el-input disabled v-model="dlxxForm.SENDTIME"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
<div class="slxx_title title-block">
自来水过户信息
<div class="triangle"></div>
</div>
</div>
<div class="slxx_title title-block">
天然气过户信息
<div class="triangle"></div>
</div>
</div>
<div class="slxx_title title-block">
热力供暖过户信息
<div class="triangle"></div>
</div>
</div>
</div>
</el-form>
<el-dialog :visible.sync="dialogDlxx" title="电力过户信息修改">
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="onSubmit" plain>保存</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import { getDlxxByBsmSldy, saveOrUpdateDlxx } from "@/api/sfxx.js";
import { getDetail } from "@/api/workflow/swhtxx.js";
export default {
computed: {
...mapGetters(["dictData", "flag"]),
},
mounted () {
// this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
this.getDlxxByBsmSldy();
import { mapGetters } from "vuex";
import { getDetail } from "@/api/workflow/swhtxx.js";
export default {
computed: {
...mapGetters(["dictData", "flag"]),
},
mounted() {
// this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
this.getDlxxByBsmSldy();
},
data() {
return {
dialogDlxx: false,
loading: false,
//表单是否可操作
viewEdit: false,
ruleForm: {},
dlxxForm: {},
};
},
methods: {
getDlxxByBsmSldy() {
getDetail(this.propsParam.bsmSldy).then((res) => {
if (res.code === 200) {
if (res.result != null) {
this.ruleForm = res.result;
this.dlxxForm = JSON.parse(res.result.wqht.dlnr);
}
}
});
},
data () {
return {
loading: false,
//表单是否可操作
viewEdit: false,
ruleForm: {
},
dlxxForm:{}
}
onSubmit() {
},
methods: {
getDlxxByBsmSldy() {
getDetail(this.propsParam.bsmSldy).then((res) => {
if (res.code === 200) {
if (res.result != null) {
this.ruleForm = res.result;
this.dlxxForm = JSON.parse(res.result.wqht.dlnr);
}
}
});
},
saveOrUpdateDlxx() {
saveOrUpdateDlxx(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message.success("成功")
}
});
},
onSubmit () {
this.saveOrUpdateDlxx()
}
showDialogDlxx() {
this.dialogDlxx = true;
}
}
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
</style>
......