|
@@ -60,7 +60,7 @@
|
|
|
</template>
|
|
|
</span>
|
|
|
<a slot="name" slot-scope="text" v-html="text"> {{ text }}</a>
|
|
|
-<!-- <span slot="content" slot-scope="text" v-html="text"></span>-->
|
|
|
+ <!-- <span slot="content" slot-scope="text" v-html="text"></span>-->
|
|
|
</s-table>
|
|
|
</div>
|
|
|
<detail ref="detail" />
|
|
@@ -89,7 +89,7 @@ import Detail from './modules/Detail'
|
|
|
import SbAllocateApplyDetail from '@/views/sb/allocate-apply/modules/Detail'
|
|
|
import SbAllocateTaskAudit from '@/views/sb/allocate-task/SbAllocateTaskAudit'
|
|
|
import { getWorkplaceBacklogUserPage, updateWorkplaceBacklog, fetchWorkplaceBacklogUserById } from '@/api/workplace/backlog'
|
|
|
-import { fetchRepairApplicationForm } from '@/api/repair/application-form'
|
|
|
+import { fetchRepairApplicationForm, getCalendarNotice } from '@/api/repair/application-form'
|
|
|
import { fetchOutStoreForm } from '@/api/store/outstoreform'
|
|
|
import { fetchPurchaseOrder } from '@/api/purchase/purchase-order'
|
|
|
import { fetchPurchaseDispatchOrder } from '@/api/purchase/purchase-dispatch-order'
|
|
@@ -246,6 +246,7 @@ export default {
|
|
|
this.avatar = this.BaseTool.Constant.FILE_URL + this.userInfo.avatar
|
|
|
this.getDict()
|
|
|
this.tableOption()
|
|
|
+ this.toCalendar()
|
|
|
},
|
|
|
mounted () {
|
|
|
// this.getProjects()
|
|
@@ -446,6 +447,32 @@ export default {
|
|
|
this.sbAllocateTaskAuditShow = false
|
|
|
this.dataFlag = true
|
|
|
this.$refs.table.refresh()
|
|
|
+ },
|
|
|
+ toCalendar () {
|
|
|
+ getCalendarNotice().then(res => {
|
|
|
+ const router = this.$router
|
|
|
+ if (res.data.calendar_date !== null) {
|
|
|
+ // this.modalVisible = true
|
|
|
+ this.$confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '七天内需要完成的任务!',
|
|
|
+ okText: '去查看',
|
|
|
+ icon: 'info-circle',
|
|
|
+ onOk () {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ router.push({ path: '/repaire/calendar' })
|
|
|
+ resolve()
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message.error({
|
|
|
+ title: '错误',
|
|
|
+ description: err.message
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onCancel () {}
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|