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) {