Files
ziqim/Yangcai365_design/manage/zview/zhiqim_manager/operatorModify.zml
T
2025-02-20 14:58:55 +08:00

136 lines
5.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
${zhiqim_manager_history("operator.htm")}
${request.getValidateScript()}
<script>
var dialog;
function doRandomPass()
{
var random = Z.random(4, 4) + Z.random(1, 9) + Z.random(3, 1);
Z("#randomPass").text(random);
Z(theForm.operatorPass).val(random);
}
function doSumbitOperator(form){
var form = document.getElementById("operatorForm");
if(validateForm(form)){
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("OperatorOrderPresenter");
ajax.setMethodName("operatorUpdate");
ajax.setParamForm(form);
ajax.setFailure(function(){
var msg = this.responseText;
if(msg.indexOf("请注意") == -1){
Z.failure(msg);
} else{
dialog = new Z.Dialog();
dialog.id = "operatorDialog";
dialog.title = "失败";
dialog.text = '<div id="dialog_content"></div>';
dialog.width = 450;
dialog.height = 120;
dialog.execute();
dialog.$background.remove();//去边框
Z("#dialog_content").parent().htmlc(`
<div class="z-container">
<i class="z-ico z-failure"></i>
<span>
<textarea class="z-bd-none z-overflow-hidden z-w100p zi-pd0 zi-px14 z-text-break" style="height:44px;line-height:22px;" readonly="">`+ msg +`</textarea>
</span>
</div>
<div class="z-console">
<button type="button" class="z-button z-blue z-cancel" onclick="downloadErpOperatorOrder();">下载未处理订单</button>
</div>
`);
}
});
ajax.setSuccessAlertReloadParent("修改成功");
ajax.execute();
}
return false;
}
function downloadErpOperatorOrder(){
Z("#theForm")[0].action = "/downloadDesignOperatorOrder.htm";
Z("#theForm")[0].submit();
dialog.close();
}
</script>
${zhiqim_manager_breadcrumb_parent("operator.htm" "操作员管理" "修改操作员")}
${zhiqim_manager_content()}
<form name="theForm" method="post" id="theForm" style="display:none;">
<input type="hidden" name="operatorCode" value="#{operator.getOperatorCode()}">
</form>
<form name="theForm" onsubmit="return false;" data-role="z-call-frame" id="operatorForm">
<input type="text" class="z-hidden-fixed"/>
<input type="password" class="z-hidden-fixed"/>
<input name="operatorCode" type="hidden" value="${operator.getOperatorCode()}">
<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%">操作员编码:</td>
<td width="*">${operator.getOperatorCode()}</td>
</tr>
<tr>
<td>操作员名称:<span class="z-color-999">64位不定长字符)</span></td>
<td><input name="operatorName" class="z-input z-w300 ${zmr_color_class}" value="#{operator.getOperatorName()}" maxlength="64"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td>操作员密码:<span class="z-color-999">(为空表示不修改,如果修改请输入6-16位密码,大小写字母数字特殊字符必须四选三,特殊字符支持<span class="z-samp">._-`~!@#$%</span></span></td>
<td><input name="operatorPass" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16">&nbsp<button type="button" class="z-button z-h30" onclick="doRandomPass()">随机</button>&nbsp<span id="randomPass" class="z-samp"></span></td>
</tr>
<tr>
<td>操作员状态:<span class="z-color-999">(停用或正常)</span></td>
<td>
<select name="operatorStatus" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}">
<option value="0" <#if operator.getOperatorStatus()=0>selected</#if>>正常</option>
<option value="1" <#if operator.getOperatorStatus()=1>selected</#if>>停用</option>
</select>
<span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>操作员手机号:</td>
<td><input name="operatorMobile" class="z-input z-w300 ${zmr_color_class}" value="${operator.getOperatorMobile()}" maxlength="21"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<tr>
<td>操作员个人微信号:</td>
<td><input name="operatorWxcode" class="z-input z-w300 ${zmr_color_class}" value="${operator.getOperatorWxcode()}" maxlength="64"><span class="z-color-red">&nbsp;*</span></td>
</tr>
<#if ZmrSuperAdminRule.check(request)>
<tr>
<td>操作员类型:<span class="z-color-999">(管理员或操作员)</span></td>
<td>
<select name="operatorType" class="z-select z-w300" data-role="z-select" data-class="${zmr_color_class}" >
<option value="2" <#if operator.getOperatorType()==2>selected</#if>>操作员</option>
<option value="1" <#if operator.getOperatorType()==1>selected</#if>>管理员</option>
</select>
<span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<#else>
<tr>
<td>操作员类型:<span class="z-color-999"></span></td>
<td>
<input type="hidden" name="operatorType" value="${operator.getOperatorType()}">
<#if operator.getOperatorType()=2>操作员</#if>
<#if operator.getOperatorType()=1><span class="z-color-red">管理员</span></#if>
<#if operator.getOperatorType()=0><span class="z-color-red">超级管理员</span></#if>
</td>
</tr>
</#if>
</table>
<table class="z-table zi-bd zi-bd-t-none z-pd10 z-bg-white">
<tbody><tr class="z-h80">
<td width="40%"><a href="javascript:returnHistory();">返回上一页</a></td>
<td width="*"><button type="button" onclick="doSumbitOperator();" class="z-button z-large z-w150 z-blue">提交</button></td>
</tr>
</tbody></table>
</form>
${zhiqim_manager_content_end()}