Blame view

src/views/ywbl/slsqxx/nydsyq/slxx200.vue 12.6 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="坐落:">
蔡俊立 committed
86 87 88 89 90 91
              <el-input disabled v-model="ruleForm.zdjbxx.zl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
92
            <el-form-item label="发包方名称:">
蔡俊立 committed
93 94 95 96
              <el-input v-model="ruleForm.nydsyq.fbfmc"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
97
            <el-form-item label="发包方代码:">
蔡俊立 committed
98 99 100 101
              <el-input v-model="ruleForm.nydsyq.fbfdm"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
102
            <el-form-item label="土地所有权性质:">
蔡俊立 committed
103 104 105 106 107 108 109 110 111
              <el-select v-model="ruleForm.nydsyq.tdsyqxzmc" class="width100" filterable clearable>
                <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" 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" 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="草原质量:">
蔡俊立 committed
141 142 143 144 145 146
              <el-input v-model="ruleForm.nydsyq.cyzl"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
147
            <el-form-item label="适宜载畜量:">
蔡俊立 committed
148
              <el-input v-model="ruleForm.nydsyq.syzcl" 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" 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="土地承包合同:">
蔡俊立 committed
161 162 163 164 165 166
              <el-input v-model="ruleForm.nydsyq.tdcbht"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col>
167
            <el-form-item label="附记:" prop="fj">
168
              <el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="$route.query.viewtype == 1"></el-input>
蔡俊立 committed
169 170 171 172 173 174 175 176 177
            </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="14">
178
            <el-form-item label="共有方式:">
tianhaohao@pashanhoo.com committed
179
              <el-radio-group :disabled="$route.query.viewtype == 1" 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>
tianhaohao@pashanhoo.com committed
187
          <el-col :span="5" v-show="ruleForm.sldy.gyfs == '2'">
188
            <el-form-item label="是否分别持证:">
tianhaohao@pashanhoo.com committed
189
              <el-radio-group v-model="ruleForm.sldy.sqfbcz">
蔡俊立 committed
190 191 192 193 194
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
tianhaohao@pashanhoo.com committed
195
          <el-col :span="5" v-show="ruleForm.sldy.gyfs == '2'">
196
            <el-form-item label="持证人:">
蔡俊立 committed
197 198 199 200 201 202 203
              <el-select v-model="ruleForm.czr" placeholder="持证人">
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
204
        <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
tianhaohao@pashanhoo.com committed
205
          :viewtype="$route.query.viewtype" :gyfs="ruleForm.sldy.gyfs" />
蔡俊立 committed
206 207 208 209
        <div class="slxx_title title-block">
          义务人信息
          <div class="triangle"></div>
        </div>
210
        <qlrCommonTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
蔡俊立 committed
211 212 213 214 215
          :viewtype="$route.query.viewtype" />
        <div class="slxx_title title-block">
          家庭成员
          <div class="triangle"></div>
        </div>
216 217
        <JtcyTable :tableData="ruleForm.jtcyList" @upDateJtcyList="upDateJtcyList" :viewtype="$route.query.viewtype"
          :gyfs="ruleForm.slywxx.gyfs" />
蔡俊立 committed
218 219 220 221 222 223
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
224
            <el-form-item label="登记原因:" prop="djyy">
225 226
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
                v-model="ruleForm.nydsyq.djyy">
蔡俊立 committed
227 228 229 230 231
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
232
      <el-row class="btn" v-if="!$route.query.viewtype && ableOperation">
233
        <el-form-item>
蔡俊立 committed
234 235 236 237 238 239 240
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
241 242 243 244 245 246
  import { mapGetters } from "vuex"
  import { Init, saveData } from "@/api/workflow/nydsyqFlow.js"
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"
  import JtcyTable from "@/views/workflow/components/JtcyTable"
  export default {
    mounted () {
247
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
248 249 250 251 252
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
253
      formdata.append("isEdit", this.ableOperation);
254 255 256
      Init(formdata).then((res) => {
        this.ruleForm = res.result;
        this.$endLoading();
蔡俊立 committed
257 258
        if (res.code === 200) {
        }
259 260 261 262
        else {
          this.$alert(res.message, '提示');
        }
      })
蔡俊立 committed
263
    },
264 265 266
    components: { qlrCommonTable, JtcyTable },
    computed: {
      ...mapGetters(["dictData", "flag"])
蔡俊立 committed
267
    },
268 269
    data () {
      return {
270 271
        //表单是否可操作
        ableOperation: true,
272 273 274 275 276 277 278
        disabled: true,
        czrOptions: [],
        ruleForm: {},
        //传递参数
        propsParam: {},
        rules: {}
      }
蔡俊立 committed
279
    },
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
    methods: {
      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",
            });
          }
        });
      },
      //权利人更新
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val)
      },
      // 更新义务人信息
      upDateYwrxxList (val) {
        this.ruleForm.ywrList = _.cloneDeep(val);
      },
      //家庭成员更新
      upDateJtcyList (val) {
        this.ruleForm.jtcyList = _.cloneDeep(val)
      },
      //水域滩涂类型变化事件
      changeSyttlx (e) {
        let itemLx = {}
        itemLx = this.dictData['A23'].find((item) => {
          return item.dcode == e
        })
        this.ruleForm.nydsyq.syttlxmc = itemLx.dname;
      },
      //养殖业方式变化事件
      changeYzyfs (e) {
        let itemLx = {}
        itemLx = this.dictData['A24'].find((item) => {
          return item.dcode == e
        })
        this.ruleForm.nydsyq.yzyfsmc = itemLx.dname;
      },
      //用地用海变化事件
      changeYdyhfl (e) {
        let itemLx = {}
        itemLx = this.dictData['A51'].find((item) => {
          return item.dcode == e
        })
        this.ruleForm.nydsyq.ydyhflmc = itemLx.dname;
      },
蔡俊立 committed
335
    },
336
  };
蔡俊立 committed
337 338
</script>
<style scoped lang='scss'>
339 340
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
蔡俊立 committed
341
</style>