username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -40,6 +40,7 @@
    List<TChallengeletterDTO> ChallengeletterChosen = ViewData["ChallengeletterChosen"] as List<TChallengeletterDTO>;
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@{
    Layout = null;
@@ -145,17 +146,17 @@
                                            <option value="" hassubinfo="true">请选择</option>
                                            @foreach (var item in customer)
                                            {
                                            @if (!item.Id.Equals(Model.Khdw))
                                                @if (!item.Id.Equals(Model.Khdw))
                                                {
                                            <option value="@item.Id" hassubinfo="true">
                                                @item.Name
                                            </option>
                                                    <option value="@item.Id" hassubinfo="true">
                                                        @item.Name
                                                    </option>
                                                }
                                                else
                                                {
                                            <option value="@item.Id" hassubinfo="true" selected="selected">
                                                @item.Name
                                            </option>
                                                    <option value="@item.Id" hassubinfo="true" selected="selected">
                                                        @item.Name
                                                    </option>
                                                }
                                            }
@@ -218,36 +219,36 @@
                                    <label class="text-right col-sm-1 col-md-1 control-label" id="dingdanleixing4">订单类型2</label>
                                    <div class="col-sm-2 col-md-2" id="dingdanleixing5">
                                        <input class="form-control" label="客户名称" name="OrderType3" id="OrderType3" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderType2"  maxlength="50">
                                        <input class="form-control" label="客户名称" name="OrderType3" id="OrderType3" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderType2" maxlength="50">
                                    </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>*@
@@ -261,19 +262,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="text" 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="text" 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="text" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly">
                                    </div>
@@ -308,6 +309,44 @@
                                </div>
                                <div id="xiangmuxinxi">
                                    <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="Xmname" id="Xmname" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Xmname">
                                        </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="Xmcode" id="Xmcode" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Xmcode">
                                        </div>
                                    </div>
                                </div>
                                <div id="jichujine">
                                    <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="Jichumoney" id="Jichumoney" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@(Model.Jichumoney.HasValue?Model.Jichumoney.Value.ToString():"")" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                        </div>
                                    </div>
                                </div>
                                <div id="zhiyi">
                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -320,7 +359,7 @@
                                        </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>
@@ -374,7 +413,7 @@
                                                    <input class="form-control" label="联系电话" id="zhiyiLianxidianhua" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua">
                                                </div>
                                            </div>
@@ -417,9 +456,9 @@
                                        <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">
                                            <div class="input-group">
                                                <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@challengeletterDTO.XmPackage">
                                                <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@(string.IsNullOrEmpty(Model.Id)?"第1包":challengeletterDTO.XmPackage)">
                                                <div class="input-group-btn">
                                                    <button type="button" class="btn  dropdown-toggle" data-toggle="dropdown">
@@ -471,29 +510,29 @@
                                        </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">
                <select id="TsrId" class="form-control" name="TsrId" data-placeholder="选择 序列 ..." onchange="TsrIdchangge();">
                    <option value="" hassubinfo="true">请选择</option>
                    @foreach (var item in ChallengeletterChosen)
                    {
                        @if (!item.Id.Equals(complaintletterDTO.TsrId))
                <div class="col-sm-2 col-md-2" grouptype="Vdata">
                    <select id="TsrId" class="form-control" name="TsrId" data-placeholder="选择 序列 ..." onchange="TsrIdchangge();">
                        <option value="" hassubinfo="true">请选择</option>
                        @foreach (var item in ChallengeletterChosen)
                        {
                            <option value="@item.Id" hassubinfo="true">
                                @item.OrderId
                            </option>
                        }
                        else
                        {
                            <option value="@item.Id" hassubinfo="true" selected="selected">
                                @item.OrderId
                            </option>
                            @if (!item.Id.Equals(complaintletterDTO.TsrId))
                            {
                                <option value="@item.Id" hassubinfo="true">
                                    @item.OrderId
                                </option>
                            }
                            else
                            {
                                <option value="@item.Id" hassubinfo="true" selected="selected">
                                    @item.OrderId
                                </option>
                            }
                        }
                    }
                </select>
            </div>*@
                    </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>
@@ -812,7 +851,7 @@
                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                            <div class="input-group">
                                                <input type="text" name="tousuXmPackage" id="tousuXmPackage" class="form-control" value="@complaintletterDTO.XmPackage">
                                                <input type="text" name="tousuXmPackage" id="tousuXmPackage" class="form-control" value="@(string.IsNullOrEmpty(Model.Id)?"第1包":complaintletterDTO.XmPackage) ">
                                                <div class="input-group-btn">
                                                    <button type="button" class="btn  dropdown-toggle" data-toggle="dropdown">
@@ -875,7 +914,7 @@
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" id="tousuNoticeDatelabel">公告期限</label>
                                        <div class="col-sm-2 col-md-2" grouptype="Vdata"  id="tousuNoticeDatediv">
                                        <div class="col-sm-2 col-md-2" grouptype="Vdata" id="tousuNoticeDatediv">
                                            <input class="form-control" label="公告期限" name="tousuNoticeDate" id="tousuNoticeDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.NoticeDateName" readonly="readonly">
                                        </div>
@@ -923,26 +962,26 @@
                                </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 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 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 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>
@@ -951,11 +990,11 @@
        <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;">
                <a class="btn btn-success Delete" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;display:none;">
                    <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">删除</span>
                </a>
                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
                <a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">提交</span>
                </a>
            </div>
@@ -1054,8 +1093,8 @@
        var id = '@Model.Id';
         var order_type = '@Model.OrderType';
        var order_type1 = $("#order_type1").val();
        var order_type2 = $("#order_type2").val();
        var order_type1 =  '@Html.Raw(Model.OrderType1)';/*$("#order_type1").val();*/
        var order_type2 =  '@Html.Raw(Model.OrderType2)';/*$("#order_type2").val();*/
        var bUpload = false;
        var bAdd = false; // 新增操作
@@ -1203,7 +1242,7 @@
                    return;
                }
            } else if ($("#OrderType1").val() == "代拟质疑函") {
                if ($.trim($("#GysName").val()) == '') {
                    toastr.warning("质疑供应商不能为空");
@@ -1242,11 +1281,11 @@
                    toastr.warning("采购文件获取日期不能为空");
                    return;
                }
            }
            }
@@ -1373,6 +1412,18 @@
            $("#putong").show();
            $("#zhiyi").hide();
            $("#tousu").hide();
            if (sheng == '03' || sheng == '08') {
                $("#xiangmuxinxi").show();
            } else {
                $("#xiangmuxinxi").hide();
            }
            if (sheng == '08') {
                $("#jichujine").show();
            } else {
                $("#jichujine").hide();
            }
        });
@@ -1447,6 +1498,17 @@
                        $("#putong").show();
                        $("#zhiyi").hide();
                        $("#tousu").hide();
                        if (OrderType == '03' || OrderType == '08') {
                            $("#xiangmuxinxi").show();
                        } else {
                            $("#xiangmuxinxi").hide();
                        }
                        if (OrderType == '08') {
                            $("#jichujine").show();
                        } else {
                            $("#jichujine").hide();
                        }
                    }
@@ -1463,6 +1525,7 @@
        $("#OrderType2").change(function () {
            var OrderType = $("#OrderType").val();
            var OrderType1 = $("#OrderType1").val();
            var OrderType2 = $("#OrderType2").val();
@@ -1491,7 +1554,7 @@
        if (id != null  &&  id != '') {
        if (order_type != null && order_type != '') {
            $.ajax({
                type: "GET",
@@ -1532,7 +1595,6 @@
                    parent.layer.msg('失败', { icon: 5 });
                }
            });
@@ -1579,7 +1641,9 @@
                    if (id == null || id == '') {
                        $("#OrderType2").trigger("change");
                    }
                },
@@ -1590,10 +1654,22 @@
                }
            });
            if (order_type == '03' || order_type == '08') {
                $("#xiangmuxinxi").show();
            } else {
                $("#xiangmuxinxi").hide();
            }
            if (order_type == '08') {
                $("#jichujine").show();
            } else {
                $("#jichujine").hide();
            }
        }
        $(document).ready(function () {
@@ -1610,11 +1686,33 @@
                    $("#putong").show();
                    $("#zhiyi").hide();
                    $("#tousu").hide();
                    if ($("#OrderType").val() == '03' || $("#OrderType").val() == '08') {
                        $("#xiangmuxinxi").show();
                    } else {
                        $("#xiangmuxinxi").hide();
                    }
                    if (sheng == '08') {
                        $("#jichujine").show();
                    } else {
                        $("#jichujine").hide();
                    }
                }
            } else {
                $("#putong").show();
                $("#zhiyi").hide();
                $("#tousu").hide();
                if ($("#OrderType").val() == '03' || $("#OrderType").val() == '08') {
                    $("#xiangmuxinxi").show();
                } else {
                    $("#xiangmuxinxi").hide();
                }
                if ($("#OrderType").val() == '08') {
                    $("#jichujine").show();
                } else {
                    $("#jichujine").hide();
                }
            }
            if ($("#zhiyiShouquandaibiao").val() != "") {
@@ -1628,17 +1726,17 @@
            } else {
                $("#tousushouquan").hide();
            }
            var sheng = $("#OrderType").val();
            if (sheng == '08' || sheng == '11' || sheng == '10') {
                $('#Price').removeAttr("readonly");//去除input元素的readonly属性
            } else {
                $('#Price').attr("readonly", "readonly")//将input元素设置为readonly
            }
            $("#TsrId").chosen();
        });
            $("#TsrId").chosen();
        });
        $("#Khdw").change(function () {
@@ -1651,13 +1749,13 @@
                global: false,
                data: "",
                success: function (data) {
                    $("#Shr").val(data.ShrName);
                    $("#ShrAddress").val(data.ShrAddress);
                    $("#ShrTel").val(data.ShrTel);
                    $("#GysName").val(data.Name);
                    $("#GysName").val(data.Name);
                    $("#GysAddress").val(data.Address);
                    $("#GysContacts").val(data.FName);
                    $("#GysPhone").val(data.FTel);
@@ -1667,7 +1765,7 @@
                    $("#TsrPostcode").val(data.Postal);
                    $("#TsrCorporation").val(data.FName);
                    $("#TsrPhone").val(data.FTel);
                },
                error: function () {
@@ -1845,7 +1943,7 @@
                                                <input class="form-control" label="相关供应商`+ sss + `" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
                                            </div>
                                        </div>
@@ -1894,7 +1992,7 @@
                global: false,
                data: "",
                success: function (data) {
                    //$('#zhiyishixiang').html(data.GysId);
                    //$("select").chosen();
                    $("#TsrName").val(data.GysName);
@@ -1910,7 +2008,7 @@
                            $("#tousuLianxidianhua").val(data.complaintShouquandaibiaoDTOs[0].Lianxidianhua);
                            $("#tousuDizhi").val(data.complaintShouquandaibiaoDTOs[0].Dizhi);
                            $("#tousuYoubian").val(data.complaintShouquandaibiaoDTOs[0].Youbian);
                        }
                    }
@@ -1978,8 +2076,21 @@
            }
        });
          var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
        $(function () {
            var data = JSON.parse(ActionInfo22);
            for (var o in data) {
                if ("@ShouliStatus" == "1") {
                    $("." + data[o].PageShortcut).show();
                }
            }
        });
    </script>
</body>
</html>