cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<button type="button" id="button" class="add" onclick="addZdReport();"><span>添加诊断报告</span></button>
    [#if orderMsg?? && orderMsg?size>0]
        [#if orderMsg.TRUE_REASON??]
            <section class="wlrecord">
                <a href="${base}/ewyw/ewQuestion/ewZdReportDetail.html?id=${orderMsg.ID}&show=1">
                    <div>
                        <label></label>诊断报告
                        [#if RequestParameters.curnodeId == "WTZD"]<a class="edit" href="javascript:editZdReport('${orderMsg.ID}',1);">编辑</a>[/#if]
                        <br />
                        <p>${left(orderMsg.TRUE_REASON,40)}</p>
                        <i></i>
                    </div>
                </a>
            </section>
        [/#if]
      [/#if]
      
      [#if zdList?? && zdList?size>0]
          [#list zdList as zd]
              [#if zd.ISTHEEND != 1]
                  <section class="wlrecord">
                    <a href="${base}/ewyw/ewQuestion/ewZdReportDetail.html?id=${zd.ID}&show=2">
                        <div>
                            <label></label>诊断报告
                            [#if zd.CREATE_USER_ID == createUserId]
                              <a class="del" href="javascript:del('${zd.ID}');">删除</a>
                              <a class="edit" href="javascript:editZdReport('${zd.ID}',2);">编辑</a>
                            [/#if]
                            <br />
                            <p>${left(zd.REASON,40)}</p>
                            <em>${DateUtil.format("yyyy年MM月dd日 HH:mm:ss",zd.CREATE_TIME)}</em>
                            <i></i>
                        </div>
                    </a>
                </section>
              [/#if]
          [/#list]
      [#else]
        <div class="nodate"><span>暂无诊断报告</span></div>
    [/#if]
    
<script type="text/javascript">
    var orderId = '${orderId}';
    var flowId = '${flowId}';
    var curnodeId = '${curnodeId}';
    
    //添加诊断报告
    function addZdReport() {
        window.location.href = "${base}/ewyw/ewQuestion/ewQuestionZdReport.html?flowId="+flowId+"&orderId="+orderId+"&curnodeId="+curnodeId;
    }
    //修改诊断报告
    function editZdReport(id,type) {
        window.location.href = "${base}/ewyw/ewQuestion/ewQuestionZdReport.html?id="+id+"&type="+type+"&flowId="+flowId+"&orderId="+orderId+"&curnodeId="+curnodeId;
    }
    
    function del(id){
         if(confirm("确认要删除当前诊断报告吗?")){
             $.post("${base}/ewyw/ewQuestion/delReport.html",{"reportId":id},function(data,textStatus) {
                if(data==1) {
                    popupTips("删除成功");
                    window.location.href = "${base}/ewyw/ewQuestion/ewQuestionDeal.html?orderId="+orderId+"&flowId="+flowId;
                } else {
                    popupTips("删除失败");
                }
            })
         }
    }
</script>