Commit bb3b48f5 by 李伟康

feat(boutique): 添加日报提交成功提示

- 在 DailyReport 组件中添加 NoticePopup 组件用于显示提交成功提示
1 parent 7a06363e
...@@ -150,6 +150,12 @@ ...@@ -150,6 +150,12 @@
</template> </template>
</view> </view>
</template> </template>
<NoticePopup
ref="notice"
title="提交成功"
text="您的日报已提交成功"
type="success"
></NoticePopup>
</view> </view>
</template> </template>
...@@ -159,9 +165,11 @@ var weekday = require('dayjs/plugin/weekday') ...@@ -159,9 +165,11 @@ var weekday = require('dayjs/plugin/weekday')
import dayjs from 'dayjs' import dayjs from 'dayjs'
dayjs.extend(weekday) dayjs.extend(weekday)
import GlCell from '@/components/Form/GlCell.vue' import GlCell from '@/components/Form/GlCell.vue'
import NoticePopup from './NoticePopup.vue'
export default { export default {
components: { components: {
GlCell GlCell,
NoticePopup
}, },
props: { props: {
currentDate: String, currentDate: String,
...@@ -495,8 +503,9 @@ export default { ...@@ -495,8 +503,9 @@ export default {
}) })
} }
const data = await uni.$api.boutiqueApi.saveStaffDailyReport(orderObj) const data = await uni.$api.boutiqueApi.saveStaffDailyReport(orderObj)
if(data) { if (data) {
this.isEditReport = false this.isEditReport = false
this.$refs.notice.open()
} }
} catch (error) { } catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!