Blame view

src/views/ywbl/fwsyq/slxx.vue 10.8 KB
任超 committed
1
<template>
任超 committed
2
  <!-- 受理信息 -->
jiaozeping@pashanhoo.com committed
3
  <div class="slxx">
任超 committed
4 5
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag"
      label-width="120px">
任超 committed
6
      <div class="slxx_con">
任超 committed
7 8 9 10
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
任超 committed
11 12
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
13
            <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:" prop="ywh">
任超 committed
14
              <el-input disabled v-model="ruleForm.ywh"></el-input>
任超 committed
15 16 17
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
18
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:" prop="slry">
任超 committed
19
              <el-input disabled v-model="ruleForm.slry"></el-input>
任超 committed
20 21 22
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
23
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理时间:" prop="slsj">
任超 committed
24
              <el-input disabled v-model="ruleForm.slsj"></el-input>
任超 committed
25 26 27 28 29
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
30 31 32
            <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">
任超 committed
33 34 35 36 37
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
38 39 40
            <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">
任超 committed
41 42 43 44 45
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
46
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:" prop="djqx">
任超 committed
47
              <el-input disabled v-model="ruleForm.djqxmc"></el-input>
任超 committed
48 49 50
            </el-form-item>
          </el-col>
        </el-row>
任超 committed
51 52 53 54
        <div class="slxx_title title-block">
          不动产单元情况
          <div class="triangle"></div>
        </div>
任超 committed
55 56
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
57
            <el-form-item :class="flag ? 'marginBot0' : ''" label="宗地代码:" prop="zddm">
58
              <el-input disabled v-model="ruleForm.bdcdyh"></el-input>
任超 committed
59 60 61
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
62
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产单元号:" prop="bdcdyh">
任超 committed
63
              <el-input disabled v-model="ruleForm.bdcdyh"></el-input>
任超 committed
64 65 66
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
67
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利性质:" prop="qlxzmc">
任超 committed
68
              <el-input disabled v-model="ruleForm.qlxzmc"></el-input>
任超 committed
69 70 71 72 73
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
74
            <el-form-item :class="flag ? 'marginBot0' : ''" label="自然幢号:" prop="zrzh">
75
              <el-input disabled v-model="ruleForm.zrzDetail.zrzh"></el-input>
任超 committed
76 77 78
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
79
            <el-form-item :class="flag ? 'marginBot0' : ''" label="户不动产单元号:" prop="hbdcdyh">
80
              <el-input disabled v-model="ruleForm.ghytmc"></el-input>
任超 committed
81 82 83
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
84 85 86
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记状态:" prop="djzt">
              <el-select disabled v-model="ruleForm.djzt" filterable clearable>
                <el-option v-for="item in djztList" :key="item.value" :label="item.label" :value="item.value">
任超 committed
87 88 89 90 91 92 93
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
94 95
            <el-form-item :class="flag ? 'marginBot0' : ''" label="图幅丘幢号:" prop="tfqzh">
              <el-input disabled v-model="ruleForm.tfqzh"></el-input>
任超 committed
96 97
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
98

任超 committed
99
          <el-col :span="16">
任超 committed
100
            <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:" prop="zl">
任超 committed
101
              <el-input disabled v-model="ruleForm.zl"></el-input>
任超 committed
102 103 104 105 106
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
107 108
            <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋用途:">
              <el-input disabled v-model="ruleForm.fwyt"></el-input>
任超 committed
109 110
            </el-form-item>
          </el-col>
任超 committed
111 112 113
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋性质:">
              <el-input disabled v-model="ruleForm.fwxz"></el-input>
任超 committed
114 115
            </el-form-item>
          </el-col>
任超 committed
116 117 118
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋结构:">
              <el-input disabled v-model="ruleForm.fwjg"></el-input>
任超 committed
119 120 121
            </el-form-item>
          </el-col>
        </el-row>
任超 committed
122 123 124 125
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
任超 committed
126
        <el-row :gutter="10">
任超 committed
127
          <el-col :span="14">
128
            <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
任超 committed
129
              <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.gyfs">
任超 committed
130 131 132
                <el-radio label="1">单独所有</el-radio>
                <el-radio label="2">共同共有</el-radio>
                <el-radio label="3">按份所有</el-radio>
任超 committed
133 134 135
              </el-radio-group>
            </el-form-item>
          </el-col>
136
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
任超 committed
137
            <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
任超 committed
138 139 140 141 142 143
              <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>
144 145
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
任超 committed
146
              <el-select v-model="ruleForm.czr" placeholder="持证人">
任超 committed
147
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
任超 committed
148 149 150
                </el-option>
              </el-select>
            </el-form-item>
任超 committed
151 152
          </el-col>
        </el-row>
任超 committed
153
        <InformationTable :tableData="ruleForm.qlrxx" :gyfs="ruleForm.gyfs" />
任超 committed
154 155 156 157
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
任超 committed
158 159
        <el-row :gutter="10">
          <el-col>
任超 committed
160
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
任超 committed
161 162
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" v-model="ruleForm.djyy">
              </el-input>
任超 committed
163 164 165 166
            </el-form-item>
          </el-col>
        </el-row>
      </div>
任超 committed
167
      <el-row class="btn" v-if="!$route.query.viewtype">
任超 committed
168
        <el-form-item :class="flag ? 'marginBot0' : ''">
任超 committed
169 170
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
任超 committed
171 172 173 174 175
      </el-row>
    </el-form>
  </div>
</template>
<script>
任超 committed
176
import InformationTable from "@/views/workflow/components/InformationTable";
177
import { Init } from "@/api/fwsyqFlow.js";
jiaozeping@pashanhoo.com committed
178
import { mapGetters } from "vuex";
任超 committed
179
export default {
任超 committed
180
  async created () {
181
    this.propsParam = this.$attrs;
182
    var formdata = new FormData();
183
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
184 185 186 187 188 189 190 191 192 193 194
    Init(formdata).then((res) => {
      if (res.code === 200 && res.result) {
        this.ruleForm = {
          ...res.result,
          ...res.result.zdjbxxdatas,
          ...res.result.qlxxdatas,
          ...res.result.jsydsyqdatas,
        };
      }
    });
  },
任超 committed
195
  components: { InformationTable },
liangyifan committed
196
  computed: {
任超 committed
197
    ...mapGetters(["dictData", "flag"]),
liangyifan committed
198
  },
任超 committed
199
  data () {
任超 committed
200
    return {
liangyifan committed
201
      disabled: true,
任超 committed
202
      tdytOption: [],
任超 committed
203
      czrOptions: [],
任超 committed
204
      ruleForm: {
jiaozeping@pashanhoo.com committed
205
        ywh: "",
任超 committed
206 207 208 209 210
        slry: "",
        slsj: "",
        qllx: "",
        djlx: "",
        djqx: "",
任超 committed
211
        // 宗地代码
任超 committed
212 213
        zddm: "",
        bdcdyh: "",
1  
jiaozeping@pashanhoo.com committed
214
        qlxzmc: "",
任超 committed
215
        qlrxx: [],
任超 committed
216 217 218 219 220 221 222 223 224 225 226 227 228
        // 自然幢号
        zrzh: "",
        // 户不动产单元号
        hbdcdyh: '',
        djzt: '',
        // 图幅丘幢号
        tfqzh: '',
        zl: '',
        // 房屋用途
        fwyt: '',
        fwxz: '',
        fwjg: '',
        // 权利人信息
任超 committed
229 230
        gyfs: "1",
        // 是否分别持证
231
        sffbcz: "",
任超 committed
232
        // 持证人
233
        czr: "",
任超 committed
234
        djyy: ''
任超 committed
235
      },
236 237
      //传递参数
      propsParam: {},
238 239
      rules: {},
    };
任超 committed
240 241
  },
  methods: {
任超 committed
242
    list (bsmSldy) {
任超 committed
243 244
      var formdata = new FormData();
      formdata.append("bsmSldy", bsmSldy);
jiaozeping@pashanhoo.com committed
245
      Init(formdata).then((res) => {
任超 committed
246
        if (res.code === 200 && res.result) {
247 248 249 250 251 252
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
liangyifan committed
253
        }
254
      });
liangyifan committed
255
    },
任超 committed
256
    onSubmit () {
257
      fristReg(this.ruleForm).then((res) => {
258 259 260 261
        if (res.code === 200 && res.result) {
          console.log(res);
          //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
        }
262
      });
263
    },
任超 committed
264
  },
jiaozeping@pashanhoo.com committed
265
};
任超 committed
266 267
</script>
<style scoped lang='scss'>
任超 committed
268 269
@import "~@/styles/public.scss";

任超 committed
270 271 272
/deep/.el-form {
  display: flex;
  flex-direction: column;
任超 committed
273
  height: calc(100vh - 130px);
任超 committed
274 275 276
  background-color: aqua;
}

任超 committed
277 278 279 280 281 282 283 284
/deep/.el-form-item__label {
  padding: 0;
}

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

任超 committed
285 286 287 288
/deep/.el-select {
  width: 100%;
}

任超 committed
289 290 291 292
/deep/.el-form-item {
  margin-bottom: 8px;
}

任超 committed
293 294 295 296
.marginBot0 {
  margin-bottom: 0 !important;
}

任超 committed
297
.slxx {
任超 committed
298 299 300 301
  box-sizing: border-box;
}

.slxx_con {
任超 committed
302 303 304
  flex: 1;
  height: 100%;
  background-color: #ffffff;
任超 committed
305
  overflow-y: auto;
306 307
  padding-right: 3px;
  overflow-x: hidden;
任超 committed
308 309 310 311
}

.submit_btn {
  height: 50px;
任超 committed
312 313
}

任超 committed
314
.slxx_title {
任超 committed
315 316
  border-bottom: 1px solid $borderColor;
  padding-left: 10px;
任超 committed
317 318
  padding-bottom: 5px;
  margin-bottom: 10px;
任超 committed
319
  margin-top: 5px;
任超 committed
320
  font-size: 16px;
任超 committed
321
  font-weight: 500;
jiaozeping@pashanhoo.com committed
322
  color: #4a4a4a;
任超 committed
323
}
任超 committed
324 325

.btn {
1  
liangyifan committed
326
  text-align: center;
327
  padding-top: 10px;
任超 committed
328 329 330
  height: 36px;
  background-color: #ffffff;
  padding: 5px 0;
1  
liangyifan committed
331
}
任超 committed
332 333 334 335

.textArea {
  /deep/.el-textarea__inner {
    min-height: 90px !important;
1  
liangyifan committed
336 337
  }
}
任超 committed
338

任超 committed
339 340 341
/deep/.el-form-item__label {
  padding-bottom: 0px;
}
任超 committed
342
</style>