农经大屏
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.

index.js 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import Pannel from '@/components/pannel/index.vue';
  2. import ScrollTable from '@/components/scroll-table-details/index.vue';
  3. import { mapGetters } from 'vuex';
  4. import { contractPaymentDueWarning } from '../../../../api/index.js';
  5. export default {
  6. components: {
  7. ScrollTable,
  8. Pannel
  9. },
  10. data () {
  11. return {
  12. isLoad: false,
  13. headers: ['部门', '合同编码', '合同名称', '预结款日期', '结款金额'],
  14. data: [],
  15. dataName: ['deptName', 'code', 'name', 'settlementDate', 'settlementAmount']
  16. };
  17. },
  18. computed: {
  19. ...mapGetters(['year', 'deptId'])
  20. },
  21. watch: {
  22. year: {
  23. handler () {
  24. this.getData();
  25. },
  26. immediate: true, // 立即执行
  27. },
  28. deptId: {
  29. handler () {
  30. this.getData();
  31. },
  32. immediate: true, // 立即执行
  33. }
  34. },
  35. created () {
  36. },
  37. mounted () {
  38. },
  39. methods: {
  40. lineClick1 (val) {
  41. console.log(val + 222222222222)
  42. this.$emit('clickDetail', val, '4')
  43. },
  44. getData () {
  45. if (this.year, this.deptId) {
  46. this.isLoad = false;
  47. contractPaymentDueWarning(this.deptId, this.year).then(res => {
  48. let data = res.data;
  49. this.data = data;
  50. this.isLoad = true;
  51. })
  52. }
  53. },
  54. }
  55. };