|
|
@@ -100,8 +100,16 @@
|
|
|
<el-button size="small" v-if="scope.row.status == 5 || scope.row.status == 1">打小票({{ scope.row.printNum }})</el-button>
|
|
|
<el-button @click.stop="printOrder(scope.row)" size="small" type="primary" v-else>打小票({{ scope.row.printNum }})</el-button>
|
|
|
|
|
|
- <el-button @click.stop="cancelOrder(scope.row)" size="small" type="primary" v-if="scope.row.status == 3 || scope.row.status == 2 || scope.row.status == 1">取消</el-button>
|
|
|
- <el-button size="small" v-else>取消</el-button>
|
|
|
+
|
|
|
+ <el-dropdown @command="doMore($event,scope.row)" style="margin-left:10px;">
|
|
|
+ <el-button type="primary" size="small">
|
|
|
+ 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item command="cancel">取消</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="refundRecord">售后记录</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
@@ -238,6 +246,14 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ doMore(cmd,info){
|
|
|
+ if(cmd == 'cancel'){
|
|
|
+ this.cancelOrder(info)
|
|
|
+ }
|
|
|
+ if(cmd == 'refundRecord'){
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
goRefund(data){
|
|
|
this.currentRefundData = data
|
|
|
setTimeout(() => {
|
|
|
@@ -517,7 +533,7 @@ export default {
|
|
|
op: {
|
|
|
visible: true,
|
|
|
props: {
|
|
|
- width: 520,
|
|
|
+ width: 540,
|
|
|
align: 'center',
|
|
|
fixed: 'right',
|
|
|
label: '操作'
|