<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>增加/修改</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/DatePicker.html" /]
|
[#include "/component/newsel.html" /]
|
<script src="${common_static}/static/script/select/chosen.jquery.js"></script>
|
<script src="${common_static}/static/script/select/chosen.jquery.min.js"></script>
|
<link rel="stylesheet" type="text/css" href="${common_static}/static/script/select/chosen.css"/>
|
<style>
|
.fixflow{overflow:hidden;margin-bottom:10px;}
|
.fixflow a{margin-left:10px;height:26px;line-height:26px;display: inline-block;}
|
.fixflow a.add{
|
width: 26px;
|
background: url("${base}/static/images/addbtn.gif") center no-repeat;
|
}
|
.fixflow a.minus{
|
width: 26px;
|
background: url("${base}/static/images/del.jpg") center no-repeat;
|
background-size:24px;
|
}
|
</style>
|
</head>
|
<body class="edit_txt_body">
|
|
<script type="text/javascript">
|
$(function () {
|
$.formValidator.initConfig({
|
formID: "myform", onError: function (msg) {
|
popupTips(msg)
|
}, onSuccess: function () {
|
document.getElementById("myform").target = window.top.openDialog("1", "操作",
|
{},
|
{"width": 40, "height": 40}, [{btnId: "tipBtnSure", btnName: "确定", btnStyle: "bluebtn"}]);
|
return true;
|
}
|
});
|
|
$("#plan_year").formValidator({empty: false, onFocus: "请选择年份"}).inputValidator({min: 1, onError: "年份不能为空"});
|
$("#customer_id").formValidator({empty: false, onFocus: "请选择项目"}).inputValidator({min: 1, onError: "项目不能为空"});
|
$("#sub_customer_id").formValidator({empty: false, onFocus: "请选择子项目"}).inputValidator({min: 1, onError: "子项目不能为空"});
|
$("#plan_name").formValidator({empty: false, onFocus: "请输入计划名称"}).inputValidator({min: 1, max: 100, onError: "计划名称为1到50汉字"});
|
$("#plan_zz").formValidator({empty: false, onFocus: "请输入计划总则"}).inputValidator({min: 1, onError: "计划总则不能为空"});
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form action="${base}/business/pages/deliver/saveDeliverMent.html" method="post" id="myform" name="myform">
|
<input type="hidden" name="id" value="${info.ID}"/>
|
<table class="edit_layout" width="99%">
|
<tr>
|
<th><label class="required">年份:</label></th>
|
<td colspan="3">
|
[@datepicker id="plan_year" name="plan_year" value="${info.PLAN_YEAR}" length=4 /]
|
<div id="plan_yearTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
|
<td>
|
[@sel id="customer_id" name="customer_id" value="${info.CUSTOMER_ID}" source=customers textField="ID" valueField="CUSTOMER_NAME" labelName="customer_name" callback="changeMsg"/]
|
<div id="customer_idTip" style="display:inline-block;"></div>
|
</td>
|
<th><label class="required">${Constants.UNIT_CONSTANTS}:</label></th>
|
<td>
|
<input class="general" value="${info.SUB_CUSTOMER_NAME}" type="text" name="sub_customer_name" id="sub_customer_name" readOnly onclick="subCus();"/>
|
<input type="hidden" name="sub_customer_id" id="sub_customer_id" value="${info.SUB_CUSTOMER_ID}" />
|
<div id="sub_customer_idTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">计划名称:</label></th>
|
<td colspan="3"><input class="general" type="text" value="${info.PLAN_NAME}" name="plan_name" id="plan_name" style="width:360px"/>
|
<div id="plan_nameTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">计划总则:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_zz" name="plan_zz"/>${info.PLAN_ZZ}</textarea>
|
<div id="plan_zzTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label>适用范围:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="sy_range" name="sy_range"/>${info.SY_RANGE}</textarea>
|
</td>
|
</tr>
|
<tr>
|
<th><label>总体概述:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_ztgs" name="plan_ztgs"/>${info.PLAN_ZTGS}</textarea>
|
</td>
|
</tr>
|
<tr>
|
<th><label>服务质量管理计划:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_gljh" name="plan_gljh"/>${info.PLAN_GLJH}</textarea>
|
</td>
|
</tr>
|
<tr>
|
<th><label>服务人员计划:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_ryjh" name="plan_ryjh"/>${info.PLAN_RYJH}</textarea>
|
</td>
|
</tr>
|
<tr>
|
<th><label>服务技术管理:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_jsgl" name="plan_jsgl"/>${info.PLAN_JSGL}</textarea>
|
</td>
|
</tr>
|
<tr>
|
<th><label>服务资源管理:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_zygl" name="plan_zygl"/>${info.PLAN_ZYGL}</textarea>
|
</td>
|
</tr>
|
<tr>
|
<th><label>服务过程管理:</label></th>
|
<td colspan="3">
|
<textarea class="general" style="width:360px;" id="plan_gcgl" name="plan_gcgl"/>${info.PLAN_GCGL}</textarea>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
|
<script type="text/javascript">
|
$(function(){
|
$("#customer_id").chosen({
|
no_results_text: "没有找到结果!",//搜索无结果时显示的提示
|
search_contains:true, //关键字模糊搜索,设置为false,则只从开头开始匹配
|
allow_single_deselect:true, //是否允许取消选择
|
max_selected_options:1 //当select为多选时,最多选择个数
|
});
|
});
|
function onDialogBtnClick(btnID, dialogID, config) {
|
if (btnID == "btnSure") {
|
$("#customer_name").val($("#customer_id :selected").text());
|
$("#myform").submit();
|
}
|
}
|
function subCus() {
|
var customer_id = $("#customer_id").val();
|
if($.util.isEmpty(customer_id)) {
|
popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
|
return;
|
}
|
|
var sub_customer_id = $("#sub_customer_id").val();
|
|
var url = "${base}/business/pages/servicelist/slaproject/subCus.html?type=3&customerId="+customer_id+"&subCustomerId="+sub_customer_id;
|
window.top.openDialog("selectSubCus","操作",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
|
function showCus(labelId,labelName) {
|
$("#sub_customer_name").val(labelName);
|
$("#sub_customer_id").val(labelId);
|
}
|
function changeMsg(customerId,customerName) {
|
$("#sub_customer_id").val("");
|
$("#sub_customer_name").val("");
|
}
|
</script>
|
|
|
</body>
|
</html>
|