index.vue 5.51 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2024-03-20 14:22:37
-->
<template>
  <div class='sfxx slxx'>
    <el-form
      :model="ruleForm"
      ref="ruleForm"
      v-Loading="loading"
      :label-position="flag ? 'top' : ''"
      :inline="flag"
      label-width="120px">
      <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 v-model="ruleForm.slry" disabled></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="受理时间:">
              <el-input v-model="ruleForm.slsj" disabled></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="登记情形名称:">
              <el-input v-model="ruleForm.djqxmc" disabled></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item label="登记业务名称:">
              <el-input v-model="ruleForm.djywmc" disabled></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <div class="slxx_title title-block">
          计费明细
        </div>
        <el-table :data="tableDatajf.data" border :height="100">
          <el-table-column v-for="item in tableDatajf.columns" :key="item.index" :prop="item.prop" :label="item.label" align="center">
          </el-table-column>
        </el-table>

        <div class="slxx_title title-block">
          收费明细
          <el-button type="primary" @click="hanldeEdit" style="float:right;margin-top:-5px">修改</el-button>
        </div>
        <el-table :data="tableDatasf.data" border :height="100">
          <el-table-column v-for="item in tableDatasf.columns" :key="item.index" :prop="item.prop" :label="item.label" align="center">
          </el-table-column>
        </el-table>

        <div class="slxx_title title-block">
          票据
          <div class="triangle"></div>
        </div>
        <div style="height:250px">
          <img src="../../../../image/pj.jpg" alt="" style="height:100%">
        </div>
      </div>
    </el-form>
  </div>
</template>
<script>
  import { mapGetters } from "vuex";
  import { initSfxx } from "@/api/sfxx.js";
  export default {
    components: {},
    data () {
      return {
        loading: false,
        bsmBusiness: this.$route.query.bsmBusiness ? this.$route.query.bsmBusiness : window.currentSelect.bsmBusiness,
        ruleForm: {},
        tableDatasf: {
          columns: [
            {
              prop: "sfdw",
              label: "收费单位",
            },
            {
              prop: "sfry",
              label: "收费人员",
            },
            {
              prop: "sfkmmc",
              label: "收费科目名称",
            },
            {
              prop: "sjffr",
              label: "实际付费人",
            },
            {
              prop: "ssje",
              label: "实收金额",
            },
            {
              prop: "ysje",
              label: "应收金额",
            }
          ],
          data: [],
        },
        tableDatajf: {
          columns: [     
             {
              prop: "bdcdyh",
              label: "不动产单元号",
            },
            {
              prop: "zl",
              label: "坐落",
            },     
            {
              prop: "qlrmc",
              label: "权利人名称",
            },
            {
              prop: "ywrmc",
              label: "义务人名称",
            },  
            
            {
              prop: "qlxzmc",
              label: "性质",
            },
            {
              prop: "qlmjmc",
              label: "面积",
            },
            {
              prop: "qlytmc",
              label: "用途",
            },
            {
              prop: "jflxmc",
              label: "计费类型",
            },
            {
              prop: "ysje",
              label: "应收金额",
            },
            {
              prop: "jfjs",
              label: "计费基数",
            },
            {
              prop: "zkhysje",
              label: "折扣后应收金额",
            }
          ],
          data: [],
        }
      }
    },
    computed: {
      ...mapGetters(["workFresh", "flag", "pouopData"]),
    },
    watch: {
      workFresh: {
        handler (newVal, oldVal) {
          if (newVal) this.getList()
        }
      },
      pouopData: {
        handler (newValue, oldValue) {
          if (newValue.length != 0) {
            this.tableDatasf.data = newValue
          }
        },
        deep: true
      }
    },
    mounted () {
      this.getList()
    },
    methods: {
      getList () {
        initSfxx(this.bsmBusiness).then(res => {
          let { slsq, jfList, sfList } = res.result
          this.ruleForm = slsq
          this.tableDatajf.data = jfList
          this.tableDatasf.data = sfList
        })
      },
      hanldeEdit () {
        this.$popupDialog('编辑', 'workflow/main/sfxx/sfDetail', { bsmBusiness: this.bsmBusiness, dataList: _.cloneDeep(this.tableDatasf.data) }, '50%', true)
      }
    }
  }
</script>
<style scoped lang='scss'>
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
</style>