瑞利声电固定资产管理系统
ycq
2026-10-16 dbbadb021c2fc171466cc82bd9a7a82cc47165f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
 
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>流程管理</title>
    <!--[if !IE]><!-->
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <!--<![endif]-->
    <!--[if gt IE 8]>
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link href="static/plugins/jquery-easyui/themes/icon.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
 
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
    <script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui-datagrid-dnd/datagrid-dnd.js"></script>
    <script src="static/plugins/ace/src-noconflict/ace.js" type="text/javascript"></script>
 
    <!-- 弹窗加载组件 -->
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
    <script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
 
    <!-- wcp组件 -->
    <script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/plugins/json2.js"></script>
    <![endif]-->
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
    <style>
        html, body {
            height: 100%;
        }
 
        .aa {
            margin-bottom: 20px;
        }
 
        .aa td {
            border: 1px solid #ececec;
            padding: 4px 10px;
        }
    </style>
</head>
 
<body>
<div class="pt-wrap margin-lr" style="padding-top:10px;">
    <table class="aa" width="100%">
        <tr>
            <td style="width:100px;height:40px;">步骤名称:</td>
            <td style="width:200px;">${taskName}</td>
        </tr>
        <tr>
            <td style="height:40px;">办理人员:</td>
            <td>
                <input id="assigneeUserNames" name="assigneeUserNames" class="easyui-textbox" type="text"
                       value="${assigneeUserNames}"
                       data-options="editable:false,buttonText:'选',prompt:'请选择办理人员',onClickButton:function(){selectAssigneeUser();}"
                       style="width:100%;"/>
                <input type="hidden" class="easyui-textbox" id="assigneeUserIds" name="assigneeUserIds"
                       value="${assigneeUserIds}"/>
            </td>
        </tr>
        <tr>
            <td style="height:40px;">更改为步骤:</td>
            <td>
                <select id="targetStepId" class="easyui-combobox" data-options="editable:false,panelHeight:'auto'" style="width:100%;">
                    <option value="">当前步骤(不更改步骤,仅改办理人)</option>
                </select>
            </td>
        </tr>
    </table>
    <div class="pt-form-btn">
        <div class="form-group">
            <button id="btnSave" class="pt-btn pt-btn-primary">修改</button>
            <button id="btnClose" class="pt-btn pt-btn-default">关闭</button>
        </div>
    </div>
</div>
</body>
<script>
    var params = {
        callBack: null
    };
 
    $(function () {
        var oldAssigneeUserIds = "${assigneeUserIds}";
 
        //加载可回退到的步骤(只能改到已经走过的步骤)
        var rollBackTaskList = ${rollBackTaskList};
        var targetStepData = [{value: "", text: "当前步骤(不更改步骤,仅改办理人)"}];
        $.each(rollBackTaskList, function (index, item) {
            targetStepData.push({value: item.id, text: item.name});
        });
        $("#targetStepId").combobox("loadData", targetStepData);
        $("#targetStepId").combobox("setValue", "");
 
        //绑定按钮事件
        $("#btnSave").click(function () {
            var assigneeUserIds = $("#assigneeUserIds").textbox("getText");
            var assigneeUserNames = $("#assigneeUserNames").textbox("getText");
            var targetStepId = $("#targetStepId").combobox("getValue");
 
            if (assigneeUserIds == "" || assigneeUserNames == "") {
                top.wcp.message.warn("请选择办理人员!");
                return;
            }
 
            //不更改步骤时,办理人员必须有变化才允许提交;更改步骤本身就是一次实质性修改,不做这个限制
            if (targetStepId == "" && assigneeUserIds == oldAssigneeUserIds) {
                top.wcp.message.warn("当前办理人员与原有办理人员一致,无需修改!");
                return;
            }
 
            var confirmMsg = targetStepId == "" ? "您确定要修改该步骤的办理人员吗?" : "您确定要把该任务改到所选步骤并指派给所选办理人员吗?";
 
            top.layer.confirm(confirmMsg, function (index) {
                top.layer.close(index);
 
                if (params.callBack) {
                    params.callBack("${taskId}", assigneeUserIds, assigneeUserNames, targetStepId);
                }
 
                closeWindow();
            });
        });
 
        $("#btnClose").click(function () {
            closeWindow();
        });
    });
 
    function selectAssigneeUser() {
        wcp.picker.selectUser({
            title: "选择用户",
            multiSelect: "${multiSelect}" == "true",
            idElement: "assigneeUserIds",
            nameElement: "assigneeUserNames"
        });
    }
 
    //关闭窗口事件
    function closeWindow() {
        var index = top.layer.getFrameIndex(window.name); //获取窗口索引
        top.layer.close(index);
    }
</script>
</html>