|
@@ -495,13 +495,13 @@ class Headquarters extends BaseController
|
|
|
|
|
|
Db::name('business')
|
|
Db::name('business')
|
|
->where(['id' => $param['id'], 'is_del' => 0])
|
|
->where(['id' => $param['id'], 'is_del' => 0])
|
|
- ->update($param);
|
|
|
|
|
|
+ ->update(array_merge($param, ['updatetime' => date("Y-m-d H:i:s")]));
|
|
|
|
|
|
Db::name('headquarters')
|
|
Db::name('headquarters')
|
|
->where(['code' => $info['companyNo'], 'is_del' => 0])
|
|
->where(['code' => $info['companyNo'], 'is_del' => 0])
|
|
->update([
|
|
->update([
|
|
'invoice_addr' => $param['inv_addr'],
|
|
'invoice_addr' => $param['inv_addr'],
|
|
- 'invoice_mobile' => $param['mobile'],
|
|
|
|
|
|
+ 'invoice_mobile' => $param['invoice_mobile'],
|
|
'invoice_bank' => $param['inv_bank'],
|
|
'invoice_bank' => $param['inv_bank'],
|
|
'invoice_bankNo' => $param['inv_bankNo'],
|
|
'invoice_bankNo' => $param['inv_bankNo'],
|
|
'invoice_title' => $param['invoice_title'],
|
|
'invoice_title' => $param['invoice_title'],
|
|
@@ -1051,14 +1051,14 @@ class Headquarters extends BaseController
|
|
//供应商升级成业务公司
|
|
//供应商升级成业务公司
|
|
public function supplerUpgrade()
|
|
public function supplerUpgrade()
|
|
{
|
|
{
|
|
- $post = $this->request->only(['code', 'inv_bank', 'inv_bankNo', 'inv_addr', 'mobile', 'uid', 'uname', 'invoice_title'], 'post', 'trim');
|
|
|
|
|
|
+ $post = $this->request->only(['code', 'inv_bank', 'inv_bankNo', 'inv_addr', 'invoice_mobile', 'uid', 'uname', 'invoice_title'], 'post', 'trim');
|
|
|
|
|
|
$val = Validate::rule([
|
|
$val = Validate::rule([
|
|
'code|供应商编码' => 'require',
|
|
'code|供应商编码' => 'require',
|
|
'inv_bank|银行名称' => 'require|max:255',
|
|
'inv_bank|银行名称' => 'require|max:255',
|
|
'inv_bankNo|银行卡号' => 'require|number',
|
|
'inv_bankNo|银行卡号' => 'require|number',
|
|
'inv_addr|联系地址' => 'require|max:255',
|
|
'inv_addr|联系地址' => 'require|max:255',
|
|
- 'mobile|联系电话' => 'require',
|
|
|
|
|
|
+ 'invoice_mobile' => 'require',
|
|
'invoice_title|公司抬头' => 'require',
|
|
'invoice_title|公司抬头' => 'require',
|
|
]);
|
|
]);
|
|
|
|
|
|
@@ -1110,6 +1110,7 @@ class Headquarters extends BaseController
|
|
'inv_scope' => $res['scope'],
|
|
'inv_scope' => $res['scope'],
|
|
'license_img' => $res['license_img'],
|
|
'license_img' => $res['license_img'],
|
|
'invoice_title' => $post['invoice_title'],
|
|
'invoice_title' => $post['invoice_title'],
|
|
|
|
+ 'invoice_mobile' => $post['invoice_mobile'],
|
|
'status' => 1,
|
|
'status' => 1,
|
|
'is_del' => 0,
|
|
'is_del' => 0,
|
|
'addtime' => $date,
|
|
'addtime' => $date,
|