index.vue 7.34 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-09-14 17:19:26
-->
<template>
  <div class="slxx sdqxx">
    <el-form
      :model="ruleForm"
      ref="ruleForm"
      v-Loading="loading"
      :label-position="flag ? 'top' : ''"
      :inline="flag"
      label-width="130px">
      <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
        <div class="slxx_title title-block">
          申请信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="业务号:">
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="受理人员:">
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="受理时间:">
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="权利类型:" prop="qllx">
              <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登记类型:" prop="djlx">
              <el-input disabled v-model="ruleForm.sldy.djlxmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登记情形:" prop="djqx">
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="不动产单元号:">
              <el-input disabled v-model="ruleForm.sldy.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="原房产证号:">
              <el-input disabled v-model="ruleForm.sldy.ybdcqzsh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="坐落:">
              <el-input disabled v-model="ruleForm.sldy.zl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title title-block">
          电力过户信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="电表编号:">
              <el-input disabled v-model="dlxxForm.cons_no"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="行政区代码:">
              <el-input disabled v-model="dlxxForm.AREACODE"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="业务号:">
              <el-input disabled v-model="dlxxForm.YWH"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">          
          <el-col :span="8">
            <el-form-item label="原户主姓名:">
              <el-input disabled v-model="dlxxForm.MC_OLD"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="原户主身份证号码:">
              <el-input disabled v-model="dlxxForm.ZJHM_OLD"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="原户主联系电话:">
              <el-input disabled v-model="dlxxForm.LXDH_OLD"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">          
          <el-col :span="8">
            <el-form-item label="新户主姓名:">
              <el-input disabled v-model="dlxxForm.MC_NEW"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="新户主身份证号码:">
              <el-input disabled v-model="dlxxForm.ZJHM_NEW"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="新户主联系电话:">
              <el-input disabled v-model="dlxxForm.LXDH_NEW"></el-input>
            </el-form-item>
          </el-col>
        </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-col :span="8">
            <el-form-item label="房产证编号:">
              <el-input disabled v-model="dlxxForm.FCZBH"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="是否过户:">
              <el-switch disabled
                v-model="dlxxForm.SFGH"
                :active-value='1'
                active-text="是"
                :inactive-value="0"
                inactive-text="否">
              </el-switch>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="推送日期:">
              <el-input disabled v-model="dlxxForm.SENDTIME"></el-input>
            </el-form-item>
          </el-col>
        </el-row>    
        <div class="slxx_title title-block">
          自来水过户信息
          <div class="triangle"></div>
        </div> 
        <div class="slxx_title title-block">
          天然气过户信息
          <div class="triangle"></div>
        </div> 
        <div class="slxx_title title-block">
          热力供暖过户信息
          <div class="triangle"></div>
        </div> 
      </div>
     
    </el-form>
  </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();
    },
    data () {
      return {
        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);
            }
          }
        });
      },
      saveOrUpdateDlxx() {
        saveOrUpdateDlxx(this.ruleForm).then((res) => {
          if (res.code === 200) {
           this.$message.success("成功")
          }
        });
      },
      onSubmit () {
        this.saveOrUpdateDlxx()
      }
    }
  }
</script>
<style scoped lang="scss">
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
</style>