Commit 78c748aa by 杨树贤

fix

parent c9a2b116
...@@ -203,7 +203,7 @@ class SupplierTagService ...@@ -203,7 +203,7 @@ class SupplierTagService
//批量更新供应商的SKU显示类型 //批量更新供应商的SKU显示类型
public function batchSaveGoodsLabelTags($goodsLabel, $goodsLabelSystemTags) public function batchSaveGoodsLabelTags($goodsLabel, $goodsLabelSystemTags)
{ {
$goodsLabelSystemTags = explode(',', $goodsLabelSystemTags); $goodsLabelSystemTags = $goodsLabelSystemTags ? explode(',', $goodsLabelSystemTags) : [];
$data = [ $data = [
'system_tags' => $goodsLabelSystemTags, 'system_tags' => $goodsLabelSystemTags,
]; ];
...@@ -215,7 +215,7 @@ class SupplierTagService ...@@ -215,7 +215,7 @@ class SupplierTagService
//批量更新供应商的SKU接入方式 //批量更新供应商的SKU接入方式
public function batchSaveGoodsSourceTags($goodsSource, $goodsSourceSystemTags) public function batchSaveGoodsSourceTags($goodsSource, $goodsSourceSystemTags)
{ {
$goodsSourceSystemTags = explode(',', $goodsSourceSystemTags); $goodsSourceSystemTags = $goodsSourceSystemTags ? explode(',', $goodsSourceSystemTags) : [];
$data = [ $data = [
'system_tags' => $goodsSourceSystemTags, 'system_tags' => $goodsSourceSystemTags,
]; ];
......
...@@ -85,10 +85,7 @@ ...@@ -85,10 +85,7 @@
// 检查是否选择了系统标签 // 检查是否选择了系统标签
if (!data.field.goods_label_system_tags || data.field.goods_label_system_tags === '') { if (!data.field.goods_label_system_tags || data.field.goods_label_system_tags === '') {
layer.msg('请选择系统标签', {
icon: 5
});
return false;
} }
return true; return true;
...@@ -107,10 +104,7 @@ ...@@ -107,10 +104,7 @@
// 检查是否选择了系统标签 // 检查是否选择了系统标签
if (!data.field.goods_source_system_tags || data.field.goods_source_system_tags === '') { if (!data.field.goods_source_system_tags || data.field.goods_source_system_tags === '') {
layer.msg('请选择系统标签', {
icon: 5
});
return false;
} }
return true; return true;
......
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