瀏覽代碼

修改组件

于继渤 2 年之前
父節點
當前提交
28c27d9880
共有 2 個文件被更改,包括 106 次插入3 次删除
  1. 39 3
      components/dkbase/dk-save-bottom/dk-save-bottom.js
  2. 67 0
      components/dkbase/dk-save-bottom/dk-save-bottom.wxml

+ 39 - 3
components/dkbase/dk-save-bottom/dk-save-bottom.js

@@ -5,6 +5,8 @@
  * 编辑履历:
  *		作者				日期					版本				修改内容
  *		于继渤		  	2022-5-05			1.00		 底部工具栏-保存
+  *		作者				日期					版本			修改内容
+ *		姜永辉     2022-05-05	  1.01		   	  底部工具栏-保存
  *******************************************************************************/
 
 Component({
@@ -21,6 +23,22 @@ Component({
         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,
@@ -33,9 +51,9 @@ Component({
       type: Boolean,
       value: false,
     },
-    bottomClass:{ //自定义按钮  
+    purchasePriceFlag:{ //敏感信息隐藏
       type: Boolean,
-      value: false,
+      value: true,
     },
     totallength: { //合计数量
       type: String,
@@ -56,7 +74,16 @@ Component({
     disabledFlag:{
       type: Boolean,
       value: false,
-    }
+    },
+    allCleanName: { //左侧按钮文本属性
+      type: String,
+      default: ''
+    },
+    allSubmitName: { //右侧侧按钮文本属性
+      type: String,
+      default: ''
+    },
+    
   },
 
   options: {
@@ -70,6 +97,7 @@ Component({
    */
   data: {
     allCheck: true,
+    checked: true,
   },
 
   /**
@@ -87,6 +115,14 @@ Component({
    * 组件的方法列表
    */
   methods: {
+    onCheckboxChange(event) {
+      this.setData({
+        checked: event.detail
+      });
+      this.triggerEvent('onCheckboxChange', {
+        checked: event.detail
+      })
+    },
     /**
      * 确定
      */

+ 67 - 0
components/dkbase/dk-save-bottom/dk-save-bottom.wxml

@@ -395,7 +395,62 @@
 
 
 
+  <view style="padding:52rpx 34rpx 61rpx 43rpx; display: flex;" wx:if="{{flagTypeName ==='purchase-orders-edit1'}}">
 
+<view style="width:50%;height:88rpx">
+  <view wx:if="{{purchasePriceFlag}}" style="color: #CAA977;font-size: 30rpx;line-height: 40rpx;">
+    合计金额:
+  </view>
+  <dk-cell wx:if="{{purchasePriceFlag}}" contentFontSize="16" height="44rpx" fontWeight="600" left="0rpx" contentColor="#CAA977" title="" content="{{ totallength}}"></dk-cell>
+</view>
+
+<!-- 保存确定区域 -->
+<view style="width: 50%; display: flex;">
+    <view  wx:if="{{!rightButtonFlag}}"  style="border-radius: 15rpx;width: 196rpx; height: 88rpx;font-size: 32rpx;line-height: 40rpx;">
+    
+    </view>
+  <view  style="border-radius: 15rpx;width:50%; height: 88rpx;font-size: 32rpx;line-height: 40rpx;">
+   
+    <van-button disabled="{{disabledFlag}}" loading="{{disabledFlag}}" plain round size="large" color=""   custom-style="height:88rpx;background:#ffffff;border-radius: 15rpx;color:#1B365D;border: solid 2rpx #1B365D;font-size: 16px; font-weight: bold;" bind:click="submit" type="info">暂存
+    </van-button>
+  </view>
+  <view wx:if="{{leftButtonFlag && rightButtonFlag}}" style="width: 10%;"></view>
+
+  <view  wx:if="{{rightButtonFlag}}"  style="border-radius: 15rpx;width: 50%; height: 88rpx;font-size: 32rpx;line-height: 40rpx;">
+    <van-button wx:if="{{leftButtonFlag}}" disabled="{{disabledFlag}}"  round  size="large" color="#1B365D" custom-style="height:88rpx;" bind:click="allClean" type="default">提交
+    </van-button>
+  </view>
+</view>
+</view>
+
+
+<view style="padding:52rpx 34rpx 61rpx 43rpx; display: flex;" wx:if="{{flagTypeName ==='purchase-orders-offer'}}">
+
+<view style="width:50%;height:88rpx">
+  <view wx:if="{{purchasePriceFlag}}" style="color: #CAA977;font-size: 30rpx;line-height: 40rpx;">
+    合计金额:
+  </view>
+  <dk-cell wx:if="{{purchasePriceFlag}}" contentFontSize="16" height="44rpx" fontWeight="600" left="0rpx" contentColor="#CAA977" title="" content="{{ totallength}}"></dk-cell>
+</view>
+
+<!-- 保存确定区域 -->
+<view style="width: 50%; display: flex;">
+    <view  wx:if="{{!rightButtonFlag}}"  style="border-radius: 15rpx;width: 196rpx; height: 88rpx;font-size: 32rpx;line-height: 40rpx;">
+    
+    </view>
+  <view  style="border-radius: 15rpx;width: 50%; height: 88rpx;font-size: 32rpx;line-height: 40rpx;">
+   
+    <van-button disabled="{{disabledFlag}}" loading="{{disabledFlag}}" plain round size="large" color=""   custom-style="height:88rpx;background:#ffffff;border-radius: 15rpx;color:#1B365D;border: solid 2rpx #1B365D;font-size: 16px; font-weight: bold;" bind:click="submit" type="info">暂存
+    </van-button>
+  </view>
+  <view wx:if="{{leftButtonFlag && rightButtonFlag}}" style="width: 10%;"></view>
+
+  <view  wx:if="{{rightButtonFlag}}"  style="border-radius: 15rpx;width: 50%; height: 88rpx;font-size: 32rpx;line-height: 40rpx;">
+    <van-button wx:if="{{leftButtonFlag}}" disabled="{{disabledFlag}}"  round  size="large" color="#1B365D" custom-style="height:88rpx;" bind:click="allClean" type="default">提交
+    </van-button>
+  </view>
+</view>
+</view>
 
 </view>
 
@@ -456,4 +511,16 @@
     </view>
   </view>
 
+  <view wx:if="{{flagTypeName ==='purchase-order-detail'}}" style="display: flex; padding:35rpx 34rpx 62rpx 34rpx;justify-content: center;align-items: center;">
+    <view style="width:61%">
+      <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="15" contentColor="#CAA977" fontWeight="600" title="合计金额:" content="{{totallength}}"></dk-cell>
+    </view>
+    <view style="width: 4%;"></view>
+    <view style="width:35%;">
+      <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="allClean" type="default">关闭
+      </van-button>
+    </view>
+  </view>
+  
+
 </view>