Commit ae9c9433 by 杨树贤

自动新增账号

parent 6082d4d2
......@@ -74,7 +74,7 @@ class SupplierAccountService
return;
}
//合作类型不包含芯链商家,则不创建账号
if (strpos($supplier->cooperation_type, SupplierChannelModel::SUPPLIER_STOCKUP_TYPE) === false) {
if (strpos($supplier->stockup_type, (string)SupplierChannelModel::SUPPLIER_STOCKUP_TYPE_XINLIAN) === false) {
return;
}
//新建账号
......
......@@ -39,7 +39,7 @@ class SupplierChannelModel extends Model
const SUPPLIER_GROUP_MIX = 7; //混合分销商
//合作类型
const SUPPLIER_STOCKUP_TYPE = 5; //芯链商家
const SUPPLIER_STOCKUP_TYPE_XINLIAN = 5; //芯链商家
//供应商地区
const REGION_CN = 2; //国内
......
......@@ -18,8 +18,9 @@
{field: 'id', title: 'ID', align: 'center', width: 80},
{field: 'contacts_name', title: '联系人', align: 'center', width: 120},
{field: 'email', title: '邮箱', align: 'center', width: 170},
{field: 'account_name', title: '账号', align: 'center', width: 170},
{
field: 'mobile', title: '号', align: 'center', width: 170,
field: 'mobile', title: '手机号', align: 'center', width: 170,
templet: function (data) {
let text = canViewAccountInfo ? '查看' : '';
return '<span>' + data.mobile + '</span><span style="color: dodgerblue;margin-left: 10px" class="viewAccount" type="mobile" id="' + data.id + '">' + text + '</span>';
......
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