update
This commit is contained in:
parent
4d81815a9a
commit
0e738b8b06
@ -209,11 +209,10 @@ class ContractValidate extends BaseValidate
|
|||||||
|
|
||||||
public function checkReturnedMoney($value): bool|string
|
public function checkReturnedMoney($value): bool|string
|
||||||
{
|
{
|
||||||
$detail = $value;//json_decode($value,true);
|
if(!empty($value) && !is_array($value)){
|
||||||
if(empty($detail) || !is_array($detail)){
|
|
||||||
return '回款计划数据格式错误';
|
return '回款计划数据格式错误';
|
||||||
}
|
}
|
||||||
foreach($detail as $v) {
|
foreach($value as $v) {
|
||||||
if(isset($v['id']) && $v['id'] != ''){
|
if(isset($v['id']) && $v['id'] != ''){
|
||||||
$info = FinanceReturnedMoney::where('id',$v['id'])->findOrEmpty();
|
$info = FinanceReturnedMoney::where('id',$v['id'])->findOrEmpty();
|
||||||
if($info->isEmpty()){
|
if($info->isEmpty()){
|
||||||
|
@ -185,11 +185,10 @@ class ProcurementContractValidate extends BaseValidate
|
|||||||
|
|
||||||
public function checkProcurementContractDetail($value): bool|string
|
public function checkProcurementContractDetail($value): bool|string
|
||||||
{
|
{
|
||||||
$detail = $value;//json_decode($value,true);
|
if(!empty($value) && !is_array($value)){
|
||||||
if(empty($detail) || !is_array($detail)){
|
|
||||||
return '采购合同明细数据格式错误';
|
return '采购合同明细数据格式错误';
|
||||||
}
|
}
|
||||||
foreach($detail as $v) {
|
foreach($value as $v) {
|
||||||
if(isset($v['id']) && $v['id'] != ''){
|
if(isset($v['id']) && $v['id'] != ''){
|
||||||
$data_detail = ProcurementContractDetail::where('id',$v['id'])->findOrEmpty();
|
$data_detail = ProcurementContractDetail::where('id',$v['id'])->findOrEmpty();
|
||||||
if($data_detail->isEmpty()){
|
if($data_detail->isEmpty()){
|
||||||
@ -232,11 +231,10 @@ class ProcurementContractValidate extends BaseValidate
|
|||||||
|
|
||||||
public function checkPaymentPlan($value): bool|string
|
public function checkPaymentPlan($value): bool|string
|
||||||
{
|
{
|
||||||
$detail = $value;//json_decode($value,true);
|
if(!empty($value) && !is_array($value)){
|
||||||
if(empty($detail) || !is_array($detail)){
|
|
||||||
return '付款计划据格式错误';
|
return '付款计划据格式错误';
|
||||||
}
|
}
|
||||||
foreach($detail as $v) {
|
foreach($value as $v) {
|
||||||
if(isset($v['id']) && $v['id'] != ''){
|
if(isset($v['id']) && $v['id'] != ''){
|
||||||
$data_detail = FinancePaymentPlan::where('id',$v['id'])->findOrEmpty();
|
$data_detail = FinancePaymentPlan::where('id',$v['id'])->findOrEmpty();
|
||||||
if($data_detail->isEmpty()){
|
if($data_detail->isEmpty()){
|
||||||
|
@ -123,7 +123,7 @@ class QuotationValidate extends BaseValidate
|
|||||||
|
|
||||||
public function checkQuotationDetail($value): bool|string
|
public function checkQuotationDetail($value): bool|string
|
||||||
{
|
{
|
||||||
if(empty($value) || !is_array($value)){
|
if(!empty($value) && !is_array($value)){
|
||||||
return '报价明细数据格式错误';
|
return '报价明细数据格式错误';
|
||||||
}
|
}
|
||||||
foreach($value as $k=>$v) {
|
foreach($value as $k=>$v) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user