|
@@ -38,18 +38,59 @@
|
|
|
<div class="layui-col-lg12">
|
|
<div class="layui-col-lg12">
|
|
|
<label class="layui-form-label" style="top: -5.5px;">搜索条件</label>
|
|
<label class="layui-form-label" style="top: -5.5px;">搜索条件</label>
|
|
|
<div class="layui-input-inline">
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" id="name" name="name" class="layui-input" placeholder="请输入名称">
|
|
|
|
|
|
|
+ <input type="text" id="name" name="name" class="layui-input" placeholder="请输入用户昵称,uid">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-input-inline">
|
|
|
|
|
+ <input type="text" id="rece" name="rece" class="layui-input" placeholder="请输入接单员昵称,uid">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-input-inline">
|
|
|
|
|
+ <input type="text" id="order_id" name="order_id" class="layui-input" placeholder="订单号">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label" style="top: -4.5px">类型</label>
|
|
<label class="layui-form-label" style="top: -4.5px">类型</label>
|
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
|
- <select name="type">
|
|
|
|
|
|
|
+ <select name="type" id="type">
|
|
|
<option value="">全部</option>
|
|
<option value="">全部</option>
|
|
|
<option value="1">陪诊</option>
|
|
<option value="1">陪诊</option>
|
|
|
<option value="2">代办</option>
|
|
<option value="2">代办</option>
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+<!-- <div class="layui-inline">-->
|
|
|
|
|
+<!-- <label class="layui-form-label" style="top: -4.5px">支付方式</label>-->
|
|
|
|
|
+<!-- <div class="layui-input-block">-->
|
|
|
|
|
+<!-- <select name="pay_type">-->
|
|
|
|
|
+<!-- <option value="">全部</option>-->
|
|
|
|
|
+<!-- <option value="1">余额</option>-->
|
|
|
|
|
+<!-- <option value="2">微信</option>-->
|
|
|
|
|
+<!-- <option value="3">支付宝</option>-->
|
|
|
|
|
+<!-- </select>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
+<!-- </div>-->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-col-lg12" id="app1">
|
|
|
|
|
+ <div class="layui-col-lg12">
|
|
|
|
|
+ <label class="layui-form-label">创建时间:</label>
|
|
|
|
|
+ <div class="layui-input-block" data-type="data" v-cloak="">
|
|
|
|
|
+ <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList"
|
|
|
|
|
+ @click="setData(item)"
|
|
|
|
|
+ :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button class="layui-btn layui-btn-sm" type="button" ref="time"
|
|
|
|
|
+ @click="setData({value:'zd',is_zd:true})"
|
|
|
|
|
+ :class="{'layui-btn-primary':where.data!='zd'}">自定义
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
|
|
|
|
|
+ v-show="showtime==true" ref="date_time">{$year.0} - {$year.1}
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="layui-inline">
|
|
|
|
|
+ <button @click="excel" type="button"
|
|
|
|
|
+ class="layui-btn layui-btn-warm layui-btn-sm export" type="button">
|
|
|
|
|
+ <i class="fa fa-floppy-o" style="margin-right: 3px;"></i>导出
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
<div class="layui-inline">
|
|
|
<div class="layui-input-inline">
|
|
<div class="layui-input-inline">
|
|
@@ -57,6 +98,7 @@
|
|
|
<i class="layui-icon layui-icon-search"></i>搜索</button>
|
|
<i class="layui-icon layui-icon-search"></i>搜索</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
@@ -83,15 +125,38 @@
|
|
|
</div>
|
|
</div>
|
|
|
<table class="layui-hide" id="List" lay-filter="List"></table>
|
|
<table class="layui-hide" id="List" lay-filter="List"></table>
|
|
|
|
|
|
|
|
- <script type="text/html" id="is_show">
|
|
|
|
|
- <input type='checkbox' name='id' lay-skin='switch' value="{{d.id}}" lay-filter='is_show' lay-text='开启|关闭' {{ d.status == 1 ? 'checked' : '' }}>
|
|
|
|
|
|
|
+ <script type="text/html" id="nickname">
|
|
|
|
|
+ {{d.nickname}}/{{d.uid}}
|
|
|
|
|
+
|
|
|
|
|
+ </script>
|
|
|
|
|
+ <script type="text/html" id="re">
|
|
|
|
|
+ {{d.nickname}}/{{d.uid}}
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
<script type="text/html" id="act">
|
|
<script type="text/html" id="act">
|
|
|
- <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="$eb.createModalFrame('编辑','{:Url('edit')}?id={{d.id}}',{h:500,w:500})">
|
|
|
|
|
- 编辑
|
|
|
|
|
- </button>
|
|
|
|
|
- <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-event='delete' id="">
|
|
|
|
|
- 删除
|
|
|
|
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span
|
|
|
|
|
+ class="caret"></span></button>
|
|
|
|
|
+ <ul class="layui-nav-child layui-anim layui-anim-upbit">
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="javascript:void(0);" lay-event='wc'>
|
|
|
|
|
+ <i class="fa fa-file-text"></i> 完成
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="javascript:void(0);" lay-event='delete'>
|
|
|
|
|
+ <i class="fa fa-edit"></i> 删除
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ {{# if(d.status == '待退款' && d.refund_status == 0){ }}
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="javascript:void(0);" onclick="$eb.createModalFrame('编辑','{:Url('refund')}?id={{d.id}}',{h:950,w:800})">
|
|
|
|
|
+ <i class="fa fa-edit"></i> 退款
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ {{# } ;}}
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="$eb.createModalFrame('编辑','{:Url('info')}?id={{d.id}}',{h:950,w:800})">
|
|
|
|
|
+ 详情
|
|
|
</button>
|
|
</button>
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
@@ -110,11 +175,17 @@
|
|
|
return [
|
|
return [
|
|
|
{type: 'checkbox'},
|
|
{type: 'checkbox'},
|
|
|
{field: 'id', title: 'ID', sort: true, event: 'id', width: '5%', templet: '#id'},
|
|
{field: 'id', title: 'ID', sort: true, event: 'id', width: '5%', templet: '#id'},
|
|
|
- {field: 'name', title: '名称', templet: '#name', align: 'center'},
|
|
|
|
|
- {field: 'type', title: '类型', templet: '#name', align: 'center'},
|
|
|
|
|
- {field: 'price', title: '金额', align: 'center'},
|
|
|
|
|
- {field: 'reward', title: '接单奖励', align: 'center'},
|
|
|
|
|
- {field: 'status', title: '状态', templet: '#is_show', align: 'center'},
|
|
|
|
|
|
|
+ {field: 'nickname', title: '用户', templet: '#nickname', align: 'center'},
|
|
|
|
|
+ {field: 'order_id', title: '订单号', align: 'center'},
|
|
|
|
|
+ {field: 'cate', title: '服务', align: 'center'},
|
|
|
|
|
+ {field: 'type', title: '类型', align: 'center'},
|
|
|
|
|
+ {field: 'ot_price', title: '订单金额', align: 'center'},
|
|
|
|
|
+ {field: 'pay_price', title: '实际支付', align: 'center'},
|
|
|
|
|
+ {field: 'commission', title: '佣金', align: 'center'},
|
|
|
|
|
+ {field: 'paid', title: '支付状态', align: 'center'},
|
|
|
|
|
+ {field: 'pay_type', title: '支付方式', align: 'center'},
|
|
|
|
|
+ {field: 're_nickname', title: '接单员', templet: '#re', align: 'center'},
|
|
|
|
|
+ {field: 'status', title: '状态', align: 'center'},
|
|
|
{field: 'create_time', title: '时间', align: 'center', width: '8%'},
|
|
{field: 'create_time', title: '时间', align: 'center', width: '8%'},
|
|
|
{field: 'right', title: '操作', align: 'center', toolbar: '#act',width: '15%'},
|
|
{field: 'right', title: '操作', align: 'center', toolbar: '#act',width: '15%'},
|
|
|
];
|
|
];
|
|
@@ -141,7 +212,7 @@
|
|
|
layList.tool(function (event,data,obj) {
|
|
layList.tool(function (event,data,obj) {
|
|
|
switch (event) {
|
|
switch (event) {
|
|
|
case 'delete':
|
|
case 'delete':
|
|
|
- var url=layList.U({c:'water.water_cate',a:'delete',q:{id:data.id}});
|
|
|
|
|
|
|
+ var url=layList.U({c:'diagnosis.diagnosis_order',a:'delete',q:{id:data.id}});
|
|
|
var code = {title:"操作提示",text:"确定将该商品移入回收站吗?",type:'info',confirm:'是的,移入回收站'};
|
|
var code = {title:"操作提示",text:"确定将该商品移入回收站吗?",type:'info',confirm:'是的,移入回收站'};
|
|
|
$eb.$swal('delete',function(){
|
|
$eb.$swal('delete',function(){
|
|
|
$eb.axios.get(url).then(function(res){
|
|
$eb.axios.get(url).then(function(res){
|
|
@@ -156,6 +227,21 @@
|
|
|
});
|
|
});
|
|
|
},code)
|
|
},code)
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case 'wc':
|
|
|
|
|
+ var url=layList.U({c:'diagnosis.diagnosis_order',a:'wc',q:{id:data.id}});
|
|
|
|
|
+ var code = {title:"操作提示",text:"确定完成吗?",type:'info',confirm:'是的'};
|
|
|
|
|
+ $eb.$swal('delete',function(){
|
|
|
|
|
+ $eb.axios.get(url).then(function(res){
|
|
|
|
|
+ if(res.status == 200 && res.data.code == 200) {
|
|
|
|
|
+ $eb.$swal('success',res.data.msg);
|
|
|
|
|
+ location.reload();
|
|
|
|
|
+ }else
|
|
|
|
|
+ return Promise.reject(res.data.msg || '失败')
|
|
|
|
|
+ }).catch(function(err){
|
|
|
|
|
+ $eb.$swal('error',err);
|
|
|
|
|
+ });
|
|
|
|
|
+ },code)
|
|
|
|
|
+ break;
|
|
|
case 'open_image':
|
|
case 'open_image':
|
|
|
$eb.openImage(data.image);
|
|
$eb.openImage(data.image);
|
|
|
break;
|
|
break;
|
|
@@ -165,6 +251,34 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+ function dropdown(that) {
|
|
|
|
|
+ var oEvent = arguments.callee.caller.arguments[0] || event;
|
|
|
|
|
+ oEvent.stopPropagation();
|
|
|
|
|
+ var offset = $(that).offset();
|
|
|
|
|
+ var top = offset.top - $(window).scrollTop();
|
|
|
|
|
+ var index = $(that).parents('tr').data('index');
|
|
|
|
|
+ $('.layui-nav-child').each(function (key) {
|
|
|
|
|
+ if (key != index) {
|
|
|
|
|
+ $(this).hide();
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ if ($(document).height() < top + $(that).next('ul').height()) {
|
|
|
|
|
+ $(that).next('ul').css({
|
|
|
|
|
+ 'padding': 10,
|
|
|
|
|
+ 'top': -($(that).parents('td').height() / 2 + $(that).height() + $(that).next('ul').height() / 2),
|
|
|
|
|
+ 'min-width': 'inherit',
|
|
|
|
|
+ 'position': 'absolute'
|
|
|
|
|
+ }).toggle();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $(that).next('ul').css({
|
|
|
|
|
+ 'padding': 10,
|
|
|
|
|
+ 'top': $(that).parents('td').height() / 2 + $(that).height(),
|
|
|
|
|
+ 'min-width': 'inherit',
|
|
|
|
|
+ 'position': 'absolute'
|
|
|
|
|
+ }).toggle();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//改状态
|
|
//改状态
|
|
|
layList.switch('status',function (odj,value) {
|
|
layList.switch('status',function (odj,value) {
|
|
@@ -182,5 +296,107 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ require(['vue'], function (Vue) {
|
|
|
|
|
+ new Vue({
|
|
|
|
|
+ el: "#app1",
|
|
|
|
|
+ data: {
|
|
|
|
|
+ badge: [],
|
|
|
|
|
+ dataList: [
|
|
|
|
|
+ {name: '全部', value: ''},
|
|
|
|
|
+ {name: '今天', value: 'today'},
|
|
|
|
|
+ {name: '昨天', value: 'yesterday'},
|
|
|
|
|
+ {name: '最近7天', value: 'lately7'},
|
|
|
|
|
+ {name: '最近30天', value: 'lately30'},
|
|
|
|
|
+ {name: '本月', value: 'month'},
|
|
|
|
|
+ {name: '本年', value: 'year'},
|
|
|
|
|
+ ],
|
|
|
|
|
+ where: {
|
|
|
|
|
+ data: '',
|
|
|
|
|
+ status: status,
|
|
|
|
|
+ type: '',
|
|
|
|
|
+ pay_type: '',
|
|
|
|
|
+ excel: 0,
|
|
|
|
|
+ },
|
|
|
|
|
+ showtime: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ 'where.status': function () {
|
|
|
|
|
+ this.where.excel = 0;
|
|
|
|
|
+ this.getBadge();
|
|
|
|
|
+ layList.reload(this.where, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ 'where.data': function () {
|
|
|
|
|
+ this.where.excel = 0;
|
|
|
|
|
+ this.getBadge();
|
|
|
|
|
+ layList.reload(this.where, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ 'where.type': function () {
|
|
|
|
|
+ this.where.excel = 0;
|
|
|
|
|
+ this.getBadge();
|
|
|
|
|
+ layList.reload(this.where, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ 'where.pay_type': function () {
|
|
|
|
|
+ this.where.excel = 0;
|
|
|
|
|
+ this.getBadge();
|
|
|
|
|
+ layList.reload(this.where, true);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ setData: function (item) {
|
|
|
|
|
+ var that = this;
|
|
|
|
|
+ if (item.is_zd == true) {
|
|
|
|
|
+ that.showtime = true;
|
|
|
|
|
+ this.where.data = this.$refs.date_time.innerText;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.showtime = false;
|
|
|
|
|
+ this.where.data = item.value;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ getBadge: function () {
|
|
|
|
|
+ var that = this;
|
|
|
|
|
+ layList.basePost(layList.Url({c: 'order.store_order', a: 'getBadge'}), this.where, function (rem) {
|
|
|
|
|
+ that.badge = rem.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ search: function () {
|
|
|
|
|
+ this.where.excel = 0;
|
|
|
|
|
+ this.getBadge();
|
|
|
|
|
+ layList.reload(this.where, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ refresh: function () {
|
|
|
|
|
+ layList.reload();
|
|
|
|
|
+ this.getBadge();
|
|
|
|
|
+ },
|
|
|
|
|
+ excel: function () {
|
|
|
|
|
+ var name = $('#name').val();
|
|
|
|
|
+ var order_id = $('#order_id').val();
|
|
|
|
|
+ var rece = $('#rece').val();
|
|
|
|
|
+ var type = $('#type').val();
|
|
|
|
|
+ this.where['name'] = name;
|
|
|
|
|
+ this.where['order_id'] = order_id;
|
|
|
|
|
+ this.where['rece'] = rece;
|
|
|
|
|
+ this.where['type'] = type;
|
|
|
|
|
+ this.where.excel = 1;
|
|
|
|
|
+ location.href = layList.Url({c: 'diagnosis.diagnosis_order', a: 'list', q: this.where});
|
|
|
|
|
+ this.where.excel = 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted: function () {
|
|
|
|
|
+ var that = this;
|
|
|
|
|
+ that.getBadge();
|
|
|
|
|
+ window.formReload = this.search;
|
|
|
|
|
+ layList.laydate.render({
|
|
|
|
|
+ elem: this.$refs.date_time,
|
|
|
|
|
+ trigger: 'click',
|
|
|
|
|
+ eventElem: this.$refs.time,
|
|
|
|
|
+ range: true,
|
|
|
|
|
+ change: function (value) {
|
|
|
|
|
+ that.where.data = value;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ });
|
|
|
</script>
|
|
</script>
|
|
|
{/block}
|
|
{/block}
|