|
|
@@ -1562,5 +1562,53 @@ class WorkOrder extends Api
|
|
|
$this->success('成功',$list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 工单资料管理->印件资料删除
|
|
|
+ * @return void
|
|
|
+ * @throws \think\Exception
|
|
|
+ * @throws \think\exception\PDOException
|
|
|
+ */
|
|
|
+ public function PrintDetailDel()
|
|
|
+ {
|
|
|
+ if ($this->request->isGet() === false){
|
|
|
+ $this->error('请求错误');
|
|
|
+ }
|
|
|
+ $param = $this->request->param();
|
|
|
+ if (isset($param['UniqId']) === false){
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ $res = \db('工单_印件资料')
|
|
|
+ ->where('Uniqid',$param['UniqId'])
|
|
|
+ ->delete();
|
|
|
+ if ($res !== false){
|
|
|
+ $this->success('删除成功');
|
|
|
+ }else{
|
|
|
+ $this->error('删除失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
+ /**
|
|
|
+ * 工单资料管理->工艺资料删除
|
|
|
+ * @return void
|
|
|
+ * @throws \think\Exception
|
|
|
+ * @throws \think\exception\PDOException
|
|
|
+ */
|
|
|
+ public function ProcessDetailDel()
|
|
|
+ {
|
|
|
+ if ($this->request->isGet() === false){
|
|
|
+ $this->error('请求错误');
|
|
|
+ }
|
|
|
+ $param = $this->request->param();
|
|
|
+ if (isset($param['UniqId']) === false){
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ $res = \db('工单_工艺资料')
|
|
|
+ ->where('UniqId',$param['UniqId'])
|
|
|
+ ->delete();
|
|
|
+ if ($res !== false){
|
|
|
+ $this->success('删除成功');
|
|
|
+ }else{
|
|
|
+ $this->error('删除失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|