dataLists(new BidBuyBiddingDocumentLists()); } /** * @notes 添加购买标书 * @return \think\response\Json * @author likeadmin * @date 2023/11/27 18:22 */ public function add() { $params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('add'); $result = BidBuyBiddingDocumentLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(BidBuyBiddingDocumentLogic::getError()); } /** * @notes 获取购买标书详情 * @return \think\response\Json * @author likeadmin * @date 2023/11/27 18:22 */ public function detail() { $params = (new BidBuyBiddingDocumentValidate())->goCheck('detail'); $result = BidBuyBiddingDocumentLogic::detail($params); return $this->data($result); } //获取审批流程列表 public function flows(): \think\response\Json { $flow_type = FlowType::where('type',1)->where('name','gmbs')->findOrEmpty(); $data = Flow::field('id,name')->where('flow_cate',$flow_type['id'])->where('status',2)->select(); return $this->success('请求成功',$data->toArray()); } //添加审批 public function approve(): \think\response\Json { $params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('approve'); $result = BidBuyBiddingDocumentLogic::approve($params,$this->adminId); if (true === $result) { return $this->success('提交审核信息成功', [], 1, 1); } return $this->fail(BidBuyBiddingDocumentLogic::getError()); } }