| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- /*******************************************************************************
- * Copyright(c) 2022 dongke All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 于继渤 2022-5-05 1.00 底部工具栏-保存
- * 作者 日期 版本 修改内容
- * 姜永辉 2022-05-05 1.01 底部工具栏-保存
- *******************************************************************************/
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- item: { //参数
- type: Object,
- default: {
- label_one: '合计金额',
- label_two: '定金金额',
- label_three: '定金比率',
- submit: '保存'
- }
- },
- checked: { // 自动入库办理
- type: Boolean,
- value: true,
- },
- showcheckbox: { // 是否显示出库办理
- type: Boolean,
- value: true,
- },
- rightButtonFlag:{
- type: Boolean,
- value: true,
- },
- leftButtonFlag:{
- type: Boolean,
- value: true,
- },
- submitFlag: { //按钮显示隐藏
- type: Boolean,
- value: true,
- },
- allCleanFlag: {//按钮显示隐藏
- type: Boolean,
- value: true,
- },
- buyingSignalFlag: {
- type: Boolean,
- value: false,
- },
- purchasePriceFlag:{ //敏感信息隐藏
- type: Boolean,
- value: true,
- },
- bottomClass:{ //敏感信息隐藏
- type: Boolean,
- value: false,
- },
- totallength: { //合计数量
- type: String,
- default: '0.00'
- },
- selectlength: { // 已选 或 共件
- type: String,
- default: '0.00'
- },
- selectTotallength: { // 共件
- type: String,
- default: '0.00'
- },
- flagTypeName: { //属性
- type: String,
- default: 'order-save'
- },
- disabledFlag:{
- type: Boolean,
- value: false,
- },
- allCleanName: { //左侧按钮文本属性
- type: String,
- default: ''
- },
- allSubmitName: { //右侧侧按钮文本属性
- type: String,
- default: ''
- },
-
- },
- options: {
- multipleSlots: true,//插槽
- styleIsolation: 'shared',
- },
- /**
- * 组件的初始数据
- */
- data: {
- allCheck: true,
- checked: true,
- },
- /**
- * 组件生命周期
- */
- lifetimes: {
- attached: function () {
- },
- detached: function () {
- // 在组件实例被从页面节点树移除时执行
- },
- },
- /**
- * 组件的方法列表
- */
- methods: {
- onCheckboxChange(event) {
- this.setData({
- checked: event.detail
- });
- this.triggerEvent('onCheckboxChange', {
- checked: event.detail
- })
- },
- /**
- * 确定
- */
- submit() {
- this.triggerEvent('submit')
- },
-
- /**
- * 批量清理
- */
- allClean() {
- this.triggerEvent('allClean')
- },
- }
- })
|