diff --git a/src/views/material/cost/component/applyDetail.vue b/src/views/material/cost/component/applyDetail.vue index abe66597..21657fcb 100644 --- a/src/views/material/cost/component/applyDetail.vue +++ b/src/views/material/cost/component/applyDetail.vue @@ -685,11 +685,14 @@ export default { settlementType: this.rowData[0].settlementType || '' } console.log('2222222222222', params) + this.loading = true submitCosts(params).then(response => { + this.loading = false this.$message({ type: 'success', message: '提交成功' }) + this.$emit('isReset') }) }) diff --git a/src/views/material/cost/component/applyHome.vue b/src/views/material/cost/component/applyHome.vue index 4174300c..14648500 100644 --- a/src/views/material/cost/component/applyHome.vue +++ b/src/views/material/cost/component/applyHome.vue @@ -637,7 +637,7 @@ export default { async getRepairList() { try { this.isLoading = true - const res = await viewRepairCodeApi({ ...this.repairQuery }) + const res = await viewRepairCodeApi({ ...this.repairQuery,settlementType:this.queryParams.settlementType }) this.repairList = res.rows || [] this.repairTotal = res.total || 0 } catch (error) { diff --git a/src/views/material/cost/component/unreportHome.vue b/src/views/material/cost/component/unreportHome.vue index d8e0bf33..85d98f3d 100644 --- a/src/views/material/cost/component/unreportHome.vue +++ b/src/views/material/cost/component/unreportHome.vue @@ -579,7 +579,6 @@ import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import * as XLSX from 'xlsx'; import request from '@/utils/request' -import { download,downloadJson,downloadZip } from '@/utils/request' export default { name: 'UnreportHome', @@ -933,7 +932,7 @@ export default { console.log("xxxxxxxxxxtaskId",this.taskId) const param = { taskId: this.taskId } this.downloadZip( - 'material/slt_agreement_info/downloadExZip', + 'material/slt_agreement_info/dlExProgress', JSON.stringify(param), `未结算批量明细导出_${new Date().getTime()}.zip`, )