From 164a53adaed58ad0519bc214b08c0bfb287723f4 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 21 一月 2026 14:40:45 +0800
Subject: [PATCH] 数据导入提交2

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/ReportOutDetail.view.xml |  143 +++++++++++++++++++++++++++++++++--------------
 1 files changed, 100 insertions(+), 43 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/ReportOutDetail.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/ReportOutDetail.view.xml
index 584341d..8f441da 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/ReportOutDetail.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/ReportOutDetail.view.xml
@@ -185,7 +185,7 @@
         <Property></Property>
         <Property name="label">瑁呭嵏浠撳簱</Property>
         <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
+          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getData&quot;).getResult()}</Property>
           <Property name="keyProperty">id</Property>
           <Property name="valueProperty">name</Property>
         </Property>
@@ -320,7 +320,7 @@
         <Property></Property>
         <Property name="label">瑁呭嵏浠撳簱</Property>
         <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
+          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getData&quot;).getResult()}</Property>
           <Property name="keyProperty">id</Property>
           <Property name="valueProperty">name</Property>
         </Property>
@@ -363,13 +363,20 @@
         <Property name="label">鎴鏃堕棿</Property>
         <Property name="dataType">Date</Property>
       </PropertyDef>
+      <PropertyDef name="createTime">
+        <Property name="dataType">DateTime</Property>
+        <Property name="label">鍒惰〃鏃堕棿</Property>
+      </PropertyDef>
+      <PropertyDef name="createUser">
+        <Property name="label">鍒惰〃浜�</Property>
+      </PropertyDef>
       <PropertyDef name="unit">
         <Property></Property>
         <Property name="label">鍗曚綅</Property>
       </PropertyDef>
       <PropertyDef name="timeDesc">
         <Property></Property>
-        <Property name="label">鏃堕棿</Property>
+        <Property name="label">鏌ヨ鏃堕棿</Property>
       </PropertyDef>
       <PropertyDef name="title">
         <Property></Property>
@@ -410,30 +417,51 @@
 &#xD;
 //榛樿鏌ヨ鏌ヨ鎻愭潯浠�&#xD;
 view.get(&quot;#dsQuery&quot;).insert({&#xD;
-	deptId:deptId&#xD;
+      deptId:deptId,&#xD;
+      type:&quot;OUT&quot;&#xD;
 });&#xD;
 &#xD;
 query = function(){&#xD;
 	var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
 	view.get(&quot;#dsQuery&quot;).set(&quot;parameter&quot;,data).flushAsync();&#xD;
 };&#xD;
-query();</ClientEvent>
+query();&#xD;
+&#xD;
+showImg = function(){&#xD;
+	&#xD;
+	var select = view.get(&quot;#dataGridMain2&quot;).get(&quot;selection&quot;);&#xD;
+	if(select){&#xD;
+    	var user = encodeURIComponent(select.get(&quot;userName&quot;));&#xD;
+    	var plateNum = encodeURIComponent(select.get(&quot;plateNum&quot;));&#xD;
+	&#xD;
+    	view.get(&quot;#iFrameImg&quot;).set(&quot;path&quot;, &quot;/basic/inout/inout-img?id=&quot; + select.get(&quot;id&quot;)+&quot;&amp;plateNum=&quot;+plateNum+&quot;&amp;user=&quot;+user);&#xD;
+    	view.get(&quot;#dialogImg&quot;).show();&#xD;
+	}else{&#xD;
+    	$notify(&quot;璇烽�夋嫨鏁版嵁鈥︹��&quot;);&#xD;
+	}&#xD;
+};</ClientEvent>
     <Property name="packages">font-awesome,css-common</Property>
     <DataSet id="dsMain">
       <Property name="dataType">[dtMain]</Property>
-      <Property name="dataProvider">reportOutDetailPR#listRecord</Property>
+      <Property name="dataProvider">reportInoutPR#listRecord</Property>
       <Property name="loadMode">manual</Property>
     </DataSet>
     <DataSet id="dsQuery">
       <Property name="dataType">dtQuery</Property>
-      <Property name="dataProvider">reportOutDetailPR#getQuery</Property>
+      <Property name="dataProvider">reportInoutPR#getQueryInout</Property>
       <Property></Property>
       <Property name="loadMode">manual</Property>
+    </DataSet>
+    <DataSet id="dsDeptList">
+      <Property name="dataProvider">deptPR#getDeptByUserType</Property>
+      <Property name="userData">搴撳尯鍒楄〃涓嬫媺妗�</Property>
+      <Property name="loadMode">manual</Property>
+      <Property name="dataType">[dtDept]</Property>
     </DataSet>
     <Container>
       <Property name="className">c-param</Property>
       <AutoForm id="form1" layoutConstraint="top">
-        <Property name="cols">*,*,*,*,90,90,140</Property>
+        <Property name="cols">*,*,280,280,90,90,140</Property>
         <Property name="dataSet">dsQuery</Property>
         <Property name="exClassName">bg-color</Property>
         <Property name="labelWidth">110</Property>
@@ -482,7 +510,7 @@
     &quot;start&quot;:data.get(&quot;start&quot;),&#xD;
     &quot;end&quot;:data.get(&quot;end&quot;)&#xD;
 }&#xD;
-window.parent.$.table.exportExcelDorado(&quot;./export/inOutReport-excel&quot;, &quot;鍑哄簱鏁版嵁&quot;, param);</ClientEvent>
+window.parent.$.table.exportExcelDorado(&quot;./export/inout-excel&quot;, &quot;鍑哄簱鏁版嵁&quot;, param);</ClientEvent>
           <Property name="caption">瀵煎嚭EXCEL</Property>
           <Property name="exClassName">btn-q2</Property>
           <Property name="width">140</Property>
@@ -490,7 +518,7 @@
         </Button>
       </AutoForm>
       <AutoForm id="form2" layoutConstraint="top">
-        <Property name="cols">*,*,*,*,90,90,140</Property>
+        <Property name="cols">*,*,280,280,90,90,140</Property>
         <Property name="dataSet">dsQuery</Property>
         <Property name="exClassName">bg-color</Property>
         <Property name="labelWidth">110</Property>
@@ -508,6 +536,7 @@
           <Property name="property">deptId</Property>
           <Property name="label">鎵�灞炲簱鍖�</Property>
           <Property name="hideMode">visibility</Property>
+          <Property name="trigger">dsDeptDropDown</Property>
           <Editor/>
         </AutoFormElement>
         <AutoFormElement>
@@ -522,7 +551,14 @@
         </AutoFormElement>
         <Button>
           <ClientEvent name="onClick">	var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
-	view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,data).flushAsync();</ClientEvent>
+	var deptId=data.get(&quot;deptId&quot;);&#xD;
+	var companyId=data.get(&quot;companyId&quot;);&#xD;
+	if(!companyId || !deptId){&#xD;
+		$alert(&quot;璇峰厛閫夋嫨鏀跺偍鍏徃鍜屽拰鎵�灞炲簱鍖�&quot;);&#xD;
+	}else{&#xD;
+		view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,data).flushAsync();&#xD;
+	}&#xD;
+</ClientEvent>
           <Property name="caption">鎼滅储</Property>
           <Property name="exClassName">btn-q1</Property>
           <Property name="iconClass">fa fa-search</Property>
@@ -536,13 +572,13 @@
         <Button layoutConstraint="left">
           <ClientEvent name="onClick">var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
 var param = {&#xD;
-	&quot;type&quot;:&quot;OUT&quot;,&#xD;
+	&quot;type&quot;:&quot;OUT_DETAIL&quot;,&#xD;
     &quot;deptId&quot;:data.get(&quot;deptId&quot;),&#xD;
 	&quot;companyId&quot;:data.get(&quot;companyId&quot;),&#xD;
     &quot;start&quot;:data.get(&quot;start&quot;),&#xD;
     &quot;end&quot;:data.get(&quot;end&quot;)&#xD;
 }&#xD;
-window.parent.$.table.exportExcelDorado(&quot;./export/inOutReport-excel&quot;, &quot;鍑哄簱鏁版嵁&quot;, param);</ClientEvent>
+window.parent.$.table.exportExcelDorado(&quot;./export/inout-excel&quot;, &quot;鍑哄簱鏁版嵁&quot;, param);</ClientEvent>
           <Property name="caption">瀵煎嚭EXCEL</Property>
           <Property name="exClassName">btn-q2</Property>
           <Property name="width">140</Property>
@@ -553,12 +589,12 @@
     <Container layoutConstraint="center">
       <Property name="className">c-data</Property>
       <AutoForm id="autoForm1" layoutConstraint="top">
-        <Property name="cols">*,*,*,*,*,*,*</Property>
+        <Property name="cols">*,*,300</Property>
         <Property name="dataSet">dsQuery</Property>
         <Property name="labelAlign">right</Property>
         <Property name="showHint">false</Property>
         <Property name="labelWidth">120</Property>
-        <AutoFormElement layoutConstraint="colSpan:7">
+        <AutoFormElement layoutConstraint="colSpan:3">
           <Property name="name">title</Property>
           <Property name="property">title</Property>
           <Property name="showLabel">false</Property>
@@ -569,43 +605,21 @@
           </Property>
           <Editor/>
         </AutoFormElement>
-        <AutoFormElement layoutConstraint="colSpan:2">
+        <AutoFormElement>
           <Property name="name">timeDesc</Property>
           <Property name="property">timeDesc</Property>
           <Property name="editorType">Label</Property>
           <Editor/>
         </AutoFormElement>
         <AutoFormElement>
-          <Property name="name">none</Property>
-          <Property name="property">none</Property>
+          <Property name="name">createUser</Property>
+          <Property name="property">createUser</Property>
           <Property name="editorType">Label</Property>
-          <Property name="showLabel">false</Property>
           <Editor/>
         </AutoFormElement>
         <AutoFormElement>
-          <Property name="name">none</Property>
-          <Property name="property">none</Property>
-          <Property name="editorType">Label</Property>
-          <Property name="showLabel">false</Property>
-          <Editor/>
-        </AutoFormElement>
-        <AutoFormElement>
-          <Property name="name">none</Property>
-          <Property name="property">none</Property>
-          <Property name="editorType">Label</Property>
-          <Property name="showLabel">false</Property>
-          <Editor/>
-        </AutoFormElement>
-        <AutoFormElement>
-          <Property name="name">none</Property>
-          <Property name="property">none</Property>
-          <Property name="editorType">Label</Property>
-          <Property name="showLabel">false</Property>
-          <Editor/>
-        </AutoFormElement>
-        <AutoFormElement>
-          <Property name="name">unit</Property>
-          <Property name="property">unit</Property>
+          <Property name="name">createTime</Property>
+          <Property name="property">createTime</Property>
           <Property name="editorType">Label</Property>
           <Editor/>
         </AutoFormElement>
@@ -695,6 +709,7 @@
 	arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
 	//arg.processDefault = false;&#xD;
 }</ClientEvent>
+        <ClientEvent name="onDataRowClick">view.get(&quot;#dataGridMain2&quot;).set(&quot;selection&quot;,arg.data);</ClientEvent>
         <Property name="dataSet">dsMain</Property>
         <Property name="readOnly">true</Property>
         <Property name="highlightCurrentRow">false</Property>
@@ -702,6 +717,8 @@
         <Property name="hideMode">display</Property>
         <Property name="headerRowHeight">30</Property>
         <Property name="rowHeight">50</Property>
+        <Property name="selectionMode">singleRow</Property>
+        <RowSelectorColumn/>
         <RowNumColumn>
           <Property name="caption">搴忓彿</Property>
         </RowNumColumn>
@@ -761,7 +778,9 @@
           <Property name="width">150</Property>
         </DataColumn>
         <DataColumn>
-          <ClientEvent name="onRenderCell">//arg.dom.innerHTML = &quot;&lt;a href='javascript:;' onClick='detail()' class='a-btn1'>鏌ョ湅璇︽儏&lt;/a>&quot;;</ClientEvent>
+          <ClientEvent name="onRenderCell"> var txt = arg.data.getText(&quot;id&quot;);&#xD;
+ if(!txt || txt == '鍚堣') return true;&#xD;
+arg.dom.innerHTML = &quot;&lt;a href='javascript:;'  onClick='showImg()' class='a-btn1'>杩囩▼杩芥函&lt;/a>&quot;;</ClientEvent>
           <Property name="width">160</Property>
           <Property name="caption">鎿嶄綔</Property>
           <Property name="align">center</Property>
@@ -779,5 +798,43 @@
         </DataPilot>
       </ToolBar>
     </Container>
+    <Dialog id="dialogImg">
+      <Property name="width">55%</Property>
+      <Property name="height">95%</Property>
+      <Property name="iconClass">fa fa-tasks</Property>
+      <Property name="caption">娴佺▼杩芥函灞曠ず</Property>
+      <Buttons/>
+      <Children>
+        <IFrame id="iFrameImg">
+          <Property name="width">100%</Property>
+        </IFrame>
+      </Children>
+      <Tools/>
+    </Dialog>
+    <DataSetDropDown id="dsDeptDropDown">
+      <ClientEvent name="onOpen">&#xD;
+var entity = view.get(&quot;#dsQuery.data&quot;);&#xD;
+if(!entity){&#xD;
+    $alert(&quot;璇峰厛閫夋嫨鎵�灞炲叕鍙�&quot;);&#xD;
+}else{&#xD;
+    var deptId = entity.get(&quot;companyId&quot;);&#xD;
+    if(!deptId){&#xD;
+        $alert(&quot;璇峰厛閫夋嫨鎵�灞炲叕鍙�&quot;);&#xD;
+    }else{&#xD;
+        view.get(&quot;#dsDeptList&quot;).set(&quot;parameter&quot;,entity.get(&quot;companyId&quot;)).flushAsync();&#xD;
+    }&#xD;
+}</ClientEvent>
+      <Property name="dataSet">dsDeptList</Property>
+      <Property name="height">450</Property>
+      <Property name="autoOpen">true</Property>
+      <Property name="assignmentMap">deptId=id</Property>
+      <Property name="width">400</Property>
+      <DataColumn>
+        <Property name="align">center</Property>
+        <Property name="name">kqmc</Property>
+        <Property name="property">kqmc</Property>
+        <Editor/>
+      </DataColumn>
+    </DataSetDropDown>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3