Commit bacd3a18 by 杨树贤

temp

parent 7c76d512
<?php
namespace App\Http\Controllers;
use App\Http\Services\RoleService;
use App\Http\Services\SupplierContactService;
use App\Http\Services\SupplierService;
use App\Http\Services\SupplierStatisticsService;
use App\Http\Services\ViewCheckService;
use App\Http\Transformers\SupplierTransformer;
use App\Model\IntracodeModel;
use App\Model\SupplierChannelModel;
use App\Model\SupplierReceiptModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class SupplierTagsController extends Controller
{
public function info(Request $request, $id = '')
{
{
if ($request->path() == '/') {
$path = 'web/index';
} else {
$path = $request->path();
}
$this->data = [
'menus' => $request->menus,
'header' => $request->user->header,
'username' => $request->user->email,
'user_email' => $request->user->email,
'uri' => '/' . $path,
'id' => $id,
];
return $this->$id($request);
}
}
public function __call($name, $arr)
{
$data['errinfo'] = '访问路径错误';
return view('errors.error', $data);
}
//供应商详情
public function BatchAddTags($request)
{
$supplierIds = $request->get('supplier_ids');
$this->data['supplierIds'] = $supplierIds;
$supplierIds = explode(',', $supplierIds);
$model = new SupplierChannelModel();
$suppliers = $model->whereIn('supplier_id', $supplierIds)->get()->toArray();
$transformer = new SupplierTransformer();
$suppliers = $transformer->transformList($suppliers);
$this->data['suppliers'] = $suppliers;
$this->data['title'] = '批量修改供应商编码';
return $this->view('批量修改供应商编码');
}
}
\ No newline at end of file
......@@ -661,4 +661,17 @@
$('.main_filter').attr('class', 'main_filter');
$('.status_filter').attr('class', 'status_filter');
}
//批量修改供应商标签
//共用供应商申请
$("#batch_add_tags").click(function () {
layer.open({
type: 2,
content: '/supplier_tag/BatchAddTags?view=iframe',
area: ['700px', '80%'],
title: '供应商标签添加',
end: function () {
}
});
});
</script>
\ No newline at end of file
......@@ -57,6 +57,11 @@
@endif
</button>
@endif
@if(checkPerm('BatchAddTags'))
<button type="button" class="layui-btn layui-btn-sm" id="batch_add_tags">
批量修改供应商标签
</button>
@endif
</div>
<button type="button" id="refreshWindow" style="display: none">刷新页面</button>
<table class="layui-table" id="list" lay-filter="list"></table>
......
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