|
@@ -134,12 +134,14 @@ export default {
|
|
},
|
|
},
|
|
// 修改
|
|
// 修改
|
|
async toView({ data }) {
|
|
async toView({ data }) {
|
|
- if (data.source_type == '0') this.$router.push({ path: `/selfShop/order`, query: { id: data.source_id } });
|
|
|
|
- else if (data.source_type == '1') this.$router.push({ path: `/selfShop/sales`, query: { id: data.source_id } });
|
|
|
|
- let info = { _id: data._id, status: '1' };
|
|
|
|
- let res = await this.update(info);
|
|
|
|
- if (this.$checkRes(res)) {
|
|
|
|
- this.search();
|
|
|
|
|
|
+ if (data.source_type) {
|
|
|
|
+ if (data.source_type == '0') this.$router.push({ path: `/selfShop/order`, query: { id: data.source_id } });
|
|
|
|
+ else if (data.source_type == '1') this.$router.push({ path: `/selfShop/sales`, query: { id: data.source_id } });
|
|
|
|
+ let info = { _id: data._id, status: '1' };
|
|
|
|
+ let res = await this.update(info);
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.search();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 已读
|
|
// 已读
|