From 56d4919ab97f46ec8f2a9c443efee04f96018900 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Mon, 30 Dec 2024 11:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=9F=A5=E8=AF=A2=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E5=B7=A5=E7=A8=8B=E6=A0=91=E7=8A=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/stquery/deviceOutBound.vue | 71 ++++++++++++++----- .../material/stquery/deviceUsingHistory.vue | 71 ++++++++++++++----- .../material/stquery/deviceUsingRecord.vue | 71 ++++++++++++++----- 3 files changed, 162 insertions(+), 51 deletions(-) diff --git a/src/views/material/stquery/deviceOutBound.vue b/src/views/material/stquery/deviceOutBound.vue index 0d0078e3..97ba98eb 100644 --- a/src/views/material/stquery/deviceOutBound.vue +++ b/src/views/material/stquery/deviceOutBound.vue @@ -21,7 +21,14 @@ /> --> - + - + 0){ - this.queryParams.unitId=this.unitId[this.unitId.length - 1] - }else if(val&&val.length==0){ - this.queryParams.unitId="" - } - this.GetProData() + // if(val&&val.length>0){ + // this.queryParams.unitId=this.unitId[this.unitId.length - 1] + // }else if(val&&val.length==0){ + // this.queryParams.unitId="" + // } + // this.GetProData() + setTimeout(()=>{ + this.GetProData() + },500) }, // 获取 工程名称 列表数据 async GetProData() { const params = { unitId: this.queryParams.unitId} const res = await getProjectList(params) this.proList = res.data + this.queryParams.proId=null }, proChange(val){ - if(val&&val.length>0){ - this.queryParams.proId=this.projectId[this.projectId.length - 1] - }else if(val&&val.length==0){ - this.queryParams.proId="" - } - this.GetUnitData() + // if(val&&val.length>0){ + // this.queryParams.proId=this.projectId[this.projectId.length - 1] + // }else if(val&&val.length==0){ + // this.queryParams.proId="" + // } + // this.GetUnitData() + setTimeout(()=>{ + this.GetUnitData() + },500) }, //跳转领料 jumpLease(code){ diff --git a/src/views/material/stquery/deviceUsingHistory.vue b/src/views/material/stquery/deviceUsingHistory.vue index 35cc71a6..f973e1c6 100644 --- a/src/views/material/stquery/deviceUsingHistory.vue +++ b/src/views/material/stquery/deviceUsingHistory.vue @@ -21,7 +21,14 @@ /> - + - + 0){ - this.queryParams.unitId=this.unitId[this.unitId.length - 1] - }else if(val&&val.length==0){ - this.queryParams.unitId="" - } - this.GetProData() + // if(val&&val.length>0){ + // this.queryParams.unitId=this.unitId[this.unitId.length - 1] + // }else if(val&&val.length==0){ + // this.queryParams.unitId="" + // } + // this.GetProData() + setTimeout(()=>{ + this.GetProData() + },500) }, // 获取 工程名称 列表数据 async GetProData() { const params = { unitId: this.queryParams.unitId} const res = await getProjectList(params) this.proList = res.data + this.queryParams.proId=null }, proChange(val){ - if(val&&val.length>0){ - this.queryParams.proId=this.projectId[this.projectId.length - 1] - }else if(val&&val.length==0){ - this.queryParams.proId="" - } - this.GetUnitData() + // if(val&&val.length>0){ + // this.queryParams.proId=this.projectId[this.projectId.length - 1] + // }else if(val&&val.length==0){ + // this.queryParams.proId="" + // } + // this.GetUnitData() + setTimeout(()=>{ + this.GetUnitData() + },500) }, // 获取列表 diff --git a/src/views/material/stquery/deviceUsingRecord.vue b/src/views/material/stquery/deviceUsingRecord.vue index 3a0e77f2..79df15f9 100644 --- a/src/views/material/stquery/deviceUsingRecord.vue +++ b/src/views/material/stquery/deviceUsingRecord.vue @@ -21,7 +21,14 @@ /> - + - + 0){ - this.queryParams.unitId=this.unitId[this.unitId.length - 1] - }else if(val&&val.length==0){ - this.queryParams.unitId="" - } - this.GetProData() + // if(val&&val.length>0){ + // this.queryParams.unitId=this.unitId[this.unitId.length - 1] + // }else if(val&&val.length==0){ + // this.queryParams.unitId="" + // } + // this.GetProData() + setTimeout(()=>{ + this.GetProData() + },500) }, // 获取 工程名称 列表数据 async GetProData() { const params = { unitId: this.queryParams.unitId} const res = await getProjectList(params) this.proList = res.data + this.queryParams.proId=null }, proChange(val){ - if(val&&val.length>0){ - this.queryParams.proId=this.projectId[this.projectId.length - 1] - }else if(val&&val.length==0){ - this.queryParams.proId="" - } - this.GetUnitData() + // if(val&&val.length>0){ + // this.queryParams.proId=this.projectId[this.projectId.length - 1] + // }else if(val&&val.length==0){ + // this.queryParams.proId="" + // } + // this.GetUnitData() + setTimeout(()=>{ + this.GetUnitData() + },500) }, // 获取列表