正在显示
7 个修改的文件
包含
24 行增加
和
17 行删除
@@ -134,8 +134,15 @@ class Order extends Backend | @@ -134,8 +134,15 @@ class Order extends Backend | ||
134 | 134 | ||
135 | $gold = $teacher['balance'] + ($money['money'] - $money['money'] * ($money['commission']/100)); | 135 | $gold = $teacher['balance'] + ($money['money'] - $money['money'] * ($money['commission']/100)); |
136 | $income = $teacher['income'] + ($money['money'] - $money['money'] * ($money['commission']/100)); | 136 | $income = $teacher['income'] + ($money['money'] - $money['money'] * ($money['commission']/100)); |
137 | - Db::name('teacher')->where('id',$money['teacher_id'])->update(['balance'=>$gold,'income'=>$income]); | 137 | + Db::name('teacher')->where('id',$money['teacher_id'])->update(['balance'=>$gold,'income'=>$income,'finish_status'=>5]); |
138 | } | 138 | } |
139 | + | ||
140 | + } | ||
141 | + if($params['order_status'] == 2){ | ||
142 | + if(empty($params['nopass'])){ | ||
143 | + $this->error('请填写未通过理由'); | ||
144 | + } | ||
145 | + Db::name('order')->where('id',$ids)->update(['finish_status'=>5]); | ||
139 | } | 146 | } |
140 | Db::startTrans(); | 147 | Db::startTrans(); |
141 | try { | 148 | try { |
@@ -67,12 +67,6 @@ | @@ -67,12 +67,6 @@ | ||
67 | <!--</div>--> | 67 | <!--</div>--> |
68 | <!--</div>--> | 68 | <!--</div>--> |
69 | <!--<div class="form-group">--> | 69 | <!--<div class="form-group">--> |
70 | - <!--<label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>--> | ||
71 | - <!--<div class="col-xs-12 col-sm-8">--> | ||
72 | - <!--<input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">--> | ||
73 | - <!--</div>--> | ||
74 | - <!--</div>--> | ||
75 | - <!--<div class="form-group">--> | ||
76 | <!--<label class="control-label col-xs-12 col-sm-2">{:__('Finish_status')}:</label>--> | 70 | <!--<label class="control-label col-xs-12 col-sm-2">{:__('Finish_status')}:</label>--> |
77 | <!--<div class="col-xs-12 col-sm-8">--> | 71 | <!--<div class="col-xs-12 col-sm-8">--> |
78 | <!--<input id="c-finish_status" class="form-control" name="row[finish_status]" type="number" value="{$row.finish_status|htmlentities}">--> | 72 | <!--<input id="c-finish_status" class="form-control" name="row[finish_status]" type="number" value="{$row.finish_status|htmlentities}">--> |
@@ -84,6 +78,12 @@ | @@ -84,6 +78,12 @@ | ||
84 | {:build_radios('row[order_status]', ['1'=>__('通过'),'2'=>__('未通过')], $row['order_status'])} | 78 | {:build_radios('row[order_status]', ['1'=>__('通过'),'2'=>__('未通过')], $row['order_status'])} |
85 | </div> | 79 | </div> |
86 | </div> | 80 | </div> |
81 | + <div class="form-group"> | ||
82 | + <label class="control-label col-xs-12 col-sm-2">{:__('未通过的理由(通过无需填写)')}:</label> | ||
83 | + <div class="col-xs-12 col-sm-8"> | ||
84 | + <textarea id="c-nopass" class="form-control" rows="5" name="row[nopass]" cols="50">{$row.nopass|htmlentities}</textarea> | ||
85 | + </div> | ||
86 | + </div> | ||
87 | <!--<div class="form-group">--> | 87 | <!--<div class="form-group">--> |
88 | <!--<label class="control-label col-xs-12 col-sm-2">{:__('Paytime')}:</label>--> | 88 | <!--<label class="control-label col-xs-12 col-sm-2">{:__('Paytime')}:</label>--> |
89 | <!--<div class="col-xs-12 col-sm-8">--> | 89 | <!--<div class="col-xs-12 col-sm-8">--> |
@@ -7,12 +7,11 @@ | @@ -7,12 +7,11 @@ | ||
7 | <li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li> | 7 | <li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li> |
8 | {/foreach} | 8 | {/foreach} |
9 | </ul> | 9 | </ul> |
10 | - <!--<ul class="nav nav-tabs" data-field="order_status">--> | ||
11 | - <!--<li class="active"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>--> | ||
12 | - <!--{foreach name="statusList1" item="vo"}--> | ||
13 | - <!--<li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>--> | ||
14 | - <!--{/foreach}--> | ||
15 | - <!--</ul>--> | 10 | + <ul class="nav nav-tabs" data-field="order_status"> |
11 | + {foreach name="statusList1" item="vo"} | ||
12 | + <li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li> | ||
13 | + {/foreach} | ||
14 | + </ul> | ||
16 | </div> | 15 | </div> |
17 | 16 | ||
18 | <div class="panel-body"> | 17 | <div class="panel-body"> |
@@ -126,7 +126,7 @@ class Order extends Api | @@ -126,7 +126,7 @@ class Order extends Api | ||
126 | "scale"://公司规模/下属人数 | 126 | "scale"://公司规模/下属人数 |
127 | "content"://问题描述 | 127 | "content"://问题描述 |
128 | "commission"://佣金比例 | 128 | "commission"://佣金比例 |
129 | - "finish_status"://完成状态(1进行中2已完成3售后 | 129 | + "finish_status"://完成状态(1进行中2待总结3已总结4售后5已完成 |
130 | "order_status"://订单审核(1通过2未通过 | 130 | "order_status"://订单审核(1通过2未通过 |
131 | "is_summarize"://是否总结过(1是2否 | 131 | "is_summarize"://是否总结过(1是2否 |
132 | "is_complaint"://是否投诉(1是2否3已处理 | 132 | "is_complaint"://是否投诉(1是2否3已处理 |
@@ -3728,7 +3728,7 @@ | @@ -3728,7 +3728,7 @@ | ||
3728 | "scale"://公司规模/下属人数 | 3728 | "scale"://公司规模/下属人数 |
3729 | "content"://问题描述 | 3729 | "content"://问题描述 |
3730 | "commission"://佣金比例 | 3730 | "commission"://佣金比例 |
3731 | - "finish_status"://完成状态(1进行中2已完成3售后 | 3731 | + "finish_status"://完成状态(1进行中2待总结3已总结4售后5已完成 |
3732 | "order_status"://订单审核(1通过2未通过 | 3732 | "order_status"://订单审核(1通过2未通过 |
3733 | "is_summarize"://是否总结过(1是2否 | 3733 | "is_summarize"://是否总结过(1是2否 |
3734 | "is_complaint"://是否投诉(1是2否3已处理 | 3734 | "is_complaint"://是否投诉(1是2否3已处理 |
@@ -9579,7 +9579,7 @@ | @@ -9579,7 +9579,7 @@ | ||
9579 | 9579 | ||
9580 | <div class="row mt0 footer"> | 9580 | <div class="row mt0 footer"> |
9581 | <div class="col-md-6" align="left"> | 9581 | <div class="col-md-6" align="left"> |
9582 | - Generated on 2020-03-20 18:27:55 </div> | 9582 | + Generated on 2020-03-21 09:58:25 </div> |
9583 | <div class="col-md-6" align="right"> | 9583 | <div class="col-md-6" align="right"> |
9584 | <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> | 9584 | <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> |
9585 | </div> | 9585 | </div> |
@@ -42,6 +42,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -42,6 +42,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
42 | {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, | 42 | {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, |
43 | {field: 'finish_status', title: __('Finish_status'),formatter: Table.api.formatter.label,searchList:{'1': '进行中','2':'待总结','3':'已总结','4':'售后','5':'已完成'}}, | 43 | {field: 'finish_status', title: __('Finish_status'),formatter: Table.api.formatter.label,searchList:{'1': '进行中','2':'待总结','3':'已总结','4':'售后','5':'已完成'}}, |
44 | {field: 'is_complaint', title: __('Is_complaint'),formatter: Table.api.formatter.label,searchList:{'1': '是','2':'否','3':'已处理'}}, | 44 | {field: 'is_complaint', title: __('Is_complaint'),formatter: Table.api.formatter.label,searchList:{'1': '是','2':'否','3':'已处理'}}, |
45 | + {field: 'is_chargeback', title: __('是否退单'),formatter: Table.api.formatter.label,searchList:{'1': '是','2':'否'}}, | ||
45 | {field: 'id', title: __('按钮组'), table: table, events: Table.api.events.operate, buttons: | 46 | {field: 'id', title: __('按钮组'), table: table, events: Table.api.events.operate, buttons: |
46 | [ | 47 | [ |
47 | { | 48 | { |
-
请 注册 或 登录 后发表评论