Commit af339173 by 杨树贤

同步代购脚本以及放开新增银行按钮

parent 4679a707
......@@ -442,4 +442,12 @@ class DataService
}
function syncDaigouSuppliersToErp(){
$supplierIdList = SupplierChannelModel::whereIn('supplier_name', config('field.SkipChangeSupplierTypeNames'))->pluck('supplier_id')->toArray();
foreach ($supplierIdList as $supplierId) {
(new SyncSupplierService())->syncSupplierToErp($supplierId);
}
}
}
......@@ -60,7 +60,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
Route::match(['get', 'post'], '/api/supplier_memo/{key}', 'SupplierMemoApiController@Entrance');
//单独的统计接口
Route::match(['get', 'post'], '/statisticsSkuNumber', function () {
(new \App\Http\Services\DataService())->statisticsSkuNumberFromSKu();
(new \App\Http\Services\DataService())->syncDaigouSuppliersToErp();
});
});
......
<div class="layui-row">
@if($operate == 'update')
<div class="layui-btn-group demoTable" style="margin-top: 5px">
{{-- <button type="button" class="layui-btn layui-btn-sm" id="add_bank">新增</button>--}}
<button type="button" class="layui-btn layui-btn-sm" id="add_bank">新增</button>
<button type="button" class="layui-btn layui-btn-sm" id="update_bank">修改</button>
{{-- <button type="button" class="layui-btn layui-btn-sm" id="delete_bank">删除</button>--}}
</div>
......
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