From cdad99fd8386cc3a44f6e66a85f4d0d0ac6fff03 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期六, 08 二月 2025 10:00:36 +0800
Subject: [PATCH] 优化库存同步

---
 src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml |   98 +++++++++++++++++++-----------------------------
 1 files changed, 39 insertions(+), 59 deletions(-)

diff --git a/src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml b/src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml
index 2d2f1a4..3c3569b 100644
--- a/src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml
+++ b/src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml
@@ -28,11 +28,6 @@
       <PropertyDef name="htlx">
         <Property></Property>
         <Property name="label">鍚堝悓绫诲瀷</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;HT_YWLX&quot;)}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
       </PropertyDef>
       <PropertyDef name="htbh">
         <Property></Property>
@@ -59,13 +54,12 @@
         <Property name="label">鍚堝悓瀹㈡埛鍚嶇О</Property>
       </PropertyDef>
       <PropertyDef name="htspdj">
-        <Property></Property>
+        <Property name="dataType">Double</Property>
         <Property name="label">鍚堝悓鍟嗗搧鍗曚环</Property>
       </PropertyDef>
       <PropertyDef name="htspsl">
         <Property name="dataType">Double</Property>
         <Property name="label">鍚堝悓鍟嗗搧鏁伴噺</Property>
-        <Property name="displayFormat">#0.00</Property>
       </PropertyDef>
       <PropertyDef name="spbm">
         <Property></Property>
@@ -75,7 +69,7 @@
         <Property name="dataType">Double</Property>
         <Property name="label">鎬婚噾棰�</Property>
       </PropertyDef>
-      <PropertyDef name="htqdr">
+      <PropertyDef name="hrqdr">
         <Property></Property>
         <Property name="label">鍚堝悓绛捐浜�</Property>
       </PropertyDef>
@@ -89,7 +83,7 @@
       </PropertyDef>
       <PropertyDef name="htjzrq">
         <Property name="dataType">Date</Property>
-        <Property name="label">鍚堝悓鎴鏃堕棿</Property>
+        <Property name="label">鍚堝悓鎴鏃ユ湡</Property>
       </PropertyDef>
       <PropertyDef name="htcjr">
         <Property></Property>
@@ -118,28 +112,26 @@
       <PropertyDef name="zffs">
         <Property></Property>
         <Property name="label">鏀粯鏂瑰紡</Property>
-        <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;JSFS&quot;)}</Property>
-          <Property name="keyProperty">code</Property>
-          <Property name="valueProperty">name</Property>
-        </Property>
       </PropertyDef>
       <PropertyDef name="ywcsl">
         <Property name="dataType">Double</Property>
         <Property name="label">宸插畬鎴愭暟閲�</Property>
       </PropertyDef>
       <PropertyDef name="ywcslje">
-        <Property></Property>
+        <Property name="dataType">Double</Property>
         <Property name="label">宸插畬鎴愭暟閲忛噾棰�</Property>
       </PropertyDef>
       <PropertyDef name="htbz">
         <Property></Property>
         <Property name="label">鍚堝悓澶囨敞</Property>
       </PropertyDef>
-      <PropertyDef name="xh">
+      <PropertyDef name="htzt">
         <Property></Property>
-        <Property name="label">搴忓彿</Property>
+        <Property name="label">鍚堝悓鐘舵��</Property>
+      </PropertyDef>
+      <PropertyDef name="xh">
         <Property name="dataType">Integer</Property>
+        <Property name="label">搴忓彿</Property>
       </PropertyDef>
       <PropertyDef name="sfyx">
         <Property></Property>
@@ -170,11 +162,11 @@
         <Property></Property>
         <Property name="label">搴撳尯浠g爜</Property>
       </PropertyDef>
-      <Reference name="htspqd">
-        <Property name="parameter">$${this.htid}</Property>
-        <Property name="dataProvider">whjlApi1206PR#listItem</Property>
+      <PropertyDef name="htspqd">
+        <Property></Property>
+        <Property name="label">鍚堝悓鍟嗗搧娓呭崟</Property>
         <Property name="dataType">[dtItem]</Property>
-      </Reference>
+      </PropertyDef>
     </DataType>
     <DataType name="dtItem">
       <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlQDItem</Property>
@@ -247,6 +239,7 @@
     <DataSet id="dsMain">
       <Property name="dataType">[dtMain]</Property>
       <Property name="dataProvider">whjlApi1206PR#listData</Property>
+      <Property name="pageSize">20</Property>
     </DataSet>
     <Container layout="regionPadding:10" layoutConstraint="top">
       <Property name="exClassName">bg-color</Property>
@@ -387,11 +380,18 @@
         </DataColumn>
       </DataGrid>
     </Container>
+    <Container layoutConstraint="bottom">
+      <Property name="exClassName">bg-color</Property>
+      <DataPilot layoutConstraint="right">
+        <Property name="dataSet">dsMain</Property>
+        <Property name="itemCodes">pageSize,pages</Property>
+      </DataPilot>
+    </Container>
     <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
       <Property name="width">85%</Property>
       <Property name="closeable">false</Property>
       <Property name="iconClass">fa fa-sliders</Property>
-      <Property name="caption">瀹㈡埛淇℃伅</Property>
+      <Property name="caption">鍚堝悓淇℃伅</Property>
       <Property name="height">85%</Property>
       <Buttons>
         <Button>
@@ -423,12 +423,6 @@
               <Property name="labelSeparator">:</Property>
               <Property name="labelAlign">left</Property>
               <AutoFormElement>
-                <Property name="name">htlx</Property>
-                <Property name="property">htlx</Property>
-                <Property name="editorType">RadioGroup</Property>
-                <Editor/>
-              </AutoFormElement>
-              <AutoFormElement>
                 <Property name="name">htid</Property>
                 <Property name="property">htid</Property>
                 <Editor/>
@@ -454,6 +448,11 @@
                 <Editor/>
               </AutoFormElement>
               <AutoFormElement>
+                <Property name="name">htlx</Property>
+                <Property name="property">htlx</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
                 <Property name="name">htbh</Property>
                 <Property name="property">htbh</Property>
                 <Editor/>
@@ -466,38 +465,22 @@
               <AutoFormElement>
                 <Property name="name">jljgqybh</Property>
                 <Property name="property">jljgqybh</Property>
-                <Editor>
-                  <TextEditor>
-                    <Property name="blankText">----鐢ㄤ簬閲囪喘鍚堝悓----</Property>
-                  </TextEditor>
-                </Editor>
+                <Editor/>
               </AutoFormElement>
               <AutoFormElement>
                 <Property name="name">jljgqymc</Property>
                 <Property name="property">jljgqymc</Property>
-                <Editor>
-                  <TextEditor>
-                    <Property name="blankText">----鐢ㄤ簬閲囪喘鍚堝悓----</Property>
-                  </TextEditor>
-                </Editor>
+                <Editor/>
               </AutoFormElement>
               <AutoFormElement>
                 <Property name="name">htkhbh</Property>
                 <Property name="property">htkhbh</Property>
-                <Editor>
-                  <TextEditor>
-                    <Property name="blankText">----鐢ㄤ簬閿�鍞悎鍚�----</Property>
-                  </TextEditor>
-                </Editor>
+                <Editor/>
               </AutoFormElement>
               <AutoFormElement>
                 <Property name="name">htkhmc</Property>
                 <Property name="property">htkhmc</Property>
-                <Editor>
-                  <TextEditor>
-                    <Property name="blankText">----鐢ㄤ簬閿�鍞悎鍚�----</Property>
-                  </TextEditor>
-                </Editor>
+                <Editor/>
               </AutoFormElement>
               <AutoFormElement>
                 <Property name="name">htspdj</Property>
@@ -520,8 +503,8 @@
                 <Editor/>
               </AutoFormElement>
               <AutoFormElement>
-                <Property name="name">htqdr</Property>
-                <Property name="property">htqdr</Property>
+                <Property name="name">hrqdr</Property>
+                <Property name="property">hrqdr</Property>
                 <Editor/>
               </AutoFormElement>
               <AutoFormElement>
@@ -562,7 +545,6 @@
               <AutoFormElement>
                 <Property name="name">htgylx</Property>
                 <Property name="property">htgylx</Property>
-                <Property name="trigger">listDropLX</Property>
                 <Editor/>
               </AutoFormElement>
               <AutoFormElement>
@@ -588,6 +570,11 @@
               <AutoFormElement>
                 <Property name="name">htbz</Property>
                 <Property name="property">htbz</Property>
+                <Editor/>
+              </AutoFormElement>
+              <AutoFormElement>
+                <Property name="name">htzt</Property>
+                <Property name="property">htzt</Property>
                 <Editor/>
               </AutoFormElement>
               <AutoFormElement>
@@ -649,14 +636,7 @@
 if(!data){&#xD;
  return;&#xD;
 }&#xD;
-view.get(&quot;#ajaxItem&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
-	if(result){&#xD;
-  		$alert(result);&#xD;
-  		return;&#xD;
- 	}else{&#xD;
-  		data.remove();&#xD;
- 	}&#xD;
-});</ClientEvent>
+data.remove();</ClientEvent>
                 <Property name="caption">鍒犻櫎</Property>
                 <Property name="exClassName">btn-warn</Property>
                 <Property name="iconClass">fa fa-minus</Property>

--
Gitblit v1.9.3