| | |
| | | methods: { |
| | | //查询订单 |
| | | getDingdan(){ |
| | | this.$reqGet('getAppOrderList',{orderType:'外购'}) |
| | | this.$reqGet('getAppOrderList',{orderType:'外销'}) |
| | | .then(res => { |
| | | uni.hideLoading() |
| | | if (res.code == 0) { |
| | |
| | | item.text = (item.productNames ? item.productNames : item.productName) + '-' + item.orderCode; |
| | | item.value = item.id; |
| | | return item; |
| | | }) |
| | | }); |
| | | if(this.customerNameList.length === 1){ |
| | | this.deptId = this.customerNameList[0].value; //选择当前 |
| | | if(this.deptId){ |
| | | this.deptChange(this.deptId); |
| | | } |
| | | |
| | | } |
| | | |
| | | console.log(this.customerNameList,'') |
| | | } |
| | | }) |