sgj
2025-12-26 28c49925c98713465db8cd64899d984d6cd0f7ad
fzzy-igdss-view/src/main/java/com/fzzy/igds/Depot.view.xml
@@ -16,17 +16,44 @@
    </DataType>
  </Model>
  <View layout="padding:10">
    <ClientEvent name="onReady">&#xD;
    <ClientEvent name="onReady">// start 通过库区id来加载仓储数据&#xD;
/**&#xD;
 * 通用工具函数:获取URL中的指定参数值&#xD;
 * @param {String} name 要获取的参数名&#xD;
 * @returns {String/null} 参数值(无则返回null)&#xD;
 */&#xD;
function getUrlParam(name) {&#xD;
    // 解析URL的查询字符串(?后面的部分)&#xD;
    var search = window.location.search.substring(1);&#xD;
    // 分割成键值对数组&#xD;
    var params = search.split(&quot;&amp;&quot;);&#xD;
    for (var i = 0; i &lt; params.length; i++) {&#xD;
        var pair = params[i].split(&quot;=&quot;);&#xD;
        // 解码参数值(处理中文/特殊字符)&#xD;
        if (decodeURIComponent(pair[0]) === name) {&#xD;
            return decodeURIComponent(pair[1] || &quot;&quot;);&#xD;
        }&#xD;
    }&#xD;
    return null;&#xD;
};  &#xD;
&#xD;
&#xD;
&#xD;
/**&#xD;
 * 查询&#xD;
 */&#xD;
query = function(){&#xD;
    view.get(&quot;#dataSetdepot&quot;).flushAsync();&#xD;
}&#xD;</ClientEvent>
   //通过库区id来加载仓储数据&#xD;
   var parentId = getUrlParam(&quot;parentId&quot;);&#xD;
   view.get(&quot;#dataSetdepot&quot;).set(&quot;parameter&quot;,{parentId: parentId}).flushAsync();&#xD;
};&#xD;query();&#xD;
&#xD;
</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dataSetdepot">
      <Property name="dataProvider">depotPR#getData</Property>
      <Property name="dataType">[dtDepot]</Property>
      <Property name="loadMode">manual</Property>
    </DataSet>
    <DataSet id="dataSetUser">
      <Property name="dataType">[dataTypeUser]</Property>
@@ -80,12 +107,13 @@
          <Property name="action">ajaxRefreshCache</Property>
        </ToolBarButton>
        <ToolBarButton>
          <ClientEvent name="onClick">var url = &quot;com.fzzy.igds.sys.DepotStore.d&quot;;&#xD;
          <ClientEvent name="onClick">var url = &quot;com.fzzy.igds.DepotStore.d&quot;;&#xD;
var panelId = window.frameElement.getAttribute('data-id');
window.parent.$.modal.openTab(&quot;库存管理&quot;, url, false, panelId);</ClientEvent>
          <Property name="caption">库存管理</Property>
          <Property name="iconClass">fa fa-book</Property>
          <Property name="exClassName">btn1</Property>
          <Property name="visible">false</Property>
          <Property name="width">100</Property>
        </ToolBarButton>
      </ToolBar>
@@ -154,7 +182,8 @@
    <Dialog id="depotdialog" 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="height">90%</Property>
      <Property name="closeable">false</Property>
      <Buttons>
        <Button id="btnOK">
@@ -214,19 +243,14 @@
                <Property name="property">deptId</Property>
                <Editor/>
              </AutoFormElement>
                <AutoFormElement layoutConstraint="colSpan:2">
                    <Property name="name">storageMax</Property>
                    <Property name="property">storageMax</Property>
                    <Editor/>
                </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">storeType</Property>
                <Property name="property">storeType</Property>
                <Property name="name">storageMax</Property>
                <Property name="property">storageMax</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">createBy</Property>
                <Property name="property">createBy</Property>
                <Property name="name">storeType</Property>
                <Property name="property">storeType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
@@ -241,11 +265,6 @@
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">createTime</Property>
                <Property name="property">createTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">storeKeeperName</Property>
                <Property name="property">storeKeeperName</Property>
                <Property name="trigger">triggerUserList</Property>
@@ -254,6 +273,11 @@
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">orderNum</Property>
                <Property name="property">orderNum</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">pledgeBank</Property>
                <Property name="property">pledgeBank</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
@@ -296,11 +320,6 @@
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">foodType</Property>
                <Property name="property">foodType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">foodLevel</Property>
                <Property name="property">foodLevel</Property>
                <Editor/>
@@ -321,20 +340,6 @@
                <Property name="property">storeDate</Property>
                <Editor/>
              </AutoFormElement>
              <Label>
                <Property name="text"></Property>
                <Property name="style">
                  <Property name="color">blue</Property>
                  <Property name="padding-left">50px</Property>
                </Property>
              </Label>
              <Label layoutConstraint="colSpan:3">
                <Property name="text">说明:1、实际储量调整请使用“库存管理”功能;</Property>
                <Property name="style">
                  <Property name="color">blue</Property>
                  <Property name="padding-left">50px</Property>
                </Property>
              </Label>
            </AutoForm>
          </Children>
        </FieldSet>
@@ -347,7 +352,7 @@
              <Property name="readOnly">false</Property>
              <Property name="labelSeparator"> : </Property>
              <Property name="labelAlign">right</Property>
              <Property name="cols">*,*,*,*,*,*</Property>
              <Property name="cols">*,*,*,*,*,*,*,*</Property>
              <Property name="labelWidth">80</Property>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">perWet</Property>
@@ -369,20 +374,6 @@
                <Property name="property">checkDate</Property>
                <Editor/>
              </AutoFormElement>
              <Label>
                <Property name="text"></Property>
                <Property name="style">
                  <Property name="color">blue</Property>
                  <Property name="padding-left">50px</Property>
                </Property>
              </Label>
              <Label layoutConstraint="colSpan:3">
                <Property name="text">说明:储备粮质检信息会根据质量管理 自动同步更新</Property>
                <Property name="style">
                  <Property name="color">blue</Property>
                  <Property name="padding-left">50px</Property>
                </Property>
              </Label>
            </AutoForm>
          </Children>
        </FieldSet>