Blame view

src/views/ywbl/slsqxx/nydsyq/slxx.vue 12.2 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="业务号:">
蔡俊立 committed
14 15 16 17
              <el-input disabled v-model="ruleForm.slywxx.ywh"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
18
            <el-form-item label="受理人员:">
蔡俊立 committed
19 20 21 22
              <el-input disabled v-model="ruleForm.slywxx.slry"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
23
            <el-form-item label="受理时间:">
蔡俊立 committed
24 25 26 27 28 29
              <el-input disabled v-model="ruleForm.slywxx.slsj"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
30
            <el-form-item label="权利类型:">
31
              <el-input disabled v-model="ruleForm.slywxx.qllxmc"></el-input>
蔡俊立 committed
32 33 34
            </el-form-item>
          </el-col>
          <el-col :span="8">
35
            <el-form-item label="登记类型:">
36
              <el-input disabled v-model="ruleForm.slywxx.djlxmc"></el-input>
蔡俊立 committed
37 38 39
            </el-form-item>
          </el-col>
          <el-col :span="8">
40
            <el-form-item label="登记情形:">
蔡俊立 committed
41 42 43 44 45 46 47 48 49 50
              <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input>
            </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
              <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">
蔡俊立 committed
105 106 107 108 109 110 111
                </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">
蔡俊立 committed
168
              <el-input type="textarea" v-model="ruleForm.nydsyq.fj" :disabled="$route.query.viewtype"></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="共有方式:">
蔡俊立 committed
179
              <el-radio-group v-model="ruleForm.slywxx.gyfs" :disabled="$route.query.viewtype">
蔡俊立 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 187
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
188
            <el-form-item label="是否分别持证:">
189
              <el-radio-group v-model="ruleForm.slywxx.sqfbcz">
蔡俊立 committed
190 191 192 193 194 195
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.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"
蔡俊立 committed
205 206 207 208 209
          :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
        <div class="slxx_title title-block">
          家庭成员
          <div class="triangle"></div>
        </div>
210 211
        <JtcyTable :tableData="ruleForm.jtcyList" @upDateJtcyList="upDateJtcyList" :viewtype="$route.query.viewtype"
          :gyfs="ruleForm.slywxx.gyfs" />
蔡俊立 committed
212 213 214 215 216 217
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
218
            <el-form-item label="登记原因:" prop="djyy">
蔡俊立 committed
219
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype"
220
                v-model="ruleForm.nydsyq.djyy">
蔡俊立 committed
221 222 223 224 225
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
226
      <el-row class="btn" v-if="!$route.query.viewtype && ableOperation">
227
        <el-form-item>
蔡俊立 committed
228 229 230 231 232 233 234
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
235 236 237 238 239 240 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 () {
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
      this.propsParam = this.$attrs;
      this.$startLoading();
      var formdata = new FormData();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
247
      formdata.append("isEdit", this.ableOperation);
248 249 250
      Init(formdata).then((res) => {
        this.ruleForm = res.result;
        this.$endLoading();
蔡俊立 committed
251 252
        if (res.code === 200) {
        }
253 254 255 256
        else {
          this.$alert(res.message, '提示');
        }
      })
蔡俊立 committed
257
    },
258 259 260
    components: { qlrCommonTable, JtcyTable },
    computed: {
      ...mapGetters(["dictData", "flag"])
蔡俊立 committed
261
    },
262 263 264 265 266 267 268 269 270 271 272 273
    data () {
      return {
        disabled: true,
        //持证人选项
        czrOptions: [],
        ruleForm: {},
        //传递参数
        propsParam: {},
        //表单是否可操作
        ableOperation: true,
        rules: {}
      }
蔡俊立 committed
274
    },
275 276 277 278 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
    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)
      },
      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
324
    },
325
  };
蔡俊立 committed
326 327
</script>
<style scoped lang='scss'>
328 329
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
蔡俊立 committed
330
</style>