@model DTO.CooperOrderDTO
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
|
List<CooperatecustomCustomerDTO> customer = ViewData["customer"] as List<CooperatecustomCustomerDTO>; //客户
|
|
|
List<SysCodeDtl> OrderType = ViewData["OrderType"] as List<SysCodeDtl>; //订单类型
|
|
//List<ProjectDTO> project = ViewData["project"] as List<ProjectDTO>; //项目
|
|
string ShouliStatus = ViewData["ShouliStatus"] as string; //受理后不允许编辑
|
|
//List<SysCodeDtl> YouHuiList = ViewData["YouHuiList"] as List<SysCodeDtl>; //优惠列表
|
|
}
|
@{
|
Layout = null;
|
}
|
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="description" content="">
|
<meta name="author" content="ThemeBucket">
|
<title>@(SiteConfig.SiteName)</title>
|
<link href="~/css/bootstrap.min.css" rel="stylesheet">
|
<link href="~/css/font-awesome.min.css" rel="stylesheet">
|
<link href="~/css/animate.min.css" rel="stylesheet">
|
|
@*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
|
@*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
|
@*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
|
<link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
|
|
<style type="text/css">
|
.webuploader-pick {
|
position: relative;
|
display: inline-block;
|
cursor: pointer;
|
background: #00b7ee;
|
padding: 8px 14px 7px 14px;
|
color: #fff;
|
text-align: center;
|
border-radius: 3px;
|
overflow: hidden;
|
}
|
|
div.clearfix > label {
|
padding-top: 8px;
|
}
|
|
.chosen-container {
|
border-radius: 1px;
|
border: 1px solid #e5e6e7;
|
}
|
|
.col-md-1.control-label {
|
padding-right: 0px;
|
font-weight: 400;
|
}
|
</style>
|
|
<!-- jqgrid-->
|
@*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
|
<script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
|
<script src="~/js/bootstrap.min.js"></script>
|
@*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
|
|
<!--容器-->
|
@*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
|
@*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
|
<script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
|
<script src="~/js/plugins/webuploader/webuploader.min.js"></script>
|
|
<script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
|
<script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
|
<script src="~/js/TUJS.js"></script>
|
</head>
|
<body class="gray-bg" style="overflow:auto">
|
<form id="formtest">
|
<div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
|
<div class="row">
|
<div class="col-sm-12">
|
<div class="ibox float-e-margins">
|
<div class="ibox-title">
|
<h5> <i class="fa fa-list"></i> 基本信息</h5>
|
</div>
|
<div id="div_content" class="ibox-content" style="background-color:white;">
|
<div class="row">
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
|
|
|
<label class="text-right col-sm-1 col-md-1 control-label">订单号</label>
|
<div class="col-sm-2 col-md-2">
|
<input id="OrderNo" class="form-control" label="公告时间" name="OrderNo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderNo" readonly="readonly">
|
|
</div>
|
|
<label class="text-right col-sm-1 col-md-1 control-label">客户单位<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<select id="Khdw" class="form-control" name="Khdw" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in customer)
|
{
|
@if (!item.Id.Equals(Model.Khdw))
|
{
|
<option value="@item.Id" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.Id" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
<input type="hidden" id="Id" name="Id" value="@Model.Id" />
|
</div>
|
|
</div>
|
|
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">订单类型<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<select id="OrderType" class="form-control" name="OrderType" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in OrderType)
|
{
|
@if (!item.CodeSn.Equals(Model.OrderType))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
|
|
</select>
|
|
</div>
|
|
<label class="text-right col-sm-1 col-md-1 control-label">订单类型1</label>
|
<div class="col-sm-2 col-md-2">
|
<select id="OrderType1" class="form-control" name="OrderType1" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
|
|
|
</select>
|
|
</div>
|
|
<label class="text-right col-sm-1 col-md-1 control-label" id="dingdanleixing2">订单类型2</label>
|
<div class="col-sm-2 col-md-2" id="dingdanleixing3">
|
<select id="OrderType2" class="form-control" name="OrderType2" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
</select>
|
<input type="hidden" id="order_type1" name="order_type1" value="@Model.OrderType1" />
|
<input type="hidden" id="order_type2" name="order_type2" value="@Model.OrderType2" />
|
</div>
|
|
@*<label class="text-right col-sm-1 col-md-1 control-label">项目<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in project)
|
{
|
@if (!item.Id.Equals(Model.OrderPro))
|
{
|
<option value="@item.Id" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.Id" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</div>*@
|
|
|
|
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
|
|
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">订单数量<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="客户名称" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
|
|
</div>
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">单价<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="客户名称" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
|
</div>
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">金额<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="客户名称" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly">
|
|
</div>
|
|
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
|
|
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">收货人</label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="客户名称" name="Shr" id="Shr" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Shr">
|
|
</div>
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">收货地址</label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="客户名称" name="ShrAddress" id="ShrAddress" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShrAddress">
|
|
</div>
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">联系电话</label>
|
<div class="col-sm-2 col-md-2" grouptype="Vdata">
|
<input class="form-control" label="客户名称" name="ShrTel" id="ShrTel" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShrTel">
|
|
</div>
|
|
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">备注</label>
|
<div class="col-sm-8 col-md-8">
|
<textarea class="form-control bt" id="Remark" name="Remark" title="备注" isempty="" maxlength="4000" length="long">@Model.Remark</textarea>
|
</div>
|
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<div class="col-sm-1 col-md-1">
|
|
</div>
|
<div class="col-sm-8 col-md-8" style="color:red;">
|
系统自动根据8天内申请的优惠项目计算优惠金额
|
</div>
|
|
</div>
|
|
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="wrapper wrapper-content" style="margin-top:0px"></div>
|
<div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
|
<div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
|
<a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;">
|
<i class="glyphicon glyphicon-remove"></i> <span class="bold">删除</span>
|
</a>
|
|
<a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
|
<i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span>
|
</a>
|
</div>
|
</div>
|
|
</form>
|
<script type="text/javascript">
|
var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
|
$("#div_content").height(hh);
|
|
toastr.options = {
|
"closeButton": true,
|
"debug": false,
|
"progressBar": true,
|
"positionClass": "toast-bottom-right",
|
"onclick": null,
|
"showDuration": "300",
|
"hideDuration": "600",
|
"timeOut": "4500",
|
"extendedTimeOut": "600",
|
"showEasing": "swing",
|
"hideEasing": "linear",
|
"showMethod": "fadeIn",
|
"hideMethod": "fadeOut"
|
};
|
|
|
|
|
$(document).ready(function () {
|
if ("@ShouliStatus" != "1") {
|
$("input").attr('readonly', true);
|
$("textarea").attr('readonly', true);
|
$(':radio').attr('disabled', true);
|
$(':checkbox').attr('disabled', true);
|
$(':button').attr('disabled', true);
|
$('a').removeAttr('onclick');
|
$('select').attr('disabled', true);
|
$('.btn-success').hide();
|
|
} else {
|
$("#Khdw").chosen();
|
|
|
|
$("#OrderPro").chosen();
|
|
|
|
|
|
|
}
|
|
@*$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getProject",
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
var city = $("#OrderPro");
|
city.find('option').remove();
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
city.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
|
var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].Name + '</option>';
|
|
if (data[i].Id == '@Model.OrderPro') {
|
|
var o = '<option value="' + data[i].Id + '" hassubinfo="true" selected="selected">' + data[i].Name + '</option>';
|
}
|
city.append(o);
|
}
|
}
|
$("#OrderPro").chosen();
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});*@
|
|
|
|
|
|
});
|
|
|
var id = '@Model.Id';
|
var order_type = '@Model.OrderType';
|
var order_type1 = $("#order_type1").val();
|
var order_type2 = $("#order_type2").val();
|
|
var bUpload = false;
|
var bAdd = false; // 新增操作
|
var fileId = ""; // 上传文件生成的Id
|
var bEditFile = false; // 编辑时,是否关联了附件
|
var bDeleteFile = false; // 删除操作
|
var attachment_id = 0; // 附件id
|
var imgLoad = new Object();
|
|
|
|
var delPosition = function () {
|
|
|
if (id == null || id == '') {
|
toastr.warning("请先保存");
|
return;
|
}
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/Nullify?id=" + id,
|
dataType: "json",
|
global: false,
|
data: '',
|
success: function (data) {
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('删除成功', { icon: 6 });
|
_pageAutoClose();//自动关闭页面方法
|
}
|
else {
|
// toastr.error("");
|
parent.layer.msg('删除失败', { icon: 5 });
|
}
|
|
},
|
error: function () {
|
if ($.isNumber(imgLoad)) {
|
parent.layer.close(imgLoad);
|
}
|
//toastr.error("保存失败");
|
|
parent.layer.msg('保存失败', { icon: 5 });
|
}
|
});
|
|
}
|
|
// 保存岗位信息
|
var savePosition = function () {
|
|
|
|
if ($("#Khdw").val() == '') {
|
toastr.warning("客户单位不能为空");
|
return;
|
}
|
if ($("#OrderType").val() == '') {
|
toastr.warning("订单类型不能为空");
|
return;
|
}
|
if ($("#OrderPro").val() == '') {
|
toastr.warning("项目不能为空");
|
return;
|
}
|
if ($.trim($("#OrderNum").val()) == '') {
|
toastr.warning("订单数量不能为空");
|
return;
|
}
|
if ($.trim($("#Price").val()) == '') {
|
toastr.warning("单价不能为空");
|
return;
|
}
|
if ($.trim($("#Money").val()) == '') {
|
toastr.warning("金额不能为空");
|
return;
|
}
|
|
|
|
|
//var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
|
$.ajax({
|
type: "POST",
|
url: "/CooperOrder/Save",
|
dataType: "json",
|
global: false,
|
data: $('form').serializeArray(),
|
success: function (data) {
|
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('成功保存', { icon: 6 });
|
//window.location = "/Project/add?id=" + data.ReturnID;
|
|
|
try {
|
_pageAutoClose();//自动关闭页面方法
|
}
|
catch (err) {
|
parent._CloseTab1("/CooperOrder/Edit/");
|
}
|
|
}
|
else {
|
// toastr.error("失败");
|
parent.layer.msg(data.Message, { icon: 5 });
|
}
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
}
|
|
|
$("#OrderNum").change(function () {
|
|
var OrderNum = $("#OrderNum").val();
|
var Price = $("#Price").val();
|
var Money = $("#Money");
|
|
if (OrderNum == '') {
|
OrderNum = 0;
|
}
|
if (Price == '') {
|
Price = 0;
|
}
|
Money.val((OrderNum * Price).toPrecision());
|
|
});
|
$("#Price").change(function () {
|
|
var OrderNum = $("#OrderNum").val();
|
var Price = $("#Price").val();
|
var Money = $("#Money");
|
|
if (OrderNum == '') {
|
OrderNum = 0;
|
}
|
if (Price == '') {
|
Price = 0;
|
}
|
Money.val((OrderNum * Price).toFixed(2));
|
|
});
|
|
|
|
$("#OrderType").change(function () {
|
var sheng = $("#OrderType").val();
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getOrderType?OrderType=" + sheng,
|
dataType: "json",
|
global: false,
|
async: false,
|
data: "",
|
success: function (data) {
|
|
var city = $("#OrderType1");
|
city.find('option').remove();
|
$("#OrderType2").find('option').remove();
|
|
$("#Price").val("");
|
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
city.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
if (order_type1 == data[i].code) {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true" selected="selected" >' + data[i].label + '</option>';
|
city.append(o);
|
} else {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true">' + data[i].label + '</option>';
|
city.append(o);
|
}
|
|
|
}
|
}
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
$("#OrderType1").change(function () {
|
var OrderType = $("#OrderType").val();
|
var sheng = $("#OrderType1").val();
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getOrderType1?OrderType1=" + sheng + "&OrderType=" + OrderType,
|
dataType: "json",
|
global: false,
|
async: false,
|
data: "",
|
success: function (data) {
|
var city = $("#OrderType2");
|
city.find('option').remove();
|
|
$("#Price").val("");
|
|
|
if (OrderType != "02" || sheng == "电话咨询" || sheng == "当面咨询" || sheng == "代拟质疑答复" || sheng == "代拟投诉处理决定" || sheng == "竞争对手和评审专家参加政府采购数据信息查询" || sheng == "政采贷") {
|
if (OrderType == "01") {
|
$("#Price").val(data.Danjia);
|
} else if (OrderType == "05") {
|
$("#Price").val(data.Huifei);
|
} else {
|
$("#Price").val(data.Feiyong);
|
}
|
|
$("#Price").trigger("change");
|
|
|
$("#dingdanleixing2").hide();
|
$("#dingdanleixing3").hide();
|
|
} else {
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
city.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
if (order_type2 == data[i].code) {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true" selected="selected" >' + data[i].label + '</option>';
|
city.append(o);
|
} else {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true">' + data[i].label + '</option>';
|
city.append(o);
|
}
|
|
|
}
|
}
|
$("#dingdanleixing2").show();
|
$("#dingdanleixing3").show();
|
}
|
|
|
|
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
$("#OrderType2").change(function () {
|
var OrderType = $("#OrderType").val();
|
var OrderType1 = $("#OrderType1").val();
|
var OrderType2 = $("#OrderType2").val();
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getOrderType2?OrderType2=" + OrderType2 + "&OrderType=" + OrderType + "&OrderType1=" + OrderType1,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
$("#Price").val(data.Feiyong);
|
$("#Price").trigger("change");
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
|
|
|
|
if (id != null && id != '') {
|
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getOrderType?OrderType=" + order_type,
|
dataType: "json",
|
global: false,
|
async: false,
|
data: "",
|
success: function (data) {
|
|
var city = $("#OrderType1");
|
|
|
|
var aaa = '';
|
city.append(aaa);
|
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
|
if (order_type1 == data[i].code) {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true" selected="selected" >' + data[i].label + '</option>';
|
city.append(o);
|
} else {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true">' + data[i].label + '</option>';
|
city.append(o);
|
}
|
|
|
}
|
}
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
|
|
|
|
$.ajax({
|
type: "GET",
|
url: "/CooperOrder/getOrderType1?OrderType1=" + order_type1 + "&OrderType=" + order_type,
|
dataType: "json",
|
global: false,
|
async: false,
|
data: "",
|
success: function (data) {
|
var city = $("#OrderType2");
|
if (order_type != "02" || order_type1 == "电话咨询" || order_type1 == "当面咨询" || order_type1 == "代拟质疑答复" || order_type1 == "代拟投诉处理决定" || order_type1 == "竞争对手和评审专家参加政府采购数据信息查询" || order_type1 == "政采贷") {
|
$("#dingdanleixing2").hide();
|
$("#dingdanleixing3").hide();
|
|
} else {
|
var aaa = '';
|
city.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
if (order_type2 == data[i].code) {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true" selected="selected" >' + data[i].label + '</option>';
|
city.append(o);
|
} else {
|
var o = '<option value="' + data[i].code + '" hassubinfo="true">' + data[i].label + '</option>';
|
city.append(o);
|
}
|
|
|
}
|
}
|
$("#dingdanleixing2").show();
|
$("#dingdanleixing3").show();
|
|
}
|
|
|
|
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
|
}
|
|
|
|
|
|
|
$("#Khdw").change(function () {
|
var Khdw = $("#Khdw").val();
|
|
$.ajax({
|
type: "GET",
|
url: "/CooperatecustomCustomer/GetCustomer?id=" + Khdw,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
$("#Shr").val(data.ShrName);
|
$("#ShrAddress").val(data.ShrAddress);
|
$("#ShrTel").val(data.ShrTel);
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
function _pageAutoClose() {
|
parent.window._reloadPageData();
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.isRefresh = true;
|
parent.layer.closeAll('loading');
|
parent.layer.close(index);
|
return false;
|
}
|
</script>
|
</body>
|
</html>
|