['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(); } }