| | |
| | | <PropertyDef name="status"> |
| | | <Property></Property> |
| | | <Property name="label">工单状态</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("workOrderPR#triggerStatus").getResult()}</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="assigneeId"> |
| | | <Property></Property> |
| | |
| | | <Property></Property> |
| | | <Property name="label">备注说明</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property/> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property/> |
| | | <Property name="label">所属库区</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam"> |
| | | <Property name="creationType">com.fzzy.work.data.WorkOrderParam</Property> |
| | |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">query = function(){
 |
| | | view.get("#dsQuery").flushAsync();
 |
| | | };
 |
| | | query();
 |
| | | 
 |
| | | var param = view.get("#dsQuery.data");
 |
| | | var tabIndex = view.get("#tabMain.currentIndex");
 |
| | | if(0 == tabIndex){
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();
 |
| | | }else{
 |
| | | view.get("#dsMain2").set("parameter",param).flushAsync();
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | //宣传操作
 |
| | | renderCell1 = function(arg,self){
 |
| | | 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='audit()' class='a-btn1'>指派</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>详细</a>";
 |
| | | arg.dom.innerHTML = htm;
 |
| | | };
 |
| | | 
 |
| | | renderStatus = function(arg){
 |
| | | var txt = arg.data.getText("auditStatus");
 |
| | | if(!txt) return true;
 |
| | | var htm = "<span class='s2'>"+txt+"</span>";
 |
| | | if(txt.includes("退回")){
 |
| | | var val = arg.data.get("status");
 |
| | | var txt = arg.data.getText("status");
 |
| | | if(!val) return true;
 |
| | | var htm = "<span class='s1'>"+txt+"</span>";
 |
| | | if(val=="20"){//已派单
 |
| | | htm = "<span class='s2'>"+txt+"</span>";
 |
| | | }
 |
| | | if(val=="30"){//处理中
 |
| | | htm = "<span class='s4'>"+txt+"</span>";
 |
| | | }
 |
| | | if(val=="40"){//已解决
 |
| | | htm = "<span class='s3'>"+txt+"</span>";
 |
| | | }
 |
| | | if(txt.includes("拒绝")){
 |
| | | if(val=="50"){//已关闭
 |
| | | htm = "<span class='s3'>"+txt+"</span>";
 |
| | | }
 |
| | | if(txt.includes("通过")){
 |
| | | htm = "<span class='s1'>"+txt+"</span>";
 |
| | | if(val=="60"){//挂起
 |
| | | htm = "<span class='s3'>"+txt+"</span>";
 |
| | | }
 |
| | | arg.dom.innerHTML = htm;
 |
| | | }
 |
| | |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");</ClientEvent> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQuery</Property> |
| | | <Property name="pageSize">15</Property> |
| | | <Property name="pageSize">10</Property> |
| | | <Property name="loadMode">lazy</Property> |
| | | </DataSet> |
| | | <DataSet id="dsMain2"> |
| | | <ClientEvent name="onLoadData">$notify("数据加载完成……");
 |
| | | </ClientEvent> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQuery2</Property> |
| | | <Property name="pageSize">10</Property> |
| | | <Property name="loadMode">lazy</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <ClientEvent name="onReady">self.insert({});
 |
| | | </ClientEvent> |
| | | <Property name="dataType">[dtParam]</Property> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtParam</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="cols">*,*,*,*,90,90</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">status</Property> |
| | | <Property name="property">status</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Editor/> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsQuery.data");
 |
| | | if(data){
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();
 |
| | | }else{
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | }</ClientEvent> |
| | | <ClientEvent name="onClick">query();</ClientEvent> |
| | | <Property name="caption">搜索</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">btn-q1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsQuery").flushAsync();</ClientEvent> |
| | | <ClientEvent name="onClick">view.get("#dsQuery").set("data",{});</ClientEvent> |
| | | <Property name="caption">重置</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | |
| | | </Container> |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <ToolBar> |
| | | <ToolBarButton layoutConstraint="left"> |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridMain" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent> |
| | | <TabControl id="tabMain"> |
| | | <ControlTab> |
| | | <Property name="caption">全部</Property> |
| | | <Property name="iconClass">fa fa-th-large</Property> |
| | | <Property name="width">150</Property> |
| | | <Container> |
| | | <DataGrid layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">self.set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="fixedColumnCount">3</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="width">180</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="width">250</Property> |
| | | </DataColumn> |
| | | <DataColumn name="title"> |
| | | <Property name="property">title</Property> |
| | | </DataColumn> |
| | | <DataColumn name="description"> |
| | | <Property name="property">description</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | </DataColumn> |
| | | <DataColumn name="category"> |
| | | <Property name="property">category</Property> |
| | | </DataColumn> |
| | | <DataColumn name="assigneeName"> |
| | | <Property name="property">assigneeName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveTime"> |
| | | <Property name="property">receiveTime</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createUserName"> |
| | | <Property name="property">createUserName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createTime"> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderStatus(arg);</ClientEvent> |
| | |
| | | <Property name="align">center</Property> |
| | | <Property name="name">status</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> |
| | | <Property name="caption">操作</Property> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="assigneeName"> |
| | | <Property name="property">assigneeName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveTime"> |
| | | <Property name="property">receiveTime</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="createUserName"> |
| | | <Property name="property">createUserName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createTime"> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab> |
| | | <Property name="caption">已结束</Property> |
| | | <Property name="iconClass">fa fa-history</Property> |
| | | <Property name="width">150</Property> |
| | | <Container> |
| | | <DataGrid layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">self.set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain2</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="fixedColumnCount">3</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="width">180</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="width">250</Property> |
| | | </DataColumn> |
| | | <DataColumn name="title"> |
| | | <Property name="property">title</Property> |
| | | <Property name="width">300</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderStatus(arg);</ClientEvent> |
| | | <Property name="property">status</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">status</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="assigneeName"> |
| | | <Property name="property">assigneeName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveTime"> |
| | | <Property name="property">receiveTime</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createUserName"> |
| | | <Property name="property">createUserName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createTime"> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain2</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | </ControlTab> |
| | | </TabControl> |
| | | </Container> |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">入库通知单</Property> |