89 라인
2.6 KiB
Plaintext
89 라인
2.6 KiB
Plaintext
<style>
|
|
body{ text-align:center}
|
|
.div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
|
|
</style>
|
|
<script>
|
|
function doPassCheck()
|
|
{//审核通过
|
|
var designIds = ${order.getDesignId()};
|
|
if (Z.V.isEmpty(designIds))
|
|
{
|
|
Z.alert("请选择订单");
|
|
return;
|
|
}
|
|
|
|
|
|
Z.confirm("确认审核通过吗?", function(){
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("ComplaintOrderPresenter");
|
|
ajax.setMethodName("complaintPass");
|
|
ajax.addParam("designIds", designIds);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
parent.location.reload();
|
|
parent.Z.Dialog.close();
|
|
});
|
|
ajax.execute();
|
|
})
|
|
}
|
|
|
|
function showBackDialog()
|
|
{//审核退回窗口
|
|
var designId = ${order.getDesignId()};
|
|
Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
|
|
{
|
|
if (Z.V.isEmpty(value))
|
|
{
|
|
Z.alert("请输入退回原因");
|
|
return;
|
|
}
|
|
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("ComplaintOrderPresenter");
|
|
ajax.setMethodName("complaintBack");
|
|
ajax.addParam("designId", designId);
|
|
ajax.addParam("desc", value);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
parent.location.reload();
|
|
parent.Z.Dialog.close();
|
|
});
|
|
ajax.execute();
|
|
|
|
}, {type: 'textarea'});
|
|
}
|
|
|
|
//图片放大
|
|
function showLargeImg(thisImg)
|
|
{
|
|
var dialog = new parent.Z.Dialog();
|
|
dialog.shadow = true;
|
|
dialog.title = "图片";
|
|
dialog.fixed = true;
|
|
|
|
dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
|
|
dialog.width = parent.Z.D.clientWidth()-200;
|
|
dialog.height = parent.Z.D.clientHeight()-200;
|
|
dialog.execute();
|
|
dialog.$background.remove();
|
|
}
|
|
</script>
|
|
|
|
${zhiqim_manager_content()}
|
|
<div class="z-mg5">
|
|
<textarea id="complaintReason" name="complaintReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="200" >${order.getComplaintReason()}</textarea>
|
|
</div>
|
|
<#for item : attaList>
|
|
<div class="z-pd5">
|
|
<img alt="截图" src="/${item.getAttaId()}-${item_index}-img" onclick="showLargeImg(this)">
|
|
</div>
|
|
</#for>
|
|
<br><br>
|
|
<div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
|
|
<div style="margin-top:10px">
|
|
<button class="z-button z-blue z-w100" onclick="doPassCheck()">审核通过</button>
|
|
<button class="z-button z-w100 ${zmr_color_class}" id="designOrderDraft" onclick="showBackDialog()">审核退回</button>
|
|
</div>
|
|
</div>
|
|
${zhiqim_manager_content_end()}
|