From ede571d4368e499f92ff9539473305fa045d1464 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 2 Sep 2025 16:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E7=AB=99=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsLease/toolsLeaseAdd.vue | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue index 504d56f..e543cf4 100644 --- a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue +++ b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue @@ -154,10 +154,10 @@ @@ -262,6 +262,7 @@ const getDetailsById = async () => { Object.assign(formData, res.data.leaseApplyInfo) formData.projectId = res.data.leaseApplyInfo.proId formData.proId = res.data.leaseApplyInfo.proId + formData.relPhone = res.data.leaseApplyInfo.phone || res.data.leaseApplyInfo.relPhone || '' getAgreementInfoById() } catch (error) { console.log('🚀 ~ getDetailsById ~ error:', error) @@ -527,6 +528,7 @@ const submit = (isOut) => { .validate() .then(async (valid) => { formData.isOut = isOut + formData.phone = formData.relPhone formData.createBy = uni.getStorageSync('username') || '' console.log('🚀 ~ form.value.validate.then ~ valid:', valid) if (tableData.value.length === 0) { @@ -561,15 +563,17 @@ const submit = (isOut) => { leaseApplyInfo: formData, } console.log('🚀 ~ .then ~ params:', params) - // 弹框确定 - const res = await uni.showModal({ - title: '提示', - content: '是否确认提交?', - confirmText: isOut == 0 ? '暂存' : '出库', - cancelText: '取消', - }) - console.log('🚀 ~ .then ~ res:', res) - if (!res.confirm) return + if (isOut != 0) { + // 弹框确定 + const resp = await uni.showModal({ + title: '提示', + content: '是否确认提交?', + confirmText: '提交', + cancelText: '取消', + }) + console.log('🚀 ~ .confirm ~ resp:', resp) + if (!resp.confirm) return + } uni.showLoading({ title: '提交中...', mask: true, // 遮罩层