瀏覽代碼

采购跟踪

王英杰 1 年之前
父節點
當前提交
598fc3f739

+ 10 - 3
package-base-select/pages/select-goods/select-goods.js

@@ -548,9 +548,13 @@ Page({
     let amount_index = contentList.findIndex(it => it.code == 'amount');
     let count_index = contentList.findIndex(it => it.code == 'count');
     choosedGoodsList.forEach(element => {
-      if(this.data.billType == 'purReturn'){
+      if(this.data.billType == 'purReturn'||this.data.billType == 'purInto'){
         element.sumPrice = Number(element.itemQty) * Number(element.priceInto)
         sum = sum + (Number(element.itemQty) * Number(element.priceInto))
+      }else if (this.data.billType == 'pur'){
+        element.sumPrice = Number(element.itemQty) * Number(element.pricePur)
+        sum = sum + (Number(element.itemQty) * Number(element.pricePur))
+        
       }else{
         element.sumPrice = Number(element.itemQty) * Number(element.priceSale)
         sum = sum + (Number(element.itemQty) * Number(element.priceSale))
@@ -601,9 +605,12 @@ Page({
       this.data.billType == Constants.billType.inventory){ //销售的时候 改价格pop
       popChangePrice[popChangePriceindex].code = 'priceOut'
     }
-    if(this.data.billType == Constants.billType.purReturn){
+    if(this.data.billType == Constants.billType.purReturn||this.data.billType == Constants.billType.purInto){
       popChangePrice[popChangePriceindex].code = 'priceInto'
-    }
+    } 
+    if(this.data.billType == Constants.billType.pur){
+      popChangePrice[popChangePriceindex].code = 'pricePur'
+    } 
     this.setData({
       popChangePrice:popChangePrice,
       showChangePrice: true,

+ 1 - 0
package-purchase/pages/pur-track-report/detail/detail.js

@@ -7,6 +7,7 @@ Page({
      * 页面的初始数据
      */
     data: {
+      gradeCode: app.globalData.company.gradeCode,
       stepList:[
         {
           name:"下单时间",

+ 15 - 9
package-purchase/pages/pur-track-report/detail/detail.wxml

@@ -34,15 +34,12 @@
         <view style="z-index: 10;padding-top: 40rpx;font-size: 24rpx;font-weight: 400;display: flex;">
        <view  >   {{$t['makingTime']}}:{{item.makeTime ? wxmlUtil.format(item.makeTime) : '' }}</view>
        <view  style="margin-left: 2vw;">        {{$t['receivingDate']}}:{{ item.pickupDate ? wxmlUtil.format(item.pickupDate) : '' }}</view>
-        </view>
-     
-      </view>
-
-    </view>
-
+        </view> 
+      </view> 
+    </view> 
 
   </view> 
-  <view style="display: flex;padding:10rpx;  margin: 10px 22rpx 10px 22rpx;margin-top: 10px;border-radius: 15rpx;">
+  <view wx:if="{{gradeCode!='STD'}}" style="display: flex;padding:10rpx;  margin: 10px 22rpx 10px 22rpx;margin-top: 10px;border-radius: 15rpx;">
     <view style="background-color:#F4F9FF;width:25%;padding:10rpx;border-radius: 16rpx;">
       <view style="font-size:13px;text-align: center;margin-top: 10rpx;">订单数量</view>
       <dk-cell left="0rpx" center="center" fontSize="13" contentFontSize="18" contentColor="#1B365D" spaceWidth="0" contentFontWeight="700" amount="{{false}}" content="{{item.sumQuantity}}"></dk-cell>
@@ -60,10 +57,19 @@
       <dk-cell left="0rpx" center="center" fontSize="15" contentFontSize="18" contentColor="#1B365D" spaceWidth="0" contentFontWeight="700" amount="{{true}}" content="{{0}}"></dk-cell>
     </view>
   </view>
- 
+  <view wx:if="{{gradeCode =='STD'}}" style="display: flex;padding:10rpx;  margin: 10px 22rpx 10px 22rpx;margin-top: 10px;border-radius: 15rpx;">
+    <view style="background-color:#F4F9FF;width:49%;padding:10rpx;border-radius: 16rpx;margin: 1%;">
+      <view style="font-size:13px;text-align: center;margin-top: 10rpx;">订单数量</view>
+      <dk-cell left="0rpx" center="center" fontSize="13" contentFontSize="18" contentColor="#1B365D" spaceWidth="0" contentFontWeight="700" amount="{{false}}" content="{{item.sumQuantity}}"></dk-cell>
+    </view> 
+    <view style="background-color:#F4F9FF;width:49%;padding:10rpx;border-radius: 16rpx; margin: 1%;">
+      <view style="font-size:13px;text-align: center;margin-top: 10rpx;">退货数量</view>
+      <dk-cell left="0rpx" center="center" fontSize="13" contentFontSize="18" contentColor="#1B365D" spaceWidth="0" contentFontWeight="700" amount="{{false}}" content="{{item.returnQty}}"></dk-cell>
+    </view> 
+  </view>
   <dk-goos-list type="sale" list="{{purList}}" title="商品明细" titleCol="skuName" titleTagCol="brandName" descCol="skuCode" priceCol="pricePur" sumAmountCol="sumAmount" sumQuantity="sumQuantity" quantityCol="itemQty"></dk-goos-list>
 
    
-  <dk-step stepList="{{stepList}}" > </dk-step> 
+  <dk-step wx:if="{{gradeCode!='STD'}}" stepList="{{stepList}}" > </dk-step> 
 
 </view>