更新付款申请接口
This commit is contained in:
parent
16c0692289
commit
352ce5cb13
@ -44,6 +44,7 @@ class FinancePaymentApplyLogic extends BaseLogic
|
||||
FinancePaymentApply::create([
|
||||
'supplier_id' => $params['supplier_id'] ?? 0,
|
||||
'contract_id' => $params['contract_id'] ?? 0,
|
||||
'approve_id' => $params['approve_id'] ?? 0,
|
||||
'pay_date' => $params['pay_date'] ?? '',
|
||||
'period' => $params['period'] ?? 0,
|
||||
'payment_plan_id' => $params['payment_plan_id'] ?? 0,
|
||||
@ -85,6 +86,7 @@ class FinancePaymentApplyLogic extends BaseLogic
|
||||
FinancePaymentApply::where('id', $params['id'])->update([
|
||||
'supplier_id' => $params['supplier_id'] ?? 0,
|
||||
'contract_id' => $params['contract_id'] ?? 0,
|
||||
'approve_id' => $params['approve_id'] ?? 0,
|
||||
'pay_date' => $params['pay_date'] ?? '',
|
||||
'period' => $params['period'] ?? 0,
|
||||
'payment_plan_id' => $params['payment_plan_id'] ?? 0,
|
||||
|
@ -31,12 +31,13 @@ class FinancePaymentApplyValidate extends BaseValidate
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'supplier_id' => 'require',
|
||||
'contract_id' => 'require',
|
||||
'pay_date' => 'require',
|
||||
'pay_type' => 'require',
|
||||
'amount' => 'require',
|
||||
'id' => 'require',
|
||||
'supplier_id' => 'require',
|
||||
'contract_id' => 'require',
|
||||
'approve_id' => 'require',
|
||||
'pay_date' => 'require',
|
||||
'pay_type' => 'require',
|
||||
'amount' => 'require',
|
||||
];
|
||||
|
||||
|
||||
@ -45,12 +46,12 @@ class FinancePaymentApplyValidate extends BaseValidate
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
'supplier_id' => '供应商id',
|
||||
'contract_id' => '合同id',
|
||||
'pay_date' => '付款日期',
|
||||
'pay_type' => '付款方式',
|
||||
'amount' => '本次申请金额',
|
||||
'id' => 'id',
|
||||
'supplier_id' => '供应商id',
|
||||
'contract_id' => '合同id',
|
||||
'pay_date' => '付款日期',
|
||||
'pay_type' => '付款方式',
|
||||
'amount' => '本次申请金额',
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user