<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>建立变更</title>
|
|
</head>
|
|
<body class="fullscreen">
|
[#include "/business/pages/include/static.html" /]
|
[#include "/business/pages/include/header.html" /]
|
[#include "/component/webupload.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"/>
|
<script type="text/javascript">
|
$(document).ready(function () {
|
$.formValidator.initConfig({
|
formID: "myform", onError: function (msg) {
|
popupTips(msg)
|
}, onSuccess: function () {
|
if (!(window.top.openConfirm("确定要提交吗?"))) {
|
return false;
|
} else {
|
if ($.util.isEmpty($("#dealer").val())) {
|
var project_id = $("#project_id").val();
|
var url = "${base}/business/pages/change/selUser.html?project_id=" + project_id;
|
window.top.openDialog("insideAllot", "人员选择",
|
{},
|
{"width": 60, "height": 80},
|
[{btnId: "btnSure", btnName: "确定", btnStyle: "bluebtn"}], url);
|
return false;
|
} else {
|
document.getElementById("myform").target = window.top.openDialog("0", "操作",
|
{},
|
{"width": 40, "height": 40, "noclose": true},
|
[{btnId: "tipBtnSure", btnName: "确定", btnStyle: "bluebtn"}]);
|
return true;
|
}
|
}
|
|
|
}
|
});
|
|
$("#name").formValidator({empty: false, onShow: "请输入变更标题!", onFocus: "请输入变更标题"}).inputValidator({
|
min: 1,
|
max: 100,
|
onError: "变更标题为1到50个汉字"
|
});
|
$("#descrip").formValidator({empty: false, onShow: "请输入变更说明!", onFocus: "请输入变更说明"}).inputValidator({
|
min: 1,
|
onError: "变更说明不能为空"
|
});
|
$("#type").formValidator({empty: false, onShow: "请选择变更类型!", onFocus: "变更类型不能为空"}).inputValidator({
|
min: 1,
|
onError: "变更类型不能为空"
|
});
|
$("#customer_id").formValidator({
|
empty: false,
|
onShow: "请选择${Constants.CUSTOMER_CONSTANTS}!",
|
onFocus: "请选择${Constants.CUSTOMER_CONSTANTS}"
|
}).inputValidator({min: 1, onError: "${Constants.CUSTOMER_CONSTANTS}不能为空"});
|
$("#sub_customer_id").formValidator({
|
empty: false,
|
onShow: "请选择${Constants.UNIT_CONSTANTS}!",
|
onFocus: "请选择${Constants.UNIT_CONSTANTS}"
|
}).inputValidator({min: 1, onError: "${Constants.UNIT_CONSTANTS}不能为空"});
|
$("#project_id").formValidator({empty: false, onShow: "请选择领域!", onFocus: "请选择领域"}).inputValidator({
|
min: 1,
|
onError: "领域不能为空"
|
});
|
$("#serivceListId").formValidator({
|
empty: false,
|
onShow: "请选择服务目录!",
|
onFocus: "服务目录不能为空"
|
}).inputValidator({min: 1, onError: "服务目录不能为空"});
|
$("#source_id").formValidator({empty: false, onShow: "请选择变更来源!", onFocus: "变更来源不能为空"}).inputValidator({
|
min: 1,
|
onError: "变更来源不能为空"
|
});
|
$("#risk_level_name").formValidator({
|
empty: false,
|
onShow: "请选择风险等级!",
|
onFocus: "风险等级不能为空"
|
}).inputValidator({min: 1, onError: "风险等级不能为空"});
|
$("#sys_fzr").formValidator({empty: false, onShow: "请输入系统负责!", onFocus: "系统负责人不能为空"}).inputValidator({
|
min: 1,
|
onError: "系统负责人不能为空"
|
});
|
$("#fzr_mobile").formValidator({empty:false,onFocus:"请输入联系方式"}).inputValidator({min:1,onError:"联系方式不能为空"})
|
.regexValidator({regExp:"telOrmobile",dataType : "enum", onError:"联系方式为手机号或固定电话"});
|
$("#change_fzr").formValidator({
|
empty: false,
|
onShow: "请输入变更负责人!",
|
onFocus: "变更负责人不能为空"
|
}).inputValidator({min: 1, onError: "变更负责人不能为空"});
|
|
$("#change_mobile").formValidator({empty:false,onFocus:"请输入联系方式"}).inputValidator({min:1,onError:"联系方式不能为空"})
|
.regexValidator({regExp:"telOrmobile",dataType : "enum", onError:"联系方式为手机号或固定电话"});
|
|
$("#contact_name").formValidator({
|
empty: false,
|
onShow: "请输入${Constants.CUSTOMER_CONSTANTS}联系人!",
|
onFocus: "${Constants.CUSTOMER_CONSTANTS}联系人不能为空"
|
}).inputValidator({min: 1, onError: "${Constants.CUSTOMER_CONSTANTS}联系人不能为空"});
|
|
$("#contact_phone").formValidator({empty:false,onFocus:"请输入联系方式"}).inputValidator({min:1,onError:"联系方式不能为空"})
|
.regexValidator({regExp:"telOrmobile",dataType : "enum", onError:"联系方式为手机号或固定电话"});
|
$("#plan_start_time").formValidator({
|
empty: false,
|
onShow: "请选择计划开始时间!",
|
onFocus: "计划开始时间不能为空"
|
}).inputValidator({min: 1, onError: "计划开始时间不能为空"});
|
$("#request_deal_time").formValidator({
|
empty: false,
|
onShow: "请选择计划完成时间!",
|
onFocus: "计划完成时间不能为空"
|
}).inputValidator({min: 1, onError: "计划完成时间不能为空"});
|
//$("#fxfx").formValidator({empty: false, onShow:"请输入风险分析!",onFocus: "风险分析不能为空"}).inputValidator({min: 1,onError: "风险分析不能为空"});
|
$("#bgsjfw").formValidator({empty: false, onShow: "请输入变更涉及范围!", onFocus: "请输入变更涉及范围"}).inputValidator({
|
min: 1,
|
onError: "变更涉及范围不能为空"
|
});
|
$("#bgbz").formValidator({empty: false, onShow: "请输入变更步骤!", onFocus: "请输入变更步骤"}).inputValidator({
|
min: 1,
|
onError: "变更步骤不能为空"
|
});
|
});
|
</script>
|
<div class="fs_navpath">
|
<h3>当前位置</h3>
|
<span></span>
|
<a>变更管理 </a>
|
<span></span>
|
<em>新增变更</em>
|
</div>
|
<div class="fs_navtitle" id="fsNavtitle">
|
<div class="fs_navtitle_con">
|
<h2>新增变更</h2>
|
<div class="fsnt_btn">
|
<a class="fb_submit" href="javascript:doSubmit('','');"><span>提交</span></a>
|
</div>
|
</div>
|
</div>
|
<form id="myform" action="${base}/business/pages/change/addChange.html" method="post">
|
<input type="hidden" name="dealer" id="dealer" value=""/>
|
<input type="hidden" name="bz" id="bz" value=""/>
|
<input type="hidden" name="userId" id="userId" value=""/>
|
<input type="hidden" name="userName" id="userName" value=""/>
|
<div class="fs_main fs_edit">
|
<div class="edit_title"><h3>基本信息</h3></div>
|
<table class="edit_layout">
|
<tr>
|
<th style="width:150px;"><label class="required">变更标题:</label></th>
|
<td colspan="3" style="width:800px;">
|
<input class="general maintitle" type="text" id="name" name="name" style="width:625px;"
|
value="[#if baseMap??]${baseMap.NAME}[/#if]"/>
|
<div id="nameTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th class="postop"><label class="required">变更说明:</label></th>
|
<td colspan="3"><textarea class="general" id="descrip" name="descrip"
|
style="width:625px;">[#if baseMap??]${baseMap.DESCRIP}[/#if]</textarea>
|
<div id="descripTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
|
<td>
|
[#if customer?? && customer?size>0]
|
<input type="hidden" id="customer_id" name="customer_id" value="${customer.CUSTOMER_ID}"/>
|
<input type="hidden" id="customer_name" name="customer_name" value="${customer.CUSTOMER_NAME}"/>
|
<label>${customer.CUSTOMER_NAME}</label>
|
[#else]
|
[@sel id="customer_id" name="customer_id" source=customers textField="ID" valueField="CUSTOMER_NAME" labelName="customer_name" callback="changeMsg"/]
|
<div id="customer_idTip" style="display:inline-block;"></div>
|
[/#if]
|
</td>
|
|
<th><label class="required">${Constants.UNIT_CONSTANTS}:</label></th>
|
<td>
|
[#if customer?? && customer?size>0]
|
<input class="general" type="text" name="sub_customer_name" id="sub_customer_name" readOnly
|
onclick="subCus();" value="${customer.CUSTOMER_NAME}"/>
|
<input type="hidden" name="sub_customer_id" id="sub_customer_id" value="${customer.CUSTOMER_ID}"/>
|
[#else]
|
<input class="general" type="text" name="sub_customer_name" id="sub_customer_name" readOnly
|
onclick="subCus();"/>
|
<input type="hidden" name="sub_customer_id" id="sub_customer_id"/>
|
[/#if]
|
<div id="sub_customer_idTip" style="display:inline-block;"></div>
|
</td>
|
|
</tr>
|
<tr>
|
<th><label class="required">服务目录:</label></th>
|
<td colspan="3">
|
<input type="text" id="serivceList" readonly name="serivceList" onclick="showSl();" class="general" style="width:300px;"/>
|
<input type="hidden" id="serivceListId" name="serivceListId">
|
<input type="hidden" name="selectUser" id="selectUser" />
|
<div id="serivceListIdTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">变更来源:</label></th>
|
<td>
|
[@sel id="source_id" name="source_id" source=froms textField="DATAKEY" valueField="DATAVALUE" labelName="source_name" value="${fromId}" text="${fromName}"/]
|
|
<div id="source_idTip" style="display:inline-block;"></div>
|
</td>
|
<th><label class="required">风险等级:</label></th>
|
<td>
|
[@sel id="risk_level_id" name="risk_level_id" source=changePri textField="DATAKEY" valueField="DATAVALUE" labelName="risk_level_name"/]
|
<div id="risk_level_idTip" style="display:inline-block;"></div>
|
</td>
|
|
</tr>
|
<tr>
|
|
<th><label class="required">系统负责人:</label></th>
|
<td>
|
<input class="general" type="text" name="sys_fzr" id="sys_fzr"/>
|
<div id="sys_fzrTip" style="display:inline-block;"></div>
|
</td>
|
<th><label class="required">负责人联系方式:</label></th>
|
<td>
|
<input class="general" type="text" name="fzr_mobile" id="fzr_mobile"/>
|
<div id="fzr_mobileTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
|
<th><label class="required">变更负责人:</label></th>
|
<td>
|
[#if baseMap??]
|
<input class="general" type="text" name="change_fzr" id="change_fzr"
|
value="${baseMap.CONTACT_NAME}"/>
|
[#else]
|
<input class="general" type="text" name="change_fzr" id="change_fzr" value=""/>
|
[/#if]
|
<div id="change_fzrTip" style="display:inline-block;"></div>
|
</td>
|
<th><label class="required">变更人联系方式:</label></th>
|
<td>[#if baseMap??]
|
<input class="general" type="text" name="change_mobile" id="change_mobile"
|
value="${baseMap.CONTACT_PHONE}"/>
|
[#else]
|
<input class="general" type="text" name="change_mobile" id="change_mobile" value=""/>
|
[/#if]
|
<div id="change_mobileTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
|
<th><label class="required">联系人:</label></th>
|
<td>
|
<input class="general" type="text" name="contact_name" id="contact_name"/>
|
<div id="contact_nameTip" style="display:inline-block;"></div>
|
</td>
|
<th><label class="required">联系方式:</label></th>
|
<td>
|
<input class="general" type="text" name="contact_phone" id="contact_phone"/>
|
<div id="contact_phoneTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
<tr>
|
<th><label class="required">计划开始时间:</label></th>
|
<td>
|
[@datepicker id="plan_start_time" value="" class="general"/]
|
<div id="plan_start_timeTip" style="display:inline-block;"></div>
|
</td>
|
|
<th><label class="required">计划完成时间:</label></th>
|
<td>
|
[@datepicker id="request_deal_time" value="" class="general" /]
|
<div id="request_deal_timeTip" style="display:inline-block;"></div>
|
</td>
|
|
</tr>
|
|
<tr>
|
<th><label>风险分析:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="fxfx" name="fxfx" style="width:625px;"></textarea>
|
<div id="fxfxTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">变更涉及范围:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="bgsjfw" name="bgsjfw" style="width:625px;"></textarea>
|
<div id="bgsjfwTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label class="required">变更步骤:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="bgbz" name="bgbz" style="width:625px;"></textarea>
|
<div id="bgbzTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label>测试计划及测试步骤:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="test_plan" name="test_plan" style="width:625px;"></textarea>
|
<div id="test_planTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label>回退步骤和回退条件:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="back_bz" name="back_bz" style="width:625px;"></textarea>
|
<div id="back_bzTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label>变更需求部门:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="change_dept" name="change_dept" style="width:625px;"></textarea>
|
<div id="change_deptTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th><label>备注说明:</label></th>
|
<td colspan="3">
|
<textarea class="general" id="note" name="note" style="width:625px;"></textarea>
|
<div id="noteTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th class="postop"><label>附件:</label></th>
|
<td>
|
<div class="upload_file">
|
[@webupload id="files" multiple="true" extensions="*"/]
|
</div>
|
</td>
|
|
</tr>
|
</table>
|
|
<div class="edit_title"><h3>关联配置信息</h3><a class="add_associated" href="javascript:linkDevice();">添加关联配置</a>
|
</div>
|
<table class="display_form" id="linkDeviceTable">
|
<tr class="title">
|
<td>搜索码</td>
|
<td>配置名称</td>
|
<td>存放位置</td>
|
<td>操作</td>
|
</tr>
|
<tr>
|
<td colspan="4" align="center">暂无关联信息</td>
|
</tr>
|
</table>
|
<div class="edit_title"><h3>关联工单信息</h3><a class="add_associated" href="javascript:linkOrder();">添加关联工单</a></div>
|
<table class="display_form" id="linkOrderTable">
|
<tr class="title">
|
<td>工单编号</td>
|
<td>工单名称</td>
|
<td>工单类型</td>
|
<td>当前状态</td>
|
<td>操作</td>
|
</tr>
|
[#if orders?? && orders?size>0]
|
[#list orders as order]
|
<tr>
|
<td>${order.ORDER_CODE}<input type="hidden" name="orderId" value="${order.ID}"></td>
|
<td>${order.WFNAME}</td>
|
<td>${Constants.mapWORKFLOW_BUSINESS_TYPE_Label(order.BUSINESSTYPE)}</td>
|
<td>${Constants.getWORKFLOW_BASE_WFSTATE_Label(order.WFSTATE)}</td>
|
<td></td>
|
</tr>
|
[/#list]
|
[#else]
|
<tr align="center">
|
<td colspan="5">暂无关联信息</td>
|
</tr>
|
[/#if]
|
</table>
|
</div>
|
</form>
|
[#include "/business/pages/include/footer.html" /]
|
<script type="text/javascript">
|
$(function () {
|
$("#customer_id").chosen({
|
no_results_text: "没有找到结果!",//搜索无结果时显示的提示
|
search_contains:true, //关键字模糊搜索,设置为false,则只从开头开始匹配
|
allow_single_deselect:true, //是否允许取消选择
|
max_selected_options:1 //当select为多选时,最多选择个数
|
});
|
$("#sub_customer_id").val($("#customer_id").val());
|
$("#sub_customer_name").val($("#customer_id option:selected").text());
|
$("#customer_id").change(function () {
|
$("#sub_customer_id").val($("#customer_id").val());
|
$("#sub_customer_name").val($("#customer_id option:selected").text());
|
});
|
|
[#--var sc_workflow_incident_ID = '${sc_workflow_incident_ID}';
|
if (sc_workflow_incident_ID) {
|
var strHtml = "";
|
strHtml += "<tr><td><input type='hidden' name='orderId' value='" + '${baseMap.ID}' + "'>" + '${baseMap.ORDER_CODE}' + "</td><td>" + '${baseMap.NAME}' + "</td><td>" + '事件工单' + "</td><td>" + '已完成' + "</td><td><a class='delete'>删除</a></td></tr>";
|
|
var firstTd = $("#linkOrderTable tr:eq(1)");
|
if (firstTd.find("td:eq(0)").attr("colspan") != 1) {
|
firstTd.remove();
|
}
|
$("#linkOrderTable").append(strHtml).show();
|
}--]
|
});
|
|
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=2&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 showSl() {
|
var customer_id = $("#customer_id").val();
|
if($.util.isEmpty(customer_id)) {
|
popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
|
return;
|
}
|
|
var serivceList = $("#serivceList").val();
|
var serivceListId = $("#serivceListId").val();
|
var url = "${base}/business/pages/servicelist/slaproject/serviceListTree.html?customerId="+customer_id+"&type=2";
|
if(!$.util.isEmpty(serivceList)&&!$.util.isEmpty(serivceListId)) {
|
var names = serivceList.split("-");
|
var ids = serivceListId.split("-");
|
if(ids.length==3) {
|
url += "&sl="+ids[2];
|
}
|
}
|
|
window.top.openDialog("selectSl","操作",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
|
function showName(labelId, labelName, extendKey) {
|
$("#serivceList").val(labelName);
|
$("#serivceListId").val(labelId);
|
$("#serivceListName").val(extendKey);
|
}
|
$(function () {
|
var customerId = $('#customer_id');
|
|
$("a.delete").live("click", function () {
|
var $table = $(this).parents("table");
|
if ($table.find("tr").length == 2) {
|
var $str = $(this).parents("tr");
|
var length = $str.find("td").length;
|
$str.find("td:gt(0)").remove();
|
$str.find("td:first").attr({"colspan": length, "align": "center"}).html("暂无关联信息");
|
} else {
|
$(this).parents("tr").remove();
|
}
|
});
|
|
});
|
|
function showName(labelId, labelName, extendKey) {
|
$("#serivceList").val(labelName);
|
$("#serivceListId").val(labelId);
|
$("#serivceListName").val(extendKey);
|
}
|
|
function linkDevice() {
|
var projectId = $("#project_id").val();
|
var customerid = $("#customer_id").val();
|
var sub_customer_id = $("#sub_customer_id").val();
|
var sub_customer_name = $("#sub_customer_name").val();
|
if ($.util.isEmpty(customerid)) {
|
popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
|
return;
|
}
|
// var project_id = $("#project_id").val();
|
// if ($.util.isEmpty(project_id)) {
|
// popupTips("请先选择领域");
|
// return;
|
// }
|
var deviceIds = new Array();
|
var $deviceId = $(":hidden[name='deviceId']");
|
if ($deviceId.length > 0) {
|
$deviceId.each(function () {
|
deviceIds.push($(this).val());
|
});
|
}
|
|
var ciIds = deviceIds.join("-");
|
window.top.openDialog("0", "添加关联配置",
|
{},
|
{"width": 80, "height": 80},
|
[{btnId: "btnSure", btnName: "选择", btnStyle: "bluebtn"}],
|
"${base}/business/pages/incident/linkDevice.html?customerid=" + customerid + "&ciIds=" + ciIds + "&subCustomerId=" + sub_customer_id + "&sub_customer_name=" + sub_customer_name);
|
}
|
|
function showLinkDeivce(devices) {
|
var strHtml = "";
|
$.each(devices, function (i, item) {
|
var deviceId = item.get("deivceId");
|
var searchCode = item.get("searchCode");
|
var deviceName = item.get("ciName");
|
var position = item.get("position");
|
strHtml += "<tr><td><input type='hidden' name='deviceId' value='" + deviceId + "'>" + searchCode + "</td><td>" + deviceName + "</td><td>" + position + "</td><td><a class='delete'>删除</a></td></tr>";
|
});
|
|
|
var firstTd = $("#linkDeviceTable tr:eq(1)");
|
if (firstTd.find("td:eq(0)").attr("colspan") != 1) {
|
firstTd.remove();
|
}
|
$("#linkDeviceTable").append(strHtml).show();
|
}
|
|
|
function showLinkOrder(devices) {
|
var strHtml = "";
|
$.each(devices, function (i, item) {
|
var orderId = item.get("orderId");
|
var businesstype = item.get("businesstype");
|
var orderCode = item.get("orderCode");
|
var wfname = item.get("wfname");
|
var createTime = item.get("createTime");
|
var customerName = item.get("customerName");
|
var wfstateText = item.get("wfstateText");
|
strHtml += "<tr><td><input type='hidden' name='orderId' value='" + orderId + "'>" + orderCode + "</td><td>" + wfname + "</td><td>" + businesstype + "</td><td>" + wfstateText + "</td><td><a class='delete'>删除</a></td></tr>";
|
});
|
|
|
var firstTd = $("#linkOrderTable tr:eq(1)");
|
if (firstTd.find("td:eq(0)").attr("colspan") != 1) {
|
firstTd.remove();
|
}
|
|
$("#linkOrderTable").append(strHtml).show();
|
}
|
|
function linkOrder() {
|
var projectId = $("#project_id").val();
|
var customerid = $("#customer_id").val();
|
|
|
// if ($.util.isEmpty(projectId)) {
|
// popupTips("请先选择领域");
|
// return;
|
// }
|
|
if ($.util.isEmpty(customerid)) {
|
popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
|
return;
|
}
|
var orderIds = new Array();
|
var $orderId = $(":hidden[name='orderId']");
|
if ($orderId.length > 0) {
|
$orderId.each(function () {
|
orderIds.push($(this).val());
|
});
|
}
|
|
var orderids = orderIds.join("-");
|
|
window.top.openDialog("0", "添加关联工单",
|
{},
|
{"width": 80, "height": 80},
|
[{btnId: "btnSure", btnName: "选择", btnStyle: "bluebtn"}],
|
"${base}/business/pages/incident/linkOrder.html?customerid=" + customerid + "&orderids=" + orderids);
|
}
|
|
function changeProject(customerId, customerName) {
|
$("#sub_customer_id").val(customerId);
|
$("#sub_customer_name").val(customerName);
|
$.post("${base}/business/pages/servicelist/slaproject/queryProByCusId.html", {"customerId": customerId}, function (data, textStatus) {
|
var optionHtml = "<option value=''>请选择</option>";
|
$.each(data, function (i, item) {
|
optionHtml += "<option value='" + item.PROJECT_ID + "'>" + item.PROJECT_NAME + "</option>";
|
});
|
$('#project_id').html(optionHtml);
|
changeMsg();
|
|
}, "json");
|
}
|
|
function changeMsg() {
|
$("#serivceListId,#serivceList").val("");
|
}
|
|
function doSubmit(dealer, bz) {
|
$("#dealer").val(dealer);
|
$("#bz").val(bz);
|
var fzr_mobile = $("#fzr_mobile").val();//负责人联系方式
|
var change_mobile = $("#change_mobile").val();//变更人联系方式
|
var contact_phone = $("#contact_phone").val();//业务部门联系方式
|
var request_deal_time = $("#request_deal_time").val();
|
var plan_start_time = $("#plan_start_time").val();
|
if (plan_start_time > request_deal_time) {
|
$("#_request_deal_time").val("");
|
$("#request_deal_time").val("");
|
popupTips("计划完成时间应大于计划开始时间,请选择正确的计划完成时间");
|
return;
|
}
|
$("#myform").submit();
|
}
|
|
function fp(userId, userName) {
|
if (!$.util.isEmpty(userId)) {
|
$("#userId").val(userId);
|
$("#userName").val(userName);
|
var fzr_mobile = $("#fzr_mobile").val();//负责人联系方式
|
var change_mobile = $("#change_mobile").val();//变更人联系方式
|
var contact_phone = $("#contact_phone").val();//业务部门联系方式
|
if (!$.util.isMobile(fzr_mobile)) {
|
window.top.popopTips("负责人联系方式格式不正确");
|
return;
|
}
|
if (!$.util.isMobile(change_mobile)) {
|
window.top.popopTips("变更人联系方式格式不正确");
|
return;
|
}
|
doSubmit();
|
}
|
}
|
function endTime() {
|
var request_deal_time = $("#request_deal_time").val();
|
var plan_start_time = $("#plan_start_time").val();
|
if (plan_start_time == "") {
|
$("#_request_deal_time").val("");
|
$("#request_deal_time").val("");
|
popupTips("请选择正确的计划开始时间");
|
}
|
if (request_deal_time != "") {
|
if (plan_start_time > request_deal_time) {
|
$("#_request_deal_time").val("");
|
$("#request_deal_time").val("");
|
popupTips("结束时间应大于开始时间,请选择正确的计划结束时间");
|
}
|
}
|
|
}
|
function checkPhone(value) {
|
if ($.util.isEmpty(value)) {
|
return "联系方式不能为空";
|
}
|
if (!$.util.isMobile(value) && !$.util.isTelphone(value)) {
|
return "手机格式不正确";
|
}
|
return true;
|
}
|
|
</script>
|
</body>
|
</html>
|