diff --git a/src/permission.ts b/src/permission.ts index c919be5..6868529 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -10,7 +10,7 @@ import useSettingsStore from '@/store/modules/settings'; import usePermissionStore from '@/store/modules/permission'; NProgress.configure({ showSpinner: false }); -const whiteList = ['/login', '/register', '/social-callback', '/register*', '/register/*']; +const whiteList = ['/login', '/register', '/social-callback', '/register*', '/register/*', '/materials/purchaseDoc/uploadCode']; const isWhiteList = (path: string) => { return whiteList.some((pattern) => isPathMatch(pattern, path)); diff --git a/src/router/index.ts b/src/router/index.ts index 6ac8743..c51dbc2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -118,6 +118,11 @@ export const constantRoutes: RouteRecordRaw[] = [ path: '/gis2D1', component: () => import('@/views/gis2D/index.vue'), hidden: true + }, + { + path: '/materials/purchaseDoc/uploadCode', + component: () => import('@/views/materials/purchaseDoc/uploadCode.vue'), + hidden: true } ]; diff --git a/src/views/materials/purchaseDoc/index.vue b/src/views/materials/purchaseDoc/index.vue index 56511d2..327e512 100644 --- a/src/views/materials/purchaseDoc/index.vue +++ b/src/views/materials/purchaseDoc/index.vue @@ -126,7 +126,7 @@
- + 审核 { planCode: undefined, projectId: currentProject.value?.id }); - batchOptions.value = res.rows; + batchOptions.value = res.rows.filter((item) => item.status == 'finish'); }; const getSupplierList = async () => { @@ -473,6 +473,15 @@ const handleSuccess = (list, res: any) => { form.value.feedbackUrl = res.data.url; }; +/** 审核按钮操作 */ +const handleAudit = async (row?: PurchaseDocVO) => { + proxy?.$tab.closePage(route); + proxy?.$tab.openPage('/materials/purchaseDoc/indexEdit', '审核采购联系单', { + id: row.id, + type: 'update' + }); +}; + onMounted(() => { getList(); getSupplierList(); diff --git a/src/views/materials/purchaseDoc/indexEdit.vue b/src/views/materials/purchaseDoc/indexEdit.vue new file mode 100644 index 0000000..c3683c8 --- /dev/null +++ b/src/views/materials/purchaseDoc/indexEdit.vue @@ -0,0 +1,439 @@ + + + + diff --git a/src/views/materials/purchaseDoc/uploadCode.vue b/src/views/materials/purchaseDoc/uploadCode.vue new file mode 100644 index 0000000..4b4281c --- /dev/null +++ b/src/views/materials/purchaseDoc/uploadCode.vue @@ -0,0 +1,54 @@ + + + + +