Browse Source

订货单

zhaoxiaohai 2 years ago
parent
commit
388b47853f
2 changed files with 7 additions and 1 deletions
  1. 6 1
      packageA/orderForm/detail.js
  2. 1 0
      packageA/orderForm/detail.wxml

+ 6 - 1
packageA/orderForm/detail.js

@@ -403,9 +403,14 @@ Page({
                 }).then(s => {
                     console.log("确认交期", s)
                     wx.showToast({
-                        title: s.msg != '成功' ? s.msg : '提交成功',
+                        title: s.msg != '成功' ? s.msg : '确认成功',
                         icon: "none"
                     });
+                    if (s.msg == '成功') {
+                        that.setData({
+                            "detail.status": "交期确认"
+                        })
+                    }
                 })
             }
         })

+ 1 - 0
packageA/orderForm/detail.wxml

@@ -10,6 +10,7 @@
         <text wx:if="{{detail.tradefield}}" style="background-color: #4BD863;">{{detail.tradefield}}</text>
         <!-- <text wx:if="{{detail.status=='新建' && detail.type=='项目订单'}}" style="background-color: #4BD863;" bindtap="setBraned">设置品牌/领域</text> -->
     </view>
+    <view class="exp" wx:if="{{detail.type=='项目订单'}}">关联项目:{{detail.projectname || '暂无'}}</view>
     <view class="exp">订单类型:{{detail.type}}</view>
     <view class="exp">订单状态:{{detail.status}}</view>
     <view class="exp">单据日期:{{detail.submitdate || '暂无'}}</view>