Blame view

src/views/ywbl/jsydsyq/slxx.vue 9.5 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
      <div class="slxx_con">
任超 committed
7 8 9 10
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
任超 committed
11 12
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
13
            <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:">
田浩浩 committed
14
              <el-input disabled v-model="ruleForm.slywxx.ywh"></el-input>
任超 committed
15 16 17
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
18
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:">
田浩浩 committed
19
              <el-input disabled v-model="ruleForm.slywxx.slry"></el-input>
任超 committed
20 21 22
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
23
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理时间:">
田浩浩 committed
24
              <el-input disabled v-model="ruleForm.slywxx.slsj"></el-input>
任超 committed
25 26 27 28 29
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
30
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:">
田浩浩 committed
31
               <el-input disabled v-model="ruleForm.slywxx.qllxmc"></el-input>
任超 committed
32 33 34
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
35
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记类型:">
田浩浩 committed
36
                <el-input disabled v-model="ruleForm.slywxx.djlxmc"></el-input>
任超 committed
37 38 39
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
40
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:">
41
              <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input>
任超 committed
42 43 44
            </el-form-item>
          </el-col>
        </el-row>
任超 committed
45 46 47 48
        <div class="slxx_title title-block">
          不动产单元情况
          <div class="triangle"></div>
        </div>
任超 committed
49 50
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
51
            <el-form-item :class="flag ? 'marginBot0' : ''" label="宗地代码:">
田浩浩 committed
52
              <el-input disabled v-model="ruleForm.zdjbxx.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="不动产单元号:">
田浩浩 committed
57
              <el-input disabled v-model="ruleForm.zdjbxx.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="权利性质:">
田浩浩 committed
62
              <el-input disabled v-model="ruleForm.zdjbxx.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="宗地面积:">
田浩浩 committed
69
              <el-input disabled v-model="ruleForm.zdjbxx.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="土地用途:">
田浩浩 committed
74
              <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input>
任超 committed
75 76 77
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
78
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利设定方式:">
田浩浩 committed
79
              <el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input>
任超 committed
80 81 82 83 84
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
85
            <el-form-item :class="flag ? 'marginBot0' : ''" label="取得价格:">
田浩浩 committed
86
              <el-input disabled v-model="ruleForm.jsydsyq.qdjg"></el-input>
任超 committed
87 88
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
89

任超 committed
90
          <el-col :span="16">
任超 committed
91
            <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:">
田浩浩 committed
92
              <el-input disabled v-model="ruleForm.zdjbxx.zl"></el-input>
任超 committed
93 94 95 96 97
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
任超 committed
98
            <el-form-item :class="flag ? 'marginBot0' : ''" label="使用期限:">
田浩浩 committed
99
              <el-input disabled v-model="ruleForm.jsydsyq.tdsyqx"></el-input>
任超 committed
100 101
            </el-form-item>
          </el-col>
jiaozeping@pashanhoo.com committed
102

任超 committed
103
          <el-col :span="16">
任超 committed
104
            <el-form-item :class="flag ? 'marginBot0' : ''" label="使用权起止时间:">
田浩浩 committed
105
              <el-input disabled v-model="ruleForm.jsydsyq.syqqzsj"></el-input>
任超 committed
106 107 108 109 110
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col>
任超 committed
111
            <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="fj">
田浩浩 committed
112
              <el-input type="textarea" v-model="ruleForm.jsydsyq.fj" :disabled="$route.query.viewtype==1"></el-input>
任超 committed
113 114 115
            </el-form-item>
          </el-col>
        </el-row>
任超 committed
116 117 118 119
        <div class="slxx_title title-block">
          权利人信息
          <div class="triangle"></div>
        </div>
任超 committed
120
        <el-row :gutter="10">
任超 committed
121
          <el-col :span="14">
122
            <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
田浩浩 committed
123
              <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
任超 committed
124 125 126
                <el-radio label="1">单独所有</el-radio>
                <el-radio label="2">共同共有</el-radio>
                <el-radio label="3">按份所有</el-radio>
任超 committed
127 128 129
              </el-radio-group>
            </el-form-item>
          </el-col>
130
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
任超 committed
131
            <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
田浩浩 committed
132
              <el-radio-group v-model="ruleForm.slywxx.sffbcz">
任超 committed
133 134 135 136 137
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
138 139
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
任超 committed
140
              <el-select v-model="ruleForm.czr" placeholder="持证人">
任超 committed
141
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
任超 committed
142 143 144
                </el-option>
              </el-select>
            </el-form-item>
任超 committed
145 146
          </el-col>
        </el-row>
田浩浩 committed
147 148
        <InformationTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
          :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
任超 committed
149 150 151 152
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
任超 committed
153 154
        <el-row :gutter="10">
          <el-col>
任超 committed
155
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
田浩浩 committed
156
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1" v-model="ruleForm.jsydsyq.djyy">
任超 committed
157
              </el-input>
任超 committed
158 159 160 161
            </el-form-item>
          </el-col>
        </el-row>
      </div>
任超 committed
162
      <el-row class="btn" v-if="!$route.query.viewtype">
任超 committed
163
        <el-form-item :class="flag ? 'marginBot0' : ''">
任超 committed
164 165
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
任超 committed
166 167 168 169 170
      </el-row>
    </el-form>
  </div>
</template>
<script>
任超 committed
171
import { mapGetters } from "vuex"
田浩浩 committed
172
import { Init, saveData } from "@/api/jsydsyqFlow.js"
任超 committed
173
import InformationTable from "@/views/workflow/components/InformationTable"
任超 committed
174
export default {
任超 committed
175
  created () {
176
    this.propsParam = this.$attrs;
177
    var formdata = new FormData();
178
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
田浩浩 committed
179
    formdata.append("djlx", this.propsParam.djlx);
180 181
    Init(formdata).then((res) => {
      if (res.code === 200 && res.result) {
田浩浩 committed
182
        this.ruleForm = res.result;
任超 committed
183 184 185 186 187 188
        this.$store.dispatch('slxx/setQlrxxOld', {
          qlrxx: this.ruleForm.qlrxx,
          fj: this.ruleForm.fj,
          gyfs: this.ruleForm.gyfs,
          djyy: this.ruleForm.djyy
        })
189
      }
任超 committed
190
    })
191
  },
任超 committed
192
  components: { InformationTable },
liangyifan committed
193
  computed: {
任超 committed
194
    ...mapGetters(["dictData", "flag"])
liangyifan committed
195
  },
任超 committed
196 197 198 199 200 201 202 203 204 205 206 207 208
  watch: {
    ruleForm: {
      handler: function (newValue) {
        this.$store.dispatch('slxx/setQlrxxNew', {
          qlrxx: this.ruleForm.qlrxx,
          fj: this.ruleForm.fj,
          gyfs: this.ruleForm.gyfs,
          djyy: this.ruleForm.djyy
        })
      },
      deep: true
    }
  },
任超 committed
209
  data () {
任超 committed
210
    return {
liangyifan committed
211
      disabled: true,
任超 committed
212
      czrOptions: [],
任超 committed
213
      ruleForm: {},
214 215
      //传递参数
      propsParam: {},
任超 committed
216 217
      rules: {}
    }
任超 committed
218 219
  },
  methods: {
任超 committed
220 221
    // 更新权利人信息
    upDateQlrxxList (val) {
任超 committed
222 223 224 225 226 227 228
      this.ruleForm.qlrxx = _.cloneDeep(val)
      // this.$store.dispatch('slxx/setQlrxxNew', {
      //   qlrxx: this.ruleForm.qlrxx,
      //   fj: this.ruleForm.fj,
      //   gyfs: this.ruleForm.gyfs,
      //   djyy: this.ruleForm.djyy
      // })
任超 committed
229
    },
任超 committed
230
    list (bsmSldy) {
任超 committed
231 232
      var formdata = new FormData();
      formdata.append("bsmSldy", bsmSldy);
jiaozeping@pashanhoo.com committed
233
      Init(formdata).then((res) => {
任超 committed
234
        if (res.code === 200 && res.result) {
235 236 237 238 239 240
          this.ruleForm = {
            ...res.result,
            ...res.result.zdjbxxdatas,
            ...res.result.qlxxdatas,
            ...res.result.jsydsyqdatas,
          };
liangyifan committed
241
        }
242
      });
liangyifan committed
243
    },
任超 committed
244
    onSubmit () {
田浩浩 committed
245
      saveData(this.ruleForm).then((res) => {
246 247 248
        if (res.code === 200 && res.result) {
          //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
@import "~@/styles/public.scss";
任超 committed
256
@import "~@/styles/slxx/slxx.scss";
任超 committed
257
</style>