From 2a03b92dd65c54b2e33c84a47727cd5796beeacf Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 14 Mar 2024 17:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=9D=A1=E4=BB=BB=E5=8A=A1=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E8=BF=9B=E8=A1=8C=E6=9F=A5=E7=9C=8BfileCode=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/smartImport/cpts/completeTask.vue | 4 ++-- .../modules/base/smartImport/cpts/executeTask.vue | 14 +++++++------- .../base/smartImport/cpts/smartImportInfo.vue | 6 +++--- src/views/modules/base/smartImport/index.vue | 3 ++- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/views/modules/base/smartImport/cpts/completeTask.vue b/src/views/modules/base/smartImport/cpts/completeTask.vue index 39224b978..3a5844321 100644 --- a/src/views/modules/base/smartImport/cpts/completeTask.vue +++ b/src/views/modules/base/smartImport/cpts/completeTask.vue @@ -114,7 +114,7 @@ export default { type: String, default: "", }, - fileCodeP: { + fileCodeRow: { type: String, default: "", }, @@ -174,7 +174,7 @@ export default { async getTaskInfo() { let url = "/actual/base/intelligentImportData/getTaskInfo"; let parm = { - fileCode: this.fileCodeP || this.fileCode, + fileCode: this.fileCodeRow || this.fileCode, }; let { data, code, msg } = await requestPost(url, parm); if (code == 0) { diff --git a/src/views/modules/base/smartImport/cpts/executeTask.vue b/src/views/modules/base/smartImport/cpts/executeTask.vue index 1a5fe1402..a2373209e 100644 --- a/src/views/modules/base/smartImport/cpts/executeTask.vue +++ b/src/views/modules/base/smartImport/cpts/executeTask.vue @@ -128,14 +128,14 @@ export default { }; }, props: { - fileCode: { - type: String, - default: "", - }, - fileCodeP: { + fileCodeRow: { type: String, default: "", }, + fileCode:{ + type:String, + default:"" + } }, async created() { await this.getTaskInfo(); @@ -164,7 +164,7 @@ export default { async getProcessRate() { let url = "/actual/base/intelligentImportData/processRate"; let parm = { - fileCode: this.fileCode, + fileCode: this.fileCodeRow|| this.fileCode, }; let res = await requestPost(url, parm); if (res.code == 0) { @@ -181,7 +181,7 @@ export default { async getTaskInfo() { let url = "/actual/base/intelligentImportData/getTaskInfo"; let parm = { - fileCode: this.fileCodeP || this.fileCode, + fileCode: this.fileCodeRow || this.fileCode, }; let { data, code, msg } = await requestPost(url, parm); if (code == 0) { diff --git a/src/views/modules/base/smartImport/cpts/smartImportInfo.vue b/src/views/modules/base/smartImport/cpts/smartImportInfo.vue index cfea89b20..ef596f07f 100644 --- a/src/views/modules/base/smartImport/cpts/smartImportInfo.vue +++ b/src/views/modules/base/smartImport/cpts/smartImportInfo.vue @@ -30,13 +30,13 @@ @handelClickBack="handelClickBack" @updateProgress="updateProgress" :fileCode="fileCode" - :fileCodeP="fileCodeP" + :fileCodeRow="fileCodeRow" @updateoperatorName="updateoperatorName" > @@ -59,7 +59,7 @@ export default { }; }, props: { - fileCodeP: { + fileCodeRow: { type: String, default: null, }, diff --git a/src/views/modules/base/smartImport/index.vue b/src/views/modules/base/smartImport/index.vue index 81fa5930a..2768893c0 100644 --- a/src/views/modules/base/smartImport/index.vue +++ b/src/views/modules/base/smartImport/index.vue @@ -90,7 +90,7 @@
+ @handleClose="handleClose" @handleOk="handleOk" :fileCodeRow="fileCode" :taskId="taskId" :processStatus="processStatus"/>
@@ -184,6 +184,7 @@ export default { // 调出新增组件 async handleAdd() { this.pageType = "add"; + this.fileCode = null; }, // 查看详情触发事件 async handleDetail(row) {