Showing
48 changed files
with
56 additions
and
47 deletions
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | 16 | ||
17 | <script> | 17 | <script> |
18 | import _ from 'lodash'; | 18 | import _ from 'lodash'; |
19 | -import {ColorService} from 'services/product'; | 19 | +import ColorService from 'services/product/color-service'; |
20 | export default { | 20 | export default { |
21 | name: 'checkbox-color', | 21 | name: 'checkbox-color', |
22 | props: { | 22 | props: { |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | 8 | ||
9 | <script> | 9 | <script> |
10 | import _ from 'lodash'; | 10 | import _ from 'lodash'; |
11 | -import {SizeService} from 'services/product'; | 11 | +import SizeService from 'services/product/size-service'; |
12 | 12 | ||
13 | export default { | 13 | export default { |
14 | name: 'checkbox-size', | 14 | name: 'checkbox-size', |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | 23 | ||
24 | <script> | 24 | <script> |
25 | import Vue from 'vue'; | 25 | import Vue from 'vue'; |
26 | -import {UserService} from 'services/user'; | 26 | +import UserService from 'services/user/user-service'; |
27 | 27 | ||
28 | export default { | 28 | export default { |
29 | name: 'layout-user-info', | 29 | name: 'layout-user-info', |
@@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
41 | 41 | ||
42 | <script> | 42 | <script> |
43 | import _ from 'lodash'; | 43 | import _ from 'lodash'; |
44 | -import {TradeService} from 'services/trade'; | 44 | +import TradeService from 'services/trade/trade-service'; |
45 | 45 | ||
46 | export default { | 46 | export default { |
47 | name: 'modal-deliver', | 47 | name: 'modal-deliver', |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </template> | 17 | </template> |
18 | 18 | ||
19 | <script> | 19 | <script> |
20 | -import {ProductService} from 'services/product'; | 20 | +import ProductService from 'services/product/product-service'; |
21 | import _ from 'lodash'; | 21 | import _ from 'lodash'; |
22 | 22 | ||
23 | export default { | 23 | export default { |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | </template> | 16 | </template> |
17 | 17 | ||
18 | <script> | 18 | <script> |
19 | -import {TradeService} from 'services/trade'; | 19 | +import TradeService from 'services/trade/trade-service'; |
20 | import { CellInfo } from 'components/cell'; | 20 | import { CellInfo } from 'components/cell'; |
21 | 21 | ||
22 | export default { | 22 | export default { |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | 8 | ||
9 | <script> | 9 | <script> |
10 | import _ from 'lodash'; | 10 | import _ from 'lodash'; |
11 | - import {BrandService} from 'services/product'; | 11 | + import BrandService from 'services/product/brand-service'; |
12 | 12 | ||
13 | export default { | 13 | export default { |
14 | name: 'select-brand', | 14 | name: 'select-brand', |
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | 7 | ||
8 | <script> | 8 | <script> |
9 | import _ from 'lodash'; | 9 | import _ from 'lodash'; |
10 | - import {SortService} from 'services/product'; | 10 | + import SortService from 'services/product/sort-service'; |
11 | 11 | ||
12 | export default { | 12 | export default { |
13 | name: 'select-category', | 13 | name: 'select-category', |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | </template> | 5 | </template> |
6 | 6 | ||
7 | <script> | 7 | <script> |
8 | - import {InvoiceService} from 'services/repository'; | 8 | + import InvoiceService from 'services/repository/invoice-service'; |
9 | 9 | ||
10 | export default { | 10 | export default { |
11 | name: 'select-express', | 11 | name: 'select-express', |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | </template> | 5 | </template> |
6 | 6 | ||
7 | <script> | 7 | <script> |
8 | - import {InvoiceService} from 'services/repository'; | 8 | + import InvoiceService from 'services/repository/invoice-service'; |
9 | 9 | ||
10 | export default { | 10 | export default { |
11 | name: 'select-room', | 11 | name: 'select-room', |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | 39 | ||
40 | <script> | 40 | <script> |
41 | import _ from 'lodash'; | 41 | import _ from 'lodash'; |
42 | -import {FinanceService} from 'services/finance'; | 42 | +import FinanceService from 'services/finance/finance-service'; |
43 | import {initialFields, tableCols, tableData, pageData} from './detail'; | 43 | import {initialFields, tableCols, tableData, pageData} from './detail'; |
44 | 44 | ||
45 | export default { | 45 | export default { |
@@ -34,7 +34,7 @@ | @@ -34,7 +34,7 @@ | ||
34 | 34 | ||
35 | <script> | 35 | <script> |
36 | import _ from 'lodash'; | 36 | import _ from 'lodash'; |
37 | -import {FinanceService} from 'services/finance'; | 37 | +import FinanceService from 'services/finance/finance-service'; |
38 | import {initialFields, tableCols, tableData, pageData} from './detail'; | 38 | import {initialFields, tableCols, tableData, pageData} from './detail'; |
39 | 39 | ||
40 | export default { | 40 | export default { |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | 90 | ||
91 | <script> | 91 | <script> |
92 | import _ from 'lodash'; | 92 | import _ from 'lodash'; |
93 | -import {ProductCreateService} from 'services/product'; | 93 | +import ProductCreateService from 'services/product/product-create-service'; |
94 | import {CheckboxAge, CheckboxColor, CheckboxSize} from 'components/checkbox'; | 94 | import {CheckboxAge, CheckboxColor, CheckboxSize} from 'components/checkbox'; |
95 | import {RadioSeason, RadioGender} from 'components/radio'; | 95 | import {RadioSeason, RadioGender} from 'components/radio'; |
96 | import {SelectSeason} from 'components/select'; | 96 | import {SelectSeason} from 'components/select'; |
@@ -219,7 +219,7 @@ | @@ -219,7 +219,7 @@ | ||
219 | 219 | ||
220 | <script> | 220 | <script> |
221 | 221 | ||
222 | -import {ProductCreateService} from 'services/product'; | 222 | +import ProductCreateService from 'services/product/product-create-service'; |
223 | import {ModalExample} from 'components/modal'; | 223 | import {ModalExample} from 'components/modal'; |
224 | 224 | ||
225 | export default { | 225 | export default { |
@@ -128,7 +128,8 @@ import { ImageGoodsMain } from 'components/image'; | @@ -128,7 +128,8 @@ import { ImageGoodsMain } from 'components/image'; | ||
128 | import {ModalExample} from 'components/modal'; | 128 | import {ModalExample} from 'components/modal'; |
129 | import {ExamplePop} from 'components/pop'; | 129 | import {ExamplePop} from 'components/pop'; |
130 | 130 | ||
131 | -import {ProductCreateService, ProductService} from 'services/product'; | 131 | +import ProductCreateService from 'services/product/product-create-service'; |
132 | +import ProductService from 'services/product/product-service'; | ||
132 | 133 | ||
133 | export default { | 134 | export default { |
134 | props: { | 135 | props: { |
@@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
67 | 67 | ||
68 | <script> | 68 | <script> |
69 | import _ from 'lodash'; | 69 | import _ from 'lodash'; |
70 | - import {ProductService} from 'services/product'; | 70 | + import ProductService from 'services/product/product-service'; |
71 | import {ModalSizeEdit} from 'components/modal'; | 71 | import {ModalSizeEdit} from 'components/modal'; |
72 | import {SelectBrand, SelectCategory} from 'components/select'; | 72 | import {SelectBrand, SelectCategory} from 'components/select'; |
73 | import offSaleStore from './store'; | 73 | import offSaleStore from './store'; |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | 59 | ||
60 | <script> | 60 | <script> |
61 | import _ from 'lodash'; | 61 | import _ from 'lodash'; |
62 | - import {ProductService} from 'services/product'; | 62 | + import ProductService from 'services/product/product-service'; |
63 | import {ModalSizeEdit} from 'components/modal'; | 63 | import {ModalSizeEdit} from 'components/modal'; |
64 | import {SelectBrand, SelectCategory} from 'components/select'; | 64 | import {SelectBrand, SelectCategory} from 'components/select'; |
65 | import onSaleStore from './store'; | 65 | import onSaleStore from './store'; |
@@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
60 | 60 | ||
61 | <script> | 61 | <script> |
62 | import _ from 'lodash'; | 62 | import _ from 'lodash'; |
63 | - import {ProductService} from 'services/product'; | 63 | + import ProductService from 'services/product/product-service'; |
64 | import {SelectCategory} from 'components/select'; | 64 | import {SelectCategory} from 'components/select'; |
65 | import {CellImage, CellInfo, CellPrice} from 'components/cell'; | 65 | import {CellImage, CellInfo, CellPrice} from 'components/cell'; |
66 | import vipStore from './store'; | 66 | import vipStore from './store'; |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | </template> | 19 | </template> |
20 | 20 | ||
21 | <script> | 21 | <script> |
22 | - import {ExpressService} from 'services/repository'; | 22 | + import ExpressService from 'services/repository/express-service'; |
23 | import moment from 'moment'; | 23 | import moment from 'moment'; |
24 | import _ from 'lodash'; | 24 | import _ from 'lodash'; |
25 | 25 |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | 39 | ||
40 | <script> | 40 | <script> |
41 | import {tableCols, tableData, pageData} from './store/list-table'; | 41 | import {tableCols, tableData, pageData} from './store/list-table'; |
42 | - import {ExpressService} from 'services/repository'; | 42 | + import ExpressService from 'services/repository/express-service'; |
43 | 43 | ||
44 | export default { | 44 | export default { |
45 | created() { | 45 | created() { |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <script> | 33 | <script> |
34 | 34 | ||
35 | import {SelectBrand, SelectRoom} from 'components/select'; | 35 | import {SelectBrand, SelectRoom} from 'components/select'; |
36 | -import {InvoiceService} from 'services/repository'; | 36 | +import InvoiceService from 'services/repository/invoice-service'; |
37 | 37 | ||
38 | export default { | 38 | export default { |
39 | name: 'create-modal', | 39 | name: 'create-modal', |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | </template> | 13 | </template> |
14 | 14 | ||
15 | <script> | 15 | <script> |
16 | - import {InvoiceService} from 'services/repository'; | 16 | + import InvoiceService from 'services/repository/invoice-service'; |
17 | 17 | ||
18 | export default { | 18 | export default { |
19 | name: 'order-info', | 19 | name: 'order-info', |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | </template> | 10 | </template> |
11 | 11 | ||
12 | <script> | 12 | <script> |
13 | - import {InvoiceService} from 'services/repository'; | 13 | + import InvoiceService from 'services/repository/invoice-service'; |
14 | import table from '../store/product-table'; | 14 | import table from '../store/product-table'; |
15 | 15 | ||
16 | export default { | 16 | export default { |
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | 38 | ||
39 | <script> | 39 | <script> |
40 | import {SelectExpress} from 'components/select'; | 40 | import {SelectExpress} from 'components/select'; |
41 | - import {InvoiceService} from 'services/repository'; | 41 | + import InvoiceService from 'services/repository/invoice-service'; |
42 | 42 | ||
43 | export default { | 43 | export default { |
44 | name: 'send-modal', | 44 | name: 'send-modal', |
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | import {tableCols} from './store/deliver-table'; | 25 | import {tableCols} from './store/deliver-table'; |
26 | import SendModal from './components/send-modal'; | 26 | import SendModal from './components/send-modal'; |
27 | import OrderInfo from './components/order-info'; | 27 | import OrderInfo from './components/order-info'; |
28 | - import {InvoiceService} from 'services/repository'; | 28 | + import InvoiceService from 'services/repository/invoice-service'; |
29 | import _ from 'lodash'; | 29 | import _ from 'lodash'; |
30 | 30 | ||
31 | export default { | 31 | export default { |
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | import ProductList from './components/product-list'; | 42 | import ProductList from './components/product-list'; |
43 | import OrderInfo from './components/order-info'; | 43 | import OrderInfo from './components/order-info'; |
44 | import {SelectRoom} from 'components/select'; | 44 | import {SelectRoom} from 'components/select'; |
45 | - import {InvoiceService} from 'services/repository'; | 45 | + import InvoiceService from 'services/repository/invoice-service'; |
46 | 46 | ||
47 | export default { | 47 | export default { |
48 | props: ['isEdit'], | 48 | props: ['isEdit'], |
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | import _ from 'lodash'; | 70 | import _ from 'lodash'; |
71 | import {tableCols, tableData, pageData} from './store/list-table'; | 71 | import {tableCols, tableData, pageData} from './store/list-table'; |
72 | import CreateModal from './components/create-modal'; | 72 | import CreateModal from './components/create-modal'; |
73 | - import {InvoiceService} from 'services/repository'; | 73 | + import InvoiceService from 'services/repository/invoice-service'; |
74 | 74 | ||
75 | export default { | 75 | export default { |
76 | created() { | 76 | created() { |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | 33 | ||
34 | <script> | 34 | <script> |
35 | import _ from 'lodash'; | 35 | import _ from 'lodash'; |
36 | - import {JitService} from 'services/repository'; | 36 | + import JitService from 'services/repository/jit-service'; |
37 | import {SelectBrand, SelectCategory} from 'components/select'; | 37 | import {SelectBrand, SelectCategory} from 'components/select'; |
38 | import EditStore from './components/edit-store'; | 38 | import EditStore from './components/edit-store'; |
39 | import ImportStore from './components/import-store'; | 39 | import ImportStore from './components/import-store'; |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </template> | 17 | </template> |
18 | 18 | ||
19 | <script> | 19 | <script> |
20 | - import {ReturnService} from 'services/repository'; | 20 | + import ReturnService from 'services/repository/return-service'; |
21 | import _ from 'lodash'; | 21 | import _ from 'lodash'; |
22 | import { detail } from './store'; | 22 | import { detail } from './store'; |
23 | 23 |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | <script> | 39 | <script> |
40 | import _ from 'lodash'; | 40 | import _ from 'lodash'; |
41 | import moment from 'moment'; | 41 | import moment from 'moment'; |
42 | - import {ReturnService} from 'services/repository'; | 42 | + import ReturnService from 'services/repository/return-service'; |
43 | import listStore from './store/list'; | 43 | import listStore from './store/list'; |
44 | 44 | ||
45 | export default { | 45 | export default { |
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | </template> | 24 | </template> |
25 | <script> | 25 | <script> |
26 | import _ from 'lodash'; | 26 | import _ from 'lodash'; |
27 | -import {InvoiceService} from 'services/repository'; | 27 | +import InvoiceService from 'services/repository/invoice-service'; |
28 | import timeFormat from 'filters/time-format'; | 28 | import timeFormat from 'filters/time-format'; |
29 | 29 | ||
30 | export default { | 30 | export default { |
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | import _ from 'lodash'; | 53 | import _ from 'lodash'; |
54 | import {SelectBrand, SelectCategory, SelectStockStatus} from 'components/select'; | 54 | import {SelectBrand, SelectCategory, SelectStockStatus} from 'components/select'; |
55 | import {ModalInvoice} from './components'; | 55 | import {ModalInvoice} from './components'; |
56 | -import {InvoiceService} from 'services/repository'; | 56 | +import InvoiceService from 'services/repository/invoice-service'; |
57 | import store from './store'; | 57 | import store from './store'; |
58 | 58 | ||
59 | export default { | 59 | export default { |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | </template> | 6 | </template> |
7 | 7 | ||
8 | <script> | 8 | <script> |
9 | - import {ShopCategoryService} from 'services/shop'; | 9 | + import ShopCategoryService from 'services/shop/shop-category-service'; |
10 | 10 | ||
11 | export default { | 11 | export default { |
12 | name: 'Operator', | 12 | name: 'Operator', |
@@ -44,7 +44,7 @@ | @@ -44,7 +44,7 @@ | ||
44 | import _ from 'lodash'; | 44 | import _ from 'lodash'; |
45 | import {SelectCategory} from 'components/select'; | 45 | import {SelectCategory} from 'components/select'; |
46 | import {CellImage} from 'components/cell'; | 46 | import {CellImage} from 'components/cell'; |
47 | - import {ShopCategoryService} from 'services/shop'; | 47 | + import ShopCategoryService from 'services/shop/shop-category-service'; |
48 | import Operator from './operator'; // eslint-disable-line | 48 | import Operator from './operator'; // eslint-disable-line |
49 | 49 | ||
50 | export default { | 50 | export default { |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <script> | 14 | <script> |
15 | 15 | ||
16 | import {ProductList} from './components'; | 16 | import {ProductList} from './components'; |
17 | -import {ShopCategoryService} from 'services/shop'; | 17 | +import ShopCategoryService from 'services/shop/shop-category-service'; |
18 | export default { | 18 | export default { |
19 | data() { | 19 | data() { |
20 | return { | 20 | return { |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | 17 | ||
18 | <script> | 18 | <script> |
19 | import {EditName} from './components'; | 19 | import {EditName} from './components'; |
20 | - import {ShopCategoryService} from 'services/shop'; | 20 | + import ShopCategoryService from 'services/shop/shop-category-service'; |
21 | 21 | ||
22 | export default { | 22 | export default { |
23 | created() { | 23 | created() { |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | </template> | 5 | </template> |
6 | <script> | 6 | <script> |
7 | import _ from 'lodash'; | 7 | import _ from 'lodash'; |
8 | -import {ShopService} from 'services/shop'; | 8 | +import ShopService from 'services/shop/shop-service'; |
9 | export default { | 9 | export default { |
10 | created() { | 10 | created() { |
11 | this.shopService = new ShopService(); | 11 | this.shopService = new ShopService(); |
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | import _ from 'lodash'; | 28 | import _ from 'lodash'; |
29 | import moment from 'moment'; | 29 | import moment from 'moment'; |
30 | import allotStore from './store'; | 30 | import allotStore from './store'; |
31 | - import {TradeService} from 'services/trade'; | 31 | + import TradeService from 'services/trade/trade-service'; |
32 | 32 | ||
33 | export default { | 33 | export default { |
34 | data() { | 34 | data() { |
@@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
52 | <script> | 52 | <script> |
53 | import _ from 'lodash'; | 53 | import _ from 'lodash'; |
54 | import moment from 'moment'; | 54 | import moment from 'moment'; |
55 | - import {TradeService} from 'services/trade'; | 55 | + import TradeService from 'services/trade/trade-service'; |
56 | import dataStore from '../store/done'; | 56 | import dataStore from '../store/done'; |
57 | 57 | ||
58 | export default { | 58 | export default { |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | 33 | ||
34 | <script> | 34 | <script> |
35 | import _ from 'lodash'; | 35 | import _ from 'lodash'; |
36 | - import {TradeService} from 'services/trade'; | 36 | + import TradeService from 'services/trade/trade-service'; |
37 | import dataStore from '../store/express'; | 37 | import dataStore from '../store/express'; |
38 | 38 | ||
39 | export default { | 39 | export default { |
@@ -64,7 +64,7 @@ | @@ -64,7 +64,7 @@ | ||
64 | <script> | 64 | <script> |
65 | import _ from 'lodash'; | 65 | import _ from 'lodash'; |
66 | import moment from 'moment'; | 66 | import moment from 'moment'; |
67 | - import {TradeService} from 'services/trade'; | 67 | + import TradeService from 'services/trade/trade-service'; |
68 | import dataStore from '../store/undone'; | 68 | import dataStore from '../store/undone'; |
69 | import { ModalDeliver, ModalStockOut } from 'components/modal'; | 69 | import { ModalDeliver, ModalStockOut } from 'components/modal'; |
70 | 70 |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | 14 | ||
15 | <script> | 15 | <script> |
16 | import moment from 'moment'; | 16 | import moment from 'moment'; |
17 | - import {TradeService} from 'services/trade'; | 17 | + import TradeService from 'services/trade/trade-service'; |
18 | 18 | ||
19 | export default { | 19 | export default { |
20 | data() { | 20 | data() { |
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | 40 | ||
41 | <script> | 41 | <script> |
42 | import _ from 'lodash'; | 42 | import _ from 'lodash'; |
43 | - import {TradeService} from 'services/trade'; | 43 | + import TradeService from 'services/trade/trade-service'; |
44 | 44 | ||
45 | export default { | 45 | export default { |
46 | data() { | 46 | data() { |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | */ | 3 | */ |
4 | import _ from 'lodash'; | 4 | import _ from 'lodash'; |
5 | import axios from 'axios'; | 5 | import axios from 'axios'; |
6 | -import {UserService} from 'services/user'; | 6 | +import UserService from 'services/user/user-service'; |
7 | import Rsa from 'rsa'; | 7 | import Rsa from 'rsa'; |
8 | 8 | ||
9 | export default { | 9 | export default { |
-
Please register or login to post a comment