Przeglądaj źródła

fix:修改企业准入材料企业类型选择

lazy 1 tydzień temu
rodzic
commit
ecbaf5e70e

+ 17 - 6
src/views/myStoreEnterprise/components/BasicInfo.vue

@@ -9,8 +9,19 @@
       label-width="150px"
       class="rule-form-orange"
     >
-      <el-form-item label="企业类别" prop="typeName">
-        <el-input v-model="ruleForm.typeName" placeholder="请输入企业公司名称" disabled />
+      <el-form-item label="企业类别" prop="companyType">
+        <el-select v-model="ruleForm.companyType" placeholder="请选择企业公司名称" :disabled="disabled">
+          <el-option
+            :key="1"
+            label="企业"
+            value="企业">
+          </el-option>
+          <el-option
+            :key="2"
+            label="个体工商户"
+            value="个体工商户">
+          </el-option>
+        </el-select>
       </el-form-item>
       <el-form-item label="企业名称" prop="enterpriseName">
         <el-input v-model="ruleForm.enterpriseName" placeholder="请输入企业公司名称" disabled />
@@ -37,12 +48,12 @@ export default {
   data() {
     return {
       ruleForm: {
-        typeName: '',
+        companyType: '',
         enterpriseName: '',
         socialCreditCode: ''
       },
       rules: {
-        typeName: [{ required: true, message: '请选择企业类别', trigger: 'blur' }],
+        companyType: [{ required: true, message: '请选择企业类别', trigger: 'blur' }],
         enterpriseName: [{ required: true, message: '请输入企业名称', trigger: 'blur' }],
         socialCreditCode: [{ required: true, message: '请输入统一社会信用代码', trigger: 'blur' }]
       }
@@ -52,9 +63,9 @@ export default {
     baseInfo: {
       handler(newV) {
         if (newV && Object.keys(newV)) {
-          const { typeName, enterpriseName, socialCreditCode } = JSON.parse(JSON.stringify(newV))
+          const { companyType, enterpriseName, socialCreditCode } = JSON.parse(JSON.stringify(newV))
           this.ruleForm = {
-            typeName,
+            companyType,
             enterpriseName,
             socialCreditCode
           }