浏览代码

feat:物流通知

zh 2 年之前
父节点
当前提交
4d5db3c340

+ 9 - 0
src/api/dashboard.js

@@ -79,3 +79,12 @@ export function setMenuList(params) {
     params
     params
   })
   })
 }
 }
+
+// 常用菜单-列表
+export function getListInvoiceOrder(params) {
+  return request({
+    url: `/pick/listInvoiceOrder`,
+    method: 'get',
+    params
+  })
+}

+ 2 - 2
src/layout/components/Navbar.vue

@@ -16,7 +16,7 @@
           ></i>
           ></i>
         </el-tooltip>
         </el-tooltip>
       </div> -->
       </div> -->
-      <div class="right-menu-item hover-effect" style="display: flex" @click="handleNotice">
+      <div class="right-menu-item hover-effect" style="display: flex" @click="handleNotice('click')">
         <el-badge value="示">
         <el-badge value="示">
           <i class="el-icon-message-solid" style="font-size: 24px; line-height: 50px" />
           <i class="el-icon-message-solid" style="font-size: 24px; line-height: 50px" />
         </el-badge>
         </el-badge>
@@ -271,7 +271,7 @@ export default {
       })
       })
     },
     },
     handleNotice(flag = true) {
     handleNotice(flag = true) {
-      if (flag) {
+      if (flag || flag == 'click') {
         this.getNoticeList()
         this.getNoticeList()
       }
       }
       this.$store.commit('user/SET_STATUS', !this.hasNotice)
       this.$store.commit('user/SET_STATUS', !this.hasNotice)

+ 103 - 5
src/views/dashboard/index.vue

@@ -74,12 +74,14 @@
         <el-radio-button label="1">系统通知</el-radio-button>
         <el-radio-button label="1">系统通知</el-radio-button>
         <el-radio-button label="2">文件下发</el-radio-button>
         <el-radio-button label="2">文件下发</el-radio-button>
         <el-radio-button label="3">返利确认单</el-radio-button>
         <el-radio-button label="3">返利确认单</el-radio-button>
+        <el-radio-button label="4">物流通知</el-radio-button>
       </el-radio-group>
       </el-radio-group>
       <br />
       <br />
       <br />
       <br />
       <!-- 系统通知 -->
       <!-- 系统通知 -->
       <div v-show="type == '1'" class="table">
       <div v-show="type == '1'" class="table">
         <el-table
         <el-table
+          ref="table"
           v-loading="listLoading"
           v-loading="listLoading"
           class="cql"
           class="cql"
           :data="dataList"
           :data="dataList"
@@ -103,6 +105,7 @@
       <!-- 文件下发 -->
       <!-- 文件下发 -->
       <div v-show="type == '2'" class="table">
       <div v-show="type == '2'" class="table">
         <el-table
         <el-table
+          ref="table"
           v-loading="listLoading"
           v-loading="listLoading"
           :data="fileList"
           :data="fileList"
           element-loading-text="Loading"
           element-loading-text="Loading"
@@ -125,6 +128,7 @@
       <!-- 返利确认单 -->
       <!-- 返利确认单 -->
       <div v-show="type == '3'" class="table">
       <div v-show="type == '3'" class="table">
         <el-table
         <el-table
+          ref="table"
           v-loading="listLoading"
           v-loading="listLoading"
           :data="rebateList"
           :data="rebateList"
           element-loading-text="Loading"
           element-loading-text="Loading"
@@ -152,7 +156,29 @@
           </el-table-column>
           </el-table-column>
         </el-table>
         </el-table>
       </div>
       </div>
-
+      <!-- 物流通知 -->
+      <div v-show="type == '4'" class="table">
+        <el-table
+          ref="table"
+          v-loading="listLoading"
+          :data="invoiceOrderList"
+          element-loading-text="Loading"
+          border
+          fit
+          highlight-current-row
+          stripe
+        >
+          <el-table-column align="center" type="index" min-width="160" show-overflow-tooltip />
+          <el-table-column align="center" label="发货单" prop="id" min-width="160" show-overflow-tooltip />
+          <el-table-column align="center" label="内容" prop="orderTrackStatus" min-width="160" show-overflow-tooltip />
+          <el-table-column align="center" label="时间" prop="orderTrackTime" min-width="160" show-overflow-tooltip />
+          <el-table-column align="center" label="" min-width="160" show-overflow-tooltip fixed="right">
+            <template slot-scope="scope">
+              <el-button type="text" class="textColor" @click="handLogistics(scope.row)">查看</el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
       <br />
       <br />
       <br />
       <br />
       <!-- 分页 -->
       <!-- 分页 -->
@@ -210,6 +236,28 @@
         <el-button type="primary" size="mini" @click="closeFn">关闭</el-button>
         <el-button type="primary" size="mini" @click="closeFn">关闭</el-button>
       </div>
       </div>
     </el-dialog>
     </el-dialog>
+    <el-dialog title="物流信息" :visible.sync="visible" width="60%" @close="onClose" :close-on-click-modal="false">
+      <el-timeline class="logistics" :reverse="false" v-if="logisticsDetail.length">
+        <el-timeline-item
+          placement="top"
+          type="success"
+          v-for="(item, index) in logisticsDetail"
+          :key="index"
+          :timestamp="item.time"
+        >
+          <el-row :gutter="20">
+            <el-col class="logistics-title"> {{ item.status }} </el-col>
+            <el-col>
+              <div class="flex">
+                <div>{{ item.context }}</div>
+                <!-- <div>{{ item.createTime }}</div> -->
+              </div>
+            </el-col>
+          </el-row>
+        </el-timeline-item>
+      </el-timeline>
+      <div v-else class="tip">暂无物流信息</div>
+    </el-dialog>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -223,12 +271,12 @@ import {
   getRebateOrderList,
   getRebateOrderList,
   getRouter,
   getRouter,
   getMenuList,
   getMenuList,
-  setMenuList
+  setMenuList,
+  getListInvoiceOrder
 } from '@/api/dashboard'
 } from '@/api/dashboard'
+import { getListOrderTrack } from '@/api/supply/pickup'
 import { getFileUrl } from '@/api/common'
 import { getFileUrl } from '@/api/common'
 import { mapGetters } from 'vuex'
 import { mapGetters } from 'vuex'
-import { getInfo, getOrder, getGoodsRank } from '@/api/dashboard'
-import { dateFormat } from '@/utils/util'
 
 
 export default {
 export default {
   name: 'Dashboard',
   name: 'Dashboard',
@@ -268,7 +316,12 @@ export default {
       menuList: [],
       menuList: [],
       dialogVisible: false,
       dialogVisible: false,
       checkList: [],
       checkList: [],
-      normsMenuList: []
+      normsMenuList: [],
+      invoiceOrderList: [],
+      bol: true,
+      visible: false,
+      orderId: '',
+      logisticsDetail: []
     }
     }
   },
   },
 
 
@@ -386,6 +439,12 @@ export default {
           isSecondExamine: false
           isSecondExamine: false
         })
         })
       }
       }
+      if (this.type == 4) {
+        this.getListInvoiceOrder({
+          pageSize: this.pageSize,
+          pageNum: this.currentPage
+        })
+      }
     },
     },
     // 更改当前页
     // 更改当前页
     handleCurrentChange(val) {
     handleCurrentChange(val) {
@@ -411,6 +470,12 @@ export default {
           isSecondExamine: false
           isSecondExamine: false
         })
         })
       }
       }
+      if (this.type == 4) {
+        this.getListInvoiceOrder({
+          pageSize: this.pageSize,
+          pageNum: this.currentPage
+        })
+      }
     },
     },
     // 获取返利确认单数据
     // 获取返利确认单数据
     async getRebateList(data) {
     async getRebateList(data) {
@@ -425,8 +490,15 @@ export default {
       this.dataList = res.data.records
       this.dataList = res.data.records
       this.listTotal = res.data.total
       this.listTotal = res.data.total
     },
     },
+    // 获取物流列表
+    async getListInvoiceOrder(data) {
+      const res = await getListInvoiceOrder(data)
+      this.invoiceOrderList = res.data.records
+      this.listTotal = res.data.total
+    },
     // 选择
     // 选择
     checkFn(v) {
     checkFn(v) {
+      this.$refs.table.doLayout()
       this.type = v
       this.type = v
       if (v == 1) {
       if (v == 1) {
         this.getDataList({
         this.getDataList({
@@ -449,6 +521,12 @@ export default {
           isSecondExamine: false
           isSecondExamine: false
         })
         })
       }
       }
+      if (v == 4) {
+        this.getListInvoiceOrder({
+          pageSize: this.pageSize,
+          pageNum: this.currentPage
+        })
+      }
     },
     },
     // 关闭
     // 关闭
     closeFn() {
     closeFn() {
@@ -464,6 +542,18 @@ export default {
       this.$router.push({
       this.$router.push({
         path
         path
       })
       })
+    },
+    handLogistics(row) {
+      getListOrderTrack({ orderId: row.id }).then(res => {
+        this.logisticsDetail = res.data
+      })
+      this.orderId = row.id
+      this.visible = true
+    },
+    onClose() {
+      this.logisticsDetail = []
+      this.orderId = ''
+      this.visible = false
     }
     }
   }
   }
 }
 }
@@ -532,4 +622,12 @@ export default {
     text-overflow: ellipsis;
     text-overflow: ellipsis;
   }
   }
 }
 }
+.logistics-title {
+  padding-bottom: 10px;
+}
+.tip {
+  height: 200px;
+  text-align: center;
+  line-height: 200px;
+}
 </style>
 </style>

+ 5 - 1
src/views/finance/standbook_list.vue

@@ -166,6 +166,7 @@
       <div class="mymain-container">
       <div class="mymain-container">
         <div class="table">
         <div class="table">
           <el-table
           <el-table
+            v-if="dataList.length"
             v-loading="listLoading"
             v-loading="listLoading"
             :data="dataList"
             :data="dataList"
             element-loading-text="Loading"
             element-loading-text="Loading"
@@ -175,6 +176,7 @@
             stripe
             stripe
             show-summary
             show-summary
             :summary-method="getSummaries"
             :summary-method="getSummaries"
+            height="620px"
           >
           >
             <el-table-column
             <el-table-column
               label="序号"
               label="序号"
@@ -374,6 +376,7 @@
       <div class="mymain-container">
       <div class="mymain-container">
         <div class="table">
         <div class="table">
           <el-table
           <el-table
+            v-if="dataList.length"
             v-loading="listLoading"
             v-loading="listLoading"
             :data="dataList"
             :data="dataList"
             element-loading-text="Loading"
             element-loading-text="Loading"
@@ -383,6 +386,7 @@
             stripe
             stripe
             show-summary
             show-summary
             :summary-method="getSummaries2"
             :summary-method="getSummaries2"
+            height="620px"
           >
           >
             <el-table-column label="序号" align="left" width="50" type="index" show-overflow-tooltip></el-table-column>
             <el-table-column label="序号" align="left" width="50" type="index" show-overflow-tooltip></el-table-column>
             <el-table-column align="left" label="客户编码" prop="customerCode" min-width="160" show-overflow-tooltip>
             <el-table-column align="left" label="客户编码" prop="customerCode" min-width="160" show-overflow-tooltip>
@@ -512,7 +516,7 @@
 import { getWalletCustomerList } from '@/api/finance/change_apply'
 import { getWalletCustomerList } from '@/api/finance/change_apply'
 import { getAmountCount, getCustomerList, getStandbookList } from '@/api/finance/standbook_list'
 import { getAmountCount, getCustomerList, getStandbookList } from '@/api/finance/standbook_list'
 import { numToFixed } from '@/filters'
 import { numToFixed } from '@/filters'
-import sticky from '@/utils/table-sticky'
+// import sticky from '@/utils/table-sticky'
 export default {
 export default {
   // mixins: [sticky],
   // mixins: [sticky],
   data() {
   data() {

+ 1 - 1
src/views/supply/pickup/sum_list.vue

@@ -448,7 +448,7 @@ export default {
       getListOrderTrack({ orderId: row.invoiceId }).then(res => {
       getListOrderTrack({ orderId: row.invoiceId }).then(res => {
         this.logisticsDetail = res.data
         this.logisticsDetail = res.data
       })
       })
-      this.orderId = row.id
+      this.orderId = row.invoiceId
       this.visible = true
       this.visible = true
     },
     },
     onClose() {
     onClose() {