| | |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">组织编码</Property> |
| | | <Property name="label">收储公司</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("companyPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">dwmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="progress"> |
| | | <Property></Property> |
| | |
| | | <Property></Property> |
| | | <Property name="label">装卸仓库</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | |
| | | <Property></Property> |
| | | <Property name="label">装卸仓库</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | |
| | | <Property name="label">截止时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerName"> |
| | | <Property></Property> |
| | | <Property name="label">单位</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("companyPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">dwmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="unit"> |
| | | <Property></Property> |
| | | <Property name="label">单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="timeDesc"> |
| | | <Property></Property> |
| | | <Property name="label">时间</Property> |
| | | <Property name="label">查询时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">制表时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createUser"> |
| | | <Property name="label">制表人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="title"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="none"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">收储公司</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("companyPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">dwmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | |
| | | var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsQuery").set("parameter",data).flushAsync();
 |
| | | };
 |
| | | query();</ClientEvent> |
| | | query();
 |
| | | 
 |
| | | 
 |
| | | 
 |
| | | 
 |
| | | //追踪
 |
| | | showImg = function(){
 |
| | | 
 |
| | | var select = view.get("#dataGridMain2").get("selection");
 |
| | | if(select){
 |
| | | 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("#dialogImg").show();
 |
| | | }else{
 |
| | | $notify("请选择数据……");
 |
| | | }
 |
| | | };</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | |
| | | <Property></Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dsDeptList"> |
| | | <Property name="dataProvider">deptPR#getDeptByUserType</Property> |
| | | <Property name="userData">库区列表下拉框</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | <Property name="dataType">[dtDept]</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm id="form1"> |
| | | <Property name="cols">*,*,*,*,90,90,140</Property> |
| | | <Property name="cols">*,*,280,280,90,90,140</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelAlign">right</Property> |
| | |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsQuery.data");
 |
| | | var param = {
 |
| | | "type":"IN",
 |
| | | "depotId":data.get("depotId"),
 |
| | | "foodVariety":data.get("foodVariety"),
 |
| | | "start":data.get("start"),
 |
| | | "end":data.get("end")
 |
| | | }
 |
| | | window.parent.$.table.exportExcelDorado("./export/inOutReport-excel", "入库数据", param);</ClientEvent> |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="width">140</Property> |
| | |
| | | </Button> |
| | | </AutoForm> |
| | | <AutoForm id="form2"> |
| | | <Property name="cols">*,*,*,*,90,90,140</Property> |
| | | <Property name="cols">*,*,280,280,90,90,140</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelAlign">right</Property> |
| | |
| | | <Property name="visible">false</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="name">companyId</Property> |
| | | <Property name="property">companyId</Property> |
| | | <Property name="label">收储公司</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | |
| | | <Property name="property">deptId</Property> |
| | | <Property name="label">所属库区</Property> |
| | | <Property name="hideMode">visibility</Property> |
| | | <Property name="trigger">dsDeptDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | </AutoFormElement> |
| | | <Button> |
| | | <ClientEvent name="onClick"> var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();</ClientEvent> |
| | | var deptId=data.get("deptId");
 |
| | | var companyId=data.get("companyId");
 |
| | | if(!companyId || !deptId){
 |
| | | $alert("请先选择收储公司和和所属库区");
 |
| | | 
 |
| | | }else{
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();
 |
| | | }
 |
| | | </ClientEvent> |
| | | <Property name="caption">搜索</Property> |
| | | <Property name="exClassName">btn-q1</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsQuery.data");
 |
| | | var param = {
 |
| | | "type":"IN_DETAIL",
 |
| | | "deptId":data.get("deptId"),
 |
| | | "companyId":data.get("companyId"),
 |
| | | "start":data.get("start"),
 |
| | | "end":data.get("end")
 |
| | | }
 |
| | | window.parent.$.table.exportExcelDorado("./export/inOutReport-excel", "入库数据", param);</ClientEvent> |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="width">140</Property> |
| | |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <AutoForm id="autoForm1" layoutConstraint="top"> |
| | | <Property name="cols">*,*,*,*,*,*,*</Property> |
| | | <Property name="cols">*,*,300</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:7"> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">title</Property> |
| | | <Property name="property">title</Property> |
| | | <Property name="showLabel">false</Property> |
| | |
| | | </Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <AutoFormElement> |
| | | <Property name="name">timeDesc</Property> |
| | | <Property name="property">timeDesc</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">none</Property> |
| | | <Property name="property">none</Property> |
| | | <Property name="name">createUser</Property> |
| | | <Property name="property">createUser</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">none</Property> |
| | | <Property name="property">none</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">none</Property> |
| | | <Property name="property">none</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">none</Property> |
| | | <Property name="property">none</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">unit</Property> |
| | | <Property name="property">unit</Property> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | |
| | | <RowNumColumn/> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="width">130</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="plateNum"> |
| | | <Property name="property">plateNum</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotId"> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="caption">仓库</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fullWeight"> |
| | | <Property name="property">fullWeight</Property> |
| | | <Property name="caption">毛重</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</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="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">deOther</Property> |
| | | <Property name="property">deOther</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="settleWeight"> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="caption">结算重量</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="caption">入库重量</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="caption">离库时间</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataGrid id="dataGridMain2" layoutConstraint="padding:8"> |
| | |
| | | arg.dom.style.fontWeight = "bold";
 |
| | | //arg.processDefault = false;
 |
| | | }</ClientEvent> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridMain2").set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="headerRowHeight">30</Property> |
| | | <Property name="rowHeight">50</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="caption">序号</Property> |
| | | </RowNumColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="property">companyId</Property> |
| | | <Property name="caption">收储公司</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="name">companyId</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="caption">库区名称</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="width">250</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">deptId</Property> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="width">130</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="plateNum"> |
| | | <Property name="property">plateNum</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotId"> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="caption">仓库</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="settleWeight"> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="caption">结算重量</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="caption">入库重量</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="caption">离库时间</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">//arg.dom.innerHTML = "<a href='javascript:;' onClick='detail()' class='a-btn1'>查看详情</a>";</ClientEvent> |
| | | <ClientEvent name="onRenderCell"> var txt = arg.data.getText("id");
 |
| | | if(!txt || txt == '合计') return true;
 |
| | | 
 |
| | | arg.dom.innerHTML = "<a href='javascript:;' onClick='showImg()' class='a-btn1'>过程追溯</a>";</ClientEvent> |
| | | <Property name="width">160</Property> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="align">center</Property> |
| | |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | <Dialog id="dialogImg"> |
| | | <Property name="width">55%</Property> |
| | | <Property name="height">95%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">流程追溯展示</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <IFrame id="iFrameImg"> |
| | | <Property name="width">100%</Property> |
| | | </IFrame> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <DataSetDropDown id="dsDeptDropDown"> |
| | | <ClientEvent name="onOpen">
 |
| | | var entity = view.get("#dsQuery.data");
 |
| | | if(!entity){
 |
| | | $alert("请先选择所属公司");
 |
| | | }else{
 |
| | | var deptId = entity.get("companyId");
 |
| | | if(!deptId){
 |
| | | $alert("请先选择所属公司");
 |
| | | }else{
 |
| | | view.get("#dsDeptList").set("parameter",entity.get("companyId")).flushAsync();
 |
| | | }
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsDeptList</Property> |
| | | <Property name="height">450</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Property name="assignmentMap">deptId=id</Property> |
| | | <Property name="width">400</Property> |
| | | <DataColumn> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">kqmc</Property> |
| | | <Property name="property">kqmc</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataSetDropDown> |
| | | </View> |
| | | </ViewConfig> |