182 lines
3.8 KiB
JavaScript
182 lines
3.8 KiB
JavaScript
// Copyright (C) INFINI Labs & INFINI LIMITED.
|
|
//
|
|
// The INFINI Console is offered under the GNU Affero General Public License v3.0
|
|
// and as commercial software.
|
|
//
|
|
// For commercial licensing, contact us at:
|
|
// - Website: infinilabs.com
|
|
// - Email: hello@infini.ltd
|
|
//
|
|
// Open Source licensed under AGPL V3:
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
const basicGoods = [
|
|
{
|
|
id: '1234561',
|
|
name: '矿泉水 550ml',
|
|
barcode: '12421432143214321',
|
|
price: '2.00',
|
|
num: '1',
|
|
amount: '2.00',
|
|
},
|
|
{
|
|
id: '1234562',
|
|
name: '凉茶 300ml',
|
|
barcode: '12421432143214322',
|
|
price: '3.00',
|
|
num: '2',
|
|
amount: '6.00',
|
|
},
|
|
{
|
|
id: '1234563',
|
|
name: '好吃的薯片',
|
|
barcode: '12421432143214323',
|
|
price: '7.00',
|
|
num: '4',
|
|
amount: '28.00',
|
|
},
|
|
{
|
|
id: '1234564',
|
|
name: '特别好吃的蛋卷',
|
|
barcode: '12421432143214324',
|
|
price: '8.50',
|
|
num: '3',
|
|
amount: '25.50',
|
|
},
|
|
];
|
|
|
|
const basicProgress = [
|
|
{
|
|
key: '1',
|
|
time: '2017-10-01 14:10',
|
|
rate: '联系客户',
|
|
status: 'processing',
|
|
operator: '取货员 ID1234',
|
|
cost: '5mins',
|
|
},
|
|
{
|
|
key: '2',
|
|
time: '2017-10-01 14:05',
|
|
rate: '取货员出发',
|
|
status: 'success',
|
|
operator: '取货员 ID1234',
|
|
cost: '1h',
|
|
},
|
|
{
|
|
key: '3',
|
|
time: '2017-10-01 13:05',
|
|
rate: '取货员接单',
|
|
status: 'success',
|
|
operator: '取货员 ID1234',
|
|
cost: '5mins',
|
|
},
|
|
{
|
|
key: '4',
|
|
time: '2017-10-01 13:00',
|
|
rate: '申请审批通过',
|
|
status: 'success',
|
|
operator: '系统',
|
|
cost: '1h',
|
|
},
|
|
{
|
|
key: '5',
|
|
time: '2017-10-01 12:00',
|
|
rate: '发起退货申请',
|
|
status: 'success',
|
|
operator: '用户',
|
|
cost: '5mins',
|
|
},
|
|
];
|
|
|
|
const advancedOperation1 = [
|
|
{
|
|
key: 'op1',
|
|
type: '订购关系生效',
|
|
name: '曲丽丽',
|
|
status: 'agree',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '-',
|
|
},
|
|
{
|
|
key: 'op2',
|
|
type: '财务复审',
|
|
name: '付小小',
|
|
status: 'reject',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '不通过原因',
|
|
},
|
|
{
|
|
key: 'op3',
|
|
type: '部门初审',
|
|
name: '周毛毛',
|
|
status: 'agree',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '-',
|
|
},
|
|
{
|
|
key: 'op4',
|
|
type: '提交订单',
|
|
name: '林东东',
|
|
status: 'agree',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '很棒',
|
|
},
|
|
{
|
|
key: 'op5',
|
|
type: '创建订单',
|
|
name: '汗牙牙',
|
|
status: 'agree',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '-',
|
|
},
|
|
];
|
|
|
|
const advancedOperation2 = [
|
|
{
|
|
key: 'op1',
|
|
type: '订购关系生效',
|
|
name: '曲丽丽',
|
|
status: 'agree',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '-',
|
|
},
|
|
];
|
|
|
|
const advancedOperation3 = [
|
|
{
|
|
key: 'op1',
|
|
type: '创建订单',
|
|
name: '汗牙牙',
|
|
status: 'agree',
|
|
updatedAt: '2017-10-03 19:23:12',
|
|
memo: '-',
|
|
},
|
|
];
|
|
|
|
const getProfileBasicData = {
|
|
basicGoods,
|
|
basicProgress,
|
|
};
|
|
|
|
const getProfileAdvancedData = {
|
|
advancedOperation1,
|
|
advancedOperation2,
|
|
advancedOperation3,
|
|
};
|
|
|
|
export default {
|
|
'GET /api/profile/advanced': getProfileAdvancedData,
|
|
'GET /api/profile/basic': getProfileBasicData,
|
|
};
|