戴艳蓉 3 rokov pred
rodič
commit
846df4954b

+ 5 - 5
src/views/serviceParam/supplier/components/baseForm.vue

@@ -319,7 +319,7 @@
           />
           />
         </el-form-item>
         </el-form-item>
       </el-col>
       </el-col>
-      <el-col :span="8">
+      <el-col :span="8"  v-if="(ruleForm.supplier_img==='' && (type === 'add'|| type === 'edit'))">
         <el-form-item
         <el-form-item
           label="统一社会信用代码"
           label="统一社会信用代码"
           prop="registercode"
           prop="registercode"
@@ -334,7 +334,7 @@
         </el-form-item>
         </el-form-item>
       </el-col>
       </el-col>
 
 
-      <el-col :span="16" v-if="!(ruleForm.supplier_img && type === 'add')">
+      <el-col :span="16" v-if="(ruleForm.supplier_img==='' && (type === 'add'|| type === 'edit'))">
         <el-form-item label="详细地址" prop="addr">
         <el-form-item label="详细地址" prop="addr">
           <el-input
           <el-input
             v-model="ruleForm.addr"
             v-model="ruleForm.addr"
@@ -347,7 +347,7 @@
           />
           />
         </el-form-item>
         </el-form-item>
       </el-col>
       </el-col>
-      <el-col :span="8" v-if="!(ruleForm.supplier_img && type === 'add')">
+      <el-col :span="8"  v-if="(ruleForm.supplier_img==='' && (type === 'add'|| type === 'edit'))">
         <el-form-item label="公司类型" prop="nature">
         <el-form-item label="公司类型" prop="nature">
           <search-company-type
           <search-company-type
             :value="ruleForm.nature"
             :value="ruleForm.nature"
@@ -363,7 +363,7 @@
         </el-form-item>
         </el-form-item>
       </el-col>
       </el-col>
 
 
-      <el-col :span="16" v-if="!(ruleForm.supplier_img && type === 'add')">
+      <el-col :span="16"  v-if="(ruleForm.supplier_img==='' && (type === 'add'|| type === 'edit'))">
         <el-form-item label="运营范围" prop="scope">
         <el-form-item label="运营范围" prop="scope">
           <el-input
           <el-input
             v-model="ruleForm.scope"
             v-model="ruleForm.scope"
@@ -378,7 +378,7 @@
           />
           />
         </el-form-item>
         </el-form-item>
       </el-col>
       </el-col>
-      <el-col :span="8" v-if="!(ruleForm.supplier_img && type === 'add')">
+      <el-col :span="8"  v-if="(ruleForm.supplier_img==='' && (type === 'add'|| type === 'edit'))">
         <el-form-item label="法人代表" prop="legaler">
         <el-form-item label="法人代表" prop="legaler">
           <el-input
           <el-input
             v-model="ruleForm.legaler"
             v-model="ruleForm.legaler"