From 1cdea9052c16c89a78a989d87bf87fd8b95c5000 Mon Sep 17 00:00:00 2001 From: "zhonghua.li" Date: Mon, 1 Jun 2026 13:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=8A=A2=E5=8D=95=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lb-business/config-manage/index.vue | 27 ++++++++++++++++++- .../lb-business/rush-order-account/index.vue | 17 +++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/src/views/lb-business/config-manage/index.vue b/src/views/lb-business/config-manage/index.vue index e3c1cdf..7490f52 100644 --- a/src/views/lb-business/config-manage/index.vue +++ b/src/views/lb-business/config-manage/index.vue @@ -77,9 +77,10 @@ {{ formatDateTime(scope.row.updateTime) }} - + @@ -536,6 +537,30 @@ export default { this.$refs.dataForm && this.$refs.dataForm.clearValidate() }) }, + handleCopy(row) { + this.dialogTitle = '复制第三方集成配置' + this.isEdit = false + this.activeTab = 'basic' + this.form = { + ...DEFAULT_FORM(), + ...this.pickFormFields(row), + id: '', + tenantId: '', + adminBaseUrl: '', + webBaseUrl: '', + goodsApiToken: '' + } + this.originalCredential = { + cookie: '', + phpsid: '', + goodsApiToken: '', + goodsApiAppStr: '' + } + this.dialogVisible = true + this.$nextTick(() => { + this.$refs.dataForm && this.$refs.dataForm.clearValidate() + }) + }, loadFormCredentials(tenantId) { if (!tenantId) return this.formCredentialLoading = true diff --git a/src/views/lb-business/rush-order-account/index.vue b/src/views/lb-business/rush-order-account/index.vue index b6b2bad..809b523 100644 --- a/src/views/lb-business/rush-order-account/index.vue +++ b/src/views/lb-business/rush-order-account/index.vue @@ -112,9 +112,10 @@ {{ formatDateTime(scope.row.updateTime) }} - + @@ -528,6 +529,20 @@ export default { this.$refs.dataForm && this.$refs.dataForm.clearValidate() }) }, + handleCopy(row) { + this.dialogTitle = '复制抢单账号' + this.isEdit = false + this.form = { + ...DEFAULT_FORM(), + ...this.pickFormFields(row), + id: '', + loginPassword: '' + } + this.dialogVisible = true + this.$nextTick(() => { + this.$refs.dataForm && this.$refs.dataForm.clearValidate() + }) + }, pickFormFields(row) { const fields = DEFAULT_FORM() Object.keys(fields).forEach((key) => {