Explorar o código

注册查看历史

Signed-off-by: lijunqing <lijunqing@dashoo.cn>
lijunqing %!s(int64=6) %!d(string=hai) anos
pai
achega
f2a3475851

+ 8 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/companyaudit/index.vue

@@ -35,14 +35,15 @@
           <el-table :data="list" size="mini" border style="width: 100%">
             <el-table-column label="操作" width="120" align="center" header-align="center" fixed="right">
               <template slot-scope="scope">
-                <el-button size="medium" type="text" title="审核" @click="checkData(scope.row)" :disabled="scope.row.CheckStatus == 1 ||scope.row.CheckStatus == -1">审核</el-button>
+                <el-button size="medium" type="text" title="审核" @click="checkData(scope.row)" v-if="scope.row.CheckStatus == 0">审核</el-button>
+                <el-button size="medium" type="text" title="查看" @click="checkData(scope.row)" v-if="scope.row.CheckStatus == 1 || scope.row.CheckStatus == -1">查看</el-button>
               </template>
             </el-table-column>
             <el-table-column prop="CheckStatus" label="审核状态" width="120" align="center" header-align="center" show-overflow-tooltip>
               <template slot-scope="scope">
-                <span v-if="scope.row.CheckStatus == 0" style="color:#E6A23C">待审</span>
-                <span v-if="scope.row.CheckStatus == 1" style="color:#67C23A">审通过</span>
-                <span v-if="scope.row.CheckStatus == -1" style="color:#F56C6C">审未通过</span>
+                <span v-if="scope.row.CheckStatus == 0" style="color:#E6A23C">待审</span>
+                <span v-if="scope.row.CheckStatus == 1" style="color:#67C23A">审通过</span>
+                <span v-if="scope.row.CheckStatus == -1" style="color:#F56C6C">审未通过</span>
               </template>
             </el-table-column>
             <el-table-column prop="SupplierName" label="公司名称" align="center" header-align="center" show-overflow-tooltip></el-table-column>
@@ -150,7 +151,7 @@
         <!-- </el-row> -->
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
-        <el-button  type="primary" size="mini" @click="ComAudit">审核</el-button>
+        <el-button  type="primary" size="mini" v-if="showorhid==0" @click="ComAudit">审核</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="Auditshow">
@@ -202,6 +203,7 @@
           Name: '' //公司名称
         },
         dialogVisible: false,
+        showorhid:0,
         urlList: [], //照片地址数组
         urlList2: [], //照片地址数组2
         formData: {
@@ -298,6 +300,7 @@
         let _this = this
         _this.formData = row
         _this.dialogVisible = true
+        _this.showorhid=row.CheckStatus
 
         //处理URL
         _this.urlList = []