ソースを参照

修改选择品牌

王英杰 1 年間 前
コミット
f2803286e8

+ 1 - 1
package-base-select/pages/select-data/select-data.js

@@ -746,7 +746,7 @@ Page({
           this.setData({
             popContent: [
               { code: 'brandName', type: 'str', title: mixins.$t('brandName'), required: true },
-              { code: 'supplierIds', name: 'supplierNames', title: 'supplier', type: 'choose', required: true, dropType: 'supplier', required: true, urlKey: 'selectProductAttributeSuppliers', code: 'supplierIds', formMode: 'index', idKey: 'roleId', title: mixins.$t('supplier') },
+              { code: 'supplierIds', name: 'supplierNames', title: 'supplier', type: 'choose',   dropType: 'supplier',  urlKey: 'selectProductAttributeSuppliers', code: 'supplierIds', formMode: 'index', idKey: 'roleId', title: mixins.$t('supplier') },
               { code: 'remarks', type: 'str', title: mixins.$t('remarks'), required: false }
             ],
           })

+ 31 - 7
package-base-select/pages/select-goods/select-goods.wxml

@@ -266,6 +266,7 @@
   <view wx:if="{{active == 1 && (billType == 'out')}}" style="height:calc({{windowHeight+'px'}} - 295rpx);overflow: scroll;">
     <scroll-view scroll-y='{{true}}' bindscrolltolower='scrollToLower' lower-threshold='100'>
       <view wx:for="{{choosedGoodsList}}" wx:key="index" catch:tap="openAddItemInfo" data-item="{{item}}" class="main-class">
+        <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" async-close bind:close="delChoosedGoodsItem">
         <view class="main-foot" style="border-radius:15rpx;">
           <view>
             <view class="table-content-row">
@@ -288,6 +289,8 @@
                 </view>
               </view>
             </view>
+            <!-- 库存盘点显示的 -->
+            <view wx:if="{{controlFlags&&controlFlags.sourcePage =='inventory-check'}}" >
             <!-- 库存量  可售量 -->
             <view class="table-content-row">
               <view style="display: flex;">
@@ -308,8 +311,7 @@
                   </view>
                 </view>
               </view>
-            </view>
-
+            </view> 
             <!--数量step-->
             <view class="table-content-row">
               <view style="display: flex;">
@@ -320,9 +322,30 @@
                   <van-stepper value="{{item.itemQty}}" integer="{{true}}" data-index="{{index}}" data-item="{{item}}" data-key="{{item.code}}" bind:change="changeStep" />
                 </view>
               </view>
-            </view>
-
-
+            </view>  
+            <!-- 盈亏数量 -->
+            <view class="table-content-row">
+              <view style="display: flex;"> 
+                <view class="table-content-row-font">
+                    <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="盈亏数量"></dk-text>
+                  </view>
+                  <view class="table-content-class">
+                    {{item.balanceQty}}
+                  </view>
+              </view>
+            </view> 
+            <!-- 盈亏原因 -->
+            <view class="table-content-row">
+              <view style="display: flex;"> 
+                <view class="table-content-row-font">
+                    <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="盈亏原因"></dk-text>
+                  </view>
+                  <view class="table-content-class">
+                    {{item.lossReasonName?item.lossReasonName:''}}
+                  </view>
+              </view>
+            </view> 
+          </view> 
             <!-- 库区 -->
             <view class="table-content-row">
               <view style="display: flex;">
@@ -346,10 +369,11 @@
                   </view>
                 </view>
               </view>
-            </view>
-
+            </view> 
           </view>
         </view>
+        <view slot="right">删除</view>
+        </van-swipe-cell>
       </view>
       <view style="height:200rpx"></view>
     </scroll-view>