|
@@ -124,8 +124,8 @@ export default {
|
|
...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
|
|
...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
|
|
// 查询
|
|
// 查询
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
- if (this.orders_id) {
|
|
|
|
- let data = this.orders_id;
|
|
|
|
|
|
+ if (this.$route.query.id) {
|
|
|
|
+ let data = this.$route.query.id;
|
|
this.toDetail_t(data);
|
|
this.toDetail_t(data);
|
|
} else {
|
|
} else {
|
|
if (this.active) this.$set(this, 'activeName', this.active);
|
|
if (this.active) this.$set(this, 'activeName', this.active);
|
|
@@ -186,6 +186,11 @@ export default {
|
|
},
|
|
},
|
|
toBack() {
|
|
toBack() {
|
|
this.view = 'list';
|
|
this.view = 'list';
|
|
|
|
+ this.loadings = true;
|
|
|
|
+ if (this.sales_id) {
|
|
|
|
+ delete this.$route.query.id;
|
|
|
|
+ }
|
|
|
|
+ this.search(this.searchQuery);
|
|
},
|
|
},
|
|
getAddress(i) {
|
|
getAddress(i) {
|
|
let name = i.name + ',' + i.phone;
|
|
let name = i.name + ',' + i.phone;
|