Blame view

src/components/Business/qlfQlCfdj.vue 10.5 KB
yangwei committed
1 2 3 4 5 6 7 8 9 10
<template>
  <div class="seizureRegistration itemForm">
    <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="112px" :key="key">
      <el-row>
        <el-col :span="8">
          <el-form-item prop="YSDM">
            <span slot="label">
              要素代码: <br />
              <p class="label-detail">(YSDM)</p>
            </span>
11
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ysdm"></el-input>
yangwei committed
12 13 14 15 16 17 18 19 20
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="YWH">
            <span slot="label">
              业务号: <br />
              <p class="label-detail">(YWH)</p>
            </span>
21
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ywh"></el-input>
yangwei committed
22 23 24 25 26 27 28 29 30
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="BDCDYH">
            <span slot="label">
              不动产单元号: <br />
              <p class="label-detail">(BDCDYH)</p>
            </span>
31
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.bdcdyh"></el-input>
yangwei committed
32 33 34 35 36 37 38 39 40 41 42
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="CFJG">
            <span slot="label">
              查封机关: <br />
              <p class="label-detail">(CFJG)</p>
            </span>
43
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.cfjg"></el-input>
yangwei committed
44 45 46 47 48 49 50 51 52
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="CFLX">
            <span slot="label">
              查封类型: <br />
              <p class="label-detail">(CFLX)</p>
            </span>
53
            <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.cflx">
yangwei committed
54 55 56 57 58 59 60 61 62 63 64 65
              <el-option v-for="item in dicData['A32']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="CFWJ">
            <span slot="label">
              查封文件: <br />
              <p class="label-detail">(CFWJ)</p>
            </span>
66
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.cfwj"></el-input>
yangwei committed
67 68 69 70 71 72 73 74 75 76 77
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="CFWH">
            <span slot="label">
              查封文号: <br />
              <p class="label-detail">(CFWH)</p>
            </span>
78
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.cfwh"></el-input>
yangwei committed
79 80 81 82 83 84 85 86
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item prop="CFQSSJ">
            <span slot="label">
              查封起始时间: <br />
              <p class="label-detail">(CFQSSJ)</p>
            </span>
87 88
            <el-date-picker :disabled="$store.state.business.Edit" type="date" :picker-options="pickerOptionsStart"
              clearable v-model="ruleForm.cfqssj" value-format="yyyy-MM-dd"></el-date-picker>
yangwei committed
89 90 91 92 93 94 95 96 97
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="CFJSSJ">
            <span slot="label">
              查封结束时间: <br />
              <p class="label-detail">(CFJSSJ)</p>
            </span>
98 99
            <el-date-picker :disabled="$store.state.business.Edit" clearable :picker-options="pickerOptionsEnd"
              v-model="ruleForm.cfjssj" value-format="yyyy-MM-dd">
yangwei committed
100 101 102 103 104 105 106 107 108 109 110 111
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="CFFW">
            <span slot="label">
              查封范围: <br />
              <p class="label-detail">(CFFW)</p>
            </span>
112
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.cffw"></el-input>
yangwei committed
113 114 115 116 117 118 119 120
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item prop="QXDM">
            <span slot="label">
              区县代码: <br />
              <p class="label-detail">(QXDM)</p>
            </span>
121
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.qxdm"></el-input>
yangwei committed
122 123 124 125 126 127 128 129 130
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="DJJG">
            <span slot="label">
              登记机构: <br />
              <p class="label-detail">(DJJG)</p>
            </span>
131
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.djjg"></el-input>
yangwei committed
132 133 134 135 136 137 138 139 140 141 142
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="DBR">
            <span slot="label">
              登簿人: <br />
              <p class="label-detail">(DBR)</p>
            </span>
143
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbr"></el-input>
yangwei committed
144 145 146 147 148 149 150 151
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item prop="DJSJ">
            <span slot="label">
              登记时间: <br />
              <p class="label-detail">(DJSJ)</p>
            </span>
152 153
            <el-date-picker :disabled="$store.state.business.Edit" type="date" clearable v-model="ruleForm.djsj"
              value-format="yyyy-MM-dd"></el-date-picker>
yangwei committed
154 155 156 157 158 159 160 161
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item prop="JFYWH">
            <span slot="label">
              解封业务号: <br />
              <p class="label-detail">(JFYWH)</p>
            </span>
162
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.jfywh"></el-input>
yangwei committed
163 164 165 166 167 168 169 170 171 172 173
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="JFJG">
            <span slot="label">
              解封机关: <br />
              <p class="label-detail">(JFJG)</p>
            </span>
174
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.jfjg"></el-input>
yangwei committed
175 176 177 178 179 180 181 182
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item prop="JFWJ">
            <span slot="label">
              解封文件: <br />
              <p class="label-detail">(JFWJ)</p>
            </span>
183
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.jfwj"></el-input>
yangwei committed
184 185 186 187 188 189 190 191 192
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="JFWH">
            <span slot="label">
              解封文号: <br />
              <p class="label-detail">(JFWH)</p>
            </span>
193
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.jfwh"></el-input>
yangwei committed
194 195 196 197 198 199 200 201 202 203 204
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="JFDBR">
            <span slot="label">
              解封登簿人: <br />
              <p class="label-detail">(JFDBR)</p>
            </span>
205
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.jfdbr"></el-input>
yangwei committed
206 207 208 209 210 211 212 213
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item prop="JFDJSJ">
            <span slot="label">
              解封登记时间: <br />
              <p class="label-detail">(JFDJSJ)</p>
            </span>
214 215
            <el-date-picker :disabled="$store.state.business.Edit" type="date" clearable v-model="ruleForm.jfdjsj"
              value-format="yyyy-MM-dd"></el-date-picker>
yangwei committed
216 217 218 219 220 221 222 223 224
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="FJ">
            <span slot="label">
              附记: <br />
              <p class="label-detail">(FJ)</p>
            </span>
225
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.fj"></el-input>
yangwei committed
226 227 228 229 230 231 232 233 234 235 236
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
          <el-form-item prop="QSZT">
            <span slot="label">
              权属状态: <br />
              <p class="label-detail">(QSZT)</p>
            </span>
237
            <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.qszt">
yangwei committed
238 239 240 241 242 243 244 245 246 247 248 249
              <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <message-tips ref="msg" />
  </div>
</template>
<script>
// 查封登记信息
250 251
import qlfQlCfdj from "@/api/qlfQlCfdj";
import ruleMixin from "@/mixins/ruleMixin.js";
yangwei committed
252 253 254 255 256
export default {
  mixins: [ruleMixin],
  props: {
    bsmSjsb: {
      type: String,
257
      default: "",
yangwei committed
258 259 260
    },
    bsmYwsjb: {
      type: String,
261 262
      default: "",
    },
yangwei committed
263
  },
264
  data() {
yangwei committed
265 266 267
    return {
      pickerOptionsStart: {
        // 禁止选择
268
        disabledDate: (time) => {
yangwei committed
269 270 271 272
          let endDateVal = this.ruleForm.CFJSSJ;
          if (endDateVal) {
            return time.getTime() > new Date(endDateVal).getTime();
          }
273
        },
yangwei committed
274 275
      },
      pickerOptionsEnd: {
276
        disabledDate: (time) => {
yangwei committed
277 278
          let beginDateVal = this.ruleForm.CFQSSJ;
          if (beginDateVal) {
279
            return time.getTime() < new Date(beginDateVal).getTime();
yangwei committed
280
          }
281
        },
yangwei committed
282 283
      },
      ruleForm: {
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
        YSDM: "",
        YWH: "",
        BDCDYH: "",
        CFJG: "",
        CFWJ: "",
        CFWH: "",
        CFQSSJ: "",
        CFJSSJ: "",
        CFFW: "",
        QXDM: "",
        DJJG: "",
        DBR: "",
        DJSJ: "",
        JFYWH: "",
        JFJG: "",
        JFWJ: "",
        JFWH: "",
        JFDBR: "",
        JFDJSJ: "",
        FJ: "",
        QSZT: "",
      },
    };
yangwei committed
307 308
  },
  methods: {
309
    async featchData() {
yangwei committed
310
      try {
311 312
        let { result: res } = await qlfQlCfdj.getQlfQlCfdjById(this.bsmSjsb);
        this.ruleForm = res;
yangwei committed
313 314
        //this.featchRule()
      } catch (error) {
315
        this.$refs.msg.messageShow();
yangwei committed
316 317
      }
    },
318
    handleUpdateForm() {
yangwei committed
319 320
      return new Promise(async (resolve) => {
        try {
321
          let res = await qlfQlCfdj.updateQlfQlCfdj(this.ruleForm);
yangwei committed
322
          // this.$refs['formList'].resetFields();
323
          resolve(res.code);
yangwei committed
324
        } catch (error) {
325
          this.$refs.msg.messageShow();
yangwei committed
326
        }
327 328 329 330
      });
    },
  },
};
yangwei committed
331 332 333 334 335 336
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
</style>