Commit bb3b48f5 by 李伟康

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

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