supplier.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('供应商列表')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 search-collapse">
  10. <form id="formId">
  11. <div class="select-list">
  12. <ul>
  13. <!-- <li>-->
  14. <!-- <label>中盛的id:</label>-->
  15. <!-- <input type="text" name="zsId"/>-->
  16. <!-- </li>-->
  17. <!-- <li>-->
  18. <!-- <label>供应商名称:</label>-->
  19. <!-- <input type="text" name="supplierName"/>-->
  20. <!-- </li>-->
  21. <li>
  22. <label>名称:</label>
  23. <input type="text" name="supplierName"/>
  24. </li>
  25. <!-- <li>-->
  26. <!-- <label>供应商简称:</label>-->
  27. <!-- <input type="text" name="supplierReName"/>-->
  28. <!-- </li>-->
  29. <li>
  30. <label>简称:</label>
  31. <input type="text" name="supplierReName"/>
  32. </li>
  33. <!-- <li>-->
  34. <!-- <label>供应商地址:</label>-->
  35. <!-- <input type="text" name="address"/>-->
  36. <!-- </li>-->
  37. <!-- <li>-->
  38. <!-- <label>供应商详细地址:</label>-->
  39. <!-- <input type="text" name="detailAddress"/>-->
  40. <!-- </li>-->
  41. <!-- <li>-->
  42. <!-- <label>省市县:</label>-->
  43. <!-- <input type="text" name="businessAddress"/>-->
  44. <!-- </li>-->
  45. <!-- <li>-->
  46. <!-- <label>邮编:</label>-->
  47. <!-- <input type="text" name="postCode"/>-->
  48. <!-- </li>-->
  49. <!-- <li>-->
  50. <!-- <label>官网网址:</label>-->
  51. <!-- <input type="text" name="website"/>-->
  52. <!-- </li>-->
  53. <!-- <li>-->
  54. <!-- <label>供应商电话:</label>-->
  55. <!-- <input type="text" name="supplierPhone"/>-->
  56. <!-- </li>-->
  57. <li>
  58. <label>电话:</label>
  59. <input type="text" name="supplierPhone"/>
  60. </li>
  61. <!-- <li>-->
  62. <!-- <label>传真:</label>-->
  63. <!-- <input type="text" name="fax"/>-->
  64. <!-- </li>-->
  65. <!-- <li>-->
  66. <!-- <label>供应商联系人:</label>-->
  67. <!-- <input type="text" name="supplierMan"/>-->
  68. <!-- </li>-->
  69. <!-- <li>-->
  70. <!-- <label>联系人电话:</label>-->
  71. <!-- <input type="text" name="manPhone"/>-->
  72. <!-- </li>-->
  73. <!-- <li>-->
  74. <!-- <label>供应商性质:</label>-->
  75. <!-- <select name="supplierNature" th:with="type=${@dict.getType('supplier_nature')}">-->
  76. <!-- <option value="">所有</option>-->
  77. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  78. <!-- </select>-->
  79. <!-- </li>-->
  80. <!-- <li>-->
  81. <!-- <label>供应商行业:</label>-->
  82. <!-- <input type="text" name="supplierBusiness"/>-->
  83. <!-- </li>-->
  84. <!-- <li>-->
  85. <!-- <label>供应商规模:</label>-->
  86. <!-- <select name="supplierScale" th:with="type=${@dict.getType('supplier_scale')}">-->
  87. <!-- <option value="">所有</option>-->
  88. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  89. <!-- </select>-->
  90. <!-- </li>-->
  91. <!-- <li>-->
  92. <!-- <label>企业是否上市:</label>-->
  93. <!-- <select name="isMarket" th:with="type=${@dict.getType('is_or_no')}">-->
  94. <!-- <option value="">所有</option>-->
  95. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  96. <!-- </select>-->
  97. <!-- </li>-->
  98. <!-- <li>-->
  99. <!-- <label>是否是品牌商:</label>-->
  100. <!-- <select name="isBrand" th:with="type=${@dict.getType('is_or_no')}">-->
  101. <!-- <option value="">所有</option>-->
  102. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  103. <!-- </select>-->
  104. <!-- </li>-->
  105. <!-- <li>-->
  106. <!-- <label>平台供应商标识:</label>-->
  107. <!-- <input type="text" name="supplierCode"/>-->
  108. <!-- </li>-->
  109. <!-- <li>-->
  110. <!-- <label>登记机关:</label>-->
  111. <!-- <input type="text" name="registration"/>-->
  112. <!-- </li>-->
  113. <!-- <li>-->
  114. <!-- <label>成立日期:</label>-->
  115. <!-- <input type="text" class="time-input" placeholder="请选择成立日期" name="establishmentDate"/>-->
  116. <!-- </li>-->
  117. <!-- <li>-->
  118. <!-- <label>营业有效时间:</label>-->
  119. <!-- <input type="text" class="time-input" placeholder="请选择营业有效时间" name="fromDate"/>-->
  120. <!-- </li>-->
  121. <!-- <li>-->
  122. <!-- <label>营业有效时间:</label>-->
  123. <!-- <input type="text" class="time-input" placeholder="请选择营业有效时间" name="toDate"/>-->
  124. <!-- </li>-->
  125. <!-- <li>-->
  126. <!-- <label>是否长期有效:</label>-->
  127. <!-- <select name="isValid" th:with="type=${@dict.getType('is_or_no')}">-->
  128. <!-- <option value="">所有</option>-->
  129. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  130. <!-- </select>-->
  131. <!-- </li>-->
  132. <!-- <li>-->
  133. <!-- <label>注册资本(万元):</label>-->
  134. <!-- <input type="text" name="capital"/>-->
  135. <!-- </li>-->
  136. <!-- <li>-->
  137. <!-- <label>币种:</label>-->
  138. <!-- <select name="currency" th:with="type=${@dict.getType('currency')}">-->
  139. <!-- <option value="">所有</option>-->
  140. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  141. <!-- </select>-->
  142. <!-- </li>-->
  143. <!-- <li>-->
  144. <!-- <label>在职员工数量:</label>-->
  145. <!-- <input type="text" name="employeeNum"/>-->
  146. <!-- </li>-->
  147. <!-- <li>-->
  148. <!-- <label>社保缴纳人数:</label>-->
  149. <!-- <input type="text" name="socialNum"/>-->
  150. <!-- </li>-->
  151. <!-- <li>-->
  152. <!-- <label>出资总额(万元):</label>-->
  153. <!-- <input type="text" name="contributNum"/>-->
  154. <!-- </li>-->
  155. <!-- <li>-->
  156. <!-- <label>出资币种:</label>-->
  157. <!-- <select name="contributCurrency" th:with="type=${@dict.getType('currency')}">-->
  158. <!-- <option value="">所有</option>-->
  159. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  160. <!-- </select>-->
  161. <!-- </li>-->
  162. <!-- <li>-->
  163. <!-- <label>出资人列表:</label>-->
  164. <!-- <input type="text" name="contributList"/>-->
  165. <!-- </li>-->
  166. <!-- <li>-->
  167. <!-- <label>是否经过注册会计师年审:</label>-->
  168. <!-- <select name="financialIsAccountant" th:with="type=${@dict.getType('is_or_no')}">-->
  169. <!-- <option value="">所有</option>-->
  170. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  171. <!-- </select>-->
  172. <!-- </li>-->
  173. <!-- <li>-->
  174. <!-- <label>资产总额(万元):</label>-->
  175. <!-- <input type="text" name="assetTotal"/>-->
  176. <!-- </li>-->
  177. <!-- <li>-->
  178. <!-- <label>对外投资总额(万元):</label>-->
  179. <!-- <input type="text" name="debtInvestTotal"/>-->
  180. <!-- </li>-->
  181. <!-- <li>-->
  182. <!-- <label>所有者权益合计(万元):</label>-->
  183. <!-- <input type="text" name="debtEquityTotal"/>-->
  184. <!-- </li>-->
  185. <!-- <li>-->
  186. <!-- <label>负债总额(万元):</label>-->
  187. <!-- <input type="text" name="debtTotal"/>-->
  188. <!-- </li>-->
  189. <!-- <li>-->
  190. <!-- <label>实收资本(万元):</label>-->
  191. <!-- <input type="text" name="capitalTotal"/>-->
  192. <!-- </li>-->
  193. <!-- <li>-->
  194. <!-- <label>负债率统计(系统换算):</label>-->
  195. <!-- <input type="text" name="debtRate"/>-->
  196. <!-- </li>-->
  197. <!-- <li>-->
  198. <!-- <label>营业收入(万元):</label>-->
  199. <!-- <input type="text" name="operatingReceipt"/>-->
  200. <!-- </li>-->
  201. <!-- <li>-->
  202. <!-- <label>销售税金及附加(万元):</label>-->
  203. <!-- <input type="text" name="salesTax"/>-->
  204. <!-- </li>-->
  205. <!-- <li>-->
  206. <!-- <label>利润总额(万元):</label>-->
  207. <!-- <input type="text" name="salesTotal"/>-->
  208. <!-- </li>-->
  209. <!-- <li>-->
  210. <!-- <label>所得税(万元):</label>-->
  211. <!-- <input type="text" name="incomeTax"/>-->
  212. <!-- </li>-->
  213. <!-- <li>-->
  214. <!-- <label>净利润(万元):</label>-->
  215. <!-- <input type="text" name="profitTotal"/>-->
  216. <!-- </li>-->
  217. <!-- <li>-->
  218. <!-- <label>销售利润所得率(系统统计):</label>-->
  219. <!-- <input type="text" name="salesProfitTotal"/>-->
  220. <!-- </li>-->
  221. <!-- <li>-->
  222. <!-- <label>姓名:</label>-->
  223. <!-- <input type="text" name="headerName"/>-->
  224. <!-- </li>-->
  225. <!-- <li>-->
  226. <!-- <label>证件类型:</label>-->
  227. <!-- <select name="papersType" th:with="type=${@dict.getType('papers_number')}">-->
  228. <!-- <option value="">所有</option>-->
  229. <!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
  230. <!-- </select>-->
  231. <!-- </li>-->
  232. <!-- <li>-->
  233. <!-- <label>证件号码:</label>-->
  234. <!-- <input type="text" name="papersNumber"/>-->
  235. <!-- </li>-->
  236. <!-- <li>-->
  237. <!-- <label>手机号码:</label>-->
  238. <!-- <input type="text" name="headPhone"/>-->
  239. <!-- </li>-->
  240. <!-- <li>-->
  241. <!-- <label>座机号码:</label>-->
  242. <!-- <input type="text" name="headerPhone"/>-->
  243. <!-- </li>-->
  244. <!-- <li>-->
  245. <!-- <label>电子邮箱:</label>-->
  246. <!-- <input type="text" name="headerMail"/>-->
  247. <!-- </li>-->
  248. <!-- <li>-->
  249. <!-- <label>人员地址:</label>-->
  250. <!-- <input type="text" name="headerAddress"/>-->
  251. <!-- </li>-->
  252. <!-- <li>-->
  253. <!-- <label>人员邮编:</label>-->
  254. <!-- <input type="text" name="headerPostCode"/>-->
  255. <!-- </li>-->
  256. <!-- <li>-->
  257. <!-- <label>上架申请拒绝原因:</label>-->
  258. <!-- <input type="text" name="refuseMsg"/>-->
  259. <!-- </li>-->
  260. <!-- <li>-->
  261. <!-- <label>下架申请原因:</label>-->
  262. <!-- <input type="text" name="soldOutMsg"/>-->
  263. <!-- </li>-->
  264. <!-- <li>-->
  265. <!-- <label>上架申请时间:</label>-->
  266. <!-- <input type="text" class="time-input" placeholder="请选择上架申请时间" name="putawayTime"/>-->
  267. <!-- </li>-->
  268. <!-- <li>-->
  269. <!-- <label>上架时间:</label>-->
  270. <!-- <input type="text" class="time-input" placeholder="请选择上架时间" name="startTime"/>-->
  271. <!-- </li>-->
  272. <!-- <li>-->
  273. <!-- <label>下架时间:</label>-->
  274. <!-- <input type="text" class="time-input" placeholder="请选择下架时间" name="endTime"/>-->
  275. <!-- </li>-->
  276. <li>
  277. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  278. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  279. </li>
  280. </ul>
  281. </div>
  282. </form>
  283. </div>
  284. <div class="btn-group-sm" id="toolbar" role="group">
  285. <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="scm:supplier:add">
  286. <i class="fa fa-plus"></i> 添加
  287. </a>
  288. <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="scm:supplier:edit">
  289. <i class="fa fa-edit"></i> 修改
  290. </a>
  291. <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="scm:supplier:remove">
  292. <i class="fa fa-remove"></i> 删除
  293. </a>
  294. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="scm:supplier:export">
  295. <i class="fa fa-download"></i> 导出
  296. </a>
  297. </div>
  298. <div class="col-sm-12 select-table table-striped">
  299. <table id="bootstrap-table"></table>
  300. </div>
  301. </div>
  302. </div>
  303. <th:block th:include="include :: footer" />
  304. <script th:inline="javascript">
  305. var editFlag = [[${@permission.hasPermi('scm:supplier:edit')}]];
  306. var removeFlag = [[${@permission.hasPermi('scm:supplier:remove')}]];
  307. var scmFlag = [[${@permission.hasPermi('scm:supplier:edit')}]];
  308. var supplierNatureDatas = [[${@dict.getType('supplier_nature')}]];
  309. var supplierScaleDatas = [[${@dict.getType('supplier_scale')}]];
  310. var isMarketDatas = [[${@dict.getType('is_or_no')}]];
  311. var isBrandDatas = [[${@dict.getType('is_or_no')}]];
  312. var isValidDatas = [[${@dict.getType('is_or_no')}]];
  313. var currencyDatas = [[${@dict.getType('currency')}]];
  314. var contributCurrencyDatas = [[${@dict.getType('currency')}]];
  315. var financialIsAccountantDatas = [[${@dict.getType('is_or_no')}]];
  316. var papersTypeDatas = [[${@dict.getType('papers_number')}]];
  317. var prefix = ctx + "scm/supplier";
  318. $(function() {
  319. var options = {
  320. url: prefix + "/list",
  321. createUrl: prefix + "/add",
  322. updateUrl: prefix + "/edit/{id}",
  323. removeUrl: prefix + "/remove",
  324. exportUrl: prefix + "/export",
  325. modalName: "供应商",
  326. columns: [{
  327. checkbox: true
  328. },
  329. {
  330. field: 'id',
  331. title: '主键',
  332. visible: false
  333. },
  334. // {
  335. // field: 'zsId',
  336. // title: '中盛的id'
  337. // },
  338. {
  339. field: 'supplierName',
  340. title: '供应商名称',
  341. formatter: function(value, row, index) {
  342. return '<a href="javascript:void(0)" onclick="detail(\'' + row.id + '\')">' + value + '</a>';
  343. }
  344. },
  345. {
  346. field: 'supplierReName',
  347. title: '供应商简称'
  348. },
  349. {
  350. field: 'address',
  351. title: '供应商地址'
  352. },
  353. {
  354. field: 'detailAddress',
  355. title: '供应商详细地址'
  356. },
  357. {
  358. field: 'logo',
  359. title: 'logo'
  360. },
  361. {
  362. field: 'businessAddress',
  363. title: '省市县'
  364. },
  365. {
  366. field: 'postCode',
  367. title: '邮编'
  368. },
  369. {
  370. field: 'website',
  371. title: '官网网址'
  372. },
  373. {
  374. field: 'supplierPhone',
  375. title: '供应商电话'
  376. },
  377. {
  378. field: 'fax',
  379. title: '传真'
  380. },
  381. {
  382. field: 'supplierMan',
  383. title: '供应商联系人'
  384. },
  385. {
  386. field: 'manPhone',
  387. title: '联系人电话'
  388. },
  389. {
  390. field: 'supplierNature',
  391. title: '供应商性质',
  392. formatter: function(value, row, index) {
  393. return $.table.selectDictLabel(supplierNatureDatas, value);
  394. }
  395. },
  396. {
  397. field: 'supplierBusiness',
  398. title: '供应商行业'
  399. },
  400. {
  401. field: 'supplierScale',
  402. title: '供应商规模',
  403. formatter: function(value, row, index) {
  404. return $.table.selectDictLabel(supplierScaleDatas, value);
  405. }
  406. },
  407. {
  408. field: 'supplierType',
  409. title: '供应商类型'
  410. },
  411. {
  412. field: 'isMarket',
  413. title: '企业是否上市',
  414. formatter: function(value, row, index) {
  415. return $.table.selectDictLabel(isMarketDatas, value);
  416. }
  417. },
  418. {
  419. field: 'isBrand',
  420. title: '是否是品牌商',
  421. formatter: function(value, row, index) {
  422. return $.table.selectDictLabel(isBrandDatas, value);
  423. }
  424. },
  425. {
  426. field: 'supplierDesc',
  427. title: '供应商介绍'
  428. },
  429. {
  430. field: 'supplierCode',
  431. title: '平台供应商标识'
  432. },
  433. {
  434. field: 'registration',
  435. title: '登记机关'
  436. },
  437. {
  438. field: 'establishmentDate',
  439. title: '成立日期'
  440. },
  441. {
  442. field: 'fromDate',
  443. title: '营业有效时间'
  444. },
  445. {
  446. field: 'toDate',
  447. title: '营业有效时间'
  448. },
  449. {
  450. field: 'isValid',
  451. title: '是否长期有效',
  452. formatter: function(value, row, index) {
  453. return $.table.selectDictLabel(isValidDatas, value);
  454. }
  455. },
  456. {
  457. field: 'capital',
  458. title: '注册资本(万元)'
  459. },
  460. {
  461. field: 'currency',
  462. title: '币种',
  463. formatter: function(value, row, index) {
  464. return $.table.selectDictLabel(currencyDatas, value);
  465. }
  466. },
  467. {
  468. field: 'businessScope',
  469. title: '营业范围'
  470. },
  471. {
  472. field: 'businessScanFile',
  473. title: '营业执照扫描件,文件类型图片'
  474. },
  475. {
  476. field: 'remark',
  477. title: '备注'
  478. },
  479. {
  480. field: 'employeeNum',
  481. title: '在职员工数量'
  482. },
  483. {
  484. field: 'socialNum',
  485. title: '社保缴纳人数'
  486. },
  487. {
  488. field: 'socialFile',
  489. title: '社保缴纳凭证附件'
  490. },
  491. {
  492. field: 'contributProve',
  493. title: '出资凭证文件类型:jpg/png'
  494. },
  495. {
  496. field: 'contributNum',
  497. title: '出资总额(万元)'
  498. },
  499. {
  500. field: 'contributCurrency',
  501. title: '出资币种',
  502. formatter: function(value, row, index) {
  503. return $.table.selectDictLabel(contributCurrencyDatas, value);
  504. }
  505. },
  506. {
  507. field: 'contributList',
  508. title: '出资人列表'
  509. },
  510. {
  511. field: 'financialAnnualList',
  512. title: '年度报表'
  513. },
  514. {
  515. field: 'financialIsAccountant',
  516. title: '是否经过注册会计师年审',
  517. formatter: function(value, row, index) {
  518. return $.table.selectDictLabel(financialIsAccountantDatas, value);
  519. }
  520. },
  521. {
  522. field: 'financialRemark',
  523. title: '财务备注'
  524. },
  525. {
  526. field: 'financialFile',
  527. title: '财报附件'
  528. },
  529. {
  530. field: 'assetTotal',
  531. title: '资产总额(万元)'
  532. },
  533. {
  534. field: 'debtInvestTotal',
  535. title: '对外投资总额(万元)'
  536. },
  537. {
  538. field: 'debtEquityTotal',
  539. title: '所有者权益合计(万元)'
  540. },
  541. {
  542. field: 'debtTotal',
  543. title: '负债总额(万元)'
  544. },
  545. {
  546. field: 'capitalTotal',
  547. title: '实收资本(万元)'
  548. },
  549. {
  550. field: 'debtRate',
  551. title: '负债率统计(系统换算)'
  552. },
  553. {
  554. field: 'operatingReceipt',
  555. title: '营业收入(万元)'
  556. },
  557. {
  558. field: 'salesTax',
  559. title: '销售税金及附加(万元)'
  560. },
  561. {
  562. field: 'salesTotal',
  563. title: '利润总额(万元)'
  564. },
  565. {
  566. field: 'incomeTax',
  567. title: '所得税(万元)'
  568. },
  569. {
  570. field: 'profitTotal',
  571. title: '净利润(万元)'
  572. },
  573. {
  574. field: 'salesProfitTotal',
  575. title: '销售利润所得率(系统统计)'
  576. },
  577. {
  578. field: 'headerName',
  579. title: '姓名'
  580. },
  581. {
  582. field: 'type',
  583. title: '类型'
  584. },
  585. {
  586. field: 'jobType',
  587. title: '职务'
  588. },
  589. {
  590. field: 'papersType',
  591. title: '证件类型',
  592. formatter: function(value, row, index) {
  593. return $.table.selectDictLabel(papersTypeDatas, value);
  594. }
  595. },
  596. {
  597. field: 'papersNumber',
  598. title: '证件号码'
  599. },
  600. {
  601. field: 'headPhone',
  602. title: '手机号码'
  603. },
  604. {
  605. field: 'headerPhone',
  606. title: '座机号码'
  607. },
  608. {
  609. field: 'headerMail',
  610. title: '电子邮箱'
  611. },
  612. {
  613. field: 'headerAddress',
  614. title: '人员地址'
  615. },
  616. {
  617. field: 'headerPostCode',
  618. title: '人员邮编'
  619. },
  620. {
  621. field: 'prosPicture',
  622. title: '正面盖章图片'
  623. },
  624. {
  625. field: 'consPicture',
  626. title: '反面盖章图片'
  627. },
  628. {
  629. field: 'status',
  630. title: '上下架情况'
  631. },
  632. {
  633. field: 'refuseMsg',
  634. title: '上架申请拒绝原因'
  635. },
  636. {
  637. field: 'soldOutMsg',
  638. title: '下架申请原因'
  639. },
  640. {
  641. field: 'putawayTime',
  642. title: '上架申请时间'
  643. },
  644. {
  645. field: 'startTime',
  646. title: '上架时间'
  647. },
  648. {
  649. field: 'endTime',
  650. title: '下架时间'
  651. },
  652. {
  653. title: '操作',
  654. align: 'center',
  655. formatter: function(value, row, index) {
  656. var actions = [];
  657. if ('0' == row.status) { // 待审核
  658. 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> ');
  659. } else if ('20' == row.status) { //待支付
  660. 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> ');
  661. }
  662. // 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> ');
  663. 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>');
  664. return actions.join('');
  665. }
  666. }]
  667. };
  668. $.table.init(options);
  669. });
  670. // 跳转审核页面
  671. function approve(id) {
  672. $.modal.open("审核", "/scm/supplier/approve/" + id, '800', '350');
  673. }
  674. // 查看订单详情
  675. function detail(id) {
  676. if($.common.isNotEmpty(id)) {
  677. var url = prefix + '/detail/' + id;
  678. // $.operate.detail("订单详情", url);
  679. var options = {
  680. title: '供应商详情',
  681. width: 800,
  682. height: 600,
  683. url: url,
  684. skin: 'layui-layer-gray',
  685. btn: ['关闭'],
  686. yes: function (index, layero) {
  687. $.modal.close(index);
  688. }
  689. };
  690. $.modal.openOptions(options);
  691. }else{
  692. $.modal.msgError("查看失败,请联系相关人员");
  693. }
  694. }
  695. </script>
  696. </body>
  697. </html>