Quellcode durchsuchen

更新 报港文案显示

wzh vor 3 Jahren
Ursprung
Commit
f461b23e83

+ 6 - 1
src/views/voyage/portDeclarationDetail.vue

@@ -99,7 +99,12 @@
     </div>
   </div>
   <div class="df jcfe mt20 mr20 mb20">
-    <el-button @click="portReport" type="primary">申请报港</el-button>
+    <el-button
+      @click="portReport"
+      v-if="detail.portReportStatus == 0"
+      type="primary"
+      >申请报港</el-button
+    >
   </div>
 </template>
 <script setup>

+ 3 - 2
src/views/voyage/portDeclarationList.vue

@@ -51,7 +51,7 @@
           align="center"
         ></el-table-column>
         <el-table-column
-          prop=""
+          prop="expectedArrivalTime"
           label="预计到港时间"
           align="center"
         ></el-table-column>
@@ -67,7 +67,7 @@
               type="text"
               size="small"
             >
-              申请报港
+              {{ status == "已报港" ? "查看" : "申请报港" }}
             </el-button>
           </template>
         </el-table-column>
@@ -117,6 +117,7 @@ async function portDeclarationDetail(id) {
     path: "/voyage/portDeclarationDetail",
     query: {
       id,
+      status: status.value,
     },
   });
 }