@Bitliker
2018-12-26T06:57:14.000000Z
字数 12862
阅读 873
mes接口
注:接口在研发账套上编写,使用研发账套的账号和密码登录
注:除了登陆接口和获取账套的接口,所有接口都需要像UU互联一样添加Cookie=JSESSIONID=xxx 在请求头中
{
"success": true,
"masters": [
{
"ma_id": 2,
"ma_user": "UAS_FINANCE",
"ms_pwd": "select!#%*(",
"ma_name": "UAS_FINANCE",
"ma_man": "admin",
"ma_time": 1452700800000,
"ma_language": "zh-CN",
"ma_function": "UAS金融保理",
"ma_type": 3,
"ma_pid": 3,
"ma_kind": null,
"ma_soncode": null,
"ma_uu": null,
"ma_b2benable": 0,
"ma_b2bwebsite": "http://218.17.158.219:9000/b2b_test",
"ma_accesssecret": null,
"ma_domain": null,
"children": null,
"ma_selectTime": 0,
"ma_driver": null,
"ma_url": null,
"ma_installtype": null,
"ma_init": 1,
"ma_enable": 1,
"ma_manageid": 3626,
"ma_env": null,
"ma_fssecret": null,
"ma_finwebsite": null,
"ma_ccwebsite": null,
"env": "test",
"b2CUrl": "http://localhost:8080/",
"enable": true,
"init": true,
"guest": false
},
{
"ma_id": 3,
"ma_user": "UAS_DEV",
"ms_pwd": "select!#%*(",
"ma_name": "UAS_DEV",
"ma_man": "admin",
"ma_time": 1384444800000,
"ma_language": "zh_CN",
"ma_function": "UAS研发系统",
"ma_type": 3,
"ma_pid": 0,
"ma_kind": null,
"ma_soncode": "UAS_FINANCE",
"ma_uu": 20000087,
"ma_b2benable": 1,
"ma_b2bwebsite": "http://218.17.158.219:9090/platform-b2b",
"ma_accesssecret": "1c1dfea0e40b4962843980d905ed0cfd",
"ma_domain": null,
"children": null,
"ma_selectTime": 0,
"ma_driver": null,
"ma_url": null,
"ma_installtype": null,
"ma_init": 1,
"ma_enable": 1,
"ma_manageid": 6977,
"ma_env": "test",
"ma_fssecret": "hA8VkfvPg7cf4tc9ArbksG0TT0RB0y9T",
"ma_finwebsite": null,
"ma_ccwebsite": null,
"env": "test",
"b2CUrl": "http://localhost:8080/",
"enable": true,
"init": true,
"guest": false
}
]
}
{
"uu": 20000087,
"erpaccount": "15915408583",
"en_printurl": "http://192.168.253.60:8090/report/print",
"masterId": 6977,
"en_intrajasperurl": "http://192.168.253.60:8090/report/print",
"datas": {
"em_id": 1025328,
"em_code": "15915408583",
"em_uu": 1000003961,
"em_defaultorid": 16761,
"em_defaultjbid": null,
"em_defaulthsid": 23570,
"em_name": "龚鹏明",
"em_sex": "男",
"em_iccode": "450122199402074511",
"em_birthday": null,
"em_nation": null,
"em_marry": null,
"em_polity": null,
"em_tel": "15915408583",
"em_mobile": "15915408583",
"em_email": null,
"em_mailpassword": null,
"em_native": "11",
"em_address": null,
"em_finishschool": null,
"em_speciality": null,
"em_culture": null,
"em_worktime": 0.0,
"em_remark": null,
"em_status": "已审核",
"em_statuscode": "AUDITED",
"em_bank": null,
"em_accounts": null,
"em_recorder": null,
"em_indate": 1473696000000,
"em_imageid": null,
"em_contact": null,
"em_ctel": null,
"em_maid": null,
"em_master": "UAS_DEV",
"em_masters": null,
"em_remind": 1,
"currentMaster": {
"ma_id": 3,
"ma_user": "UAS_DEV",
"ms_pwd": "select!#%*(",
"ma_name": "UAS_DEV",
"ma_man": "admin",
"ma_time": 1384444800000,
"ma_language": "zh_CN",
"ma_function": "UAS研发系统",
"ma_type": 3,
"ma_pid": 0,
"ma_kind": null,
"ma_soncode": "UAS_FINANCE",
"ma_uu": 20000087,
"ma_b2benable": 1,
"ma_b2bwebsite": "http://218.17.158.219:9090/platform-b2b",
"ma_accesssecret": "1c1dfea0e40b4962843980d905ed0cfd",
"ma_domain": null,
"children": null,
"ma_selectTime": 0,
"ma_driver": null,
"ma_url": null,
"ma_installtype": null,
"ma_init": 1,
"ma_enable": 1,
"ma_manageid": 6977,
"ma_env": "test",
"ma_fssecret": "hA8VkfvPg7cf4tc9ArbksG0TT0RB0y9T",
"ma_finwebsite": null,
"ma_ccwebsite": null,
"init": true,
"guest": false,
"b2CUrl": "http://localhost:8080/",
"enable": true,
"env": "test"
},
"empsJobs": [],
"em_mologintime": 1541043277000,
"em_pdamobilelogin": 0,
"em_cardcode": null,
"em_photourl": null,
"virtual_enuu": null,
"joborgnorelation": 0,
"em_onlyinner": 0,
"em_defaulthscode": "G0041",
"em_defaulthsname": "采购文员",
"em_pwdupdatedate": 1539100800000,
"em_saledepart": null,
"em_cop": "磐石电子",
"em_factory": null,
"em_dtremind": -1,
"model_code": null,
"model_name": null,
"em_type": "admin",
"em_password": "gpm54321",
"em_enid": 10041641,
"em_position": "采购文员",
"em_depart": "采购部",
"em_departmentcode": "B005",
"em_professname": null,
"em_class": "正式",
"em_endinsu": "0",
"em_medinsu": "0",
"em_unempinsu": "0",
"em_eminjuinsu": "0",
"em_mateinsu": "0",
"em_socailcard": null,
"em_accumucard": null,
"em_accimount": null,
"em_secuclass": null,
"em_height": "0",
"em_weight": null,
"em_blood": null,
"em_heathlevel": null,
"em_defaultorname": "采购跟单科",
"em_lastip": "192.168.253.195",
"em_leavedate": null,
"em_leavetype": null,
"em_imid": 100366
},
"en_extrajasperurl": "http://192.168.253.60:8090/report/print",
"sessionId": "C0DAA5ABACCF1D78A9F16713403BCE0E",
"en_url": "http://192.168.253.60:8090/report/print",
"emname": "龚鹏明",
"en_admin": "jasper",
"master": "UAS_DEV"
}
{
"address": [
{
"DE_ADDRESS": "3"
},
{
"DE_ADDRESS": "A4-3F-A"
},
{
"DE_ADDRESS": "优软科技"
},
{
"DE_ADDRESS": "2"
}
],
"workshop": [
{
"WC_CODE": "测试超完工比例",
"WC_NAME": "测试超完工比例"
},
{
"WC_CODE": "SMT",
"WC_NAME": "SMT"
},
{
"WC_CODE": "委外",
"WC_NAME": "委外"
},
{
"WC_CODE": "组装",
"WC_NAME": "组装"
},
{
"WC_CODE": "包装",
"WC_NAME": "包装"
},
{
"WC_CODE": "冶炼",
"WC_NAME": "冶炼"
},
{
"WC_CODE": "包装送检",
"WC_NAME": "包装送检"
},
{
"WC_CODE": "ASSY",
"WC_NAME": "ASSY"
},
{
"WC_CODE": "SMT1",
"WC_NAME": "SMT允许操完工"
},
{
"WC_CODE": "2017120001",
"WC_NAME": "注塑"
}
],
"line": [
{
"LI_CODE": "3",
"LI_NAME": "三条"
},
{
"LI_CODE": "2016100001",
"LI_NAME": "测试线别"
},
{
"LI_CODE": "SMT-01",
"LI_NAME": "SMT-01"
},
{
"LI_CODE": "SMT07030001",
"LI_NAME": "线别0703"
},
{
"LI_CODE": "L01",
"LI_NAME": "线别01"
}
],
"success": true,
"sessionId": "7EA6FD7887F6B3C912455B472B6B70E6",
"department": [
{
"DP_CODE": "P004",
"DP_NAME": "采购部"
},
{
"DP_CODE": "32233",
"DP_NAME": "采购部"
},
{
"DP_CODE": "32234",
"DP_NAME": "销售部"
},
{
"DP_CODE": "10011",
"DP_NAME": "采购部"
},
{
"DP_CODE": "2015120015",
"DP_NAME": "dwd"
},
{
"DP_CODE": "601",
"DP_NAME": "测试组织"
},
{
"DP_CODE": "B01",
"DP_NAME": "测试部"
},
{
"DP_CODE": "A001",
"DP_NAME": "A001"
},
{
"DP_CODE": "10010603",
"DP_NAME": "测试组织1"
},
{
"DP_CODE": "P009",
"DP_NAME": "生产部"
},
{
"DP_CODE": "P007",
"DP_NAME": "PMC"
},
{
"DP_CODE": "DP003",
"DP_NAME": "内销部"
},
{
"DP_CODE": "采购部",
"DP_NAME": "采购部"
},
{
"DP_CODE": "DP003-1",
"DP_NAME": "销售一部"
},
{
"DP_CODE": "DP003-2",
"DP_NAME": "销售二部"
},
{
"DP_CODE": "csb",
"DP_NAME": "测试部"
},
{
"DP_CODE": "B013",
"DP_NAME": "售后部"
},
{
"DP_CODE": "D0012",
"DP_NAME": "售后2"
},
{
"DP_CODE": "D0013",
"DP_NAME": "售后3"
},
{
"DP_CODE": "B012",
"DP_NAME": "信息管理部"
},
{
"DP_CODE": "B01102",
"DP_NAME": "人事科"
},
{
"DP_CODE": "B01101",
"DP_NAME": "行政科"
},
{
"DP_CODE": "B011",
"DP_NAME": "行政人事部"
},
{
"DP_CODE": "B010",
"DP_NAME": "生产部"
},
{
"DP_CODE": "B009",
"DP_NAME": "仓库"
},
{
"DP_CODE": "B008",
"DP_NAME": "PMC"
},
{
"DP_CODE": "BB0702",
"DP_NAME": "品质管控科"
},
{
"DP_CODE": "B00701",
"DP_NAME": "体系科"
},
{
"DP_CODE": "B007",
"DP_NAME": "品质部"
},
{
"DP_CODE": "B00602",
"DP_NAME": "管理会计科"
},
{
"DP_CODE": "B00601",
"DP_NAME": "财务会计科"
},
{
"DP_CODE": "B006",
"DP_NAME": "财务部"
},
{
"DP_CODE": "B005",
"DP_NAME": "采购部"
},
{
"DP_CODE": "B00402",
"DP_NAME": "海外销售科"
},
{
"DP_CODE": "B00401",
"DP_NAME": "国内销售科"
},
{
"DP_CODE": "B004",
"DP_NAME": "销售部"
},
{
"DP_CODE": "B003",
"DP_NAME": "市场部"
},
{
"DP_CODE": "B00203",
"DP_NAME": "工程部"
},
{
"DP_CODE": "B0020204",
"DP_NAME": "测试科"
},
{
"DP_CODE": "B0020203",
"DP_NAME": "美工科"
},
{
"DP_CODE": "B0020202",
"DP_NAME": "软件科"
},
{
"DP_CODE": "B0020201",
"DP_NAME": "硬件科"
},
{
"DP_CODE": "B00202",
"DP_NAME": "产品开发部"
},
{
"DP_CODE": "B00201",
"DP_NAME": "技术支持部"
},
{
"DP_CODE": "B002",
"DP_NAME": "研发中心"
},
{
"DP_CODE": "B001",
"DP_NAME": "总经办"
},
{
"DP_CODE": "B000",
"DP_NAME": "董事会"
},
{
"DP_CODE": "D0014",
"DP_NAME": "售后4"
},
{
"DP_CODE": "D0015",
"DP_NAME": "售后5"
},
{
"DP_CODE": "D0016",
"DP_NAME": "售后6"
},
{
"DP_CODE": "D0017",
"DP_NAME": "售后7"
},
{
"DP_CODE": "D0018",
"DP_NAME": "售后8"
},
{
"DP_CODE": "D0019",
"DP_NAME": "售后9"
},
{
"DP_CODE": "D0020",
"DP_NAME": "售后10"
},
{
"DP_CODE": "AB000",
"DP_NAME": "AB000"
},
{
"DP_CODE": "A5555",
"DP_NAME": "生技部12345"
},
{
"DP_CODE": "701",
"DP_NAME": "wsy"
},
{
"DP_CODE": "801",
"DP_NAME": "wusy"
},
{
"DP_CODE": "UUU370",
"DP_NAME": "departmenttestname"
},
{
"DP_CODE": "S002",
"DP_NAME": "市场经理"
},
{
"DP_CODE": "BM002",
"DP_NAME": "BM002"
},
{
"DP_CODE": "BM003",
"DP_NAME": "BM003"
},
{
"DP_CODE": "BM004",
"DP_NAME": "BM004"
},
{
"DP_CODE": "BM005",
"DP_NAME": "BM005"
},
{
"DP_CODE": "BM006",
"DP_NAME": "BM006"
},
{
"DP_CODE": "BM007",
"DP_NAME": "BM007"
},
{
"DP_CODE": "BM008",
"DP_NAME": "BM008"
},
{
"DP_CODE": "BM001",
"DP_NAME": "BM001"
},
{
"DP_CODE": "BM009",
"DP_NAME": "BM009"
},
{
"DP_CODE": "BM010",
"DP_NAME": "BM010"
},
{
"DP_CODE": "BM011",
"DP_NAME": "BM011"
},
{
"DP_CODE": "BM012",
"DP_NAME": "BM012"
},
{
"DP_CODE": "BM013",
"DP_NAME": "BM013"
},
{
"DP_CODE": "B0010",
"DP_NAME": "仓库1"
},
{
"DP_CODE": "D002",
"DP_NAME": "善领销售部"
},
{
"DP_CODE": "D003",
"DP_NAME": "OEM部"
},
{
"DP_CODE": "D040",
"DP_NAME": "车机销售部"
},
{
"DP_CODE": "E001",
"DP_NAME": "销售中心"
},
{
"DP_CODE": "souringA",
"DP_NAME": "采购开发部"
},
{
"DP_CODE": "ces1b",
"DP_NAME": "测试一部"
},
{
"DP_CODE": "S001",
"DP_NAME": "市场总监"
},
{
"DP_CODE": "10",
"DP_NAME": "董事会"
},
{
"DP_CODE": "1001",
"DP_NAME": "总经办"
},
{
"DP_CODE": "100101",
"DP_NAME": "平台中心"
},
{
"DP_CODE": "10010101",
"DP_NAME": "平台运营部"
},
{
"DP_CODE": "10010102",
"DP_NAME": "平台运维部"
},
{
"DP_CODE": "100102",
"DP_NAME": "运营中心"
},
{
"DP_CODE": "10010201",
"DP_NAME": "系统销售部"
},
{
"DP_CODE": "10010202",
"DP_NAME": "系统实施部"
},
{
"DP_CODE": "10010203",
"DP_NAME": "售后服务部"
},
{
"DP_CODE": "100103",
"DP_NAME": "市场中心"
},
{
"DP_CODE": "10010301",
"DP_NAME": "产品规划部"
},
{
"DP_CODE": "10010302",
"DP_NAME": "标准化测试部"
},
{
"DP_CODE": "1001030201",
"DP_NAME": "应用测试科"
},
{
"DP_CODE": "1001030202",
"DP_NAME": "研发测试科"
},
{
"DP_CODE": "1001030203",
"DP_NAME": "标准化科"
},
{
"DP_CODE": "10010303",
"DP_NAME": "市场策划部"
},
{
"DP_CODE": "100104",
"DP_NAME": "研发中心"
},
{
"DP_CODE": "10010401",
"DP_NAME": "技术研发部"
},
{
"DP_CODE": "10010402",
"DP_NAME": "产品研发部"
},
{
"DP_CODE": "1001040201",
"DP_NAME": "UAS系统科"
},
{
"DP_CODE": "1001040202",
"DP_NAME": "移动终端科"
},
{
"DP_CODE": "1001040203",
"DP_NAME": "B2B平台科"
},
{
"DP_CODE": "100105",
"DP_NAME": "财务部"
},
{
"DP_CODE": "100106",
"DP_NAME": "行政人事部"
},
{
"DP_CODE": "10010601",
"DP_NAME": "行政科"
},
{
"DP_CODE": "10010602",
"DP_NAME": "人事科"
},
{
"DP_CODE": "101",
"DP_NAME": "总经办"
},
{
"DP_CODE": "102",
"DP_NAME": "销售部"
},
{
"DP_CODE": "103",
"DP_NAME": "硬件部"
},
{
"DP_CODE": "104",
"DP_NAME": "软件部"
},
{
"DP_CODE": "105",
"DP_NAME": "制造中心"
},
{
"DP_CODE": "10501",
"DP_NAME": "SMT制造"
},
{
"DP_CODE": "10502",
"DP_NAME": "品质部"
},
{
"DP_CODE": "10503",
"DP_NAME": "售后部"
},
{
"DP_CODE": "10504",
"DP_NAME": "组装部"
},
{
"DP_CODE": "10505",
"DP_NAME": "工厂行政部"
},
{
"DP_CODE": "10601",
"DP_NAME": "采购部"
},
{
"DP_CODE": "10602",
"DP_NAME": "PMC"
},
{
"DP_CODE": "10603",
"DP_NAME": "仓库"
},
{
"DP_CODE": "10604",
"DP_NAME": "物控"
},
{
"DP_CODE": "107",
"DP_NAME": "工程部"
},
{
"DP_CODE": "108",
"DP_NAME": "行政人事部"
},
{
"DP_CODE": "109",
"DP_NAME": "财务部"
},
{
"DP_CODE": "110",
"DP_NAME": "品牌事业部"
},
{
"DP_CODE": "A01",
"DP_NAME": "A01"
},
{
"DP_CODE": "98class",
"DP_NAME": "98硕士班"
},
{
"DP_CODE": "99",
"DP_NAME": "99班"
},
{
"DP_CODE": "11113242424324",
"DP_NAME": "111113434343"
}
]
}
请求返回:
{
"datas": [
{
"ID": 17403,
"CODE": "DV01",
"NAME": "设备01",
"STATUS": "UNUSED",
"RN": 1
}, {
"ID": 17404,
"CODE": "DV02",
"NAME": "设备02",
"STATUS": "UNUSED",
"RN": 2
}
],
"success": true,
"sessionId": "7EA6FD7887F6B3C912455B472B6B70E6"
}
{
"datas": [
{
"ID": 83,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-26 10:11:25",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 1
},
{
"ID": 78,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-23 16:38:06",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 2
},
{
"ID": 75,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-23 14:05:23",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 3
},
{
"ID": 72,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-23 10:42:37",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 4
},
{
"ID": 69,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-23 10:30:19",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 5
},
{
"ID": 66,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-23 10:26:37",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 6
},
{
"ID": 63,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-23 10:22:32",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 7
},
{
"ID": 42,
"CODE": "ceshi --123654",
"STARTTIME": "2018-11-21 15:32:24",
"PAUSETIME": null,
"RUNTIMECOUNT": null,
"STATUS": null,
"RUNFAULTREASON": null,
"FAULTID": 0,
"RN": 8
}
],
"success": true,
"sessionId": "7EA6FD7887F6B3C912455B472B6B70E6"
}
{
"datas": {
"ID": 841,
"CODE": "DV01",
"TYPE": "生产器械",
"MODEL": "1",
"NAME": "设备01",
"ADDRESS": "优软科技",
"DEPART": null,
"ADMINMAN": "吴雨骁",
"RUNTIMECOUNT": "2018-12-04 00:00:00",
"CLASSES": null,
"PRODUCTIONSTATUS": "UNUSED",
"PROGRESS": 100,
"MAX": 0,
"QUALIFIEDNUMBER": 80,
"UNHEALTHYNUMBER": 20,
"TEMPERATURE": "50",
"formdetail": [
{
"fd_detno": 1,
"mfd_isdefault": -1,
"fd_caption": "温度",
"fd_type": "SS",
"fd_field": "dr_temperature",
"fd_value": "50"
},
{
"fd_detno": 2,
"mfd_isdefault": -1,
"fd_caption": "投入产出数",
"fd_type": "SS",
"fd_field": "dr_qty",
"fd_value": 100
},
{
"fd_detno": 3,
"mfd_isdefault": -1,
"fd_caption": "合格数",
"fd_type": "SS",
"fd_field": "dr_okqty",
"fd_value": 80
}
]
},
"success": true,
"sessionId": "7EA6FD7887F6B3C912455B472B6B70E6"
}