change.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date 2018/8/21
  7. * @version
  8. */
  9. // 向后端请求中间计量号
  10. function getNewCode() {
  11. postData('/tender/'+ $('#tenderId').val() +'/change/newCode', null, function (code) {
  12. if (code !== '') {
  13. $('#bj-code').val(code);
  14. }
  15. });
  16. }
  17. class codeRuleSet {
  18. constructor (obj) {
  19. this.body = obj;
  20. // 切换规则组件类型
  21. $('.rule-change', obj).change(function () {
  22. const codeType = this.selectedIndex-1;
  23. if (codeType === ruleConst.ruleType.addNo) {
  24. $('#format', obj).show();
  25. $('#text', obj).show();
  26. $('#text>label', obj).text('起始编号');
  27. $('#text>input', obj).val('001');
  28. const s = '0000000000' + 1;
  29. $('#text>input', obj).val(s.substr(s.length - $('#format>input', obj).val()));
  30. } else if (codeType === ruleConst.ruleType.text) {
  31. $('#format', obj).hide();
  32. $('#text', obj).show();
  33. $('#text>label', obj).text('文本');
  34. $('#text>input', obj).val('').attr('placeholder', '请在这里输入需要的文本');
  35. } else {
  36. $('#format', obj).hide();
  37. $('#text', obj).hide();
  38. }
  39. });
  40. // 修改编号位数
  41. $('#format>input', obj).change(function () {
  42. const s = '0000000000' + parseInt($('#text>input', obj).val());
  43. $('#text>input', obj).val(s.substr(s.length - $(this).val()));
  44. });
  45. // 修改连接符
  46. $('.connector-change', obj).change(function () {
  47. const connectorType = this.options[this.selectedIndex].text;
  48. const rules = $('span>span', obj), ruleText = [];
  49. for (const r of rules) {
  50. ruleText.push($.trim(r.innerText));
  51. }
  52. if (connectorType === '无') {
  53. $('#preview', obj).text(ruleText.join(''));
  54. } else {
  55. $('#preview', obj).text(ruleText.join(connectorType));
  56. }
  57. connectorRule = this.options[this.selectedIndex].value;
  58. });
  59. // 新增规则组件
  60. $('#addRule', obj).click(function () {
  61. const codeType = $('select', obj)[1].selectedIndex-1;
  62. const rule = {rule_type: codeType}, html = [];
  63. let preview;
  64. switch (codeType) {
  65. case ruleConst.ruleType.dealCode: {
  66. if ($('#dealCode').val() === '') {
  67. toastr.error('当前标段合同编号为空,请选择其他组件。');
  68. return false;
  69. }
  70. preview = $('#dealCode').val();
  71. break;
  72. }
  73. case ruleConst.ruleType.tenderName: {
  74. preview = $('#tenderName').val();
  75. break;
  76. }
  77. case ruleConst.ruleType.text: {
  78. rule.text = $('#text>input', obj).val();
  79. if (rule.text === '') {
  80. toastr.error('文本内容不允许为空。');
  81. return false;
  82. }
  83. preview = rule.text;
  84. break;
  85. }
  86. case ruleConst.ruleType.inDate: {
  87. preview = moment().format('YYYY');
  88. break;
  89. }
  90. case ruleConst.ruleType.addNo: {
  91. rule.format = parseInt($('#format>input', obj).val());
  92. rule.start = parseInt($('#text>input', obj).val());
  93. if ($('#text>input', obj).val().length !== rule.format) {
  94. toastr.error('起始编号位数和自动编号位数不一致。');
  95. return false;
  96. }
  97. const s = '0000000000';
  98. preview = s.substr(s.length - rule.format);
  99. break;
  100. }
  101. default: {
  102. toastr.error('请选择组件再添加');
  103. return false;
  104. }
  105. }
  106. // 更新规则
  107. codeRule.push(rule);
  108. // 更新规则显示
  109. html.push('<span class="badge badge-light" title="' + ruleConst.ruleString[codeType] + '" rule="' + JSON.stringify(rule) + '">');
  110. html.push('<span>' + preview + '</span>');
  111. html.push('<a href="javascript: void(0);" class="text-danger" title="移除"><i class="fa fa-remove"></i></a>');
  112. html.push('</span>');
  113. const part = $('#ruleParts', obj).append(html.join(''));
  114. // 更新规则预览
  115. const connectorType = connectorRule !== '' && parseInt(connectorRule) !== ruleConst.connectorType.nothing ? ruleConst.connectorString[connectorRule] : '';
  116. const previewtext = $.trim($('#preview', obj).text()) === '' ? preview : $.trim($('#preview', obj).text()) + connectorType + preview;
  117. $('#preview', obj).text(previewtext);
  118. });
  119. // 删除规则组件
  120. $($('#ruleParts', obj)).on('click', 'a', function () {
  121. const index = $('a', obj).index(this);
  122. codeRule.splice(index-1, 1);
  123. $(this).parent().remove();
  124. const rules = $('span>span', obj), ruleText = [];
  125. for (const r of rules) {
  126. ruleText.push($.trim(r.innerText));
  127. }
  128. const connectorType = connectorRule !== '' && parseInt(connectorRule) !== ruleConst.connectorType.nothing ? ruleConst.connectorString[connectorRule] : '';
  129. $('#preview', obj).text(ruleText.join(connectorType));
  130. });
  131. }
  132. }
  133. /**
  134. * 期计量 - 期列表页面 js
  135. *
  136. * @author Mai
  137. * @date 2018/12/7
  138. * @version
  139. */
  140. const getGroupAuditHtml = function (group) {
  141. return group.map(u => { return `<small class="d-inline-block text-dark mx-1" title="${u.role}" data-auditorId="${u.aid}">${u.name}</small>`; }).join('');
  142. };
  143. const getAuditTypeHtml = function (type) {
  144. if (type === auditType.key.common) return '';
  145. return `<div class="li-subscript"><span class="badge badge-pill badge-${auditType.info[type].class} p-1 badge-bg-small"><small>${auditType.info[type].short}</small></span></div>`;
  146. };
  147. const getAuditTypeText = function (type) {
  148. if (type === auditType.key.common) return '';
  149. return `<span class="text-${auditType.info[type].class}">${auditType.info[type].long}</span>`;
  150. };
  151. $(document).ready(() => {
  152. // 获取审批流程
  153. $('a[data-target="#sp-list" ]').on('click', function () {
  154. const data = {
  155. cid: $(this).attr('c-id'),
  156. };
  157. postData('/tender/' + tenderId + '/change/auditors', data, function (result) {
  158. const { auditHistory, auditors2, user } = result;
  159. let auditorsHTML = [];
  160. auditors2.forEach((group, idx) => {
  161. if (idx === 0) {
  162. auditorsHTML.push(`<li class="list-group-item d-flex justify-content-between align-items-center">
  163. <span class="mr-1"><i class="fa fa fa-play-circle fa-rotate-90"></i></span>
  164. <span class="text-muted">${getGroupAuditHtml(group)}</span>
  165. <span class="badge badge-light badge-pill ml-auto"><small>原报</small></span>
  166. </li>`);
  167. } else if(idx === auditors2.length -1 && idx !== 0) {
  168. auditorsHTML.push(`<li class="list-group-item d-flex justify-content-between align-items-center">
  169. <span class="mr-1"><i class="fa fa fa-stop-circle fa-rotate-90"></i></span>
  170. <span class="text-muted">${getGroupAuditHtml(group)}</span>
  171. <div class="d-flex ml-auto">
  172. ${getAuditTypeHtml(group[0].audit_type)}
  173. <span class="badge badge-light badge-pill ml-auto"><small>终审</small></span>
  174. </div>
  175. </li>`);
  176. } else {
  177. auditorsHTML.push(`<li class="list-group-item d-flex justify-content-between align-items-center">
  178. <span class="mr-1"><i class="fa fa fa-chevron-circle-down"></i></span>
  179. <span class="text-muted">${getGroupAuditHtml(group)}</span>
  180. <div class="d-flex ml-auto">
  181. ${getAuditTypeHtml(group[0].audit_type)}
  182. <span class="badge badge-light badge-pill"><small>${transFormToChinese(idx)}审</small></span>
  183. </div>
  184. </li>`);
  185. }
  186. });
  187. $('#auditor-list').empty();
  188. $('#auditor-list').append(auditorsHTML.join(''));
  189. let historyHTML = [];
  190. auditHistory.forEach((his, idx) => {
  191. if (idx === auditHistory.length - 1 && auditHistory.length !== 1) {
  192. historyHTML.push(`<div class="text-right"><a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a></div>`);
  193. }
  194. historyHTML.push(`<div class="${idx < auditHistory.length - 1 ? 'fold-card' : ''}">`);
  195. historyHTML.push(`<div class="text-center text-muted">${idx+1}#</div>`);
  196. historyHTML.push(`<ul class="timeline-list list-unstyled mt-2 ${ idx === auditHistory.length - 1 && auditHistory.length !== 1 ? 'last-auditor-list' : '' }">`);
  197. his.forEach((group, index) => {
  198. if (index === 0) {
  199. historyHTML.push(`<li class="timeline-list-item pb-2">
  200. <div class="timeline-item-date">
  201. ${group.beginYear}
  202. <span>${group.beginDate}</span>
  203. <span>${group.beginTime}</span>
  204. </div>
  205. <div class="timeline-item-tail"></div>
  206. <div class="timeline-item-icon bg-success text-light"><i class="fa fa-caret-down"></i></div>
  207. <div class="timeline-item-content">
  208. <div class="py-1">
  209. <span class="text-black-50">原报</span>
  210. <span class="pull-right text-success">${idx !== 0 ? '重新' : '' }上报审批</span>
  211. </div>
  212. <div class="card">
  213. <div class="card-body px-3 py-0">
  214. <div class="card-text p-2 py-3 row">
  215. <div class="col">
  216. <span class="h6">${user.name}</span>
  217. <span class="text-muted ml-1">${user.role}</span>
  218. </div>
  219. <div class="col">
  220. <span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </li>`);
  227. }
  228. historyHTML.push(`<li class="timeline-list-item pb-2 ${ group.status === auditConst.status.uncheck && idx === auditHistory.length - 1 && auditHistory.length !== 1 ? 'is_uncheck' : ''}">`);
  229. if (group.endYear) {
  230. historyHTML.push(`<div class="timeline-item-date">${group.endYear}<span>${group.endDate}</span><span>${group.endTime}</span></div>`);
  231. }
  232. if (index < his.length - 1) {
  233. historyHTML.push('<div class="timeline-item-tail"></div>');
  234. }
  235. if (group.status === auditConst.status.checked || group.status === auditConst.status.cancelRevise) {
  236. historyHTML.push('<div class="timeline-item-icon bg-success text-light"><i class="fa fa-check"></i></div>');
  237. } else if (group.status === auditConst.status.checkNo || group.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || group.status === auditConst.status.checkCancel) {
  238. historyHTML.push('<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-level-up"></i></div>');
  239. } else if (group.status === auditConst.status.checking) {
  240. historyHTML.push('<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-ellipsis-h"></i></div>');
  241. } else if(group.status === auditConst.status.checkAgain) {
  242. historyHTML.push('<div class="timeline-item-icon bg-warning text-light"><i class="fa fa-check"></i></div>');
  243. } else {
  244. historyHTML.push('<div class="timeline-item-icon bg-secondary text-light"></div>');
  245. }
  246. historyHTML.push('<div class="timeline-item-content">');
  247. const statuStr = group.status !== auditConst.status.uncheck ?
  248. `<span class="pull-right ${auditConst.statusClass[group.status]}">${auditConst.statusString[group.status]}</span>` : '';
  249. historyHTML.push(`<div class="py-1">
  250. <span class="text-black-50">
  251. ${ !group.is_final ? group.audit_order + '' : '终' }审 ${getAuditTypeText(group.audit_type)}
  252. </span>
  253. ${statuStr}
  254. </div>`);
  255. historyHTML.push('<div class="card"><div class="card-body px-3 py-0">');
  256. for (const [i, auditor] of group.auditors.entries()) {
  257. historyHTML.push(`<div class="card-text p-2 py-3 row ${ ( i > 0 ? 'border-top' : '') }">`);
  258. historyHTML.push(`<div class="col"><span class="h6">${auditor.name}</span><span class="text-muted ml-1">${auditor.role}</span></div>`);
  259. historyHTML.push('<div class="col">');
  260. if (auditor.status === auditConst.status.checked || group.status === auditConst.status.cancelRevise) {
  261. historyHTML.push('<span class="pull-right text-success"><i class="fa fa-check-circle"></i></span>');
  262. } else if (auditor.status === auditConst.status.checkNo || auditor.status === auditConst.status.checkNoPre || group.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {
  263. historyHTML.push('<span class="pull-right text-warning"><i class="fa fa-share-square fa-rotate-270"></i></span>');
  264. } else if (auditor.status === auditConst.status.checking) {
  265. historyHTML.push('<span class="pull-right text-warning"><i class="fa fa-commenting"></i></span>');
  266. } else if (auditor.status === auditConst.status.checkAgain) {
  267. historyHTML.push('<span class="pull-right text-warning"><i class="fa fa-check"></i></span>');
  268. }
  269. historyHTML.push('</div>');
  270. if (auditor.sdesc) {
  271. historyHTML.push(`<div class="col-12 py-1 bg-light"><i class="fa fa-commenting-o mr-1"></i>${auditor.sdesc}</div>`);
  272. }
  273. historyHTML.push('</div>');
  274. }
  275. historyHTML.push('</div></div>');
  276. historyHTML.push('</div>');
  277. historyHTML.push('</li>');
  278. });
  279. historyHTML.push('</div>');
  280. historyHTML.push('</ul>');
  281. });
  282. $('#audit-list').empty();
  283. $('#audit-list').append(historyHTML.join(''));
  284. });
  285. });
  286. $("#change-table").colResizable({
  287. liveDrag:true,
  288. gripInnerHtml:"<div class='grip'></div>",
  289. draggingClass:"dragging",
  290. resizeMode:'fit',
  291. postbackSafe:true,
  292. partialRefresh:true
  293. });
  294. // 首次进入设置
  295. let showNoNeed = false;
  296. if (parseInt(cRuleFirst)) {
  297. codeRule = [];
  298. showNoNeed = true;
  299. // const firstSet = new codeRuleSet($('div.modal-body', '#first'));
  300. // // 确认规则上传服务器
  301. // $('#setRule', '#first').bind('click', function () {
  302. // const data = {
  303. // rule: ruleType,
  304. // connector: connectorRule,
  305. // data: JSON.stringify(codeRule),
  306. //
  307. // };
  308. // postData('/tender/rule', data, function () {
  309. // $('#first').modal('hide');
  310. // $('#add-bj').modal('show');
  311. // });
  312. // });
  313. // $('#first').modal('show');
  314. $('#setting').modal('show');
  315. } else if ($('#changList').children.length === 0) {
  316. $('#add-bj').modal('show');
  317. }
  318. // 设置
  319. const ruleSet = new codeRuleSet($('div.modal-body', '#setting'));
  320. $('#setRule', '#setting').bind('click', function () {
  321. const data = {
  322. rule: ruleType,
  323. connector: connectorRule,
  324. data: JSON.stringify(codeRule),
  325. };
  326. if (codeRule.length !== 0) {
  327. $('#autoCodeShow').show();
  328. }
  329. postData('/tender/rule', data, function () {
  330. if (parseInt(cRuleFirst) && showNoNeed) {
  331. $('#changeFirst').click();
  332. $('#add-bj').modal('show');
  333. } else {
  334. $('#setting').modal('hide');
  335. }
  336. });
  337. })
  338. $('.ml-auto').on('click', 'a', function () {
  339. const content = $(this).attr('href');
  340. if (content === '#add-bj') {
  341. $('#add-bj-modal').modal('show')
  342. getNewCode();
  343. if ($('#changeList').children.length === 0) {
  344. $('#addCancel').hide();
  345. } else {
  346. $('#addCancel').show();
  347. }
  348. $('#bj-code').removeClass('is-invalid');
  349. // if (parseInt(ledger_status) === ledgerConsts.uncheck) {
  350. // $('#warning-ledger').modal('show');
  351. // } else {
  352. // $('#add-bj-modal').modal('show')
  353. // getNewCode();
  354. // if ($('#changeList').children.length === 0) {
  355. // $('#addCancel').hide();
  356. // } else {
  357. // $('#addCancel').show();
  358. // }
  359. // $('#bj-code').removeClass('is-invalid');
  360. // }
  361. }
  362. })
  363. // 新增变更令 modal显示
  364. // $('#add-bj').on('show.bs.modal', function() {
  365. // console.log('2222222222222222')
  366. // if (parseInt(ledger_status) === ledgerConsts.checked) {
  367. // $('#add-bj').modal('hide');
  368. // $('#warning-ledger').modal('show');
  369. // }
  370. // getNewCode();
  371. // if ($('#changeList').children.length === 0) {
  372. // $('#addCancel').hide();
  373. // } else {
  374. // $('#addCancel').show();
  375. // }
  376. // $('#bj-code').removeClass('is-invalid');
  377. // });
  378. // 获取最新可用变更令号
  379. $('#autoCode').click(getNewCode);
  380. // 新增变更令 确认
  381. $('#addOk').click(function () {
  382. $(this).attr('disabled', true);
  383. if (!openChangePlan && $('#bj-name').val().length === 0) {
  384. $('#bj-name').addClass('is-invalid');
  385. $('#name_error_msg').show();
  386. $('#name_error_msg').text('变更工程名称不能为空。');
  387. $(this).attr('disabled', false);
  388. setTimeout(function () {
  389. $('#bj-name').removeClass('is-invalid');
  390. $('#name_error_msg').hide();
  391. }, 2000);
  392. return;
  393. }
  394. if (!openChangePlan && $('#bj-name').val().length > 100) {
  395. $('#bj-name').addClass('is-invalid');
  396. $('#name_error_msg').show();
  397. $('#name_error_msg').text('名称超过100个字,请缩减名称。');
  398. $(this).attr('disabled', false);
  399. setTimeout(function () {
  400. $('#bj-name').removeClass('is-invalid');
  401. $('#name_error_msg').hide();
  402. }, 2000);
  403. return;
  404. }
  405. const data = {
  406. code: $('#bj-code').val(),
  407. plan_code: $('#plan-code').val(),
  408. name: $('#bj-name').val(),
  409. };
  410. if (data.code || data.code !== '' || data.name || data.name !== '') {
  411. postData('/tender/'+ $('#tenderId').val() +'/change/add', data, function (rst) {
  412. $('#bj-code').removeClass('is-invalid');
  413. $('#mj-add').modal('hide');
  414. $(this).attr('disabled', false);
  415. window.location.href = '/tender/'+ $('#tenderId').val() +'/change/' + rst.cid + '/information';
  416. }, function () {
  417. $('#mj-code').addClass('is-invalid');
  418. $('#mj-Hint').show();
  419. $(this).attr('disabled', false);
  420. });
  421. }
  422. });
  423. $('#plan-code').change(function () {
  424. if ($(this).val() === '') {
  425. $('#bj-name').val('');
  426. } else {
  427. const info = _.find(changePlanList, { code: $(this).val() });
  428. $('#bj-name').val(info.name);
  429. }
  430. });
  431. //状态切换
  432. $('#status_select a').on('click', function () {
  433. const status = parseInt($(this).data('val'));
  434. let url = '/tender/'+ $('#tenderId').val() +'/change';
  435. if (status !== 0) {
  436. url += '/status/'+ status;
  437. }
  438. const state = parseInt($('#state_zhankai').attr('data-value')) || 0;
  439. const filterString = setChangeFilterData('change-'+ $('#tenderId').val() +'-list-order');
  440. url = filterString ? url + filterString : url;
  441. if (state) {
  442. url = filterString ? url + '&state=' + state : url + '?state=' + state;
  443. }
  444. window.location.href = url;
  445. });
  446. //变更令状态切换
  447. $('#state_select a').on('click', function () {
  448. const state = parseInt($(this).data('val'));
  449. let url = '/tender/'+ $('#tenderId').val() +'/change';
  450. const status = parseInt($('#zhankai').attr('data-value'));
  451. if (status !== 0) {
  452. url += '/status/'+ status;
  453. }
  454. const filterString = setChangeFilterData('change-'+ $('#tenderId').val() +'-list-order');
  455. url = filterString ? url + filterString : url;
  456. if (state) {
  457. url = filterString ? url + '&state=' + state : url + '?state=' + state;
  458. }
  459. window.location.href = url;
  460. });
  461. // 不再显示首次使用
  462. $('#changeFirst').click(function () {
  463. showNoNeed = false;
  464. $('#changeFirst').remove();
  465. $('#hide_modal').show();
  466. $('#setting').modal('hide');
  467. postData('/tender/'+ $('#tenderId').val() +'/rule/first', '', function () {
  468. });
  469. });
  470. // 弹出删除变更框赋值
  471. $('.delete-cid-modal').on('click', function () {
  472. $('#delete-cid').val($(this).attr('cid'));
  473. });
  474. // 排序初始化
  475. let orderSetting = getLocalCache('change-'+ $('#tenderId').val() +'-list-order');
  476. if (!orderSetting) orderSetting = 'time|desc';
  477. const orders = orderSetting.split('|');
  478. $("#sort-radio input[value='"+ orders[0] +"']").prop('checked', true);
  479. $("#order-radio input[value='"+ orders[1] +"']").prop('checked', true);
  480. if (orders[0] === 'time') {
  481. $('#bpaixu').text('排序:创建时间');
  482. } else {
  483. $('#bpaixu').text('排序:变更令号');
  484. }
  485. // let sortSetting = getLocalCache('change-'+ $('#tenderId').val() +'-list-sort');
  486. // if (sortSetting && parseInt(sortSetting) === 1) {
  487. // $('#bpaixu').click();
  488. // }
  489. // $('#sort-dropdown').on('shown.bs.dropdown', function () {
  490. // setLocalCache('change-'+ $('#tenderId').val() +'-list-sort', 1);
  491. // });
  492. // $('#sort-dropdown').on('hidden.bs.dropdown', function () {
  493. // setLocalCache('change-'+ $('#tenderId').val() +'-list-sort', 0);
  494. // });
  495. $('#sort-radio input[name="paizhi"]').click(function () {
  496. const orderStr = $(this).val() + '|' + $('#order-radio input[name="paixu"]:checked').val();
  497. setLocalCache('change-'+ $('#tenderId').val() +'-list-order', orderStr);
  498. // setLocalCache('change-'+ $('#tenderId').val() +'-list-sort', 1);
  499. let link = window.location.origin + window.location.pathname + '?sort='+ $(this).val() + '&order=' + $('#order-radio input[name="paixu"]:checked').val();
  500. if (getLocalCache('account-pageSize')) {
  501. link += '&pageSize=' + getLocalCache('account-pageSize');
  502. }
  503. window.location.href = link;
  504. });
  505. $('#order-radio input[name="paixu"]').click(function () {
  506. const orderStr = $('#sort-radio input[name="paizhi"]:checked').val() + '|' + $(this).val();
  507. setLocalCache('change-'+ $('#tenderId').val() +'-list-order', orderStr);
  508. // setLocalCache('change-'+ $('#tenderId').val() +'-list-sort', 1);
  509. let link = window.location.origin + window.location.pathname + '?sort='+ $('#sort-radio input[name="paizhi"]:checked').val() + '&order=' + $(this).val();
  510. if (getLocalCache('account-pageSize')) {
  511. link += '&pageSize=' + getLocalCache('account-pageSize');
  512. }
  513. window.location.href = link;
  514. });
  515. });