|
@@ -94,8 +94,8 @@
|
|
|
index: 0,
|
|
|
index2: 0,
|
|
|
isToday: true,
|
|
|
- statusId: 0,
|
|
|
- deviceId: '',
|
|
|
+ //statusId: '0',
|
|
|
+ //deviceId: '',
|
|
|
deviceList: [{
|
|
|
id: '',
|
|
|
name: '全部'
|
|
@@ -103,9 +103,9 @@
|
|
|
orderCount: 2,
|
|
|
orderSum: 0.0,
|
|
|
array: [{
|
|
|
- id: 0,
|
|
|
+ id: "",
|
|
|
name: '全部'
|
|
|
- },{id:1, name: '未支付'},{id:2, name: '已支付'},{id:3, name:'已取消'},{id:4, name:'生产完成'},{id:5, name: '异常'},{id:6, name: '转入退款'},],
|
|
|
+ },{id:"0", name: '未支付'},{id:"1", name: '已支付'},{id:"2", name:'已取消'},{id:"3", name:'生产完成'},{id:"4", name: '异常'},{id:"5", name: '转入退款'},],
|
|
|
orderList: [
|
|
|
/*{
|
|
|
name: '美式咖啡',
|
|
@@ -147,7 +147,7 @@
|
|
|
methods: {
|
|
|
bindPickerChange: function(e) {
|
|
|
this.index = e.detail.value
|
|
|
- this.statusId = this.array[this.index].id
|
|
|
+ //this.statusId = this.array[this.index].id
|
|
|
this.orderList = []
|
|
|
this.queryParams.current = 1
|
|
|
let pages = getCurrentPages();
|
|
@@ -157,7 +157,7 @@
|
|
|
},
|
|
|
bindPickerChange2: function(e) {
|
|
|
this.index2 = e.detail.value;
|
|
|
- this.deviceId = this.deviceList[this.index2].id
|
|
|
+ //this.deviceId = this.deviceList[this.index2].id
|
|
|
this.orderList = []
|
|
|
this.queryParams.current = 1
|
|
|
//this.queryParams.model.orderEquId = this.deviceId
|
|
@@ -224,18 +224,19 @@
|
|
|
if(type=="1"){
|
|
|
that.range=[util.getNowDate(0), util.getNowDate(1)];
|
|
|
that.isToday = true
|
|
|
- }else{
|
|
|
+ }else{
|
|
|
+ if(type=="2"){
|
|
|
+ that.index = 5
|
|
|
+ }
|
|
|
that.isToday = false
|
|
|
}
|
|
|
- if (that.deviceId) {
|
|
|
- that.queryParams.model.orderEquId = that.deviceId
|
|
|
+ if (that.index2) {
|
|
|
+ that.queryParams.model.orderEquId = that.deviceList[that.index2].id
|
|
|
}
|
|
|
- if(that.statusId>0){
|
|
|
- that.queryParams.model.orderStatus = that.statusId - 1
|
|
|
- that.index = that.statusId
|
|
|
- }else if(type=="2"){
|
|
|
- that.queryParams.model.orderStatus = '4'
|
|
|
- that.index = 5
|
|
|
+ if(that.index){
|
|
|
+ that.queryParams.model.orderStatus = that.array[that.index].id
|
|
|
+ }else if(that.index==''){
|
|
|
+ that.queryParams.model.orderStatus =''
|
|
|
}
|
|
|
console.log(that.range)
|
|
|
if (that.range.length > 0) {
|