Bläddra i källkod

新增 船舶主要项目页

王智慧 3 år sedan
förälder
incheckning
c2f7096ece

+ 15 - 6
src/components/ShipInfo.vue

@@ -146,7 +146,7 @@
         </div>
         <div class="df aic pl40 pb20">
           <div class="c6 fs16 mr30">{{ item.typeName }}</div>
-          <div>
+          <div v-if="item.type != 0">
             <el-date-picker
               style="width: 240px"
               v-model="item.date"
@@ -284,6 +284,14 @@ let initShipInfo = {
   shipId: 0,
   disabled: false,
   shipCerts: [
+    {
+      typeName: "船舶主要项目页",
+      type: 0,
+      date: "",
+      startValidTime: "",
+      endtValidTime: "",
+      certs: [],
+    },
     {
       typeName: "船舶国籍证书",
       type: 1,
@@ -342,11 +350,12 @@ async function searchShip(e) {
   });
   loading.close();
   if (data.status == 0) {
-    data.result.shipCerts[0].typeName = "船舶国籍证书";
-    data.result.shipCerts[1].typeName = "内河船舶适航证书";
-    data.result.shipCerts[2].typeName = "船舶年审合格证书";
-    data.result.shipCerts[3].typeName = "内河船舶最低安全配员证书";
-    data.result.shipCerts[4].typeName = "船舶保险";
+    data.result.shipCerts[0].typeName = "船舶主要项目页";
+    data.result.shipCerts[1].typeName = "船舶国籍证书";
+    data.result.shipCerts[2].typeName = "内河船舶适航证书";
+    data.result.shipCerts[3].typeName = "船舶年审合格证书";
+    data.result.shipCerts[4].typeName = "内河船舶最低安全配员证书";
+    data.result.shipCerts[5].typeName = "船舶保险";
     for (let i of data.result.shipCerts) {
       for (let j of i.certs) {
         j.url = j.viewUrl;

+ 8 - 0
src/views/shipOwnerManage/shipOwnerDetail.vue

@@ -192,6 +192,14 @@ let initShipInfo = {
   shipId: 0,
   disabled: false,
   shipCerts: [
+    {
+      typeName: "船舶主要项目页",
+      type: 0,
+      date: "",
+      startValidTime: "",
+      endtValidTime: "",
+      certs: [],
+    },
     {
       typeName: "船舶国籍证书",
       type: 1,

+ 11 - 31
src/views/workStation/certsManage.vue

@@ -17,39 +17,19 @@
           下月
         </el-button>
       </el-button-group>
-      <!-- <el-button-group>
-        <el-button
-          size="large"
-          :type="certType == 1 ? 'primary' : ''"
-          @click="(currentPage = 1), (certType = 1), getCertList()"
-        >
-          船舶国籍证书
-        </el-button>
-        <el-button
-          size="large"
-          :type="certType == 2 ? 'primary' : ''"
-          @click="(currentPage = 1), (certType = 2), getCertList()"
-        >
-          内河船舶适航证书
-        </el-button>
-        <el-button
-          size="large"
-          :type="certType == 3 ? 'primary' : ''"
-          @click="(currentPage = 1), (certType = 3), getCertList()"
-        >
-          船舶年审合格证书
-        </el-button>
-        <el-button
-          size="large"
-          :type="certType == 4 ? 'primary' : ''"
-          @click="(currentPage = 1), (certType = 4), getCertList()"
-        >
-          内河船舶最低安全配员证书
-        </el-button>
-      </el-button-group> -->
     </div>
     <div class="df">
       <div class="btns mr20 mt50">
+        <div>
+          <el-button
+            size="large"
+            :type="certType == 0 ? 'primary' : ''"
+            @click="(currentPage = 1), (certType = 0), getCertList()"
+            class="btn"
+          >
+            船舶主要项目页
+          </el-button>
+        </div>
         <div>
           <el-button
             size="large"
@@ -165,7 +145,7 @@ import { subTimeStr } from "../../utils/utils";
 
 const route = useRoute();
 let type = ref(1);
-let certType = ref(1);
+let certType = ref(0);
 let tableData = ref([]);
 let total = ref(0);
 let currentPage = ref(1);