123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- @extends('admin/layout')
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- @php
- $evaluate=$siteProcess->evaluate??[];
- @endphp
- <form class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-6 control-label" style="font-weight: normal">总分10分:非常满意10分,满意8-9分,不满意7分及以下</label>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="score"><span class="red">* </span>评分:</label>
- <div class="col-sm-4">
- <select class="form-control" name="score" id="score" style="width: 90px">
- <option value="">请选择</option>
- @for($i=10;$i>0;$i--)
- <option value="{{$i}}"
- @if (($evaluate['score']??0)==$i) selected @endif>{{$i}}
- 分
- </option>
- @endfor
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="feedback"><span
- class="red">* </span>客户反馈:</label>
- <div class="col-sm-4">
- <textarea name="feedback" id="feedback" cols="30" rows="4"
- class="form-control">{{$evaluate['feedback']??''}}</textarea>
- </div>
- </div>
- {{--<div class="form-group">--}}
- {{--<label class="col-sm-2 control-label" for="feedback_reply"><span class="red">* </span>回访记录:</label>--}}
- {{--<div class="col-sm-4">--}}
- {{--<textarea name="feedback_reply" id="feedback_reply" cols="30" rows="4"--}}
- {{--class="form-control"--}}
- {{--@if($isCustomer) disabled @endif>{{$evaluate['feedback_reply']['reply']??''}}</textarea>--}}
- {{--</div>--}}
- {{--</div>--}}
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-8">
- <button class="btn btn-sm btn-primary" type="button" onclick="units.save()">提交
- </button>
- <button class="btn btn-sm btn-white closeLayer" type="button">取消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- var units = {
- save: function () {
- var data, score, feedback;
- score = $("#score").val();
- feedback = $("#feedback").val();
- if (score === "") {
- layer.alert('请先评分', {icon: 5});
- return;
- }
- if (feedback.length === 0) {
- layer.alert('请填写客户反馈', {icon: 5});
- return;
- }
- data = {score: score, feedback: feedback};
- var config = {
- url: '/admin/process/score/' + "{{$siteProcess->id}}",
- type: 'put',
- data: data
- };
- config.success = function (result) {
- layer.msg(result.message, {icon: 1, time: 1000}, function () {
- parent.window.location.reload();
- tips.closeParentLayer();
- });
- };
- tips.ajax(config);
- }
- };
- </script>
- @endsection
|