271 lines
9.7 KiB
Plaintext
271 lines
9.7 KiB
Plaintext
${Styles.htmlOverflowHidden()}
|
|
${Scripts.src("/zinc/js/global_2019010801.js")}
|
|
${yangcai_calc_Left_width_height(400, 70)}
|
|
|
|
${zhiqim_manager_content()}
|
|
|
|
<script>
|
|
|
|
//发工资
|
|
function doSendSalary(operatorCode,operatorStatus,usableMoney){
|
|
if (operatorStatus == 1){
|
|
var dialog = new Z.Dialog();
|
|
dialog.url = "/sendSalary.htm?operatorCode="+operatorCode+"&operatorStatus="+operatorStatus+"&usableMoney="+usableMoney;
|
|
dialog.width = 600;
|
|
dialog.height = 400;
|
|
dialog.execute();
|
|
} else {
|
|
Z.alert("该账户目前是停用状态!",
|
|
function(){
|
|
window.location.reload();
|
|
window.Z.Dialog.close();
|
|
});
|
|
};
|
|
}
|
|
//异常稽核
|
|
function doAbnormalAudit(operatorCode,operatorStatus,usableMoney){
|
|
if (operatorStatus == 1){
|
|
var dialog = new Z.Dialog();
|
|
dialog.url = "/abnormalAudit.htm?operatorCode="+operatorCode+"&operatorStatus="+operatorStatus+"&usableMoney="+usableMoney;
|
|
dialog.width = 600;
|
|
dialog.height = 470;
|
|
dialog.execute();
|
|
} else {
|
|
Z.alert("该账户目前是停用状态!",
|
|
function(){
|
|
window.location.reload();
|
|
window.Z.Dialog.close();
|
|
});
|
|
};
|
|
}
|
|
|
|
function doFreezeSalary(operatorCode,operatorStatus,usableMoney){
|
|
if (operatorStatus == 1){
|
|
var dialog = new Z.Dialog();
|
|
dialog.url = "/freezeSalary.htm?operatorCode="+operatorCode+"&operatorStatus="+operatorStatus+"&usableMoney="+usableMoney;
|
|
dialog.width = 600;
|
|
dialog.height = 400;
|
|
dialog.execute();
|
|
} else {
|
|
Z.alert("该账户目前是停用状态!",
|
|
function(){
|
|
window.location.reload();
|
|
window.Z.Dialog.close();
|
|
});
|
|
};
|
|
}
|
|
|
|
//核算定稿
|
|
function doFinalizeCheck(operatorCode,operatorStatus){
|
|
if (operatorStatus == 1){
|
|
Z.confirm('您确定要核算设计师:'+operatorCode+' 的资金账户吗?',
|
|
function(){
|
|
finalizeCheck(operatorCode,operatorStatus);
|
|
}
|
|
);} else {
|
|
Z.alert("该账户目前是停用状态!",
|
|
function(){
|
|
Z.L.href('virtualAccount.htm');
|
|
});
|
|
};
|
|
}
|
|
|
|
//核算定稿
|
|
function finalizeCheck(operatorCode,operatorStatus){
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("VirtualAccountAction");
|
|
ajax.setMethodName("finalizeCheck");
|
|
ajax.addParam(operatorCode);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
Z.success("操作成功",function(){
|
|
window.location.reload();
|
|
window.Z.Dialog.close();
|
|
});
|
|
});
|
|
ajax.setLoading("finalizeCheck", '正在提交', {disabled:true});
|
|
ajax.execute();
|
|
}
|
|
|
|
//解冻金额
|
|
function doUnfreezeMoney(operatorCode,operatorStatus){
|
|
if (operatorStatus == 1){
|
|
Z.confirm('您确定要解冻设计师:'+operatorCode+' 的资金账户吗?',
|
|
function(){
|
|
unfreezeMoney(operatorCode,operatorStatus);
|
|
}
|
|
);} else {
|
|
Z.alert("该账户目前是停用状态!",
|
|
function(){
|
|
Z.L.href('virtualAccount.htm');
|
|
});
|
|
};
|
|
}
|
|
|
|
//解冻金额
|
|
function unfreezeMoney(operatorCode,operatorStatus){
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("VirtualAccountAction");
|
|
ajax.setMethodName("unfreezeMoney");
|
|
ajax.addParam(operatorCode);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
Z.success("操作成功",function(){
|
|
window.location.reload();
|
|
window.Z.Dialog.close();
|
|
});
|
|
});
|
|
ajax.setLoading("unfreezeMoney", '正在提交', {disabled:true});
|
|
ajax.execute();
|
|
}
|
|
|
|
function goSwitch(obj,operatorCode){
|
|
var span=Z(obj).parent().find('span')
|
|
var ajax = new Z.Ajax();
|
|
ajax.setClassName("VirtualAccountAction");
|
|
ajax.setMethodName("updateStatus");
|
|
var num=obj.checked?1:0;
|
|
if(obj.checked){
|
|
span.htmlc('正常').attr('class','normal')
|
|
}else{
|
|
span.htmlc('禁用').attr('class','forbidden')
|
|
}
|
|
ajax.addParam(num);
|
|
ajax.addParam(operatorCode);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccess(function(){
|
|
Z.success("修改成功",function(){
|
|
window.location.reload();
|
|
window.Z.Dialog.close();
|
|
});
|
|
});
|
|
ajax.setLoading("goSwitch", '正在修改', {disabled:true});
|
|
ajax.execute();
|
|
}
|
|
|
|
function exportDatas(){
|
|
var form = document.virtualAccount;
|
|
form.action= "/exportWageSchedule.htm"
|
|
form.submit();
|
|
|
|
setTimeout(form.action= "/virtualAccount.htm",300);
|
|
}
|
|
</script>
|
|
<style>
|
|
.switch-box{ position: relative; width: 80px;}
|
|
.switch-box span{ transition: left 0.5s;}
|
|
.normal{position: absolute; top:6px; left:16px; color:#fff;}
|
|
.forbidden{ position: absolute; top:6px; left:38px;}
|
|
.switch{
|
|
-webkit-appearance: none;
|
|
width: 80px;
|
|
height:32px!important;
|
|
border:1px solid #dfdfdf!important;
|
|
border-radius: 30px;
|
|
position: relative;
|
|
outline: none;
|
|
transition: linear 0.2s;
|
|
}
|
|
/*伪类*/
|
|
.switch:before{
|
|
content: '';
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: #d7d7d7;
|
|
position: absolute;
|
|
top: 1px;
|
|
left: 1px;
|
|
transition: linear 0.2s;
|
|
}
|
|
.switch:checked{
|
|
box-shadow: 0 0 16px 16px #00a9f2 inset; background: #00a9f2;
|
|
transition: linear 0.2s;
|
|
}
|
|
.switch:checked:before{
|
|
left: 48px;
|
|
background: #fff;
|
|
transition: linear 0.2s;
|
|
}
|
|
.switch-label {
|
|
display: block;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
border: 1px solid #white;
|
|
}
|
|
</style>
|
|
<#-- 导航 -->
|
|
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
|
<nav>
|
|
<ul>
|
|
<li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
|
|
<li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
|
|
<li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
|
|
<li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
|
|
<li onclick="Z.L.href('designerReg.htm');">注册审核</li>
|
|
|
|
<li class="z-active">资金账户</li>
|
|
<li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<#-- 查询条件 -->
|
|
${zhiqim_manager_title("查询条件")}
|
|
<form name="virtualAccount" action="virtualAccount.htm" method="post" id="virtualAccount">
|
|
<table class="z-table z-bordered z-pd6 z-bg-white" >
|
|
<tr class="z-h40">
|
|
<td> 设计师:
|
|
<input type="operatorCode" name="operatorCode" class="z-input z-w180 ${zmr_color_class}" value="${operatorCode}">
|
|
</td>
|
|
<td width="1000px">
|
|
<button class="z-button z-blue z-large"><i class="z-font z-query"></i>查询</button>
|
|
<button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<button id="exportDatas" name="exportDatas" style="margin-left: 848px;position: fixed;margin-top: -45px;" type="button" class="z-button z-large z-blue" onclick="exportDatas();"><i class="z-font z-download"></i>导出</button>
|
|
<div class="z-table z-bordered z-h70-tr z-pd5 z-bg-white z-text-center" style="width:100%" >
|
|
<#-- 分页列表-->
|
|
<div class="z-overflow-auto z-bd-r">
|
|
<table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" >
|
|
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}" data-layoutCode="virtualAccountDetailsAction.zml">
|
|
<td width="8%">设计师账户</td>
|
|
<td width="16%">账户状态</td>
|
|
<td width="18%">总金额(元)</td>
|
|
<td width="18%">冻结金额(元)</td>
|
|
<td width="18%">可用金额(元)</td>
|
|
<td width="20%">操作</td>
|
|
</tr>
|
|
<#if pageResult.size() == 0>
|
|
${zhiqim_manager_no_record(26,"暂不存在资金账户列表")}
|
|
</#if>
|
|
<#for item : pageResult.list()>
|
|
<tr align="center" class="z-h40 ">
|
|
<td>${item.getOperatorCode()}</td>
|
|
<td><div class='switch-box'>
|
|
<input style="cursor: pointer;" id="${item.getOperatorCode()}" type="checkbox" <#if item.getOperatorStatus() == 1>checked</#if> onclick='goSwitch(this,"${item.getOperatorCode()}");' class="switch" />
|
|
<label class="switch-label" for="${item.getOperatorCode()}"><#if item.getOperatorStatus() == 1><span class="normal">正常</span><#else><span class="forbidden">禁用</span></#if></label>
|
|
</div></td>
|
|
<td><a style="color:#1299ec" href="/virtualAccountTransactionDetails.htm?status=0&operatorCode=${item.getOperatorCode()}">${Amounts.toYuan(item.getSumMoney())}</a></td>
|
|
<td><a style="color:#1299ec" href="/virtualAccountTransactionDetails.htm?status=4&operatorCode=${item.getOperatorCode()}">${Amounts.toYuan(item.getFreezeMoney())}</a></td>
|
|
<td><a style="color:#1299ec" href="/virtualAccountTransactionDetails.htm?status=999&operatorCode=${item.getOperatorCode()}">${Amounts.toYuan(item.getUsableMoney())}</a></td>
|
|
<td>
|
|
<#if ZmrPathRule.check(request, "/sendSalary.htm")>
|
|
<button class="z-button z-large z-blue" onclick="doSendSalary('${item.getOperatorCode()}','${item.getOperatorStatus()}','${Amounts.toYuan(item.getUsableMoney())}');">发工资</button>
|
|
<button class="z-button z-large z-blue" onclick="doAbnormalAudit('${item.getOperatorCode()}','${item.getOperatorStatus()}','${Amounts.toYuan(item.getUsableMoney())}');">异常稽核</button>
|
|
<!-- <button class="z-button z-large z-red" onclick="doFreezeSalary('${item.getOperatorCode()}','${item.getOperatorStatus()}','${Amounts.toYuan(item.getUsableMoney())}');">冻结资金</button>-->
|
|
<!-- <button class="z-button z-large z-red" onclick="doFinalizeCheck('${item.getOperatorCode()}','${item.getOperatorStatus()}');">核算定稿</button> -->
|
|
<#else>
|
|
<span>暂无操作权限</span>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</#for>
|
|
</table>
|
|
</div>
|
|
${zhiqim_manager_paging(pageResult, "/virtualAccount.htm")}
|
|
</div>
|
|
${zhiqim_manager_content_end()}
|