public function store(StoreBillRequest $input)
 {
     $bill = new FinanceBill();
     $bill->user_id = $input['user_id'];
     $bill->name = $input['name'];
     $bill->bill_type = $input['bill_type'];
     $bill->min_charge = $input['min_charge'];
     $bill->discount = $input['discount'];
     $bill->mark = $input['mark'];
     if ($bill->save()) {
         return redirect(route('admin.finance.customer.index', $input['user_id']));
     }
     throw new GeneralException('报价单创建失败');
 }
 public function createBill($input)
 {
     // TODO: Implement createBill() method.
     $bill = new FinanceBill();
     $bill->name = $input['name'];
     $bill->bill_type = $input['bill_type'];
     $bill->min_charge = $input['min_charge'];
     $bill->discount = $input['discount'];
     $bill->mark = $input['mark'];
     if ($bill->save()) {
         return true;
     }
     throw new GeneralException('报价单创建失败');
 }