| | |
| | | this.$refs.gridBody.open(); |
| | | }; |
| | | } |
| | | this.buttons.unshift({ |
| | | //也可以用push或者splice方法来修改buttons数组 |
| | | name: "开启服务", //按钮名称 |
| | | icon: "el-icon-document", //按钮图标vue2版本见iview文档icon,vue3版本见element ui文档icon(注意不是element puls文档) |
| | | type: "primary", //按钮样式vue2版本见iview文档button,vue3版本见element ui文档button |
| | | onClick: function () { |
| | | this.$Message.success("开启服务"); |
| | | }, |
| | | }); |
| | | // this.buttons.unshift({ |
| | | // //也可以用push或者splice方法来修改buttons数组 |
| | | // name: "开启服务", //按钮名称 |
| | | // icon: "el-icon-document", //按钮图标vue2版本见iview文档icon,vue3版本见element ui文档icon(注意不是element puls文档) |
| | | // type: "primary", //按钮样式vue2版本见iview文档button,vue3版本见element ui文档button |
| | | // onClick: function () { |
| | | // this.$Message.success("开启服务"); |
| | | // }, |
| | | // }); |
| | | }, |
| | | onInited() { |
| | | //框架初始化配置后 |
| | |
| | | field: "palletCode", |
| | | title: "托盘编号", |
| | | type: "string", |
| | | width: 200, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "currentAddress", |
| | | title: "当前位置", |
| | | type: "string", |
| | | width: 120, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "nextAddress", |
| | | title: "下一位置", |
| | | type: "string", |
| | | width: 120, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "dispatchertime", |
| | | title: "任务下发时间", |
| | | type: "datetime", |
| | | width: 150, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "modifier", |
| | | title: "修改人", |
| | | type: "string", |
| | | width: 100, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | { "title": "库存类型", "field": "isFull", type: "select", dataKey: "isFull", data: [] }, |
| | | ],[ |
| | | { "title": "库位号", "field": "locationCode", type: "text" }, |
| | | { "title": "巷道", "field": "roadwayNo", type: "text" }, |
| | | // { "title": "巷道", "field": "roadwayNo", type: "text" }, |
| | | ] |
| | | ]); |
| | | const columns = ref( |
| | |
| | | |
| | | var result = JsonConvert.DeserializeObject<RequsetCellInfo>(json.ToString()); |
| | | |
| | | var area = _areaInfoRepository.QueryFirst(x => x.AreaID == result.LocationArea); |
| | | //var area = _areaInfoRepository.QueryFirst(x => x.AreaID == result.LocationArea); |
| | | |
| | | var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaCode == area.AreaCode); |
| | | var location = _locationRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaId == result.LocationArea); |
| | | |
| | | if (location != null) |
| | | { |
| | | throw new Exception("请求异常:未知库位"); |
| | | } |
| | | |
| | | var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.LocationId == location.Id); |
| | | |
| | | //todo |
| | | if (info != null) |
| | |
| | | { |
| | | string[] chineseNumbers = new string[] { "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" }; |
| | | var locationList = new List<DtLocationInfo>(); |
| | | for (int line = 7; line <= x; line++) |
| | | for (int line = 3; line <= x; line++) |
| | | { |
| | | for (int column = 1; column <= y; column++) |
| | | { |
| | |
| | | LocationType = locType, |
| | | Remark = "", |
| | | Depth = locType > 1 ? (((line - 1) % 4) + 1) == 2 || (((line - 1) % 4) + 1) == 3 ? 1 : 2 : 1, |
| | | RoadwayNo = locType > 1 ? $"JZSC{((line - 1) / 4) + 1}" : $"JZSC{((line - 1) / 2) + 1}", |
| | | RoadwayNo = locType > 1 ? $"GWSC{((line - 1) / 4) + 1}" : $"GWSC{((line - 1) / 2) + 1}", |
| | | LocationStatus = LocationEnum.Free.ObjToInt(), |
| | | AreaId = areaId, |
| | | Creater = "systeam", |