first commit

This commit is contained in:
2025-02-20 14:59:35 +08:00
parent d7be84fac6
commit d4a3bb8ffc
2541 changed files with 336536 additions and 0 deletions
@@ -0,0 +1,111 @@
<script>
function showToggle(dutyTime,subscribeNum = 0,recordId = 0)
{//修改
var addreasonTile = '';
var content = '<form name="addForm" action="javascript:void(0)" style="text-align: center;">';
content += '<input name="recordId" type="hidden" value="'+recordId+'">';
content += '<input name="dutyTime" type="hidden" value="'+dutyTime+'">';
content += '<input name="maxQuota" type="hidden" value="'+${maxQuota}+'">';
content += '<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">';
var height = 200;
content += ' <tr>';
content += ' <td>预约数量:</td>';
content += ' <td><input value="' + (subscribeNum?subscribeNum:"") + '" name="subscribeNum" class="z-input z-w200"></td>';
content += ' </tr>';
content += '</table>';
content += '<span style="color:#ea4a36;">注:未达成预约目标将会降低预约达成率,从而影响订单预约上限,请认真对待!</span>';
content += '<div class="z-absolute z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">';
content += ' <button id="addSubcribeBtn" class="z-button z-large z-w150 z-blue" onclick="doToggle(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="addSubcribeTile"></span>', text:'<div id="addSubcribeContent"></div>',width:460,height:height, shadow:true});
Z("#addSubcribeContent").htmlc(content);
Z("#addSubcribeTile").htmlc("订单预约");
}
function doToggle(form)
{
var ajax = new Z.Ajax();
ajax.setClassName("DesignerSubscribePresenter");
ajax.setMethodName("doToggle");
ajax.setParamForm(form);
ajax.setFailureAlert();
ajax.setSuccess(function(){
location.reload();
parent.Z.success('预约成功');
});
ajax.setLoading("addSubcribeBtn", "正在预约", {disabled:true})
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("订单预约")}
${zhiqim_manager_content()}
<#-- 列表 -->
<table class="z-table zi-bd zi-bd-b-none z-pd5 z-bg-white">
<tr class="z-h40">
<td width="*" class="z-bold z-px15 z-text-left">设计师:${operatorCode}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 等级:${designerLever}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最大预约单量:${maxQuota} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;近20次预约总接单:${sumFinishedNum20}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 近20次预约平均接单量:${avgFinishedNum20} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 近20次预约达成率:${okRate20}</td>
<td width="300" class="z-text-right">
<a href="?curr=true" style="padding:4px 10px;background-color:#00a2eb;border-radius:3px;color:#ffffff;">今</a>
<a href="?prev=true&type=year&year=${year}&month=${month}" style="padding:4px;"><</a>
${year}年
<a href="?next=true&type=year&year=${year}&month=${month}" style="padding:4px;">></a>
<a href="?prev=true&type=month&year=${year}&month=${month}" style="padding:4px;"><</a>
${month}月
<a href="?next=true&type=month&year=${year}&month=${month}" style="padding:4px;">></a>
</td>
</tr>
</table>
<#-- 列表 -->
<table class="z-table z-bordered z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="14%">周日</td>
<td width="14%">周一</td>
<td width="14%">周二</td>
<td width="14%">周三</td>
<td width="14%">周四</td>
<td width="14%">周五</td>
<td width="14%">周六</td>
</tr>
<#for item : list>
<#if item_index % 7 == 0>
<tr class="z-h100">
</#if>
<td class="" <#if item.getDutyTime() == today>style="background-color:#f5f5f5;"</#if>>
<div class="z-pd3" style="line-height:2;text-align:left;">
<span style="margin:0px 0px 0px 10px; color:#bbbbbb;">${item.getDay()}号 ${item.getLunarDay()}</span>
<#if item.getSubscribeState() == 1>
<span class="z-float-right" style="width:8px;height:8px;border-radius:50%;background-color:#bbbbbb;margin:0px 10px 0px 0px"></span>
<#elseif item.getSubscribeState() == 2 && (item.getFinishedNum() lt item.getSubscribeNum())>
<span class="z-float-right" style="width:8px;height:8px;border-radius:50%;background-color:#FF5722;margin:0px 10px 0px 0px"></span>
<#elseif item.getSubscribeState() == 2>
<span class="z-float-right" style="width:8px;height:8px;border-radius:50%;background-color:#14DE00;margin:0px 10px 0px 0px"></span>
<#else>
</#if>
</div>
<div class="z-pd6" style="line-height:1;vertical-align:middle;">
<#if item.getSubscribeState() == 1 && item.getDutyTime() lt today>
</br><span>未预约</span></br></br>
<#elseif item.getSubscribeState() == 1 && item.getDutyTime() == today && hour gt 7 >
</br><span>未预约</span></br></br>
<#elseif item.getSubscribeState() == 1 && item.getDutyTime() == today && hour lt 8 >
</br><span style="cursor: pointer;color:#00a2eb" onclick="showToggle(${item.getDutyTime()},${item.getSubscribeNum()},'${item.getRecordId()}');">点击预约订单>></span></br></br>
<#elseif item.getSubscribeState() == 1 && item.getCanSubscribe()==1 >
</br><span style="cursor: pointer;color:#00a2eb" onclick="showToggle(${item.getDutyTime()},${item.getSubscribeNum()},'${item.getRecordId()}');">点击预约订单>></span></br></br>
<#elseif item.getSubscribeState() == 2>
<span style="cursor: pointer;" <#if item.getDutyTime() gt today-1> onclick="showToggle(${item.getDutyTime()},${item.getSubscribeNum()},'${item.getRecordId()}');" </#if>>预约单数:${item.getSubscribeNum()}单</br>接单数:${item.getFinishedNum()}单
</#if>
</div>
</td>
<#if item_index % 7 == 6>
</tr>
</#if>
</#for>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,62 @@
<#def designatedPath="/zhiqimOrdermeal/ordermeal.htm"/>
${zhiqim_manager_breadcrumb("菜单信息")}
${zhiqim_manager_content()}
<#-- 导航 -->
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul>
<li onclick="Z.L.href('designerSubscribe.htm');">我的点餐日历</li>
<li class="z-active">菜单信息</li>
</ul>
<div class="z-float-left z-mg10">
<form name="theForm" method="post">
<span class="z-float-left">
<select name="ordermealType" class="z-select z-w200" data-role="z-select" data-class="zi-bd-r-none ${zmr_color_class}" onchange="this.form.submit();">
<option value="">全部类型</option>
<option value="0" <#if ordermealType == 0>selected</#if>>中餐</option>
<option value="1" <#if ordermealType == 1>selected</#if>>晚餐</option>
</select>
</span>
<button class="z-float-left 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">
<#if ZmrPathRule.check(request, "/zhiqimOrdermeal/menuAdd.htm")>
<button class="z-button ${zmr_color_class}" onclick="Z.L.href('menuAdd.htm');"><i class="z-ico z-add"></i>增加菜单</button>
</#if>
<#if ZmrPathRule.check(request, "/zhiqimOrdermeal/menuModify.htm")>
<button class="z-button ${zmr_color_class}" onclick="Z.L.check('menuModify.htm', 'ordermealMenuId');"><i class="z-ico z-modify"></i>修改菜单</button>
</#if>
<#if ZmrPathRule.check(request, "/zhiqimOrdermeal/menuDelete.htm")>
<button class="z-button z-red" onclick="Z.L.confirm('menuDelete.htm', '是否删除该菜单?', 'ordermealMenuId', zCallFrame);"><i class="z-ico z-delete"></i>删除菜单</button>
</#if>
</div>
</nav>
</div>
<#-- 列表 -->
<table class="z-table z-bordered z-h40-tr z-pd4 z-bg-white z-text-center">
<tr bgcolor="${zmr_thead_bgcolor}">
<td width="50">选择</td>
<td width="150">点餐日期</td>
<td width="150">点餐星期</td>
<td width="150">点餐类型</td>
<td width="*">菜单</td>
</tr>
${zhiqim_manager_tr_no_record(result, 5, "没有菜单信息")}
<#for item : result.list()>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="ordermealMenuId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOrdermealMenuId()}"></td>
<td class="z-samp">${item.getOrdermealMenuDate()}</td>
<td>${DateTimes.getDateWeekString(item.getOrdermealMenuDate())}</td>
<td>
<#if item.getOrdermealType() == 0>中餐</#if>
<#if item.getOrdermealType() == 1>晚餐</#if>
</td>
<td class="z-text-left">${item.getOrdermealMenu()}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging (result, "menu.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,30 @@
<#def designatedPath="/zhiqimOrdermeal/ordermeal.htm"/>
${request.getValidateScript()}
${zhiqim_manager_history("menu.htm")}
${zhiqim_manager_breadcrumb_parent("menu.htm", "菜单信息", "增加菜单")}
${zhiqim_manager_content()}
<form name="theForm" action="menuInsert.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 z-lh150p">
<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><input class="z-input z-w300" name="ordermealMenuDate" value="" onfocus="Z.date(this);" maxlength="32"></td>
</tr>
<tr>
<td>点餐类型:<span class="z-color-999">(中餐|晚餐)</span></td>
<td>
<input name="ordermealType" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="0">&nbsp;&nbsp;中餐&nbsp;&nbsp;&nbsp;&nbsp;
<input name="ordermealType" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1">&nbsp;&nbsp;晚餐&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
<td>菜单:<span class="z-color-999">(请填写菜单)</span></td>
<td><input name="ordermealMenu" class="z-input z-w300 ${zmr_color_class}" maxlength="100" spellcheck="false"><span class="z-color-red">&nbsp;*</span></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
@@ -0,0 +1,31 @@
<#def designatedPath="/zhiqimOrdermeal/ordermeal.htm"/>
${request.getValidateScript()}
${zhiqim_manager_history("menu.htm")}
${zhiqim_manager_breadcrumb_parent("menu.htm", "菜单信息", "修改菜单")}
${zhiqim_manager_content()}
<form name="theForm" action="menuUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="ordermealMenuId" type="hidden" value="${item.getOrdermealMenuId()}">
<table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white z-lh150p">
<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><input name="ordermealMenuDate" class="z-float-left z-input z-w300 z-mg-r8 ${zmr_color_class}" value="${item.getOrdermealMenuDate()}" onfocus="Z.date(this);" maxlength=""></td>
</tr>
<tr>
<td>点餐类型:<span class="z-color-999">(中餐|晚餐)</span></td>
<td>
<input name="ordermealType" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="0" <#if item.getOrdermealType()==0> checked</#if>>&nbsp;&nbsp;中餐&nbsp;&nbsp;&nbsp;&nbsp;
<input name="ordermealType" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="1" <#if item.getOrdermealType()==1> checked</#if>>&nbsp;&nbsp;晚餐&nbsp;&nbsp;&nbsp;&nbsp;<span class="z-color-red">&nbsp;*</span>
</td>
</tr>
<tr>
<td>菜单:<span class="z-color-999">(请填写菜单)</span></td>
<td><input name="ordermealMenu" class="z-input z-w300 ${zmr_color_class}" value="${item.getOrdermealMenu()}" maxlength="100" spellcheck="false"><span class="z-color-red">&nbsp;*</span></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
@@ -0,0 +1,70 @@
${zhiqim_manager_breadcrumb("派单属性")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-float-right z-mg-t10 z-mg-r5 z-mg-b6">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('/subscribeOrgTempQuotaAdd.htm');"><i class="z-font z-add"></i>增加临时额度配置</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('/subscribeOrgTempQuotaModify.htm', 'orgId');"><i class="z-font z-modify"></i>修改临时额度配置</button>
<button class="z-button z-red" onclick="Z.Location.confirm('/subscribeOrgTempQuotaDelete.htm', '确认要删除该临时额度配置?','orgId');"><i class="z-font z-delete"></i>删除临时额度配置</button>
</div>
<table class="z-table z-bordered z-bg-white z-pd5">
<tr>
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="12">&nbsp;临时额度配置</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td>组织名称</td>
<td>临时额度</td>
<td>操作</td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(13, "暂时没有临时额度配置信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="orgId" id="orgId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getOrgId()}"></td>
<td>
<#for org : orgList>
<#if item.getOrgId()==org.getOrgId()>${org.getOrgName()}</#if>
</#for>
</td>
<td>${item.getTempQuota()}</td>
<td>
<#if item.getState() == 1>
<button class="z-button" onclick="doUpdateSubscribeOrgTempQuotaState(${item.getOrgId()},${item.getState()})">
已开启
</button>
<#else>
<button class="z-button z-red" onclick="doUpdateSubscribeOrgTempQuotaState(${item.getOrgId()},${item.getState()})">
已关闭
</button>
</#if>
</td>
</tr>
</#for>
</table>
<script>
function doUpdateSubscribeOrgTempQuotaState(orgId,state){
Z.confirm("确认" + (state == 1 ? "关闭" : "开启") + "该组织的临时额度?",function(){
var ajax = new Z.Ajax();
ajax.setClassName("DesignerSubscribePresenter");
ajax.setMethodName("doUpdateSubscribeOrgTempQuotaState");
ajax.addParam("orgId",orgId);
ajax.addParam("state",state == 1?0:1);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success('修改成功', function(){
location.reload();
});
});
ajax.setLoading(document);
ajax.execute();
});
}
</script>
${zhiqim_manager_paging(pageResult, "/subscribeOrgTempQuota.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,38 @@
<script>
Z.onload(function(){
})
</script>
${request.getValidateScript()}
${zhiqim_manager_history("/subscribeOrgTempQuota.htm")}
${zhiqim_manager_breadcrumb_parent("/subscribeOrgTempQuota.htm", "临时额度配置", "增加临时额度配置")}
${zhiqim_manager_content()}
${zhiqim_manager_title("新增临时额度配置")}
<form name="theForm" action="/subscribeOrgTempQuotaInsert.htm" method="post" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="200">
组织:
</td>
<td>
<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>
</tr>
<tr>
<td>
临时额度:
</td>
<td>
<input name="tempQuota" maxlength="6" value="" class="z-input z-w200 z-ime-disabled" data-options="type:Integer;paste:true;" placeholder="">
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}
@@ -0,0 +1,36 @@
<script>
Z.onload(function(){
})
</script>
${request.getValidateScript()}
${zhiqim_manager_history("/subscribeOrgTempQuota.htm")}
${zhiqim_manager_breadcrumb_parent("/subscribeOrgTempQuota.htm", "临时额度配置", "修改临时额度配置")}
${zhiqim_manager_content()}
${zhiqim_manager_title("修改临时额度配置")}
<form name="theForm" action="/subscribeOrgTempQuotaUpdate.htm" method="post" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="200">
组织:
</td>
<td>
<input id="orgId" name="orgId" type="hidden" value="${subscribeOrgTempQuota.getOrgId()}">
<span>${org.getOrgName()}</span>
</select>
</td>
</tr>
<tr>
<td>
临时额度:
</td>
<td>
<input name="tempQuota" maxlength="6" value="${subscribeOrgTempQuota.getTempQuota()}" class="z-input z-w200 z-ime-disabled" data-options="type:Integer;paste:true;" placeholder="">
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
${zhiqim_manager_content_end()}