Blame view

src/views/workflow/components/dialog/addQlr.vue 7.1 KB
1
<!--
2
 * @Description:
3 4 5
 * @Autor: renchao
 * @LastEditTime: 2023-05-17 10:39:47
-->
任超 committed
6
<template>
任超 committed
7
  <dialogBox title="申请人信息" width="60%" isMain v-model="myValue" :isFullscreen="false" @submitForm="submitForm"
蔡俊立 committed
8
    @closeDialog="closeDialog" :isButton="showButton">
任超 committed
9
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px">
任超 committed
10 11
      <el-row>
        <el-col :span="8">
田浩浩 committed
12
          <el-form-item label="权利人类型" prop="sqrlx">
任超 committed
13 14
            <el-select clearable v-model="ruleForm.sqrlx" class="width100" placeholder="请选择">
              <el-option v-for="item in dictData['A36']" :key="item.dcode" :label="item.dname" :value="item.dcode">
任超 committed
15 16 17 18 19
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
20 21
          <el-form-item label="姓名/名称" prop="sqrmc">
            <el-input v-model="ruleForm.sqrmc" maxlegth="15"></el-input>
任超 committed
22 23 24 25
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="证件种类" prop="zjzl">
任超 committed
26 27
            <el-select clearable v-model="ruleForm.zjzl" class="width100" placeholder="请选择">
              <el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode">
任超 committed
28 29 30 31 32 33 34 35
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
          <el-form-item label="证件号" prop="zjh">
蔡俊立 committed
36
            <el-input v-model="ruleForm.zjh" maxlength="15" oninput="this.value=this.value.replace(/[^\X0-9]/g,'')"></el-input>
任超 committed
37 38 39
          </el-form-item>
        </el-col>
        <el-col :span="8">
田浩浩 committed
40
          <el-form-item label="联系电话" prop="dh">
蔡俊立 committed
41
            <el-input v-model="ruleForm.dh" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')"></el-input>
任超 committed
42 43 44
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
45
          <el-form-item label="性别">
任超 committed
46 47
            <el-select clearable v-model="ruleForm.xb" class="width100" placeholder="请选择">
              <el-option v-for="item in dictData['A43']" :key="item.dcode" :label="item.dname" :value="item.dcode">
任超 committed
48 49
              </el-option>
            </el-select>
任超 committed
50 51 52 53
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
任超 committed
54
        <el-col :span="8">
任超 committed
55
          <el-form-item label="法人名称">
任超 committed
56 57 58 59
            <el-input v-model="ruleForm.frmc"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
60
          <el-form-item label="国家/地区">
61
            <el-input v-model="ruleForm.gj"></el-input>
任超 committed
62 63 64
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
65
          <el-form-item label="户籍所在省市">
66
            <el-input v-model="ruleForm.hjszss"></el-input>
任超 committed
67 68 69 70 71 72
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="16">
任超 committed
73
          <el-form-item label="地址">
1  
jiaozeping@pashanhoo.com committed
74
            <el-input v-model="ruleForm.txdz"></el-input>
任超 committed
75 76 77
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
78
          <el-form-item label="邮编">
任超 committed
79 80 81 82
            <el-input v-model="ruleForm.yb"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
任超 committed
83

任超 committed
84 85
      <el-row>
        <el-col :span="8">
任超 committed
86
          <el-form-item label="发证机关">
任超 committed
87 88 89 90
            <el-input v-model="ruleForm.fzjg"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
91
          <el-form-item label="电子邮件">
任超 committed
92 93 94 95
            <el-input v-model="ruleForm.dzyj"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
96
          <el-form-item label="权利比例">
任超 committed
97 98 99 100 101 102 103
            <el-input v-model="ruleForm.qlbl"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
任超 committed
104
          <el-form-item label="工作单位">
任超 committed
105 106 107 108
            <el-input v-model="ruleForm.gzdw"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="16">
任超 committed
109
          <el-form-item label="代理机构">
110
            <el-input v-model="ruleForm.dlrjg"></el-input>
任超 committed
111 112 113 114 115 116
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="8">
蔡俊立 committed
117
          <el-form-item label="联系电话">
118
            <el-input v-model="ruleForm.dlrdh" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')"></el-input>
任超 committed
119 120 121
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
122
          <el-form-item label="代理人姓名">
123
            <el-input v-model="ruleForm.dlrmc"></el-input>
任超 committed
124 125 126
          </el-form-item>
        </el-col>
        <el-col :span="8">
任超 committed
127
          <el-form-item label="代理人证件类型">
任超 committed
128 129
            <el-select clearable v-model="ruleForm.dlrzjlx" class="width100" placeholder="请选择">
              <el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode">
任超 committed
130 131 132 133 134 135 136
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
任超 committed
137
          <el-form-item label="代理人证件号">
任超 committed
138 139 140
            <el-input v-model="ruleForm.dlrzjh" maxlength="20"></el-input>
          </el-form-item>
        </el-col>
任超 committed
141 142 143 144 145
      </el-row>
    </el-form>
  </dialogBox>
</template>
<script>
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
  import { mapGetters } from "vuex";
  export default {
    props: {
      value: { type: Boolean, default: false },
      details: { type: Object, default: {} },
      showButton: { type: Boolean, default: false }
    },
    computed: {
      ...mapGetters(["dictData"]),
    },
    data () {
      return {
        myValue: this.value,
        ruleForm: {
          sqrlx: "",
          sqrmc: "",
          zjzl: "",
          zjh: "",
          dh: "",
          xb: "",
          frmc: "",
167 168
          gj: "",
          hjszss: "",
169 170 171 172 173 174
          txdz: "",
          yb: "",
          fzjg: "",
          dzyj: "",
          qlbl: "",
          gzdw: "",
175 176
          dlrjg: "",
          dlrmc: "",
177 178
          dlrzjlx: "",
          dlrzjh: "",
179
          dlrdh:"",
180 181 182 183 184 185 186 187 188 189 190 191
        },
        rules: {
          sqrlx: [{ required: true, message: "权利人类型", trigger: "change" }],
          sqrmc: [{ required: true, message: "姓名/名称", trigger: "blur" }],
          zjzl: [{ required: true, message: "证件种类", trigger: "change" }],
          zjh: [{ required: true, message: "证件号", trigger: "blur" }],
        },
      };
    },
    watch: {
      value (val) {
        this.myValue = _.cloneDeep(val);
任超 committed
192
      },
193 194 195 196 197
      details: {
        handler: function (val, oldVal) {
          this.ruleForm = val;
        },
        deep: true,
1  
jiaozeping@pashanhoo.com committed
198
      },
任超 committed
199
    },
200 201 202 203 204 205 206 207 208 209 210 211 212 213
    methods: {
      closeDialog () {
        this.$emit("input", false);
        this.$refs["ruleForm"].resetFields();
      },
      submitForm () {
        this.$refs.ruleForm.validate((valid) => {
          if (valid) {
            this.$emit("input", false);
            this.$emit("updateDetail", _.cloneDeep(this.ruleForm));
          } else {
            return false;
          }
        });
任超 committed
214
      },
1  
jiaozeping@pashanhoo.com committed
215
    },
216
  };
任超 committed
217 218
</script>
<style scoped lang="scss">
219 220 221 222 223 224 225
  @import "~@/styles/dialogBoxheader.scss";
  .submit-button {
    text-align: center;
    height: 52px;
    padding-top: 10px;
    background-color: #fff;
  }
任超 committed
226
</style>