|
|
|
@ -176,6 +176,17 @@
|
|
|
|
|
> |
|
|
|
|
订单备注</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item> |
|
|
|
|
<el-button |
|
|
|
|
v-if="scope.row._status == 1" |
|
|
|
|
v-permission="['admin','YXSTOREORDER_ALL','YXSTOREORDER_EDIT']" |
|
|
|
|
size="mini" |
|
|
|
|
type="primary" |
|
|
|
|
@click="cancel(scope.row)" |
|
|
|
|
> |
|
|
|
|
取消订单 |
|
|
|
|
</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item> |
|
|
|
|
<el-button |
|
|
|
|
v-if="scope.row._status == 2" |
|
|
|
@ -279,7 +290,7 @@
|
|
|
|
|
<script> |
|
|
|
|
import checkPermission from '@/utils/permission' |
|
|
|
|
import initData from '@/mixins/crud' |
|
|
|
|
import {check, del, edit} from '@/api/bxg/yxStoreOrder' |
|
|
|
|
import {check, del, edit,cancel} from '@/api/bxg/yxStoreOrder' |
|
|
|
|
import eForm from './form' |
|
|
|
|
import eDetail from './detail1' |
|
|
|
|
import eRefund from './refund' |
|
|
|
@ -403,6 +414,21 @@
|
|
|
|
|
this.isAdd = true |
|
|
|
|
this.$refs.form.dialog = true |
|
|
|
|
}, |
|
|
|
|
cancel(data){ |
|
|
|
|
this.loading=true |
|
|
|
|
cancel(data).then(res => { |
|
|
|
|
this.$notify({ |
|
|
|
|
title: '操作成功', |
|
|
|
|
type: 'success', |
|
|
|
|
duration: 2500 |
|
|
|
|
}) |
|
|
|
|
this.loading = false |
|
|
|
|
this.handleOrder() |
|
|
|
|
}).catch(err => { |
|
|
|
|
this.loading = false |
|
|
|
|
console.log(err.response.data.message) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
check(data){ |
|
|
|
|
this.loading=true |
|
|
|
|
check(data).then(res => { |
|
|
|
|