| | |
| | | <meta name="description" content="" /> |
| | | <link rel="icon" href="<%= BASE_URL %>wms_d.png"> |
| | | <title><%= htmlWebpackPlugin.options.title %></title> |
| | | <script src="webconfig.js"></script> |
| | | </head> |
| | | |
| | | <body> |
对比新文件 |
| | |
| | | window.webConfig = { |
| | | "webApiBaseUrl":"http://127.0.0.1:9293/" //"http://10.30.4.92:9283/" |
| | | } |
| | |
| | | let loadingInstance; |
| | | let loadingStatus = false; |
| | | if (process.env.NODE_ENV == 'development') { |
| | | axios.defaults.baseURL = 'http://127.0.0.1:9293/'; |
| | | axios.defaults.baseURL = window.webConfig.webApiBaseUrl; |
| | | } |
| | | else if (process.env.NODE_ENV == 'debug') { |
| | | axios.defaults.baseURL = 'http://127.0.0.1:8098/'; |
| | | } |
| | | |
| | | else if (process.env.NODE_ENV == 'production') { |
| | | axios.defaults.baseURL = 'http://10.30.4.92:9283/'; |
| | | axios.defaults.baseURL = window.webConfig.webApiBaseUrl; |
| | | } |
| | | if (!axios.defaults.baseURL.endsWith('/')) { |
| | | axios.defaults.baseURL+="/"; |
| | |
| | | } |
| | | } |
| | | if (column.field == 'materielInfo') { |
| | | const today = new Date() |
| | | column.formatter = (row) => { |
| | | if(row.details.length<=0) return; |
| | | const today = new Date(); |
| | | const closestDate = row.details |
| | | .map(x => { |
| | |
| | | } |
| | | if (column.field == 'sumStock') { |
| | | column.formatter = (row) => { |
| | | if(row.details.length<=0) return; |
| | | var sum=0; |
| | | const closestDate = row.details |
| | | .map(x => { |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouseId", |
| | | title: "浠撳簱", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | bind: { key: "warehouses", data: [] }, |
| | | }, |
| | | { |
| | | field: "locationCode", |
| | | title: "璐т綅缂栧彿", |
| | | type: "string", |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public int WarehouseId { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string LocationCode { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | ISugarQueryable<StockViewDTO> list = sugarQueryable1.InnerJoin(sugarQueryable, (b, a) => a.LocationCode == b.LocationCode).Select((b, a) |
| | | => new StockViewDTO |
| | | { |
| | | WarehouseId=a.WarehouseId, |
| | | LocationCode = b.LocationCode, |
| | | Column = a.Column, |
| | | CreateDate = b.CreateDate, |