Commit d770f77b by 杨树贤

修改字眼

parent 1b585a74
......@@ -135,7 +135,7 @@ class SupplierAccountApiController extends Controller
$this->response(-1, '禁用失败', $result);
}
//获取供应商账号
//获取芯链账号
public function GetSupplierAccount($request)
{
$id = $request->input('id');
......@@ -143,7 +143,7 @@ class SupplierAccountApiController extends Controller
$account = SupplierAccountModel::where('id', $id)->first()->toArray();
$logService = new LogService();
$temp = ($type == 'mobile') ? '账号' : '密码';
$content = $request->user->name . ' 查看了供应商账号的' . $temp;
$content = $request->user->name . ' 查看了芯链账号的' . $temp;
$logService->AddLog($account['supplier_id'], LogModel::VIEW_OPERATE, '查看供应商基本资料', $content);
$this->response(0, 'ok', $account);
}
......
......@@ -44,8 +44,8 @@ class SupplierAccountController extends Controller
//操作日志列表
public function SupplierAccountList($request)
{
$this->data['title'] = '供应商账号列表';
return $this->view('供应商账号列表');
$this->data['title'] = '芯链账号列表';
return $this->view('芯链账号列表');
}
public function AddSupplierAccount($request)
......@@ -62,8 +62,8 @@ class SupplierAccountController extends Controller
$supplierCodes[$supplier['supplier_code']] = $supplier['supplier_name'] . '(' . $supplier['supplier_code'] . ')';
}
$this->data['supplierCodes'] = $supplierCodes;
$this->data['title'] = '添加供应商账号';
return $this->view('添加供应商账号');
$this->data['title'] = '添加芯链账号';
return $this->view('添加芯链账号');
}
public function UpdateSupplierAccount($request)
......@@ -83,9 +83,9 @@ class SupplierAccountController extends Controller
$supplierCodes[$supplier['supplier_code']] = $supplier['supplier_name'] . '(' . $supplier['supplier_code'] . ')';
}
$this->data['supplierCodes'] = $supplierCodes;
$this->data['title'] = '编辑供应商账号';
$this->data['title'] = '编辑芯链账号';
$this->data['account'] = $account;
return $this->view('编辑供应商账号');
return $this->view('编辑芯链账号');
}
//子账号列表
......
......@@ -43,8 +43,8 @@ class SupplierApplyController extends Controller
public function SupplierApplyList($request)
{
$this->data['auditUidList'] = SupplierApplyModel::pluck('audit_name', 'audit_uid')->toArray();
$this->data['title'] = '供应商账号列表';
return $this->view('供应商账号列表');
$this->data['title'] = '芯链账号列表';
return $this->view('芯链账号列表');
}
public function AuditSupplierApply($request)
......@@ -56,4 +56,4 @@ class SupplierApplyController extends Controller
$this->data['title'] = '芯链入驻审核';
return $this->view('芯链入驻审核');
}
}
\ No newline at end of file
}
......@@ -89,7 +89,7 @@ class SupplierApplyService
if ($result ) {
if ($status == SupplierApplyModel::STATUS_PASS) {
$existAccount = SupplierAccountModel::where('supplier_code', $apply['supplier_code'])->exists();
//如果没有供应商账号,那么就要新增供应商账号
//如果没有芯链账号,那么就要新增芯链账号
if ($existAccount) {
SupplierAccountModel::where('supplier_code', $apply['supplier_code'])->update([
'mobile' => $apply['mobile'],
......@@ -131,4 +131,4 @@ class SupplierApplyService
}
return $result;
}
}
\ No newline at end of file
}
......@@ -70,9 +70,9 @@
let checkStatus = table.checkStatus('supplierAccountList');
let data = checkStatus.data;
if (!data.length) {
layer.msg('请先选择要操作的供应商账号', {icon: 5})
layer.msg('请先选择要操作的芯链账号', {icon: 5})
} else {
layer.confirm('确定要启用该供应商账号吗?', function (index) {
layer.confirm('确定要启用该芯链账号吗?', function (index) {
let id = data[0].id;
let res = ajax('/api/supplier_account/EnableSupplierAccount', {id: id})
if (res.err_code === 0) {
......@@ -91,9 +91,9 @@
let checkStatus = table.checkStatus('supplierAccountList');
let data = checkStatus.data;
if (!data.length) {
layer.msg('请先选择要操作的供应商账号', {icon: 5})
layer.msg('请先选择要操作的芯链账号', {icon: 5})
} else {
layer.confirm('确定要禁用该供应商账号吗?', function (index) {
layer.confirm('确定要禁用该芯链账号吗?', function (index) {
let id = data[0].id;
let res = ajax('/api/supplier_account/DisableSupplierAccount', {id: id})
if (res.err_code === 0) {
......@@ -113,7 +113,7 @@
type: 2,
content: '/supplier_account/AddSupplierAccount?view=iframe',
area: ['800px', '600px'],
title: '添加供应商账号',
title: '添加芯链账号',
end: function () {
table.reload('supplierAccountList');
// supplierStatistics();
......
......@@ -146,7 +146,7 @@
type: 2,
content: '/supplier_account/SaveSupplierSubAccount?view=iframe&account_id=' + getQueryVariable('account_id'),
area: ['70%', '80%'],
title: '添加供应商账号',
title: '添加芯链账号',
end: function () {
table.reload('supplierSubAccountList');
}
......
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