diff --git a/src/api/dashboard.ts b/src/api/dashboard.ts new file mode 100644 index 0000000..0153286 --- /dev/null +++ b/src/api/dashboard.ts @@ -0,0 +1,46 @@ +import { request } from '@/utils/request' + + + +//工单统计 +export function getorders() { + return request({ + url: '/biz/dashboard/total-orders', + method: 'get' + }) +} + +export function getsctotal(params:any) { + return request({ + url: '/biz/dashboard/stats', + method: 'get', + params + }) +} + +//获取产能达成率 +export function getachievement(params:any) { + return request({ + url: '/biz/dashboard/achievement-rate', + method: 'get', + params + }) +} + +// 累计质检异常列表 +export function getquality(params:any) { + return request({ + url: '/biz/dashboard/total-quality-list', + method: 'get', + params + }) +} + +// 未关闭质检异常列表 +export function getopenquality(params:any) { + return request({ + url: 'biz/dashboard/open-quality-list', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/src/api/errorNotification.ts b/src/api/errorNotification.ts index 526afaf..485a300 100644 --- a/src/api/errorNotification.ts +++ b/src/api/errorNotification.ts @@ -79,5 +79,9 @@ export const errorNotificationApi = { // 下载导入模板 downloadTemplate() { return request({ url: `/biz/errorNotification/template`, method: 'get', responseType: 'blob' }) + }, + //获取检查项 + getopt() { + return request({ url: `/biz/errorNotification/options`, method: 'get' }) } } \ No newline at end of file diff --git a/src/views/NCcode/index.vue b/src/views/NCcode/index.vue index 2e82b9e..179e740 100644 --- a/src/views/NCcode/index.vue +++ b/src/views/NCcode/index.vue @@ -860,7 +860,7 @@ function issuehand(row:any) { issueModel.value = true issarr = [] ncid = row.id - ncCode.value = row.code + ncCode.value = row.ncCode } diff --git a/src/views/biz/errorNotification/index.vue b/src/views/biz/errorNotification/index.vue index bd47e00..0e0e07e 100644 --- a/src/views/biz/errorNotification/index.vue +++ b/src/views/biz/errorNotification/index.vue @@ -4,6 +4,9 @@
+ + + @@ -26,7 +29,7 @@ 新增 - +
@@ -46,9 +49,11 @@ :columns="columns" :data="tableData" :loading="loading" + :bordere="false" + striped + remote :pagination="pagination" - :row-key="(row) => row.id" - :scroll-x="1200" + :row-key="(row:any) => row.id" @update:page="handlePageChange" @update:page-size="handlePageSizeChange" @update:checked-row-keys="handleCheck" @@ -56,46 +61,105 @@ - - - - - - - - - - - - - - - - - - {{ opt.label }} - - - - - - - - - - - - - - - - - - - {{ opt.label }} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ opt.label }} + + + + + + + + + + + + + + + + + + + {{ opt.label }} + + + + + + + + + 操作人 + 设备负责人 + 指定人员 + + + + + + + + + + + + + + +