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 @@
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+ 查询
+
+ 新增单据
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ {{ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+ 提交
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+ 草稿保存
+
+ 提交单据
+
+
+
+
+
+
+
+
+ 单据号:
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 申购科室:
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 申购说明:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 产品录入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+ 查询
+
+ 新增单据
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ {{ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+ 提交
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ {{ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+ 审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+ 审核通过
+
+ 拒绝申请
+
+
+
+
+
+
+
+
+ 单据号:
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 采购仓库:
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 采购说明:
+
+
+
+
+
+
+
+
+
+
+
+ 审核说明:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 产品录入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+ 草稿保存
+
+ 提交单据
+
+
+
+
+
+
+
+
+ 单据号:
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 采购仓库:
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 采购说明:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 产品录入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ {{ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ {{ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+ 审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+ 审核通过
+
+ 拒绝申请
+
+
+
+
+
+
+
+
+ 单据号:
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 申购科室:
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 申购说明:
+
+
+
+
+
+
+
+
+
+
+
+ 审核说明:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 单据日期:
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ {{ statusMap[scope.row.status] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
-
{{ checkFlag[scope.row.auditStatus] }}