Blame view

src/views/ywbl/slsqxx/cfdj/plcfslxx.vue 9.65 KB
1
<!--
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-07-11 09:56:42
5
-->
蔡俊立 committed
6 7 8 9 10 11
<template>
  <div class="slxx">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flagTop" :inline="flag"
      label-width="120px">
      <div class="slxx_con">
        <div class="slxx_title title-block">
12
          申请业务信息
蔡俊立 committed
13 14 15 16
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
17
            <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:" prop="slsq.ywh">
tianhaohao@pashanhoo.com committed
18
              <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
蔡俊立 committed
19 20 21
            </el-form-item>
          </el-col>
          <el-col :span="8">
22 23
            <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:" prop="slsq.slry">
              <el-input disabled v-model="ruleForm.slsq.slry"></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.slsj">
              <el-input disabled v-model="ruleForm.slsq.slsj"></el-input>
蔡俊立 committed
29 30 31 32 33
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
34
            <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:" prop="slsq.qllx">
xiaomiao committed
35
              <el-select disabled v-model="ruleForm.sldyList[0].qllx" filterable clearable placeholder="请选择权利类型">
蔡俊立 committed
36 37 38 39 40 41
                <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
42
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记类型:" prop="slsq.djlx">
xiaomiao committed
43
              <el-select disabled v-model="ruleForm.sldyList[0].djlx" filterable clearable placeholder="请选择登记类型">
蔡俊立 committed
44 45 46 47 48 49
                <el-option v-for="item in dictData['A21']" :key="item.dcode" :label="item.dname" :value="item.dcode">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
50 51
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:" prop="slsq.djqx">
              <el-input disabled v-model="ruleForm.slsq.djqxmc"></el-input>
蔡俊立 committed
52 53 54 55 56 57 58
            </el-form-item>
          </el-col>
        </el-row>
        <div class="slxx_title title-block">
          查封不动产列表
          <div class="triangle"></div>
        </div>
59
        <cfBdcdyTable :tableData="ruleForm.ssQlxxList" />
蔡俊立 committed
60 61 62 63 64 65 66
        <div class="slxx_title title-block">
          批量查封信息
          <div class="triangle"></div>
        </div>
        <el-row :gutter="10">
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封机关:" prop="cfdj.cfjg">
xiaomiao committed
67
              <el-input v-model="ruleForm.cfdjList[0].cfjg" :disabled="!ableOperation|| isJfOperation"></el-input>
蔡俊立 committed
68 69 70
            </el-form-item>
          </el-col>
          <el-col :span="8">
蔡俊立 committed
71
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文号:" prop="cfdj.cfwh">
xiaomiao committed
72
              <el-input v-model="ruleForm.cfdjList[0].cfwh" :disabled="!ableOperation|| isJfOperation"></el-input>
蔡俊立 committed
73 74
            </el-form-item>
          </el-col>
75 76
          <!--  批量查封状态有多种查封类型,不予展示        -->
          <!--          <el-col :span="8">
蔡俊立 committed
77
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflxmc">
78
              <el-input v-model="ruleForm.cfdjList[0].cflxmc" disabled></el-input>
蔡俊立 committed
79
            </el-form-item>
80
          </el-col>-->
蔡俊立 committed
81 82 83
        </el-row>
        <el-row :gutter="10">
          <el-col :span="8">
蔡俊立 committed
84
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封期限:" prop="cfdj.cfqx">
xiaomiao committed
85
              <el-input v-model="ruleForm.cfdjList[0].cfqx" :disabled="!ableOperation|| isJfOperation"></el-input>
蔡俊立 committed
86 87 88 89
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封起始时间:" prop="cfdj.cfqssj">
90
              <el-date-picker v-model="ruleForm.cfdjList[0].cfqssj" class="width100" type="date" placeholder="选择日期"
xiaomiao committed
91
                value-format="yyyy-MM-dd" :disabled="!ableOperation|| isJfOperation"></el-date-picker>
蔡俊立 committed
92 93 94 95
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封结束时间:" prop="cfdj.cfjssj">
96
              <el-date-picker v-model="ruleForm.cfdjList[0].cfjssj" class="width100"
xiaomiao committed
97
                :disabled="!ableOperation|| isJfOperation" type="date" placeholder="选择日期"
98
                value-format="yyyy-MM-dd"></el-date-picker>
蔡俊立 committed
99 100 101 102
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
蔡俊立 committed
103 104
          <el-col :span="8">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文件:" prop="cfdj.cfwj">
xiaomiao committed
105
              <el-input v-model="ruleForm.cfdjList[0].cfwj" :disabled="!ableOperation|| isJfOperation"></el-input>
蔡俊立 committed
106 107 108
            </el-form-item>
          </el-col>
          <el-col :span="16">
蔡俊立 committed
109
            <el-form-item :class="flag ? 'marginBot0' : ''" label="查封范围:" prop="cfdj.cffw">
xiaomiao committed
110
              <el-input v-model="ruleForm.cfdjList[0].cffw" :disabled="!ableOperation|| isJfOperation"></el-input>
蔡俊立 committed
111 112 113 114 115 116
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="24">
            <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="cfdj.fj">
xiaomiao committed
117
              <el-input v-model="ruleForm.cfdjList[0].fj" type="textarea" :disabled="!ableOperation|| isJfOperation">
118
              </el-input>
蔡俊立 committed
119 120 121 122 123 124
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col>
            <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="cfdj.djyy">
125
              <el-input class="textArea" type="textarea" v-model="ruleForm.cfdjList[0].djyy"
xiaomiao committed
126
                :disabled="!ableOperation|| isJfOperation"></el-input>
蔡俊立 committed
127 128 129
            </el-form-item>
          </el-col>
        </el-row>
蔡俊立 committed
130 131
        <div v-if="propsParam.djlx == '400'">
          <div class="slxx_title title-block">
132 133
            解封信息
            <div class="triangle"></div>
蔡俊立 committed
134 135 136 137
          </div>
          <el-row :gutter="10">
            <el-col :span="8">
              <el-form-item :class="flag ? 'marginBot0' : ''" label="解封机关:" prop="cfdj.jfjg">
xiaomiao committed
138
                <el-input v-model="ruleForm.cfdjList[0].jfjg" :disabled="!ableOperation"></el-input>
蔡俊立 committed
139 140 141 142
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文件:" prop="cfdj.jfwj">
xiaomiao committed
143
                <el-input v-model="ruleForm.cfdjList[0].jfwj" :disabled="!ableOperation"></el-input>
蔡俊立 committed
144 145 146 147
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item :class="flag ? 'marginBot0' : ''" label="解封文号:" prop="cfdj.jfwh">
xiaomiao committed
148
                <el-input v-model="ruleForm.cfdjList[0].jfwh" :disabled="!ableOperation"></el-input>
蔡俊立 committed
149 150 151 152
              </el-form-item>
            </el-col>
          </el-row>
        </div>
蔡俊立 committed
153
      </div>
xiaomiao committed
154
      <el-row class="btn" v-if="ableOperation">
蔡俊立 committed
155 156 157 158 159 160 161 162
        <el-form-item :class="flag ? 'marginBot0' : ''">
          <el-button type="primary" @click="onSubmit">保存</el-button>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>
<script>
163 164 165 166 167 168
  import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable";
  import { BatchInit, batchSaveData } from "@/api/workflow/cfdjFlow.js";
  import { mapGetters } from "vuex";
  export default {
    data () {
      return {
169 170
        //表单是否可操作
        ableOperation: true,
171 172 173 174 175 176 177
        disabled: true,
        flagTop: this.flag ? "top" : "",
        rules: {},
        //传递参数
        propsParam: {},
        //页面数据
        ruleForm: {
178
          slsq: {},
179 180 181 182 183 184 185
          cfdj: {},
        },
        isJfOperation: false,
        tableData: []
      };
    },
    created () {
186
      this.ableOperation = this.$parent.currentSelectTab.ableOperation
187 188 189 190
      this.propsParam = this.$attrs;
      var formdata = new FormData();
      if (this.propsParam.djlx == '400') {
        this.isJfOperation = true;
蔡俊立 committed
191
      }
192 193 194 195 196 197 198
      formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
      formdata.append("djlx", this.propsParam.djlx);
      BatchInit(formdata).then((res) => {
        if (res.code === 200 && res.result) {
          this.ruleForm = res.result
        }
      })
蔡俊立 committed
199
    },
200 201 202 203 204 205 206 207 208 209 210 211 212
    components: { cfBdcdyTable },
    props: {
      flag: {
        type: Boolean,
        default: false,
      },
      fetch: {
        type: Boolean,
        default: false,
      },
    },
    computed: {
      ...mapGetters(["dictData"]),
蔡俊立 committed
213 214
    },

215
    methods: {
yuanbo committed
216 217 218 219
      /**
       * @description: onSubmit
       * @author: renchao
       */
220 221 222 223 224 225 226 227
      onSubmit () {
        this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
        batchSaveData(this.ruleForm).then((res) => {
          if (res.code === 200) {
            this.$message.success('保存成功');
          }
        });
      },
yuanbo committed
228 229 230 231 232
      /**
       * @description: changeCflx
       * @param {*} e
       * @author: renchao
       */
233 234 235 236 237
      changeCflx (e) {
        let cflxItem = {}
        cflxItem = this.dictData['A32'].find((item) => {
          return item.dcode == e
        })
238
        this.ruleForm.cfdjList[0].cflxmc = cflxItem.dname;
239
      }
蔡俊立 committed
240
    },
241
  };
蔡俊立 committed
242 243
</script>
<style scoped lang='scss'>
244 245
  @import "~@/styles/public.scss";
  @import "~@/styles/slxx/slxx.scss";
246
</style>