From 27ab62f7d980e13e3fe5cd3ac5a979c7d5fc92b7 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期四, 15 一月 2026 11:04:42 +0800
Subject: [PATCH] 库区,仓库联动查询修改
---
fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeIn.view.xml | 84 +++++++++++++++++++++++++++--------------
1 files changed, 55 insertions(+), 29 deletions(-)
diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeIn.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeIn.view.xml
index 800c073..b5b07c6 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeIn.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/zy/InoutNoticeIn.view.xml
@@ -6,12 +6,10 @@
<DataType name="dtMain" parent="dtNoticeIn"/>
</Model>
<View layout="padding:10">
- <ClientEvent name="onReady">var deptId = window.parent.deptId;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�
-var TYPE = "NOTICE_IN";
-query = function(){
- view.get("#dsQuery").set("parameter",{deptId:deptId}).flushAsync();
+ <ClientEvent name="onReady">query = function(){
+ var param = view.get("#dsQuery.data");
+ view.get("#dsMain").set("parameter",param).flushAsync();
};
-query();


//瀹d紶鎿嶄綔
@@ -39,11 +37,17 @@

//鐐瑰嚮瀹℃牳
audit = function(){
- 
+ var cur = view.get("#dsMain.data:#");
+ var url ="com.fzzy.work.WorkOrder.d?businessId="+cur.get("id");
+ window.$openParentTab("宸ュ崟绠$悊",url);
}
//鐐瑰嚮璇︾粏
showDetail = function(){
- 
+ view.get("#dialogMain").show();
+}
+//鐐瑰嚮鎵撳嵃
+print = function(){
+ $alert("鏈幏鍙栧埌鎵撳嵃妯℃澘鈥︹��");
}</ClientEvent>
<Property name="packages">font-awesome,css-common</Property>
<DataSet id="dsMain">
@@ -54,13 +58,18 @@
</DataSet>
<DataSet id="dsQuery">
<Property name="dataProvider">inoutNoticePR#getYearQuery</Property>
- <Property name="loadMode">manual</Property>
<Property name="dataType">dtNoticeParam</Property>
+ </DataSet>
+ <DataSet id="dsDepotList">
+ <Property name="dataProvider">depotPR#getData</Property>
+ <Property name="userData">浠撳簱涓嬫媺鍒楄〃</Property>
+ <Property name="loadMode">manual</Property>
+ <Property name="dataType">[dtDepot]</Property>
</DataSet>
<Container>
<Property name="className">c-param</Property>
<AutoForm>
- <Property name="cols">*,*,*,90,90,*</Property>
+ <Property name="cols">*,*,*,90,90,90</Property>
<Property name="dataSet">dsQuery</Property>
<Property name="labelAlign">right</Property>
<Property name="labelWidth">100</Property>
@@ -72,6 +81,7 @@
<AutoFormElement>
<Property name="name">depotId</Property>
<Property name="property">depotId</Property>
+ <Property name="trigger">dsDepotDropDown</Property>
<Editor/>
</AutoFormElement>
<AutoFormElement>
@@ -100,13 +110,6 @@
</Container>
<Container>
<Property name="className">c-data</Property>
- <ToolBar>
- <ToolBarButton layoutConstraint="left">
- <Property name="caption">瀵煎嚭EXCEL</Property>
- <Property name="exClassName">btn4</Property>
- <Property name="iconClass">fa fa-file-excel-o</Property>
- </ToolBarButton>
- </ToolBar>
<DataGrid id="dataGridMain" layoutConstraint="padding:8">
<ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent>
<Property name="dataSet">dsMain</Property>
@@ -176,27 +179,24 @@
<Property name="width">1200</Property>
<Property name="iconClass">fa fa-tasks</Property>
<Buttons>
- <Button id="btnOk">
- <ClientEvent name="onClick">view.get("#updateSave").execute(function(result){
- if(result){
- $alert(result);
- return;
- }
- $notify("鏁版嵁鎵ц瀹屾垚锛侊紒");
- self.get("parent").hide();
-});</ClientEvent>
- <Property name="caption">淇濆瓨</Property>
+ <Button>
+ <ClientEvent name="onClick">autid();</ClientEvent>
+ <Property name="caption">瀹℃壒</Property>
<Property name="iconClass">fa fa-check-circle</Property>
<Property name="exClassName">btn1</Property>
- <Property name="width">120</Property>
+ </Button>
+ <Button>
+ <ClientEvent name="onClick">print();</ClientEvent>
+ <Property name="caption">鎵撳嵃</Property>
+ <Property name="iconClass">fa fa-file-word-o</Property>
+ <Property name="exClassName">btn2</Property>
</Button>
<Button>
<ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
self.get("parent").hide();</ClientEvent>
- <Property name="caption">鍙栨秷</Property>
+ <Property name="caption">鍏抽棴</Property>
<Property name="exClassName">btn3</Property>
<Property name="iconClass">fa fa-times-circle</Property>
- <Property name="width">120</Property>
</Button>
</Buttons>
<Children>
@@ -231,6 +231,7 @@
<Property name="labelAlign">right</Property>
<Property name="labelSeparator">锛�</Property>
<Property name="labelWidth">120</Property>
+ <Property name="readOnly">true</Property>
<AutoFormElement layoutConstraint="colSpan:2">
<Property name="name">name</Property>
<Property name="property">name</Property>
@@ -364,5 +365,30 @@
<AjaxAction id="recalculate">
<Property name="service">inoutNoticePR#updateSumNoticeIn</Property>
</AjaxAction>
+ <DataSetDropDown id="dsDepotDropDown">
+ <ClientEvent name="onOpen">
+ var entity = view.get("#dsQuery.data:#");
+ if(!entity){
+ $alert("璇峰厛閫夋嫨鎵�灞炲簱鍖�");
+ }else{
+ var deptId = entity.get("deptId");
+ if(!deptId){
+ $alert("璇峰厛閫夋嫨鎵�灞炲簱鍖�");
+ }else{
+ view.get("#dsDepotList").set("parameter",entity.get("deptId")).flushAsync();
+ }
+ }</ClientEvent>
+ <Property name="dataSet">dsDepotList</Property>
+ <Property name="height">450</Property>
+ <Property name="autoOpen">true</Property>
+ <Property name="assignmentMap">depotId=id</Property>
+ <Property name="width">400</Property>
+ <DataColumn>
+ <Property name="align">center</Property>
+ <Property name="name">name</Property>
+ <Property name="property">name</Property>
+ <Editor/>
+ </DataColumn>
+ </DataSetDropDown>
</View>
</ViewConfig>
--
Gitblit v1.9.3