From 42b352e046625c04ed86581788d4f370b43fbcbe Mon Sep 17 00:00:00 2001 From: lxf Date: Tue, 17 Jun 2025 13:49:40 +0800 Subject: [PATCH] fix: 货源 --- common/api.js | 15 +++++++++++++++ pages.json | 12 ++++++++++++ pages/goodSource/add.vue | 338 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------ pages/goodSource/card.vue | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------- pages/goodSource/detail.vue | 431 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pages/goodSource/grab-record.vue | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pages/goodSource/index.vue | 151 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------- pages/order/add.vue | 64 +++++++++++++++++++++++++++++++++++++--------------------------- store/index.js | 4 ++++ styles/common.scss | 6 ++++++ utils/format-value.js | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------- 11 files changed, 1201 insertions(+), 326 deletions(-) create mode 100644 pages/goodSource/detail.vue create mode 100644 pages/goodSource/grab-record.vue diff --git a/common/api.js b/common/api.js index b541fe6..1fb33e9 100644 --- a/common/api.js +++ b/common/api.js @@ -158,6 +158,21 @@ module.exports = (vm) => { }, freightMaRecord: { add: params => vm.$u.http.post( freightAPI + '/freightMaRecord/add', params,{custom: {toast:true}}), // 出发到达记录日志 + }, + // 货源管理v2版本 + freightGoodsSourceV2:{ + page: params => vm.$u.http.get( freightAPI + '/freightGoodsSourceV2/page', {params}), + biddingPage: params => vm.$u.http.get( freightAPI + '/freightGoodsSourceV2/biddingPage', {params}), + biddingCount: params => vm.$u.http.get( freightAPI + '/freightGoodsSourceV2/biddingCount', {params}), + count: params => vm.$u.http.get( freightAPI + '/freightGoodsSourceV2/count', {params}), + getDetail: params => vm.$u.http.get( freightAPI + '/freightGoodsSourceV2/getDetail', {params}), + add: data => vm.$u.http.post( freightAPI + '/freightGoodsSourceV2/add', data,{custom: {toast:true}}), + modify: data => vm.$u.http.post( freightAPI + '/freightGoodsSourceV2/modify', data), + complete: data => vm.$u.http.post( freightAPI + '/freightGoodsSourceV2/complete', data), + cancel: data => vm.$u.http.post( freightAPI + '/freightGoodsSourceV2/cancel', data), + cancelBidding: data => vm.$u.http.post( freightAPI + '/freightGoodsSourceV2/cancelBidding', data), + delete: data => vm.$u.http.post( freightAPI + '/freightGoodsSourceV2/delete', data), + buildMaQrcode: params => vm.$u.http.get( freightAPI + '/freightGoodsSourceV2/buildMaQrcode', {params}), } }; } diff --git a/pages.json b/pages.json index 607031d..0b3ebac 100644 --- a/pages.json +++ b/pages.json @@ -28,6 +28,18 @@ "navigationBarTitleText": "创建货源" } },{ + "path": "pages/goodSource/detail", + "style": { + "navigationBarTitleText": "飞牛货源详情", + "enablePullDownRefresh": true + } + },{ + "path": "pages/goodSource/grab-record", + "style": { + "navigationBarTitleText": "飞牛货源抢单记录", + "enablePullDownRefresh": true + } + },{ "path": "pages/order/index", "style": { "navigationBarTitleText": "订单", diff --git a/pages/goodSource/add.vue b/pages/goodSource/add.vue index 14c1819..4d4ffa8 100644 --- a/pages/goodSource/add.vue +++ b/pages/goodSource/add.vue @@ -8,24 +8,24 @@ - + - + - + - + - - + + @@ -36,28 +36,32 @@ - - - - - - - - - - - - - - - - - - - - - + + + @@ -70,13 +74,13 @@ + diff --git a/pages/goodSource/grab-record.vue b/pages/goodSource/grab-record.vue new file mode 100644 index 0000000..136e035 --- /dev/null +++ b/pages/goodSource/grab-record.vue @@ -0,0 +1,304 @@ + + + + + diff --git a/pages/goodSource/index.vue b/pages/goodSource/index.vue index 49c9022..3b6c1a5 100644 --- a/pages/goodSource/index.vue +++ b/pages/goodSource/index.vue @@ -1,7 +1,7 @@