Blame view

src/views/ywbl/slsqxx/ygdj/slxx300.vue 9.84 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>
xiaomiao committed
45 46 47 48 49 50
         <div
          class="slxx_title title-block flex"
          style="justify-content: space-between"
        >
          不动产单元情况
          <el-button @click="compare">变化情况对比+</el-button>
51
        </div>
52
        <el-row :gutter="10" v-if="ruleForm.qlxx">
53
          <el-col :span="8">
54
            <el-form-item label="不动产单元号:">
55 56 57 58
              <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="16">
59
            <el-form-item label="坐落:">
60 61 62 63 64 65
              <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
66 67
            <el-form-item label="预告登记种类:">
              <el-input disabled v-model="ruleForm.ygdj.ygdjzlmc"></el-input>
68 69 70
            </el-form-item>
          </el-col>
          <el-col :span="8">
71 72
            <el-form-item label="规划用途:">
              <el-input disabled v-model="ruleForm.ygdj.ytmc"></el-input>
73 74 75
            </el-form-item>
          </el-col>
          <el-col :span="8">
76 77
            <el-form-item label="房屋性质:">
              <el-input disabled v-model="ruleForm.ygdj.fwxzmc"></el-input>
78 79 80
            </el-form-item>
          </el-col>
        </el-row>
81
        <el-row :gutter="10" v-if="ruleForm.qlxx">
82
          <el-col :span="8">
83 84
            <el-form-item label="房屋结构:">
              <el-input disabled v-model="ruleForm.ygdj.fwjgmc"></el-input>
85 86
            </el-form-item>
          </el-col>
87
          <el-col :span="8">
88 89
            <el-form-item label="建筑面积:">
              <el-input disabled v-model="ruleForm.ygdj.jzmj"></el-input>
90 91 92
            </el-form-item>
          </el-col>
          <el-col :span="8">
93 94
            <el-form-item label="取得价格:">
              <el-input disabled v-model="ruleForm.ygdj.qdjg"></el-input>
95 96 97
            </el-form-item>
          </el-col>
        </el-row>
98
        <el-row :gutter="10">
99
          <el-col :span="8">
100
            <el-form-item label="所在层:">
101 102 103 104
              <el-input disabled v-model="ruleForm.ygdj.szc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
105
            <el-form-item label="总层数:">
106 107
              <el-input disabled v-model="ruleForm.ygdj.zcs"></el-input>
            </el-form-item>
108 109
          </el-col>
        </el-row>
110 111 112 113 114 115
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="14" v-if="ruleForm.qlxx">
116
            <el-form-item label="共有方式:">
xiaomiao committed
117
              <el-radio-group :disabled="!ableOperation" v-model="ruleForm.sldy.gyfs">
118 119 120 121 122 123 124 125
                <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>
        </el-row>
126
        <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation"
tianhaohao@pashanhoo.com committed
127
          :gyfs="ruleForm.sldy.gyfs" />
128 129 130 131
        <div class="slxx_title title-block">
          义务人信息
          <div class="triangle"></div>
        </div>
132
        <qlrCommonTable @upDateQlrxxList="upDateYwrxxList" :tableData="ruleForm.ywrList" :disabled="!ableOperation"
tianhaohao@pashanhoo.com committed
133
          :gyfs="ruleForm.sldy.gyfs" />
134 135 136 137 138 139
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
140
            <el-form-item label="登记原因:" prop="djyy">
xiaomiao committed
141
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
142
                v-model="ruleForm.ygdj.djyy">
143 144 145 146 147
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
xiaomiao committed
148
      <el-row class="btn" v-if="ableOperation">
149
        <el-form-item>
150 151 152 153 154 155 156
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
157 158 159 160 161
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
  import { Init, saveData } from "@/api/workflow/ygdjFlow.js";
  import { mapGetters } from "vuex";
  export default {
    mounted () {
162
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
163 164 165 166 167
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
168
      formdata.append("isEdit", this.ableOperation);
169 170 171 172 173 174
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.$endLoading();
          this.ruleForm = res.result;
        }
      });
175
    },
176 177 178
    components: { qlrCommonTable },
    computed: {
      ...mapGetters(["dictData", "flag"]),
179
    },
180 181
    data () {
      return {
182 183
        //表单是否可操作
        ableOperation: true,
184 185 186 187 188 189 190 191
        disabled: true,
        tdytOption: [],
        czrOptions: [],
        ruleForm: {},
        //传递参数
        propsParam: this.$attrs,
        rules: {},
      };
192
    },
193
    methods: {
yuanbo committed
194 195 196 197
      /**
       * @description: onClick
       * @author: renchao
       */
198 199 200 201 202 203 204
      onClick () {
        this.$popup("房屋信息比对", "ywbl/ygdj/slxxCompareDetai",
          {
            formData: {
              bsmSldy: this.propsParam.bsmSldy,
              qllx: this.propsParam.qllx
            }
205
          });
206 207
      },
      // 更新权利人信息
yuanbo committed
208 209 210 211 212
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
213 214 215 216
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val);
      },
      // 更新权利人信息
yuanbo committed
217 218 219 220 221
      /**
       * @description: 更新权利人信息
       * @param {*} val
       * @author: renchao
       */
222 223 224 225
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },

yuanbo committed
226 227 228 229
      /**
       * @description: onSubmit
       * @author: renchao
       */
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
      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",
            });
          }
        });
      },
xiaomiao committed
248 249 250 251 252 253
          /**
     * @description: compare
     * @author: renchao
     */
     compare() {
      this.$popupDialog(
254
          this.ruleForm.qlxx.qllxmc,
xiaomiao committed
255 256 257 258 259 260 261 262
        "registerBook/comparison",
        { bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
         dqqllx: 'YGDJ',
        },
        "80%",
        true
      );
    },
263
    },
264
  };
265 266
</script>
<style scoped lang='scss'>
267
  @import "~@/styles/public.scss";
268

269 270 271 272 273
  /deep/.el-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
  }
274

275 276 277
  /deep/.el-form-item__label {
    padding: 0;
  }
278

279 280 281
  /deep/.el-radio {
    margin-right: 10px;
  }
282

283 284 285
  /deep/.el-select {
    width: 100%;
  }
286

287 288 289
  /deep/.el-form-item {
    margin-bottom: 8px;
  }
290

291 292 293
  .marginBot0 {
    margin-bottom: 0 !important;
  }
294

295 296 297
  .slxx {
    box-sizing: border-box;
  }
298

299 300 301 302 303 304 305 306
  .slxx_con {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    padding-right: 3px;
    overflow-x: hidden;
  }
307

308 309 310
  .submit_btn {
    height: 50px;
  }
311

312 313 314 315 316 317 318 319 320 321
  .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;
  }
322

323 324 325 326 327 328 329
  .btn {
    text-align: center;
    padding-top: 10px;
    height: 36px;
    background-color: #ffffff;
    padding: 5px 0;
  }
330

331 332 333 334
  .textArea {
    /deep/.el-textarea__inner {
      min-height: 90px !important;
    }
335 336
  }

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