| | |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">审批建议</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | |
| | | }
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();
 |
| | | }
 |
| | | //汇总信息
 |
| | | summaryCount = function(){
 |
| | | view.get("#ajaxSummary").execute(function(result){
 |
| | | //console.log(result);
 |
| | | jQuery('#child-num1').text(result.selfTodo);
 |
| | | jQuery('#child-num2').text(result.assignTodo);
 |
| | | jQuery('#child-num3').text(result.todayTodo);
 |
| | | jQuery('#child-num4').text(result.sumTodo);
 |
| | | });
 |
| | | }
 |
| | | 
 |
| | | summaryCount();
 |
| | | 
 |
| | | query();
 |
| | | 
 |
| | | //宣传操作
 |
| | | renderCell1 = function(arg,self){
 |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | var data = arg.data;
 |
| | | var htm = "<a onClick='audit()' class='a-btn1'>指派</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>详细</a>";
 |
| | | var htm = "<a onClick='selectUser()' class='a-btn1'>指派</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>详细</a>";
 |
| | | if(1 == tabIndex){
 |
| | | htm = "<a onClick='showDetail()' class='a-btn2'>详细</a>";
 |
| | | }
 |
| | |
| | | arg.dom.innerHTML = htm;
 |
| | | }
 |
| | | 
 |
| | | //点击审核
 |
| | | audit = function(){
 |
| | | 
 |
| | | }
 |
| | | //点击详细
 |
| | | showDetail = function(){
 |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var dialog = view.get("#dialogMain");
 |
| | | view.get('^btnTag').set('visible',true);
 |
| | | view.get('#btnTodo').set('disabled',false);
 |
| | | if(1 == tabIndex){
 |
| | | view.get('^btnTag').set('visible',false);
 |
| | | view.get('#btnTodo').set('disabled',true);
 |
| | | }
 |
| | | dialog.show();
 |
| | | 
 |
| | |
| | | }
 |
| | | view.get("#ajaxTodo").set('parameter',process).execute(function(result){
 |
| | | if('200' != result.code){
 |
| | | view.get('#dialogTodo').hide();
 |
| | | $alert(result.message);
 |
| | | }else{
 |
| | | $alert("执行成功!");
 |
| | | view.get('#dialogTodo').hide();
 |
| | | view.get("#dialogMain").hide();
 |
| | | query();
 |
| | | }
 |
| | | });
 |
| | |
| | | var process = view.get("#dsProcess.data");
 |
| | | process.set("action",null);
 |
| | | process.set('remark',null);
 |
| | | process.set('assigneeId',null);
 |
| | | process.set('assigneeName',null);
 |
| | | view.get('#dialogTodo').hide();
 |
| | | view.get('#dialogSelectUser').hide();
 |
| | | }
 |
| | | selectUser = function(){
 |
| | | var process = view.get("#dsProcess.data");
 |
| | | process.set('action','transfer')
 |
| | | view.get("#dialogSelectUser").show();
 |
| | | }
 |
| | | </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | |
| | | 
 |
| | | <!-- 快捷方式 -->
 |
| | | <div class="parent">
 |
| | | 
 |
| | | 
 |
| | | <div class="child">
 |
| | | <div class="console-link-block">
 |
| | | <div class="console-link-block-num">0</div>
 |
| | | <div class="console-link-block-text">今日工单统计</div>
 |
| | | <div class="console-link-block-num" id="child-num1">0</div>
 |
| | | <div class="console-link-block-text">我的待办工单</div>
 |
| | | <img class="console-icon" src="/img/icon-wj.png">
 |
| | | </div>
 |
| | | </div>
 |
| | | 
 |
| | | <div class="child">
 |
| | | <div class="console-link-block bg2">
 |
| | | <div class="console-link-block-num">0</div>
 |
| | | <div class="console-link-block-text">今日待完成工单</div>
 |
| | | <div class="console-link-block-num" id="child-num2">0</div>
 |
| | | <div class="console-link-block-text">我的指派工单</div>
 |
| | | <img class="console-icon" src="/img/icon-wj2.png">
 |
| | | </div>
 |
| | | </div>
 |
| | | 
 |
| | | <div class="child">
 |
| | | <div class="console-link-block bg3">
 |
| | | <div class="console-link-block-num">0</div>
 |
| | | <div class="console-link-block-text">总工单统计</div>
 |
| | | <div class="console-link-block-num" id="child-num3">0</div>
 |
| | | <div class="console-link-block-text">今日工单</div>
 |
| | | <img class="console-icon" src="/img/icon-tj.png">
 |
| | | </div>
 |
| | | </div>
 |
| | | 
 |
| | | <div class="child">
 |
| | | <div class="console-link-block bg4">
 |
| | | <div class="console-link-block-num">0</div>
 |
| | | <div class="console-link-block-text">总未完成工单</div>
 |
| | | <div class="console-link-block bg5">
 |
| | | <div class="console-link-block-num" id="child-num4">0</div>
 |
| | | <div class="console-link-block-text">总待办工单</div>
 |
| | | <img class="console-icon" src="/img/icon-tj2.png">
 |
| | | </div>
 |
| | | </div>
 |
| | |
| | | <Property name="margin-top">10px</Property> |
| | | </Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*,90,90</Property> |
| | | <Property name="cols">*,300,300,90,90,*</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | </AutoForm> |
| | | <ToolBar> |
| | | <Fill/> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','pass')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">通过</Property> |
| | | <Property name="width">80</Property> |
| | | <ToolBarButton id="btnTodo"> |
| | | <Property name="caption">工单审批</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <Property name="caption">转交</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','refuse')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">拒绝</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn5</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="tags">btnTag</Property> |
| | | <Property name="menu">menus</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogMain").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | </ToolBarButton> |
| | |
| | | <Property name="service">workOrderPR#todo</Property> |
| | | <Property name="executingMessage">处理中……</Property> |
| | | </AjaxAction> |
| | | <DataSet id="dsSysUser"> |
| | | <Property name="dataType">[dtSysUser]</Property> |
| | | <Property name="dataProvider">commonPR#listUserByCurUserType</Property> |
| | | </DataSet> |
| | | <DataSetDropDown id="selectUser"> |
| | | <Property name="dataSet">dsSysUser</Property> |
| | | <Property name="property">userName</Property> |
| | | <Property name="assignmentMap">assigneeId=loginName,assigneeName=userName</Property> |
| | | </DataSetDropDown> |
| | | <Dialog id="dialogSelectUser"> |
| | | <Property name="width">600</Property> |
| | | <Property name="caption">指定/转让处理人</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="iconClass">fa fa-bookmark</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">todo();</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">90</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">cancelTodo();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="width">90</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <Container> |
| | | <AutoForm> |
| | | <Property name="cols">*</Property> |
| | | <Property name="dataSet">dsProcess</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">assigneeName</Property> |
| | | <Property name="property">assigneeName</Property> |
| | | <Property name="trigger">selectUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor> |
| | | <TextArea> |
| | | <Property name="blankText">-- 填写审批建议 --</Property> |
| | | <Property name="height">100</Property> |
| | | </TextArea> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">assigneeId</Property> |
| | | <Property name="property">assigneeId</Property> |
| | | <Property name="visible">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <AjaxAction id="ajaxSummary"> |
| | | <Property name="service">workOrderPR#pageSummary</Property> |
| | | </AjaxAction> |
| | | <Menu id="menus"> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','pass')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">审批通过</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">selectUser();</ClientEvent> |
| | | <Property name="caption">转交处理</Property> |
| | | <Property name="iconClass">fa fa-repeat</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','refuse')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">审批拒绝</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </MenuItem> |
| | | <Separator/> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var process = view.get("#dsProcess.data");
 |
| | | process.set('action','error')
 |
| | | view.get("#dialogTodo").show();</ClientEvent> |
| | | <Property name="caption">异常处理</Property> |
| | | <Property name="iconClass">fa fa-tags</Property> |
| | | <Property name="tip">异常工单处理--直接流程结束</Property> |
| | | </MenuItem> |
| | | </Menu> |
| | | </View> |
| | | </ViewConfig> |