| | |
| | | @model DTO.CooperatecustomCustomerDTO |
| | | @model DTO.CooperOrderDTO |
| | | @using DTO; |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | string Huifangid = ViewData["Huifangid"] as string; //拜访方式 |
| | | |
| | | |
| | | List<SysCodeDtl> PingjiaStatus = ViewData["PingjiaStatus"] as List<SysCodeDtl>; //订单类型 |
| | | } |
| | | @{ |
| | | Layout = null; |
| | |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5> <i class="fa fa-list"></i> 回访备注</h5> |
| | | <h5> <i class="fa fa-list"></i> 回访</h5> |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | |
| | | <input type="hidden" id="Huifangid" name="Huifangid" value="@Huifangid" /> |
| | | <input type="hidden" id="Id" name="Id" value="@Huifangid" /> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-2 col-md-2 control-label">接待人</label> |
| | | <div class="col-sm-6 col-md-6"> |
| | | <input id="HuifangJdr" class="form-control" label="接待人" name="HuifangJdr" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.HuifangJdr" > |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | <div class="col-sm-12 col-md-12"> |
| | | <textarea class="form-control bt" id="Huifangremark" name="Huifangremark" title="回访备注" isempty="" maxlength="4000" length="long"></textarea> |
| | | <label class="text-right col-sm-2 col-md-2 control-label">回访情况<i class="red">*</i></label> |
| | | <div class="col-sm-10 col-md-10"> |
| | | <textarea class="form-control bt" id="Huifangremark" name="Huifangremark" title="回访情况" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'" >@Model.Huifangremark</textarea> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-2 col-md-2 control-label">用户评价<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <select id="PingjiaStatus" class="form-control" name="PingjiaStatus" data-placeholder="选择 序列 ..."> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in PingjiaStatus) |
| | | { |
| | | |
| | | @if (!item.CodeSn.Equals(Model.PingjiaStatus)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-2 col-md-2 control-label">客户意见</label> |
| | | <div class="col-sm-10 col-md-10"> |
| | | <textarea class="form-control bt" id="HuifangKehuyijian" name="HuifangKehuyijian" title="客户意见" isempty="" maxlength="500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'" >@Model.HuifangKehuyijian</textarea> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | |
| | | |
| | | </form> |
| | | <script type="text/javascript"> |
| | | var Huifangremark = document.getElementById("Huifangremark"); |
| | | |
| | | Huifangremark.style.height = Huifangremark.scrollHeight + 'px'; |
| | | |
| | | var HuifangKehuyijian = document.getElementById("HuifangKehuyijian"); |
| | | |
| | | HuifangKehuyijian.style.height = HuifangKehuyijian.scrollHeight + 'px'; |
| | | |
| | | |
| | | var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; |
| | | $("#div_content").height(hh); |
| | | |
| | |
| | | |
| | | // var id = '@Model.'; |
| | | |
| | | $(document).ready(function () { |
| | | if ("@Model.HuifangStatus" == "A") { |
| | | $("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(); |
| | | |
| | | } |
| | | }); |
| | | |
| | | // 保存岗位信息 |
| | | var savePosition = function () { |
| | |
| | | |
| | | |
| | | if ($.trim($("#Huifangremark").val()) == '') { |
| | | toastr.warning("回访备注不能为空"); |
| | | toastr.warning("回访情况不能为空"); |
| | | return; |
| | | } |
| | | |
| | | if ($.trim($("#PingjiaStatus").val()) == '') { |
| | | toastr.warning("用户评价不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | var data = { Huifangid: $("#Huifangid").val(), Huifangremark: $("#Huifangremark").val()} |
| | | // var data = { Huifangid: $("#Huifangid").val(), Huifangremark: $("#Huifangremark").val()} |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/CooperOrder/Huifangtuihuan", |
| | | dataType: "json", |
| | | global: false, |
| | | data: data, |
| | | data: $('form').serializeArray(), |
| | | success: function (data) { |
| | | |
| | | |
| | | |
| | | |
| | | if (data.Result) { |