Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-shop-manage into release/1.0
Showing
4 changed files
with
27 additions
and
21 deletions
@@ -102,6 +102,11 @@ export default () => { | @@ -102,6 +102,11 @@ export default () => { | ||
102 | } | 102 | } |
103 | }, | 103 | }, |
104 | { | 104 | { |
105 | + title: '商品条码', | ||
106 | + key: 'skuFactoryCode', | ||
107 | + align: 'center' | ||
108 | + }, | ||
109 | + { | ||
105 | title: '订单收发货', | 110 | title: '订单收发货', |
106 | align: 'center', | 111 | align: 'center', |
107 | render(row) { // eslint-disable-line | 112 | render(row) { // eslint-disable-line |
@@ -98,6 +98,11 @@ export default () => { | @@ -98,6 +98,11 @@ export default () => { | ||
98 | } | 98 | } |
99 | }, | 99 | }, |
100 | { | 100 | { |
101 | + title: '商品条码', | ||
102 | + key: 'skuFactoryCode', | ||
103 | + align: 'center' | ||
104 | + }, | ||
105 | + { | ||
101 | title: '订单收发货', | 106 | title: '订单收发货', |
102 | align: 'center', | 107 | align: 'center', |
103 | render(row) { // eslint-disable-line | 108 | render(row) { // eslint-disable-line |
@@ -112,6 +117,7 @@ export default () => { | @@ -112,6 +117,7 @@ export default () => { | ||
112 | }, | 117 | }, |
113 | { | 118 | { |
114 | title: '发货', | 119 | title: '发货', |
120 | + width: 120, | ||
115 | align: 'center', | 121 | align: 'center', |
116 | render(row, column, i) { | 122 | render(row, column, i) { |
117 | return `<cell-deliver | 123 | return `<cell-deliver |
@@ -124,6 +130,7 @@ export default () => { | @@ -124,6 +130,7 @@ export default () => { | ||
124 | }, | 130 | }, |
125 | { | 131 | { |
126 | title: '缺货', | 132 | title: '缺货', |
133 | + width: 140, | ||
127 | align: 'center', | 134 | align: 'center', |
128 | render(row, column, index) { | 135 | render(row, column, index) { |
129 | return `<cell-stock-out | 136 | return `<cell-stock-out |
@@ -66,6 +66,21 @@ const domains = { | @@ -66,6 +66,21 @@ const domains = { | ||
66 | shop: 'http://192.168.102.211:30016' | 66 | shop: 'http://192.168.102.211:30016' |
67 | }; | 67 | }; |
68 | 68 | ||
69 | +const isProd = process.env.NODE_ENV === 'production'; | ||
70 | +const isTest = (process.env.NODE_ENV || '').indexOf('test') >= 0; | ||
71 | + | ||
72 | +if (isTest) { | ||
73 | + domains.erp = 'http://192.168.103.82:9098'; | ||
74 | + domains.platform = 'http://192.168.102.210:8088/platform'; | ||
75 | + domains.shop = 'http://192.168.102.211:30016'; | ||
76 | +} | ||
77 | + | ||
78 | +if (isProd) { | ||
79 | + domains.erp = 'http://gw.erp.yohoops.org'; | ||
80 | + domains.platform = 'http://api.platform.yohoops.org/platform'; | ||
81 | + domains.shop = 'http://shops.yohobuy.com'; | ||
82 | +} | ||
83 | + | ||
69 | _.each(domainApis, (apis, domainName) => { | 84 | _.each(domainApis, (apis, domainName) => { |
70 | _.each(apis, (url, api) => { | 85 | _.each(apis, (url, api) => { |
71 | apis[api] = _.get(domains, domainName, '') + url; | 86 | apis[api] = _.get(domains, domainName, '') + url; |
@@ -5,11 +5,8 @@ | @@ -5,11 +5,8 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | 'use strict'; | 7 | 'use strict'; |
8 | -const _ = require('lodash'); | ||
9 | const apiDomain = require('./api-domain'); | 8 | const apiDomain = require('./api-domain'); |
10 | 9 | ||
11 | -const isProd = process.env.NODE_ENV === 'production'; | ||
12 | -const isTest = (process.env.NODE_ENV || '').indexOf('test') >= 0; | ||
13 | 10 | ||
14 | // | 11 | // |
15 | const config = { | 12 | const config = { |
@@ -47,23 +44,5 @@ const config = { | @@ -47,23 +44,5 @@ const config = { | ||
47 | } | 44 | } |
48 | }; | 45 | }; |
49 | 46 | ||
50 | -if (isTest) { | ||
51 | - _.merge(config, { | ||
52 | - apiDomain: { | ||
53 | - erp: 'http://192.168.103.82:9098', | ||
54 | - platform: 'http://192.168.102.210:8088/platform', | ||
55 | - shop: 'http://192.168.102.211:30016' | ||
56 | - } | ||
57 | - }); | ||
58 | -} | ||
59 | - | ||
60 | -if (isProd) { | ||
61 | - _.merge(config, { | ||
62 | - apiDomain: { | ||
63 | - platform: 'http://api.platform.yohoops.org/platform', | ||
64 | - erp: 'http://gw.erp.yohoops.org' | ||
65 | - } | ||
66 | - }); | ||
67 | -} | ||
68 | 47 | ||
69 | module.exports = config; | 48 | module.exports = config; |
-
Please register or login to post a comment