zsdy.vue 5.37 KB
<template>
  <dialogBox
    title="不动产权证书"
    width="60%"
    isMain
    v-model="myValue"
    @closeDialog="closeDialog"
    @submitForm="handleSubmit"
  >
    <div>
      <div class="middle_padding">
        <el-form
          :model="ruleForm"
          :rules="rules"
          ref="ruleForm"
          label-width="120px"
        >
          <el-form-item label="印刷序列号:" prop="ysxlh">
            <el-select v-model="ruleForm.ysxlh" placeholder="请选择">
              <el-option
                v-for="item in ysxlh"
                :key="item.ysxlh"
                :label="item.ysxlh"
                :value="item.ysxlh"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-form>
      </div>
      <div
        class="aaaa"
        :style="{
          backgroundImage: 'url(' + require('@/image/bdcqz/bdcqzs2.jpg') + ')',
        }"
      >
        <div>
          <span>{{ bdcqz.bdcqzh }}</span>
        </div>
        <div class="zsyl-box">
          <div class="zsyl-left">
            <div class="qlr">
              {{ bdcqz.qlr }}
            </div>
            <div class="gyqk">
              {{ bdcqz.gyqk }}
            </div>
            <div class="zl">
              {{ bdcqz.zl }}
            </div>
            <div class="bdcdyh">
              {{ bdcqz.bdcdyh }}
            </div>
            <div class="qllx">
              {{ bdcqz.qllx }}
            </div>
            <div class="qlxz">
              {{ bdcqz.qlxz }}
            </div>
            <div class="yt">
              {{ bdcqz.yt }}
            </div>
            <div class="mj">
              {{ bdcqz.mj }}
            </div>
            <div class="syqx">
              {{ bdcqz.syqx }}
            </div>
            <div class="qt">
              {{ bdcqz.qt }}
            </div>
          </div>
          <div class="zsyl-right">
           
           <div class="fj">{{ bdcqz.fj }}</div>
          </div>
        </div>
      </div>
    </div>
  </dialogBox>
</template>

<script>
import { datas } from "../javascript/zsyl.js";
import { readYsxlh, certificate, getSlsqBdcqzList } from "@/api/bdcqz.js";
export default {
  components: {},
  props: {
    value: { type: Boolean, default: false },
    bdcqz: { type: Object, default: {} },
  },
  data() {
    return {
      myValue: this.value,
      //印刷序列号集合
      ysxlh: [],
      //列名称对象
      columns: [],
      //选择的不动产权证文件
      bdcqz: this.bdcqz,
      ruleForm: {
        bsmBdcqz: "",
        szmc: "不动产权证书",
        bdcqzlx: "",
        szzh: "",
        ysxlh: "",
      },
      rules: {
        ysxlh: [
          { required: true, message: "请选择印刷序列号", trigger: "change" },
        ],
      },
    };
  },
  watch: {
    value(val) {
      this.myValue = val;
      this.columns = datas.columns();
    },
  },
  created() {},
  methods: {
    //获取印刷序列号列表
    ysxlhList() {
      readYsxlh({ zslx: this.bdcqz.bdcqzlx }).then((res) => {
        if (res.code === 200) {
          this.ysxlh = res.result;
        }
      });
    },
    closeDialog() {
      this.$emit("input", false);
    },
    handleSubmit() {
      this.$emit("input", false);
    },
    //获取证书内容
    getRowValue(code) {
      var value = this.bdcqz[code];
      return value;
    },
    //打印证书
    childFn() {
      this.ruleForm.bsmBdcqz = this.bdcqz.bsmBdcqz;
      this.ruleForm.bdcqzlx = this.bdcqz.bdcqzlx;
      this.ruleForm.szzh = this.bdcqz.bdcqzh;
      certificate(this.ruleForm).then((res) => {
        if (res.code === 200) {
          this.$message.success("打印成功");
        } else {
          this.$message.error(res.message);
        }
      });
    },
  },
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";

.aaaa {
  width: 1024px;
  height: 739px;  
  font-family: KaiTi;
   font-size: 16px;
}
.zsyl-box {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  height: 100%;
  $left: 131px;
  font-weight: 700;
  .zsyl-left {
    width: 540px;
    position: relative;
    .qlr {
      position: absolute;
      top: 40px;
      left: $left;
    }
    .gyqk {
      position: absolute;
      top: 80px;
      left: $left;
    }
    .zl {
      position: absolute;
      top: 120px;
      left: $left;
    }
    .bdcdyh {
      position: absolute;
      top: 160px;
      left: $left;
    }
    .qllx {
      position: absolute;
      top: 205px;
      left: $left;
    }
    .qlxz {
      position: absolute;
      top: 250px;
      left: $left;
    }
    .yt {
      position: absolute;
      top: 290px;
      left: $left;
    }
    .mj {
      position: absolute;
      top: 330px;
      left: $left;
    }
    .syqx {
      position: absolute;
      top: 370px;
      left: $left;
    }
    .qt {
      position: absolute;
      top: 420px;
      left: $left;
    }
  }
  .zsyl-right {
    flex: 1;
    text-align: left;
    position: relative;
    .fj {
      position: absolute;
      left:180px;
      top: 0;
    }
  }
  .zsyl-title {
    margin-bottom: 12px;
  }
  /deep/.el-table__row {
    background: #fafbe5 !important;
  }
}
.middle_padding {
  padding-bottom: 10px;
}
.zsyl-button {
  text-align: center;
  margin-top: 20px;
  .operation_button {
    width: 100px;
    border: 1px solid rgb(0, 121, 254);
  }
  .dy-button {
    color: white;
    background-color: rgb(0, 121, 254);
  }
}
</style>