Blame view

src/views/ywbl/jsydsyq/slxx300.vue 9.45 KB
1 2 3 4 5 6 7 8 9 10 11 12
<template>
  <!-- 受理信息 -->
  <div class="slxx">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag"
      label-width="120px">
      <div class="slxx_con">
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
        <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>
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>
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>
25 26 27
            </el-form-item>
          </el-col>
        </el-row>
田浩浩 committed
28
         <el-row :gutter="10">
29
          <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>
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>
37 38 39
            </el-form-item>
          </el-col>
          <el-col :span="8">
任超 committed
40
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:">
田浩浩 committed
41
              <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input>
42 43 44 45 46
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title title-block">
          不动产单元情况
田浩浩 committed
47
          <div><el-button @click="compare">变化情况对比+</el-button></div>
48 49 50
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
田浩浩 committed
51 52
            <el-form-item :class="flag ? 'marginBot0' : ''" label="原不动产权证号:">
              <el-input disabled v-model="ruleForm.slywxx.ybdcqzsh"></el-input>
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.qlxx.bdcdyh"></el-input>
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>
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>
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.qlxx.ytmc"></el-input>
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>
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>
87 88 89 90
            </el-form-item>
          </el-col>

          <el-col :span="16">
任超 committed
91
            <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:">
田浩浩 committed
92
              <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
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>
100 101 102 103
            </el-form-item>
          </el-col>

          <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>
106 107 108 109 110 111
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col>
            <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>
113 114 115
            </el-form-item>
          </el-col>
        </el-row>
田浩浩 committed
116
        <!-- <div class="slxx_title title-block">
117 118
          权利人信息
          <div class="triangle"></div>
田浩浩 committed
119 120
        </div> -->
        <el-divider content-position="left" ><i style="background-color:#3498db;font-size:16px;color:#fff !important;border-radius: 5px 5px 5px 0px;margin-bottom:10px;" class="el-icon-edit-outline">权利人信息</i></el-divider>
121 122 123
        <el-row :gutter="10">
          <el-col :span="14">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
田浩浩 committed
124
              <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
125 126 127 128 129 130 131 132
                <el-radio label="1">单独所有</el-radio>
                <el-radio label="2">共同共有</el-radio>
                <el-radio label="3">按份所有</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
田浩浩 committed
133
              <el-radio-group v-model="ruleForm.slywxx.sffbcz">
134 135 136 137 138 139 140 141 142 143 144 145 146 147
                <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'">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
              <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>
田浩浩 committed
148
        <InformationTable :tableData="ruleForm.qlrList" @upDateQlrxxList='upDateQlrxxList' :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
149 150 151 152 153 154 155
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
            <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">
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
      <el-row class="btn" v-if="!$route.query.viewtype">
        <el-form-item :class="flag ? 'marginBot0' : ''">
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
田浩浩 committed
172
import { Init, saveData } from "@/api/jsydsyqFlow.js";
173 174 175 176 177 178
import { mapGetters } from "vuex";
export default {
  async created () {
    this.propsParam = this.$attrs;
    var formdata = new FormData();
    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) {
182
        this.ruleForm = res.result;     
183 184 185 186 187
      }
    });
  },
  components: { InformationTable },
  computed: {
任超 committed
188
    ...mapGetters(["dictData", "flag"])
189 190 191 192 193
  },
  data () {
    return {
      disabled: true,
      czrOptions: [],
194
      ruleForm: {},
195 196 197 198 199 200
      //传递参数
      propsParam: {},
      rules: {},
    };
  },
  methods: {
201 202
      // 更新权利人信息
    upDateQlrxxList (val) {
田浩浩 committed
203
      this.ruleForm.qlrList = _.cloneDeep(val);   
204
    }, 
205
    onSubmit () {
田浩浩 committed
206 207
      saveData(this.ruleForm).then((res) => {
        if (res.code === 200) {
208 209 210 211 212 213 214 215 216 217 218
           this.$message({
            showClose: true,
            message: "保存成功!",
            type: "success",
          });
        } else {
          this.$message({
            showClose: true,
            message: res.message,
            type: "error",
          });
219 220 221
        }
      });
    },
田浩浩 committed
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
     compare(){
    this.$popup({
            titleStyle: "left",
            title: "土地变化情况比对", // 弹窗标题
            editItem: "registerBook/jsydsyq", // 弹窗内容
            formData: this.propsParam,
            width: "1220px",
            height: "790px",
            // cancelText: '取消摆烂', // 右边按钮文本
            // confirmText: '确定点击', //左边按钮文本
            cancel: () => {
              console.log("取消回调");
            },
            confirm: () => {
              console.log("确认回调");
            },
          });
  }
240
  },
田浩浩 committed
241
 
242 243 244 245
};
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
任超 committed
246
@import "~@/styles/slxx/slxx.scss";
247
</style>