|
|
@ -5,7 +5,7 @@ |
|
|
<div class="tech-backdrop"> |
|
|
<div class="tech-backdrop"> |
|
|
<div class="tech-frame"> |
|
|
<div class="tech-frame"> |
|
|
<header class="tech-header tech-header--simple"> |
|
|
<header class="tech-header tech-header--simple"> |
|
|
<h1 class="tech-header__title">代办清单</h1> |
|
|
|
|
|
|
|
|
<h1 class="tech-header__title">待办清单</h1> |
|
|
</header> |
|
|
</header> |
|
|
|
|
|
|
|
|
<div class="home-reminders"> |
|
|
<div class="home-reminders"> |
|
|
@ -39,6 +39,16 @@ |
|
|
<div class="home-reminder-card__count">{{ myPerformanceScoreCount }}</div> |
|
|
<div class="home-reminder-card__count">{{ myPerformanceScoreCount }}</div> |
|
|
<div class="home-reminder-card__hint">{{ myPerformanceScoreCount > 0 ? '' : 'Null' }}</div> |
|
|
<div class="home-reminder-card__hint">{{ myPerformanceScoreCount > 0 ? '' : 'Null' }}</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div |
|
|
|
|
|
v-show="homeTileShow.inspectionAudit" |
|
|
|
|
|
class="home-reminder-card tech-card" |
|
|
|
|
|
:class="{ 'is-clickable': inspectionAuditCount > 0, 'tech-card--active': inspectionAuditCount > 0 }" |
|
|
|
|
|
@click="onInspectionAuditClick"> |
|
|
|
|
|
<div class="tech-card__grid" aria-hidden="true"></div> |
|
|
|
|
|
<div class="home-reminder-card__title">Inspection Request Audit</div> |
|
|
|
|
|
<div class="home-reminder-card__count">{{ inspectionAuditCount }}</div> |
|
|
|
|
|
<div class="home-reminder-card__hint">{{ inspectionAuditCount > 0 ? '' : 'Null' }}</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -49,6 +59,7 @@ |
|
|
import {searchSysLanguagePack} from "../../api/sysLanguage"; |
|
|
import {searchSysLanguagePack} from "../../api/sysLanguage"; |
|
|
import { supplierDocExpireReminder, supplierContractRequestExpireReminder } from '@/api/srm/srmSupplier.js' |
|
|
import { supplierDocExpireReminder, supplierContractRequestExpireReminder } from '@/api/srm/srmSupplier.js' |
|
|
import { myPerformanceScoreReminder } from '@/api/supplierPerformance/myPerformanceEvaluateRequest.js' |
|
|
import { myPerformanceScoreReminder } from '@/api/supplierPerformance/myPerformanceEvaluateRequest.js' |
|
|
|
|
|
import { searchInspectionRequestHeaderList } from '@/api/inspection/inspectionRequestHeader.js' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data(){ |
|
|
data(){ |
|
|
@ -59,10 +70,12 @@ export default { |
|
|
contractExpireReminderCount: 0, |
|
|
contractExpireReminderCount: 0, |
|
|
contractExpireReminderIds: [], |
|
|
contractExpireReminderIds: [], |
|
|
myPerformanceScoreCount: 0, |
|
|
myPerformanceScoreCount: 0, |
|
|
|
|
|
inspectionAuditCount: 0, |
|
|
homeTileShow: { |
|
|
homeTileShow: { |
|
|
supplierDocExpire: true, |
|
|
supplierDocExpire: true, |
|
|
contractRequestExpire: true, |
|
|
contractRequestExpire: true, |
|
|
myPerformanceScore: true, |
|
|
myPerformanceScore: true, |
|
|
|
|
|
inspectionAudit: true, |
|
|
}, |
|
|
}, |
|
|
/** 代办卡片悬停外圈脉冲(双环);false 时无任何脉冲描边 */ |
|
|
/** 代办卡片悬停外圈脉冲(双环);false 时无任何脉冲描边 */ |
|
|
homeCardPulseEnabled: false, |
|
|
homeCardPulseEnabled: false, |
|
|
@ -78,6 +91,9 @@ export default { |
|
|
onMyPerformanceScoreClick () { |
|
|
onMyPerformanceScoreClick () { |
|
|
this.goMyPerformanceScoreList() |
|
|
this.goMyPerformanceScoreList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
onInspectionAuditClick () { |
|
|
|
|
|
this.goInspectionAuditList() |
|
|
|
|
|
}, |
|
|
loadDocExpireReminder () { |
|
|
loadDocExpireReminder () { |
|
|
const site = this.$store.state.user.site |
|
|
const site = this.$store.state.user.site |
|
|
supplierDocExpireReminder({ site }).then(({ data }) => { |
|
|
supplierDocExpireReminder({ site }).then(({ data }) => { |
|
|
@ -141,6 +157,26 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
loadInspectionAuditReminder () { |
|
|
|
|
|
const site = this.$store.state.user.site |
|
|
|
|
|
// 直接使用审核页面的查询接口,查询未审核的数据 |
|
|
|
|
|
const params = { |
|
|
|
|
|
page: 1, |
|
|
|
|
|
limit: 1, // 只需要知道有多少条,不需要加载全部数据 |
|
|
|
|
|
status: 'Confirmed', // 只查询已确认(待审核)的状态 |
|
|
|
|
|
site: site |
|
|
|
|
|
} |
|
|
|
|
|
searchInspectionRequestHeaderList(params).then(({ data }) => { |
|
|
|
|
|
if (data && data.code === 0 && data.page) { |
|
|
|
|
|
this.inspectionAuditCount = data.page.totalCount || 0 |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => {}) |
|
|
|
|
|
}, |
|
|
|
|
|
goInspectionAuditList () { |
|
|
|
|
|
if (!this.inspectionAuditCount) return |
|
|
|
|
|
// 跳转到验货申请审核页面 |
|
|
|
|
|
this.$router.push({ name: 'inspection-inspectionRequestAudit' }) |
|
|
|
|
|
}, |
|
|
languageRefresh(){ |
|
|
languageRefresh(){ |
|
|
console.log("欢迎使用 旭捷管理系统!!!") |
|
|
console.log("欢迎使用 旭捷管理系统!!!") |
|
|
}, |
|
|
}, |
|
|
@ -180,6 +216,9 @@ export default { |
|
|
if (this.homeTileShow.myPerformanceScore) { |
|
|
if (this.homeTileShow.myPerformanceScore) { |
|
|
this.loadMyPerformanceScoreReminder() |
|
|
this.loadMyPerformanceScoreReminder() |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.homeTileShow.inspectionAudit) { |
|
|
|
|
|
this.loadInspectionAuditReminder() |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
'homeTileShow.supplierDocExpire'(v) { |
|
|
'homeTileShow.supplierDocExpire'(v) { |
|
|
@ -196,6 +235,11 @@ export default { |
|
|
if (v) { |
|
|
if (v) { |
|
|
this.loadMyPerformanceScoreReminder() |
|
|
this.loadMyPerformanceScoreReminder() |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
'homeTileShow.inspectionAudit'(v) { |
|
|
|
|
|
if (v) { |
|
|
|
|
|
this.loadInspectionAuditReminder() |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|