dk-save-bottom.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*******************************************************************************
  2. * Copyright(c) 2022 dongke All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:
  5. * 编辑履历:
  6. * 作者 日期 版本 修改内容
  7. * 于继渤 2022-5-05 1.00 底部工具栏-保存
  8. *******************************************************************************/
  9. Component({
  10. /**
  11. * 组件的属性列表
  12. */
  13. properties: {
  14. item: { //参数
  15. type: Object,
  16. default: {
  17. label_one: '合计金额',
  18. label_two: '定金金额',
  19. label_three: '定金比率',
  20. submit: '保存'
  21. }
  22. },
  23. submitFlag: { //按钮显示隐藏
  24. type: Boolean,
  25. value: true,
  26. },
  27. allCleanFlag: {//按钮显示隐藏
  28. type: Boolean,
  29. value: true,
  30. },
  31. buyingSignalFlag: {
  32. type: Boolean,
  33. value: false,
  34. },
  35. totallength: { //合计数量
  36. type: String,
  37. default: '0.00'
  38. },
  39. selectlength: { // 已选 或 共件
  40. type: String,
  41. default: '0.00'
  42. },
  43. selectTotallength: { // 共件
  44. type: String,
  45. default: '0.00'
  46. },
  47. flagTypeName: { //属性
  48. type: String,
  49. default: 'order-save'
  50. },
  51. disabledFlag:{
  52. type: Boolean,
  53. value: false,
  54. }
  55. },
  56. options: {
  57. multipleSlots: true,//插槽
  58. styleIsolation: 'shared',
  59. },
  60. /**
  61. * 组件的初始数据
  62. */
  63. data: {
  64. allCheck: true,
  65. },
  66. /**
  67. * 组件生命周期
  68. */
  69. lifetimes: {
  70. attached: function () {
  71. },
  72. detached: function () {
  73. // 在组件实例被从页面节点树移除时执行
  74. },
  75. },
  76. /**
  77. * 组件的方法列表
  78. */
  79. methods: {
  80. /**
  81. * 确定
  82. */
  83. submit() {
  84. this.triggerEvent('submit')
  85. },
  86. /**
  87. * 批量清理
  88. */
  89. allClean() {
  90. this.triggerEvent('allClean')
  91. },
  92. }
  93. })