| | |
| | | :width="item.width" |
| | | align="center" |
| | | > |
| | | <template #default="scoped" v-if="item.type == 'icon'"> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | :content="item.title" |
| | | placement="bottom" |
| | | ><el-button |
| | | type="text" |
| | | @click="tableButtonClick(scoped.row, item)" |
| | | ><i :class="item.icon" style="font-size: 22px"></i></el-button |
| | | ></el-tooltip> |
| | | <template #default="scoped"> |
| | | <div v-if="item.type == 'icon'"> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | | :content="item.title" |
| | | placement="bottom" |
| | | ><el-button |
| | | type="text" |
| | | @click="tableButtonClick(scoped.row, item)" |
| | | ><i :class="item.icon" style="font-size: 22px"></i></el-button |
| | | ></el-tooltip> |
| | | </div> |
| | | <div v-else-if="item.type == 'tag'"> |
| | | <el-tag size="small"> |
| | | {{ getDictionary(scoped.row, item) }} |
| | | </el-tag> |
| | | </div> |
| | | <div v-else> |
| | | {{ scoped.row[item.prop] }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | showDetialBox: false, |
| | | showStationDialog: false, // ç«å°éæ©å¼¹çªæ¾ç¤ºæ§å¶ |
| | | tableData: [], |
| | | dictionaryList: null, // æ°å¢ï¼åå
¸æ°æ® |
| | | tableColumns: [ |
| | | { |
| | | prop: "materielCode", |
| | |
| | | type: "string", |
| | | }, |
| | | { |
| | | prop: "stockStatus", |
| | | title: "åºåæç»ç¶æ", |
| | | type: "tag", |
| | | width: 90, |
| | | bindKey: "stockStatusEmun", |
| | | }, |
| | | { |
| | | prop: "stockId", |
| | | title: "åºå主é®", |
| | | type: "string", |
| | |
| | | this.showDetialBox = true; |
| | | this.originalQuantity = this.row.lockQuantity; |
| | | this.selectionSum = this.row.lockQuantity; |
| | | |
| | | // å è½½åå
¸æ°æ® |
| | | this.getDictionaryData(); |
| | | this.getData(); |
| | | |
| | | if (this.selectionSum == this.row.orderQuantity) { |
| | |
| | | } else { |
| | | this.selectionClass = "more-style"; |
| | | } |
| | | }, |
| | | |
| | | // è·ååå
¸æ°æ® |
| | | getDictionaryData() { |
| | | if (this.dictionaryList) { |
| | | return; |
| | | } |
| | | var param = []; |
| | | this.tableColumns.forEach((x) => { |
| | | if (x.type == "tag" && x.bindKey != "") { |
| | | param.push(x.bindKey); |
| | | } |
| | | }); |
| | | this.http |
| | | .post("api/Sys_Dictionary/GetVueDictionary", param, "æ¥è¯¢ä¸") |
| | | .then((x) => { |
| | | if (x.length > 0) { |
| | | this.dictionaryList = x; |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // è·ååå
¸å¼ |
| | | getDictionary(row, column) { |
| | | if (this.dictionaryList) { |
| | | var item = this.dictionaryList.find((x) => x.dicNo == column.bindKey); |
| | | if (item) { |
| | | var dicItem = item.data.find((x) => x.key == row[column.prop]); |
| | | if (dicItem) { |
| | | return dicItem.value; |
| | | } else { |
| | | return row[column.prop]; |
| | | } |
| | | } else { |
| | | return row[column.prop]; |
| | | } |
| | | } |
| | | return row[column.prop]; |
| | | }, |
| | | |
| | | // æå¼ç«å°éæ©å¼¹çª |
| | |
| | | justify-content: flex-end; |
| | | gap: 10px; |
| | | } |
| | | </style> |
| | | |
| | | <style> |
| | | .text-button:hover { |
| | | background-color: #f0f9eb !important; |
| | | } |
| | |
| | | |
| | | _unitOfWorkManage.CommitTran(); |
| | | int successCount = returnRecords.Where(x => x.ReturnStatus == 1).Count() + (isSuccess ? 1 : 0); |
| | | int failCount = returnRecords.Where(x => x.ReturnStatus == 2).Count() + (isSuccess ? 1 : 0); |
| | | int failCount = returnRecords.Where(x => x.ReturnStatus == 2).Count() + (!isSuccess ? 1 : 0); |
| | | |
| | | webResponse.Status = true; |
| | | webResponse.Message = $"åè°æåæ¡æ°ï¼{successCount}ï¼åè°å¤±è´¥æ¡æ°ï¼{failCount}"; |
| | |
| | | { |
| | | try |
| | | { |
| | | |
| | | List<Dt_ReCheckOrder> reCheckOrders = BaseDal.Db.Queryable<Dt_ReCheckOrder>().Where(x => x.MaterielCode == model.MaterielCode && x.BatchNo == model.BatchNo).ToList(); |
| | | if (reCheckOrders.Count() == 3) |
| | | { |
| | | return WebResponseContent.Instance.Error($"è¯¥ç©æåæ¹æ¬¡å·²ç»éæ£äºä¸æ¬¡ï¼ä¸å
许åè¿è¡éæ£"); |
| | | } |
| | | if (BaseDal.QueryFirst(x => x.OrderNo == model.OrderNo) != null) |
| | | { |
| | | return WebResponseContent.Instance.Error($"{model.OrderNo}åå·éå¤"); |
| | |
| | | try |
| | | { |
| | | List<Dt_ReCheckOrder> reCheckOrders = BaseDal.Db.Queryable<Dt_ReCheckOrder>().Where(x=>x.MaterielCode == model.MaterielCode && x.BatchNo == model.BatchNo).ToList(); |
| | | if(reCheckOrders.Count() == 3) |
| | | { |
| | | return WebResponseContent.Instance.Error($"è¯¥ç©æåæ¹æ¬¡å·²ç»éæ£äºä¸æ¬¡ï¼ä¸å
许åè¿è¡éæ£"); |
| | | } |
| | | |
| | | |
| | | var recheckOrder = Db.Queryable<Dt_ReCheckOrder>().Where(x => x.OrderNo == model.OrderNo).First(); |
| | | if (recheckOrder == null) |
| | | { |
| | |
| | | |
| | | public string warehouseCode { get; set; } |
| | | |
| | | public string remark { get; set; } |
| | | |
| | | public List<BarcodesModel> barcodes { get; set; } |
| | | |
| | | } |
| | |
| | | |
| | | public string warehouseCode { get; set; } |
| | | |
| | | public string remark { get; set; } |
| | | |
| | | } |
| | | |
| | | public class OutboundRequestModel |
| | |
| | | public string SupplyCode { get; set; } |
| | | public DateTime StockCreateDate { get; set; } |
| | | public int StockId { get; set; } |
| | | |
| | | public int StockStatus { get; set; } |
| | | public int? OrderDetailId { get; set; } |
| | | } |
| | | } |
| | |
| | | |
| | | foreach (var item in details) |
| | | { |
| | | var datevaliDate = _inboundOrderRepository.Db.Queryable<Dt_MaterialExpirationDate>().Where(x=>x.MaterialCode.Contains(item.MaterielCode.Substring(0,6))).First(); |
| | | |
| | | var datevaliDate = _inboundOrderRepository.Db.Queryable<Dt_MaterialExpirationDate>().Where(x => x.MaterialCode.Contains(item.MaterielCode.Substring(0, 6))).First(); |
| | | if (datevaliDate == null) |
| | | { |
| | | return content.Error($"è¯¥ç©æ{item.MaterielCode}æªæ¾å°MESæ¨éçææææ°æ®ï¼è¯·å
æ·»å è¯¥ç©æçæææåç»çå
¥åº"); |
| | | } |
| | | stockInfo.Details.Add(new Dt_StockInfoDetail |
| | | { |
| | | StockId = stockInfo == null ? 0 : stockInfo.Id, |
| | |
| | | UseableQuantity = item.StockQuantity, |
| | | StockCreateDate = stock.CreateDate, |
| | | StockId = item.Id, |
| | | StockStatus = item.Status, |
| | | OrderDetailId = orderDetail.Id // å
³èå°å
·ä½çåºåºåæç» |
| | | }); |
| | | } |
| | |
| | | OutBoxbarcodes = barcode.outBoxbarcodes, |
| | | BarcodeUnit = barcode.unit, |
| | | BarcodeQty = barcode.qty, |
| | | OrderQuantity = barcode.qty |
| | | OrderQuantity = barcode.qty, |
| | | Remark = detailitem.remark??"", |
| | | |
| | | }; |
| | | |
| | | dt_InboundOrder.Details.Add(inboundOrderDetail); |
| | |
| | | OrderQuantity = detailitem.qty, |
| | | BarcodeUnit = detailitem.unit, |
| | | BarcodeQty = detailitem.qty, |
| | | MaterielName = materialName |
| | | MaterielName = materialName, |
| | | Remark = detailitem.remark??"" |
| | | }; |
| | | dt_InboundOrder.Details.Add(inboundOrderDetail); |
| | | } |
| | |
| | | BarcodeMoveQty=detailitem.moveQty, |
| | | BarcodeQty=detailitem.qty, |
| | | BarcodeUnit=detailitem.unit, |
| | | OrderQuantity = detailitem.qty |
| | | OrderQuantity = detailitem.qty, |
| | | Remark = detailitem.remark??"", |
| | | }; |
| | | dt_OutboundOrder.Details.Add(inboundOrderDetail); |
| | | } |