From d0abf3d3c2190d9d16b91a12a1a99fd94b8d63b4 Mon Sep 17 00:00:00 2001
From: jiazx0107 <jiazx0107@163.com>
Date: 星期四, 15 一月 2026 22:18:31 +0800
Subject: [PATCH] 提交工单处理逻辑。

---
 fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml |  375 ++++++++++++++++++++++++++++++++---------------------
 1 files changed, 226 insertions(+), 149 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml
index 3fc6cc8..c7e3aae 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml
@@ -19,11 +19,12 @@
       </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(&quot;workOrderPR#triggerBizType&quot;).getResult()}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
       </PropertyDef>
       <PropertyDef name="status">
         <Property></Property>
@@ -47,14 +48,14 @@
       </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>
@@ -77,6 +78,27 @@
           <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">
@@ -120,6 +142,23 @@
       </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>
@@ -175,15 +214,12 @@
 	var dialog = view.get(&quot;#dialogMain&quot;);&#xD;
 	if(1 == tabIndex){&#xD;
 		cur = view.get(&quot;#dsMain2.data:#&quot;);&#xD;
-		dialog = view.get(&quot;#dialogMain&quot;);&#xD;
 	}&#xD;
 	dialog.show();&#xD;
 	&#xD;
 	var orderId = cur.get(&quot;id&quot;);&#xD;
-	//璧嬪�肩粰瀹℃壒&#xD;
-	view.get(&quot;#dsWordProcess&quot;).set(&quot;data&quot;,{orderId:orderId});&#xD;
-	//鍘嗗彶璁板綍&#xD;
-	view.get(&quot;#iFrameProcess&quot;).set(&quot;path&quot;,&quot;com.fzzy.work.WorkProcess.d?orderId=&quot;+orderId);&#xD;
+	//鍘嗗彶鏁版嵁&#xD;
+	view.get('#iFrameFlowHis').set('path','/work/flow-his?orderId='+orderId);&#xD;
 	//涓氬姟淇℃伅&#xD;
 	if(cur.get(&quot;businessUrl&quot;)){&#xD;
 		var url = cur.get(&quot;businessUrl&quot;)+&quot;?businessId=&quot;+cur.get(&quot;businessId&quot;)+&quot;&amp;orderId=&quot;+orderId;&#xD;
@@ -191,7 +227,35 @@
 	}else{&#xD;
 		view.get(&quot;#iFrameBiz&quot;).set(&quot;path&quot;,&quot;/work/no-business?orderId=&quot;+orderId);&#xD;
 	}&#xD;
-}</ClientEvent>
+}&#xD;
+//鎵ц瀹℃壒&#xD;
+todo = function(action){&#xD;
+	var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+	var process = view.get(&quot;#dsProcess.data&quot;);&#xD;
+	process.set(&quot;orderId&quot;, cur.get(&quot;id&quot;));&#xD;
+	process.set(&quot;action&quot;, action);&#xD;
+	process.set(&quot;node&quot;, cur.get(&quot;node&quot;));&#xD;
+	&#xD;
+	var remark = process.get('remark');&#xD;
+	if(!remark){&#xD;
+		$notify(&quot;璇峰~鍐欏鎵规剰瑙佲�︹��&quot;);&#xD;
+		return;&#xD;
+	}&#xD;
+	view.get(&quot;#ajaxTodo&quot;).set('parameter',process).execute(function(result){&#xD;
+		if('200' != result.code){&#xD;
+			$alert(result.msg);&#xD;
+		}else{&#xD;
+			$alert(&quot;鎵ц鎴愬姛锛�&quot;);&#xD;
+			view.get('#dialogTodo').hide();&#xD;
+		}&#xD;
+	});&#xD;
+}&#xD;
+cancelTodo = function(){&#xD;
+	var process = view.get(&quot;#dsProcess.data&quot;);&#xD;
+	process.set('remark',null);&#xD;
+	view.get('#dialogTodo').hide();&#xD;
+}&#xD;
+</ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
     <DataSet id="dsMain">
       <ClientEvent name="onLoadData">$notify(&quot;鏁版嵁鍔犺浇瀹屾垚鈥︹��&quot;);</ClientEvent>
@@ -201,8 +265,7 @@
       <Property name="loadMode">lazy</Property>
     </DataSet>
     <DataSet id="dsMain2">
-      <ClientEvent name="onLoadData">$notify(&quot;鏁版嵁鍔犺浇瀹屾垚鈥︹��&quot;);&#xD;
-</ClientEvent>
+      <ClientEvent name="onLoadData">$notify(&quot;鏁版嵁鍔犺浇瀹屾垚鈥︹��&quot;);</ClientEvent>
       <Property name="dataType">[dtMain]</Property>
       <Property name="dataProvider">workOrderPR#pageQuery2</Property>
       <Property name="pageSize">10</Property>
@@ -212,7 +275,7 @@
       <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>
@@ -553,156 +616,116 @@
       <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(&quot;#updateSave&quot;).execute(function(result){&#xD;
-	if(result){&#xD;
-		$alert(result);&#xD;
-		return;&#xD;
-	}&#xD;
-	$notify(&quot;鏁版嵁鎵ц瀹屾垚锛侊紒&quot;);&#xD;
-	self.get(&quot;parent&quot;).hide();&#xD;
-});</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(&quot;#updateSave&quot;).execute(function(result){&#xD;
-	if(result){&#xD;
-		$alert(result);&#xD;
-		return;&#xD;
-	}&#xD;
-	$notify(&quot;鏁版嵁鎵ц瀹屾垚锛侊紒&quot;);&#xD;
-	self.get(&quot;parent&quot;).hide();&#xD;
-});</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(&quot;#dsMain.data:#&quot;).cancel();&#xD;
-            self.get(&quot;parent&quot;).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.宸ュ崟璇︾粏涓氬姟瑙併�愪笟鍔′俊鎭�戞煡鐪嬨��&lt;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(&quot;#dialogTodo&quot;).show();&#xD;
+</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(&quot;#dsMain.data:#&quot;).cancel();&#xD;
+view.get(&quot;#dialogMain&quot;).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>
@@ -717,5 +740,59 @@
     <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>

--
Gitblit v1.9.3