From 8ff321a3b8534004f88fa95455e976f22ce84148 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Wed, 9 Nov 2022 14:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=AE=A1=E7=90=86=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/purchase/purApply.js | 87 ++++ src/api/purchase/purPlan.js | 86 ++++ src/router/index.js | 100 ++++ src/views/purchase/purApply.vue | 385 ++++++++++++++ src/views/purchase/purApplyEditDiaolog.vue | 501 ++++++++++++++++++ src/views/purchase/purPlan.vue | 394 +++++++++++++++ src/views/purchase/purPlanAudit.vue | 363 +++++++++++++ src/views/purchase/purPlanDetailDialog.vue | 504 +++++++++++++++++++ src/views/purchase/purPlanEditDialog.vue | 501 ++++++++++++++++++ src/views/purchase/purPlanSearch.vue | 363 +++++++++++++ src/views/purchase/pureApplyAudit.vue | 392 +++++++++++++++ src/views/purchase/pureApplyDetailDialog.vue | 484 ++++++++++++++++++ src/views/purchase/pureApplySearch.vue | 392 +++++++++++++++ src/views/purchase/supCertAudit.vue | 1 - 14 files changed, 4552 insertions(+), 1 deletion(-) create mode 100644 src/api/purchase/purApply.js create mode 100644 src/api/purchase/purPlan.js create mode 100644 src/views/purchase/purApply.vue create mode 100644 src/views/purchase/purApplyEditDiaolog.vue create mode 100644 src/views/purchase/purPlan.vue create mode 100644 src/views/purchase/purPlanAudit.vue create mode 100644 src/views/purchase/purPlanDetailDialog.vue create mode 100644 src/views/purchase/purPlanEditDialog.vue create mode 100644 src/views/purchase/purPlanSearch.vue create mode 100644 src/views/purchase/pureApplyAudit.vue create mode 100644 src/views/purchase/pureApplyDetailDialog.vue create mode 100644 src/views/purchase/pureApplySearch.vue diff --git a/src/api/purchase/purApply.js b/src/api/purchase/purApply.js new file mode 100644 index 0000000..90a0a91 --- /dev/null +++ b/src/api/purchase/purApply.js @@ -0,0 +1,87 @@ +import request from '@/utils/axios' +import axios from "@/utils/axios"; + +export function listApply(query) { + return request({ + url: '/purchase/apply/list', + method: 'get', + params: query + }) +} + +export function auditListApply(query) { + return request({ + url: '/purchase/apply/auditList', + method: 'get', + params: query + }) +} + + +export function listApplyDetail(query) { + return request({ + url: '/purchase/apply/list/detail', + method: 'get', + params: query + }) +} + +export function getApply(id) { + return request({ + url: '/purchase/apply/' + id, + method: 'get' + }) +} + +export function addApply(data) { + return request({ + url: '/purchase/apply', + method: 'post', + data: data + }) +} + + +export function auditOrder(data) { + return request({ + url: '/purchase/apply/auditOrder', + method: 'post', + data: data + }) +} + + +// 修改pur +export function updateApply(data) { + return request({ + url: '/purchase/apply', + method: 'put', + data: data + }) +} + +// 删除pur +export function delApply(id) { + return request({ + url: '/purchase/apply/' + id, + method: 'delete' + }) +} + +export function inserThrOrderWeb(query) { + return axios({ + url: "/purchase/apply/postOrder", + method: "post", + data: query + }); +} + + +// 删除pur +export function delApplyDetail(id) { + return request({ + url: '/purchase/apply/detail/' + id, + method: 'delete' + }) +} + diff --git a/src/api/purchase/purPlan.js b/src/api/purchase/purPlan.js new file mode 100644 index 0000000..a6f21b6 --- /dev/null +++ b/src/api/purchase/purPlan.js @@ -0,0 +1,86 @@ +import axios from "@/utils/axios"; + +export function listPlan(query) { + return axios({ + url: '/purchase/plan/list', + method: 'get', + params: query + }) +} + +export function auditListPlan(query) { + return axios({ + url: '/purchase/plan/auditList', + method: 'get', + params: query + }) +} + + +export function listApplyDetail(query) { + return axios({ + url: '/purchase/plan/list/detail', + method: 'get', + params: query + }) +} + +export function getApply(id) { + return axios({ + url: '/purchase/plan/' + id, + method: 'get' + }) +} + +export function addApply(data) { + return axios({ + url: '/purchase/plan', + method: 'post', + data: data + }) +} + + +export function auditOrder(data) { + return axios({ + url: '/purchase/plan/auditOrder', + method: 'post', + data: data + }) +} + + +// 修改pur +export function updateApply(data) { + return axios({ + url: '/purchase/plan', + method: 'put', + data: data + }) +} + +// 删除pur +export function delApply(id) { + return axios({ + url: '/purchase/plan/' + id, + method: 'delete' + }) +} + +export function inserThrOrderWeb(query) { + return axios({ + url: "/purchase/plan/postOrder", + method: "post", + data: query + }); +} + + +// 删除pur +export function delApplyDetail(id) { + return axios({ + url: '/purchase/plan/detail/' + id, + method: 'delete' + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 6e9ee99..bf080df 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -134,6 +134,15 @@ import supCertSearch from "../views/purchase/supCertSearch.vue"; import supCertSet from "../views/purchase/supCertSet.vue"; import supCertificationAdd from "../views/purchase/supCertificationAdd.vue"; +//采购管理 + +import purApply from "../views/purchase/purApply"; +import pureApplyAudit from "../views/purchase/pureApplyAudit"; +import pureApplySearch from "../views/purchase/pureApplySearch"; +import purPlan from "../views/purchase/purPlan"; +import purPlanAudit from "../views/purchase/purPlanAudit"; +import purPlanSearch from "../views/purchase/purPlanSearch"; + const err401 = r => require.ensure([], () => r(require("../views/error/err401.vue")), "home"); @@ -932,6 +941,97 @@ export const asyncRouterMap = [ } ] }, + + { + path: "/purchase", + component: Home, + redirect: "/purchase/apply", + icon: "tongyong", + name: "采购管理", + noDropdown: false, + meta: { + authRule: ["purchase"] + }, + children: [ + + { + path: "/apply", + component: Empty, + name: "产品申购管理", + redirect: "/apply/applyAdd", + meta: { + authRule: ["purchase/apply"] + }, + children: [ + { + path: "applyAdd", + component: purApply, + name: "新增申购单据", + meta: { + authRule: ["purchase/apply/add"] + } + }, + { + path: "applyAudit", + component: pureApplyAudit, + name: "申购单据审核", + meta: { + authRule: ["purchase/apply/audit"] + } + }, + { + path: "applySearch", + component: pureApplySearch, + name: "申购单据查询", + meta: { + authRule: ["purchase/apply/search"] + } + }, + + ] + }, + + { + path: "/plan", + component: Empty, + name: "采购计划管理", + redirect: "/plan/planAdd", + meta: { + authRule: ["plan/planAdd"] + }, + children: [ + { + path: "planAdd", + component: purPlan, + name: "新增采购计划", + meta: { + authRule: ["purchase/plan/planAdd"] + } + }, + { + path: "planAudit", + component: purPlanAudit, + name: "采购计划审核", + meta: { + authRule: ["purchase/plan/planAudit"] + } + }, + { + path: "planSearch", + component: purPlanSearch, + name: "采购计划查询", + meta: { + authRule: ["purchase/plan/planSearch"] + } + }, + + ] + }, + + + ] + }, + { path: "/inv", redirect: "/inv/invProducts", diff --git a/src/views/purchase/purApply.vue b/src/views/purchase/purApply.vue new file mode 100644 index 0000000..61cd1b9 --- /dev/null +++ b/src/views/purchase/purApply.vue @@ -0,0 +1,385 @@ + + + + diff --git a/src/views/purchase/purApplyEditDiaolog.vue b/src/views/purchase/purApplyEditDiaolog.vue new file mode 100644 index 0000000..9c665b2 --- /dev/null +++ b/src/views/purchase/purApplyEditDiaolog.vue @@ -0,0 +1,501 @@ + + + + + + + diff --git a/src/views/purchase/purPlan.vue b/src/views/purchase/purPlan.vue new file mode 100644 index 0000000..f8de056 --- /dev/null +++ b/src/views/purchase/purPlan.vue @@ -0,0 +1,394 @@ + + + + diff --git a/src/views/purchase/purPlanAudit.vue b/src/views/purchase/purPlanAudit.vue new file mode 100644 index 0000000..fa07482 --- /dev/null +++ b/src/views/purchase/purPlanAudit.vue @@ -0,0 +1,363 @@ + + + + diff --git a/src/views/purchase/purPlanDetailDialog.vue b/src/views/purchase/purPlanDetailDialog.vue new file mode 100644 index 0000000..90ba2c9 --- /dev/null +++ b/src/views/purchase/purPlanDetailDialog.vue @@ -0,0 +1,504 @@ + + + + + + + diff --git a/src/views/purchase/purPlanEditDialog.vue b/src/views/purchase/purPlanEditDialog.vue new file mode 100644 index 0000000..f60c441 --- /dev/null +++ b/src/views/purchase/purPlanEditDialog.vue @@ -0,0 +1,501 @@ + + + + + + + diff --git a/src/views/purchase/purPlanSearch.vue b/src/views/purchase/purPlanSearch.vue new file mode 100644 index 0000000..30a7322 --- /dev/null +++ b/src/views/purchase/purPlanSearch.vue @@ -0,0 +1,363 @@ + + + + diff --git a/src/views/purchase/pureApplyAudit.vue b/src/views/purchase/pureApplyAudit.vue new file mode 100644 index 0000000..545edfa --- /dev/null +++ b/src/views/purchase/pureApplyAudit.vue @@ -0,0 +1,392 @@ + + + + diff --git a/src/views/purchase/pureApplyDetailDialog.vue b/src/views/purchase/pureApplyDetailDialog.vue new file mode 100644 index 0000000..d4c734e --- /dev/null +++ b/src/views/purchase/pureApplyDetailDialog.vue @@ -0,0 +1,484 @@ + + + + + + + diff --git a/src/views/purchase/pureApplySearch.vue b/src/views/purchase/pureApplySearch.vue new file mode 100644 index 0000000..0d13c15 --- /dev/null +++ b/src/views/purchase/pureApplySearch.vue @@ -0,0 +1,392 @@ + + + + diff --git a/src/views/purchase/supCertAudit.vue b/src/views/purchase/supCertAudit.vue index 971f427..031e605 100644 --- a/src/views/purchase/supCertAudit.vue +++ b/src/views/purchase/supCertAudit.vue @@ -57,7 +57,6 @@