|
@@ -250,4 +250,59 @@ class WorksController extends BaseApiController
|
|
|
return $this->dataLists(new GoodsFeeStandardsLists());
|
|
return $this->dataLists(new GoodsFeeStandardsLists());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 预约通知提醒
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ */
|
|
|
|
|
+ public function appointmentNotice()
|
|
|
|
|
+ {
|
|
|
|
|
+ $result = ServiceWorkLogic::getAppointmentNotice($this->userId);
|
|
|
|
|
+ return $this->data($result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 预约通知确认
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ */
|
|
|
|
|
+ public function appointmentSubmitNotice()
|
|
|
|
|
+ {
|
|
|
|
|
+ $params = (new ServiceWorkValidate())->post()->goCheck('submitAppointment', [
|
|
|
|
|
+ 'user_id' => $this->userId,
|
|
|
|
|
+ 'user_info' => $this->userInfo
|
|
|
|
|
+ ]);
|
|
|
|
|
+ $result = ServiceWorkLogic::submitAppointment($params);
|
|
|
|
|
+ if (false === $result) {
|
|
|
|
|
+ return $this->fail(ServiceWorkLogic::getError());
|
|
|
|
|
+ }
|
|
|
|
|
+ return $this->success('操作成功,已确定新的预约时间', [], 1, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 改价通知提醒
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ */
|
|
|
|
|
+ public function ChangePriceNotice()
|
|
|
|
|
+ {
|
|
|
|
|
+ $params = (new ServiceWorkValidate())->goCheck('detail',[
|
|
|
|
|
+ 'user_id' => $this->userId,
|
|
|
|
|
+ ]);
|
|
|
|
|
+ if(empty($params['id']) && empty($params['work_sn'])){
|
|
|
|
|
+ $this->fail('参数错误');
|
|
|
|
|
+ }
|
|
|
|
|
+ $result = ServiceWorkLogic::detail($params);
|
|
|
|
|
+ if (false === $result) {
|
|
|
|
|
+ return $this->fail(ServiceWorkLogic::getError());
|
|
|
|
|
+ }
|
|
|
|
|
+ return $this->data($result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 改价通知确认
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ */
|
|
|
|
|
+ public function ChangePriceSubmitNotice()
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|