Selaa lähdekoodia

新增 日报,单据,报港

wzh 3 vuotta sitten
vanhempi
commit
77cf409e06

+ 31 - 0
src/apis/fetch.js

@@ -372,11 +372,42 @@ export default {
     return $http("/proxy/account/add", data);
   },
 
+  // 获取船舶下拉
   getShipSelect(data) {
     return $http("/ship/select", data);
   },
 
+  // 获取货主下拉
   getCargoOwnerSelect(data) {
     return $http("/user/cargoOwner/select", data);
   },
+
+  // 获取日报列表
+  getDailyList(data) {
+    return $http("/dayReport/list", data);
+  },
+
+  // 获取日报媒体
+  getDailyMedia(data) {
+    return $http("/dayReport/list", data);
+  },
+  // 日报媒体审核
+  auditDailyMedia(data) {
+    return $http("/dayReport/list", data);
+  },
+
+  // 获取报岗列表
+  getReportList(data) {
+    return $http("/port/report/list", data);
+  },
+
+  // 获取报岗详情
+  getReportDetail(data) {
+    return $http("/port/report/detail", data);
+  },
+
+  // 报港
+  portReport(data) {
+    return $http("/port/report/report", data);
+  },
 };

+ 15 - 0
src/auth/menuData.js

@@ -9,6 +9,21 @@ let menuData = [
         name: "航次列表",
         code: "VOYAGELIST",
       },
+      {
+        path: "/voyage/dailyList",
+        name: "日报列表",
+        code: "DAYREPORTLIST",
+      },
+      {
+        path: "/voyage/billList",
+        name: "单据列表",
+        code: "BILLLIST",
+      },
+      {
+        path: "/voyage/portDeclarationList",
+        name: "报港",
+        code: "DECLARE",
+      },
     ],
   },
   {

+ 27 - 0
src/router/index.js

@@ -108,6 +108,33 @@ const router = createRouter({
       },
       component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
     },
+    {
+      path: "/voyage/dailyList",
+      name: "dailyList",
+      meta: {
+        title: "日报列表",
+        code: "DAYREPORTLIST",
+      },
+      component: () => import("../views/voyage/dailyList.vue"),
+    },
+    {
+      path: "/voyage/billList",
+      name: "billList",
+      meta: {
+        title: "单据列表",
+        code: "BILLLIST",
+      },
+      component: () => import("../views/voyage/billList.vue"),
+    },
+    {
+      path: "/voyage/portDeclarationList",
+      name: "portDeclarationList",
+      meta: {
+        title: "报岗",
+        code: "DECLARE",
+      },
+      component: () => import("../views/voyage/portDeclarationList.vue"),
+    },
   ],
 });
 

+ 0 - 0
src/views/voyage/billList.vue


+ 184 - 0
src/views/voyage/dailyList.vue

@@ -0,0 +1,184 @@
+<template>
+  <div class="full-container-p24">
+    <div style="display: flex; justify-content: space-between">
+      <div style="display: flex">
+        <el-radio-group v-model="status" class="mr30" @change="changeStatus">
+          <el-radio-button label="已拍照" />
+          <el-radio-button label="未拍照" />
+        </el-radio-group>
+        <el-input
+          placeholder="船名/MMSI/手机号"
+          prefix-icon="el-icon-search"
+          v-model="term"
+          clearable
+          style="height: 32px; width: 330px; line-height: 32px"
+        ></el-input>
+        <div class="seach-btn" @click="getDailyList(1)">查询</div>
+      </div>
+    </div>
+    <div style="margin-top: 24px">
+      <el-table :data="tableData" stripe style="width: 100%">
+        <el-table-column
+          type="index"
+          label="序号"
+          min-width="80"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="voyageName"
+          label="航次名称"
+          min-width="120"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="shipName"
+          label="船舶名称"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="loadPort"
+          label="装货港"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="discPort"
+          label="卸货港"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="cargo"
+          label="货种"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="transStatusName"
+          label="航次状态"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="shipOwner"
+          label="船东姓名"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="shipOwnerPhone"
+          label="船东手机号"
+          align="center"
+        ></el-table-column>
+        <el-table-column label="操作" min-width="80" align="center">
+          <template v-slot="scope">
+            <el-button
+              @click="shipOwnerDetail(scope.row.userId, tableData)"
+              type="text"
+              size="small"
+            >
+              审核
+            </el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <div style="width: 100%; text-align: right; margin-top: 43px">
+        <el-pagination
+          background
+          layout="prev, pager, next"
+          :total="total"
+          @current-change="pageChange"
+          :current-page="currentPage"
+        ></el-pagination>
+      </div>
+    </div>
+  </div>
+</template>
+<script setup>
+import { ref, h, reactive, toRefs, onMounted } from "vue";
+import { ElNotification, ElMessageBox, ElMessage } from "element-plus";
+import store from "../../store";
+import router from "../../router";
+import md5 from "md5";
+import api from "../../apis/fetch";
+let currentPage = ref(1);
+let term = ref("");
+let tableData = ref([]);
+let total = ref(0);
+async function getDailyList(page) {
+  currentPage.value = page || currentPage.value;
+  let res = await api.getDailyList({
+    currentPage: currentPage.value,
+    status: status.value == "已拍照" ? 1 : 2,
+    size: 10,
+    term: term.value,
+  });
+  if (res.data.status == 0) {
+    tableData.value = res.data.result;
+    total.value = res.data.total;
+  } else {
+    tableData.value = [];
+    total.value = 0;
+  }
+}
+
+async function shipOwnerDetail(userId) {
+  router.push({
+    path: "/shipOwnerManage/shipOwnerDetail",
+    query: {
+      userId,
+    },
+  });
+}
+function pageChange(e) {
+  currentPage.value = e;
+  getDailyList();
+}
+
+let status = ref("已拍照");
+function changeStatus(e) {
+  getDailyList(1);
+}
+onMounted(() => {
+  getDailyList();
+});
+</script>
+<style scoped>
+.seach-btn {
+  display: inline-block;
+  width: 60px;
+  height: 38px;
+  background: #0094fe;
+  border-radius: 2px;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #ffffff;
+  text-align: center;
+  line-height: 38px;
+  margin-left: 10px;
+  cursor: pointer;
+}
+
+.cargo-owner-add {
+  width: 80px;
+  height: 32px;
+  border-radius: 2px;
+  border: 1px solid #0094fe;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #0094fe;
+  line-height: 32px;
+  text-align: center;
+  cursor: pointer;
+}
+
+:deep().el-dialog {
+  width: 560px;
+  padding: 20px 50px;
+  border-radius: 6px;
+}
+
+:deep() .el-dialog__title {
+  font-size: 18px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #0094fe;
+}
+</style>

+ 187 - 0
src/views/voyage/portDeclarationList.vue

@@ -0,0 +1,187 @@
+<template>
+  <div class="full-container-p24">
+    <div style="display: flex; justify-content: space-between">
+      <div style="display: flex">
+        <el-radio-group v-model="status" class="mr30" @change="changeStatus">
+          <el-radio-button label="已报港" />
+          <el-radio-button label="未报港" />
+        </el-radio-group>
+        <el-input
+          placeholder="船名/MMSI/手机号"
+          prefix-icon="el-icon-search"
+          v-model="term"
+          clearable
+          style="height: 32px; width: 330px; line-height: 32px"
+        ></el-input>
+        <div class="seach-btn" @click="getReportList(1)">查询</div>
+      </div>
+      <el-button type="primary" @click="goToReport">申请报港</el-button>
+    </div>
+    <div style="margin-top: 24px">
+      <el-table :data="tableData" stripe style="width: 100%">
+        <el-table-column
+          type="index"
+          label="序号"
+          min-width="80"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="voyageName"
+          label="航次名称"
+          min-width="120"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="shipName"
+          label="船舶名称"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="loadPort"
+          label="装货港"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="discPort"
+          label="卸货港"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="cargo"
+          label="货种"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="transStatusName"
+          label="航次状态"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="shipOwner"
+          label="船东姓名"
+          align="center"
+        ></el-table-column>
+        <el-table-column
+          prop="shipOwnerPhone"
+          label="船东手机号"
+          align="center"
+        ></el-table-column>
+        <el-table-column label="操作" min-width="80" align="center">
+          <template v-slot="scope">
+            <el-button
+              @click="shipOwnerDetail(scope.row.userId, tableData)"
+              type="text"
+              size="small"
+            >
+              审核
+            </el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <div style="width: 100%; text-align: right; margin-top: 43px">
+        <el-pagination
+          background
+          layout="prev, pager, next"
+          :total="total"
+          @current-change="pageChange"
+          :current-page="currentPage"
+        ></el-pagination>
+      </div>
+    </div>
+  </div>
+</template>
+<script setup>
+import { ref, h, reactive, toRefs, onMounted } from "vue";
+import { ElNotification, ElMessageBox, ElMessage } from "element-plus";
+import store from "../../store";
+import router from "../../router";
+import md5 from "md5";
+import api from "../../apis/fetch";
+let currentPage = ref(1);
+let term = ref("");
+let tableData = ref([]);
+let total = ref(0);
+async function getReportList(page) {
+  currentPage.value = page || currentPage.value;
+  let res = await api.getReportList({
+    currentPage: currentPage.value,
+    type: status.value == "已报港" ? 1 : 0,
+    size: 10,
+    term: term.value,
+  });
+  if (res.data.status == 0) {
+    tableData.value = res.data.result;
+    total.value = res.data.total;
+  } else {
+    tableData.value = [];
+    total.value = 0;
+  }
+}
+
+async function shipOwnerDetail(userId) {
+  router.push({
+    path: "/shipOwnerManage/shipOwnerDetail",
+    query: {
+      userId,
+    },
+  });
+}
+function pageChange(e) {
+  currentPage.value = e;
+  getReportList();
+}
+
+let status = ref("已报港");
+function changeStatus(e) {
+  getReportList(1);
+}
+
+function goToReport() {}
+onMounted(() => {
+  getReportList();
+});
+</script>
+<style scoped>
+.seach-btn {
+  display: inline-block;
+  width: 60px;
+  height: 38px;
+  background: #0094fe;
+  border-radius: 2px;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #ffffff;
+  text-align: center;
+  line-height: 38px;
+  margin-left: 10px;
+  cursor: pointer;
+}
+
+.cargo-owner-add {
+  width: 80px;
+  height: 32px;
+  border-radius: 2px;
+  border: 1px solid #0094fe;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #0094fe;
+  line-height: 32px;
+  text-align: center;
+  cursor: pointer;
+}
+
+:deep().el-dialog {
+  width: 560px;
+  padding: 20px 50px;
+  border-radius: 6px;
+}
+
+:deep() .el-dialog__title {
+  font-size: 18px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #0094fe;
+}
+</style>