|
|
@@ -0,0 +1,644 @@
|
|
|
+<!-- 前台导入wxmlUtil.wxs -->
|
|
|
+<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
|
|
|
+<loading wx:if="{{loading}}"></loading>
|
|
|
+<view class="detail-top" data-item="{{item}}">
|
|
|
+ <image class="scan-image" fit="fill" src="{{imageUrl+'/customer_detail_04.png'}}"></image>
|
|
|
+ <view class="detail-top-sup" style="display: flex;">
|
|
|
+ <view>
|
|
|
+ <image class="scan-image-icon" fit="fill" src="{{imageUrl+'/customer_detail_01.png'}}"></image>
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 10rpx;">
|
|
|
+ {{item.supName}}
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="padding-left: 20rpx;">
|
|
|
+ <dk-tag border="1rpx solid #FF7B1A" height="30rpx" color="transparent" textColor="#FF7B1A" radius="10rpx" roundFlag="{{true}}" marginRight="20rpx" value="{{item.supTypeName}}"></dk-tag>
|
|
|
+ </view>
|
|
|
+ <image src="{{imageUrl + 'edit.png'}} " style="width: 60rpx;height: 60rpx;position: absolute; right: 20rpx;" data-item="{{item}}" bind:tap="toDetail" />
|
|
|
+ </view>
|
|
|
+ <view class="detail-top-color" style="display: flex;" wx:if="{{item.contactName || item.contactPhone}}">
|
|
|
+ <view>
|
|
|
+ <image class="scan-image-icon" fit="fill" src="{{imageUrl+'/customer_detail_02.png'}}"></image>
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 10rpx;" catchtap="openTelPhone" data-item="{{item}}">
|
|
|
+ {{ (item.contactName ? item.contactName : '') +(item.contactName && item.contactPhone ? '/':'')+ (item.contactPhone ? item.contactPhone : '') }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="detail-top-color" style="display: flex;" wx:if="{{item.returnAddress}}">
|
|
|
+
|
|
|
+ <view>
|
|
|
+ <image class="scan-image-icon" fit="fill" src="{{imageUrl+'/customer_detail_03.png'}}"></image>
|
|
|
+ </view>
|
|
|
+ <view style="padding-left: 10rpx;z-index: 2;">
|
|
|
+ {{ wxmlUtil.addressToIndexOf(item.returnAddress)}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<view style="border-radius: 16rpx;margin: 20rpx 0;box-shadow: 0px 10px 20px 0px #0000000D;padding:20rpx;">
|
|
|
+ <!--标准版-->
|
|
|
+ <van-grid column-num="2" border="{{false}}" wx:if="{{freeVersionFlag}}">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="number">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.purchaseAmount ? item.purchaseAmount : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 订单({{item.purchaseQuantity}}单)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="number" style="margin-right: 0;">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.inboundReturnAmount ? item.inboundReturnAmount : 0 }}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 退货({{item.inboundReturnQuantity}}单)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="number">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.payment ? item.payment : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 付款总额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number" style=" margin-right: 0;">
|
|
|
+ <view class="order-summary">
|
|
|
+ <!--标准版 余额 = 订单金额+退货金额-付款金额-->
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{((item.purchaseAmount ? item.purchaseAmount : 0) + (item.inboundReturnAmount ? item.inboundReturnAmount : 0) - (item.payment ? item.payment : 0)) > 0 ? ((item.purchaseAmount ? item.purchaseAmount : 0) + (item.inboundReturnAmount ? item.inboundReturnAmount : 0) - (item.payment ? item.payment : 0)) : 0 }}">
|
|
|
+ </dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 余额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-grid>
|
|
|
+ <!--专业版-->
|
|
|
+ <van-grid column-num="3" border="{{false}}" wx:else>
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="number">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.purchaseAmount ? item.purchaseAmount : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 订单({{item.purchaseQuantity}}单)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="number" style="margin-left: 0; margin-right: 0;">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.inboundAmount ? item.inboundAmount : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 已出库({{item.inboundQuantity}}单)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="number" style="margin-right: 0;">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.inboundNotAmount ? item.inboundNotAmount : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 出库中({{item.inboundNotQuantity}}单)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="number">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.payment ? item.payment : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 付款总额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number" style="margin-left: 0; margin-right: 0;">
|
|
|
+ <view class="order-summary">
|
|
|
+ <!--专业版(应收 - 收款) -->
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.payableResidue ? item.payableResidue : 0}}">
|
|
|
+ </dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 余额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number" style="margin-right: 0;">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#1B365D" fontWeight="600" title="" content="{{item.inboundReturnAmount ? item.inboundReturnAmount : 0 }}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="oreder-summary-detail">
|
|
|
+ 退货({{item.inboundReturnQuantity}}单)
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-grid>
|
|
|
+</view>
|
|
|
+
|
|
|
+
|
|
|
+<van-cell border="{{ false }}">
|
|
|
+ <view style=" display:flex;height: 102rpx;width:100%;">
|
|
|
+ <view class="order-button" style="background: linear-gradient(76.18deg, #87B8F1 5.1%, #F0F5FF 88.86%);border: 1px solid #8BBAF2;position: relative;" bindtap="toJump" data-key="sale">
|
|
|
+ <image class="scan-image-icon-3" fit="fill" src="{{imageUrl+'/customer_detail_icon_02.png'}}"></image>
|
|
|
+ <view style="color:#0458C0;font-weight:bold;font-size: 14px;z-index: 2;">
|
|
|
+ 采购订单
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-button" style="background: linear-gradient(76.18deg, #87A5F1 5.1%, #F0F5FF 88.86%);border: 1px solid #8DAAF2;margin-left: 23rpx;position: relative;" bindtap="toJump" data-key="receipt">
|
|
|
+ <image class="scan-image-icon-3" fit="fill" src="{{imageUrl+'/customer_detail_icon_01.png'}}"></image>
|
|
|
+ <view style="color:#253FC9;font-weight:bold;font-size: 14px;z-index: 2;">
|
|
|
+ 付款单
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-button" style="background: linear-gradient(76.18deg, #7BCDEF 5.1%, #F0FDFF 88.86%);border: 1px solid #85D1F1;margin-left: 23rpx;position: relative;" bindtap="toJump" data-key="saleReturn">
|
|
|
+ <image class="scan-image-icon-3" fit="fill" src="{{imageUrl+'/customer_detail_icon_03.png'}}"></image>
|
|
|
+ <view style="color:#0B8DB7;font-weight:bold;font-size: 14px;z-index: 2;">
|
|
|
+ 采购退货
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</van-cell>
|
|
|
+<view style="margin-bottom: 15rpx;"></view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<van-tabs color="#1B365D" active="{{ active }}" bind:change="onChange">
|
|
|
+
|
|
|
+
|
|
|
+ <van-tab title-style="color:#96A7C5;" title="交易记录" name="deal">
|
|
|
+ <view style="margin-top: 20rpx;">
|
|
|
+ <van-tabs type="card" border="{{false}}" active="{{ activeCard }}" bind:change="changeTag" tab-active-class="{{activeCard==0?'van-tab-active-left':(activeCard==2?'van-tab-active-right':'van-tab-active-middle')}}">
|
|
|
+ <van-tab title="采购订单" name='purchase'>
|
|
|
+ <view wx:for="{{purchaseList}}" data-index="{{index}}" data-item="item">
|
|
|
+ <view class="dk-card-outer-class">
|
|
|
+ <view class="dk-card-class">
|
|
|
+ <view style="display:flex;padding: 2vw;">
|
|
|
+ <view style="display: flex;width: 70%;">
|
|
|
+ <image style="width:20px;height:20px;" src="{{imageUrl + 'customer_detail_icon_04.png'}}"> </image>
|
|
|
+ <view style="font-weight:bold;font-size: 13px;white-space:nowrap;align-self:center;margin-left: 20rpx;">{{item.purNo}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="color: #00A7B5;font-size: 13px;align-items:center;display: flex;justify-content: flex-end;width: 30%;" bindtap="toOrderDetail" data-item="{{item}}">
|
|
|
+ <view>查看原单 </view>
|
|
|
+ <van-icon name="arrow" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="height: 1px;background:#E9F0FE;width:90%;margin-left:5vw;" />
|
|
|
+ <view style="display:flex;font-size: 26rpx;">
|
|
|
+ <view style="margin:2vw;margin-left: 32rpx;">门店:{{item.orgName}}</view>
|
|
|
+ <view style="flex:1;text-align:right;margin: 2vw;margin-right: 32rpx;white-space:nowrap;">
|
|
|
+ 业务员:{{item.staffName}}</view>
|
|
|
+ </view>
|
|
|
+ <van-grid column-num="3">
|
|
|
+ <view style="display: flex;background-color:white;">
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#FF7B1A" fontWeight="600" title="" content="{{item.sumAmount}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 采购金额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-text fontSize="17" color="#1B365D" value="{{item.categoryCount}}">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 种类数
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-text fontSize="17" color="#1B365D" value="{{item.sumQuantity}}">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 产品件数
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-grid>
|
|
|
+
|
|
|
+ <view style="height: 1px;background:#E9F0FE;width:90%;margin-left:5vw;" />
|
|
|
+
|
|
|
+ <view style="display: flex; justify-content: space-between;margin: 10rpx 25rpx;font-size: 12px;" catchtap="handleExpandItem" data-type="purchase" data-item="{{item}}" data-index="{{index}}">
|
|
|
+ <view>商品明细</view>
|
|
|
+ <view style="display: flex; align-items: center;">{{!item.showOrderDetailFlag?'展开':'收缩'}}
|
|
|
+ <van-icon style="margin-left: 8rpx;" name="{{!item.showOrderDetailFlag?'arrow-down':'arrow-up'}}" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view wx:if="{{item.showOrderDetailFlag}}" wx:for="{{item.purchaseItemResponseList}}" data-item="{{cItem}}" wx:for-item="cItem" wx:key="childindex" wx:for-index="childindex" border="{{ true }}">
|
|
|
+ <van-card data-item="{{cItem}}" data-index="{{childindex}}">
|
|
|
+ <view slot="thumb">
|
|
|
+ <van-image radius="5px" width="80" height="80" src="{{cItem.imagesUrl }}" />
|
|
|
+ </view>
|
|
|
+ <view slot="title" style="display: flex;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <dk-title titleTag="{{cItem.brandName}}" title="{{cItem.skuModel}}"></dk-title>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="desc">
|
|
|
+ <view style="display:flex;width: 100%;">
|
|
|
+ <view style="width: 80%;">
|
|
|
+ <dk-text fontWeight="nomal" value="{{cItem.skuName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="price">
|
|
|
+ <view style="display: flex;width: 100%;flex-direction: row;">
|
|
|
+ <view style="color: red;font-size: 4vw;width: 100%;">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="16" contentColor="#FF7B1A" fontWeight="600" title="" content="{{cItem.pricePur}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;text-align: right;font-size: 3.5vw;color: #95A8CB;">x <span style="line-height:56rpx;">{{cItem.itemQty}}</span></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-card>
|
|
|
+ <van-divider />
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <van-empty wx:if="{{orderList.length==0}}" description="暂无数据" />
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title="采购入库" name='purchase-out'>
|
|
|
+
|
|
|
+ <view wx:for="{{purchaseOutList}}" data-index="{{index}}" data-item="item">
|
|
|
+
|
|
|
+ <view class="dk-card-outer-class">
|
|
|
+ <view class="dk-card-class">
|
|
|
+ <view style="display:flex;padding: 2vw;">
|
|
|
+ <image style="width:20px;height:20px;" src="{{imageUrl + 'customer_detail_icon_04.png'}}"> </image>
|
|
|
+ <view style="font-weight:bold;font-size: 13px;white-space:nowrap;align-self:center;margin-left: 20rpx;">{{item.intoNo}}
|
|
|
+ </view>
|
|
|
+ <view class="status-class">
|
|
|
+ <view class="status-detail-class"> {{item.intoStatusName}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="height: 1px;background:#E9F0FE;width:90%;margin-left:5vw;" />
|
|
|
+ <view style="display:flex;font-size: 26rpx;">
|
|
|
+ <view style="margin:2vw;margin-left: 32rpx;">门店:{{item.orgName}}</view>
|
|
|
+ <view style="flex:1;text-align:right;margin: 2vw;margin-right: 32rpx;white-space:nowrap;">
|
|
|
+ 业务员:{{item.staffName}}</view>
|
|
|
+ </view>
|
|
|
+ <van-grid column-num="3">
|
|
|
+ <view style="display: flex;background-color:white;">
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#FF7B1A" fontWeight="600" title="" content="{{item.intoAmt}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 货物总额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-text fontSize="17" color="#1B365D" value="{{item.categoryCount}}">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 种类数
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-text fontSize="17" color="#1B365D" value="{{item.intoQty}}">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 产品件数
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-grid>
|
|
|
+
|
|
|
+ <view style="height: 1px;background:#E9F0FE;width:90%;margin-left:5vw;" />
|
|
|
+ <view style="display: flex; justify-content: space-between;margin: 10rpx 25rpx;font-size: 12px;" catchtap="handleExpandItem" data-type="purchase-out" data-item="{{item}}" data-index="{{index}}">
|
|
|
+ <view>商品明细</view>
|
|
|
+ <view style="display: flex; align-items: center;">{{!item.showDetailFlag?'展开':'收缩'}}
|
|
|
+ <van-icon style="margin-left: 8rpx;" name="{{!item.showDetailFlag?'arrow-down':'arrow-up'}}" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view wx:if="{{item.showDetailFlag}}" wx:for="{{item.inboundItemList}}" data-item="{{cItem}}" wx:for-item="cItem" wx:key="childindex" wx:for-index="childindex" border="{{ true }}">
|
|
|
+
|
|
|
+ <van-card data-item="{{cItem}}" data-index="{{childindex}}">
|
|
|
+
|
|
|
+ <view slot="thumb">
|
|
|
+ <van-image radius="5px" width="80" height="80" src="{{cItem.imagesUrl }}" />
|
|
|
+ </view>
|
|
|
+ <view slot="title" style="display: flex;">
|
|
|
+
|
|
|
+ <view style="display: flex;">
|
|
|
+
|
|
|
+ <dk-title titleTag="{{cItem.brandName}}" title="{{cItem.skuModel}}"></dk-title>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="desc">
|
|
|
+ <view style="display:flex;width: 100%;">
|
|
|
+ <view style="width: 80%;">
|
|
|
+ <dk-text fontWeight="nomal" value="{{cItem.skuName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="price-top" style="display: flex;justify-content: space-between;" wx:if="{{cItem.skuId}}">
|
|
|
+ <view>
|
|
|
+ 规格:{{cItem.skuSpec}}
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 色号:{{cItem.nonStdCode}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="price">
|
|
|
+ <view style="display: flex;width: 100%;flex-direction: row;">
|
|
|
+ <view style="color: red;font-size: 14px;width: 100%;">
|
|
|
+ <dk-cell center="left" height="46rpx" spaceWidth="1rpx" left="0" fontSize="16" contentColor="#FF7B1A" fontWeight="600" title="" content="{{cItem.priceInto ? cItem.priceInto : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;text-align: right;font-size: 3.5vw;color: #95A8CB;">x <span style="line-height:56rpx;">{{(cItem.intoQty) + (cItem.packBoxText? ('(' + cItem.packBoxText + ')'):'') }}</span></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-card>
|
|
|
+ <van-divider />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <van-empty wx:if="{{purchaseOutList.length==0}}" description="暂无数据" />
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title="采购退货" name='purchase-return'>
|
|
|
+ <view wx:for="{{purchaseOutReturnList}}" data-index="{{index}}" data-item="item">
|
|
|
+
|
|
|
+ <view class="dk-card-outer-class">
|
|
|
+ <view class="dk-card-class">
|
|
|
+ <view style="display:flex;padding: 2vw;">
|
|
|
+ <view style="display: flex;width: 70%;">
|
|
|
+ <image style="width:20px;height:20px;" src="{{imageUrl + 'customer_detail_icon_04.png'}}"> </image>
|
|
|
+ <view style="font-weight:bold;font-size: 13px;white-space:nowrap;align-self:center;margin-left: 20rpx;">{{item.intoNo}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="color: #00A7B5;font-size: 13px;align-items:center;display: flex;justify-content: flex-end;width: 30%;" bindtap="toOrderOutReturnDetail" data-item="{{item}}">
|
|
|
+ <view>查看原单 </view>
|
|
|
+ <van-icon name="arrow" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="height: 1px;background:#E9F0FE;width:90%;margin-left:5vw;" />
|
|
|
+ <view style="display:flex;font-size: 26rpx;">
|
|
|
+ <view style="margin:2vw;margin-left: 32rpx;">门店:{{item.orgName}}</view>
|
|
|
+ <view style="flex:1;text-align:right;margin: 2vw;margin-right: 32rpx;white-space:nowrap;">
|
|
|
+ 业务员:{{item.staffName}}</view>
|
|
|
+ </view>
|
|
|
+ <van-grid column-num="3">
|
|
|
+ <view style="display: flex;background-color:white;">
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-cell center="center" height="46rpx" spaceWidth="1rpx" left="0" fontSize="17" contentColor="#FF7B1A" fontWeight="600" title="" content="{{item.intoAmt}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 退货金额
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-text fontSize="17" color="#1B365D" value="{{item.inboundItemList.length}}">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 种类数
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="number-out-order">
|
|
|
+ <view class="order-summary">
|
|
|
+ <dk-text fontSize="17" color="#1B365D" value="{{item.intoQty}}">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="out-oreder-detail">
|
|
|
+ 产品件数
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-grid>
|
|
|
+
|
|
|
+ <view style="height: 1px;background:#E9F0FE;width:90%;margin-left:5vw;" />
|
|
|
+ <view style="display: flex; justify-content: space-between;margin: 10rpx 25rpx;font-size: 12px;" catchtap="handleExpandItem" data-type="purchase-return" data-item="{{item}}" data-index="{{index}}">
|
|
|
+ <view>商品明细</view>
|
|
|
+ <view style="display: flex; align-items: center;">{{!item.showReturnDetailFlag?'展开':'收缩'}}
|
|
|
+ <van-icon style="margin-left: 8rpx;" name="{{!item.showReturnDetailFlag?'arrow-down':'arrow-up'}}" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view wx:if="{{item.showReturnDetailFlag}}" wx:for="{{item.inboundItemList}}" data-item="{{cItem}}" wx:for-item="cItem" wx:key="index" wx:for-index="childindex" border="{{ true }}">
|
|
|
+
|
|
|
+ <van-card data-item="{{cItem}}" data-index="{{index}}">
|
|
|
+
|
|
|
+ <view slot="thumb">
|
|
|
+ <van-image radius="5px" width="80" height="80" src="{{cItem.imagesUrl }}" />
|
|
|
+ </view>
|
|
|
+ <view slot="title" style="display: flex;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <dk-title titleTag="{{cItem.brandName}}" title="{{cItem.skuModel}}"></dk-title>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view slot="desc">
|
|
|
+ <view style="display:flex;width: 100%;">
|
|
|
+ <view style="width: 80%;">
|
|
|
+ <dk-text fontWeight="nomal" value="{{cItem.skuName}}"></dk-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="price-top" style="display: flex;justify-content: space-between;" wx:if="{{cItem.skuId}}">
|
|
|
+ <view>
|
|
|
+ 规格:{{cItem.skuSpec}}
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 色号:{{cItem.nonStdCode}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view slot="price">
|
|
|
+ <view style="display: flex;width: 100%;flex-direction: row;">
|
|
|
+ <view style="color: red;font-size: 14px;width: 100%;">
|
|
|
+ <dk-cell center="left" height="46rpx" spaceWidth="1rpx" left="0" fontSize="16" contentColor="#FF7B1A" fontWeight="600" title="" content="{{cItem.intoAmt}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;text-align: right;font-size: 3.5vw;color: #95A8CB;">x <span style="line-height:56rpx;">{{cItem.intoQty + (cItem.packBoxText? ('(' + cItem.packBoxText + ')'):'')}}</span></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </van-card>
|
|
|
+
|
|
|
+ <van-divider />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <van-empty wx:if="{{purchaseOutReturnList.length==0}}" description="暂无数据" />
|
|
|
+ </van-tab>
|
|
|
+ </van-tabs>
|
|
|
+ </view>
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title-style="color:#96A7C5;" title="付款记录" name="receipt">
|
|
|
+ <view style="margin-bottom: 1vw;" wx:for="{{paymentRecordsList}}" wx:for-index="index">
|
|
|
+
|
|
|
+ <view class="table-show">
|
|
|
+ <view class="table-show-detail">
|
|
|
+ <view style="display:flex;background: linear-gradient(95.33deg, #ADC6FF -2.27%, #F0F5FF 60.66%),radial-gradient(35.34% 100.27% at 10.78% 50%, rgba(159, 197, 255, 0.6) 0%, rgba(255, 255, 255, 0.426) 56.69%);border-radius: 15rpx 15rpx 0rpx 0rpx;padding: 20rpx;">
|
|
|
+ <view style="width: 10%;display: flex;align-items: center;">
|
|
|
+ <image style="width:20px;height:20px;" src="{{imageUrl + 'customer_detail_icon_04.png'}}"> </image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="display: flex;align-items: center;width: 60%;">
|
|
|
+ <view style="font-weight:bold;font-size: 26rpx;">{{item.rpNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view style="color: #00A7B5;font-size: 13px;align-items:center;display: flex;justify-content: flex-end;width: 30%;" bindtap="toOriginalCollection" data-item="{{item}}">
|
|
|
+ <view>查看原单 </view>
|
|
|
+ <van-icon name="arrow" />
|
|
|
+ </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="门店/业务员"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.orgName}} | {{item.staffName}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="table-row">
|
|
|
+ <view class="table-content-row" style="width:100%;">
|
|
|
+ <view style="display: flex;justify-content:space-between;">
|
|
|
+ <view style="display: flex; width: 50%;">
|
|
|
+ <view class="table-content-row-font">
|
|
|
+ <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="账户名称">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.macNames}}
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="text-align:right;width: 50%;">
|
|
|
+
|
|
|
+ <dk-cell height="46rpx" contentRight="{{true}}" spaceWidth="15rpx" fontSize="17" contentColor="#FF7B1A" fontWeight="" title=" " content="{{item.amtPay ? item.amtPay : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <van-empty wx:if="{{paymentRecordsList.length==0}}" description="暂无数据" />
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title-style="color:#96A7C5;" title="退款记录" name="payment">
|
|
|
+ <view style="margin-bottom: 1vw;" wx:for="{{refundRecordsList}}" wx:for-index="index">
|
|
|
+ <view class="table-show">
|
|
|
+ <view class="table-show-detail">
|
|
|
+ <view style="display:flex;background: linear-gradient(95.33deg, #ADC6FF -2.27%, #F0F5FF 60.66%),radial-gradient(35.34% 100.27% at 10.78% 50%, rgba(159, 197, 255, 0.6) 0%, rgba(255, 255, 255, 0.426) 56.69%);border-radius: 15rpx 15rpx 0rpx 0rpx;padding: 20rpx;">
|
|
|
+ <view style="width: 10%;display: flex;align-items: center;">
|
|
|
+ <image style="width:20px;height:20px;" src="{{imageUrl + 'customer_detail_icon_04.png'}}"> </image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="display: flex;align-items: center;width: 60%;">
|
|
|
+ <view style="font-weight:bold;font-size: 26rpx;">{{item.rpNo}}</view>
|
|
|
+ </view>
|
|
|
+ <view style="color: #00A7B5;font-size: 13px;align-items:center;display: flex;justify-content: flex-end;width: 30%;" bindtap="toOriginalCollection" data-item="{{item}}">
|
|
|
+ <view>查看原单 </view>
|
|
|
+ <van-icon name="arrow" />
|
|
|
+ </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="门店/业务员"></dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.orgName}} | {{item.staffName}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="table-row">
|
|
|
+ <view class="table-content-row" style="width:100%;">
|
|
|
+ <view style="display: flex;justify-content:space-between;">
|
|
|
+ <view style="display: flex; width: 50%;">
|
|
|
+ <view class="table-content-row-font">
|
|
|
+ <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="收款类型">
|
|
|
+ </dk-text>
|
|
|
+ </view>
|
|
|
+ <view class="table-content-class">
|
|
|
+ {{item.rpTypeName}}
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="text-align:right;width: 50%;">
|
|
|
+ <!-- <dk-text fontSize="17" color="#FF7B1A" value=" ¥{{item.sumAmount}}">
|
|
|
+ </dk-text> -->
|
|
|
+ <dk-cell height="46rpx" contentRight="{{true}}" spaceWidth="15rpx" fontSize="17" contentColor="#FF7B1A" fontWeight="" title=" " content="{{item.sumAmtPay ? item.sumAmtPay : 0}}"></dk-cell>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <van-empty wx:if="{{refundRecordsList.length==0}}" description="暂无数据" />
|
|
|
+ </van-tab>
|
|
|
+ <van-tab title-style="color:#96A7C5;" title="详细信息" name="customer">
|
|
|
+
|
|
|
+ <view class="table-show">
|
|
|
+ <view class="table-show-detail" style="padding: 5rpx;">
|
|
|
+
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="供应商名称" value=" {{item.supName ? item.supName : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="供应商类型" value="{{item.supTypeName ? item.supTypeName : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="供应商品牌" value="{{item.brandNames ? item.brandNames : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="联系人" value=" {{item.contactName ? item.contactName : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="联系电话" value=" {{item.contactPhone ? item.contactPhone : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="供应商地址" value=" {{item.returnAddress ? item.returnAddress : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="采购人员" value=" {{item.staffName ? item.staffName : ''}}" title-class="dk-cell-title" />
|
|
|
+ <van-cell border="{{ false }}" title-width="180rpx" title="采购部门" value=" {{item.orgName ? item.orgName : ''}}" title-class="dk-cell-title" />
|
|
|
+ <view style="margin-bottom: 35rpx;"></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </van-tab>
|
|
|
+</van-tabs>
|