Blame view

src/views/ywbl/slsqxx/nydsyq/slxx200.vue 13.8 KB
蔡俊立 committed
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' : ''">
蔡俊立 committed
7 8 9 10 11 12
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
13
            <el-form-item label="业务号:">
tianhaohao@pashanhoo.com committed
14
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
蔡俊立 committed
15 16 17
            </el-form-item>
          </el-col>
          <el-col :span="8">
18
            <el-form-item label="受理人员:">
tianhaohao@pashanhoo.com committed
19
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
蔡俊立 committed
20 21 22
            </el-form-item>
          </el-col>
          <el-col :span="8">
23
            <el-form-item label="受理时间:">
tianhaohao@pashanhoo.com committed
24
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
蔡俊立 committed
25 26 27 28 29
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
30
            <el-form-item label="权利类型:">
tianhaohao@pashanhoo.com committed
31
              <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
蔡俊立 committed
32 33 34
            </el-form-item>
          </el-col>
          <el-col :span="8">
35
            <el-form-item label="登记类型:">
tianhaohao@pashanhoo.com committed
36
              <el-input disabled v-model="ruleForm.sldy.djlxmc"></el-input>
蔡俊立 committed
37 38 39
            </el-form-item>
          </el-col>
          <el-col :span="8">
40
            <el-form-item label="登记情形:">
tianhaohao@pashanhoo.com committed
41
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
蔡俊立 committed
42 43 44 45 46 47 48 49 50
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title title-block">
          不动产单元情况
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
51
            <el-form-item label="宗地代码:">
蔡俊立 committed
52 53 54 55
              <el-input disabled v-model="ruleForm.zdjbxx.zddm"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
56
            <el-form-item label="不动产单元号:">
蔡俊立 committed
57 58 59 60
              <el-input disabled v-model="ruleForm.zdjbxx.bdcdyh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
61
            <el-form-item label="权利性质:">
蔡俊立 committed
62 63 64 65 66 67
              <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
68
            <el-form-item label="宗地面积:">
蔡俊立 committed
69 70 71 72
              <el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
73
            <el-form-item label="土地用途:">
蔡俊立 committed
74 75 76 77
              <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
78
            <el-form-item label="权利设定方式:">
蔡俊立 committed
79 80 81 82 83 84
              <el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="16">
85
            <el-form-item label="坐落:">
86
              <el-input disabled v-model="ruleForm.sldy.zl"></el-input>
蔡俊立 committed
87 88 89 90 91
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
92
            <el-form-item label="发包方名称:">
93
              <el-input v-model="ruleForm.nydsyq.fbfmc" :disabled="!ableOperation"></el-input>
蔡俊立 committed
94 95 96
            </el-form-item>
          </el-col>
          <el-col :span="8">
97
            <el-form-item label="发包方代码:">
98
              <el-input v-model="ruleForm.nydsyq.fbfdm" :disabled="!ableOperation"></el-input>
蔡俊立 committed
99 100 101
            </el-form-item>
          </el-col>
          <el-col :span="8">
102
            <el-form-item label="土地所有权性质:">
103
              <el-select v-model="ruleForm.nydsyq.tdsyqxzmc" class="width100" :disabled="!ableOperation" filterable clearable>
蔡俊立 committed
104 105 106 107 108 109 110 111
                <el-option v-for="item in dictData['A45']" :key="item.dname" :label="item.dname" :value="item.dname">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
112
            <el-form-item label="承包期限:">
蔡俊立 committed
113 114 115 116
              <el-input disabled v-model="ruleForm.nydsyq.cbqx"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="16">
117
            <el-form-item label="承包起止时间:">
蔡俊立 committed
118 119 120 121 122 123
              <el-input disabled v-model="ruleForm.nydsyq.cbqzsj"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
124
            <el-form-item label="水域滩涂类型:">
125
              <el-select v-model="ruleForm.nydsyq.syttlx" :disabled="!ableOperation" class="width100" filterable clearable @change="changeSyttlx">
蔡俊立 committed
126 127 128 129 130 131
                <el-option v-for="item in dictData['A23']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
132
            <el-form-item label="养殖业方式:">
133
              <el-select v-model="ruleForm.nydsyq.yzyfs" :disabled="!ableOperation" class="width100" filterable clearable @change="changeYzyfs">
蔡俊立 committed
134 135 136 137 138 139
                <el-option v-for="item in dictData['A24']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
140
            <el-form-item label="草原质量:">
141
              <el-input v-model="ruleForm.nydsyq.cyzl" :disabled="!ableOperation"></el-input>
蔡俊立 committed
142 143 144 145 146
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
147
            <el-form-item label="适宜载畜量:">
148
              <el-input v-model="ruleForm.nydsyq.syzcl" :disabled="!ableOperation" oninput="value=value.replace(/[^\d.]/g,'')"></el-input>
蔡俊立 committed
149 150 151
            </el-form-item>
          </el-col>
          <el-col :span="8">
152
            <el-form-item label="用地用海分类:">
153
              <el-select v-model="ruleForm.nydsyq.ydyhfl" :disabled="!ableOperation" class="width100" filterable clearable @change="changeYdyhfl">
蔡俊立 committed
154 155 156 157 158 159
                <el-option v-for="item in dictData['A51']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
160
            <el-form-item label="土地承包合同:">
161
              <el-input v-model="ruleForm.nydsyq.tdcbht" :disabled="!ableOperation"></el-input>
蔡俊立 committed
162 163 164 165 166
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col>
167
            <el-form-item label="附记:" prop="fj">
xiaomiao committed
168
              <el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="!ableOperation"></el-input>
蔡俊立 committed
169 170 171 172 173 174 175 176
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
177
          <el-col :span="12">
178
            <el-form-item label="共有方式:">
xiaomiao committed
179
              <el-radio-group :disabled="!ableOperation" v-model="ruleForm.sldy.gyfs">
蔡俊立 committed
180 181 182 183
                <el-radio label="0">单独所有</el-radio>
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
蔡俊立 committed
184 185 186
              </el-radio-group>
            </el-form-item>
          </el-col>
187
          <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
188
            <el-form-item label="是否分别持证:">
189 190 191 192 193
              <el-radio-group
                v-model="ruleForm.sldy.sqfbcz"
                :disabled="!ableOperation">
                <el-radio :label="1"></el-radio>
                <el-radio :label="0"></el-radio>
蔡俊立 committed
194 195 196
              </el-radio-group>
            </el-form-item>
          </el-col>
197 198
          <el-col
            :span="6"
199
            v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
200
            <el-form-item label="持证人:">
201 202 203 204 205 206 207 208 209
              <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">
蔡俊立 committed
210 211 212 213 214
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
xiaomiao committed
215
        <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" :disabled="!ableOperation" :gyfs="ruleForm.sldy.gyfs" />
蔡俊立 committed
216 217 218 219
        <div class="slxx_title title-block">
          义务人信息
          <div class="triangle"></div>
        </div>
xiaomiao committed
220
        <qlrCommonTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList" :disabled="!ableOperation" />
蔡俊立 committed
221 222 223 224
        <div class="slxx_title title-block">
          家庭成员
          <div class="triangle"></div>
        </div>
xiaomiao committed
225
        <JtcyTable :tableData="ruleForm.jtcyList" :disabled="!ableOperation" @upDateJtcyList="upDateJtcyList" :gyfs="ruleForm.slywxx.gyfs" />
蔡俊立 committed
226 227 228 229 230 231
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
232
            <el-form-item label="登记原因:" prop="djyy">
xiaomiao committed
233
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
234
                v-model="ruleForm.nydsyq.djyy">
蔡俊立 committed
235 236 237 238 239
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
xiaomiao committed
240
      <el-row class="btn" v-if="ableOperation">
241
        <el-form-item>
蔡俊立 committed
242 243 244 245 246 247 248
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
249
  import { mapGetters } from "vuex"
250
  import ywmix from "@/views/ywbl/mixin/index"
251 252 253 254
  import { Init, saveData } from "@/api/workflow/nydsyqFlow.js"
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"
  import JtcyTable from "@/views/workflow/components/JtcyTable"
  export default {
255
    mixins: [ywmix],
256
    mounted () {
257
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
258 259 260 261 262
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
263
      formdata.append("isEdit", this.ableOperation);
264 265 266
      Init(formdata).then((res) => {
        this.ruleForm = res.result;
        this.$endLoading();
蔡俊立 committed
267 268
        if (res.code === 200) {
        }
269 270 271 272
        else {
          this.$alert(res.message, '提示');
        }
      })
蔡俊立 committed
273
    },
274 275 276
    components: { qlrCommonTable, JtcyTable },
    computed: {
      ...mapGetters(["dictData", "flag"])
蔡俊立 committed
277
    },
278 279
    data () {
      return {
280 281
        //表单是否可操作
        ableOperation: true,
282 283 284 285 286 287 288
        disabled: true,
        czrOptions: [],
        ruleForm: {},
        //传递参数
        propsParam: {},
        rules: {}
      }
蔡俊立 committed
289
    },
290
    methods: {
yuanbo committed
291 292 293 294
      /**
       * @description: onSubmit
       * @author: renchao
       */
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
      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",
            });
          }
        });
      },
      //权利人更新
yuanbo committed
314 315 316 317 318
      /**
       * @description: 权利人更新
       * @param {*} val
       * @author: renchao
       */
319 320 321 322
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val)
      },
      // 更新义务人信息
yuanbo committed
323 324 325 326 327
      /**
       * @description: 更新义务人信息
       * @param {*} val
       * @author: renchao
       */
328 329 330 331
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },
      //家庭成员更新
yuanbo committed
332 333 334 335 336
      /**
       * @description: 家庭成员更新
       * @param {*} val
       * @author: renchao
       */
337 338 339 340
      upDateJtcyList (val) {
        this.ruleForm.jtcyList = _.cloneDeep(val)
      },
      //水域滩涂类型变化事件
yuanbo committed
341 342 343 344 345
      /**
       * @description: 水域滩涂类型变化事件
       * @param {*} e
       * @author: renchao
       */
346 347 348 349 350 351 352 353
      changeSyttlx (e) {
        let itemLx = {}
        itemLx = this.dictData['A23'].find((item) => {
          return item.dcode == e
        })
        this.ruleForm.nydsyq.syttlxmc = itemLx.dname;
      },
      //养殖业方式变化事件
yuanbo committed
354 355 356 357 358
      /**
       * @description: 养殖业方式变化事件
       * @param {*} e
       * @author: renchao
       */
359 360 361 362 363 364 365 366
      changeYzyfs (e) {
        let itemLx = {}
        itemLx = this.dictData['A24'].find((item) => {
          return item.dcode == e
        })
        this.ruleForm.nydsyq.yzyfsmc = itemLx.dname;
      },
      //用地用海变化事件
yuanbo committed
367 368 369 370 371
      /**
       * @description: 用地用海变化事件
       * @param {*} e
       * @author: renchao
       */
372 373 374 375 376 377 378
      changeYdyhfl (e) {
        let itemLx = {}
        itemLx = this.dictData['A51'].find((item) => {
          return item.dcode == e
        })
        this.ruleForm.nydsyq.ydyhflmc = itemLx.dname;
      },
蔡俊立 committed
379
    },
380
  };
蔡俊立 committed
381 382
</script>
<style scoped lang='scss'>
383 384
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
xiaomiao committed
385
</style>