LR-20210131IOQH\Administrator
2021-08-10 d4a6d65f5e449c3e5464aa18ae97bf8953987217
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -12,9 +12,11 @@
    string ShouliStatus = ViewData["ShouliStatus"] as string; //受理后不允许编辑
    //List<SysCodeDtl> YouHuiList = ViewData["YouHuiList"] as List<SysCodeDtl>; //优惠列表
}
@{
            Layout = null;
    Layout = null;
}
<!DOCTYPE html>
@@ -103,7 +105,7 @@
                            <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">
@@ -189,30 +191,30 @@
                                    </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))
            <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)
                    {
                        <option value="@item.Id" hassubinfo="true">
                            @item.Name
                        </option>
                        @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>
                        }
                    }
                    else
                    {
                        <option value="@item.Id" hassubinfo="true" selected="selected">
                            @item.Name
                        </option>
                    }
                }
                }
                </select>
            </select>
        </div>*@
            </div>*@
@@ -226,19 +228,19 @@
                                    <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,'')" >
                                        <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})?/)">
                                        <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">
                                        <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>
@@ -279,7 +281,15 @@
                                </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>
@@ -611,7 +621,7 @@
                        $("#Price").val("");
                   
                    if (OrderType != "02" || sheng == "电话咨询" || sheng == "当面咨询" || sheng == "代拟质疑答复" || sheng == "代拟投诉处理决定" || sheng == "竞争对手和评审专家查询" || sheng == "政采贷") {
                    if (OrderType != "02" || sheng == "电话咨询" || sheng == "当面咨询" || sheng == "代拟质疑答复" || sheng == "代拟投诉处理决定" || sheng == "竞争对手和评审专家参加政府采购数据信息查询" || sheng == "政采贷") {
                        if (OrderType == "01") {
                            $("#Price").val(data.Danjia);
                        } else if (OrderType == "05") {
@@ -739,7 +749,7 @@
                data: "",
                success: function (data) {
                    var city = $("#OrderType2");
                    if (order_type != "02" || order_type1 == "电话咨询" || order_type1 == "当面咨询" || order_type1 == "代拟质疑答复" || order_type1 == "代拟投诉处理决定" || order_type1 == "竞争对手和评审专家查询" || order_type1 == "政采贷") {
                    if (order_type != "02" || order_type1 == "电话咨询" || order_type1 == "当面咨询" || order_type1 == "代拟质疑答复" || order_type1 == "代拟投诉处理决定" || order_type1 == "竞争对手和评审专家参加政府采购数据信息查询" || order_type1 == "政采贷") {
                    } else {
@@ -777,6 +787,35 @@
        }
        $("#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);