xiaohaizhao 2 anni fa
parent
commit
6c2e37dd56

+ 0 - 27
packageA/orderForm/detail.js

@@ -476,33 +476,6 @@ Page({
             }
         })
     },
-    /* 确认订单交期 */
-    notarize() {
-        let that = this;
-        wx.showModal({
-            title: '提示',
-            content: '是否确认交期?',
-            complete: (res) => {
-                if (res.confirm) _Http.basic({
-                    "id": 20221230094802,
-                    "content": {
-                        sa_orderid: that.data.sa_orderid
-                    },
-                }).then(s => {
-                    console.log("确认交期", s)
-                    wx.showToast({
-                        title: s.msg != '成功' ? s.msg : '确认成功',
-                        icon: "none"
-                    });
-                    if (s.msg == '成功') {
-                        that.setData({
-                            "detail.status": "交期确认"
-                        })
-                    }
-                })
-            }
-        })
-    },
     /* 判断是否可以编辑 */
     isEdit() {
         if (this.data.detail.status != '新建') wx.showToast({

+ 0 - 1
packageA/orderForm/detail.wxml

@@ -108,6 +108,5 @@
 	<view class="but-box">
 		<van-button custom-class='but delete' wx:if="{{detail.status=='新建'&&detail.type!='特殊订单'}}" bind:click="deleteItem">删除订单</van-button>
 		<van-button custom-class='but' wx:if="{{detail.status=='新建'}}" bind:click="submit">提交订单</van-button>
-		<van-button custom-class='but' wx:if="{{detail.status=='交期待确认'}}" bind:click="notarize">确认交期</van-button>
 	</view>
 </view>

+ 0 - 29
packageA/orderForm/modules/product/index.js

@@ -74,35 +74,6 @@ Component({
                 })
             })
         },
-        /* 统一交期 */
-        dateChange(e) {
-            let that = this;
-            wx.showModal({
-                title: '提示',
-                content: `是否确定将当前产品列表交期统一设置为:${e.detail.value}`,
-                complete: (res) => {
-                    if (res.confirm) _Http.basic({
-                        "id": 20230104143802,
-                        "content": {
-                            sa_orderid,
-                            "needdate": e.detail.value
-                        }
-                    }).then(res => {
-                        console.log('统一设置交期', res)
-                        wx.showToast({
-                            title: res.msg == '成功' ? '设置成功' : res.msg,
-                            icon: "none"
-                        })
-                        if (res.msg == '成功') that.setData({
-                            list: that.data.list.map(v => {
-                                v.needdate = e.detail.value;
-                                return v
-                            })
-                        })
-                    })
-                }
-            })
-        },
         /* 修改 */
         changeProduct({
             detail

+ 0 - 5
packageA/orderForm/modules/product/index.wxml

@@ -1,11 +1,6 @@
 <view class="head">
   <view class="count">产品明细</view>
   <view class="expand">
-    <picker wx:if="{{!disabled && list.length!=0}}" mode="date" bindchange='dateChange'>
-      <navigator url="#" class="but">
-        <van-icon name="clock-o" />
-      </navigator>
-    </picker>
     <navigator wx:if="{{!disabled}}" url="#" class="but" bindtap="addProduct">
       <van-icon name="plus" />
     </navigator>