JavaScript.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. this.Afterload = () => {
  2. var date = (new Date()).toLocaleDateString();
  3. const currentDate = new Date();
  4. $(".el-table__header thead tr:eq(0) th:eq(7)").text(date + '欠料');
  5. const currentDate2 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  6. date = currentDate2.toLocaleDateString();
  7. $(".el-table__header thead tr:eq(0) th:eq(8)").text(date + '欠料');
  8. const currentDate3 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  9. date = currentDate3.toLocaleDateString();
  10. $(".el-table__header thead tr:eq(0) th:eq(9)").text(date + '欠料');
  11. const currentDate4 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  12. date = currentDate4.toLocaleDateString();
  13. $(".el-table__header thead tr:eq(0) th:eq(10)").text(date + '欠料');
  14. const currentDate5 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  15. date = currentDate5.toLocaleDateString();
  16. $(".el-table__header thead tr:eq(0) th:eq(11)").text(date + '欠料');
  17. const currentDate6 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  18. date = currentDate6.toLocaleDateString();
  19. $(".el-table__header thead tr:eq(0) th:eq(12)").text(date + '欠料');
  20. const currentDate7 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  21. date = currentDate7.toLocaleDateString();
  22. $(".el-table__header thead tr:eq(0) th:eq(13)").text(date + '欠料');
  23. const currentDate8 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  24. date = currentDate8.toLocaleDateString();
  25. $(".el-table__header thead tr:eq(0) th:eq(14)").text(date + '欠料');
  26. const currentDate9 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  27. date = currentDate9.toLocaleDateString();
  28. $(".el-table__header thead tr:eq(0) th:eq(15)").text(date + '欠料');
  29. const currentDate10 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  30. date = currentDate10.toLocaleDateString();
  31. $(".el-table__header thead tr:eq(0) th:eq(16)").text(date + '欠料');
  32. const currentDate11 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  33. date = currentDate11.toLocaleDateString();
  34. $(".el-table__header thead tr:eq(0) th:eq(17)").text(date + '欠料');
  35. const currentDate12 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  36. date = currentDate12.toLocaleDateString();
  37. $(".el-table__header thead tr:eq(0) th:eq(18)").text(date + '欠料');
  38. const currentDate13 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  39. date = currentDate13.toLocaleDateString();
  40. $(".el-table__header thead tr:eq(0) th:eq(19)").text(date + '欠料');
  41. const currentDate14 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  42. date = currentDate14.toLocaleDateString();
  43. $(".el-table__header thead tr:eq(0) th:eq(20)").text(date + '欠料');
  44. const currentDate15 = new Date(currentDate.setDate(currentDate.getDate() + 1));
  45. date = currentDate15.toLocaleDateString();
  46. $(".el-table__header thead tr:eq(0) th:eq(21)").text(date + '欠料');
  47. };