Commit 69efea34 by 杨树贤

合同展示sku次啊够用

parent 7a28dab8
......@@ -3,16 +3,23 @@
namespace App\Http\Transformers;
use App\Model\IntracodeModel;
class SupplierContractTransformer
{
public function transformList($list)
{
$intraCodeModel = new IntracodeModel();
$users = $intraCodeModel->getSampleEncode(true);
foreach ($list as &$contract) {
if (!$contract) {
continue;
}
if (!empty($contract['supplier']['yunxin_channel_uid'])) {
$contract['yunxin_channel_user_name'] = array_get($users, $contract['supplier']['yunxin_channel_uid']);
}
$contract['create_time'] = $contract['create_time'] ? date(
'Y-m-d H:i:s',
$contract['create_time']
......
......@@ -108,6 +108,12 @@
width: 100
},
{
field: 'yunxin_channel_user_name',
title: 'SKU采购员',
align: 'center',
width: 130
},
{
field: 'update_time',
title: '更新时间',
align: 'center',
......
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