sgj
2026-03-27 878b6958363308a7d07b7b8197dc19662f3e1198
fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutList.view.xml
@@ -4,6 +4,9 @@
  <Context/>
  <Model>
    <DataType name="dtMain">
      <ClientEvent name="onDataChange">if(arg.property ==&quot;depotId&quot;){&#xD;
    autoByDepot(arg.newValue);&#xD;
}&#xD;</ClientEvent>
      <Property name="creationType">com.fzzy.igds.domain.InoutRecord</Property>
      <PropertyDef name="id">
        <Property></Property>
@@ -123,7 +126,7 @@
      </PropertyDef>
      <PropertyDef name="settleWeight">
        <Property name="dataType">Double</Property>
        <Property name="label">结算净重</Property>
        <Property name="label">结算重量</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">0.0 KG</Property>
      </PropertyDef>
@@ -157,9 +160,13 @@
        <Property></Property>
        <Property name="label">备注信息</Property>
      </PropertyDef>
      <PropertyDef name="updateLog">
        <Property></Property>
          <Property name="label">修改记录</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="label">所在库区</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#getAllData&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
@@ -316,7 +323,7 @@
        </Property>
      </PropertyDef>
      <PropertyDef name="plateNum">
        <Property name="label">车牌号号</Property>
        <Property name="label">车牌号</Property>
      </PropertyDef>
      <PropertyDef name="foodVariety">
        <Property></Property>
@@ -366,11 +373,6 @@
   view.get(&quot;#btnDel&quot;).set(&quot;visible&quot;,false);&#xD;
}&#xD;
&#xD;
if(&quot;OUT&quot; == TYPE){&#xD;
   view.get(&quot;#recordWeight&quot;).set(&quot;caption&quot;,&quot;出库重量&quot;);&#xD;
}else{&#xD;
   view.get(&quot;#recordWeight&quot;).set(&quot;caption&quot;,&quot;入库重量&quot;);&#xD;
}&#xD;
&#xD;
//默认查询查询提条件&#xD;
view.get(&quot;#dsQuery&quot;).insert({&#xD;
@@ -418,11 +420,21 @@
       var user = encodeURIComponent(select.get(&quot;userName&quot;));&#xD;
       var plateNum = encodeURIComponent(select.get(&quot;plateNum&quot;));&#xD;
   &#xD;
       view.get(&quot;#iFrameImg&quot;).set(&quot;path&quot;, &quot;./basic/inout/inout-img?id=&quot; + select.get(&quot;id&quot;)+&quot;&amp;plateNum=&quot;+plateNum+&quot;&amp;user=&quot;+user);&#xD;
       view.get(&quot;#iFrameImg&quot;).set(&quot;path&quot;, &quot;/basic/inout/inout-img?id=&quot; + select.get(&quot;id&quot;)+&quot;&amp;plateNum=&quot;+plateNum+&quot;&amp;user=&quot;+user);&#xD;
       view.get(&quot;#dialogImg&quot;).show();&#xD;
   }else{&#xD;
       $notify(&quot;请选择数据……&quot;);&#xD;
   }&#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&quot;).get(&quot;selection&quot;);&#xD;
            data.set(&quot;foodVariety&quot;,result.foodVariety);&#xD;
        }&#xD;
    });&#xD;
};&#xD;
&#xD;
//异常执行&#xD;
@@ -584,7 +596,7 @@
        </ToolBarButton>
        <ToolBarButton id="btnDel">
          <ClientEvent name="onClick">showAbnormal();</ClientEvent>
          <Property name="caption">异常操作</Property>
          <Property name="caption">作废操作</Property>
          <Property name="exClassName">btn4</Property>
          <Property name="iconClass">fa fa-minus</Property>
          <Property name="width">100</Property>
@@ -610,6 +622,22 @@
          <Property name="iconClass">fa fa-print</Property>
          <Property name="width">120</Property>
        </ToolBarButton>
        <ToolBarButton>
          <Property name="caption">导入EXCEL</Property>
          <Property name="exClassName">btn2</Property>
          <Property name="iconClass">fa fa-file-excel-o</Property>
          <Property name="action">uploadExcel</Property>
          <Property name="width">120</Property>
        </ToolBarButton>
        <ToolBarButton>
          <ClientEvent name="onClick">&#xD;
var url = &quot;/export/download-inout-excel&quot;;&#xD;
window.open(url);&#xD;</ClientEvent>
          <Property name="caption">模板下载</Property>
          <Property name="exClassName">btn1</Property>
          <Property name="iconClass">fa fa-cloud-download</Property>
          <Property name="width">120</Property>
        </ToolBarButton>
      </ToolBar>
      <DataGrid id="dataGridMain" layoutConstraint="padding:8">
        <ClientEvent name="onDataRowClick">view.get(&quot;#dataGridMain&quot;).set(&quot;selection&quot;,arg.data);</ClientEvent>
@@ -628,12 +656,19 @@
          <Property name="align">center</Property>
          <Property name="width">150</Property>
        </DataColumn>
        <DataColumn name="deptId">
          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
            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 = &quot;bold&quot;;&#xD;
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>
@@ -678,15 +713,6 @@
          <Property name="align">center</Property>
          <Property name="width">100</Property>
        </DataColumn>
        <DataColumn id="recordWeight">
          <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="visible">true</Property>
          <Property name="name">recordWeight</Property>
        </DataColumn>
        <DataColumn name="progress">
          <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
arg.processDefault = true;</ClientEvent>
@@ -711,8 +737,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="showCaptionBar">false</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(&quot;#dsMain.data:#&quot;);&#xD;
@@ -748,7 +775,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 +789,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 +817,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 +834,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 +870,70 @@
          <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">
                <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>
@@ -942,6 +969,12 @@
                <Property name="property">remarks</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:3">
                <Property name="name">updateLog</Property>
                <Property name="property">updateLog</Property>
                <Property name="readOnly">true</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
@@ -949,7 +982,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,21 +995,22 @@
      <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>
          <Property name="caption">异常终止</Property>
          <Property name="caption">确认作废</Property>
          <Property name="iconClass">fa fa-check</Property>
          <Property name="exClassName">btn1</Property>
          <Property name="width">120</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).close();</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>
@@ -1161,5 +1195,29 @@
      </Container>
    </CustomDropDown>
    <YearDropDown id="yearDropDown"/>
    <UploadAction id="uploadExcel">
      <ClientEvent name="onFileUploaded">var fileName = arg.returnValue;&#xD;
if(fileName){&#xD;
    $notify(&quot;附件上传成功,开始执行解析……&quot;);&#xD;
    view.get(&quot;#ajaxAnalysisExcel&quot;).set(&quot;parameter&quot;,fileName).execute(function(result){&#xD;
        if(&quot;200&quot;!=result.code){
            $alert(result.message);&#xD;
        }else{
            $alert(result.message);&#xD;
            query();&#xD;
        }
    });&#xD;
}</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">正在执行解析……</Property>
    </AjaxAction>
    <AjaxAction id="ajaxGetDepot">
      <Property name="service">depotPR#getDepot</Property>
    </AjaxAction>
  </View>
</ViewConfig>