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;
@@ -989,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>
@@ -1092,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; // 新增操作
@@ -1241,7 +1242,7 @@
                    return;
                }
            } else if ($("#OrderType1").val() == "代拟质疑函") {
                if ($.trim($("#GysName").val()) == '') {
                    toastr.warning("质疑供应商不能为空");
@@ -1280,11 +1281,11 @@
                    toastr.warning("采购文件获取日期不能为空");
                    return;
                }
            }
            }
@@ -1524,6 +1525,7 @@
        $("#OrderType2").change(function () {
            var OrderType = $("#OrderType").val();
            var OrderType1 = $("#OrderType1").val();
            var OrderType2 = $("#OrderType2").val();
@@ -1552,7 +1554,7 @@
        if (id != null  &&  id != '') {
        if (order_type != null && order_type != '') {
            $.ajax({
                type: "GET",
@@ -1593,7 +1595,6 @@
                    parent.layer.msg('失败', { icon: 5 });
                }
            });
@@ -1640,7 +1641,9 @@
                    if (id == null || id == '') {
                        $("#OrderType2").trigger("change");
                    }
                },
@@ -1651,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 () {
@@ -1711,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 () {
@@ -1734,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);
@@ -1750,7 +1765,7 @@
                    $("#TsrPostcode").val(data.Postal);
                    $("#TsrCorporation").val(data.FName);
                    $("#TsrPhone").val(data.FTel);
                },
                error: function () {
@@ -1928,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>
@@ -1977,7 +1992,7 @@
                global: false,
                data: "",
                success: function (data) {
                    //$('#zhiyishixiang').html(data.GysId);
                    //$("select").chosen();
                    $("#TsrName").val(data.GysName);
@@ -1993,7 +2008,7 @@
                            $("#tousuLianxidianhua").val(data.complaintShouquandaibiaoDTOs[0].Lianxidianhua);
                            $("#tousuDizhi").val(data.complaintShouquandaibiaoDTOs[0].Dizhi);
                            $("#tousuYoubian").val(data.complaintShouquandaibiaoDTOs[0].Youbian);
                        }
                    }
@@ -2061,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>