|
@ -17,6 +17,7 @@ Page({ |
|
|
* 页面的初始数据 |
|
|
* 页面的初始数据 |
|
|
*/ |
|
|
*/ |
|
|
data: { |
|
|
data: { |
|
|
|
|
|
inspectIf:false, |
|
|
orderDate:"", |
|
|
orderDate:"", |
|
|
selectedEnterpriseNames:[], |
|
|
selectedEnterpriseNames:[], |
|
|
EnterpriseName:[], |
|
|
EnterpriseName:[], |
|
@ -112,7 +113,7 @@ Page({ |
|
|
// showqiye:true
|
|
|
// showqiye:true
|
|
|
}) |
|
|
}) |
|
|
console.log( this.data.companyList); |
|
|
console.log( this.data.companyList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
@ -121,6 +122,7 @@ Page({ |
|
|
// // 调用后台接口或者模拟数据获取搜索结果
|
|
|
// // 调用后台接口或者模拟数据获取搜索结果
|
|
|
// // this.pickerChange2(e);
|
|
|
// // this.pickerChange2(e);
|
|
|
// }, 300); // 设置延迟时间,比如300毫秒
|
|
|
// }, 300); // 设置延迟时间,比如300毫秒
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onInputChange(e){ |
|
|
onInputChange(e){ |
|
|
const index = e.currentTarget.dataset.index; |
|
|
const index = e.currentTarget.dataset.index; |
|
@ -452,14 +454,18 @@ Page({ |
|
|
const targetMonth = parseInt(item.orderDate.substring(5, 7), 10); |
|
|
const targetMonth = parseInt(item.orderDate.substring(5, 7), 10); |
|
|
console.log(currentMonth,targetMonth); |
|
|
console.log(currentMonth,targetMonth); |
|
|
if (targetMonth === currentMonth) { |
|
|
if (targetMonth === currentMonth) { |
|
|
console.log("turedv"); |
|
|
this.setData({ |
|
|
item.inspectIf=true |
|
|
inspectIf:true |
|
|
|
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
item.inspectIf=false |
|
|
this.setData({ |
|
|
|
|
|
inspectIf:false |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
console.log(this.data.companyList); |
|
|
console.log(this.data.companyList); |
|
|
|
|
|
|
|
|
// let names = []
|
|
|
// let names = []
|
|
|
// res.data.list.forEach(item=>{
|
|
|
// res.data.list.forEach(item=>{
|
|
|
// names.push(item.name)
|
|
|
// names.push(item.name)
|
|
@ -482,6 +488,7 @@ Page({ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.showRecordData() |
|
|
this.showRecordData() |
|
|
|
|
|
console.log(this.data.inspectIf); |
|
|
}, |
|
|
}, |
|
|
confirmSelection() { |
|
|
confirmSelection() { |
|
|
// 点击确定按钮后触发,处理选中的复选框项
|
|
|
// 点击确定按钮后触发,处理选中的复选框项
|
|
|