Blame view

src/views/ywbl/slsqxx/ygdj/slxx300.vue 11.1 KB
1 2 3
<template>
  <!-- 受理信息 -->
  <div class="slxx">
4 5
    <el-form :model="ruleForm" :rules="rules" class="loadingtext" ref="ruleForm" :label-position="flag ? 'top' : ''"
      :inline="flag" label-width="120px">
6
      <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
7 8 9 10
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
11
        <el-row :gutter="10" v-if="ruleForm.slsq">
12
          <el-col :span="8">
13
            <el-form-item label="业务号:">
14
              <el-input disabled v-model="ruleForm.slsq.ywh"></el-input>
15 16 17
            </el-form-item>
          </el-col>
          <el-col :span="8">
18
            <el-form-item label="受理人员:">
19
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
20 21 22
            </el-form-item>
          </el-col>
          <el-col :span="8">
23
            <el-form-item label="受理时间:">
24
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
25 26 27
            </el-form-item>
          </el-col>
        </el-row>
28
        <el-row :gutter="10" v-if="ruleForm.slsq">
29
          <el-col :span="8">
30
            <el-form-item label="权利类型:">
31
              <el-input disabled v-model="ruleForm.slsq.qllxmc"></el-input>
32 33 34
            </el-form-item>
          </el-col>
          <el-col :span="8">
35
            <el-form-item label="登记类型:">
36
              <el-input disabled v-model="ruleForm.slsq.djlxmc"></el-input>
37 38 39
            </el-form-item>
          </el-col>
          <el-col :span="8">
40
            <el-form-item label="登记情形:">
41
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
42 43 44
            </el-form-item>
          </el-col>
        </el-row>
45
        <div
xiaomiao committed
46
          class="slxx_title title-block flex"
47
          style="justify-content: space-between">
xiaomiao committed
48 49
          不动产单元情况
          <el-button @click="compare">变化情况对比+</el-button>
50
        </div>
51
        <el-row :gutter="10" v-if="ruleForm.qlxx">
52
          <el-col :span="8">
53
            <el-form-item label="不动产单元号:">
54 55 56 57
              <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="16">
58
            <el-form-item label="坐落:">
59
              <el-input disabled v-model="ruleForm.sldy.zl"></el-input>
60 61 62 63 64
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
65 66
            <el-form-item label="预告登记种类:">
              <el-input disabled v-model="ruleForm.ygdj.ygdjzlmc"></el-input>
67 68 69
            </el-form-item>
          </el-col>
          <el-col :span="8">
70 71
            <el-form-item label="规划用途:">
              <el-input disabled v-model="ruleForm.ygdj.ytmc"></el-input>
72 73 74
            </el-form-item>
          </el-col>
          <el-col :span="8">
75 76
            <el-form-item label="房屋性质:">
              <el-input disabled v-model="ruleForm.ygdj.fwxzmc"></el-input>
77 78 79
            </el-form-item>
          </el-col>
        </el-row>
80
        <el-row :gutter="10" v-if="ruleForm.qlxx">
81
          <el-col :span="8">
82 83
            <el-form-item label="房屋结构:">
              <el-input disabled v-model="ruleForm.ygdj.fwjgmc"></el-input>
84 85
            </el-form-item>
          </el-col>
86
          <el-col :span="8">
87 88
            <el-form-item label="建筑面积:">
              <el-input disabled v-model="ruleForm.ygdj.jzmj"></el-input>
89 90 91
            </el-form-item>
          </el-col>
          <el-col :span="8">
92 93
            <el-form-item label="取得价格:">
              <el-input disabled v-model="ruleForm.ygdj.qdjg"></el-input>
94 95 96
            </el-form-item>
          </el-col>
        </el-row>
97
        <el-row :gutter="10">
98
          <el-col :span="8">
99
            <el-form-item label="所在层:">
100 101 102 103
              <el-input disabled v-model="ruleForm.ygdj.szc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
104
            <el-form-item label="总层数:">
105 106
              <el-input disabled v-model="ruleForm.ygdj.zcs"></el-input>
            </el-form-item>
107 108
          </el-col>
        </el-row>
109 110 111 112 113
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
114
          <el-col :span="12" v-if="ruleForm.qlxx">
115
            <el-form-item label="共有方式:">
xiaomiao committed
116
              <el-radio-group :disabled="!ableOperation" v-model="ruleForm.sldy.gyfs">
117 118 119 120 121 122 123
                <el-radio label="0">单独所有</el-radio>
                <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>
124 125 126 127 128 129 130 131 132 133 134 135
          <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
            <el-form-item label="是否分别持证:">
              <el-radio-group
                v-model="ruleForm.sldy.sqfbcz"
                :disabled="!ableOperation">
                <el-radio :label="1"></el-radio>
                <el-radio :label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col
            :span="6"
136
            v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
137 138 139 140 141 142 143 144 145 146 147 148 149 150
            <el-form-item label="持证人:">
              <el-select
                v-model="ruleForm.czr"
                placeholder="持证人"
                :disabled="!ableOperation">
                <el-option
                  v-for="item in czrOptions"
                  :key="item.zjh"
                  :label="item.sqrmc"
                  :value="item.zjh">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
151
        </el-row>
152
        <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation"
tianhaohao@pashanhoo.com committed
153
          :gyfs="ruleForm.sldy.gyfs" />
154 155 156 157
        <div class="slxx_title title-block">
          义务人信息
          <div class="triangle"></div>
        </div>
158
        <qlrCommonTable @upDateQlrxxList="upDateYwrxxList" :tableData="ruleForm.ywrList" :disabled="!ableOperation"
tianhaohao@pashanhoo.com committed
159
          :gyfs="ruleForm.sldy.gyfs" />
160 161 162 163 164 165
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
166
            <el-form-item label="登记原因:" prop="djyy">
xiaomiao committed
167
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
168
                v-model="ruleForm.ygdj.djyy">
169 170 171 172 173
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
xiaomiao committed
174
      <el-row class="btn" v-if="ableOperation">
175
        <el-form-item>
176 177 178 179 180 181 182
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
183
  import ywmix from "@/views/ywbl/mixin/index"
184 185 186 187
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
  import { Init, saveData } from "@/api/workflow/ygdjFlow.js";
  import { mapGetters } from "vuex";
  export default {
188
    mixins: [ywmix],
189
    mounted () {
190
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
191 192 193 194 195
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
196
      formdata.append("isEdit", this.ableOperation);
197 198 199 200
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.$endLoading();
          this.ruleForm = res.result;
201 202 203 204 205
          this.ruleForm.qlrList.forEach((item, index) => {
            if (item.sfczr == 1) {
              this.ruleForm.czr = item.zjh
            }
          })
206 207
        }
      });
208
    },
209 210 211
    components: { qlrCommonTable },
    computed: {
      ...mapGetters(["dictData", "flag"]),
212
    },
213 214
    data () {
      return {
215 216
        //表单是否可操作
        ableOperation: true,
217 218 219 220 221 222 223 224
        disabled: true,
        tdytOption: [],
        czrOptions: [],
        ruleForm: {},
        //传递参数
        propsParam: this.$attrs,
        rules: {},
      };
225
    },
226
    methods: {
yuanbo committed
227 228 229 230
      /**
       * @description: onClick
       * @author: renchao
       */
231 232 233 234 235 236 237
      onClick () {
        this.$popup("房屋信息比对", "ywbl/ygdj/slxxCompareDetai",
          {
            formData: {
              bsmSldy: this.propsParam.bsmSldy,
              qllx: this.propsParam.qllx
            }
238
          });
239 240
      },
      // 更新权利人信息
yuanbo committed
241 242 243 244 245
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
246 247 248 249
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val);
      },
      // 更新权利人信息
yuanbo committed
250 251 252 253 254
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
255 256 257 258
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },

yuanbo committed
259 260 261 262
      /**
       * @description: onSubmit
       * @author: renchao
       */
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
      onSubmit () {
        saveData(this.ruleForm).then((res) => {
          if (res.code === 200) {
            this.$message({
              showClose: true,
              message: "保存成功!",
              type: "success",
            });
            this.$store.dispatch('user/refreshPage', true);
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: "error",
            });
          }
        });
      },
281 282 283 284 285 286
      /**
 * @description: compare
 * @author: renchao
 */
      compare () {
        this.$popupDialog(
287
          this.ruleForm.qlxx.qllxmc,
288 289 290 291 292 293 294 295 296
          "registerBook/comparison",
          {
            bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
            dqqllx: 'YGDJ',
          },
          "80%",
          true
        );
      },
297
    },
298
  };
299 300
</script>
<style scoped lang='scss'>
301
  @import "~@/styles/public.scss";
302

303 304 305 306 307
  /deep/.el-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
  }
308

309 310 311
  /deep/.el-form-item__label {
    padding: 0;
  }
312

313 314 315
  /deep/.el-radio {
    margin-right: 10px;
  }
316

317 318 319
  /deep/.el-select {
    width: 100%;
  }
320

321 322 323
  /deep/.el-form-item {
    margin-bottom: 8px;
  }
324

325 326 327
  .marginBot0 {
    margin-bottom: 0 !important;
  }
328

329 330 331
  .slxx {
    box-sizing: border-box;
  }
332

333 334 335 336 337 338 339 340
  .slxx_con {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    padding-right: 3px;
    overflow-x: hidden;
  }
341

342 343 344
  .submit_btn {
    height: 50px;
  }
345

346 347 348 349 350 351 352 353 354 355
  .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;
  }
356

357 358 359 360 361 362 363
  .btn {
    text-align: center;
    padding-top: 10px;
    height: 36px;
    background-color: #ffffff;
    padding: 5px 0;
  }
364

365 366 367 368
  .textArea {
    /deep/.el-textarea__inner {
      min-height: 90px !important;
    }
369 370
  }

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