Blame view

src/views/ywbl/slsqxx/cfdj/tdslxx.vue 13.1 KB
1
<!--
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-08-16 09:50:02
5
-->
蔡俊立 committed
6 7
<template>
  <div class="slxx">
8 9 10 11 12 13
    <el-form
      :model="ruleForm"
      :rules="rules"
      ref="ruleForm"
      :label-position="flagTop"
      :inline="flag"
14
      label-width="120px">
蔡俊立 committed
15
      <div class="slxx_con">
蔡俊立 committed
16 17 18 19
        <div class="slxx_title title-block">
          受理信息
          <div class="triangle"></div>
        </div>
蔡俊立 committed
20 21
        <el-row :gutter="10">
          <el-col :span="8">
22
            <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:" prop="slsq.ywh">
tianhaohao@pashanhoo.com committed
23
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
蔡俊立 committed
24 25 26
            </el-form-item>
          </el-col>
          <el-col :span="8">
27 28
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:" prop="slsq.slry">
              <el-input disabled v-model="ruleForm.slsq.slry"></el-input>
蔡俊立 committed
29 30 31
            </el-form-item>
          </el-col>
          <el-col :span="8">
32 33
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理时间:" prop="slsq.slsj">
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
蔡俊立 committed
34 35 36 37 38
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
39
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:" prop="slsq.qllx">
40 41
              <el-select
                disabled
tianhaohao@pashanhoo.com committed
42
                v-model="ruleForm.sldy.qllx"
43 44
                filterable
                clearable
45
                placeholder="请选择权利类型">
46 47 48 49
                <el-option
                  v-for="item in dictData['A8']"
                  :key="item.dcode"
                  :label="item.dname"
50
                  :value="item.dcode"></el-option>
蔡俊立 committed
51 52 53 54
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
55
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记类型:" prop="slsq.djlx">
56 57
              <el-select
                disabled
tianhaohao@pashanhoo.com committed
58
                v-model="ruleForm.sldy.djlx"
59 60
                filterable
                clearable
61
                placeholder="请选择登记类型">
62 63 64 65
                <el-option
                  v-for="item in dictData['A21']"
                  :key="item.dcode"
                  :label="item.dname"
66
                  :value="item.dcode"></el-option>
蔡俊立 committed
67 68 69 70
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
71 72
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:" prop="slsq.djqx">
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
蔡俊立 committed
73 74 75
            </el-form-item>
          </el-col>
        </el-row>
蔡俊立 committed
76 77 78 79
        <div class="slxx_title title-block">
          查封不动产情况
          <div class="triangle"></div>
        </div>
80 81 82 83

        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:">
tianhaohao@pashanhoo.com committed
84
              <el-input disabled v-model="ruleForm.ztQlxx.qllxmc"></el-input>
85 86 87 88 89
            </el-form-item>
          </el-col>

          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产权证号:" prop="qlxx.bdcqzh">
tianhaohao@pashanhoo.com committed
90
              <el-input disabled v-model="ruleForm.ztQlxx.bdcqzh"></el-input>
91 92 93 94
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="共有情况:">
tianhaohao@pashanhoo.com committed
95
              <el-input disabled v-model="ruleForm.ztQlxx.gyqk"></el-input>
96 97 98
            </el-form-item>
          </el-col>
        </el-row>
蔡俊立 committed
99 100
        <el-row :gutter="10">
          <el-col :span="8">
tianhaohao@pashanhoo.com committed
101
            <el-form-item :class="flag ? 'marginBot0' : ''" label="被执行人:" prop="qlxx.qlrmc">
tianhaohao@pashanhoo.com committed
102
              <el-input disabled v-model="ruleForm.ztQlxx.qlrmc"></el-input>
蔡俊立 committed
103 104
            </el-form-item>
          </el-col>
105
          <el-col :span="8">
106
            <el-form-item :class="flag ? 'marginBot0' : ''" label="证件种类:">
tianhaohao@pashanhoo.com committed
107
              <el-input disabled v-model="ruleForm.ztQlxx.qlrzjzl"></el-input>
蔡俊立 committed
108 109 110
            </el-form-item>
          </el-col>
          <el-col :span="8">
111
            <el-form-item :class="flag ? 'marginBot0' : ''" label="证件号:">
tianhaohao@pashanhoo.com committed
112
              <el-input disabled v-model="ruleForm.ztQlxx.qlrzjhm"></el-input>
蔡俊立 committed
113
            </el-form-item>
114
          </el-col>
蔡俊立 committed
115 116
        </el-row>
        <el-row :gutter="10">
蔡俊立 committed
117
          <el-col :span="8">
蔡俊立 committed
118
            <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产单元号:" prop="qlxx.bdcdyh">
tianhaohao@pashanhoo.com committed
119
              <el-input disabled v-model="ruleForm.ztQlxx.bdcdyh"></el-input>
蔡俊立 committed
120
            </el-form-item>
121
          </el-col>
122 123
          <el-col :span="16">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:">
tianhaohao@pashanhoo.com committed
124
              <el-input disabled v-model="ruleForm.ztQlxx.zl"></el-input>
蔡俊立 committed
125
            </el-form-item>
126
          </el-col>
蔡俊立 committed
127 128
        </el-row>
        <el-row :gutter="10">
129
          <el-col :span="8">
130
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利性质:">
tianhaohao@pashanhoo.com committed
131
              <el-input disabled v-model="ruleForm.ztQlxx.qlxzmc"></el-input>
蔡俊立 committed
132 133 134
            </el-form-item>
          </el-col>
          <el-col :span="8">
135
            <el-form-item :class="flag ? 'marginBot0' : ''" label="用途:">
tianhaohao@pashanhoo.com committed
136
              <el-input disabled v-model="ruleForm.ztQlxx.ytmc"></el-input>
137 138
            </el-form-item>
          </el-col>
139 140
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="面积:">
tianhaohao@pashanhoo.com committed
141
              <el-input disabled v-model="ruleForm.ztQlxx.mjmc"></el-input>
蔡俊立 committed
142 143
            </el-form-item>
          </el-col>
蔡俊立 committed
144
        </el-row>
145

蔡俊立 committed
146 147 148 149
        <div class="slxx_title title-block">
          查封信息
          <div class="triangle"></div>
        </div>
蔡俊立 committed
150 151 152
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封机关:" prop="cfdj.cfjg">
153 154
              <el-input
                v-model="ruleForm.cfdj.cfjg"
155
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
156 157 158
            </el-form-item>
          </el-col>
          <el-col :span="8">
蔡俊立 committed
159
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文号:" prop="cfdj.cfwh">
160 161
              <el-input
                v-model="ruleForm.cfdj.cfwh"
162
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
163 164 165
            </el-form-item>
          </el-col>
          <el-col :span="8">
蔡俊立 committed
166 167
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflxmc">
              <el-input v-model="ruleForm.cfdj.cflxmc" disabled></el-input>
蔡俊立 committed
168 169 170 171 172
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
蔡俊立 committed
173
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封期限:" prop="cfdj.cfqx">
174 175
              <el-input
                v-model="ruleForm.cfdj.cfqx"
176
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
177 178 179 180
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封起始时间:" prop="cfdj.cfqssj">
181 182 183 184 185 186
              <el-date-picker
                v-model="ruleForm.cfdj.cfqssj"
                class="width100"
                type="date"
                placeholder="选择日期"
                value-format="yyyy-MM-dd"
187
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-date-picker>
蔡俊立 committed
188 189 190 191
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封结束时间:" prop="cfdj.cfjssj">
192 193 194
              <el-date-picker
                v-model="ruleForm.cfdj.cfjssj"
                class="width100"
195
                :disabled="!viewEdit || ableEdit || isJfOperation"
196 197
                type="date"
                placeholder="选择日期"
198
                value-format="yyyy-MM-dd"></el-date-picker>
蔡俊立 committed
199 200 201 202
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
蔡俊立 committed
203 204
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文件:" prop="cfdj.cfwj">
205 206
              <el-input
                v-model="ruleForm.cfdj.cfwj"
207
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
208 209 210
            </el-form-item>
          </el-col>
          <el-col :span="16">
蔡俊立 committed
211
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封范围:" prop="cfdj.cffw">
212 213
              <el-input
                v-model="ruleForm.cfdj.cffw"
214
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
215 216 217 218 219
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="24">
蔡俊立 committed
220
            <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="cfdj.fj">
221 222 223
              <el-input
                v-model="ruleForm.cfdj.fj"
                type="textarea"
224
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
225 226 227 228 229
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col>
蔡俊立 committed
230
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="cfdj.djyy">
231 232 233 234
              <el-input
                class="textArea"
                type="textarea"
                v-model="ruleForm.cfdj.djyy"
235
                :disabled="!viewEdit || ableEdit || isJfOperation"></el-input>
蔡俊立 committed
236 237 238
            </el-form-item>
          </el-col>
        </el-row>
蔡俊立 committed
239 240
        <div v-if="propsParam.djlx == '400'">
          <div class="slxx_title title-block">
241 242
            解封信息
            <div class="triangle"></div>
蔡俊立 committed
243 244 245 246
          </div>
          <el-row :gutter="10">
            <el-col :span="8">
              <el-form-item :class="flag ? 'marginBot0' : ''" label="解封机关:" prop="cfdj.jfjg">
247 248
                <el-input
                  v-model="ruleForm.cfdj.jfjg"
249
                  :disabled="!viewEdit || ableEdit"></el-input>
蔡俊立 committed
250 251 252 253
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文件:" prop="cfdj.jfwj">
254 255
                <el-input
                  v-model="ruleForm.cfdj.jfwj"
256
                  :disabled="!viewEdit || ableEdit"></el-input>
蔡俊立 committed
257 258 259 260
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文号:" prop="cfdj.jfwh">
261 262
                <el-input
                  v-model="ruleForm.cfdj.jfwh"
263
                  :disabled="!viewEdit || ableEdit"></el-input>
蔡俊立 committed
264 265 266 267
              </el-form-item>
            </el-col>
          </el-row>
        </div>
蔡俊立 committed
268
      </div>
269
      <el-row class="btn" v-if="viewEdit && !ableEdit">
蔡俊立 committed
270
        <el-form-item :class="flag ? 'marginBot0' : ''">
蔡俊立 committed
271 272 273 274 275 276 277
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
278 279 280 281 282 283 284
  import sqrViewTable from "@/views/workflow/components/sqrViewTable";
  import { Init, saveData } from "@/api/workflow/cfdjFlow.js";
  import { mapGetters } from "vuex";
  export default {
    data () {
      return {
        //表单是否可操作
285
        viewEdit: false,
286 287 288 289 290 291 292 293 294 295 296 297
        disabled: true,
        flagTop: this.flag ? "top" : "",
        rules: {},
        //传递参数
        propsParam: {},
        //页面数据
        ruleForm: {},
        //是否可编辑
        ableEdit: false,
        //是否为解封
        isJfOperation: false,
      };
蔡俊立 committed
298
    },
299 300 301
    async created () {
      this.propsParam = this.$attrs;
      this.ableEdit = this.$parent.showBatch;
302
      this.viewEdit = this.$parent.currentSelectTab.ableOperation
303 304 305 306 307 308
      if (this.propsParam.djlx == "400") {
        this.isJfOperation = true;
      }
      var formdata = new FormData();
      formdata.append("bsmSldy", this.propsParam.bsmSldy);
      formdata.append("djlx", this.propsParam.djlx);
309
      formdata.append("isEdit", this.viewEdit);
310 311 312
      Init(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = res.result;
313 314 315
        }
      });
    },
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
    watch: {},
    components: { sqrViewTable },
    props: {
      flag: {
        type: Boolean,
        default: false,
      },
      fetch: {
        type: Boolean,
        default: false,
      },
    },
    computed: {
      ...mapGetters(["dictData"]),
    },

    methods: {
yuanbo committed
333 334 335 336
      /**
       * @description: onSubmit
       * @author: renchao
       */
337 338 339 340 341 342 343
      onSubmit () {
        saveData(this.ruleForm).then((res) => {
          if (res.code === 200) {
            this.$message.success("保存成功");
          }
        });
      },
yuanbo committed
344 345 346 347 348
      /**
       * @description: changeCflx
       * @param {*} e
       * @author: renchao
       */
349 350 351 352 353 354 355
      changeCflx (e) {
        let cflxItem = {};
        cflxItem = this.dictData["A32"].find((item) => {
          return item.dcode == e;
        });
        this.ruleForm.cfdj.cflxmc = cflxItem.dname;
      },
蔡俊立 committed
356
    },
357
  };
蔡俊立 committed
358 359
</script>
<style scoped lang='scss'>
360 361
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
362
</style>