Commit 5c4a79ef by 杨树贤

修复

parent a01d853d
...@@ -13,6 +13,7 @@ use App\Model\SupplierContactModel; ...@@ -13,6 +13,7 @@ use App\Model\SupplierContactModel;
use App\Model\SupplierReceiptModel; use App\Model\SupplierReceiptModel;
use App\Model\SupplierSyncModel; use App\Model\SupplierSyncModel;
use App\Model\UserInfoModel; use App\Model\UserInfoModel;
use http\Exception\InvalidArgumentException;
use Illuminate\Support\Arr; use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
...@@ -32,7 +33,7 @@ class SyncSupplierService ...@@ -32,7 +33,7 @@ class SyncSupplierService
} }
if (!$supplier['group_code']) { if (!$supplier['group_code']) {
return true; throw new InvalidArgumentException('供应商还没有生成内部编码,无法同步');
} }
//先去sync表查询记录是否存在,不存在新增,存在修改 //先去sync表查询记录是否存在,不存在新增,存在修改
......
...@@ -35,11 +35,12 @@ ...@@ -35,11 +35,12 @@
{{-- 拉黑--}} {{-- 拉黑--}}
{{-- </button>--}} {{-- </button>--}}
@endif @endif
@if(request()->user->userId==1000 || request()->user->userId==2082)
<button type="button" class="layui-btn layui-btn-sm" title="该操作可以将供应商同步到供应商" <button type="button" class="layui-btn layui-btn-sm" title="该操作可以将供应商同步到供应商"
id="sync_supplier_to_erp"> id="sync_supplier_to_erp">
金蝶同步 金蝶同步
</button> </button>
@if(request()->user->userId==1000 || request()->user->userId==2082)
<button type="button" class="layui-btn layui-btn-sm" title="该操作可以将供应商同步到一体化" <button type="button" class="layui-btn layui-btn-sm" title="该操作可以将供应商同步到一体化"
id="sync_supplier_to_united"> id="sync_supplier_to_united">
一体化同步 一体化同步
......
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