From e66db9a9ecdb88ad96676d4b216118db0633f49a Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 15 Dec 2023 19:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/admin.js | 34 + api/order.js | 37 + components/orderGoods/index.vue | 8 +- components/shortPopup.vue | 4 +- pages.json | 58 +- pages/admin/delivery/indexOther.vue | 851 ++++++ pages/admin/orderDetail/indexOther.vue | 991 +++++++ pages/admin/orderList/indexOther.vue | 1007 +++++++ pages/index/index.vue | 86 +- pages/moreProject/moreProject.vue | 4 + pages/nongKe/cloud_entrepot/indexOther.vue | 1931 ++++++++++++ pages/nongKe/cloud_entrepot/indexb.vue | 2 +- .../supply_chain/shopping_trolley_other.vue | 1370 +++++++++ pages/order_details/indexOther.vue | 1771 +++++++++++ pages/users/order_confirm/indexOther.vue | 2606 +++++++++++++++++ pages/users/order_list/indexOther.vue | 1333 +++++++++ pages/users/supply_procurement/index.vue | 34 +- 17 files changed, 12108 insertions(+), 19 deletions(-) create mode 100644 pages/admin/delivery/indexOther.vue create mode 100644 pages/admin/orderDetail/indexOther.vue create mode 100644 pages/admin/orderList/indexOther.vue create mode 100644 pages/nongKe/cloud_entrepot/indexOther.vue create mode 100644 pages/nongKe/supply_chain/shopping_trolley_other.vue create mode 100644 pages/order_details/indexOther.vue create mode 100644 pages/users/order_confirm/indexOther.vue create mode 100644 pages/users/order_list/indexOther.vue diff --git a/api/admin.js b/api/admin.js index c94d3bc..6c6db6b 100644 --- a/api/admin.js +++ b/api/admin.js @@ -74,6 +74,14 @@ export function getAdminOrderDetail(merId, orderId) { login: true }); } +/** + * 其他订单详情 + */ +export function getAdminOtherOrderDetail(merId, orderId) { + return request.get("admin/other/" + merId + "/order/" + orderId, {}, { + login: true + }); +} /** * 订单发货信息获取 */ @@ -91,6 +99,15 @@ export function setAdminOrderDelivery(merId, id, data) { login: true }); } +/** + * 其他订单发货保存 + */ +export function setAdminOtherOrderDelivery(merId, id, data) { + return request.post("admin/other/" + merId + "/delivery/" + id, data, { + login: true + }); +} + /** * 订单统计图 */ @@ -149,6 +166,13 @@ export function verifierOrder(mer_id, code) { export function orderStatistics(mer_id, data) { return request.get("admin/" + mer_id + "/statistics", data); } +/** + * 其他订单统计数 + * @returns {*} + */ +export function otherOrderStatistics(mer_id, data) { + return request.get("admin/other/" + mer_id + "/statistics", data); +} /** * 订单 * @returns {*} @@ -174,6 +198,15 @@ export function getOrderList(where, merId) { login: true }); } +/** + * 其他订单列表 + * @returns {*} + */ +export function getOtherOrderList(where, merId) { + return request.get(`admin/other/${merId}/order_list`, where, { + login: true + }); +} /** * 退款订单列表 * @returns {*} @@ -270,6 +303,7 @@ export function setRefundMark(merId, orderId, data) { login: true }); } + /** * 去核销 * @param object data diff --git a/api/order.js b/api/order.js index 8cc746e..c880635 100644 --- a/api/order.js +++ b/api/order.js @@ -47,6 +47,14 @@ export function getOrderList(data) { return request.get('order/list', data); } +/** + * 其他订单列表 + * @param object data + */ +export function getOtherOrderList(data) { + return request.get('other_order/list', data); +} + /** * 订单产品信息 * @param string unique @@ -78,6 +86,13 @@ export function orderPay(id, data) { export function orderData(data) { return request.get('order/number', data) } +/** + * 其他订单统计数据 + */ +export function otherOrderData(data) { + return request.get('other_order/number', data) +} + /** * 订单取消 @@ -114,6 +129,14 @@ export function getOrderDetail(uni) { return request.get('order/detail/' + uni); } +/** + * 其他订单详情 + * @param string uni + */ +export function getOtherOrderDetail(uni) { + return request.get('other_order/detail/' + uni); +} + /** * 未付款订单详情 * @param string uni @@ -145,6 +168,16 @@ export function orderTake(uni) { return request.post('order/take/' + uni); } +/** + * 其他订单收货 + * @param string uni + * + */ +export function otherOrderTake(uni) { + return request.post('other_order/take/' + uni); +} + + /** * 订单查询物流信息 * @returns {*} @@ -218,6 +251,10 @@ export function orderCreate(data) { export function createOrder(data) { return request.post("v2/order/create", data, { noAuth: true }); } +// 生成其他订单 +export function createOtherOrder(data) { + return request.post("other_order/create", data); +} // 未支付订单 export function groupOrderList(data) { return request.get("order/group_order_list", data, { noAuth: true }); diff --git a/components/orderGoods/index.vue b/components/orderGoods/index.vue index caab887..cf565bf 100644 --- a/components/orderGoods/index.vue +++ b/components/orderGoods/index.vue @@ -106,7 +106,7 @@ - + 退款中 x {{item.product_num - item.refund_num}} 已退款 x {{item.product_num - item.refund_num}} @@ -181,7 +181,11 @@ order_status:{ type: Number, default: 0, - } + }, + btn:{ + type: Boolean, + default: true, + }, }, computed: mapGetters(['viewColor']), data() { diff --git a/components/shortPopup.vue b/components/shortPopup.vue index ce7c88b..f3e1124 100644 --- a/components/shortPopup.vue +++ b/components/shortPopup.vue @@ -73,12 +73,12 @@ postCartAdd, getProductDetail } from '@/api/store.js'; -import { Toast } from '../libs/uniApi'; + import { Toast } from '../libs/uniApi'; export default { name: "shortPopup", props: { source:{ - type: Number, + type: String | Number, default: null } }, diff --git a/pages.json b/pages.json index 8c680db..1ea86ee 100644 --- a/pages.json +++ b/pages.json @@ -91,6 +91,12 @@ "navigationBarTitleText": "采购车" } }, + { + "path": "pages/nongKe/supply_chain/shopping_trolley_other", + "style": { + "navigationBarTitleText": "采购车" + } + }, { "path": "pages/moreProject/moreProject", "style": { @@ -304,6 +310,18 @@ // #endif } }, + { + "path": "indexOther", + "style": { + "navigationBarTitleText": "订单详情" + //, + //"navigationBarBackgroundColor": "#e93323" + // #ifdef MP || APP-PLUS + // , + //"navigationBarTextStyle": "#fff" + // #endif + } + }, { "path": "stay", "style": { @@ -441,7 +459,13 @@ "navigationBarTitleText": "供货采购", "enablePullDownRefresh": true } - + },{ + "path": "cloud_entrepot/indexOther", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "供货采购", + "enablePullDownRefresh": true + } }, { "path": "teach_video/teach_video", "style": { @@ -711,6 +735,12 @@ "navigationBarTitleText": "提交订单" } }, + { + "path": "order_confirm/indexOther", + "style": { + "navigationBarTitleText": "提交订单" + } + }, { "path": "goods_details_store/index", "style": { @@ -753,6 +783,12 @@ "navigationBarTitleText": "采购订单" } }, + { + "path": "order_list/indexOther", + "style": { + "navigationBarTitleText": "赊账订单" + } + }, { "path": "order_list/relase", "style": { @@ -1150,7 +1186,13 @@ "style": { "navigationBarTitleText": "订单列表" } - }, { + }, + { + "path": "orderList/indexOther", + "style": { + "navigationBarTitleText": "订单列表" + } + },{ "path": "financial_management/index", "style": { "navigationBarTitleText": "财务管理" @@ -1175,6 +1217,12 @@ "navigationBarTitleText": "订单详情" } }, + { + "path": "orderDetail/indexOther", + "style": { + "navigationBarTitleText": "订单详情" + } + }, { "path": "refundDetail/index", "style": { @@ -1187,6 +1235,12 @@ "navigationBarTitleText": "订单发货" } }, + { + "path": "delivery/indexOther", + "style": { + "navigationBarTitleText": "订单发货" + } + }, { "path": "statistics/index", "style": { diff --git a/pages/admin/delivery/indexOther.vue b/pages/admin/delivery/indexOther.vue new file mode 100644 index 0000000..ddf84bc --- /dev/null +++ b/pages/admin/delivery/indexOther.vue @@ -0,0 +1,851 @@ + + + + diff --git a/pages/admin/orderDetail/indexOther.vue b/pages/admin/orderDetail/indexOther.vue new file mode 100644 index 0000000..61edc9a --- /dev/null +++ b/pages/admin/orderDetail/indexOther.vue @@ -0,0 +1,991 @@ + + + + diff --git a/pages/admin/orderList/indexOther.vue b/pages/admin/orderList/indexOther.vue new file mode 100644 index 0000000..0919def --- /dev/null +++ b/pages/admin/orderList/indexOther.vue @@ -0,0 +1,1007 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index cee121a..e5963e1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -69,6 +69,25 @@ + + + 赊账订单 + + + + + + {{item.value}} + + + {{item.name}} + + + + + + + @@ -373,6 +392,7 @@ import image from '../../uni_modules/uview-ui/libs/config/props/image'; import { orderStatistics, + otherOrderStatistics, getOrderList } from "@/api/admin"; @@ -423,7 +443,15 @@ import { Toast } from '../../libs/uniApi'; type: 6, value: 0 }], - + other_order: [{ + name: '待发货', + type: 2, + value: 0 + }, { + name: '待收货', + type: 3, + value: 0 + }], typelist: [{ name: '商品管理', type: 1, @@ -667,8 +695,49 @@ import { Toast } from '../../libs/uniApi'; break; } - - + } else { + this.isAuto = true; + this.isShowAuth = true + } + }, + other_shopporder(item) { + if (this.userid) { + switch (item.type) { + case 1: + uni.navigateTo({ + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + + '&types=' + item.type + }) + break; + case 2: + + uni.navigateTo({ + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + + '&types=' + item.type + }) + break; + case 3: + uni.navigateTo({ + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + + '&types=' + item.type + }) + break; + case 4: + uni.navigateTo({ + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + + '&types=' + item.type + + }) + break; + case 6: + uni.navigateTo({ + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + + '&types=' + item.type + + }) + break; + + } } else { this.isAuto = true; this.isShowAuth = true @@ -938,6 +1007,17 @@ import { Toast } from '../../libs/uniApi'; }) } ); + otherOrderStatistics(this.userInfoData.service.mer_id, data).then( + res => { + this.other_order[0].value = res.data.order.unshipped + this.other_order[1].value = res.data.order.untake + }, + err => { + that.$util.Tips({ + title: err.msg + }) + } + ); }, open() { this.isshow = !this.isshow diff --git a/pages/moreProject/moreProject.vue b/pages/moreProject/moreProject.vue index 91019a1..6fef310 100644 --- a/pages/moreProject/moreProject.vue +++ b/pages/moreProject/moreProject.vue @@ -155,6 +155,10 @@ 进货管理 + + + 赊账订单 + diff --git a/pages/nongKe/cloud_entrepot/indexOther.vue b/pages/nongKe/cloud_entrepot/indexOther.vue new file mode 100644 index 0000000..3f319dd --- /dev/null +++ b/pages/nongKe/cloud_entrepot/indexOther.vue @@ -0,0 +1,1931 @@ + + + + + \ No newline at end of file diff --git a/pages/nongKe/cloud_entrepot/indexb.vue b/pages/nongKe/cloud_entrepot/indexb.vue index e13e933..aafb73e 100644 --- a/pages/nongKe/cloud_entrepot/indexb.vue +++ b/pages/nongKe/cloud_entrepot/indexb.vue @@ -711,7 +711,7 @@ // console.log({...this.userInfoData}); let query = { product_type: this.product_type, - cate_pid: this.storeParam.category_id, + // cate_pid: this.storeParam.category_id, page: this.storeParam.page, order: this.storeParam.order, keyword: this.storeParam.keyword diff --git a/pages/nongKe/supply_chain/shopping_trolley_other.vue b/pages/nongKe/supply_chain/shopping_trolley_other.vue new file mode 100644 index 0000000..afe4e34 --- /dev/null +++ b/pages/nongKe/supply_chain/shopping_trolley_other.vue @@ -0,0 +1,1370 @@ + + + + + \ No newline at end of file diff --git a/pages/order_details/indexOther.vue b/pages/order_details/indexOther.vue new file mode 100644 index 0000000..e2be9bc --- /dev/null +++ b/pages/order_details/indexOther.vue @@ -0,0 +1,1771 @@ + + + \ No newline at end of file diff --git a/pages/users/order_confirm/indexOther.vue b/pages/users/order_confirm/indexOther.vue new file mode 100644 index 0000000..87f4425 --- /dev/null +++ b/pages/users/order_confirm/indexOther.vue @@ -0,0 +1,2606 @@ + + + + \ No newline at end of file diff --git a/pages/users/order_list/indexOther.vue b/pages/users/order_list/indexOther.vue new file mode 100644 index 0000000..021b4a8 --- /dev/null +++ b/pages/users/order_list/indexOther.vue @@ -0,0 +1,1333 @@ + + + + + \ No newline at end of file diff --git a/pages/users/supply_procurement/index.vue b/pages/users/supply_procurement/index.vue index faffca9..09101e9 100644 --- a/pages/users/supply_procurement/index.vue +++ b/pages/users/supply_procurement/index.vue @@ -21,12 +21,12 @@ - + @click="navigator(`/pages/nongKe/cloud_entrepot/${item.name=='现款现货'?'indexb':'indexOther'}?type_id=12&value=${item.value}&tips=${item.content}`)"> +

{{item.name}}

- 先付款后发货 + {{item.content}}
@@ -50,9 +50,25 @@ systemGroupValue({ name: 'purchasing_navigation' }).then(res=>{ - console.log(res); + res.data.forEach((item)=>{ + if(item.name=='线上铺货'){ + item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/71e06202312151146467207.png'; + item.content = '线上选品 一键铺货'; + } + if(item.name=='实体铺货'){ + item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/8cb7a202312151147485701.png'; + item.content = '先售利润 后结货款'; + } + if(item.name=='现款现货'){ + item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f4521202312151148087081.png'; + item.content = '先付款 后发货'; + } + if(item.name=='赊账进货'){ + item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/899a4202312151148319478.png'; + item.content = '先发货 后付款'; + } + }) this.list = res.data; - console.log(this.list); }) }, navigator(url, t) { @@ -73,7 +89,7 @@ .conent { width: 100%; display: flex; - justify-content: space-around; + justify-content: space-evenly; flex-wrap: wrap; margin-top: 20px; @@ -81,13 +97,13 @@ position: relative; .con_img { - width: 192px; + width: 360rpx; height: 92px; } .con_ico { position: absolute; - left: 25px; + left: 15px; top: 32px; width: 31px; height: 32px; @@ -95,7 +111,7 @@ .con_text { position: absolute; - left: 66px; + left: 55px; top: 20px; color: white; }