| | |
| | | sortName: "id", |
| | | }); |
| | | const editFormFields = ref({ |
| | | areaId: "", |
| | | warehouseId: "", |
| | | materielCode: "", |
| | | materielName: "", |
| | | materielDes: "", |
| | |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | | title: "åºå", |
| | | title: "ä»åº", |
| | | required: true, |
| | | field: "areaId", |
| | | field: "warehouseId", |
| | | type: "string", |
| | | }, |
| | | { |
| | |
| | | const searchFormFields = ref({ |
| | | materielCode: "", |
| | | materielName: "", |
| | | areaId: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "ç©æç¼å·", field: "materielCode", type: "like" }, |
| | | { title: "ç©æåç§°", field: "materielName", type: "like" }, |
| | | { title: "设å¤ç¶æ", field: "deviceStatus" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind: { key: "warehouse", data: [] }, |
| | | bind: { key: "warehouses", data: [] }, |
| | | }, |
| | | { |
| | | field: "palletType", |
| | | title: "æçç±»å", |
| | | type: "string", |
| | | width: 150, |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "decimal", |
| | | width: 90, |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind: { key: "enableEnum", data: [] }, |
| | | bind: { key: "printStatus", data: [] }, |
| | | }, |
| | | { |
| | | field: "size", |
| | |
| | | {field:'name',title:'åå·¥åç§°',type:'string',width:110,align:'left'}, |
| | | {field:'state',title:'ç¶æ',type:'int',width:110,require:true,align:'left',bind: { key: "status", data: [] }}, |
| | | {field:'invOrgId',title:'åºåç»ç»',type:'string',width:110,align:'left'}, |
| | | {field:'type',title:'ç±»å',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'type',title:'ç±»å',type:'int',width:110,require:true,align:'left',hidden:true}, |
| | | {field:'creater',title:'å建è
',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'createDate',title:'å建æ¶é´',type:'datetime',width:150,require:true,align:'left',sort:true}, |
| | | {field:'modifier',title:'ä¿®æ¹äºº',type:'string',width:100,align:'left'}, |
| | |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormFields = ref({ |
| | | checkOrderNo:"", |
| | | receiveOrderNo:"", |
| | | checkOrderStatus:"", |
| | | auditStatus:"" |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | {title:"æ£éªåå·", field:"checkOrderNo",type:"like"}, |
| | |
| | | {title:"æ£éªç»æ", field:"result",type:"like"}, |
| | | ] |
| | | ]); |
| | | const columns = ref([{field:'checkOrderId',title:'主é®',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'checkOrderNo',title:'æ£éªåå·',type:'string',width:110,require:true,align:'left',sort:true}, |
| | | {field:'receiveOrderNo',title:'æ¶è´§åå·',type:'string',width:110,require:true,align:'left'}, |
| | | const columns = ref([{field:'checkOrderId',title:'主é®',type:'int',width:150,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'checkOrderNo',title:'æ£éªåå·',type:'string',width:160,require:true,align:'left',sort:true}, |
| | | {field:'receiveOrderNo',title:'æ¶è´§åå·',type:'string',width:160,require:true,align:'left'}, |
| | | {field:'checkOrderStatus',title:'è´¨æ£åç¶æ',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'auditStatus',title:'审æ¹ç¶æ',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'receiveDetailRowNo',title:'æ¶è´§åæç»è¡å·',type:'int',width:110,require:true,align:'left'}, |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouseId", |
| | | title: "ä»åº", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind:{key: "warehouses", data: []} |
| | | }, |
| | | { |
| | | field: "orderType", |
| | | title: "åæ®ç±»å", |
| | | type: "string", |
| | |
| | | field: "createType", |
| | | title: "å建æ¹å¼", |
| | | type: "string", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "createType", data: [] }, |
| | | }, |
| | |
| | | // ], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | inboundOrderNo: "", |
| | | upperOrderNo: "", |
| | | orderType: "", |
| | | orderStatus: "", |
| | | createType: "", |
| | | creater: "", |
| | | createDate: "", |
| | | purchaseOrderNo: "", |
| | | purchaseOrderType: "", |
| | | purchaseOrderStatus: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "åæ®ç¼å·", field: "inboundOrderNo", type: "like" }, |
| | | { title: "䏿¸¸åæ®ç¼å·", field: "upperOrderNo", type: "like" }, |
| | | { title: "éè´åå·", field: "purchaseOrderNo", type: "like" }, |
| | | { |
| | | title: "åæ®ç±»å", |
| | | field: "orderType", |
| | | field: "purchaseOrderType", |
| | | type: "select", |
| | | dataKey: "purchaseType", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "åæ®ç¶æ", |
| | | field: "orderStatus", |
| | | field: "purchaseOrderStatus", |
| | | type: "select", |
| | | dataKey: "inboundState", |
| | | dataKey: "purchaseOrderStatus", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "å建æ¹å¼", |
| | | field: "createType", |
| | | type: "select", |
| | | dataKey: "createType", |
| | | data: [], |
| | | }, |
| | | { title: "å建è
", field: "creater", type: "like" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | |
| | | field: "purchaseOrderNo", |
| | | title: "éè´åå·", |
| | | type: "string", |
| | | width: 120, |
| | | width: 150, |
| | | align: "left", |
| | | link: true, |
| | | }, |
| | |
| | | field: "supplierCode", |
| | | title: "ä¾åºåç¼å·", |
| | | type: "string", |
| | | width: 150, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind: { key: "purchaseOrderStatus", data: [] }, |
| | | }, |
| | | { |
| | | field: "orderDate", |
| | | title: "ä¸åæ¥æ", |
| | | type: "string", |
| | | width: 90, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | }); |
| | | |
| | | const searchFormFields = ref({ |
| | | orderNo: "", |
| | | upperOrderNo: "", |
| | | orderType: "", |
| | | orderStatus: "", |
| | | createType: "", |
| | | receiveOrderNo: "", |
| | | receiveOrderType: "", |
| | | receiveOrderStatus: "", |
| | | creater: "", |
| | | createDate: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "åæ®ç¼å·", field: "orderNo", type: "like" }, |
| | | { title: "åæ®ç¼å·", field: "receiveOrderNo", type: "like" }, |
| | | { |
| | | title: "åæ®ç±»å", |
| | | field: "orderType", |
| | | field: "receiveOrderType", |
| | | type: "select", |
| | | dataKey: "inOrderType", |
| | | dataKey: "receiveOrderTypeEnum", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "åæ®ç¶æ", |
| | | field: "orderStatus", |
| | | field: "receiveOrderStatus", |
| | | type: "selectList", |
| | | dataKey: "receiveStatus", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "ä¾åºå", field: "suppliersId", type: "select",dataKey:"suppliers",data:[]}, |
| | | { title: "å建è
", field: "creater", type: "like" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | |
| | |
| | | field: "receiveOrderStatus", |
| | | title: "订åç¶æ", |
| | | type: "string", |
| | | width: 150, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "receiveStatus", data: [] }, |
| | | }, |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | hidden:true |
| | | }, |
| | | { |
| | | field: "suppliersId", |
| | |
| | | }, |
| | | { |
| | | field: "warehouseId", |
| | | title: "ä»åºä¸»é®", |
| | | title: "ä»åº", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind:{key: "warehouses", data: []} |
| | | }, |
| | | { |
| | | field: "receiveDate", |
| | | title: "æ¶è´§æ¥æ", |
| | | type: "string", |
| | | width: 90, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "deliveryCode", |
| | | title: "éè´§åå·", |
| | | type: "string", |
| | | width: 90, |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind:{key:"enable",data:[]} |
| | | }, |
| | | { |
| | | field: "creater", |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouseId", |
| | | title: "ä»åº", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind:{key: "warehouses", data: []} |
| | | }, |
| | | { |
| | | field: "orderNo", |
| | | title: "åæ®ç¼å·", |
| | | type: "string", |
| | | width: 120, |
| | | width: 160, |
| | | align: "left", |
| | | link: true, |
| | | }, |
| | |
| | | field: "upperOrderNo", |
| | | title: "䏿¸¸åæ®ç¼å·", |
| | | type: "string", |
| | | width: 150, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "createType", |
| | | title: "å建æ¹å¼", |
| | | type: "string", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "createType", data: [] }, |
| | | }, |
| | |
| | | field: "taskNum", |
| | | title: "ä»»å¡å·", |
| | | type: "int", |
| | | width: 80, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 150, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roadway", |
| | | title: "å··éå·", |
| | | type: "string", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "taskType", |
| | | title: "ä»»å¡ç±»å", |
| | | type: "int", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "taskType", data: [] }, |
| | | }, |
| | |
| | | field: "sourceAddress", |
| | | title: "èµ·å§å°å", |
| | | type: "int", |
| | | width: 120, |
| | | width: 220, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "targetAddress", |
| | | title: "ç®æ å°å", |
| | | type: "string", |
| | | width: 120, |
| | | width: 220, |
| | | align: "left", |
| | | }, |
| | | // { |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | { |
| | | field: "grade", |
| | |
| | | field: "dispatchertime", |
| | | title: "ä»»å¡ä¸åæ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | width: 160, |
| | | align: "left", |
| | | hidden:true, |
| | | }, |
| | |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "taskNum", |
| | | title: "ä»»å¡å·", |
| | | type: "int", |
| | | width: 80, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 150, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roadway", |
| | | title: "å··éå·", |
| | | type: "string", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "taskType", |
| | | title: "ä»»å¡ç±»å", |
| | | type: "int", |
| | | width: 90, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "taskType", data: [] }, |
| | | }, |
| | |
| | | field: "sourceAddress", |
| | | title: "èµ·å§å°å", |
| | | type: "int", |
| | | width: 120, |
| | | width: 220, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "targetAddress", |
| | | title: "ç®æ å°å", |
| | | type: "string", |
| | | width: 120, |
| | | width: 220, |
| | | align: "left", |
| | | }, |
| | | // { |
| | |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "operateType", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEA_Common.CommonEnum |
| | | { |
| | | public enum PrintStatusEnum |
| | | { |
| | | /// <summary> |
| | | /// å·²æå° |
| | | /// </summary> |
| | | [Description("å·²æå°")] |
| | | Printed = 0, |
| | | /// <summary> |
| | | /// æªæå° |
| | | /// </summary> |
| | | [Description("æªæå°")] |
| | | UnPrinted =1 |
| | | } |
| | | } |
| | |
| | | List<object> data = new List<object>(); |
| | | |
| | | { |
| | | Type type = typeof(PurchaseOrderTypeEnum); |
| | | List<string> enums = Enum.GetValues(typeof(PurchaseOrderTypeEnum)).Cast<string>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | //FieldInfo? fieldInfo = typeof(PurchaseOrderTypeEnum).GetField(((PurchaseOrderTypeEnum)item).ToString()); |
| | | //DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | //if (description != null) |
| | | //{ |
| | | // data.Add(new { key = item.ToString(), value = description.Description }); |
| | | //} |
| | | //else |
| | | //{ |
| | | // data.Add(new { key = item.ToString(), value = item.ToString() }); |
| | | //} |
| | | //index++; |
| | | } |
| | | } |
| | | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "purchaseOrderStatus": |
| | | { |
| | | List<object> data = new List<object>(); |
| | | |
| | | { |
| | | Type type = typeof(PurchaseOrderStatusEnum); |
| | | List<int> enums = Enum.GetValues(typeof(PurchaseOrderStatusEnum)).Cast<int>().ToList(); |
| | | int index = 0; |
| | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "printStatus": |
| | | { |
| | | List<object> data = new List<object>(); |
| | | |
| | | { |
| | | Type type = typeof(PrintStatusEnum); |
| | | List<int> enums = Enum.GetValues(typeof(PrintStatusEnum)).Cast<int>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(PrintStatusEnum).GetField(((PrintStatusEnum)item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |
| | | data.Add(new { key = item.ToString(), value = description.Description }); |
| | | } |
| | | else |
| | | { |
| | | data.Add(new { key = item.ToString(), value = item.ToString() }); |
| | | } |
| | | index++; |
| | | } |
| | | } |
| | | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | } |
| | | return result; |
| | | } |