优化时间类型筛选

This commit is contained in:
xuxingjun
2024-11-18 13:42:27 +08:00
parent d7ddab1cdd
commit 892ff39f14

View File

@@ -606,19 +606,35 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
queryOutOrderList({ let data = {}
outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance if(this.dateFlag == 'all') {
startDate: this.dialogForm.startDate, // "2024-09-01", data = {
endDate: this.dialogForm.endDate, //"2024-09-30", outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance
// dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all // dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all
dateFlag: '', // 暂不使用改参数,默认给空 dateFlag: '', // 暂不使用改参数,默认给空
// appntDate: this.postDate, // appntDate: this.postDate,
distCode: this.OrgLv2Code, distCode: this.OrgLv2Code,
depCode: this.OrgLv3Code, depCode: this.OrgLv3Code,
orgCode: this.OrgLv4Code, orgCode: this.OrgLv4Code,
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: this.pageSize pageSize: this.pageSize
}).then((res) => { }
} else {
data = {
outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance
startDate: this.dialogForm.startDate, // "2024-09-01",
endDate: this.dialogForm.endDate, //"2024-09-30",
// dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all
dateFlag: '', // 暂不使用改参数,默认给空
// appntDate: this.postDate,
distCode: this.OrgLv2Code,
depCode: this.OrgLv3Code,
orgCode: this.OrgLv4Code,
pageNum: this.pageNum,
pageSize: this.pageSize
}
}
queryOutOrderList(data).then((res) => {
this.$toast.clear() this.$toast.clear()
if (res.result == 0) { if (res.result == 0) {
if (res.content) { if (res.content) {