Blame view

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

任超 committed
104
          <el-col :span="16">
105
            <el-form-item label="坐落:" prop="zl">
任超 committed
106
              <el-input disabled v-model="ruleForm.zl"></el-input>
任超 committed
107 108 109 110 111
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
112
            <el-form-item label="房屋用途:">
113
              <el-input disabled v-model="ruleForm.ytmc"></el-input>
任超 committed
114 115
            </el-form-item>
          </el-col>
任超 committed
116
          <el-col :span="8">
117
            <el-form-item label="房屋性质:">
任超 committed
118
              <el-input disabled v-model="ruleForm.fwxz"></el-input>
任超 committed
119 120
            </el-form-item>
          </el-col>
任超 committed
121
          <el-col :span="8">
122
            <el-form-item label="房屋结构:">
任超 committed
123
              <el-input disabled v-model="ruleForm.fwjg"></el-input>
任超 committed
124 125 126
            </el-form-item>
          </el-col>
        </el-row>
xiaomiao committed
127 128 129 130 131 132 133 134
           <div class="slxx_title title-block">
          土地用途
          <div class="triangle"></div>
        </div>
        <tdytTable
          :tableData="ruleForm.tdytqxList"
          @upDateTdytxxList="upDateTdytxxList"
        />
任超 committed
135 136 137 138
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
任超 committed
139
        <el-row :gutter="10">
任超 committed
140
          <el-col :span="14">
141
            <el-form-item label="共有方式:">
142
              <el-radio-group :disabled="$route.query.viewtype == 1" v-model="ruleForm.gyfs">
任超 committed
143 144 145
                <el-radio label="1">单独所有</el-radio>
                <el-radio label="2">共同共有</el-radio>
                <el-radio label="3">按份所有</el-radio>
任超 committed
146 147 148
              </el-radio-group>
            </el-form-item>
          </el-col>
149
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
150
            <el-form-item label="是否分别持证:">
任超 committed
151 152 153 154 155 156
              <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>
157
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
158
            <el-form-item label="持证人:">
任超 committed
159
              <el-select v-model="ruleForm.czr" placeholder="持证人">
任超 committed
160
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
任超 committed
161 162 163
                </el-option>
              </el-select>
            </el-form-item>
任超 committed
164 165
          </el-col>
        </el-row>
166
        <qlrCommonTable :tableData="ruleForm.qlrxx" :gyfs="ruleForm.gyfs" />
任超 committed
167 168 169 170
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
任超 committed
171 172
        <el-row :gutter="10">
          <el-col>
173
            <el-form-item label="登记原因:" prop="djyy">
174
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1" v-model="ruleForm.djyy">
任超 committed
175
              </el-input>
任超 committed
176 177 178 179
            </el-form-item>
          </el-col>
        </el-row>
      </div>
180
      <el-row class="btn" v-if="!$route.query.viewtype && ableOperation">
181
        <el-form-item>
任超 committed
182 183
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
任超 committed
184 185 186 187 188
      </el-row>
    </el-form>
  </div>
</template>
<script>
189
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
xiaomiao committed
190
    import tdytTable from "@/views/workflow/components/tdytTable";
191 192 193 194
  import { Init } from "@/api/workflow/fwsyqFlow.js";
  import { mapGetters } from "vuex";
  export default {
    async created () {
195
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
196
      this.propsParam = this.$attrs;
任超 committed
197
      var formdata = new FormData();
198
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
jiaozeping@pashanhoo.com committed
199
      Init(formdata).then((res) => {
任超 committed
200
        if (res.code === 200 && res.result) {
201 202 203 204 205 206
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
liangyifan committed
207
        }
208
      });
liangyifan committed
209
    },
xiaomiao committed
210
 components: { qlrCommonTable,tdytTable },
211 212 213 214 215
    computed: {
      ...mapGetters(["dictData", "flag"]),
    },
    data () {
      return {
216 217
        //表单是否可操作
        ableOperation: true,
218 219 220 221 222 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
        disabled: true,
        tdytOption: [],
        czrOptions: [],
        ruleForm: {
          ywh: "",
          slry: "",
          slsj: "",
          qllx: "",
          djlx: "",
          djqx: "",
          // 宗地代码
          zddm: "",
          bdcdyh: "",
          qlxzmc: "",
          qlrxx: [],
          // 自然幢号
          zrzh: "",
          // 户不动产单元号
          hbdcdyh: '',
          djzt: '',
          // 图幅丘幢号
          tfqzh: '',
          zl: '',
          // 房屋用途
          fwyt: '',
          fwxz: '',
          fwjg: '',
          // 权利人信息
          gyfs: "1",
          // 是否分别持证
          sffbcz: "",
          // 持证人
          czr: "",
          djyy: ''
        },
        //传递参数
        propsParam: {},
        rules: {},
      };
257
    },
258
    methods: {
xiaomiao committed
259 260 261 262 263 264
             // 更新土地用途信息
    upDateTdytxxList(val) {
      console.log("VAL", val);
      this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
      this.key++;
    },
265 266 267
      list (bsmSldy) {
        var formdata = new FormData();
        formdata.append("bsmSldy", bsmSldy);
268
        formdata.append("isEdit", this.ableOperation);
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
        Init(formdata).then((res) => {
          if (res.code === 200 && res.result) {
            this.ruleForm = {
              ...res.result,
              ...res.result.zdjbxxdatas,
              ...res.result.qlxxdatas,
              ...res.result.jsydsyqdatas,
            };
          }
        });
      },
      onSubmit () {
        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 }
          }
        });
      },
    },
  };
任超 committed
290 291
</script>
<style scoped lang='scss'>
292
  @import "~@/styles/public.scss";
任超 committed
293

294 295 296 297 298
  /deep/.el-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
  }
任超 committed
299

300 301 302
  /deep/.el-form-item__label {
    padding: 0;
  }
任超 committed
303

304 305 306
  /deep/.el-radio {
    margin-right: 10px;
  }
任超 committed
307

308 309 310
  /deep/.el-select {
    width: 100%;
  }
任超 committed
311

312 313 314
  /deep/.el-form-item {
    margin-bottom: 8px;
  }
任超 committed
315

316 317 318
  .marginBot0 {
    margin-bottom: 0 !important;
  }
任超 committed
319

320 321 322
  .slxx {
    box-sizing: border-box;
  }
任超 committed
323

324 325 326 327 328 329 330 331
  .slxx_con {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    padding-right: 3px;
    overflow-x: hidden;
  }
任超 committed
332

333 334 335
  .submit_btn {
    height: 50px;
  }
任超 committed
336

337 338 339 340 341 342 343 344 345 346
  .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;
  }
任超 committed
347

348 349 350 351 352 353 354
  .btn {
    text-align: center;
    padding-top: 10px;
    height: 36px;
    background-color: #ffffff;
    padding: 5px 0;
  }
任超 committed
355

356 357 358 359
  .textArea {
    /deep/.el-textarea__inner {
      min-height: 90px !important;
    }
1  
liangyifan committed
360
  }
任超 committed
361

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