first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<#def designatedPath="/afterPicType.htm"/>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("售后参数管理")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">责任归属</li>
|
||||
<li onclick="Z.L.href('afterProblemType.htm')">售后问题类型</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<#if ZmrPathRule.check(request, "/afterPicTypeAdd.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.href('afterPicTypeAdd.htm?page=${page}');"><i class="z-font z-add"></i>增加责任归属</button></#if>
|
||||
<#if ZmrPathRule.check(request, "/afterPicTypeModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('afterPicTypeModify.htm?page=${page}', 'picType');"><i class="z-font z-modify"></i>修改责任归属</button></#if>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">选项</td>
|
||||
<td width="30%">类型ID</td>
|
||||
<td width="30">名称</td>
|
||||
<td width="30%">状态</td>
|
||||
</tr>
|
||||
<#if Lists.size(dataList) == 0>
|
||||
${zhiqim_manager_no_record(6, "暂时没有数据信息")}
|
||||
</#if>
|
||||
<#for item : dataList>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="picType" name="picType" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getPicType()}"></td>
|
||||
<td>${item.getPicType()}</td>
|
||||
<td>${item.getPicTypeName()}</td>
|
||||
<td><#if item.getPicStatus() == 0>正常<#else><span class="z-text-red">停用</span></#if></td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_list(dataList.size())}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,32 @@
|
||||
<#def designatedPath="/afterPicType.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("afterPicType.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("afterPicType.htm", "售后责任类型", "增加责任类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="afterPicTypeInsert.htm" method="post" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加责任归属</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">责任归属名称:<span class="z-color-999">(64位不定长字符)</span></td>
|
||||
<td width="*"><input name="picTypeName" class="z-input z-w300 ${zmr_color_class}" maxlength="64"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="picStatus" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0">正常</option>
|
||||
<option value="1">停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,36 @@
|
||||
<#def designatedPath="/afterPicType.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("afterPicType.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("afterPicType.htm", "售后责任类型", "修改责任类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="afterPicTypeUpdate.htm" method="post" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改责任归属</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">责任归属名称:<span class="z-color-999">(64位不定长字符)</span></td>
|
||||
<td width="*">
|
||||
<input type="hidden" name="picType" value="${pic.getPicType()}">
|
||||
<input name="picTypeName" class="z-input z-w300 ${zmr_color_class}" value="${pic.getPicTypeName()}" maxlength="64">
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="picStatus" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0" <#if pic.getPicStatus()== 0> selected </#if>>正常</option>
|
||||
<option value="1" <#if pic.getPicStatus()== 1> selected </#if>>停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,46 @@
|
||||
<#def designatedPath="/afterPicType.htm"/>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("售后参数管理")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('afterPicType.htm')">责任归属</li>
|
||||
<li class="z-active">售后问题类型</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<#if ZmrPathRule.check(request, "/afterProblemTypeAdd.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.href('afterProblemTypeAdd.htm?page=${page}');"><i class="z-font z-add"></i>增加问题类型</button></#if>
|
||||
<#if ZmrPathRule.check(request, "/afterProblemTypeModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('afterProblemTypeModify.htm?page=${page}', 'problemType');"><i class="z-font z-modify"></i>修改问题类型</button></#if>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">选项</td>
|
||||
<td width="30%">类型ID</td>
|
||||
<td width="30">名称</td>
|
||||
<td width="30">责任类型</td>
|
||||
<td width="30%">状态</td>
|
||||
</tr>
|
||||
<#if Lists.size(pageResult.list()) == 0>
|
||||
${zhiqim_manager_no_record(6, "暂时没有数据信息")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="problemType" name="problemType" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getProblemType()}"></td>
|
||||
<td>${item.getProblemType()}</td>
|
||||
<td>${item.getProblemName()}</td>
|
||||
<td>${picNameMap.get(item.getPicType())}</td>
|
||||
<td><#if item.getProblemStatus() == 0>正常<#else><span class="z-text-red">停用</span></#if></td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "afterProblemType.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,46 @@
|
||||
<#def designatedPath="/afterPicType.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("afterProblemType.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("afterProblemType.htm", "售后问题类型", "增加问题类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="afterProblemTypeInsert.htm" method="post" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加售后问题</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>责任归属:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="picType" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">请选择</option>
|
||||
<#for item : picList>
|
||||
<#if item.getPicStatus() != 1>
|
||||
<option value="${item.getPicType()}">${item.getPicTypeName()}</option>
|
||||
</#if>
|
||||
</#for>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">售后问题名称:<span class="z-color-999">(64位不定长字符)</span></td>
|
||||
<td width="*"><input name="problemName" class="z-input z-w300 ${zmr_color_class}" maxlength="64"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="problemStatus" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0">正常</option>
|
||||
<option value="1">停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,48 @@
|
||||
<#def designatedPath="/afterPicType.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("afterProblemType.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("afterProblemType.htm", "售后问题类型", "修改问题类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="afterProblemTypeUpdate.htm" method="post" data-role="z-call-frame">
|
||||
<input type="hidden" class="z-input z-w300 ${zmr_color_class}" name="problemType" value="${problem.getProblemType()}" maxlength="64">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改售后问题</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>责任归属:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="picType" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">请选择</option>
|
||||
<#for item : picList>
|
||||
<#if item.getPicType() != problem.getPicType() && item.getPicStatus() == 1>
|
||||
<#continue/>
|
||||
</#if>
|
||||
<option value="${item.getPicType()}" <#if item.getPicType() == problem.getPicType()>selected</#if> >${item.getPicTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">售后问题名称:<span class="z-color-999">(64位不定长字符)</span></td>
|
||||
<td width="*"><input class="z-input z-w300 ${zmr_color_class}" name="problemName" value="${problem.getProblemName()}" maxlength="64"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="problemStatus" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0" <#if problem.getProblemStatus() == 0>selected</#if> >正常</option>
|
||||
<option value="1" <#if problem.getProblemStatus() == 1>selected</#if> >停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,151 @@
|
||||
<#def designatedPath="/orderMerchantList.htm"/>
|
||||
${zhiqim_manager_breadcrumb("商家管理")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function doViewStackTrace(stackTraceId)
|
||||
{
|
||||
if (!stackTraceId)
|
||||
return;
|
||||
|
||||
var stackTraceElem = document.getElementById(stackTraceId);
|
||||
var stackTrace = stackTraceElem.innerText;
|
||||
if (!stackTraceElem || Z.V.isEmptyBlank(stackTraceElem.innerText))
|
||||
{
|
||||
Z.failure("未找到内容");
|
||||
return;
|
||||
}
|
||||
|
||||
var dialog = document.getElementById("stackTraceDialog");
|
||||
if (!dialog)
|
||||
Z.dialog({text:'<div id="stackTraceDialog" class="z-pd6 z-text-ellipsis z-px18"></div>',width:1024,height:300,shadow:false});
|
||||
|
||||
var text = '';
|
||||
for(var i=0; i < stackTrace.length; i++)
|
||||
{
|
||||
var c = stackTrace[i]
|
||||
if (c == '\r\n' || c == '\n')
|
||||
c = '▲';
|
||||
else if (c == '\t')
|
||||
c = ' ';
|
||||
else if (c == '\r')
|
||||
continue;
|
||||
text += c;
|
||||
}
|
||||
|
||||
var html = '';
|
||||
var arr = Z.AR.toArray(text, "▲");
|
||||
for(var i=0; i < arr.length; i++)
|
||||
{
|
||||
var str = arr[i];
|
||||
var start = -1;
|
||||
if (i==0)
|
||||
html += '<u style="color:rgb(0, 0 ,173)">';
|
||||
|
||||
if (i > 0)
|
||||
html += '<br/>';
|
||||
|
||||
for(var j= 0; j < str.length; j++)
|
||||
{
|
||||
var c=str[j]
|
||||
|
||||
if (c == '(')
|
||||
html += '(<u style="color:rgb(0, 0 ,173)">'
|
||||
|
||||
else if (c==')')
|
||||
html += '</u>)';
|
||||
else
|
||||
html += c;
|
||||
|
||||
//第一行下划线结束
|
||||
if ((c == ':' && i == 0) || j == str.length - 1)
|
||||
html += '</u>';
|
||||
}
|
||||
}
|
||||
console.log(arr);
|
||||
dialog = document.getElementById("stackTraceDialog");
|
||||
Z(dialog).html(html);
|
||||
}
|
||||
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('orderMerchantList.htm')">商家列表</li>
|
||||
<li class="z-active">接口日志</li>
|
||||
<li onclick="Z.L.href('teamManagement.htm')">团队管理</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
${zhiqim_manager_title("查询条件")}
|
||||
<form method="post">
|
||||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||||
<tr>
|
||||
<td width="25%">用户IP:<input name="remoteIp" class="${zmr_color_class} z-input z-w160 z-mg-l4" value="${remoteIp}" maxlength="64" placeholder="用户名"></td>
|
||||
<td width="25%">用户名称:<input name="remoteUser" class="${zmr_color_class} z-input z-w180 z-mg-l4" value="${remoteUser}" maxlength="64" placeholder="用户名"></td>
|
||||
<td width="25%">创建时间:<input id="startTime" name="startTime" class="z-input z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${startTime}"> -
|
||||
<input id="startTime" name="endTime" class="z-input z-mg-l3 z-w150 ${zmr_color_class}" readonly="true" onfocus="Z.datetime(this);" value="${endTime}">
|
||||
</td>
|
||||
<td width="25%">接口名称:<select name="apiName" class="z-select z-w180" data-role="z-select-search" data-class="z-blue">
|
||||
<option value="">全部</option>
|
||||
<option value="/designRest.htm" <#if Strings.equals("/designRest.htm", apiName)>selected</#if>>designRest</option>
|
||||
<#for item : apiList>
|
||||
<option value="${item.value()}" <#if item.value().equals(apiName)>selected</#if>>${item.desc()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="z-h40">
|
||||
<td>状态码:<input name="statusCode" class="z-input z-w160 z-mg-l4 ${zmr_color_class} " data-options="type:Integer;paste:true" value="${statusCode}" maxlength="64" placeholder="状态码"></td>
|
||||
<td>结果描述:<input name="invokeMessage" class="z-input z-w180 z-mg-l4 ${zmr_color_class}" value="${invokeMessage}" maxlength="200" placeholder="模糊匹配"></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>
|
||||
<tr>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="60">选择</td>
|
||||
<td width="120">用户名</td>
|
||||
<td width="8%">用户IP</td>
|
||||
<td width="14%">接口名</td>
|
||||
<td width="200">错误编号</td>
|
||||
<td width="100">调用结果</td>
|
||||
<td width="*">结果描述/错误原因</td>
|
||||
<td width="140">创建时间</td>
|
||||
<td width="300">操作</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有数据信息")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input type="radio" class="z-radio" data-role="z-radio" data-class="z-blue" id="invokeLogId" name="invokeLogId" value="${item.getInvokeLogId()}"></td>
|
||||
<td>${item.getRemoteUser()}</td>
|
||||
<td>${item.getRemoteIp()}</td>
|
||||
<td>${item.getApiName()}</td>
|
||||
<td>${item.getErrorId()}</td>
|
||||
<td><#if item.getStatusCode() gt 0><span class="z-text-red">失败</span><#else><span class="z-text-red">成功</span></#if></td>
|
||||
<td class="zi-text-left">
|
||||
<div class="z-text-ellipsis z-pd6" style="max-width:600px">
|
||||
${item.getInvokeMessage()}
|
||||
</div>
|
||||
</td>
|
||||
<td>${item.getCreateTime()}</td>
|
||||
<td>
|
||||
<#if Validates.isNotEmptyBlank(item.getInvokeStackTrace())>
|
||||
<button type="button" class="z-button z-cyan" onclick="doViewStackTrace('stackTrace${item.getInvokeLogId()}')"><i class="z-font z-query"></i>查看错误代码</button>
|
||||
<#var stackTrace= item.getInvokeStackTrace()/>
|
||||
<span id="stackTrace${item.getInvokeLogId()}" class="z-hide">${stackTrace}</span>
|
||||
</#if>
|
||||
<button type="button" class="z-button z-red" onclick="Z.L.href('apiInvokeLogDelete.htm?invokeLogId=${item.getInvokeLogId()}')"><i class="z-font z-delete"></i>清除</button>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "apiInvokeLog.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,59 @@
|
||||
${sweet_alert_reuse_method()}
|
||||
${zhiqim_manager_breadcrumb("公共参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
function doUpdateBusinessParamValue(form){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doUpdateBusinessParamValue");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title : "修改成功",type : "success",timer: 1000,width:300,showConfirmButton:false});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
|
||||
<li class="z-active">公共参数</li>
|
||||
<#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">审稿退回原因</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designOrderRefundReason.htm")><li onclick="Z.L.href('/designOrderRefundReason.htm');">退款原因类型配置</li></#if>
|
||||
<li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#for group : ParamDao.doQueryBusinessParam().entrySet()>
|
||||
<table class="z-table z-bordered z-pd10 <#if group_index gt 0>z-mg-t10</#if> z-bg-white">
|
||||
${zhiqim_manager_tr_title(4, "业务参数["+group.getKey()+"]列表")}
|
||||
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="400">业务配置描述</td>
|
||||
<td width="400">业务配置值</td>
|
||||
<td width="*">操作</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(group.getValue(), 3, "暂时没有业务参数信息")}
|
||||
</table>
|
||||
<#for item : group.getValue().values()>
|
||||
<form name="theForm${group_index}_${item_index}" method="post" onsubmit="return false;" data-role="z-call-frame">
|
||||
<input name="paramGroup" type="hidden" value="${item.getParamGroup()}">
|
||||
<input name="paramKey" type="hidden" value="${item.getParamKey()}">
|
||||
<table class="z-table z-bd-b z-bordered zi-bd-t-none z-h60-tr z-pd10" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
|
||||
<tr>
|
||||
<td width="400">${item.getParamDesc()}</td>
|
||||
<td width="400"><input name="paramValue" class="z-input z-w100p zi-h40 ${zmr_color_class}" value="${item.getParamValue()}" maxlength="800"></td>
|
||||
<td width="*"><button type="submit" class="z-button" onclick="doUpdateBusinessParamValue(this.form);">修改</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</#for>
|
||||
</#for>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,256 @@
|
||||
${zhiqim_manager_breadcrumb("字段参数")}
|
||||
${zhiqim_manager_content()}
|
||||
${sweet_alert_reuse_method()}
|
||||
<script>
|
||||
var catMap = new Z.HashMap();
|
||||
var list = Z.J.toObject('${catList}');
|
||||
Z.onload(function(){
|
||||
Z.each(list, function(item, i){
|
||||
catMap.put(Z.S.toString(item.reasonId), item)
|
||||
})
|
||||
});
|
||||
|
||||
function toAdd(type)
|
||||
{
|
||||
if ((type != 1 && type != 0))
|
||||
{
|
||||
Z.alert("未知添加类型");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var isCat = type == 1;
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="addForm" action="javascript:void(0)">';
|
||||
content += '<input name="isReasonType" type="hidden" value="'+isCat+'">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
if (isCat)
|
||||
{//添加分类
|
||||
height = 120;
|
||||
content += ' <tr>';
|
||||
content += ' <td>原因分类 :</td>';
|
||||
content += ' <td><input name="reasonText" class="z-input z-w200" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
content += ' <tr>';
|
||||
content += ' <td>原因分类 :</td>';
|
||||
content += ' <td>';
|
||||
content += ' <select name="reasonParent" class="z-select z-w200" data-role="z-select" data-class="z-blue">';
|
||||
Z.each(list, function(item, i)
|
||||
{
|
||||
content += ' <option value="'+item.reasonId+'">'+item.reasonText+'</option>';
|
||||
})
|
||||
content += ' </select>';
|
||||
content += ' </td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>原因项 :</td>';
|
||||
content += ' <td><input name="reasonText" class="z-input z-w200" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
}
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doSave(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'addreason', title:'<span id="addreasonTile"></span>', text:'<div id="addreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#addreasonContent").htmlc(content);
|
||||
Z("#addreasonTile").htmlc("添加原因预录");
|
||||
}
|
||||
|
||||
function doSave(form)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.CheckBackReasonAction");
|
||||
ajax.setMethodName("insert");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"添加成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function doModify(reasonId, parentId, text)
|
||||
{//修改
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="modifyForm" action="javascript:void(0)">';
|
||||
content += '<input name="reasonId" type="hidden" value="'+reasonId+'">';
|
||||
content += '<input name="isReasonType" type="hidden" value="false">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
content += ' <tr>';
|
||||
content += ' <td>原因分类 :</td>';
|
||||
content += ' <td>';
|
||||
content += ' <select name="reasonParent" class="z-select z-w200" data-role="z-select-search" data-class="z-blue">';
|
||||
Z.each(list, function(item, i)
|
||||
{
|
||||
content += ' <option value="'+item.reasonId+'" '+(item.reasonId == parentId ? 'selected' : '')+'>'+item.reasonText+'</option>';
|
||||
});
|
||||
content += ' </select>';
|
||||
content += ' </td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>原因项 :</td>';
|
||||
content += ' <td><input name="reasonText" class="z-input z-w200" value="'+(text ? text : '')+'" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doUpdate(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'modifyreason', title:'<span id="modifyreasonTile"></span>', text:'<div id="modifyreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#modifyreasonContent").htmlc(content);
|
||||
Z("#modifyreasonTile").htmlc("添加原因预录");
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doUpdate(form)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.CheckBackReasonAction");
|
||||
ajax.setMethodName("update");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"更新成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
Z("#item_" + form.reasonId.value).htmlc(form.reasonText.value);
|
||||
Z.Dialog.close(location.hash);
|
||||
});
|
||||
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function doDelete(reasonId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.CheckBackReasonAction");
|
||||
ajax.setMethodName("beforeDelete");
|
||||
ajax.addParam("reasonId",reasonId);
|
||||
ajax.setSuccess(function(){
|
||||
var obj =Z.J.toObject(this.responseText);
|
||||
if(obj){
|
||||
Swal.fire({title: '同时移除原因分类',type: 'question',showCancelButton: true,
|
||||
cancelButtonText: '取消',
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: '确认'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
doReasonDelete(reasonId);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
doReasonDelete(reasonId);
|
||||
}
|
||||
|
||||
});
|
||||
ajax.setLoading("removeReason", '<i class="z-font z-delete"></i>正在移除',{disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doReasonDelete(reasonId){
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.CheckBackReasonAction");
|
||||
ajax.setMethodName("delete");
|
||||
ajax.addParam("reasonId",reasonId);
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"移除成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading("removeReason", '<i class="z-font z-delete"></i>正在移除',{disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/businessParam.htm")><li onclick="Z.L.href('/businessParam.htm');">公共参数</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
|
||||
<li class="z-active">审稿退回原因</li>
|
||||
<#if ZmrPathRule.check(request, "/designOrderRefundReason.htm")><li onclick="Z.L.href('/designOrderRefundReason.htm');">退款原因类型配置</li></#if>
|
||||
<li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
|
||||
</ul>
|
||||
<div class="z-pd6 z-text-right">
|
||||
<button type="button" class="z-button z-cyan" onclick="toAdd(1)"><i class="z-font z-add"></i>添加原因分类</button>
|
||||
<button type="button" class="z-button z-cyan" onclick="toAdd(0)"><i class="z-font z-add" ></i>新增原因项</button>
|
||||
<div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table">
|
||||
<tr>
|
||||
<td width="400" valign="top">
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="80">序号</td>
|
||||
<td width="*">类型名称</td>
|
||||
</tr>
|
||||
<#for item : catList>
|
||||
<tr ${zhiqim_manager_tr_onmouse()} <#if item.getReasonId() == reasonCatId> style="background-color:#eaeaff;"</#if>>
|
||||
<td>${item_index+1}</td>
|
||||
<td><a href="checkBackReasonList.htm?reasonCatId=${item.getReasonId()}">${item.getReasonText()}</a></td>
|
||||
</tr>
|
||||
</#for>
|
||||
<#if catList.size() == 0>
|
||||
<tr bgcolor="">
|
||||
<td colspan="2">暂时没有数据信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
</table>
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td width="*" id="result" valign="top">
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">序号</td>
|
||||
<td width="*">名称</td>
|
||||
<td width="220">操作</td>
|
||||
</tr>
|
||||
<#for item : reasonList>
|
||||
<tr ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${item_index+1}</td>
|
||||
<td id="item_${item.getReasonId()}">${item.getReasonText()}</td>
|
||||
<td>
|
||||
<button type="button" class="z-button z-blue" onclick="doModify('${item.getReasonId()}','${item.getReasonParent()}','${item.getReasonText()}')"><i class="z-font z-modify"></i>修改原因项</button>
|
||||
<button class="z-button z-red removeReason" onclick="doDelete('${item.getReasonId()}')"><i class="z-font z-delete"></i>移除原因</button>
|
||||
</tr>
|
||||
</#for>
|
||||
<#if Validates.isEmpty(reasonList) || reasonList.size() == 0>
|
||||
<tr bgcolor="">
|
||||
<td colspan="3">暂时没有数据信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,38 @@
|
||||
${request.getValidateScript()}
|
||||
<script>
|
||||
function doAssignOrg()
|
||||
{//指定组织
|
||||
var orgId = Z("#orgId").val();
|
||||
debugger;
|
||||
var parentInput = parent.document.getElementById('deptOrg');
|
||||
if (parentInput) {
|
||||
if(parentInput.value != ''){
|
||||
parentInput.value = parentInput.value+','+orgId;
|
||||
}else{
|
||||
parentInput.value = orgId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<input id="designer" name="designer" value="${oper.getOperatorCode()}" type="hidden">
|
||||
<table class="z-table z-bordered z-pd6">
|
||||
|
||||
|
||||
<tr class="z-h40" bgcolor="${oddColor}">
|
||||
<td>选择组织:</td>
|
||||
<td>
|
||||
<select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}" data-options="maxHeight:100">
|
||||
<#for item : orgList>
|
||||
<option value="${item.getOrgName()}">${item.getOrgName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<font color=red> *</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<#-- 操作 -->
|
||||
<div class="" style="bottom:0;left:0">
|
||||
<button id="doAssignOrg" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="doAssignOrg();">提交</button>
|
||||
<button type="button" class="z-button z-large z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
|
||||
</div>
|
||||
@@ -0,0 +1,59 @@
|
||||
${Styles.htmlOverflowHidden()}
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{
|
||||
Z(document.forms[0].operatorKey).focusEnd();
|
||||
});
|
||||
|
||||
function doSelector()
|
||||
{
|
||||
var operatorCodes = Z.FM.getCheckeds("operatorCode");
|
||||
|
||||
// parent.doSelectorCallback("${dept.getDeptId()}", operatorCodes);
|
||||
var parentInput = parent.document.getElementById('deptTeam');
|
||||
if (parentInput) {
|
||||
if(parentInput.value != ''){
|
||||
parentInput.value = parentInput.value+','+operatorCodes;
|
||||
}else{
|
||||
parentInput.value = operatorCodes;
|
||||
}
|
||||
}
|
||||
close();
|
||||
}
|
||||
</script>
|
||||
|
||||
<#-- 查询 -->
|
||||
<div class="z-fixed z-t0 z-l0 z-w100p z-pd10 z-bg-gray">
|
||||
<form method="post">
|
||||
<input name="deptId" type="hidden" value="${dept.getDeptId()}">
|
||||
<input name="operatorKey" class="z-float-left z-input z-w300 zi-h35 zi-bd-r-none" placeholder="操作员编码或名称" value="${operatorKey}" maxlength="20">
|
||||
<button type="submit" class="z-float-left z-button z-w70 z-h35 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<div class="z-w100p z-pd10 z-overflow-auto" style="margin-top:55px;height:306px;">
|
||||
<table class="z-table z-bordered z-pd5 z-text-center">
|
||||
<tr class="z-h40 z-bg-gray">
|
||||
<td width="50"><input type="checkbox" data-role="z-checkbox" data-class="z-blue" onclick="Z.FM.doSelectCheckBox('operatorCode')"></td>
|
||||
<td width="90">操作员头像</td>
|
||||
<td width="110">操作员编码</td>
|
||||
<td width="*">操作员姓名</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(operatorList, 4, "没有可选择的操作员")}
|
||||
<#for item : operatorList>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_checkbox()}>
|
||||
<td><input name="operatorCode" type="checkbox" data-role="z-checkbox" data-class="z-blue" value="${item.getOperatorCode()}"></td>
|
||||
<td><img src="${sessionUser.getAvatarUrl(item.getOperatorAvatar(), 50)}" class="z-w50 z-h50 z-bd-rd50p"></td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${item.getOperatorName()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</tale>
|
||||
</div>
|
||||
|
||||
<#-- 操作 -->
|
||||
<div class="z-fixed z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">
|
||||
<button class="z-button z-large z-w150 ${zmr_color_class}" onclick="doSelector();">确定</button>
|
||||
<button class="z-button z-large z-w70 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
${zhiqim_manager_breadcrumb("设计组管理")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">设计组管理</li>
|
||||
<li onclick="Z.L.href('groupMembers.htm');">设计组成员</li>
|
||||
</ul>
|
||||
<div class="z-float-right z-mg-t10 z-mg-r5">
|
||||
<#if ZmrPathRule.check(request, "/designGroupAdd.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.href('designGroupAdd.htm');"><i class="z-font z-add"></i>增加设计组</button></#if>
|
||||
<#if ZmrPathRule.check(request, "/designGroupModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('designGroupModify.htm', 'groupId');"><i class="z-font z-modify"></i>修改设计组</button></#if>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-text-center z-bg-white">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="50">选择</td>
|
||||
<td width="200">所属组织</td>
|
||||
<td width="*">设计组名称</td>
|
||||
<td width="20%">当月组长</td>
|
||||
<td width="200">下月组长</td>
|
||||
<td width="200">创建时间</td>
|
||||
<td width="10%">排序</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有设计组")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input name="groupId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getGroupId()}"></td>
|
||||
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
<td>#{item.getGroupName()}</td>
|
||||
<td>${currLeaderMap.get(Strings.valueOf(item.getGroupId())).getUserCode()}</td>
|
||||
<td>${nextLeaderMap.get(Strings.valueOf(item.getGroupId())).getUserCode()}</td>
|
||||
<td>${Sqls.toDateString(item.getCreateTime())}</td>
|
||||
<td>${item.getGroupSeq()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "designGroup.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,47 @@
|
||||
${zhiqim_manager_history("designGroup.htm")}
|
||||
${request.getValidateScript()}
|
||||
<script>
|
||||
function doSelectorDialog(orgId)
|
||||
{//弹出操作员选择框
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "选择操作员";
|
||||
dialog.url = "membersSelector.htm?orgId="+orgId+"&operatorType=1";
|
||||
dialog.width = 392;
|
||||
dialog.height = 423;
|
||||
dialog.fixed = true;
|
||||
dialog.execute();
|
||||
}
|
||||
function doSelectorCallback(operatorCode)
|
||||
{//选择操作员回调
|
||||
document.theForm.groupLeader.value = operatorCode;
|
||||
}
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designGroup.htm" "设计组管理" "增加设计组")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" method="post" action="designGroupInsert.htm" onsubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="orgId" value="${org.getOrgId()}" type="hidden">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加设计组</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">组织:<span class="z-color-999"></span></td>
|
||||
<td><span>${org.getOrgName()}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>组名称:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input name="groupName" class="z-input z-w300 ${zmr_color_class}" maxlength="16"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>组长:<span class="z-color-999">(正常|停用)</span></td>
|
||||
<td><input name="groupLeader" class="z-input z-w130 zi-shadow-none" placeholder="请点按钮选择" readonly><button type="button" class="z-button z-mg-l10 ${zmr_color_class}" onclick="doSelectorDialog(${orgId});"><i class="z-font z-add"></i>选择操作员</button><button type="button" class="z-button z-mg-l3" onclick="doSelectorCallback('');">清除</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>组排序数:<span class="z-color-999">(必须是[0, 999999]范围的非负整数)</span></td>
|
||||
<td><input name="groupSeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Integer;" maxlength="6" value="100"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,47 @@
|
||||
${zhiqim_manager_history("designGroup.htm")}
|
||||
${request.getValidateScript()}
|
||||
<script>
|
||||
function doSelectorDialog(orgId)
|
||||
{//弹出操作员选择框
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "选择操作员";
|
||||
dialog.url = "membersSelector.htm?orgId="+orgId+"&operatorType=1";
|
||||
dialog.width = 392;
|
||||
dialog.height = 423;
|
||||
dialog.fixed = true;
|
||||
dialog.execute();
|
||||
}
|
||||
function doSelectorCallback(operatorCode)
|
||||
{//选择操作员回调
|
||||
document.theForm.groupLeader.value = operatorCode;
|
||||
}
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("designGroup.htm" "设计组管理" "修改设计组")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" method="post" action="designGroupUpdate.htm" onsubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="groupId" type="hidden" value="${item.getGroupId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加设计组</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">组织:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>组名称:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input name="groupName" class="z-input z-w300 ${zmr_color_class}" maxlength="16" value="${item.getGroupName()}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>组长:<span class="z-color-999">(正常|停用)</span></td>
|
||||
<td><input name="groupLeader" class="z-input z-w130 zi-shadow-none" value="${item.getGroupLeader()}" placeholder="请点按钮选择" readonly><button type="button" class="z-button z-mg-l10 ${zmr_color_class}" onclick="doSelectorDialog(${item.getOrgId()});"><i class="z-font z-add"></i>选择操作员</button><button type="button" class="z-button z-mg-l3" onclick="doSelectorCallback('');">清除</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>组排序数:<span class="z-color-999">(必须是[0, 999999]范围的非负整数)</span></td>
|
||||
<td><input name="groupSeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Integer;" value="100" maxlength="6" value="item.getGroupSeq()"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,102 @@
|
||||
<#def designatedPath="/designStandardDetails.htm"/>
|
||||
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
|
||||
<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var quill = new Quill('#editor-container', {
|
||||
theme: 'snow'
|
||||
});
|
||||
var contentElement = document.getElementById("content");
|
||||
var contentElement1 = document.getElementById("editor-container");
|
||||
var editButton = document.getElementById("edit-button");
|
||||
var content1 = '${content}';
|
||||
if (!content1) {
|
||||
// content 为空
|
||||
}else{
|
||||
|
||||
document.getElementById('editor-container').innerHTML = content1;
|
||||
}
|
||||
|
||||
|
||||
// 当点击编辑按钮时,将内容设置为可编辑状态
|
||||
editButton.addEventListener("click", function() {
|
||||
console.log(content1);
|
||||
|
||||
contentElement1.contentEditable = true;
|
||||
contentElement1.focus();
|
||||
});
|
||||
|
||||
|
||||
|
||||
var saveButton = document.getElementById("save-button");
|
||||
saveButton.addEventListener("click", async function() {
|
||||
var containerasd = document.getElementById("editor-container");
|
||||
var imgElements = containerasd.getElementsByTagName("img");
|
||||
for (var i = 0; i < imgElements.length; i++) {
|
||||
await new Promise((resolve, reject) => {
|
||||
(function(index) {
|
||||
var src = imgElements[index].src;
|
||||
console.log(index);
|
||||
// 在这里对src进行重新赋值
|
||||
|
||||
|
||||
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("designtypeImge");
|
||||
ajax.addParam("designId", ${reasonId});
|
||||
ajax.addParam("content", encodeURIComponent(src));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(responseText) {
|
||||
imgElements[index].src = responseText;
|
||||
console.log(index);
|
||||
resolve();
|
||||
});
|
||||
ajax.execute();
|
||||
console.log(index);
|
||||
})(i);
|
||||
});
|
||||
}
|
||||
// 在这里执行保存操作,比如将内容发送到服务器进行保存
|
||||
nextMethod();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function nextMethod() {
|
||||
|
||||
var html = document.getElementById("editor-container").innerHTML;
|
||||
console.log(html);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("designtype");
|
||||
ajax.addParam("designId", ${reasonId});
|
||||
ajax.addParam("content", encodeURIComponent(html));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("设计类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
|
||||
<div id="editor-container">
|
||||
</div>
|
||||
|
||||
<button id="edit-button">编辑内容</button>
|
||||
<button id="save-button">保存</button>
|
||||
|
||||
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,292 @@
|
||||
${zhiqim_manager_breadcrumb("字段参数")}
|
||||
${zhiqim_manager_content()}
|
||||
${sweet_alert_reuse_method()}
|
||||
<script>
|
||||
var catMap = new Z.HashMap();
|
||||
var list = Z.J.toObject('${catList}');
|
||||
Z.onload(function(){
|
||||
Z.each(list, function(item, i){
|
||||
catMap.put(Z.S.toString(item.reasonId), item)
|
||||
})
|
||||
});
|
||||
|
||||
function toAdd(type)
|
||||
{
|
||||
if ((type != 1 && type != 0))
|
||||
{
|
||||
Z.alert("未知添加类型");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var isCat = type == 1;
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="addForm" action="javascript:void(0)">';
|
||||
content += '<input name="isStandardType" type="hidden" value="'+isCat+'">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
if (isCat)
|
||||
{//添加分类
|
||||
height = 120;
|
||||
content += ' <tr>';
|
||||
content += ' <td>规范分类 :</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
content += ' <tr>';
|
||||
content += ' <td>规范分类 :</td>';
|
||||
content += ' <td>';
|
||||
content += ' <select name="standardParent" class="z-select z-w200" data-role="z-select" data-class="z-blue">';
|
||||
Z.each(list, function(item, i)
|
||||
{
|
||||
content += ' <option value="'+item.standardId+'">'+item.standardTitle+'</option>';
|
||||
})
|
||||
content += ' </select>';
|
||||
content += ' </td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>规范项 :</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
}
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doSave(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'addreason', title:'<span id="addreasonTile"></span>', text:'<div id="addreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#addreasonContent").htmlc(content);
|
||||
Z("#addreasonTile").htmlc("添加原因预录");
|
||||
}
|
||||
|
||||
function doSave(form)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("insert");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"添加成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function doModify(reasonId, parentId, text)
|
||||
{//修改
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="modifyForm" action="javascript:void(0)">';
|
||||
content += '<input name="standardId" type="hidden" value="'+reasonId+'">';
|
||||
content += '<input name="isStandardType" type="hidden" value="false">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
content += ' <tr>';
|
||||
content += ' <td>类型分类 :</td>';
|
||||
content += ' <td>';
|
||||
content += ' <select name="standardParent" class="z-select z-w200" data-role="z-select-search" data-class="z-blue">';
|
||||
Z.each(list, function(item, i)
|
||||
{
|
||||
content += ' <option value="'+item.standardId+'" '+(item.standardId == parentId ? 'selected' : '')+'>'+item.standardTitle+'</option>';
|
||||
});
|
||||
content += ' </select>';
|
||||
content += ' </td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>标题 :</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" value="'+(text ? text : '')+'" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doUpdate(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'modifyreason', title:'<span id="modifyreasonTile"></span>', text:'<div id="modifyreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#modifyreasonContent").htmlc(content);
|
||||
Z("#modifyreasonTile").htmlc("添加原因预录");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function doModifys(reasonId, parentId, text)
|
||||
{//修改
|
||||
var addreasonTile = '';
|
||||
var content = '<form name="modifyForm" action="javascript:void(0)">';
|
||||
content += '<input name="standardId" type="hidden" value="'+reasonId+'">';
|
||||
content += '<input name="isStandardType" type="hidden" value="false">';
|
||||
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
|
||||
var height = 300;
|
||||
|
||||
content += ' <tr>';
|
||||
content += ' <td>类型:</td>';
|
||||
content += ' <td><input name="standardTitle" class="z-input z-w200" value="'+(text ? text : '')+'" placeholder="不能超过32字符"></td>';
|
||||
content += ' </tr>';
|
||||
|
||||
content += '</table>';
|
||||
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
|
||||
content += ' <button class="z-button z-large z-w150 z-blue" onclick="doUpdate(this.form)">保存</button>';
|
||||
content += ' <button class="z-button z-large z-w70 z-mg-l10" onclick="Z.Dialog.close(location.hash);">取消</button>';
|
||||
content += '</div>';
|
||||
content += '</form>';
|
||||
var dialog = Z.dialog({id:'modifyreason', title:'<span id="modifyreasonTile"></span>', text:'<div id="modifyreasonContent"></div>',width:460,height:height, shadow:true});
|
||||
Z("#modifyreasonContent").htmlc(content);
|
||||
Z("#modifyreasonTile").htmlc("添加原因预录");
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doUpdate(form)
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("update");
|
||||
ajax.setParamForm(form);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"更新成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
|
||||
parent.location.reload();
|
||||
});
|
||||
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function doDelete(reasonId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.DesignStandardAction");
|
||||
ajax.setMethodName("beforeDelete");
|
||||
ajax.addParam("reasonId",reasonId);
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"更新成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading("removeReason", '<i class="z-font z-delete"></i>正在移除',{disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doReasonDelete(reasonId){
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.CheckBackReasonAction");
|
||||
ajax.setMethodName("delete");
|
||||
ajax.addParam("reasonId",reasonId);
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"移除成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
});
|
||||
ajax.setLoading("removeReason", '<i class="z-font z-delete"></i>正在移除',{disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
|
||||
function showEditor(designId)
|
||||
{
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "行为规范";
|
||||
dialog.url = "/designStandardDetails.htm?reasonId=" + designId;
|
||||
dialog.width = 1100;
|
||||
dialog.height = 700;
|
||||
dialog.execute();
|
||||
}
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/businessParam.htm")><li onclick="Z.L.href('/businessParam.htm');">公共参数</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">行业管理</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designOrderRefundReason.htm")><li onclick="Z.L.href('/designOrderRefundReason.htm');">退款原因类型配置</li></#if>
|
||||
<li class="z-active">行为规范</li>
|
||||
</ul>
|
||||
<div class="z-pd6 z-text-right">
|
||||
<button type="button" class="z-button z-cyan" onclick="toAdd(1)"><i class="z-font z-add"></i>添加规范分类</button>
|
||||
<button type="button" class="z-button z-cyan" onclick="toAdd(0)"><i class="z-font z-add" ></i>新增规范</button>
|
||||
<div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table">
|
||||
<tr>
|
||||
<td width="400" valign="top">
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="80">序号</td>
|
||||
<td width="*">类型名称</td>
|
||||
<td width="220">操作</td>
|
||||
</tr>
|
||||
<#for item : catList>
|
||||
<tr ${zhiqim_manager_tr_onmouse()} <#if item.getStandardId() == reasonCatId> style="background-color:#eaeaff;"</#if>>
|
||||
<td>${item_index+1}</td>
|
||||
<td><a href="designStandardList.htm?reasonCatId=${item.getStandardId()}">${item.getStandardTitle()}</a></td>
|
||||
<td>
|
||||
<button type="button" class="z-button z-blue" onclick="doModifys('${item.getStandardId()}','${item.getStandardTitle()}')"><i class="z-font z-modify"></i>修改类型项</button>
|
||||
<button class="z-button z-red removeReason" onclick="doDelete('${item.getStandardId()}')"><i class="z-font z-delete"></i>移除类型</button> </td>
|
||||
</tr>
|
||||
</#for>
|
||||
<#if catList.size() == 0>
|
||||
<tr bgcolor="">
|
||||
<td colspan="2">暂时没有数据信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
</table>
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td width="*" id="result" valign="top">
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="10%">序号</td>
|
||||
<td width="*">标题</td>
|
||||
<td width="220">操作</td>
|
||||
<td width="100">规范详情</td>
|
||||
</tr>
|
||||
<#for item : reasonList>
|
||||
<tr ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>${item_index+1}</td>
|
||||
<td id="item_${item.getStandardId()}">${item.getStandardTitle()}</td>
|
||||
<td>
|
||||
<button type="button" class="z-button z-blue" onclick="doModify('${item.getStandardId()}','${item.getStandardTitle()}')"><i class="z-font z-modify"></i>修改标题项</button>
|
||||
<button class="z-button z-red removeReason" onclick="doDelete('${item.getStandardId()}')"><i class="z-font z-delete"></i>移除标题</button> </td>
|
||||
|
||||
<td align="center">
|
||||
<span class="z-button z-blue" onclick="showEditor('${item.getStandardId()}')">添加规范</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
<#if Validates.isEmpty(reasonList) || reasonList.size() == 0>
|
||||
<tr bgcolor="">
|
||||
<td colspan="3">暂时没有数据信息</td>
|
||||
</tr>
|
||||
</#if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,196 @@
|
||||
<#def designatedPath="/designTypeList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("designTypeList.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("designTypeList.htm", "设计类型", "增加设计类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
function doAddSizeItem()
|
||||
{
|
||||
var table = document.getElementById("size_table");
|
||||
if (!table)
|
||||
return;
|
||||
var tableHtml="";
|
||||
var rows = table.rows;
|
||||
for (var i = 0; i < rows.length; i++)
|
||||
{
|
||||
Z(rows[i]).find(".z-dropdown").remove();
|
||||
var select = Z(rows[i]).find("select")[0];
|
||||
|
||||
if (select)
|
||||
{
|
||||
var ind = select.selectedIndex;
|
||||
for (var j = 0; j < select.options.length; j++)
|
||||
select.options[j].removeAttribute("selected");
|
||||
select.options[ind].setAttribute("selected", "selected");
|
||||
select.removeAttribute("style");
|
||||
}
|
||||
tableHtml += rows[i].outerHTML;
|
||||
}
|
||||
|
||||
var sizeId = new Date().getTime();
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' <input id="width_'+sizeId+'" name="width_'+sizeId+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="设计宽度"> x';
|
||||
tableHtml += ' <input id="height_'+sizeId+'" name="height_'+sizeId+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="设计高度"> x';
|
||||
tableHtml += ' <input id="side_'+sizeId+'" name="side_'+sizeId+'" value="0.0" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="侧面长度"> mm';
|
||||
tableHtml += ' <input id="bleed_'+sizeId+'" name="bleed_'+sizeId+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="出血">';
|
||||
tableHtml += ' <select id="sizeStatus_'+sizeId+'" name="sizeStatus_'+sizeId+'" class="z-select" data-role="z-select" data-class="z-blue">';
|
||||
tableHtml += ' <option value="0">正常</option>';
|
||||
tableHtml += ' <option value="1">停用</option>';
|
||||
tableHtml += ' </select>';
|
||||
tableHtml += ' <input type="hidden" name="sizeItem_new" value="'+sizeId+'">';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="Z(this).parent().parent().remove()"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z(table).htmlc(tableHtml);
|
||||
}
|
||||
|
||||
function doAddDesignFileType()
|
||||
{
|
||||
var table = document.getElementById("designFileType_table");
|
||||
if (!table)
|
||||
return;
|
||||
var tableHtml="";
|
||||
var rows = table.rows;
|
||||
for (var i = 0; i < rows.length; i++)
|
||||
{
|
||||
Z(rows[i]).find(".z-dropdown").remove();
|
||||
var select = Z(rows[i]).find("select")[0];
|
||||
|
||||
if (select)
|
||||
{
|
||||
var ind = select.selectedIndex;
|
||||
for (var j = 0; j < select.options.length; j++)
|
||||
select.options[j].removeAttribute("selected");
|
||||
select.options[ind].setAttribute("selected", "selected");
|
||||
select.removeAttribute("style");
|
||||
}
|
||||
tableHtml += rows[i].outerHTML;
|
||||
}
|
||||
|
||||
var sizeId = new Date().getTime();
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' <input id="designFile_'+sizeId+'" name="designFile_'+sizeId+'" class="z-input z-w90" maxlength="8" placeholder="设计文件类型">';
|
||||
tableHtml += ' <input type="hidden" name="designFile_new" value="'+sizeId+'">';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="Z(this).parent().parent().remove()"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z(table).htmlc(tableHtml);
|
||||
}
|
||||
|
||||
function doAddPrintingFileType()
|
||||
{
|
||||
var table = document.getElementById("printingFileType_table");
|
||||
if (!table)
|
||||
return;
|
||||
var tableHtml="";
|
||||
var rows = table.rows;
|
||||
for (var i = 0; i < rows.length; i++)
|
||||
{
|
||||
Z(rows[i]).find(".z-dropdown").remove();
|
||||
var select = Z(rows[i]).find("select")[0];
|
||||
|
||||
if (select)
|
||||
{
|
||||
var ind = select.selectedIndex;
|
||||
for (var j = 0; j < select.options.length; j++)
|
||||
select.options[j].removeAttribute("selected");
|
||||
select.options[ind].setAttribute("selected", "selected");
|
||||
select.removeAttribute("style");
|
||||
}
|
||||
tableHtml += rows[i].outerHTML;
|
||||
}
|
||||
|
||||
var sizeId = new Date().getTime();
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' <input id="printingFile_'+sizeId+'" name="printingFile_'+sizeId+'" class="z-input z-w90" maxlength="8" placeholder="印刷文件类型">';
|
||||
tableHtml += ' <input type="hidden" name="printingFile_new" value="'+sizeId+'">';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="Z(this).parent().parent().remove()"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z(table).htmlc(tableHtml);
|
||||
}
|
||||
|
||||
function doUpdate(form)
|
||||
{
|
||||
return validateForm(form);
|
||||
}
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="designTypeInsert.htm" method="post" onSubmit="return doUpdate(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加产品类型</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">类型名称:<span class="z-color-999">(100位不定长字符)</span></td>
|
||||
<td width="*"><input name="typeName" class="z-input z-w300 ${zmr_color_class}" maxlength="100"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="true">正常</option>
|
||||
<option value="false">停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>序号:<span class="z-color-999">(填数字,越小越靠前)</span></td>
|
||||
<td><input name="typeSeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Integer; paste:true;" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>计算模位尺寸/单位mm:<span class="z-color-999">(支持两位小数)(不含出血)</span></td>
|
||||
<td>
|
||||
<input id="sizeMWidth" name="sizeMWidth" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模位尺寸宽"> x
|
||||
<input id="sizeMHeight" name="sizeMHeight" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模位尺寸高"> mm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>产品出血mm:<span class="z-color-999">(单边出血)(支持两位小数)</span></td>
|
||||
<td>
|
||||
<input id="bleeding" name="bleeding" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="产品出血"> mm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计文件支持上传类型:<span class="z-color-999">(例如:png,jpg等)</span></span></td>
|
||||
<td>
|
||||
<table id="designFileType_table" class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-h50-tr z-pd10 z-bg-white">
|
||||
</table>
|
||||
<div class="z-pd10">
|
||||
<button type="button" class="z-button z-blue z-float-right" onclick="doAddDesignFileType()"><i class="z-font z-add"></i>添加</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>印刷文件支持上传类型:<span class="z-color-999">(例如:pdf,png等)</span></td>
|
||||
<td>
|
||||
<table id="printingFileType_table" class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-h50-tr z-pd10 z-bg-white">
|
||||
</table>
|
||||
<div class="z-pd10">
|
||||
<button type="button" class="z-button z-blue z-float-right" onclick="doAddPrintingFileType()"><i class="z-font z-add"></i>添加</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>分辨率:<span class="z-color-999">(单位:DPI)(支持两位小数)</span></td>
|
||||
<td>
|
||||
<input id="dpiWidth" name="dpiWidth" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="分辨率">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,96 @@
|
||||
<#def designatedPath="/designTypeDetails.htm"/>
|
||||
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
|
||||
<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var quill = new Quill('#editor-container', {
|
||||
theme: 'snow'
|
||||
});
|
||||
var contentElement = document.getElementById("content");
|
||||
var contentElement1 = document.getElementById("editor-container");
|
||||
var editButton = document.getElementById("edit-button");
|
||||
var content1 = '${content}';
|
||||
if (!content1) {
|
||||
// content 为空
|
||||
}else{
|
||||
|
||||
document.getElementById('editor-container').innerHTML = content1;
|
||||
}
|
||||
|
||||
|
||||
// 当点击编辑按钮时,将内容设置为可编辑状态
|
||||
editButton.addEventListener("click", function() {
|
||||
console.log(content1);
|
||||
|
||||
contentElement1.contentEditable = true;
|
||||
contentElement1.focus();
|
||||
});
|
||||
|
||||
|
||||
|
||||
var saveButton = document.getElementById("save-button");
|
||||
saveButton.addEventListener("click", async function() {
|
||||
var containerasd = document.getElementById("editor-container");
|
||||
var imgElements = containerasd.getElementsByTagName("img");
|
||||
for (var i = 0; i < imgElements.length; i++) {
|
||||
await new Promise((resolve, reject) => {
|
||||
(function(index) {
|
||||
var src = imgElements[index].src;
|
||||
console.log(index);
|
||||
// 在这里对src进行重新赋值
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OrderPresenter");
|
||||
ajax.setMethodName("designtypeImge");
|
||||
ajax.addParam("designId", ${designId});
|
||||
ajax.addParam("content", encodeURIComponent(src));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(responseText) {
|
||||
imgElements[index].src = responseText;
|
||||
console.log(index);
|
||||
resolve();
|
||||
});
|
||||
ajax.execute();
|
||||
console.log(index);
|
||||
})(i);
|
||||
});
|
||||
}
|
||||
// 在这里执行保存操作,比如将内容发送到服务器进行保存
|
||||
nextMethod();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function nextMethod() {
|
||||
|
||||
var html = document.getElementById("editor-container").innerHTML;
|
||||
console.log(html);
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("OrderPresenter");
|
||||
ajax.setMethodName("designtype");
|
||||
ajax.addParam("designId", ${designId});
|
||||
ajax.addParam("content", encodeURIComponent(html));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("doDesignPriceCalculate", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("设计类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
|
||||
<div id="editor-container">
|
||||
</div>
|
||||
|
||||
<button id="edit-button">编辑内容</button>
|
||||
<button id="save-button">保存</button>
|
||||
|
||||
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,101 @@
|
||||
<#def designatedPath="/designTypeList.htm"/>
|
||||
|
||||
<script>
|
||||
function showEditor(designId)
|
||||
{
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "定稿规范详情";
|
||||
dialog.url = "/designTypeDetails.htm?designId=" + designId;
|
||||
dialog.width = 800;
|
||||
dialog.height = 500;
|
||||
dialog.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
${zhiqim_manager_breadcrumb("设计类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">产品类型</li>
|
||||
<#if ZmrPathRule.check(request, "/businessParam.htm")><li onclick="Z.L.href('/businessParam.htm');">公共参数</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/industryList.htm")><li onclick="Z.L.href('/industryList.htm');">行业管理</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">审稿退回原因</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designOrderRefundReason.htm")><li onclick="Z.L.href('/designOrderRefundReason.htm');">退款原因类型配置</li></#if>
|
||||
<li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<#if ZmrPathRule.check(request, "/designTypeAdd.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.href('designTypeAdd.htm?page=${page}');"><i class="z-font z-add"></i>增加产品类型</button></#if>
|
||||
<#if ZmrPathRule.check(request, "/designTypeModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('designTypeModify.htm?page=${page}', 'typeId');"><i class="z-font z-modify"></i>修改产品类型</button></#if>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
<form>
|
||||
<table class="z-table z-pd10">
|
||||
<tr>
|
||||
<td width="250">类型ID:<input type="text" name="typeId" class="z-input z-w150 ${zmr_color_class}" value="${typeId}" ></td>
|
||||
<td width="300">产品名称:<input type="text" name="typeName" class="z-input z-w200 ${zmr_color_class}" value="${typeName}" placeholder="名称模糊匹配"></td>
|
||||
<td width="225">状态:<select name="isEnabled" class="z-select z-w150" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">全部</option>
|
||||
<option value="0" <#if isEnabled==0>selected</#if>>正常</option>
|
||||
<option value="1" <#if isEnabled==1>selected</#if>>停用</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="*">
|
||||
<button type="submit" class="z-button z-blue"><i class="z-font z-query"></i>查询</button>
|
||||
<button type="button" class="z-button" onclick="Z.Forms.clearForm(this.form);">清空</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="40">选项</td>
|
||||
<td width="40">排序</td>
|
||||
<td width="155">类型ID</td>
|
||||
<td width="100">产品名称</td>
|
||||
<td width="80">单边出血(mm)</td>
|
||||
<td width="100">模位尺寸(含出血)</td>
|
||||
<td width="150">设计文件类型</td>
|
||||
<td width="150">印刷文件类型</td>
|
||||
<td width="100">分辨率(DPI)</td>
|
||||
<td width="100">状态</td>
|
||||
<td width="100">规范设置</td>
|
||||
</tr>
|
||||
<#if Lists.size(pageResult.list()) == 0>
|
||||
${zhiqim_manager_no_record(9, "无设计产品信息")}
|
||||
</#if>
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="typeId" name="typeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getTypeId()}"></td>
|
||||
<td>${item.getTypeSeq()}</td>
|
||||
<td>${item.getTypeId()}</td>
|
||||
<td>${item.getTypeName()}</td>
|
||||
<td>${item.getBleeding()}</td>
|
||||
<td>
|
||||
<#if item.getSizeMWidth() gt 0 || item.getSizeMHeight() gt 0>${item.getSizeMWidth()}x${item.getSizeMHeight()}</#if>
|
||||
</td>
|
||||
<td>${item.getDesignFileType()}</td>
|
||||
<td>${item.getPrintingFileType()}</td>
|
||||
<td>${item.getDpi()}</td>
|
||||
<td><#if item.isEnabled()>
|
||||
<div class='z-button z-w80 z-h30 z-bd-rd8 z-green z-readonly'>正常</div>
|
||||
<#else>
|
||||
<div class='z-button z-w80 z-h30 z-bd-rd8 z-red z-readonly'>停用</div>
|
||||
</#if>
|
||||
</td>
|
||||
<td align="center">
|
||||
<span class="z-button z-blue" onclick="showEditor('${item.getTypeId()}')">添加规范</span>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/designTypeList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,214 @@
|
||||
<#def designatedPath="/typeIdList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("designTypeList.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("designTypeList.htm", "设计类型", "修改设计类型")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
function doAddSizeItem()
|
||||
{
|
||||
var table = document.getElementById("size_table");
|
||||
if (!table)
|
||||
return;
|
||||
var tableHtml="";
|
||||
var rows = table.rows;
|
||||
for (var i = 0; i < rows.length; i++)
|
||||
{
|
||||
Z(rows[i]).find(".z-dropdown").remove();
|
||||
var select = Z(rows[i]).find("select")[0];
|
||||
|
||||
if (select)
|
||||
{
|
||||
var ind = select.selectedIndex;
|
||||
for (var j = 0; j < select.options.length; j++)
|
||||
select.options[j].removeAttribute("selected");
|
||||
select.options[ind].setAttribute("selected", "selected");
|
||||
select.removeAttribute("style");
|
||||
}
|
||||
tableHtml += rows[i].outerHTML;
|
||||
}
|
||||
|
||||
var sizeId = new Date().getTime();
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' <input id="width_'+sizeId+'" name="width_'+sizeId+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="设计宽度"> x';
|
||||
// yixin 2019-06-06 添加侧面长度支持
|
||||
tableHtml += ' <input id="height_'+sizeId+'" name="height_'+sizeId+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="设计高度"> x';
|
||||
tableHtml += ' <input id="side_'+sizeId+'" name="side_'+sizeId+'" value="0.0" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="侧面长度"> mm';
|
||||
tableHtml += ' <input id="bleed_'+sizeId+'" name="bleed_'+sizeId+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="出血">';
|
||||
tableHtml += ' <select id="sizeStatus_'+sizeId+'" name="sizeStatus_'+sizeId+'" class="z-select" data-role="z-select" data-class="z-blue">';
|
||||
tableHtml += ' <option value="0">正常</option>';
|
||||
tableHtml += ' <option value="1">停用</option>';
|
||||
tableHtml += ' </select>';
|
||||
tableHtml += ' <input type="hidden" name="sizeItem_new" value="'+sizeId+'">';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="Z(this).parent().parent().remove()"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z(table).htmlc(tableHtml);
|
||||
}
|
||||
|
||||
function doAddDesignFileType()
|
||||
{
|
||||
var table = document.getElementById("designFileType_table");
|
||||
if (!table)
|
||||
return;
|
||||
var tableHtml="";
|
||||
var rows = table.rows;
|
||||
for (var i = 0; i < rows.length; i++)
|
||||
{
|
||||
Z(rows[i]).find(".z-dropdown").remove();
|
||||
var select = Z(rows[i]).find("select")[0];
|
||||
|
||||
if (select)
|
||||
{
|
||||
var ind = select.selectedIndex;
|
||||
for (var j = 0; j < select.options.length; j++)
|
||||
select.options[j].removeAttribute("selected");
|
||||
select.options[ind].setAttribute("selected", "selected");
|
||||
select.removeAttribute("style");
|
||||
}
|
||||
tableHtml += rows[i].outerHTML;
|
||||
}
|
||||
|
||||
var sizeId = new Date().getTime();
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' <input id="designFile_'+sizeId+'" name="designFile_'+sizeId+'" class="z-input z-w90" maxlength="8" placeholder="设计文件类型">';
|
||||
tableHtml += ' <input type="hidden" name="designFile_new" value="'+sizeId+'">';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="Z(this).parent().parent().remove()"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z(table).htmlc(tableHtml);
|
||||
}
|
||||
|
||||
function doAddPrintingFileType()
|
||||
{
|
||||
var table = document.getElementById("printingFileType_table");
|
||||
if (!table)
|
||||
return;
|
||||
var tableHtml="";
|
||||
var rows = table.rows;
|
||||
for (var i = 0; i < rows.length; i++)
|
||||
{
|
||||
Z(rows[i]).find(".z-dropdown").remove();
|
||||
var select = Z(rows[i]).find("select")[0];
|
||||
|
||||
if (select)
|
||||
{
|
||||
var ind = select.selectedIndex;
|
||||
for (var j = 0; j < select.options.length; j++)
|
||||
select.options[j].removeAttribute("selected");
|
||||
select.options[ind].setAttribute("selected", "selected");
|
||||
select.removeAttribute("style");
|
||||
}
|
||||
tableHtml += rows[i].outerHTML;
|
||||
}
|
||||
|
||||
var sizeId = new Date().getTime();
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' <input id="printingFile_'+sizeId+'" name="printingFile_'+sizeId+'" class="z-input z-w90" maxlength="8" placeholder="印刷文件类型">';
|
||||
tableHtml += ' <input type="hidden" name="printingFile_new" value="'+sizeId+'">';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="Z(this).parent().parent().remove()"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z(table).htmlc(tableHtml);
|
||||
}
|
||||
|
||||
function doUpdate(form)
|
||||
{
|
||||
return validateForm(form);
|
||||
}
|
||||
</script>
|
||||
<form name="theForm" action="designTypeUpdate.htm" method="post" onSubmit="return doUpdate(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加产品类型</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">类型ID:<span class="z-color-999">(100位不定长字符)</span></td>
|
||||
<td width="*">${type.getTypeId()}<input name="typeId" type="hidden" value="${type.getTypeId()}" class="z-input z-w300 zi-bd-none ${zmr_color_class}" readonly="readonly" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">类型名称:<span class="z-color-999">(100位不定长字符)</span></td>
|
||||
<td width="*"><input name="typeName" value="${type.getTypeName()}" class="z-input z-w300 ${zmr_color_class}" maxlength="100"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="true">正常</option>
|
||||
<option value="false" <#if !type.isEnabled()>selected</#if>>停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>序号:<span class="z-color-999">(填数字,越小越靠前)</span></td>
|
||||
<td><input name="typeSeq" value="${type.getTypeSeq()}" class="z-input z-w300 ${zmr_color_class}" data-options="type:Integer; paste:true;" value="${typeSeq}" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>计算模位尺寸/单位mm:<span class="z-color-999">(支持两位小数)(不含出血)</span></td>
|
||||
<td>
|
||||
<input id="sizeMWidth" name="sizeMWidth" value="${type.getSizeMWidth()}" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模位尺寸宽"> x
|
||||
<input id="sizeMHeight" name="sizeMHeight" value="${type.getSizeMHeight()}" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模位尺寸高"> mm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>产品出血mm:<span class="z-color-999">(单边出血)(支持两位小数)</span></td>
|
||||
<td>
|
||||
<input id="bleeding" name="bleeding" value="${type.getBleeding()}" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="产品出血"> mm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计文件支持上传类型:<span class="z-color-999">(例如:png,jpg等)</span></span></td>
|
||||
<td>
|
||||
<table id="designFileType_table" class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-h50-tr z-pd10 z-bg-white">
|
||||
<#for designFile : designFileType>
|
||||
<tr class="zi-bd-b-none">
|
||||
<td>
|
||||
<input id="designFile_${designFile}" name="designFile_${designFile}" value="${designFile}" class="z-input z-w90" maxlength="8" placeholder="设计文件类型">
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
<div class="z-pd10">
|
||||
<button type="button" class="z-button z-blue z-float-right" onclick="doAddDesignFileType()"><i class="z-font z-add"></i>添加</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>印刷文件支持上传类型:<span class="z-color-999">(例如:pdf,png等)</span></td>
|
||||
<td>
|
||||
<table id="printingFileType_table" class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-h50-tr z-pd10 z-bg-white">
|
||||
<#for printingFile : printingFileType>
|
||||
<tr class="zi-bd-b-none">
|
||||
<td>
|
||||
<input id="printingFile_${printingFile}" name="printingFile_${printingFile}" value="${printingFile}" class="z-input z-w90" maxlength="8" placeholder="印刷文件类型">
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
<div class="z-pd10">
|
||||
<button type="button" class="z-button z-blue z-float-right" onclick="doAddPrintingFileType()"><i class="z-font z-add"></i>添加</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>分辨率:<span class="z-color-999">(单位:DPI)(支持两位小数)</span></td>
|
||||
<td>
|
||||
<input id="dpiWidth" name="dpiWidth" class="z-input z-w90" value="${type.getDpi()}" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="分辨率">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,56 @@
|
||||
${Styles.htmlOverflowHidden()}
|
||||
<script>
|
||||
Z.onload(function()
|
||||
{
|
||||
Z(document.forms[0].operatorKey).focusEnd();
|
||||
});
|
||||
|
||||
function doSelector()
|
||||
{
|
||||
|
||||
var operatorCode = "";
|
||||
<#if multiSelect>
|
||||
operatorCode = Z.FM.getCheckeds("operatorCode");
|
||||
<#else>
|
||||
operatorCode = Z.FM.getChecked("operatorCode");
|
||||
</#if>
|
||||
Z.FM.getChecked("operatorCode");
|
||||
parent.doSelectorCallback(operatorCode);
|
||||
parent.Z.Dialog.close(location.hash);
|
||||
}
|
||||
</script>
|
||||
|
||||
<#-- 查询 -->
|
||||
<div class="z-fixed z-t0 z-l0 z-w100p z-pd10 z-bg-gray">
|
||||
<form method="post">
|
||||
<input name="operatorKey" class="z-float-left z-input z-w300 zi-h35 zi-bd-r-none" placeholder="设计师编码或名称" value="${operatorKey}" maxlength="20">
|
||||
<button type="submit" class="z-float-left z-button z-w70 z-h35 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<div class="z-w100p z-pd10 z-overflow-auto" style="margin-top:55px;height:306px;">
|
||||
<table class="z-table z-bordered z-pd5 z-text-center">
|
||||
<tr class="z-h40 z-bg-gray">
|
||||
<td width="60"><#if multiSelect><input type="checkbox" onclick="Z.E.stop();Z.FM.doSelectCheckBox('operatorCode', this.checked ? 1 : 2);" data-role="z-checkbox" data-class="z-blue"> <span class="z-pointer" onclick="Z(this).parent().find('zcover>i.z-checkbox').click()">全选</span><#else>选择</#if></td>
|
||||
<td width="90">设计师头像</td>
|
||||
<td width="110">设计师编码</td>
|
||||
<td width="*">设计师姓名</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(list, 4, "没有可选择的操作员")}
|
||||
<#for item : list>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} <#if multiSelect>${zhiqim_manager_tr_click_checkbox()}<#else>${zhiqim_manager_tr_click_radio()}</#if> >
|
||||
<td><input name="operatorCode" type="<#if multiSelect>checkbox<#else>radio</#if>" data-role="<#if multiSelect>z-checkbox<#else>z-radio</#if>" data-class="z-blue" value="${item.getOperatorCode()}"></td>
|
||||
<td><img class="z-w50 z-h50 z-bd-rd50p" src="${sessionUser.getAvatarUrl(item.getOperatorAvatar(), 50)}"></td>
|
||||
<td>${item.getOperatorCode()}</td>
|
||||
<td>${item.getOperatorName()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</tale>
|
||||
</div>
|
||||
|
||||
<#-- 操作 -->
|
||||
<div class="z-fixed z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">
|
||||
<button class="z-button z-large z-w150 ${zmr_color_class}" onclick="doSelector();">确定</button>
|
||||
<button class="z-button z-large z-w70 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
|
||||
</div>
|
||||
@@ -0,0 +1,124 @@
|
||||
<script>
|
||||
var excludesMembers = '';
|
||||
function doQueryMembers(groupId, startDate)
|
||||
{//查询设计组成员
|
||||
excludesMembers = "";
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignGroupPresenter");
|
||||
ajax.setMethodName("doQueryMembers");
|
||||
ajax.addParam("groupId", groupId);
|
||||
ajax.addParam("startDate", startDate);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setCallback("result");
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
excludesMembers = obj.excludesMembers;
|
||||
Z("#result").htmlc(obj.membersHtml);
|
||||
});
|
||||
ajax.setLoading("result");
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
Z.onload(function()
|
||||
{
|
||||
<#if !Validates.isEmpty(groupList)>
|
||||
doQueryMembers(${groupList.get(0).getGroupId()});
|
||||
</#if>
|
||||
});
|
||||
|
||||
function doSelectorsDialog()
|
||||
{//显示设计组成员对话框
|
||||
Z("#selectedUsers").val("");
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "成员增加";
|
||||
dialog.url = "membersSelector.htm?orgId="+Z("#selectedOrgId").val()+"&operatorType=2&groupId="+Z("#selectedGroupId").val();
|
||||
dialog.width = 392;
|
||||
dialog.height = 423;
|
||||
dialog.fixed = true;
|
||||
dialog.execute();
|
||||
}
|
||||
|
||||
function doSelectorCallback(members)
|
||||
{//增加设计组成员
|
||||
var groupId = Z("#selectedGroupId").val();
|
||||
if (!groupId)
|
||||
{
|
||||
Z.failure("无效设计组编号");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!members)
|
||||
return;
|
||||
|
||||
Z("#selectedUsers").val(members);
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("DesignGroupPresenter");
|
||||
ajax.setMethodName("doAddGroupMembers");
|
||||
ajax.addParam("groupId", groupId);
|
||||
ajax.addParam("members", members);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
doQueryMembers(groupId, Z("#year").val()+"-" + Z("#month").val()+"-01")
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doDeleteMember(groupId, userCode, isValid)
|
||||
{//删除人员
|
||||
var alertText = "确认将该人员从下个月剔除吗?";
|
||||
if (!isValid)
|
||||
{
|
||||
alertText = "确认将该人员剔除吗?";
|
||||
}
|
||||
|
||||
Z.confirm(alertText, function(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setContextPath("${context.getContextPath()}");
|
||||
ajax.setClassName("DesignGroupPresenter");
|
||||
ajax.setMethodName("doDeleteGroupMember");
|
||||
ajax.addParam("groupId", groupId);
|
||||
ajax.addParam("userCode", userCode);
|
||||
ajax.setSuccess(function(){
|
||||
doQueryMembers(groupId, Z("#year").val()+"-" + Z("#month").val()+"-01")
|
||||
});
|
||||
ajax.setLoading(document);
|
||||
ajax.execute();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
${zhiqim_manager_breadcrumb("设计组成员")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/designGroup.htm")><li onclick="Z.L.href('designGroup.htm');">设计组管理</li></#if>
|
||||
<li class="z-active">设计组成员</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<#if ZmrPathRule.check(request, "/groupMemberAdd.htm")><button class="z-button ${zmr_color_class}" onclick="doSelectorsDialog('${group.getGroupId()}');"><i class="z-font z-add"></i>增加成员</button></#if>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table">
|
||||
<tr>
|
||||
<td width="200" valign="top">
|
||||
<table class="z-table z-bordered z-bg-white z-lh30 z-pd5">
|
||||
<tr class="z-bold" bgcolor="${zmr_thead_bgcolor}"><td>设计组</td></tr>
|
||||
<#for item : groupList>
|
||||
<tr onclick=";doQueryMembers(${item.getGroupId()}, false)" ${zhiqim_manager_tr_onmouse()}><td>${item.getGroupName()}</td></tr>
|
||||
</#for>
|
||||
</table>
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td id="result" width="*" valign="top"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,36 @@
|
||||
<#def designatedPath="/industryList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("industryList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("industryList.htm", "行业管理", "增加行业")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="industryInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加行业</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">行业名称:<span class="z-color-999">(20位不定长字符)</span></td>
|
||||
<td width="*"><input name="industryName" class="z-input z-w300 ${zmr_color_class}" maxlength="20"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>行业关键字:<span class="z-color-999">(逗号隔开)</span></td>
|
||||
<td><textarea name="industryKeywords" class="z-textarea z-w300 z-h120 ${zmr_color_class}" maxlength="5000"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="true">正常</option>
|
||||
<option value="false">停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>序号:<span class="z-color-999">(填数字)</span></td>
|
||||
<td><input name="industrySeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Decimal;paste:true;" maxlength="6"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,60 @@
|
||||
<#def designatedPath="/industryList.htm"/>
|
||||
${zhiqim_manager_breadcrumb("行业管理")}
|
||||
${zhiqim_manager_content()}
|
||||
${sweet_alert_reuse_method()}
|
||||
<script>
|
||||
function refreshIndustry(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("DesignIndustryCache");
|
||||
ajax.setMethodName("doRefreshIndustry");
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
swal({title:"操作成功",type:"success",timer: 1000,width:300,showConfirmButton:false}).then(function(){
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<#if ZmrPathRule.check(request, "/designTypeList.htm")><li onclick="Z.L.href('/designTypeList.htm');">产品类型</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/businessParam.htm")><li onclick="Z.L.href('/businessParam.htm');">公共参数</li></#if>
|
||||
<li class="z-active">行业管理</li>
|
||||
<#if ZmrPathRule.check(request, "/checkBackReasonList.htm")><li onclick="Z.L.href('/checkBackReasonList.htm');">审稿退回原因</li></#if>
|
||||
<#if ZmrPathRule.check(request, "/designOrderRefundReason.htm")><li onclick="Z.L.href('/designOrderRefundReason.htm');">退款原因类型配置</li></#if>
|
||||
<li onclick="Z.L.href('/designStandardList.htm');">行为规范</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="refreshIndustry();"><i class="z-font z-add"></i>刷新行业</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="80">选择</td>
|
||||
<td width="120">行业Id</td>
|
||||
<td width="10%">行业名称</td>
|
||||
<td width="*">关键字</td>
|
||||
<td width="80">关键字</td>
|
||||
<td width="8%">序号</td>
|
||||
</tr>
|
||||
<#if Lists.size(industryList) == 0>
|
||||
${zhiqim_manager_no_record(6, "暂时没有行业信息")}
|
||||
</#if>
|
||||
<#for item : industryList>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="industryId" name="industryId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getIndustryId()}"></td>
|
||||
<td>${item.getIndustryId()}</td>
|
||||
<td>${item.getIndustryName()}</td>
|
||||
<td>${item.getIndustryKeywords()}</td>
|
||||
<td><#if item.isEnabled()>正常<#else><span class="z-text-red">停用</span></#if></td>
|
||||
<td>${item.getIndustrySeq()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,37 @@
|
||||
<#def designatedPath="/industryList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("/industryList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("/industryList.htm", "行业管理", "修改行业")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="industryUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="industryId" type="hidden" value="${industry.getIndustryId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改行业</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">行业名称:<span class="z-color-999">(20位不定长字符)</span></td>
|
||||
<td width="*"><input name="industryName" class="z-input z-w300 ${zmr_color_class}" value="${industry.getIndustryName()}" maxlength="20"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>行业关键字:<span class="z-color-999">(逗号隔开)</span></td>
|
||||
<td><textarea name="industryKeywords" class="z-textarea z-w300 z-h120 ${zmr_color_class}" maxlength="5000">${industry.getIndustryKeywords()}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="true">正常</option>
|
||||
<option value="false" <#if !industry.isEnabled()>selected</#if>>停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>序号:<span class="z-color-999">(填数字)</span></td>
|
||||
<td><input name="industrySeq" class="z-input z-w300 ${zmr_color_class}" data-options="type:Decimal;paste:true;" value="${industry.getIndustrySeq()}" maxlength="6"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,134 @@
|
||||
<#def designatedPath="/orderConvertList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("orderConvertList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("orderConvertList.htm", "订单折算参数", "增加订单折算参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="orderConvertInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加订单折算参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">产品类型:<span class="z-color-999">(请选择)</span></td>
|
||||
<td width="*">
|
||||
<input type="hidden" name="prdTypeName" id="prdTypeName" value="${DesignTypeDao.list().get(0).getTypeName()}">
|
||||
<select name="prdTypeId" class="z-float-left z-select z-w120" data-role="z-select-search" data-class="${zmr_color_class}" onchange="document.getElementById('prdTypeName').value=document.getElementsByName('prdTypeId')[0].options[document.getElementsByName('prdTypeId')[0].selectedIndex].innerHTML;">
|
||||
<#for item : DesignTypeDao.list()>
|
||||
<option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>折算类型:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="convertType" class="z-float-left z-select z-w120" data-role="z-select-search" data-class="${zmr_color_class}">
|
||||
<option value="0" onclick="controlConvertModulusBox('0');">不启用</option>
|
||||
<option value="1" onclick="controlConvertModulusBox('1');">金额</option>
|
||||
<option value="2" onclick="controlConvertModulusBox('2');">系数</option>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>折算系数:<span class="z-color-999">(请填写)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w400 ${zmr_color_class}" name="convertNum" placeholder="请输入数字" onkeyup="this.value=this.value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="convertModulusBox">
|
||||
<td>折算参数:</td>
|
||||
<td>
|
||||
<table id="size_table" class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-bd-b-none" id="modulus2">
|
||||
<td>
|
||||
折算模数:<input readonly="readonly" name="modulus" value="2" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模数">
|
||||
|
||||
|
||||
折算系数:<input name="modulusConvertNum" value="" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="系数" onkeyup="convertNumDefine(this);">
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="z-pd10">
|
||||
<button type="button" class="z-button z-blue z-float-right" onclick="doAddModulus()"><i class="z-font z-add"></i>添加</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
// 默认隐藏折算参数区域
|
||||
Z("#convertModulusBox").hide();
|
||||
})
|
||||
|
||||
// 控制折算参数区域的显示和隐藏
|
||||
function controlConvertModulusBox(convertType)
|
||||
{
|
||||
if (Z.V.isEmpty(convertType))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (2 == parseInt(convertType))
|
||||
{
|
||||
Z("#convertModulusBox").show();
|
||||
}
|
||||
else
|
||||
{
|
||||
Z("#convertModulusBox").hide();
|
||||
// modulusConvertNum
|
||||
}
|
||||
}
|
||||
|
||||
function doAddModulus()
|
||||
{
|
||||
var modulus = document.getElementsByName("modulus");
|
||||
var maxValue=1;
|
||||
for(var i = 0;i < modulus.length;i++){
|
||||
if(!modulus[i+1] || modulus[i].value != (modulus[i+1].value-1)){
|
||||
maxValue = i+3;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
var tableHtml="";
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none" id="modulus'+maxValue+'">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' 折算模数:<input readonly="readonly" name="modulus" value="'+maxValue+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模数">';
|
||||
tableHtml += '  ';
|
||||
tableHtml += '  ';
|
||||
tableHtml += ' 折算系数:<input name="modulusConvertNum" value="" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="系数" onkeyup="convertNumDefine(this);">';
|
||||
tableHtml += ' <span class="z-color-red"> *</span>';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="doDeleteModulus(this);"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z("#modulus"+(maxValue-1)).after(tableHtml);
|
||||
flushModulus();
|
||||
}
|
||||
|
||||
function convertNumDefine(obj){
|
||||
obj.value=obj.value.toString().match(/^\d+(?:\.\d{0,2})?/);
|
||||
}
|
||||
|
||||
function flushModulus(){
|
||||
/*var modulus = document.getElementsByName("modulus");
|
||||
for(var i = 0;i < modulus.length;i++){
|
||||
modulus[i].value=i+2;
|
||||
}*/
|
||||
}
|
||||
|
||||
function doDeleteModulus(obj){
|
||||
Z(obj).parent().parent().remove();
|
||||
flushModulus();
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,49 @@
|
||||
${zhiqim_manager_breadcrumb("订单折算参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">订单折算参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/productConvert.htm');">产品单价</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
<form name="theForm" action="#" method="post">
|
||||
<select name="prdTypeId" class="z-float-left z-select z-w120" data-role="z-select-search" data-class="${zmr_color_class}" onchange="Z.L.href('orderConvertList.htm?prdTypeId='+this.value)">
|
||||
<option value="">全部类型</option>
|
||||
<#var typeList = prdTypeList/>
|
||||
<#for item : DesignTypeDao.list()>
|
||||
<option value="${item.getTypeId()}" <#if prdTypeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('orderConvertAdd.htm');"><i class="z-font z-add"></i>增加订单折算参数</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('orderConvertModify.htm', 'convertId');"><i class="z-font z-modify"></i>修改订单折算参数</button>
|
||||
<button class="z-button z-red" onclick="Z.L.check('orderConvertDelete.htm', 'convertId');"><i class="z-font z-delete"></i>删除订单折算参数</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td>产品类型</td>
|
||||
<td>最后修改时间</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有订单折算参数")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="convertId" name="convertId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getConvertId()}"></td>
|
||||
<td>${item.getPrdTypeName()}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getModifyTime())}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "orderConvertList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,146 @@
|
||||
<#def designatedPath="/orderConvertList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("orderConvertList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("orderConvertList.htm", "订单折算参数", "修改订单折算参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="orderConvertUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改订单折算参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">产品类型:</td>
|
||||
<td width="*">
|
||||
${orderConvert.getPrdTypeName()}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>折算类型:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="convertType" class="z-float-left z-select z-w120" data-role="z-select-search" data-class="${zmr_color_class}">
|
||||
<option value="0" <#if 0 == orderConvert.getConvertType()>selected</#if> onclick="controlConvertModulusBox('0');">不启用</option>
|
||||
<option value="1" <#if 1 == orderConvert.getConvertType()>selected</#if> onclick="controlConvertModulusBox('1');">金额</option>
|
||||
<option value="2" <#if 2 == orderConvert.getConvertType()>selected</#if> onclick="controlConvertModulusBox('2');">系数</option>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>折算系数:<span class="z-color-999">(请填写)</span></td>
|
||||
<td>
|
||||
<input value="${orderConvert.getConvertNum()}" class="z-input z-w400 ${zmr_color_class}" name="convertNum" placeholder="请输入数字" onkeyup="this.value=this.value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
||||
<input name="prdTypeId" value="${orderConvert.getPrdTypeId()}" type="hidden" >
|
||||
<input name="convertId" value="${orderConvert.getConvertId()}" type="hidden" >
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="convertModulusBox">
|
||||
<td>折算参数:</td>
|
||||
<td>
|
||||
<table id="size_table" class="z-table z-bordered-line zi-bd-t-none zi-bd-b-none z-h50-tr z-pd10 z-bg-white">
|
||||
<#for modulu : convertModulus>
|
||||
<#var index=modulu_index/>
|
||||
<tr class="zi-bd-b-none" id="modulus${modulu}">
|
||||
<td>
|
||||
折算模数:<input readonly="readonly" name="modulus" value="${modulu}" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模数">
|
||||
|
||||
|
||||
折算系数:<input value="${convertModulusNum.get(index)}" name="modulusConvertNum" value="" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="系数" onkeyup="convertNumDefine(this);">
|
||||
<span class="z-color-red"> *</span>
|
||||
<#if index != 0>
|
||||
<button type="button" class="z-button z-red z-float-right" onclick="doDeleteModulus(this);"><i class="z-font z-delete"></i>删除</button>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
<div class="z-pd10">
|
||||
<button type="button" class="z-button z-blue z-float-right" onclick="doAddModulus()"><i class="z-font z-add"></i>添加</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
// 默认隐藏折算参数区域
|
||||
Z("#convertModulusBox").hide();
|
||||
|
||||
var convertType = eval(${orderConvert.getConvertType()});
|
||||
if (Z.V.isNotEmpty(convertType))
|
||||
{
|
||||
if (2 == parseInt(convertType))
|
||||
{
|
||||
// 如果折算类型为系数则显示折算参数区域
|
||||
Z("#convertModulusBox").show();
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
// 控制折算参数区域的显示和隐藏
|
||||
function controlConvertModulusBox(convertType)
|
||||
{
|
||||
if (Z.V.isEmpty(convertType))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (2 == parseInt(convertType))
|
||||
{
|
||||
Z("#convertModulusBox").show();
|
||||
}
|
||||
else
|
||||
{
|
||||
Z("#convertModulusBox").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function doAddModulus()
|
||||
{
|
||||
var modulus = document.getElementsByName("modulus");
|
||||
var maxValue=1;
|
||||
for(var i = 0;i < modulus.length;i++){
|
||||
if(!modulus[i+1] || modulus[i].value != (modulus[i+1].value-1)){
|
||||
maxValue = i+3;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
var tableHtml="";
|
||||
|
||||
//添加行
|
||||
tableHtml += '<tr class="zi-bd-b-none" id="modulus'+maxValue+'">';
|
||||
tableHtml += ' <td>';
|
||||
tableHtml += ' 折算模数:<input readonly="readonly" name="modulus" value="'+maxValue+'" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="模数">';
|
||||
tableHtml += '  ';
|
||||
tableHtml += '  ';
|
||||
tableHtml += ' 折算系数:<input name="modulusConvertNum" value="" class="z-input z-w90" maxlength="8" data-options="type:Amount2R; paste:true;" placeholder="系数" onkeyup="convertNumDefine(this);">';
|
||||
tableHtml += ' <span class="z-color-red"> *</span>';
|
||||
tableHtml += ' <button type="button" class="z-button z-red z-float-right" onclick="doDeleteModulus(this);"><i class="z-font z-delete"></i>删除</button>';
|
||||
tableHtml += ' </td>';
|
||||
tableHtml += '</tr>';
|
||||
|
||||
Z("#modulus"+(maxValue-1)).after(tableHtml);
|
||||
flushModulus();
|
||||
}
|
||||
|
||||
function convertNumDefine(obj){
|
||||
obj.value=obj.value.toString().match(/^\d+(?:\.\d{0,2})?/);
|
||||
}
|
||||
|
||||
function flushModulus(){
|
||||
/*var modulus = document.getElementsByName("modulus");
|
||||
for(var i = 0;i < modulus.length;i++){
|
||||
modulus[i].value=i+2;
|
||||
}*/
|
||||
}
|
||||
|
||||
function doDeleteModulus(obj){
|
||||
Z(obj).parent().parent().remove();
|
||||
flushModulus();
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,37 @@
|
||||
<#def designatedPath="/orderMerchantList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("orderMerchantList.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("orderMerchantList.htm", "商家管理", "增加商家")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
|
||||
</script>
|
||||
<form name="theForm" action="/orderMerchantInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加商家</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">商家名称:<span class="z-color-999">(20位不定长字符)</span></td>
|
||||
<td width="*"><input name="merchantName" class="z-input z-w300 ${zmr_color_class}" maxlength="20"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商家状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="true">正常</option>
|
||||
<option value="false">停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商家秘钥:</td>
|
||||
<td>
|
||||
<div class="z-float-left"><textarea name="merchantSecret" class="z-textarea z-w300 z-h120"></textarea></div>
|
||||
<div class="z-float-left z-mg-l10"><button type="button" onclick="this.form.merchantSecret.value = Z.Ids.uuid()" class="z-button z-cyan">随机生成</button></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,41 @@
|
||||
<#def designatedPath="/orderMerchantList.htm"/>
|
||||
${zhiqim_manager_breadcrumb("商家管理")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">商家列表</li>
|
||||
<#if ZmrPathRule.check(request, "/apiInvokeLog.htm")><li onclick="Z.L.href('apiInvokeLog.htm')">接口日志</li></#if>
|
||||
<li onclick="Z.L.href('teamManagement.htm')">团队管理</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<#if ZmrPathRule.check(request, "/orderMerchantAdd.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.href('orderMerchantAdd.htm');"><i class="z-font z-add"></i>增加商家</button></#if>
|
||||
<#if ZmrPathRule.check(request, "/orderMerchantModify.htm")><button class="z-button ${zmr_color_class}" onclick="Z.L.check('orderMerchantModify.htm', 'merchantId');"><i class="z-font z-modify"></i>修改商家</button></#if>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="20%">商家ID</td>
|
||||
<td width="*">商家名称</td>
|
||||
<td width="500">商家秘钥</td>
|
||||
<td width="120">状态</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 4, "暂时没有商家信息")}
|
||||
<#for item : merchantList>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="merchantId" name="merchantId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getMerchantId()}"></td>
|
||||
<td>${item.getMerchantId()}</td>
|
||||
<td>${item.getMerchantName()}</td>
|
||||
<td>${item.getMerchantSecret()}</td>
|
||||
<td><#if item.isEnabled()>正常<#else><span class="z-text-red">停用</span></#if></td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/orderMerchantList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,35 @@
|
||||
<#def designatedPath="/orderMerchantList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("orderMerchantList.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("orderMerchantList.htm", "商家管理", "修改商家")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="/orderMerchantUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="merchantId" type="hidden" value="${merchant.getMerchantId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改商家</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">商家名称:<span class="z-color-999">(20位不定长字符)</span></td>
|
||||
<td width="*"><input name="merchantName" class="z-input z-w300 ${zmr_color_class}" value="${merchant.getMerchantName()}" maxlength="20"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商家状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false">停用</option>
|
||||
<option value="true" <#if merchant.isEnabled()>selected</#if>>正常</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商家秘钥:</td>
|
||||
<td>
|
||||
<div class="z-float-left"><textarea name="merchantSecret" class="z-textarea z-w300 z-h120">${merchant.getMerchantSecret()}</textarea></div>
|
||||
<div class="z-float-left z-mg-l10"><button type="button" onclick="this.form.merchantSecret.value = Z.Ids.uuid()" class="z-button z-cyan">随机生成</button></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,86 @@
|
||||
${zhiqim_manager_breadcrumb("设计绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li onclick="Z.L.href('specialOrderTypeList.htm');">特殊订单绩效参数</li>
|
||||
<li onclick="Z.L.href('refundParameter.htm');">退款绩效参数</li>
|
||||
<li class="z-active">设计绩效参数</li>
|
||||
<li onclick="Z.L.href('qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/qcPerformanceParam.htm');">质检绩效参数</li>
|
||||
<li onclick="Z.L.href('/timelinessParameterList.htm');">时效绩效参数</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
<form name="theForm" action="performanceParameter.htm" method="post">
|
||||
<input id="validDate" type="hidden" name="validDate" value="${validDate}">
|
||||
<select class="z-select z-w100" id="year" data-role="z-select" data-class="${zmr_color_class}" onchange="Z('#validDate').val(this.value +'-' + Z('#month').val() +'-01');this.form.submit()">
|
||||
<#for yyyy : 2017..DateTimes.getCurrentYear()>
|
||||
<option value="${yyyy}" <#if year == yyyy || (year == null && yyyy == DateTimes.getCurrentYear())>selected</#if>>${yyyy}</option>
|
||||
</#for>
|
||||
</select>年
|
||||
<select class="z-select z-w100" id="month" data-role="z-select" data-class="${zmr_color_class}" onchange="Z('#validDate').val(Z('#year').val() +'-' + this.value +'-01');this.form.submit()">
|
||||
<#for mm : 1..12>
|
||||
<option value="<#if mm lt 10>0${mm}<#else>${mm}</#if>" <#if (month == null && mm == DateTimes.getCurrentMonth()) || mm == month>selected</#if>>${mm}</option>
|
||||
</#for>
|
||||
</select>月
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('performanceParameterAdd.htm');"><i class="z-font z-add"></i>增加设计绩效参数</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="80">选择</td>
|
||||
<td width="12%">组织</td>
|
||||
<td width="100">角色</td>
|
||||
<td width="10%">试一级单价/单数</td>
|
||||
<td width="10%">试二级单价/单数</td>
|
||||
<td width="10%">正三级单价/单数</td>
|
||||
<td width="10%">正四级单价/单数</td>
|
||||
<td width="10%">正五级单价/单数</td>
|
||||
<td width="*">正六级单价/单数</td>
|
||||
<td width="200">操作</td>
|
||||
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(count, 10, "暂时没有设计绩效参数")}
|
||||
<#for entry : dataMap.entrySet()>
|
||||
<#var list = entry.getValue()/>
|
||||
<#for item : list>
|
||||
<tr <#if item_index==0> id="tr${item.getOrgId()}" ${zhiqim_manager_tr_click_radio()} <#else> onclick="Z('#tr${item.getOrgId()}').click()" </#if> class="z-pointer onmounse${item.getOrgId()}" onmouseover="Z('tr.onmounse${item.getOrgId()}').css('background-color', '#f3fdfc')" onmouseout="Z('tr.onmounse${item.getOrgId()}').css('background-color', '#ffffff')">
|
||||
|
||||
<#if list.size() gt 1>
|
||||
<#if item_index==0>
|
||||
<td rowspan="${list.size()}" ><input id="orgId" name="orgId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOrgId()}"></td>
|
||||
<td rowspan="${list.size()}" class="zi-bd-l">${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
</#if>
|
||||
<#else>
|
||||
<td rowspan="${list.size()}" ><input id="orgId" name="orgId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOrgId()}"></td>
|
||||
<td rowspan="${list.size()}" class="zi-bd-l">${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
</#if>
|
||||
|
||||
<td class="zi-bd-l"><#if item.getPriceType()==1>设计组<#else>设计师</#if></td>
|
||||
<td>${Amounts.toYuan(item.getPriceLevel1())}<span class=" z-mg-l6 z-text-gray"><#if item.getLevel1MaxCount() gt 0>( 0-${item.getLevel1MaxCount()}单)</#if></span></td>
|
||||
<td>${Amounts.toYuan(item.getPriceLevel2())}<span class=" z-mg-l6 z-text-gray"><#if item.getLevel2MaxCount() gt 0>(${item.getLevel1MaxCount()+1}-${item.getLevel2MaxCount()}单)</#if></span></td>
|
||||
<td>${Amounts.toYuan(item.getPriceLevel3())}<span class=" z-mg-l6 z-text-gray"><#if item.getLevel3MaxCount() gt 0>(${item.getLevel2MaxCount()+1}-${item.getLevel3MaxCount()}单)</#if></span></td>
|
||||
<td>${Amounts.toYuan(item.getPriceLevel4())}<span class=" z-mg-l6 z-text-gray"><#if item.getLevel4MaxCount() gt 0>(${item.getLevel3MaxCount()+1}-${item.getLevel4MaxCount()}单)</#if></span></td>
|
||||
<td>${Amounts.toYuan(item.getPriceLevel5())}<span class=" z-mg-l6 z-text-gray"><#if item.getLevel5MaxCount() gt 0>(${item.getLevel4MaxCount()+1}-${item.getLevel5MaxCount()}单)</#if></span></td>
|
||||
<td>${Amounts.toYuan(item.getPriceLevel6())}<span class=" z-mg-l6 z-text-gray"><#if item.getLevel6MaxCount() gt 0>(${item.getLevel5MaxCount()+1}-${item.getLevel6MaxCount()}单)</#if></span></td>
|
||||
<td>
|
||||
<#if DateTimes.compareDay(item.getValidDate(), DateTimes.getFirstMonthDay()) gte 0 >
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('performanceParameterModify.htm?validDate=${item.getValidDate()}&orgId=${item.getOrgId()}&priceType=${item.getPriceType()}');"><i class="z-font z-modify"></i>修改参数</button>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "performanceParameter.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,78 @@
|
||||
<#def designatedPath="performanceParameter.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("performanceParameter.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("performanceParameter.htm?page="+page, "设计绩效参数", "增加设计绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="performanceParameterInsert.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加设计绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">组织:<span class="z-color-999">(请选择)</span></td>
|
||||
<td width="*">
|
||||
<select name="orgId" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">请选择</option>
|
||||
<#for item : ZmrOrgDao.list(request)>
|
||||
<option value="${item.getOrgId()}">${ZmrOrgDao.getOrgName(request, item.getOrgId())}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">单价类型:<span class="z-color-999">(请选择)</span></td>
|
||||
<td width="*">
|
||||
<select name="priceType" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">请选择</option>
|
||||
<option value="1">设计组</option>
|
||||
<option value="0">设计师</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>试一级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel1" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level1MaxCount" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>试二级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel2" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level2MaxCount" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正三级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel3" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level3MaxCount" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正四级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel4" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level4MaxCount" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正五级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel5" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level5MaxCount" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正六级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel6" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level6MaxCount" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,71 @@
|
||||
<#def designatedPath="performanceParameter.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("performanceParameter.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("performanceParameter.htm?page="+page, "设计绩效参数", "修改设计绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<form name="theForm" action="performanceParameterUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input type="hidden" name="validDate" value="${param.getValidDate()}">
|
||||
<input type="hidden" name="orgId" value="${param.getOrgId()}">
|
||||
<input type="hidden" name="priceType" value="${param.getPriceType()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加设计绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">组织:<span class="z-color-999"></span></td>
|
||||
<td width="*">${ZmrOrgDao.getOrgName(request, param.getOrgId())} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">单价类型:<span class="z-color-999">(请选择)</span></td>
|
||||
<td width="*">
|
||||
<#if param.getPriceType()==1>设计组<#else>设计师</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>试一级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel1" value="${Amounts.toYuanMustRadix(param.getPriceLevel1())}" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level1MaxCount" value="${param.getLevel1MaxCount()}" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>试二级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel2" value="${Amounts.toYuanMustRadix(param.getPriceLevel2())}" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level2MaxCount" value="${param.getLevel2MaxCount()}" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正三级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel3" value="${Amounts.toYuanMustRadix(param.getPriceLevel3())}" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level3MaxCount" value="${param.getLevel3MaxCount()}" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正四级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel4" value="${Amounts.toYuanMustRadix(param.getPriceLevel4())}" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level4MaxCount" value="${param.getLevel4MaxCount()}" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正五级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel5" value="${Amounts.toYuanMustRadix(param.getPriceLevel5())}" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level5MaxCount" value="${param.getLevel5MaxCount()}" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>正六级单价:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w140 ${zmr_color_class}" name="priceLevel6" value="${Amounts.toYuanMustRadix(param.getPriceLevel6())}" maxlength="6" data-options="type:Amount2R;paste:true;" placeholder="单价">
|
||||
<input class="z-input z-w140 z-mg-l15 ${zmr_color_class}" name="level6MaxCount" value="${param.getLevel6MaxCount()}" maxlength="6" data-options="type:Integer;paste:true" placeholder="单数上限">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,50 @@
|
||||
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
|
||||
<table class="z-table z-bordered z-pd5 z-bg-white z-text-center">
|
||||
<tr class="z-h40">
|
||||
<td colspan="6" align="right" class="z-bold z-px14 zi-pd-l5">
|
||||
<span class="z-float-left">[<span class="z-text-blue">${group.getGroupName()}</span>]成员</span>
|
||||
<input type="hidden" id="selectedOrgId" value="${group.getOrgId()}">
|
||||
<input type="hidden" id="selectedGroupId" value="${group.getGroupId()}">
|
||||
<input type="hidden" id="selectedUsers" value="">
|
||||
<select class="z-select z-w100" id="year" data-role="z-select" data-class="${zmr_color_class}" onchange="doQueryMembers(${group.getGroupId()}, this.value +'-' + Z('#month').val() +'-01');">
|
||||
<#for yyyy : 2017..DateTimes.getCurrentYear()>
|
||||
<option value="${yyyy}" <#if year == yyyy>selected</#if>>${yyyy}</option>
|
||||
</#for>
|
||||
</select>年
|
||||
<select class="z-select z-w100" id="month" data-role="z-select" data-class="${zmr_color_class}" onchange="doQueryMembers(${group.getGroupId()}, Z('#year').val() +'-' + this.value +'-01');">
|
||||
<#for mm : 1..12>
|
||||
<option value="<#if mm lt 10>0${mm}<#else>${mm}</#if>" <#if month == mm>selected</#if>>${mm}</option>
|
||||
</#for>
|
||||
</select>月
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr valign="middle" class="z-text-center z-h40 z-bg-gray">
|
||||
<td width="150">头像</td>
|
||||
<td width="150">姓名</td>
|
||||
<td width="150">任职</td>
|
||||
<td width="180">加入日期</td>
|
||||
<td width="180">离开日期</td>
|
||||
<td width="150">操作</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(operatorList, 4, "暂时没有成员信息")}
|
||||
<#for item : memberList>
|
||||
<tr class="z-text-center z-h60 <#if item.getIsGroupLeader() == 1>z-bold</#if>" ${zhiqim_manager_tr_onmouse()}>
|
||||
<td>
|
||||
<#var opr=operatorMap.get(item.getUserCode())/>
|
||||
<img src="<#if opr!=null>${sessionUser.getAvatarUrl(opr.getOperatorAvatar(), 50)}</#if>" class="z-w50 z-h50 z-bd-rd50p">
|
||||
</td>
|
||||
<td>${item.getUserCode()}</td>
|
||||
<td><#if item.getIsGroupLeader() == 1>组长<#else>组员</#if></td>
|
||||
<td>${item.getStartDate()}</td>
|
||||
<td><#if Validates.isNotEmptyBlank(item.getEndDate())>${item.getEndDate()}<#else> -- </#if></td>
|
||||
<td>
|
||||
<#if ZmrPathRule.check(request, "/groupMemberAdd.htm") && item.getEndDate() == null && item.getIsGroupLeader() == 0>
|
||||
<button type="button" class="z-button z-h25 z-red z-xsmall z-font z-delete" onclick="doDeleteMember(${group.getGroupId()}, '${item.getUserCode()}', ${!Strings.equals(DateTimes.getNextMonthFirstDay(), item.getStartDate())});"></button>
|
||||
<#else> --
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_list(memberList.size())}
|
||||
@@ -0,0 +1,175 @@
|
||||
${zhiqim_manager_breadcrumb("产品单价")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
function doQueryPrdAttr(prdTypeId,prdSizeStd,prdPageName){
|
||||
if(prdTypeId == ''){
|
||||
Z("#prdSizeStd").htmlc('<option value="">尺寸</option>');
|
||||
Z("#prdPageName").htmlc('<option value="">面数</option>');
|
||||
return;
|
||||
}
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doQueryPrdSizeByTypeId");
|
||||
ajax.addParam("prdTypeId", prdTypeId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var html = '<option value="">尺寸</option>';
|
||||
obj.forEach(function(value, key, arr){
|
||||
var selected = '';
|
||||
if(value == prdSizeStd){
|
||||
selected = 'selected';
|
||||
}
|
||||
|
||||
html += '<option value="'+value+'" '+selected+'>'+value+'</option>';
|
||||
});
|
||||
|
||||
Z("#prdSizeStd").htmlc(html);
|
||||
});
|
||||
ajax.execute();
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doQueryPrdPageByTypeId");
|
||||
ajax.addParam("prdTypeId", prdTypeId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var html = '<option value="">面数</option>';
|
||||
obj.forEach(function(value, key, arr){
|
||||
var selected = '';
|
||||
if(value == prdPageName){
|
||||
selected = 'selected';
|
||||
}
|
||||
html += '<option value="'+value+'" '+selected+'>'+value+'</option>';
|
||||
});
|
||||
|
||||
Z("#prdPageName").htmlc(html);
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doDesignprice(){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("designPrice");
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<!-- <li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>-->
|
||||
<li class="z-active">产品单价</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
<form name="theForm" action="productConvert.htm" method="post" id="productConvertForm">
|
||||
<select name="prdTypeId" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}" onchange="doQueryPrdAttr(this.value);Z('#prdSizeStd').htmlc('');Z('#prdPageName').htmlc('');document.getElementById('productConvertForm').submit();">
|
||||
<option value="">产品</option>
|
||||
<#for item : DesignTypeDao.list()>
|
||||
<option value="${item.getTypeId()}" <#if prdTypeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
|
||||
<!--<select name="prdSizeStd" id="prdSizeStd" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}" onchange="document.getElementById('productConvertForm').submit();">
|
||||
<option value="">尺寸</option>
|
||||
</select>
|
||||
|
||||
<select name="prdPageName" id="prdPageName" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}" onchange="document.getElementById('productConvertForm').submit();">
|
||||
<option value="">面数</option>
|
||||
</select> -->
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<!--<button onclick="doDesignprice()">同步设计单价</button>-->
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('productConvertAdd.htm');"><i class="z-font z-add"></i>增加产品单价</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('productConvertModify.htm', 'convertId');"><i class="z-font z-modify"></i>修改产品单价</button>
|
||||
<button class="z-button z-red" onclick="Z.confirm('您确定删除该产品单价吗?', function(){Z.L.check('productConvertDelete.htm', 'convertId');});"><i class="z-font z-delete"></i>删除产品单价</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td>产品</td>
|
||||
<td>尺寸</td>
|
||||
<td>面数</td>
|
||||
<td>普通设计单价</td>
|
||||
<td>资深设计单价</td>
|
||||
<td>改稿单价</td>
|
||||
<td>最后修改时间</td>
|
||||
<td>操作人</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有产品单价信息")}
|
||||
|
||||
<#var prdTypeId = 0/>
|
||||
<#var prdSizeWidth = 0/>
|
||||
<#var prdSizeHeight = 0/>
|
||||
<#var foldPrdTypeId = 1804102013509964/>
|
||||
<#var prdPageName = ""/>
|
||||
<#for item : pageResult.list()>
|
||||
<#if item.getPrdTypeId() == foldPrdTypeId && item.getPrdPageName() == prdPageName>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="convertId" name="convertId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getConvertId()}"></td>
|
||||
<td>${Global.get(DesignTypeCache.class).getName(item.getPrdTypeId())}</td>
|
||||
<td>
|
||||
<#if item.getPrdSizeWidth() gt 0 && item.getPrdSizeHeight() gt 0>
|
||||
${item.getPrdSizeWidth()}X${item.getPrdSizeHeight()}
|
||||
<#else>/</#if>
|
||||
<#if item.getAlias() != null && item.getAlias() != "">
|
||||
(${item.getAlias()})
|
||||
<#else></#if>
|
||||
</td>
|
||||
<td><#if Validates.isNotEmpty(item.getPrdPageName())>${item.getPrdPageName()}<#else>/</#if></td>
|
||||
<td>${Amounts.toYuan(item.getDraftCommonDesign())}</td>
|
||||
<td>${Amounts.toYuan(item.getSrDesign())}</td>
|
||||
<td>${Amounts.toYuan(item.getDraftTemplate())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getUpdateTime())}</td>
|
||||
<td>${item.getUpdateOperator()}</td>
|
||||
</tr>
|
||||
<#elseif (prdTypeId == item.getPrdTypeId() || foldPrdTypeId == item.getPrdTypeId()) && prdSizeWidth == item.getPrdSizeWidth() && prdSizeHeight == item.getPrdSizeHeight()>
|
||||
<#var prdTypeId = item.getPrdTypeId()/>
|
||||
<#var prdSizeWidth = item.getPrdSizeWidth()/>
|
||||
<#var prdSizeHeight = item.getPrdSizeHeight()/>
|
||||
<#var prdPageName = item.getPrdPageName()/>
|
||||
<#continue/>
|
||||
<#else>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="convertId" name="convertId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getConvertId()}"></td>
|
||||
<td>${Global.get(DesignTypeCache.class).getName(item.getPrdTypeId())}</td>
|
||||
<td>
|
||||
<#if item.getPrdSizeWidth() gt 0 && item.getPrdSizeHeight() gt 0>
|
||||
${item.getPrdSizeWidth()}X${item.getPrdSizeHeight()}
|
||||
<#else>/</#if>
|
||||
<#if item.getAlias() != null && item.getAlias() != "">
|
||||
(${item.getAlias()})
|
||||
<#else></#if>
|
||||
</td>
|
||||
<td><#if Validates.isNotEmpty(item.getPrdPageName())>${item.getPrdPageName()}<#else>/</#if></td>
|
||||
<td>${Amounts.toYuan(item.getDraftCommonDesign())}</td>
|
||||
<td>${Amounts.toYuan(item.getSrDesign())}</td>
|
||||
<td>${Amounts.toYuan(item.getDraftTemplate())}</td>
|
||||
<td>${Sqls.toDateTimeString(item.getUpdateTime())}</td>
|
||||
<td>${item.getUpdateOperator()}</td>
|
||||
</#if>
|
||||
<#var prdTypeId = item.getPrdTypeId()/>
|
||||
<#var prdSizeWidth = item.getPrdSizeWidth()/>
|
||||
<#var prdSizeHeight = item.getPrdSizeHeight()/>
|
||||
<#var prdPageName = item.getPrdPageName()/>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult,"/productConvert.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,116 @@
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("productConvert.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("productConvert.htm", "产品单价" , "增加产品单价")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<form name="theForm" action="productConvertInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加产品单价</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" align="center">产品</td>
|
||||
<td width="*">
|
||||
<select name="prdTypeId" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}" onchange="doQueryPrdAttr(this.value)">
|
||||
<#for item : DesignTypeDao.list()>
|
||||
<option value="${item.getTypeId()}" <#if item.getTypeId() == convert.getPrdTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">尺寸</td>
|
||||
<td>
|
||||
<div style="display:flex;align-items:center;">
|
||||
长:小于 <input type="text" name="prdSizeWidth" id="prdSizeWidth" data-options="type:Integer;paste:true;" maxlength="8" class="z-input z-w150" value="" placeholder="填写尺寸时需包含出血"> 宽:小于 <input type="text" name="prdSizeHeight" id="prdSizeHeight" data-options="type:Integer;paste:true;" maxlength="8" class="z-input z-w150" value="" placeholder="填写尺寸时需包含出血">
|
||||
<span class="z-pointer" data-role="z-tooltip" data-options="placement:top;align:left;width:420px;" data-text="1.若有多个尺寸配置适用,则使用最小适用尺寸范围配置<br>2.配置尺寸需考虑产品出血值<br>3.不支持长宽交叉配置(小于90*小于56和小于92*小于54不允许同时存在)"><svg t="1618819497927" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4064" width="28" height="28"><path d="M512 127.9c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.2 865.9 661.5c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886 362.5 865.9c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3c47.3-20 97.6-30.2 149.5-30.2m0-64C264.5 63.9 63.9 264.5 63.9 512S264.5 960.1 512 960.1 960.1 759.5 960.1 512 759.5 63.9 512 63.9z" fill="#1296db" p-id="4065"></path><path d="M480 736h64v64h-64zM476.9 686.3c-0.3-9.3-0.4-42.2-0.4-46.8 0-27.3 3.9-50.8 11.6-70.6 5.7-14.9 14.8-30 27.4-45.1 9.3-11.1 25.9-27.2 50-48.4 24-21.2 39.7-38.1 46.9-50.7s10.8-26.4 10.8-41.3c0-27-10.5-50.7-31.6-71.2-21.1-20.4-46.9-30.7-77.5-30.7-29.6 0-54.3 9.3-74.1 27.8-19.8 18.5-32.8 47.4-39 86.8l-71.4-8.5c6.4-52.7 25.5-93.1 57.3-121.1s73.7-42 125.9-42c55.3 0 99.4 15 132.3 45.1 32.9 30.1 49.4 66.5 49.4 109.2 0 24.7-5.8 47.4-17.4 68.3s-34.2 46.2-67.9 76c-22.6 20.1-37.4 34.8-44.4 44.4-6.9 9.5-12.1 20.4-15.4 32.8-3.3 12.3-5.3 58.4-5.8 86.2h-66.7v-0.2z" fill="#1296db" p-id="4066"></path></svg></span>
|
||||
|
||||
<div style="display:flex;align-items:center;">
|
||||
别名:<input type="text" name="alias" id="alias" data-options="type:String;paste:true;" maxlength="8" class="z-input z-w150" value="${convert.getAlias()}" placeholder="该尺寸产品别名">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">面数</td>
|
||||
<td>
|
||||
<select name="prdPageName" id="prdPageName" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">普通设计单价</td>
|
||||
<td>
|
||||
<input type="text" name="prdPrice" id="prdPrice" class="z-input z-w180" value="" placeholder="请输入普通设计单价"> <input type="date" name="prdPriceDate" id="prdPriceDate" class="z-input z-w180" value="" placeholder="生效时间">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">资深设计单价</td>
|
||||
<td>
|
||||
<input type="text" name="srPrice" id="srPrice" class="z-input z-w180" value="" placeholder="请输入资深设计单价"> <input type="date" name="srPriceDate" id="srPriceDate" class="z-input z-w180" value="" placeholder="生效时间">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">改稿单价</td>
|
||||
<td>
|
||||
<input type="text" name="templateDraftPrice" id="templateDraftPrice" class="z-input z-w180" value="" placeholder="请输入改稿价格"> <input type="date" name="rewritePriceDate" id="rewritePriceDate" class="z-input z-w180" value="${rewritePriceDate}" placeholder="生效时间">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
<style>
|
||||
.rankUl>li{
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.rankUl>li>input{
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
doQueryPrdAttr(1);
|
||||
});
|
||||
|
||||
function doQueryPrdAttr(prdTypeId){
|
||||
/**if(prdTypeId == ''){
|
||||
Z("#prdSizeStd").htmlc('<option value="">尺寸</option>');
|
||||
Z("#prdPageName").htmlc('<option value="">面数</option>');
|
||||
return;
|
||||
}
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doQueryPrdSizeByTypeId");
|
||||
ajax.addParam("prdTypeId", prdTypeId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var html = '<option value="">尺寸</option>';
|
||||
obj.forEach(function(value, key, arr){
|
||||
html += '<option value="'+value+'">'+value+'</option>';
|
||||
});
|
||||
|
||||
Z("#prdSizeStd").htmlc(html);
|
||||
});
|
||||
ajax.execute();*/
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doQueryPrdPageByTypeId");
|
||||
ajax.addParam("prdTypeId", prdTypeId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var html = '<option value="">面数</option>';
|
||||
obj.forEach(function(value, key, arr){
|
||||
html += '<option value="'+value+'">'+value+'</option>';
|
||||
});
|
||||
|
||||
Z("#prdPageName").htmlc(html);
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,491 @@
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("productConvert.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("productConvert.htm", "产品单价" , "增加产品单价")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function addDesignPrice(prdTypeId,convertId,effectTime){
|
||||
var temp = document.getElementById('designPrice');
|
||||
var linum = temp.getElementsByTagName("li").length;
|
||||
var prdPrice = "prdPrice_"+linum;
|
||||
var prdPriceDate = "prdPriceDate_"+linum;
|
||||
var draftType = 2;
|
||||
document.getElementById("designPrice").innerHTML+= "<li><input type=\"text\" name=\""+prdPrice+"\" id=\""+prdPrice+"\" class=\"z-input z-w180\" value=\"\" placeholder=\"请输入设计单价\"> <input type=\"month\" data-month=\""+effectTime+"\" name=\""+prdPriceDate+"\" id=\""+prdPriceDate+"\" class=\"z-input z-w180\" value=\"\"> <button class=\"z-button z-blue\" onclick=\"insertDesignPrice(this,'"+prdPrice+"','"+prdPriceDate+"','"+prdTypeId+"','"+convertId+"','"+draftType+"')\">保存</button> <button class=\"z-button z-gray\" onclick=\"delDesignPrice(this)\">删除</button></li>"
|
||||
getMonth('designPrice');
|
||||
}
|
||||
|
||||
function delDesignPrice(obj,priceId){
|
||||
var ul=document.getElementById("designPrice");
|
||||
var oLi=obj.parentNode;
|
||||
ul.removeChild(oLi);
|
||||
|
||||
if(priceId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("delDesignPrice");
|
||||
ajax.addParam(priceId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("delDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
function useDesignPrice(obj,priceId){
|
||||
var prdPriceId = document.getElementById("prdPriceId").value;
|
||||
if(priceId && prdPriceId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("useDesignPrice");
|
||||
ajax.addParam(priceId);
|
||||
ajax.addParam(prdPriceId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("useDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
function addSrPrice(prdTypeId,convertId,effectTime){
|
||||
var temp = document.getElementById('srPrice');
|
||||
var linum = temp.getElementsByTagName("li").length;
|
||||
var srPrice = "srPrice_"+linum;
|
||||
var srPriceDate = "srPriceDate_"+linum;
|
||||
var draftType = 3;
|
||||
document.getElementById("srPrice").innerHTML+= "<li><input type=\"text\" name=\""+srPrice+"\" id=\""+srPrice+"\" class=\"z-input z-w180\" value=\"\" placeholder=\"请输入资深设计单价\"> <input type=\"month\" data-month=\""+effectTime+"\" name=\""+srPriceDate+"\" id=\""+srPriceDate+"\" class=\"z-input z-w180\" value=\"\"> <button class=\"z-button z-blue\" onclick=\"insertSrPrice(this,'"+srPrice+"','"+srPriceDate+"','"+prdTypeId+"','"+convertId+"','"+draftType+"')\">保存</button> <button class=\"z-button z-gray\" onclick=\"delSrPrice(this)\">删除</button></li>"
|
||||
getMonth('srPrice');
|
||||
}
|
||||
|
||||
function delSrPrice(obj,priceId){
|
||||
var ul=document.getElementById("srPrice");
|
||||
var oLi=obj.parentNode;
|
||||
ul.removeChild(oLi);
|
||||
|
||||
if(priceId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("delDesignPrice");
|
||||
ajax.addParam(priceId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("delDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
function useSrPrice(obj,priceId){
|
||||
var srPriceId = document.getElementById("srPriceId").value;
|
||||
if(priceId && srPriceId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("useDesignPrice");
|
||||
ajax.addParam(priceId);
|
||||
ajax.addParam(srPriceId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("useDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
function addRewritePrice(prdTypeId,convertId,effectTime){
|
||||
var temp = document.getElementById('rewritePrice');
|
||||
var linum = temp.getElementsByTagName("li").length
|
||||
var templateDraftPrice = "templateDraftPrice_"+linum;
|
||||
var rewritePriceDate = "rewritePriceDate_"+linum;
|
||||
var draftType = 1;
|
||||
document.getElementById("rewritePrice").innerHTML+= "<li><input type=\"text\" name=\""+templateDraftPrice+"\" id=\""+templateDraftPrice+"\" class=\"z-input z-w180\" value=\"\" placeholder=\"请输入改稿价格\"> <input type=\"month\" data-month=\""+effectTime+"\" name=\""+rewritePriceDate+"\" id=\""+rewritePriceDate+"\" class=\"z-input z-w180\" value=\"\"> <button class=\"z-button z-blue\" onclick=\"insertRewritePrice(this,'"+templateDraftPrice+"','"+rewritePriceDate+"','"+prdTypeId+"','"+convertId+"','"+draftType+"')\">保存</button> <button class=\"z-button z-gray\" onclick=\"delRewritePrice(this)\">删除</button></li>"
|
||||
getMonth('rewritePrice');
|
||||
}
|
||||
|
||||
function delRewritePrice(obj,priceId){
|
||||
var ul=document.getElementById("rewritePrice");
|
||||
var oLi=obj.parentNode;
|
||||
ul.removeChild(oLi)
|
||||
|
||||
if(priceId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("delDesignPrice");
|
||||
ajax.addParam(priceId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("delDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
function insertDesignPrice(obj,prdPrice,prdPriceDate,prdTypeId,convertId,draftType){
|
||||
var prdPrice = document.getElementById(prdPrice).value;
|
||||
var prdPriceDate = document.getElementById(prdPriceDate).value;
|
||||
if(prdPrice!="" && prdPriceDate!=""){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("insertDesignPrice");
|
||||
ajax.addParam("prdPrice",prdPrice);
|
||||
ajax.addParam("prdPriceDate",prdPriceDate);
|
||||
ajax.addParam("draftType",draftType);
|
||||
ajax.addParam("prdTypeId",prdTypeId);
|
||||
ajax.addParam("convertId",convertId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){window.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("insertDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
preventSubmit(obj,draftType);
|
||||
}
|
||||
else{
|
||||
preventSubmit(obj,draftType);
|
||||
Z.alert("请填入必填项!")
|
||||
}
|
||||
}
|
||||
|
||||
function insertSrPrice(obj,srPrice,srPriceDate,prdTypeId,convertId,draftType){
|
||||
var srPrice = document.getElementById(srPrice).value;
|
||||
var srPriceDate = document.getElementById(srPriceDate).value;
|
||||
if(srPrice!="" && srPriceDate!=""){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("insertDesignPrice");
|
||||
ajax.addParam("prdPrice",srPrice);
|
||||
ajax.addParam("prdPriceDate",srPriceDate);
|
||||
ajax.addParam("draftType",draftType);
|
||||
ajax.addParam("prdTypeId",prdTypeId);
|
||||
ajax.addParam("convertId",convertId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){window.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("insertDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
preventSubmit(obj,draftType);
|
||||
}
|
||||
else{
|
||||
preventSubmit(obj,draftType);
|
||||
Z.alert("请填入必填项!")
|
||||
}
|
||||
}
|
||||
|
||||
function insertRewritePrice(obj,rewritePrice,rewritePriceDate,prdTypeId,convertId,draftType){
|
||||
var rewritePrice = document.getElementById(rewritePrice).value;
|
||||
var rewritePriceDate = document.getElementById(rewritePriceDate).value;
|
||||
if(rewritePrice!="" && rewritePriceDate!=""){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("insertDesignPrice");
|
||||
ajax.addParam("prdPrice",rewritePrice);
|
||||
ajax.addParam("prdPriceDate",rewritePriceDate);
|
||||
ajax.addParam("draftType",draftType);
|
||||
ajax.addParam("prdTypeId",prdTypeId);
|
||||
ajax.addParam("convertId",convertId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){window.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("insertDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
|
||||
preventSubmit(obj,draftType);
|
||||
}
|
||||
else{
|
||||
preventSubmit(obj,draftType);
|
||||
Z.alert("请填入必填项!")
|
||||
}
|
||||
}
|
||||
|
||||
function useRewritePrice(obj,priceId){
|
||||
var rewritePriceId = document.getElementById("rewritePriceId").value;
|
||||
if(priceId && rewritePriceId){
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("useDesignPrice");
|
||||
ajax.addParam(priceId);
|
||||
ajax.addParam(rewritePriceId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("useDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
}
|
||||
|
||||
function preventSubmit(obj,draftType){
|
||||
var ul= null;
|
||||
if(draftType == 2){
|
||||
ul= document.getElementById("designPrice");
|
||||
}else if(draftType == 3){
|
||||
ul= document.getElementById("srPrice");
|
||||
}else {
|
||||
ul= document.getElementById("rewritePrice");
|
||||
}
|
||||
var oLi=obj.parentNode;
|
||||
ul.removeChild(oLi);
|
||||
}
|
||||
|
||||
function editDesignPrice(obj,priceId){
|
||||
var prdPrice = document.getElementById('prdPrice_'+priceId).value;
|
||||
var prdPriceDate = document.getElementById('prdPriceDate_'+priceId).value;
|
||||
var draftType = 2;
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("doEditDesignPrice");
|
||||
ajax.addParam("priceId",priceId);
|
||||
ajax.addParam("prdPrice",prdPrice);
|
||||
ajax.addParam("prdPriceDate",prdPriceDate);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){window.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("editDesignPrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
preventSubmit(obj,draftType);
|
||||
}
|
||||
|
||||
function editRewritePrice(obj,priceId){
|
||||
var prdPrice = document.getElementById("templateDraftPrice_"+priceId).value;
|
||||
var prdPriceDate = document.getElementById("rewritePriceDate_"+priceId).value;
|
||||
var draftType = 1;
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ProductConvertAction");
|
||||
ajax.setMethodName("doEditDesignPrice");
|
||||
ajax.addParam("priceId",priceId);
|
||||
ajax.addParam("prdPrice",prdPrice);
|
||||
ajax.addParam("prdPriceDate",prdPriceDate);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
Z.success("操作成功",function(){window.location.reload();parent.Z.Dialog.close();});
|
||||
});
|
||||
ajax.setLoading("editRewritePrice", '正在提交', {disabled:true});
|
||||
ajax.execute();
|
||||
preventSubmit(obj,draftType);
|
||||
}
|
||||
|
||||
|
||||
function getMonth(price) {
|
||||
if (price == 'designPrice'){
|
||||
var temp1 = document.getElementById('designPrice').children;
|
||||
var i1 = 1
|
||||
for (i1; i1 < temp1.length; i1++){
|
||||
if(!temp1[i1].children[1].getAttribute('data-month')){
|
||||
continue;
|
||||
}
|
||||
temp1[i1].children[1].value = temp1[i1].children[1].getAttribute('data-month').substring(0,7)
|
||||
}
|
||||
}else if (price == 'rewritePrice'){
|
||||
var temp = document.getElementById('rewritePrice').children;
|
||||
var i = 1
|
||||
for (i; i < temp.length; i++){
|
||||
if(!temp[i].children[1].getAttribute('data-month')){
|
||||
continue;
|
||||
}
|
||||
temp[i].children[1].value = temp[i].children[1].getAttribute('data-month').substring(0,7)
|
||||
}
|
||||
}else{
|
||||
var temp1 = document.getElementById('designPrice').children;
|
||||
var i1 = 1
|
||||
for (i1; i1 < temp1.length; i1++){
|
||||
if(!temp1[i1].children[1].getAttribute('data-month')){
|
||||
continue;
|
||||
}
|
||||
temp1[i1].children[1].value = temp1[i1].children[1].getAttribute('data-month').substring(0,7)
|
||||
}
|
||||
|
||||
var temp = document.getElementById('rewritePrice').children;
|
||||
var i = 1
|
||||
for (i; i < temp.length; i++){
|
||||
if(!temp[i].children[1].getAttribute('data-month')){
|
||||
continue;
|
||||
}
|
||||
temp[i].children[1].value = temp[i].children[1].getAttribute('data-month').substring(0,7)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
getMonth();
|
||||
}
|
||||
</script>
|
||||
|
||||
<form name="theForm" action="productConvertUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="convertId" value="${convert.getConvertId()}" type="hidden">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改产品单价</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" align="center">产品</td>
|
||||
<td width="*">
|
||||
<select name="prdTypeId" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}" onchange="doQueryPrdAttr(this.value)">
|
||||
<#for item : DesignTypeDao.list()>
|
||||
<option value="${item.getTypeId()}" <#if item.getTypeId() == convert.getPrdTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">尺寸</td>
|
||||
<td>
|
||||
<div style="display:flex;align-items:center;">
|
||||
长:小于 <input type="text" name="prdSizeWidth" id="prdSizeWidth" data-options="type:Integer;paste:true;" maxlength="8" class="z-input z-w150" value="${convert.getPrdSizeWidth()}" placeholder="填写尺寸时需包含出血"> 宽:小于 <input type="text" name="prdSizeHeight" id="prdSizeHeight" data-options="type:Integer;paste:true;" maxlength="8" class="z-input z-w150" value="${convert.getPrdSizeHeight()}" placeholder="填写尺寸时需包含出血">
|
||||
<span class="z-pointer" data-role="z-tooltip" data-options="placement:top;align:left;width:420px;" data-text="1.若有多个尺寸配置适用,则使用最小适用尺寸范围配置<br>2.配置尺寸需考虑产品出血值<br>3.不支持长宽交叉配置(小于90*小于56和小于92*小于54不允许同时存在)"><svg t="1618819497927" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4064" width="28" height="28"><path d="M512 127.9c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.2 865.9 661.5c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886 362.5 865.9c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3c47.3-20 97.6-30.2 149.5-30.2m0-64C264.5 63.9 63.9 264.5 63.9 512S264.5 960.1 512 960.1 960.1 759.5 960.1 512 759.5 63.9 512 63.9z" fill="#1296db" p-id="4065"></path><path d="M480 736h64v64h-64zM476.9 686.3c-0.3-9.3-0.4-42.2-0.4-46.8 0-27.3 3.9-50.8 11.6-70.6 5.7-14.9 14.8-30 27.4-45.1 9.3-11.1 25.9-27.2 50-48.4 24-21.2 39.7-38.1 46.9-50.7s10.8-26.4 10.8-41.3c0-27-10.5-50.7-31.6-71.2-21.1-20.4-46.9-30.7-77.5-30.7-29.6 0-54.3 9.3-74.1 27.8-19.8 18.5-32.8 47.4-39 86.8l-71.4-8.5c6.4-52.7 25.5-93.1 57.3-121.1s73.7-42 125.9-42c55.3 0 99.4 15 132.3 45.1 32.9 30.1 49.4 66.5 49.4 109.2 0 24.7-5.8 47.4-17.4 68.3s-34.2 46.2-67.9 76c-22.6 20.1-37.4 34.8-44.4 44.4-6.9 9.5-12.1 20.4-15.4 32.8-3.3 12.3-5.3 58.4-5.8 86.2h-66.7v-0.2z" fill="#1296db" p-id="4066"></path></svg></span>
|
||||
|
||||
<div style="display:flex;align-items:center;">
|
||||
别名:<input type="text" name="alias" id="alias" data-options="type:String;paste:true;" maxlength="8" class="z-input z-w150" value="${convert.getAlias()}" placeholder="该尺寸产品别名">
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">面数</td>
|
||||
<td>
|
||||
<select name="prdPageName" id="prdPageName" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">普通设计单价</td>
|
||||
<td>
|
||||
<ul class="rankUl" id='designPrice'>
|
||||
<li align="right">
|
||||
<button class='z-button z-blue' onclick="addDesignPrice('${convert.getPrdTypeId()}','${convert.getConvertId()}','${Sqls.toDateString(item.getEffectTime())}')">添加</button>
|
||||
</li>
|
||||
<#for item : ProductDesignPriceView>
|
||||
<#if item.getDraftType() == 2 && item.getStatus() == 1>
|
||||
<li>
|
||||
<input type="hidden" id='prdPriceId' value="${item.getPriceId()}">
|
||||
<input type="text" disabled="disabled" name="prdPrice" id="prdPrice" class="z-input z-w180" value="${Amounts.toYuan(item.getDesignPriceMoney())}" placeholder="请输入设计单价"> <input type="month" disabled="disabled" name="prdPriceDate" id="prdPriceDate" data-month="${Sqls.toDateString(item.getEffectTime())}" class="z-input z-w180" value="${Sqls.toDateString(item.getEffectTime())}"> <span style='color: blue'>当前使用</span>
|
||||
</li>
|
||||
<#elseif item.getDraftType() == 2>
|
||||
<li>
|
||||
<input type="text" name="prdPrice_${item.getPriceId()}" id="prdPrice_${item.getPriceId()}" class="z-input z-w180" value="${Amounts.toYuan(item.getDesignPriceMoney())}" placeholder="请输入设计单价"> <input type="month" name="prdPriceDate_${item.getPriceId()}" id="prdPriceDate_${item.getPriceId()}" class="z-input z-w180" data-month="${Sqls.toDateString(item.getEffectTime())}" value="${Sqls.toDateString(item.getEffectTime())}"> <button class="z-button z-blue" onclick="editDesignPrice(this,'${item.getPriceId()}')">修改</button> <button class="z-button z-gray" onclick="delDesignPrice(this,'${item.getPriceId()}')">删除</button>
|
||||
<button class="z-button z-gray" onclick="useDesignPrice(this,'${item.getPriceId()}')">立即生效</button>
|
||||
</li>
|
||||
</#if>
|
||||
</#for>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">资深设计单价</td>
|
||||
<td>
|
||||
<ul class="rankUl" id='srPrice'>
|
||||
<li align="right">
|
||||
<button class='z-button z-blue' onclick="addSrPrice('${convert.getPrdTypeId()}','${convert.getConvertId()}','${Sqls.toDateString(item.getEffectTime())}')">添加</button>
|
||||
</li>
|
||||
<#for item : ProductDesignPriceView>
|
||||
<#if item.getDraftType() == 3 && item.getStatus() == 1>
|
||||
<li>
|
||||
<input type="hidden" id='srPriceId' value="${item.getPriceId()}">
|
||||
<input type="text" disabled="disabled" name="srPrice" id="srPrice" class="z-input z-w180" value="${Amounts.toYuan(item.getDesignPriceMoney())}" placeholder="请输入资深设计单价"> <input type="month" disabled="disabled" name="srPriceDate" id="srPriceDate" data-month="${Sqls.toDateString(item.getEffectTime())}" class="z-input z-w180" value="${Sqls.toDateString(item.getEffectTime())}"> <span style='color: blue'>当前使用</span>
|
||||
</li>
|
||||
<#elseif item.getDraftType() == 3>
|
||||
<li>
|
||||
<input type="text" name="srPrice_${item.getPriceId()}" id="srPrice_${item.getPriceId()}" class="z-input z-w180" value="${Amounts.toYuan(item.getDesignPriceMoney())}" placeholder="请输入资深设计单价"> <input type="month" name="srPriceDate_${item.getPriceId()}" id="srPriceDate_${item.getPriceId()}" class="z-input z-w180" data-month="${Sqls.toDateString(item.getEffectTime())}" value="${Sqls.toDateString(item.getEffectTime())}"> <button class="z-button z-blue" onclick="editSrPrice(this,'${item.getPriceId()}')">修改</button> <button class="z-button z-gray" onclick="delSrPrice(this,'${item.getPriceId()}')">删除</button>
|
||||
<button class="z-button z-gray" onclick="useSrPrice(this,'${item.getPriceId()}')">立即生效</button>
|
||||
</li>
|
||||
</#if>
|
||||
</#for>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">改稿单价</td>
|
||||
<td>
|
||||
<ul class="rankUl" id='rewritePrice'>
|
||||
<li align="right">
|
||||
<button class='z-button z-blue' onclick="addRewritePrice('${convert.getPrdTypeId()}','${convert.getConvertId()}','${Sqls.toDateString(item.getEffectTime())}')">添加</button>
|
||||
</li>
|
||||
<#for item : ProductDesignPriceView>
|
||||
<#if item.getDraftType() == 1 && item.getStatus() == 1>
|
||||
<li>
|
||||
<input type="hidden" id='rewritePriceId' value="${item.getPriceId()}">
|
||||
<input type="text" disabled="disabled" name="templateDraftPrice" id="templateDraftPrice" class="z-input z-w180" value="${Amounts.toYuan(item.getDesignPriceMoney())}" placeholder="请输入改稿价格"> <input type="month" disabled="disabled" name="rewritePriceDate" id="rewritePriceDate" class="z-input z-w180" data-month="${Sqls.toDateString(item.getEffectTime())}" value="${Sqls.toDateString(item.getEffectTime())}" placeholder="生效时间"> <span style='color: blue'>当前使用</span>
|
||||
</li>
|
||||
<#elseif item.getDraftType() == 1>
|
||||
<li>
|
||||
<input type="text" name="templateDraftPrice_${item.getPriceId()}" id="templateDraftPrice_${item.getPriceId()}" class="z-input z-w180" value="${Amounts.toYuan(item.getDesignPriceMoney())}" placeholder="请输入改稿价格"> <input type="month" name="rewritePriceDate_${item.getPriceId()}" id="rewritePriceDate_${item.getPriceId()}" class="z-input z-w180" data-month="${Sqls.toDateString(item.getEffectTime())}" value="${Sqls.toDateString(item.getEffectTime())}" placeholder="生效时间"> <button class="z-button z-blue" onclick="editRewritePrice(this,'${item.getPriceId()}')">修改</button> <button class="z-button z-gray" onclick="delRewritePrice(this,'${item.getPriceId()}')">删除</button>
|
||||
<button class="z-button z-gray" onclick="useRewritePrice(this,'${item.getPriceId()}')">立即生效</button>
|
||||
</li>
|
||||
</#if>
|
||||
</#for>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
<style>
|
||||
.rankUl>li{
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.rankUl>li>input{
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
Z.onload(function(){
|
||||
doQueryPrdAttr(${convert.getPrdTypeId()},'${convert.getPrdPageName()}');
|
||||
});
|
||||
|
||||
function doQueryPrdAttr(prdTypeId,prdPageName){
|
||||
if(prdTypeId == ''){
|
||||
Z("#prdPageName").htmlc('<option value="">面数</option>');
|
||||
return;
|
||||
}
|
||||
/*var ajax = new Z.Ajax();
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doQueryPrdSizeByTypeId");
|
||||
ajax.addParam("prdTypeId", prdTypeId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var html = '<option value="">尺寸</option>';
|
||||
obj.forEach(function(value, key, arr){
|
||||
var selected = '';
|
||||
if(value == prdSizeStd){
|
||||
selected = 'selected';
|
||||
}
|
||||
|
||||
html += '<option value="'+value+'" '+selected+'>'+value+'</option>';
|
||||
});
|
||||
|
||||
Z("#prdSizeStd").htmlc(html);
|
||||
});
|
||||
ajax.execute();*/
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("BasePresenter");
|
||||
ajax.setMethodName("doQueryPrdPageByTypeId");
|
||||
ajax.addParam("prdTypeId", prdTypeId);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var html = '<option value="">面数</option>';
|
||||
obj.forEach(function(value, key, arr){
|
||||
var selected = '';
|
||||
if(value == prdPageName){
|
||||
selected = 'selected';
|
||||
}
|
||||
html += '<option value="'+value+'" '+selected+'>'+value+'</option>';
|
||||
});
|
||||
|
||||
Z("#prdPageName").htmlc(html);
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,42 @@
|
||||
${zhiqim_manager_breadcrumb("质检加分管理")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li class="z-active">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/productConvert.htm');">产品单价</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('qcAwardedTypeAdd.htm');"><i class="z-font z-add"></i>增加质检加分类型</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('qcAwardedTypeModify.htm', 'qcTypeId');"><i class="z-font z-modify"></i>修改质检加分类型</button>
|
||||
<button class="z-button z-red" onclick="Z.L.check('qcAwardedTypeDelete.htm', 'qcTypeId');"><i class="z-font z-delete"></i>删除质检加分类型</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="220">加分类型ID</td>
|
||||
<td width="*">加分类型</td>
|
||||
<td width="220">加分类型分数</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有质检加分类型信息")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="qcTypeId" name="qcTypeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getQcTypeId()}"></td>
|
||||
<td>${item.getQcTypeId()}</td>
|
||||
<td>${item.getQcAwardedName()}</td>
|
||||
<td>${item.getQcScore()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "qcAwardedType.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,23 @@
|
||||
<#def designatedPath="/qcAwardedType.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("qcAwardedType.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("qcAwardedType.htm?page="+page, "质检加分", "增加质检加分类型")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="qcAwardedTypeInsert.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加质检加分类型</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>质检加分类型:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="qcAwardedName"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>加分类型分数:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="qcScore"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,24 @@
|
||||
<#def designatedPath="/qcAwardedType.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("qcAwardedType.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("qcAwardedType.htm?page="+page, "质检加分", "修改质检加分类型")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="qcAwardedTypeUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input type="hidden" name="qcTypeId" value="${qcAwardedType.getQcTypeId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改质检加分类型</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>质检加分类型:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="qcAwardedName" value="${qcAwardedType.getQcAwardedName()}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>加分类型分数:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="qcScore" value="${qcAwardedType.getQcScore()}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,42 @@
|
||||
${zhiqim_manager_breadcrumb("质检参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li class="z-active">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/productConvert.htm');">产品单价</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('qcParameterAdd.htm');"><i class="z-font z-add"></i>增加质检违规类型</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('qcParameterModify.htm', 'parameterId');"><i class="z-font z-modify"></i>修改质检违规类型</button>
|
||||
<button class="z-button z-red" onclick="Z.L.check('qcParameterDelete.htm', 'parameterId');"><i class="z-font z-delete"></i>删除质检违规类型</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="80">选择</td>
|
||||
<td width="200">类型ID</td>
|
||||
<td width="*">违规内容</td>
|
||||
<td width="200">扣罚分数</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有质检违规类型")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="parameterId" name="parameterId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getParameterId()}"></td>
|
||||
<td>${item.getParameterId()}</td>
|
||||
<td>${item.getContent()}</td>
|
||||
<td>${item.getScore()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "qcParameter.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,23 @@
|
||||
<#def designatedPath="/qcParameter.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("qcParameter.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("qcParameter.htm?page="+page, "质检参数", "增加质检违规类型")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="qcParameterInsert.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加质检违规类型</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>违规内容:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="content"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚分数:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="score"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,24 @@
|
||||
<#def designatedPath="/qcParameter.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("qcParameter.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("qcParameter.htm?page="+page, "质检参数", "修改质检违规类型")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="qcParameterUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input type="hidden" name="parameterId" value="${parameter.getParameterId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改质检违规类型</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>违规内容:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="content" value="${parameter.getContent()}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚分数:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="score" value="${parameter.getScore()}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,53 @@
|
||||
${zhiqim_manager_breadcrumb("质检绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li onclick="Z.L.href('/specialOrderTypeList.htm');">特殊订单绩效参数</li>
|
||||
<li onclick="Z.L.href('/refundParameter.htm');">退款绩效参数</li>
|
||||
<li onclick="Z.L.href('/performanceParameter.htm');">设计绩效参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li class="z-active">质检绩效参数</li>
|
||||
<li onclick="Z.L.href('/timelinessParameterList.htm');">时效绩效参数</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<#if listSize lt 1><button class="z-button ${zmr_color_class}" onclick="Z.L.href('qcPerformanceParamAdd.htm');"><i class="z-font z-add"></i>增加质检绩效参数</button></#if>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('qcPerformanceParamModify.htm', 'qcPerformanceId');"><i class="z-font z-modify"></i>修改质检绩效参数</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="6%">选择</td>
|
||||
<td width="12%">标准质检分</td>
|
||||
<td width="12%">奖励分</td>
|
||||
<td width="12%">扣罚分</td>
|
||||
<td width="12%">奖励金额(单位/元)</td>
|
||||
<td width="12%">扣罚金额(单位/元)</td>
|
||||
<td width="17%">最大奖励金额(单位/元)</td>
|
||||
<td width="17%">最大扣罚金额(单位/元)</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 8, "暂时没有质检绩效")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="qcPerformanceId" name="qcPerformanceId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getQcPerformanceId()}"></td>
|
||||
<td>${Maths.division(item.getStandardQcScore(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getRewardScore(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getPunishScore(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getRewardAmount(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getPunishAmount(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getRewardAmountMax(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getPunishAmountMax(), 100, 2)}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "qcPerformanceParam.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,43 @@
|
||||
<#def designatedPath="/qcPerformanceParam.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("qcPerformanceParam.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("qcPerformanceParam.htm?page="+page, "质检绩效参数", "增加质检绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="qcPerformanceParamInsert.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加质检绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>标准质检分:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="standardQcScore" value="12" disabled />分</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励分:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="rewardScore" data-options="type:Amount2R;paste:true;">分</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚分:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="punishScore" data-options="type:Amount2R;paste:true;">分</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmount" data-options="type:Amount2R;paste:true;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmount" data-options="type:Amount2R;paste:true;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmountMax" data-options="type:Amount2R;paste:true;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmountMax" data-options="type:Amount2R;paste:true;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,44 @@
|
||||
<#def designatedPath="/qcPerformanceParam.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("qcPerformanceParam.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("qcPerformanceParam.htm?page="+page, "质检绩效参数", "增加质检绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="qcPerformanceParamUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<input type="hidden" name ="qcPerformanceId" value="${order.getQcPerformanceId()}"/>
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改质检绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>标准质检分:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="standardQcScore" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getStandardQcScore())}" disabled />分</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励分:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="rewardScore" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getRewardScore())}">分</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚分:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="punishScore" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getPunishScore())}">分</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmount" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getRewardAmount())}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmount" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getPunishAmount())}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmountMax" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getRewardAmountMax())}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmountMax" data-options="type:Amount2R;paste:true;" value="${Amounts.toYuanMustRadix(order.getRewardAmountMax())}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,113 @@
|
||||
<#def designatedPath="/receiveMerManage.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("/receiveMerManage.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("/receiveMerManage.htm", "接单商户管理", "添加接单商户")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
var prdtypeArr = [];
|
||||
Z.onload(function(){
|
||||
|
||||
});
|
||||
|
||||
function doSelectDesignType(v)
|
||||
{
|
||||
if (Z.AR.contains(prdtypeArr, v))
|
||||
Z.AR.remove(prdtypeArr, v);
|
||||
else
|
||||
prdtypeArr.push(v);
|
||||
|
||||
if (Z("input[name=typeIds]").length == prdtypeArr.length)
|
||||
{
|
||||
Z.D.id("selectAllType").checked=true;
|
||||
Z("i[data-id=selectAllType]").addClass("z-active");
|
||||
}
|
||||
else
|
||||
{
|
||||
Z.D.id("selectAllType").checked=false;
|
||||
Z("i[data-id=selectAllType]").removeClass("z-active");
|
||||
}
|
||||
doBiuldPolicy(prdtypeArr);
|
||||
}
|
||||
|
||||
function doselctbox(box, type)
|
||||
{
|
||||
var _div = Z(box).parent().parent().siblings("div");
|
||||
Z.each(_div.find('i.z-checkbox'), function(item, i)
|
||||
{
|
||||
if (Z(item).hasClass("z-active"))
|
||||
{
|
||||
if (!box.checked)
|
||||
{
|
||||
Z(item).click();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (box.checked)
|
||||
{
|
||||
Z(item).click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (type == 1)
|
||||
{
|
||||
doBiuldPolicy(prdtypeArr)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function doSelectAllDesignType(box)
|
||||
{
|
||||
var type = Z.V.isEmptyBlank(Z.FM.getCheckBoxValue("typeIds")) ? 1 : (Z("input[name=typeIds]").length != prdtypeArr.length ? 1 : 2);
|
||||
|
||||
if (box.checked && type == 2)
|
||||
type = 1;
|
||||
|
||||
Z.FM.doSelectCheckBox('typeIds', type)
|
||||
prdtypeArr = Z.AR.toArray(Z.FM.getCheckBoxValue("typeIds"), ",");
|
||||
doBiuldPolicy(prdtypeArr);
|
||||
}
|
||||
|
||||
</script>
|
||||
<form name="theForm" action="receiveMerInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="20">添加接单组织</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25%">选择接组织:</td>
|
||||
<td width="25%">
|
||||
<select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<#for item : orgList>
|
||||
<option value="${item.getOrgId()}">${item.getOrgName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
<td width="25%">组织接单优先级:<span class="z-text-red" style="color:#D0CECE;">数字越小派单越前</span></td>
|
||||
<td width="25%">
|
||||
<input id="merLevel" name="merLevel" value="${orgMer.getMerLevel()}" class="z-input z-w200" maxlength="6" data-options="type:Decimal;paste:true;" placeholder="排序优先级(填写数字)">
|
||||
<span class="z-text-red">*</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>接单状态:</td>
|
||||
<td>
|
||||
<select id="isPauseRecieive" name="isPauseRecieive" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false" <#if orgMer.isPauseRecieive() == false>selected</#if>>开启</option>
|
||||
<option value="true" <#if orgMer.isPauseRecieive()>selected</#if>>暂停</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>组织状态:</td>
|
||||
<td>
|
||||
<select id="merStatus" name="merStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false" <#if orgMer.getMerStatus() == 0>selected</#if>>正常</option>
|
||||
<option value="true" <#if orgMer.getMerStatus() == 1>selected</#if>>停用</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,82 @@
|
||||
<#def designatedPath="/receiveMerManage.htm"/>
|
||||
${zhiqim_manager_breadcrumb("组织接单管理")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
function doModifyInfo()
|
||||
{
|
||||
var orgId = Z.FM.getChecked("orgId");
|
||||
if (Z.V.isEmpty(orgId))
|
||||
{
|
||||
Z.alert("请选择一项");
|
||||
return;
|
||||
}
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "组织接单修改";
|
||||
dialog.url = "/receiveMerModifyInfo.htm?orgId=" + orgId;
|
||||
dialog.width = 700;
|
||||
dialog.height = 250;
|
||||
dialog.execute();
|
||||
}
|
||||
|
||||
var policyModuleMap = {};
|
||||
|
||||
</script>
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">组织接单</li>
|
||||
<li onclick="Z.L.href('designerGroup.htm');">接单条件组</li>
|
||||
<li onclick="Z.L.href('designerGroupDispatch.htm');">设计师接单</li>
|
||||
<li onclick="Z.L.href('dispatchStat.htm');">派单统计</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
<form name="theForm" method="post">
|
||||
<select name="merStatus" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">全部组织状态</option>
|
||||
<option value="0" <#if merStatus == 0>selected</#if>>正常</option>
|
||||
<option value="1" <#if merStatus == 1>selected</#if>>停用</option>
|
||||
</select>
|
||||
<select name="isPauseRecieive" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false" <#if isPauseRecieive == false>selected</#if>>接单中</option>
|
||||
<option value="true" <#if isPauseRecieive == true>selected</#if>>已暂停</option>
|
||||
</select>
|
||||
<button class="z-button z-w80 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i>查询</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('/receiveMerAdd.htm');"><i class="z-font z-add"></i>增加接单组织</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="doModifyInfo();"><i class="z-font z-modify"></i>修改接单组织</button>
|
||||
<button class="z-button z-red" onclick="Z.L.confirm('/receiveMerDelete.htm', '确认要删除该接单组织吗?', 'orgId', zCallFrame);"><i class="z-font z-delete"></i>删除接单组织</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="20">选择</td>
|
||||
<td width="120">组织名称</td>
|
||||
<td width="30">优先级</td>
|
||||
<td width="40">组织状态</td>
|
||||
<td width="40">接单状态</td>
|
||||
<td width="60">最后更新时间</td>
|
||||
<td width="60">最后操作人</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 7, "无数据")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="orgId" name="orgId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOrgId()}"></td>
|
||||
<td>${ZmrOrgDao.getOrgName(request, item.getOrgId())}</td>
|
||||
<td>${item.getMerLevel()}</td>
|
||||
<td><#if item.getMerStatus() == 1><span class="z-text-red">停用</span><#else>正常</#if></td>
|
||||
<td><#if item.isPauseRecieive()><span class="z-text-red">已暂停</span><#else><span class="z-text-cyan">接单中</span></#if></td>
|
||||
<td>${Sqls.toDateTimeString(item.getModifyTime())}</td>
|
||||
<td>${item.getModifyOperatorCode()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/receiveMerManage.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,212 @@
|
||||
<#def designatedPath="/receiveMerManage.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("/receiveMerManage.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("/receiveMerManage.htm", "接单商户管理", "修改接单商户")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
var typeIdArr = [];
|
||||
var policyModules = {};
|
||||
Z.onload(function(){
|
||||
typeIdArr = Z.AR.toArray('${orgMer.getDesignTypeIds()}', ",");
|
||||
doBiuldPolicy(typeIdArr);
|
||||
});
|
||||
|
||||
function doBiuldPolicy(typeIdArr)
|
||||
{
|
||||
if (typeIdArr.length==0)
|
||||
{
|
||||
Z("#policy_div").html("");
|
||||
return;
|
||||
}
|
||||
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("ReceiveMerPresenter");
|
||||
ajax.setMethodName("doQueryPolicy");
|
||||
ajax.addParam("typeIdIds", Z.AR.toString(typeIdArr));
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
var obj = Z.J.toObject(this.responseText);
|
||||
var typeList = obj.typeList;
|
||||
var dataMap = obj.dataMap;
|
||||
|
||||
if (typeList.length == 0)
|
||||
{
|
||||
Z("#policy_div").html("");
|
||||
return;
|
||||
}
|
||||
|
||||
var html = '<table class="z-table z-bordered-line zi-bd-t-none z-lh150p">';
|
||||
Z.each(typeList, function(type, i)
|
||||
{
|
||||
var policyList = dataMap[type.typeIdId];
|
||||
var spolicyList = policyModules[type.typeIdId]
|
||||
if (!spolicyList)
|
||||
spolicyList = [];
|
||||
|
||||
if (policyList.length > 0)
|
||||
{
|
||||
var allchk = policyList.length == spolicyList.length ? 'checked' : '';
|
||||
html +='<tr>';
|
||||
html +=' <td class="zi-bd-b-none">';
|
||||
html +=' <div class="z-pd3 z-bold z-pointer"><input type="checkbox" '+allchk+' data-role="z-checkbox" onclick="doselctbox(this)"data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+type.typeIdName+'</span></div>';
|
||||
html +=' <div class="z-float-left z-pd10">';
|
||||
Z.each(policyList, function(policy, j)
|
||||
{
|
||||
var checked = Z.AR.contains(spolicyList, policy.policyId) ? 'checked' : '';
|
||||
html +=' <div class="z-float-left" style="width:110px"><span class="z-pd10 z-pointer z-text-ellipsis" style="max-width:100px" title="'+policy.policyName+'"><input type="checkbox" '+checked+' name="policyId'+type.typeIdId+'" data-role="z-checkbox" value="'+policy.policyId+'" data-class="z-blue"/><span class="z-pd5" onclick="Z(this).parent().find(\'zcover>i.z-checkbox\').click();">'+policy.policyName+'</span></span></div>';
|
||||
});
|
||||
html +=' </div>';
|
||||
html +=' </td>';
|
||||
html +=' </tr>';
|
||||
}
|
||||
});
|
||||
|
||||
html +='</table>';
|
||||
Z("#policy_div").htmlc(html);
|
||||
});
|
||||
ajax.execute();
|
||||
}
|
||||
|
||||
function doSelectDesignType(v)
|
||||
{
|
||||
if (Z.AR.contains(typeIdArr, v))
|
||||
{
|
||||
Z.AR.remove(typeIdArr, v);
|
||||
}
|
||||
else
|
||||
{
|
||||
typeIdArr.push(v);
|
||||
policyModules[v*1]=[];
|
||||
}
|
||||
|
||||
if (Z("input[name=typeIdIds]").length == typeIdArr.length)
|
||||
{
|
||||
Z.D.id("selectAllType").checked=true;
|
||||
Z("i[data-id=selectAllType]").addClass("z-active");
|
||||
}
|
||||
else
|
||||
{
|
||||
Z.D.id("selectAllType").checked=false;
|
||||
Z("i[data-id=selectAllType]").removeClass("z-active");
|
||||
}
|
||||
doBiuldPolicy(typeIdArr);
|
||||
}
|
||||
|
||||
function doselctbox(box, type)
|
||||
{
|
||||
var _div = Z(box).parent().parent().siblings("div");
|
||||
Z.each(_div.find('i.z-checkbox'), function(item, i)
|
||||
{
|
||||
if (Z(item).hasClass("z-active"))
|
||||
{
|
||||
if (!box.checked)
|
||||
{
|
||||
Z(item).click();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (box.checked)
|
||||
{
|
||||
Z(item).click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (type == 1)
|
||||
{
|
||||
doBiuldPolicy(typeIdArr)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function doSelectAllDesignType(box)
|
||||
{
|
||||
var type = Z.V.isEmptyBlank(Z.FM.getCheckBoxValue("typeIds")) ? 1 : (Z("input[name=typeIds]").length != typeIdArr.length ? 1 : 2);
|
||||
if (box.checked && type == 2)
|
||||
type = 1;
|
||||
|
||||
Z.FM.doSelectCheckBox('typeIds', type)
|
||||
typeIdArr = Z.AR.toArray(Z.FM.getCheckBoxValue("typeIds"), ",");
|
||||
doBiuldPolicy(typeIdArr);
|
||||
}
|
||||
|
||||
function doBiuldPolicy(typeIdArr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<form name="theForm" action="receiveMerUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="20">修改接单商户</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25%">选择接单商户:</td>
|
||||
<td width="25%">
|
||||
<select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<#for item : orgList>
|
||||
<#if item.getOrgId()==orgMer.getOrgId()>
|
||||
<option value="${item.getOrgId()}">${item.getOrgName()}</option>
|
||||
</#if>
|
||||
</#for>
|
||||
</select>
|
||||
</td>
|
||||
<td width="25%">商户排序优先级:<span class="z-text-red" style="color:#D0CECE;">数字越小排序越前</span></td>
|
||||
<td width="25%">
|
||||
<input id="merLevel" name="merLevel" value="${orgMer.getMerLevel()}" class="z-input z-w200" maxlength="6" data-options="type:Decimal;paste:true;" placeholder="排序优先级(填写数字)">
|
||||
<span class="z-text-red">*</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>接单状态:</td>
|
||||
<td>
|
||||
<select id="isPauseRecieive" name="isPauseRecieive" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false" <#if orgMer.isPauseRecieive() == false>selected</#if>>开启</option>
|
||||
<option value="true" <#if orgMer.isPauseRecieive()>selected</#if>>暂停</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>商户状态:</td>
|
||||
<td>
|
||||
<select id="merStatus" name="merStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0" <#if orgMer.getMerStatus() == 0>selected</#if>>正常</option>
|
||||
<option value="1" <#if orgMer.getMerStatus() == 1>selected</#if>>停用</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>个人同时最大接单量:<span class="z-text-red" style="color:#D0CECE;">个人正在设计订单总数(老用户订单派单除外)</span></td>
|
||||
<td>
|
||||
<input id="personalMaxOrder" name="personalMaxOrder" value="${orgMer.getPersonalMaxOrder()}" class="z-input z-w200" maxlength="6" data-options="type:Decimal;paste:true;" placeholder="最大接单量(填写数字)">
|
||||
<span class="z-text-red">*</span>
|
||||
</td>
|
||||
<td>个人非加急订单最大接单量:<span class="z-text-red" style="color:#D0CECE;">普通订单正在设计数量</span></td>
|
||||
<td>
|
||||
<input id="personalMaxOrdinaryOrder" name="personalMaxOrdinaryOrder" value="${orgMer.getPersonalMaxOrdinaryOrder()}" class="z-input z-w200" data-options="type:Decimal;paste:true;" maxlength="6" placeholder="最大未领单量(填写数字)">
|
||||
<span class="z-text-red">*</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支持店铺:</td>
|
||||
<td colspan="3">
|
||||
<div class="z-pd3 z-bold z-pointer">
|
||||
<input type="checkbox" id="selectAllShop" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('orderShop', this.checked ? 1 : 2);" <#if Lists.toStringList(orgMer.getOrderShop()).size()==shopList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
|
||||
</div>
|
||||
<div class="z-float-left z-pd6">
|
||||
<#var merShop = Lists.toStringList(orgMer.getOrderShop())/>
|
||||
<#for item : shopList>
|
||||
<div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
|
||||
<input type="checkbox" name="orderShop" onclick="" <#if merShop.contains(item)>checked</#if> class="z-checkbox" value="${item}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item}</span>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,57 @@
|
||||
<script>
|
||||
function doModify()
|
||||
{
|
||||
var ajax = new Z.Ajax();
|
||||
ajax.setClassName("com.zhiqim.yangcai.design.action.sys.ReceiveMerModifyAction");
|
||||
ajax.setMethodName("update");
|
||||
ajax.addParam("orgId", document.modifyForm.orgId.value);
|
||||
ajax.addParam("merStatus", document.modifyForm.merStatus.value);
|
||||
ajax.addParam("isPauseRecieive", document.modifyForm.isPauseRecieive.value);
|
||||
ajax.addParam("merLevel", document.modifyForm.merLevel.value);
|
||||
ajax.setFailureAlert();
|
||||
ajax.setSuccess(function(){
|
||||
parent.location.reload();
|
||||
});
|
||||
ajax.setLoading("doModifyBtn", '保存', {disabled:true});
|
||||
ajax.execute();
|
||||
}
|
||||
</script>
|
||||
|
||||
<form name="modifyForm" action="" method="post" onSubmit="void(0)" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr>
|
||||
<td width="160">选择接单商户:</td>
|
||||
<td width="*">
|
||||
<select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="${orgMer.getOrgId()}">${ZmrOrgDao.getOrgName(request, orgMer.getOrgId())}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>组织状态:</td>
|
||||
<td>
|
||||
<select id="merStatus" name="merStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="0" <#if orgMer.getMerStatus() == 0>selected</#if>>正常</option>
|
||||
<option value="1" <#if orgMer.getMerStatus() == 1>selected</#if>>停用</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>接单状态:</td>
|
||||
<td>
|
||||
<select id="isPauseRecieive" name="isPauseRecieive" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false" <#if orgMer.isPauseRecieive() == false>selected</#if>>开启</option>
|
||||
<option value="true" <#if orgMer.isPauseRecieive()>selected</#if>>暂停</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>接单优先级:</td>
|
||||
<td>
|
||||
<input id="merLevel" name="merLevel" value="${orgMer.getMerLevel()}" class="z-input z-w200" maxlength="6" data-options="type:Decimal;paste:true;" placeholder="排序优先级(填写数字)">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<#-- 操作 -->
|
||||
<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
|
||||
<button type="button" id="doModifyBtn" class="z-button z-large z-w120 z-blue" onclick="doModify();">保存</button>
|
||||
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">取消</button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,57 @@
|
||||
${zhiqim_manager_breadcrumb("退款绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li onclick="Z.L.href('/specialOrderTypeList.htm');">特殊订单绩效参数</li>
|
||||
<li class="z-active">退款绩效参数</li>
|
||||
<li onclick="Z.L.href('/performanceParameter.htm');">设计绩效参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/qcPerformanceParam.htm');">质检绩效参数</li>
|
||||
<li onclick="Z.L.href('/timelinessParameterList.htm');">时效绩效参数</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<!--<button class="z-button ${zmr_color_class}" onclick="Z.L.href('refundParameterAdd.htm');"><i class="z-font z-add"></i>增加退款绩效参数</button>-->
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('refundParameterModify.htm', 'parameterId');"><i class="z-font z-modify"></i>修改退款绩效参数</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="10%">标准退款率(%)</td>
|
||||
<td width="10%">标准退款率下限(%)</td>
|
||||
<td width="10%">标准退款率上限(%)</td>
|
||||
<td width="10%">奖励点(%)</td>
|
||||
<td width="10%">扣罚点(%)</td>
|
||||
<td width="10%">奖励金额(单位/元)</td>
|
||||
<td width="10%">扣罚金额(单位/元)</td>
|
||||
<td width="12%">最大奖励金额(单位/元)</td>
|
||||
<td width="12%">最大扣罚金额(单位/元)</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有退款绩效")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="parameterId" name="parameterId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getRefundParameterId()}"></td>
|
||||
<td>${Maths.division(item.getStandardRefundRate(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getStandardRefundRateFloor(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getStandardRefundRateCeil(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getRewardDot(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getPunishDot(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getRewardAmount(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getPunishAmount(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getRewardAmountMax(), 100, 2)}</td>
|
||||
<td>${Maths.division(item.getPunishAmountMax(), 100, 2)}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "refundParameter.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,52 @@
|
||||
<#def designatedPath="/refundParameter.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("refundParameter.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("refundParameter.htm?page="+page, "退款绩效参数", "增加退款绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="refundParameterInsert.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加退款绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>标准退款率:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="standardRefundRate">%</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>标准退款率下限:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="floor">%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>标准退款率上限:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="ceil" >%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励点:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="rewardDot" >%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚点:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="punishDot" >%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmount"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmount"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmountMax"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmountMax"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,53 @@
|
||||
<#def designatedPath="/refundParameter.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("refundParameter.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("refundParameter.htm?page="+page, "退款绩效参数", "修改退款绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="refundParameterUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="parameterId" type="hidden" value="${item.getRefundParameterId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改退款绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>标准退款率:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="standardRefundRate" value="${Maths.division(item.getStandardRefundRate(), 100, 2)}">%</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>标准退款率下限:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="floor" value="${Maths.division(item.getStandardRefundRateFloor(), 100, 2)}">%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>标准退款率上限:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="ceil" value="${Maths.division(item.getStandardRefundRateCeil(), 100, 2)}">%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励点:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="rewardDot" value="${Maths.division(item.getRewardDot(), 100, 2)}">%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚点:<span class="z-color-999">(请输入数字,允许小数)</span></td>
|
||||
<td><input class="z-input z-w300 z-mg-r5 ${zmr_color_class}" name="punishDot" value="${Maths.division(item.getPunishDot(), 100, 2)}">%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmount" value="${Amounts.toYuan(item.getRewardAmount())}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmount" value="${Amounts.toYuan(item.getPunishAmount())}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="rewardAmountMax" value="${Amounts.toYuan(item.getRewardAmountMax())}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>最大扣罚金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="punishAmountMax" value="${Amounts.toYuan(item.getPunishAmountMax())}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,31 @@
|
||||
<#def designatedPath="/specialOrderTypeList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("specialOrderTypeList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("specialOrderTypeList.htm", "特殊订单绩效参数", "增加订单绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="specialOrderTypeInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加订单绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>特殊订单类型:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input name="specialOrderType" id="specialOrderType" class="z-input z-w400 ${zmr_color_class}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>特殊订单类型描述:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input name="specialOrderDescribe" class="z-input z-w400 ${zmr_color_class}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w400 ${zmr_color_class}" name="specialOrderAmount" placeholder="请输入数字" onkeyup="this.value=this.value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,46 @@
|
||||
${zhiqim_manager_breadcrumb("特殊订单绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li class="z-active">特殊订单绩效参数</li>
|
||||
<li onclick="Z.L.href('/refundParameter.htm');">退款绩效参数</li>
|
||||
<li onclick="Z.L.href('/performanceParameter.htm');">设计绩效参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/qcPerformanceParam.htm');">质检绩效参数</li>
|
||||
<li onclick="Z.L.href('/timelinessParameterList.htm');">时效绩效参数</li>
|
||||
</ul>
|
||||
<div class="z-float-left z-mg10">
|
||||
</div>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('specialOrderTypeAdd.htm');"><i class="z-font z-add"></i>增加订单绩效参数</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('specialOrderTypeModify.htm', 'typeId');"><i class="z-font z-modify"></i>修改订单绩效参数</button>
|
||||
<button class="z-button z-red" onclick="Z.L.check('specialOrderTypeDelete.htm', 'typeId');"><i class="z-font z-delete"></i>删除订单绩效参数</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="400">特殊订单类型</td>
|
||||
<td width="*">特殊订单描述</td>
|
||||
<td width="200">特殊订单类型奖励金额</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有特殊订单类型")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="typeId" name="typeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getSpecialTypeId()}"></td>
|
||||
<td>${item.getSpecialOrderType()}</td>
|
||||
<td>${item.getSpecialOrderDescribe()}</td>
|
||||
<td>${Maths.division(item.getSpecialOrderAmount(), 100, 2)}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "specialOrderTypeList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,29 @@
|
||||
<#def designatedPath="/specialOrderTypeList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("specialOrderTypeList.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("specialOrderTypeList.htm?page="+page, "特殊订单绩效参数", "修改订单绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="specialOrderTypeUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="typeId" type="hidden" value="${item.getSpecialTypeId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改订单绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>特殊订单类型:<span class="z-color-999"></span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="specialOrderType" value="${item.getSpecialOrderType()}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>特殊订单类型描述:<span class="z-color-999"></span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="specialOrderDescribe" value="${item.getSpecialOrderDescribe()}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td><input class="z-input z-w300 ${zmr_color_class}" name="specialOrderAmount" value="${Amounts.toYuan(item.getSpecialOrderAmount())}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,61 @@
|
||||
<#def designatedPath="/teamManagement.htm"/>
|
||||
${zhiqim_manager_breadcrumb("团队管理")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function queryDetail(){
|
||||
|
||||
var designId = Z.FM.getCheckBoxValue("teamId");
|
||||
if (Z.V.isEmpty(designId))
|
||||
{
|
||||
Z.alert("请选择一条订单");
|
||||
return;
|
||||
}
|
||||
// 打开一个新窗口
|
||||
open('/teamManagementUpdate.htm?merchantId='+designId);
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('orderMerchantList.htm')">商家列表</li>
|
||||
<#if ZmrPathRule.check(request, "/apiInvokeLog.htm")><li onclick="Z.L.href('apiInvokeLog.htm')">接口日志</li></#if>
|
||||
<li class="z-active">团队管理</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('teamManagementAdd.htm');"><i class="z-font z-add"></i>增加团队</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="queryDetail()"><i class="z-font z-modify"></i>修改团队</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td width="20%">团队ID</td>
|
||||
<td width="*">商户名称</td>
|
||||
<td width="300">团队成员</td>
|
||||
<td width="120">状态</td>
|
||||
<td width="120">团队主管</td>
|
||||
<td width="120">指定组织</td>
|
||||
<td width="120">团队名称</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 4, "暂时没有商家信息")}
|
||||
<#for item : merchantList>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input name="teamId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getTeamId()}"></td>
|
||||
<td>${item.getTeamId()}</td>
|
||||
<td>${item.getMerchantName()}</td>
|
||||
<td>${item.getTeamSecret()}</td>
|
||||
<td><#if item.isEnabled()>正常<#else><span class="z-text-red">停用</span></#if></td>
|
||||
<td>${item.getDeptTeam()}</td>
|
||||
<td>${item.getDeptOrg()}</td>
|
||||
<td>${item.getTeamName()}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/teamManagement.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,100 @@
|
||||
<#def designatedPath="/teamManagement.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("teamManagement.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("teamManagement.htm", "商家管理", "增加商家")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function queryDetail(){
|
||||
|
||||
// 打开一个新窗口
|
||||
var childWindow = window.open('/teamDesignerManage.htm', '子窗口', 'width=1000,height=700');
|
||||
|
||||
}
|
||||
function toList(){
|
||||
|
||||
// 打开一个新窗口
|
||||
var childWindow = window.open('/teamMerchantList.htm', '子窗口', 'width=1000,height=700');
|
||||
|
||||
}
|
||||
function deptTeams(){
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "选择操作员";
|
||||
dialog.url = "deptTeam.htm";
|
||||
dialog.width = 392;
|
||||
dialog.height = 423;
|
||||
dialog.fixed = true;
|
||||
dialog.execute();
|
||||
|
||||
|
||||
|
||||
}
|
||||
function deptOrgs(){
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "指定组织";
|
||||
dialog.url = "/deptOrg.htm";
|
||||
dialog.width = 400;
|
||||
dialog.height = 250;
|
||||
dialog.execute();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<form action="teamManagementAddTeam.htm" method="post" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加团队</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>商户名称</td>
|
||||
<td>
|
||||
<div class="z-float-left"><textarea id="merchantName" name="merchantName" class="z-textarea z-w300 z-h120"></textarea></div>
|
||||
<div class="z-float-left z-mg-l10"><button type="button" onclick="toList()" class="z-button z-cyan">增加商户</button></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计师团队</td>
|
||||
<td>
|
||||
<div class="z-float-left"><textarea id="teamSecret" name="teamSecret" class="z-textarea z-w300 z-h120"></textarea></div>
|
||||
<div class="z-float-left z-mg-l10"><button type="button" onclick="queryDetail()" class="z-button z-cyan">增加设计师</button></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商家状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="true">正常</option>
|
||||
<option value="false">停用</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>团队主管:<span class="z-color-999">(请选择)</span></td>
|
||||
<td><input id="deptTeam" name="deptTeam" class="z-input z-w400 ${zmr_color_class}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <div class="z-float-left z-mg-l10"><button type="button" onclick="deptTeams()" class="z-button z-cyan">增加主管</button></div></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>对应组织:<span class="z-color-999">(请选择)</span></td>
|
||||
<td><input id="deptOrg" name="deptOrg" class="z-input z-w400 ${zmr_color_class}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <div class="z-float-left z-mg-l10"><button type="button" onclick="deptOrgs()" class="z-button z-cyan">增加组织</button></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>团队名称:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input id="teamName" name="teamName" class="z-input z-w400 ${zmr_color_class}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,103 @@
|
||||
<#def designatedPath="/teamManagementUpdate.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("teamManagement.htm")}
|
||||
${zhiqim_manager_breadcrumb_parent("teamManagement.htm", "商家管理", "修改商家")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<script>
|
||||
function queryDetail(){
|
||||
|
||||
// 打开一个新窗口
|
||||
var childWindow = window.open('/teamDesignerManage.htm', '子窗口', 'width=1000,height=700');
|
||||
|
||||
}
|
||||
function toList(){
|
||||
|
||||
// 打开一个新窗口
|
||||
var childWindow = window.open('/teamMerchantList.htm', '子窗口', 'width=1000,height=700');
|
||||
|
||||
}
|
||||
|
||||
function deptTeams(){
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "选择操作员";
|
||||
dialog.url = "deptTeam.htm";
|
||||
dialog.width = 392;
|
||||
dialog.height = 423;
|
||||
dialog.fixed = true;
|
||||
dialog.execute();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function deptOrgs(){
|
||||
|
||||
var dialog = new Z.Dialog();
|
||||
dialog.title = "指定组织";
|
||||
dialog.url = "/deptOrg.htm";
|
||||
dialog.width = 400;
|
||||
dialog.height = 250;
|
||||
dialog.execute();
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<form action="orderMerchantUpdateTeam.htm" method="post" data-role="z-call-frame">
|
||||
<input name="merchantId" type="hidden" value="${merchantId}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改团队</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>商户名称</td>
|
||||
<td>
|
||||
<div class="z-float-left"><textarea id="merchantName" name="merchantName" class="z-textarea z-w300 z-h120" >${merchant.getMerchantName()}</textarea></div>
|
||||
<div class="z-float-left z-mg-l10"><button type="button" onclick="toList()" class="z-button z-cyan">增加商户</button></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>设计师团队</td>
|
||||
<td>
|
||||
<div class="z-float-left"><textarea id="teamSecret" name="teamSecret" class="z-textarea z-w300 z-h120" >${merchant.getTeamSecret()}</textarea></div>
|
||||
<div class="z-float-left z-mg-l10"><button type="button" onclick="queryDetail()" class="z-button z-cyan">增加设计师</button></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商家状态:<span class="z-color-999">(请选择)</span></td>
|
||||
<td>
|
||||
<select name="isEnabled" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="false">停用</option>
|
||||
<option value="true" <#if merchant.isEnabled()>selected</#if>>正常</option>
|
||||
</select><span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>团队主管:<span class="z-color-999">(请选择)</span></td>
|
||||
<td><input id="deptTeam" name="deptTeam" class="z-input z-w400 ${zmr_color_class}" value="${merchant.getDeptTeam()}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <div class="z-float-left z-mg-l10"><button type="button" onclick="deptTeams()" class="z-button z-cyan">增加主管</button></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>对应组织:<span class="z-color-999">(请选择)</span></td>
|
||||
<td><input id="deptOrg" name="deptOrg" class="z-input z-w400 ${zmr_color_class}" value="${merchant.getDeptOrg()}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> <div class="z-float-left z-mg-l10"><button type="button" onclick="deptOrgs()" class="z-button z-cyan">增加组织</button></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>团队名称:<span class="z-color-999">(请填写)</span></td>
|
||||
<td><input name="teamName" class="z-input z-w400 ${zmr_color_class}" value="${merchant.getTeamName()}"><span class="z-color-red"> *</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,56 @@
|
||||
<#def designatedPath="/orderMerchantList.htm"/>
|
||||
${zhiqim_manager_breadcrumb("商家管理")}
|
||||
${zhiqim_manager_content()}
|
||||
<script>
|
||||
function exportData(){
|
||||
var designIds = Z.FM.getCheckBoxValue("merchantName");
|
||||
console.log(designIds);
|
||||
|
||||
var parentInput = window.opener.document.getElementById('merchantName');
|
||||
if (parentInput) {
|
||||
if(parentInput.value != ''){
|
||||
parentInput.value = parentInput.value+','+designIds;
|
||||
}else{
|
||||
parentInput.value = designIds;
|
||||
}
|
||||
}
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="z-active">商家列表</li>
|
||||
</ul>
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="exportData()"><i class="z-font z-add"></i>保存商户</button>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="30"><input name="allDesignId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${pageResult.pageNo()}" onclick="Z.FM.doSelectCheckBox('merchantName', this.checked);"> 选择</td>
|
||||
<td width="20%">商家ID</td>
|
||||
<td width="*">商家名称</td>
|
||||
<td width="500">商家秘钥</td>
|
||||
<td width="120">状态</td>
|
||||
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 4, "暂时没有商家信息")}
|
||||
<#for item : merchantList>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input name="merchantName" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getMerchantName()}"></td>
|
||||
<td>${item.getMerchantId()}</td>
|
||||
<td>${item.getMerchantName()}</td>
|
||||
<td>${item.getMerchantSecret()}</td>
|
||||
<td><#if item.isEnabled()>正常<#else><span class="z-text-red">停用</span></#if></td>
|
||||
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "/orderMerchantList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,34 @@
|
||||
<#def designatedPath="/timelinessParameterList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("timelinessParameterList.htm")}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("timelinessParameterList.htm", "时效绩效参数", "增加时效绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="timelinessParameterInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">增加时效绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>产品类型</td>
|
||||
<td>
|
||||
<select name="prdTypeId" class="z-select z-w400" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">请选择</option>
|
||||
<#for item : prdTypeList>
|
||||
<option value="${item.getTypeId()}">${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w400 ${zmr_color_class}" name="rewardAmount" placeholder="请输入金额" onkeyup="this.value=this.value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,43 @@
|
||||
${zhiqim_manager_breadcrumb("时效绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
|
||||
<#-- 导航 -->
|
||||
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
||||
<nav>
|
||||
<ul>
|
||||
<li onclick="Z.L.href('/orderConvertList.htm');">订单折算参数</li>
|
||||
<li onclick="Z.L.href('/specialOrderTypeList.htm');">特殊订单绩效参数</li>
|
||||
<li onclick="Z.L.href('/refundParameter.htm');">退款绩效参数</li>
|
||||
<li onclick="Z.L.href('/performanceParameter.htm');">设计绩效参数</li>
|
||||
<li onclick="Z.L.href('/qcParameter.htm');">质检参数</li>
|
||||
<li onclick="Z.L.href('/qcAwardedType.htm');">质检加分管理</li>
|
||||
<li onclick="Z.L.href('/qcPerformanceParam.htm');">质检绩效参数</li>
|
||||
<li class="z-active">时效绩效参数</li>
|
||||
</ul>
|
||||
|
||||
<div class="z-text-right z-mg-t10 z-mg-r5">
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('timelinessParameterAdd.htm');"><i class="z-font z-add"></i>增加时效绩效参数</button>
|
||||
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('timelinessParameterModify.htm', 'timelinessParameterId');"><i class="z-font z-modify"></i>修改时效绩效参数</button>
|
||||
<button class="z-button z-red" onclick="Z.L.check('timelinessParameterDelete.htm', 'timelinessParameterId');"><i class="z-font z-delete"></i>删除时效绩效参数</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<#-- 列表 -->
|
||||
<table class="z-table z-bordered z-h40-tr z-pd5 z-bg-white z-text-center">
|
||||
<tr bgcolor="${zmr_thead_bgcolor}">
|
||||
<td width="100">选择</td>
|
||||
<td>产品类型</td>
|
||||
<td>奖励金额</td>
|
||||
</tr>
|
||||
${zhiqim_manager_tr_no_record(pageResult, 10, "暂时没有时效绩效参数")}
|
||||
<#for item : pageResult.list()>
|
||||
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
||||
<td><input id="timelinessParameterId" name="timelinessParameterId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getTimelinessParameterId()}"></td>
|
||||
<td>${prdTypeMap.get(item.getPrdTypeId()).getTypeName()}</td>
|
||||
<td>${Maths.division(item.getRewardAmount(), 100, 2)}</td>
|
||||
</tr>
|
||||
</#for>
|
||||
</table>
|
||||
${zhiqim_manager_paging(pageResult, "timelinessParameterList.htm")}
|
||||
${zhiqim_manager_content_end()}
|
||||
@@ -0,0 +1,35 @@
|
||||
<#def designatedPath="/timelinessParameterList.htm"/>
|
||||
${request.getValidateScript()}
|
||||
${zhiqim_manager_history("timelinessParameterList.htm?page="+page)}
|
||||
|
||||
${zhiqim_manager_breadcrumb_parent("timelinessParameterList.htm?page="+page, "时效绩效参数", "修改时效绩效参数")}
|
||||
${zhiqim_manager_content()}
|
||||
<form name="theForm" action="timelinessParameterUpdate.htm?page=${page}" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
|
||||
<input name="timelinessParameterId" type="hidden" value="${timelinessParameter.getTimelinessParameterId()}">
|
||||
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
|
||||
<tr class="zi-h40 z-bg-gray z-bold">
|
||||
<td colspan="2">修改订单绩效参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>产品类型</td>
|
||||
<td>
|
||||
<select name="prdTypeId" class="z-select z-w400" data-role="z-select" data-class="${zmr_color_class}">
|
||||
<option value="">请选择</option>
|
||||
<#for item : prdTypeList>
|
||||
<option value="${item.getTypeId()}" <#if timelinessParameter.getPrdTypeId() == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
|
||||
</#for>
|
||||
</select>
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>奖励金额:<span class="z-color-999">(单位/元)</span></td>
|
||||
<td>
|
||||
<input class="z-input z-w400 ${zmr_color_class}" value="${Maths.division(timelinessParameter.getRewardAmount(),100,2)}" name="rewardAmount" placeholder="请输入金额" onkeyup="this.value=this.value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
||||
<span class="z-color-red"> *</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
${zhiqim_manager_submit()}
|
||||
</form>
|
||||
${zhiqim_manager_content_end()}
|
||||
Reference in New Issue
Block a user