Blame view

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

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

任超 committed
257 258 259
/deep/.el-form {
  display: flex;
  flex-direction: column;
任超 committed
260
  height: calc(100vh - 130px);
任超 committed
261 262 263
  background-color: aqua;
}

任超 committed
264 265 266 267 268 269 270 271
/deep/.el-form-item__label {
  padding: 0;
}

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

任超 committed
272 273 274 275
/deep/.el-select {
  width: 100%;
}

任超 committed
276 277 278 279
/deep/.el-form-item {
  margin-bottom: 8px;
}

任超 committed
280 281 282 283
.marginBot0 {
  margin-bottom: 0 !important;
}

任超 committed
284
.slxx {
任超 committed
285 286 287 288
  box-sizing: border-box;
}

.slxx_con {
任超 committed
289 290 291
  flex: 1;
  height: 100%;
  background-color: #ffffff;
任超 committed
292
  overflow-y: auto;
293 294
  padding-right: 3px;
  overflow-x: hidden;
任超 committed
295 296 297 298
}

.submit_btn {
  height: 50px;
任超 committed
299 300
}

任超 committed
301
.slxx_title {
任超 committed
302 303
  border-bottom: 1px solid $borderColor;
  padding-left: 10px;
任超 committed
304 305
  padding-bottom: 5px;
  margin-bottom: 10px;
任超 committed
306
  margin-top: 5px;
任超 committed
307
  font-size: 16px;
任超 committed
308
  font-weight: 500;
jiaozeping@pashanhoo.com committed
309
  color: #4a4a4a;
任超 committed
310
}
任超 committed
311 312

.btn {
1  
liangyifan committed
313
  text-align: center;
314
  padding-top: 10px;
任超 committed
315 316 317
  height: 36px;
  background-color: #ffffff;
  padding: 5px 0;
1  
liangyifan committed
318
}
任超 committed
319 320 321 322

.textArea {
  /deep/.el-textarea__inner {
    min-height: 90px !important;
1  
liangyifan committed
323 324
  }
}
任超 committed
325

任超 committed
326 327 328
/deep/.el-form-item__label {
  padding-bottom: 0px;
}
任超 committed
329
</style>