fix: 增加订单备注
This commit is contained in:
parent
0c6703f04d
commit
4e9baebcf5
@ -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);
|
||||
|
@ -16,6 +16,7 @@
|
||||
v-if="allowOperation.showLogistics && logisticsType == 'SHUNFENG'">下载面单</Button>
|
||||
<Button @click="toPrint" type="primary" ghost
|
||||
v-if="allowOperation.ship && logisticsType != 'SHUNFENG'">打印电子面单</Button>
|
||||
<Button @click="modifyRemark" type="primary">添加备注</Button>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
@ -277,6 +278,23 @@
|
||||
<Button type="primary" @click="modifyPriceSubmit">调整</Button>
|
||||
</div>
|
||||
</Modal>
|
||||
<Modal v-model="sellerRemarkModal" width="530">
|
||||
<p slot="header">
|
||||
<Icon type="edit"></Icon>
|
||||
<span>编辑备注</span>
|
||||
</p>
|
||||
<div>
|
||||
<Form ref="modifyRemarkForm" :model="modifyRemarkForm" label-position="left" :label-width="100">
|
||||
<FormItem label="订单备注" prop="sellerRemark">
|
||||
<Input v-model="modifyRemarkForm.sellerRemark" size="large" maxlength="20"></Input>
|
||||
</FormItem>
|
||||
</Form>
|
||||
</div>
|
||||
<div slot="footer" style="text-align: right">
|
||||
<Button @click="sellerRemarkModal = false">关闭</Button>
|
||||
<Button type="primary" @click="modifyRemarkSubmit">确认</Button>
|
||||
</div>
|
||||
</Modal>
|
||||
<!--收件地址弹出框-->
|
||||
<Modal v-model="addressModal" width="530">
|
||||
<p slot="header">
|
||||
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user