Commit 95ac6690 by 朱继来

调整报价

parent eb1555cd
Showing with 4 additions and 4 deletions
......@@ -234,7 +234,7 @@ class QuoteModel extends Model
$quote_info['status'] = 1; // 已报价
$quote_info['create_uid'] = $input['user_id'];
$quote_info['create_uid'] = $create_name;
$quote_info['create_name'] = $create_name;
$res = $this->create($quote_info);
if ($res === false) return [2, '新增报价失败'];
......@@ -244,7 +244,7 @@ class QuoteModel extends Model
}
// 通知询价人,放入redis
RedisDB::set('frq_quote_urge', $quote_info['inquiry_items_id']);
RedisDB::sadd('frq_quote_urge', $quote_info['inquiry_items_id']);
$data = [];
$data['types'] = 2;
......@@ -380,7 +380,7 @@ class QuoteModel extends Model
return;
}
if (!preg_match('/\d/', intval($val['quote_number']))) {
if (!preg_match('/^\d{1,9}$/', intval($val['quote_number']))) {
$err[] = '第'.($key+1).'行,报价数量格式错误,请填写整数';
return;
}
......
......@@ -13,8 +13,8 @@ return [
'import_quote_map' => [ // 导入报价映射
'goods_name',
'brand_name',
'quote_number',
'supplier_name',
'quote_number',
'currency',
'price_origin',
'price_rmb',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment