dk-save-bottom.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /*******************************************************************************
  2. * Copyright(c) 2022 dongke All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:
  5. * 编辑履历:
  6. * 作者 日期 版本 修改内容
  7. * 于继渤 2022-5-05 1.00 底部工具栏-保存
  8. * 作者 日期 版本 修改内容
  9. * 姜永辉 2022-05-05 1.01 底部工具栏-保存
  10. *******************************************************************************/
  11. Component({
  12. /**
  13. * 组件的属性列表
  14. */
  15. properties: {
  16. item: { //参数
  17. type: Object,
  18. default: {
  19. label_one: '合计金额',
  20. label_two: '定金金额',
  21. label_three: '定金比率',
  22. submit: '保存'
  23. }
  24. },
  25. checked: { // 自动入库办理
  26. type: Boolean,
  27. value: true,
  28. },
  29. showcheckbox: { // 是否显示出库办理
  30. type: Boolean,
  31. value: true,
  32. },
  33. rightButtonFlag:{
  34. type: Boolean,
  35. value: true,
  36. },
  37. leftButtonFlag:{
  38. type: Boolean,
  39. value: true,
  40. },
  41. submitFlag: { //按钮显示隐藏
  42. type: Boolean,
  43. value: true,
  44. },
  45. allCleanFlag: {//按钮显示隐藏
  46. type: Boolean,
  47. value: true,
  48. },
  49. buyingSignalFlag: {
  50. type: Boolean,
  51. value: false,
  52. },
  53. purchasePriceFlag:{ //敏感信息隐藏
  54. type: Boolean,
  55. value: true,
  56. },
  57. bottomClass:{ //敏感信息隐藏
  58. type: Boolean,
  59. value: false,
  60. },
  61. totallength: { //合计数量
  62. type: String,
  63. default: '0.00'
  64. },
  65. selectlength: { // 已选 或 共件
  66. type: String,
  67. default: '0.00'
  68. },
  69. selectTotallength: { // 共件
  70. type: String,
  71. default: '0.00'
  72. },
  73. flagTypeName: { //属性
  74. type: String,
  75. default: 'order-save'
  76. },
  77. disabledFlag:{
  78. type: Boolean,
  79. value: false,
  80. },
  81. allCleanName: { //左侧按钮文本属性
  82. type: String,
  83. default: ''
  84. },
  85. allSubmitName: { //右侧侧按钮文本属性
  86. type: String,
  87. default: ''
  88. },
  89. },
  90. options: {
  91. multipleSlots: true,//插槽
  92. styleIsolation: 'shared',
  93. },
  94. /**
  95. * 组件的初始数据
  96. */
  97. data: {
  98. allCheck: true,
  99. checked: true,
  100. },
  101. /**
  102. * 组件生命周期
  103. */
  104. lifetimes: {
  105. attached: function () {
  106. },
  107. detached: function () {
  108. // 在组件实例被从页面节点树移除时执行
  109. },
  110. },
  111. /**
  112. * 组件的方法列表
  113. */
  114. methods: {
  115. onCheckboxChange(event) {
  116. this.setData({
  117. checked: event.detail
  118. });
  119. this.triggerEvent('onCheckboxChange', {
  120. checked: event.detail
  121. })
  122. },
  123. /**
  124. * 确定
  125. */
  126. submit() {
  127. this.triggerEvent('submit')
  128. },
  129. /**
  130. * 批量清理
  131. */
  132. allClean() {
  133. this.triggerEvent('allClean')
  134. },
  135. }
  136. })