Blame view

src/views/zsgl/components/viewDialog.vue 4.83 KB
任超 committed
1
<template>
任超 committed
2
  <dialogBox title="证书使用情况" @closeDialog="closeDialog" @submitForm="submitForm" v-model="myValue" :isButton="false">
任超 committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
    <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
      <div class="title-name">
        入库情况
      </div>
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="入库编号">
            <el-input v-model="ruleForm.rkbh" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="入库时间">
            <el-date-picker v-model="ruleForm.rksj" disabled type="datetime">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="入库人员">
            <el-input v-model="ruleForm.rkry" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="登记机构">
            <el-input v-model="ruleForm.djjg" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="备注">
            <el-input v-model="ruleForm.bz" type="textarea" :rows="2" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <div class="title-name">
        分发情况
      </div>
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="分发编号">
            <el-input v-model="ruleForm.ffbh" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="领取时间">
            <el-date-picker v-model="ruleForm.lqsj" disabled type="datetime">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="入库人员">
            <el-input v-model="ruleForm.rkry" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="备注">
            <el-input v-model="ruleForm.bz" type="textarea" :rows="2" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <div class="title-name">
        证书信息
      </div>
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="不动产权证号">
            <el-input v-model="ruleForm.bdcqzh" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="业务号">
            <el-input v-model="ruleForm.ywh" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="不动产单元号">
            <el-input v-model="ruleForm.bdcdyh" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="8">
          <el-form-item label="证书类型">
蔡俊立 committed
90
            <el-input v-model="ruleForm.zslxmc"  disabled></el-input>
任超 committed
91 92 93 94 95 96 97 98 99
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="印刷序列号">
            <el-input v-model="ruleForm.ysxlh" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="是否作废">
蔡俊立 committed
100
            <el-input v-model="ruleForm.sfzfmc" disabled></el-input>
任超 committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="作废原因">
            <el-input v-model="ruleForm.zfyy" type="textarea" :rows="2" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </dialogBox>
</template>

<script>
蔡俊立 committed
116
import { getZssyqkInfo} from "@/api/zsgl.js"
任超 committed
117 118 119 120 121 122 123
export default {
  props: {
    value: { type: Boolean, default: false },
  },
  data () {
    return {
      myValue: this.value,
蔡俊立 committed
124
      ruleForm: {}
任超 committed
125 126
    }
  },
任超 committed
127 128 129 130 131
  watch: {
    value (val) {
      this.myValue = val
    },
  },
任超 committed
132
  methods: {
蔡俊立 committed
133 134 135 136
    getDetail (bsmZswj) {
      getZssyqkInfo({"bsmZswj":bsmZswj}).then(res => {
        if(res.code == 200){
          this.ruleForm = res.result
蔡俊立 committed
137 138 139 140 141 142
          if(res.result.zslx){
            this.ruleForm.zslxmc = res.result.zslx == 'zs' ? '不动产权证书' : '不动产登记证明';
          }
          if(res.result.sfzf){
            this.ruleForm.sfzfmc = res.result.sfzf == 0 ? '否' : '是'
          }
蔡俊立 committed
143 144
        }
      })
任超 committed
145 146 147
    },
    submitForm () {
    },
148 149
    closeDialog () {
      this.$emit('input', false)
蔡俊立 committed
150
      this.ruleForm = {}
151
    }
任超 committed
152 153
  }
}
任超 committed
154 155 156 157 158 159 160 161 162 163
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";

.title-name {
  line-height: 36px;
  border-bottom: 1px solid $borderColor;
  margin-bottom: 10px;
}
</style>