czt
2025-12-29 66e1e898f5020b5e02a99e361569637a72f8c2cf
fzzy-igdss-view/src/main/java/com/fzzy/igds/Company.view.xml
@@ -206,6 +206,43 @@
    </DataType>
  </Model>
  <View layout="padding:10">
    <ClientEvent name="onReady">/**&#xD;
* 查看详情&#xD;
* @param {String/Number} manualId 手动传入的id值(可选)&#xD;
*/&#xD;
detail = function(){&#xD;
   var cur = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
     if (cur) {&#xD;
      var id = cur.get(&quot;id&quot;);&#xD;
      var url = &quot;/com.fzzy.igds.Dept.d?parentId=&quot; + id;&#xD;
      window.$openTab(&quot;库区管理&quot;, url);&#xD;
   }else {&#xD;
      $notify(&quot;请先选择数据……&quot;);&#xD;
   }   &#xD;
   &#xD;
};&#xD;
&#xD;
showDlg=function(){&#xD;
   var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
   if(select){&#xD;
       view.get(&quot;#dialogMain&quot;).show();;&#xD;
   }else{&#xD;
        $notify(&quot;请先选择数据……&quot;);&#xD;
   }&#xD;
};&#xD;
&#xD;
renderId = function(arg){&#xD;
    var txt = arg.data.getText(&quot;id&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
    arg.dom.innerHTML = htm;&#xD;
}
renderName = function(arg){&#xD;
    var txt = arg.data.getText(&quot;dwmc&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
    arg.dom.innerHTML = htm;&#xD;
}</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataProvider">companyPR#getData</Property>
@@ -243,12 +280,14 @@
        <RowSelectorColumn/>
        <RowNumColumn/>
        <DataColumn name="id">
          <ClientEvent name="onRenderCell">renderId(arg);</ClientEvent>
          <Property name="property">id</Property>
          <Property name="align">center</Property>
          <Property name="width">120</Property>
        </DataColumn>
        <DataColumn name="dwmc">
          <Property name="property">dwmc</Property>
          <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent>
        </DataColumn>
        <DataColumn name="dwdm">
          <Property name="property">dwdm</Property>
@@ -290,13 +329,22 @@
          <Property name="align">center</Property>
          <Property name="width">160</Property>
        </DataColumn>
        <DataColumn>
          <ClientEvent name="onRenderCell">arg.dom.innerHTML = &quot;&lt;a href='javascript:;' onClick='detail()' class='a-btn1'>查看库区&lt;/a>&quot;;</ClientEvent>
          <Property name="width">160</Property>
          <Property name="caption">操作</Property>
          <Property name="align">center</Property>
          <Property name="width">120</Property>
          <Editor/>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">1200</Property>
      <Property name="width">70%</Property>
      <Property name="caption">收储公司信息</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-tasks</Property>
      <Property name="height">90%</Property>
      <Buttons>
        <Button id="btnOk">
          <ClientEvent name="onClick">view.get(&quot;#uaSave&quot;).execute(function(result){&#xD;
@@ -440,23 +488,8 @@
            <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>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">wd</Property>
            <Property name="property">wd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateBy</Property>
            <Property name="property">updateBy</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
@@ -465,7 +498,7 @@
            <Editor/>
          </AutoFormElement>
          <Link>
            <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property>
            <Property name="href">https://lbs.amap.com/tools/picker</Property>
            <Property name="target">_blank</Property>
            <Property name="style">
              <Property name="padding-left">150px</Property>