diff --git a/app_DynaWeb/public/assets/json/data-dictionary.json b/app_DynaWeb/public/assets/json/data-dictionary.json index 867f08de212869f142ddd13ea4bd1f45ee45d632..9b739ffc87f97653647807fed58e86805391fe11 100644 --- a/app_DynaWeb/public/assets/json/data-dictionary.json +++ b/app_DynaWeb/public/assets/json/data-dictionary.json @@ -1187,6 +1187,97 @@ } ] }, + { + "srfkey": "CODELIST_SCHEDULEWEEKGROUP", + "emptytext": "未定义", + "codelisttype":"static", + "items": [ + { + "id": "1", + "label": "星期一", + "text": "星期一", + "class":"", + "data":"", + "codename":"Item_1", + "value": "1", + + "disabled": false, + "default": false + } + , { + "id": "2", + "label": "星期二", + "text": "星期二", + "class":"", + "data":"", + "codename":"Item_2", + "value": "2", + + "disabled": false, + "default": false + } + , { + "id": "3", + "label": "星期三", + "text": "星期三", + "class":"", + "data":"", + "codename":"Item_3", + "value": "3", + + "disabled": false, + "default": false + } + , { + "id": "4", + "label": "星期四", + "text": "星期四", + "class":"", + "data":"", + "codename":"Item_4", + "value": "4", + + "disabled": false, + "default": false + } + , { + "id": "5", + "label": "星期五", + "text": "星期五", + "class":"", + "data":"", + "codename":"Item_5", + "value": "5", + + "disabled": false, + "default": false + } + , { + "id": "6", + "label": "星期六", + "text": "星期六", + "class":"", + "data":"", + "codename":"Item_6", + "value": "6", + + "disabled": false, + "default": false + } + , { + "id": "7", + "label": "星期日", + "text": "星期日", + "class":"", + "data":"", + "codename":"Item_7", + "value": "7", + + "disabled": false, + "default": false + } + ] + }, { "srfkey": "SysOperator", "emptytext": "未定义", @@ -1379,6 +1470,37 @@ } ] }, + { + "srfkey": "CODELIST_SCHEDULESTATE", + "emptytext": "未定义", + "codelisttype":"static", + "items": [ + { + "id": "1", + "label": "正常", + "text": "正常", + "class":"", + "data":"", + "codename":"Item_1", + "value": "1", + + "disabled": false, + "default": false + } + , { + "id": "2", + "label": "暂停", + "text": "暂停", + "class":"", + "data":"", + "codename":"Item_2", + "value": "2", + + "disabled": false, + "default": false + } + ] + }, { "srfkey": "EMWOORITYPE", "emptytext": "未定义", @@ -5273,6 +5395,73 @@ } ] }, + { + "srfkey": "CODELIST_SCHEDULETYPE", + "emptytext": "未定义", + "codelisttype":"static", + "items": [ + { + "id": "1", + "label": "指定日期", + "text": "指定日期", + "class":"", + "data":"", + "codename":"Item_1", + "value": "1", + + "disabled": false, + "default": false + } + , { + "id": "3", + "label": "每月", + "text": "每月", + "class":"", + "data":"", + "codename":"Item_3", + "value": "3", + + "disabled": false, + "default": false + } + , { + "id": "4", + "label": "每周", + "text": "每周", + "class":"", + "data":"", + "codename":"Item_4", + "value": "4", + + "disabled": false, + "default": false + } + , { + "id": "5", + "label": "每天", + "text": "每天", + "class":"", + "data":"", + "codename":"Item_5", + "value": "5", + + "disabled": false, + "default": false + } + , { + "id": "6", + "label": "自定义间隔天数", + "text": "自定义间隔天数", + "class":"", + "data":"", + "codename":"Item_6", + "value": "6", + + "disabled": false, + "default": false + } + ] + }, { "srfkey": "FEBEC2B8438144B19B682C0A4CB6EA17", "emptytext": "未定义", @@ -7363,151 +7552,681 @@ ] }, { - "srfkey": "EMWPLISTWFSTEP", + "srfkey": "CODELIST_SCHEDULEMONTHDAYGROUP", "emptytext": "未定义", "codelisttype":"static", "items": [ { - "id": "15", - "label": "补充件号中", - "text": "补充件号中", + "id": "1", + "label": "1日", + "text": "1日", "class":"", "data":"", - "codename":"Item_15", - "value": "15", + "codename":"Item_1", + "value": "1", "disabled": false, "default": false } , { - "id": "8", - "label": "综管部初审", - "text": "综管部初审", + "id": "2", + "label": "2日", + "text": "2日", "class":"", "data":"", - "codename":"Item_8", - "value": "8", + "codename":"Item_2", + "value": "2", "disabled": false, "default": false } , { - "id": "11", - "label": "电脑部审核", - "text": "电脑部审核", + "id": "3", + "label": "3日", + "text": "3日", "class":"", "data":"", - "codename":"Item_11", - "value": "11", + "codename":"Item_3", + "value": "3", "disabled": false, "default": false } , { - "id": "12", - "label": "安监部审核", - "text": "安监部审核", + "id": "4", + "label": "4日", + "text": "4日", "class":"", "data":"", - "codename":"Item_12", - "value": "12", + "codename":"Item_4", + "value": "4", "disabled": false, "default": false } , { - "id": "13", - "label": "综管部审核", - "text": "综管部审核", + "id": "5", + "label": "5日", + "text": "5日", "class":"", "data":"", - "codename":"Item_13", - "value": "13", + "codename":"Item_5", + "value": "5", "disabled": false, "default": false } , { - "id": "20", - "label": "待部门经理审核", - "text": "待部门经理审核", + "id": "6", + "label": "6日", + "text": "6日", "class":"", "data":"", - "codename":"Item_20", - "value": "20", + "codename":"Item_6", + "value": "6", "disabled": false, "default": false } , { - "id": "25", - "label": "待部门分管副总审核", - "text": "待部门分管副总审核", + "id": "7", + "label": "7日", + "text": "7日", "class":"", "data":"", - "codename":"Item_25", - "value": "25", + "codename":"Item_7", + "value": "7", "disabled": false, "default": false } , { - "id": "30", - "label": "待指派采购员", - "text": "待指派采购员", + "id": "8", + "label": "8日", + "text": "8日", "class":"", "data":"", - "codename":"Item_30", - "value": "30", + "codename":"Item_8", + "value": "8", "disabled": false, "default": false } , { - "id": "40", - "label": "采购处理中", - "text": "采购处理中", + "id": "9", + "label": "9日", + "text": "9日", "class":"", "data":"", - "codename":"Item_40", - "value": "40", + "codename":"Item_9", + "value": "9", "disabled": false, "default": false } , { - "id": "50", - "label": "待确认询价", - "text": "待确认询价", + "id": "10", + "label": "10日", + "text": "10日", "class":"", "data":"", - "codename":"Item_50", - "value": "50", + "codename":"Item_10", + "value": "10", "disabled": false, "default": false } , { - "id": "60", - "label": "待生成订单", - "text": "待生成订单", + "id": "11", + "label": "11日", + "text": "11日", "class":"", "data":"", - "codename":"Item_60", - "value": "60", + "codename":"Item_11", + "value": "11", "disabled": false, "default": false } , { - "id": "70", - "label": "审核不通过", - "text": "审核不通过", + "id": "12", + "label": "12日", + "text": "12日", "class":"", "data":"", - "codename":"Item_70", + "codename":"Item_12", + "value": "12", + + "disabled": false, + "default": false + } + , { + "id": "13", + "label": "13日", + "text": "13日", + "class":"", + "data":"", + "codename":"Item_13", + "value": "13", + + "disabled": false, + "default": false + } + , { + "id": "14", + "label": "14日", + "text": "14日", + "class":"", + "data":"", + "codename":"Item_14", + "value": "14", + + "disabled": false, + "default": false + } + , { + "id": "15", + "label": "15日", + "text": "15日", + "class":"", + "data":"", + "codename":"Item_15", + "value": "15", + + "disabled": false, + "default": false + } + , { + "id": "16", + "label": "16日", + "text": "16日", + "class":"", + "data":"", + "codename":"Item_16", + "value": "16", + + "disabled": false, + "default": false + } + , { + "id": "17", + "label": "17日", + "text": "17日", + "class":"", + "data":"", + "codename":"Item_17", + "value": "17", + + "disabled": false, + "default": false + } + , { + "id": "18", + "label": "18日", + "text": "18日", + "class":"", + "data":"", + "codename":"Item_18", + "value": "18", + + "disabled": false, + "default": false + } + , { + "id": "19", + "label": "19日", + "text": "19日", + "class":"", + "data":"", + "codename":"Item_19", + "value": "19", + + "disabled": false, + "default": false + } + , { + "id": "20", + "label": "20日", + "text": "20日", + "class":"", + "data":"", + "codename":"Item_20", + "value": "20", + + "disabled": false, + "default": false + } + , { + "id": "21", + "label": "21日", + "text": "21日", + "class":"", + "data":"", + "codename":"Item_21", + "value": "21", + + "disabled": false, + "default": false + } + , { + "id": "22", + "label": "22日", + "text": "22日", + "class":"", + "data":"", + "codename":"Item_22", + "value": "22", + + "disabled": false, + "default": false + } + , { + "id": "23", + "label": "23日", + "text": "23日", + "class":"", + "data":"", + "codename":"Item_23", + "value": "23", + + "disabled": false, + "default": false + } + , { + "id": "24", + "label": "24日", + "text": "24日", + "class":"", + "data":"", + "codename":"Item_24", + "value": "24", + + "disabled": false, + "default": false + } + , { + "id": "25", + "label": "25日", + "text": "25日", + "class":"", + "data":"", + "codename":"Item_25", + "value": "25", + + "disabled": false, + "default": false + } + , { + "id": "26", + "label": "26日", + "text": "26日", + "class":"", + "data":"", + "codename":"Item_26", + "value": "26", + + "disabled": false, + "default": false + } + , { + "id": "27", + "label": "27日", + "text": "27日", + "class":"", + "data":"", + "codename":"Item_27", + "value": "27", + + "disabled": false, + "default": false + } + , { + "id": "28", + "label": "28日", + "text": "28日", + "class":"", + "data":"", + "codename":"Item_28", + "value": "28", + + "disabled": false, + "default": false + } + , { + "id": "29", + "label": "29日", + "text": "29日", + "class":"", + "data":"", + "codename":"Item_29", + "value": "29", + + "disabled": false, + "default": false + } + , { + "id": "30", + "label": "30日", + "text": "30日", + "class":"", + "data":"", + "codename":"Item_30", + "value": "30", + + "disabled": false, + "default": false + } + , { + "id": "31", + "label": "31日", + "text": "31日", + "class":"", + "data":"", + "codename":"Item_31", + "value": "31", + + "disabled": false, + "default": false + } + ] + }, + { + "srfkey": "EMWPLISTWFSTEP", + "emptytext": "未定义", + "codelisttype":"static", + "items": [ + { + "id": "15", + "label": "补充件号中", + "text": "补充件号中", + "class":"", + "data":"", + "codename":"Item_15", + "value": "15", + + "disabled": false, + "default": false + } + , { + "id": "8", + "label": "综管部初审", + "text": "综管部初审", + "class":"", + "data":"", + "codename":"Item_8", + "value": "8", + + "disabled": false, + "default": false + } + , { + "id": "11", + "label": "电脑部审核", + "text": "电脑部审核", + "class":"", + "data":"", + "codename":"Item_11", + "value": "11", + + "disabled": false, + "default": false + } + , { + "id": "12", + "label": "安监部审核", + "text": "安监部审核", + "class":"", + "data":"", + "codename":"Item_12", + "value": "12", + + "disabled": false, + "default": false + } + , { + "id": "13", + "label": "综管部审核", + "text": "综管部审核", + "class":"", + "data":"", + "codename":"Item_13", + "value": "13", + + "disabled": false, + "default": false + } + , { + "id": "20", + "label": "待部门经理审核", + "text": "待部门经理审核", + "class":"", + "data":"", + "codename":"Item_20", + "value": "20", + + "disabled": false, + "default": false + } + , { + "id": "25", + "label": "待部门分管副总审核", + "text": "待部门分管副总审核", + "class":"", + "data":"", + "codename":"Item_25", + "value": "25", + + "disabled": false, + "default": false + } + , { + "id": "30", + "label": "待指派采购员", + "text": "待指派采购员", + "class":"", + "data":"", + "codename":"Item_30", + "value": "30", + + "disabled": false, + "default": false + } + , { + "id": "40", + "label": "采购处理中", + "text": "采购处理中", + "class":"", + "data":"", + "codename":"Item_40", + "value": "40", + + "disabled": false, + "default": false + } + , { + "id": "50", + "label": "待确认询价", + "text": "待确认询价", + "class":"", + "data":"", + "codename":"Item_50", + "value": "50", + + "disabled": false, + "default": false + } + , { + "id": "60", + "label": "待生成订单", + "text": "待生成订单", + "class":"", + "data":"", + "codename":"Item_60", + "value": "60", + + "disabled": false, + "default": false + } + , { + "id": "70", + "label": "审核不通过", + "text": "审核不通过", + "class":"", + "data":"", + "codename":"Item_70", "value": "70", + "disabled": false, + "default": false + } + ] + }, + { + "srfkey": "CODELIST_SCHEDULEMONTHGROUP", + "emptytext": "未定义", + "codelisttype":"static", + "items": [ + { + "id": "1", + "label": "一月", + "text": "一月", + "class":"", + "data":"", + "codename":"Item_1", + "value": "1", + + "disabled": false, + "default": false + } + , { + "id": "2", + "label": "二月", + "text": "二月", + "class":"", + "data":"", + "codename":"Item_2", + "value": "2", + + "disabled": false, + "default": false + } + , { + "id": "3", + "label": "三月", + "text": "三月", + "class":"", + "data":"", + "codename":"Item_3", + "value": "3", + + "disabled": false, + "default": false + } + , { + "id": "4", + "label": "四月", + "text": "四月", + "class":"", + "data":"", + "codename":"Item_4", + "value": "4", + + "disabled": false, + "default": false + } + , { + "id": "5", + "label": "五月", + "text": "五月", + "class":"", + "data":"", + "codename":"Item_5", + "value": "5", + + "disabled": false, + "default": false + } + , { + "id": "6", + "label": "六月", + "text": "六月", + "class":"", + "data":"", + "codename":"Item_6", + "value": "6", + + "disabled": false, + "default": false + } + , { + "id": "7", + "label": "七月", + "text": "七月", + "class":"", + "data":"", + "codename":"Item_7", + "value": "7", + + "disabled": false, + "default": false + } + , { + "id": "8", + "label": "八月", + "text": "八月", + "class":"", + "data":"", + "codename":"Item_8", + "value": "8", + + "disabled": false, + "default": false + } + , { + "id": "9", + "label": "九月", + "text": "九月", + "class":"", + "data":"", + "codename":"Item_9", + "value": "9", + + "disabled": false, + "default": false + } + , { + "id": "10", + "label": "十月", + "text": "十月", + "class":"", + "data":"", + "codename":"Item_10", + "value": "10", + + "disabled": false, + "default": false + } + , { + "id": "11", + "label": "十一月", + "text": "十一月", + "class":"", + "data":"", + "codename":"Item_11", + "value": "11", + + "disabled": false, + "default": false + } + , { + "id": "12", + "label": "十二月", + "text": "十二月", + "class":"", + "data":"", + "codename":"Item_12", + "value": "12", + "disabled": false, "default": false } diff --git a/app_DynaWeb/public/assets/json/view-config.json b/app_DynaWeb/public/assets/json/view-config.json index 130a5c04a8bc80e5af5761bafad170c685f066e4..929db20e74d97117c40d9be042312a8a187b7a83 100644 --- a/app_DynaWeb/public/assets/json/view-config.json +++ b/app_DynaWeb/public/assets/json/view-config.json @@ -269,6 +269,16 @@ "viewtag": "0a1716c8b1771381f72547ea0905a55b", "memo": "" }, + "planscheduleeditview": { + "title": "计划时刻设置编辑视图", + "caption": "计划时刻设置", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEEditView", + "viewfilename": "planscheduleedit-view", + "viewtag": "0a231f92610f4e779263fc1a5593957d", + "memo": "系统自动添加" + }, "emwo_enconfirmedgridview": { "title": "能耗登记工单表格视图", "caption": "能耗工单-已完成", @@ -469,6 +479,16 @@ "viewtag": "122781dc9376a420a1f304b8dbed1d73", "memo": "" }, + "planschedule_meditview": { + "title": "计划_按月编辑视图", + "caption": "计划_按月", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_MEditView", + "viewfilename": "planschedule-medit-view", + "viewtag": "12a4ea20f30b853f60c8698cb0e863c3", + "memo": "系统自动添加" + }, "emeqsetuppickupgridview": { "title": "更换安装选择表格视图", "caption": "更换安装", @@ -1319,6 +1339,16 @@ "viewtag": "42aa98021989fcf477a065d668336104", "memo": "" }, + "planschedule_weditview": { + "title": "计划_按周编辑视图", + "caption": "计划_按周", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_WEditView", + "viewfilename": "planschedule-wedit-view", + "viewtag": "4393ac636736bbd8edd3d8838f7d387d", + "memo": "系统自动添加" + }, "emeqsparegridexpview": { "title": "备件包表格导航视图", "caption": "备件包", @@ -2089,6 +2119,16 @@ "viewtag": "7016b925f12b320d5c647f897e38fa5b", "memo": "系统自动添加" }, + "emplanrecordeditview": { + "title": "触发记录编辑视图", + "caption": "触发记录", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "EMPLANRECORDEditView", + "viewfilename": "emplanrecordedit-view", + "viewtag": "7073c118bddf20ea6f61278f77da89c1", + "memo": "系统自动添加" + }, "emeqlocationalllocgridview": { "title": "位置", "caption": "位置", @@ -2499,6 +2539,16 @@ "viewtag": "81c57e20fee46d4fef9a18dc3cec482a", "memo": "系统自动添加" }, + "planschedule_deditview": { + "title": "计划_按天编辑视图", + "caption": "计划_按天", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_DEditView", + "viewfilename": "planschedule-dedit-view", + "viewtag": "81e8c7ee7954497834e59afaa3577e1d", + "memo": "系统自动添加" + }, "emacclasspickupgridview": { "title": "总帐科目选择表格视图", "caption": "总帐科目", @@ -3179,6 +3229,16 @@ "viewtag": "a7684cbce4182b622c8e22309b187e41", "memo": "系统自动添加" }, + "emplanrecordgridview": { + "title": "触发记录表格视图", + "caption": "触发记录", + "viewtype": "DEGRIDVIEW", + "viewmodule": "eam_core", + "viewname": "EMPLANRECORDGridView", + "viewfilename": "emplanrecordgrid-view", + "viewtag": "a840c26605a5707b568f74aa676a9dc0", + "memo": "系统自动添加" + }, "emitempusepickupview": { "title": "领料单数据选择视图", "caption": "领料单", @@ -3739,6 +3799,16 @@ "viewtag": "be2aa30daf8afefdd2678354f72afadb", "memo": "" }, + "planscheduleindexpickupview": { + "title": "计划时刻设置数据选择视图", + "caption": "计划时刻设置", + "viewtype": "DEPICKUPVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEIndexPickupView", + "viewfilename": "planscheduleindex-pickup-view", + "viewtag": "be890cca9106c9ff64282f1fbd49cc6e", + "memo": "系统自动添加" + }, "pfunitgridview": { "title": "计量单位", "caption": "计量单位", @@ -3969,6 +4039,16 @@ "viewtag": "cbc85b568266a8900a647f28d3ad0ba0", "memo": "" }, + "planscheduleindexpickupdataview": { + "title": "计划时刻设置索引关系选择数据视图", + "caption": "计划时刻设置", + "viewtype": "DEINDEXPICKUPDATAVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEIndexPickupDataView", + "viewfilename": "planscheduleindex-pickup-data-view", + "viewtag": "cd26835199dc38cdccecb09f28b2e719", + "memo": "系统自动添加" + }, "emservicepickupview": { "title": "服务商数据选择视图", "caption": "服务商", @@ -4119,6 +4199,16 @@ "viewtag": "d679c28852d1b3f8b0a30ba2077a54b7", "memo": "" }, + "planschedulegridview": { + "title": "计划时刻设置表格视图", + "caption": "计划时刻设置", + "viewtype": "DEGRIDVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEGridView", + "viewfilename": "planschedulegrid-view", + "viewtag": "d69fa3b369c99b90c184deb278044b43", + "memo": "系统自动添加" + }, "emstockeditview": { "title": "库存明细", "caption": "库存明细", @@ -4284,8 +4374,8 @@ "caption": "询价单", "viewtype": "DEEDITVIEW9", "viewmodule": "eam_wp", - "viewname": "EMWPLISTCOSTEditView9_EditMode", - "viewfilename": "emwplistcostedit-view9-edit-mode", + "viewname": "EMWPListCostEditView9_EditMode", + "viewfilename": "emwplist-cost-edit-view9-edit-mode", "viewtag": "de84daa41e0fc0f58294103ec30af059", "memo": "" }, @@ -4679,6 +4769,16 @@ "viewtag": "ee7e4f1105b7a8d49865dce1ecc8c8e3", "memo": "系统自动添加" }, + "planschedule_teditview": { + "title": "定时编辑视图", + "caption": "计划_定时", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_TEditView", + "viewfilename": "planschedule-tedit-view", + "viewtag": "eebcbc96e525326a86bf25d7ace199ef", + "memo": "系统自动添加" + }, "pfempdeptempgridview": { "title": "职员", "caption": "职员", @@ -4909,6 +5009,16 @@ "viewtag": "fdff4fa9c40fbd3e00f3d72eccaa2b1e", "memo": "" }, + "planschedule_oeditview": { + "title": "自定义间隔天数编辑视图", + "caption": "自定义间隔天数", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_OEditView", + "viewfilename": "planschedule-oedit-view", + "viewtag": "feeb9ab1b8091d9504986447eddb2964", + "memo": "系统自动添加" + }, "emwo_entoconfirmgridview": { "title": "能耗登记工单表格视图", "caption": "能耗工单-执行中", diff --git a/app_DynaWeb/src/authservice/auth-service-register.ts b/app_DynaWeb/src/authservice/auth-service-register.ts index 32301016fad55e1195ebf3e1285280ffd5edddb0..4fd092664aa6409748800ed531ef249ffc606966 100644 --- a/app_DynaWeb/src/authservice/auth-service-register.ts +++ b/app_DynaWeb/src/authservice/auth-service-register.ts @@ -41,12 +41,17 @@ export class AuthServiceRegister { protected init(): void { this.allAuthService.set('emobjmap', () => import('@/authservice/emobj-map/emobj-map-auth-service')); this.allAuthService.set('emeqwl', () => import('@/authservice/emeqwl/emeqwl-auth-service')); + this.allAuthService.set('planschedule_d', () => import('@/authservice/planschedule-d/planschedule-d-auth-service')); + this.allAuthService.set('planschedule_w', () => import('@/authservice/planschedule-w/planschedule-w-auth-service')); + this.allAuthService.set('planschedule_t', () => import('@/authservice/planschedule-t/planschedule-t-auth-service')); this.allAuthService.set('emresitem', () => import('@/authservice/emres-item/emres-item-auth-service')); this.allAuthService.set('emwork', () => import('@/authservice/emwork/emwork-auth-service')); this.allAuthService.set('emeqmpmtr', () => import('@/authservice/emeqmpmtr/emeqmpmtr-auth-service')); + this.allAuthService.set('planschedule_m', () => import('@/authservice/planschedule-m/planschedule-m-auth-service')); this.allAuthService.set('emeqlctmap', () => import('@/authservice/emeqlctmap/emeqlctmap-auth-service')); this.allAuthService.set('emeqmp', () => import('@/authservice/emeqmp/emeqmp-auth-service')); this.allAuthService.set('emeqkprcd', () => import('@/authservice/emeqkprcd/emeqkprcd-auth-service')); + this.allAuthService.set('planschedule', () => import('@/authservice/planschedule/planschedule-auth-service')); this.allAuthService.set('emdprct', () => import('@/authservice/emdprct/emdprct-auth-service')); this.allAuthService.set('emeqkpmap', () => import('@/authservice/emeqkpmap/emeqkpmap-auth-service')); this.allAuthService.set('emplan', () => import('@/authservice/emplan/emplan-auth-service')); @@ -94,6 +99,7 @@ export class AuthServiceRegister { this.allAuthService.set('emplandetail', () => import('@/authservice/emplan-detail/emplan-detail-auth-service')); this.allAuthService.set('emplantempl', () => import('@/authservice/emplan-templ/emplan-templ-auth-service')); this.allAuthService.set('emwo_dp', () => import('@/authservice/emwo-dp/emwo-dp-auth-service')); + this.allAuthService.set('planschedule_o', () => import('@/authservice/planschedule-o/planschedule-o-auth-service')); this.allAuthService.set('emen', () => import('@/authservice/emen/emen-auth-service')); this.allAuthService.set('empo', () => import('@/authservice/empo/empo-auth-service')); this.allAuthService.set('pfunit', () => import('@/authservice/pfunit/pfunit-auth-service')); @@ -102,6 +108,7 @@ export class AuthServiceRegister { this.allAuthService.set('emeqlcttires', () => import('@/authservice/emeqlcttires/emeqlcttires-auth-service')); this.allAuthService.set('emitemrout', () => import('@/authservice/emitem-rout/emitem-rout-auth-service')); this.allAuthService.set('emeqkeep', () => import('@/authservice/emeqkeep/emeqkeep-auth-service')); + this.allAuthService.set('emplanrecord', () => import('@/authservice/emplanrecord/emplanrecord-auth-service')); this.allAuthService.set('emitemrin', () => import('@/authservice/emitem-rin/emitem-rin-auth-service')); this.allAuthService.set('emeqmaintance', () => import('@/authservice/emeqmaintance/emeqmaintance-auth-service')); this.allAuthService.set('emitempuse', () => import('@/authservice/emitem-puse/emitem-puse-auth-service')); diff --git a/app_DynaWeb/src/authservice/auth-service.ts b/app_DynaWeb/src/authservice/auth-service.ts index 43f3666d8096270ff46c7d4f02bef310d484db15..e3b7aa5c37c596998e73e726f7045e458545fe64 100644 --- a/app_DynaWeb/src/authservice/auth-service.ts +++ b/app_DynaWeb/src/authservice/auth-service.ts @@ -34,7 +34,7 @@ export default class AuthService { * @type {(any)} * @memberof AuthService */ - public defaultOPPrivs: any = {CREATE: 1,DELETE: 1,DENY: 1,NONE: 1,READ: 1,UPDATE: 1,WFSTART: 1}; + public defaultOPPrivs: any = {CONFIRM: 1,CREATE: 1,DELETE: 1,DENY: 1,EDIT: 1,NEW: 1,NONE: 1,READ: 1,SUBMIT: 1,UPDATE: 1,WFSTART: 1}; /** * Creates an instance of AuthService. diff --git a/app_DynaWeb/src/authservice/emplanrecord/emplanrecord-auth-service-base.ts b/app_DynaWeb/src/authservice/emplanrecord/emplanrecord-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..842cfaa052b23dcc30be71499153fd9248158010 --- /dev/null +++ b/app_DynaWeb/src/authservice/emplanrecord/emplanrecord-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 触发记录权限服务对象基类 + * + * @export + * @class EMPLANRECORDAuthServiceBase + * @extends {AuthService} + */ +export default class EMPLANRECORDAuthServiceBase extends AuthService { + + /** + * Creates an instance of EMPLANRECORDAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof EMPLANRECORDAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof EMPLANRECORDAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/emplanrecord/emplanrecord-auth-service.ts b/app_DynaWeb/src/authservice/emplanrecord/emplanrecord-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..c1374894bb0c4a9ec0a507cac7f99c2425ac7df1 --- /dev/null +++ b/app_DynaWeb/src/authservice/emplanrecord/emplanrecord-auth-service.ts @@ -0,0 +1,24 @@ +import EMPLANRECORDAuthServiceBase from './emplanrecord-auth-service-base'; + + +/** + * 触发记录权限服务对象 + * + * @export + * @class EMPLANRECORDAuthService + * @extends {EMPLANRECORDAuthServiceBase} + */ +export default class EMPLANRECORDAuthService extends EMPLANRECORDAuthServiceBase { + + /** + * Creates an instance of EMPLANRECORDAuthService. + * + * @param {*} [opts={}] + * @memberof EMPLANRECORDAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-d/planschedule-d-auth-service-base.ts b/app_DynaWeb/src/authservice/planschedule-d/planschedule-d-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..31993c26c68b68c1b2879cab617dd1894f821689 --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-d/planschedule-d-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 计划_按天权限服务对象基类 + * + * @export + * @class PLANSCHEDULE_DAuthServiceBase + * @extends {AuthService} + */ +export default class PLANSCHEDULE_DAuthServiceBase extends AuthService { + + /** + * Creates an instance of PLANSCHEDULE_DAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_DAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof PLANSCHEDULE_DAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-d/planschedule-d-auth-service.ts b/app_DynaWeb/src/authservice/planschedule-d/planschedule-d-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..491b337024f274c3480ec923f3307308d8aa708f --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-d/planschedule-d-auth-service.ts @@ -0,0 +1,24 @@ +import PLANSCHEDULE_DAuthServiceBase from './planschedule-d-auth-service-base'; + + +/** + * 计划_按天权限服务对象 + * + * @export + * @class PLANSCHEDULE_DAuthService + * @extends {PLANSCHEDULE_DAuthServiceBase} + */ +export default class PLANSCHEDULE_DAuthService extends PLANSCHEDULE_DAuthServiceBase { + + /** + * Creates an instance of PLANSCHEDULE_DAuthService. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_DAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-m/planschedule-m-auth-service-base.ts b/app_DynaWeb/src/authservice/planschedule-m/planschedule-m-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..d9876fa7d82c7b0fea0f6b957163ce1624fa4c9d --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-m/planschedule-m-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 计划_按月权限服务对象基类 + * + * @export + * @class PLANSCHEDULE_MAuthServiceBase + * @extends {AuthService} + */ +export default class PLANSCHEDULE_MAuthServiceBase extends AuthService { + + /** + * Creates an instance of PLANSCHEDULE_MAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_MAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof PLANSCHEDULE_MAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-m/planschedule-m-auth-service.ts b/app_DynaWeb/src/authservice/planschedule-m/planschedule-m-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..fd3adbeeef42d41493f49e2a3bfc000ba865a32a --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-m/planschedule-m-auth-service.ts @@ -0,0 +1,24 @@ +import PLANSCHEDULE_MAuthServiceBase from './planschedule-m-auth-service-base'; + + +/** + * 计划_按月权限服务对象 + * + * @export + * @class PLANSCHEDULE_MAuthService + * @extends {PLANSCHEDULE_MAuthServiceBase} + */ +export default class PLANSCHEDULE_MAuthService extends PLANSCHEDULE_MAuthServiceBase { + + /** + * Creates an instance of PLANSCHEDULE_MAuthService. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_MAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-o/planschedule-o-auth-service-base.ts b/app_DynaWeb/src/authservice/planschedule-o/planschedule-o-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..5b63728c280e679838c33cb310bc5baa900ebb3e --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-o/planschedule-o-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 自定义间隔天数权限服务对象基类 + * + * @export + * @class PLANSCHEDULE_OAuthServiceBase + * @extends {AuthService} + */ +export default class PLANSCHEDULE_OAuthServiceBase extends AuthService { + + /** + * Creates an instance of PLANSCHEDULE_OAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_OAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof PLANSCHEDULE_OAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-o/planschedule-o-auth-service.ts b/app_DynaWeb/src/authservice/planschedule-o/planschedule-o-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..9c88c08eea7c7613c88b4c64ae57773e6998c7fc --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-o/planschedule-o-auth-service.ts @@ -0,0 +1,24 @@ +import PLANSCHEDULE_OAuthServiceBase from './planschedule-o-auth-service-base'; + + +/** + * 自定义间隔天数权限服务对象 + * + * @export + * @class PLANSCHEDULE_OAuthService + * @extends {PLANSCHEDULE_OAuthServiceBase} + */ +export default class PLANSCHEDULE_OAuthService extends PLANSCHEDULE_OAuthServiceBase { + + /** + * Creates an instance of PLANSCHEDULE_OAuthService. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_OAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-t/planschedule-t-auth-service-base.ts b/app_DynaWeb/src/authservice/planschedule-t/planschedule-t-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb4bf52ffd08ba03a7c72f59de35924197bf766e --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-t/planschedule-t-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 计划_定时权限服务对象基类 + * + * @export + * @class PLANSCHEDULE_TAuthServiceBase + * @extends {AuthService} + */ +export default class PLANSCHEDULE_TAuthServiceBase extends AuthService { + + /** + * Creates an instance of PLANSCHEDULE_TAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_TAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof PLANSCHEDULE_TAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-t/planschedule-t-auth-service.ts b/app_DynaWeb/src/authservice/planschedule-t/planschedule-t-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..f0252a3900780ef0fa6fe92b9bca93f6ee38a0de --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-t/planschedule-t-auth-service.ts @@ -0,0 +1,24 @@ +import PLANSCHEDULE_TAuthServiceBase from './planschedule-t-auth-service-base'; + + +/** + * 计划_定时权限服务对象 + * + * @export + * @class PLANSCHEDULE_TAuthService + * @extends {PLANSCHEDULE_TAuthServiceBase} + */ +export default class PLANSCHEDULE_TAuthService extends PLANSCHEDULE_TAuthServiceBase { + + /** + * Creates an instance of PLANSCHEDULE_TAuthService. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_TAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-w/planschedule-w-auth-service-base.ts b/app_DynaWeb/src/authservice/planschedule-w/planschedule-w-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..2333315b6e5a3a9da846250e3d3748830b891af7 --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-w/planschedule-w-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 计划_按周权限服务对象基类 + * + * @export + * @class PLANSCHEDULE_WAuthServiceBase + * @extends {AuthService} + */ +export default class PLANSCHEDULE_WAuthServiceBase extends AuthService { + + /** + * Creates an instance of PLANSCHEDULE_WAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_WAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof PLANSCHEDULE_WAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule-w/planschedule-w-auth-service.ts b/app_DynaWeb/src/authservice/planschedule-w/planschedule-w-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..e39627a29f88d2210687134d8ab1f271b22b73a4 --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule-w/planschedule-w-auth-service.ts @@ -0,0 +1,24 @@ +import PLANSCHEDULE_WAuthServiceBase from './planschedule-w-auth-service-base'; + + +/** + * 计划_按周权限服务对象 + * + * @export + * @class PLANSCHEDULE_WAuthService + * @extends {PLANSCHEDULE_WAuthServiceBase} + */ +export default class PLANSCHEDULE_WAuthService extends PLANSCHEDULE_WAuthServiceBase { + + /** + * Creates an instance of PLANSCHEDULE_WAuthService. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULE_WAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule/planschedule-auth-service-base.ts b/app_DynaWeb/src/authservice/planschedule/planschedule-auth-service-base.ts new file mode 100644 index 0000000000000000000000000000000000000000..70c707ba5d754e418ed98cb2739f4e3ad9f49b0c --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule/planschedule-auth-service-base.ts @@ -0,0 +1,44 @@ +import AuthService from '../auth-service'; + +/** + * 计划时刻设置权限服务对象基类 + * + * @export + * @class PLANSCHEDULEAuthServiceBase + * @extends {AuthService} + */ +export default class PLANSCHEDULEAuthServiceBase extends AuthService { + + /** + * Creates an instance of PLANSCHEDULEAuthServiceBase. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULEAuthServiceBase + */ + constructor(opts: any = {}) { + super(opts); + } + + /** + * 根据当前数据获取实体操作标识 + * + * @param {*} mainSateOPPrivs 传入数据操作标识 + * @returns {any} + * @memberof PLANSCHEDULEAuthServiceBase + */ + public getOPPrivs(mainSateOPPrivs:any):any{ + let curDefaultOPPrivs:any = this.getSysOPPrivs(); + let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs)); + if(mainSateOPPrivs){ + Object.assign(curDefaultOPPrivs,mainSateOPPrivs); + } + // 统一资源优先 + Object.keys(curDefaultOPPrivs).forEach((name:string) => { + if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){ + curDefaultOPPrivs[name] = copyDefaultOPPrivs[name]; + } + }); + return curDefaultOPPrivs; + } + +} \ No newline at end of file diff --git a/app_DynaWeb/src/authservice/planschedule/planschedule-auth-service.ts b/app_DynaWeb/src/authservice/planschedule/planschedule-auth-service.ts new file mode 100644 index 0000000000000000000000000000000000000000..b0f9b94b97cbc14e5db1ce99bd9c90fecb7a7932 --- /dev/null +++ b/app_DynaWeb/src/authservice/planschedule/planschedule-auth-service.ts @@ -0,0 +1,24 @@ +import PLANSCHEDULEAuthServiceBase from './planschedule-auth-service-base'; + + +/** + * 计划时刻设置权限服务对象 + * + * @export + * @class PLANSCHEDULEAuthService + * @extends {PLANSCHEDULEAuthServiceBase} + */ +export default class PLANSCHEDULEAuthService extends PLANSCHEDULEAuthServiceBase { + + /** + * Creates an instance of PLANSCHEDULEAuthService. + * + * @param {*} [opts={}] + * @memberof PLANSCHEDULEAuthService + */ + constructor(opts: any = {}) { + super(opts); + } + + +} \ No newline at end of file diff --git a/app_DynaWeb/src/components/app-format-data/app-format-data.vue b/app_DynaWeb/src/components/app-format-data/app-format-data.vue index 60e59a06dddc82243e76be5aae820d4e3337db2d..ad6bafe5c5fc9e33ae8ffc5dac2d07ff671aaeb0 100644 --- a/app_DynaWeb/src/components/app-format-data/app-format-data.vue +++ b/app_DynaWeb/src/components/app-format-data/app-format-data.vue @@ -50,7 +50,8 @@ export default class AppFormatData extends Vue { if ( Object.is(this.dataType, 'DECIMAL') || Object.is(this.dataType, 'FLOAT') || - Object.is(this.dataType, 'CURRENCY') + Object.is(this.dataType, 'CURRENCY') || + Object.is(this.dataType, 'BIGDECIMAL') ) { let number = Number(this.data); let precision = Number(this.precision); @@ -65,14 +66,14 @@ export default class AppFormatData extends Vue { } else { result = number.toFixed(Object.is(precision, NaN) ? 2 : precision); } - let index = result.indexOf('.'); - let fornum = (Object.is(precision, NaN) ? 2 : precision) - result.length + index + 1; - if (Object.is(index, -1) && !Object.is(precision, 0)) { - result += '.'; - } - for (let i = 0; i < fornum; i++) { - result += '0'; - } + // let index = result.indexOf('.'); + // let fornum = (Object.is(precision, NaN) ? 2 : precision) - result.length + index + 1; + // if (Object.is(index, -1) && !Object.is(precision, 0)) { + // result += '.'; + // } + // for (let i = 0; i < fornum; i++) { + // result += '0'; + // } return result; } } else if (this.format) { diff --git a/app_DynaWeb/src/components/app-rate/app-rate.less b/app_DynaWeb/src/components/app-rate/app-rate.less index 8b137891791fe96927ad78e64b0aad7bded08bdc..68a7e77c3d66e71831364e78ecb42ed6d98d99bc 100644 --- a/app_DynaWeb/src/components/app-rate/app-rate.less +++ b/app_DynaWeb/src/components/app-rate/app-rate.less @@ -1 +1,5 @@ +.el-rate__item{ + font-size: 14px; + line-height: 32px; +} diff --git a/app_DynaWeb/src/components/app-rich-text-editor/app-rich-text-editor.vue b/app_DynaWeb/src/components/app-rich-text-editor/app-rich-text-editor.vue index ddac264887418ecf10a084cc4aedc8de85f4d218..b478bf4b1214acd1d746d4c61981739c47cfdc94 100644 --- a/app_DynaWeb/src/components/app-rich-text-editor/app-rich-text-editor.vue +++ b/app_DynaWeb/src/components/app-rich-text-editor/app-rich-text-editor.vue @@ -346,14 +346,14 @@ export default class AppRichTextEditor extends Vue { 'code', 'fullscreen', 'preview', - 'quickbars', + // 'quickbars', 'fullscreen', ], toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent | link image | preview code fullscreen', contextmenu: 'cut copy paste pastetext inserttable link ', - quickbars_insert_toolbar: false, - quickbars_selection_toolbar: 'forecolor fontsizeselect fontselect', + // quickbars_insert_toolbar: false, + // quickbars_selection_toolbar: 'forecolor fontsizeselect fontselect', codesample_languages: [ { text: 'HTML/XML', value: 'markup' }, { text: 'JavaScript', value: 'javascript' }, diff --git a/app_DynaWeb/src/components/app-span/app-span.tsx b/app_DynaWeb/src/components/app-span/app-span.tsx index 80c1ad324bda56cc63e603922780c0219a4143e4..c746a37f340bab3b2968837cb1b9493e394ffe9d 100644 --- a/app_DynaWeb/src/components/app-span/app-span.tsx +++ b/app_DynaWeb/src/components/app-span/app-span.tsx @@ -1,5 +1,5 @@ import { Vue, Component, Prop, Watch, Model } from 'vue-property-decorator'; - +import moment from "moment"; /** * 标签 * @@ -110,6 +110,30 @@ export default class AppSpan extends Vue { */ @Prop() public caption?: any; + /** + * 数据类型 + * + * @type {*} + * @memberof AppSpan + */ + @Prop() public dataType?: any; + + /** + * 日期格式化格式 + * + * @type {string} + * @memberof AppSpan + */ + @Prop() public valueFormat?: string; + + /** + * 精度 + * + * @type {number} + * @memberof AppSpan + */ + @Prop({default:'2'}) public precision?:number; + /** * 监控表单属性 data 值 * @@ -167,10 +191,55 @@ export default class AppSpan extends Vue { this.text += index === 0 ? item.srfmajortext : ',' + item.srfmajortext; }); } else { + if(this.$util.isEmpty(this.value)){ + this.text = ''; + }else if(this.dataType){ + this.dataFormat(); + }else{ + this.text = this.value; + } + } + } + + /** + * 数据格式化 + * + * @memberof AppSpan + */ + public dataFormat(){ + if(this.valueFormat){ + this.dateFormat() ; + return; + } + if(Object.is(this.dataType,"CURRENCY")){ + let number:any = Number(this.value); + this.text = Number(number.toFixed(this.precision)).toLocaleString('en-US'); + }else if(Object.is(this.dataType,"FLOAT") || Object.is(this.dataType,"DECIMAL") || Object.is(this.dataType, "BIGDECIMAL")){ + let number:any = Number(this.value); + const decimalCnt:number = this.value.toString().split('.').length > 1 ? this.value.toString().split('.')[1].length : 0; + this.text = (Number(this.precision) === 0 && decimalCnt !== 0) ? number.toFixed(decimalCnt) : number.toFixed(this.precision); + }else { this.text = this.value; } } + /** + * 日期格式化 + * + * @memberof AppSpan + */ + public dateFormat(){ + if(this.valueFormat){ + if(this.valueFormat.indexOf('%1$t') !== -1){ + this.text= moment(this.value).format("YYYY-MM-DD"); + }else if(this.valueFormat.indexOf('%1$s') == -1){ + this.text= moment(this.value).format(this.valueFormat); + }else{ + this.text= this.value; + } + } + } + /** * 绘制内容 * diff --git a/app_DynaWeb/src/components/context-menu/context-menu.less b/app_DynaWeb/src/components/context-menu/context-menu.less index 71e51be0ac7e9ce5714df74bb0ef7dc91ce6ebb9..77331a9ae9e0d301c0f62df15059322dcc5cab1d 100644 --- a/app_DynaWeb/src/components/context-menu/context-menu.less +++ b/app_DynaWeb/src/components/context-menu/context-menu.less @@ -13,6 +13,9 @@ .ivu-divider { width: 100%; } + .ivu-divider-horizontal{ + margin: 0px; + } } .context-menus { diff --git a/app_DynaWeb/src/components/input-box/input-box.vue b/app_DynaWeb/src/components/input-box/input-box.vue index 5eee3fe9e671014cbfd6f32b2e30c98434c8d229..d0333564313b03cb3837b2b6d9b80ae2a987bd68 100644 --- a/app_DynaWeb/src/components/input-box/input-box.vue +++ b/app_DynaWeb/src/components/input-box/input-box.vue @@ -15,6 +15,7 @@ :placeholder="placeholder" :size="size" :type="type" + :rows="rows" v-model="CurrentVal" :disabled="disabled ? true : false" :element-id="textareaId" @@ -38,6 +39,17 @@ export default class InputBox extends Vue { */ @Model('change') readonly itemValue?: any; + /** + * 生命周期 (多行文本十行高度问题) + * @type {any} + * @memberof InputBox + */ + public created() { + if(this.editorType && this.editorType == "TEXTAREA_10") { + this.rows = 10; + } + } + /** * 生命周期 (多行文本十行高度问题) * @type {any} @@ -80,6 +92,20 @@ export default class InputBox extends Vue { */ @Prop() public size?: string; + /** + * 编辑器样式 + * @type {String} + * @memberof InputBoxUnit + */ + @Prop() public editorType?: string; + + /** + * 文本行数 + * @type {String} + * @memberof InputBoxUnit + */ + public rows: number = 2; + /** * placeholder值 * @type {String} diff --git a/app_DynaWeb/src/environments/environment.ts b/app_DynaWeb/src/environments/environment.ts index 7582e2f073065128347452da16bffec4db777ae9..f685845f2c2bf0835b0cd347953d26a720107a05 100644 --- a/app_DynaWeb/src/environments/environment.ts +++ b/app_DynaWeb/src/environments/environment.ts @@ -55,7 +55,9 @@ export const Environment = { // 是否启用主题 isEnableTheme: true, // 界面导航条分隔符 - NavBarDelimiter: '/' + NavBarDelimiter: '/', + // 防抖时间(单位:ms) + debounceTime: 300 }; // 挂载外部配置文件 if ((window as any).Environment) { diff --git a/app_DynaWeb/src/interface/entity/emitem-pl.ts b/app_DynaWeb/src/interface/entity/emitem-pl.ts index 91eee23f41b759deed1161973e86e3f2b626c8e6..1ff45494fd51490b5fae4b3409748c50c6e633c8 100644 --- a/app_DynaWeb/src/interface/entity/emitem-pl.ts +++ b/app_DynaWeb/src/interface/entity/emitem-pl.ts @@ -46,14 +46,6 @@ export interface EMItemPL { */ orgid?: any; - /** - * 损溢人 - * - * @returns {*} - * @memberof EMItemPL - */ - sempid?: any; - /** * 总金额 * @@ -182,14 +174,6 @@ export interface EMItemPL { */ updatedate?: any; - /** - * 损溢人 - * - * @returns {*} - * @memberof EMItemPL - */ - sempname?: any; - /** * sap控制 * @@ -269,4 +253,20 @@ export interface EMItemPL { * @memberof EMItemPL */ storepartid?: any; + + /** + * 损溢人 + * + * @returns {*} + * @memberof EMItemPL + */ + sempid?: any; + + /** + * 损溢人 + * + * @returns {*} + * @memberof EMItemPL + */ + sempname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emitem-rin.ts b/app_DynaWeb/src/interface/entity/emitem-rin.ts index aba405c6fba6507361983cea34359fe00b2c5aea..6137966734a1173ca0fbaa1df1e7da170bab084e 100644 --- a/app_DynaWeb/src/interface/entity/emitem-rin.ts +++ b/app_DynaWeb/src/interface/entity/emitem-rin.ts @@ -22,14 +22,6 @@ export interface EMItemRIn { */ sapreason1?: any; - /** - * 收料人 - * - * @returns {*} - * @memberof EMItemRIn - */ - sempname?: any; - /** * 实收数 * @@ -102,14 +94,6 @@ export interface EMItemRIn { */ rin_psum?: any; - /** - * 制单人 - * - * @returns {*} - * @memberof EMItemRIn - */ - empname?: any; - /** * 更新时间 * @@ -190,14 +174,6 @@ export interface EMItemRIn { */ wfstep?: any; - /** - * 制单人 - * - * @returns {*} - * @memberof EMItemRIn - */ - empid?: any; - /** * 单价 * @@ -214,14 +190,6 @@ export interface EMItemRIn { */ sapsm?: any; - /** - * 收料人 - * - * @returns {*} - * @memberof EMItemRIn - */ - sempid?: any; - /** * 建立时间 * @@ -366,14 +334,6 @@ export interface EMItemRIn { */ emservicename?: any; - /** - * 采购员 - * - * @returns {*} - * @memberof EMItemRIn - */ - porempname?: any; - /** * 税费 * @@ -445,4 +405,44 @@ export interface EMItemRIn { * @memberof EMItemRIn */ storepartid?: any; + + /** + * 采购员 + * + * @returns {*} + * @memberof EMItemRIn + */ + porempname?: any; + + /** + * 制单人 + * + * @returns {*} + * @memberof EMItemRIn + */ + empid?: any; + + /** + * 制单人 + * + * @returns {*} + * @memberof EMItemRIn + */ + empname?: any; + + /** + * 收料人 + * + * @returns {*} + * @memberof EMItemRIn + */ + sempid?: any; + + /** + * 收料人 + * + * @returns {*} + * @memberof EMItemRIn + */ + sempname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emitem-trade.ts b/app_DynaWeb/src/interface/entity/emitem-trade.ts index 054110721ea048db32097333507ed53f9c344c53..f14e02fade3619f4c8b2215e5cb78ca3b48df5db 100644 --- a/app_DynaWeb/src/interface/entity/emitem-trade.ts +++ b/app_DynaWeb/src/interface/entity/emitem-trade.ts @@ -6,14 +6,6 @@ */ export interface EMItemTrade { - /** - * 库管员 - * - * @returns {*} - * @memberof EMItemTrade - */ - sempname?: any; - /** * 批次 * @@ -62,14 +54,6 @@ export interface EMItemTrade { */ createman?: any; - /** - * 申请人 - * - * @returns {*} - * @memberof EMItemTrade - */ - aempname?: any; - /** * 组织 * @@ -110,14 +94,6 @@ export interface EMItemTrade { */ updatedate?: any; - /** - * 申请人 - * - * @returns {*} - * @memberof EMItemTrade - */ - aempid?: any; - /** * 数量 * @@ -142,14 +118,6 @@ export interface EMItemTrade { */ inoutflag?: any; - /** - * 部门 - * - * @returns {*} - * @memberof EMItemTrade - */ - deptname?: any; - /** * 更新人 * @@ -166,14 +134,6 @@ export interface EMItemTrade { */ shf?: any; - /** - * 部门 - * - * @returns {*} - * @memberof EMItemTrade - */ - deptid?: any; - /** * 交易分组 * @@ -182,14 +142,6 @@ export interface EMItemTrade { */ emitemtradetype?: any; - /** - * 库管员 - * - * @returns {*} - * @memberof EMItemTrade - */ - sempid?: any; - /** * 物品交易标识 * @@ -381,4 +333,52 @@ export interface EMItemTrade { * @memberof EMItemTrade */ storepartid?: any; + + /** + * 申请人 + * + * @returns {*} + * @memberof EMItemTrade + */ + aempid?: any; + + /** + * 申请人 + * + * @returns {*} + * @memberof EMItemTrade + */ + aempname?: any; + + /** + * 部门 + * + * @returns {*} + * @memberof EMItemTrade + */ + deptid?: any; + + /** + * 部门 + * + * @returns {*} + * @memberof EMItemTrade + */ + deptname?: any; + + /** + * 库管员 + * + * @returns {*} + * @memberof EMItemTrade + */ + sempid?: any; + + /** + * 库管员 + * + * @returns {*} + * @memberof EMItemTrade + */ + sempname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emitem.ts b/app_DynaWeb/src/interface/entity/emitem.ts index 5106caf976b36d4a95bacaa35f7c2bd9fc969bf9..85ac81a6740f9ac2fb34fa97d0b12d0e240d2651 100644 --- a/app_DynaWeb/src/interface/entity/emitem.ts +++ b/app_DynaWeb/src/interface/entity/emitem.ts @@ -166,22 +166,6 @@ export interface EMItem { */ itemserialcode?: any; - /** - * 最新请购人 - * - * @returns {*} - * @memberof EMItem - */ - lastaempname?: any; - - /** - * 最新采购员 - * - * @returns {*} - * @memberof EMItem - */ - empid?: any; - /** * 登记日期 * @@ -214,14 +198,6 @@ export interface EMItem { */ itemcode?: any; - /** - * 库管员 - * - * @returns {*} - * @memberof EMItem - */ - sempid?: any; - /** * 不足3家供应商 * @@ -270,14 +246,6 @@ export interface EMItem { */ itemgroup?: any; - /** - * 最新请购人 - * - * @returns {*} - * @memberof EMItem - */ - lastaempid?: any; - /** * 最低库存 * @@ -286,14 +254,6 @@ export interface EMItem { */ lastsum?: any; - /** - * 最新采购员 - * - * @returns {*} - * @memberof EMItem - */ - empname?: any; - /** * 库存量 * @@ -382,14 +342,6 @@ export interface EMItem { */ itemdesc?: any; - /** - * 库管员 - * - * @returns {*} - * @memberof EMItem - */ - sempname?: any; - /** * 更新时间 * @@ -581,4 +533,52 @@ export interface EMItem { * @memberof EMItem */ storeid?: any; + + /** + * 最新采购员 + * + * @returns {*} + * @memberof EMItem + */ + empid?: any; + + /** + * 最新采购员 + * + * @returns {*} + * @memberof EMItem + */ + empname?: any; + + /** + * 库管员 + * + * @returns {*} + * @memberof EMItem + */ + sempid?: any; + + /** + * 库管员 + * + * @returns {*} + * @memberof EMItem + */ + sempname?: any; + + /** + * 最新请购人 + * + * @returns {*} + * @memberof EMItem + */ + lastaempid?: any; + + /** + * 最新请购人 + * + * @returns {*} + * @memberof EMItem + */ + lastaempname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emplan.ts b/app_DynaWeb/src/interface/entity/emplan.ts index 015460199e5b711b868cc720474d6ca88b226398..c57f76b7dbad53b080210b1c7f20e7b59313a619 100644 --- a/app_DynaWeb/src/interface/entity/emplan.ts +++ b/app_DynaWeb/src/interface/entity/emplan.ts @@ -70,14 +70,6 @@ export interface EMPlan { */ mtflag?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMPlan - */ - rempname?: any; - /** * 计划周期(天) * @@ -86,14 +78,6 @@ export interface EMPlan { */ plancvl?: any; - /** - * 制定人 - * - * @returns {*} - * @memberof EMPlan - */ - mpersonname?: any; - /** * 计划名称 * @@ -118,14 +102,6 @@ export interface EMPlan { */ orgid?: any; - /** - * 制定人 - * - * @returns {*} - * @memberof EMPlan - */ - mpersonid?: any; - /** * 生成工单种类 * @@ -134,14 +110,6 @@ export interface EMPlan { */ emwotype?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMPlan - */ - rempid?: any; - /** * 计划类型 * @@ -158,14 +126,6 @@ export interface EMPlan { */ content?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMPlan - */ - rdeptname?: any; - /** * 计划信息 * @@ -174,14 +134,6 @@ export interface EMPlan { */ planinfo?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMPlan - */ - rdeptid?: any; - /** * 停运时间(分) * @@ -365,4 +317,60 @@ export interface EMPlan { * @memberof EMPlan */ rteamid?: any; + + /** + * 任务时刻 + * + * @returns {*} + * @memberof EMPlan + */ + cron?: any; + + /** + * 制定人 + * + * @returns {*} + * @memberof EMPlan + */ + mpersonid?: any; + + /** + * 制定人 + * + * @returns {*} + * @memberof EMPlan + */ + mpersonname?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMPlan + */ + rempid?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMPlan + */ + rempname?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMPlan + */ + rdeptid?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMPlan + */ + rdeptname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emplanrecord.ts b/app_DynaWeb/src/interface/entity/emplanrecord.ts new file mode 100644 index 0000000000000000000000000000000000000000..7c3de21b91bc10c209b07fcfbc9ebb01fa96ae33 --- /dev/null +++ b/app_DynaWeb/src/interface/entity/emplanrecord.ts @@ -0,0 +1,112 @@ +/** + * 触发记录 + * + * @export + * @interface EMPLANRECORD + */ +export interface EMPLANRECORD { + + /** + * 触发记录标识 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + emplanrecordid?: any; + + /** + * 触发记录名称 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + emplanrecordname?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + createman?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + createdate?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + updatedate?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + updateman?: any; + + /** + * 是否触发 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + istrigger?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + emplanid?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + emplanname?: any; + + /** + * 原因 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + triggerca?: any; + + /** + * 结果 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + triggerre?: any; + + /** + * 备注 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + remark?: any; + + /** + * 触发时间 + * + * @returns {*} + * @memberof EMPLANRECORD + */ + triggerdate?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/empo.ts b/app_DynaWeb/src/interface/entity/empo.ts index 010a230339b888ffa0dd50348b3e742a82c92d17..45fc76fdc16d24262cde273f5d9d9d90d36be6df 100644 --- a/app_DynaWeb/src/interface/entity/empo.ts +++ b/app_DynaWeb/src/interface/entity/empo.ts @@ -46,14 +46,6 @@ export interface EMPO { */ postate?: any; - /** - * 采购分管副总 - * - * @returns {*} - * @memberof EMPO - */ - fgempname?: any; - /** * 订购日期 * @@ -118,14 +110,6 @@ export interface EMPO { */ orgid?: any; - /** - * 采购员 - * - * @returns {*} - * @memberof EMPO - */ - rempid?: any; - /** * 关税 * @@ -158,14 +142,6 @@ export interface EMPO { */ apprdate?: any; - /** - * 批准人 - * - * @returns {*} - * @memberof EMPO - */ - apprempid?: any; - /** * 关税发票 * @@ -183,116 +159,116 @@ export interface EMPO { att?: any; /** - * 总经理 + * 建立人 * * @returns {*} * @memberof EMPO */ - zjlempid?: any; + createman?: any; /** - * 建立人 + * 最高单价 * * @returns {*} * @memberof EMPO */ - createman?: any; + maxprice?: any; /** - * 采购分管副总 + * 工作流实例 * * @returns {*} * @memberof EMPO */ - fgempid?: any; + wfinstanceid?: any; /** - * 最高单价 + * 流程步骤 * * @returns {*} * @memberof EMPO */ - maxprice?: any; + wfstep?: any; /** - * 批准人 + * 逻辑有效标志 * * @returns {*} * @memberof EMPO */ - apprempname?: any; + enable?: any; /** - * 工作流实例 + * 工作流状态 * * @returns {*} * @memberof EMPO */ - wfinstanceid?: any; + wfstate?: any; /** - * 流程步骤 + * 更新人 * * @returns {*} * @memberof EMPO */ - wfstep?: any; + updateman?: any; /** - * 逻辑有效标志 + * 付款方式 * * @returns {*} * @memberof EMPO */ - enable?: any; + payway?: any; /** - * 采购员 + * 订单信息 * * @returns {*} * @memberof EMPO */ - rempname?: any; + poinfo?: any; /** - * 工作流状态 + * 运杂费发票 * * @returns {*} * @memberof EMPO */ - wfstate?: any; + tsivo?: any; /** - * 更新人 + * 产品供应商 * * @returns {*} * @memberof EMPO */ - updateman?: any; + labservicetypeid?: any; /** - * 付款方式 + * 产品供应商 * * @returns {*} * @memberof EMPO */ - payway?: any; + labservicename?: any; /** - * 订单信息 + * 产品供应商 * * @returns {*} * @memberof EMPO */ - poinfo?: any; + labserviceid?: any; /** - * 运杂费发票 + * 总经理 * * @returns {*} * @memberof EMPO */ - tsivo?: any; + zjlempid?: any; /** * 总经理 @@ -303,26 +279,50 @@ export interface EMPO { zjlempname?: any; /** - * 产品供应商 + * 采购分管副总 * * @returns {*} * @memberof EMPO */ - labservicetypeid?: any; + fgempid?: any; /** - * 产品供应商 + * 采购分管副总 * * @returns {*} * @memberof EMPO */ - labservicename?: any; + fgempname?: any; /** - * 产品供应商 + * 批准人 * * @returns {*} * @memberof EMPO */ - labserviceid?: any; + apprempid?: any; + + /** + * 批准人 + * + * @returns {*} + * @memberof EMPO + */ + apprempname?: any; + + /** + * 采购员 + * + * @returns {*} + * @memberof EMPO + */ + rempid?: any; + + /** + * 采购员 + * + * @returns {*} + * @memberof EMPO + */ + rempname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/empodetail.ts b/app_DynaWeb/src/interface/entity/empodetail.ts index fd2c3037f2f6f6a0fb62092f9f22e941fc6e2caa..c5927853061487f7fd3ea020cc8c301bd66b4c87 100644 --- a/app_DynaWeb/src/interface/entity/empodetail.ts +++ b/app_DynaWeb/src/interface/entity/empodetail.ts @@ -70,14 +70,6 @@ export interface EMPODetail { */ createdate?: any; - /** - * 收货人 - * - * @returns {*} - * @memberof EMPODetail - */ - rempname?: any; - /** * 收货价差 * @@ -182,14 +174,6 @@ export interface EMPODetail { */ enable?: any; - /** - * 记账人 - * - * @returns {*} - * @memberof EMPODetail - */ - empid?: any; - /** * 总价 * @@ -230,14 +214,6 @@ export interface EMPODetail { */ podetailinfo?: any; - /** - * 记账人 - * - * @returns {*} - * @memberof EMPODetail - */ - empname?: any; - /** * 组织 * @@ -342,14 +318,6 @@ export interface EMPODetail { */ description?: any; - /** - * 收货人 - * - * @returns {*} - * @memberof EMPODetail - */ - rempid?: any; - /** * 供应商 * @@ -374,14 +342,6 @@ export interface EMPODetail { */ useto?: any; - /** - * 订单采购员 - * - * @returns {*} - * @memberof EMPODetail - */ - porempname?: any; - /** * 订单流程步骤 * @@ -390,14 +350,6 @@ export interface EMPODetail { */ powfstep?: any; - /** - * 订单采购员 - * - * @returns {*} - * @memberof EMPODetail - */ - porempid?: any; - /** * 标准单位 * @@ -565,4 +517,52 @@ export interface EMPODetail { * @memberof EMPODetail */ wplistid?: any; + + /** + * 收货人 + * + * @returns {*} + * @memberof EMPODetail + */ + rempid?: any; + + /** + * 收货人 + * + * @returns {*} + * @memberof EMPODetail + */ + rempname?: any; + + /** + * 订单采购员 + * + * @returns {*} + * @memberof EMPODetail + */ + porempname?: any; + + /** + * 订单采购员 + * + * @returns {*} + * @memberof EMPODetail + */ + porempid?: any; + + /** + * 记账人 + * + * @returns {*} + * @memberof EMPODetail + */ + empid?: any; + + /** + * 记账人 + * + * @returns {*} + * @memberof EMPODetail + */ + empname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emstore.ts b/app_DynaWeb/src/interface/entity/emstore.ts index 65af4228f9d678b5f6c3d8dc985d53880b1f82ff..b0ea88f91e77eb30ad432b61f246abb29e065bc6 100644 --- a/app_DynaWeb/src/interface/entity/emstore.ts +++ b/app_DynaWeb/src/interface/entity/emstore.ts @@ -118,14 +118,6 @@ export interface EMStore { */ ioalgo?: any; - /** - * 库管员 - * - * @returns {*} - * @memberof EMStore - */ - empid?: any; - /** * 仓库类型 * @@ -150,14 +142,6 @@ export interface EMStore { */ updateman?: any; - /** - * 库管员 - * - * @returns {*} - * @memberof EMStore - */ - empname?: any; - /** * 仓库名称 * @@ -189,4 +173,20 @@ export interface EMStore { * @memberof EMStore */ storefax?: any; + + /** + * 库管员 + * + * @returns {*} + * @memberof EMStore + */ + empid?: any; + + /** + * 库管员 + * + * @returns {*} + * @memberof EMStore + */ + empname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emwo-dp.ts b/app_DynaWeb/src/interface/entity/emwo-dp.ts index 61b1a2534aa68dc4f43df43542377ea3289bf026..72527ffd1ae35d6620366cfde87ff895601648d7 100644 --- a/app_DynaWeb/src/interface/entity/emwo-dp.ts +++ b/app_DynaWeb/src/interface/entity/emwo-dp.ts @@ -22,14 +22,6 @@ export interface EMWO_DP { */ wostate?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO_DP - */ - rdeptname?: any; - /** * 流程步骤 * @@ -46,14 +38,6 @@ export interface EMWO_DP { */ val?: any; - /** - * 执行人 - * - * @returns {*} - * @memberof EMWO_DP - */ - wpersonid?: any; - /** * 工单编号 * @@ -134,22 +118,6 @@ export interface EMWO_DP { */ woteam?: any; - /** - * 接收人 - * - * @returns {*} - * @memberof EMWO_DP - */ - recvpersonname?: any; - - /** - * 接收人 - * - * @returns {*} - * @memberof EMWO_DP - */ - recvpersonid?: any; - /** * 执行结果 * @@ -182,14 +150,6 @@ export interface EMWO_DP { */ content?: any; - /** - * 执行人 - * - * @returns {*} - * @memberof EMWO_DP - */ - wpersonname?: any; - /** * 实际工时(分) * @@ -246,14 +206,6 @@ export interface EMWO_DP { */ emwotype?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMWO_DP - */ - rempid?: any; - /** * 制定时间 * @@ -286,14 +238,6 @@ export interface EMWO_DP { */ prefee?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO_DP - */ - rdeptid?: any; - /** * 工单类型 * @@ -310,14 +254,6 @@ export interface EMWO_DP { */ orgid?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMWO_DP - */ - rempname?: any; - /** * 建立时间 * @@ -565,4 +501,68 @@ export interface EMWO_DP { * @memberof EMWO_DP */ mpersonname?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMWO_DP + */ + rempid?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMWO_DP + */ + rempname?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO_DP + */ + rdeptid?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO_DP + */ + rdeptname?: any; + + /** + * 执行人 + * + * @returns {*} + * @memberof EMWO_DP + */ + wpersonid?: any; + + /** + * 执行人 + * + * @returns {*} + * @memberof EMWO_DP + */ + wpersonname?: any; + + /** + * 接收人 + * + * @returns {*} + * @memberof EMWO_DP + */ + recvpersonid?: any; + + /** + * 接收人 + * + * @returns {*} + * @memberof EMWO_DP + */ + recvpersonname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emwo-en.ts b/app_DynaWeb/src/interface/entity/emwo-en.ts index 35741884a5f2e3694d4d1ff72fb6de2aba38f2b4..f273f177ffdf4c963e94cb1925064eaa96555472 100644 --- a/app_DynaWeb/src/interface/entity/emwo-en.ts +++ b/app_DynaWeb/src/interface/entity/emwo-en.ts @@ -38,14 +38,6 @@ export interface EMWO_EN { */ regionbegindate?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMWO_EN - */ - rempname?: any; - /** * 过期日期 * @@ -86,14 +78,6 @@ export interface EMWO_EN { */ content?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMWO_EN - */ - rempid?: any; - /** * 优先级 * @@ -158,14 +142,6 @@ export interface EMWO_EN { */ description?: any; - /** - * 指派抄表人 - * - * @returns {*} - * @memberof EMWO_EN - */ - recvpersonname?: any; - /** * 持续时间(H) * @@ -222,14 +198,6 @@ export interface EMWO_EN { */ emwotype?: any; - /** - * 抄表人 - * - * @returns {*} - * @memberof EMWO_EN - */ - wpersonname?: any; - /** * 工单编号 * @@ -246,14 +214,6 @@ export interface EMWO_EN { */ lastval?: any; - /** - * 指派抄表人 - * - * @returns {*} - * @memberof EMWO_EN - */ - recvpersonid?: any; - /** * 工作流实例 * @@ -270,14 +230,6 @@ export interface EMWO_EN { */ woteam_show?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO_EN - */ - rdeptid?: any; - /** * 上次采集时间 * @@ -286,14 +238,6 @@ export interface EMWO_EN { */ bdate?: any; - /** - * 抄表人 - * - * @returns {*} - * @memberof EMWO_EN - */ - wpersonid?: any; - /** * 更新时间 * @@ -334,14 +278,6 @@ export interface EMWO_EN { */ wresult?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO_EN - */ - rdeptname?: any; - /** * 能耗值 * @@ -605,4 +541,68 @@ export interface EMWO_EN { * @memberof EMWO_EN */ mpersonname?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO_EN + */ + rdeptid?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO_EN + */ + rdeptname?: any; + + /** + * 抄表人 + * + * @returns {*} + * @memberof EMWO_EN + */ + wpersonid?: any; + + /** + * 抄表人 + * + * @returns {*} + * @memberof EMWO_EN + */ + wpersonname?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMWO_EN + */ + rempid?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMWO_EN + */ + rempname?: any; + + /** + * 指派抄表人 + * + * @returns {*} + * @memberof EMWO_EN + */ + recvpersonid?: any; + + /** + * 指派抄表人 + * + * @returns {*} + * @memberof EMWO_EN + */ + recvpersonname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emwo-osc.ts b/app_DynaWeb/src/interface/entity/emwo-osc.ts index 8d06bb4900c152c256db9359ec203a05cda73d53..012bf8885cd245f165d671678eb367ba252dd84d 100644 --- a/app_DynaWeb/src/interface/entity/emwo-osc.ts +++ b/app_DynaWeb/src/interface/entity/emwo-osc.ts @@ -78,14 +78,6 @@ export interface EMWO_OSC { */ regionbegindate?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO_OSC - */ - rdeptname?: any; - /** * 柴油 * @@ -286,14 +278,6 @@ export interface EMWO_OSC { */ createdate?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO_OSC - */ - rdeptid?: any; - /** * 工作流状态 * @@ -629,4 +613,20 @@ export interface EMWO_OSC { * @memberof EMWO_OSC */ recvpersonname?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO_OSC + */ + rdeptid?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO_OSC + */ + rdeptname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/emwo.ts b/app_DynaWeb/src/interface/entity/emwo.ts index 78993b9435d8539808edec0f462954a3b9179115..4539f472f193d9bca6f1519068e94e37ab5d2aeb 100644 --- a/app_DynaWeb/src/interface/entity/emwo.ts +++ b/app_DynaWeb/src/interface/entity/emwo.ts @@ -70,14 +70,6 @@ export interface EMWO { */ description?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO - */ - rdeptname?: any; - /** * 流程步骤 * @@ -158,14 +150,6 @@ export interface EMWO { */ worklength?: any; - /** - * 责任部门 - * - * @returns {*} - * @memberof EMWO - */ - rdeptid?: any; - /** * 逻辑有效标志 * @@ -214,14 +198,6 @@ export interface EMWO { */ yxcb?: any; - /** - * 接收人 - * - * @returns {*} - * @memberof EMWO - */ - recvpersonname?: any; - /** * 优先级 * @@ -286,14 +262,6 @@ export interface EMWO { */ wfinstanceid?: any; - /** - * 接收人 - * - * @returns {*} - * @memberof EMWO - */ - recvpersonid?: any; - /** * 执行结果 * @@ -302,22 +270,6 @@ export interface EMWO { */ wresult?: any; - /** - * 执行人 - * - * @returns {*} - * @memberof EMWO - */ - wpersonid?: any; - - /** - * 责任人 - * - * @returns {*} - * @memberof EMWO - */ - rempname?: any; - /** * 更新时间 * @@ -326,14 +278,6 @@ export interface EMWO { */ updatedate?: any; - /** - * 执行人 - * - * @returns {*} - * @memberof EMWO - */ - wpersonname?: any; - /** * 组织 * @@ -358,14 +302,6 @@ export interface EMWO { */ wfstate?: any; - /** - * 责任人 - * - * @returns {*} - * @memberof EMWO - */ - rempid?: any; - /** * 值 * @@ -622,6 +558,70 @@ export interface EMWO { */ objid?: any; + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO + */ + rdeptid?: any; + + /** + * 责任部门 + * + * @returns {*} + * @memberof EMWO + */ + rdeptname?: any; + + /** + * 执行人 + * + * @returns {*} + * @memberof EMWO + */ + wpersonid?: any; + + /** + * 执行人 + * + * @returns {*} + * @memberof EMWO + */ + wpersonname?: any; + + /** + * 接收人 + * + * @returns {*} + * @memberof EMWO + */ + recvpersonid?: any; + + /** + * 接收人 + * + * @returns {*} + * @memberof EMWO + */ + recvpersonname?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMWO + */ + rempid?: any; + + /** + * 责任人 + * + * @returns {*} + * @memberof EMWO + */ + rempname?: any; + /** * 制定人 * diff --git a/app_DynaWeb/src/interface/entity/pfemp.ts b/app_DynaWeb/src/interface/entity/pfemp.ts index b759e566d943bf6239870b73a38545ea57ec8dc4..4c3e61adce28589db9e3b301bbdf8d2391e182a4 100644 --- a/app_DynaWeb/src/interface/entity/pfemp.ts +++ b/app_DynaWeb/src/interface/entity/pfemp.ts @@ -30,14 +30,6 @@ export interface PFEmp { */ tel?: any; - /** - * 主部门 - * - * @returns {*} - * @memberof PFEmp - */ - majordeptid?: any; - /** * 工作日期 * @@ -118,14 +110,6 @@ export interface PFEmp { */ empinfo?: any; - /** - * 主部门 - * - * @returns {*} - * @memberof PFEmp - */ - majordeptname?: any; - /** * 部门 * @@ -245,4 +229,20 @@ export interface PFEmp { * @memberof PFEmp */ majorteamid?: any; + + /** + * 主部门 + * + * @returns {*} + * @memberof PFEmp + */ + majordeptid?: any; + + /** + * 主部门 + * + * @returns {*} + * @memberof PFEmp + */ + majordeptname?: any; } \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/planschedule-d.ts b/app_DynaWeb/src/interface/entity/planschedule-d.ts new file mode 100644 index 0000000000000000000000000000000000000000..16f7cdd6eb797aa21a390b60d1df71a8cc54426b --- /dev/null +++ b/app_DynaWeb/src/interface/entity/planschedule-d.ts @@ -0,0 +1,184 @@ +/** + * 计划_按天 + * + * @export + * @interface PLANSCHEDULE_D + */ +export interface PLANSCHEDULE_D { + + /** + * 计划_按天名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + planschedule_dname?: any; + + /** + * 计划_按天标识 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + planschedule_did?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + createdate?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + createman?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + updateman?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + updatedate?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + emplanid?: any; + + /** + * 间隔时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + intervalminute?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + scheduleparam?: any; + + /** + * 循环开始时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + cyclestarttime?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + emplanname?: any; + + /** + * 循环结束时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + cycleendtime?: any; + + /** + * 时刻类型 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + scheduletype?: any; + + /** + * 持续时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + lastminute?: any; + + /** + * 时刻设置状态 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + schedulestate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + scheduleparam2?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + scheduleparam4?: any; + + /** + * 描述 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + description?: any; + + /** + * 运行日期 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + rundate?: any; + + /** + * 执行时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + runtime?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + scheduleparam3?: any; + + /** + * 定时任务 + * + * @returns {*} + * @memberof PLANSCHEDULE_D + */ + taskid?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/planschedule-m.ts b/app_DynaWeb/src/interface/entity/planschedule-m.ts new file mode 100644 index 0000000000000000000000000000000000000000..0b9f22cbc0457ad7e5a2875cf5a2894a28f2818b --- /dev/null +++ b/app_DynaWeb/src/interface/entity/planschedule-m.ts @@ -0,0 +1,208 @@ +/** + * 计划_按月 + * + * @export + * @interface PLANSCHEDULE_M + */ +export interface PLANSCHEDULE_M { + + /** + * 计划_按月标识 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + planschedule_mid?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + createman?: any; + + /** + * 计划_按月名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + planschedule_mname?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + createdate?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + updateman?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + updatedate?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + emplanid?: any; + + /** + * 循环开始时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + cyclestarttime?: any; + + /** + * 间隔时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + intervalminute?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + scheduleparam?: any; + + /** + * 时刻类型 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + scheduletype?: any; + + /** + * 循环结束时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + cycleendtime?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + emplanname?: any; + + /** + * 描述 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + description?: any; + + /** + * 时刻设置状态 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + schedulestate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + scheduleparam4?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + scheduleparam2?: any; + + /** + * 执行时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + runtime?: any; + + /** + * 运行日期 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + rundate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + scheduleparam3?: any; + + /** + * 星期 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + nocode?: any; + + /** + * 第 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + noseq?: any; + + /** + * 第 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + noseq2?: any; + + /** + * 持续时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + lastminute?: any; + + /** + * 定时任务 + * + * @returns {*} + * @memberof PLANSCHEDULE_M + */ + taskid?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/planschedule-o.ts b/app_DynaWeb/src/interface/entity/planschedule-o.ts new file mode 100644 index 0000000000000000000000000000000000000000..6f73930217bfb0a8388655d724fa931cea52b713 --- /dev/null +++ b/app_DynaWeb/src/interface/entity/planschedule-o.ts @@ -0,0 +1,184 @@ +/** + * 自定义间隔天数 + * + * @export + * @interface PLANSCHEDULE_O + */ +export interface PLANSCHEDULE_O { + + /** + * 自定义间隔天数标识 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + planschedule_oid?: any; + + /** + * 自定义间隔天数名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + planschedule_oname?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + updateman?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + createman?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + createdate?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + updatedate?: any; + + /** + * 间隔时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + intervalminute?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + emplanid?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + scheduleparam?: any; + + /** + * 循环开始时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + cyclestarttime?: any; + + /** + * 时刻类型 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + scheduletype?: any; + + /** + * 循环结束时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + cycleendtime?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + emplanname?: any; + + /** + * 时刻设置状态 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + schedulestate?: any; + + /** + * 持续时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + lastminute?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + scheduleparam4?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + scheduleparam2?: any; + + /** + * 描述 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + description?: any; + + /** + * 执行时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + runtime?: any; + + /** + * 运行日期 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + rundate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + scheduleparam3?: any; + + /** + * 定时任务 + * + * @returns {*} + * @memberof PLANSCHEDULE_O + */ + taskid?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/planschedule-t.ts b/app_DynaWeb/src/interface/entity/planschedule-t.ts new file mode 100644 index 0000000000000000000000000000000000000000..80cd5d5eaec756383ceda30a741584c0b4357907 --- /dev/null +++ b/app_DynaWeb/src/interface/entity/planschedule-t.ts @@ -0,0 +1,184 @@ +/** + * 计划_定时 + * + * @export + * @interface PLANSCHEDULE_T + */ +export interface PLANSCHEDULE_T { + + /** + * 定时标识 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + planschedule_tid?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + createman?: any; + + /** + * 定时名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + planschedule_tname?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + createdate?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + updateman?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + updatedate?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + emplanid?: any; + + /** + * 间隔时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + intervalminute?: any; + + /** + * 循环开始时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + cyclestarttime?: any; + + /** + * 循环结束时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + cycleendtime?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + scheduleparam?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + emplanname?: any; + + /** + * 时刻类型 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + scheduletype?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + scheduleparam4?: any; + + /** + * 描述 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + description?: any; + + /** + * 时刻设置状态 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + schedulestate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + scheduleparam2?: any; + + /** + * 运行日期 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + rundate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + scheduleparam3?: any; + + /** + * 执行时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + runtime?: any; + + /** + * 持续时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + lastminute?: any; + + /** + * 定时任务 + * + * @returns {*} + * @memberof PLANSCHEDULE_T + */ + taskid?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/planschedule-w.ts b/app_DynaWeb/src/interface/entity/planschedule-w.ts new file mode 100644 index 0000000000000000000000000000000000000000..90cce49360503b34dbb4711804840123b47e5ca2 --- /dev/null +++ b/app_DynaWeb/src/interface/entity/planschedule-w.ts @@ -0,0 +1,184 @@ +/** + * 计划_按周 + * + * @export + * @interface PLANSCHEDULE_W + */ +export interface PLANSCHEDULE_W { + + /** + * 计划_按周标识 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + planschedule_wid?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + createman?: any; + + /** + * 计划_按周名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + planschedule_wname?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + updateman?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + createdate?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + updatedate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + scheduleparam?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + emplanid?: any; + + /** + * 间隔时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + intervalminute?: any; + + /** + * 循环开始时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + cyclestarttime?: any; + + /** + * 循环结束时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + cycleendtime?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + emplanname?: any; + + /** + * 时刻设置状态 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + schedulestate?: any; + + /** + * 时刻类型 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + scheduletype?: any; + + /** + * 描述 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + description?: any; + + /** + * 持续时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + lastminute?: any; + + /** + * 运行日期 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + rundate?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + scheduleparam4?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + scheduleparam2?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + scheduleparam3?: any; + + /** + * 执行时间 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + runtime?: any; + + /** + * 定时任务 + * + * @returns {*} + * @memberof PLANSCHEDULE_W + */ + taskid?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/interface/entity/planschedule.ts b/app_DynaWeb/src/interface/entity/planschedule.ts new file mode 100644 index 0000000000000000000000000000000000000000..4ae3c93dc09e5034d92330db7d8f9e744638a919 --- /dev/null +++ b/app_DynaWeb/src/interface/entity/planschedule.ts @@ -0,0 +1,184 @@ +/** + * 计划时刻设置 + * + * @export + * @interface PLANSCHEDULE + */ +export interface PLANSCHEDULE { + + /** + * 计划时刻设置标识 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + planscheduleid?: any; + + /** + * 建立人 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + createman?: any; + + /** + * 计划时刻设置名称 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + planschedulename?: any; + + /** + * 建立时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + createdate?: any; + + /** + * 更新人 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + updateman?: any; + + /** + * 更新时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + updatedate?: any; + + /** + * 时刻类型 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + scheduletype?: any; + + /** + * 循环开始时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + cyclestarttime?: any; + + /** + * 循环结束时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + cycleendtime?: any; + + /** + * 描述 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + description?: any; + + /** + * 间隔时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + intervalminute?: any; + + /** + * 运行日期 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + rundate?: any; + + /** + * 执行时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + runtime?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + scheduleparam?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + scheduleparam2?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + scheduleparam3?: any; + + /** + * 时刻参数 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + scheduleparam4?: any; + + /** + * 时刻设置状态 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + schedulestate?: any; + + /** + * 计划编号 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + emplanid?: any; + + /** + * 计划名称 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + emplanname?: any; + + /** + * 持续时间 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + lastminute?: any; + + /** + * 定时任务 + * + * @returns {*} + * @memberof PLANSCHEDULE + */ + taskid?: any; +} \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lang/en-US-base.ts b/app_DynaWeb/src/locale/lang/en-US-base.ts index a71d02c6364be30fe2a387c5f1eb5f410e27cb98..1bdc0672bc3a6dff80a0c4567b6d5733e62a23d4 100644 --- a/app_DynaWeb/src/locale/lang/en-US-base.ts +++ b/app_DynaWeb/src/locale/lang/en-US-base.ts @@ -2,12 +2,17 @@ import enUSUser from '../user/en-US.user'; import { Util } from '@/utils/util/util'; import emobjmap_en_US from '@locale/lanres/entities/emobj-map/emobj-map_en_US'; import emeqwl_en_US from '@locale/lanres/entities/emeqwl/emeqwl_en_US'; +import planschedule_d_en_US from '@locale/lanres/entities/planschedule-d/planschedule-d_en_US'; +import planschedule_w_en_US from '@locale/lanres/entities/planschedule-w/planschedule-w_en_US'; +import planschedule_t_en_US from '@locale/lanres/entities/planschedule-t/planschedule-t_en_US'; import emresitem_en_US from '@locale/lanres/entities/emres-item/emres-item_en_US'; import emwork_en_US from '@locale/lanres/entities/emwork/emwork_en_US'; import emeqmpmtr_en_US from '@locale/lanres/entities/emeqmpmtr/emeqmpmtr_en_US'; +import planschedule_m_en_US from '@locale/lanres/entities/planschedule-m/planschedule-m_en_US'; import emeqlctmap_en_US from '@locale/lanres/entities/emeqlctmap/emeqlctmap_en_US'; import emeqmp_en_US from '@locale/lanres/entities/emeqmp/emeqmp_en_US'; import emeqkprcd_en_US from '@locale/lanres/entities/emeqkprcd/emeqkprcd_en_US'; +import planschedule_en_US from '@locale/lanres/entities/planschedule/planschedule_en_US'; import emdprct_en_US from '@locale/lanres/entities/emdprct/emdprct_en_US'; import emeqkpmap_en_US from '@locale/lanres/entities/emeqkpmap/emeqkpmap_en_US'; import emplan_en_US from '@locale/lanres/entities/emplan/emplan_en_US'; @@ -55,6 +60,7 @@ import emwoori_en_US from '@locale/lanres/entities/emwoori/emwoori_en_US'; import emplandetail_en_US from '@locale/lanres/entities/emplan-detail/emplan-detail_en_US'; import emplantempl_en_US from '@locale/lanres/entities/emplan-templ/emplan-templ_en_US'; import emwo_dp_en_US from '@locale/lanres/entities/emwo-dp/emwo-dp_en_US'; +import planschedule_o_en_US from '@locale/lanres/entities/planschedule-o/planschedule-o_en_US'; import emen_en_US from '@locale/lanres/entities/emen/emen_en_US'; import empo_en_US from '@locale/lanres/entities/empo/empo_en_US'; import pfunit_en_US from '@locale/lanres/entities/pfunit/pfunit_en_US'; @@ -63,6 +69,7 @@ import emberth_en_US from '@locale/lanres/entities/emberth/emberth_en_US'; import emeqlcttires_en_US from '@locale/lanres/entities/emeqlcttires/emeqlcttires_en_US'; import emitemrout_en_US from '@locale/lanres/entities/emitem-rout/emitem-rout_en_US'; import emeqkeep_en_US from '@locale/lanres/entities/emeqkeep/emeqkeep_en_US'; +import emplanrecord_en_US from '@locale/lanres/entities/emplanrecord/emplanrecord_en_US'; import emitemrin_en_US from '@locale/lanres/entities/emitem-rin/emitem-rin_en_US'; import emeqmaintance_en_US from '@locale/lanres/entities/emeqmaintance/emeqmaintance_en_US'; import emitempuse_en_US from '@locale/lanres/entities/emitem-puse/emitem-puse_en_US'; @@ -487,12 +494,17 @@ function getAppLocale(){ entities: { emobjmap: emobjmap_en_US(), emeqwl: emeqwl_en_US(), + planschedule_d: planschedule_d_en_US(), + planschedule_w: planschedule_w_en_US(), + planschedule_t: planschedule_t_en_US(), emresitem: emresitem_en_US(), emwork: emwork_en_US(), emeqmpmtr: emeqmpmtr_en_US(), + planschedule_m: planschedule_m_en_US(), emeqlctmap: emeqlctmap_en_US(), emeqmp: emeqmp_en_US(), emeqkprcd: emeqkprcd_en_US(), + planschedule: planschedule_en_US(), emdprct: emdprct_en_US(), emeqkpmap: emeqkpmap_en_US(), emplan: emplan_en_US(), @@ -540,6 +552,7 @@ function getAppLocale(){ emplandetail: emplandetail_en_US(), emplantempl: emplantempl_en_US(), emwo_dp: emwo_dp_en_US(), + planschedule_o: planschedule_o_en_US(), emen: emen_en_US(), empo: empo_en_US(), pfunit: pfunit_en_US(), @@ -548,6 +561,7 @@ function getAppLocale(){ emeqlcttires: emeqlcttires_en_US(), emitemrout: emitemrout_en_US(), emeqkeep: emeqkeep_en_US(), + emplanrecord: emplanrecord_en_US(), emitemrin: emitemrin_en_US(), emeqmaintance: emeqmaintance_en_US(), emitempuse: emitempuse_en_US(), diff --git a/app_DynaWeb/src/locale/lang/zh-CN-base.ts b/app_DynaWeb/src/locale/lang/zh-CN-base.ts index 8d70b733d1c66efb4aeaa1013a1e37e065eef0c4..aecd24a14d5cd941ff3e4d915daf1e4e6037e011 100644 --- a/app_DynaWeb/src/locale/lang/zh-CN-base.ts +++ b/app_DynaWeb/src/locale/lang/zh-CN-base.ts @@ -2,12 +2,17 @@ import { Util } from '@/utils/util/util'; import zhCNUser from '../user/zh-CN.user'; import emobjmap_zh_CN from '@locale/lanres/entities/emobj-map/emobj-map_zh_CN'; import emeqwl_zh_CN from '@locale/lanres/entities/emeqwl/emeqwl_zh_CN'; +import planschedule_d_zh_CN from '@locale/lanres/entities/planschedule-d/planschedule-d_zh_CN'; +import planschedule_w_zh_CN from '@locale/lanres/entities/planschedule-w/planschedule-w_zh_CN'; +import planschedule_t_zh_CN from '@locale/lanres/entities/planschedule-t/planschedule-t_zh_CN'; import emresitem_zh_CN from '@locale/lanres/entities/emres-item/emres-item_zh_CN'; import emwork_zh_CN from '@locale/lanres/entities/emwork/emwork_zh_CN'; import emeqmpmtr_zh_CN from '@locale/lanres/entities/emeqmpmtr/emeqmpmtr_zh_CN'; +import planschedule_m_zh_CN from '@locale/lanres/entities/planschedule-m/planschedule-m_zh_CN'; import emeqlctmap_zh_CN from '@locale/lanres/entities/emeqlctmap/emeqlctmap_zh_CN'; import emeqmp_zh_CN from '@locale/lanres/entities/emeqmp/emeqmp_zh_CN'; import emeqkprcd_zh_CN from '@locale/lanres/entities/emeqkprcd/emeqkprcd_zh_CN'; +import planschedule_zh_CN from '@locale/lanres/entities/planschedule/planschedule_zh_CN'; import emdprct_zh_CN from '@locale/lanres/entities/emdprct/emdprct_zh_CN'; import emeqkpmap_zh_CN from '@locale/lanres/entities/emeqkpmap/emeqkpmap_zh_CN'; import emplan_zh_CN from '@locale/lanres/entities/emplan/emplan_zh_CN'; @@ -55,6 +60,7 @@ import emwoori_zh_CN from '@locale/lanres/entities/emwoori/emwoori_zh_CN'; import emplandetail_zh_CN from '@locale/lanres/entities/emplan-detail/emplan-detail_zh_CN'; import emplantempl_zh_CN from '@locale/lanres/entities/emplan-templ/emplan-templ_zh_CN'; import emwo_dp_zh_CN from '@locale/lanres/entities/emwo-dp/emwo-dp_zh_CN'; +import planschedule_o_zh_CN from '@locale/lanres/entities/planschedule-o/planschedule-o_zh_CN'; import emen_zh_CN from '@locale/lanres/entities/emen/emen_zh_CN'; import empo_zh_CN from '@locale/lanres/entities/empo/empo_zh_CN'; import pfunit_zh_CN from '@locale/lanres/entities/pfunit/pfunit_zh_CN'; @@ -63,6 +69,7 @@ import emberth_zh_CN from '@locale/lanres/entities/emberth/emberth_zh_CN'; import emeqlcttires_zh_CN from '@locale/lanres/entities/emeqlcttires/emeqlcttires_zh_CN'; import emitemrout_zh_CN from '@locale/lanres/entities/emitem-rout/emitem-rout_zh_CN'; import emeqkeep_zh_CN from '@locale/lanres/entities/emeqkeep/emeqkeep_zh_CN'; +import emplanrecord_zh_CN from '@locale/lanres/entities/emplanrecord/emplanrecord_zh_CN'; import emitemrin_zh_CN from '@locale/lanres/entities/emitem-rin/emitem-rin_zh_CN'; import emeqmaintance_zh_CN from '@locale/lanres/entities/emeqmaintance/emeqmaintance_zh_CN'; import emitempuse_zh_CN from '@locale/lanres/entities/emitem-puse/emitem-puse_zh_CN'; @@ -486,12 +493,17 @@ function getAppLocale(){ entities: { emobjmap: emobjmap_zh_CN(), emeqwl: emeqwl_zh_CN(), + planschedule_d: planschedule_d_zh_CN(), + planschedule_w: planschedule_w_zh_CN(), + planschedule_t: planschedule_t_zh_CN(), emresitem: emresitem_zh_CN(), emwork: emwork_zh_CN(), emeqmpmtr: emeqmpmtr_zh_CN(), + planschedule_m: planschedule_m_zh_CN(), emeqlctmap: emeqlctmap_zh_CN(), emeqmp: emeqmp_zh_CN(), emeqkprcd: emeqkprcd_zh_CN(), + planschedule: planschedule_zh_CN(), emdprct: emdprct_zh_CN(), emeqkpmap: emeqkpmap_zh_CN(), emplan: emplan_zh_CN(), @@ -539,6 +551,7 @@ function getAppLocale(){ emplandetail: emplandetail_zh_CN(), emplantempl: emplantempl_zh_CN(), emwo_dp: emwo_dp_zh_CN(), + planschedule_o: planschedule_o_zh_CN(), emen: emen_zh_CN(), empo: empo_zh_CN(), pfunit: pfunit_zh_CN(), @@ -547,6 +560,7 @@ function getAppLocale(){ emeqlcttires: emeqlcttires_zh_CN(), emitemrout: emitemrout_zh_CN(), emeqkeep: emeqkeep_zh_CN(), + emplanrecord: emplanrecord_zh_CN(), emitemrin: emitemrin_zh_CN(), emeqmaintance: emeqmaintance_zh_CN(), emitempuse: emitempuse_zh_CN(), diff --git a/app_DynaWeb/src/locale/lanres/codelist/codelist_en_US_base.ts b/app_DynaWeb/src/locale/lanres/codelist/codelist_en_US_base.ts index 4896ce9751037e4aa11ab88bba3b330632d4a0af..1f3169b53e3158f41f5c722f65ee52def1764174 100644 --- a/app_DynaWeb/src/locale/lanres/codelist/codelist_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/codelist/codelist_en_US_base.ts @@ -153,6 +153,16 @@ function getLocaleResourceBase(){ "1": commonLogic.appcommonhandle("1",null), "empty": commonLogic.appcommonhandle("",null) }, + CODELIST_SCHEDULEWEEKGROUP: { + "1": commonLogic.appcommonhandle("星期一",null), + "2": commonLogic.appcommonhandle("星期二",null), + "3": commonLogic.appcommonhandle("星期三",null), + "4": commonLogic.appcommonhandle("星期四",null), + "5": commonLogic.appcommonhandle("星期五",null), + "6": commonLogic.appcommonhandle("星期六",null), + "7": commonLogic.appcommonhandle("星期日",null), + "empty": commonLogic.appcommonhandle("",null) + }, SysOperator: { "empty": commonLogic.appcommonhandle("",null), }, @@ -178,6 +188,11 @@ function getLocaleResourceBase(){ "10": commonLogic.appcommonhandle("转让",null), "empty": commonLogic.appcommonhandle("",null) }, + CODELIST_SCHEDULESTATE: { + "1": commonLogic.appcommonhandle("正常",null), + "2": commonLogic.appcommonhandle("暂停",null), + "empty": commonLogic.appcommonhandle("",null) + }, EMWOORITYPE: { "PLAN": commonLogic.appcommonhandle("计划",null), "PLANDETAIL": commonLogic.appcommonhandle("计划步骤",null), @@ -596,6 +611,14 @@ function getLocaleResourceBase(){ "40": commonLogic.appcommonhandle("待发料",null), "empty": commonLogic.appcommonhandle("",null) }, + CODELIST_SCHEDULETYPE: { + "1": commonLogic.appcommonhandle("指定日期",null), + "3": commonLogic.appcommonhandle("每月",null), + "4": commonLogic.appcommonhandle("每周",null), + "5": commonLogic.appcommonhandle("每天",null), + "6": commonLogic.appcommonhandle("自定义间隔天数",null), + "empty": commonLogic.appcommonhandle("",null) + }, FEBEC2B8438144B19B682C0A4CB6EA17: { "205": commonLogic.appcommonhandle("设备维修领用",null), "206": commonLogic.appcommonhandle("设施维修领用",null), @@ -806,6 +829,40 @@ function getLocaleResourceBase(){ "售后": commonLogic.appcommonhandle("售后",null), "empty": commonLogic.appcommonhandle("",null) }, + CODELIST_SCHEDULEMONTHDAYGROUP: { + "1": commonLogic.appcommonhandle("1日",null), + "2": commonLogic.appcommonhandle("2日",null), + "3": commonLogic.appcommonhandle("3日",null), + "4": commonLogic.appcommonhandle("4日",null), + "5": commonLogic.appcommonhandle("5日",null), + "6": commonLogic.appcommonhandle("6日",null), + "7": commonLogic.appcommonhandle("7日",null), + "8": commonLogic.appcommonhandle("8日",null), + "9": commonLogic.appcommonhandle("9日",null), + "10": commonLogic.appcommonhandle("10日",null), + "11": commonLogic.appcommonhandle("11日",null), + "12": commonLogic.appcommonhandle("12日",null), + "13": commonLogic.appcommonhandle("13日",null), + "14": commonLogic.appcommonhandle("14日",null), + "15": commonLogic.appcommonhandle("15日",null), + "16": commonLogic.appcommonhandle("16日",null), + "17": commonLogic.appcommonhandle("17日",null), + "18": commonLogic.appcommonhandle("18日",null), + "19": commonLogic.appcommonhandle("19日",null), + "20": commonLogic.appcommonhandle("20日",null), + "21": commonLogic.appcommonhandle("21日",null), + "22": commonLogic.appcommonhandle("22日",null), + "23": commonLogic.appcommonhandle("23日",null), + "24": commonLogic.appcommonhandle("24日",null), + "25": commonLogic.appcommonhandle("25日",null), + "26": commonLogic.appcommonhandle("26日",null), + "27": commonLogic.appcommonhandle("27日",null), + "28": commonLogic.appcommonhandle("28日",null), + "29": commonLogic.appcommonhandle("29日",null), + "30": commonLogic.appcommonhandle("30日",null), + "31": commonLogic.appcommonhandle("31日",null), + "empty": commonLogic.appcommonhandle("",null) + }, EMWPLISTWFSTEP: { "15": commonLogic.appcommonhandle("补充件号中",null), "8": commonLogic.appcommonhandle("综管部初审",null), @@ -821,6 +878,21 @@ function getLocaleResourceBase(){ "70": commonLogic.appcommonhandle("审核不通过",null), "empty": commonLogic.appcommonhandle("",null) }, + CODELIST_SCHEDULEMONTHGROUP: { + "1": commonLogic.appcommonhandle("一月",null), + "2": commonLogic.appcommonhandle("二月",null), + "3": commonLogic.appcommonhandle("三月",null), + "4": commonLogic.appcommonhandle("四月",null), + "5": commonLogic.appcommonhandle("五月",null), + "6": commonLogic.appcommonhandle("六月",null), + "7": commonLogic.appcommonhandle("七月",null), + "8": commonLogic.appcommonhandle("八月",null), + "9": commonLogic.appcommonhandle("九月",null), + "10": commonLogic.appcommonhandle("十月",null), + "11": commonLogic.appcommonhandle("十一月",null), + "12": commonLogic.appcommonhandle("十二月",null), + "empty": commonLogic.appcommonhandle("",null) + }, }; return data; } diff --git a/app_DynaWeb/src/locale/lanres/codelist/codelist_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/codelist/codelist_zh_CN_base.ts index 674c2e9514b0c2c82815e3337cdf19891829ac5e..43a261412d8108e74450e6a43274453dd0522ad6 100644 --- a/app_DynaWeb/src/locale/lanres/codelist/codelist_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/codelist/codelist_zh_CN_base.ts @@ -154,6 +154,16 @@ function getLocaleResourceBase(){ "1": commonLogic.appcommonhandle("1",null), "empty": commonLogic.appcommonhandle("",null), }, + CODELIST_SCHEDULEWEEKGROUP: { + "1": commonLogic.appcommonhandle("星期一",null), + "2": commonLogic.appcommonhandle("星期二",null), + "3": commonLogic.appcommonhandle("星期三",null), + "4": commonLogic.appcommonhandle("星期四",null), + "5": commonLogic.appcommonhandle("星期五",null), + "6": commonLogic.appcommonhandle("星期六",null), + "7": commonLogic.appcommonhandle("星期日",null), + "empty": commonLogic.appcommonhandle("",null), + }, SysOperator: { "empty": commonLogic.appcommonhandle("",null), }, @@ -179,6 +189,11 @@ function getLocaleResourceBase(){ "10": commonLogic.appcommonhandle("转让",null), "empty": commonLogic.appcommonhandle("",null), }, + CODELIST_SCHEDULESTATE: { + "1": commonLogic.appcommonhandle("正常",null), + "2": commonLogic.appcommonhandle("暂停",null), + "empty": commonLogic.appcommonhandle("",null), + }, EMWOORITYPE: { "PLAN": commonLogic.appcommonhandle("计划",null), "PLANDETAIL": commonLogic.appcommonhandle("计划步骤",null), @@ -597,6 +612,14 @@ function getLocaleResourceBase(){ "40": commonLogic.appcommonhandle("待发料",null), "empty": commonLogic.appcommonhandle("",null), }, + CODELIST_SCHEDULETYPE: { + "1": commonLogic.appcommonhandle("指定日期",null), + "3": commonLogic.appcommonhandle("每月",null), + "4": commonLogic.appcommonhandle("每周",null), + "5": commonLogic.appcommonhandle("每天",null), + "6": commonLogic.appcommonhandle("自定义间隔天数",null), + "empty": commonLogic.appcommonhandle("",null), + }, FEBEC2B8438144B19B682C0A4CB6EA17: { "205": commonLogic.appcommonhandle("设备维修领用",null), "206": commonLogic.appcommonhandle("设施维修领用",null), @@ -807,6 +830,40 @@ function getLocaleResourceBase(){ "售后": commonLogic.appcommonhandle("售后",null), "empty": commonLogic.appcommonhandle("",null), }, + CODELIST_SCHEDULEMONTHDAYGROUP: { + "1": commonLogic.appcommonhandle("1日",null), + "2": commonLogic.appcommonhandle("2日",null), + "3": commonLogic.appcommonhandle("3日",null), + "4": commonLogic.appcommonhandle("4日",null), + "5": commonLogic.appcommonhandle("5日",null), + "6": commonLogic.appcommonhandle("6日",null), + "7": commonLogic.appcommonhandle("7日",null), + "8": commonLogic.appcommonhandle("8日",null), + "9": commonLogic.appcommonhandle("9日",null), + "10": commonLogic.appcommonhandle("10日",null), + "11": commonLogic.appcommonhandle("11日",null), + "12": commonLogic.appcommonhandle("12日",null), + "13": commonLogic.appcommonhandle("13日",null), + "14": commonLogic.appcommonhandle("14日",null), + "15": commonLogic.appcommonhandle("15日",null), + "16": commonLogic.appcommonhandle("16日",null), + "17": commonLogic.appcommonhandle("17日",null), + "18": commonLogic.appcommonhandle("18日",null), + "19": commonLogic.appcommonhandle("19日",null), + "20": commonLogic.appcommonhandle("20日",null), + "21": commonLogic.appcommonhandle("21日",null), + "22": commonLogic.appcommonhandle("22日",null), + "23": commonLogic.appcommonhandle("23日",null), + "24": commonLogic.appcommonhandle("24日",null), + "25": commonLogic.appcommonhandle("25日",null), + "26": commonLogic.appcommonhandle("26日",null), + "27": commonLogic.appcommonhandle("27日",null), + "28": commonLogic.appcommonhandle("28日",null), + "29": commonLogic.appcommonhandle("29日",null), + "30": commonLogic.appcommonhandle("30日",null), + "31": commonLogic.appcommonhandle("31日",null), + "empty": commonLogic.appcommonhandle("",null), + }, EMWPLISTWFSTEP: { "15": commonLogic.appcommonhandle("补充件号中",null), "8": commonLogic.appcommonhandle("综管部初审",null), @@ -822,6 +879,21 @@ function getLocaleResourceBase(){ "70": commonLogic.appcommonhandle("审核不通过",null), "empty": commonLogic.appcommonhandle("",null), }, + CODELIST_SCHEDULEMONTHGROUP: { + "1": commonLogic.appcommonhandle("一月",null), + "2": commonLogic.appcommonhandle("二月",null), + "3": commonLogic.appcommonhandle("三月",null), + "4": commonLogic.appcommonhandle("四月",null), + "5": commonLogic.appcommonhandle("五月",null), + "6": commonLogic.appcommonhandle("六月",null), + "7": commonLogic.appcommonhandle("七月",null), + "8": commonLogic.appcommonhandle("八月",null), + "9": commonLogic.appcommonhandle("九月",null), + "10": commonLogic.appcommonhandle("十月",null), + "11": commonLogic.appcommonhandle("十一月",null), + "12": commonLogic.appcommonhandle("十二月",null), + "empty": commonLogic.appcommonhandle("",null), + }, }; return data; } diff --git a/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_en_US_base.ts index e55bd7ed0f4ef29cf245e223600e00c939774b08..4f73e89eafc83f1fac61d2534776835fac5667c7 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_en_US_base.ts @@ -328,6 +328,26 @@ function getLocaleResourceBase(){ }, }, draftgridviewtoolbar_toolbar: { + tbitem1_open: { + caption: commonLogic.appcommonhandle("生成工单",null), + tip: commonLogic.appcommonhandle("生成工单",null), + }, + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, tbitem3: { caption: commonLogic.appcommonhandle("New",null), tip: commonLogic.appcommonhandle("New",null), @@ -380,15 +400,47 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_rejected: { caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_zh_CN_base.ts index 1f6f16bf00c6c968d9b67f98ccbd5a9fb91f6aae..a9e42c8a0382abe84c66c6ffd3ecb475b15de5f3 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emapply/emapply_zh_CN_base.ts @@ -328,6 +328,26 @@ function getLocaleResourceBase(){ }, }, draftgridviewtoolbar_toolbar: { + tbitem1_open: { + caption: commonLogic.appcommonhandle("生成工单",null), + tip: commonLogic.appcommonhandle("生成工单",null), + }, + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, tbitem3: { caption: commonLogic.appcommonhandle("新建",null), tip: commonLogic.appcommonhandle("新建",null), @@ -380,15 +400,47 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_rejected: { caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_en_US_base.ts index 14e1e1ec1defb5e105197841835d6486e649634d..4c28e9a6ec5a2f9b104fc473ff21269be56892b9 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_en_US_base.ts @@ -181,6 +181,7 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), + tradestate: commonLogic.appcommonhandle("调整状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -226,8 +227,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_unconfirm: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -264,6 +273,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -272,11 +285,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_zh_CN_base.ts index a442a6e7663d5921854bcf0b5195beb8f4ff0fa0..75f2a08861e9a1e9666e9bb7771063d68056a5fc 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-cs/emitem-cs_zh_CN_base.ts @@ -181,6 +181,7 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), + tradestate: commonLogic.appcommonhandle("调整状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -226,8 +227,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_unconfirm: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -264,6 +273,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -272,11 +285,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_en_US_base.ts index b189ede2736bf36567e0edb32111d21f8b9bc2fd..f08456f82836360abe2b89d515911e6161235b6a 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_en_US_base.ts @@ -8,7 +8,6 @@ function getLocaleResourceBase(){ wfstep: commonLogic.appcommonhandle("流程步骤",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), orgid: commonLogic.appcommonhandle("组织",null), - sempid: commonLogic.appcommonhandle("损溢人",null), amount: commonLogic.appcommonhandle("总金额",null), updateman: commonLogic.appcommonhandle("更新人",null), batcode: commonLogic.appcommonhandle("批次",null), @@ -25,7 +24,6 @@ function getLocaleResourceBase(){ inoutflag: commonLogic.appcommonhandle("损益出入标志",null), description: commonLogic.appcommonhandle("描述",null), updatedate: commonLogic.appcommonhandle("更新时间",null), - sempname: commonLogic.appcommonhandle("损溢人",null), sapcontrol: commonLogic.appcommonhandle("sap控制",null), createman: commonLogic.appcommonhandle("建立人",null), storepartname: commonLogic.appcommonhandle("库位",null), @@ -36,6 +34,8 @@ function getLocaleResourceBase(){ storeid: commonLogic.appcommonhandle("仓库",null), itemid: commonLogic.appcommonhandle("物品",null), storepartid: commonLogic.appcommonhandle("库位",null), + sempid: commonLogic.appcommonhandle("损溢人",null), + sempname: commonLogic.appcommonhandle("损溢人",null), }, views: { confirmedgridview: { @@ -102,8 +102,8 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), - sempname: commonLogic.appcommonhandle("损溢人",null), sempid: commonLogic.appcommonhandle("损溢人",null), + sempname: commonLogic.appcommonhandle("损溢人",null), emitemplname: commonLogic.appcommonhandle("损溢单名称",null), orgid: commonLogic.appcommonhandle("组织",null), description: commonLogic.appcommonhandle("描述",null), @@ -187,7 +187,7 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), - sempname: commonLogic.appcommonhandle("损溢人",null), + tradestate: commonLogic.appcommonhandle("损溢状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -256,8 +256,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -294,6 +302,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -302,11 +314,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_zh_CN_base.ts index a7e47503996e5b6ff90aca22912692f0f6a1c5b5..609874bd837e68cb5da876a22fca494f98b1da26 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-pl/emitem-pl_zh_CN_base.ts @@ -8,7 +8,6 @@ function getLocaleResourceBase(){ wfstep: commonLogic.appcommonhandle("流程步骤",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), orgid: commonLogic.appcommonhandle("组织",null), - sempid: commonLogic.appcommonhandle("损溢人",null), amount: commonLogic.appcommonhandle("总金额",null), updateman: commonLogic.appcommonhandle("更新人",null), batcode: commonLogic.appcommonhandle("批次",null), @@ -25,7 +24,6 @@ function getLocaleResourceBase(){ inoutflag: commonLogic.appcommonhandle("损益出入标志",null), description: commonLogic.appcommonhandle("描述",null), updatedate: commonLogic.appcommonhandle("更新时间",null), - sempname: commonLogic.appcommonhandle("损溢人",null), sapcontrol: commonLogic.appcommonhandle("sap控制",null), createman: commonLogic.appcommonhandle("建立人",null), storepartname: commonLogic.appcommonhandle("库位",null), @@ -36,6 +34,8 @@ function getLocaleResourceBase(){ storeid: commonLogic.appcommonhandle("仓库",null), itemid: commonLogic.appcommonhandle("物品",null), storepartid: commonLogic.appcommonhandle("库位",null), + sempid: commonLogic.appcommonhandle("损溢人",null), + sempname: commonLogic.appcommonhandle("损溢人",null), }, views: { confirmedgridview: { @@ -102,8 +102,8 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), - sempname: commonLogic.appcommonhandle("损溢人",null), sempid: commonLogic.appcommonhandle("损溢人",null), + sempname: commonLogic.appcommonhandle("损溢人",null), emitemplname: commonLogic.appcommonhandle("损溢单名称",null), orgid: commonLogic.appcommonhandle("组织",null), description: commonLogic.appcommonhandle("描述",null), @@ -187,7 +187,7 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), - sempname: commonLogic.appcommonhandle("损溢人",null), + tradestate: commonLogic.appcommonhandle("损溢状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -256,8 +256,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -294,6 +302,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -302,11 +314,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_en_US_base.ts index ada368d2f50d64ce0af439daa057fda6029cc2fe..eb7974d183a2ad673c0b0717ea3ceca765c8b203 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_en_US_base.ts @@ -204,6 +204,7 @@ function getLocaleResourceBase(){ storepartname: commonLogic.appcommonhandle("库位",null), batcode: commonLogic.appcommonhandle("批次",null), rname: commonLogic.appcommonhandle("领料单",null), + tradestate: commonLogic.appcommonhandle("还料状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -257,8 +258,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -309,6 +318,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -317,11 +330,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_zh_CN_base.ts index f9143de6c74bf3bdbf4a4148571ead882b4cc18f..6fa24d00295e74d03613b7c61227c12a7b57ad34 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-prtn/emitem-prtn_zh_CN_base.ts @@ -204,6 +204,7 @@ function getLocaleResourceBase(){ storepartname: commonLogic.appcommonhandle("库位",null), batcode: commonLogic.appcommonhandle("批次",null), rname: commonLogic.appcommonhandle("领料单",null), + tradestate: commonLogic.appcommonhandle("还料状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -257,8 +258,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -309,6 +318,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -317,11 +330,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_en_US_base.ts index 9ff9b84ff59f83dcf430eb7c077c375b34bc4b33..0806643bc7db0bf36b279752554ce5e4fe3c99d3 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_en_US_base.ts @@ -378,8 +378,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_issue: { + caption: commonLogic.appcommonhandle("确认发料",null), + tip: commonLogic.appcommonhandle("确认发料",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -430,6 +438,10 @@ function getLocaleResourceBase(){ }, }, waitissuegridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_issue: { caption: commonLogic.appcommonhandle("确认发料",null), tip: commonLogic.appcommonhandle("确认发料",null), @@ -438,11 +450,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_zh_CN_base.ts index 80b929d990b002009bcbdbe2f90eaa2210cf2665..12f47d6d526f78606d2738df28a96eedff1e9d77 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-puse/emitem-puse_zh_CN_base.ts @@ -378,8 +378,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_issue: { + caption: commonLogic.appcommonhandle("确认发料",null), + tip: commonLogic.appcommonhandle("确认发料",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -430,6 +438,10 @@ function getLocaleResourceBase(){ }, }, waitissuegridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_issue: { caption: commonLogic.appcommonhandle("确认发料",null), tip: commonLogic.appcommonhandle("确认发料",null), @@ -438,11 +450,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_en_US_base.ts index 94f8cbfaead712c39a3e677efcd986fa7bf47fde..067d54d07a0b3226b05e03526d0f7c48bc4e1699 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_en_US_base.ts @@ -5,7 +5,6 @@ function getLocaleResourceBase(){ fields: { emitemrinname: commonLogic.appcommonhandle("入库单名称",null), sapreason1: commonLogic.appcommonhandle("sap传输异常文本",null), - sempname: commonLogic.appcommonhandle("收料人",null), psum: commonLogic.appcommonhandle("实收数",null), updateman: commonLogic.appcommonhandle("更新人",null), description: commonLogic.appcommonhandle("描述",null), @@ -15,7 +14,6 @@ function getLocaleResourceBase(){ amount: commonLogic.appcommonhandle("物品金额",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), rin_psum: commonLogic.appcommonhandle("实收数1",null), - empname: commonLogic.appcommonhandle("制单人",null), updatedate: commonLogic.appcommonhandle("更新时间",null), emitemrinid: commonLogic.appcommonhandle("入库单号",null), batcode: commonLogic.appcommonhandle("批次",null), @@ -26,10 +24,8 @@ function getLocaleResourceBase(){ wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), orgid: commonLogic.appcommonhandle("组织",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), - empid: commonLogic.appcommonhandle("制单人",null), price: commonLogic.appcommonhandle("单价",null), sapsm: commonLogic.appcommonhandle("sap税码",null), - sempid: commonLogic.appcommonhandle("收料人",null), createdate: commonLogic.appcommonhandle("建立时间",null), sdate: commonLogic.appcommonhandle("入库日期",null), sapcontrol: commonLogic.appcommonhandle("sap控制",null), @@ -48,7 +44,6 @@ function getLocaleResourceBase(){ itemtypename: commonLogic.appcommonhandle("物品类型",null), avgprice: commonLogic.appcommonhandle("物品均价",null), emservicename: commonLogic.appcommonhandle("服务商",null), - porempname: commonLogic.appcommonhandle("采购员",null), shf: commonLogic.appcommonhandle("税费",null), storename: commonLogic.appcommonhandle("仓库",null), labserviceid: commonLogic.appcommonhandle("供应商编号",null), @@ -58,6 +53,11 @@ function getLocaleResourceBase(){ storeid: commonLogic.appcommonhandle("仓库",null), itemid: commonLogic.appcommonhandle("物品",null), storepartid: commonLogic.appcommonhandle("库位",null), + porempname: commonLogic.appcommonhandle("采购员",null), + empid: commonLogic.appcommonhandle("制单人",null), + empname: commonLogic.appcommonhandle("制单人",null), + sempid: commonLogic.appcommonhandle("收料人",null), + sempname: commonLogic.appcommonhandle("收料人",null), }, views: { putingridview: { @@ -117,6 +117,7 @@ function getLocaleResourceBase(){ sdate: commonLogic.appcommonhandle("入库日期",null), empid: commonLogic.appcommonhandle("制单人",null), empname: commonLogic.appcommonhandle("制单人",null), + porempname: commonLogic.appcommonhandle("采购员",null), storename: commonLogic.appcommonhandle("仓库",null), storepartname: commonLogic.appcommonhandle("库位",null), psum: commonLogic.appcommonhandle("实收数",null), @@ -131,7 +132,6 @@ function getLocaleResourceBase(){ civo: commonLogic.appcommonhandle("发票号",null), sapsm: commonLogic.appcommonhandle("sap税码",null), shf: commonLogic.appcommonhandle("税费",null), - porempname: commonLogic.appcommonhandle("采购员",null), emitemrinname: commonLogic.appcommonhandle("入库单名称",null), orgid: commonLogic.appcommonhandle("组织",null), description: commonLogic.appcommonhandle("描述",null), @@ -173,6 +173,7 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("物品金额",null), batcode: commonLogic.appcommonhandle("批次",null), + porempname: commonLogic.appcommonhandle("采购员",null), sempid: commonLogic.appcommonhandle("收料人",null), sempname: commonLogic.appcommonhandle("收料人",null), rinstate: commonLogic.appcommonhandle("入库状态",null), @@ -181,7 +182,6 @@ function getLocaleResourceBase(){ civo: commonLogic.appcommonhandle("发票号",null), sapsm: commonLogic.appcommonhandle("sap税码",null), shf: commonLogic.appcommonhandle("税费",null), - porempname: commonLogic.appcommonhandle("采购员",null), orgid: commonLogic.appcommonhandle("组织",null), description: commonLogic.appcommonhandle("描述",null), createman: commonLogic.appcommonhandle("建立人",null), @@ -240,10 +240,7 @@ function getLocaleResourceBase(){ storename: commonLogic.appcommonhandle("仓库",null), storepartname: commonLogic.appcommonhandle("库位",null), podetailname: commonLogic.appcommonhandle("订单条目",null), - sempname: commonLogic.appcommonhandle("收料人",null), - empname: commonLogic.appcommonhandle("制单人",null), rinstate: commonLogic.appcommonhandle("入库状态",null), - porempname: commonLogic.appcommonhandle("采购员",null), avgtsfee: commonLogic.appcommonhandle("运杂费",null), civo: commonLogic.appcommonhandle("发票号",null), labservicename: commonLogic.appcommonhandle("供应商",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_zh_CN_base.ts index 78c7d3665b3e6fa308cc9fb8625f2fbdf90788fa..cf8218a540dc451b62896236f2cd0ac3d35b487d 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-rin/emitem-rin_zh_CN_base.ts @@ -5,7 +5,6 @@ function getLocaleResourceBase(){ fields: { emitemrinname: commonLogic.appcommonhandle("入库单名称",null), sapreason1: commonLogic.appcommonhandle("sap传输异常文本",null), - sempname: commonLogic.appcommonhandle("收料人",null), psum: commonLogic.appcommonhandle("实收数",null), updateman: commonLogic.appcommonhandle("更新人",null), description: commonLogic.appcommonhandle("描述",null), @@ -15,7 +14,6 @@ function getLocaleResourceBase(){ amount: commonLogic.appcommonhandle("物品金额",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), rin_psum: commonLogic.appcommonhandle("实收数1",null), - empname: commonLogic.appcommonhandle("制单人",null), updatedate: commonLogic.appcommonhandle("更新时间",null), emitemrinid: commonLogic.appcommonhandle("入库单号",null), batcode: commonLogic.appcommonhandle("批次",null), @@ -26,10 +24,8 @@ function getLocaleResourceBase(){ wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), orgid: commonLogic.appcommonhandle("组织",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), - empid: commonLogic.appcommonhandle("制单人",null), price: commonLogic.appcommonhandle("单价",null), sapsm: commonLogic.appcommonhandle("sap税码",null), - sempid: commonLogic.appcommonhandle("收料人",null), createdate: commonLogic.appcommonhandle("建立时间",null), sdate: commonLogic.appcommonhandle("入库日期",null), sapcontrol: commonLogic.appcommonhandle("sap控制",null), @@ -48,7 +44,6 @@ function getLocaleResourceBase(){ itemtypename: commonLogic.appcommonhandle("物品类型",null), avgprice: commonLogic.appcommonhandle("物品均价",null), emservicename: commonLogic.appcommonhandle("服务商",null), - porempname: commonLogic.appcommonhandle("采购员",null), shf: commonLogic.appcommonhandle("税费",null), storename: commonLogic.appcommonhandle("仓库",null), labserviceid: commonLogic.appcommonhandle("供应商编号",null), @@ -58,6 +53,11 @@ function getLocaleResourceBase(){ storeid: commonLogic.appcommonhandle("仓库",null), itemid: commonLogic.appcommonhandle("物品",null), storepartid: commonLogic.appcommonhandle("库位",null), + porempname: commonLogic.appcommonhandle("采购员",null), + empid: commonLogic.appcommonhandle("制单人",null), + empname: commonLogic.appcommonhandle("制单人",null), + sempid: commonLogic.appcommonhandle("收料人",null), + sempname: commonLogic.appcommonhandle("收料人",null), }, views: { putingridview: { @@ -117,6 +117,7 @@ function getLocaleResourceBase(){ sdate: commonLogic.appcommonhandle("入库日期",null), empid: commonLogic.appcommonhandle("制单人",null), empname: commonLogic.appcommonhandle("制单人",null), + porempname: commonLogic.appcommonhandle("采购员",null), storename: commonLogic.appcommonhandle("仓库",null), storepartname: commonLogic.appcommonhandle("库位",null), psum: commonLogic.appcommonhandle("实收数",null), @@ -131,7 +132,6 @@ function getLocaleResourceBase(){ civo: commonLogic.appcommonhandle("发票号",null), sapsm: commonLogic.appcommonhandle("sap税码",null), shf: commonLogic.appcommonhandle("税费",null), - porempname: commonLogic.appcommonhandle("采购员",null), emitemrinname: commonLogic.appcommonhandle("入库单名称",null), orgid: commonLogic.appcommonhandle("组织",null), description: commonLogic.appcommonhandle("描述",null), @@ -173,6 +173,7 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("物品金额",null), batcode: commonLogic.appcommonhandle("批次",null), + porempname: commonLogic.appcommonhandle("采购员",null), sempid: commonLogic.appcommonhandle("收料人",null), sempname: commonLogic.appcommonhandle("收料人",null), rinstate: commonLogic.appcommonhandle("入库状态",null), @@ -181,7 +182,6 @@ function getLocaleResourceBase(){ civo: commonLogic.appcommonhandle("发票号",null), sapsm: commonLogic.appcommonhandle("sap税码",null), shf: commonLogic.appcommonhandle("税费",null), - porempname: commonLogic.appcommonhandle("采购员",null), orgid: commonLogic.appcommonhandle("组织",null), description: commonLogic.appcommonhandle("描述",null), createman: commonLogic.appcommonhandle("建立人",null), @@ -240,10 +240,7 @@ function getLocaleResourceBase(){ storename: commonLogic.appcommonhandle("仓库",null), storepartname: commonLogic.appcommonhandle("库位",null), podetailname: commonLogic.appcommonhandle("订单条目",null), - sempname: commonLogic.appcommonhandle("收料人",null), - empname: commonLogic.appcommonhandle("制单人",null), rinstate: commonLogic.appcommonhandle("入库状态",null), - porempname: commonLogic.appcommonhandle("采购员",null), avgtsfee: commonLogic.appcommonhandle("运杂费",null), civo: commonLogic.appcommonhandle("发票号",null), labservicename: commonLogic.appcommonhandle("供应商",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_en_US_base.ts index a68298ea6d5404525d939b794e0313c1b9ab6432..77e1c537b752ddcba0a3f7578b4f1913202434f5 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_en_US_base.ts @@ -194,6 +194,7 @@ function getLocaleResourceBase(){ amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), rname: commonLogic.appcommonhandle("入库单",null), + tradestate: commonLogic.appcommonhandle("退货状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -239,8 +240,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -277,6 +286,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -285,11 +298,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_zh_CN_base.ts index 236841ba696c3a5853625dd1cce63df0e571ba7e..0d3bb2422761cc44e5f6998cb397a1e8264cd058 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-rout/emitem-rout_zh_CN_base.ts @@ -194,6 +194,7 @@ function getLocaleResourceBase(){ amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), rname: commonLogic.appcommonhandle("入库单",null), + tradestate: commonLogic.appcommonhandle("退货状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -239,8 +240,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -277,6 +286,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_confirm: { caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), @@ -285,11 +298,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_en_US_base.ts index f7eadb232b7559524e9afbf1966ebc7885e8d8cd..1bf53f72ea1d970ac3999dd32b982fe888d41d23 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_en_US_base.ts @@ -3,29 +3,23 @@ import commonLogic from '@/locale/logic/common/common-logic'; function getLocaleResourceBase(){ const data:any = { fields: { - sempname: commonLogic.appcommonhandle("库管员",null), batcode: commonLogic.appcommonhandle("批次",null), emitemtradename: commonLogic.appcommonhandle("物品交易名称",null), civo: commonLogic.appcommonhandle("发票号",null), price: commonLogic.appcommonhandle("单价",null), createdate: commonLogic.appcommonhandle("建立时间",null), createman: commonLogic.appcommonhandle("建立人",null), - aempname: commonLogic.appcommonhandle("申请人",null), orgid: commonLogic.appcommonhandle("组织",null), sdate: commonLogic.appcommonhandle("出入日期",null), tradestate: commonLogic.appcommonhandle("交易状态",null), pusetype: commonLogic.appcommonhandle("领料分类",null), updatedate: commonLogic.appcommonhandle("更新时间",null), - aempid: commonLogic.appcommonhandle("申请人",null), psum: commonLogic.appcommonhandle("数量",null), amount: commonLogic.appcommonhandle("总金额",null), inoutflag: commonLogic.appcommonhandle("出入标志",null), - deptname: commonLogic.appcommonhandle("部门",null), updateman: commonLogic.appcommonhandle("更新人",null), shf: commonLogic.appcommonhandle("税费",null), - deptid: commonLogic.appcommonhandle("部门",null), emitemtradetype: commonLogic.appcommonhandle("交易分组",null), - sempid: commonLogic.appcommonhandle("库管员",null), emitemtradeid: commonLogic.appcommonhandle("物品交易标识",null), itemtypegroup: commonLogic.appcommonhandle("物品类型分组",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), @@ -50,6 +44,12 @@ function getLocaleResourceBase(){ itemid: commonLogic.appcommonhandle("物品",null), storeid: commonLogic.appcommonhandle("仓库",null), storepartid: commonLogic.appcommonhandle("库位",null), + aempid: commonLogic.appcommonhandle("申请人",null), + aempname: commonLogic.appcommonhandle("申请人",null), + deptid: commonLogic.appcommonhandle("部门",null), + deptname: commonLogic.appcommonhandle("部门",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), }, views: { treeexpview: { @@ -74,7 +74,6 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), - sempname: commonLogic.appcommonhandle("库管员",null), rname: commonLogic.appcommonhandle("关联单",null), tradestate: commonLogic.appcommonhandle("交易状态",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_zh_CN_base.ts index 22f0140280d7e76d7e9aaa3e4aede3d61dced67b..4e8045ab016a0785ddda18fcf3088c24ab0b3a00 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem-trade/emitem-trade_zh_CN_base.ts @@ -3,29 +3,23 @@ function getLocaleResourceBase(){ const data:any = { appdename: commonLogic.appcommonhandle("物品交易", null), fields: { - sempname: commonLogic.appcommonhandle("库管员",null), batcode: commonLogic.appcommonhandle("批次",null), emitemtradename: commonLogic.appcommonhandle("物品交易名称",null), civo: commonLogic.appcommonhandle("发票号",null), price: commonLogic.appcommonhandle("单价",null), createdate: commonLogic.appcommonhandle("建立时间",null), createman: commonLogic.appcommonhandle("建立人",null), - aempname: commonLogic.appcommonhandle("申请人",null), orgid: commonLogic.appcommonhandle("组织",null), sdate: commonLogic.appcommonhandle("出入日期",null), tradestate: commonLogic.appcommonhandle("交易状态",null), pusetype: commonLogic.appcommonhandle("领料分类",null), updatedate: commonLogic.appcommonhandle("更新时间",null), - aempid: commonLogic.appcommonhandle("申请人",null), psum: commonLogic.appcommonhandle("数量",null), amount: commonLogic.appcommonhandle("总金额",null), inoutflag: commonLogic.appcommonhandle("出入标志",null), - deptname: commonLogic.appcommonhandle("部门",null), updateman: commonLogic.appcommonhandle("更新人",null), shf: commonLogic.appcommonhandle("税费",null), - deptid: commonLogic.appcommonhandle("部门",null), emitemtradetype: commonLogic.appcommonhandle("交易分组",null), - sempid: commonLogic.appcommonhandle("库管员",null), emitemtradeid: commonLogic.appcommonhandle("物品交易标识",null), itemtypegroup: commonLogic.appcommonhandle("物品类型分组",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), @@ -50,6 +44,12 @@ function getLocaleResourceBase(){ itemid: commonLogic.appcommonhandle("物品",null), storeid: commonLogic.appcommonhandle("仓库",null), storepartid: commonLogic.appcommonhandle("库位",null), + aempid: commonLogic.appcommonhandle("申请人",null), + aempname: commonLogic.appcommonhandle("申请人",null), + deptid: commonLogic.appcommonhandle("部门",null), + deptname: commonLogic.appcommonhandle("部门",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), }, views: { treeexpview: { @@ -74,7 +74,6 @@ function getLocaleResourceBase(){ price: commonLogic.appcommonhandle("单价",null), amount: commonLogic.appcommonhandle("总金额",null), batcode: commonLogic.appcommonhandle("批次",null), - sempname: commonLogic.appcommonhandle("库管员",null), rname: commonLogic.appcommonhandle("关联单",null), tradestate: commonLogic.appcommonhandle("交易状态",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_en_US_base.ts index 51a8503fb1771fba2ecad94fd236f45946453d0d..3d0290e8ccc5081ead48f1f9d862ee438ce624a3 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_en_US_base.ts @@ -23,22 +23,17 @@ function getLocaleResourceBase(){ isnew: commonLogic.appcommonhandle("物品新旧标识",null), itemnid: commonLogic.appcommonhandle("物品编码(新)",null), itemserialcode: commonLogic.appcommonhandle("产品系列号",null), - lastaempname: commonLogic.appcommonhandle("最新请购人",null), - empid: commonLogic.appcommonhandle("最新采购员",null), registerdat: commonLogic.appcommonhandle("登记日期",null), itemmodelcode: commonLogic.appcommonhandle("产品型号",null), itemncode: commonLogic.appcommonhandle("物品代码(新)",null), itemcode: commonLogic.appcommonhandle("物品代码",null), - sempid: commonLogic.appcommonhandle("库管员",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), emitemname: commonLogic.appcommonhandle("物品名称",null), dens: commonLogic.appcommonhandle("密度",null), sapcontrol: commonLogic.appcommonhandle("sap控制",null), batchtype: commonLogic.appcommonhandle("批次类型",null), itemgroup: commonLogic.appcommonhandle("物品分组",null), - lastaempid: commonLogic.appcommonhandle("最新请购人",null), lastsum: commonLogic.appcommonhandle("最低库存",null), - empname: commonLogic.appcommonhandle("最新采购员",null), stocksum: commonLogic.appcommonhandle("库存量",null), createman: commonLogic.appcommonhandle("建立人",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), @@ -50,7 +45,6 @@ function getLocaleResourceBase(){ costcenterid: commonLogic.appcommonhandle("成本中心",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), itemdesc: commonLogic.appcommonhandle("物品备注",null), - sempname: commonLogic.appcommonhandle("库管员",null), updatedate: commonLogic.appcommonhandle("更新时间",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), storename: commonLogic.appcommonhandle("最新存储仓库",null), @@ -75,6 +69,12 @@ function getLocaleResourceBase(){ mserviceid: commonLogic.appcommonhandle("制造商",null), labserviceid: commonLogic.appcommonhandle("建议供应商",null), storeid: commonLogic.appcommonhandle("最新存储仓库",null), + empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), + lastaempid: commonLogic.appcommonhandle("最新请购人",null), + lastaempname: commonLogic.appcommonhandle("最新请购人",null), }, views: { dashboardview: { @@ -178,10 +178,10 @@ function getLocaleResourceBase(){ repsum: commonLogic.appcommonhandle("重订量",null), abctype: commonLogic.appcommonhandle("ABC分类",null), lastprice: commonLogic.appcommonhandle("最新价格",null), - sempid: commonLogic.appcommonhandle("库管员",null), - sempname: commonLogic.appcommonhandle("库管员",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), lastaempid: commonLogic.appcommonhandle("最新请购人",null), lastaempname: commonLogic.appcommonhandle("最新请购人",null), emitemid: commonLogic.appcommonhandle("物品标识",null), @@ -202,12 +202,12 @@ function getLocaleResourceBase(){ srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), labservicename: commonLogic.appcommonhandle("建议供应商",null), - empname: commonLogic.appcommonhandle("最新采购员",null), - empid: commonLogic.appcommonhandle("最新采购员",null), mservicename: commonLogic.appcommonhandle("制造商",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), life: commonLogic.appcommonhandle("寿命周期(天)",null), + empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), emitemid: commonLogic.appcommonhandle("物品标识",null), }, uiactions: { @@ -250,15 +250,15 @@ function getLocaleResourceBase(){ repsum: commonLogic.appcommonhandle("重订量",null), abctype: commonLogic.appcommonhandle("ABC分类",null), lastprice: commonLogic.appcommonhandle("最新价格",null), - sempid: commonLogic.appcommonhandle("库管员",null), - sempname: commonLogic.appcommonhandle("库管员",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), lastaempid: commonLogic.appcommonhandle("最新请购人",null), lastaempname: commonLogic.appcommonhandle("最新请购人",null), - labservicename: commonLogic.appcommonhandle("建议供应商",null), - empname: commonLogic.appcommonhandle("最新采购员",null), empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), + labservicename: commonLogic.appcommonhandle("建议供应商",null), mservicename: commonLogic.appcommonhandle("制造商",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), @@ -314,15 +314,15 @@ function getLocaleResourceBase(){ repsum: commonLogic.appcommonhandle("重订量",null), abctype: commonLogic.appcommonhandle("ABC分类",null), lastprice: commonLogic.appcommonhandle("最新价格",null), - sempid: commonLogic.appcommonhandle("库管员",null), - sempname: commonLogic.appcommonhandle("库管员",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), - lastaempname: commonLogic.appcommonhandle("最新请购人",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), lastaempid: commonLogic.appcommonhandle("最新请购人",null), - labservicename: commonLogic.appcommonhandle("建议供应商",null), - empname: commonLogic.appcommonhandle("最新采购员",null), + lastaempname: commonLogic.appcommonhandle("最新请购人",null), empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), + labservicename: commonLogic.appcommonhandle("建议供应商",null), mservicename: commonLogic.appcommonhandle("制造商",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), @@ -438,8 +438,8 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("新建",null), tip: commonLogic.appcommonhandle("新建",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_zh_CN_base.ts index 56267c7fb93b7ef361e624cbf50c9cae8b615d37..fb1f50e357647a8beefbd5d8f4fc0be0b01d7536 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emitem/emitem_zh_CN_base.ts @@ -23,22 +23,17 @@ function getLocaleResourceBase(){ isnew: commonLogic.appcommonhandle("物品新旧标识",null), itemnid: commonLogic.appcommonhandle("物品编码(新)",null), itemserialcode: commonLogic.appcommonhandle("产品系列号",null), - lastaempname: commonLogic.appcommonhandle("最新请购人",null), - empid: commonLogic.appcommonhandle("最新采购员",null), registerdat: commonLogic.appcommonhandle("登记日期",null), itemmodelcode: commonLogic.appcommonhandle("产品型号",null), itemncode: commonLogic.appcommonhandle("物品代码(新)",null), itemcode: commonLogic.appcommonhandle("物品代码",null), - sempid: commonLogic.appcommonhandle("库管员",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), emitemname: commonLogic.appcommonhandle("物品名称",null), dens: commonLogic.appcommonhandle("密度",null), sapcontrol: commonLogic.appcommonhandle("sap控制",null), batchtype: commonLogic.appcommonhandle("批次类型",null), itemgroup: commonLogic.appcommonhandle("物品分组",null), - lastaempid: commonLogic.appcommonhandle("最新请购人",null), lastsum: commonLogic.appcommonhandle("最低库存",null), - empname: commonLogic.appcommonhandle("最新采购员",null), stocksum: commonLogic.appcommonhandle("库存量",null), createman: commonLogic.appcommonhandle("建立人",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), @@ -50,7 +45,6 @@ function getLocaleResourceBase(){ costcenterid: commonLogic.appcommonhandle("成本中心",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), itemdesc: commonLogic.appcommonhandle("物品备注",null), - sempname: commonLogic.appcommonhandle("库管员",null), updatedate: commonLogic.appcommonhandle("更新时间",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), storename: commonLogic.appcommonhandle("最新存储仓库",null), @@ -75,6 +69,12 @@ function getLocaleResourceBase(){ mserviceid: commonLogic.appcommonhandle("制造商",null), labserviceid: commonLogic.appcommonhandle("建议供应商",null), storeid: commonLogic.appcommonhandle("最新存储仓库",null), + empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), + lastaempid: commonLogic.appcommonhandle("最新请购人",null), + lastaempname: commonLogic.appcommonhandle("最新请购人",null), }, views: { dashboardview: { @@ -178,10 +178,10 @@ function getLocaleResourceBase(){ repsum: commonLogic.appcommonhandle("重订量",null), abctype: commonLogic.appcommonhandle("ABC分类",null), lastprice: commonLogic.appcommonhandle("最新价格",null), - sempid: commonLogic.appcommonhandle("库管员",null), - sempname: commonLogic.appcommonhandle("库管员",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), lastaempid: commonLogic.appcommonhandle("最新请购人",null), lastaempname: commonLogic.appcommonhandle("最新请购人",null), emitemid: commonLogic.appcommonhandle("物品标识",null), @@ -202,12 +202,12 @@ function getLocaleResourceBase(){ srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), labservicename: commonLogic.appcommonhandle("建议供应商",null), - empname: commonLogic.appcommonhandle("最新采购员",null), - empid: commonLogic.appcommonhandle("最新采购员",null), mservicename: commonLogic.appcommonhandle("制造商",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), life: commonLogic.appcommonhandle("寿命周期(天)",null), + empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), emitemid: commonLogic.appcommonhandle("物品标识",null), }, uiactions: { @@ -250,15 +250,15 @@ function getLocaleResourceBase(){ repsum: commonLogic.appcommonhandle("重订量",null), abctype: commonLogic.appcommonhandle("ABC分类",null), lastprice: commonLogic.appcommonhandle("最新价格",null), - sempid: commonLogic.appcommonhandle("库管员",null), - sempname: commonLogic.appcommonhandle("库管员",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), lastaempid: commonLogic.appcommonhandle("最新请购人",null), lastaempname: commonLogic.appcommonhandle("最新请购人",null), - labservicename: commonLogic.appcommonhandle("建议供应商",null), - empname: commonLogic.appcommonhandle("最新采购员",null), empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), + labservicename: commonLogic.appcommonhandle("建议供应商",null), mservicename: commonLogic.appcommonhandle("制造商",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), @@ -314,15 +314,15 @@ function getLocaleResourceBase(){ repsum: commonLogic.appcommonhandle("重订量",null), abctype: commonLogic.appcommonhandle("ABC分类",null), lastprice: commonLogic.appcommonhandle("最新价格",null), - sempid: commonLogic.appcommonhandle("库管员",null), - sempname: commonLogic.appcommonhandle("库管员",null), stockinl: commonLogic.appcommonhandle("库存周期(天)",null), lastindate: commonLogic.appcommonhandle("最后入料时间",null), - lastaempname: commonLogic.appcommonhandle("最新请购人",null), + sempid: commonLogic.appcommonhandle("库管员",null), + sempname: commonLogic.appcommonhandle("库管员",null), lastaempid: commonLogic.appcommonhandle("最新请购人",null), - labservicename: commonLogic.appcommonhandle("建议供应商",null), - empname: commonLogic.appcommonhandle("最新采购员",null), + lastaempname: commonLogic.appcommonhandle("最新请购人",null), empid: commonLogic.appcommonhandle("最新采购员",null), + empname: commonLogic.appcommonhandle("最新采购员",null), + labservicename: commonLogic.appcommonhandle("建议供应商",null), mservicename: commonLogic.appcommonhandle("制造商",null), warrantyday: commonLogic.appcommonhandle("保修天数",null), no3q: commonLogic.appcommonhandle("不足3家供应商",null), @@ -438,8 +438,8 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("新建",null), tip: commonLogic.appcommonhandle("新建",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_en_US_base.ts index e8faec909760a2a692a2e76025be8c7cc8887331..c86ed0e4a5042fab21753cf647bac26ba4814de6 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_en_US_base.ts @@ -11,20 +11,14 @@ function getLocaleResourceBase(){ prefee: commonLogic.appcommonhandle("预算(¥)",null), plandesc: commonLogic.appcommonhandle("计划内容",null), mtflag: commonLogic.appcommonhandle("多任务?",null), - rempname: commonLogic.appcommonhandle("责任人",null), plancvl: commonLogic.appcommonhandle("计划周期(天)",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), emplanname: commonLogic.appcommonhandle("计划名称",null), createdate: commonLogic.appcommonhandle("建立时间",null), orgid: commonLogic.appcommonhandle("组织",null), - mpersonid: commonLogic.appcommonhandle("制定人",null), emwotype: commonLogic.appcommonhandle("生成工单种类",null), - rempid: commonLogic.appcommonhandle("责任人",null), plantype: commonLogic.appcommonhandle("计划类型",null), content: commonLogic.appcommonhandle("详细内容",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), planinfo: commonLogic.appcommonhandle("计划信息",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), archive: commonLogic.appcommonhandle("归档",null), @@ -48,6 +42,13 @@ function getLocaleResourceBase(){ acclassid: commonLogic.appcommonhandle("总帐科目",null), plantemplid: commonLogic.appcommonhandle("计划模板",null), rteamid: commonLogic.appcommonhandle("责任班组",null), + cron: commonLogic.appcommonhandle("任务时刻",null), + mpersonid: commonLogic.appcommonhandle("制定人",null), + mpersonname: commonLogic.appcommonhandle("制定人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), }, views: { editview_editmode: { @@ -161,15 +162,16 @@ function getLocaleResourceBase(){ srfuf: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rempid: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), + mpersonname: commonLogic.appcommonhandle("制定人",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), emplanid: commonLogic.appcommonhandle("计划编号",null), }, uiactions: { @@ -201,27 +203,29 @@ function getLocaleResourceBase(){ mtflag: commonLogic.appcommonhandle("多任务?",null), emwotype: commonLogic.appcommonhandle("生成工单种类",null), plancvl: commonLogic.appcommonhandle("计划周期(天)",null), + cron: commonLogic.appcommonhandle("任务时刻",null), plandesc: commonLogic.appcommonhandle("计划内容",null), + equipid: commonLogic.appcommonhandle("设备",null), equipname: commonLogic.appcommonhandle("设备",null), + objid: commonLogic.appcommonhandle("位置",null), objname: commonLogic.appcommonhandle("位置",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), dpname: commonLogic.appcommonhandle("测点",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), - rempid: commonLogic.appcommonhandle("责任人",null), - rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), + rteamid: commonLogic.appcommonhandle("责任班组",null), rteamname: commonLogic.appcommonhandle("责任班组",null), + rserviceid: commonLogic.appcommonhandle("服务商",null), rservicename: commonLogic.appcommonhandle("服务商",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), archive: commonLogic.appcommonhandle("归档",null), - objid: commonLogic.appcommonhandle("位置",null), - rserviceid: commonLogic.appcommonhandle("服务商",null), plantemplid: commonLogic.appcommonhandle("计划模板",null), dpid: commonLogic.appcommonhandle("测点",null), - equipid: commonLogic.appcommonhandle("设备",null), - rteamid: commonLogic.appcommonhandle("责任班组",null), }, uiactions: { }, @@ -243,6 +247,7 @@ function getLocaleResourceBase(){ planstate: commonLogic.appcommonhandle("计划状态",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), emplanid: commonLogic.appcommonhandle("计划编号",null), }, @@ -256,7 +261,6 @@ function getLocaleResourceBase(){ equipname: commonLogic.appcommonhandle("设备",null), plantype: commonLogic.appcommonhandle("计划类型",null), mtflag: commonLogic.appcommonhandle("多任务?",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), mdate: commonLogic.appcommonhandle("制定时间",null), planstate: commonLogic.appcommonhandle("计划状态",null), uagridcolumn1: commonLogic.appcommonhandle("操作",null), @@ -275,12 +279,9 @@ function getLocaleResourceBase(){ objname: commonLogic.appcommonhandle("位置",null), plantype: commonLogic.appcommonhandle("计划类型",null), planstate: commonLogic.appcommonhandle("计划状态",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), mdate: commonLogic.appcommonhandle("制定时间",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), @@ -323,11 +324,23 @@ function getLocaleResourceBase(){ equipgridview9toolbar_toolbar: { }, gridviewtoolbar_toolbar: { - tbitem1_openquickcreate: { - caption: commonLogic.appcommonhandle("新建",null), - tip: commonLogic.appcommonhandle("新建",null), + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), }, - tbitem2: { + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { caption: commonLogic.appcommonhandle("-",null), tip: commonLogic.appcommonhandle("",null), }, @@ -335,7 +348,7 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - tbitem12: { + tbitem10: { caption: commonLogic.appcommonhandle("-",null), tip: commonLogic.appcommonhandle("",null), }, @@ -376,7 +389,10 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("计划信息",null), }, tabviewpanel2: { - caption: commonLogic.appcommonhandle("计划条件",null), + caption: commonLogic.appcommonhandle("时刻设置",null), + }, + tabviewpanel3: { + caption: commonLogic.appcommonhandle("触发记录",null), } }, uiactions: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_zh_CN_base.ts index 836e98dc9fb24f82c4691612fa6812e990d14e96..bfaa9c26e50b900cbf53f5b2ee1c7070cc0c2b46 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emplan/emplan_zh_CN_base.ts @@ -11,20 +11,14 @@ function getLocaleResourceBase(){ prefee: commonLogic.appcommonhandle("预算(¥)",null), plandesc: commonLogic.appcommonhandle("计划内容",null), mtflag: commonLogic.appcommonhandle("多任务?",null), - rempname: commonLogic.appcommonhandle("责任人",null), plancvl: commonLogic.appcommonhandle("计划周期(天)",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), emplanname: commonLogic.appcommonhandle("计划名称",null), createdate: commonLogic.appcommonhandle("建立时间",null), orgid: commonLogic.appcommonhandle("组织",null), - mpersonid: commonLogic.appcommonhandle("制定人",null), emwotype: commonLogic.appcommonhandle("生成工单种类",null), - rempid: commonLogic.appcommonhandle("责任人",null), plantype: commonLogic.appcommonhandle("计划类型",null), content: commonLogic.appcommonhandle("详细内容",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), planinfo: commonLogic.appcommonhandle("计划信息",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), archive: commonLogic.appcommonhandle("归档",null), @@ -48,6 +42,13 @@ function getLocaleResourceBase(){ acclassid: commonLogic.appcommonhandle("总帐科目",null), plantemplid: commonLogic.appcommonhandle("计划模板",null), rteamid: commonLogic.appcommonhandle("责任班组",null), + cron: commonLogic.appcommonhandle("任务时刻",null), + mpersonid: commonLogic.appcommonhandle("制定人",null), + mpersonname: commonLogic.appcommonhandle("制定人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), }, views: { editview_editmode: { @@ -161,15 +162,16 @@ function getLocaleResourceBase(){ srfuf: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rempid: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), + mpersonname: commonLogic.appcommonhandle("制定人",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), emplanid: commonLogic.appcommonhandle("计划编号",null), }, uiactions: { @@ -201,27 +203,29 @@ function getLocaleResourceBase(){ mtflag: commonLogic.appcommonhandle("多任务?",null), emwotype: commonLogic.appcommonhandle("生成工单种类",null), plancvl: commonLogic.appcommonhandle("计划周期(天)",null), + cron: commonLogic.appcommonhandle("任务时刻",null), plandesc: commonLogic.appcommonhandle("计划内容",null), + equipid: commonLogic.appcommonhandle("设备",null), equipname: commonLogic.appcommonhandle("设备",null), + objid: commonLogic.appcommonhandle("位置",null), objname: commonLogic.appcommonhandle("位置",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), dpname: commonLogic.appcommonhandle("测点",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), - rempid: commonLogic.appcommonhandle("责任人",null), - rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), + rteamid: commonLogic.appcommonhandle("责任班组",null), rteamname: commonLogic.appcommonhandle("责任班组",null), + rserviceid: commonLogic.appcommonhandle("服务商",null), rservicename: commonLogic.appcommonhandle("服务商",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), archive: commonLogic.appcommonhandle("归档",null), - objid: commonLogic.appcommonhandle("位置",null), - rserviceid: commonLogic.appcommonhandle("服务商",null), plantemplid: commonLogic.appcommonhandle("计划模板",null), dpid: commonLogic.appcommonhandle("测点",null), - equipid: commonLogic.appcommonhandle("设备",null), - rteamid: commonLogic.appcommonhandle("责任班组",null), }, uiactions: { }, @@ -243,6 +247,7 @@ function getLocaleResourceBase(){ planstate: commonLogic.appcommonhandle("计划状态",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), emplanid: commonLogic.appcommonhandle("计划编号",null), }, @@ -256,7 +261,6 @@ function getLocaleResourceBase(){ equipname: commonLogic.appcommonhandle("设备",null), plantype: commonLogic.appcommonhandle("计划类型",null), mtflag: commonLogic.appcommonhandle("多任务?",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), mdate: commonLogic.appcommonhandle("制定时间",null), planstate: commonLogic.appcommonhandle("计划状态",null), uagridcolumn1: commonLogic.appcommonhandle("操作",null), @@ -275,12 +279,9 @@ function getLocaleResourceBase(){ objname: commonLogic.appcommonhandle("位置",null), plantype: commonLogic.appcommonhandle("计划类型",null), planstate: commonLogic.appcommonhandle("计划状态",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), - mpersonname: commonLogic.appcommonhandle("制定人",null), mdate: commonLogic.appcommonhandle("制定时间",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), @@ -323,11 +324,23 @@ function getLocaleResourceBase(){ equipgridview9toolbar_toolbar: { }, gridviewtoolbar_toolbar: { - tbitem1_openquickcreate: { + tbitem3: { caption: commonLogic.appcommonhandle("新建",null), tip: commonLogic.appcommonhandle("新建",null), }, - tbitem2: { + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { caption: commonLogic.appcommonhandle("-",null), tip: commonLogic.appcommonhandle("",null), }, @@ -335,7 +348,7 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - tbitem12: { + tbitem10: { caption: commonLogic.appcommonhandle("-",null), tip: commonLogic.appcommonhandle("",null), }, @@ -376,7 +389,10 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("计划信息",null), }, tabviewpanel2: { - caption: commonLogic.appcommonhandle("计划条件",null), + caption: commonLogic.appcommonhandle("时刻设置",null), + }, + tabviewpanel3: { + caption: commonLogic.appcommonhandle("触发记录",null), } }, uiactions: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..44d85eba16caf87ec6e6989786dc29bb7d5343c0 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_en_US.ts @@ -0,0 +1,8 @@ +import EMPLANRECORD_en_US_Base from './emplanrecord_en_US_base'; + +function getLocaleResource(){ + const EMPLANRECORD_en_US_OwnData = {}; + const targetData = Object.assign(EMPLANRECORD_en_US_Base(), EMPLANRECORD_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..80cb08126e73aae3ff405c31425b3ceb46a6417e --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_en_US_base.ts @@ -0,0 +1,81 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + emplanrecordid: commonLogic.appcommonhandle("触发记录标识",null), + emplanrecordname: commonLogic.appcommonhandle("触发记录名称",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + istrigger: commonLogic.appcommonhandle("是否触发",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + triggerca: commonLogic.appcommonhandle("原因",null), + triggerre: commonLogic.appcommonhandle("结果",null), + remark: commonLogic.appcommonhandle("备注",null), + triggerdate: commonLogic.appcommonhandle("触发时间",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("触发记录",null), + title: commonLogic.appcommonhandle("触发记录编辑视图",null), + }, + gridview: { + caption: commonLogic.appcommonhandle("触发记录",null), + title: commonLogic.appcommonhandle("触发记录表格视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("触发记录基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("触发记录标识",null), + srfmajortext: commonLogic.appcommonhandle("触发记录名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + triggerdate: commonLogic.appcommonhandle("触发时间",null), + istrigger: commonLogic.appcommonhandle("是否触发",null), + triggerca: commonLogic.appcommonhandle("原因",null), + triggerre: commonLogic.appcommonhandle("结果",null), + remark: commonLogic.appcommonhandle("备注",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + emplanrecordid: commonLogic.appcommonhandle("触发记录标识",null), + }, + uiactions: { + }, + }, + main_grid: { + columns: { + emplanname: commonLogic.appcommonhandle("计划名称",null), + triggerdate: commonLogic.appcommonhandle("触发时间",null), + istrigger: commonLogic.appcommonhandle("是否触发",null), + }, + nodata:commonLogic.appcommonhandle("",null), + uiactions: { + }, + }, + default_searchform: { + details: { + formpage1: commonLogic.appcommonhandle("常规条件",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..97b9a2d3022af0b0904f46eb61af4b7832bd6bc9 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_zh_CN.ts @@ -0,0 +1,8 @@ +import EMPLANRECORD_zh_CN_Base from './emplanrecord_zh_CN_base'; + +function getLocaleResource(){ + const EMPLANRECORD_zh_CN_OwnData = {}; + const targetData = Object.assign(EMPLANRECORD_zh_CN_Base(), EMPLANRECORD_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..4e6c72ec3b6f89a5df3de608d7ce8e6711e62720 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/emplanrecord/emplanrecord_zh_CN_base.ts @@ -0,0 +1,80 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("触发记录", null), + fields: { + emplanrecordid: commonLogic.appcommonhandle("触发记录标识",null), + emplanrecordname: commonLogic.appcommonhandle("触发记录名称",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + istrigger: commonLogic.appcommonhandle("是否触发",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + triggerca: commonLogic.appcommonhandle("原因",null), + triggerre: commonLogic.appcommonhandle("结果",null), + remark: commonLogic.appcommonhandle("备注",null), + triggerdate: commonLogic.appcommonhandle("触发时间",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("触发记录",null), + title: commonLogic.appcommonhandle("触发记录编辑视图",null), + }, + gridview: { + caption: commonLogic.appcommonhandle("触发记录",null), + title: commonLogic.appcommonhandle("触发记录表格视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("触发记录基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("触发记录标识",null), + srfmajortext: commonLogic.appcommonhandle("触发记录名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + triggerdate: commonLogic.appcommonhandle("触发时间",null), + istrigger: commonLogic.appcommonhandle("是否触发",null), + triggerca: commonLogic.appcommonhandle("原因",null), + triggerre: commonLogic.appcommonhandle("结果",null), + remark: commonLogic.appcommonhandle("备注",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + emplanrecordid: commonLogic.appcommonhandle("触发记录标识",null), + }, + uiactions: { + }, + }, + main_grid: { + columns: { + emplanname: commonLogic.appcommonhandle("计划名称",null), + triggerdate: commonLogic.appcommonhandle("触发时间",null), + istrigger: commonLogic.appcommonhandle("是否触发",null), + }, + nodata:commonLogic.appcommonhandle("",null), + uiactions: { + }, + }, + default_searchform: { + details: { + formpage1: commonLogic.appcommonhandle("常规条件",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/empo/empo_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/empo/empo_en_US_base.ts index 470f6589154b0acdbcac240b85bc53184a6eb4c5..7f3fc11f580b01a593c6cab4d41d6b2f2ef4eead 100644 --- a/app_DynaWeb/src/locale/lanres/entities/empo/empo_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/empo/empo_en_US_base.ts @@ -8,7 +8,6 @@ function getLocaleResourceBase(){ eadate: commonLogic.appcommonhandle("预计到货日期",null), empoid: commonLogic.appcommonhandle("订单号",null), postate: commonLogic.appcommonhandle("订单状态",null), - fgempname: commonLogic.appcommonhandle("采购分管副总",null), pdate: commonLogic.appcommonhandle("订购日期",null), civo: commonLogic.appcommonhandle("货物发票",null), labservicedesc: commonLogic.appcommonhandle("供应商备注",null), @@ -17,32 +16,33 @@ function getLocaleResourceBase(){ createdate: commonLogic.appcommonhandle("建立时间",null), tsfee: commonLogic.appcommonhandle("运杂费",null), orgid: commonLogic.appcommonhandle("组织",null), - rempid: commonLogic.appcommonhandle("采购员",null), taxfee: commonLogic.appcommonhandle("关税",null), htjy: commonLogic.appcommonhandle("合同校验",null), updatedate: commonLogic.appcommonhandle("更新时间",null), apprdate: commonLogic.appcommonhandle("批准日期",null), - apprempid: commonLogic.appcommonhandle("批准人",null), taxivo: commonLogic.appcommonhandle("关税发票",null), att: commonLogic.appcommonhandle("附件",null), - zjlempid: commonLogic.appcommonhandle("总经理",null), createman: commonLogic.appcommonhandle("建立人",null), - fgempid: commonLogic.appcommonhandle("采购分管副总",null), maxprice: commonLogic.appcommonhandle("最高单价",null), - apprempname: commonLogic.appcommonhandle("批准人",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), - rempname: commonLogic.appcommonhandle("采购员",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), updateman: commonLogic.appcommonhandle("更新人",null), payway: commonLogic.appcommonhandle("付款方式",null), poinfo: commonLogic.appcommonhandle("订单信息",null), tsivo: commonLogic.appcommonhandle("运杂费发票",null), - zjlempname: commonLogic.appcommonhandle("总经理",null), labservicetypeid: commonLogic.appcommonhandle("产品供应商",null), labservicename: commonLogic.appcommonhandle("产品供应商",null), labserviceid: commonLogic.appcommonhandle("产品供应商",null), + zjlempid: commonLogic.appcommonhandle("总经理",null), + zjlempname: commonLogic.appcommonhandle("总经理",null), + fgempid: commonLogic.appcommonhandle("采购分管副总",null), + fgempname: commonLogic.appcommonhandle("采购分管副总",null), + apprempid: commonLogic.appcommonhandle("批准人",null), + apprempname: commonLogic.appcommonhandle("批准人",null), + rempid: commonLogic.appcommonhandle("采购员",null), + rempname: commonLogic.appcommonhandle("采购员",null), }, views: { pickupview: { @@ -207,7 +207,6 @@ function getLocaleResourceBase(){ empoid: commonLogic.appcommonhandle("订单号",null), pdate: commonLogic.appcommonhandle("订购日期",null), labservicename: commonLogic.appcommonhandle("产品供应商",null), - rempname: commonLogic.appcommonhandle("采购员",null), eadate: commonLogic.appcommonhandle("预计到货日期",null), postate: commonLogic.appcommonhandle("订单状态",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), @@ -218,7 +217,6 @@ function getLocaleResourceBase(){ civo: commonLogic.appcommonhandle("货物发票",null), tsivo: commonLogic.appcommonhandle("运杂费发票",null), taxivo: commonLogic.appcommonhandle("关税发票",null), - apprempname: commonLogic.appcommonhandle("批准人",null), apprdate: commonLogic.appcommonhandle("批准日期",null), labservicedesc: commonLogic.appcommonhandle("供应商备注",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/empo/empo_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/empo/empo_zh_CN_base.ts index 10e2b18cc2c32b0b77f9d483b243e45d8f39a5db..9473ca5881cfd92528c90e457a8b3e3f4402ffff 100644 --- a/app_DynaWeb/src/locale/lanres/entities/empo/empo_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/empo/empo_zh_CN_base.ts @@ -8,7 +8,6 @@ function getLocaleResourceBase(){ eadate: commonLogic.appcommonhandle("预计到货日期",null), empoid: commonLogic.appcommonhandle("订单号",null), postate: commonLogic.appcommonhandle("订单状态",null), - fgempname: commonLogic.appcommonhandle("采购分管副总",null), pdate: commonLogic.appcommonhandle("订购日期",null), civo: commonLogic.appcommonhandle("货物发票",null), labservicedesc: commonLogic.appcommonhandle("供应商备注",null), @@ -17,32 +16,33 @@ function getLocaleResourceBase(){ createdate: commonLogic.appcommonhandle("建立时间",null), tsfee: commonLogic.appcommonhandle("运杂费",null), orgid: commonLogic.appcommonhandle("组织",null), - rempid: commonLogic.appcommonhandle("采购员",null), taxfee: commonLogic.appcommonhandle("关税",null), htjy: commonLogic.appcommonhandle("合同校验",null), updatedate: commonLogic.appcommonhandle("更新时间",null), apprdate: commonLogic.appcommonhandle("批准日期",null), - apprempid: commonLogic.appcommonhandle("批准人",null), taxivo: commonLogic.appcommonhandle("关税发票",null), att: commonLogic.appcommonhandle("附件",null), - zjlempid: commonLogic.appcommonhandle("总经理",null), createman: commonLogic.appcommonhandle("建立人",null), - fgempid: commonLogic.appcommonhandle("采购分管副总",null), maxprice: commonLogic.appcommonhandle("最高单价",null), - apprempname: commonLogic.appcommonhandle("批准人",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), - rempname: commonLogic.appcommonhandle("采购员",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), updateman: commonLogic.appcommonhandle("更新人",null), payway: commonLogic.appcommonhandle("付款方式",null), poinfo: commonLogic.appcommonhandle("订单信息",null), tsivo: commonLogic.appcommonhandle("运杂费发票",null), - zjlempname: commonLogic.appcommonhandle("总经理",null), labservicetypeid: commonLogic.appcommonhandle("产品供应商",null), labservicename: commonLogic.appcommonhandle("产品供应商",null), labserviceid: commonLogic.appcommonhandle("产品供应商",null), + zjlempid: commonLogic.appcommonhandle("总经理",null), + zjlempname: commonLogic.appcommonhandle("总经理",null), + fgempid: commonLogic.appcommonhandle("采购分管副总",null), + fgempname: commonLogic.appcommonhandle("采购分管副总",null), + apprempid: commonLogic.appcommonhandle("批准人",null), + apprempname: commonLogic.appcommonhandle("批准人",null), + rempid: commonLogic.appcommonhandle("采购员",null), + rempname: commonLogic.appcommonhandle("采购员",null), }, views: { pickupview: { @@ -207,7 +207,6 @@ function getLocaleResourceBase(){ empoid: commonLogic.appcommonhandle("订单号",null), pdate: commonLogic.appcommonhandle("订购日期",null), labservicename: commonLogic.appcommonhandle("产品供应商",null), - rempname: commonLogic.appcommonhandle("采购员",null), eadate: commonLogic.appcommonhandle("预计到货日期",null), postate: commonLogic.appcommonhandle("订单状态",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), @@ -218,7 +217,6 @@ function getLocaleResourceBase(){ civo: commonLogic.appcommonhandle("货物发票",null), tsivo: commonLogic.appcommonhandle("运杂费发票",null), taxivo: commonLogic.appcommonhandle("关税发票",null), - apprempname: commonLogic.appcommonhandle("批准人",null), apprdate: commonLogic.appcommonhandle("批准日期",null), labservicedesc: commonLogic.appcommonhandle("供应商备注",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_en_US_base.ts index df342d6f343fce637c4d4ca21be94e92529e5b33..fd42aa3bf77ad9212b6bcc788303ac0a2c2bca7b 100644 --- a/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_en_US_base.ts @@ -11,7 +11,6 @@ function getLocaleResourceBase(){ civocopy: commonLogic.appcommonhandle("发票存根",null), sumdiff: commonLogic.appcommonhandle("数量差",null), createdate: commonLogic.appcommonhandle("建立时间",null), - rempname: commonLogic.appcommonhandle("收货人",null), pricediff: commonLogic.appcommonhandle("收货价差",null), taxrate: commonLogic.appcommonhandle("税率",null), avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), @@ -25,13 +24,11 @@ function getLocaleResourceBase(){ shf: commonLogic.appcommonhandle("税费",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), - empid: commonLogic.appcommonhandle("记账人",null), totalprice: commonLogic.appcommonhandle("总价",null), podetailstate: commonLogic.appcommonhandle("条目状态",null), rsum: commonLogic.appcommonhandle("收货数量",null), updatedate: commonLogic.appcommonhandle("更新时间",null), podetailinfo: commonLogic.appcommonhandle("订单条目信息",null), - empname: commonLogic.appcommonhandle("记账人",null), orgid: commonLogic.appcommonhandle("组织",null), sapsl: commonLogic.appcommonhandle("sap税率",null), avgtsfee: commonLogic.appcommonhandle("均摊运杂费",null), @@ -45,13 +42,10 @@ function getLocaleResourceBase(){ psum: commonLogic.appcommonhandle("订货数量",null), empodetailname: commonLogic.appcommonhandle("订单条目名称",null), description: commonLogic.appcommonhandle("描述",null), - rempid: commonLogic.appcommonhandle("收货人",null), labservicename: commonLogic.appcommonhandle("供应商",null), sunitid: commonLogic.appcommonhandle("标准单位",null), useto: commonLogic.appcommonhandle("用途",null), - porempname: commonLogic.appcommonhandle("订单采购员",null), powfstep: commonLogic.appcommonhandle("订单流程步骤",null), - porempid: commonLogic.appcommonhandle("订单采购员",null), sunitname: commonLogic.appcommonhandle("标准单位",null), itemname: commonLogic.appcommonhandle("物品",null), labserviceid: commonLogic.appcommonhandle("供应商",null), @@ -73,6 +67,12 @@ function getLocaleResourceBase(){ poid: commonLogic.appcommonhandle("订单",null), runitid: commonLogic.appcommonhandle("收货单位",null), wplistid: commonLogic.appcommonhandle("采购申请",null), + rempid: commonLogic.appcommonhandle("收货人",null), + rempname: commonLogic.appcommonhandle("收货人",null), + porempname: commonLogic.appcommonhandle("订单采购员",null), + porempid: commonLogic.appcommonhandle("订单采购员",null), + empid: commonLogic.appcommonhandle("记账人",null), + empname: commonLogic.appcommonhandle("记账人",null), }, views: { waitbookgridview: { @@ -133,6 +133,8 @@ function getLocaleResourceBase(){ srfsourcekey: commonLogic.appcommonhandle("",null), empodetailid: commonLogic.appcommonhandle("订单条目号",null), poname: commonLogic.appcommonhandle("订单",null), + porempid: commonLogic.appcommonhandle("订单采购员",null), + porempname: commonLogic.appcommonhandle("订单采购员",null), wplistname: commonLogic.appcommonhandle("采购申请",null), itemname: commonLogic.appcommonhandle("物品",null), itemdesc: commonLogic.appcommonhandle("物品备注",null), @@ -154,11 +156,11 @@ function getLocaleResourceBase(){ equips: commonLogic.appcommonhandle("设备集合",null), rempid: commonLogic.appcommonhandle("收货人",null), rempname: commonLogic.appcommonhandle("收货人",null), + empid: commonLogic.appcommonhandle("记账人",null), + empname: commonLogic.appcommonhandle("记账人",null), rdate: commonLogic.appcommonhandle("收货日期",null), rsum: commonLogic.appcommonhandle("收货数量",null), runitname: commonLogic.appcommonhandle("收货单位",null), - empid: commonLogic.appcommonhandle("记账人",null), - empname: commonLogic.appcommonhandle("记账人",null), rprice: commonLogic.appcommonhandle("收货单价",null), avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), avgtsfee: commonLogic.appcommonhandle("均摊运杂费",null), @@ -213,6 +215,8 @@ function getLocaleResourceBase(){ srfsourcekey: commonLogic.appcommonhandle("",null), empodetailid: commonLogic.appcommonhandle("订单条目号",null), poname: commonLogic.appcommonhandle("订单",null), + porempid: commonLogic.appcommonhandle("订单采购员",null), + porempname: commonLogic.appcommonhandle("订单采购员",null), wplistname: commonLogic.appcommonhandle("采购申请",null), itemname: commonLogic.appcommonhandle("物品",null), itemdesc: commonLogic.appcommonhandle("物品备注",null), @@ -237,8 +241,6 @@ function getLocaleResourceBase(){ rdate: commonLogic.appcommonhandle("收货日期",null), rsum: commonLogic.appcommonhandle("收货数量",null), runitname: commonLogic.appcommonhandle("收货单位",null), - empid: commonLogic.appcommonhandle("记账人",null), - empname: commonLogic.appcommonhandle("记账人",null), rprice: commonLogic.appcommonhandle("收货单价",null), avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), avgtsfee: commonLogic.appcommonhandle("均摊运杂费",null), @@ -278,8 +280,6 @@ function getLocaleResourceBase(){ avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), amount: commonLogic.appcommonhandle("物品金额",null), wplistname: commonLogic.appcommonhandle("采购申请",null), - rempname: commonLogic.appcommonhandle("收货人",null), - empname: commonLogic.appcommonhandle("记账人",null), description: commonLogic.appcommonhandle("描述",null), useto: commonLogic.appcommonhandle("用途",null), equipname: commonLogic.appcommonhandle("设备",null), @@ -312,8 +312,6 @@ function getLocaleResourceBase(){ avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), amount: commonLogic.appcommonhandle("物品金额",null), wplistname: commonLogic.appcommonhandle("采购申请",null), - rempname: commonLogic.appcommonhandle("收货人",null), - empname: commonLogic.appcommonhandle("记账人",null), description: commonLogic.appcommonhandle("描述",null), useto: commonLogic.appcommonhandle("用途",null), equipname: commonLogic.appcommonhandle("设备",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_zh_CN_base.ts index 34faede1114c39977eb25224950f84ff59e3fbf8..08f8187aa2842a6b6dcf4ce8222737b53f015d64 100644 --- a/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/empodetail/empodetail_zh_CN_base.ts @@ -11,7 +11,6 @@ function getLocaleResourceBase(){ civocopy: commonLogic.appcommonhandle("发票存根",null), sumdiff: commonLogic.appcommonhandle("数量差",null), createdate: commonLogic.appcommonhandle("建立时间",null), - rempname: commonLogic.appcommonhandle("收货人",null), pricediff: commonLogic.appcommonhandle("收货价差",null), taxrate: commonLogic.appcommonhandle("税率",null), avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), @@ -25,13 +24,11 @@ function getLocaleResourceBase(){ shf: commonLogic.appcommonhandle("税费",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), - empid: commonLogic.appcommonhandle("记账人",null), totalprice: commonLogic.appcommonhandle("总价",null), podetailstate: commonLogic.appcommonhandle("条目状态",null), rsum: commonLogic.appcommonhandle("收货数量",null), updatedate: commonLogic.appcommonhandle("更新时间",null), podetailinfo: commonLogic.appcommonhandle("订单条目信息",null), - empname: commonLogic.appcommonhandle("记账人",null), orgid: commonLogic.appcommonhandle("组织",null), sapsl: commonLogic.appcommonhandle("sap税率",null), avgtsfee: commonLogic.appcommonhandle("均摊运杂费",null), @@ -45,13 +42,10 @@ function getLocaleResourceBase(){ psum: commonLogic.appcommonhandle("订货数量",null), empodetailname: commonLogic.appcommonhandle("订单条目名称",null), description: commonLogic.appcommonhandle("描述",null), - rempid: commonLogic.appcommonhandle("收货人",null), labservicename: commonLogic.appcommonhandle("供应商",null), sunitid: commonLogic.appcommonhandle("标准单位",null), useto: commonLogic.appcommonhandle("用途",null), - porempname: commonLogic.appcommonhandle("订单采购员",null), powfstep: commonLogic.appcommonhandle("订单流程步骤",null), - porempid: commonLogic.appcommonhandle("订单采购员",null), sunitname: commonLogic.appcommonhandle("标准单位",null), itemname: commonLogic.appcommonhandle("物品",null), labserviceid: commonLogic.appcommonhandle("供应商",null), @@ -73,6 +67,12 @@ function getLocaleResourceBase(){ poid: commonLogic.appcommonhandle("订单",null), runitid: commonLogic.appcommonhandle("收货单位",null), wplistid: commonLogic.appcommonhandle("采购申请",null), + rempid: commonLogic.appcommonhandle("收货人",null), + rempname: commonLogic.appcommonhandle("收货人",null), + porempname: commonLogic.appcommonhandle("订单采购员",null), + porempid: commonLogic.appcommonhandle("订单采购员",null), + empid: commonLogic.appcommonhandle("记账人",null), + empname: commonLogic.appcommonhandle("记账人",null), }, views: { waitbookgridview: { @@ -133,6 +133,8 @@ function getLocaleResourceBase(){ srfsourcekey: commonLogic.appcommonhandle("",null), empodetailid: commonLogic.appcommonhandle("订单条目号",null), poname: commonLogic.appcommonhandle("订单",null), + porempid: commonLogic.appcommonhandle("订单采购员",null), + porempname: commonLogic.appcommonhandle("订单采购员",null), wplistname: commonLogic.appcommonhandle("采购申请",null), itemname: commonLogic.appcommonhandle("物品",null), itemdesc: commonLogic.appcommonhandle("物品备注",null), @@ -154,11 +156,11 @@ function getLocaleResourceBase(){ equips: commonLogic.appcommonhandle("设备集合",null), rempid: commonLogic.appcommonhandle("收货人",null), rempname: commonLogic.appcommonhandle("收货人",null), + empid: commonLogic.appcommonhandle("记账人",null), + empname: commonLogic.appcommonhandle("记账人",null), rdate: commonLogic.appcommonhandle("收货日期",null), rsum: commonLogic.appcommonhandle("收货数量",null), runitname: commonLogic.appcommonhandle("收货单位",null), - empid: commonLogic.appcommonhandle("记账人",null), - empname: commonLogic.appcommonhandle("记账人",null), rprice: commonLogic.appcommonhandle("收货单价",null), avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), avgtsfee: commonLogic.appcommonhandle("均摊运杂费",null), @@ -213,6 +215,8 @@ function getLocaleResourceBase(){ srfsourcekey: commonLogic.appcommonhandle("",null), empodetailid: commonLogic.appcommonhandle("订单条目号",null), poname: commonLogic.appcommonhandle("订单",null), + porempid: commonLogic.appcommonhandle("订单采购员",null), + porempname: commonLogic.appcommonhandle("订单采购员",null), wplistname: commonLogic.appcommonhandle("采购申请",null), itemname: commonLogic.appcommonhandle("物品",null), itemdesc: commonLogic.appcommonhandle("物品备注",null), @@ -237,8 +241,6 @@ function getLocaleResourceBase(){ rdate: commonLogic.appcommonhandle("收货日期",null), rsum: commonLogic.appcommonhandle("收货数量",null), runitname: commonLogic.appcommonhandle("收货单位",null), - empid: commonLogic.appcommonhandle("记账人",null), - empname: commonLogic.appcommonhandle("记账人",null), rprice: commonLogic.appcommonhandle("收货单价",null), avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), avgtsfee: commonLogic.appcommonhandle("均摊运杂费",null), @@ -278,8 +280,6 @@ function getLocaleResourceBase(){ avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), amount: commonLogic.appcommonhandle("物品金额",null), wplistname: commonLogic.appcommonhandle("采购申请",null), - rempname: commonLogic.appcommonhandle("收货人",null), - empname: commonLogic.appcommonhandle("记账人",null), description: commonLogic.appcommonhandle("描述",null), useto: commonLogic.appcommonhandle("用途",null), equipname: commonLogic.appcommonhandle("设备",null), @@ -312,8 +312,6 @@ function getLocaleResourceBase(){ avgtaxfee: commonLogic.appcommonhandle("均摊关税",null), amount: commonLogic.appcommonhandle("物品金额",null), wplistname: commonLogic.appcommonhandle("采购申请",null), - rempname: commonLogic.appcommonhandle("收货人",null), - empname: commonLogic.appcommonhandle("记账人",null), description: commonLogic.appcommonhandle("描述",null), useto: commonLogic.appcommonhandle("用途",null), equipname: commonLogic.appcommonhandle("设备",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_en_US_base.ts index 2e4e14fdc56f52095fa96ed151ab4a8eb31126c5..69c84b84ef3b0fb1eeb4febe1c87836c9e4223ee 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_en_US_base.ts @@ -284,26 +284,66 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_rejected: { caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, }, draftgridviewtoolbar_toolbar: { + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, tbitem1_submit: { caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_zh_CN_base.ts index 8c777ee84fa775257c91314d212d8c1d99b9822e..44423652c824a4a6d62b2f164118dbace73af447 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emservice-evl/emservice-evl_zh_CN_base.ts @@ -284,26 +284,66 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("确认",null), tip: commonLogic.appcommonhandle("确认",null), }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_rejected: { caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, }, draftgridviewtoolbar_toolbar: { + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认",null), + tip: commonLogic.appcommonhandle("确认",null), + }, tbitem1_submit: { caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_rejected: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_en_US_base.ts index 9dc0d3f70c93cb25ff61a0ccb037f742200942d5..276f612cb8c4ba4b04d620794fedc6d4675b5f35 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_en_US_base.ts @@ -407,12 +407,20 @@ function getLocaleResourceBase(){ }, }, draftgridviewtoolbar_toolbar: { + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, tbitem1_submit: { caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_unconfirmed: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -463,15 +471,47 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_unconfirmed: { caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_zh_CN_base.ts index 708d0d0c8696d3def453b90060d2897d882c36f3..63bc1e647dd38184a382cfd48719cdf401477985 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emservice/emservice_zh_CN_base.ts @@ -407,12 +407,20 @@ function getLocaleResourceBase(){ }, }, draftgridviewtoolbar_toolbar: { + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, tbitem1_submit: { caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_unconfirmed: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -463,15 +471,47 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), }, + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_unconfirmed: { caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_en_US_base.ts index 1ec2dc525ff74f27a30aebaa185ce77c547cfce6..2a93e803f78fd6bc440d4123c288be3161be21b0 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_en_US_base.ts @@ -17,15 +17,15 @@ function getLocaleResourceBase(){ mgrpersonid: commonLogic.appcommonhandle("主管经理",null), orgid: commonLogic.appcommonhandle("组织",null), ioalgo: commonLogic.appcommonhandle("出入算法",null), - empid: commonLogic.appcommonhandle("库管员",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), storeaddr: commonLogic.appcommonhandle("地址",null), updateman: commonLogic.appcommonhandle("更新人",null), - empname: commonLogic.appcommonhandle("库管员",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), storetel: commonLogic.appcommonhandle("联系电话",null), storefax: commonLogic.appcommonhandle("传真",null), + empid: commonLogic.appcommonhandle("库管员",null), + empname: commonLogic.appcommonhandle("库管员",null), }, views: { treeexpview: { @@ -80,11 +80,11 @@ function getLocaleResourceBase(){ srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), storecode: commonLogic.appcommonhandle("仓库代码",null), + emstoreid: commonLogic.appcommonhandle("仓库标识",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), - empname: commonLogic.appcommonhandle("库管员",null), - empid: commonLogic.appcommonhandle("库管员",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - emstoreid: commonLogic.appcommonhandle("仓库标识",null), + empid: commonLogic.appcommonhandle("库管员",null), + empname: commonLogic.appcommonhandle("库管员",null), }, uiactions: { }, @@ -104,11 +104,11 @@ function getLocaleResourceBase(){ srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), storecode: commonLogic.appcommonhandle("仓库代码",null), + emstoreid: commonLogic.appcommonhandle("仓库标识",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), - empname: commonLogic.appcommonhandle("库管员",null), - empid: commonLogic.appcommonhandle("库管员",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - emstoreid: commonLogic.appcommonhandle("仓库标识",null), + empid: commonLogic.appcommonhandle("库管员",null), + empname: commonLogic.appcommonhandle("库管员",null), }, uiactions: { }, @@ -118,7 +118,6 @@ function getLocaleResourceBase(){ storecode: commonLogic.appcommonhandle("仓库代码",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - empname: commonLogic.appcommonhandle("库管员",null), description: commonLogic.appcommonhandle("描述",null), }, nodata:commonLogic.appcommonhandle("",null), @@ -130,7 +129,6 @@ function getLocaleResourceBase(){ storecode: commonLogic.appcommonhandle("仓库代码",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - empname: commonLogic.appcommonhandle("库管员",null), description: commonLogic.appcommonhandle("描述",null), }, nodata:commonLogic.appcommonhandle("",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_zh_CN_base.ts index 918cb6aeab32f0f6c5e38021ad817a9bfa77b950..4ff7c0055d3a570957002177216e3a8cf0e05ba1 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emstore/emstore_zh_CN_base.ts @@ -17,15 +17,15 @@ function getLocaleResourceBase(){ mgrpersonid: commonLogic.appcommonhandle("主管经理",null), orgid: commonLogic.appcommonhandle("组织",null), ioalgo: commonLogic.appcommonhandle("出入算法",null), - empid: commonLogic.appcommonhandle("库管员",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), storeaddr: commonLogic.appcommonhandle("地址",null), updateman: commonLogic.appcommonhandle("更新人",null), - empname: commonLogic.appcommonhandle("库管员",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), storetel: commonLogic.appcommonhandle("联系电话",null), storefax: commonLogic.appcommonhandle("传真",null), + empid: commonLogic.appcommonhandle("库管员",null), + empname: commonLogic.appcommonhandle("库管员",null), }, views: { treeexpview: { @@ -80,11 +80,11 @@ function getLocaleResourceBase(){ srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), storecode: commonLogic.appcommonhandle("仓库代码",null), + emstoreid: commonLogic.appcommonhandle("仓库标识",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), - empname: commonLogic.appcommonhandle("库管员",null), - empid: commonLogic.appcommonhandle("库管员",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - emstoreid: commonLogic.appcommonhandle("仓库标识",null), + empid: commonLogic.appcommonhandle("库管员",null), + empname: commonLogic.appcommonhandle("库管员",null), }, uiactions: { }, @@ -104,11 +104,11 @@ function getLocaleResourceBase(){ srfdeid: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null), storecode: commonLogic.appcommonhandle("仓库代码",null), + emstoreid: commonLogic.appcommonhandle("仓库标识",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), - empname: commonLogic.appcommonhandle("库管员",null), - empid: commonLogic.appcommonhandle("库管员",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - emstoreid: commonLogic.appcommonhandle("仓库标识",null), + empid: commonLogic.appcommonhandle("库管员",null), + empname: commonLogic.appcommonhandle("库管员",null), }, uiactions: { }, @@ -118,7 +118,6 @@ function getLocaleResourceBase(){ storecode: commonLogic.appcommonhandle("仓库代码",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - empname: commonLogic.appcommonhandle("库管员",null), description: commonLogic.appcommonhandle("描述",null), }, nodata:commonLogic.appcommonhandle("",null), @@ -130,7 +129,6 @@ function getLocaleResourceBase(){ storecode: commonLogic.appcommonhandle("仓库代码",null), emstorename: commonLogic.appcommonhandle("仓库名称",null), storetypeid: commonLogic.appcommonhandle("仓库类型",null), - empname: commonLogic.appcommonhandle("库管员",null), description: commonLogic.appcommonhandle("描述",null), }, nodata:commonLogic.appcommonhandle("",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_en_US_base.ts index 227e1b518f81da50948b878cb192938bab6ed150..9a7a5524569275d00454a660e2d3feba93bad203 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_en_US_base.ts @@ -5,10 +5,8 @@ function getLocaleResourceBase(){ fields: { eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), wostate: commonLogic.appcommonhandle("工单状态",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), val: commonLogic.appcommonhandle("值",null), - wpersonid: commonLogic.appcommonhandle("执行人",null), emwo_dpid: commonLogic.appcommonhandle("工单编号",null), priority: commonLogic.appcommonhandle("优先级",null), archive: commonLogic.appcommonhandle("归档",null), @@ -19,13 +17,10 @@ function getLocaleResourceBase(){ activelengths: commonLogic.appcommonhandle("持续时间(H)",null), wogroup: commonLogic.appcommonhandle("工单分组",null), woteam: commonLogic.appcommonhandle("工单组",null), - recvpersonname: commonLogic.appcommonhandle("接收人",null), - recvpersonid: commonLogic.appcommonhandle("接收人",null), wresult: commonLogic.appcommonhandle("执行结果",null), expiredate: commonLogic.appcommonhandle("过期日期",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), content: commonLogic.appcommonhandle("详细内容",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), worklength: commonLogic.appcommonhandle("实际工时(分)",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), wodesc: commonLogic.appcommonhandle("工单内容",null), @@ -33,15 +28,12 @@ function getLocaleResourceBase(){ vrate: commonLogic.appcommonhandle("倍率",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), emwotype: commonLogic.appcommonhandle("工单分组",null), - rempid: commonLogic.appcommonhandle("责任人",null), mdate: commonLogic.appcommonhandle("制定时间",null), emwo_dpname: commonLogic.appcommonhandle("工单名称",null), createman: commonLogic.appcommonhandle("建立人",null), prefee: commonLogic.appcommonhandle("预算(¥)",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), wotype: commonLogic.appcommonhandle("工单类型",null), orgid: commonLogic.appcommonhandle("组织",null), - rempname: commonLogic.appcommonhandle("责任人",null), createdate: commonLogic.appcommonhandle("建立时间",null), updatedate: commonLogic.appcommonhandle("更新时间",null), regionenddate: commonLogic.appcommonhandle("结束时间",null), @@ -73,6 +65,14 @@ function getLocaleResourceBase(){ rteamid: commonLogic.appcommonhandle("责任班组",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), }, views: { draftgridview: { @@ -130,16 +130,17 @@ function getLocaleResourceBase(){ activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("测点",null), regionbegindate: commonLogic.appcommonhandle("实际点检时间",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), val: commonLogic.appcommonhandle("点检值",null), - wpersonid: commonLogic.appcommonhandle("点检人",null), - wpersonname: commonLogic.appcommonhandle("点检人",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派点检人",null), - recvpersonname: commonLogic.appcommonhandle("指派点检人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), }, uiactions: { }, @@ -169,18 +170,18 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("测点",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), regionbegindate: commonLogic.appcommonhandle("实际点检时间",null), val: commonLogic.appcommonhandle("点检值",null), - wpersonid: commonLogic.appcommonhandle("点检人",null), - wpersonname: commonLogic.appcommonhandle("点检人",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派点检人",null), - recvpersonname: commonLogic.appcommonhandle("指派点检人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), wogroup: commonLogic.appcommonhandle("工单分组",null), wopname: commonLogic.appcommonhandle("上级工单",null), wooriname: commonLogic.appcommonhandle("工单来源",null), @@ -221,17 +222,18 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), val: commonLogic.appcommonhandle("点检值",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), dpname: commonLogic.appcommonhandle("测点",null), regionbegindate: commonLogic.appcommonhandle("实际点检时间",null), - wpersonid: commonLogic.appcommonhandle("点检人",null), - wpersonname: commonLogic.appcommonhandle("点检人",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派点检人",null), - recvpersonname: commonLogic.appcommonhandle("指派点检人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), }, uiactions: { }, @@ -245,11 +247,9 @@ function getLocaleResourceBase(){ dpname: commonLogic.appcommonhandle("测点",null), regionbegindate: commonLogic.appcommonhandle("实际执行时间",null), val: commonLogic.appcommonhandle("值",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), woteam: commonLogic.appcommonhandle("工单组",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -297,8 +297,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -335,6 +343,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), @@ -343,11 +355,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_zh_CN_base.ts index 63c5fbb072a2a4d0c2e4a57add6ca455cec02040..896f66c65429825fa1f3103942463dea1ff4a1ec 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-dp/emwo-dp_zh_CN_base.ts @@ -5,10 +5,8 @@ function getLocaleResourceBase(){ fields: { eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), wostate: commonLogic.appcommonhandle("工单状态",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), val: commonLogic.appcommonhandle("值",null), - wpersonid: commonLogic.appcommonhandle("执行人",null), emwo_dpid: commonLogic.appcommonhandle("工单编号",null), priority: commonLogic.appcommonhandle("优先级",null), archive: commonLogic.appcommonhandle("归档",null), @@ -19,13 +17,10 @@ function getLocaleResourceBase(){ activelengths: commonLogic.appcommonhandle("持续时间(H)",null), wogroup: commonLogic.appcommonhandle("工单分组",null), woteam: commonLogic.appcommonhandle("工单组",null), - recvpersonname: commonLogic.appcommonhandle("接收人",null), - recvpersonid: commonLogic.appcommonhandle("接收人",null), wresult: commonLogic.appcommonhandle("执行结果",null), expiredate: commonLogic.appcommonhandle("过期日期",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), content: commonLogic.appcommonhandle("详细内容",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), worklength: commonLogic.appcommonhandle("实际工时(分)",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), wodesc: commonLogic.appcommonhandle("工单内容",null), @@ -33,15 +28,12 @@ function getLocaleResourceBase(){ vrate: commonLogic.appcommonhandle("倍率",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), emwotype: commonLogic.appcommonhandle("工单分组",null), - rempid: commonLogic.appcommonhandle("责任人",null), mdate: commonLogic.appcommonhandle("制定时间",null), emwo_dpname: commonLogic.appcommonhandle("工单名称",null), createman: commonLogic.appcommonhandle("建立人",null), prefee: commonLogic.appcommonhandle("预算(¥)",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), wotype: commonLogic.appcommonhandle("工单类型",null), orgid: commonLogic.appcommonhandle("组织",null), - rempname: commonLogic.appcommonhandle("责任人",null), createdate: commonLogic.appcommonhandle("建立时间",null), updatedate: commonLogic.appcommonhandle("更新时间",null), regionenddate: commonLogic.appcommonhandle("结束时间",null), @@ -73,6 +65,14 @@ function getLocaleResourceBase(){ rteamid: commonLogic.appcommonhandle("责任班组",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), }, views: { draftgridview: { @@ -130,16 +130,17 @@ function getLocaleResourceBase(){ activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("测点",null), regionbegindate: commonLogic.appcommonhandle("实际点检时间",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), val: commonLogic.appcommonhandle("点检值",null), - wpersonid: commonLogic.appcommonhandle("点检人",null), - wpersonname: commonLogic.appcommonhandle("点检人",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派点检人",null), - recvpersonname: commonLogic.appcommonhandle("指派点检人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), }, uiactions: { }, @@ -169,18 +170,18 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("测点",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), regionbegindate: commonLogic.appcommonhandle("实际点检时间",null), val: commonLogic.appcommonhandle("点检值",null), - wpersonid: commonLogic.appcommonhandle("点检人",null), - wpersonname: commonLogic.appcommonhandle("点检人",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派点检人",null), - recvpersonname: commonLogic.appcommonhandle("指派点检人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), wogroup: commonLogic.appcommonhandle("工单分组",null), wopname: commonLogic.appcommonhandle("上级工单",null), wooriname: commonLogic.appcommonhandle("工单来源",null), @@ -221,17 +222,18 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), val: commonLogic.appcommonhandle("点检值",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), dpname: commonLogic.appcommonhandle("测点",null), regionbegindate: commonLogic.appcommonhandle("实际点检时间",null), - wpersonid: commonLogic.appcommonhandle("点检人",null), - wpersonname: commonLogic.appcommonhandle("点检人",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派点检人",null), - recvpersonname: commonLogic.appcommonhandle("指派点检人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), }, uiactions: { }, @@ -245,11 +247,9 @@ function getLocaleResourceBase(){ dpname: commonLogic.appcommonhandle("测点",null), regionbegindate: commonLogic.appcommonhandle("实际执行时间",null), val: commonLogic.appcommonhandle("值",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), woteam: commonLogic.appcommonhandle("工单组",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -297,8 +297,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -335,6 +343,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), @@ -343,11 +355,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_en_US_base.ts index d041983b81480765ebecf63ad9efa99b606b55b8..5e6b65491752fac3173f8e21c82889e4b585bf0e 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_en_US_base.ts @@ -7,13 +7,11 @@ function getLocaleResourceBase(){ woteam: commonLogic.appcommonhandle("工单组",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), - rempname: commonLogic.appcommonhandle("责任人",null), expiredate: commonLogic.appcommonhandle("过期日期",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), prefee: commonLogic.appcommonhandle("预算(¥)",null), updateman: commonLogic.appcommonhandle("更新人",null), content: commonLogic.appcommonhandle("详细内容",null), - rempid: commonLogic.appcommonhandle("责任人",null), priority: commonLogic.appcommonhandle("优先级",null), mdate: commonLogic.appcommonhandle("制定时间",null), emwo_enname: commonLogic.appcommonhandle("工单名称",null), @@ -22,7 +20,6 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("执行日期",null), createman: commonLogic.appcommonhandle("建立人",null), description: commonLogic.appcommonhandle("描述",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), vrate: commonLogic.appcommonhandle("倍率",null), curval: commonLogic.appcommonhandle("本次记录值",null), @@ -30,21 +27,16 @@ function getLocaleResourceBase(){ worklength: commonLogic.appcommonhandle("实际工时(分)",null), wogroup: commonLogic.appcommonhandle("工单分组",null), emwotype: commonLogic.appcommonhandle("工单分组",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), emwo_enid: commonLogic.appcommonhandle("工单编号",null), lastval: commonLogic.appcommonhandle("上次记录值",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), woteam_show: commonLogic.appcommonhandle("工单组",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), - wpersonid: commonLogic.appcommonhandle("抄表人",null), updatedate: commonLogic.appcommonhandle("更新时间",null), createdate: commonLogic.appcommonhandle("建立时间",null), wotype: commonLogic.appcommonhandle("工单类型",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), wresult: commonLogic.appcommonhandle("执行结果",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), nval: commonLogic.appcommonhandle("能耗值",null), archive: commonLogic.appcommonhandle("归档",null), wodesc: commonLogic.appcommonhandle("工单内容",null), @@ -78,6 +70,14 @@ function getLocaleResourceBase(){ rfoacid: commonLogic.appcommonhandle("方案",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + wpersonid: commonLogic.appcommonhandle("抄表人",null), + wpersonname: commonLogic.appcommonhandle("抄表人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), }, views: { confirmedgridview: { @@ -134,19 +134,20 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("能源",null), - wpersonid: commonLogic.appcommonhandle("抄表人",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), lastval: commonLogic.appcommonhandle("上次记录值",null), curval: commonLogic.appcommonhandle("本次记录值",null), + wpersonid: commonLogic.appcommonhandle("抄表人",null), + wpersonname: commonLogic.appcommonhandle("抄表人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), vrate: commonLogic.appcommonhandle("倍率",null), nval: commonLogic.appcommonhandle("抄表值",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), }, @@ -178,20 +179,20 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("能源",null), - wpersonid: commonLogic.appcommonhandle("抄表人",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), lastval: commonLogic.appcommonhandle("上次记录值",null), curval: commonLogic.appcommonhandle("本次记录值",null), vrate: commonLogic.appcommonhandle("倍率",null), + wpersonid: commonLogic.appcommonhandle("抄表人",null), + wpersonname: commonLogic.appcommonhandle("抄表人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), nval: commonLogic.appcommonhandle("抄表值",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), wogroup: commonLogic.appcommonhandle("工单分组",null), @@ -236,6 +237,8 @@ function getLocaleResourceBase(){ dpname: commonLogic.appcommonhandle("能源",null), wpersonid: commonLogic.appcommonhandle("抄表人",null), wpersonname: commonLogic.appcommonhandle("抄表人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), lastval: commonLogic.appcommonhandle("上次记录值",null), @@ -244,9 +247,8 @@ function getLocaleResourceBase(){ nval: commonLogic.appcommonhandle("抄表值",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), }, @@ -264,10 +266,10 @@ function getLocaleResourceBase(){ lastval: commonLogic.appcommonhandle("上次记录值",null), curval: commonLogic.appcommonhandle("本次记录值",null), nval: commonLogic.appcommonhandle("能耗值",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), vrate: commonLogic.appcommonhandle("倍率",null), woteam: commonLogic.appcommonhandle("工单组",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -315,8 +317,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -353,6 +363,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), @@ -361,11 +375,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_zh_CN_base.ts index dd2343188f53a9bcf79efb57d107c53dce231ca1..eed15a4dea6f7a0ad32dae4c0d1732593eac28e2 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-en/emwo-en_zh_CN_base.ts @@ -7,13 +7,11 @@ function getLocaleResourceBase(){ woteam: commonLogic.appcommonhandle("工单组",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), - rempname: commonLogic.appcommonhandle("责任人",null), expiredate: commonLogic.appcommonhandle("过期日期",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), prefee: commonLogic.appcommonhandle("预算(¥)",null), updateman: commonLogic.appcommonhandle("更新人",null), content: commonLogic.appcommonhandle("详细内容",null), - rempid: commonLogic.appcommonhandle("责任人",null), priority: commonLogic.appcommonhandle("优先级",null), mdate: commonLogic.appcommonhandle("制定时间",null), emwo_enname: commonLogic.appcommonhandle("工单名称",null), @@ -22,7 +20,6 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("执行日期",null), createman: commonLogic.appcommonhandle("建立人",null), description: commonLogic.appcommonhandle("描述",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), vrate: commonLogic.appcommonhandle("倍率",null), curval: commonLogic.appcommonhandle("本次记录值",null), @@ -30,21 +27,16 @@ function getLocaleResourceBase(){ worklength: commonLogic.appcommonhandle("实际工时(分)",null), wogroup: commonLogic.appcommonhandle("工单分组",null), emwotype: commonLogic.appcommonhandle("工单分组",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), emwo_enid: commonLogic.appcommonhandle("工单编号",null), lastval: commonLogic.appcommonhandle("上次记录值",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), woteam_show: commonLogic.appcommonhandle("工单组",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), - wpersonid: commonLogic.appcommonhandle("抄表人",null), updatedate: commonLogic.appcommonhandle("更新时间",null), createdate: commonLogic.appcommonhandle("建立时间",null), wotype: commonLogic.appcommonhandle("工单类型",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), wresult: commonLogic.appcommonhandle("执行结果",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), nval: commonLogic.appcommonhandle("能耗值",null), archive: commonLogic.appcommonhandle("归档",null), wodesc: commonLogic.appcommonhandle("工单内容",null), @@ -78,6 +70,14 @@ function getLocaleResourceBase(){ rfoacid: commonLogic.appcommonhandle("方案",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + wpersonid: commonLogic.appcommonhandle("抄表人",null), + wpersonname: commonLogic.appcommonhandle("抄表人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), }, views: { confirmedgridview: { @@ -134,19 +134,20 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("能源",null), - wpersonid: commonLogic.appcommonhandle("抄表人",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), lastval: commonLogic.appcommonhandle("上次记录值",null), curval: commonLogic.appcommonhandle("本次记录值",null), + wpersonid: commonLogic.appcommonhandle("抄表人",null), + wpersonname: commonLogic.appcommonhandle("抄表人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), vrate: commonLogic.appcommonhandle("倍率",null), nval: commonLogic.appcommonhandle("抄表值",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), }, @@ -178,20 +179,20 @@ function getLocaleResourceBase(){ wodate: commonLogic.appcommonhandle("安排日期",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), dpname: commonLogic.appcommonhandle("能源",null), - wpersonid: commonLogic.appcommonhandle("抄表人",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), lastval: commonLogic.appcommonhandle("上次记录值",null), curval: commonLogic.appcommonhandle("本次记录值",null), vrate: commonLogic.appcommonhandle("倍率",null), + wpersonid: commonLogic.appcommonhandle("抄表人",null), + wpersonname: commonLogic.appcommonhandle("抄表人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), nval: commonLogic.appcommonhandle("抄表值",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), wogroup: commonLogic.appcommonhandle("工单分组",null), @@ -236,6 +237,8 @@ function getLocaleResourceBase(){ dpname: commonLogic.appcommonhandle("能源",null), wpersonid: commonLogic.appcommonhandle("抄表人",null), wpersonname: commonLogic.appcommonhandle("抄表人",null), + recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), + recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), regionbegindate: commonLogic.appcommonhandle("实际抄表时间",null), lastval: commonLogic.appcommonhandle("上次记录值",null), @@ -244,9 +247,8 @@ function getLocaleResourceBase(){ nval: commonLogic.appcommonhandle("抄表值",null), rempid: commonLogic.appcommonhandle("责任人",null), rempname: commonLogic.appcommonhandle("责任人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), - recvpersonid: commonLogic.appcommonhandle("指派抄表人",null), - recvpersonname: commonLogic.appcommonhandle("指派抄表人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), }, @@ -264,10 +266,10 @@ function getLocaleResourceBase(){ lastval: commonLogic.appcommonhandle("上次记录值",null), curval: commonLogic.appcommonhandle("本次记录值",null), nval: commonLogic.appcommonhandle("能耗值",null), - wpersonname: commonLogic.appcommonhandle("抄表人",null), bdate: commonLogic.appcommonhandle("上次采集时间",null), vrate: commonLogic.appcommonhandle("倍率",null), woteam: commonLogic.appcommonhandle("工单组",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -315,8 +317,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -353,6 +363,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), @@ -361,11 +375,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_en_US_base.ts index a654c4fabc16dad1f3b76e3a042bdc303270178c..1aef868a69f6f6de8ca3b1ef6a06c3855573668d 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_en_US_base.ts @@ -337,6 +337,7 @@ function getLocaleResourceBase(){ woteam: commonLogic.appcommonhandle("工单组",null), waitmodi: commonLogic.appcommonhandle("等待修理时(分)",null), waitbuy: commonLogic.appcommonhandle("等待配件时(分)",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -384,8 +385,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("验收",null), + tip: commonLogic.appcommonhandle("验收",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -422,6 +431,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("验收",null), tip: commonLogic.appcommonhandle("验收",null), @@ -430,11 +443,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_zh_CN_base.ts index 01eebb7210f25b1856f6312ad2e7f8007a80b82f..4aa5c54edd2e700484ac434bfefb2b7f1eab56cd 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-inner/emwo-inner_zh_CN_base.ts @@ -337,6 +337,7 @@ function getLocaleResourceBase(){ woteam: commonLogic.appcommonhandle("工单组",null), waitmodi: commonLogic.appcommonhandle("等待修理时(分)",null), waitbuy: commonLogic.appcommonhandle("等待配件时(分)",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -384,8 +385,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("验收",null), + tip: commonLogic.appcommonhandle("验收",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -422,6 +431,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("验收",null), tip: commonLogic.appcommonhandle("验收",null), @@ -430,11 +443,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_en_US_base.ts index 0446efe0ee1339ddcebbd29e803baeb4f4cf14c8..c2a34ea46ef312c93d99ac04aa4de9e72c4ff143 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_en_US_base.ts @@ -12,7 +12,6 @@ function getLocaleResourceBase(){ updatedate: commonLogic.appcommonhandle("更新时间",null), wresult: commonLogic.appcommonhandle("执行结果",null), regionbegindate: commonLogic.appcommonhandle("起始时间",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), arg3: commonLogic.appcommonhandle("柴油",null), worklength: commonLogic.appcommonhandle("实际工时(分)",null), emwo_oscid: commonLogic.appcommonhandle("工单编号",null), @@ -38,7 +37,6 @@ function getLocaleResourceBase(){ wostate: commonLogic.appcommonhandle("工单状态",null), wodate: commonLogic.appcommonhandle("执行日期",null), createdate: commonLogic.appcommonhandle("建立时间",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), cplanflag: commonLogic.appcommonhandle("转计划标志",null), @@ -81,6 +79,8 @@ function getLocaleResourceBase(){ wpersonname: commonLogic.appcommonhandle("执行人",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), }, views: { gridview: { @@ -161,8 +161,10 @@ function getLocaleResourceBase(){ mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), rservicename: commonLogic.appcommonhandle("服务商",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), + rteamid: commonLogic.appcommonhandle("责任班组",null), }, uiactions: { }, @@ -217,9 +219,9 @@ function getLocaleResourceBase(){ mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), rservicename: commonLogic.appcommonhandle("服务商",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), rteamid: commonLogic.appcommonhandle("责任班组",null), rfodename: commonLogic.appcommonhandle("现象",null), rfomoname: commonLogic.appcommonhandle("模式",null), @@ -290,12 +292,13 @@ function getLocaleResourceBase(){ arg5: commonLogic.appcommonhandle("金属去污粉",null), rempid: commonLogic.appcommonhandle("负责人",null), rempname: commonLogic.appcommonhandle("负责人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), rservicename: commonLogic.appcommonhandle("服务商",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), }, uiactions: { @@ -315,7 +318,6 @@ function getLocaleResourceBase(){ worklength: commonLogic.appcommonhandle("实际工时(分)",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), mfee: commonLogic.appcommonhandle("约合材料费(¥)",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), cplanflag: commonLogic.appcommonhandle("转计划标志",null), @@ -329,6 +331,7 @@ function getLocaleResourceBase(){ arg3: commonLogic.appcommonhandle("柴油",null), arg4: commonLogic.appcommonhandle("钢丝绳润滑油",null), arg5: commonLogic.appcommonhandle("金属去污粉",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -376,8 +379,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -414,6 +425,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), @@ -422,11 +437,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("Export",null), tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("Filter",null), tip: commonLogic.appcommonhandle("Filter",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_zh_CN_base.ts index 4d94a630a3a3613b3d990e4b1a8ec8ad62526d1d..51db10e69d59539551c9d1578b13a1d8efe86e92 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo-osc/emwo-osc_zh_CN_base.ts @@ -12,7 +12,6 @@ function getLocaleResourceBase(){ updatedate: commonLogic.appcommonhandle("更新时间",null), wresult: commonLogic.appcommonhandle("执行结果",null), regionbegindate: commonLogic.appcommonhandle("起始时间",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), arg3: commonLogic.appcommonhandle("柴油",null), worklength: commonLogic.appcommonhandle("实际工时(分)",null), emwo_oscid: commonLogic.appcommonhandle("工单编号",null), @@ -38,7 +37,6 @@ function getLocaleResourceBase(){ wostate: commonLogic.appcommonhandle("工单状态",null), wodate: commonLogic.appcommonhandle("执行日期",null), createdate: commonLogic.appcommonhandle("建立时间",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), cplanflag: commonLogic.appcommonhandle("转计划标志",null), @@ -81,6 +79,8 @@ function getLocaleResourceBase(){ wpersonname: commonLogic.appcommonhandle("执行人",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), }, views: { gridview: { @@ -161,8 +161,10 @@ function getLocaleResourceBase(){ mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), rservicename: commonLogic.appcommonhandle("服务商",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), + rteamid: commonLogic.appcommonhandle("责任班组",null), }, uiactions: { }, @@ -217,9 +219,9 @@ function getLocaleResourceBase(){ mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), rservicename: commonLogic.appcommonhandle("服务商",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), rteamid: commonLogic.appcommonhandle("责任班组",null), rfodename: commonLogic.appcommonhandle("现象",null), rfomoname: commonLogic.appcommonhandle("模式",null), @@ -290,12 +292,13 @@ function getLocaleResourceBase(){ arg5: commonLogic.appcommonhandle("金属去污粉",null), rempid: commonLogic.appcommonhandle("负责人",null), rempname: commonLogic.appcommonhandle("负责人",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), recvpersonid: commonLogic.appcommonhandle("接收人",null), recvpersonname: commonLogic.appcommonhandle("接收人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), rservicename: commonLogic.appcommonhandle("服务商",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), }, uiactions: { @@ -315,7 +318,6 @@ function getLocaleResourceBase(){ worklength: commonLogic.appcommonhandle("实际工时(分)",null), eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), mfee: commonLogic.appcommonhandle("约合材料费(¥)",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), cplanflag: commonLogic.appcommonhandle("转计划标志",null), @@ -329,6 +331,7 @@ function getLocaleResourceBase(){ arg3: commonLogic.appcommonhandle("柴油",null), arg4: commonLogic.appcommonhandle("钢丝绳润滑油",null), arg5: commonLogic.appcommonhandle("金属去污粉",null), + wostate: commonLogic.appcommonhandle("工单状态",null), }, nodata:commonLogic.appcommonhandle("",null), uiactions: { @@ -376,8 +379,16 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + tbitem1_acceptance: { + caption: commonLogic.appcommonhandle("完成",null), + tip: commonLogic.appcommonhandle("完成",null), + }, + tbitem1_unacceptance: { + caption: commonLogic.appcommonhandle("驳回",null), + tip: commonLogic.appcommonhandle("驳回",null), + }, + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { @@ -414,6 +425,10 @@ function getLocaleResourceBase(){ }, }, toconfirmgridviewtoolbar_toolbar: { + tbitem1_submit: { + caption: commonLogic.appcommonhandle("提交",null), + tip: commonLogic.appcommonhandle("提交",null), + }, tbitem1_acceptance: { caption: commonLogic.appcommonhandle("完成",null), tip: commonLogic.appcommonhandle("完成",null), @@ -422,11 +437,39 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("驳回",null), tip: commonLogic.appcommonhandle("驳回",null), }, - deuiaction1: { + seperator1: { + caption: commonLogic.appcommonhandle("",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { caption: commonLogic.appcommonhandle("导出",null), tip: commonLogic.appcommonhandle("导出",null), }, - deuiaction2: { + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { caption: commonLogic.appcommonhandle("过滤",null), tip: commonLogic.appcommonhandle("过滤",null), }, diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_en_US_base.ts index 09b5607544c12bb3af8cc4b5523062dcb8a30dfa..adc2e80288fc706cd96a3b2dd98eeb94823b70ba 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_en_US_base.ts @@ -11,7 +11,6 @@ function getLocaleResourceBase(){ waitbuy: commonLogic.appcommonhandle("等待配件时(小时)",null), emwotype: commonLogic.appcommonhandle("工单种类",null), description: commonLogic.appcommonhandle("描述",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), prefee: commonLogic.appcommonhandle("预算(¥)",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), @@ -22,14 +21,12 @@ function getLocaleResourceBase(){ regionenddate: commonLogic.appcommonhandle("结束时间",null), wogroup: commonLogic.appcommonhandle("工单分组",null), worklength: commonLogic.appcommonhandle("实际工时(分)",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), content: commonLogic.appcommonhandle("详细内容",null), woteam: commonLogic.appcommonhandle("工单组",null), createman: commonLogic.appcommonhandle("建立人",null), expiredate: commonLogic.appcommonhandle("过期日期",null), yxcb: commonLogic.appcommonhandle("影响船舶",null), - recvpersonname: commonLogic.appcommonhandle("接收人",null), priority: commonLogic.appcommonhandle("优先级",null), woinfo: commonLogic.appcommonhandle("工单信息",null), nval: commonLogic.appcommonhandle("数值",null), @@ -38,16 +35,11 @@ function getLocaleResourceBase(){ eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), wodate: commonLogic.appcommonhandle("执行日期",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), - recvpersonid: commonLogic.appcommonhandle("接收人",null), wresult: commonLogic.appcommonhandle("执行结果",null), - wpersonid: commonLogic.appcommonhandle("执行人",null), - rempname: commonLogic.appcommonhandle("责任人",null), updatedate: commonLogic.appcommonhandle("更新时间",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), orgid: commonLogic.appcommonhandle("组织",null), wodesc: commonLogic.appcommonhandle("工单内容",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), - rempid: commonLogic.appcommonhandle("责任人",null), val: commonLogic.appcommonhandle("值",null), archive: commonLogic.appcommonhandle("归档",null), regionbegindate: commonLogic.appcommonhandle("起始时间",null), @@ -80,6 +72,14 @@ function getLocaleResourceBase(){ dpid: commonLogic.appcommonhandle("测点",null), rfocaid: commonLogic.appcommonhandle("原因",null), objid: commonLogic.appcommonhandle("位置",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), }, @@ -128,11 +128,8 @@ function getLocaleResourceBase(){ equipname: commonLogic.appcommonhandle("设备",null), objname: commonLogic.appcommonhandle("位置",null), wodate: commonLogic.appcommonhandle("执行日期",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), dpname: commonLogic.appcommonhandle("测点",null), wopname: commonLogic.appcommonhandle("上级工单",null), wooriname: commonLogic.appcommonhandle("工单来源",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_zh_CN_base.ts index eb6504178aa77c500e5ed4039e13257c5bb2247e..adf6c582dae9479822ec6013a46801aaf6cdea28 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwo/emwo_zh_CN_base.ts @@ -11,7 +11,6 @@ function getLocaleResourceBase(){ waitbuy: commonLogic.appcommonhandle("等待配件时(小时)",null), emwotype: commonLogic.appcommonhandle("工单种类",null), description: commonLogic.appcommonhandle("描述",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), wfstep: commonLogic.appcommonhandle("流程步骤",null), prefee: commonLogic.appcommonhandle("预算(¥)",null), activelengths: commonLogic.appcommonhandle("持续时间(H)",null), @@ -22,14 +21,12 @@ function getLocaleResourceBase(){ regionenddate: commonLogic.appcommonhandle("结束时间",null), wogroup: commonLogic.appcommonhandle("工单分组",null), worklength: commonLogic.appcommonhandle("实际工时(分)",null), - rdeptid: commonLogic.appcommonhandle("责任部门",null), enable: commonLogic.appcommonhandle("逻辑有效标志",null), content: commonLogic.appcommonhandle("详细内容",null), woteam: commonLogic.appcommonhandle("工单组",null), createman: commonLogic.appcommonhandle("建立人",null), expiredate: commonLogic.appcommonhandle("过期日期",null), yxcb: commonLogic.appcommonhandle("影响船舶",null), - recvpersonname: commonLogic.appcommonhandle("接收人",null), priority: commonLogic.appcommonhandle("优先级",null), woinfo: commonLogic.appcommonhandle("工单信息",null), nval: commonLogic.appcommonhandle("数值",null), @@ -38,16 +35,11 @@ function getLocaleResourceBase(){ eqstoplength: commonLogic.appcommonhandle("停运时间(分)",null), wodate: commonLogic.appcommonhandle("执行日期",null), wfinstanceid: commonLogic.appcommonhandle("工作流实例",null), - recvpersonid: commonLogic.appcommonhandle("接收人",null), wresult: commonLogic.appcommonhandle("执行结果",null), - wpersonid: commonLogic.appcommonhandle("执行人",null), - rempname: commonLogic.appcommonhandle("责任人",null), updatedate: commonLogic.appcommonhandle("更新时间",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), orgid: commonLogic.appcommonhandle("组织",null), wodesc: commonLogic.appcommonhandle("工单内容",null), wfstate: commonLogic.appcommonhandle("工作流状态",null), - rempid: commonLogic.appcommonhandle("责任人",null), val: commonLogic.appcommonhandle("值",null), archive: commonLogic.appcommonhandle("归档",null), regionbegindate: commonLogic.appcommonhandle("起始时间",null), @@ -80,6 +72,14 @@ function getLocaleResourceBase(){ dpid: commonLogic.appcommonhandle("测点",null), rfocaid: commonLogic.appcommonhandle("原因",null), objid: commonLogic.appcommonhandle("位置",null), + rdeptid: commonLogic.appcommonhandle("责任部门",null), + rdeptname: commonLogic.appcommonhandle("责任部门",null), + wpersonid: commonLogic.appcommonhandle("执行人",null), + wpersonname: commonLogic.appcommonhandle("执行人",null), + recvpersonid: commonLogic.appcommonhandle("接收人",null), + recvpersonname: commonLogic.appcommonhandle("接收人",null), + rempid: commonLogic.appcommonhandle("责任人",null), + rempname: commonLogic.appcommonhandle("责任人",null), mpersonid: commonLogic.appcommonhandle("制定人",null), mpersonname: commonLogic.appcommonhandle("制定人",null), }, @@ -128,11 +128,8 @@ function getLocaleResourceBase(){ equipname: commonLogic.appcommonhandle("设备",null), objname: commonLogic.appcommonhandle("位置",null), wodate: commonLogic.appcommonhandle("执行日期",null), - rempname: commonLogic.appcommonhandle("责任人",null), - rdeptname: commonLogic.appcommonhandle("责任部门",null), rteamname: commonLogic.appcommonhandle("责任班组",null), rservicename: commonLogic.appcommonhandle("服务商",null), - wpersonname: commonLogic.appcommonhandle("执行人",null), dpname: commonLogic.appcommonhandle("测点",null), wopname: commonLogic.appcommonhandle("上级工单",null), wooriname: commonLogic.appcommonhandle("工单来源",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_en_US_base.ts index 04d5cab55190cc40ea8caf5800cbcff5cca2418e..be8d710553b9ff802b7fb5a9e8ecff36792e7b2b 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_en_US_base.ts @@ -564,6 +564,10 @@ function getLocaleResourceBase(){ }, }, confirmcosteditview9toolbar_toolbar: { + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认询价",null), + tip: commonLogic.appcommonhandle("确认询价",null), + }, deuiaction1: { caption: commonLogic.appcommonhandle("关闭",null), tip: commonLogic.appcommonhandle("关闭",null), @@ -688,8 +692,8 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { diff --git a/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_zh_CN_base.ts index 57dffb83288a1b4f781a5d7c06d6f54400991612..9285fc174cd0032456508844a1e5e57c2e1c2fd1 100644 --- a/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/emwplist/emwplist_zh_CN_base.ts @@ -564,6 +564,10 @@ function getLocaleResourceBase(){ }, }, confirmcosteditview9toolbar_toolbar: { + tbitem1_confirm: { + caption: commonLogic.appcommonhandle("确认询价",null), + tip: commonLogic.appcommonhandle("确认询价",null), + }, deuiaction1: { caption: commonLogic.appcommonhandle("关闭",null), tip: commonLogic.appcommonhandle("关闭",null), @@ -688,8 +692,8 @@ function getLocaleResourceBase(){ caption: commonLogic.appcommonhandle("提交",null), tip: commonLogic.appcommonhandle("提交",null), }, - tbitem2: { - caption: commonLogic.appcommonhandle("-",null), + seperator1: { + caption: commonLogic.appcommonhandle("",null), tip: commonLogic.appcommonhandle("",null), }, tbitem3: { diff --git a/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_en_US_base.ts index e6100e10103dd532b788ce3c54b5d46d6e67ea8b..430f8ba1528b16a4bc3d835243563a2105662616 100644 --- a/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_en_US_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_en_US_base.ts @@ -6,7 +6,6 @@ function getLocaleResourceBase(){ updateman: commonLogic.appcommonhandle("更新人",null), description: commonLogic.appcommonhandle("描述",null), tel: commonLogic.appcommonhandle("联系电话",null), - majordeptid: commonLogic.appcommonhandle("主部门",null), workdate: commonLogic.appcommonhandle("工作日期",null), pfempname: commonLogic.appcommonhandle("职员名称",null), createdate: commonLogic.appcommonhandle("建立时间",null), @@ -17,7 +16,6 @@ function getLocaleResourceBase(){ pfempid: commonLogic.appcommonhandle("职员标识",null), homeaddr: commonLogic.appcommonhandle("家庭地址",null), empinfo: commonLogic.appcommonhandle("职员信息",null), - majordeptname: commonLogic.appcommonhandle("主部门",null), deptid: commonLogic.appcommonhandle("部门",null), createman: commonLogic.appcommonhandle("建立人",null), empsex: commonLogic.appcommonhandle("性别",null), @@ -33,6 +31,8 @@ function getLocaleResourceBase(){ addr: commonLogic.appcommonhandle("联系地址",null), majorteamname: commonLogic.appcommonhandle("主班组",null), majorteamid: commonLogic.appcommonhandle("主班组",null), + majordeptid: commonLogic.appcommonhandle("主部门",null), + majordeptname: commonLogic.appcommonhandle("主部门",null), }, views: { pickupgridview: { @@ -89,7 +89,9 @@ function getLocaleResourceBase(){ hometel: commonLogic.appcommonhandle("家庭电话",null), tel: commonLogic.appcommonhandle("联系电话",null), cell: commonLogic.appcommonhandle("移动电话",null), + majorteamid: commonLogic.appcommonhandle("主班组",null), majorteamname: commonLogic.appcommonhandle("主班组",null), + majordeptid: commonLogic.appcommonhandle("主部门",null), majordeptname: commonLogic.appcommonhandle("主部门",null), orgid: commonLogic.appcommonhandle("组织",null), e_mail: commonLogic.appcommonhandle("电子邮件",null), @@ -125,14 +127,15 @@ function getLocaleResourceBase(){ hometel: commonLogic.appcommonhandle("家庭电话",null), tel: commonLogic.appcommonhandle("联系电话",null), cell: commonLogic.appcommonhandle("移动电话",null), + majorteamid: commonLogic.appcommonhandle("主班组",null), majorteamname: commonLogic.appcommonhandle("主班组",null), + majordeptid: commonLogic.appcommonhandle("主部门",null), majordeptname: commonLogic.appcommonhandle("主部门",null), orgid: commonLogic.appcommonhandle("组织",null), e_mail: commonLogic.appcommonhandle("电子邮件",null), addr: commonLogic.appcommonhandle("联系地址",null), homeaddr: commonLogic.appcommonhandle("家庭地址",null), description: commonLogic.appcommonhandle("描述",null), - majorteamid: commonLogic.appcommonhandle("主班组",null), }, uiactions: { }, @@ -141,7 +144,6 @@ function getLocaleResourceBase(){ columns: { empcode: commonLogic.appcommonhandle("职员代码",null), pfempname: commonLogic.appcommonhandle("职员名称",null), - majordeptname: commonLogic.appcommonhandle("主部门",null), majorteamname: commonLogic.appcommonhandle("主班组",null), certcode: commonLogic.appcommonhandle("证件号码",null), empsex: commonLogic.appcommonhandle("性别",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_zh_CN_base.ts index 65f855ab0e5a7c0f456769000655f814cef8d010..85ef9d8562eab66f9b313aada60bad77fc8c729b 100644 --- a/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_zh_CN_base.ts +++ b/app_DynaWeb/src/locale/lanres/entities/pfemp/pfemp_zh_CN_base.ts @@ -6,7 +6,6 @@ function getLocaleResourceBase(){ updateman: commonLogic.appcommonhandle("更新人",null), description: commonLogic.appcommonhandle("描述",null), tel: commonLogic.appcommonhandle("联系电话",null), - majordeptid: commonLogic.appcommonhandle("主部门",null), workdate: commonLogic.appcommonhandle("工作日期",null), pfempname: commonLogic.appcommonhandle("职员名称",null), createdate: commonLogic.appcommonhandle("建立时间",null), @@ -17,7 +16,6 @@ function getLocaleResourceBase(){ pfempid: commonLogic.appcommonhandle("职员标识",null), homeaddr: commonLogic.appcommonhandle("家庭地址",null), empinfo: commonLogic.appcommonhandle("职员信息",null), - majordeptname: commonLogic.appcommonhandle("主部门",null), deptid: commonLogic.appcommonhandle("部门",null), createman: commonLogic.appcommonhandle("建立人",null), empsex: commonLogic.appcommonhandle("性别",null), @@ -33,6 +31,8 @@ function getLocaleResourceBase(){ addr: commonLogic.appcommonhandle("联系地址",null), majorteamname: commonLogic.appcommonhandle("主班组",null), majorteamid: commonLogic.appcommonhandle("主班组",null), + majordeptid: commonLogic.appcommonhandle("主部门",null), + majordeptname: commonLogic.appcommonhandle("主部门",null), }, views: { pickupgridview: { @@ -89,7 +89,9 @@ function getLocaleResourceBase(){ hometel: commonLogic.appcommonhandle("家庭电话",null), tel: commonLogic.appcommonhandle("联系电话",null), cell: commonLogic.appcommonhandle("移动电话",null), + majorteamid: commonLogic.appcommonhandle("主班组",null), majorteamname: commonLogic.appcommonhandle("主班组",null), + majordeptid: commonLogic.appcommonhandle("主部门",null), majordeptname: commonLogic.appcommonhandle("主部门",null), orgid: commonLogic.appcommonhandle("组织",null), e_mail: commonLogic.appcommonhandle("电子邮件",null), @@ -125,14 +127,15 @@ function getLocaleResourceBase(){ hometel: commonLogic.appcommonhandle("家庭电话",null), tel: commonLogic.appcommonhandle("联系电话",null), cell: commonLogic.appcommonhandle("移动电话",null), + majorteamid: commonLogic.appcommonhandle("主班组",null), majorteamname: commonLogic.appcommonhandle("主班组",null), + majordeptid: commonLogic.appcommonhandle("主部门",null), majordeptname: commonLogic.appcommonhandle("主部门",null), orgid: commonLogic.appcommonhandle("组织",null), e_mail: commonLogic.appcommonhandle("电子邮件",null), addr: commonLogic.appcommonhandle("联系地址",null), homeaddr: commonLogic.appcommonhandle("家庭地址",null), description: commonLogic.appcommonhandle("描述",null), - majorteamid: commonLogic.appcommonhandle("主班组",null), }, uiactions: { }, @@ -141,7 +144,6 @@ function getLocaleResourceBase(){ columns: { empcode: commonLogic.appcommonhandle("职员代码",null), pfempname: commonLogic.appcommonhandle("职员名称",null), - majordeptname: commonLogic.appcommonhandle("主部门",null), majorteamname: commonLogic.appcommonhandle("主班组",null), certcode: commonLogic.appcommonhandle("证件号码",null), empsex: commonLogic.appcommonhandle("性别",null), diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..e6fe8aff0332cce5e304c2d8661e5661789cb9b5 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_en_US.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_D_en_US_Base from './planschedule-d_en_US_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_D_en_US_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_D_en_US_Base(), PLANSCHEDULE_D_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..5df9738b0400f0abdc76d51531485bbe9c51f6b9 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_en_US_base.ts @@ -0,0 +1,72 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + planschedule_dname: commonLogic.appcommonhandle("计划_按天名称",null), + planschedule_did: commonLogic.appcommonhandle("计划_按天标识",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + createman: commonLogic.appcommonhandle("建立人",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + description: commonLogic.appcommonhandle("描述",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_按天",null), + title: commonLogic.appcommonhandle("计划_按天编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划_按天基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划_按天标识",null), + srfmajortext: commonLogic.appcommonhandle("计划_按天名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_did: commonLogic.appcommonhandle("计划_按天标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("Save And Close",null), + tip: commonLogic.appcommonhandle("Save And Close Window",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..06b161fa807647b665b1be7f778002a69508e802 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_zh_CN.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_D_zh_CN_Base from './planschedule-d_zh_CN_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_D_zh_CN_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_D_zh_CN_Base(), PLANSCHEDULE_D_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..c899e319ba31d92763ee70381a7e8c1629702466 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-d/planschedule-d_zh_CN_base.ts @@ -0,0 +1,71 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("计划_按天", null), + fields: { + planschedule_dname: commonLogic.appcommonhandle("计划_按天名称",null), + planschedule_did: commonLogic.appcommonhandle("计划_按天标识",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + createman: commonLogic.appcommonhandle("建立人",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + description: commonLogic.appcommonhandle("描述",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_按天",null), + title: commonLogic.appcommonhandle("计划_按天编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划_按天基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划_按天标识",null), + srfmajortext: commonLogic.appcommonhandle("计划_按天名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_did: commonLogic.appcommonhandle("计划_按天标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("保存并关闭",null), + tip: commonLogic.appcommonhandle("保存并关闭",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..c457ebcebf82ff4af5183b941e8df61dcfb38623 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_en_US.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_M_en_US_Base from './planschedule-m_en_US_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_M_en_US_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_M_en_US_Base(), PLANSCHEDULE_M_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..f1222fd0f2f54d3d3b438d46304396fd8580f3fd --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_en_US_base.ts @@ -0,0 +1,77 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + planschedule_mid: commonLogic.appcommonhandle("计划_按月标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedule_mname: commonLogic.appcommonhandle("计划_按月名称",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + description: commonLogic.appcommonhandle("描述",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + nocode: commonLogic.appcommonhandle("星期",null), + noseq: commonLogic.appcommonhandle("第",null), + noseq2: commonLogic.appcommonhandle("第",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_按月",null), + title: commonLogic.appcommonhandle("计划_按月编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划_按月基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划_按月标识",null), + srfmajortext: commonLogic.appcommonhandle("计划_按月名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduleparam: commonLogic.appcommonhandle("选择月份",null), + scheduleparam2: commonLogic.appcommonhandle("每月日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_mid: commonLogic.appcommonhandle("计划_按月标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("Save And Close",null), + tip: commonLogic.appcommonhandle("Save And Close Window",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..16a178432c713021eba653492d53c4ab0e659422 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_zh_CN.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_M_zh_CN_Base from './planschedule-m_zh_CN_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_M_zh_CN_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_M_zh_CN_Base(), PLANSCHEDULE_M_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..aa42e72c5458e0ac04b5d75309fb30c0e9b98085 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-m/planschedule-m_zh_CN_base.ts @@ -0,0 +1,76 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("计划_按月", null), + fields: { + planschedule_mid: commonLogic.appcommonhandle("计划_按月标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedule_mname: commonLogic.appcommonhandle("计划_按月名称",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + description: commonLogic.appcommonhandle("描述",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + nocode: commonLogic.appcommonhandle("星期",null), + noseq: commonLogic.appcommonhandle("第",null), + noseq2: commonLogic.appcommonhandle("第",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_按月",null), + title: commonLogic.appcommonhandle("计划_按月编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划_按月基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划_按月标识",null), + srfmajortext: commonLogic.appcommonhandle("计划_按月名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduleparam: commonLogic.appcommonhandle("选择月份",null), + scheduleparam2: commonLogic.appcommonhandle("每月日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_mid: commonLogic.appcommonhandle("计划_按月标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("保存并关闭",null), + tip: commonLogic.appcommonhandle("保存并关闭",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..9fdc43605afd93fcca98f5d631ca25e06fa879b0 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_en_US.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_O_en_US_Base from './planschedule-o_en_US_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_O_en_US_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_O_en_US_Base(), PLANSCHEDULE_O_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..17b5b10ca23e5118b97a30c8a278ff5a79afb2b7 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_en_US_base.ts @@ -0,0 +1,113 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + planschedule_oid: commonLogic.appcommonhandle("自定义间隔天数标识",null), + planschedule_oname: commonLogic.appcommonhandle("自定义间隔天数名称",null), + updateman: commonLogic.appcommonhandle("更新人",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + description: commonLogic.appcommonhandle("描述",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("自定义间隔天数",null), + title: commonLogic.appcommonhandle("自定义间隔天数编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("自定义间隔天数基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + group2: commonLogic.appcommonhandle("操作信息",null), + formpage2: commonLogic.appcommonhandle("其它",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("自定义间隔天数标识",null), + srfmajortext: commonLogic.appcommonhandle("自定义间隔天数名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("首次执行日期",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_oid: commonLogic.appcommonhandle("自定义间隔天数标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem3: { + caption: commonLogic.appcommonhandle("Save",null), + tip: commonLogic.appcommonhandle("Save",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Save And New",null), + tip: commonLogic.appcommonhandle("Save And New",null), + }, + tbitem5: { + caption: commonLogic.appcommonhandle("Save And Close",null), + tip: commonLogic.appcommonhandle("Save And Close Window",null), + }, + tbitem6: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("Remove And Close",null), + tip: commonLogic.appcommonhandle("Remove And Close Window",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem12: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem13: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem14: { + caption: commonLogic.appcommonhandle("Copy",null), + tip: commonLogic.appcommonhandle("Copy {0}",null), + }, + tbitem16: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem22: { + caption: commonLogic.appcommonhandle("Help",null), + tip: commonLogic.appcommonhandle("Help",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..7191a2d2466e047c24dbc6e6c30563d1077b42be --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_zh_CN.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_O_zh_CN_Base from './planschedule-o_zh_CN_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_O_zh_CN_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_O_zh_CN_Base(), PLANSCHEDULE_O_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..9a8353855a322013aec3a6c7421585057e25e0a1 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-o/planschedule-o_zh_CN_base.ts @@ -0,0 +1,112 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("自定义间隔天数", null), + fields: { + planschedule_oid: commonLogic.appcommonhandle("自定义间隔天数标识",null), + planschedule_oname: commonLogic.appcommonhandle("自定义间隔天数名称",null), + updateman: commonLogic.appcommonhandle("更新人",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + description: commonLogic.appcommonhandle("描述",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("自定义间隔天数",null), + title: commonLogic.appcommonhandle("自定义间隔天数编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("自定义间隔天数基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + group2: commonLogic.appcommonhandle("操作信息",null), + formpage2: commonLogic.appcommonhandle("其它",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("自定义间隔天数标识",null), + srfmajortext: commonLogic.appcommonhandle("自定义间隔天数名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("首次执行日期",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_oid: commonLogic.appcommonhandle("自定义间隔天数标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem3: { + caption: commonLogic.appcommonhandle("保存",null), + tip: commonLogic.appcommonhandle("保存",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("保存并新建",null), + tip: commonLogic.appcommonhandle("保存并新建",null), + }, + tbitem5: { + caption: commonLogic.appcommonhandle("保存并关闭",null), + tip: commonLogic.appcommonhandle("保存并关闭",null), + }, + tbitem6: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("删除并关闭",null), + tip: commonLogic.appcommonhandle("删除并关闭",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem12: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem13: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem14: { + caption: commonLogic.appcommonhandle("拷贝",null), + tip: commonLogic.appcommonhandle("拷贝",null), + }, + tbitem16: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem22: { + caption: commonLogic.appcommonhandle("帮助",null), + tip: commonLogic.appcommonhandle("帮助",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..90985fa9c534d560c551444bf421faf14cdf7902 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_en_US.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_T_en_US_Base from './planschedule-t_en_US_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_T_en_US_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_T_en_US_Base(), PLANSCHEDULE_T_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..f71a4d76f89edd0695a334f1c977d7eb0d463b70 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_en_US_base.ts @@ -0,0 +1,73 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + planschedule_tid: commonLogic.appcommonhandle("定时标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedule_tname: commonLogic.appcommonhandle("定时名称",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + description: commonLogic.appcommonhandle("描述",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_定时",null), + title: commonLogic.appcommonhandle("定时编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("定时基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("定时标识",null), + srfmajortext: commonLogic.appcommonhandle("定时名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_tid: commonLogic.appcommonhandle("定时标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("Save And Close",null), + tip: commonLogic.appcommonhandle("Save And Close Window",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..56a50d6cadd9fe9340bf4761db8fef825828f215 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_zh_CN.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_T_zh_CN_Base from './planschedule-t_zh_CN_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_T_zh_CN_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_T_zh_CN_Base(), PLANSCHEDULE_T_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..f05b9cd7088e6aa2e0f4c208071853b8fa34d11a --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-t/planschedule-t_zh_CN_base.ts @@ -0,0 +1,72 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("计划_定时", null), + fields: { + planschedule_tid: commonLogic.appcommonhandle("定时标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedule_tname: commonLogic.appcommonhandle("定时名称",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + description: commonLogic.appcommonhandle("描述",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_定时",null), + title: commonLogic.appcommonhandle("定时编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("定时基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("定时标识",null), + srfmajortext: commonLogic.appcommonhandle("定时名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_tid: commonLogic.appcommonhandle("定时标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("保存并关闭",null), + tip: commonLogic.appcommonhandle("保存并关闭",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..6bf12d56423fd12f43dea144d2dd88dfa67cff58 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_en_US.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_W_en_US_Base from './planschedule-w_en_US_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_W_en_US_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_W_en_US_Base(), PLANSCHEDULE_W_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..4e817b5672f32f210e9f1853d8217011e4d97388 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_en_US_base.ts @@ -0,0 +1,73 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + planschedule_wid: commonLogic.appcommonhandle("计划_按周标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedule_wname: commonLogic.appcommonhandle("计划_按周名称",null), + updateman: commonLogic.appcommonhandle("更新人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + description: commonLogic.appcommonhandle("描述",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_按周",null), + title: commonLogic.appcommonhandle("计划_按周编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划_按周基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划_按周标识",null), + srfmajortext: commonLogic.appcommonhandle("计划_按周名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduleparam2: commonLogic.appcommonhandle("每周的",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_wid: commonLogic.appcommonhandle("计划_按周标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("Save And Close",null), + tip: commonLogic.appcommonhandle("Save And Close Window",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..560a5d926adf51edec9ee40314a2b2be8e793a4f --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_zh_CN.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_W_zh_CN_Base from './planschedule-w_zh_CN_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_W_zh_CN_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_W_zh_CN_Base(), PLANSCHEDULE_W_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..3c7b727f7bf7c28bf90a104ae470d176e2b9010d --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule-w/planschedule-w_zh_CN_base.ts @@ -0,0 +1,72 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("计划_按周", null), + fields: { + planschedule_wid: commonLogic.appcommonhandle("计划_按周标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedule_wname: commonLogic.appcommonhandle("计划_按周名称",null), + updateman: commonLogic.appcommonhandle("更新人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + description: commonLogic.appcommonhandle("描述",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划_按周",null), + title: commonLogic.appcommonhandle("计划_按周编辑视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划_按周基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划_按周标识",null), + srfmajortext: commonLogic.appcommonhandle("计划_按周名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + emplanname: commonLogic.appcommonhandle("计划",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + scheduleparam2: commonLogic.appcommonhandle("每周的",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + planschedule_wid: commonLogic.appcommonhandle("计划_按周标识",null), + }, + uiactions: { + }, + }, + editviewtoolbar_toolbar: { + tbitem1: { + caption: commonLogic.appcommonhandle("保存并关闭",null), + tip: commonLogic.appcommonhandle("保存并关闭",null), + }, + tbitem2: { + caption: commonLogic.appcommonhandle("关闭",null), + tip: commonLogic.appcommonhandle("关闭",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_en_US.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_en_US.ts new file mode 100644 index 0000000000000000000000000000000000000000..ad63b02a3794a45b7c9213765183e1ba4c2d35fb --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_en_US.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_en_US_Base from './planschedule_en_US_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_en_US_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_en_US_Base(), PLANSCHEDULE_en_US_OwnData); + return targetData; +} +export default getLocaleResource; diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_en_US_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_en_US_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..bd12f08128bf95f0098830abb9ddfcd017ddafd4 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_en_US_base.ts @@ -0,0 +1,180 @@ +import commonLogic from '@/locale/logic/common/common-logic'; + +function getLocaleResourceBase(){ + const data:any = { + fields: { + planscheduleid: commonLogic.appcommonhandle("计划时刻设置标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedulename: commonLogic.appcommonhandle("计划时刻设置名称",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + description: commonLogic.appcommonhandle("描述",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置编辑视图",null), + }, + indexpickupview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置数据选择视图",null), + }, + indexpickupdataview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置索引关系选择数据视图",null), + }, + gridview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置表格视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划时刻设置基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + group2: commonLogic.appcommonhandle("操作信息",null), + formpage2: commonLogic.appcommonhandle("其它",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划时刻设置标识",null), + srfmajortext: commonLogic.appcommonhandle("计划时刻设置名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + planschedulename: commonLogic.appcommonhandle("计划时刻设置名称",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + planscheduleid: commonLogic.appcommonhandle("计划时刻设置标识",null), + }, + uiactions: { + }, + }, + main_grid: { + columns: { + emplanname: commonLogic.appcommonhandle("计划名称",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + }, + nodata:commonLogic.appcommonhandle("",null), + uiactions: { + }, + }, + indextype_dataview: { + nodata:commonLogic.appcommonhandle("",null), + uiactions: { + }, + }, + default_searchform: { + details: { + formpage1: commonLogic.appcommonhandle("常规条件",null), + }, + uiactions: { + }, + }, + gridviewtoolbar_toolbar: { + tbitem3: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Edit",null), + tip: commonLogic.appcommonhandle("Edit {0}",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("Remove",null), + tip: commonLogic.appcommonhandle("Remove {0}",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { + caption: commonLogic.appcommonhandle("Export",null), + tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null), + }, + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { + caption: commonLogic.appcommonhandle("Filter",null), + tip: commonLogic.appcommonhandle("Filter",null), + }, + }, + editviewtoolbar_toolbar: { + tbitem3: { + caption: commonLogic.appcommonhandle("Save",null), + tip: commonLogic.appcommonhandle("Save",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("Save And New",null), + tip: commonLogic.appcommonhandle("Save And New",null), + }, + tbitem5: { + caption: commonLogic.appcommonhandle("Save And Close",null), + tip: commonLogic.appcommonhandle("Save And Close Window",null), + }, + tbitem6: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("Remove And Close",null), + tip: commonLogic.appcommonhandle("Remove And Close Window",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem12: { + caption: commonLogic.appcommonhandle("New",null), + tip: commonLogic.appcommonhandle("New",null), + }, + tbitem13: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem14: { + caption: commonLogic.appcommonhandle("Copy",null), + tip: commonLogic.appcommonhandle("Copy {0}",null), + }, + tbitem16: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem22: { + caption: commonLogic.appcommonhandle("Help",null), + tip: commonLogic.appcommonhandle("Help",null), + }, + }, + }; + return data; +} + +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_zh_CN.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_zh_CN.ts new file mode 100644 index 0000000000000000000000000000000000000000..1abd736d708d33fc0142fbdb5bd678a8ef842ea5 --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_zh_CN.ts @@ -0,0 +1,8 @@ +import PLANSCHEDULE_zh_CN_Base from './planschedule_zh_CN_base'; + +function getLocaleResource(){ + const PLANSCHEDULE_zh_CN_OwnData = {}; + const targetData = Object.assign(PLANSCHEDULE_zh_CN_Base(), PLANSCHEDULE_zh_CN_OwnData); + return targetData; +} +export default getLocaleResource; \ No newline at end of file diff --git a/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_zh_CN_base.ts b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_zh_CN_base.ts new file mode 100644 index 0000000000000000000000000000000000000000..6466943981a1e9515f06b983246b20dc1503609e --- /dev/null +++ b/app_DynaWeb/src/locale/lanres/entities/planschedule/planschedule_zh_CN_base.ts @@ -0,0 +1,179 @@ +import commonLogic from '@/locale/logic/common/common-logic'; +function getLocaleResourceBase(){ + const data:any = { + appdename: commonLogic.appcommonhandle("计划时刻设置", null), + fields: { + planscheduleid: commonLogic.appcommonhandle("计划时刻设置标识",null), + createman: commonLogic.appcommonhandle("建立人",null), + planschedulename: commonLogic.appcommonhandle("计划时刻设置名称",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + cyclestarttime: commonLogic.appcommonhandle("循环开始时间",null), + cycleendtime: commonLogic.appcommonhandle("循环结束时间",null), + description: commonLogic.appcommonhandle("描述",null), + intervalminute: commonLogic.appcommonhandle("间隔时间",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + runtime: commonLogic.appcommonhandle("执行时间",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam3: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam4: commonLogic.appcommonhandle("时刻参数",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + emplanid: commonLogic.appcommonhandle("计划编号",null), + emplanname: commonLogic.appcommonhandle("计划名称",null), + lastminute: commonLogic.appcommonhandle("持续时间",null), + taskid: commonLogic.appcommonhandle("定时任务",null), + }, + views: { + editview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置编辑视图",null), + }, + indexpickupview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置数据选择视图",null), + }, + indexpickupdataview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置索引关系选择数据视图",null), + }, + gridview: { + caption: commonLogic.appcommonhandle("计划时刻设置",null), + title: commonLogic.appcommonhandle("计划时刻设置表格视图",null), + }, + }, + main_form: { + details: { + group1: commonLogic.appcommonhandle("计划时刻设置基本信息",null), + formpage1: commonLogic.appcommonhandle("基本信息",null), + group2: commonLogic.appcommonhandle("操作信息",null), + formpage2: commonLogic.appcommonhandle("其它",null), + srfupdatedate: commonLogic.appcommonhandle("更新时间",null), + srforikey: commonLogic.appcommonhandle("",null), + srfkey: commonLogic.appcommonhandle("计划时刻设置标识",null), + srfmajortext: commonLogic.appcommonhandle("计划时刻设置名称",null), + srftempmode: commonLogic.appcommonhandle("",null), + srfuf: commonLogic.appcommonhandle("",null), + srfdeid: commonLogic.appcommonhandle("",null), + srfsourcekey: commonLogic.appcommonhandle("",null), + planschedulename: commonLogic.appcommonhandle("计划时刻设置名称",null), + createman: commonLogic.appcommonhandle("建立人",null), + createdate: commonLogic.appcommonhandle("建立时间",null), + updateman: commonLogic.appcommonhandle("更新人",null), + updatedate: commonLogic.appcommonhandle("更新时间",null), + planscheduleid: commonLogic.appcommonhandle("计划时刻设置标识",null), + }, + uiactions: { + }, + }, + main_grid: { + columns: { + emplanname: commonLogic.appcommonhandle("计划名称",null), + scheduletype: commonLogic.appcommonhandle("时刻类型",null), + rundate: commonLogic.appcommonhandle("运行日期",null), + scheduleparam: commonLogic.appcommonhandle("时刻参数",null), + scheduleparam2: commonLogic.appcommonhandle("时刻参数",null), + schedulestate: commonLogic.appcommonhandle("时刻设置状态",null), + }, + nodata:commonLogic.appcommonhandle("",null), + uiactions: { + }, + }, + indextype_dataview: { + nodata:commonLogic.appcommonhandle("",null), + uiactions: { + }, + }, + default_searchform: { + details: { + formpage1: commonLogic.appcommonhandle("常规条件",null), + }, + uiactions: { + }, + }, + gridviewtoolbar_toolbar: { + tbitem3: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("编辑",null), + tip: commonLogic.appcommonhandle("编辑",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("删除",null), + tip: commonLogic.appcommonhandle("删除",null), + }, + tbitem9: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem13: { + caption: commonLogic.appcommonhandle("导出",null), + tip: commonLogic.appcommonhandle("导出",null), + }, + tbitem10: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem19: { + caption: commonLogic.appcommonhandle("过滤",null), + tip: commonLogic.appcommonhandle("过滤",null), + }, + }, + editviewtoolbar_toolbar: { + tbitem3: { + caption: commonLogic.appcommonhandle("保存",null), + tip: commonLogic.appcommonhandle("保存",null), + }, + tbitem4: { + caption: commonLogic.appcommonhandle("保存并新建",null), + tip: commonLogic.appcommonhandle("保存并新建",null), + }, + tbitem5: { + caption: commonLogic.appcommonhandle("保存并关闭",null), + tip: commonLogic.appcommonhandle("保存并关闭",null), + }, + tbitem6: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem7: { + caption: commonLogic.appcommonhandle("删除并关闭",null), + tip: commonLogic.appcommonhandle("删除并关闭",null), + }, + tbitem8: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem12: { + caption: commonLogic.appcommonhandle("新建",null), + tip: commonLogic.appcommonhandle("新建",null), + }, + tbitem13: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem14: { + caption: commonLogic.appcommonhandle("拷贝",null), + tip: commonLogic.appcommonhandle("拷贝",null), + }, + tbitem16: { + caption: commonLogic.appcommonhandle("-",null), + tip: commonLogic.appcommonhandle("",null), + }, + tbitem22: { + caption: commonLogic.appcommonhandle("帮助",null), + tip: commonLogic.appcommonhandle("帮助",null), + }, + }, + }; + return data; +} +export default getLocaleResourceBase; \ No newline at end of file diff --git a/app_DynaWeb/src/mock/codelist/codelist.ts b/app_DynaWeb/src/mock/codelist/codelist.ts index 4b57e47706a3b56c0b84b2133ef89b5a070f7d6d..cd0b737dbb8eb24224c690e3a290c4f87e3d702e 100644 --- a/app_DynaWeb/src/mock/codelist/codelist.ts +++ b/app_DynaWeb/src/mock/codelist/codelist.ts @@ -1029,6 +1029,83 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { }, ] }, + { + srfkey: "CODELIST_SCHEDULEWEEKGROUP", + emptytext: "未定义", + "codelisttype":"static", + items: [ + { + id: "1", + label: "星期一", + text: "星期一", + "data":"", + "codename":"Item_1", + value: "1", + + disabled: false, + }, + { + id: "2", + label: "星期二", + text: "星期二", + "data":"", + "codename":"Item_2", + value: "2", + + disabled: false, + }, + { + id: "3", + label: "星期三", + text: "星期三", + "data":"", + "codename":"Item_3", + value: "3", + + disabled: false, + }, + { + id: "4", + label: "星期四", + text: "星期四", + "data":"", + "codename":"Item_4", + value: "4", + + disabled: false, + }, + { + id: "5", + label: "星期五", + text: "星期五", + "data":"", + "codename":"Item_5", + value: "5", + + disabled: false, + }, + { + id: "6", + label: "星期六", + text: "星期六", + "data":"", + "codename":"Item_6", + value: "6", + + disabled: false, + }, + { + id: "7", + label: "星期日", + text: "星期日", + "data":"", + "codename":"Item_7", + value: "7", + + disabled: false, + }, + ] + }, { "srfkey": "SysOperator", "emptytext": "未定义", @@ -1195,6 +1272,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { }, ] }, + { + srfkey: "CODELIST_SCHEDULESTATE", + emptytext: "未定义", + "codelisttype":"static", + items: [ + { + id: "1", + label: "正常", + text: "正常", + "data":"", + "codename":"Item_1", + value: "1", + + disabled: false, + }, + { + id: "2", + label: "暂停", + text: "暂停", + "data":"", + "codename":"Item_2", + value: "2", + + disabled: false, + }, + ] + }, { srfkey: "EMWOORITYPE", emptytext: "未定义", @@ -4493,6 +4597,63 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { }, ] }, + { + srfkey: "CODELIST_SCHEDULETYPE", + emptytext: "未定义", + "codelisttype":"static", + items: [ + { + id: "1", + label: "指定日期", + text: "指定日期", + "data":"", + "codename":"Item_1", + value: "1", + + disabled: false, + }, + { + id: "3", + label: "每月", + text: "每月", + "data":"", + "codename":"Item_3", + value: "3", + + disabled: false, + }, + { + id: "4", + label: "每周", + text: "每周", + "data":"", + "codename":"Item_4", + value: "4", + + disabled: false, + }, + { + id: "5", + label: "每天", + text: "每天", + "data":"", + "codename":"Item_5", + value: "5", + + disabled: false, + }, + { + id: "6", + label: "自定义间隔天数", + text: "自定义间隔天数", + "data":"", + "codename":"Item_6", + value: "6", + + disabled: false, + }, + ] + }, { srfkey: "FEBEC2B8438144B19B682C0A4CB6EA17", emptytext: "未定义", @@ -6252,6 +6413,323 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { }, ] }, + { + srfkey: "CODELIST_SCHEDULEMONTHDAYGROUP", + emptytext: "未定义", + "codelisttype":"static", + items: [ + { + id: "1", + label: "1日", + text: "1日", + "data":"", + "codename":"Item_1", + value: "1", + + disabled: false, + }, + { + id: "2", + label: "2日", + text: "2日", + "data":"", + "codename":"Item_2", + value: "2", + + disabled: false, + }, + { + id: "3", + label: "3日", + text: "3日", + "data":"", + "codename":"Item_3", + value: "3", + + disabled: false, + }, + { + id: "4", + label: "4日", + text: "4日", + "data":"", + "codename":"Item_4", + value: "4", + + disabled: false, + }, + { + id: "5", + label: "5日", + text: "5日", + "data":"", + "codename":"Item_5", + value: "5", + + disabled: false, + }, + { + id: "6", + label: "6日", + text: "6日", + "data":"", + "codename":"Item_6", + value: "6", + + disabled: false, + }, + { + id: "7", + label: "7日", + text: "7日", + "data":"", + "codename":"Item_7", + value: "7", + + disabled: false, + }, + { + id: "8", + label: "8日", + text: "8日", + "data":"", + "codename":"Item_8", + value: "8", + + disabled: false, + }, + { + id: "9", + label: "9日", + text: "9日", + "data":"", + "codename":"Item_9", + value: "9", + + disabled: false, + }, + { + id: "10", + label: "10日", + text: "10日", + "data":"", + "codename":"Item_10", + value: "10", + + disabled: false, + }, + { + id: "11", + label: "11日", + text: "11日", + "data":"", + "codename":"Item_11", + value: "11", + + disabled: false, + }, + { + id: "12", + label: "12日", + text: "12日", + "data":"", + "codename":"Item_12", + value: "12", + + disabled: false, + }, + { + id: "13", + label: "13日", + text: "13日", + "data":"", + "codename":"Item_13", + value: "13", + + disabled: false, + }, + { + id: "14", + label: "14日", + text: "14日", + "data":"", + "codename":"Item_14", + value: "14", + + disabled: false, + }, + { + id: "15", + label: "15日", + text: "15日", + "data":"", + "codename":"Item_15", + value: "15", + + disabled: false, + }, + { + id: "16", + label: "16日", + text: "16日", + "data":"", + "codename":"Item_16", + value: "16", + + disabled: false, + }, + { + id: "17", + label: "17日", + text: "17日", + "data":"", + "codename":"Item_17", + value: "17", + + disabled: false, + }, + { + id: "18", + label: "18日", + text: "18日", + "data":"", + "codename":"Item_18", + value: "18", + + disabled: false, + }, + { + id: "19", + label: "19日", + text: "19日", + "data":"", + "codename":"Item_19", + value: "19", + + disabled: false, + }, + { + id: "20", + label: "20日", + text: "20日", + "data":"", + "codename":"Item_20", + value: "20", + + disabled: false, + }, + { + id: "21", + label: "21日", + text: "21日", + "data":"", + "codename":"Item_21", + value: "21", + + disabled: false, + }, + { + id: "22", + label: "22日", + text: "22日", + "data":"", + "codename":"Item_22", + value: "22", + + disabled: false, + }, + { + id: "23", + label: "23日", + text: "23日", + "data":"", + "codename":"Item_23", + value: "23", + + disabled: false, + }, + { + id: "24", + label: "24日", + text: "24日", + "data":"", + "codename":"Item_24", + value: "24", + + disabled: false, + }, + { + id: "25", + label: "25日", + text: "25日", + "data":"", + "codename":"Item_25", + value: "25", + + disabled: false, + }, + { + id: "26", + label: "26日", + text: "26日", + "data":"", + "codename":"Item_26", + value: "26", + + disabled: false, + }, + { + id: "27", + label: "27日", + text: "27日", + "data":"", + "codename":"Item_27", + value: "27", + + disabled: false, + }, + { + id: "28", + label: "28日", + text: "28日", + "data":"", + "codename":"Item_28", + value: "28", + + disabled: false, + }, + { + id: "29", + label: "29日", + text: "29日", + "data":"", + "codename":"Item_29", + value: "29", + + disabled: false, + }, + { + id: "30", + label: "30日", + text: "30日", + "data":"", + "codename":"Item_30", + value: "30", + + disabled: false, + }, + { + id: "31", + label: "31日", + text: "31日", + "data":"", + "codename":"Item_31", + value: "31", + + disabled: false, + }, + ] + }, { srfkey: "EMWPLISTWFSTEP", emptytext: "未定义", @@ -6375,6 +6853,133 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { "codename":"Item_70", value: "70", + disabled: false, + }, + ] + }, + { + srfkey: "CODELIST_SCHEDULEMONTHGROUP", + emptytext: "未定义", + "codelisttype":"static", + items: [ + { + id: "1", + label: "一月", + text: "一月", + "data":"", + "codename":"Item_1", + value: "1", + + disabled: false, + }, + { + id: "2", + label: "二月", + text: "二月", + "data":"", + "codename":"Item_2", + value: "2", + + disabled: false, + }, + { + id: "3", + label: "三月", + text: "三月", + "data":"", + "codename":"Item_3", + value: "3", + + disabled: false, + }, + { + id: "4", + label: "四月", + text: "四月", + "data":"", + "codename":"Item_4", + value: "4", + + disabled: false, + }, + { + id: "5", + label: "五月", + text: "五月", + "data":"", + "codename":"Item_5", + value: "5", + + disabled: false, + }, + { + id: "6", + label: "六月", + text: "六月", + "data":"", + "codename":"Item_6", + value: "6", + + disabled: false, + }, + { + id: "7", + label: "七月", + text: "七月", + "data":"", + "codename":"Item_7", + value: "7", + + disabled: false, + }, + { + id: "8", + label: "八月", + text: "八月", + "data":"", + "codename":"Item_8", + value: "8", + + disabled: false, + }, + { + id: "9", + label: "九月", + text: "九月", + "data":"", + "codename":"Item_9", + value: "9", + + disabled: false, + }, + { + id: "10", + label: "十月", + text: "十月", + "data":"", + "codename":"Item_10", + value: "10", + + disabled: false, + }, + { + id: "11", + label: "十一月", + text: "十一月", + "data":"", + "codename":"Item_11", + value: "11", + + disabled: false, + }, + { + id: "12", + label: "十二月", + text: "十二月", + "data":"", + "codename":"Item_12", + value: "12", + disabled: false, }, ] diff --git a/app_DynaWeb/src/mock/entity/emapplys/emapplys.ts b/app_DynaWeb/src/mock/entity/emapplys/emapplys.ts index bee48796fa1d2f625d76c1a6f2f73c37cd29c7dc..b1b665899d3852d783e3c3f4990734b7d702c6eb 100644 --- a/app_DynaWeb/src/mock/entity/emapplys/emapplys.ts +++ b/app_DynaWeb/src/mock/entity/emapplys/emapplys.ts @@ -492,98 +492,6 @@ mock.onPost(new RegExp(/^\/emapplies\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).rep }); -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emapply 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emapplyid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emapply 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emapplyid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emapplies\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emapply 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emapplyid']; - const matchArray:any = new RegExp(/^\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emapplyid, tempValue.emapplyid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emapplyid'] == tempValue['emapplyid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Confirm mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/confirm$/)).reply((config: any) => { console.groupCollapsed("实体:emapply 方法: Confirm"); @@ -768,98 +676,6 @@ mock.onPut(new RegExp(/^\/emapplies\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyemqui }); -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emapply 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emapplyid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emapply 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emapplyid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emapplies\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emapply 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emapplyid']; - const matchArray:any = new RegExp(/^\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emapplyid, tempValue.emapplyid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emapplyid'] == tempValue['emapplyid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Rejected mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emapplies\/([a-zA-Z0-9\-\;]{1,35})\/rejected$/)).reply((config: any) => { console.groupCollapsed("实体:emapply 方法: Rejected"); diff --git a/app_DynaWeb/src/mock/entity/emitem-css/emitem-css.ts b/app_DynaWeb/src/mock/entity/emitem-css/emitem-css.ts index f4531fa2cbad3a462ea1f5b82332c45d0ead07e0..55dc64dfe22b4ce16c7db448fc3d76607f70bcc5 100644 --- a/app_DynaWeb/src/mock/entity/emitem-css/emitem-css.ts +++ b/app_DynaWeb/src/mock/entity/emitem-css/emitem-css.ts @@ -347,44 +347,6 @@ mock.onPut(new RegExp(/^\/emitemcs\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebystocki return [status, data]; }); -// GenId -mock.onPost(new RegExp(/^\/emitemcs\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemcs 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemcsid']; - const matchArray:any = new RegExp(/^\/emitemcs\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitemcsid, tempValue.emitemcsid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitemcsid'] == tempValue['emitemcsid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - // Save mock.onPost(new RegExp(/^\/emitemcs\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emitemcs 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/emitem-pls/emitem-pls.ts b/app_DynaWeb/src/mock/entity/emitem-pls/emitem-pls.ts index 34b65ba7297f361cdf8025537d60f616a343ac6b..3d159f1154f57fba1fcb03e4db0d91deaf2d23c2 100644 --- a/app_DynaWeb/src/mock/entity/emitem-pls/emitem-pls.ts +++ b/app_DynaWeb/src/mock/entity/emitem-pls/emitem-pls.ts @@ -309,44 +309,6 @@ mock.onPut(new RegExp(/^\/emitempls\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyitem$ return [status, data]; }); -// GenId -mock.onPost(new RegExp(/^\/emitempls\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempl 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemplid']; - const matchArray:any = new RegExp(/^\/emitempls\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitemplid, tempValue.emitemplid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitemplid'] == tempValue['emitemplid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - // Rejected mock.onPost(new RegExp(/^\/emitempls\/?([a-zA-Z0-9\-\;]{0,35})\/rejected$/)).reply((config: any) => { console.groupCollapsed("实体:emitempl 方法: Rejected"); diff --git a/app_DynaWeb/src/mock/entity/emitem-prtns/emitem-prtns.ts b/app_DynaWeb/src/mock/entity/emitem-prtns/emitem-prtns.ts index 8297585f562cb7d1238173465aa36b75b3abff93..819a123746138c5976abb0f21f72d2da6138c7f9 100644 --- a/app_DynaWeb/src/mock/entity/emitem-prtns/emitem-prtns.ts +++ b/app_DynaWeb/src/mock/entity/emitem-prtns/emitem-prtns.ts @@ -1225,179 +1225,6 @@ mock.onPut(new RegExp(/^\/emitemprtns\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyemi }); -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemprtn 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitemprtnid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemprtn 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emitemprtnid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemprtn 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emitemprtnid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemprtn 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emitemprtnid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemprtn 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemid','emitemprtnid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emitemprtns\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemprtn 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemprtnid']; - const matchArray:any = new RegExp(/^\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitemprtnid, tempValue.emitemprtnid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitemprtnid'] == tempValue['emitemprtnid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Rejected mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})\/rejected$/)).reply((config: any) => { console.groupCollapsed("实体:emitemprtn 方法: Rejected"); @@ -2907,6 +2734,50 @@ mock.onGet(new RegExp(/^\/emitemprtns\/fetchtoconfirm(\?[\w-./?%&=,]*)*$/)).repl // URI参数传递情况未实现 // URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + // Remove mock.onDelete(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemprtns\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { diff --git a/app_DynaWeb/src/mock/entity/emitem-puses/emitem-puses.ts b/app_DynaWeb/src/mock/entity/emitem-puses/emitem-puses.ts index e522f4d5535fb4f0e5c789d681bc8e0ad28c3b47..1eeef3a07576a717513bc3bca06dc754bcace226 100644 --- a/app_DynaWeb/src/mock/entity/emitem-puses/emitem-puses.ts +++ b/app_DynaWeb/src/mock/entity/emitem-puses/emitem-puses.ts @@ -1911,594 +1911,16 @@ mock.onPost(new RegExp(/^\/emitempuses\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).r }); -// CheckValue -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emitempuseid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emitempuseid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['empurplanid','emitempuseid']; - const matchArray:any = new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emitempuses\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitempuseid']; - const matchArray:any = new RegExp(/^\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitempuseid, tempValue.emitempuseid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitempuseid'] == tempValue['emitempuseid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emitempuseid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emitempuseid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - // FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { +mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } - const paramArray:Array = ['emstoreid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); + const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitempuseid']; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2517,15 +1939,15 @@ mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA // FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { +mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } - const paramArray:Array = ['emstorepartid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); + const paramArray:Array = ['emstoreid','emstorepartid','emitempuseid']; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2544,15 +1966,15 @@ mock.onPut(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([ // FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { +mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } - const paramArray:Array = ['emserviceid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); + const paramArray:Array = ['emstoreid','emitemid','emitempuseid']; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2571,15 +1993,15 @@ mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a- // FormUpdateByITEMID -mock.onPut(new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { +mock.onPut(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } - const paramArray:Array = ['empurplanid','emitempuseid']; - const matchArray:any = new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); + const paramArray:Array = ['emstorepartid','emitemid','emitempuseid']; + const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2598,15 +2020,15 @@ mock.onPut(new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a- // FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } - const paramArray:Array = ['emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); + const paramArray:Array = ['emserviceid','emitemid','emitempuseid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2625,215 +2047,15 @@ mock.onPut(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA- // FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// FormUpdateByITEMID -mock.onPut(new RegExp(/^\/emitempuses\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyitemid$/)).reply((config: any) => { +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitempuseid']; - const matchArray:any = new RegExp(/^\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitempuseid, tempValue.emitempuseid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitempuseid'] == tempValue['emitempuseid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['pfteamid','emequipid','emitempuseid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2851,16 +2073,16 @@ mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0 }); -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['pfteamid','emitempuseid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2878,16 +2100,16 @@ mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA }); -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['emstoreid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2905,16 +2127,16 @@ mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-z }); -// GenId -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['emstorepartid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2932,16 +2154,16 @@ mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/( }); -// GenId -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['emserviceid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2959,16 +2181,16 @@ mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a }); -// GenId -mock.onPost(new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['empurplanid','emitempuseid']; - const matchArray:any = new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -2986,16 +2208,16 @@ mock.onPost(new RegExp(/^\/empurplans\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a }); -// GenId -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['emitemid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -3013,16 +2235,16 @@ mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA }); -// GenId -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['emequipid','emitempuseid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { @@ -3039,16 +2261,16 @@ mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emitempuses\/([a-z return [status, {}]; }); -// GenId -mock.onPost(new RegExp(/^\/emitempuses\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitempuse 方法: GenId"); +// FormUpdateByITEMID +mock.onPut(new RegExp(/^\/emitempuses\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyitemid$/)).reply((config: any) => { + console.groupCollapsed("实体:emitempuse 方法: FormUpdateByITEMID"); console.table({url:config.url, method: config.method, data:config.data}); let status = MockAdapter.mockStatus(config); if (status !== 200) { return [status, null]; } const paramArray:Array = ['emitempuseid']; - const matchArray:any = new RegExp(/^\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); + const matchArray:any = new RegExp(/^\/emitempuses\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyitemid$/).exec(config.url); let tempValue: any = {}; if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ paramArray.forEach((item: any, index: number) => { diff --git a/app_DynaWeb/src/mock/entity/emitem-rins/emitem-rins.ts b/app_DynaWeb/src/mock/entity/emitem-rins/emitem-rins.ts index e22425319b693be9c5484da91e493a34d4df0981..efd944966d09bbd772cceb2c0bc42d5f46958db3 100644 --- a/app_DynaWeb/src/mock/entity/emitem-rins/emitem-rins.ts +++ b/app_DynaWeb/src/mock/entity/emitem-rins/emitem-rins.ts @@ -1052,179 +1052,6 @@ mock.onPost(new RegExp(/^\/emitemrins\/?([a-zA-Z0-9\-\;]{0,35})\/confirm$/)).rep }); -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrin 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitemrinid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrin 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emitemrinid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrin 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emitemrinid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrin 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emitemrinid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrin 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemid','emitemrinid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emitemrins\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrin 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemrinid']; - const matchArray:any = new RegExp(/^\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitemrinid, tempValue.emitemrinid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitemrinid'] == tempValue['emitemrinid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Save mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrins\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emitemrin 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/emitem-routs/emitem-routs.ts b/app_DynaWeb/src/mock/entity/emitem-routs/emitem-routs.ts index a89090ff068325b15eeb8f8f5e2ce463af10466c..8dec80ec9e52c851dee6cc02eaeae32733852ebc 100644 --- a/app_DynaWeb/src/mock/entity/emitem-routs/emitem-routs.ts +++ b/app_DynaWeb/src/mock/entity/emitem-routs/emitem-routs.ts @@ -1225,179 +1225,6 @@ mock.onPut(new RegExp(/^\/emitemrouts\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyrid }); -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrout 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emitemroutid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrout 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emitemroutid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrout 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emitemroutid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrout 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emitemroutid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrout 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemid','emitemroutid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emitemrouts\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emitemrout 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemroutid']; - const matchArray:any = new RegExp(/^\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emitemroutid, tempValue.emitemroutid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emitemroutid'] == tempValue['emitemroutid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Rejected mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emitemrouts\/([a-zA-Z0-9\-\;]{1,35})\/rejected$/)).reply((config: any) => { console.groupCollapsed("实体:emitemrout 方法: Rejected"); diff --git a/app_DynaWeb/src/mock/entity/emplanrecords/emplanrecords.ts b/app_DynaWeb/src/mock/entity/emplanrecords/emplanrecords.ts new file mode 100644 index 0000000000000000000000000000000000000000..8f753f6bd279d31556fe355cd4f671e2614e4d04 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/emplanrecords/emplanrecords.ts @@ -0,0 +1,3090 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/emplanrecords\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/emplanrecords\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/emplanrecords\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/emplanrecords\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/emplanrecords\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + + +// Select +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Select +mock.onGet(new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Create +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// Create +mock.onPost(new RegExp(/^\/emplanrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + + +// Update +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// Update +mock.onPut(new RegExp(/^\/emplanrecords\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['emplanrecordid'] == tempValue['emplanrecordid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + + + + + + + + + + + + + + + + + + + + + +// GetDraft +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/emplanrecords\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/emplanrecords\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['emplanrecordid'] == tempValue['emplanrecordid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + +// Save +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// Save +mock.onPost(new RegExp(/^\/emplanrecords\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['emplanrecordid'] == tempValue['emplanrecordid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/emplanrecords\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/emplanrecords\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:emplanrecord 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanrecordid']; + const matchArray:any = new RegExp(/^\/emplanrecords\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.emplanrecordid, tempValue.emplanrecordid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/entity/emplans/emplans.ts b/app_DynaWeb/src/mock/entity/emplans/emplans.ts index 966d43f2b277a8b6ac32599eaf1e1d9cbdfa8aa3..ff86d7557431f57653a0463e93e5c9bcc2de8668 100644 --- a/app_DynaWeb/src/mock/entity/emplans/emplans.ts +++ b/app_DynaWeb/src/mock/entity/emplans/emplans.ts @@ -1395,6 +1395,568 @@ mock.onPost(new RegExp(/^\/emplans\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply }); +// CreateWO +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CreateWO +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CreateWO +mock.onPost(new RegExp(/^\/emplans\/?([a-zA-Z0-9\-\;]{0,35})\/createwo$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: CreateWO"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/createwo$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.emplanid, tempValue.emplanid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['emplanid'] == tempValue['emplanid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// FormUpdateByEQUIP +mock.onPut(new RegExp(/^\/emplans\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyequip$/)).reply((config: any) => { + console.groupCollapsed("实体:emplan 方法: FormUpdateByEQUIP"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyequip$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.emplanid, tempValue.emplanid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['emplanid'] == tempValue['emplanid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + // Save mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emplan 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/empodetails/empodetails.ts b/app_DynaWeb/src/mock/entity/empodetails/empodetails.ts index 7d8fcc831cbff0339da741f96b6a21f365aec476..2675f7484d62e725d3026ac9286a16d59f3f30c4 100644 --- a/app_DynaWeb/src/mock/entity/empodetails/empodetails.ts +++ b/app_DynaWeb/src/mock/entity/empodetails/empodetails.ts @@ -4982,6 +4982,590 @@ mock.onGet(new RegExp(/^\/empodetails\/fetchlateryear(\?[\w-./?%&=,]*)*$/)).repl }); +// FetchMain2 +mock.onGet(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emwplistid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emstoreid','emstorepartid','emitemid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emstoreid','emitemid','emwplistid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emstorepartid','emitemid','emwplistid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emitemid','emwplistid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emitemid','emwplistid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emstoreid','emitemid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emstorepartid','emitemid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emitemid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emwplistid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/empos\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['empoid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/empos\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchMain2 +mock.onGet(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emitemid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchmain2$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + +// FetchMain2 +mock.onGet(new RegExp(/^\/empodetails\/fetchmain2$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchMain2 +mock.onGet(new RegExp(/^\/empodetails\/fetchmain2(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:empodetail 方法: FetchMain2"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); + + // FetchWaitBook mock.onGet(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/empodetails\/fetchwaitbook$/)).reply((config: any) => { console.groupCollapsed("实体:empodetail 方法: FetchWaitBook"); diff --git a/app_DynaWeb/src/mock/entity/empos/empos.ts b/app_DynaWeb/src/mock/entity/empos/empos.ts index c20a6af83972de71509422e84acefc72924db12e..b541a3b0a1c52a9005a81a4cf685b4c67a9178d0 100644 --- a/app_DynaWeb/src/mock/entity/empos/empos.ts +++ b/app_DynaWeb/src/mock/entity/empos/empos.ts @@ -271,44 +271,6 @@ mock.onPost(new RegExp(/^\/empos\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply(( return [status, data]; }); -// GenId -mock.onPost(new RegExp(/^\/empos\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:empo 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['empoid']; - const matchArray:any = new RegExp(/^\/empos\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.empoid, tempValue.empoid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['empoid'] == tempValue['empoid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - // PlaceOrder mock.onPost(new RegExp(/^\/empos\/?([a-zA-Z0-9\-\;]{0,35})\/placeorder$/)).reply((config: any) => { console.groupCollapsed("实体:empo 方法: PlaceOrder"); diff --git a/app_DynaWeb/src/mock/entity/emservice-evls/emservice-evls.ts b/app_DynaWeb/src/mock/entity/emservice-evls/emservice-evls.ts index 5879d761372e7bd6208e57df4907a0fa6473b1a6..c723f45eab29966bd96f7c80bad59bd120fd9cc2 100644 --- a/app_DynaWeb/src/mock/entity/emservice-evls/emservice-evls.ts +++ b/app_DynaWeb/src/mock/entity/emservice-evls/emservice-evls.ts @@ -298,71 +298,6 @@ mock.onGet(new RegExp(/^\/emserviceevls\/getdraft$/)).reply((config: any) => { }); -// CaclEvlResult -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emserviceevls\/([a-zA-Z0-9\-\;]{1,35})\/caclevlresult$/)).reply((config: any) => { - console.groupCollapsed("实体:emserviceevl 方法: CaclEvlResult"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emserviceevlid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emserviceevls\/([a-zA-Z0-9\-\;]{1,35})\/caclevlresult$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CaclEvlResult -mock.onPost(new RegExp(/^\/emserviceevls\/?([a-zA-Z0-9\-\;]{0,35})\/caclevlresult$/)).reply((config: any) => { - console.groupCollapsed("实体:emserviceevl 方法: CaclEvlResult"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceevlid']; - const matchArray:any = new RegExp(/^\/emserviceevls\/([a-zA-Z0-9\-\;]{1,35})\/caclevlresult$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emserviceevlid, tempValue.emserviceevlid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emserviceevlid'] == tempValue['emserviceevlid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // CheckKey mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emserviceevls\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { console.groupCollapsed("实体:emserviceevl 方法: CheckKey"); diff --git a/app_DynaWeb/src/mock/entity/emservices/emservices.ts b/app_DynaWeb/src/mock/entity/emservices/emservices.ts index 4d992d4f1edf4a4d5cfc36f0e5d2c52f7e028d8f..36bc58bfc93d1d86218c286542d1e575f3748f71 100644 --- a/app_DynaWeb/src/mock/entity/emservices/emservices.ts +++ b/app_DynaWeb/src/mock/entity/emservices/emservices.ts @@ -347,44 +347,6 @@ mock.onPost(new RegExp(/^\/emservices\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply( return [status, data]; }); -// Submit -mock.onPost(new RegExp(/^\/emservices\/?([a-zA-Z0-9\-\;]{0,35})\/submit$/)).reply((config: any) => { - console.groupCollapsed("实体:emservice 方法: Submit"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/submit$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emserviceid, tempValue.emserviceid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emserviceid'] == tempValue['emserviceid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - // Unconfirmed mock.onPost(new RegExp(/^\/emservices\/?([a-zA-Z0-9\-\;]{0,35})\/unconfirmed$/)).reply((config: any) => { console.groupCollapsed("实体:emservice 方法: Unconfirmed"); @@ -605,6 +567,7 @@ mock.onGet(new RegExp(/^\/emservices\/fetchtoconfirm(\?[\w-./?%&=,]*)*$/)).reply // URI参数传递情况未实现 // URI参数传递情况未实现 // URI参数传递情况未实现 +// URI参数传递情况未实现 // Remove diff --git a/app_DynaWeb/src/mock/entity/emwo-dps/emwo-dps.ts b/app_DynaWeb/src/mock/entity/emwo-dps/emwo-dps.ts index a2d5e3be64a1b7b523984a49654aa69722cb50e8..6d674692aa8147b383ee005dae2b0143b1b2170d 100644 --- a/app_DynaWeb/src/mock/entity/emwo-dps/emwo-dps.ts +++ b/app_DynaWeb/src/mock/entity/emwo-dps/emwo-dps.ts @@ -740,125 +740,6 @@ mock.onPost(new RegExp(/^\/emwo_dps\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl }); -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_dpid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emwo_dpid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_dpid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emwo_dps\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_dpid']; - const matchArray:any = new RegExp(/^\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_dpid, tempValue.emwo_dpid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_dpid'] == tempValue['emwo_dpid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // FormUpdateByEmquipId mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyemquipid$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_dp 方法: FormUpdateByEmquipId"); @@ -978,125 +859,6 @@ mock.onPut(new RegExp(/^\/emwo_dps\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyemquip }); -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_dpid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emwo_dpid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_dpid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emwo_dps\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_dp 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_dpid']; - const matchArray:any = new RegExp(/^\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_dpid, tempValue.emwo_dpid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_dpid'] == tempValue['emwo_dpid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Save mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_dps\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_dp 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/emwo-ens/emwo-ens.ts b/app_DynaWeb/src/mock/entity/emwo-ens/emwo-ens.ts index 313aa7248e9d91d991fba4a65c3362d66625af2a..fc6a09816e79c0219cf1538417697e721655cb9b 100644 --- a/app_DynaWeb/src/mock/entity/emwo-ens/emwo-ens.ts +++ b/app_DynaWeb/src/mock/entity/emwo-ens/emwo-ens.ts @@ -584,98 +584,6 @@ mock.onPost(new RegExp(/^\/emwo_ens\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl }); -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_en 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_enid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_en 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_enid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emwo_ens\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_en 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_enid']; - const matchArray:any = new RegExp(/^\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_enid, tempValue.emwo_enid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_enid'] == tempValue['emwo_enid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // FormUpdateByEmequipid mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyemequipid$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_en 方法: FormUpdateByEmequipid"); @@ -768,98 +676,6 @@ mock.onPut(new RegExp(/^\/emwo_ens\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyemequi }); -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_en 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_enid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_en 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_enid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emwo_ens\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_en 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_enid']; - const matchArray:any = new RegExp(/^\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_enid, tempValue.emwo_enid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_enid'] == tempValue['emwo_enid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Save mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_ens\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_en 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/emwo-inners/emwo-inners.ts b/app_DynaWeb/src/mock/entity/emwo-inners/emwo-inners.ts index b050572b09e1ae0b333b371597961cf94e2bd98b..864fe80e322ff5a9ee0db9e2ad1343fa6599230a 100644 --- a/app_DynaWeb/src/mock/entity/emwo-inners/emwo-inners.ts +++ b/app_DynaWeb/src/mock/entity/emwo-inners/emwo-inners.ts @@ -584,98 +584,6 @@ mock.onPost(new RegExp(/^\/emwo_inners\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).r }); -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_inner 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_innerid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_inner 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_innerid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emwo_inners\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_inner 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_innerid']; - const matchArray:any = new RegExp(/^\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_innerid, tempValue.emwo_innerid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_innerid'] == tempValue['emwo_innerid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // FormUpdateByEmequipid mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyemequipid$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_inner 方法: FormUpdateByEmequipid"); @@ -768,98 +676,6 @@ mock.onPut(new RegExp(/^\/emwo_inners\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyeme }); -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_inner 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_innerid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_inner 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_innerid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emwo_inners\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_inner 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_innerid']; - const matchArray:any = new RegExp(/^\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_innerid, tempValue.emwo_innerid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_innerid'] == tempValue['emwo_innerid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Save mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_inners\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_inner 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/emwo-oscs/emwo-oscs.ts b/app_DynaWeb/src/mock/entity/emwo-oscs/emwo-oscs.ts index 9345c22760dd710e79fbd1540f2093aa7072000a..7cc3cb2c9167c20f880d74685f35349c446f3916 100644 --- a/app_DynaWeb/src/mock/entity/emwo-oscs/emwo-oscs.ts +++ b/app_DynaWeb/src/mock/entity/emwo-oscs/emwo-oscs.ts @@ -584,98 +584,6 @@ mock.onPost(new RegExp(/^\/emwo_oscs\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).rep }); -// CheckValue -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_osc 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_oscid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_osc 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_oscid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emwo_oscs\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_osc 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_oscid']; - const matchArray:any = new RegExp(/^\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_oscid, tempValue.emwo_oscid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_oscid'] == tempValue['emwo_oscid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // FormUpdateByEmequipid mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/formupdatebyemequipid$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_osc 方法: FormUpdateByEmequipid"); @@ -768,98 +676,6 @@ mock.onPut(new RegExp(/^\/emwo_oscs\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyemequ }); -// GenId -mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_osc 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['pfteamid','emequipid','emwo_oscid']; - const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_osc 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emequipid','emwo_oscid']; - const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emwo_oscs\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwo_osc 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwo_oscid']; - const matchArray:any = new RegExp(/^\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwo_oscid, tempValue.emwo_oscid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwo_oscid'] == tempValue['emwo_oscid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Save mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emwo_oscs\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { console.groupCollapsed("实体:emwo_osc 方法: Save"); diff --git a/app_DynaWeb/src/mock/entity/emwplists/emwplists.ts b/app_DynaWeb/src/mock/entity/emwplists/emwplists.ts index 22d02379271941da67d23255ce63ffb700f0fc7c..fa75048ab134d5d85b48423c0222e68bc51ff3ab 100644 --- a/app_DynaWeb/src/mock/entity/emwplists/emwplists.ts +++ b/app_DynaWeb/src/mock/entity/emwplists/emwplists.ts @@ -879,179 +879,6 @@ mock.onPost(new RegExp(/^\/emwplists\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).rep }); -// CheckValue -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// CheckValue -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// CheckValue -mock.onPost(new RegExp(/^\/emwplists\/?([a-zA-Z0-9\-\;]{0,35})\/checkvalue$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: CheckValue"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwplistid']; - const matchArray:any = new RegExp(/^\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/checkvalue$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwplistid, tempValue.emwplistid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwplistid'] == tempValue['emwplistid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // Confirm mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/confirm$/)).reply((config: any) => { console.groupCollapsed("实体:emwplist 方法: Confirm"); @@ -1571,179 +1398,6 @@ mock.onPut(new RegExp(/^\/emwplists\/?([a-zA-Z0-9\-\;]{0,35})\/formupdatebyaempi }); -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emstorepartid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstoreid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emstorepartid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emserviceid','emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - - -// GenId -mock.onPost(new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emitemid','emwplistid']; - const matchArray:any = new RegExp(/^\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table({}); - console.groupEnd(); - console.groupEnd(); - return [status, {}]; -}); - -// GenId -mock.onPost(new RegExp(/^\/emwplists\/?([a-zA-Z0-9\-\;]{0,35})\/genid$/)).reply((config: any) => { - console.groupCollapsed("实体:emwplist 方法: GenId"); - console.table({url:config.url, method: config.method, data:config.data}); - let status = MockAdapter.mockStatus(config); - if (status !== 200) { - return [status, null]; - } - const paramArray:Array = ['emwplistid']; - const matchArray:any = new RegExp(/^\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genid$/).exec(config.url); - let tempValue: any = {}; - if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ - paramArray.forEach((item: any, index: number) => { - Object.defineProperty(tempValue, item, { - enumerable: true, - value: matchArray[index + 1] - }); - }); - } - //let items = mockDatas ? mockDatas : []; - //let _items = items.find((item: any) => Object.is(item.emwplistid, tempValue.emwplistid)); - let data = JSON.parse(config.data); - mockDatas.forEach((item)=>{ - if(item['emwplistid'] == tempValue['emwplistid'] ){ - for(let value in data){ - if(item.hasOwnProperty(value)){ - item[value] = data[value]; - } - } - } - }) - console.groupCollapsed("response数据 status: "+status+" data: "); - console.table(data); - console.groupEnd(); - console.groupEnd(); - return [status, data]; -}); - - // GenPO mock.onPost(new RegExp(/^\/emstores\/([a-zA-Z0-9\-\;]{1,35})\/emstoreparts\/([a-zA-Z0-9\-\;]{1,35})\/emitems\/([a-zA-Z0-9\-\;]{1,35})\/emwplists\/([a-zA-Z0-9\-\;]{1,35})\/genpo$/)).reply((config: any) => { console.groupCollapsed("实体:emwplist 方法: GenPO"); diff --git a/app_DynaWeb/src/mock/entity/planschedule-ds/planschedule-ds.ts b/app_DynaWeb/src/mock/entity/planschedule-ds/planschedule-ds.ts new file mode 100644 index 0000000000000000000000000000000000000000..524131c227f701ae0d0e11a22e9a2080e4bc5ba0 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/planschedule-ds/planschedule-ds.ts @@ -0,0 +1,380 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ds\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ds\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/planschedule_ds\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/planschedule_ds\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/planschedule_ds\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + +// Select +mock.onGet(new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_did, tempValue.planschedule_did)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Create +mock.onPost(new RegExp(/^\/planschedule_ds\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + +// Update +mock.onPut(new RegExp(/^\/planschedule_ds\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_did, tempValue.planschedule_did)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_did'] == tempValue['planschedule_did'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/planschedule_ds\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/planschedule_ds\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_did, tempValue.planschedule_did)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_did'] == tempValue['planschedule_did'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// Save +mock.onPost(new RegExp(/^\/planschedule_ds\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_did, tempValue.planschedule_did)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_did'] == tempValue['planschedule_did'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ds\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ds\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_did, tempValue.planschedule_did)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_d 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_did']; + const matchArray:any = new RegExp(/^\/planschedule_ds\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_did, tempValue.planschedule_did)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/entity/planschedule-ms/planschedule-ms.ts b/app_DynaWeb/src/mock/entity/planschedule-ms/planschedule-ms.ts new file mode 100644 index 0000000000000000000000000000000000000000..a7d005e057889e6b3ae6758f253d742f2cfc4868 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/planschedule-ms/planschedule-ms.ts @@ -0,0 +1,380 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ms\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ms\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/planschedule_ms\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/planschedule_ms\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/planschedule_ms\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + +// Select +mock.onGet(new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_mid, tempValue.planschedule_mid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Create +mock.onPost(new RegExp(/^\/planschedule_ms\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + +// Update +mock.onPut(new RegExp(/^\/planschedule_ms\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_mid, tempValue.planschedule_mid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_mid'] == tempValue['planschedule_mid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/planschedule_ms\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/planschedule_ms\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_mid, tempValue.planschedule_mid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_mid'] == tempValue['planschedule_mid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// Save +mock.onPost(new RegExp(/^\/planschedule_ms\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_mid, tempValue.planschedule_mid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_mid'] == tempValue['planschedule_mid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ms\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ms\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_mid, tempValue.planschedule_mid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_m 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_mid']; + const matchArray:any = new RegExp(/^\/planschedule_ms\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_mid, tempValue.planschedule_mid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/entity/planschedule-os/planschedule-os.ts b/app_DynaWeb/src/mock/entity/planschedule-os/planschedule-os.ts new file mode 100644 index 0000000000000000000000000000000000000000..ca05d51bfed5c6b0e0b9c3b486fd5c7a519de795 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/planschedule-os/planschedule-os.ts @@ -0,0 +1,380 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_os\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_os\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/planschedule_os\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/planschedule_os\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/planschedule_os\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + +// Select +mock.onGet(new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_oid, tempValue.planschedule_oid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Create +mock.onPost(new RegExp(/^\/planschedule_os\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + +// Update +mock.onPut(new RegExp(/^\/planschedule_os\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_oid, tempValue.planschedule_oid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_oid'] == tempValue['planschedule_oid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/planschedule_os\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/planschedule_os\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_oid, tempValue.planschedule_oid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_oid'] == tempValue['planschedule_oid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// Save +mock.onPost(new RegExp(/^\/planschedule_os\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_oid, tempValue.planschedule_oid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_oid'] == tempValue['planschedule_oid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_os\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_os\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_oid, tempValue.planschedule_oid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_o 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_oid']; + const matchArray:any = new RegExp(/^\/planschedule_os\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_oid, tempValue.planschedule_oid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/entity/planschedule-ts/planschedule-ts.ts b/app_DynaWeb/src/mock/entity/planschedule-ts/planschedule-ts.ts new file mode 100644 index 0000000000000000000000000000000000000000..d2a951723e25d8b52033a7f471a353b70e5c68c3 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/planschedule-ts/planschedule-ts.ts @@ -0,0 +1,380 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ts\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ts\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/planschedule_ts\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/planschedule_ts\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/planschedule_ts\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + +// Select +mock.onGet(new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_tid, tempValue.planschedule_tid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Create +mock.onPost(new RegExp(/^\/planschedule_ts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + +// Update +mock.onPut(new RegExp(/^\/planschedule_ts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_tid, tempValue.planschedule_tid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_tid'] == tempValue['planschedule_tid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/planschedule_ts\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/planschedule_ts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_tid, tempValue.planschedule_tid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_tid'] == tempValue['planschedule_tid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// Save +mock.onPost(new RegExp(/^\/planschedule_ts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_tid, tempValue.planschedule_tid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_tid'] == tempValue['planschedule_tid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ts\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ts\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_tid, tempValue.planschedule_tid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_t 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_tid']; + const matchArray:any = new RegExp(/^\/planschedule_ts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_tid, tempValue.planschedule_tid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/entity/planschedule-ws/planschedule-ws.ts b/app_DynaWeb/src/mock/entity/planschedule-ws/planschedule-ws.ts new file mode 100644 index 0000000000000000000000000000000000000000..8492ad4125931422c347703cebb9d0526758bd45 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/planschedule-ws/planschedule-ws.ts @@ -0,0 +1,380 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ws\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedule_ws\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/planschedule_ws\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/planschedule_ws\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/planschedule_ws\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + +// Select +mock.onGet(new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_wid, tempValue.planschedule_wid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Create +mock.onPost(new RegExp(/^\/planschedule_ws\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + +// Update +mock.onPut(new RegExp(/^\/planschedule_ws\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_wid, tempValue.planschedule_wid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_wid'] == tempValue['planschedule_wid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/planschedule_ws\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/planschedule_ws\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_wid, tempValue.planschedule_wid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_wid'] == tempValue['planschedule_wid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// Save +mock.onPost(new RegExp(/^\/planschedule_ws\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planschedule_wid, tempValue.planschedule_wid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planschedule_wid'] == tempValue['planschedule_wid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ws\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedule_ws\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_wid, tempValue.planschedule_wid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule_w 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planschedule_wid']; + const matchArray:any = new RegExp(/^\/planschedule_ws\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planschedule_wid, tempValue.planschedule_wid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/entity/planschedules/planschedules.ts b/app_DynaWeb/src/mock/entity/planschedules/planschedules.ts new file mode 100644 index 0000000000000000000000000000000000000000..364966247571dcca2d9dc6a139e887503c7c11f9 --- /dev/null +++ b/app_DynaWeb/src/mock/entity/planschedules/planschedules.ts @@ -0,0 +1,3892 @@ +import qs from 'qs'; +import { MockAdapter } from '@/mock/mock-adapter'; +const mock = MockAdapter.getInstance(); + +// 模拟数据 +const mockDatas: Array = [ +]; + + +//getwflink +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedules\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: getwflink"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status,[ + {"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddlfldldfldsfds","refViewKey":""}, + {"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意", + "taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1", + "processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"} + ]]; +}); + +// getwfstep +mock.onGet(new RegExp(/^\/wfcore\/eam-app-dynaweb\/planschedules\/process-definitions-nodes$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: getwfstep"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, [ + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd", + "userTaskName":"待审", + "cnt":0, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1" + }, + {"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927", + "userTaskName":"待分配", + "cnt":3, + "processDefinitionKey":"support-workorders-approve-v1", + "processDefinitionName":"工单审批流程v1"} + ]]; +}); + +// createBatch +mock.onPost(new RegExp(/^\/planschedules\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: createBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// updateBatch +mock.onPut(new RegExp(/^\/planschedules\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: updateBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + +// removeBatch +mock.onDelete(new RegExp(/^\/planschedules\/batch$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: removeBatch"); + console.table({url:config.url, method: config.method, data:config.data}); + console.groupEnd(); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, {}]; + } + return [status, {}]; +}); + + + +// Select +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Select +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + +// Select +mock.onGet(new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Select"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items); + console.groupEnd(); + console.groupEnd(); + return [status, _items]; +}); + + +// Create +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Create +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// Create +mock.onPost(new RegExp(/^\/planschedules\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Create"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas[0]); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas[0]]; +}); + + +// Update +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Update +mock.onPut(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// Update +mock.onPut(new RegExp(/^\/planschedules\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Update"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planscheduleid'] == tempValue['planscheduleid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + + + + + + + + + + + + + + + + + + + + + +// GetDraft +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GetDraft +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// GetDraft +mock.onGet(new RegExp(/^\/planschedules\/getdraft$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GetDraft"); + console.table({url:config.url, method: config.method, data:config.data}); + // GetDraft + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// CheckKey +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// CheckKey +mock.onPost(new RegExp(/^\/planschedules\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: CheckKey"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planscheduleid'] == tempValue['planscheduleid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// GenTask +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// GenTask +mock.onPost(new RegExp(/^\/planschedules\/?([a-zA-Z0-9\-\;]{0,35})\/gentask$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: GenTask"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/gentask$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planscheduleid'] == tempValue['planscheduleid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + +// Save +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + + +// Save +mock.onPost(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table({}); + console.groupEnd(); + console.groupEnd(); + return [status, {}]; +}); + +// Save +mock.onPost(new RegExp(/^\/planschedules\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Save"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + //let items = mockDatas ? mockDatas : []; + //let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + let data = JSON.parse(config.data); + mockDatas.forEach((item)=>{ + if(item['planscheduleid'] == tempValue['planscheduleid'] ){ + for(let value in data){ + if(item.hasOwnProperty(value)){ + item[value] = data[value]; + } + } + } + }) + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(data); + console.groupEnd(); + console.groupEnd(); + return [status, data]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchDefault +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchDefault +mock.onGet(new RegExp(/^\/planschedules\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchDefault"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + + +// FetchIndexDER +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid']; + let tempValue: any = {}; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/fetchdefault$/).exec(config.url); + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + if (items.length > 0 && paramArray.length > 0) { + paramArray.forEach((paramkey: any) => { + if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) { + let keysGrounp: Array = tempValue[paramkey].split(new RegExp(/[\;]/)); + let tempArray: Array = []; + keysGrounp.forEach((singlekey: any) => { + let _items = items.filter((item: any) => { return item[paramkey] == singlekey }); + if(_items.length >0){ + tempArray.push(..._items); + } + }) + items = tempArray; + } else { + items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] }); + } + }) + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(items); + console.groupEnd(); + console.groupEnd(); + return [status, items]; +}); + +// FetchIndexDER +mock.onGet(new RegExp(/^\/planschedules\/fetchdefault$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(mockDatas); + console.groupEnd(); + console.groupEnd(); + return [status, mockDatas ? mockDatas : []]; +}); + +// FetchIndexDER +mock.onGet(new RegExp(/^\/planschedules\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: FetchIndexDER"); + console.table({url:config.url, method: config.method, data:config.data}); + if(config.url.includes('page')){ + let url = config.url.split('?')[1]; + let params = qs.parse(url); + Object.assign(config, params); + } + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + let total = mockDatas.length; + let records: Array = []; + if(!config.page || !config.size){ + records = mockDatas; + }else{ + if((config.page-1)*config.size < total){ + records = mockDatas.slice(config.page,config.size); + } + } + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(records ? records : []); + console.groupEnd(); + console.groupEnd(); + return [status, records ? records : []]; +}); + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 + +// URI参数传递情况未实现 +// URI参数传递情况未实现 + + +// Remove +mock.onDelete(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Remove +mock.onDelete(new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Remove"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['pfteamid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/pfteams\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emserviceid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emservices\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplantemplid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplantempls\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emequipid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emequips\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emacclassid','emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emacclasses\/([a-zA-Z0-9\-\;]{1,35})\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['emplanid','planscheduleid']; + const matchArray:any = new RegExp(/^\/emplans\/([a-zA-Z0-9\-\;]{1,35})\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); + +// Get +mock.onGet(new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { + console.groupCollapsed("实体:planschedule 方法: Get"); + console.table({url:config.url, method: config.method, data:config.data}); + let status = MockAdapter.mockStatus(config); + if (status !== 200) { + return [status, null]; + } + const paramArray:Array = ['planscheduleid']; + const matchArray:any = new RegExp(/^\/planschedules\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url); + let tempValue: any = {}; + if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ + paramArray.forEach((item: any, index: number) => { + Object.defineProperty(tempValue, item, { + enumerable: true, + value: matchArray[index + 1] + }); + }); + } + let items = mockDatas ? mockDatas : []; + let _items = items.find((item: any) => Object.is(item.planscheduleid, tempValue.planscheduleid)); + console.groupCollapsed("response数据 status: "+status+" data: "); + console.table(_items?_items:{}); + console.groupEnd(); + console.groupEnd(); + return [status, _items?_items:{}]; +}); diff --git a/app_DynaWeb/src/mock/index.ts b/app_DynaWeb/src/mock/index.ts index fccb47c1ff51879888005738040adad08bdead5d..6a345685bdd34f0dc45f59049057aaed6a594fe7 100644 --- a/app_DynaWeb/src/mock/index.ts +++ b/app_DynaWeb/src/mock/index.ts @@ -9,12 +9,17 @@ import './upload/upload'; // 实体级接口对象 import './entity/emobj-maps/emobj-maps'; import './entity/emeqwls/emeqwls'; +import './entity/planschedule-ds/planschedule-ds'; +import './entity/planschedule-ws/planschedule-ws'; +import './entity/planschedule-ts/planschedule-ts'; import './entity/emres-items/emres-items'; import './entity/emworks/emworks'; import './entity/emeqmpmtrs/emeqmpmtrs'; +import './entity/planschedule-ms/planschedule-ms'; import './entity/emeqlctmaps/emeqlctmaps'; import './entity/emeqmps/emeqmps'; import './entity/emeqkprcds/emeqkprcds'; +import './entity/planschedules/planschedules'; import './entity/emdprcts/emdprcts'; import './entity/emeqkpmaps/emeqkpmaps'; import './entity/emplans/emplans'; @@ -62,6 +67,7 @@ import './entity/emwooris/emwooris'; import './entity/emplan-details/emplan-details'; import './entity/emplan-templs/emplan-templs'; import './entity/emwo-dps/emwo-dps'; +import './entity/planschedule-os/planschedule-os'; import './entity/emens/emens'; import './entity/empos/empos'; import './entity/pfunits/pfunits'; @@ -70,6 +76,7 @@ import './entity/emberths/emberths'; import './entity/emeqlcttiress/emeqlcttiress'; import './entity/emitem-routs/emitem-routs'; import './entity/emeqkeeps/emeqkeeps'; +import './entity/emplanrecords/emplanrecords'; import './entity/emitem-rins/emitem-rins'; import './entity/emeqmaintances/emeqmaintances'; import './entity/emitem-puses/emitem-puses'; diff --git a/app_DynaWeb/src/mock/viewconfig/viewconfig.ts b/app_DynaWeb/src/mock/viewconfig/viewconfig.ts index 4a416bd6eef6a281d97aacbe359a13201ef60c3e..7eba4e173ed3fff0002d753850cdff79f6beab7d 100644 --- a/app_DynaWeb/src/mock/viewconfig/viewconfig.ts +++ b/app_DynaWeb/src/mock/viewconfig/viewconfig.ts @@ -223,6 +223,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMEQLCTGSSGridView", "viewtag": "0a1716c8b1771381f72547ea0905a55b" }, + "planscheduleeditview": { + "title": "计划时刻设置编辑视图", + "caption": "计划时刻设置", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEEditView", + "viewtag": "0a231f92610f4e779263fc1a5593957d" + }, "emwo_enconfirmedgridview": { "title": "能耗登记工单表格视图", "caption": "能耗工单-已完成", @@ -383,6 +391,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMWO_DPTabExpView", "viewtag": "122781dc9376a420a1f304b8dbed1d73" }, + "planschedule_meditview": { + "title": "计划_按月编辑视图", + "caption": "计划_按月", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_MEditView", + "viewtag": "12a4ea20f30b853f60c8698cb0e863c3" + }, "emeqsetuppickupgridview": { "title": "更换安装选择表格视图", "caption": "更换安装", @@ -1063,6 +1079,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMEQKeepGridView", "viewtag": "42aa98021989fcf477a065d668336104" }, + "planschedule_weditview": { + "title": "计划_按周编辑视图", + "caption": "计划_按周", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_WEditView", + "viewtag": "4393ac636736bbd8edd3d8838f7d387d" + }, "emeqsparegridexpview": { "title": "备件包表格导航视图", "caption": "备件包", @@ -1679,6 +1703,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMACCLASSPickupView", "viewtag": "7016b925f12b320d5c647f897e38fa5b" }, + "emplanrecordeditview": { + "title": "触发记录编辑视图", + "caption": "触发记录", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "EMPLANRECORDEditView", + "viewtag": "7073c118bddf20ea6f61278f77da89c1" + }, "emeqlocationalllocgridview": { "title": "位置", "caption": "位置", @@ -2007,6 +2039,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMPOPlaceOrderGridView", "viewtag": "81c57e20fee46d4fef9a18dc3cec482a" }, + "planschedule_deditview": { + "title": "计划_按天编辑视图", + "caption": "计划_按天", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_DEditView", + "viewtag": "81e8c7ee7954497834e59afaa3577e1d" + }, "emacclasspickupgridview": { "title": "总帐科目选择表格视图", "caption": "总帐科目", @@ -2551,6 +2591,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMWORedirectView", "viewtag": "a7684cbce4182b622c8e22309b187e41" }, + "emplanrecordgridview": { + "title": "触发记录表格视图", + "caption": "触发记录", + "viewtype": "DEGRIDVIEW", + "viewmodule": "eam_core", + "viewname": "EMPLANRECORDGridView", + "viewtag": "a840c26605a5707b568f74aa676a9dc0" + }, "emitempusepickupview": { "title": "领料单数据选择视图", "caption": "领料单", @@ -2999,6 +3047,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMASSETCLEAREditView_908", "viewtag": "be2aa30daf8afefdd2678354f72afadb" }, + "planscheduleindexpickupview": { + "title": "计划时刻设置数据选择视图", + "caption": "计划时刻设置", + "viewtype": "DEPICKUPVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEIndexPickupView", + "viewtag": "be890cca9106c9ff64282f1fbd49cc6e" + }, "pfunitgridview": { "title": "计量单位", "caption": "计量单位", @@ -3183,6 +3239,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMEQLCTRHYGridView", "viewtag": "cbc85b568266a8900a647f28d3ad0ba0" }, + "planscheduleindexpickupdataview": { + "title": "计划时刻设置索引关系选择数据视图", + "caption": "计划时刻设置", + "viewtype": "DEINDEXPICKUPDATAVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEIndexPickupDataView", + "viewtag": "cd26835199dc38cdccecb09f28b2e719" + }, "emservicepickupview": { "title": "服务商数据选择视图", "caption": "服务商", @@ -3303,6 +3367,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMPRODUCTEditView9", "viewtag": "d679c28852d1b3f8b0a30ba2077a54b7" }, + "planschedulegridview": { + "title": "计划时刻设置表格视图", + "caption": "计划时刻设置", + "viewtype": "DEGRIDVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULEGridView", + "viewtag": "d69fa3b369c99b90c184deb278044b43" + }, "emstockeditview": { "title": "库存明细", "caption": "库存明细", @@ -3436,7 +3508,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "caption": "询价单", "viewtype": "DEEDITVIEW9", "viewmodule": "eam_wp", - "viewname": "EMWPLISTCOSTEditView9_EditMode", + "viewname": "EMWPListCostEditView9_EditMode", "viewtag": "de84daa41e0fc0f58294103ec30af059" }, "emrfodetypegridview": { @@ -3751,6 +3823,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMEQSpareMapEquipGridView9", "viewtag": "ee7e4f1105b7a8d49865dce1ecc8c8e3" }, + "planschedule_teditview": { + "title": "定时编辑视图", + "caption": "计划_定时", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_TEditView", + "viewtag": "eebcbc96e525326a86bf25d7ace199ef" + }, "pfempdeptempgridview": { "title": "职员", "caption": "职员", @@ -3935,6 +4015,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { "viewname": "EMItemCSTabExpView", "viewtag": "fdff4fa9c40fbd3e00f3d72eccaa2b1e" }, + "planschedule_oeditview": { + "title": "自定义间隔天数编辑视图", + "caption": "自定义间隔天数", + "viewtype": "DEEDITVIEW", + "viewmodule": "eam_core", + "viewname": "PLANSCHEDULE_OEditView", + "viewtag": "feeb9ab1b8091d9504986447eddb2964" + }, "emwo_entoconfirmgridview": { "title": "能耗登记工单表格视图", "caption": "能耗工单-执行中", diff --git a/app_DynaWeb/src/pages/eam-act/emeqcheck-grid-view/emeqcheck-grid-view-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqcheck-grid-view/emeqcheck-grid-view-base.tsx index cf8425526f5b73de8dda281ef41ec851c615e02f..9b5d076e10428e51734aaecfae8c79e35efc135c 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqcheck-grid-view/emeqcheck-grid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqcheck-grid-view/emeqcheck-grid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMEQCheckService from '@/service/emeqcheck/emeqcheck-service'; import EMEQCheckAuthService from '@/authservice/emeqcheck/emeqcheck-auth-service'; @@ -112,9 +112,9 @@ export class EMEQCheckGridViewBase extends GridViewBase { * @memberof EMEQCheckGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqcheck.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-act/emeqcheckedit-view9-edit-mode/emeqcheckedit-view9-edit-mode-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqcheckedit-view9-edit-mode/emeqcheckedit-view9-edit-mode-base.tsx index 4040c06696fe79c8235df89c65350145ad662b37..4f18022679ec79e222dc98f508737ceba6bfa482 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqcheckedit-view9-edit-mode/emeqcheckedit-view9-edit-mode-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqcheckedit-view9-edit-mode/emeqcheckedit-view9-edit-mode-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditView9Base } from '@/studio-core'; import EMEQCheckService from '@/service/emeqcheck/emeqcheck-service'; import EMEQCheckAuthService from '@/authservice/emeqcheck/emeqcheck-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-act/emeqdebug-grid-view/emeqdebug-grid-view-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqdebug-grid-view/emeqdebug-grid-view-base.tsx index 40a5982189832973fb86871412d7e76ddc9b65df..470144ba412f7c42a6deb64d0086ed81aa87d702 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqdebug-grid-view/emeqdebug-grid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqdebug-grid-view/emeqdebug-grid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMEQDebugService from '@/service/emeqdebug/emeqdebug-service'; import EMEQDebugAuthService from '@/authservice/emeqdebug/emeqdebug-auth-service'; @@ -112,9 +112,9 @@ export class EMEQDebugGridViewBase extends GridViewBase { * @memberof EMEQDebugGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqdebug.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-act/emeqdebugedit-view9-edit-mode/emeqdebugedit-view9-edit-mode-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqdebugedit-view9-edit-mode/emeqdebugedit-view9-edit-mode-base.tsx index 88200a2c80de19984462f7fe5b23ea85e6aeaff5..4b128a75d91e96ca8f990064c029cbb7b893d58f 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqdebugedit-view9-edit-mode/emeqdebugedit-view9-edit-mode-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqdebugedit-view9-edit-mode/emeqdebugedit-view9-edit-mode-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditView9Base } from '@/studio-core'; import EMEQDebugService from '@/service/emeqdebug/emeqdebug-service'; import EMEQDebugAuthService from '@/authservice/emeqdebug/emeqdebug-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-act/emeqkeep-grid-view/emeqkeep-grid-view-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqkeep-grid-view/emeqkeep-grid-view-base.tsx index 98c265be7133da08b42217f81e70a185bc928eb1..88f8cfd4b9d162587b1aeb1b1bdb43623aacfdf6 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqkeep-grid-view/emeqkeep-grid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqkeep-grid-view/emeqkeep-grid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMEQKeepService from '@/service/emeqkeep/emeqkeep-service'; import EMEQKeepAuthService from '@/authservice/emeqkeep/emeqkeep-auth-service'; @@ -112,9 +112,9 @@ export class EMEQKeepGridViewBase extends GridViewBase { * @memberof EMEQKeepGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqkeep.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-act/emeqkeepedit-view9-edit-mode/emeqkeepedit-view9-edit-mode-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqkeepedit-view9-edit-mode/emeqkeepedit-view9-edit-mode-base.tsx index 04ebeb069df421b3ac513aa5c2dbc25cf3df4b69..d7eac290fd1e6ec62174eb7bce14056b33efa6a2 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqkeepedit-view9-edit-mode/emeqkeepedit-view9-edit-mode-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqkeepedit-view9-edit-mode/emeqkeepedit-view9-edit-mode-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditView9Base } from '@/studio-core'; import EMEQKeepService from '@/service/emeqkeep/emeqkeep-service'; import EMEQKeepAuthService from '@/authservice/emeqkeep/emeqkeep-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-act/emeqmaintance-grid-view/emeqmaintance-grid-view-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqmaintance-grid-view/emeqmaintance-grid-view-base.tsx index 9ceac5c0f9decd58c7deae6ae0cdfc1eeb4a1af2..70fb2b7ddb052b809b9217ee4c129eee2e6540c3 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqmaintance-grid-view/emeqmaintance-grid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqmaintance-grid-view/emeqmaintance-grid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMEQMaintanceService from '@/service/emeqmaintance/emeqmaintance-service'; import EMEQMaintanceAuthService from '@/authservice/emeqmaintance/emeqmaintance-auth-service'; @@ -112,9 +112,9 @@ export class EMEQMaintanceGridViewBase extends GridViewBase { * @memberof EMEQMaintanceGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqmaintance.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-act/emeqmaintanceedit-view9-edit-mode/emeqmaintanceedit-view9-edit-mode-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqmaintanceedit-view9-edit-mode/emeqmaintanceedit-view9-edit-mode-base.tsx index cac380a32b9d3344ae00a991a3f36696a4610838..1fcbc48abf0c024c6e126a7d2e1af09129b46fed 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqmaintanceedit-view9-edit-mode/emeqmaintanceedit-view9-edit-mode-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqmaintanceedit-view9-edit-mode/emeqmaintanceedit-view9-edit-mode-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditView9Base } from '@/studio-core'; import EMEQMaintanceService from '@/service/emeqmaintance/emeqmaintance-service'; import EMEQMaintanceAuthService from '@/authservice/emeqmaintance/emeqmaintance-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-act/emeqsetup-grid-view/emeqsetup-grid-view-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqsetup-grid-view/emeqsetup-grid-view-base.tsx index 1b4c273f601d9ae99386bc86b4d1b66fcb84f493..08952a8a78b7d99fd84fdefa999a8e62b37c1086 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqsetup-grid-view/emeqsetup-grid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqsetup-grid-view/emeqsetup-grid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMEQSetupService from '@/service/emeqsetup/emeqsetup-service'; import EMEQSetupAuthService from '@/authservice/emeqsetup/emeqsetup-auth-service'; @@ -112,9 +112,9 @@ export class EMEQSetupGridViewBase extends GridViewBase { * @memberof EMEQSetupGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emeqsetup.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-act/emeqsetupedit-view9-edit-mode/emeqsetupedit-view9-edit-mode-base.tsx b/app_DynaWeb/src/pages/eam-act/emeqsetupedit-view9-edit-mode/emeqsetupedit-view9-edit-mode-base.tsx index 2b417a9770f070c9a1ff14ca291b8d5ef599c2e2..16200e5fcadcea7ed8a3606c196ce396c7cb8d72 100644 --- a/app_DynaWeb/src/pages/eam-act/emeqsetupedit-view9-edit-mode/emeqsetupedit-view9-edit-mode-base.tsx +++ b/app_DynaWeb/src/pages/eam-act/emeqsetupedit-view9-edit-mode/emeqsetupedit-view9-edit-mode-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditView9Base } from '@/studio-core'; import EMEQSetupService from '@/service/emeqsetup/emeqsetup-service'; import EMEQSetupAuthService from '@/authservice/emeqsetup/emeqsetup-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emasset-clear-grid-view-5564/emasset-clear-grid-view-5564-base.tsx b/app_DynaWeb/src/pages/eam-as/emasset-clear-grid-view-5564/emasset-clear-grid-view-5564-base.tsx index 8bd4594fa207b4b409e8d534f91ec7d04c09043c..f85e6030d0862fa00359bf5872949bf91dc589ea 100644 --- a/app_DynaWeb/src/pages/eam-as/emasset-clear-grid-view-5564/emasset-clear-grid-view-5564-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emasset-clear-grid-view-5564/emasset-clear-grid-view-5564-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMAssetClearService from '@/service/emasset-clear/emasset-clear-service'; import EMAssetClearAuthService from '@/authservice/emasset-clear/emasset-clear-auth-service'; @@ -115,7 +115,7 @@ export class EMAssetClearGridView_5564Base extends GridViewBase { tbitem1_clear: { name: 'tbitem1_clear', caption: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem1_clear.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem1_clear.tip', iconcls: 'fa fa-cog', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Clear', target: 'NONE', class: '' } }, tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem8: { name: 'tbitem8', caption: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridview_5564toolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-as/emassetclassedit-view-4778/emassetclassedit-view-4778-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclassedit-view-4778/emassetclassedit-view-4778-base.tsx index b3293c06bdace5834e13c8b9fbae2c10ed832fbf..afbc648932d60eeaedf7eb5b43157b81b21ec020 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclassedit-view-4778/emassetclassedit-view-4778-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclassedit-view-4778/emassetclassedit-view-4778-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditViewBase } from '@/studio-core'; import EMAssetClassService from '@/service/emasset-class/emasset-class-service'; import EMAssetClassAuthService from '@/authservice/emasset-class/emasset-class-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetclassedit-view/emassetclassedit-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclassedit-view/emassetclassedit-view-base.tsx index 24380c499a3e5fae072c2eeb5531950ca78ea54e..974ecfe8a5774780321a8a0ebf81cfff5914b6cb 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclassedit-view/emassetclassedit-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclassedit-view/emassetclassedit-view-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditViewBase } from '@/studio-core'; import EMAssetClassService from '@/service/emasset-class/emasset-class-service'; import EMAssetClassAuthService from '@/authservice/emasset-class/emasset-class-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetclassgrid-view/emassetclassgrid-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclassgrid-view/emassetclassgrid-view-base.tsx index d3401555c09738f411669f4940dba970f70175c5..007b7b84cf350e1c53c8c7433949cfee94ee2c61 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclassgrid-view/emassetclassgrid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclassgrid-view/emassetclassgrid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMAssetClassService from '@/service/emasset-class/emasset-class-service'; import EMAssetClassAuthService from '@/authservice/emasset-class/emasset-class-auth-service'; @@ -112,9 +112,9 @@ export class EMASSETCLASSGridViewBase extends GridViewBase { * @memberof EMASSETCLASSGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclass.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-as/emassetclasspickup-grid-view/emassetclasspickup-grid-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclasspickup-grid-view/emassetclasspickup-grid-view-base.tsx index e593cd9acd063aceb94b06e25d6f199ac2ba8bc0..f0993c0798dd1b7b91ce00f27c343668935c2d1f 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclasspickup-grid-view/emassetclasspickup-grid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclasspickup-grid-view/emassetclasspickup-grid-view-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { PickupGridViewBase } from '@/studio-core'; import EMAssetClassService from '@/service/emasset-class/emasset-class-service'; import EMAssetClassAuthService from '@/authservice/emasset-class/emasset-class-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetclasspickup-view/emassetclasspickup-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclasspickup-view/emassetclasspickup-view-base.tsx index 489abd4fe95a16d69b4d8895f1ea3d373a33cfcd..ba2055849a740329ed0042f719bf9446fa75579b 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclasspickup-view/emassetclasspickup-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclasspickup-view/emassetclasspickup-view-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { PickupViewBase } from '@/studio-core'; import EMAssetClassService from '@/service/emasset-class/emasset-class-service'; import EMAssetClassAuthService from '@/authservice/emasset-class/emasset-class-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetclearedit-view-908/emassetclearedit-view-908-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclearedit-view-908/emassetclearedit-view-908-base.tsx index 1bff432365ba3d39422bcc71e25ce6dda406d4e2..53a7414143eee820cb55f7bc7827e41928f9c53e 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclearedit-view-908/emassetclearedit-view-908-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclearedit-view-908/emassetclearedit-view-908-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditViewBase } from '@/studio-core'; import EMAssetClearService from '@/service/emasset-clear/emasset-clear-service'; import EMAssetClearAuthService from '@/authservice/emasset-clear/emasset-clear-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetclearedit-view/emassetclearedit-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetclearedit-view/emassetclearedit-view-base.tsx index 06f6324037d86f8dd1989a9ee147adb55372e66c..b4c78e70dfcfd49fb441a1a9da39392ebdd3a540 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetclearedit-view/emassetclearedit-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetclearedit-view/emassetclearedit-view-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditViewBase } from '@/studio-core'; import EMAssetClearService from '@/service/emasset-clear/emasset-clear-service'; import EMAssetClearAuthService from '@/authservice/emasset-clear/emasset-clear-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetcleargrid-view/emassetcleargrid-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetcleargrid-view/emassetcleargrid-view-base.tsx index aa673045666ec110bbe89e5825d6b22fc4ef9e8d..fd8bce02a16646954ebde6505e9e69d379c9eef6 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetcleargrid-view/emassetcleargrid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetcleargrid-view/emassetcleargrid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMAssetClearService from '@/service/emasset-clear/emasset-clear-service'; import EMAssetClearAuthService from '@/authservice/emasset-clear/emasset-clear-auth-service'; @@ -112,9 +112,9 @@ export class EMASSETCLEARGridViewBase extends GridViewBase { * @memberof EMASSETCLEARGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emassetclear.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-as/emassetedit-view9-edit-mode/emassetedit-view9-edit-mode-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetedit-view9-edit-mode/emassetedit-view9-edit-mode-base.tsx index f3b4f539b68e48ad5e99544f541553f8fccdf954..8bad0e13b0fd39bf864aaa665cd2ad0509e97934 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetedit-view9-edit-mode/emassetedit-view9-edit-mode-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetedit-view9-edit-mode/emassetedit-view9-edit-mode-base.tsx @@ -1,5 +1,5 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { EditView9Base } from '@/studio-core'; import EMAssetService from '@/service/emasset/emasset-service'; import EMAssetAuthService from '@/authservice/emasset/emasset-auth-service'; diff --git a/app_DynaWeb/src/pages/eam-as/emassetgrid-view-bf/emassetgrid-view-bf-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetgrid-view-bf/emassetgrid-view-bf-base.tsx index cfa7ef696613979529c46bab1e23e577622bb178..a667790b1ca2bdc72574d617c0c0e721b7305205 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetgrid-view-bf/emassetgrid-view-bf-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetgrid-view-bf/emassetgrid-view-bf-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMAssetService from '@/service/emasset/emasset-service'; import EMAssetAuthService from '@/authservice/emasset/emasset-auth-service'; @@ -112,9 +112,9 @@ export class EMASSETGridView_BFBase extends GridViewBase { * @memberof EMASSETGridView_BF */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridview_bftoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-as/emassetgrid-view/emassetgrid-view-base.tsx b/app_DynaWeb/src/pages/eam-as/emassetgrid-view/emassetgrid-view-base.tsx index 1b6c7d2d6039bf7c5f2acfe58ee3eaaa0fb340a4..243cdf6346e815914afa3eaa15cfdb861e78c18d 100644 --- a/app_DynaWeb/src/pages/eam-as/emassetgrid-view/emassetgrid-view-base.tsx +++ b/app_DynaWeb/src/pages/eam-as/emassetgrid-view/emassetgrid-view-base.tsx @@ -1,6 +1,6 @@ import { Subject } from 'rxjs'; -import { UIActionTool, ViewTool } from '@/utils'; +import { UIActionTool, ViewTool, Util } from '@/utils'; import { GridViewBase } from '@/studio-core'; import EMAssetService from '@/service/emasset/emasset-service'; import EMAssetAuthService from '@/authservice/emasset/emasset-auth-service'; @@ -112,9 +112,9 @@ export class EMASSETGridViewBase extends GridViewBase { * @memberof EMASSETGridView */ public toolBarModels: any = { - tbitem3: { name: 'tbitem3', caption: 'entities.emasset.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } }, + tbitem3: { name: 'tbitem3', caption: 'entities.emasset.gridviewtoolbar_toolbar.tbitem3.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridviewtoolbar_toolbar.tbitem3.tip', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'NEW', uiaction: { tag: 'New', target: '', class: '' } }, - tbitem4: { name: 'tbitem4', caption: 'entities.emasset.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, + tbitem4: { name: 'tbitem4', caption: 'entities.emasset.gridviewtoolbar_toolbar.tbitem4.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridviewtoolbar_toolbar.tbitem4.tip', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:1,dataaccaction: 'EDIT', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } }, tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visible: true, dataaccaction: '', uiaction: { } }, tbitem8: { name: 'tbitem8', caption: 'entities.emasset.gridviewtoolbar_toolbar.tbitem8.caption', 'isShowCaption': true, 'isShowIcon': true, tooltip: 'entities.emasset.gridviewtoolbar_toolbar.tbitem8.tip', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visible: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } }, diff --git a/app_DynaWeb/src/pages/eam-core/app-index/app-index-base.tsx b/app_DynaWeb/src/pages/eam-core/app-index/app-index-base.tsx index 4ee9a39940dc076a320007e6b9a755c4a0389e95..7a38b69287b144c80e5099246f13934a7f15db97 100644 --- a/app_DynaWeb/src/pages/eam-core/app-index/app-index-base.tsx +++ b/app_DynaWeb/src/pages/eam-core/app-index/app-index-base.tsx @@ -318,9 +318,9 @@ export class AppIndexBase extends Vue { inputMenus.forEach((_item: any) => { if (!this.authService.getMenusPermission(_item)) { _item.hidden = true; - if (_item.items && _item.items.length > 0) { + } + if (_item.items && _item.items.length > 0) { this.computedEffectiveMenus(_item.items); - } } }) } @@ -345,9 +345,14 @@ export class AppIndexBase extends Vue {