From 7d1b906aaedbf5cc4d022ec0efbcddccbf12e9e4 Mon Sep 17 00:00:00 2001 From: liangbin <15536829364@163.com> Date: Fri, 16 Jan 2026 13:44:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(WorkOrderEdit):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=91=A8=E6=9C=9F=E9=80=89=E6=8B=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E6=9A=B4=E9=9C=B2=E8=A1=A8=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在基础信息组件中添加日期范围选择器 - 暴露getFormData方法供父组件获取表单数据 - 优化样式和代码结构 --- .../WorkOrderEdit/compoents/BasicsInfo.vue | 86 ++++++++++++++----- src/pages/WorkOrderEdit/index.vue | 4 +- 2 files changed, 65 insertions(+), 25 deletions(-) diff --git a/src/pages/WorkOrderEdit/compoents/BasicsInfo.vue b/src/pages/WorkOrderEdit/compoents/BasicsInfo.vue index dc3c7d8..29f25e5 100644 --- a/src/pages/WorkOrderEdit/compoents/BasicsInfo.vue +++ b/src/pages/WorkOrderEdit/compoents/BasicsInfo.vue @@ -10,49 +10,83 @@ 作业地点 - - + + + 作业周期 + + + + 选择日期 + + + + @@ -105,7 +138,7 @@ const initTiandituMap = () => { } .mustBox::after { - content: '*'; + content: "*"; color: red; font-size: 30rpx; margin-left: 10rpx; @@ -133,7 +166,14 @@ const initTiandituMap = () => { .FormValueBox { font-size: 30rpx; margin-top: 20rpx; + + .date-picker-box { + display: flex; + align-items: center; + gap: 20rpx; + flex: 1; + } } } } - \ No newline at end of file + diff --git a/src/pages/WorkOrderEdit/index.vue b/src/pages/WorkOrderEdit/index.vue index ecf37b3..6c39978 100644 --- a/src/pages/WorkOrderEdit/index.vue +++ b/src/pages/WorkOrderEdit/index.vue @@ -15,7 +15,7 @@ - + @@ -53,7 +53,7 @@ const stepList = ref([ // 点击下一步 const nextStep = () => { - console.log(basicsInfoRef.value); + console.log(basicsInfoRef.value.getFormData()); }