Blame view

src/views/ywbl/jsydsyq/slxx.vue 9.31 KB
任超 committed
1
<template>
任超 committed
2
  <!-- 受理信息 -->
jiaozeping@pashanhoo.com committed
3
  <div class="slxx">
任超 committed
4 5 6
    <el-form :model="ruleForm" :rules="rules" class="loadingtext" ref="ruleForm" :label-position="flag ? 'top' : ''"
      :inline="flag" label-width="120px">
      <div class="slxx_con" v-if="isShow">
任超 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="权利类型:">
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="登记类型:">
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 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">
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="共有方式:">
123
              <el-radio-group :disabled="$route.query.viewtype == 0" v-model="ruleForm.slywxx.gyfs">
田浩浩 committed
124 125 126 127
                <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
128 129 130
              </el-radio-group>
            </el-form-item>
          </el-col>
131
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
任超 committed
132
            <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
田浩浩 committed
133
              <el-radio-group v-model="ruleForm.slywxx.sffbcz">
任超 committed
134 135 136 137 138
                <el-radio label="1"></el-radio>
                <el-radio label="0"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
139 140
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
任超 committed
141
              <el-select v-model="ruleForm.czr" placeholder="持证人">
任超 committed
142
                <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
任超 committed
143 144 145
                </el-option>
              </el-select>
            </el-form-item>
任超 committed
146 147
          </el-col>
        </el-row>
148
        <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
田浩浩 committed
149
          :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
1  
jiaozeping@pashanhoo.com committed
150 151

          
任超 committed
152
        <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0">
153 154 155
          <div class="slxx_title title-block">
            义务人信息
            <div class="triangle"></div>
156
          </div>
任超 committed
157
          <qlrCommonTable v-if="ruleForm.ywrList" :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
158 159 160
            :viewtype="$route.query.viewtype" />
        </div>

任超 committed
161 162 163 164
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
任超 committed
165 166
        <el-row :gutter="10">
          <el-col>
任超 committed
167
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
168 169
              <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype == 1"
                v-model="ruleForm.jsydsyq.djyy">
任超 committed
170
              </el-input>
任超 committed
171 172 173 174
            </el-form-item>
          </el-col>
        </el-row>
      </div>
任超 committed
175
      <el-row class="btn" v-if="!$route.query.viewtype">
任超 committed
176
        <el-form-item :class="flag ? 'marginBot0' : ''">
任超 committed
177 178
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
任超 committed
179 180 181 182 183
      </el-row>
    </el-form>
  </div>
</template>
<script>
任超 committed
184
import { mapGetters } from "vuex"
185
import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js"
186
import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"
任超 committed
187
export default {
任超 committed
188
  mounted () {
189
    this.propsParam = this.$attrs;
190
    var formdata = new FormData();
任超 committed
191 192
    let that = this
    this.$startLoading();
193
    formdata.append("bsmSldy", this.propsParam.bsmSldy);
田浩浩 committed
194
    formdata.append("djlx", this.propsParam.djlx);
195
    Init(formdata).then((res) => {
任超 committed
196 197 198 199 200
      this.$nextTick(() => {
        that.ruleForm = res.result;
        that.$endLoading();
        that.isShow = true
      })
任超 committed
201
    })
202
  },
203
  components: { qlrCommonTable },
liangyifan committed
204
  computed: {
任超 committed
205
    ...mapGetters(["dictData", "flag"])
liangyifan committed
206
  },
任超 committed
207
  data () {
任超 committed
208
    return {
任超 committed
209
      isShow: false,
liangyifan committed
210
      disabled: true,
任超 committed
211
      czrOptions: [],
任超 committed
212
      ruleForm: {},
213 214
      //传递参数
      propsParam: {},
任超 committed
215 216
      rules: {}
    }
任超 committed
217 218
  },
  methods: {
任超 committed
219 220
    // 更新权利人信息
    upDateQlrxxList (val) {
任超 committed
221
      this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val))
222
    },
223
    // 更新义务人信息
224
    upDateYwrxxList (val) {
任超 committed
225
      this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val))
任超 committed
226
    },
任超 committed
227
    onSubmit () {
田浩浩 committed
228
      saveData(this.ruleForm).then((res) => {
229
        if (res.code === 200) {
230
          this.$message({
231 232 233 234 235 236 237 238 239 240
            showClose: true,
            message: "保存成功!",
            type: "success",
          });
        } else {
          this.$message({
            showClose: true,
            message: res.message,
            type: "error",
          });
241
        }
242
      });
243
    },
任超 committed
244
  },
jiaozeping@pashanhoo.com committed
245
};
任超 committed
246 247
</script>
<style scoped lang='scss'>
任超 committed
248
@import "~@/styles/public.scss";
任超 committed
249
@import "~@/styles/slxx/slxx.scss";
任超 committed
250
</style>