|
@@ -369,4 +369,34 @@ class PrintingPlate extends Api
|
|
|
$this->success('成功', $list);
|
|
$this->success('成功', $list);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 印版领用记录删除
|
|
|
|
|
+ * @return void
|
|
|
|
|
+ * @throws \think\Exception
|
|
|
|
|
+ * @throws \think\exception\PDOException
|
|
|
|
|
+ */
|
|
|
|
|
+ public function PrintReceiveDelete()
|
|
|
|
|
+ {
|
|
|
|
|
+ if ($this->request->isGet() === false) {
|
|
|
|
|
+ $this->error('请求错误');
|
|
|
|
|
+ }
|
|
|
|
|
+ $param = $this->request->param();
|
|
|
|
|
+ if (empty($param) || !isset($param['id'])) {
|
|
|
|
|
+ $this->error('参数错误');
|
|
|
|
|
+ }
|
|
|
|
|
+ $id = explode(',', $param['id']);
|
|
|
|
|
+ if (empty($id)) {
|
|
|
|
|
+ $this->error('请先选中要删除数据');
|
|
|
|
|
+ }
|
|
|
|
|
+ $res = db('工单_印版领用记录')
|
|
|
|
|
+ ->where('UniqID','in',$id)
|
|
|
|
|
+ ->delete();
|
|
|
|
|
+ if ($res === false){
|
|
|
|
|
+ $this->error('删除失败');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $this->success('删除成功');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|