|
|
@@ -1,603 +1,305 @@
|
|
|
+<!-- 前台导入wxmlUtil.wxs -->
|
|
|
<wxs src='../../../../utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
|
|
|
<wxs src='../../../../utils/numberFormat.wxs' module="numberFormat"></wxs>
|
|
|
-<wxs module="txtIndexOf">
|
|
|
- function toIndexOf(value, value2) {
|
|
|
- return value.indexOf(value2)
|
|
|
- }
|
|
|
-</wxs>
|
|
|
<van-dialog id="van-dialog" />
|
|
|
<loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
|
|
|
-<view style="margin-bottom: 15rpx;"></view>
|
|
|
-<view class="dk-card-outer-class">
|
|
|
- <van-collapse value="{{ activeNames }}" bind:change="onChangeCollapse" custom-class="dk-collapse">
|
|
|
- <van-collapse-item name="1">
|
|
|
- <view slot="title" style="display: flex;">
|
|
|
- <view class="dk-collapse-item" style="width: 30%;">收货信息</view>
|
|
|
- <view wx:if="{{activeNames.length == 0}}" style="width: 70%;">{{(form.customerForm.contactName ? form.customerForm.contactName : '') + ( form.customerForm.contactPhone ? '/' +form.customerForm.contactPhone : '')}}</view>
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
- <view catchtap="changeContact">
|
|
|
- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="contactPhone" maxlength="50" value="{{ form.customerForm.contactName }}" input-align="right" label="收货人" placeholder="请输入收货人" autosize border="{{ false }}" readonly="{{true}}">
|
|
|
- </van-field>
|
|
|
- <!--收货电话-->
|
|
|
- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="contactPhone" maxlength="50" value="{{ form.customerForm.contactPhone }}" input-align="right" label="收货电话" placeholder="请输入收货电话" autosize border="{{ false }}" readonly="{{true}}" bind:change="changeCustomerFormField">
|
|
|
- </van-field>
|
|
|
- <!--收货地址-->
|
|
|
- <van-field input-width="200rpx" input-class="dk-cell-value-class" label-class="nomal-label" input-align="left" data-key="address" maxlength="1000" type="textarea" value="{{ wxmlUtil.addressToIndexOf(form.customerForm.address) }}" label="收货地址" placeholder="请选择收货地址" autosize border="{{ false }}" color="#95A8CB" data-type='address' readonly="{{true}}">
|
|
|
- </van-field>
|
|
|
+<!-- 蓝色信息相关 -->
|
|
|
+<view style="margin: 0px 34rpx 26rpx 34rpx;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;">
|
|
|
+ <view style="flex-direction: column;justify-content: center;align-items: flex-start;background: linear-gradient(90.12deg, #718AC6 0.84%, #4A5E98 99.43%);border-radius: 15rpx;">
|
|
|
+ <!-- 供应商 -->
|
|
|
+ <view style="display: flex;padding-right: 32rpx;">
|
|
|
|
|
|
+ <view style="padding-left: 32rpx;padding-top: 19rpx;width: 39rpx;">
|
|
|
+ <view catchtap="toCustomer" style="width: 39rpx;height: 39rpx;background-color: #95A8CB;border-radius:50%;">
|
|
|
+ <view style="width: 39rpx; height: 39rpx;text-align: center;">
|
|
|
+ <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 14rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
|
|
|
+ {{item.supplierName}}
|
|
|
</view>
|
|
|
- <van-field input-width="200rpx" input-align="left" label-class="nomal-label" input-class="dk-cell-value-class" value="{{ entryWh.entryWhName ? entryWh.entryWhName: '' }}" is-link border="{{ false }}" label="收货仓库" placeholder="请选择收货仓库" data-key="deliveryTime" catchtap="onClickDelivery" color="#95A8CB" readonly="{{true}}"></van-field>
|
|
|
-
|
|
|
- <van-field input-width="200rpx" input-align="left" label-class="nomal-label" input-class="dk-cell-value-class" value="{{ form.customerForm.deliveryTime ? wxmlUtil.format(form.customerForm.deliveryTime) : '' }}" is-link border="{{ false }}" label="收货日期" placeholder="请选择收货日期" data-key="deliveryTime" catchtap="onClickDeliveryTime" color="#95A8CB" readonly="{{true}}"></van-field>
|
|
|
-
|
|
|
-
|
|
|
|
|
|
- </van-collapse-item>
|
|
|
- </van-collapse>
|
|
|
-</view>
|
|
|
+ </view>
|
|
|
+ <!-- 收货人 -->
|
|
|
+ <view style="display: flex;padding-right: 32rpx;">
|
|
|
|
|
|
+ <view style="padding-left: 32rpx;padding-top: 19rpx;width: 39rpx;">
|
|
|
+ <view catchtap="toCustomer" style="width: 39rpx;height: 39rpx;background-color: #95A8CB;border-radius:50%;">
|
|
|
+ <view style="width: 39rpx; height: 39rpx;text-align: center;">
|
|
|
+ <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 14rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
|
|
|
+ {{item.contactName}}
|
|
|
+ </view>
|
|
|
|
|
|
+ <view style="padding-left: 22rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
|
|
|
+ {{item.contactPhones}}
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
-<!--选商品-->
|
|
|
-<view>
|
|
|
- <view style="display:flex;height: 102rpx;margin: 40rpx 34rpx 10px 34rpx;">
|
|
|
- <view class="choose-goods" bindtap="toChooseGoods">
|
|
|
- <view class="choose-goods-image">
|
|
|
- <van-image width="32rpx" height="34rpx" src="/static/img/choose-goods.png" />
|
|
|
+ </view>
|
|
|
+ <!-- 地址 -->
|
|
|
+ <view style="display: flex;padding-right: 32rpx;">
|
|
|
+ <view style="padding-left: 32rpx;padding-top: 15rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
|
|
|
+ {{ wxmlUtil.addressToIndexOf(item.addressFull)}}
|
|
|
</view>
|
|
|
- <view class="choose-goods-text">选商品</view>
|
|
|
</view>
|
|
|
- <view style="width: 22rpx;"></view>
|
|
|
- <view class="scan-goods" bindtap="chooseSaleOrders">
|
|
|
- <view class="choose-goods-image">
|
|
|
- <van-image width="32rpx" height="34rpx" src="/static/img/scan-code.png" />
|
|
|
+ <!-- 日期 -->
|
|
|
+ <view style="display: flex;padding-left: 32rpx;padding-top: 16rpx;padding-bottom: 15rpx;padding-right: 32rpx;">
|
|
|
+ <view style="display: flex; width: 50%;line-height: 36rpx;" data-type='deliveryType'>
|
|
|
+ <view style="font-size: 24rpx;line-height: 36rpx;color: #FFFFFF;">
|
|
|
+ 发货日期:{{ item.sale1OutDate }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex; width: 50%;line-height: 36rpx;" data-key="DeliveryFlag" catchtap="openData">
|
|
|
+ <view style="font-size: 24rpx;line-height: 36rpx;color: #FFFFFF;">
|
|
|
+ 入库日期:{{ item.entryDate?item.entryDate:'' }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="choose-goods-text">选订单</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-<!--商品明细-->
|
|
|
-<view style="margin: 48rpx 32rpx 10px 32rpx;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;">
|
|
|
- <view style=" background: #FFFFFF;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);border-radius: 15rpx;">
|
|
|
- <view class="content-goods-info">商品明细</view>
|
|
|
+<!-- 收货仓库 -->
|
|
|
+<view style="margin: 26rpx 34rpx 26rpx 34rpx;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;padding:10rpx;background-color: white;">
|
|
|
+ <!--收货仓库-->
|
|
|
+ <van-field input-width="200rpx" input-class="dk-cell-value-class" label-class="red-label" input-align="left" data-key="gender" maxlength="25" type="text" value="{{ item.whName }}" label="收货仓库:" placeholder="请选择收货仓库" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" data-type='whName' catchtap="openSingle" readonly="{{true}}">
|
|
|
+ </van-field>
|
|
|
+ <!-- <van-cell title-width="160rpx" value-class="dk-value" title-class="dk-title" is-link title="收货仓库:" border="{{false}}" value="{{item.whName}}" type="whName" catchtap="openSingle"/> -->
|
|
|
+</view>
|
|
|
+
|
|
|
+
|
|
|
+<!-- 商品信息 -->
|
|
|
+<view style="margin: 26rpx 34rpx 26rpx 34rpx;box-shadow:2px 2px 5px #e5e5e6;">
|
|
|
+ <view style="background: #FFFFFF;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);border-radius: 15rpx 15rpx 0rpx 0rpx;">
|
|
|
+ <view style="padding: 10px 32rpx 10px 32rpx;color: #1B365D;font-size: 32rpx;display: flex;">
|
|
|
+ <view style="width: 50%;font-weight: bold;display: flex;">
|
|
|
+ <view>商品明细</view>
|
|
|
+ <view class="goods-detail-title" style="{{item.entryStatus != 3 ? 'color:#E4002B;':''}}">{{(item.entryStatus == 3?'(已入库)':'(待入库)')}}</view>
|
|
|
+ </view>
|
|
|
+ <view style="width: 50%;font-size: 26rpx;display: flex; justify-content: flex-end;">
|
|
|
+ <view style="display: flex;justify-content: right;align-items: center;" wx:if="{{item.entryStatus == 3}}">
|
|
|
+ <view style="display: flex;" catchtap="openSacn">
|
|
|
+ <van-image width="32rpx" height="32rpx" src="/static/img/scan-code-p.png" />
|
|
|
+ <view style="padding-left: 10rpx;">{{flgAllScan?'查看条码':'添加条码'}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
<van-cell wx:if="{{goodsList.length==0}}" border="{{ false }}" style="border-radius: 15rpx;">
|
|
|
- <van-empty description="暂未选择商品" />
|
|
|
+ <van-empty description="暂无明细" />
|
|
|
</van-cell>
|
|
|
- <view wx:for="{{goodsList}}" data-item="{{item}}" wx:for-item="item" wx:key="index" border="{{ false }}">
|
|
|
- <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" async-close bind:close="onCloseDel">
|
|
|
- <van-card>
|
|
|
- <view slot="thumb" data-item="{{item}}" data-index="{{index}}" catchtap="openChoosedItemInfo">
|
|
|
- <van-image radius="5px" width="80" height="80" src="{{item.iconThumPath }}" />
|
|
|
+ <view wx:for="{{goodsList}}" data-item="{{item}}" wx:for-item="item" wx:key="index" border="{{ true }}">
|
|
|
+ <van-card wx:if="{{index < 2 || collapseFlag}}" data-item="{{item}}" data-index="{{index}}">
|
|
|
+ <view slot="thumb">
|
|
|
+ <van-image radius="5px" width="80" height="80" src="{{item.iconThumPath }}" />
|
|
|
+ </view>
|
|
|
+ <view slot="title" style="display: flex;">
|
|
|
+ <!-- 标题 -->
|
|
|
+ <view style="display: flex;">
|
|
|
+ <dk-title titleTag="{{item.brandName}}" title="{{item.skuName}}"></dk-title>
|
|
|
</view>
|
|
|
- <view slot="title" data-item="{{item}}" data-index="{{index}}" catchtap="openChoosedItemInfo" style="display: flex;">
|
|
|
- <view style="display: flex;">
|
|
|
- <dk-title titleTag="{{item.titleTag}}" title="{{item.title}}"></dk-title>
|
|
|
- </view>
|
|
|
- <view wx:if="{{item.skuSpecsFlag }}" style="text-align: right;width: 30%;">
|
|
|
- <dk-van-tag radius="10rpx" roundFlag="{{true}}" value="需设计" color="red"></dk-van-tag>
|
|
|
- </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <!-- 描述 -->
|
|
|
+ <view slot="desc">
|
|
|
+ <view style="display:flex;width: 100%;">
|
|
|
+ <dk-text fontWeight="nomal" value="{{item.desc}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view wx:if="{{item.nonGlassListShow}}" style="padding-top: 15rpx; padding-bottom: 15rpx; width: 100%;">
|
|
|
+ <dk-text fontWeight="nomal" value="{{item.nonGlassListShow}}"></dk-text>
|
|
|
</view>
|
|
|
- <view slot="desc" data-item="{{item}}" data-index="{{index}}" catchtap="openChoosedItemInfo">
|
|
|
- <view style="display:flex;width: 100%;">
|
|
|
- <dk-text fontWeight="nomal" value="{{item.desc}}"></dk-text>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view slot="price">
|
|
|
+ <view style="display: flex;width: 100%;flex-direction: row; ">
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <dk-cell wx:if="{{purchasePriceFlag}}" contentFontSize="16" height="45rpx" fontWeight="bold" left="0rpx" contentColor="#CAA977" title="" content="{{item.entryStatus == 3? item.entryAmount : item.entryGoingAmount}}"></dk-cell>
|
|
|
</view>
|
|
|
- <view wx:if="{{item.nonGlassListShow}}" style="padding-top: 15rpx; padding-bottom: 15rpx; width: 100%;">
|
|
|
- <dk-text fontWeight="nomal" value="{{item.nonGlassListShow}}"></dk-text>
|
|
|
+ <view style="width: 100%;text-align: right;font-size:24rpx;color: #95A8CB;line-height: 34rpx;">
|
|
|
+ x {{item.entryStatus == 3? item.entryQuantity : item.entryGoingQuantity}}{{item.nonStandardArea ? (' * ' + item.nonStandardArea + 'm²'): ''}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view slot="tag" data-item="{{item}}" data-index="{{index}}" catchtap="openChoosedItemInfo">
|
|
|
- <dk-text fontWeight="nomal" value="{{item.nonGlassListShow}}"></dk-text>
|
|
|
- </view>
|
|
|
- <view slot="price">
|
|
|
- <view style="display: flex;width: 100%;justify-content: center;align-items: center;">
|
|
|
- <view style="width: 60%;">
|
|
|
- <dk-cell contentFontSize="16" height="25rpx" fontWeight="bold" left="0rpx" contentColor="#CAA977" title="" content="{{ item.priceSale}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 底部明细 -->
|
|
|
+ <view slot="footer">
|
|
|
+ <view style="margin-top: 15rpx;" wx:if="{{item.goodsSkuList.length > 0 || item.combinedList.length > 0}}">
|
|
|
+ <view style="width: 100%;display: flex;">
|
|
|
+ <view style="font-size:12px;color: #95A8CB;width: 50%;text-align: left;">
|
|
|
+ 明细
|
|
|
</view>
|
|
|
- <view style="width: 40%;text-align: right;">
|
|
|
- <van-stepper integer="{{true}}" value="{{item.itemQuantity}}" data-index="{{index}}" min="0" max="999999999" bind:change="changeItemQuantity" />
|
|
|
+ <view style="font-size:12px;color: #95A8CB;width: 50%;text-align: right;" data-item="{{item}}" data-index="{{index}}" catchtap="onChangeOpenGoodsList">
|
|
|
+ {{item.packageDetailsFlag ? '收起' :'展开'}}
|
|
|
+ <van-icon name="{{item.packageDetailsFlag ? 'arrow-up' :'arrow-down' }}" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view slot="footer">
|
|
|
- <view style="margin-top:19rpx;margin-bottom:19rpx;" wx:if="{{item.goodsSkuList.length > 0 || item.combinedList.length > 0}}">
|
|
|
- <view style="width: 100%;display: flex;font-size:12px;color: #95A8CB;">
|
|
|
- <view style="width: 50%;text-align: left;">
|
|
|
- 明细
|
|
|
- </view>
|
|
|
- <view style="width: 50%;text-align: right;" data-item="{{item}}" data-index="{{index}}" catchtap="onChangeOpenGoodsList">
|
|
|
- {{item.packageDetailsFlag ? '收起' :'展开'}}
|
|
|
- <van-icon name="{{item.packageDetailsFlag ? 'arrow-up' :'arrow-down' }}" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!--子件-->
|
|
|
- <view class="goods-class" wx:if="{{item.packageDetailsFlag}}">
|
|
|
- <view wx:for="{{item.goodsSkuList}}" data-item="{{item2}}" wx:for-index="index2" wx:for-item="item2" wx:key="index2">
|
|
|
- <view class="goods-item-class" wx:if="{{item2.hasChild == 0}}">
|
|
|
- <view>
|
|
|
- <van-image radius="15rpx" custom-class="goods-item-image" fit="fill" src="{{item2.iconThumPath}}" />
|
|
|
- </view>
|
|
|
- <view class="goods-item-tag">
|
|
|
- <view style="display: flex;justify-content: space-between;">
|
|
|
- <view class="{{((item2.replaceableSku && item2.replaceableSku.length > 0) || item2.cpFlgGift) ?'goods-item-title-replace':''}}">
|
|
|
- <dk-title titleTag="{{item2.titleTag}}" title="{{item2.skuModel ? item2.skuModel : item2.skuCode}}"></dk-title>
|
|
|
- </view>
|
|
|
- <view wx:if="{{item2.replaceableSku && item2.replaceableSku.length > 0}}">
|
|
|
- <dk-van-tag radius="10rpx" roundFlag="{{true}}" dataItem="{{item2}}" bind:tap="flag_bindtap" value="替换" color="red"></dk-van-tag>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view style="padding-left: 3rpx;" wx:if="{{item2.promotionType != 2}}">
|
|
|
- <dk-van-tag radius="10rpx" roundFlag="{{true}}" dataItem="{{item2}}" dataItemIndex="{{index}}" dataItemIndex2="{{index2}}" bind:tap="deleteItem" value="删除" color="red"></dk-van-tag>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style="width: 100%;display: flex;">
|
|
|
- <dk-text fontWeight="normal" value="{{item2.skuName}}"></dk-text>
|
|
|
- </view>
|
|
|
|
|
|
- <view style="padding-top: 8rpx; display: flex;">
|
|
|
- <view wx:if="{{item2.cpFlgGift}}">
|
|
|
- <dk-van-tag radius="10rpx" roundFlag="{{true}}" dataItem="{{item2}}" dataItemIndex="{{index}}" dataItemIndex2="{{index2}}" bind:tap="cpFlgGift_bindtap" value="赠品" color="#1B365D"></dk-van-tag>
|
|
|
- </view>
|
|
|
- <view wx:if="{{item2.flgAllowSpecsUndefine}}" style="padding-left: 8rpx;">
|
|
|
- <dk-van-tag radius="10rpx" roundFlag="{{true}}" dataItem="{{item2}}" dataItemIndex="{{index}}" dataItemIndex2="{{index2}}" bind:tap="flgAllowSpecsUndefine_bindtap" value="坑距" color="#1B365D"></dk-van-tag>
|
|
|
- </view>
|
|
|
+ <!--子件-->
|
|
|
+ <view class="goods-class" wx:if="{{item.packageDetailsFlag}}">
|
|
|
+ <view wx:for="{{item.goodsSkuList}}" data-item="{{item2}}" wx:for-item="item2" wx:key="index2">
|
|
|
+ <view class="goods-item-class" wx:if="{{item2.hasChild == 0}}">
|
|
|
+ <view>
|
|
|
+ <van-image radius="15rpx" custom-class="goods-item-image" fit="fill" src="{{item2.iconThumPath }}" />
|
|
|
+ </view>
|
|
|
+ <view class="goods-item-tag">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="{{(item2.replaceableSku && item2.replaceableSku.length > 0)?'goods-item-title-replace':''}}">
|
|
|
+ <dk-title titleTag="{{item2.titleTag}}" title="{{item2.skuModel}}"></dk-title>
|
|
|
</view>
|
|
|
|
|
|
- <!--子级明细价格-->
|
|
|
- <view style="display: flex;width: 100%;flex-direction: row;">
|
|
|
- <view style="width: 90%;">
|
|
|
- <dk-cell contentFontSize="12" height="45rpx" fontWeight="bold" left="0rpx" contentColor="#CAA977" title="" content="{{ item2.priceSale}}"></dk-cell>
|
|
|
- </view>
|
|
|
- <view style="width: 10%">
|
|
|
- <dk-text fontWeight="nomal" color="#95A8CB" value="x {{item2.itemQuantity }}"></dk-text>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;display: flex;">
|
|
|
+ <dk-text fontWeight="normal" value="{{item2.skuName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ <!--子级明细价格-->
|
|
|
+ <view style="display: flex;width: 100%;flex-direction: row;">
|
|
|
+ <view style="width: 90%;">
|
|
|
+ <dk-cell contentFontSize="12" height="45rpx" fontWeight="bold" left="0rpx" contentColor="#CAA977" title="" content="{{ item2.priceSale}}"></dk-cell>
|
|
|
</view>
|
|
|
+ <view style="width: 10%">
|
|
|
+ <dk-text fontWeight="nomal" color="#95A8CB" value="x {{item2.tItemQuantity }}"></dk-text>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+ <view class="hr"></view>
|
|
|
|
|
|
- <view style="display: flex;width: 100%;margin-top:5px;align-items: center;" data-index="{{index}}" catchtap="openRemark">
|
|
|
- <view style="width: 100%;text-align: left;font-size:24rpx;color: #95A8CB;">
|
|
|
- <van-image width="19rpx" height="20rpx" src="/static/img/remerk-edit.png" />
|
|
|
- 备注:<span style="line-height:56rpx;">{{item.remarks ? item.remarks : '请输入内容'}}</span>
|
|
|
- </view>
|
|
|
+ <view style="display: flex;width: 100%;align-items: center;height: 60rpx;" data-index="{{index}}" catchtap="openRemark">
|
|
|
+ <view style="width: 100%;text-align: left;font-size: 14px;color: #95A8CB;">
|
|
|
+ 备注:<span style="line-height:56rpx;">{{item.remarks ? item.remarks : ''}}</span>
|
|
|
</view>
|
|
|
- <view class="divide-class"></view>
|
|
|
+
|
|
|
</view>
|
|
|
- </van-card>
|
|
|
- <view slot="right">删除</view>
|
|
|
- </van-swipe-cell>
|
|
|
- </view>
|
|
|
+ <view class="divide-class"></view>
|
|
|
+ </view>
|
|
|
+ </van-card>
|
|
|
|
|
|
|
|
|
- <!--合计金额-->
|
|
|
- <view style="display:flex;padding-bottom:20rpx;">
|
|
|
- <view style="width: 45%;">
|
|
|
- <view style="padding-left: 30rpx;padding-top: 25rpx;">
|
|
|
- <text class="dk-cell-title">{{form.categoryQuantity ? form.categoryQuantity : 0}}品类 共计{{form.sumQuantity ? form.sumQuantity : 0}}件</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <view style="width: 55%;">
|
|
|
- <dk-cell fontSize="16" fontWeight="bold" contentColor="#CAA977" titleColor="#1B365D;" title="合计金额" content="{{form.sumAmount}}"></dk-cell>
|
|
|
- </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-</view>
|
|
|
-<!-- 其他信息 -->
|
|
|
-<view style="margin: 10px 32rpx 10px 32rpx;margin-top: 41rpx;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;">
|
|
|
- <view style="background: #FFFFFF;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);border-radius: 0px 0px 15rpx 15rpx;">
|
|
|
- <view style=" padding: 10px 32rpx 10px 32rpx;color: #1B365D;font-size: 32rpx;">其他信息</view>
|
|
|
- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="remarks" maxlength="50" value="{{ form.remarks }}" input-align="right" label="备注" placeholder="请输入备注" autosize border="{{ false }}" bind:change="changeField">
|
|
|
- </van-field>
|
|
|
|
|
|
- <view style="display:flex;width:100%;margin: 1vw;padding-top:20rpx;">
|
|
|
- <view style="width: 30%; flex:1;color: #95A8CB;font-size: 28rpx;padding-left: 27rpx;">附件</view>
|
|
|
- <view style="width: 70%;text-align: left;">
|
|
|
- <van-uploader max-count="5" accept="image" style="margin-left: 4%;border-radius: 15rpx;" preview-size="160rpx;" file-list="{{ fileList }}" bind:delete="deleteImg" bind:after-read="afterRead" multiple="true" imageFit="aspectFit" />
|
|
|
+ <view catchtap="collapseFlagChange" data-index="{{index}}" wx:if="{{goodsList.length > 2}}" style="padding: 30rpx 32rpx 30rpx 32rpx;border-radius: 16rpx;color:#95A8CB;text-align: center;font-size: 26rpx;display: flex;justify-content: center;">
|
|
|
+ <view>{{!collapseFlag ? '展开查看更多' : '收起查看更多'}}</view>
|
|
|
+ <view style="padding-left: 10rpx;">
|
|
|
+ <van-icon name="{{!collapseFlag ? 'arrow-down':'arrow-up'}}" size="24rpx" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
- <view style="height: 40rpx;"></view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
-</view>
|
|
|
-
|
|
|
-<view style="height: 200rpx;"></view>
|
|
|
+ <view style="background: #FFFFFF;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);border-radius:0rpx 0rpx 15rpx 15rpx;">
|
|
|
|
|
|
-<!-- 编辑商品 -->
|
|
|
-<van-popup custom-class="dk-popup" show="{{ showEditProduct }}" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo">
|
|
|
- <view style="position:relative; top:280rpx;z-index: 1;background-color: transparent; height: 44rpx;"></view>
|
|
|
- <view class="special-topic">
|
|
|
- <!-- 图片 -->
|
|
|
- <view class="special-topic-content">
|
|
|
- <van-image radius="15rpx" custom-class="goods-pop-image" fit="fill" src="{{ currentChoosedItem.iconThumPath }}"></van-image>
|
|
|
- </view>
|
|
|
- <view class="special-topic-title">
|
|
|
- <!-- 标签 标题-->
|
|
|
- <dk-title id="titleTagPop" titleTag="{{currentChoosedItem.titleTag}}" title="{{currentChoosedItem.title}}"></dk-title>
|
|
|
- <view style="padding-top: 10rpx;">
|
|
|
- <dk-text fontWeight="" value="{{currentChoosedItem.desc}}"> </dk-text>
|
|
|
- </view>
|
|
|
- <view style="display: flex;padding-top: 5rpx;">
|
|
|
- <view wx:if="{{currentChoosedItem.promotionType != 0 }}" class="price-pop-class" style="display: flex;width: 100%;">
|
|
|
- <view style="width: 90%;">
|
|
|
- <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="12" contentColor="#CAA977" fontWeight="bold" title="批发价:" content="{{currentChoosedItem.pricePromotion}}"></dk-cell>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view wx:else class="price-pop-class">
|
|
|
- <dk-cell height="46rpx" spaceWidth="0rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="批发价:" content="{{currentChoosedItem.priceStandard}}"></dk-cell>
|
|
|
- </view>
|
|
|
|
|
|
- <!-- 可换件 -->
|
|
|
- <view style="text-align: right; width: 20%;">
|
|
|
- <van-button style="border-radius: 5rpx;" data-item="{{currentChoosedItem}}" round wx:if="{{currentChoosedItem.replaceFlag}}" catchtap="flag_bindtap" size="mini" color="#E4002B" type="info">可换件</van-button>
|
|
|
+ <view style="display:flex;;margin-right: 24rpx;">
|
|
|
+ <view style="width: 50%;">
|
|
|
+ <view style="padding-left: 30rpx;padding-top: 25rpx;">
|
|
|
+ <text style="color: #95A8CB;font-size: 28rpx;">共计 {{item.tSumQuantity ? item.tSumQuantity :1}} 件</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!--sku编码-->
|
|
|
- <view class="selected-sku-text" wx:if="{{currentChoosedItem.skuName}}" style="padding-top: 6rpx !important;">
|
|
|
- <dk-text catchtap="changeDisplayText" fontWeight="" fontSize="10px" value="已选:{{ currentChoosedItem.displayTextFlag?currentChoosedItem.skuCode:currentChoosedItem.skuName}}"> </dk-text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <!--内容-->
|
|
|
- <view class="pop-content-class">
|
|
|
- <view style="display: flex;font-size: 28rpx;padding-left: 30rpx;">
|
|
|
- <view style="color: #95A8CB;width: 40%;">代理商库存</view>
|
|
|
- <view style="color: #95A8CB; width:30%;text-align: center;">库存量:{{selectStock.inventoryQuantity ? selectStock.inventoryQuantity : 0}}</view>
|
|
|
- <view style="color: #95A8CB;width:30%;text-align: center;">可售量:{{selectStock.balanceQuantity ? selectStock.balanceQuantity : 0}}</view>
|
|
|
+ <view style="width: 50%;">
|
|
|
+ <dk-cell fontSize="14" contentColor="#CAA977" titleColor="#1B365D;" contentRight="right" fontWeight="bold" title="合计金额" content="15,999.00"></dk-cell>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <van-cell-group border="{{ false }}">
|
|
|
- <view style="height:calc({{windowHeight+'px'}} - 976rpx);overflow-y: scroll;overflow-x: hidden;">
|
|
|
- <!-- 非标参数选择 -->
|
|
|
- <view wx:if="{{ show7}}">
|
|
|
- <view wx:for="{{currentChoosedItem.nonStandardList}}" wx:key="index" date-item="{{item}}">
|
|
|
- <view style="width: 30%;">
|
|
|
- <dk-text wx:if="{{item.isScope == 0}}" fontSize="13px" value="{{item.fieldName}}"></dk-text>
|
|
|
- </view>
|
|
|
- <view class="tags" wx:if="{{item.isScope == 0}}">
|
|
|
- <view class="tag-bom-item" wx:key="indext" wx:for="{{item.options}}" wx:for-index="indext" wx:for-item="itemt">
|
|
|
- <van-button size="small" catchtap="nonStandardTap" data-pindex="{{index}}" custom-class="{{itemt.infotype=='info'?'button-selected-class':'button-class'}}" data-itemt="{{itemt}}" data-indext="{{indext}}">{{ itemt.name }}
|
|
|
- </van-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view wx:if="{{item.isScope == 1}}" style="display: flex; padding-bottom: 20rpx; padding-top: 10rpx;">
|
|
|
- <view style="width: 50%;">
|
|
|
- <dk-text fontSize="13px" value="{{item.fieldName}}"></dk-text>
|
|
|
- </view>
|
|
|
- <view style="width: 50%; text-align: right;font-size: 13px; ">
|
|
|
- <input type="text" placeholder-class="placeholder-class" placeholder="{{'请输入'+item.fieldName}}" data-pindex="{{index}}" data-item="{{item}}" value="{{item.optionName}}" bindblur="bindBlurIsScopeOne" bindinput="bindInputIsScopeOne"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view wx:if="{{currentChoosedItem.flgNonStandardType == 1}}">
|
|
|
- <view style="display: flex; padding-bottom: 20rpx; padding-top: 10rpx;">
|
|
|
- <view style="width: 50%;">
|
|
|
- <dk-text fontSize="13px" value="面积公式"></dk-text>
|
|
|
- </view>
|
|
|
- <view style="width: 50%; text-align: right;font-size: 13px; ">
|
|
|
- <input type="text" placeholder-class="placeholder-class" data-pindex="{{index}}" disabled="{{true}}" data-item="{{item}}" value="{{currentChoosedItem.specialFormulaName}}" bindblur="bindBlurIsScopeOne" bindinput="bindInputIsScopeOne"></input>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <van-cell border="{{ false }}" title-width="410rpx" title-class="{{!currentChoosedItem.flgGift ? 'red-label' : ''}}" disabled="{{currentChoosedItem.flgGift}}">
|
|
|
- <view slot="title">
|
|
|
- 面积
|
|
|
- </view>
|
|
|
- <view Cell Slot="value">
|
|
|
- <dk-number-input sign="" formatThousandth="{{false}}" digits="{{6}}" center="right" data-key="nonStandardArea" inputValue="{{currentChoosedItem.nonStandardArea?currentChoosedItem.nonStandardArea:0}}" bind:triggerBindValue="bindBlurNonStantardArea"></dk-number-input>
|
|
|
- </view>
|
|
|
- </van-cell>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <van-cell wx:if="{{orderEdit_type == 2 && !orderEdit_type_apvResult}}" title="数量" title-class="red-label" value="{{currentChoosedItem.itemQuantity}}" border="{{ false }}">
|
|
|
- </van-cell>
|
|
|
- <!--数量-->
|
|
|
- <van-cell wx:if="{{orderEdit_type != 2 || orderEdit_type_apvResult =='1'}}" title="数量" title-class="red-label" border="{{ false }}">
|
|
|
- <van-stepper integer="{{true}}" value="{{currentChoosedItem.itemQuantity}}" data-index="{{index}}" min="0" max="999999999" bind:change="changeChooseItemQuantity" />
|
|
|
- </van-cell>
|
|
|
-
|
|
|
- <van-field wx:if="{{currentChoosedItem.flgNonStandardType == 1}}" label-class="nomal-label" input-class="dk-cell-value-pop-class" border="{{ false }}" label="非标备注" maxlength="100" bind:blur="changeStandardPrice1" bind:change="changeCurrentChoosedItemField" data-key="nonstandardRemarks" value="{{currentChoosedItem.nonstandardRemarks}}" input-align="right" placeholder="请输入非标备注" border="{{ false }}" readonly="{{true}}" />
|
|
|
-
|
|
|
- <van-field input-width="200rpx" input-class="dk-cell-value-pop-class" label-class="nomal-label" input-align="left" data-key="warehouse" maxlength="100" type="text" value="{{ currentChoosedItem.entryWhId_Name ? currentChoosedItem.entryWhId_Name : currentChoosedItem.entryWhName}}" label="收货仓库" placeholder="请选择收货仓库" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" data-type='warehouse' catchtap="openSingle" readonly="{{true}}">
|
|
|
- </van-field>
|
|
|
|
|
|
- <view class="tags">
|
|
|
- <view style="margin-left: 15px;margin-bottom: 10px;" wx:key="indext" wx:for="{{tags}}" wx:for-index="indext" wx:for-item="itemt">
|
|
|
- <van-button size="mini" catchtap="clicktype" color="#989697" data-pindex="{{index}}" data-itemt="{{itemt}}" data-indext="{{indext}}" plain type="info">{{ itemt.usedLocation }}</van-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!--备注-->
|
|
|
- <van-field label-class="nomal-label" input-class="dk-cell-value-pop-class" label="备注" maxlength="1000" bind:change="changeCurrentChoosedItemField" data-key="remarks" value="{{currentChoosedItem.remarks}}" input-align="right" placeholder="请输入备注" border="{{ false }}" />
|
|
|
- <!--赠品标识-->
|
|
|
- <van-cell wx:if="{{currentChoosedItem.cpFlgGift}}" title-class="nomal-label" title="赠品标识" border="{{ false }}" value-class="value-class">
|
|
|
- <van-checkbox shape="round" value="{{ currentChoosedItem.flgGift}}" data-index="{{index}}" data-key="flgGift" bind:change="changeAllReadyCheckBox" />
|
|
|
- </van-cell>
|
|
|
- <view style="height: 100rpx;"></view>
|
|
|
- </view>
|
|
|
- <view style="text-align: center;">
|
|
|
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:640rpx;" type="info" data-item="{{currentChoosedItem}}" size="small" bindtap="updateToChooseList">确定</van-button>
|
|
|
- </view>
|
|
|
- </van-cell-group>
|
|
|
</view>
|
|
|
-</van-popup>
|
|
|
-
|
|
|
|
|
|
-<!-- 新建 -->
|
|
|
-<dk-save-bottom wx:if="{{orderType === 'add'}}" leftButtonFlag="true" rightButtonFlag="{{true}}" loading="{{loading}}" flagTypeName="purchase-orders-offer" totallength="{{numberFormat.toThousandCents(totallength)}}" item="{{item}}" bind:allClean="deal" bind:submit="submit"></dk-save-bottom>
|
|
|
+</view>
|
|
|
|
|
|
-<!-- 编辑 -->
|
|
|
-<dk-save-bottom leftButtonFlag="{{true}}" rightButtonFlag="{{true}}" wx:if="{{orderType === 'edit'}}" loading="{{loading}}" flagTypeName="purchase-orders-edit1" totallength="{{numberFormat.toThousandCents(totallength)}}" item="{{item}}" bind:allClean="deal" bind:submit="submit"></dk-save-bottom>
|
|
|
|
|
|
|
|
|
-<!--备注-->
|
|
|
-<van-popup show="{{ remarkFlag }}" style="z-index: 999;" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo_remark">
|
|
|
- <van-cell-group>
|
|
|
- <van-cell border="{{ false }}">
|
|
|
- <view style="display: flex;">
|
|
|
- <view style="width:80%;font-size:16px;color:#34495e;text-align:left;">
|
|
|
- 备注修改
|
|
|
- </view>
|
|
|
|
|
|
- <view style="text-align: right; width:20%; ">
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </van-cell>
|
|
|
- <van-divider />
|
|
|
|
|
|
- <van-field rows="5" autosize label="备注" value="{{goodsList[remarksIndex].remarks}}" type="textarea" maxlength="1000" placeholder="请输入备注" data-item="{{goodsList[remarksIndex].remarks}}" data-key="remarks" input-class="input-class" bind:change="changeRemarksField" border="{{ false }}" />
|
|
|
|
|
|
- <view style="height: 450rpx;"></view>
|
|
|
|
|
|
- <view style="text-align: center;">
|
|
|
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:640rpx;" type="info" size="small" bindtap="updateToChooseList_remark">确定</van-button>
|
|
|
- </view>
|
|
|
- <view style="height: 40rpx;"></view>
|
|
|
- </van-cell-group>
|
|
|
-</van-popup>
|
|
|
+<!-- 其他信息 -->
|
|
|
+<view style="margin: 10px 32rpx 10px 32rpx;margin-top: 41rpx;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;">
|
|
|
+ <view style="background: #FFFFFF;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);border-radius:15rpx;">
|
|
|
+ <view style=" padding: 10px 32rpx 10px 32rpx;color: #1B365D;font-size: 32rpx;">其他信息</view>
|
|
|
|
|
|
-<!--联系电话-->
|
|
|
-<van-popup show="{{ telephoneFlag }}" style="z-index: 999;" round="{{true}}" position="bottom" bind:close="closeCustomerPhonePop">
|
|
|
- <van-cell-group>
|
|
|
- <van-cell border="{{ false }}">
|
|
|
- <view style="display: flex;">
|
|
|
- <view style="width:80%;font-size:16px;;color:#34495e;text-align:left;">
|
|
|
- 联系电话修改
|
|
|
- </view>
|
|
|
- <view style="text-align: right; width:20%; ">
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </van-cell>
|
|
|
- <van-divider />
|
|
|
- <dk-number-phone-input dataKey="customerPhone" value="{{form.customerForm.customerPhone}}" bind:changeField="changeCustomerPhonePop"></dk-number-phone-input>
|
|
|
- <view style="color:blue;font-size: 14px;padding-left: 30rpx;">注意:仅修改当前客户的联系电话</view>
|
|
|
- <view style="height: 550rpx;"></view>
|
|
|
- <view style="text-align: center;">
|
|
|
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:640rpx;" type="info" size="small" bindtap="updateCustomerPhone">确定</van-button>
|
|
|
- </view>
|
|
|
- <view style="height: 40rpx;"></view>
|
|
|
- </van-cell-group>
|
|
|
-</van-popup>
|
|
|
+ <!--备注-->
|
|
|
+ <van-field input-width="200rpx"
|
|
|
+ input-class="dk-cell-value-class"
|
|
|
+ input-align="left" label-class="nomal-label"
|
|
|
+ data-key="remarks" maxlength="1000" type="textarea"
|
|
|
+ value="{{ item.remarks }}" input-align="left"
|
|
|
+ label="备注" placeholder="请输入备注" autosize
|
|
|
+ border="{{ false }}" bind:change="fieldChange" data-type='remarks'>
|
|
|
+ </van-field>
|
|
|
|
|
|
-<!-- 可换件-->
|
|
|
-<dk-replace-sku model:show="{{replaceShow}}" value="{{replaceObj}}" bind:replace="replaceItem" bind:closePop="replaceItemClose">
|
|
|
-</dk-replace-sku>
|
|
|
-
|
|
|
-<!-- 赠品标价 -->
|
|
|
-<van-popup custom-class="dk-popup" show="{{ cpFlgGiftFlag }}" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo_cpFlgGift">
|
|
|
- <view style="position:relative; top:280rpx;z-index: 1;background-color: transparent; height: 44rpx;"></view>
|
|
|
- <view class="special-topic">
|
|
|
- <!-- 图片 -->
|
|
|
- <view class="special-topic-content">
|
|
|
- <van-image radius="15rpx" custom-class="goods-pop-image" fit="fill" src="{{ currentSkuChoosedItem.iconThumPath }}"></van-image>
|
|
|
- </view>
|
|
|
- <view class="special-topic-title">
|
|
|
- <!-- 标签 标题-->
|
|
|
- <dk-title titleTag="{{currentSkuChoosedItem.titleTag}}" title="{{currentSkuChoosedItem.skuModel}}"></dk-title>
|
|
|
- <view style="padding-top: 10rpx;">
|
|
|
- <dk-text fontWeight="normal" value="{{currentSkuChoosedItem.skuName}}"></dk-text>
|
|
|
- </view>
|
|
|
- <view style="display: flex;padding-top: 5rpx;">
|
|
|
- <view wx:if="{{currentSkuChoosedItem.promotionType != 0 || currentSkuChoosedItem.flgNonStandardType == 1}}" class="price-pop-class">
|
|
|
- <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="售价:" content="{{currentSkuChoosedItem.priceSale ? currentSkuChoosedItem.priceSale: currentSkuChoosedItem.pricePromotion}}"></dk-cell>
|
|
|
- </view>
|
|
|
- <view wx:else class="price-pop-class">
|
|
|
- <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="标价:" content="{{currentSkuChoosedItem.priceSale ? currentSkuChoosedItem.priceSale: currentSkuChoosedItem.priceStandard}}"></dk-cell>
|
|
|
+ <view style="display:flex;width:100%;margin: 1vw; padding-top: 20rpx;">
|
|
|
+ <view style="width: 30%; flex:1;color: #95A8CB;font-size: 28rpx;padding-left: 27rpx;">附件</view>
|
|
|
+ <view style="width: 70%;text-align: left;">
|
|
|
+ <van-uploader max-count="5" accept="image" style="margin-left: 4%;border-radius: 15rpx;" preview-size="160rpx;" file-list="{{ fileList }}" bind:delete="deleteImg" bind:after-read="afterRead" multiple="true" imageFit="aspectFit" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 赠品 -->
|
|
|
- <view style="text-align: right; width: 20%;">
|
|
|
- <van-button style="border-radius: 5rpx;" data-item="{{currentSkuChoosedItem}}" round catchtap="" size="mini" color="#1B365D" type="info">赠品</van-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
|
|
|
- <!--内容-->
|
|
|
- <view class="pop-content-class">
|
|
|
- <van-cell-group border="{{ false }}">
|
|
|
-
|
|
|
- <!--销售价格-->
|
|
|
- <van-cell border="{{ false }}" title-width="410rpx">
|
|
|
- <view slot="title">
|
|
|
- 销售价格
|
|
|
- </view>
|
|
|
- <view Cell Slot="value">
|
|
|
- <dk-number-input center="right" data-key="priceSale" inputValue="{{currentSkuChoosedItem.priceSale}}" bind:triggerBindValue="changeSalesPriceField"></dk-number-input>
|
|
|
- </view>
|
|
|
- </van-cell>
|
|
|
- <van-cell border="{{ false }}" title-width="410rpx">
|
|
|
- <view slot="title">
|
|
|
- 销售金额
|
|
|
- </view>
|
|
|
- <view Cell Slot="value">
|
|
|
- <dk-number-input center="right" data-key="itemAmount" inputValue="{{currentSkuChoosedItem.itemAmount}}" bind:triggerBindValue="changeItemAmountField"></dk-number-input>
|
|
|
- </view>
|
|
|
- </van-cell>
|
|
|
-
|
|
|
- <!--正常品显示-->
|
|
|
- <van-cell wx:if="{{currentSkuChoosedItem.promotionType==0}}" border="{{ false }}" title-width="410rpx" disabled="{{currentSkuChoosedItem.flgGift}}">
|
|
|
- <view slot="title" style="color:#95A8CB">
|
|
|
- 标价折扣
|
|
|
- </view>
|
|
|
- <dk-text color="#1B365D" fontSize="13px" fontWeight="nomal" value="{{(currentSkuChoosedItem.discountStandard || currentSkuChoosedItem.discountStandard ==0)?(currentSkuChoosedItem.discountStandard+ '%'):'' }}"></dk-text>
|
|
|
- </van-cell>
|
|
|
+</view>
|
|
|
|
|
|
- <!--促销品显示-->
|
|
|
- <van-cell wx:if="{{currentSkuChoosedItem.promotionType !=0 }}" border="{{ false }}" title-width="410rpx">
|
|
|
- <view slot="title" style="color:#95A8CB">
|
|
|
- 标准售价折扣
|
|
|
- </view>
|
|
|
- <dk-text color="#1B365D" fontSize="13px" fontWeight="nomal" value="{{currentSkuChoosedItem.discountPromotion?(currentSkuChoosedItem.discountPromotion+ '%'):'' }}"></dk-text>
|
|
|
- </van-cell>
|
|
|
+<view style="height: 200rpx;"></view>
|
|
|
|
|
|
- <!--赠品标识-->
|
|
|
- <van-cell title-class="nomal-label" title="赠品标识" border="{{ false }}" value-class="value-class">
|
|
|
- <van-checkbox shape="round" value="{{ currentSkuChoosedItem.flgGift}}" data-index="{{index}}" data-key="flgGift" bind:change="changeSkuFlgGift" />
|
|
|
- </van-cell>
|
|
|
- <view style="height: 100rpx;"></view>
|
|
|
+<!-- save -->
|
|
|
+<dk-save-bottom disabledFlag="{{loadingButtonFlag}}" loading="{{loading}}" flagTypeName="purchase-inventory-offer" totallength="{{numberFormat.toThousandCents(item.tSumAmount)}}" item="{{item}}" allCleanName="关闭" allSubmitName="{{ item.entryStatus == 3 ? '保存' : '入库' }}" bind:allClean="deal" bind:submit="submit"></dk-save-bottom>
|
|
|
|
|
|
- <view style="text-align: center;">
|
|
|
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:640rpx;" type="info" data-item="{{currentSkuChoosedItem}}" size="small" bindtap="updateCurrentSkuChoosedItem">确定</van-button>
|
|
|
- </view>
|
|
|
- </van-cell-group>
|
|
|
- </view>
|
|
|
-</van-popup>
|
|
|
|
|
|
-<van-popup custom-class="dk-popup" show="{{ flgAllowSpecsUndefineFlag }}" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo_flgAllowSpecsUndefine">
|
|
|
- <view style="position:relative; top:280rpx;z-index: 1;background-color: transparent; height: 44rpx;"></view>
|
|
|
- <view class="special-topic">
|
|
|
- <!-- 图片 -->
|
|
|
- <view class="special-topic-content">
|
|
|
- <van-image radius="15rpx" custom-class="goods-pop-image" fit="fill" src="{{ currentSkuChoosedItem.iconThumPath }}"></van-image>
|
|
|
- </view>
|
|
|
- <view class="special-topic-title">
|
|
|
- <!-- 标签 标题-->
|
|
|
- <dk-title titleTag="{{currentSkuChoosedItem.titleTag}}" title="{{currentSkuChoosedItem.skuModel}}"></dk-title>
|
|
|
- <view style="padding-top: 10rpx;">
|
|
|
- <dk-text fontWeight="normal" value="{{currentSkuChoosedItem.skuName}}"></dk-text>
|
|
|
- </view>
|
|
|
- <view style="display: flex;padding-top: 5rpx;">
|
|
|
- <view wx:if="{{currentSkuChoosedItem.promotionType == 0}}" class="price-pop-class">
|
|
|
- <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="标价:" content="{{currentSkuChoosedItem.priceStandard}}"></dk-cell>
|
|
|
- </view>
|
|
|
- <view wx:if="{{currentSkuChoosedItem.promotionType != 0}}" class="price-pop-class">
|
|
|
- <dk-cell height="46rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="标准售价:" content="{{currentSkuChoosedItem.pricePromotion}}"></dk-cell>
|
|
|
- </view>
|
|
|
|
|
|
- <!-- 赠品 -->
|
|
|
- <!-- <view style="text-align: right; width: 20%;">
|
|
|
- <van-button style="border-radius: 5rpx;" data-item="{{currentSkuChoosedItem}}" round catchtap="" size="mini" color="#1B365D" type="info">坑距</van-button>
|
|
|
- </view> -->
|
|
|
+<van-popup show="{{ sacnFlag }}" style="z-index: 999;box-shadow: 0px -8px 24px 0px #0010271A;" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo_scan">
|
|
|
+ <view style="padding:20rpx;">
|
|
|
+ <view style="font-size: 32rpx;display: flex; justify-content:center;">
|
|
|
+ <van-image style="padding-top: 4rpx;" width="33rpx" height="33rpx" src="/static/img/scan-code-p.png" />
|
|
|
+ <view style="padding-left: 10rpx; color:#1B365D;display: flex;">
|
|
|
+ <view>查看条码</view>
|
|
|
+ <view>{{ '('+ barListLength +'个)'}}</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!--内容-->
|
|
|
- <view class="pop-content-class">
|
|
|
- <van-cell-group border="{{ false }}">
|
|
|
- <!--坑距待定-->
|
|
|
- <!-- <van-cell title-class="nomal-label" title="坑距待定" border="{{ false }}" value-class="value-class">
|
|
|
- <van-checkbox shape="round" value="{{ currentSkuChoosedItem.flgSpecsUndefine}}" data-index="{{index}}" data-key="flgGift" bind:change="changeSkuFlgSpecsUndefine" />
|
|
|
- </van-cell> -->
|
|
|
- <view style="height: 100rpx;"></view>
|
|
|
- <view style="text-align: center;">
|
|
|
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:640rpx;" type="info" data-item="{{currentSkuChoosedItem}}" size="small" bindtap="updateCurrentSkuChoosedItemFlgSpecsUndefine">确定</van-button>
|
|
|
- </view>
|
|
|
- </van-cell-group>
|
|
|
- </view>
|
|
|
-</van-popup>
|
|
|
-
|
|
|
-<!-- 收货人列表 -->
|
|
|
-<van-popup show="{{ contactFlag }}" style="z-index: 999;" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo_contact">
|
|
|
- <view style="padding-top:30rpx;">
|
|
|
- <scroll-view scroll-y="{{true}}" style="height: 50vh;">
|
|
|
- <view wx:for="{{contactList}}" data-item="{{item}}" wx:for-index="index" wx:key="index" class="main-class">
|
|
|
- <view class="main-foot" style="border-radius: 15rpx;">
|
|
|
- <view style="padding:10rpx;">
|
|
|
- <view data-index="{{index}}" data-item="{{item}}">
|
|
|
- <view style="padding:20rpx;" class="table-row-right">
|
|
|
- <view style="display: flex;">
|
|
|
- <view style=" width: 9%;">
|
|
|
- <view style="border-radius: 51%; width: 38rpx; height: 38rpx;background-color: #95A8CB;display: flex;align-items: center;justify-content:center;text-align: center;padding:2rpx;">
|
|
|
- <van-icon name="/static/img/address_mana.png" custom-style="width:30rpx;height:30rpx; " />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style="font-weight: bold;display: flex; width: 67%;">
|
|
|
- <view style="width: auto;padding-right:30rpx; font-size: 30rpx;text-overflow: ellipsis; white-space: nowrap;overflow: hidden;color:#1B365D">
|
|
|
- {{item.contactName}}
|
|
|
- </view>
|
|
|
- <view style="width: 50%;">
|
|
|
- <dk-text fontSize="30rpx" fontWeight="nomal" value="{{item.contactPhone}}"></dk-text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style="width: 24%;display: flex;justify-content: right;align-items: right;margin-left: 4rpx;">
|
|
|
- <view style="font-size: 24rpx;width: 70%;text-align: center;">
|
|
|
- <view style="border: solid 2rpx #606EB2;border-radius: 12rpx;" wx:if="{{item.flgDefault}}">
|
|
|
-
|
|
|
- <view style="padding-top: 2rpx;padding-bottom: 2rpx; padding-right: 12rpx;padding-left:12rpx">
|
|
|
- 默认
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style="width: 30%;text-align: center;padding-left:10rpx;" catchtap="edit" data-item="{{item}}">
|
|
|
- <van-checkbox value="{{ item.checked }}" data-index="{{index}}" bind:change="consigneeSelection"></van-checkbox>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style="padding:20rpx;font-weight: bold;" class="table-row-right">
|
|
|
- <dk-text fontSize="28rpx" fontWeight="nomal" value="{{ item.addressFull }}"></dk-text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <scroll-view scroll-y="{{true}}" style="height: 50vh;">
|
|
|
+ <view style="margin:20rpx;">
|
|
|
+ <van-collapse value="{{ activeNames }}" bind:change="onChange">
|
|
|
+ </van-collapse>
|
|
|
+ <view wx:for="{{barList}}" data-item="{{item}}" wx:for-index="index" wx:key="key">
|
|
|
+ <van-cell title="{{item.title}}" custom-class="dk-collapse-item" value="{{item.checked ? '收起' :'展开'}}" value-width="15%" title-width="85%" bind:click="onClickScan" data-index="{{index}}"/>
|
|
|
+ <view class="test" wx:if="{{item.checked }}">
|
|
|
+ <view wx:for="{{item.detail}}" data-item="{{item_}}" wx:for-item="item_" wx:for-index="index_" wx:key="key_">
|
|
|
+ <view style="display: flex;padding:20rpx;font-size: 30rpx;color:#1B365D;">
|
|
|
+ <view>条码:</view>
|
|
|
+ <view>{{item_.barcode}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+ <view style="height: 20rpx;"></view>
|
|
|
</view>
|
|
|
- <view style="height: 100rpx;"></view>
|
|
|
- </scroll-view>
|
|
|
- </view>
|
|
|
-
|
|
|
+ </view>
|
|
|
+ <view style="height: 100rpx;"></view>
|
|
|
+ </scroll-view>
|
|
|
|
|
|
<view style="padding:20rpx;">
|
|
|
- <view style="display: flex;">
|
|
|
- <view style="width: 40%;">
|
|
|
- <van-button disabled="{{disabledFlag}}" plain round custom-class="save-button-class-canl" size="large" color="" custom-style="height:88rpx;" bind:click="contactAdd" type="default">新建
|
|
|
- </van-button>
|
|
|
-
|
|
|
- </view>
|
|
|
- <view style="width: 60%;text-align: right;">
|
|
|
- <van-button round size="large" color="#1B365D" custom-style="height:88rpx;width:380rpx;" type="info" size="large" bindtap="contactUpdate">确定</van-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <van-button plain round size="large" custom-style="height:88rpx; width:100%;color:#1B365D;" bind:click="closeChoosedItemInfo_scan" type="default">取消
|
|
|
+ </van-button>
|
|
|
<view style="height: 20rpx;"></view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
</van-popup>
|
|
|
|
|
|
-<!-- 收货日期 -->
|
|
|
-<van-popup show="{{ deliveryFlag }}" data-key="deliveryTime" position="bottom" bind:close="onConfirmChooseDateClose" bind:click-overlay="onConfirmChooseDateClose">
|
|
|
- <view style="display:flex;justify-content: space-around;height:80rpx;">
|
|
|
- <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" data-key="deliveryTime" catchtap="onConfirmChooseDateClose">取消</view>
|
|
|
- <view style="width:45%;text-align: right;color:#1989fa;line-height:80rpx;" data-key="deliveryTime" catchtap="onConfirmChooseDate">确定</view>
|
|
|
- </view>
|
|
|
- <van-datetime-picker show-toolbar="{{false}}" data-key="deliveryTime" bindonlyinput="changeDate" data-index="0" type="date" loading="{true}" value="{{ deliveryTimeDefaultSearch }}" />
|
|
|
-</van-popup>
|
|
|
-
|
|
|
-<!-- 库区 -->
|
|
|
-<dk-single-dropdown-item model:show="{{warehouseFlag}}" contentID="{{currentChoosedItem.whId}}" orgId="{{orgMain.organizationId}}" id='warehouse' typeName='warehouse' bind:muticommit='mutiSearch' bind:muticlose='muticlose'></dk-single-dropdown-item>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-<dk-single-dropdown-item model:show="{{warehouseTotalFlag}}" contentID="{{entryWh.entryWhId}}" id='warehouseTotal' typeName='warehouseTotal' bind:muticommit='mutiSearch' bind:muticlose='muticlose'></dk-single-dropdown-item>
|
|
|
+<!-- 仓库 -->
|
|
|
+<dk-single-dropdown-item show="{{whFlag}}" content="{{form.whName}}" contentID="{{form.whId}}" id='warehouseTotal' typeName='warehouseTotal'
|
|
|
+ bind:muticommit='mutiSearch' bind:muticlose='muticlose'>
|
|
|
+</dk-single-dropdown-item>
|