Commit 6b40fe4a by 杨树贤

修复

parent a21f672b
...@@ -8,4 +8,5 @@ Homestead.json ...@@ -8,4 +8,5 @@ Homestead.json
/vendor/_laravel_idea/* /vendor/_laravel_idea/*
/vendor/_laravel_idea /vendor/_laravel_idea
/vendor/_laravel_ide /vendor/_laravel_ide
/storage/framework/views /storage/framework/views
\ No newline at end of file /storage
...@@ -807,4 +807,14 @@ class DataService ...@@ -807,4 +807,14 @@ class DataService
continue; continue;
} }
} }
//同步供应商到erp
public static function syncSupplierToErp()
{
$supplierIds = SupplierChannelModel::where('is_type', 0)->where('group_code', '!=', '')
->pluck('supplier_id')->toArray();
foreach ($supplierIds as $supplierId) {
(new SyncSupplierService())->syncSupplierToErp($supplierId);
}
}
} }
...@@ -236,6 +236,22 @@ ...@@ -236,6 +236,22 @@
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
<?php $multiTransformableSelectPresenter = app('App\Presenters\Filter\MultiTransformableSelectPresenter'); ?>
<?php echo $multiTransformableSelectPresenter->render(['has_yunxin_agreement'=>'采购合作框架协议'],
['has_yunxin_agreement'=>[1=>'有',-1=>'无']]); ?>
</div>
<div class="layui-inline">
<?php $statusPresenter = app('App\Presenters\StatusPresenter'); ?>
<?php echo $statusPresenter->render('has_supplier_account','启用芯链账号','',[1=>'是',-1=>'否']); ?>
</div>
<div class="layui-inline">
<?php $statusPresenter = app('App\Presenters\StatusPresenter'); ?>
<?php echo $statusPresenter->render('has_order_contract','通过芯链上传合同','',[1=>'有',-1=>'无']); ?>
</div>
<div class="layui-inline">
<?php $statusPresenter = app('App\Presenters\StatusPresenter'); ?> <?php $statusPresenter = app('App\Presenters\StatusPresenter'); ?>
<?php echo $statusPresenter->render('is_entity','实体名单','',config('field.IsEntity')); ?> <?php echo $statusPresenter->render('is_entity','实体名单','',config('field.IsEntity')); ?>
......
...@@ -176,6 +176,12 @@ ...@@ -176,6 +176,12 @@
width: 120, width: 120,
}, },
{ {
field: 'has_yunxin_agreement',
title: '采购合作框架协议',
align: 'center',
width: 140,
},
{
field: 'channel_username', title: '采购员', align: 'center', width: 130, templet: function (data) { field: 'channel_username', title: '采购员', align: 'center', width: 130, templet: function (data) {
if (data.resign_channel_username) { if (data.resign_channel_username) {
if (data.on_job_channel_username) { if (data.on_job_channel_username) {
......
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