|
|
@@ -938,4 +938,29 @@ class WorkOrderVerification extends Api
|
|
|
$summedData = array_values($summedData);
|
|
|
$this->success('请求成功',$summedData);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 工单核检单删除
|
|
|
+ * @return void
|
|
|
+ * @throws \think\Exception
|
|
|
+ * @throws \think\exception\PDOException
|
|
|
+ */
|
|
|
+ public function del()
|
|
|
+ {
|
|
|
+ if ($this->request->isGet() === false){
|
|
|
+ $this->error('请求错误');
|
|
|
+ }
|
|
|
+ $param = $this->request->param();
|
|
|
+ if (empty($param['UniqId'])){
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ $res = \db('db_qczl')
|
|
|
+ ->where('UniqId',$param['UniqId'])
|
|
|
+ ->delete();
|
|
|
+ if ($res !== false){
|
|
|
+ $this->success('删除成功');
|
|
|
+ }else{
|
|
|
+ $this->error('产出失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|