浏览代码

销售订单

xiaohaizhao 2 年之前
父节点
当前提交
d3a34b53d7
共有 4 个文件被更改,包括 10 次插入80 次删除
  1. 0 56
      packageA/orderForm/detail.js
  2. 0 13
      packageA/orderForm/detail.wxml
  3. 7 7
      packageA/orderForm/index.js
  4. 3 4
      packageA/orderForm/index.scss

+ 0 - 56
packageA/orderForm/detail.js

@@ -149,62 +149,6 @@ Page({
             }
         })
     },
-    /* 选择收货人 */
-    selectConsignee() {
-        if (this.isEdit()) return;
-        wx.navigateTo({
-            url: `/select/address/index?params=${JSON.stringify({ 
-				"id":20221009155803,
-				"content": {
-					nocache:true,
-					sys_enterpriseid:this.data.detail.sys_enterpriseid,
-					"pageNumber": 1, 
-					"pageTotal": 1, 
-					"pageSize": 20,
-					"where": {
-						"condition": "",
-						workaddress:1
-						}, 
-				}
-			 })}&radio=true`,
-        });
-        getApp().globalData.handleSelect = this.setConsignee.bind(this);
-    },
-    /* 设置收货人 */
-    setConsignee({
-        item
-    }) {
-        let that = this;
-        console.log("设置收货人", item)
-        wx.showModal({
-            title: '提示',
-            content: `是否确认设置"${item.name}"为收货人?`,
-            complete: (res) => {
-                if (res.confirm) {
-                    let rec_contactsid = that.data.detail.rec_contactsid;
-                    that.setData({
-                        "detail.rec_contactsid": item.contactsid
-                    });
-                    that.changeDetail().then(s => {
-                        if (s.msg == '成功') {
-                            wx.showToast({
-                                title: '设置成功',
-                                icon: "none"
-                            });
-                            setTimeout(() => {
-                                wx.navigateBack();
-                                that.getDetail();
-                            }, 500)
-                        } else {
-                            that.setData({
-                                "detail.rec_contactsid": rec_contactsid
-                            });
-                        }
-                    })
-                }
-            }
-        })
-    },
     /* 选择财务信息 */
     selectFinance() {
         if (this.isEdit()) return;

+ 0 - 13
packageA/orderForm/detail.wxml

@@ -19,19 +19,6 @@
 	<van-button custom-class='copy' bindtap="copyItem">一键复制订单</van-button>
 </view>
 
-<navigator url="#" class="box location" bindtap="selectConsignee">
-	<van-icon custom-class='icon' name="location" />
-	<view class="content">
-		<view class="name">
-			{{detail.contacts.name || '暂无'}}<text>{{detail.contacts.phonenumber}}</text>
-		</view>
-		<view class="address">
-			{{detail.contacts.address}}
-		</view>
-	</view>
-	<view class="iconfont icon-dibu-bianji" />
-</navigator>
-
 <navigator url="#" class="box location" bindtap="selectFinance">
 	<view class="content">
 		<view class="name">

+ 7 - 7
packageA/orderForm/index.js

@@ -7,13 +7,13 @@ Page({
     hidePrice: wx.getStorageSync('hidePrice'),
     CustomBar: getApp().globalData.CustomBar,
     filtratelist: [{
-      label: "品牌",
+      label: "订单类型",
       index: null,
-      showName: "brandname", //显示字段
-      valueKey: "brandname", //返回Key
-      selectKey: "brandname", //传参 代表选着字段 不传参返回整个选择对象
+      showName: "value", //显示字段
+      valueKey: "type", //返回Key
+      selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
       value: "", //选中值
-      list: []
+      list: [{value:"标准订单"},{value:"促销订单"},{value:"特殊订单"}]
     }, {
       label: "领域",
       index: null,
@@ -39,7 +39,7 @@ Page({
       }
     };
     this.getList()
-    this.getBrand()
+    // this.getBrand()
     this.getDomain()
   },
   /* 获取产品 */
@@ -176,7 +176,7 @@ Page({
   handleFiltrate({
     detail
   }) {
-    content.where.brandname = detail.brandname;
+    content.where.type = detail.type;
     content.where.tradefield = detail.tradefield;
     downCount = setTimeout(() => {
       this.getList(true);

+ 3 - 4
packageA/orderForm/index.scss

@@ -83,7 +83,6 @@ page {
 		}
 	}
 }
-
 .DrawerPage {
 	position: fixed;
 	width: 100vw;
@@ -95,14 +94,14 @@ page {
 
 .DrawerPage.show {
 	transform: scale(0.9, 0.9);
-	left: 85vw;
+	left: 50vw;
 	box-shadow: 0 0 60rpx rgba(0, 0, 0, 0.2);
 	transform-origin: 0;
 }
 
 .DrawerWindow {
 	position: absolute;
-	width: 85vw;
+	width: 50vw;
 	height: 100vh;
 	left: 0;
 	top: 0;
@@ -140,7 +139,7 @@ page {
 .DrawerClose.show {
 	opacity: 1;
 	pointer-events: all;
-	width: 15vw;
+	width: 50vw;
 	color: #fff;
 }