From 0d85ccadf29a78342cd268416ce951ea6a78defe Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期四, 25 十二月 2025 17:06:42 +0800
Subject: [PATCH] 库存报表列宽调整,映射调整,查询调整,导出实现

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/SuperInventoryReport.view.xml |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/SuperInventoryReport.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/SuperInventoryReport.view.xml
index 7e7a9cc..260a93d 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/SuperInventoryReport.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/SuperInventoryReport.view.xml
@@ -5,7 +5,7 @@
   <Model>
     <DataType name="dtMain">
       <Property name="creationType">com.fzzy.igds.data.SuperInventoryReportData</Property>
-      <PropertyDef name="customerName">
+      <PropertyDef name="customerId">
         <Property name="label">鏀跺偍鍏徃</Property>
         <Property name="mapping">
           <Property name="mapValues">${dorado.getDataProvider(&quot;companyPR#getData&quot;).getResult()}</Property>
@@ -93,7 +93,7 @@
         <Property name="label">鎴鏃堕棿</Property>
         <Property name="dataType">Date</Property>
       </PropertyDef>
-      <PropertyDef name="customerName">
+      <PropertyDef name="customerId">
         <Property></Property>
         <Property name="label">鏀跺偍鍏徃</Property>
         <Property name="mapping">
@@ -153,8 +153,8 @@
         <Property name="labelWidth">110</Property>
         <Property name="exClassName">bg-color</Property>
         <AutoFormElement>
-          <Property name="property">customerName</Property>
-          <Property name="name">customerName</Property>
+          <Property name="property">customerId</Property>
+          <Property name="name">customerId</Property>
         </AutoFormElement>
         <AutoFormElement>
           <Property name="name">deptId</Property>
@@ -185,6 +185,14 @@
           <Property name="caption">閲嶇疆</Property>
         </Button>
         <Button layoutConstraint="left">
+          <ClientEvent name="onClick">var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
+var param = {&#xD;
+    &quot;deptId&quot;:data.get(&quot;deptId&quot;),&#xD;
+	&quot;customerId&quot;:data.get(&quot;customerId&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/superInventoryReport-excel&quot;, &quot;搴撳瓨鏁版嵁&quot;, param);</ClientEvent>
           <Property name="caption">瀵煎嚭EXCEL</Property>
           <Property name="exClassName">btn-q2</Property>
           <Property name="width">140</Property>
@@ -244,35 +252,46 @@
         <Property name="headerRowHeight">30</Property>
         <Property name="rowHeight">50</Property>
         <RowNumColumn/>
-        <DataColumn name="customerName">
-          <Property name="property">customerName</Property>
+        <DataColumn>
+          <Property name="property">customerId</Property>
+          <Property name="width">326</Property>
+          <Property name="name">customerId</Property>
         </DataColumn>
         <DataColumn name="deptId">
           <Property name="property">deptId</Property>
+          <Property name="width">250</Property>
         </DataColumn>
         <DataColumn name="depotId">
           <Property name="property">depotId</Property>
+          <Property name="width">326</Property>
         </DataColumn>
         <DataColumn name="initialWeight">
           <Property name="property">initialWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
         <DataColumn name="recordInWeight">
           <Property name="property">recordInWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
         <DataColumn name="changeInWeight">
           <Property name="property">changeInWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
         <DataColumn name="recordOutWeight">
           <Property name="property">recordOutWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
         <DataColumn name="changeOutWeight">
           <Property name="property">changeOutWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
         <DataColumn name="lossWeight">
           <Property name="property">lossWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
         <DataColumn name="finalWeight">
           <Property name="property">finalWeight</Property>
+          <Property name="width">100</Property>
         </DataColumn>
       </DataGrid>
       <ToolBar id="tool" layoutConstraint="bottom">

--
Gitblit v1.9.3