Blame view

src/views/ywbl/slsqxx/jsydsyq/slxx300.vue 10.3 KB
1
0<!--
xiaomiao committed
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-05-25 08:59:49
5
-->
6 7
<template>
  <!-- 受理信息 -->
8 9
  <div class="slxx loadingtext">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''"
10
      :inline="flag" label-width="120px">
11
      <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
12 13 14 15 16 17
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
18
            <el-form-item label="业务号:">
tianhaohao@pashanhoo.com committed
19
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
20 21 22
            </el-form-item>
          </el-col>
          <el-col :span="8">
23
            <el-form-item label="受理人员:">
24
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
25 26 27
            </el-form-item>
          </el-col>
          <el-col :span="8">
28
            <el-form-item label="受理时间:">
29
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
30 31 32
            </el-form-item>
          </el-col>
        </el-row>
33
        <el-row :gutter="10">
34
          <el-col :span="8">
35
            <el-form-item label="权利类型:">
tianhaohao@pashanhoo.com committed
36
              <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
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.sldy.djlxmc"></el-input>
42 43 44
            </el-form-item>
          </el-col>
          <el-col :span="8">
45
            <el-form-item label="登记情形:">
46
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
47 48 49
            </el-form-item>
          </el-col>
        </el-row>
50
        <div class="slxx_title title-block flex" style="justify-content: space-between;">
51
          不动产单元情况
52
          <el-button @click="compare">变化情况对比+</el-button>
53 54 55
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
56
            <el-form-item label="原不动产权证号:">
57
              <el-input disabled v-model="ruleForm.sldy.ybdcqzsh"></el-input>
58 59 60
            </el-form-item>
          </el-col>
          <el-col :span="8">
61
            <el-form-item label="不动产单元号:">
田浩浩 committed
62
              <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
63 64 65
            </el-form-item>
          </el-col>
          <el-col :span="8">
66
            <el-form-item label="权利性质:">
田浩浩 committed
67
              <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
68 69 70 71 72
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
73
            <el-form-item label="宗地面积:">
田浩浩 committed
74
              <el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input>
75 76 77
            </el-form-item>
          </el-col>
          <el-col :span="8">
78
            <el-form-item label="土地用途:">
田浩浩 committed
79
              <el-input disabled v-model="ruleForm.qlxx.ytmc"></el-input>
80 81 82
            </el-form-item>
          </el-col>
          <el-col :span="8">
83
            <el-form-item label="权利设定方式:">
田浩浩 committed
84
              <el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input>
85 86 87 88 89
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
90
            <el-form-item label="取得价格:">
蔡俊立 committed
91
              <div style="display:flex">
92 93
                <el-input v-model="ruleForm.jsydsyq.qdjg" style="width:500%" oninput="value=value.replace(/[^\d.]/g,'')"
                  disabled></el-input>
蔡俊立 committed
94 95 96 97 98
                <el-select v-model="ruleForm.jsydsyq.jedw" disabled>
                  <el-option v-for="item in dictData['A57']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                  </el-option>
                </el-select>
              </div>
99 100 101 102
            </el-form-item>
          </el-col>

          <el-col :span="16">
103
            <el-form-item label="坐落:">
田浩浩 committed
104
              <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
105 106 107
            </el-form-item>
          </el-col>
        </el-row>
xiaomiao committed
108
        <!-- <el-row :gutter="10">
109
          <el-col :span="8">
110
            <el-form-item label="使用期限:">
田浩浩 committed
111
              <el-input disabled v-model="ruleForm.jsydsyq.tdsyqx"></el-input>
112 113 114 115
            </el-form-item>
          </el-col>

          <el-col :span="16">
116
            <el-form-item label="使用权起止时间:">
田浩浩 committed
117
              <el-input disabled v-model="ruleForm.jsydsyq.syqqzsj"></el-input>
118 119
            </el-form-item>
          </el-col>
xiaomiao committed
120
        </el-row> -->
121 122
        <el-row :gutter="10">
          <el-col>
123
            <el-form-item label="附记:" prop="fj">
xiaomiao committed
124
              <el-input type="textarea" v-model="ruleForm.jsydsyq.fj" :disabled="!ableOperation"></el-input>
125 126 127
            </el-form-item>
          </el-col>
        </el-row>
128
        <div class="slxx_title title-block">
xiaomiao committed
129 130 131 132 133
          土地用途
          <div class="triangle"></div>
        </div>
        <tdytTable
          :tableData="ruleForm.tdytqxList"
134
          :ableOperation="ableOperation"
135
          @upDateTdytxxList="upDateTdytxxList" />
136
        <div class="slxx_title title-block">
137 138
          权利人信息
          <div class="triangle"></div>
139 140
        </div>
        <!-- <el-divider content-position="left"><i
141
            style="background-color:#3498db;font-size:16px;color:#fff !important;border-radius: 5px 5px 5px 0px;margin-bottom:10px;"
142
            class="el-icon-edit-outline">权利人信息</i></el-divider> -->
143 144
        <el-row :gutter="10">
          <el-col :span="14">
145
            <el-form-item label="共有方式:">
xiaomiao committed
146
              <el-radio-group :disabled="!ableOperation" v-model="ruleForm.sldy.gyfs">
147 148 149 150
                <el-radio label="0">单独所有</el-radio>
                <el-radio label="1">共同共有</el-radio>
                <el-radio label="2">按份所有</el-radio>
                <el-radio label="3">其它共有</el-radio>
151 152 153 154
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="5" v-show="ruleForm.gyfs == '2'">
155
            <el-form-item label="是否分别持证:">
156
              <el-radio-group v-model="ruleForm.sldy.sqfbcz" :disabled="!ableOperation">
157 158 159 160 161 162
                <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'">
163
            <el-form-item label="持证人:">
164
              <el-select v-model="ruleForm.czr" placeholder="持证人" :disabled="!ableOperation">
165 166 167 168 169 170
                <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>
xiaomiao committed
171
        <qlrCommonTable :tableData="ruleForm.qlrList" :disabled="!ableOperation" @upDateQlrxxList='upDateQlrxxList' :gyfs="ruleForm.sldy.gyfs" />
172 173 174 175 176 177
        <div class="slxx_title title-block">
          登记原因
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col>
178
            <el-form-item label="登记原因:" prop="djyy">
xiaomiao committed
179
              <el-input class="textArea" type="textarea" :disabled="!ableOperation"
180
                v-model="ruleForm.jsydsyq.djyy">
181 182 183 184 185
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
xiaomiao committed
186
      <el-row class="btn" v-if="ableOperation">
187
        <el-form-item>
188 189 190 191 192 193 194
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
195 196
  import { mapGetters } from "vuex";
  import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
197
  import tdytTable from "@/views/workflow/components/tdytTable";
198 199 200
  import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js";
  export default {
    mounted () {
201
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
202 203 204 205 206
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      this.$startLoading();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
207
      formdata.append("isEdit", this.ableOperation);
208 209 210
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = res.result;
211
        }
212
        this.$endLoading();
213 214
      });
    },
215
    components: { qlrCommonTable, tdytTable },
216 217 218 219 220
    computed: {
      ...mapGetters(["dictData", "flag"])
    },
    data () {
      return {
221 222
        //表单是否可操作
        ableOperation: true,
223 224 225 226 227 228 229
        disabled: true,
        czrOptions: [],
        ruleForm: {
          slywxx: {},
          qlxx: {},
          zdjbxx: {},
          jsydsyq: {}
230
        },
231 232 233 234 235 236
        //传递参数
        propsParam: {},
        rules: {},
      };
    },
    methods: {
237 238 239 240 241
      // 更新土地用途信息
      upDateTdytxxList (val) {
        this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
        this.key++;
      },
242 243 244 245 246 247 248 249 250 251 252
      // 更新权利人信息
      upDateQlrxxList (val) {
        this.ruleForm.qlrList = _.cloneDeep(val);
      },
      onSubmit () {
        saveData(this.ruleForm).then((res) => {
          if (res.code === 200) {
            this.$message({
              showClose: true,
              message: "保存成功!",
              type: "success",
253 254
            })
            this.$store.dispatch('user/refreshPage', true);
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: "error",
            });
          }
        });
      },
      compare () {
        this.$popup({
          titleStyle: "left",
          title: "土地变化情况比对", // 弹窗标题
          editItem: "registerBook/jsydsyq", // 弹窗内容
          formData: this.propsParam,
          width: "1220px",
          height: "790px",
          // cancelText: '取消摆烂', // 右边按钮文本
          // confirmText: '确定点击', //左边按钮文本
          cancel: () => {
            console.log("取消回调");
          },
          confirm: () => {
            console.log("确认回调");
          },
        });
      }
    },
283

284
  };
285 286
</script>
<style scoped lang='scss'>
287 288
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
289
</style>