From 1bb374e0fb4dc87ce1e20d8f28fee9da8630ccbb Mon Sep 17 00:00:00 2001 From: THK3121 Date: Wed, 23 Aug 2023 11:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=BF=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/logistics/index.vue | 2 - pages/logistics/logisticDetil.vue | 3 - pages/logistics/post.vue | 125 ++++++++++++++++++---- static/server/server.js | 2 +- subpkg/property/chosseCompany.vue | 14 ++- subpkg/property/index.vue | 88 ++++++++++----- subpkg/property/vehicle.vue | 172 +++++++++++++++--------------- 7 files changed, 265 insertions(+), 141 deletions(-) diff --git a/pages/logistics/index.vue b/pages/logistics/index.vue index 845251c..95f4a72 100644 --- a/pages/logistics/index.vue +++ b/pages/logistics/index.vue @@ -68,7 +68,6 @@ }, showToast() { - // 6 this.$refs.uToast.show({ type: 'success', title: '成功主题(带图标)', @@ -78,7 +77,6 @@ }, showToast2() { // 6 - this.$refs.uToast.show({ type: 'error', message: "取件码不能为空", diff --git a/pages/logistics/logisticDetil.vue b/pages/logistics/logisticDetil.vue index 08fcad6..0f464a3 100644 --- a/pages/logistics/logisticDetil.vue +++ b/pages/logistics/logisticDetil.vue @@ -3,8 +3,6 @@ - -

订单编号:  {{goodsDetil.logistics.order_sn}} @@ -87,7 +85,6 @@ - diff --git a/pages/logistics/post.vue b/pages/logistics/post.vue index 792ac79..6ab7e52 100644 --- a/pages/logistics/post.vue +++ b/pages/logistics/post.vue @@ -4,8 +4,24 @@ v-model="keywords"> - + + 订单编号: {{item.order_sn}} + 取货时间: {{item.qh_time}} + 手机号: {{item.receiver_phone}} + 收货人姓名: {{fuzzyName(item.receiver_name)}} + 货物送达 + + + + + + + + @@ -14,35 +30,102 @@ import { getList } from "@/api/logistics.js" - + import { + doneDelivery + } from "@/api/logistics.js" export default { data() { + return { + showPop: false, + keywords: "", + orderlist: [], + is_captain: "", + take_code: "", + order_id: "", + } + }, + methods: { + fuzzyName(name) { + let length = name.length; + let fuzzyChars = "*".repeat(length - 1); + return name[0] + fuzzyChars; + }, + showToast() { + this.$refs.uToast.show({ + type: 'success', + title: '成功主题(带图标)', + message: "操作成功", + iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png' + }) + }, + doneFn(id) { + this.order_id = id + this.showPop = true + }, + confirm() { + if (!this.take_code) return + doneDelivery({ + take_code: this.take_code, + logistics_id: this.order_id, + }).then(res => { + this.showToast() - return {} - } - } + }) + this.showPop = false + this.getOrderList() + }, + getOrderList() { + console.log("列表更新") + let id = JSON.parse(uni.getStorageSync('USER_INFO')).id + getList({ + status: 1, + user_id: id, + keywords: this.keywords, + user_type: this.is_captain + }).then(res => { + this.orderlist = [] + this.orderlist = res.data.data + }) + } + }, + onLoad() { + this.is_captain = JSON.parse(uni.getStorageSync('USER_INFO')).is_captain + this.getOrderList() + }, - - - methods: { - // getOrderList() { - // console.log("列表更新") - // let id = JSON.parse(uni.getStorageSync('USER_INFO')).id - // getList({ - // status: 1, - // user_id: id, - // keywords: this.keywords, - // user_type: this.is_captain - // }).then(res => { - // this.orderlist = [] - // this.orderlist = res.data.data - // }) - // } } \ No newline at end of file diff --git a/static/server/server.js b/static/server/server.js index ab8195c..8fedc2f 100644 --- a/static/server/server.js +++ b/static/server/server.js @@ -247,7 +247,7 @@ export const oaHomeData = [{ { text: '驿站', icon: '../../static/img/home/GRCW.png', - url: '/subpkg/finance/finance', + url: '/pages/logistics/post', // captain: true }, // { diff --git a/subpkg/property/chosseCompany.vue b/subpkg/property/chosseCompany.vue index 30fb397..b5cf474 100644 --- a/subpkg/property/chosseCompany.vue +++ b/subpkg/property/chosseCompany.vue @@ -22,9 +22,17 @@ - - 担任职务 : - {item.master_position} + + + 担任职务 : + {item.master_position} + + + + + + + 联系电话 : diff --git a/subpkg/property/index.vue b/subpkg/property/index.vue index e6acc7e..1a79f0c 100644 --- a/subpkg/property/index.vue +++ b/subpkg/property/index.vue @@ -5,40 +5,52 @@ inactiveStyle="color:#fff" activeStyle="color:#fff"> - + - - - XSDSDSD - - - - - - 车牌号: - { item.name } - - - 行驶总里程: - { item.phone } - - - - + + + + XSDSDSD + + + + + 车牌号: + { item.name } + + + 行驶总里程: + { item.phone } + + + + + + + + 本公司签约时间: + 所属片区 - - 本公司签约时间: - 所属片区 - + + + + - + + + + + + 当前没有可以签约的的车辆,快去签约新车吧! + + 签约新车 @@ -103,6 +115,10 @@