jiazx0107@163.com
2023-05-27 b667644b1a9f93583b4bb2d508c570c65aa3497b
igds-core/src/main/java/com/ld/igds/view/Depot.view.xml
@@ -129,30 +129,7 @@
        <Property name="dataType">String</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtDepot" parent="global:dtDepot">
      <ClientEvent name="onDataChange">var prop = arg.property;&#xD;
var entity = arg.entity;&#xD;
&#xD;
/**&#xD;
 * &quot;01&quot;, //空仓&#xD;
   &quot;02&quot;,//满仓&#xD;
    &quot;03&quot;,//入库&#xD;
 &quot;04&quot;,//出库&#xD;
 */&#xD;
if(&quot;depotStatus&quot; == prop){//表示状态修改&#xD;
    entity.set(&quot;editTag&quot;,entity.get(&quot;editTag&quot;)+&quot;-depotStatus&quot;);&#xD;
   &#xD;
   if(arg.newValue == &quot;01&quot; || arg.newValue == &quot;02&quot; || arg.newValue == &quot;03&quot; || arg.newValue == &quot;04&quot;){&#xD;
      $alert(&quot;仓库状态=满仓、空仓、出库中、入库中时需要通过 库存管理 功能进行修改!!&quot;);&#xD;
      view.get(&quot;#btnOK&quot;).set(&quot;disabled&quot;,true);&#xD;
   }else{&#xD;
      view.get(&quot;#btnOK&quot;).set(&quot;disabled&quot;,false);&#xD;
   }&#xD;
}</ClientEvent>
      <PropertyDef name="editTag">
        <Property name="label">修改标记</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtDepot" parent="global:dtDepot"/>
  </Model>
  <View layout="padding:5;regionPadding:5">
    <ClientEvent name="onReady">var deptId = window.parent.DEPT_ID;//页面选择的分库编码&#xD;
@@ -269,17 +246,13 @@
        <Property name="property">foodYear</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="foodLocation">
        <Property name="property">foodLocation</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="depotType">
        <Property name="property">depotType</Property>
        <Property name="align">center</Property>
      </DataColumn>
    </DataGrid>
    <Dialog id="depotdialog">
      <Property name="caption">仓库基本信息</Property>
      <Property name="caption">货位信息</Property>
      <Property name="width">1200</Property>
      <Property name="closeable">false</Property>
      <Buttons>
@@ -308,7 +281,7 @@
      </Buttons>
      <Children>
        <FieldSet layout="padding:15">
          <Property name="caption">仓库基本信息</Property>
          <Property name="caption">基本信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
@@ -343,9 +316,8 @@
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">storageReal</Property>
                <Property name="property">storageReal</Property>
                <Property name="readOnly">true</Property>
                <Property name="name">storeType</Property>
                <Property name="property">storeType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
@@ -359,14 +331,14 @@
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">depotStatus</Property>
                <Property name="property">depotStatus</Property>
                <Property name="trigger">autoMappingDropDown2</Property>
                <Property name="name">granaryId</Property>
                <Property name="property">granaryId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">storeType</Property>
                <Property name="property">storeType</Property>
                <Property name="name">depotStatus</Property>
                <Property name="property">depotStatus</Property>
                <Property name="trigger">autoMappingDropDown2</Property>
                <Editor/>
              </AutoFormElement>
              <Label layoutConstraint="colSpan:3">
@@ -383,7 +355,7 @@
          <Property name="height">10</Property>
        </Control>
        <FieldSet layout="padding:15">
          <Property name="caption">粮油基本信息</Property>
          <Property name="caption">储粮信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
@@ -393,6 +365,12 @@
              <Property name="labelAlign">right</Property>
              <Property name="cols">*,*,*</Property>
              <Property name="labelWidth">110</Property>
              <AutoFormElement>
                <Property name="name">storageReal</Property>
                <Property name="property">storageReal</Property>
                <Property name="readOnly">true</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">foodType</Property>
                <Property name="property">foodType</Property>
@@ -453,17 +431,18 @@
                <Property name="trigger">ddFoodOrigin</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orientation</Property>
                <Property name="property">orientation</Property>
                <Property name="trigger">listOri</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:3">
                <Property name="name">remark</Property>
                <Property name="property">remark</Property>
                <Editor/>
              </AutoFormElement>
              <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>