diff --git a/src/views/trials/trials-panel/visit/crc-upload/index.vue b/src/views/trials/trials-panel/visit/crc-upload/index.vue index 14ee89aa..d24e2cd1 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/index.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/index.vue @@ -1007,15 +1007,29 @@ export default { // 申请影像退回 async imageBack(row) { try { - let confirm = await this.$confirm(this.$t("trials:crcUpload:confirmMessage:imageBack")) - if (!confirm) return false - let params = { - SubjectVisitId: row.Id - } - let res = await requestImageBack(params) - if (res.IsSuccess) { - this.getList() - } + this.$prompt(this.$t("trials:crcUpload:confirmMessage:ApplyReason"), this.$t("trials:crcUpload:confirmMessage:imageBack"), { + confirmButtonText: this.$t("common:button:save"), + cancelButtonText: this.$t("common:button:cancel"), + inputValidator: (val) => { + if (!val) return this.$t("common:ruleMessage:specify") + }, + inputErrorMessage: this.$t("common:ruleMessage:specify") + }).then(async ({ value }) => { + let params = { + SubjectVisitId: row.Id, + ApplyReason: value + } + // return console.log(params) + let res = await requestImageBack(params) + + if (res.IsSuccess) { + this.getList() + } + }).catch(() => { + + }); + // let confirm = await this.$confirm(this.$t("trials:crcUpload:confirmMessage:imageBack")) + // if (!confirm) return false } catch (err) { console.log(err) } diff --git a/src/views/trials/trials-panel/visit/qc-check/index.vue b/src/views/trials/trials-panel/visit/qc-check/index.vue index 66a7a211..4f649655 100644 --- a/src/views/trials/trials-panel/visit/qc-check/index.vue +++ b/src/views/trials/trials-panel/visit/qc-check/index.vue @@ -697,15 +697,29 @@ export default { // 申请影像退回 async imageBack(row) { try { - let confirm = await this.$confirm(this.$t("trials:qcCheck:confirmMessage:imageBack")) - if (!confirm) return false - let params = { - SubjectVisitId: row.Id - } - let res = await requestImageBack(params) - if (res.IsSuccess) { - this.getList() - } + this.$prompt(this.$t("trials:crcUpload:confirmMessage:ApplyReason"), this.$t("trials:crcUpload:confirmMessage:imageBack"), { + confirmButtonText: this.$t("common:button:save"), + cancelButtonText: this.$t("common:button:cancel"), + inputValidator: (val) => { + if (!val) return this.$t("common:ruleMessage:specify") + }, + inputErrorMessage: this.$t("common:ruleMessage:specify") + }).then(async ({ value }) => { + let params = { + SubjectVisitId: row.Id, + ApplyReason: value + } + // return console.log(params) + let res = await requestImageBack(params) + + if (res.IsSuccess) { + this.getList() + } + }).catch(() => { + + }); + // let confirm = await this.$confirm(this.$t("trials:crcUpload:confirmMessage:imageBack")) + // if (!confirm) return false } catch (err) { console.log(err) } diff --git a/src/views/trials/trials-panel/visit/reupload-audit/index.vue b/src/views/trials/trials-panel/visit/reupload-audit/index.vue index 4302e7c8..ac53b134 100644 --- a/src/views/trials/trials-panel/visit/reupload-audit/index.vue +++ b/src/views/trials/trials-panel/visit/reupload-audit/index.vue @@ -108,17 +108,17 @@ + show-overflow-tooltip sortable="custom" min-width="120px" /> + show-overflow-tooltip sortable="custom" min-width="120px" /> + show-overflow-tooltip sortable="custom" min-width="120px"> + show-overflow-tooltip min-width="170" sortable="custom">