From 6f45f4a29ce38525f3f9e3931bcedfc77bde765e Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期六, 24 六月 2023 18:07:43 +0800
Subject: [PATCH] 出入库流程优化-入库详单优化

---
 igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.view.xml |  458 ++++++++++++++++++++++-----------------------------------
 1 files changed, 176 insertions(+), 282 deletions(-)

diff --git a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.view.xml b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.view.xml
index 9f75b8f..be037e4 100644
--- a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.view.xml
+++ b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutList.view.xml
@@ -4,26 +4,14 @@
   <Context/>
   <Model>
     <DataType name="dtMain" parent="dtInoutRecord">
-      <ClientEvent name="onDataChange">if(arg.property ==&quot;depotId&quot;){&#xD;
-	autoByDepot(arg.newValue);&#xD;
-}&#xD;
-if(arg.property ==&quot;foodVariety&quot;){&#xD;
-    checkByFood(arg.newValue);&#xD;
-}</ClientEvent>
-      <PropertyDef name="price">
-        <Property name="dataType">Double</Property>
-        <Property name="label">绮瀹氫环</Property>
-        <Property name="required">false</Property>
-      </PropertyDef>
       <Reference name="checkItems">
         <Property name="parameter">
           <Entity>
             <Property name="checkId">$${this.checkId}</Property>
             <Property name="foodVariety">$${this.foodVariety}</Property>
-            <Property name="deptId">$${this.deptId}</Property>
           </Entity>
         </Property>
-        <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property>
+        <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property>
         <Property name="dataType">[dtCheckItems]</Property>
       </Reference>
     </DataType>
@@ -118,9 +106,6 @@
     </DataType>
     <DataType name="dtCheckItems">
       <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property>
-      <PropertyDef name="updateTime">
-        <Property name="dataType">Date</Property>
-      </PropertyDef>
       <PropertyDef name="checkId">
         <Property></Property>
         <Property name="label">妫�娴嬬紪鐮�</Property>
@@ -165,17 +150,9 @@
         <Property name="dataType">Double</Property>
         <Property name="label">澧為噸%</Property>
       </PropertyDef>
-      <PropertyDef name="ruleAddEnd">
-        <Property name="dataType">Double</Property>
-        <Property name="label">澧為噸涓婇檺%</Property>
-      </PropertyDef>
       <PropertyDef name="ruleReduce">
         <Property name="dataType">Double</Property>
         <Property name="label">鎵i噸鍊�%</Property>
-      </PropertyDef>
-      <PropertyDef name="standardPrice">
-        <Property name="dataType">Double</Property>
-        <Property name="label">鏍囧噯鍗曚环锛堝厓/鏂わ級</Property>
       </PropertyDef>
       <PropertyDef name="rulePrice">
         <Property name="dataType">Double</Property>
@@ -189,12 +166,34 @@
         <Property></Property>
         <Property name="label">杩愮畻绗﹀彿</Property>
       </PropertyDef>
+      <PropertyDef name="addNum">
+        <Property name="dataType">Double</Property>
+        <Property name="label">澧為噸</Property>
+      </PropertyDef>
+      <PropertyDef name="deNum">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鎵i噸</Property>
+      </PropertyDef>
+      <PropertyDef name="addPrice">
+        <Property name="dataType">Double</Property>
+        <Property name="label">澧炰环</Property>
+      </PropertyDef>
+      <PropertyDef name="dePrice">
+        <Property name="dataType">Double</Property>
+        <Property name="label">鎵d环</Property>
+      </PropertyDef>
+      <PropertyDef name="result">
+        <Property/>
+        <Property name="label">妫�楠岀粨鏋�</Property>
+      </PropertyDef>
+      <PropertyDef name="operaSymbolValue">
+        <Property/>
+      </PropertyDef>
     </DataType>
   </Model>
   <View layout="padding:5;regionPadding:5">
     <ClientEvent name="onReady">var TYPE = &quot;${request.getParameter('type')}&quot;;&#xD;
 var EDIT = &quot;${request.getParameter('edit')}&quot;;&#xD;
-&#xD;
 var deptId = window.parent.DEPT_ID;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�&#xD;
 &#xD;
 //濡傛灉edit鏈夊�艰〃绀洪殣钘廇DD鍜岀紪杈戞寜閽�&#xD;
@@ -202,15 +201,6 @@
 	view.get(&quot;#btnEdit&quot;).set(&quot;visible&quot;,false);&#xD;
 	view.get(&quot;#btnDel&quot;).set(&quot;visible&quot;,false);&#xD;
 	view.get(&quot;#btn2End&quot;).set(&quot;visible&quot;,false);&#xD;
-}&#xD;
-&#xD;
-//绫诲瀷鍒囨崲&#xD;
-if(&quot;OUT&quot; == TYPE){&#xD;
-	view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,false);&#xD;
-	view.get(&quot;#deWet&quot;).set(&quot;label&quot;,&quot;姘村垎澧為噸&quot;);&#xD;
-}else{&#xD;
-	view.get(&quot;#deWet&quot;).set(&quot;label&quot;,&quot;姘村垎鎵i噸&quot;);&#xD;
-	view.get(&quot;#dataGridCheckItem&quot;).set(&quot;visible&quot;,true);&#xD;
 }&#xD;
 &#xD;
 //榛樿鏌ヨ鏌ヨ鎻愭潯浠�&#xD;
@@ -256,28 +246,6 @@
 	view.get(&quot;#textAbnormal&quot;).set(&quot;value&quot;,null);&#xD;
 };&#xD;
 &#xD;
-//鍒犻櫎&#xD;
-del = function(){&#xD;
-	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-	if(!data) return;&#xD;
-	&#xD;
-	var textDel = view.get(&quot;#textAbnormal.text&quot;);&#xD;
-	if(!textDel){&#xD;
-		$notify(&quot;璇峰~鍐欏紓甯稿垹闄ゅ師鍥狅紒&quot;);&#xD;
-		return;&#xD;
-	}&#xD;
-	data.set(&quot;remarks&quot;,textDel);&#xD;
-	view.get(&quot;#ajaxDel&quot;).execute(function(result){&#xD;
-		if(result){&#xD;
-			$alert(result);&#xD;
-			return;&#xD;
-		}else{&#xD;
-			data.remove();&#xD;
-			view.get(&quot;#dialogAbnormal&quot;).close();&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
-&#xD;
 //杩借釜&#xD;
 showImg = function(){&#xD;
     var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
@@ -289,6 +257,7 @@
     view.get(&quot;#dialogImg&quot;).show();&#xD;
 };&#xD;
 &#xD;
+//寮傚父鎵ц&#xD;
 todoError = function(){&#xD;
 	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
 	if(!data) return;&#xD;
@@ -304,8 +273,8 @@
 			$alert(result);&#xD;
 			return;&#xD;
 		}else{&#xD;
+			data.remove();&#xD;
 			view.get(&quot;#dialogAbnormal&quot;).close();&#xD;
-			query();&#xD;
 			$alert(&quot;鎵ц鎴愬姛锛岃嚜鍔ㄥ埛鏂版暟鎹紒&quot;);&#xD;
 		}&#xD;
 	});&#xD;
@@ -324,6 +293,7 @@
 	view.get(&quot;#btnOK&quot;).set(&quot;visible&quot;,false);&#xD;
 	view.get(&quot;#dialogMain&quot;).show();&#xD;
 };&#xD;
+&#xD;
 //娴佺▼瀹屾垚-鎵ц&#xD;
 completeExe = function(){&#xD;
 	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
@@ -346,29 +316,21 @@
 	});&#xD;
 };&#xD;
 &#xD;
-//鏍规嵁浠撳簱鑷姩鍥炲~绮鍝佺锛岀櫥璁帮紝浜у湴鏂�&#xD;
-autoByDepot = function(depotId){&#xD;
-	view.get(&quot;#ajaxGetDepot&quot;).set(&quot;parameter&quot;,depotId).execute(function(result){&#xD;
-		if(result){&#xD;
-			var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-			data.set(&quot;foodLocation&quot;,result.foodLocation);&#xD;
-			data.set(&quot;foodLevel&quot;,result.foodLevel);&#xD;
-			data.set(&quot;foodVariety&quot;,result.foodVariety);&#xD;
-			data.set(&quot;foodYear&quot;,result.foodYear);&#xD;
-		}&#xD;
-	});&#xD;
-};&#xD;
 &#xD;
-//鏍规嵁绮鍝佺鏌ヨ鍖栭獙椤瑰苟鍥炴樉&#xD;
-checkByFood = function(foodVariety){&#xD;
-    if(TYPE == &quot;IN&quot;){&#xD;
-    	view.get(&quot;#ajaxGetCheck&quot;).set(&quot;parameter&quot;,{foodVariety:foodVariety,deptId:deptId}).execute(function(result){&#xD;
-            if(result){&#xD;
-            var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-            data.set(&quot;checkItems&quot;,result);&#xD;
-        	}&#xD;
-        });&#xD;
-    }&#xD;
+//鏍规嵁绮鍝佺鑾峰彇绯荤粺閰嶇疆妫�娴嬮」鐩�&#xD;
+flushCheckList = function(){&#xD;
+	var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
+	if (!data.get(&quot;foodVariety&quot;)) {&#xD;
+		$alert(&quot;娌℃湁閰嶇疆绮鍝佺锛屾棤娉曡幏鍙栬川妫�椤癸紒&quot;);&#xD;
+		return;&#xD;
+	}&#xD;
+   view.get(&quot;#ajaxGetCheck&quot;).set(&quot;parameter&quot;,{checkId:data.get(&quot;checkId&quot;),foodVariety:data.get(&quot;foodVariety&quot;)}).execute(function(result){&#xD;
+        if(result){&#xD;
+        	data.set(&quot;checkItems&quot;,result);&#xD;
+    	}else{&#xD;
+			$alert(&quot;褰撳墠绮鍝佺鏈厤缃川妫�椤癸紝璇疯仈绯荤鐞嗗憳&quot;);&#xD;
+		}&#xD;
+   });&#xD;
 };&#xD;
 </ClientEvent>
     <ClientEvent name="onCreate">&#xD;
@@ -405,34 +367,13 @@
 	 //姹囨�荤粨鏋�&#xD;
     var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;&#xD;
     //鎵f按鏉�&#xD;
-    var deWet = curData.get(&quot;deWet&quot;), deImpurity = curData.get(&quot;deImpurity&quot;);&#xD;
+    var deWet = 0;&#xD;
 	&#xD;
-	var impurity = curData.get(&quot;impurity&quot;), wet = curData.get(&quot;wet&quot;);&#xD;
+	var impurity = 0;&#xD;
 	&#xD;
 	&#xD;
 	 var deBase = 0, multiple = 0;&#xD;
 	 var checkItems = curData.get(&quot;checkItems&quot;);&#xD;
-    //姘村垎鏉傝川锛屾洿鏀规瘮渚嬪苟涓旀按鍒嗘墸閲嶈繕娌¤绠楁儏鍐典笅&#xD;
-    if (&quot;wet&quot; == name) {&#xD;
-        var checkItem = this.getCheckItem(checkItems,&quot;C01&quot;, &quot;C020101&quot;);&#xD;
-        if (checkItem) {&#xD;
-            deBase = Number(wet) - Number(checkItem.get(&quot;upperLimit&quot;));&#xD;
-            if (deBase == 0) return;&#xD;
-            multiple = parseInt(deBase / checkItem.get(&quot;ruleNum&quot;));//鍊嶆暟&#xD;
-            deWet = (netWeight * multiple * checkItem.get(&quot;ruleReduce&quot;) / 100.00).toFixed(0);&#xD;
-        }&#xD;
-    }&#xD;
-	&#xD;
-    //鏉傝川&#xD;
-    if (&quot;impurity&quot; == name) {&#xD;
-        checkItem = this.getCheckItem(recordData.checkItems, &quot;C02&quot;,&quot;C01010301&quot;);&#xD;
-        if (checkItem) {&#xD;
-            deBase = Number(impurity) - Number(checkItem.get(&quot;upperLimit&quot;));&#xD;
-            if (deBase == 0) return;&#xD;
-            multiple = parseInt(deBase / checkItem.get(&quot;ruleNum&quot;));&#xD;
-            deImpurity = (netWeight * multiple * checkItem.get(&quot;ruleReduce&quot;) / 100.00).toFixed(0);&#xD;
-        }&#xD;
-    }&#xD;
 &#xD;
     /** 鎬绘墸閲嶏紝涓嶅惈澧為噸*/&#xD;
     deSum = Number(curData.get(&quot;deOther&quot;)) + Number(curData.get(&quot;deHandle&quot;));&#xD;
@@ -473,16 +414,10 @@
     /** 缁撶畻閲嶉噺 = 鍑�閲� - 鎬绘墸閲� + 澧為噸 */&#xD;
     settleWeight = Number(netWeight) - Number(deSum) + Number(addSum);&#xD;
 	&#xD;
-	curData.set(&quot;impurity&quot;,impurity);&#xD;
-	curData.set(&quot;wet&quot;,wet);&#xD;
-	curData.set(&quot;deImpurity&quot;,deImpurity);&#xD;
-	curData.set(&quot;deWet&quot;,deWet);&#xD;
-	curData.set(&quot;deSum&quot;,deSum);&#xD;
 	curData.set(&quot;netWeight&quot;,netWeight);&#xD;
 	curData.set(&quot;settleWeight&quot;,settleWeight);&#xD;
 	curData.set(&quot;recordWeight&quot;,recordWeight);&#xD;
 };&#xD;
-&#xD;
 &#xD;
 /**&#xD;
  * 鏍规嵁鍖栭獙椤瑰拰浼犻�掕繃鏉ョ殑鍙傛暟鑾峰彇褰撳墠鍙傛暟鐨勯厤缃俊鎭�&#xD;
@@ -666,7 +601,6 @@
         </DataColumn>
         <DataColumn>
           <Property name="property">customerName</Property>
-          <Property name="width">250</Property>
           <Property name="name">customerName</Property>
           <Property name="align">center</Property>
           <Property name="caption">瀹㈡埛鍚嶇О</Property>
@@ -687,40 +621,27 @@
           <Property name="property">fullWeight</Property>
           <Property name="caption">姣涢噸</Property>
           <Property name="align">center</Property>
-          <Property name="width">100</Property>
+          <Property name="width">120</Property>
         </DataColumn>
         <DataColumn name="emptyWeight">
           <Property name="property">emptyWeight</Property>
           <Property name="caption">鐨噸</Property>
           <Property name="align">center</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn name="netWeight">
-          <Property name="property">netWeight</Property>
-          <Property name="align">center</Property>
-          <Property name="caption">鍑�閲�</Property>
-          <Property name="width">100</Property>
-        </DataColumn>
-        <DataColumn id="columnDeSum">
-          <Property name="property">deSum</Property>
-          <Property name="width">100</Property>
-          <Property name="caption">鎬绘墸閲�</Property>
-          <Property name="align">center</Property>
-          <Property name="name">deSum</Property>
+          <Property name="width">120</Property>
         </DataColumn>
         <DataColumn name="settleWeight">
           <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
 arg.processDefault = true;</ClientEvent>
           <Property name="property">settleWeight</Property>
           <Property name="align">center</Property>
-          <Property name="width">100</Property>
+          <Property name="width">120</Property>
         </DataColumn>
         <DataColumn>
           <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
 arg.processDefault = true;</ClientEvent>
           <Property name="property">recordWeight</Property>
           <Property name="align">center</Property>
-          <Property name="width">100</Property>
+          <Property name="width">120</Property>
           <Property name="visible">true</Property>
           <Property name="name">recordWeight</Property>
         </DataColumn>
@@ -744,13 +665,13 @@
         </DataColumn>
       </DataGrid>
     </Container>
-    <Container layoutConstraint="bottom">
-      <Property name="exClassName">bg-color</Property>
-      <DataPilot layoutConstraint="right">
+    <ToolBar layoutConstraint="bottom">
+      <Fill/>
+      <DataPilot>
         <Property name="itemCodes">pageSize,pages</Property>
         <Property name="dataSet">dsMain</Property>
       </DataPilot>
-    </Container>
+    </ToolBar>
     <Dialog id="dialogMain">
       <Property name="closeable">false</Property>
       <Property name="caption">琛ㄥ崟淇℃伅</Property>
@@ -784,30 +705,25 @@
           <Property name="hideMode">display</Property>
           <Property name="visible">false</Property>
         </Button>
-        <Button id="btnAddCheck">
-          <ClientEvent name="onClick">var data = view.get(&quot;#dataGridMain.currentEntity&quot;);&#xD;
-var list = data.get(&quot;checkItems&quot;);&#xD;
-&#xD;
-list.insert({});&#xD;
-console.log(list);&#xD;
-</ClientEvent>
-          <Property name="caption">鏂板鍖栭獙椤�</Property>
-          <Property name="iconClass">fa fa-plus</Property>
-          <Property name="hideMode">display</Property>
-          <Property name="visible">true</Property>
-        </Button>
         <Button>
           <ClientEvent name="onClick">cancelMain();</ClientEvent>
           <Property name="caption">鍙栨秷鎿嶄綔</Property>
           <Property name="iconClass">fa fa-times</Property>
         </Button>
+        <Button id="btnFlushCheck" layoutConstraint="left">
+          <ClientEvent name="onClick">flushCheckList();</ClientEvent>
+          <Property name="caption">鑾峰彇璐ㄦ椤�</Property>
+          <Property name="exClassName">btn-default</Property>
+          <Property name="iconClass">fa fa-gavel</Property>
+          <Property name="visible">false</Property>
+        </Button>
       </Buttons>
       <Children>
         <TabControl>
           <ClientEvent name="onTabChange">if(arg.newTab.get(&quot;name&quot;) == &quot;tabCheck&quot;){&#xD;
-	view.get(&quot;#btnAddCheck&quot;).set(&quot;visible&quot;,true);&#xD;
+	view.get(&quot;#btnFlushCheck&quot;).set(&quot;visible&quot;,true);&#xD;
 }else{&#xD;
-	view.get(&quot;#btnAddCheck&quot;).set(&quot;visible&quot;,false);&#xD;
+	view.get(&quot;#btnFlushCheck&quot;).set(&quot;visible&quot;,false);&#xD;
 }</ClientEvent>
           <ControlTab>
             <Property name="caption">鍩虹淇℃伅</Property>
@@ -889,26 +805,6 @@
                       <Editor/>
                     </AutoFormElement>
                     <AutoFormElement>
-                      <Property name="name">specType</Property>
-                      <Property name="property">specType</Property>
-                      <Editor>
-                        <RadioGroup>
-                          <RadioButton>
-                            <Property name="text">鏁g伯</Property>
-                            <Property name="value">鏁g伯</Property>
-                          </RadioButton>
-                            <RadioButton>
-                                <Property name="text">25kg</Property>
-                                <Property name="value">25kg</Property>
-                            </RadioButton>
-                          <RadioButton>
-                            <Property name="text">50kg</Property>
-                            <Property name="value">50kg</Property>
-                          </RadioButton>
-                        </RadioGroup>
-                      </Editor>
-                    </AutoFormElement>
-                    <AutoFormElement>
                       <Property name="name">foodLevel</Property>
                       <Property name="property">foodLevel</Property>
                       <Editor/>
@@ -939,7 +835,7 @@
                 <Children>
                   <AutoForm>
                     <Property name="dataSet">dsMain</Property>
-                    <Property name="cols">*,*,*,*,*,*</Property>
+                    <Property name="cols">*,50,*,50,*,50</Property>
                     <Property name="labelAlign">right</Property>
                     <Property name="labelWidth">100</Property>
                     <Property name="labelSeparator">锛�</Property>
@@ -953,6 +849,17 @@
                       <Editor/>
                     </AutoFormElement>
                     <AutoFormElement layoutConstraint="colSpan:2">
+                      <Property name="name">emptyWeightTime</Property>
+                      <Property name="property">emptyWeightTime</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement layoutConstraint="colSpan:2">
+                      <Property name="name">fullWeightUser</Property>
+                      <Property name="property">fullWeightUser</Property>
+                      <Property name="label">绉伴噸浜�</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement layoutConstraint="colSpan:2">
                       <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
 var id = self.getDom().id;&#xD;
 var prop = id.substring(2,id.length);&#xD;
@@ -963,50 +870,14 @@
                       <Editor/>
                     </AutoFormElement>
                     <AutoFormElement layoutConstraint="colSpan:2">
-                      <Property name="name">netWeight</Property>
-                      <Property name="property">netWeight</Property>
-                      <Property name="readOnly">true</Property>
+                      <Property name="name">fullWeightTime</Property>
+                      <Property name="property">fullWeightTime</Property>
                       <Editor/>
                     </AutoFormElement>
-                    <AutoFormElement>
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">deImpurity</Property>
-                      <Property name="property">deImpurity</Property>
-                      <Property name="showHint">false</Property>
+                    <AutoFormElement layoutConstraint="colSpan:2">
+                      <Property name="name">completeTime</Property>
+                      <Property name="property">completeTime</Property>
                       <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">impurity</Property>
-                      <Property name="property">impurity</Property>
-                      <Property name="showLabel">false</Property>
-                      <Editor>
-                        <TextEditor>
-                          <Property name="blankText"> -- % --</Property>
-                        </TextEditor>
-                      </Editor>
-                    </AutoFormElement>
-                    <AutoFormElement id="deWet">
-                      <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
-var id = self.getDom().id;&#xD;
-var prop = id.substring(2,id.length);&#xD;
-deAutoByWeight(prop);</ClientEvent>
-                      <Property name="name">deWet</Property>
-                      <Property name="property">deWet</Property>
-                      <Property name="showHint">false</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement>
-                      <Property name="name">wet</Property>
-                      <Property name="property">wet</Property>
-                      <Property name="showLabel">false</Property>
-                      <Editor>
-                        <TextEditor>
-                          <Property name="blankText"> -- % --</Property>
-                        </TextEditor>
-                      </Editor>
                     </AutoFormElement>
                     <AutoFormElement layoutConstraint="colSpan:2">
                       <ClientEvent name="onBlur">//id 瑙勫垯 d_prop&#xD;
@@ -1015,6 +886,7 @@
 deAutoByWeight(prop);</ClientEvent>
                       <Property name="name">deHandle</Property>
                       <Property name="property">deHandle</Property>
+                      <Property name="label">鐜板満鎵i噸</Property>
                       <Editor/>
                     </AutoFormElement>
                     <AutoFormElement layoutConstraint="colSpan:2">
@@ -1027,8 +899,31 @@
                       <Editor/>
                     </AutoFormElement>
                     <AutoFormElement layoutConstraint="colSpan:2">
-                      <Property name="name">deSum</Property>
-                      <Property name="property">deSum</Property>
+                      <Property name="name">deOtherInfo</Property>
+                      <Property name="property">deOtherInfo</Property>
+                      <Property name="label">鍏朵粬鍘熷洜</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement layoutConstraint="colSpan:2">
+                      <Property name="name">deCheck</Property>
+                      <Property name="property">deCheck</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement layoutConstraint="colSpan:2">
+                      <Property name="name">addCheck</Property>
+                      <Property name="property">addCheck</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <Label layoutConstraint="colSpan:2">
+                      <Property name="style">
+                        <Property name="color">blue</Property>
+                        <Property name="padding-left">80px</Property>
+                      </Property>
+                      <Property name="text">璇存槑锛氳川妫�澧炴墸閲嶈鏌ョ湅璐ㄦ淇℃伅鏍忎綅璇︾粏</Property>
+                    </Label>
+                    <AutoFormElement layoutConstraint="colSpan:2">
+                      <Property name="name">netWeight</Property>
+                      <Property name="property">netWeight</Property>
                       <Property name="readOnly">true</Property>
                       <Editor/>
                     </AutoFormElement>
@@ -1039,51 +934,88 @@
                       <Editor/>
                     </AutoFormElement>
                     <AutoFormElement layoutConstraint="colSpan:2">
-                      <Property name="name">fullWeightTime</Property>
-                      <Property name="property">fullWeightTime</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <Property name="name">emptyWeightTime</Property>
-                      <Property name="property">emptyWeightTime</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
                       <Property name="name">recordWeight</Property>
                       <Property name="property">recordWeight</Property>
                       <Property name="readOnly">true</Property>
                       <Editor/>
                     </AutoFormElement>
-                    <AutoFormElement layoutConstraint="colSpan:2">
-                      <Property name="name">completeTime</Property>
-                      <Property name="property">completeTime</Property>
-                      <Editor/>
-                    </AutoFormElement>
-                    <Label layoutConstraint="colSpan:4">
-                      <Property name="style">
-                        <Property name="color">blue</Property>
-                        <Property name="padding-left">80px</Property>
-                      </Property>
-                      <Property name="text">璇存槑锛氱粨绠楅噸閲�=鍑�閲�-鎵i噸+澧為噸锛涘叆搴撻噸閲�=鍑�閲�-鎵i噸锛涙墸姘存潅锛氭鏁�=鎵i噸锛岃礋鏁�=澧為噸</Property>
-                    </Label>
                   </AutoForm>
                 </Children>
               </FieldSet>
               <FieldSet layout="regionPadding:5" layoutConstraint="padding:10">
-                <Property name="caption">澶囨敞璇存槑</Property>
+                <Property name="caption">鍏朵粬闇�瑕佽ˉ鍏呬俊鎭�</Property>
                 <Buttons/>
                 <Children>
                   <AutoForm>
                     <Property name="dataSet">dsMain</Property>
-                    <Property name="cols">*,*</Property>
+                    <Property name="cols">*,*,*</Property>
                     <Property name="labelAlign">right</Property>
                     <Property name="labelSeparator">锛�</Property>
                     <Property name="labelWidth">100</Property>
-                    <AutoFormElement layoutConstraint="colSpan:2">
+                    <AutoFormElement>
+                      <Property name="name">jjlx</Property>
+                      <Property name="property">jjlx</Property>
+                      <Editor>
+                        <RadioGroup>
+                          <RadioButton>
+                            <Property name="text">绉伴噸鍏ュ簱</Property>
+                            <Property name="value">0</Property>
+                          </RadioButton>
+                          <RadioButton>
+                            <Property name="value">1</Property>
+                            <Property name="text">鏍囧噯鍖呭叆搴�</Property>
+                          </RadioButton>
+                        </RadioGroup>
+                      </Editor>
+                    </AutoFormElement>
+                    <AutoFormElement>
+                      <Property name="name">bzw</Property>
+                      <Property name="property">bzw</Property>
+                      <Editor>
+                        <RadioGroup>
+                          <RadioButton>
+                            <Property name="text">楹昏</Property>
+                            <Property name="value">1</Property>
+                          </RadioButton>
+                          <RadioButton>
+                            <Property name="text">缂栫粐琚�</Property>
+                            <Property name="value">2</Property>
+                          </RadioButton>
+                          <RadioButton>
+                            <Property name="text">鏁h</Property>
+                            <Property name="value">3</Property>
+                          </RadioButton>
+                          <RadioButton>
+                            <Property name="value">9</Property>
+                            <Property name="text">鍏朵粬</Property>
+                          </RadioButton>
+                        </RadioGroup>
+                      </Editor>
+                    </AutoFormElement>
+                    <AutoFormElement>
+                      <Property name="name">dbz</Property>
+                      <Property name="property">dbz</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement>
+                      <Property name="name">bzbjs</Property>
+                      <Property name="property">bzbjs</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement>
+                      <Property name="name">dePackage</Property>
+                      <Property name="property">dePackage</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement>
+                      <Property name="name">price</Property>
+                      <Property name="property">price</Property>
+                      <Editor/>
+                    </AutoFormElement>
+                    <AutoFormElement layoutConstraint="colSpan:3">
                       <Property name="name">remarks</Property>
                       <Property name="property">remarks</Property>
                       <Property name="editorType">TextArea</Property>
-                      <Property name="showLabel">false</Property>
                       <Editor/>
                     </AutoFormElement>
                   </AutoForm>
@@ -1092,14 +1024,14 @@
             </Container>
           </ControlTab>
           <ControlTab id="tabCheck">
-            <Property name="caption">鎵︽牱鍖栭獙</Property>
+            <Property name="caption">璐ㄦ淇℃伅</Property>
             <Property name="iconClass">fa fa-gavel</Property>
             <Property name="width">150</Property>
             <Property name="name">tabCheck</Property>
             <Container layout="padding:10">
               <AutoForm>
                 <Property name="dataSet">dsMain</Property>
-                <Property name="cols">*,*,*,*</Property>
+                <Property name="cols">*,*,*</Property>
                 <Property name="labelAlign">right</Property>
                 <Property name="labelWidth">100</Property>
                 <Property name="labelSeparator">锛�</Property>
@@ -1140,19 +1072,14 @@
                   <Property name="label">鍖栭獙缁撴灉</Property>
                   <Editor/>
                 </AutoFormElement>
+                <AutoFormElement>
+                  <Property name="name">checkTime</Property>
+                  <Property name="property">checkTime</Property>
+                  <Property name="label">璐ㄦ鏃堕棿</Property>
+                  <Editor/>
+                </AutoFormElement>
               </AutoForm>
               <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10">
-                <ClientEvent name="onCellValueEdit">//瀹炵幇鍖栭獙椤圭洰璋冩暣锛屾洿鏂颁富琛ㄤ腑鍊�&#xD;
-var entity = arg.entity;&#xD;
-var inoutData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
-&#xD;
-if(entity.get(&quot;standardId&quot;) ==&quot;C01&quot;){//姘村垎&#xD;
-	inoutData.set(&quot;wet&quot;,entity.get(&quot;value&quot;));&#xD;
-}&#xD;
-&#xD;
-if(entity.get(&quot;standardId&quot;) ==&quot;C02&quot;){//闆滃織&#xD;
-	inoutData.set(&quot;impurity&quot;,entity.get(&quot;value&quot;));&#xD;
-}</ClientEvent>
                 <Property name="dataSet">dsMain</Property>
                 <Property name="dataPath">#.checkItems</Property>
                 <Property name="highlightCurrentRow">false</Property>
@@ -1210,12 +1137,6 @@
       <Property name="closeable">false</Property>
       <Buttons>
         <Button>
-          <ClientEvent name="onClick">del();</ClientEvent>
-          <Property name="caption">纭畾鍒犻櫎</Property>
-          <Property name="iconClass">fa fa-check</Property>
-          <Property name="exClassName">btn-warn</Property>
-        </Button>
-        <Button>
           <ClientEvent name="onClick">todoError();</ClientEvent>
           <Property name="caption">寮傚父缁堟</Property>
           <Property name="iconClass">fa fa-check</Property>
@@ -1258,15 +1179,6 @@
         <Property name="validateData">false</Property>
       </UpdateItem>
     </UpdateAction>
-    <UpdateAction id="ajaxDel">
-      <Property name="dataResolver">inoutDataPR#delInoutData</Property>
-      <Property name="confirmMessage">纭畾瑕佹墽琛屽垹闄や箞锛�</Property>
-      <UpdateItem>
-        <Property name="dataSet">dsMain</Property>
-        <Property name="dataPath">[#current]</Property>
-        <Property name="validateData">false</Property>
-      </UpdateItem>
-    </UpdateAction>
     <UpdateAction id="ajaxError">
       <Property name="dataResolver">inoutDataPR#errorInoutData</Property>
       <UpdateItem>
@@ -1298,14 +1210,8 @@
       <Property name="executingMessage">姝e湪鎵ц鎵撳嵃鈥︹��</Property>
       <Property name="async">false</Property>
     </AjaxAction>
-    <AjaxAction id="ajaxInitAdd">
-      <Property name="service">inoutDataPR#initAddData</Property>
-    </AjaxAction>
-    <AjaxAction id="ajaxGetDepot">
-      <Property name="service">depotPR#getDepot</Property>
-    </AjaxAction>
     <AjaxAction id="ajaxGetCheck">
-      <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property>
+      <Property name="service">checkStandardPR#listCheckItemsByParam</Property>
     </AjaxAction>
     <Export2ReportAction id="exportExcel">
       <Property name="extension">xls</Property>
@@ -1474,24 +1380,12 @@
       </MenuItem>
       <MenuItem>
         <ClientEvent name="onClick">printCheck();</ClientEvent>
-        <Property name="caption">鎵撳嵃妫�楠屽崟</Property>
+        <Property name="caption">鎵撳嵃璐ㄦ鍗�</Property>
         <Property name="iconClass">fa fa-print</Property>
       </MenuItem>
       <MenuItem>
         <ClientEvent name="onClick">printPay();</ClientEvent>
         <Property name="caption">鎵撳嵃缁撶畻鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-        <Property name="disabled">true</Property>
-      </MenuItem>
-      <Separator/>
-      <MenuItem>
-        <ClientEvent name="onClick">printBatchWeight();</ClientEvent>
-        <Property name="caption">鎵归噺杩囩鍗�</Property>
-        <Property name="iconClass">fa fa-print</Property>
-      </MenuItem>
-      <MenuItem>
-        <ClientEvent name="onClick">printBatchCheck();</ClientEvent>
-        <Property name="caption">鎵归噺鍖栭獙鍗�</Property>
         <Property name="iconClass">fa fa-print</Property>
       </MenuItem>
       <MenuItem>

--
Gitblit v1.9.3