123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- import Mock from 'mockjs';
- // system customer manage
- export const customerListApi = Mock.mock(
- '/api/system/customer/list',
- 'post',
- (data) => {
- return {
- // list: [],
- list: [
- {
- id: '1',
- name: '1122',
- type: '333',
- province: '4',
- city: '5',
- area: '6',
- address: '7',
- manager: '8',
- serviceName: '9',
- roles: '10',
- k: 12,
- l: '12',
- m: '13',
- },
- ],
- total: 70,
- };
- }
- );
- // supplier customer manage
- export const supplierListApi = Mock.mock(
- '/api/system/supplier/list',
- 'post',
- (data) => {
- return {
- // list: [],
- list: [
- {
- id: '1',
- code: '22',
- name: '33',
- type: '44',
- remark: '55',
- enable: true,
- },
- ],
- total: 70,
- };
- }
- );
- // device customer manage
- export const deviceListApi = Mock.mock(
- '/api/system/device/list',
- 'post',
- (data) => {
- return {
- // list: [],
- list: [
- {
- id: '1',
- code: '22',
- serialNo: '33',
- brand: '44',
- buyTime: '55',
- supllier: '66',
- status: '77',
- location: '88',
- scanCount: '99',
- },
- ],
- total: 70,
- };
- }
- );
- // service-level manage
- export const serviceLevelListApi = Mock.mock(
- '/api/system/service-level/list',
- 'post',
- (data) => {
- return {
- list: [
- {
- id: '1',
- name: '11',
- businessType: '22',
- roles: [],
- creator: '44',
- createdTime: '',
- },
- ],
- total: 70,
- };
- }
- );
- // checkin customer manage
- export const checkinListApi = Mock.mock(
- '/api/system/checkin/list',
- 'post',
- (data) => {
- return {
- list: [
- {
- id: '1',
- unit: '11',
- status: '22',
- name: '33',
- to: [],
- supplier: '44',
- checkinTime: [55],
- checkoutTime: [66],
- auditRoles: [77],
- openFace: false,
- backupCount: 2,
- },
- ],
- total: 70,
- };
- }
- );
- // log customer manage
- export const logListApi = Mock.mock('/api/system/log/list', 'post', (data) => {
- return {
- // list: [],
- list: [
- {
- id: '1',
- a: '1122',
- b: '333',
- c: '4',
- },
- {
- id: '2',
- a: '1122',
- b: '333',
- c: '4',
- },
- {
- id: '3',
- a: '1122',
- b: '333',
- c: '4',
- },
- ],
- total: 70,
- };
- });
- // notice customer manage
- export const noticeListApi = Mock.mock(
- '/api/system/notice/list',
- 'post',
- (data) => {
- return {
- // list: [],
- list: [
- {
- id: '1',
- a: '1122',
- b: '333',
- c: '4',
- },
- {
- id: '2',
- a: '1122',
- b: '333',
- c: '4',
- },
- {
- id: '3',
- a: '1122',
- b: '333',
- c: '4',
- },
- ],
- total: 70,
- };
- }
- );
|