123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702 |
- <!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>中盛的id:</label>-->
- <!-- <input type="text" name="zsId"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商名称:</label>-->
- <!-- <input type="text" name="supplierName"/>-->
- <!-- </li>-->
- <li>
- <label>名称:</label>
- <input type="text" name="supplierName"/>
- </li>
- <!-- <li>-->
- <!-- <label>供应商简称:</label>-->
- <!-- <input type="text" name="supplierReName"/>-->
- <!-- </li>-->
- <li>
- <label>简称:</label>
- <input type="text" name="supplierReName"/>
- </li>
- <!-- <li>-->
- <!-- <label>供应商地址:</label>-->
- <!-- <input type="text" name="address"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商详细地址:</label>-->
- <!-- <input type="text" name="detailAddress"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>省市县:</label>-->
- <!-- <input type="text" name="businessAddress"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>邮编:</label>-->
- <!-- <input type="text" name="postCode"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>官网网址:</label>-->
- <!-- <input type="text" name="website"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商电话:</label>-->
- <!-- <input type="text" name="supplierPhone"/>-->
- <!-- </li>-->
- <li>
- <label>电话:</label>
- <input type="text" name="supplierPhone"/>
- </li>
- <!-- <li>-->
- <!-- <label>传真:</label>-->
- <!-- <input type="text" name="fax"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商联系人:</label>-->
- <!-- <input type="text" name="supplierMan"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>联系人电话:</label>-->
- <!-- <input type="text" name="manPhone"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商性质:</label>-->
- <!-- <select name="supplierNature" th:with="type=${@dict.getType('supplier_nature')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商行业:</label>-->
- <!-- <input type="text" name="supplierBusiness"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>供应商规模:</label>-->
- <!-- <select name="supplierScale" th:with="type=${@dict.getType('supplier_scale')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>企业是否上市:</label>-->
- <!-- <select name="isMarket" th:with="type=${@dict.getType('is_or_no')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>是否是品牌商:</label>-->
- <!-- <select name="isBrand" th:with="type=${@dict.getType('is_or_no')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>平台供应商标识:</label>-->
- <!-- <input type="text" name="supplierCode"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>登记机关:</label>-->
- <!-- <input type="text" name="registration"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>成立日期:</label>-->
- <!-- <input type="text" class="time-input" placeholder="请选择成立日期" name="establishmentDate"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>营业有效时间:</label>-->
- <!-- <input type="text" class="time-input" placeholder="请选择营业有效时间" name="fromDate"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>营业有效时间:</label>-->
- <!-- <input type="text" class="time-input" placeholder="请选择营业有效时间" name="toDate"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>是否长期有效:</label>-->
- <!-- <select name="isValid" th:with="type=${@dict.getType('is_or_no')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>注册资本(万元):</label>-->
- <!-- <input type="text" name="capital"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>币种:</label>-->
- <!-- <select name="currency" th:with="type=${@dict.getType('currency')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>在职员工数量:</label>-->
- <!-- <input type="text" name="employeeNum"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>社保缴纳人数:</label>-->
- <!-- <input type="text" name="socialNum"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>出资总额(万元):</label>-->
- <!-- <input type="text" name="contributNum"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>出资币种:</label>-->
- <!-- <select name="contributCurrency" th:with="type=${@dict.getType('currency')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>出资人列表:</label>-->
- <!-- <input type="text" name="contributList"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>是否经过注册会计师年审:</label>-->
- <!-- <select name="financialIsAccountant" th:with="type=${@dict.getType('is_or_no')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>资产总额(万元):</label>-->
- <!-- <input type="text" name="assetTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>对外投资总额(万元):</label>-->
- <!-- <input type="text" name="debtInvestTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>所有者权益合计(万元):</label>-->
- <!-- <input type="text" name="debtEquityTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>负债总额(万元):</label>-->
- <!-- <input type="text" name="debtTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>实收资本(万元):</label>-->
- <!-- <input type="text" name="capitalTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>负债率统计(系统换算):</label>-->
- <!-- <input type="text" name="debtRate"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>营业收入(万元):</label>-->
- <!-- <input type="text" name="operatingReceipt"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>销售税金及附加(万元):</label>-->
- <!-- <input type="text" name="salesTax"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>利润总额(万元):</label>-->
- <!-- <input type="text" name="salesTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>所得税(万元):</label>-->
- <!-- <input type="text" name="incomeTax"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>净利润(万元):</label>-->
- <!-- <input type="text" name="profitTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>销售利润所得率(系统统计):</label>-->
- <!-- <input type="text" name="salesProfitTotal"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>姓名:</label>-->
- <!-- <input type="text" name="headerName"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>证件类型:</label>-->
- <!-- <select name="papersType" th:with="type=${@dict.getType('papers_number')}">-->
- <!-- <option value="">所有</option>-->
- <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
- <!-- </select>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>证件号码:</label>-->
- <!-- <input type="text" name="papersNumber"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>手机号码:</label>-->
- <!-- <input type="text" name="headPhone"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>座机号码:</label>-->
- <!-- <input type="text" name="headerPhone"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>电子邮箱:</label>-->
- <!-- <input type="text" name="headerMail"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>人员地址:</label>-->
- <!-- <input type="text" name="headerAddress"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>人员邮编:</label>-->
- <!-- <input type="text" name="headerPostCode"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>上架申请拒绝原因:</label>-->
- <!-- <input type="text" name="refuseMsg"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>下架申请原因:</label>-->
- <!-- <input type="text" name="soldOutMsg"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>上架申请时间:</label>-->
- <!-- <input type="text" class="time-input" placeholder="请选择上架申请时间" name="putawayTime"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>上架时间:</label>-->
- <!-- <input type="text" class="time-input" placeholder="请选择上架时间" name="startTime"/>-->
- <!-- </li>-->
- <!-- <li>-->
- <!-- <label>下架时间:</label>-->
- <!-- <input type="text" class="time-input" placeholder="请选择下架时间" name="endTime"/>-->
- <!-- </li>-->
- <li>
- <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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="scm:supplier:add">
- <i class="fa fa-plus"></i> 添加
- </a>
- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="scm:supplier:edit">
- <i class="fa fa-edit"></i> 修改
- </a>
- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="scm:supplier:remove">
- <i class="fa fa-remove"></i> 删除
- </a>
- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="scm:supplier:export">
- <i class="fa fa-download"></i> 导出
- </a>
- </div>
- <div class="col-sm-12 select-table table-striped">
- <table id="bootstrap-table"></table>
- </div>
- </div>
- </div>
- <th:block th:include="include :: footer" />
- <script th:inline="javascript">
- var editFlag = [[${@permission.hasPermi('scm:supplier:edit')}]];
- var removeFlag = [[${@permission.hasPermi('scm:supplier:remove')}]];
- var scmFlag = [[${@permission.hasPermi('scm:supplier:edit')}]];
- var supplierNatureDatas = [[${@dict.getType('supplier_nature')}]];
- var supplierScaleDatas = [[${@dict.getType('supplier_scale')}]];
- var isMarketDatas = [[${@dict.getType('is_or_no')}]];
- var isBrandDatas = [[${@dict.getType('is_or_no')}]];
- var isValidDatas = [[${@dict.getType('is_or_no')}]];
- var currencyDatas = [[${@dict.getType('currency')}]];
- var contributCurrencyDatas = [[${@dict.getType('currency')}]];
- var financialIsAccountantDatas = [[${@dict.getType('is_or_no')}]];
- var papersTypeDatas = [[${@dict.getType('papers_number')}]];
- var prefix = ctx + "scm/supplier";
- $(function() {
- var options = {
- url: prefix + "/list",
- createUrl: prefix + "/add",
- updateUrl: prefix + "/edit/{id}",
- removeUrl: prefix + "/remove",
- exportUrl: prefix + "/export",
- modalName: "供应商",
- columns: [{
- checkbox: true
- },
- {
- field: 'id',
- title: '主键',
- visible: false
- },
- // {
- // field: 'zsId',
- // title: '中盛的id'
- // },
- {
- field: 'supplierName',
- title: '供应商名称',
- formatter: function(value, row, index) {
- return '<a href="javascript:void(0)" onclick="detail(\'' + row.id + '\')">' + value + '</a>';
- }
- },
- {
- field: 'supplierReName',
- title: '供应商简称'
- },
- {
- field: 'address',
- title: '供应商地址'
- },
- {
- field: 'detailAddress',
- title: '供应商详细地址'
- },
- {
- field: 'logo',
- title: 'logo'
- },
- {
- field: 'businessAddress',
- title: '省市县'
- },
- {
- field: 'postCode',
- title: '邮编'
- },
- {
- field: 'website',
- title: '官网网址'
- },
- {
- field: 'supplierPhone',
- title: '供应商电话'
- },
- {
- field: 'fax',
- title: '传真'
- },
- {
- field: 'supplierMan',
- title: '供应商联系人'
- },
- {
- field: 'manPhone',
- title: '联系人电话'
- },
- {
- field: 'supplierNature',
- title: '供应商性质',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(supplierNatureDatas, value);
- }
- },
- {
- field: 'supplierBusiness',
- title: '供应商行业'
- },
- {
- field: 'supplierScale',
- title: '供应商规模',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(supplierScaleDatas, value);
- }
- },
- {
- field: 'supplierType',
- title: '供应商类型'
- },
- {
- field: 'isMarket',
- title: '企业是否上市',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(isMarketDatas, value);
- }
- },
- {
- field: 'isBrand',
- title: '是否是品牌商',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(isBrandDatas, value);
- }
- },
- {
- field: 'supplierDesc',
- title: '供应商介绍'
- },
- {
- field: 'supplierCode',
- title: '平台供应商标识'
- },
- {
- field: 'registration',
- title: '登记机关'
- },
- {
- field: 'establishmentDate',
- title: '成立日期'
- },
- {
- field: 'fromDate',
- title: '营业有效时间'
- },
- {
- field: 'toDate',
- title: '营业有效时间'
- },
- {
- field: 'isValid',
- title: '是否长期有效',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(isValidDatas, value);
- }
- },
- {
- field: 'capital',
- title: '注册资本(万元)'
- },
- {
- field: 'currency',
- title: '币种',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(currencyDatas, value);
- }
- },
- {
- field: 'businessScope',
- title: '营业范围'
- },
- {
- field: 'businessScanFile',
- title: '营业执照扫描件,文件类型图片'
- },
- {
- field: 'remark',
- title: '备注'
- },
- {
- field: 'employeeNum',
- title: '在职员工数量'
- },
- {
- field: 'socialNum',
- title: '社保缴纳人数'
- },
- {
- field: 'socialFile',
- title: '社保缴纳凭证附件'
- },
- {
- field: 'contributProve',
- title: '出资凭证文件类型:jpg/png'
- },
- {
- field: 'contributNum',
- title: '出资总额(万元)'
- },
- {
- field: 'contributCurrency',
- title: '出资币种',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(contributCurrencyDatas, value);
- }
- },
- {
- field: 'contributList',
- title: '出资人列表'
- },
- {
- field: 'financialAnnualList',
- title: '年度报表'
- },
- {
- field: 'financialIsAccountant',
- title: '是否经过注册会计师年审',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(financialIsAccountantDatas, value);
- }
- },
- {
- field: 'financialRemark',
- title: '财务备注'
- },
- {
- field: 'financialFile',
- title: '财报附件'
- },
- {
- field: 'assetTotal',
- title: '资产总额(万元)'
- },
- {
- field: 'debtInvestTotal',
- title: '对外投资总额(万元)'
- },
- {
- field: 'debtEquityTotal',
- title: '所有者权益合计(万元)'
- },
- {
- field: 'debtTotal',
- title: '负债总额(万元)'
- },
- {
- field: 'capitalTotal',
- title: '实收资本(万元)'
- },
- {
- field: 'debtRate',
- title: '负债率统计(系统换算)'
- },
- {
- field: 'operatingReceipt',
- title: '营业收入(万元)'
- },
- {
- field: 'salesTax',
- title: '销售税金及附加(万元)'
- },
- {
- field: 'salesTotal',
- title: '利润总额(万元)'
- },
- {
- field: 'incomeTax',
- title: '所得税(万元)'
- },
- {
- field: 'profitTotal',
- title: '净利润(万元)'
- },
- {
- field: 'salesProfitTotal',
- title: '销售利润所得率(系统统计)'
- },
- {
- field: 'headerName',
- title: '姓名'
- },
- {
- field: 'type',
- title: '类型'
- },
- {
- field: 'jobType',
- title: '职务'
- },
- {
- field: 'papersType',
- title: '证件类型',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(papersTypeDatas, value);
- }
- },
- {
- field: 'papersNumber',
- title: '证件号码'
- },
- {
- field: 'headPhone',
- title: '手机号码'
- },
- {
- field: 'headerPhone',
- title: '座机号码'
- },
- {
- field: 'headerMail',
- title: '电子邮箱'
- },
- {
- field: 'headerAddress',
- title: '人员地址'
- },
- {
- field: 'headerPostCode',
- title: '人员邮编'
- },
- {
- field: 'prosPicture',
- title: '正面盖章图片'
- },
- {
- field: 'consPicture',
- title: '反面盖章图片'
- },
- {
- field: 'status',
- title: '上下架情况'
- },
- {
- field: 'refuseMsg',
- title: '上架申请拒绝原因'
- },
- {
- field: 'soldOutMsg',
- title: '下架申请原因'
- },
- {
- field: 'putawayTime',
- title: '上架申请时间'
- },
- {
- field: 'startTime',
- title: '上架时间'
- },
- {
- field: 'endTime',
- title: '下架时间'
- },
- {
- title: '操作',
- align: 'center',
- formatter: function(value, row, index) {
- var actions = [];
- if ('0' == row.status) { // 待审核
- actions.push('<a class="btn btn-success btn-xs ' + scmFlag + '" href="javascript:void(0)" onclick="approve(\'' + row.id + '\')"><i class="fa fa-edit"></i>上架审核</a> ');
- } else if ('20' == row.status) { //待支付
- actions.push('<a class="btn btn-success btn-xs ' + scmFlag + '" href="javascript:void(0)" onclick="approve(\'' + row.id + '\')"><i class="fa fa-edit"></i>下架审核</a> ');
- }
- // actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a>');
- return actions.join('');
- }
- }]
- };
- $.table.init(options);
- });
- // 跳转审核页面
- function approve(id) {
- $.modal.open("审核", "/scm/supplier/approve/" + id, '800', '350');
- }
- // 查看订单详情
- function detail(id) {
- if($.common.isNotEmpty(id)) {
- var url = prefix + '/detail/' + id;
- // $.operate.detail("订单详情", url);
- var options = {
- title: '供应商详情',
- width: 800,
- height: 600,
- url: url,
- skin: 'layui-layer-gray',
- btn: ['关闭'],
- yes: function (index, layero) {
- $.modal.close(index);
- }
- };
- $.modal.openOptions(options);
- }else{
- $.modal.msgError("查看失败,请联系相关人员");
- }
- }
- </script>
- </body>
- </html>
|