From 4e9baebcf577b4ccb105ada3a0bf8897faaf5e87 Mon Sep 17 00:00:00 2001 From: lele0521 Date: Wed, 15 May 2024 15:56:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seller/src/api/order.js | 5 +++ seller/src/views/order/order/orderDetail.vue | 42 ++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/seller/src/api/order.js b/seller/src/api/order.js index 6f6c0d72..a5af0d19 100644 --- a/seller/src/api/order.js +++ b/seller/src/api/order.js @@ -42,6 +42,11 @@ export const modifyOrderPrice = (sn, params) => { return putRequest(`/order/order/update/${sn}/price`, params); }; +// 修改订单备注 +export const modifyOrderRemark = (sn, params) => { + return putRequest(`/order/order/${sn}/sellerRemark`, params); +}; + // 取消订单 export const cancelOrder = (sn, params) => { return postRequest(`/order/order/${sn}/cancel`, params); diff --git a/seller/src/views/order/order/orderDetail.vue b/seller/src/views/order/order/orderDetail.vue index 7f3d7bb3..dd441567 100644 --- a/seller/src/views/order/order/orderDetail.vue +++ b/seller/src/views/order/order/orderDetail.vue @@ -16,6 +16,7 @@ v-if="allowOperation.showLogistics && logisticsType == 'SHUNFENG'">下载面单 + @@ -277,6 +278,23 @@ + +

+ + 编辑备注 +

+
+
+ + + +
+
+
+ + +
+

@@ -622,6 +640,10 @@ export default { modifyPriceForm: { orderPrice: 0, }, + //修改订单备注表单 + modifyRemarkForm: { + sellerRemark: 0, + }, //订单核销表单 orderTakeForm: { qrCode: "", @@ -1006,6 +1028,26 @@ export default { } }); }, + modifyRemark () { + this.modifyRemarkForm.sellerRemark = this.orderInfo.order.sellerRemark; + this.sellerRemarkModal = true; + }, + //修改订单备注提交 + modifyRemarkSubmit () { + this.$refs.modifyRemarkForm.validate((valid) => { + if (valid) { + API_Order.modifyOrderRemark(this.sn, this.modifyRemarkForm).then( + (res) => { + if (res.success) { + this.$Message.success("编辑订单备注成功"); + this.sellerRemarkModal = false; + this.getDataDetail(); + } + } + ); + } + }); + }, getOrderPackage() { API_Order.getPackage(this.sn).then(res => { if (res.success) {