|  | @@ -18,8 +18,7 @@ Page({
 | 
	
		
			
				|  |  |              label: "订单进度",
 | 
	
		
			
				|  |  |              icon: "icon-tabcaozuojilu1",
 | 
	
		
			
				|  |  |              model: "#Progress"
 | 
	
		
			
				|  |  | -        }],
 | 
	
		
			
				|  |  | -        saletypeList: null,
 | 
	
		
			
				|  |  | +        }]
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      onLoad(options) {
 | 
	
		
			
				|  |  |          this.setData({
 | 
	
	
		
			
				|  | @@ -28,38 +27,6 @@ Page({
 | 
	
		
			
				|  |  |              userrole: wx.getStorageSync('userrole')
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          this.getDetail(true);
 | 
	
		
			
				|  |  | -        //销售分类
 | 
	
		
			
				|  |  | -        _Http.basic({
 | 
	
		
			
				|  |  | -            "classname": "sysmanage.develop.optiontype.optiontype",
 | 
	
		
			
				|  |  | -            "method": "optiontypeselect",
 | 
	
		
			
				|  |  | -            "content": {
 | 
	
		
			
				|  |  | -                pageSize: "999",
 | 
	
		
			
				|  |  | -                "typename": "saletype",
 | 
	
		
			
				|  |  | -                "parameter": {
 | 
	
		
			
				|  |  | -                    "siteid": wx.getStorageSync('siteP').siteid
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }, false).then(res => {
 | 
	
		
			
				|  |  | -            console.log("销售分类", res)
 | 
	
		
			
				|  |  | -            if (res.msg != '成功') return wx.showToast({
 | 
	
		
			
				|  |  | -                title: res.msg,
 | 
	
		
			
				|  |  | -                icon: "none"
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | -            this.setData({
 | 
	
		
			
				|  |  | -                saletypeList: res.data.map(v => {
 | 
	
		
			
				|  |  | -                    v.value = v.remarks ? v.value + (v.remarks) : v.value
 | 
	
		
			
				|  |  | -                    return v
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    /* 设置回签单 */
 | 
	
		
			
				|  |  | -    changeSignbackstatus(e) {
 | 
	
		
			
				|  |  | -        if (this.isEdit()) return this.setData({
 | 
	
		
			
				|  |  | -            "detail.signbackstatus": this.data.detail.signbackstatus
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        this.data.detail.signbackstatus = e.detail;
 | 
	
		
			
				|  |  | -        this.changeDetail();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /* 获取详情 */
 | 
	
		
			
				|  |  |      getDetail(init = false, show = true) {
 | 
	
	
		
			
				|  | @@ -121,20 +88,6 @@ Page({
 | 
	
		
			
				|  |  |              logistics
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    /* 选择销售分类 */
 | 
	
		
			
				|  |  | -    selectSaletype(e) {
 | 
	
		
			
				|  |  | -        if (this.isEdit()) return;
 | 
	
		
			
				|  |  | -        if (this.data.detail.type == '项目订单') return;
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    /* 设置销售分类 */
 | 
	
		
			
				|  |  | -    setSaletype(e) {
 | 
	
		
			
				|  |  | -        let value = this.data.saletypeList[e.detail.value].value;
 | 
	
		
			
				|  |  | -        if (value == this.data.detail.saletype) return;
 | 
	
		
			
				|  |  | -        this.setData({
 | 
	
		
			
				|  |  | -            "detail.saletype": value
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        this.changeDetail();
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  |      /* 选择结算人 */
 | 
	
		
			
				|  |  |      selectAgent() {
 | 
	
		
			
				|  |  |          if (this.isEdit()) return;
 | 
	
	
		
			
				|  | @@ -354,8 +307,6 @@ Page({
 | 
	
		
			
				|  |  |                  "tradefield": data.tradefield, //必选
 | 
	
		
			
				|  |  |                  "pay_enterpriseid": data.pay_enterpriseid, //结算单位
 | 
	
		
			
				|  |  |                  "rebate_userate": data.accountclass.rebate_userate, //返利金使用比例
 | 
	
		
			
				|  |  | -                signbackstatus: data.signbackstatus,
 | 
	
		
			
				|  |  | -                saletype: data.saletype
 | 
	
		
			
				|  |  |              };
 | 
	
		
			
				|  |  |          if (content.type = '项目订单') {
 | 
	
		
			
				|  |  |              content.sa_contractid = data.sa_contractid,
 |