125 baris
4.4 KiB
Plaintext
125 baris
4.4 KiB
Plaintext
${request.getValidateScript()}
|
|
<script>
|
|
window.onbeforeunload = onbeforeunload_handler;
|
|
window.onunload = onload;
|
|
function onbeforeunload_handler(){
|
|
parent.location.reload();
|
|
parent.Z.Dialog.close();
|
|
}
|
|
|
|
function onload(){
|
|
parent.location.reload();
|
|
parent.Z.Dialog.close();
|
|
}
|
|
|
|
function doDesignCopiesr(designId,designCopies)
|
|
{//设计份数修改
|
|
var dialog = new Z.Dialog();
|
|
dialog.title = "订单["+designId+"]设计份数修改";
|
|
dialog.url = "/designCopiesr.htm?designId="+designId+"&copies="+designCopies;
|
|
dialog.width = 310;
|
|
dialog.height = 150;
|
|
dialog.execute();
|
|
}
|
|
|
|
//重置佣金
|
|
function doDesignPriceCalculate(designId){
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("OrderPresenter");
|
|
ajax.setMethodName("designPriceCalculate");
|
|
ajax.addParam(designId);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
|
|
});
|
|
ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
|
|
ajax.execute();
|
|
}
|
|
|
|
//修改单价
|
|
function doEditDesignPrice(designId,designPrice,orderText) {
|
|
var dialog = new Z.Dialog();
|
|
dialog.title = "修改订单佣金";
|
|
dialog.url = "/doEditDesignPrice.htm?designId=" + designId +"&designPrice="+designPrice+"&orderText="+orderText;
|
|
dialog.width = 600;
|
|
dialog.height = 244;
|
|
dialog.execute();
|
|
}
|
|
|
|
//修改加急费
|
|
function doEditUrgentPrice(designId,urgentPrice,orderText) {
|
|
var dialog = new Z.Dialog();
|
|
dialog.title = "修改订单加急费";
|
|
dialog.url = "/doEditUrgentPrice.htm?designId=" + designId +"&urgentPrice="+urgentPrice+"&orderText="+orderText;
|
|
dialog.width = 600;
|
|
dialog.height = 244;
|
|
dialog.execute();
|
|
}
|
|
|
|
//修改稿件类型
|
|
function doEditDraftType(designId,orderText,draftType,status){
|
|
if(draftType ==0 ){
|
|
Z.alert("标准自来稿件不支持修改");
|
|
return;
|
|
}
|
|
if(status >= 55){
|
|
Z.alert("已定稿订单不支持修改稿件类型");
|
|
return;
|
|
}
|
|
var dialog = new Z.Dialog();
|
|
dialog.title = "修改订单稿件类型";
|
|
dialog.url = "/doEditDraftType.htm?designId=" + designId +"&draftType="+draftType+"&orderText="+orderText;
|
|
dialog.width = 600;
|
|
dialog.height = 244;
|
|
dialog.execute();
|
|
}
|
|
</script>
|
|
<style>
|
|
|
|
</style>
|
|
<#-- 操作 -->
|
|
<div>
|
|
<table class="z-table z-bordered z-pd6 z-bg-white" >
|
|
<tr>
|
|
<td style="padding:30px 20px 20px 40px">
|
|
<button id="doDesignCopiesr" type="button" class="z-button z-blue" onclick="doDesignCopiesr('${order.getDesignId()}','${order.getDesignCopies()}');"><i class="z-font z-modify"></i>设计份数修改</button>
|
|
</td>
|
|
<td>
|
|
<span>(修改指定订单设计份数)</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:20px 20px 20px 40px">
|
|
<button id="doDesignPriceCalculate" type="button" class="z-button z-yellow" onclick="doDesignPriceCalculate(${order.getDesignId()});"><i class="z-font z-refresh"></i>重置佣金</button>
|
|
</td>
|
|
<td>
|
|
<span>(自动修改指定订单对应稿件类型所匹配的设计佣金)</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:20px 20px 20px 40px">
|
|
<button id="doEditDesignPrice" type="button" class="z-button z-yellow" onclick="doEditDesignPrice('${order.getDesignId()}','${order.getDesignPrice()}','${order.getOrderText()}');"><i class="z-font z-modify"></i>修改佣金</button>
|
|
</td>
|
|
<td>
|
|
<span>(修改指定订单的设计佣金)</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:20px 20px 20px 40px">
|
|
<button id="doEditUrgentPrice" type="button" class="z-button z-yellow" onclick="doEditUrgentPrice('${order.getDesignId()}','${order.getUrgentPrice()}','${order.getOrderText()}');"><i class="z-font z-modify"></i>修改加急费</button>
|
|
</td>
|
|
<td>
|
|
<span>(修改指定订单的加急费用,未分拣订单设置加急费有30分钟加急时效,时效内未领取自动取消加急)</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:20px 20px 20px 40px">
|
|
<button id="doEditDraftType" type="button" class="z-button z-yellow" onclick="doEditDraftType('${order.getDesignId()}','${order.getOrderText()}','${order.getDraftType()}','${order.getStatus()}');"><i class="z-font z-modify"></i>修改稿件类型</button>
|
|
</td>
|
|
<td>
|
|
<span>(修改指定订单的稿件类型,会自动重新计算稿件类型所对应设计佣金,暂只支持普通设计和资深设计)</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|