diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/router/modules/resource.ts b/src/router/modules/resource.ts
index 1d75264..b403d3f 100644
--- a/src/router/modules/resource.ts
+++ b/src/router/modules/resource.ts
@@ -655,6 +655,40 @@
},
},
{
+ path: 'consumableApplyList',
+ name: 'ConsumableApplyList',
+ component: () => import('@/views/resource/outsideService/consumable/applyList.vue'),
+ meta: {
+ title: '易耗物资申请单',
+ auth: '/resource/outsideService/consumableApply',
+ icon: 'ep:key',
+ },
+ },
+ {
+ path: 'consumableApply/:type/:id?/:status?',
+ name: 'ConsumableApplyDetail',
+ component: () => import('@/views/resource/outsideService/consumable/applyDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
+ path: 'consumableApply/approved/:type?/:id?',
+ name: 'ConsumableApplyDetailApproved',
+ component: () => import('@/views/resource/outsideService/consumable/approvedDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
path: 'consumableEvaluateList',
name: 'ConsumableEvaluateList',
component: () => import('@/views/resource/outsideService/consumable/evaluateList.vue'),
diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/router/modules/resource.ts b/src/router/modules/resource.ts
index 1d75264..b403d3f 100644
--- a/src/router/modules/resource.ts
+++ b/src/router/modules/resource.ts
@@ -655,6 +655,40 @@
},
},
{
+ path: 'consumableApplyList',
+ name: 'ConsumableApplyList',
+ component: () => import('@/views/resource/outsideService/consumable/applyList.vue'),
+ meta: {
+ title: '易耗物资申请单',
+ auth: '/resource/outsideService/consumableApply',
+ icon: 'ep:key',
+ },
+ },
+ {
+ path: 'consumableApply/:type/:id?/:status?',
+ name: 'ConsumableApplyDetail',
+ component: () => import('@/views/resource/outsideService/consumable/applyDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
+ path: 'consumableApply/approved/:type?/:id?',
+ name: 'ConsumableApplyDetailApproved',
+ component: () => import('@/views/resource/outsideService/consumable/approvedDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
path: 'consumableEvaluateList',
name: 'ConsumableEvaluateList',
component: () => import('@/views/resource/outsideService/consumable/evaluateList.vue'),
diff --git a/src/views/resource/outsideService/consumable/applyDetail.vue b/src/views/resource/outsideService/consumable/applyDetail.vue
new file mode 100644
index 0000000..241d195
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyDetail.vue
@@ -0,0 +1,669 @@
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 提交
+
+
+ 保存
+
+
+
+ 删除
+
+
+ 取消
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增加行
+
+
+ 删除行
+
+
+
+
+
+
+
+
+
+ *{{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/router/modules/resource.ts b/src/router/modules/resource.ts
index 1d75264..b403d3f 100644
--- a/src/router/modules/resource.ts
+++ b/src/router/modules/resource.ts
@@ -655,6 +655,40 @@
},
},
{
+ path: 'consumableApplyList',
+ name: 'ConsumableApplyList',
+ component: () => import('@/views/resource/outsideService/consumable/applyList.vue'),
+ meta: {
+ title: '易耗物资申请单',
+ auth: '/resource/outsideService/consumableApply',
+ icon: 'ep:key',
+ },
+ },
+ {
+ path: 'consumableApply/:type/:id?/:status?',
+ name: 'ConsumableApplyDetail',
+ component: () => import('@/views/resource/outsideService/consumable/applyDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
+ path: 'consumableApply/approved/:type?/:id?',
+ name: 'ConsumableApplyDetailApproved',
+ component: () => import('@/views/resource/outsideService/consumable/approvedDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
path: 'consumableEvaluateList',
name: 'ConsumableEvaluateList',
component: () => import('@/views/resource/outsideService/consumable/evaluateList.vue'),
diff --git a/src/views/resource/outsideService/consumable/applyDetail.vue b/src/views/resource/outsideService/consumable/applyDetail.vue
new file mode 100644
index 0000000..241d195
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyDetail.vue
@@ -0,0 +1,669 @@
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 提交
+
+
+ 保存
+
+
+
+ 删除
+
+
+ 取消
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增加行
+
+
+ 删除行
+
+
+
+
+
+
+
+
+
+ *{{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/applyList.vue b/src/views/resource/outsideService/consumable/applyList.vue
new file mode 100644
index 0000000..d6cba40
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyList.vue
@@ -0,0 +1,533 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 展开物资
+
+
+ 收起展开
+
+
+
+ 查看
+
+
+
+ 删除
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/router/modules/resource.ts b/src/router/modules/resource.ts
index 1d75264..b403d3f 100644
--- a/src/router/modules/resource.ts
+++ b/src/router/modules/resource.ts
@@ -655,6 +655,40 @@
},
},
{
+ path: 'consumableApplyList',
+ name: 'ConsumableApplyList',
+ component: () => import('@/views/resource/outsideService/consumable/applyList.vue'),
+ meta: {
+ title: '易耗物资申请单',
+ auth: '/resource/outsideService/consumableApply',
+ icon: 'ep:key',
+ },
+ },
+ {
+ path: 'consumableApply/:type/:id?/:status?',
+ name: 'ConsumableApplyDetail',
+ component: () => import('@/views/resource/outsideService/consumable/applyDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
+ path: 'consumableApply/approved/:type?/:id?',
+ name: 'ConsumableApplyDetailApproved',
+ component: () => import('@/views/resource/outsideService/consumable/approvedDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
path: 'consumableEvaluateList',
name: 'ConsumableEvaluateList',
component: () => import('@/views/resource/outsideService/consumable/evaluateList.vue'),
diff --git a/src/views/resource/outsideService/consumable/applyDetail.vue b/src/views/resource/outsideService/consumable/applyDetail.vue
new file mode 100644
index 0000000..241d195
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyDetail.vue
@@ -0,0 +1,669 @@
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 提交
+
+
+ 保存
+
+
+
+ 删除
+
+
+ 取消
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增加行
+
+
+ 删除行
+
+
+
+
+
+
+
+
+
+ *{{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/applyList.vue b/src/views/resource/outsideService/consumable/applyList.vue
new file mode 100644
index 0000000..d6cba40
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyList.vue
@@ -0,0 +1,533 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 展开物资
+
+
+ 收起展开
+
+
+
+ 查看
+
+
+
+ 删除
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/approvedDetail.vue b/src/views/resource/outsideService/consumable/approvedDetail.vue
index dd66210..4f5673c 100644
--- a/src/views/resource/outsideService/consumable/approvedDetail.vue
+++ b/src/views/resource/outsideService/consumable/approvedDetail.vue
@@ -3,11 +3,14 @@
import { ElMessage } from 'element-plus'
// 从路由中传过来的参数
+const type = ref('')
const id = ref('')
const route = useRoute()
const router = useRouter()
+const title = ref('')
+
// 逻辑
// 关闭
const resetForm = () => {
@@ -31,7 +34,22 @@
const initDialog = (params: any) => {
// 从路由中获取参数
+ type.value = params.type !== undefined ? params.type : ''
id.value = params.id !== undefined ? params.id : ''
+
+ switch (type.value) {
+ case 'evaluate':
+ title.value = '易耗物资供方评价表'
+ break
+
+ case 'apply' :
+ title.value = '易耗物资申请单'
+ break
+
+ case 'use':
+ title.value = '易耗物资使用记录'
+ break
+ }
}
onMounted(() => {
@@ -41,7 +59,7 @@
-
+
导出Word
diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/router/modules/resource.ts b/src/router/modules/resource.ts
index 1d75264..b403d3f 100644
--- a/src/router/modules/resource.ts
+++ b/src/router/modules/resource.ts
@@ -655,6 +655,40 @@
},
},
{
+ path: 'consumableApplyList',
+ name: 'ConsumableApplyList',
+ component: () => import('@/views/resource/outsideService/consumable/applyList.vue'),
+ meta: {
+ title: '易耗物资申请单',
+ auth: '/resource/outsideService/consumableApply',
+ icon: 'ep:key',
+ },
+ },
+ {
+ path: 'consumableApply/:type/:id?/:status?',
+ name: 'ConsumableApplyDetail',
+ component: () => import('@/views/resource/outsideService/consumable/applyDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
+ path: 'consumableApply/approved/:type?/:id?',
+ name: 'ConsumableApplyDetailApproved',
+ component: () => import('@/views/resource/outsideService/consumable/approvedDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
path: 'consumableEvaluateList',
name: 'ConsumableEvaluateList',
component: () => import('@/views/resource/outsideService/consumable/evaluateList.vue'),
diff --git a/src/views/resource/outsideService/consumable/applyDetail.vue b/src/views/resource/outsideService/consumable/applyDetail.vue
new file mode 100644
index 0000000..241d195
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyDetail.vue
@@ -0,0 +1,669 @@
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 提交
+
+
+ 保存
+
+
+
+ 删除
+
+
+ 取消
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增加行
+
+
+ 删除行
+
+
+
+
+
+
+
+
+
+ *{{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/applyList.vue b/src/views/resource/outsideService/consumable/applyList.vue
new file mode 100644
index 0000000..d6cba40
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyList.vue
@@ -0,0 +1,533 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 展开物资
+
+
+ 收起展开
+
+
+
+ 查看
+
+
+
+ 删除
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/approvedDetail.vue b/src/views/resource/outsideService/consumable/approvedDetail.vue
index dd66210..4f5673c 100644
--- a/src/views/resource/outsideService/consumable/approvedDetail.vue
+++ b/src/views/resource/outsideService/consumable/approvedDetail.vue
@@ -3,11 +3,14 @@
import { ElMessage } from 'element-plus'
// 从路由中传过来的参数
+const type = ref('')
const id = ref('')
const route = useRoute()
const router = useRouter()
+const title = ref('')
+
// 逻辑
// 关闭
const resetForm = () => {
@@ -31,7 +34,22 @@
const initDialog = (params: any) => {
// 从路由中获取参数
+ type.value = params.type !== undefined ? params.type : ''
id.value = params.id !== undefined ? params.id : ''
+
+ switch (type.value) {
+ case 'evaluate':
+ title.value = '易耗物资供方评价表'
+ break
+
+ case 'apply' :
+ title.value = '易耗物资申请单'
+ break
+
+ case 'use':
+ title.value = '易耗物资使用记录'
+ break
+ }
}
onMounted(() => {
@@ -41,7 +59,7 @@
-
+
导出Word
diff --git a/src/views/resource/outsideService/consumable/consumable-interface.ts b/src/views/resource/outsideService/consumable/consumable-interface.ts
index c4c4a39..052a237 100644
--- a/src/views/resource/outsideService/consumable/consumable-interface.ts
+++ b/src/views/resource/outsideService/consumable/consumable-interface.ts
@@ -1,3 +1,4 @@
+/* -------------------------------- 供方评价表 -------------------------------- */
export interface IListQuery {
formNo: string
formName: string
@@ -44,3 +45,57 @@
createTime?: string
decisionItem?: number
}
+
+/* -------------------------------- 申请单 -------------------------------- */
+export interface IApplyListQuery {
+ applyNo: string
+ applyName: string
+ createUserName: string
+ createDept: string
+ createTimeStart: string
+ createTimeEnd: string
+ approvalStatus: string
+ formId: string
+ offset: number
+ limit: number
+ sort?: string
+ order?: string
+}
+
+export interface IConsumableApplyGoods {
+ id: string
+ applyId?: string
+ goodsName: string
+ goodsModel: string
+ goodsQuantity: string
+ supplierId?: string
+ supplierName: string
+ remark: string
+ createTime: string
+}
+
+export interface IConsumableApply {
+ id: string
+ labCode: string
+ labCodeName?: string
+ groupCode: string
+ groupCodeName?: string
+ applyNo: string
+ applyName: string
+ createDeptId: string
+ createDept?: string
+ applyReason: string
+ goodsDetailList: Array
+ goodsName?: string
+ goodsModel?: string
+ goodsQuantity?: string
+ remark: string
+ approvalStatus?: string
+ approvalStatusName?: string
+ processId?: string
+ taskId?: string
+ createUserId?: string
+ createUserName?: string
+ createTime?: string
+ decisionItem?: number
+}
diff --git a/src/api/resource/supplierConsumable.ts b/src/api/resource/supplierConsumable.ts
index 8949fa8..37ce1eb 100644
--- a/src/api/resource/supplierConsumable.ts
+++ b/src/api/resource/supplierConsumable.ts
@@ -1,10 +1,11 @@
import request from '../index'
-const prefix = 'resource/supplier/consumableGoodsEvaluate'
+const prefix = 'resource/supplier/consumableGoods'
+/* -------------------------------- 供方评价表 -------------------------------- */
// 查询列表
export function getConsumableEvaluateList(data: any) {
return request({
- url: `${prefix}/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ url: `${prefix}Evaluate/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
method: 'post',
data,
})
@@ -13,7 +14,7 @@
// 详情
export function detailConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/detail`,
+ url: `${prefix}Evaluate/detail`,
method: 'post',
data,
})
@@ -22,7 +23,7 @@
// 保存至草稿箱
export function saveConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/save`,
+ url: `${prefix}Evaluate/save`,
method: 'post',
data,
})
@@ -31,7 +32,7 @@
// 提交流程
export function submitConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/submit`,
+ url: `${prefix}Evaluate/submit`,
method: 'post',
data,
})
@@ -40,7 +41,7 @@
// 草稿箱编辑(不走流程审批)
export function updateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/draftUpdate`,
+ url: `${prefix}Evaluate/draftUpdate`,
method: 'post',
data,
})
@@ -49,7 +50,7 @@
// 未通过供方编辑(重走流程审批)
export function failUpdateConsumableEvaluate(data: object) {
return request({
- url: `${prefix}/failUpdate`,
+ url: `${prefix}Evaluate/failUpdate`,
method: 'post',
data,
})
@@ -58,7 +59,7 @@
// 删除草稿箱
export function draftDelete(data: object) {
return request({
- url: `${prefix}/draftDelete`,
+ url: `${prefix}Evaluate/draftDelete`,
method: 'post',
data,
})
@@ -67,7 +68,7 @@
// 删除已取消
export function canceledApprDelete(data: object) {
return request({
- url: `${prefix}/approval/delete`,
+ url: `${prefix}Evaluate/approval/delete`,
method: 'post',
data,
})
@@ -76,7 +77,7 @@
// 发起者撤回,表单状态更改为已取消
export function revokeApproval(data: object) {
return request({
- url: `${prefix}/approval/revoke`,
+ url: `${prefix}Evaluate/approval/revoke`,
method: 'post',
data,
})
@@ -85,7 +86,98 @@
// 设备供方审批-拒绝
export function refuseApproval(data: object) {
return request({
- url: `${prefix}/approval/refuse`,
+ url: `${prefix}Evaluate/approval/refuse`,
+ method: 'post',
+ data,
+ })
+}
+
+/* -------------------------------- 申请单 -------------------------------- */
+// 查询申请单列表
+export function getConsumableApplyList(data: any) {
+ return request({
+ url: `${prefix}Apply/approval/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+
+// 详情
+export function detailConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/detail`,
+ method: 'post',
+ data,
+ })
+}
+
+// 保存至草稿箱
+export function saveConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/save`,
+ method: 'post',
+ data,
+ })
+}
+
+// 提交流程
+export function submitConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/submit`,
+ method: 'post',
+ data,
+ })
+}
+
+// 草稿箱编辑(不走流程审批)
+export function updateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 未通过供方编辑(重走流程审批)
+export function failUpdateConsumableApply(data: object) {
+ return request({
+ url: `${prefix}Apply/failUpdate`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除草稿箱
+export function draftDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/draftDelete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 删除已取消
+export function canceledApprDeleteApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/delete`,
+ method: 'post',
+ data,
+ })
+}
+
+// 发起者撤回,表单状态更改为已取消
+export function revokeApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/revoke`,
+ method: 'post',
+ data,
+ })
+}
+
+// 设备供方审批-拒绝
+export function refuseApprovalApply(data: object) {
+ return request({
+ url: `${prefix}Apply/approval/refuse`,
method: 'post',
data,
})
diff --git a/src/router/modules/resource.ts b/src/router/modules/resource.ts
index 1d75264..b403d3f 100644
--- a/src/router/modules/resource.ts
+++ b/src/router/modules/resource.ts
@@ -655,6 +655,40 @@
},
},
{
+ path: 'consumableApplyList',
+ name: 'ConsumableApplyList',
+ component: () => import('@/views/resource/outsideService/consumable/applyList.vue'),
+ meta: {
+ title: '易耗物资申请单',
+ auth: '/resource/outsideService/consumableApply',
+ icon: 'ep:key',
+ },
+ },
+ {
+ path: 'consumableApply/:type/:id?/:status?',
+ name: 'ConsumableApplyDetail',
+ component: () => import('@/views/resource/outsideService/consumable/applyDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
+ path: 'consumableApply/approved/:type?/:id?',
+ name: 'ConsumableApplyDetailApproved',
+ component: () => import('@/views/resource/outsideService/consumable/approvedDetail.vue'),
+ meta: {
+ title: '易耗物资申请单详情',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/outsideService/consumableApplyList',
+ },
+ },
+ {
path: 'consumableEvaluateList',
name: 'ConsumableEvaluateList',
component: () => import('@/views/resource/outsideService/consumable/evaluateList.vue'),
diff --git a/src/views/resource/outsideService/consumable/applyDetail.vue b/src/views/resource/outsideService/consumable/applyDetail.vue
new file mode 100644
index 0000000..241d195
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyDetail.vue
@@ -0,0 +1,669 @@
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 提交
+
+
+ 保存
+
+
+
+ 删除
+
+
+ 取消
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增加行
+
+
+ 删除行
+
+
+
+
+
+
+
+
+
+ *{{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/applyList.vue b/src/views/resource/outsideService/consumable/applyList.vue
new file mode 100644
index 0000000..d6cba40
--- /dev/null
+++ b/src/views/resource/outsideService/consumable/applyList.vue
@@ -0,0 +1,533 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 展开物资
+
+
+ 收起展开
+
+
+
+ 查看
+
+
+
+ 删除
+
+
+
+
+ 同意
+
+
+ 拒绝
+
+
+
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/resource/outsideService/consumable/approvedDetail.vue b/src/views/resource/outsideService/consumable/approvedDetail.vue
index dd66210..4f5673c 100644
--- a/src/views/resource/outsideService/consumable/approvedDetail.vue
+++ b/src/views/resource/outsideService/consumable/approvedDetail.vue
@@ -3,11 +3,14 @@
import { ElMessage } from 'element-plus'
// 从路由中传过来的参数
+const type = ref('')
const id = ref('')
const route = useRoute()
const router = useRouter()
+const title = ref('')
+
// 逻辑
// 关闭
const resetForm = () => {
@@ -31,7 +34,22 @@
const initDialog = (params: any) => {
// 从路由中获取参数
+ type.value = params.type !== undefined ? params.type : ''
id.value = params.id !== undefined ? params.id : ''
+
+ switch (type.value) {
+ case 'evaluate':
+ title.value = '易耗物资供方评价表'
+ break
+
+ case 'apply' :
+ title.value = '易耗物资申请单'
+ break
+
+ case 'use':
+ title.value = '易耗物资使用记录'
+ break
+ }
}
onMounted(() => {
@@ -41,7 +59,7 @@
-
+
导出Word
diff --git a/src/views/resource/outsideService/consumable/consumable-interface.ts b/src/views/resource/outsideService/consumable/consumable-interface.ts
index c4c4a39..052a237 100644
--- a/src/views/resource/outsideService/consumable/consumable-interface.ts
+++ b/src/views/resource/outsideService/consumable/consumable-interface.ts
@@ -1,3 +1,4 @@
+/* -------------------------------- 供方评价表 -------------------------------- */
export interface IListQuery {
formNo: string
formName: string
@@ -44,3 +45,57 @@
createTime?: string
decisionItem?: number
}
+
+/* -------------------------------- 申请单 -------------------------------- */
+export interface IApplyListQuery {
+ applyNo: string
+ applyName: string
+ createUserName: string
+ createDept: string
+ createTimeStart: string
+ createTimeEnd: string
+ approvalStatus: string
+ formId: string
+ offset: number
+ limit: number
+ sort?: string
+ order?: string
+}
+
+export interface IConsumableApplyGoods {
+ id: string
+ applyId?: string
+ goodsName: string
+ goodsModel: string
+ goodsQuantity: string
+ supplierId?: string
+ supplierName: string
+ remark: string
+ createTime: string
+}
+
+export interface IConsumableApply {
+ id: string
+ labCode: string
+ labCodeName?: string
+ groupCode: string
+ groupCodeName?: string
+ applyNo: string
+ applyName: string
+ createDeptId: string
+ createDept?: string
+ applyReason: string
+ goodsDetailList: Array
+ goodsName?: string
+ goodsModel?: string
+ goodsQuantity?: string
+ remark: string
+ approvalStatus?: string
+ approvalStatusName?: string
+ processId?: string
+ taskId?: string
+ createUserId?: string
+ createUserName?: string
+ createTime?: string
+ decisionItem?: number
+}
diff --git a/src/views/resource/outsideService/consumable/evaluateList.vue b/src/views/resource/outsideService/consumable/evaluateList.vue
index 5b67e31..abb04b8 100644
--- a/src/views/resource/outsideService/consumable/evaluateList.vue
+++ b/src/views/resource/outsideService/consumable/evaluateList.vue
@@ -88,6 +88,7 @@
else if (active.value === '0') {
router.push({
query: {
+ type: 'evaluate',
id: row.id,
},
path: 'consumable/approved',