| | |
| | | if (_orderAction != null) |
| | | { |
| | | var snList = _orderAction.CurPkg.Item.GetWipSnList().Select(q => q.Value).ToList(); |
| | | if (!snList.Any()) |
| | | //if (!snList.Any()) |
| | | { |
| | | snList.Add(_orderAction.CurPkg.CustSN?.FLOW_SN); |
| | | } |
| | |
| | | case "GetXH": |
| | | return ""; |
| | | case "GetCardNo": |
| | | return ""; |
| | | return $"{Context.GetOrDefault("CurWaitShipmentCarton").ToInt32() + 1}"; |
| | | case "GetCardTotal": |
| | | return ""; |
| | | var total = ""; |
| | | var _curaction = curAction is PackingAction ? curAction as PackingAction : null; |
| | | if (!_curaction.IsNullOrEmpty()) { |
| | | total = $"{Math.Ceiling(Context.GetOrDefault("CurShipQty").ToDecimal()/_curaction.PkgRule.GetTotalQty().ToDecimal())}"; |
| | | } |
| | | return total; |
| | | case "GetModelSpec": //Model+空格+SPEC, |
| | | return GetLabelVarWo(lv, $"{WorkBatch.Product.ExtInfo?.Model} {WorkBatch.Product.SPEC}"); |
| | | case "GetDATE": |