diff --git a/app/adminapi/controller/bid/BidBiddingDecisionController.php b/app/adminapi/controller/bid/BidBiddingDecisionController.php new file mode 100644 index 000000000..9b9f186f9 --- /dev/null +++ b/app/adminapi/controller/bid/BidBiddingDecisionController.php @@ -0,0 +1,108 @@ +dataLists(new BidBiddingDecisionLists()); + } + + + /** + * @notes 添加投标决策 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function add() + { + $params = (new BidBiddingDecisionValidate())->post()->goCheck('add'); + $result = BidBiddingDecisionLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(BidBiddingDecisionLogic::getError()); + } + + + /** + * @notes 编辑投标决策 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function edit() + { + $params = (new BidBiddingDecisionValidate())->post()->goCheck('edit'); + $result = BidBiddingDecisionLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(BidBiddingDecisionLogic::getError()); + } + + + /** + * @notes 删除投标决策 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function delete() + { + $params = (new BidBiddingDecisionValidate())->post()->goCheck('delete'); + BidBiddingDecisionLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取投标决策详情 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function detail() + { + $params = (new BidBiddingDecisionValidate())->goCheck('detail'); + $result = BidBiddingDecisionLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/bid/BidBuyBiddingDocumentController.php b/app/adminapi/controller/bid/BidBuyBiddingDocumentController.php new file mode 100644 index 000000000..12b6f5063 --- /dev/null +++ b/app/adminapi/controller/bid/BidBuyBiddingDocumentController.php @@ -0,0 +1,108 @@ +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 edit() + { + $params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('edit'); + $result = BidBuyBiddingDocumentLogic::edit($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 delete() + { + $params = (new BidBuyBiddingDocumentValidate())->post()->goCheck('delete'); + BidBuyBiddingDocumentLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @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); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/quotation/QuotationController.php b/app/adminapi/controller/quotation/QuotationController.php new file mode 100644 index 000000000..922718168 --- /dev/null +++ b/app/adminapi/controller/quotation/QuotationController.php @@ -0,0 +1,108 @@ +dataLists(new QuotationLists()); + } + + + /** + * @notes 添加报价单 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function add() + { + $params = (new QuotationValidate())->post()->goCheck('add'); + $result = QuotationLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(QuotationLogic::getError()); + } + + + /** + * @notes 编辑报价单 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function edit() + { + $params = (new QuotationValidate())->post()->goCheck('edit'); + $result = QuotationLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(QuotationLogic::getError()); + } + + + /** + * @notes 删除报价单 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function delete() + { + $params = (new QuotationValidate())->post()->goCheck('delete'); + QuotationLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取报价单详情 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function detail() + { + $params = (new QuotationValidate())->goCheck('detail'); + $result = QuotationLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/controller/quotation/QuotationDetailController.php b/app/adminapi/controller/quotation/QuotationDetailController.php new file mode 100644 index 000000000..05cdf3aba --- /dev/null +++ b/app/adminapi/controller/quotation/QuotationDetailController.php @@ -0,0 +1,108 @@ +dataLists(new QuotationDetailLists()); + } + + + /** + * @notes 添加报价明细 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function add() + { + $params = (new QuotationDetailValidate())->post()->goCheck('add'); + $result = QuotationDetailLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(QuotationDetailLogic::getError()); + } + + + /** + * @notes 编辑报价明细 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function edit() + { + $params = (new QuotationDetailValidate())->post()->goCheck('edit'); + $result = QuotationDetailLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(QuotationDetailLogic::getError()); + } + + + /** + * @notes 删除报价明细 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function delete() + { + $params = (new QuotationDetailValidate())->post()->goCheck('delete'); + QuotationDetailLogic::delete($params); + return $this->success('删除成功', [], 1, 1); + } + + + /** + * @notes 获取报价明细详情 + * @return \think\response\Json + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function detail() + { + $params = (new QuotationDetailValidate())->goCheck('detail'); + $result = QuotationDetailLogic::detail($params); + return $this->data($result); + } + + +} \ No newline at end of file diff --git a/app/adminapi/lists/bid/BidBiddingDecisionLists.php b/app/adminapi/lists/bid/BidBiddingDecisionLists.php new file mode 100644 index 000000000..8e4895a3c --- /dev/null +++ b/app/adminapi/lists/bid/BidBiddingDecisionLists.php @@ -0,0 +1,77 @@ + ['project_id'], + ]; + } + + + /** + * @notes 获取投标决策列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function lists(): array + { + return BidBiddingDecision::where($this->searchWhere) + ->field(['id', 'project_id', 'project_estimation', 'bidding_project_fund_source', 'bidding_time', 'buy_bid_document_date', 'bid_type', 'competitor', 'is_margin', 'margin_amount', 'bid_opening_date', 'margin_amount_return_date', 'is_internal_resources', 'project_assurance']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取投标决策数量 + * @return int + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function count(): int + { + return BidBiddingDecision::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/bid/BidBuyBiddingDocumentLists.php b/app/adminapi/lists/bid/BidBuyBiddingDocumentLists.php new file mode 100644 index 000000000..157e691c0 --- /dev/null +++ b/app/adminapi/lists/bid/BidBuyBiddingDocumentLists.php @@ -0,0 +1,77 @@ + ['project_id', 'bid_document_no', 'invite_tenders_company_name', 'bid_company_name'], + ]; + } + + + /** + * @notes 获取购买标书列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public function lists(): array + { + return BidBuyBiddingDocument::where($this->searchWhere) + ->field(['id', 'project_id', 'bid_document_no', 'invite_tenders_company_name', 'bid_company_name', 'buyer', 'amount', 'project_fund_source', 'bid_date', 'buy_date', 'invite_tenders_type', 'bid_address', 'is_margin', 'margin_amount', 'bid_project_overview', 'project_desc', 'annex']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取购买标书数量 + * @return int + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public function count(): int + { + return BidBuyBiddingDocument::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/quotation/QuotationDetailLists.php b/app/adminapi/lists/quotation/QuotationDetailLists.php new file mode 100644 index 000000000..0e486402c --- /dev/null +++ b/app/adminapi/lists/quotation/QuotationDetailLists.php @@ -0,0 +1,77 @@ + ['quotation_id', 'product_id', 'product_num', 'tax_rate'], + ]; + } + + + /** + * @notes 获取报价明细列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function lists(): array + { + return QuotationDetail::where($this->searchWhere) + ->field(['id', 'quotation_id', 'product_id', 'product_num', 'tax_rate', 'remark']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取报价明细数量 + * @return int + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function count(): int + { + return QuotationDetail::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/lists/quotation/QuotationLists.php b/app/adminapi/lists/quotation/QuotationLists.php new file mode 100644 index 000000000..8ffdbc8dc --- /dev/null +++ b/app/adminapi/lists/quotation/QuotationLists.php @@ -0,0 +1,77 @@ + ['customer_id', 'contacts', 'create_user'], + ]; + } + + + /** + * @notes 获取报价单列表 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function lists(): array + { + return Quotation::where($this->searchWhere) + ->field(['id', 'customer_id', 'quotation_date', 'contacts', 'contacts_phone', 'create_user', 'invoice_type', 'amount_including_tax', 'freight', 'other_fee', 'total_amount']) + ->limit($this->limitOffset, $this->limitLength) + ->order(['id' => 'desc']) + ->select() + ->toArray(); + } + + + /** + * @notes 获取报价单数量 + * @return int + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function count(): int + { + return Quotation::where($this->searchWhere)->count(); + } + +} \ No newline at end of file diff --git a/app/adminapi/logic/bid/BidBiddingDecisionLogic.php b/app/adminapi/logic/bid/BidBiddingDecisionLogic.php new file mode 100644 index 000000000..c96aef76e --- /dev/null +++ b/app/adminapi/logic/bid/BidBiddingDecisionLogic.php @@ -0,0 +1,136 @@ + $params['project_id'], + 'project_estimation' => $params['project_estimation'], + 'bidding_project_fund_source' => $params['bidding_project_fund_source'], + 'bidding_time' => $params['bidding_time'], + 'buy_bid_document_date' => $params['buy_bid_document_date'], + 'bid_type' => $params['bid_type'], + 'competitor' => $params['competitor'], + 'is_margin' => $params['is_margin'], + 'margin_amount' => $params['margin_amount'], + 'bid_opening_date' => $params['bid_opening_date'], + 'margin_amount_return_date' => $params['margin_amount_return_date'], + 'is_internal_resources' => $params['is_internal_resources'], + 'project_assurance' => $params['project_assurance'], + 'bid_project_overview' => $params['bid_project_overview'], + 'project_desc' => $params['project_desc'], + 'annex' => $params['annex'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 编辑投标决策 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + BidBiddingDecision::where('id', $params['id'])->update([ + 'project_id' => $params['project_id'], + 'project_estimation' => $params['project_estimation'], + 'bidding_project_fund_source' => $params['bidding_project_fund_source'], + 'bidding_time' => $params['bidding_time'], + 'buy_bid_document_date' => $params['buy_bid_document_date'], + 'bid_type' => $params['bid_type'], + 'competitor' => $params['competitor'], + 'is_margin' => $params['is_margin'], + 'margin_amount' => $params['margin_amount'], + 'bid_opening_date' => $params['bid_opening_date'], + 'margin_amount_return_date' => $params['margin_amount_return_date'], + 'is_internal_resources' => $params['is_internal_resources'], + 'project_assurance' => $params['project_assurance'], + 'bid_project_overview' => $params['bid_project_overview'], + 'project_desc' => $params['project_desc'], + 'annex' => $params['annex'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 删除投标决策 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public static function delete(array $params): bool + { + return BidBiddingDecision::destroy($params['id']); + } + + + /** + * @notes 获取投标决策详情 + * @param $params + * @return array + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public static function detail($params): array + { + return BidBiddingDecision::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/bid/BidBuyBiddingDocumentLogic.php b/app/adminapi/logic/bid/BidBuyBiddingDocumentLogic.php new file mode 100644 index 000000000..706d7840b --- /dev/null +++ b/app/adminapi/logic/bid/BidBuyBiddingDocumentLogic.php @@ -0,0 +1,136 @@ + $params['project_id'], + 'bid_document_no' => $params['bid_document_no'], + 'invite_tenders_company_name' => $params['invite_tenders_company_name'], + 'bid_company_name' => $params['bid_company_name'], + 'buyer' => $params['buyer'], + 'amount' => $params['amount'], + 'project_fund_source' => $params['project_fund_source'], + 'bid_date' => strtotime($params['bid_date']), + 'buy_date' => strtotime($params['buy_date']), + 'invite_tenders_type' => $params['invite_tenders_type'], + 'bid_address' => $params['bid_address'], + 'is_margin' => $params['is_margin'], + 'margin_amount' => $params['margin_amount'], + 'bid_project_overview' => $params['bid_project_overview'], + 'project_desc' => $params['project_desc'], + 'annex' => $params['annex'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 编辑购买标书 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + BidBuyBiddingDocument::where('id', $params['id'])->update([ + 'project_id' => $params['project_id'], + 'bid_document_no' => $params['bid_document_no'], + 'invite_tenders_company_name' => $params['invite_tenders_company_name'], + 'bid_company_name' => $params['bid_company_name'], + 'buyer' => $params['buyer'], + 'amount' => $params['amount'], + 'project_fund_source' => $params['project_fund_source'], + 'bid_date' => strtotime($params['bid_date']), + 'buy_date' => strtotime($params['buy_date']), + 'invite_tenders_type' => $params['invite_tenders_type'], + 'bid_address' => $params['bid_address'], + 'is_margin' => $params['is_margin'], + 'margin_amount' => $params['margin_amount'], + 'bid_project_overview' => $params['bid_project_overview'], + 'project_desc' => $params['project_desc'], + 'annex' => $params['annex'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 删除购买标书 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public static function delete(array $params): bool + { + return BidBuyBiddingDocument::destroy($params['id']); + } + + + /** + * @notes 获取购买标书详情 + * @param $params + * @return array + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public static function detail($params): array + { + return BidBuyBiddingDocument::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/quotation/QuotationDetailLogic.php b/app/adminapi/logic/quotation/QuotationDetailLogic.php new file mode 100644 index 000000000..a58bf894a --- /dev/null +++ b/app/adminapi/logic/quotation/QuotationDetailLogic.php @@ -0,0 +1,114 @@ + $params['quotation_id'], + 'product_id' => $params['product_id'], + 'product_num' => $params['product_num'], + 'tax_rate' => $params['tax_rate'], + 'remark' => $params['remark'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 编辑报价明细 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + QuotationDetail::where('id', $params['id'])->update([ + 'quotation_id' => $params['quotation_id'], + 'product_id' => $params['product_id'], + 'product_num' => $params['product_num'], + 'tax_rate' => $params['tax_rate'], + 'remark' => $params['remark'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 删除报价明细 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public static function delete(array $params): bool + { + return QuotationDetail::destroy($params['id']); + } + + + /** + * @notes 获取报价明细详情 + * @param $params + * @return array + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public static function detail($params): array + { + return QuotationDetail::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/logic/quotation/QuotationLogic.php b/app/adminapi/logic/quotation/QuotationLogic.php new file mode 100644 index 000000000..50e41e124 --- /dev/null +++ b/app/adminapi/logic/quotation/QuotationLogic.php @@ -0,0 +1,130 @@ + $params['customer_id'], + 'quotation_date' => $params['quotation_date'], + 'contacts' => $params['contacts'], + 'contacts_phone' => $params['contacts_phone'], + 'create_user' => $params['create_user'], + 'invoice_type' => $params['invoice_type'], + 'amount_including_tax' => $params['amount_including_tax'], + 'freight' => $params['freight'], + 'other_fee' => $params['other_fee'], + 'total_amount' => $params['total_amount'], + 'customer_require' => $params['customer_require'], + 'remark' => $params['remark'], + 'annex' => $params['annex'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 编辑报价单 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public static function edit(array $params): bool + { + Db::startTrans(); + try { + Quotation::where('id', $params['id'])->update([ + 'customer_id' => $params['customer_id'], + 'quotation_date' => $params['quotation_date'], + 'contacts' => $params['contacts'], + 'contacts_phone' => $params['contacts_phone'], + 'create_user' => $params['create_user'], + 'invoice_type' => $params['invoice_type'], + 'amount_including_tax' => $params['amount_including_tax'], + 'freight' => $params['freight'], + 'other_fee' => $params['other_fee'], + 'total_amount' => $params['total_amount'], + 'customer_require' => $params['customer_require'], + 'remark' => $params['remark'], + 'annex' => $params['annex'] + ]); + + Db::commit(); + return true; + } catch (\Exception $e) { + Db::rollback(); + self::setError($e->getMessage()); + return false; + } + } + + + /** + * @notes 删除报价单 + * @param array $params + * @return bool + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public static function delete(array $params): bool + { + return Quotation::destroy($params['id']); + } + + + /** + * @notes 获取报价单详情 + * @param $params + * @return array + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public static function detail($params): array + { + return Quotation::findOrEmpty($params['id'])->toArray(); + } +} \ No newline at end of file diff --git a/app/adminapi/validate/bid/BidBiddingDecisionValidate.php b/app/adminapi/validate/bid/BidBiddingDecisionValidate.php new file mode 100644 index 000000000..6bb55f3ad --- /dev/null +++ b/app/adminapi/validate/bid/BidBiddingDecisionValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return BidBiddingDecisionValidate + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return BidBiddingDecisionValidate + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return BidBiddingDecisionValidate + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return BidBiddingDecisionValidate + * @author likeadmin + * @date 2023/11/27 18:14 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/bid/BidBuyBiddingDocumentValidate.php b/app/adminapi/validate/bid/BidBuyBiddingDocumentValidate.php new file mode 100644 index 000000000..493daf5d3 --- /dev/null +++ b/app/adminapi/validate/bid/BidBuyBiddingDocumentValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return BidBuyBiddingDocumentValidate + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return BidBuyBiddingDocumentValidate + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return BidBuyBiddingDocumentValidate + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return BidBuyBiddingDocumentValidate + * @author likeadmin + * @date 2023/11/27 18:22 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/quotation/QuotationDetailValidate.php b/app/adminapi/validate/quotation/QuotationDetailValidate.php new file mode 100644 index 000000000..d8f1c7a47 --- /dev/null +++ b/app/adminapi/validate/quotation/QuotationDetailValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return QuotationDetailValidate + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return QuotationDetailValidate + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return QuotationDetailValidate + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return QuotationDetailValidate + * @author likeadmin + * @date 2023/11/27 17:59 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/adminapi/validate/quotation/QuotationValidate.php b/app/adminapi/validate/quotation/QuotationValidate.php new file mode 100644 index 000000000..0240d91c5 --- /dev/null +++ b/app/adminapi/validate/quotation/QuotationValidate.php @@ -0,0 +1,94 @@ + 'require', + ]; + + + /** + * 参数描述 + * @var string[] + */ + protected $field = [ + 'id' => 'id', + ]; + + + /** + * @notes 添加场景 + * @return QuotationValidate + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function sceneAdd() + { + return $this->remove('id', true); + } + + + /** + * @notes 编辑场景 + * @return QuotationValidate + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function sceneEdit() + { + return $this->only(['id']); + } + + + /** + * @notes 删除场景 + * @return QuotationValidate + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function sceneDelete() + { + return $this->only(['id']); + } + + + /** + * @notes 详情场景 + * @return QuotationValidate + * @author likeadmin + * @date 2023/11/27 17:23 + */ + public function sceneDetail() + { + return $this->only(['id']); + } + +} \ No newline at end of file diff --git a/app/common/model/bid/BidBiddingDecision.php b/app/common/model/bid/BidBiddingDecision.php new file mode 100644 index 000000000..00f66776f --- /dev/null +++ b/app/common/model/bid/BidBiddingDecision.php @@ -0,0 +1,34 @@ +