|
|
@@ -14,43 +14,20 @@
|
|
|
<wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
|
|
|
<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
|
|
|
<loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
|
|
|
-<van-dialog id="van-dialog" />
|
|
|
-
|
|
|
-
|
|
|
+<van-dialog id="van-dialog" />
|
|
|
<van-sticky offset-top="{{ 0 }}">
|
|
|
<van-nav-bar title="选择商品" left-text="" border="{{false}}" left-arrow="{{true}}" bind:click-left="onClickLeft" />
|
|
|
- <view style="display: flex;">
|
|
|
- <view style="width: 85%;">
|
|
|
- <van-search border="{{false}}" bind:search="doSearch" custom-class="search-class" bind:change="onSearchText" model:value="{{ searchText }}" placeholder="输入商品名/商品编码/唯一编码" use-right-icon-slot="{{true}}" placeholder-style="color:#95A8CB">
|
|
|
- </van-search>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="scan-class" style="width: 15%;display: flex;align-items: center;">
|
|
|
- <image class="scan-image" fit="fill" src="{{imageUrl+'scan_image.png'}}"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view wx:if="{{active == 0 && controlFlags.choosewhFlag}}" style="display: flex;margin-left: 24rpx;margin-right: 24rpx;margin-top: 10rpx;">
|
|
|
- <van-dropdown-menu active-color="#1B365D" style=" width: calc(100% ) !important; ">
|
|
|
- <!-- 库区 -->
|
|
|
- <van-dropdown-item id="statusItemWareHouse" disabled="{{controlFlags.choosewhReadonly}}" title="{{ form.whName ? form.whName:'仓库' }}" bind:open="dropdowncommit">
|
|
|
- </van-dropdown-item>
|
|
|
- <!-- 可售量排序 -->
|
|
|
- <van-dropdown-item title="{{ orderBy.text?orderBy.text:'可售量升序' }}" value="{{value}}" options="{{ orderBy }}" bind:change="onSwitchChange">
|
|
|
- </van-dropdown-item>
|
|
|
- </van-dropdown-menu>
|
|
|
-</view>
|
|
|
-
|
|
|
+
|
|
|
+<!-- 查询条件 -->
|
|
|
+<dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['skuName','skuCode','onlyCode'])}}">
|
|
|
+ </dk-dropdown-menu>
|
|
|
+
|
|
|
<view style="display: flex;margin-left: 24rpx;margin-right: 24rpx;margin-top: 10rpx;">
|
|
|
<view bind:tap="selectedProduct" data-active="{{0}}" class="{{ active == 0 ?'selected-product selected-product-color-01' : 'selected-product selected-product-color-02'}}">
|
|
|
商品列表
|
|
|
- </view>
|
|
|
-
|
|
|
- <view bind:tap="selectedProduct" data-active="{{1}}" class="{{ active == 0 ? 'selected-product selected-product-color-02' : 'selected-product selected-product-color-01'}}" style="position: relative;" >
|
|
|
-
|
|
|
- <view>已选商品</view>
|
|
|
-
|
|
|
-
|
|
|
+ </view>
|
|
|
+ <view bind:tap="selectedProduct" data-active="{{1}}" class="{{ active == 0 ? 'selected-product selected-product-color-02' : 'selected-product selected-product-color-01'}}" style="position: relative;" >
|
|
|
+ <view>已选商品</view>
|
|
|
<view wx:if="{{choosedGoodsList.length > 0}}" style="position: absolute;top:16rpx;right: 40rpx;">
|
|
|
<view class="icon">{{choosedGoodsList.length}}</view>
|
|
|
</view>
|