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/InoutList.view.xml | 177 ++++++++++++++++++++++++++++++++++++----------------------
1 files changed, 110 insertions(+), 67 deletions(-)
diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml
index dbbd46e..d3e6642 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml
@@ -159,7 +159,7 @@
</PropertyDef>
<PropertyDef name="deptId">
<Property></Property>
- <Property name="label">鎵�灞炲垎搴�</Property>
+ <Property name="label">鎵�鍦ㄥ簱鍖�</Property>
<Property name="mapping">
<Property name="mapValues">${dorado.getDataProvider("deptPR#getAllData").getResult()}</Property>
<Property name="keyProperty">id</Property>
@@ -418,7 +418,7 @@
var user = encodeURIComponent(select.get("userName"));
var plateNum = encodeURIComponent(select.get("plateNum"));

- view.get("#iFrameImg").set("path", "./basic/inout/inout-img?id=" + select.get("id")+"&plateNum="+plateNum+"&user="+user);
+ view.get("#iFrameImg").set("path", "/basic/inout/inout-img?id=" + select.get("id")+"&plateNum="+plateNum+"&user="+user);
view.get("#dialogImg").show();
}else{
$notify("璇烽�夋嫨鏁版嵁鈥︹��");
@@ -610,6 +610,13 @@
<Property name="iconClass">fa fa-print</Property>
<Property name="width">120</Property>
</ToolBarButton>
+ <ToolBarButton>
+ <Property name="caption">瀵煎叆EXCEL</Property>
+ <Property name="exClassName">btn1</Property>
+ <Property name="iconClass">fa fa-file-excel-o</Property>
+ <Property name="action">uploadExcel</Property>
+ <Property name="width">120</Property>
+ </ToolBarButton>
</ToolBar>
<DataGrid id="dataGridMain" layoutConstraint="padding:8">
<ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent>
@@ -628,12 +635,19 @@
<Property name="align">center</Property>
<Property name="width">150</Property>
</DataColumn>
+ <DataColumn name="deptId">
+ <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
+ arg.processDefault = true;</ClientEvent>
+ <Property name="property">deptId</Property>
+ <Property name="align">center</Property>
+ <Property name="width">250</Property>
+ </DataColumn>
<DataColumn name="plateNum">
<ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
arg.processDefault = true;</ClientEvent>
<Property name="property">plateNum</Property>
<Property name="align">center</Property>
- <Property name="width">130</Property>
+ <Property name="width">120</Property>
</DataColumn>
<DataColumn>
<Property name="property">customerName</Property>
@@ -711,8 +725,9 @@
<Dialog id="dialogMain" layout="regionPadding:8">
<Property name="iconClass">fa fa-tasks</Property>
<Property name="caption">鍗曟嵁淇℃伅</Property>
- <Property name="width">1200</Property>
+ <Property name="width">80%</Property>
<Property name="closeable">false</Property>
+ <Property name="height">90%</Property>
<Buttons>
<Button id="btnOK">
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
@@ -748,7 +763,7 @@
<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>
@@ -762,10 +777,21 @@
<Property name="property">plateNum</Property>
<Editor/>
</AutoFormElement>
+ <AutoFormElement layoutConstraint="colSpan:2">
+ <Property name="name">deptId</Property>
+ <Property name="property">deptId</Property>
+ <Property name="readOnly">true</Property>
+ <Editor/>
+ </AutoFormElement>
<AutoFormElement>
<Property name="name">depotId</Property>
<Property name="property">depotId</Property>
<Property name="label">瑁呭嵏浠撳簱</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">foodVariety</Property>
+ <Property name="property">foodVariety</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
@@ -779,29 +805,8 @@
<Editor/>
</AutoFormElement>
<AutoFormElement>
- <Property name="name">foodVariety</Property>
- <Property name="property">foodVariety</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">perWet</Property>
- <Property name="property">perWet</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">userContact</Property>
- <Property name="property">userContact</Property>
- <Property name="label">鑱旂郴鐢佃瘽</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
<Property name="name">foodLevel</Property>
<Property name="property">foodLevel</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">perImpurity</Property>
- <Property name="property">perImpurity</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
@@ -817,15 +822,31 @@
<Editor/>
</AutoFormElement>
<AutoFormElement>
+ <Property name="name">userContact</Property>
+ <Property name="property">userContact</Property>
+ <Property name="label">鑱旂郴鐢佃瘽</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
<Property name="label">瀹㈡埛鍚嶇О</Property>
<Property name="property">customerName</Property>
<Property name="editable">false</Property>
<Property name="trigger">ddNotice</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
<Property name="name">noticeId</Property>
<Property name="property">noticeId</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">perWet</Property>
+ <Property name="property">perWet</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">perImpurity</Property>
+ <Property name="property">perImpurity</Property>
<Editor/>
</AutoFormElement>
</AutoForm>
@@ -837,76 +858,76 @@
<Children>
<AutoForm>
<Property name="dataSet">dsMain</Property>
- <Property name="cols">*,50,*,50,*,50</Property>
+ <Property name="cols">*,*,*,*</Property>
<Property name="labelAlign">right</Property>
<Property name="labelWidth">100</Property>
<Property name="labelSeparator">锛�</Property>
- <AutoFormElement layoutConstraint="colSpan:2">
- <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
- <Property name="name">fullWeight</Property>
- <Property name="property">fullWeight</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
<Property name="name">fullWeightTime</Property>
<Property name="property">fullWeightTime</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
<Property name="name">fullWeightUser</Property>
<Property name="property">fullWeightUser</Property>
<Property name="label">婊¤溅绉伴噸浜�</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
<ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
- <Property name="name">emptyWeight</Property>
- <Property name="property">emptyWeight</Property>
+ <Property name="name">fullWeight</Property>
+ <Property name="property">fullWeight</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">emptyWeightUser</Property>
- <Property name="property">emptyWeightUser</Property>
- <Property name="label">绌鸿溅绉伴噸浜�</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
- <Property name="name">netWeight</Property>
- <Property name="property">netWeight</Property>
- <Property name="readOnly">true</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
<ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
<Property name="name">deOther</Property>
<Property name="property">deOther</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
+ <Property name="name">emptyWeightTime</Property>
+ <Property name="property">emptyWeightTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">emptyWeightUser</Property>
+ <Property name="property">emptyWeightUser</Property>
+ <Property name="label">绌鸿溅绉伴噸浜�</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <ClientEvent name="onBlur">deAutoByWeight();</ClientEvent>
+ <Property name="name">emptyWeight</Property>
+ <Property name="property">emptyWeight</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">netWeight</Property>
+ <Property name="property">netWeight</Property>
+ <Property name="readOnly">true</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
<Property name="name">registerTime</Property>
<Property name="property">registerTime</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
+ <Property name="name">completeTime</Property>
+ <Property name="property">completeTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
<Property name="name">settleWeight</Property>
<Property name="property">settleWeight</Property>
<Property name="readOnly">true</Property>
<Editor/>
</AutoFormElement>
- <AutoFormElement layoutConstraint="colSpan:2">
+ <AutoFormElement>
<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>
</AutoForm>
@@ -949,7 +970,7 @@
<Tools/>
</Dialog>
<Dialog id="dialogImg">
- <Property name="width">1000</Property>
+ <Property name="width">55%</Property>
<Property name="height">95%</Property>
<Property name="iconClass">fa fa-tasks</Property>
<Property name="caption">娴佺▼杩芥函灞曠ず</Property>
@@ -962,10 +983,11 @@
<Tools/>
</Dialog>
<Dialog id="dialogAbnormal" layout="regionPadding:5">
- <Property name="width">450</Property>
+ <Property name="width">30%</Property>
<Property name="iconClass">fa fa-tasks</Property>
<Property name="caption">寮傚父鎿嶄綔鍘熷洜</Property>
<Property name="closeable">false</Property>
+ <Property name="height">45%</Property>
<Buttons>
<Button>
<ClientEvent name="onClick">todoError();</ClientEvent>
@@ -1161,5 +1183,26 @@
</Container>
</CustomDropDown>
<YearDropDown id="yearDropDown"/>
+ <UploadAction id="uploadExcel">
+ <ClientEvent name="onFileUploaded">var fileName = arg.returnValue;
+if(fileName){
+ $notify("闄勪欢涓婁紶鎴愬姛锛屽紑濮嬫墽琛岃В鏋愨�︹��");
+ view.get("#ajaxAnalysisExcel").set("parameter",fileName).execute(function(result){
+ if("200"!=result.code){
+ $alert(result.message);
+ }else{
+ $alert(result.message);
+ query();
+ }
+ });
+}</ClientEvent>
+ <Property name="fileResolver">fileUploadManage#uploadExcel</Property>
+ <Property name="maxFileSize">10MB</Property>
+ <Filters/>
+ </UploadAction>
+ <AjaxAction id="ajaxAnalysisExcel">
+ <Property name="service">inoutDataPR#analysisExcel</Property>
+ <Property name="executingMessage">姝e湪鎵ц瑙f瀽鈥︹��</Property>
+ </AjaxAction>
</View>
</ViewConfig>
--
Gitblit v1.9.3