| | |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <ClientEvent name="onDataChange">if(arg.property == 'type'){
 |
| | | //库区自建通知单
 |
| | | if(arg.newValue == '10'){
 |
| | | view.get("#formItemBank").set("visible",false);
 |
| | | var curData = view.get("#dsMain.data:#"); //当前选择的数据
 |
| | | curData.set("bankId",'-');
 |
| | | 
 |
| | | }
 |
| | | //质押监管通知单
 |
| | | if(arg.newValue == '20'){
 |
| | | view.get("#formItemBank").set("visible",true);
 |
| | | var curData = view.get("#dsMain.data:#"); //当前选择的数据
 |
| | | curData.set("bankId",null);
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | <ClientEvent name="onDataChange">
 |
| | | 
 |
| | | 
 |
| | | </ClientEvent> |
| | |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">库区自建通知单</Property> |
| | | <Property name="name">自用通知单</Property> |
| | | <Property name="code">10</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">质押监管通知单</Property> |
| | | <Property name="name">监管通知单</Property> |
| | | <Property name="code">20</Property> |
| | | </Entity> |
| | | </Collection> |
| | |
| | | <Property></Property> |
| | | <Property name="label">收货单位</Property> |
| | | <Property name="required">false</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#getAllData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">kqmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="year"> |
| | | <Property></Property> |
| | | <Property name="label">年份</Property> |
| | | <Property name="label">粮食年份</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="targetNumber"> |
| | | <Property name="dataType">Double</Property> |
| | |
| | | <Property name="dataType">dtNoticeParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dsDepotList"> |
| | | <Property name="dataProvider">depotPR#getDataByBankId</Property> |
| | | <Property name="dataProvider">depotPR#getData</Property> |
| | | <Property name="userData">仓库列表下拉框</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | <Property name="dataType">[dtDepot]</Property> |
| | |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">入库通知单</Property> |
| | | <Property name="width">85%</Property> |
| | | <Property name="height">90%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">var entity = view.get("#dsMain.data:#");
 |
| | | var bankId = entity.get("bankId");
 |
| | | if(!bankId){
 |
| | | $alert("请先选择监管银行");
 |
| | | }else{
 |
| | | view.get("#updateSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | <ClientEvent name="onClick">view.get("#updateSave").execute(function(result){
 |
| | | if(result.code != '200'){
 |
| | | $alert(result.message);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | $alert('数据执行成功!');
 |
| | | self.get("parent").hide();
 |
| | | });
 |
| | | }
 |
| | | 
 |
| | | 
 |
| | | </ClientEvent> |
| | | });</ClientEvent> |
| | | <Property name="caption">保存</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="showHint">true</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Property name="trigger">autoMappingDropDown1</Property> |
| | | <Property name="editorType">RadioGroup</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement id="formItemBank"> |
| | | <Property name="name">bankId</Property> |
| | | <Property name="property">bankId</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="hideMode">visibility</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">unitName</Property> |
| | | <Property name="property">unitName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">targetNumber</Property> |
| | | <Property name="property">targetNumber</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="readOnly">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">auditStatus</Property> |
| | | <Property name="property">auditStatus</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">contract</Property> |
| | | <Property name="property">contract</Property> |
| | |
| | | </Property> |
| | | <Property name="text">注:监管通知单,可填写质押合同名称</Property> |
| | | </Label> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="name">auditStatus</Property> |
| | | <Property name="property">auditStatus</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | </AutoFormElement> |
| | | <HtmlContainer layoutConstraint="colSpan:3"> |
| | | <Property name="content">1.入库通知单作为入库作业的前置条件,必须配置,否则无法进行入库作业。<br>
 |
| | | 2.单据类型=库区通知单,表示库区自己作业业务,不受监管管理。</Property> |
| | | 2.单据类型=库区通知单,表示库区自己作业业务,不受监管管理。<br>
 |
| | | 3.单据类型=质押监管通知单,单据必须填写监督银行。</Property> |
| | | <Property name="exClassName">h-tip</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | </HtmlContainer> |
| | |
| | | <Tools/> |
| | | </Dialog> |
| | | <DataSetDropDown id="dsDepotDropDown"> |
| | | <ClientEvent name="onOpen"> 
 |
| | | var entity = view.get("#dsMain.data:#");
 |
| | | if(!entity){
 |
| | | $alert("请先选择监管银行");
 |
| | | }else{
 |
| | | var typeData = entity.get("type");
 |
| | | if(typeData=='20'){
 |
| | | var bankId = entity.get("bankId");
 |
| | | console.log(bankId);
 |
| | | if(!bankId){
 |
| | | $alert("请先选择监管银行");
 |
| | | }else{
 |
| | | view.get("#dsDepotList").set("parameter",entity.get("bankId")).flushAsync();
 |
| | | }
 |
| | | }else{
 |
| | | view.get("#dsDepotList").set("parameter",null).flushAsync();
 |
| | | }
 |
| | | }
 |
| | | </ClientEvent> |
| | | <ClientEvent name="onOpen">
 |
| | | var entity = view.get("#dsMain.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> |