Merge branch 'dev' of http://115.159.85.185:8098/r/SuZhouGuanHong/ShanMeiXinNengYuan into dev
| | |
| | | <strong>We're sorry but WCS doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> |
| | | </noscript> |
| | | <div id="app"></div> |
| | | <script src="/webconfig.js"></script> |
| | | <script type="module" src="/src/main.js"></script> |
| | | </body> |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | window.webConfig = { |
| | | "webApiBaseUrl": "http://localhost:9292/", |
| | | "webApiProduction":"http://192.168.60.30:9292/" |
| | | } |
| | |
| | | let loadingInstance; |
| | | let loadingStatus = false; |
| | | if (process.env.NODE_ENV == 'development') { |
| | | axios.defaults.baseURL = 'http://127.0.0.1:9292/'; |
| | | axios.defaults.baseURL = window.webConfig.webApiBaseUrl; |
| | | } |
| | | else if (process.env.NODE_ENV == 'debug') { |
| | | axios.defaults.baseURL = 'http://127.0.0.1:9292/'; |
| | | axios.defaults.baseURL = window.webConfig.webApiBaseUrl; |
| | | } |
| | | |
| | | else if (process.env.NODE_ENV == 'production') { |
| | | axios.defaults.baseURL = 'http://192.168.60.30:9292/'; |
| | | axios.defaults.baseURL = window.webConfig.webApiProduction; |
| | | } |
| | | if (!axios.defaults.baseURL.endsWith('/')) { |
| | | axios.defaults.baseURL+="/"; |
| | |
| | | const TEXT = { |
| | | pageName: "åºåä¿¡æ¯", |
| | | palletCode: "æçç¼å·", |
| | | stockStatus: "åºåç¶æ", |
| | | locationCode: "è´§ä½ç¼å·", |
| | | warehouse: "ä»åº", |
| | | creator: "å建人", |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "stockStatus", |
| | | title: TEXT.stockStatus, |
| | | type: "int", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "stockStatusEmun", data: [] }, |
| | | }, |
| | | { |
| | | field: "locationCode", |
| | | title: TEXT.locationCode, |
| | | type: "string", |
| | |
| | | var occupiedLocations = occupiedLocationGroups.FirstOrDefault(og => og.WarehouseId == w.WarehouseId)?.OccupiedLocations ?? 0;
|
| | | var emptyLocations = totalLocations - occupiedLocations;
|
| | |
|
| | | var occupiedPercentage = totalLocations > 0 ? Math.Round((double)occupiedLocations / totalLocations * 100, 2) : 0.0;
|
| | | var emptyPercentage = totalLocations > 0 ? Math.Round((double)emptyLocations / totalLocations * 100, 2) : 0.0;
|
| | | var occupiedPercentage = totalLocations > 0 ? Math.Round((double)occupiedLocations / totalLocations * 100, 0) : 0.0;
|
| | | var emptyPercentage = totalLocations > 0 ? Math.Round((double)emptyLocations / totalLocations * 100, 0) : 0.0;
|
| | |
|
| | | return new
|
| | | {
|