YYC
2023-07-25 44804e145dfd07f2537684a4358682774331cdaf
igds-core/src/main/java/com/ld/igds/m/view/QualityManager.view.xml
@@ -140,11 +140,11 @@
        <Property name="label">入库日期</Property>
      </PropertyDef>
      <PropertyDef name="unit">
        <Property/>
        <Property></Property>
        <Property name="label">检验单位</Property>
      </PropertyDef>
      <PropertyDef name="zblb">
        <Property/>
        <Property></Property>
        <Property name="label">指标类别</Property>
      </PropertyDef>
      <PropertyDef name="qfrq">
@@ -156,19 +156,19 @@
        <Property name="label">报告出具时间</Property>
      </PropertyDef>
      <PropertyDef name="shrxm">
        <Property/>
        <Property></Property>
        <Property name="label">审核人姓名</Property>
      </PropertyDef>
      <PropertyDef name="qydbh">
        <Property/>
        <Property></Property>
        <Property name="label">扦样单编号</Property>
      </PropertyDef>
      <PropertyDef name="jdrxm">
        <Property/>
        <Property></Property>
        <Property name="label">监督人姓名</Property>
      </PropertyDef>
      <PropertyDef name="ypbh">
        <Property/>
        <Property></Property>
        <Property name="label">样品编号</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
@@ -674,6 +674,20 @@
      </DataPilot>
    </Container>
    <Dialog id="dialogMain">
      <ClientEvent name="beforeShow">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
var metricsBefore = data.get(&quot;zblb&quot;)&#xD;
if(metricsBefore){&#xD;
   var list = metricsBefore.split(&quot;#&quot;);&#xD;
   var metrics =&quot;&quot; ;&#xD;
   list.forEach(item=>{&#xD;
      if(item == 1)metrics+=&quot;1:质量指标检验#&quot;;&#xD;
      if(item == 2)metrics+=&quot;2:储存品质检验#&quot;;&#xD;
      if(item == 3)metrics+=&quot;3:食品安全检验#&quot;;&#xD;
      console.log(item)&#xD;
      console.log(metrics)   &#xD;
   });&#xD;
   data.set(&quot;zblb&quot;, metrics.substring(0,metrics.length-1));&#xD;
}</ClientEvent>
      <Property name="visible">false</Property>
      <Property name="caption">质量巡检信息</Property>
      <Property name="width">80%</Property>