<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>
|
|
|