审批重构

This commit is contained in:
Teo
2025-08-18 19:59:57 +08:00
parent 174ef50f6f
commit 806ed029cf
27 changed files with 142 additions and 88 deletions

View File

@ -441,7 +441,7 @@ const handleAudit = async () => {
return;
}
proxy?.$tab.closePage(route);
proxy?.$tab.openPage('/materials-management/batchPlan/indexEdit', '审核物资设备批次需求计划', {
proxy?.$tab.openPage('/approval/batchPlan/indexEdit', '审核物资设备批次需求计划', {
id: queryParams.value.mainData.mrpBaseId,
status: form.value.mrpBaseBo.status + '_batchRequirements',
type: 'update'

View File

@ -425,7 +425,7 @@ const handleAudit = async () => {
return;
}
proxy?.$tab.closePage(proxy.$route);
proxy?.$tab.openPage('/materials-management/cailiaoshebei/indexEdit', '审核材料设备设计', {
proxy?.$tab.openPage('/approval/cailiaoshebei/indexEdit', '审核材料设备设计', {
id: form.value.batchNumber + '_materialDesign',
approvalDesign: form.value.approvalDesign,
type: 'update'

View File

@ -132,16 +132,7 @@
</template>
<script setup name="Cailiaoshebei" lang="ts">
import {
listCailiaoshebei,
getCailiaoshebei,
delCailiaoshebei,
addCailiaoshebei,
updateCailiaoshebei,
listBatch,
getBatch,
delBatch
} from '@/api/materials/orderEquipment';
import { listCailiaoshebei, delCailiaoshebei, addCailiaoshebei, listBatch, getBatch, delBatch } from '@/api/materials/orderEquipment';
import { CailiaoshebeiVO, CailiaoshebeiQuery, CailiaoshebeiForm } from '@/api/materials/orderEquipment/types';
import { listContractor } from '@/api/project/contractor';
@ -355,7 +346,7 @@ const handleAudit = async () => {
}
proxy?.$tab.closePage(proxy.$route);
proxy?.$tab.openPage('/materials-management/orderEquipment/indexEdit', '审核物资订货', {
proxy?.$tab.openPage('/approval/orderEquipment/indexEdit', '审核物资订货', {
id: form.value.batchNumber,
approvalOrder: form.value.approvalOrder + '_equipmentOrdering',
type: 'update'

View File

@ -306,7 +306,7 @@ const handleClose = () => {
function clickApprovalSheet1() {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/materials/overallPlanMaterialSupply/indexEdit`,
path: `/approval/overallPlanMaterialSupply/indexEdit`,
query: {
id: state.masterData.id,
type: 'update'
@ -316,7 +316,7 @@ function clickApprovalSheet1() {
// 审核流程
function lookApprovalFlow() {
proxy.$router.push({
path: `/materials/overallPlanMaterialSupply/indexEdit`,
path: `/approval/overallPlanMaterialSupply/indexEdit`,
query: {
id: state.masterData.id,
type: 'view'

View File

@ -525,7 +525,7 @@ const handleSuccess = (list, res: any) => {
/** 审核按钮操作 */
const handleAudit = async (row?: PurchaseDocVO) => {
proxy?.$tab.closePage(route);
proxy?.$tab.openPage('/materials/purchaseDoc/indexEdit', '审核采购联系单', {
proxy?.$tab.openPage('/approval/purchaseDoc/indexEdit', '审核采购联系单', {
id: row.id,
type: 'update'
});
@ -533,7 +533,7 @@ const handleAudit = async (row?: PurchaseDocVO) => {
/** 审核按钮操作 */
const handleViewDetail = async (row?: PurchaseDocVO) => {
proxy?.$tab.closePage(route);
proxy?.$tab.openPage('/materials/purchaseDoc/indexEdit', '审核采购联系单', {
proxy?.$tab.openPage('/approval/purchaseDoc/indexEdit', '审核采购联系单', {
id: row.id,
type: 'view'
});

View File

@ -474,7 +474,7 @@ const handleAudit = async () => {
}
proxy?.$tab.closePage(proxy.$route);
proxy?.$tab.openPage('/materials-management/suppliesprice/indexEdit', '审核物资供应总计划', {
proxy?.$tab.openPage('/approval/suppliesprice/indexEdit', '审核物资供应总计划', {
id: form.value.batchNumber,
approvalPlan: form.value.approvalPlan + '_materialsPlans',
type: 'update'