Commit 986c446f by 杨树贤

点击查验问题

parent ce72590e
......@@ -31,7 +31,7 @@ class CompanyService
$companyInfoList = array_get(array_get($result['data'], 'tycList'), 'company_info_list');
if (!empty($companyInfoList)) {
$companyInfo = $companyInfoList[0];
$companyInfo['establishment_time'] = $companyInfo['establishment_time'] ? $companyInfo['establishment_time']/1000 : 0;
$companyInfo['establishment_time'] = $companyInfo['establishment_time'] ? $companyInfo['establishment_time'] / 1000 : 0;
$company = [
'supplier_name' => $companyInfo['com_name'] == $supplierName ? $companyInfo['com_name'] : $companyInfo['en_com_name'],
'registered_capital' => (int)$companyInfo['registered_capital'],
......@@ -63,12 +63,15 @@ class CompanyService
$companyInfoList = array_get(array_get($result['data'], 'tycList'), 'company_info_list');
if (!empty($companyInfoList)) {
$companyInfo = $companyInfoList[0];
$companyInfo['establishment_time'] = $companyInfo['establishment_time'] ? $companyInfo['establishment_time'] / 1000 : 0;
$company = [
'supplier_name' => $companyInfo['com_name'] == $supplierName ? $companyInfo['com_name'] : $companyInfo['en_com_name'],
'registered_capital' => (int)$companyInfo['registered_capital'],
'supplier_address' => $companyInfo['com_address'],
'tax_number' => $companyInfo['tyc_info']['tax_number'],
'phone' => $companyInfo['tyc_info']['phone_number'],
'establishment_time' => $companyInfo['establishment_time'] ? date('Y-m-d',
$companyInfo['establishment_time']) : '',
];
}
......
......@@ -373,6 +373,7 @@
$('#supplier_address').val(companyInfo.supplier_address);
$('#phone').val(companyInfo.phone);
$('#registered_capital').val(companyInfo.registered_capital);
$('#established_time').val(companyInfo.establishment_time);
form.render();
layer.msg('验证成功,校验公司信息通过,自动补全相关数据', {icon: 6})
} else if (res.err_code === -1) {
......
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