|
|
@@ -262,7 +262,17 @@
|
|
|
|
|
|
|
|
|
<script>
|
|
|
-import {getLiveOrder, syncExpress, updateLiveOrder, updateErp, getExpress, listOrderitem, tuiOrder,refundOrderMoney} from "@/api/live/liveOrder";
|
|
|
+import {
|
|
|
+ getLiveOrder,
|
|
|
+ syncExpress,
|
|
|
+ updateLiveOrder,
|
|
|
+ updateErp,
|
|
|
+ getExpress,
|
|
|
+ listOrderitem,
|
|
|
+ tuiOrder,
|
|
|
+ refundOrderMoney,
|
|
|
+ editDeliveryId
|
|
|
+} from "@/api/live/liveOrder";
|
|
|
|
|
|
|
|
|
export default {
|
|
|
@@ -774,18 +784,29 @@ export default {
|
|
|
submitEditDyForm(){
|
|
|
this.$refs["editDyForm"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- console.log(this.editDyForm)
|
|
|
- updateLiveOrder(this.editDyForm).then(response => {
|
|
|
+ editDeliveryId({orderId: this.editDyForm.orderId,
|
|
|
+ deliverSn: this.editDyForm.deliveryCode,
|
|
|
+ deliverId: this.editDyForm.deliverySn,type: 1}).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("操作成功");
|
|
|
this.editDy.open = false;
|
|
|
getLiveOrder(this.item.orderId).then(response => {
|
|
|
this.item = response.data;
|
|
|
- // this.getlogList(this.item.orderId);
|
|
|
this.$parent.$parent.getList();
|
|
|
});
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
+ // updateLiveOrder(this.editDyForm).then(response => {
|
|
|
+ // if (response.code === 200) {
|
|
|
+ // this.msgSuccess("操作成功");
|
|
|
+ // this.editDy.open = false;
|
|
|
+ // getLiveOrder(this.item.orderId).then(response => {
|
|
|
+ // this.item = response.data;
|
|
|
+ // // this.getlogList(this.item.orderId);
|
|
|
+ // this.$parent.$parent.getList();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
}
|
|
|
});
|
|
|
},
|