Blame view

src/views/ywbl/cfdj/slxx.vue 8.67 KB
1 2
<template>
  <div class="slxx">
任超 committed
3 4
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flagTop" :inline="flag"
      label-width="120px">
5 6 7 8
      <div class="slxx_con">
        <div class="slxx_title">受理信息</div>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
9
            <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:" prop="ywh">
10 11 12 13
              <el-input disabled v-model="ruleForm.ywh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
14
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:" prop="slry">
15 16 17 18
              <el-input disabled v-model="ruleForm.slry"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
19
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理时间:" prop="slsj">
20 21 22 23 24 25
              <el-input disabled v-model="ruleForm.slsj"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
26 27 28
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:" prop="qllx">
              <el-select disabled v-model="ruleForm.qllx" filterable clearable placeholder="请选择权利类型">
                <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
29 30 31 32 33
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
34 35 36
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记类型:" prop="djlx">
              <el-select disabled v-model="ruleForm.djlx" filterable clearable placeholder="请选择登记类型">
                <el-option v-for="item in dictData['A21']" :key="item.dcode" :label="item.dname" :value="item.dcode">
37 38 39 40 41
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
42
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:" prop="djqx">
43 44 45 46 47 48 49
              <el-input disabled v-model="ruleForm.djqxmc"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title">查封不动产情况</div>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
50
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产权证号:" prop="bdcqzh">
51 52 53 54
              <el-input disabled v-model="ruleForm.bdcqzh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
55
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产单元号:" prop="bdcdyh">
56 57 58 59
              <el-input disabled v-model="ruleForm.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
60
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利人:" prop="qlrmc">
61 62 63 64 65 66
              <el-input disabled v-model="ruleForm.qlrmc"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
67
            <el-form-item :class="flag ? 'marginBot0' : ''" label="面积:" prop="mj">
68 69 70 71
              <el-input disabled v-model="ruleForm.mj"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
72
            <el-form-item :class="flag ? 'marginBot0' : ''" label="用途:" prop="ytmc">
73 74
              <el-input disabled v-model="ruleForm.ytmc"></el-input>
            </el-form-item>
任超 committed
75
          </el-col>
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
        </el-row>
        <div class="slxx_title">不动产权利人信息</div>
        <!-- <el-row :gutter="10">
          <el-col :span="14">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
              <el-radio-group v-model="ruleForm.gyfs">
                <el-radio label="1">单独所有</el-radio>
                <el-radio label="2">共同共有</el-radio>
                <el-radio label="3">按份所有</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item
              :class="flag ? 'marginBot0' : ''"
              label="是否分别持证:"
            >
              <el-radio-group v-model="ruleForm.sffbcz">
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
              <el-select v-model="ruleForm.czr" placeholder="持证人">
                <el-option
                  v-for="item in czrOptions"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row> -->
        <!-- <InformationTable :tableData="ruleForm.qlrxx" :gyfs="ruleForm.gyfs" /> -->
        <div class="slxx_title">登记原因</div>
        <el-row :gutter="10">
          <el-col>
任超 committed
117 118
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
              <el-input class="textArea" type="textarea" v-model="ruleForm.djyy"></el-input>
119 120 121 122 123 124 125 126 127 128 129 130 131
            </el-form-item>
          </el-col>
        </el-row>
      </div>
      <el-row>
        <el-form-item :class="flag ? 'marginBot0' : ''" class="btn">
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
任超 committed
132
import InformationTable from "@/views/workflow/components/InformationTable";
133 134 135
import { Init, fristReg } from "@/api/cfdjFlow.js";
import { mapGetters } from "vuex";
export default {
任超 committed
136
  data () {
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
    return {
      disabled: true,
      flagTop: this.flag ? "top" : "",
      tdytOption: [],
      qlsdfsOption: [],
      czrOptions: [],
      ruleForm: {
        ywh: "",
        slry: "",
        slsj: "",
        qllx: "",
        djlx: "",
        djqx: "",
        zddm: "",
        bdcdyh: "",
        qlxzmc: "",
        qlrxx: [],
        zdmj: "",
        zl: "",
        tdyt: "",
        qlsdfs: "",
        qdjg: "",
        tdsyqx: "",
        syqqzsj: "",
        fj: "",
        djyy: "",
        gyfs: "1",
        // 是否分别持证
        sffbcz: "",
        // 持证人
        czr: "",
      },
      rules: {},
任超 committed
170
      //传递参数
田浩浩 committed
171
      propsParam: {},
172 173
    };
  },
任超 committed
174
  created () {
田浩浩 committed
175
    // console.log(1111111111111111);
任超 committed
176
    this.propsParam = this.$attrs;
田浩浩 committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
    var formdata = new FormData();
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
    Init(formdata).then((res) => {
      if (res.code === 200 && res.result) {
        this.ruleForm = {
          ...res.result,
          ...res.result.qlxxdatas,
          ...res.result.djQlxxCfdjDo,
        };
      }
    });
  },
  watch: {

  },
  components: { InformationTable },
  props: {
    flag: {
      type: Boolean,
      default: false,
    },
    fetch: {
      type: Boolean,
      default: false,
    },
  },
  computed: {
    ...mapGetters(["dictData"]),
  },
任超 committed
206

207
  methods: {
任超 committed
208
    list (bsmSldy) {
209 210 211 212 213 214 215 216 217 218 219 220 221
      var formdata = new FormData();
      formdata.append("bsmSldy", bsmSldy);
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
        }
      });
    },
任超 committed
222
    onSubmit () {
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
      fristReg(this.ruleForm).then((res) => {
        if (res.code === 200 && res.result) {
          console.log(res);
          //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
        }
      });
    },
  },
};
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";

/deep/.el-form-item__label {
  padding: 0;
}

/deep/.el-radio {
  margin-right: 10px;
}

/deep/.el-select {
  width: 100%;
}

/deep/.el-form-item {
  margin-bottom: 8px;
}

.marginBot0 {
  margin-bottom: 0 !important;
}

.slxx {
  box-sizing: border-box;
}

.slxx_con {
  overflow-y: auto;
  overflow-x: hidden;
}

.submit_btn {
  height: 50px;
}

.slxx_title {
  border-bottom: 1px solid $borderColor;
  padding-left: 10px;
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 500;
  color: #4a4a4a;
}

.btn {
  text-align: center;
  padding-top: 5px;
}

.textArea {
  /deep/.el-textarea__inner {
    min-height: 90px !important;
  }
}

/deep/.el-form-item__label {
  padding-bottom: 0px;
}
</style>