198 lines
7.6 KiB
Plaintext
198 lines
7.6 KiB
Plaintext
<script>
|
||
var tempOrgId = null;
|
||
Z.onload(function(){
|
||
Z("#firstTypesetAuditorSpan").hide();
|
||
tempOrgId = "${orgList.get(0).getOrgId()}";
|
||
})
|
||
|
||
function doQueryOperator(orgId)
|
||
{
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("OperatorDao");
|
||
ajax.setMethodName("getOrgOperatorAllList");
|
||
ajax.addParam(orgId);
|
||
ajax.setFailureAlert();
|
||
ajax.setSuccess(function(){
|
||
var operatorList = Z.J.toObject(this.responseText);
|
||
var select = Z.D.id("operatorCode");
|
||
select.options.length = 0;
|
||
Z.each(operatorList, function (operator, i){
|
||
select.options[i] = new Option(operator.operatorCode, operator.operatorCode);
|
||
})
|
||
Z("#operatorList").htmlc(select.outerHTML);
|
||
|
||
tempOrgId = orgId;
|
||
});
|
||
ajax.execute();
|
||
}
|
||
|
||
function doQueryOperatorForFirstTyptSetter()
|
||
{
|
||
var ajax = new Z.Ajax();
|
||
ajax.setClassName("OperatorDao");
|
||
ajax.setMethodName("getOrgOperatorAllList");
|
||
ajax.addParam(tempOrgId);
|
||
ajax.setFailureAlert();
|
||
ajax.setSuccess(function(){
|
||
var operatorList = Z.J.toObject(this.responseText);
|
||
|
||
var select2 = Z.D.id("firstTypesetAuditor");
|
||
select2.options.length = 0;
|
||
Z.each(operatorList, function (operator, i){
|
||
select2.options[i] = new Option(operator.operatorCode, operator.operatorCode);
|
||
})
|
||
Z("#firstTypesetAuditorAddSpan2").htmlc(select2.outerHTML);
|
||
});
|
||
ajax.execute();
|
||
}
|
||
function doSelectTypesetter(box)
|
||
{
|
||
if (box.checked)
|
||
{
|
||
Z.FM.doSelectCheckBox('typesetAuditor', false);
|
||
Z("#firstTypesetAuditorSpan").show();
|
||
doQueryOperatorForFirstTyptSetter();
|
||
}
|
||
else
|
||
{
|
||
Z("#firstTypesetAuditorSpan").hide();
|
||
}
|
||
}
|
||
|
||
function doSelectTypesetAuditor(box)
|
||
{
|
||
if (box.checked)
|
||
{
|
||
Z.FM.doSelectCheckBox('typesetter', false);
|
||
Z("#firstTypesetAuditorSpan").hide();
|
||
}
|
||
}
|
||
|
||
</script>
|
||
${request.getValidateScript()}
|
||
${zhiqim_manager_history("/dispatchProperty.htm")}
|
||
${zhiqim_manager_breadcrumb_parent("/dispatchProperty.htm", "派单属性", "增加设计师派单属性")}
|
||
${zhiqim_manager_content()}
|
||
|
||
${zhiqim_manager_title("新增设计师派单属性")}
|
||
<form name="theForm" action="/dispatchPropertyInsert.htm" method="post" data-role="z-call-frame">
|
||
<table class="z-table z-bordered z-pd6 z-bg-white">
|
||
<tr>
|
||
<td width="35%">选择商户</td>
|
||
<td width="*">
|
||
<select name="orgId" id="orgId" class="z-select z-w200" onchange="doQueryOperator(this.value)" data-role="z-select-search" data-class="${zmr_color_class}">
|
||
<#for item : orgList>
|
||
<option value="${item.getOrgId()}">${item.getOrgName()}</option>
|
||
</#for>
|
||
</select>
|
||
<font color=red> *</font>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>设计师</td>
|
||
<td>
|
||
<span id="operatorList">
|
||
<select name="operatorCode" id="operatorCode" class="z-select z-w200" data-role="z-select-search" data-class="${zmr_color_class}">
|
||
<#for item : operatorList>
|
||
<option value="${item.getOperatorCode()}">${item.getOperatorCode()}</option>
|
||
</#for>
|
||
</select>
|
||
<span><font color=red> *</font>
|
||
</td>
|
||
</tr>
|
||
<#var typeList = DesignTypeDao.list()/>
|
||
<tr>
|
||
<td>主产品类型:</td>
|
||
<td>
|
||
<#if Validates.isNotEmpty(typeList)>
|
||
<#for item : typeList>
|
||
<input name="majorType" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getTypeId()}"> ${item.getTypeName()}
|
||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||
</#for>
|
||
</#if>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>副产品类型(请选择):</td>
|
||
<td>
|
||
<#if Validates.isNotEmpty(typeList)>
|
||
<#for item : typeList>
|
||
<input name="secondaryTypes" data-role="z-checkbox" data-class="${zmr_color_class}" type="checkbox" value="${item.getTypeId()}"> ${item.getTypeName()}
|
||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||
</#for>
|
||
</#if>
|
||
</td>
|
||
</tr>
|
||
|
||
<#var industryList = Global.get(DesignIndustryCache.class).getIndustryList()/>
|
||
<tr>
|
||
<td>主行业:(请选择)</td>
|
||
<td>
|
||
<#if Validates.isNotEmpty(industryList)>
|
||
<#for item : industryList>
|
||
<input name="majorIndustry" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getIndustryId()}"> ${item.getIndustryName()}
|
||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||
</#for>
|
||
</#if>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>副行业:(请选择)</td>
|
||
<td>
|
||
<#if Validates.isNotEmpty(industryList)>
|
||
<#for item : industryList>
|
||
<input name="secondaryIndustry" data-role="z-checkbox" data-class="${zmr_color_class}" type="checkbox" value="${item.getIndustryId()}"> ${item.getIndustryName()}
|
||
<#if (item_index + 1) % 5 == 0><br/><br/></#if>
|
||
</#for>
|
||
</#if>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>设计师级别:(请选择)</td>
|
||
<td>
|
||
<select name="designerLevel" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
|
||
<option value="0">普通设计师</option>
|
||
<option value="1">资深设计师</option>
|
||
</select> <font color=red> *</font>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>支持店铺:(请选择)</td>
|
||
<td>
|
||
<#for shop : shopList>
|
||
<div class="z-float-left z-pd6">
|
||
<input type="checkbox" name="shopNick" class="z-checkbox" value="${shop}" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${shop}</span></div>
|
||
</#for>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>支持产品类型:</td>
|
||
<td>
|
||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="设计稿">
|
||
<input type="checkbox" name="isDesignOrder" onclick="" class="z-checkbox" checked="checked" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">设计稿</span>
|
||
</div>
|
||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="标准自来稿">
|
||
<input type="checkbox" name="isNormDraftOrder" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">标准自来稿</span>
|
||
</div>
|
||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="改稿自来稿">
|
||
<input type="checkbox" name="isDraftOrder" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">改稿自来稿</span>
|
||
</div>
|
||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质客户订单">
|
||
<input type="checkbox" name="isHighQualityOrder" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质客户订单</span>
|
||
</div>
|
||
<div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
|
||
<input type="checkbox" name="isUrgent" onclick="" class="z-checkbox" value="true" data-role="z-checkbox" data-class="${zmr_color_class}">
|
||
<span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
${zhiqim_manager_submit()}
|
||
</form>
|
||
${zhiqim_manager_content_end()} |