2019-02-27 16:46:15 +08:00

134 lines
2.3 KiB
JavaScript

import * as API from 'api/virtual/orders';
export default {
props: {
show: {
type: Boolean,
default: false
},
type: {
type: Number,
default: 0
}
},
data() {
return {
my_show: false,
loading: false,
search: {
show: true
},
params: {
company_id: '',
package_id: '',
carrier_operator: '',
time: [],
used: 0,
sim: ''
},
orders: [],
cards: [],
selected: [],
orderColumns: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: '订单编号',
key: 'sn'
},
{
title: '企业名称',
key: 'company_name'
},
{
title: '运营商',
key: 'carrier_operator_name'
},
{
title: '套餐名称',
key: 'package_name'
},
{
title: '订单卡量',
key: 'counts'
},
{
title: '订单金额',
key: 'total_price'
},
{
title: '支付方式',
key: 'pay_chanel_name'
},
{
title: '订单时间',
key: 'order_at'
},
{
title: '所需卡量',
key: ''
}
],
cardColumns: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: 'SIM',
key: 'sim'
},
{
title: 'VD企业',
key: 'company_name'
},
{
title: 'VD套餐',
key: 'package_name'
},
{
title: '状态',
key: 'used_name'
}
]
};
},
watch: {
show(bool) {
this.my_show = bool;
if (bool) {}
}
},
methods: {
ok() {
},
index(page) {},
visibleChange(bool) {
if (!bool) {
this.$emit('update:show', false);
}
},
clear() {
this.my_show = false;
},
resetSearch() {
for (let k in this.params) {
if (k === 'time') {
this.params[k] = [];
} else if (k === 'used') {
this.params[k] = 0;
} else {
this.params[k] = '';
}
}
this.index(1);
}
}
};