Files
OMS/app/dealer/lib/series.php
2025-12-28 23:13:25 +08:00

40 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 产品线通用Lib方法类
* @author wangjianjun@shopex.cn
* @version 2024.04.12
*/
class dealer_series{
/**
* 新增、编辑数据校验
* @param $post 提交array
* @param $error_msg 报错信息(引用方式)
* @return boolean
*/
public function check_series_data($post,&$error_msg){
if(!$post["series_code"] || !$post["series_name"] || !$post["description"] || !$post["cat_name"]){
$error_msg = "产品线编码、名称、描述、分类不能为空。";
return false;
}
if(!$post["betc_id"]){
$error_msg = "产品线所属贸易公司不能为空。";
return false;
}
// if(empty($post["bm_id"]) || !is_array($post["bm_id"])){
// $error_msg = "产品线绑定基础物料不能为空。";
// return false;
// }
// if(empty($post["shop_id"]) || !is_array($post["shop_id"])){
// $error_msg = "产品线绑定经销店铺不能为空。";
// return false;
// }
return true;
}
}