You've already forked guangan
删除控价
This commit is contained in:
@ -4,6 +4,8 @@ namespace plugin\inspection\controller\api\auth;
|
||||
|
||||
use plugin\inspection\controller\api\Auth;
|
||||
use plugin\ticket\model\ApprovalInstance as Model;
|
||||
use plugin\ticket\model\ApprovalProcess;
|
||||
|
||||
//use plugin\ticket\model\TicketVerify as Model;
|
||||
|
||||
class TicketVerify extends Auth
|
||||
@ -11,9 +13,9 @@ class TicketVerify extends Auth
|
||||
|
||||
public function list()
|
||||
{
|
||||
$query = Model::query()->where("type", '=', "YSSH")->with(['ticket'])
|
||||
->whereIn("ticket_id", \plugin\ticket\model\TicketRepair::query()->where('staff_id', '=', $this->staff->id)->column('ticket_id'));
|
||||
$query->order('create_at', 'desc');
|
||||
$query = Model::query()->whereIn("process_id", ApprovalProcess::query()->where('type', '=', "YSSH")->column('id'))->with(['ticket'])
|
||||
->whereIn("oid", \plugin\ticket\model\TicketRepair::query()->where('staff_id', '=', $this->staff->id)->column('ticket_id'));
|
||||
$query->order('id', 'desc');
|
||||
$status = $this->request->get('status/i', null);
|
||||
if (is_numeric($status)) {
|
||||
$query->where('status', '=', $status);
|
||||
@ -22,6 +24,7 @@ class TicketVerify extends Auth
|
||||
if ($keyword) {
|
||||
$query->where('title', 'like', "%{$keyword}%");
|
||||
}
|
||||
$query->field("*, create_time as create_at, create_time as update_at");
|
||||
$pageData = $query->paginate();
|
||||
$this->success('获取工单列表', $pageData);
|
||||
}
|
||||
@ -29,7 +32,7 @@ class TicketVerify extends Auth
|
||||
public function detail()
|
||||
{
|
||||
$id = $this->request->get('id', null);
|
||||
$data = Model::query()->with(['ticket'])->where('staff_id', '=', $this->staff->id)->where(['id'=>$id])->find();
|
||||
$data = Model::query()->with(['ticket'])->where(['id'=>$id])->find();
|
||||
if (!$data) {
|
||||
$this->error('工单不存在');
|
||||
}
|
||||
|
@ -56,8 +56,8 @@
|
||||
id: 'polyline_' + index,
|
||||
styleId: 'style_red',
|
||||
paths: [
|
||||
new TMap.LatLng(points[index + 1].lat, points[index + 1].lng),
|
||||
new TMap.LatLng(point.lat, point.lng),
|
||||
new TMap.LatLng(points[index + 1].lat, points[index + 1].lng)
|
||||
]
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user