commit
8e60e94fa1
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace App\Forms;
|
||||
|
||||
use App\Models\AskSubmit;
|
||||
use App\Models\Project;
|
||||
use Kris\LaravelFormBuilder\Form;
|
||||
use Kris\LaravelFormBuilder\Field;
|
||||
|
||||
class AskSubmitScForm extends Form
|
||||
{
|
||||
public function buildForm()
|
||||
{
|
||||
$this->add("name", Field::TEXT, ["label" => "名字", "rules" => "required"]);
|
||||
$this->add("mobile", Field::TEXT, ["label" => "电话", "rules" => "required"]);
|
||||
$this->add("project_id", Field::SELECT, ["label" => "所属项目/医院", "rules" => "required", "empty_value" => "请选择"]);
|
||||
// $this->add("visit", Field::TEXT, ["label" => "拜访人员", "rules" => "required"]);
|
||||
$this->add("date", Field::DATE, ["label" => "考核日期", "rules" => "required"]);
|
||||
$this->add("department", Field::TEXT, ["label" => "就诊科室", "rules" => "required"]);
|
||||
$this->add("ask[0]", Field::SELECT, ["label" => AskSubmit::$askListSc[0],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[1]", Field::SELECT, ["label" => AskSubmit::$askListSc[1],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[2]", Field::SELECT, ["label" => AskSubmit::$askListSc[2],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[3]", Field::SELECT, ["label" => AskSubmit::$askListSc[3],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[4]", Field::SELECT, ["label" => AskSubmit::$askListSc[4],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[5]", Field::SELECT, ["label" => AskSubmit::$askListSc[5],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[6]", Field::SELECT, ["label" => AskSubmit::$askListSc[6],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[7]", Field::SELECT, ["label" => AskSubmit::$askListSc[7],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[8]", Field::SELECT, ["label" => AskSubmit::$askListSc[8],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("ask[9]", Field::SELECT, ["label" => AskSubmit::$askListSc[9],
|
||||
"rules" => "required",
|
||||
"choices" => ['10' => '非常满意', '9' => '满意', '7' => '一般','5'=>'不满意']
|
||||
]);
|
||||
$this->add("tip", Field::TEXT, ["label" => "建议"]);
|
||||
$this->add('buttons', 'buttongroup', ["splitted" => true, "buttons" => [
|
||||
["label" => "保存", "attr" => ["class" => "btn btn-primary mr-1", "type" => "submit"]],
|
||||
["label" => "返回", "attr" => ["class" => "btn btn-light btn-back", "type" => "button"]]
|
||||
]]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UpdateAskSubmitsAddMobile extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table("ask_submits", function (Blueprint $table) {
|
||||
$table->string('name')->nullable();
|
||||
$table->string('mobile')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 61 KiB |
File diff suppressed because one or more lines are too long
@ -0,0 +1,76 @@
|
||||
@extends("admin.layouts.layout")
|
||||
|
||||
@php
|
||||
$pageTitle = "首页";
|
||||
@endphp
|
||||
|
||||
@push("header")
|
||||
<style>
|
||||
.toll-free-box i {
|
||||
transform: none !important;
|
||||
left: 1rem;
|
||||
bottom: .4rem;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section("content")
|
||||
<div class="row">
|
||||
<div class="col-lg-3">
|
||||
<div class="card text-white bg-info overflow-hidden">
|
||||
<div class="card-body p-2" onclick="jump('/admin/orders')">
|
||||
<div class="toll-free-box">
|
||||
<h4 class="text-center pr-2">
|
||||
订单列表
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end col-->
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="card text-white bg-warning overflow-hidden">
|
||||
<div class="card-body p-2" onclick="jump('/admin/orders/score')">
|
||||
<div class="toll-free-box">
|
||||
<h4 class="text-center pr-2">
|
||||
评价管理
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end col-->
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="card text-white bg-primary overflow-hidden">
|
||||
<div class="card-body p-2" onclick="jump('/admin/orders/artboard')">
|
||||
<div class="toll-free-box">
|
||||
<h4 class="text-center pr-2">
|
||||
陪护一览
|
||||
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end col-->
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="card text-white bg-success overflow-hidden">
|
||||
<div class="card-body p-2" onclick="jump('/admin/project/asksubmit')">
|
||||
<div class="toll-free-box">
|
||||
<h4 class="text-center pr-2">
|
||||
满意度调查
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end col-->
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
<script>
|
||||
function jump(url){
|
||||
window.open(url)
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -0,0 +1,186 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>{{ env("APP_NAME")}}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta content="内部信息化平台" name="description"/>
|
||||
<meta content="{{csrf_token()}}" name="csrf-token"/>
|
||||
<meta content="langye.net" name="author"/>
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="/hyper/dist/saas/assets/images/favicon.ico">
|
||||
|
||||
<!-- third party css -->
|
||||
<link href="/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="/plugins/select2/css/select2.css" rel="stylesheet" type="text/css" media="all"/>
|
||||
<link href="/plugins/webuploader/webuploader.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="/plugins/webuploader/webuploader.my.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="/plugins/sweetalert2/sweetalert2.min.css" rel="stylesheet" type="text/css"/>
|
||||
<!-- third party css end -->
|
||||
|
||||
<!-- App css -->
|
||||
<link href="/hyper/dist/saas/assets/css/icons.min.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="/hyper/dist/saas/assets/css/app.min.css" rel="stylesheet" type="text/css" id="light-style"/>
|
||||
<link href="/hyper/dist/saas/assets/css/app-dark.min.css" rel="stylesheet" type="text/css" id="dark-style"/>
|
||||
<link href="/css/common.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
@stack("header")
|
||||
|
||||
<style>
|
||||
.card-body{
|
||||
overflow: scroll;
|
||||
}
|
||||
.table td {
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.table th {
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
}
|
||||
body[data-leftbar-compact-mode=condensed] .wrapper .content-page{
|
||||
margin-left: 0px;
|
||||
}
|
||||
.content-page{
|
||||
margin-left: 0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="loading"
|
||||
data-layout-config='{"leftSideBarTheme":"default","layoutBoxed":false, "leftSidebarCondensed":false, "leftSidebarScrollable":false,"darkMode":false, "showRightSidebarOnStart": false}'>
|
||||
<!-- Begin page -->
|
||||
|
||||
<!-- Pre-loader -->
|
||||
<div id="preloader">
|
||||
<div id="status">
|
||||
<div class="bouncing-loader">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Preloader-->
|
||||
|
||||
<div class="wrapper">
|
||||
<!-- ========== Left Sidebar Start ========== -->
|
||||
<!-- Left Sidebar End -->
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- Start Page Content here -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
|
||||
<!-- end Topbar -->
|
||||
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid position-relative">
|
||||
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
|
||||
</div>
|
||||
<h4 class="page-title">陪护工作满意度调查表</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@include("public._form")
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- container -->
|
||||
</div>
|
||||
<!-- content -->
|
||||
|
||||
<!-- Footer Start -->
|
||||
<footer class="footer">
|
||||
<div class="container-fluid position-relative">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{{ date("Y") }} © {{ env("COPYRIGHT") }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="text-md-right footer-links d-none d-md-block">
|
||||
{{ isset($laravel_duration) ? $laravel_duration : "" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- end Footer -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- End Page content -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
|
||||
</div>
|
||||
<!-- END wrapper -->
|
||||
|
||||
<div class="rightbar-overlay"></div>
|
||||
<!-- /Right-bar -->
|
||||
|
||||
<!-- bundle -->
|
||||
<script src="/hyper/dist/saas/assets/js/vendor.min.js"></script>
|
||||
<script src="/hyper/dist/saas/assets/js/app.min.js"></script>
|
||||
|
||||
<!-- third party js -->
|
||||
<script src="/plugins/jquery-validate/jquery.validate.min.js" type="text/javascript"></script>
|
||||
<script src="/plugins/jquery-validate/additional-methods.js" type="text/javascript"></script>
|
||||
<script src="/plugins/jquery-validate/localization/messages_zh.js" type="text/javascript"></script>
|
||||
<script src="/plugins/moment/js/moment-with-locales.min.js"></script>
|
||||
<script src="/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
|
||||
<script src="/plugins/autofill/jquery.formautofill.min.js"></script>
|
||||
<script src="/plugins/webuploader/webuploader.nolog.js"></script>
|
||||
<script src="/plugins/bignumber/bignumber.js"></script>
|
||||
<script src="/plugins/select2/js/select2.full.js" type="text/javascript"></script>
|
||||
<script src="/plugins/select2/js/pinyin.js" type="text/javascript"></script>
|
||||
<script src="/plugins/sweetalert2/sweetalert2.min.js"></script>
|
||||
<!-- third party js ends -->
|
||||
|
||||
<!-- common js -->
|
||||
<script src="/js/common.js"></script>
|
||||
<script>
|
||||
var page_title = "{{ isset($pageTitle) ? $pageTitle : "" }}";
|
||||
|
||||
$(function () {
|
||||
setPageTitle();
|
||||
});
|
||||
|
||||
function setPageTitle() {
|
||||
if ($("h4.page-title").text() != "") {
|
||||
return;
|
||||
}
|
||||
|
||||
$(".left-side-menu a.active").each(function () {
|
||||
if ($(this).siblings().length > 0) return;
|
||||
page_title = $(this).text();
|
||||
});
|
||||
|
||||
$("h4.page-title").text(page_title);
|
||||
}
|
||||
</script>
|
||||
<!-- end common js-->
|
||||
@stack("footer")
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -0,0 +1,122 @@
|
||||
@extends("admin.layouts.layout")
|
||||
|
||||
@push("header")
|
||||
|
||||
@endpush
|
||||
|
||||
@section("content")
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body" style="overflow: auto;">
|
||||
<div class="mb-3">
|
||||
<form class="form-inline">
|
||||
<select class="form-control mr-1" name="project_id"
|
||||
onchange="$(this).closest('form').submit()">
|
||||
@foreach($projects as $pp)
|
||||
<option
|
||||
value="{{$pp->id}}" @if($pp->id == $project_id) {{ "selected" }}@endif>{{$pp->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<select class="form-control" name="month" onchange="$(this).closest('form').submit()">
|
||||
@foreach($months as $mm)
|
||||
<option value="{{$mm}}" @if($mm == $month) {{ "selected" }}@endif>{{$mm}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<button class="btn btn-primary ml-1" type="button" onclick="PageBodyPrint()">打印</button>
|
||||
</form>
|
||||
</div>
|
||||
<!--start print-->
|
||||
<div style="position: relative;padding-bottom: 20px;">
|
||||
<table class="table table-bordered mb-0 table-datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="p-1" style="white-space: nowrap">病区</th>
|
||||
<th class="p-1" style="white-space: nowrap">护理费用(元)</th>
|
||||
<th class="p-1" style="white-space: nowrap">手续费0.6%</th>
|
||||
<th class="p-1" style="white-space: nowrap">增值税6%</th>
|
||||
<th class="p-1" style="white-space: nowrap">实际收入(元)</th>
|
||||
<th class="p-1" style="white-space: nowrap">院方管理费6%</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($area as $row)
|
||||
<tr>
|
||||
<td>{{ $row->name }}</td>
|
||||
<td>{{ $row->order_total }}</td>
|
||||
<td>{{ $row->shouxufei }}</td>
|
||||
<td>{{ $row->zengshishui }}</td>
|
||||
<td>{{ $row->shijishouru }}</td>
|
||||
<td>{{ $row->guanlifei }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>合计</td>
|
||||
<td>{{ $total['order_total'] }}</td>
|
||||
<td>{{ $total['shouxufei'] }}</td>
|
||||
<td>{{ $total['zengshishui'] }}</td>
|
||||
<td>{{ $total['shijishouru'] }}</td>
|
||||
<td>{{ $total['guanlifei'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>退款</td>
|
||||
<td>{{ $refund['order_total'] }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{{ $refund['shijishouru'] }}</td>
|
||||
<td>{{ $refund['guanlifei'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>总计</td>
|
||||
<td>{{ $zongji['order_total'] }}</td>
|
||||
<td>{{ $zongji['shouxufei'] }}</td>
|
||||
<td>{{ $zongji['zengshishui'] }}</td>
|
||||
<td>{{ $zongji['shijishouru'] }}</td>
|
||||
<td>{{ $zongji['guanlifei'] }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<img class="print-yz" src="/images/yz.png" alt=""
|
||||
style="filter: saturate(2);position: absolute;right: 20px; bottom: 20px; width: 154px;">
|
||||
<div
|
||||
style="text-align: right;line-height: 2;margin-top: 20px;font-weight: 600;position: relative;z-index: 3;">
|
||||
<div>
|
||||
江苏天天欣业物业服务有限公司
|
||||
</div>
|
||||
<div style="padding-right: 20px;">
|
||||
填报人:{{ $admin->name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end print-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function doExport(ele) {
|
||||
var url = "{{ url("admin/statistics/income") }}";
|
||||
url += "?is_export=1";
|
||||
var params = $(ele).closest("form").serialize();
|
||||
url += "&" + params;
|
||||
window.open(url);
|
||||
}
|
||||
|
||||
function PageBodyPrint() {
|
||||
var bdhtml = window.document.body.innerHTML; //获取当前页的html代码
|
||||
var sprnstr = "<!--start print-->"; //设置打印开始区域
|
||||
var eprnstr = "<!--end print-->"; //设置打印结束区域
|
||||
var prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18);
|
||||
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
|
||||
window.document.body.innerHTML = prnhtml;
|
||||
|
||||
$(".print-yz").on("load", function () {
|
||||
window.print();
|
||||
window.document.body.innerHTML = bdhtml;
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
Loading…
Reference in new issue