|
@@ -860,9 +860,23 @@ export default {
|
|
|
sa_orderid: this.$route.query.id,
|
|
sa_orderid: this.$route.query.id,
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
- this.tool.showMessage(res, () => {
|
|
|
|
|
- this.tool.showMessage(res);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (res.code == 0){
|
|
|
|
|
+ this.tool.showMessage(res,()=>{})
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.copyList(res.data.sa_orderid)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ copyList(id) {
|
|
|
|
|
+ this.$store.dispatch("changeDetailDrawer", false);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$router.replace({
|
|
|
|
|
+ path: "/saler_orderDetails",
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: id,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$store.dispatch("changeDetailDrawer", true);
|
|
|
|
|
+ }, 300);
|
|
|
},
|
|
},
|
|
|
async bindImportOrder(id) {
|
|
async bindImportOrder(id) {
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|