|
|
@@ -28,7 +28,8 @@
|
|
|
</van-tabs>
|
|
|
|
|
|
<view class="main-good-class" style="height:{{windowHeight+'px'}}">
|
|
|
- <scroll-view scroll-y='{{true}}' bindscrolltolower='scrollToLower' lower-threshold='100' wx:if="{{active == 0}}" class="goods-class" style="height:calc({{windowHeight+'px'}} - 295rpx);overflow: scroll;">
|
|
|
+ <!-- 商品编码的列表 -->
|
|
|
+ <scroll-view scroll-y='{{true}}' bindscrolltolower='scrollToLower' lower-threshold='100' wx:if="{{active == 0 && billType == 'pur'}}" class="goods-class" style="height:calc({{windowHeight+'px'}} - 295rpx);overflow: scroll;">
|
|
|
<van-cell-group style="display: flex;justify-content: flex-end;width: calc({{windowWidth+'px'}} - 20rpx);" custom-class="width-70">
|
|
|
|
|
|
<!-- 商品列表 -->
|
|
|
@@ -59,6 +60,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-cell>
|
|
|
+
|
|
|
<view wx:if="{{tableData.length!=0}}" style="height:180rpx;"></view>
|
|
|
<van-cell wx:if="{{tableData.length==0}}" border="{{ false }}">
|
|
|
<view style="width:100%;">
|
|
|
@@ -67,6 +69,93 @@
|
|
|
</van-cell>
|
|
|
</van-cell-group>
|
|
|
</scroll-view>
|
|
|
+
|
|
|
+ <!--出库商品 列表 -->
|
|
|
+ <view wx:if="{{active == 0 && billType == 'sale'}}" catch:tap="openAddItemInfo" wx:for="{{tableData}}" data-item="{{item}}" wx:key="index" class="main-class" style="width: 75%;margin-left: 166rpx; ">
|
|
|
+ <view class="main-foot" style="border-radius:15rpx;">
|
|
|
+ <view>
|
|
|
+ <view class="table-content-row">
|
|
|
+ <view style="display:flex;width:100%;">
|
|
|
+ <view data-item="{{item}}" style="display:flex;font-size: 15px;">
|
|
|
+ <dk-text style="font-size:30rpx;" fontWeight="nomal" value="{{item.skuCode}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 商品名称 -->
|
|
|
+ <view class="table-row">
|
|
|
+ <view class="table-content-row">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="table-content-row-font">
|
|
|
+ <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="商品名称" copyValue="{{item.skuName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.skuName?item.skuName:''}}
|
|
|
+ </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="库区" copyValue="{{item.whName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.whName?item.whName:''}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 库区色号 -->
|
|
|
+ <view class="table-content-row">
|
|
|
+ <view style="display: flex; justify-content:space-between;">
|
|
|
+
|
|
|
+
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="table-content-row-font">
|
|
|
+ <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="色号" copyValue="{{item.nonStdCode}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.nonStdCode?item.nonStdCode:''}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 加号 -->
|
|
|
+ <view class="van-icon-class">
|
|
|
+ <van-icon size="25px" name="add" style="color:#1B365D" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 分割线 -->
|
|
|
+ <dk-divider marginTop="20rpx"></dk-divider>
|
|
|
+ <!-- 下半部分 -->
|
|
|
+ <view class="table-content-row">
|
|
|
+ <view style="display: flex;justify-content:space-between">
|
|
|
+ <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 style="font-size: 13px;color: #CAA977;">
|
|
|
+ {{item.invQty}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <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 style="font-size: 13px;color: #CAA977;">
|
|
|
+ {{item.usableQty }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!--已选列表-->
|
|
|
<view wx:if="{{active == 1}}" class="goods-selected-class">
|
|
|
<view class="goods-class" style="height:calc({{windowHeight+'px'}} - 295rpx);overflow: scroll;"></view>
|
|
|
@@ -76,7 +165,6 @@
|
|
|
</van-cell>
|
|
|
<van-cell custom-class="goods-cell-class" wx:for="{{choosedGoodsList}}" wx:key="index" data-index="{{index}}" border="{{ false }}">
|
|
|
<van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" async-close bind:close="delChoosedGoodsItem">
|
|
|
-
|
|
|
<view class="goods-item-class">
|
|
|
<view>
|
|
|
<van-image radius="15rpx" custom-class="goods-item-image" fit="fill" src="{{item.skuImages? item.skuImages.path : '' }}" />
|
|
|
@@ -91,7 +179,7 @@
|
|
|
<view style="display: flex; ">
|
|
|
<dk-text value="{{item.skuName}}"></dk-text>
|
|
|
</view>
|
|
|
- <view style="display: flex;">
|
|
|
+ <view style="display: flex;" wx:if="{{billType == 'pur'}}">
|
|
|
<!-- 标准价/标价-->
|
|
|
<view style="width: 85%;">
|
|
|
<dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="13" contentColor="#CAA977" fontWeight="bold" title="售价:" content="{{item.pricePurchase?item.pricePurchase:0}}"></dk-cell>
|
|
|
@@ -100,6 +188,23 @@
|
|
|
<van-icon name="arrow" style="font-size:3.5vw;" />
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view style="display: flex;"wx:if="{{billType == 'sale'}}">
|
|
|
+ <view class="table-content-row-font">
|
|
|
+ <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="库区" copyValue="{{item.whName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.whName?item.whName:''}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;"wx:if="{{billType == 'sale'}}">
|
|
|
+ <view class="table-content-row-font">
|
|
|
+ <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="非标号" copyValue="{{item.nonStdCode}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.nonStdCode?item.nonStdCode:''}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<view style="display:flex">
|
|
|
@@ -114,6 +219,8 @@
|
|
|
</van-swipe-cell>
|
|
|
</van-cell>
|
|
|
</van-cell-group>
|
|
|
+
|
|
|
+
|
|
|
<view style="height:180rpx;"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -135,7 +242,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
-<dk-popup type="sale" descCol="skuModel" titleCol="skuModel" priceCol="pricePromotion" subCol="desc" value="{{dataItem}}" show="{{showPop}}" routeObjName="{{routeObjNameGoTo}}" contentObj="{{popContent}}" bind:commit="editItems">
|
|
|
+<dk-popup type="sale" descCol="skuModel" titleCol="skuModel" priceCol="pricePromotion" subCol="desc" value="{{dataItem}}" show="{{showPop}}" routeObjName="{{routeObjNameGoTo}}" contentObj="{{popContent}}" bind:commit="editItems">
|
|
|
</dk-popup>
|
|
|
|
|
|
|
|
|
@@ -143,6 +250,4 @@
|
|
|
|
|
|
|
|
|
<!-- 合计保存相关组件 -->
|
|
|
-<dk-save-bottom flagTypeName="order-choose-goods" selectTotallength="{{sumQuantity}}" selectlength="{{categoryQuantity}}" totallength="{{numberFormat.toThousandCents(sumGoodsAmount)}}" bind:submit="submit" />
|
|
|
-
|
|
|
-
|
|
|
+<dk-save-bottom flagTypeName="order-choose-goods" selectTotallength="{{sumQuantity}}" selectlength="{{categoryQuantity}}" totallength="{{numberFormat.toThousandCents(sumGoodsAmount)}}" bind:submit="submit" />
|