652 lines
30 KiB
Plaintext
652 lines
30 KiB
Plaintext
${Styles.htmlOverflowHidden()}
|
||
${Scripts.src("/zinc/js/global_2019010801.js")}
|
||
${Scripts.src(zhiqim_uploadlarge.js)}
|
||
${yangcai_calc_Left_width_height(340, 110)}
|
||
<script>
|
||
//查询操作员
|
||
var dateDir = '${DateTimes.getDateTime8String()}/${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
|
||
var attaTypeMap = new Z.HashMap();
|
||
var blameOrgMap = new Z.HashMap();
|
||
var orgUserListMap = new Z.HashMap();
|
||
Z.onload(function(){
|
||
//初始化 文件类型
|
||
|
||
<#for item : FileTypeConstants.getFileTypeList()>
|
||
attaTypeMap.put('${item.value()}', '${item.desc()}')
|
||
</#for>
|
||
|
||
//初始化 责任组织 & 初始化组织操作员
|
||
<#for org : ZmrOrgDao.list(request)>
|
||
|
||
blameOrgMap.put('${org.getOrgId()}', getObject('${org}'));
|
||
var users${org.getOrgId()} = [];
|
||
<#for opr : ZmrOperatorDao.getOperator(request, org.getOrgId())>
|
||
users${org.getOrgId()}.push(getObject('${opr}'));
|
||
</#for>
|
||
orgUserListMap.put('${org.getOrgId()}', users${org.getOrgId()});
|
||
</#for>
|
||
|
||
});
|
||
|
||
function getObject(json)
|
||
{
|
||
json = json.replace(/\r/g, '');
|
||
json = json.replace(/\n/g, '<br/>');
|
||
json = json.replace(/\t/g, ' ');
|
||
var reg = /(\u0000)|(\u0001)|(\u0002)|(\u0003)|(\u0004)|(\u0005)|(\u0006)|(\u0007)|(\u000b)|(\u000e)|(\u000f)|(\u0010)|(\u0011)|(\u0012)|(\u0013)|(\u0014)|(\u0015)|(\u0016)|(\u0017)|(\u0018)|(\u0019)|(\u001a)|(\u001b)|(\u001c)|(\u001d)|(\u001e)|(\u001f)/g;
|
||
//var reg = //g;
|
||
return Z.J.toObject(json.replace(reg, ""));
|
||
}
|
||
|
||
function doQueryAfterOrderDataInfo(designAfsId, callback)
|
||
{
|
||
if (!designAfsId)
|
||
return null;
|
||
|
||
var ajax = new Z.Ajax();
|
||
ajax.setContextPath('${context.getContextPath()}');
|
||
ajax.setClassName("DesignAfterOrderPresenter");
|
||
ajax.setMethodName("doQueryAfterOrderDataInfo");
|
||
ajax.addParam("designAfsId", designAfsId);
|
||
ajax.setFailureAlert();
|
||
ajax.setSuccess(function(){
|
||
callback(getObject(this.responseText))
|
||
});
|
||
ajax.execute();
|
||
|
||
}
|
||
|
||
function doShowAfterOrderInfo(obj, designAfsId)
|
||
{
|
||
if (!designAfsId)
|
||
{
|
||
Z.alert("请选择一项");
|
||
return;
|
||
}
|
||
|
||
//初始化数据内容
|
||
function showInfo(obj)
|
||
{
|
||
var attamap = new Z.HashMap();
|
||
var afterOrder = obj.afterOrder;
|
||
var problemType = obj.problemType;
|
||
var attaList = obj.afterAttaList;
|
||
for (var i=0; i< attaList.length; i++)
|
||
{
|
||
var atta = attaList[i];
|
||
var list = attamap.get(atta.attaModul);
|
||
if (!list)
|
||
list=[];
|
||
|
||
list.push(atta);
|
||
attamap.put(atta.attaModul, list);
|
||
}
|
||
|
||
var afterRightContent = '';
|
||
afterRightContent +='\r\n <table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">';
|
||
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
|
||
afterRightContent +='\r\n <td>产品信息:</td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
afterRightContent +='\r\n <tr>';
|
||
afterRightContent +='\r\n <td id="orderText" class="z-lh150p">'+afterOrder.orderText+'</td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
|
||
afterRightContent +='\r\n <td><span class="z-bold">问题描述:</td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
afterRightContent +='\r\n <tr>';
|
||
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
|
||
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
|
||
afterRightContent +='\r\n '+(afterOrder.problemDesc ? afterOrder.problemDesc : '');
|
||
afterRightContent +='\r\n </div>';
|
||
afterRightContent +='\r\n </td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
|
||
if (problemType && problemType.problemName)
|
||
{
|
||
afterRightContent +='\r\n <tr bgcolor="#f5f5f5">';
|
||
afterRightContent +='\r\n <td><span class="z-bold">售后原因:</td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
afterRightContent +='\r\n <tr>';
|
||
afterRightContent +='\r\n <td id="problemDesc" class="z-lh150p">';
|
||
afterRightContent +='\r\n <div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">';
|
||
afterRightContent +='\r\n '+(problemType.problemName);
|
||
afterRightContent +='\r\n </div>';
|
||
afterRightContent +='\r\n </td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
}
|
||
|
||
for (var i=0; i<attamap._keys.length; i++)
|
||
{
|
||
var attaList = attamap.get(attamap._keys[i]);
|
||
if (!attaList || attaList.length == 0)
|
||
continue;
|
||
|
||
if (!attaTypeMap.get(attamap._keys[i]))
|
||
continue;//不支持的附件类型
|
||
|
||
|
||
afterRightContent +='\r\n <tr class="z-h40" bgcolor="#efefef">';
|
||
afterRightContent +='\r\n <td style="position: relative;">';
|
||
afterRightContent +='\r\n <input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox(\'atta_'+attamap._keys[i]+'\', this.checked);" >';
|
||
afterRightContent +='\r\n <b class="z-pd4">'+attaTypeMap.get(attamap._keys[i])+'</b>';
|
||
afterRightContent +='\r\n <button id="download_'+attamap._keys[i]+'" onclick="doDownload(\''+attamap._keys[i]+'\')" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>';
|
||
afterRightContent +='\r\n </td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
afterRightContent +='\r\n <tr class="z-h40">';
|
||
afterRightContent +='\r\n <td class="z-pd-l10">';
|
||
for (var j=0; j<attaList.length; j++)
|
||
{
|
||
var atta = attaList[j];
|
||
|
||
afterRightContent +='\r\n <div class="z-overflow-y-auto z-w100p" style="min-height:24px; max-height:100px;">';
|
||
afterRightContent +='\r\n <div id="div_checkbox_'+atta.attaId+'" class="z-text-ellipsis z-w300 z-pointer" onclick="" title="'+atta.fileName+'">';
|
||
afterRightContent +='\r\n <input id="atta_'+atta.attaId+'" name="atta_'+atta.attaModul+'" type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" data-attaid="'+atta.attaId+'" data-downloadUrl="'+(atta.ossUrl ? atta.ossUrl : '')+'" value="'+atta.attaId+'"><span class="z-pd6" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+atta.fileName+'</span><br>';
|
||
afterRightContent +='\r\n </div>';
|
||
afterRightContent +='\r\n </div>';
|
||
}
|
||
afterRightContent +='\r\n </td>';
|
||
afterRightContent +='\r\n </tr>';
|
||
}
|
||
afterRightContent +='\r\n </table>';
|
||
Z("#afterRightContent").htmlc(afterRightContent);
|
||
}
|
||
|
||
doQueryAfterOrderDataInfo(designAfsId, showInfo);
|
||
}
|
||
|
||
function doDownload(attaType)
|
||
{
|
||
var attaIds = Z.FM.getCheckBoxValue("atta_" + attaType, "");
|
||
if (Z.V.isEmpty(attaIds))
|
||
{
|
||
parent.Z.alert("请选择需要下载的文件");
|
||
return false;
|
||
}
|
||
|
||
/*
|
||
var arr = Z.AR.toArray(attaIds, ",");
|
||
if (arr.length == 1)
|
||
{//1个文件情况下
|
||
var input = Z("#atta_"+attaIds);
|
||
//if (input )
|
||
var url = input.attr("data-downloadUrl");
|
||
url = Z.V.isEmptyBlank(url) ? "/downFile.htm?attaId=" + attaIds : url;
|
||
Z.L.href(url, zCallFrame);
|
||
return;
|
||
}
|
||
*/
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("UploadFilePresenter");
|
||
ajax.setMethodName("doDownloadFile");
|
||
ajax.addParam("attaId", attaIds);
|
||
ajax.setFailure(function(){
|
||
Z.alert(this.responseText,null, {width:320});
|
||
});
|
||
ajax.setSuccess(function(){
|
||
Z.L.href("/downFile.htm?attaId=" + attaIds, zCallFrame);
|
||
});
|
||
ajax.setLoading('download_'+attaType, '下载', {disabled:true});
|
||
ajax.execute();
|
||
}
|
||
|
||
function doFinishAfterOrder()
|
||
{//售后处理完成
|
||
var designAfsId = Z.FM.getChecked("designAfsId");
|
||
if (Z.V.isEmpty(designAfsId))
|
||
{
|
||
Z.alert("请选择一条订单");
|
||
return;
|
||
}
|
||
|
||
Z.confirm("确认处理完成吗?", function(){
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("DesignAfterOrderPresenter");
|
||
ajax.setMethodName("doFinishAfterOrder");
|
||
ajax.addParam("designAfsId", designAfsId);
|
||
ajax.setFailure(function(){
|
||
Z.alert(this.responseText,null, {width:320});
|
||
});
|
||
ajax.setSuccess(function(){
|
||
document.theForm.submit();
|
||
});
|
||
ajax.setLoading();
|
||
ajax.execute();
|
||
})
|
||
|
||
ajax.execute();
|
||
}
|
||
|
||
function showReturnBlame()
|
||
{//弹窗 申诉
|
||
var designAfsId = Z.FM.getChecked("designAfsId");
|
||
if (Z.V.isEmpty(designAfsId))
|
||
{
|
||
Z.alert("请选择一条订单");
|
||
return;
|
||
}
|
||
var afsAppend ="afs"+designAfsId;
|
||
var inputAfsStatus =Z("#"+afsAppend).val();
|
||
if(inputAfsStatus != "300")
|
||
{
|
||
Z.alert("不属于售后处理中状态的售后单不允许申诉");
|
||
return;
|
||
}
|
||
|
||
function showDialog(obj)
|
||
{
|
||
var afterOrder = obj.afterOrder;
|
||
var fileType = '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
|
||
var attaList = obj.afterAttaList;
|
||
var comlainFiles = [];
|
||
for (var i = 0; i < attaList.length; i++)
|
||
{
|
||
var atta = attaList[i];
|
||
if (fileType == atta.attaModul)
|
||
comlainFiles.push(atta);
|
||
}
|
||
|
||
var dialogContent = '<form name="returnBlameForm">';
|
||
dialogContent +='<input type="hidden" id="complainEvidenceFileMethod" name="complainEvidenceFileMethod" value="0">';
|
||
dialogContent +='<input type="hidden" id="imgData" name="imgData">';
|
||
dialogContent +='<input type="hidden" id="designAfsId" name="designAfsId" value="'+afterOrder.designAfsId+'">';
|
||
dialogContent +='<table class="z-table z-bordered z-pd6 z-bg-white">';
|
||
dialogContent +=' <tr>';
|
||
dialogContent +=' <td width="120" class="z-text-right" valign="top"> 申诉原因 :</td>';
|
||
var afterBlameReturnNote = '';
|
||
if (afterOrder.afterBlameReturnNote)
|
||
afterBlameReturnNote = afterOrder.afterBlameReturnNote;
|
||
|
||
dialogContent +=' <td><textarea name="afterBlameReturnNote" class="z-h100 z-w100p">'+afterBlameReturnNote+'</textarea></td>';
|
||
dialogContent +=' </tr>';
|
||
dialogContent +=' <tr class="z-h50">';
|
||
dialogContent +=' <td width="120" class="z-text-right"> 申诉凭证方式 :</td>';
|
||
dialogContent +=' <td id="complainEvidenceMethod_td">';
|
||
dialogContent +=' <input type="radio" name="complainEvidenceMethod" value="0" onclick="activetablenav(this)" class="z-radio" data-role="z-radio" checked="checked" data-class="z-blue"><span class="z-mg-l6">申诉文件</span>';
|
||
dialogContent +=' <input type="radio" name="complainEvidenceMethod" value="1" onclick="activetablenav(this)" class="z-radio" data-role="z-radio" data-class="z-blue"><span class="z-mg-l6">申诉截图</span>';
|
||
|
||
dialogContent +=' <button type="button" id="upload_'+"${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}"+'" class="z-button z-float-right z-cyan z-absolute" style="top: 10px; right: 5px;"><i class="z-font z-add"></i>添加文件</button>';
|
||
dialogContent +=' </td>';
|
||
dialogContent +=' </tr>';
|
||
dialogContent +=' <tr>';
|
||
dialogContent +=' <td colspan="2" id="complainEvidenceFileresult">';
|
||
dialogContent +=' <section>';
|
||
dialogContent +=' <div id="complainFileWarp" class="z-overflow-y-auto result" style="height:270px">';
|
||
dialogContent +=' </div>';
|
||
dialogContent +=' <div class="z-overflow-y-auto result z-hide" style="height:270px">';
|
||
dialogContent +=' <div style="display:none" id="imgData"></div>';
|
||
dialogContent +=' <div id="imgSrc"></div>';
|
||
dialogContent +=' </div>';
|
||
dialogContent +=' </section>';
|
||
dialogContent +=' </td>';
|
||
dialogContent +=' </tr>';
|
||
dialogContent +='</table>';
|
||
dialogContent +='<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
|
||
dialogContent +=' <button type="button" id="complainBtn" class="z-button z-large z-w120 z-cyan" onclick="doSubmitAfterComplain(this.form)">提交</button>';
|
||
dialogContent +=' <button type="button" class="z-button z-large z-mg-l10" onclick="Z.Dialog.close();">关闭</button>';
|
||
dialogContent +='</div>';
|
||
dialogContent +='</form>';
|
||
|
||
var returnBlameDialog = new Z.Dialog();
|
||
returnBlameDialog.id = "returnBlameDialog";
|
||
returnBlameDialog.title = "异议申诉";
|
||
returnBlameDialog.text = "<div id='retunrBlame_dialogContent'></div>";
|
||
returnBlameDialog.width = 1024;
|
||
returnBlameDialog.height = 500;
|
||
returnBlameDialog.execute();
|
||
Z("#retunrBlame_dialogContent").htmlc(dialogContent);
|
||
doShowComplainFiles(comlainFiles, "complainFileWarp", afterOrder.designAfsId);
|
||
|
||
//初始化上传
|
||
var designId = obj.afterOrder.designId;
|
||
if (Z.Validates.isEmpty(designId))
|
||
return;
|
||
|
||
var upload = new Z.UploadLarge();
|
||
upload.elem = "upload_" + '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
|
||
upload.showResult = false;
|
||
upload.fileMd5Target = 1;
|
||
upload.fileCopy = true;
|
||
upload.maxSizeMiB = 500;
|
||
upload.contextPath = "${context.getContextPath()}";
|
||
upload.setFileDir(dateDir);
|
||
upload.onSelected = function(fileName, fileLength)
|
||
{
|
||
this.setFileName(fileName);
|
||
};
|
||
upload.onCompleted = function(fileId){
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("UploadFilePresenter");
|
||
ajax.setMethodName("doUplaodFile");
|
||
ajax.addParam(designId);
|
||
ajax.addParam(fileId);
|
||
ajax.addParam('${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}');
|
||
ajax.setFailureAlert();
|
||
ajax.setSuccess(function()
|
||
{
|
||
var dataMap = getObject(this.responseText);
|
||
var fileType = '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
|
||
var attaList = dataMap.attaList;
|
||
var comlainFiles = [];
|
||
for (var i = 0; i < attaList.length; i++)
|
||
{
|
||
var atta = attaList[i];
|
||
if (fileType == atta.attaModul)
|
||
comlainFiles.push(atta);
|
||
}
|
||
doShowComplainFiles(comlainFiles, "complainFileWarp", afterOrder.designAfsId);
|
||
});
|
||
ajax.setLoading(document);
|
||
ajax.execute();
|
||
};
|
||
upload.execute();
|
||
}
|
||
|
||
doQueryAfterOrderDataInfo(designAfsId, showDialog);
|
||
}
|
||
|
||
function doShowComplainFiles(attaList, warpId, designAfsId)
|
||
{
|
||
var warpContent ="";
|
||
warpContent +=' <table class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-pd6 z-bg-white">';
|
||
|
||
for (var i = 0; i < attaList.length; i++)
|
||
{
|
||
var atta = attaList[i];
|
||
warpContent +=' <tr><td>'+atta.fileName+'<button type="button" onclick="doDeleteFile(\''+designAfsId+'\', \''+atta.attaId+'\')" class="z-button z-small z-red z-float-right">删除</button></td></tr>';
|
||
}
|
||
|
||
warpContent +=' </table>';
|
||
Z("#"+warpId).html(warpContent);
|
||
}
|
||
|
||
function doDeleteFile(designAfsId, attaId)
|
||
{//删除文件
|
||
Z.confirm("确认删除此文件吗?", function()
|
||
{
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("UploadFilePresenter");
|
||
ajax.setMethodName("doDeleteFile");
|
||
ajax.addParam(attaId);
|
||
ajax.setFailure(function(){Z.alert(this.responseText,null, {width:320});});
|
||
ajax.setSuccess(function(){
|
||
function refrensh(obj)
|
||
{
|
||
var fileType = '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}';
|
||
var attaList = obj.afterAttaList;
|
||
var comlainFiles = [];
|
||
for (var i = 0; i < attaList.length; i++)
|
||
{
|
||
var atta = attaList[i];
|
||
if (fileType == atta.attaModul)
|
||
comlainFiles.push(atta);
|
||
}
|
||
doShowComplainFiles(comlainFiles, "complainFileWarp", designAfsId);
|
||
}
|
||
doQueryAfterOrderDataInfo(designAfsId, refrensh);
|
||
});
|
||
ajax.execute();
|
||
}, {width:320});
|
||
}
|
||
|
||
function activetablenav(item)
|
||
{//切换申诉 凭证方式
|
||
var $$input = Z("#complainEvidenceMethod_td").find("input.z-radio");
|
||
var $$div = Z("#complainEvidenceFileresult>section>div.result");
|
||
var index = [].indexOf.call($$input, item);
|
||
Z($$div[index]).removeClass("z-hide").siblings("div").addClass('z-hide');
|
||
Z("#complainEvidenceFileMethod").val(item.value)
|
||
|
||
var addFile = Z("#upload_" + '${FileTypeConstants.FILE_AFTE_COMPLAIN_EVIDENCE.value()}');
|
||
if (item.value == 1)
|
||
addFile.addClass("zi-hide");
|
||
else
|
||
addFile.removeClass("zi-hide");
|
||
}
|
||
|
||
//图片粘贴
|
||
(function(){
|
||
var imgReader = function( item ){
|
||
var blob = item.getAsFile(),
|
||
reader = new FileReader();
|
||
// 读取文件后将其显示在网页中
|
||
reader.onload = function(e){
|
||
var img = new Image();
|
||
img.onload = function(){
|
||
var imgData = "";
|
||
if(img.width > 0 && img.height > 0)
|
||
imgData = result;
|
||
|
||
Z("#imgData").val(imgData);
|
||
}
|
||
var result = e.target.result;
|
||
img.src = result;
|
||
img.id = "divImg";
|
||
Z("#imgSrc").html("");
|
||
Z("#imgSrc").append(img);
|
||
|
||
|
||
|
||
};
|
||
// 读取文件
|
||
reader.readAsDataURL(blob);
|
||
};
|
||
window.addEventListener( 'paste', function(e)
|
||
{
|
||
// 添加到事件对象中的访问系统剪贴板的接口
|
||
var clipboardData = e.clipboardData, items, item, types;
|
||
if(clipboardData)
|
||
{
|
||
items = clipboardData.items;
|
||
if( !items )
|
||
{
|
||
return;
|
||
}
|
||
item = items[0];
|
||
// 保存在剪贴板中的数据类型
|
||
types = clipboardData.types || [];
|
||
for(var i=0 ; i < types.length; i++ )
|
||
{
|
||
if( types[i] === 'Files' )
|
||
{
|
||
item = items[i];
|
||
break;
|
||
}
|
||
}
|
||
// 判断是否为图片数据
|
||
if( item && item.kind === 'file' && item.type.match(/^image\//i))
|
||
{
|
||
imgReader(item);
|
||
}
|
||
|
||
}
|
||
});
|
||
})();
|
||
|
||
function doSubmitAfterComplain(form)
|
||
{//complainBtn
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("DesignAfterOrderPresenter");
|
||
ajax.setMethodName("doSubmitAfterComplain");
|
||
ajax.setParamForm(form);
|
||
ajax.setFailure(function(){Z.alert(this.responseText,null, {width:320});});
|
||
ajax.setSuccess(function(){
|
||
document.theForm.submit();
|
||
});
|
||
ajax.setLoading("complainBtn", "正在提交", {disabled:true})
|
||
ajax.execute();
|
||
}
|
||
</script>
|
||
|
||
${zhiqim_manager_breadcrumb("我的售后")}
|
||
${zhiqim_manager_content()}
|
||
<#-- 导航栏 -->
|
||
<div class="z-tabnav-main z-blue z-mg-b20">
|
||
<nav>
|
||
<ul>
|
||
<li onclick="Z.Location.href('designOrder.htm');">未完成订单</li>
|
||
<li onclick="Z.Location.href('designOrderFinish.htm');">已完结订单</li>
|
||
<li class="z-active">售后订单</li>
|
||
<li onclick="Z.Location.href('complainWantDealList.htm');">投诉订单</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
|
||
<#-- 左侧功能 -->
|
||
<div id="left" class="z-overflow-y-auto z-overflow-x-hidden z-relative-left">
|
||
<#-- 查询条件 -->
|
||
${zhiqim_manager_title("查询条件")}
|
||
<form name="theForm" method="post">
|
||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||
<tr>
|
||
<td width="34%">订 单 号 :<input name="designId" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${designId}" maxlength="64" placeholder="订单号"></td>
|
||
<td width="30%"> 旺 旺 号: <input name="buyerNick" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${buyerNick}" maxlength="64" placeholder="旺旺号"></td>
|
||
<td>
|
||
创建时间:
|
||
<input id="startCreateDate" name="startCreateDate" class="z-input z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${startCreateDate}"> -
|
||
<input id="endCreateDate" name="endCreateDate" class="z-input z-mg-l3 z-w90 ${zmr_color_class}" readonly="true" onfocus="Z.date(this);" value="${endCreateDate}">
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40">
|
||
<td> 处理状态:
|
||
<select data-class="${zmr_color_class}" data-role="z-select" id="afterStatus" name="afterStatus" class="z-w180 z-select">
|
||
<option value="">全部</option>
|
||
<#for item : AfterConstants.getStatusList()>
|
||
<option value="${item.value()}" <#if item.value() == afterStatus>selected</#if>>${item.desc()}</option>
|
||
</#for>
|
||
</select>
|
||
</td>
|
||
<td colspan="2"><button class="z-button z-large z-w120 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
|
||
<#-- 操作功能 -->
|
||
<div class="z-w100p z-mg-t10 z-mg-b3">
|
||
<button type="button" class="z-button z-mg-t3 z-mg-r6 z-red" onclick="showReturnBlame()"><i class="z-font z-upload"></i>异议申诉</button>
|
||
<button type="button" class="z-button z-mg-t3 z-mg-r6 z-cyan" onclick="doFinishAfterOrder()"><i class="z-font z-success"></i>售后完成</button>
|
||
</div>
|
||
|
||
<#-- 列表-->
|
||
<div class="z-overflow-auto z-bd-r" style="overflow:scroll;">
|
||
<table class="z-table z-bordered z-h40-tr z-pd5 zi-bd-r-none z-bg-white z-text-center" style="width:2000px">
|
||
<tr bgcolor="${zmr_thead_bgcolor}" data-layoutCode="orderList">
|
||
<td width="40">选择</td>
|
||
<td width="130">订单号</td>
|
||
<td width="130">旺旺号</td>
|
||
<td width="100">处理状态</td>
|
||
<td width="80">损失金额</td>
|
||
<td width="80">赔付金额<span data-role="z-tooltip" data-options="align:left;width:200px;" class="z-color-red" data-text="2021年10月1日起,设计师售后赔偿金额由损失金额改为赔付金额"> *</span></td>
|
||
<td width="250">售后原因</td>
|
||
<td width="230">产品</td>
|
||
<td width="180">特殊工艺</td>
|
||
<td width="90">创建时间</td>
|
||
<td width="130">新补单号</td>
|
||
<td width="170">申诉拒绝原因</td>
|
||
<td width="100">申诉拒绝时间</td>
|
||
</tr>
|
||
${zhiqim_manager_tr_no_record(pageResult, 18, "暂时没有订单信息")}
|
||
<#for item : pageResult.list()>
|
||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||
<td><input name="designAfsId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" onclick="doShowAfterOrderInfo(this, this.value)" value="${item.getDesignAfsId()}" ></td>
|
||
<td>${item.getDesignId()}</td>
|
||
<td id="ww${item.getDesignAfsId()}" data-ww="${item.getBuyerNick()}">${item.getBuyerNick()}</td>
|
||
<input type="hidden" value="${item.getAfterStatus()}" id="afs${item.getDesignAfsId()}">
|
||
<td>${AfterConstants.statusHtml(item.getAfterStatus())}</td>
|
||
<td>${item.getLossAmount()}</td>
|
||
<#if item.getAfterCreateTime().getTime() gte lNowTime>
|
||
<td>${(item.getLossAmount()*Long.parseLong(ParamDao.getString("yangcai.web","AfterPayProportion")))/100}</td>
|
||
<#else>
|
||
<td>${item.getLossAmount()}</td>
|
||
</#if>
|
||
<td>${item.getProblemDesc()}</td>
|
||
<td>${item.getOrderText()}</td>
|
||
<td>${item.getPrintSpecial()}</td>
|
||
<td>${Sqls.toDateTimeString(item.getAfterCreateTime())}</td>
|
||
<td><#if item.getNewDesignId() gt 0>${item.getNewDesignId()}</#if></td>
|
||
<td>${item.getAfterBlameReturnNote()}</td>
|
||
<td>${Sqls.toDateTimeString(item.getAfterModifyTime())}</td>
|
||
</tr>
|
||
</#for>
|
||
</table>
|
||
</div>
|
||
${zhiqim_manager_paging(pageResult, "waitHandleAfterOrder.htm")}
|
||
</div>
|
||
${zhiqim_manager_content_end()}
|
||
|
||
<#--右侧文件信息-->
|
||
<div id="afterRight" class="z-fixed z-pd6 z-bd-l z-bg-white z-h100p" style="top:${zmr_topnav_height}px;right:0;width:340px;z-index:50;">
|
||
<div id="afterRightContent" class="zi-mg-t15">
|
||
<table class="z-table z-pd10 z-bordered z-w100p" style="margin-top:;">
|
||
<tr bgcolor="#f5f5f5">
|
||
<td>产品信息:</td>
|
||
</tr>
|
||
<tr>
|
||
<td id="orderText" class="z-lh150p">请选择订单</td>
|
||
</tr>
|
||
<tr bgcolor="#f5f5f5">
|
||
<td><span class="z-bold">问题描述:</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="z-lh150p">
|
||
<div id="problemDesc" class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40" bgcolor="#efefef">
|
||
<td style="position: relative;">
|
||
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_AftersaleFile', this.checked);" data-id="Z_Checkbox_ZaKqqLra8T" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_ZaKqqLra8T" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
|
||
<b class="z-pd4">售后文件</b>
|
||
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40">
|
||
<td class="z-pd-l10">
|
||
<div class="z-overflow-y-auto z-w100p" id="atta_AftersaleFile" style="min-height:24px; max-height:100px;">
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40" bgcolor="#efefef">
|
||
<td style="position: relative;">
|
||
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_DesginFile', this.checked);" data-id="Z_Checkbox_TsMUgMR9ME" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_TsMUgMR9ME" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
|
||
<b class="z-pd4">设计文件</b>
|
||
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40">
|
||
<td class="z-pd-l10">
|
||
<div class="z-overflow-y-auto z-w100p" id="atta_DesginFile" style="min-height:24px; max-height:100px;">
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40" bgcolor="#efefef">
|
||
<td style="position: relative;">
|
||
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_EndFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg9" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg9" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
|
||
<b class="z-pd4">印刷文件</b>
|
||
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40">
|
||
<td class="z-pd-l10">
|
||
<div class="z-overflow-y-auto z-w100p" id="atta_EndFile" style="min-height:24px; max-height:100px;">
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40" bgcolor="#efefef">
|
||
<td style="position: relative;">
|
||
<zcover style="float: none; margin: 0px;"><input type="checkbox" class="z-checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('atta_TbzFile', this.checked);" data-id="Z_Checkbox_7pxVgdChg8" style="visibility: hidden; margin: 0px;"><i class="z-checkbox z-role-checkbox z-relative z-blue" id="Z_Checkbox_7pxVgdChg8" data-id="" data-name="" style="padding: 0px; margin-left: -16px;"></i></zcover>
|
||
<b class="z-pd4">编辑器文件</b>
|
||
<button id="download" class="z-button z-mg-l20 z-float-right z-orange z-mg-r6">下载</button>
|
||
</td>
|
||
</tr>
|
||
<tr class="z-h40">
|
||
<td class="z-pd-l10">
|
||
<div class="z-overflow-y-auto z-w100p" id="atta_TbzFile" style="min-height:24px; max-height:100px;">
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<#-- 联系旺旺&联系QQ弹窗框 -->
|
||
<iframe id="openFrm" class="z-hide" src="about:blank"></iframe> |