diff --git a/src/api/purchase/purApply.js b/src/api/purchase/purApply.js index 8c226ae2..987e1e19 100644 --- a/src/api/purchase/purApply.js +++ b/src/api/purchase/purApply.js @@ -109,5 +109,14 @@ export function addApplyId() { method: 'post', data: data }) + } + + //删除申购表和详情表 + export function delApplyDetailAll(data) { + return request({ + url: "/purchase/apply/delApplyDetailAll", + method: 'post', + data: data + }) } diff --git a/src/api/purchase/purPlan.js b/src/api/purchase/purPlan.js index c0a1b21e..757851bf 100644 --- a/src/api/purchase/purPlan.js +++ b/src/api/purchase/purPlan.js @@ -1,86 +1,104 @@ import axios from "@/utils/request"; +import request from "@/utils/request"; export function listPlan(query) { - return axios({ - url: '/purchase/plan/list', - method: 'get', - params: 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 - }) + 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 - }) + return axios({ + url: '/purchase/plan/list/detail', + method: 'get', + params: query + }) } export function getApply(id) { - return axios({ - url: '/purchase/plan/' + id, - method: 'get' - }) + return axios({ + url: '/purchase/plan/' + id, + method: 'get' + }) } export function addApply(data) { - return axios({ - url: '/purchase/plan', - method: 'post', - data: data - }) + return axios({ + url: '/purchase/plan', + method: 'post', + data: data + }) } export function auditOrder(data) { - return axios({ - url: '/purchase/plan/auditOrder', - method: 'post', - data: 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 - }) + return axios({ + url: '/purchase/plan', + method: 'put', + data: data + }) } // 删除pur export function delApply(id) { - return axios({ - url: '/purchase/plan/' + id, - method: 'delete' - }) + return axios({ + url: '/purchase/plan/' + id, + method: 'delete' + }) } export function inserThrOrderWeb(query) { - return axios({ - url: "/purchase/plan/postOrder", - method: "post", - data: 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' - }) + return axios({ + url: '/purchase/plan/detail/' + id, + method: 'delete' + }) } + // 添加puan +export function addPlanId() { + return request({ + url: "/purchase/plan/add", + method: 'post' + }) +} +// 根据申购单添加详情表 +export function addPlanDetail(data) { + return request({ + url: "/purchase/plan/addPlanDetail", + method: 'post', + data: data + }) +} + + diff --git a/src/views/basic/corpMaintain/corpMaintain.vue b/src/views/basic/corpMaintain/corpMaintain.vue index 98313169..80c4d04f 100644 --- a/src/views/basic/corpMaintain/corpMaintain.vue +++ b/src/views/basic/corpMaintain/corpMaintain.vue @@ -322,7 +322,6 @@ export default { }, // 隐藏表单 hideForm() { - debugger // 更改值 this.formVisible = !this.formVisible; // this.getList(); diff --git a/src/views/purchase/purApply/purApply.vue b/src/views/purchase/purApply/purApply.vue index ae50c9ad..bc0110cb 100644 --- a/src/views/purchase/purApply/purApply.vue +++ b/src/views/purchase/purApply/purApply.vue @@ -103,13 +103,15 @@ + + diff --git a/src/views/purchase/purPlan/purOrderSelectProduct.vue b/src/views/purchase/purPlan/purOrderSelectProduct.vue new file mode 100644 index 00000000..97168f1f --- /dev/null +++ b/src/views/purchase/purPlan/purOrderSelectProduct.vue @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + 查询 + 确定 + + + + + + + + + + + + + + + + + + + + + + 详情 + + + + + + + + + + + + + + + + + {{ item }} + + + + + + + + + + + + diff --git a/src/views/purchase/purPlan/purPlan.vue b/src/views/purchase/purPlan/purPlan.vue new file mode 100644 index 00000000..90f77d7c --- /dev/null +++ b/src/views/purchase/purPlan/purPlan.vue @@ -0,0 +1,389 @@ + + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + 查询 + 新增采购计划 + + + + + + + + + + {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} + + + + + + + + + + {{ statusMap[scope.row.status] }} + + + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purPlan/purPlanAudit.vue b/src/views/purchase/purPlan/purPlanAudit.vue new file mode 100644 index 00000000..6bf13a24 --- /dev/null +++ b/src/views/purchase/purPlan/purPlanAudit.vue @@ -0,0 +1,363 @@ + + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + 查询 + + + + + + + + + + {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} + + + + + + + + + + + {{ statusMap[scope.row.status] }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purPlan/purPlanDetailDialog.vue b/src/views/purchase/purPlan/purPlanDetailDialog.vue new file mode 100644 index 00000000..3622ba83 --- /dev/null +++ b/src/views/purchase/purPlan/purPlanDetailDialog.vue @@ -0,0 +1,483 @@ + + + + + + + 审核通过 + 拒绝申请 + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + + + + + + + + 是否生成采购入库单 + + + + + + + + + + {{ item.name }} + + + + + + + + + {{ item.localName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purPlan/purPlanEditDialog.vue b/src/views/purchase/purPlan/purPlanEditDialog.vue new file mode 100644 index 00000000..4872a8bb --- /dev/null +++ b/src/views/purchase/purPlan/purPlanEditDialog.vue @@ -0,0 +1,455 @@ + + + + + + 草稿保存 + 提交单据 + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + {{ item.warehouseName }} + + + + + + + + + + + + + + + + + + + + + + + + + + 产品录入 + 选入申购单 + + + + + + + + + + + + + + + + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purPlan/purPlanOrderSelectProduct.vue b/src/views/purchase/purPlan/purPlanOrderSelectProduct.vue new file mode 100644 index 00000000..bd6b09bf --- /dev/null +++ b/src/views/purchase/purPlan/purPlanOrderSelectProduct.vue @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 确定 + + + + + + + + + + + + + + + + + + + + + + + + + + + 详情 + + + + + + + + + + + + + + + + {{ item }} + + + + + + + + + + + + diff --git a/src/views/purchase/purPlan/purPlanSearch.vue b/src/views/purchase/purPlan/purPlanSearch.vue new file mode 100644 index 00000000..5eb6d1da --- /dev/null +++ b/src/views/purchase/purPlan/purPlanSearch.vue @@ -0,0 +1,365 @@ + + + + + + + + + + 单据日期: + + + + + + + 查询 + + + + + + + + + + + {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} + + + + + + + + + + + {{ statusMap[scope.row.status] }} + + + + + + + + + + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/thirdSys/corps/thrCorpSelect.vue b/src/views/thirdSys/corps/thrCorpSelect.vue index c6c8e471..70a4e1a7 100644 --- a/src/views/thirdSys/corps/thrCorpSelect.vue +++ b/src/views/thirdSys/corps/thrCorpSelect.vue @@ -240,7 +240,7 @@ export default { this.$message.error(response.message) } this.$emit("cancelDialog", true); - }) + }) .catch(() => { this.$message.error("下载失败!"); });