From 66e1e898f5020b5e02a99e361569637a72f8c2cf Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 29 十二月 2025 14:31:45 +0800
Subject: [PATCH] 优化公司、库区、仓库页面,通知单word导出提交

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml |  116 +++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 79 insertions(+), 37 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml
index 6896305..7abed23 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml
@@ -10,6 +10,16 @@
         <Property name="label">搴撳尯缂栫爜</Property>
         <Property name="readOnly">true</Property>
       </PropertyDef>
+      <PropertyDef name="parentId">
+        <Property></Property>
+        <Property name="label">鏀跺偍鍏徃</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;companyPR#getData&quot;).getResult()}</Property>
+          <Property name="keyProperty">id</Property>
+          <Property name="valueProperty">dwmc</Property>
+        </Property>
+        <Property name="readOnly">true</Property>
+      </PropertyDef>
       <PropertyDef name="companyId">
         <Property></Property>
         <Property name="label">缁勭粐缂栫爜</Property>
@@ -30,7 +40,7 @@
       </PropertyDef>
       <PropertyDef name="xzqhmc">
         <Property></Property>
-        <Property name="label">鍖哄垝鍚嶇О</Property>
+        <Property name="label">鎵�鍦ㄥ尯鍘�</Property>
       </PropertyDef>
       <PropertyDef name="kqcq">
         <Property></Property>
@@ -139,10 +149,51 @@
       view.get(&quot;#dialogImg&quot;).show();&#xD;
       &#xD;
       };</ClientEvent>
+    <ClientEvent name="onReady">var parentId = &quot;${request.getParameter('parentId')}&quot;;&#xD;
+view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{parentId: parentId}).flushAsync();&#xD;
+&#xD;
+/**&#xD;
+* 鏌ョ湅璇︽儏&#xD;
+* @param {String/Number} manualId 鎵嬪姩浼犲叆鐨刬d鍊硷紙鍙�夛級&#xD;
+*/&#xD;
+detail = function(){&#xD;
+	 var cur = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
+     if (cur) {&#xD;
+		var id = cur.get(&quot;id&quot;);&#xD;
+        var url = &quot;/com.fzzy.igds.Depot.d?parentId=&quot;+ id;&#xD;
+		window.$openTab(&quot;搴撳尯绠$悊&quot;, url);&#xD;
+	}else {&#xD;
+		$notify(&quot;璇峰厛閫夋嫨鏁版嵁鈥︹��&quot;);&#xD;
+	}  &#xD;
+};&#xD;
+&#xD;
+&#xD;
+showDlg=function(){&#xD;
+	var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
+	if(select){&#xD;
+    	view.get(&quot;#dialogMain&quot;).show();;&#xD;
+	}else{&#xD;
+     	$notify(&quot;璇峰厛閫夋嫨鏁版嵁鈥︹��&quot;);&#xD;
+	}&#xD;
+};&#xD;
+&#xD;
+renderId = function(arg){&#xD;
+    var txt = arg.data.getText(&quot;id&quot;);&#xD;
+    if(!txt) return true;&#xD;
+    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
+    arg.dom.innerHTML = htm;&#xD;
+}
+renderName = function(arg){&#xD;
+    var txt = arg.data.getText(&quot;kqmc&quot;);&#xD;
+    if(!txt) return true;&#xD;
+    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
+    arg.dom.innerHTML = htm;&#xD;
+}</ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
     <DataSet id="dsMain">
       <Property name="dataProvider">deptPR#getData</Property>
       <Property name="dataType">[dtMain]</Property>
+      <Property name="loadMode">manual</Property>
     </DataSet>
     <Container>
       <Property name="className">c-param</Property>
@@ -176,30 +227,26 @@
         <RowSelectorColumn/>
         <RowNumColumn/>
         <DataColumn name="id">
+          <ClientEvent name="onRenderCell">renderId(arg);</ClientEvent>
           <Property name="property">id</Property>
           <Property name="align">center</Property>
           <Property name="width">160</Property>
         </DataColumn>
         <DataColumn name="kqmc">
+          <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent>
           <Property name="property">kqmc</Property>
+          <Property name="align">left</Property>
+        </DataColumn>
+        <DataColumn name="parentId">
+          <Property name="property">parentId</Property>
           <Property name="align">left</Property>
         </DataColumn>
         <DataColumn name="xzqhmc">
           <Property name="property">xzqhmc</Property>
           <Property name="align">center</Property>
         </DataColumn>
-        <DataColumn name="kqcq">
-          <Property name="property">kqcq</Property>
-          <Property name="align">center</Property>
-          <Property name="width">120</Property>
-        </DataColumn>
         <DataColumn name="yxcr">
           <Property name="property">yxcr</Property>
-          <Property name="align">center</Property>
-          <Property name="width">180</Property>
-        </DataColumn>
-        <DataColumn name="zdmj">
-          <Property name="property">zdmj</Property>
           <Property name="align">center</Property>
           <Property name="width">180</Property>
         </DataColumn>
@@ -218,12 +265,20 @@
           <Property name="align">center</Property>
           <Property name="width">160</Property>
         </DataColumn>
+        <DataColumn>
+          <ClientEvent name="onRenderCell">arg.dom.innerHTML = &quot;&lt;a href='javascript:;' onClick='detail()' class='a-btn1'>鏌ョ湅浠撳簱&lt;/a>&quot;;</ClientEvent>
+          <Property name="width">160</Property>
+          <Property name="caption">鎿嶄綔</Property>
+          <Property name="align">center</Property>
+          <Property name="width">120</Property>
+          <Editor/>
+        </DataColumn>
       </DataGrid>
     </Container>
     <Dialog id="dialogMain">
       <Property name="iconClass">fa fa-tasks</Property>
       <Property name="caption">搴撳尯淇℃伅</Property>
-      <Property name="width">1200</Property>
+      <Property name="width">65%</Property>
       <Property name="closeable">false</Property>
       <Buttons>
         <Button id="btnOk">
@@ -267,13 +322,8 @@
             <Editor/>
           </AutoFormElement>
           <AutoFormElement layoutConstraint="colSpan:2">
-            <Property name="name">kqdz</Property>
-            <Property name="property">kqdz</Property>
-            <Editor/>
-          </AutoFormElement>
-          <AutoFormElement>
-            <Property name="name">kqcq</Property>
-            <Property name="property">kqcq</Property>
+            <Property name="name">parentId</Property>
+            <Property name="property">parentId</Property>
             <Editor/>
           </AutoFormElement>
           <AutoFormElement>
@@ -281,9 +331,9 @@
             <Property name="property">yxcr</Property>
             <Editor/>
           </AutoFormElement>
-          <AutoFormElement>
-            <Property name="name">zdmj</Property>
-            <Property name="property">zdmj</Property>
+          <AutoFormElement layoutConstraint="colSpan:2">
+            <Property name="name">kqdz</Property>
+            <Property name="property">kqdz</Property>
             <Editor/>
           </AutoFormElement>
           <AutoFormElement>
@@ -302,17 +352,14 @@
             <Property name="property">xzqhdm</Property>
             <Editor/>
           </AutoFormElement>
-          <Label>
-            <Property name="text"></Property>
-          </Label>
           <AutoFormElement>
-            <Property name="name">createBy</Property>
-            <Property name="property">createBy</Property>
+            <Property name="name">zdmj</Property>
+            <Property name="property">zdmj</Property>
             <Editor/>
           </AutoFormElement>
-          <AutoFormElement>
-            <Property name="name">createTime</Property>
-            <Property name="property">createTime</Property>
+          <AutoFormElement layoutConstraint="colSpan:2">
+            <Property name="name">remark</Property>
+            <Property name="property">remark</Property>
             <Editor/>
           </AutoFormElement>
           <AutoFormElement>
@@ -371,18 +418,13 @@
             </Property>
             <Property name="text">甯姪锛氱偣鍑诲潗鏍囦綅缃嬀鍙�</Property>
           </Link>
-          <AutoFormElement layoutConstraint="colSpan:3">
-            <Property name="name">remark</Property>
-            <Property name="property">remark</Property>
-            <Editor/>
-          </AutoFormElement>
         </AutoForm>
       </Children>
       <Tools/>
     </Dialog>
     <Dialog id="dialogImg">
-      <Property name="width">1000</Property>
-      <Property name="height">640</Property>
+      <Property name="width">55%</Property>
+      <Property name="height">65%</Property>
       <Property name="iconClass">fa fa-tasks</Property>
       <Property name="caption">楦熺灠鍥鹃瑙�</Property>
       <Buttons/>

--
Gitblit v1.9.3