From c00af7e5bfa382528b3bef7ee2484d872fceda17 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 17 一月 2026 17:05:25 +0800
Subject: [PATCH] 样式修改,出库通知单流程查询纠正

---
 fzzy-igdss-view/src/main/java/com/fzzy/work/WorkOrder.view.xml |  242 ++++++++++++++++++++++++------------------------
 1 files changed, 121 insertions(+), 121 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 c7e3aae..e38f92b 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
@@ -131,6 +131,9 @@
         <Property name="dataType">Date</Property>
         <Property name="label">鎴鏃堕棿</Property>
       </PropertyDef>
+      <PropertyDef name="scope">
+        <Property></Property>
+      </PropertyDef>
     </DataType>
     <DataType name="dtWordProcess">
       <Property name="creationType">com.fzzy.work.domain.WorkOrderProcess</Property>
@@ -163,20 +166,26 @@
     </DataType>
   </Model>
   <View layout="padding:10">
-    <ClientEvent name="onReady">query= function(){&#xD;
+    <ClientEvent name="onReady">view.TAG = 1;&#xD;
+query= function(){&#xD;
 	var param = view.get(&quot;#dsQuery.data&quot;);&#xD;
 	var tabIndex = view.get(&quot;#tabMain.currentIndex&quot;);&#xD;
+	param.set(&quot;scope&quot;,&quot;all&quot;);&#xD;
 	if(0 == tabIndex){&#xD;
-		view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param).flushAsync();&#xD;
-	}else{&#xD;
-		view.get(&quot;#dsMain2&quot;).set(&quot;parameter&quot;,param).flushAsync();&#xD;
+		param.set(&quot;scope&quot;,&quot;self&quot;);&#xD;
 	}&#xD;
+	view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param).flushAsync();&#xD;
 }&#xD;
+query();&#xD;
       &#xD;
 //瀹d紶鎿嶄綔&#xD;
 renderCell1 = function(arg,self){&#xD;
+   var tabIndex = view.get(&quot;#tabMain.currentIndex&quot;);&#xD;
    var data = arg.data;&#xD;
    var htm = &quot;&lt;a onClick='audit()' class='a-btn1'>鎸囨淳&lt;/a>&amp;nbsp;|&amp;nbsp;&lt;a onClick='showDetail()' class='a-btn2'>璇︾粏&lt;/a>&quot;;&#xD;
+   if(1 == tabIndex){&#xD;
+   		htm = &quot;&lt;a onClick='showDetail()' class='a-btn2'>璇︾粏&lt;/a>&quot;;&#xD;
+   }&#xD;
    arg.dom.innerHTML = htm;&#xD;
 };&#xD;
 &#xD;
@@ -212,8 +221,9 @@
 	var tabIndex = view.get(&quot;#tabMain.currentIndex&quot;);&#xD;
 	var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
 	var dialog = view.get(&quot;#dialogMain&quot;);&#xD;
+	view.get('^btnTag').set('visible',true);&#xD;
 	if(1 == tabIndex){&#xD;
-		cur = view.get(&quot;#dsMain2.data:#&quot;);&#xD;
+		view.get('^btnTag').set('visible',false);&#xD;
 	}&#xD;
 	dialog.show();&#xD;
 	&#xD;
@@ -229,13 +239,11 @@
 	}&#xD;
 }&#xD;
 //鎵ц瀹℃壒&#xD;
-todo = function(action){&#xD;
+todo = function(){&#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;
@@ -243,15 +251,17 @@
 	}&#xD;
 	view.get(&quot;#ajaxTodo&quot;).set('parameter',process).execute(function(result){&#xD;
 		if('200' != result.code){&#xD;
-			$alert(result.msg);&#xD;
+			$alert(result.message);&#xD;
 		}else{&#xD;
 			$alert(&quot;鎵ц鎴愬姛锛�&quot;);&#xD;
 			view.get('#dialogTodo').hide();&#xD;
+			query();&#xD;
 		}&#xD;
 	});&#xD;
 }&#xD;
 cancelTodo = function(){&#xD;
 	var process = view.get(&quot;#dsProcess.data&quot;);&#xD;
+	process.set(&quot;action&quot;,null);&#xD;
 	process.set('remark',null);&#xD;
 	view.get('#dialogTodo').hide();&#xD;
 }&#xD;
@@ -260,16 +270,9 @@
     <DataSet id="dsMain">
       <ClientEvent name="onLoadData">$notify(&quot;鏁版嵁鍔犺浇瀹屾垚鈥︹��&quot;);</ClientEvent>
       <Property name="dataType">[dtMain]</Property>
-      <Property name="dataProvider">workOrderPR#pageQuery</Property>
+      <Property name="dataProvider">workOrderPR#pageQueryByUserType</Property>
       <Property name="pageSize">10</Property>
-      <Property name="loadMode">lazy</Property>
-    </DataSet>
-    <DataSet id="dsMain2">
-      <ClientEvent name="onLoadData">$notify(&quot;鏁版嵁鍔犺浇瀹屾垚鈥︹��&quot;);</ClientEvent>
-      <Property name="dataType">[dtMain]</Property>
-      <Property name="dataProvider">workOrderPR#pageQuery2</Property>
-      <Property name="pageSize">10</Property>
-      <Property name="loadMode">lazy</Property>
+      <Property name="loadMode">manual</Property>
     </DataSet>
     <DataSet id="dsQuery">
       <ClientEvent name="onReady">self.insert({});</ClientEvent>
@@ -454,9 +457,88 @@
     <Container>
       <Property name="className">c-data</Property>
       <TabControl id="tabMain">
+        <ClientEvent name="onTabChange">if(view.TAG) query();</ClientEvent>
         <ControlTab>
-          <Property name="caption">鍏ㄩ儴</Property>
+          <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(&quot;selection&quot;,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">160</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">dsMain</Property>
+              </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">
@@ -528,84 +610,6 @@
               <DataPilot layoutConstraint="right">
                 <Property name="itemCodes">pageSize,pages</Property>
                 <Property name="dataSet">dsMain</Property>
-              </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(&quot;selection&quot;,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>
@@ -690,22 +694,34 @@
                 <ToolBar>
                   <Fill/>
                   <ToolBarButton>
-                    <ClientEvent name="onClick">view.get(&quot;#dialogTodo&quot;).show();&#xD;
-</ClientEvent>
-                    <Property name="caption">澶勭悊</Property>
+                    <ClientEvent name="onClick">var process = view.get(&quot;#dsProcess.data&quot;);&#xD;
+process.set('action','pass')&#xD;
+view.get(&quot;#dialogTodo&quot;).show();</ClientEvent>
+                    <Property name="caption">閫氳繃</Property>
                     <Property name="width">80</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">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
-view.get(&quot;#dialogMain&quot;).hide();</ClientEvent>
+                    <ClientEvent name="onClick">var process = view.get(&quot;#dsProcess.data&quot;);&#xD;
+process.set('action','refuse')&#xD;
+view.get(&quot;#dialogTodo&quot;).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>
+                  </ToolBarButton>
+                  <ToolBarButton>
+                    <ClientEvent name="onClick">view.get(&quot;#dialogMain&quot;).hide();</ClientEvent>
                     <Property name="caption">鍏抽棴</Property>
                     <Property name="width">80</Property>
                     <Property name="exClassName">btn3</Property>
@@ -731,15 +747,6 @@
       </Children>
       <Tools/>
     </Dialog>
-    <UpdateAction id="updateSave">
-      <UpdateItem>
-        <Property name="dataPath">[#current]</Property>
-        <Property name="dataSet">dsMain</Property>
-      </UpdateItem>
-    </UpdateAction>
-    <AjaxAction id="ajaxDel">
-      <Property name="confirmMessage">纭畾瑕佹墽琛屽垹闄や箞锛�</Property>
-    </AjaxAction>
     <Dialog id="dialogTodo">
       <Property name="width">600</Property>
       <Property name="caption">瀹℃壒澶勭悊</Property>
@@ -747,22 +754,15 @@
       <Property name="iconClass">fa fa-bookmark</Property>
       <Buttons>
         <Button>
-          <ClientEvent name="onClick">todo('pass');</ClientEvent>
-          <Property name="caption">閫氳繃</Property>
+          <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">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="caption">鍙栨秷</Property>
           <Property name="iconClass">fa fa-times</Property>
           <Property name="exClassName">btn3</Property>
           <Property name="width">90</Property>

--
Gitblit v1.9.3