Explorar el Código

增加企业信用字段

lcmxs hace 1 año
padre
commit
f8da87e138
Se han modificado 1 ficheros con 32 adiciones y 2 borrados
  1. 32 2
      src/views/GARDENBASEDATA/index.vue

+ 32 - 2
src/views/GARDENBASEDATA/index.vue

@@ -138,6 +138,8 @@
       </el-table-column>
       <el-table-column label="经营范围 " align="center" prop="jyfw" show-overflow-tooltip>
       </el-table-column>
+      <el-table-column label="企业信用 " align="center" prop="grade">
+      </el-table-column>
       <el-table-column label="企业资质 " align="center" prop="qyzz">
       </el-table-column>
       <el-table-column label="主要市场 " align="center" prop="zysc">
@@ -309,7 +311,18 @@
                   ></el-input>
                 </el-form-item>
               </el-col>
-              <el-col :span="12"></el-col>
+              <el-col :span="12">
+                <el-form-item label="信用等级" prop="grade">
+                  <el-select v-model="form.grade" placeholder="请选择" style="width: 100%">
+                    <el-option
+                      v-for="item in options"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
             </el-row>
           </el-form>
         </el-tab-pane>
@@ -672,14 +685,31 @@ export default {
             trigger: "blur",
           },
         ],
+        grade: [
+          { required: true, message: "信用等级 不能为空", trigger: "blur" },
+        ],
       },
+      options: [{
+        value: '1',
+        label: '1'
+      }, {
+        value: '2',
+        label: '2'
+      }, {
+        value: '3',
+        label: '3'
+      }, {
+        value: '4',
+        label: '4'
+      }],
+      value: ''
     };
   },
   created() {
     this.getList();
     getEnterprise().then((res) => {
       this.detpList = res.data
-      
+
     });
   },
   methods: {