| | |
| | | </PropertyDef> |
| | | <PropertyDef name="bizType"> |
| | | <Property></Property> |
| | | <Property name="label">业务分类</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="category"> |
| | | <Property></Property> |
| | | <Property name="label">工单分类</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("workOrderPR#triggerBizType").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="status"> |
| | | <Property></Property> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">工单创建时间</Property> |
| | | <Property name="label">创建时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createUserId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createUserName"> |
| | | <Property></Property> |
| | | <Property name="label">工单创建人</Property> |
| | | <Property name="label">创建人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="businessId"> |
| | | <Property></Property> |
| | |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">kqmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="node"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createById"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bankId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="confId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createBy"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateBy"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam"> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="assigneeId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="assigneeName"> |
| | | <Property></Property> |
| | | <Property name="label">处理人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="node"> |
| | | <Property></Property> |
| | | <Property name="label">当前节点</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | |
| | | var dialog = view.get("#dialogMain");
 |
| | | if(1 == tabIndex){
 |
| | | cur = view.get("#dsMain2.data:#");
 |
| | | dialog = view.get("#dialogMain");
 |
| | | }
 |
| | | dialog.show();
 |
| | | 
 |
| | | var orderId = cur.get("id");
 |
| | | //赋值给审批
 |
| | | view.get("#dsWordProcess").set("data",{orderId:orderId});
 |
| | | //历史记录
 |
| | | view.get("#iFrameProcess").set("path","com.fzzy.work.WorkProcess.d?orderId="+orderId);
 |
| | | //历史数据
 |
| | | view.get('#iFrameFlowHis').set('path','/work/flow-his?orderId='+orderId);
 |
| | | //业务信息
 |
| | | if(cur.get("businessUrl")){
 |
| | | var url = cur.get("businessUrl")+"?businessId="+cur.get("businessId")+"&orderId="+orderId;
 |
| | |
| | | }else{
 |
| | | view.get("#iFrameBiz").set("path","/work/no-business?orderId="+orderId);
 |
| | | }
 |
| | | }</ClientEvent> |
| | | }
 |
| | | //执行审批
 |
| | | todo = function(action){
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var process = view.get("#dsProcess.data");
 |
| | | process.set("orderId", cur.get("id"));
 |
| | | process.set("action", action);
 |
| | | process.set("node", cur.get("node"));
 |
| | | 
 |
| | | var remark = process.get('remark');
 |
| | | if(!remark){
 |
| | | $notify("请填写审批意见……");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#ajaxTodo").set('parameter',process).execute(function(result){
 |
| | | if('200' != result.code){
 |
| | | $alert(result.msg);
 |
| | | }else{
 |
| | | $alert("执行成功!");
 |
| | | view.get('#dialogTodo').hide();
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | cancelTodo = function(){
 |
| | | var process = view.get("#dsProcess.data");
 |
| | | process.set('remark',null);
 |
| | | view.get('#dialogTodo').hide();
 |
| | | }
 |
| | | </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");</ClientEvent> |
| | |
| | | <Property name="loadMode">lazy</Property> |
| | | </DataSet> |
| | | <DataSet id="dsMain2"> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");
 |
| | | </ClientEvent> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");</ClientEvent> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQuery2</Property> |
| | | <Property name="pageSize">10</Property> |
| | |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsWordProcess"> |
| | | <DataSet id="dsProcess"> |
| | | <ClientEvent name="onReady">self.insert();</ClientEvent> |
| | | <Property name="dataType">dtWordProcess</Property> |
| | | </DataSet> |
| | |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">工单详细</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="height">95%</Property> |
| | | <Property name="width">95%</Property> |
| | | <Property name="width">90%</Property> |
| | | <Property name="showCaptionBar">false</Property> |
| | | <Property name="style"> |
| | | <Property name="background-color">#e6e6e6</Property> |
| | | </Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#updateSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">处理</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#updateSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">转交</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Property name="height">95%</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <TabControl> |
| | | <ControlTab> |
| | | <Property name="caption">工单信息</Property> |
| | | <Property name="iconClass">fa fa-edit</Property> |
| | | <Property name="width">120</Property> |
| | | <Container> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">title</Property> |
| | | <Property name="property">title</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">description</Property> |
| | | <Property name="property">description</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bizType</Property> |
| | | <Property name="property">bizType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">status</Property> |
| | | <Property name="property">status</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">assigneeName</Property> |
| | | <Property name="property">assigneeName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createUserName</Property> |
| | | <Property name="property">createUserName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">receiveTime</Property> |
| | | <Property name="property">receiveTime</Property> |
| | | <Property name="labelWidth">140</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <GroupBox> |
| | | <Property name="caption">工单审批/处理</Property> |
| | | <Property name="collapseable">false</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsWordProcess</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor> |
| | | <TextArea> |
| | | <Property name="blankText">-- 审批/处理说明 --</Property> |
| | | </TextArea> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <HtmlContainer layoutConstraint="colSpan:3"> |
| | | <Property name="content">1.工单详细业务见【业务信息】查看。<br></Property> |
| | | <Property name="exClassName">h-tip</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | </HtmlContainer> |
| | | </AutoForm> |
| | | </Children> |
| | | </GroupBox> |
| | | <Container> |
| | | <Property name="exClassName">c-data</Property> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">title</Property> |
| | | <Property name="property">title</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">description</Property> |
| | | <Property name="property">description</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bizType</Property> |
| | | <Property name="property">bizType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">status</Property> |
| | | <Property name="property">status</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">assigneeName</Property> |
| | | <Property name="property">assigneeName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createUserName</Property> |
| | | <Property name="property">createUserName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">receiveTime</Property> |
| | | <Property name="property">receiveTime</Property> |
| | | <Property name="labelWidth">140</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <ToolBar> |
| | | <Fill/> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dialogTodo").show();
 |
| | | </ClientEvent> |
| | | <Property name="caption">处理</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check-circle</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> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | view.get("#dialogMain").hide();</ClientEvent> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | </ToolBarButton> |
| | | <Separator> |
| | | <Property name="width">30</Property> |
| | | </Separator> |
| | | </ToolBar> |
| | | </Container> |
| | | <IFrame id="iFrameFlowHis"> |
| | | <Property name="path">/work/flow-his?orderId=1</Property> |
| | | </IFrame> |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab> |
| | | <Property name="caption">业务信息</Property> |
| | | <Property name="iconClass">fa fa-file-o</Property> |
| | | <Property name="width">120</Property> |
| | | <IFrame id="iFrameBiz"/> |
| | | </ControlTab> |
| | | <ControlTab> |
| | | <Property name="caption">审批记录</Property> |
| | | <Property name="iconClass">fa fa-history</Property> |
| | | <IFrame id="iFrameProcess"> |
| | | <Property name="path">com.fzzy.work.WorkProcess.d</Property> |
| | | </IFrame> |
| | | </ControlTab> |
| | | </TabControl> |
| | | </Children> |
| | |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="confirmMessage">确定要执行删除么?</Property> |
| | | </AjaxAction> |
| | | <Dialog id="dialogTodo"> |
| | | <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('pass');</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">todo('refuse');</ClientEvent> |
| | | <Property name="caption">拒绝</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-times</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> |
| | | <AutoFormElement> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor> |
| | | <TextArea> |
| | | <Property name="blankText">-- 填写审批建议 --</Property> |
| | | <Property name="height">100</Property> |
| | | </TextArea> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <AjaxAction id="ajaxTodo"> |
| | | <Property name="service">workOrderPR#todo</Property> |
| | | <Property name="executingMessage">处理中……</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |