From 8c54f9965ea2ed0bdf171030855f976764cb7179 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 17 Oct 2024 18:01:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BA=93=E6=88=BF=E9=AA=8C?= =?UTF-8?q?=E6=94=B6=E5=8A=9F=E8=83=BD=E5=92=8C=E9=87=87=E8=B4=AD=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在采购产品报价模块中添加了库房信息设置功能 - 前端增加了库房设置信息的界面和相关逻辑 - 修改了采购订单详情页面,增加了姓名、手机、地址等信息的显示 - 优化了商品明细页面,移除了不必要的操作和数据 --- src/api/purchase_product_offer.ts | 8 +- src/views/order/beforehand_order/add.vue | 34 +++- .../beforehand_order/component/goodsOffer.vue | 69 +++++++- .../component/orderCartInfo.vue | 149 +++++++++++++++++ src/views/order/beforehand_order/details.vue | 153 +++--------------- 5 files changed, 270 insertions(+), 143 deletions(-) create mode 100644 src/views/order/beforehand_order/component/orderCartInfo.vue diff --git a/src/api/purchase_product_offer.ts b/src/api/purchase_product_offer.ts index ae5602988..d33d7cce4 100644 --- a/src/api/purchase_product_offer.ts +++ b/src/api/purchase_product_offer.ts @@ -34,7 +34,13 @@ export function apiPurchaseProductOfferSetBatchProcureInfo(params: any) { params }) } - +// 仓库验收信息设置 +export function apiPurchaseProductOffersetStoreroomInfo(params: any) { + return request.post({ + url: '/purchase_product_offer/purchaseproductoffer/setStoreroomInfo', + params + }) +} // 采购供应链商品详情 export function apiPurchaseProductOfferDetail(params: any) { return request.get({ url: '/purchase_product_offer/purchaseproductoffer/detail', params }) diff --git a/src/views/order/beforehand_order/add.vue b/src/views/order/beforehand_order/add.vue index 346a05ffd..0b624d7ed 100644 --- a/src/views/order/beforehand_order/add.vue +++ b/src/views/order/beforehand_order/add.vue @@ -22,13 +22,8 @@ 往期补单 - - + + + + + + + + + + + + + + + @@ -138,6 +154,10 @@ const formData = reactive({ total_price: 0, order_type: 1, store_id: '', + nikename: '', + phone: '', + address: '', + arrival_time: '', mark: '' }) diff --git a/src/views/order/beforehand_order/component/goodsOffer.vue b/src/views/order/beforehand_order/component/goodsOffer.vue index d2645651a..9fb5a6d92 100644 --- a/src/views/order/beforehand_order/component/goodsOffer.vue +++ b/src/views/order/beforehand_order/component/goodsOffer.vue @@ -31,6 +31,9 @@ 设置采购信息 + 库房设置信息 @@ -155,13 +158,50 @@ + + + + + + + + + + + + + + diff --git a/src/views/order/beforehand_order/details.vue b/src/views/order/beforehand_order/details.vue index fb06bdb07..bce4ee3b1 100644 --- a/src/views/order/beforehand_order/details.vue +++ b/src/views/order/beforehand_order/details.vue @@ -14,6 +14,20 @@
{{ formData.system_store }}
+
+
+
姓名:
+
{{ formData.nikename }}
+
+
+
手机:
+
{{ formData.phone }}
+
+
+
送货地址:
+
{{ formData.address }}
+
+
备注:
@@ -42,118 +56,7 @@ @tab-change="tabChange" > - 导出表格 - - - - -
-
- - - - - - - - - - - - - - - - - - -
-
- -
-
+
@@ -392,6 +295,7 @@ import feedback from '@/utils/feedback' import EditPopup from './editProduct.vue' import { apiDeliveryServiceLists } from '@/api/delivery_service' import goodsOffer from './component/goodsOffer.vue' +import orderCartInfo from './component/orderCartInfo.vue' import warehousing from './component/warehousing.vue' import outbound from './component/outbound.vue' import { apiUserLists } from '@/api/user' @@ -409,6 +313,9 @@ const outboundRef = ref(null) const route = useRoute() const tabChange = (type: any) => { + if (type == 'second') { + orderCartInfo.value?.getList(formData.value) + } if (type == 'offer') { goodsOfferRef.value?.getList(formData.value.id) } @@ -618,28 +525,6 @@ const generateOrderAdd = () => { apiPurchaseOrderGenerateOrder(generateOrderData.value).then((res) => {}) } -const beforehand_order_cart_info = () => { - apiBeforehandOrderCartInfoLists({ - export: 2, - bhoid: formData.value.id - }).then((res) => { - window.open(res.url, '_blank') - ElMessage.success('导出成功') - }) -} - -const topCateChange = (row: any) => { - if (row.id == 0) { - queryParams.top_cate = '' - queryParams.top_cate_value = '全部' - getLists() - } else { - queryParams.top_cate = row.id - queryParams.top_cate_value = row.name - - getLists() - } -} defineExpose({ open })