Selaa lähdekoodia

医健宝-多店铺审核页面优化

chenguo 4 päivää sitten
vanhempi
commit
dadaf19f59

+ 7 - 3
src/views/hisStore/components/storeDetails.vue

@@ -162,7 +162,7 @@
 
 
       </el-descriptions>
-      <div v-if="item.isAudit===0" class="dialog">
+      <div v-if="item.isAudit===0 && this.showAudit" class="dialog">
         <el-divider content-position="left">审核</el-divider>
         <el-form ref="form1" :model="form1" :rules="rules1" label-width="80px">
           <el-form-item label="审核理由" prop="reason">
@@ -214,6 +214,7 @@ export default {
   props:["data"],
   data() {
     return {
+      showAudit: true,
       statusOptions: [],
       // 审核状态字典
       isAuditOptions: [],
@@ -243,8 +244,11 @@ export default {
     this.form1 = {};
   },
   methods: {
-    getDetails(orderId) {
-      this.item = null;
+    getDetails(orderId,showAudit) {
+      if(showAudit === 0) {
+        this.showAudit = false
+      }
+      this.item = null
       Promise.all([getStore(orderId), getStoreAuditLog(orderId)])
         .then(([storeResponse, auditResponse]) => {
           this.item = storeResponse.data;

+ 1 - 1
src/views/hisStore/store/index.vue

@@ -737,7 +737,7 @@ export default {
     handledetails(row) {
       this.show.open = true;
       setTimeout(() => {
-        this.$refs.Details.getDetails(row.storeId);
+        this.$refs.Details.getDetails(row.storeId,0);
       }, 1);
     },