万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

265 lines
11 KiB

2 years ago
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('公司信息列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>企业名称:</label>
<input type="text" name="enterpriseName"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:companyInformation:add">-->
<!-- <i class="fa fa-plus"></i> 添加-->
<!-- </a>-->
2 years ago
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:companyInformation:edit">
<i class="fa fa-edit"></i> 修改
</a>
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:companyInformation:remove">-->
<!-- <i class="fa fa-remove"></i> 删除-->
<!-- </a>-->
<!-- <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">-->
<!-- <i class="fa fa-upload"></i> 导入-->
<!-- </a>-->
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:companyInformation:export">-->
<!-- <i class="fa fa-download"></i> 导出-->
<!-- </a>-->
2 years ago
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table" style="white-space:nowrap"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:companyInformation:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:companyInformation:remove')}]];
var countryDatas = [[${@dict.getType('sys_country')}]];
var enterpriseNatureDatas = [[${@dict.getType('sys_enterprise_nature')}]];
var importDeclarantDatas = [[${@dict.getType('sys_import_declarant')}]];
var exportDeclarantDatas = [[${@dict.getType('sys_export_declarant')}]];
var foreignCurrencyRegistrationDatas = [[${@dict.getType('sys_coin_class')}]];
2 years ago
var prefix = ctx + "system/companyInformation";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
importUrl: prefix + "/importData",
importTemplateUrl: prefix + "/importTemplate",
clickToSelect: true,
modalName: "公司信息",
columns: [{
checkbox: true
},
{
field: 'companyId',
title: '企业id',
visible: false
},
{
field: 'enterpriseName',
title: '企业名称'
},
{
field: 'englishName',
title: '英文名称'
},
{
field: 'companyAddress',
title: '公司地址'
},
{
field: 'companyPostalCode',
title: '公司邮编'
},
{
field: 'country',
title: '国家',
formatter: function(value, row, index) {
return $.table.selectDictLabel(countryDatas, value);
}
},
{
field: 'legalRepresentative',
title: '法人代表'
},
{
field: 'contacts',
title: '联系人'
},
{
field: 'contactNumber',
title: '联系电话'
},
{
field: 'companyFax',
title: '传真'
},
{
field: 'enterpriseCustomsCode',
title: '企业海关代码'
},
{
field: 'enterpriseOrganizationCode',
title: '企业组织代码'
},
{
field: 'industryCode',
title: '行业代码'
},
{
field: 'enterpriseNature',
title: '企业性质',
formatter: function(value, row, index) {
return $.table.selectDictLabel(enterpriseNatureDatas, value);
}
},
{
field: 'establishedTime',
title: '成立日期'
},
{
field: 'settlementBank',
title: '结汇银行'
},
{
field: 'exchangeSettlementAccount',
title: '结汇账号'
},
{
field: 'depositBank',
title: '开户银行'
},
{
field: 'bankAccount',
title: '开户银行账号'
},
{
field: 'companyEmail',
title: '邮箱'
},
{
field: 'website',
title: '网站'
},
{
field: 'importDeclarant',
title: '进口报关员',
formatter: function(value, row, index) {
return $.table.selectDictLabel(importDeclarantDatas, value);
}
},
{
field: 'exportDeclarant',
title: '出口报关员',
formatter: function(value, row, index) {
return $.table.selectDictLabel(exportDeclarantDatas, value);
}
},
{
field: 'exchangeOffice',
title: '主管外汇局'
},
{
field: 'rmbRegisteredCapital',
title: 'RMB注册资金'
},
{
field: 'foreignCurrencyRegistration',
title: '外币注册',
formatter: function(value, row, index) {
return $.table.selectDictLabel(foreignCurrencyRegistrationDatas, value);
}
},
{
field: 'registeredCapital',
title: '外币注册资金'
},
{
field: 'firstAddTime',
title: '录入时间',
formatter: function (value, row, index) {
if (value == null) {
return " ";
} else {
return value;
}
}
},
{
field: 'updateInfoTime',
title: '上次修改时间',
formatter: function (value, row, index) {
if (value == null) {
return " ";
} else {
var vArr = value.split(',')
return vArr[0];
}
}
}
// {
// title: '操作',
// align: 'center',
// formatter: function(value, row, index) {
// var actions = [];
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.companyId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.companyId + '\')"><i class="fa fa-remove"></i>删除</a>');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
</script>
</body>
<script id="importTpl" type="text/template">
<form enctype="multipart/form-data" class="mt20 mb10">
<div class="col-xs-offset-1">
<input type="file" id="file" name="file"/>
<div class="mt10 pt5">
<input type="checkbox" id="updateSupport" name="updateSupport" title="如果登录账户已经存在,更新这条数据。"> 是否更新已经存在的用户数据
&nbsp; <a onclick="javascript:$.get('/system/companyInformation/importTemplate', function(result) {
console.log(result)
if (result.code == web_status.SUCCESS) {
window.location.href = ctx + 'common/download?fileName=' + encodeURI(result.msg) + '&delete=' + true;
} else if (result.code == web_status.WARNING) {
$.modal.alertWarning(result.msg)
} else {
$.modal.alertError(result.msg);
}
});" class="btn btn-default btn-xs"><i class="fa fa-file-excel-o"></i> 下载模板</a>
</div>
<font color="red" class="pull-left mt10">
提示:仅允许导入“xls”或“xlsx”格式文件456456!
</font>
</div>
</form>
</script>
</html>