物资使用情况不显示问题

This commit is contained in:
2025-08-15 22:48:31 +08:00
23 changed files with 96 additions and 73 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="p-6 bg-gray-50 h100%">
<div class="appWidth mx-auto mt-50 bg-white rounded-xl shadow-sm overflow-hidden transition-all duration-300 hover:shadow-md">
<div class="p-6 bg-gray-50 main">
<div class="appWidth mx-auto mt-38 bg-white rounded-xl shadow-sm overflow-hidden transition-all duration-300 hover:shadow-md">
<!-- 表单标题区域 -->
<div class="bg-gradient-to-r from-blue-500 to-blue-600 text-white p-6">
<h2 class="text-2xl font-bold flex items-center"><i class="el-icon-user-circle mr-3"></i>人员配置</h2>
@ -12,7 +12,7 @@
<!-- 表单内容区域 -->
<el-form ref="leaveFormRef" :model="form" :rules="rules" label-width="120px" class="p-6 pt30 space-y-6 h75" :disabled="isDisabled">
<!-- 设计负责人 -->
<div class="fonts">
<div class="fonts w60% ma">
<el-form-item label="采购专员" prop="userId" class="mb-4">
<el-select
v-model="form.userId"
@ -185,6 +185,9 @@ onUnmounted(() => {
</script>
<style lang="scss">
.main {
height: calc(100vh - 90px);
}
.appWidth {
width: 50vw;
max-width: 1200px;

View File

@ -125,7 +125,7 @@
>
</el-col>
<el-col :span="1.5">
<el-button plain type="warning" icon="Finished" @click="handleAudit()" v-hasPermi="['out:monthPlan:remove']">审核</el-button>
<el-button plain type="warning" icon="Finished" @click="handleAudit()">审核</el-button>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>

View File

@ -61,7 +61,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="查看" placement="top">
<el-button link type="primary" icon="View" @click="handleView(scope.row)"></el-button>
<el-button link type="primary" icon="View" @click="handleView(scope.row)" v-hasPermi="['materials:materialIssue:query']"></el-button>
</el-tooltip>
<el-tooltip content="修改" placement="top">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['materials:materialIssue:edit']"></el-button>

View File

@ -69,7 +69,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="查看" placement="top">
<el-button link type="primary" icon="View" @click="handleView(scope.row)"></el-button>
<el-button link type="primary" icon="View" @click="handleView(scope.row)" v-hasPermi="['materials:materialReceive:query']"></el-button>
</el-tooltip>
<!-- <el-tooltip content="修改" placement="top">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['materials:materialReceive:edit']"></el-button>

View File

@ -135,18 +135,7 @@
<el-option label="退货单" value="2" />
</el-select>
</el-form-item>
<el-form-item
label="上传单据"
prop="file"
v-if="form.bo.materialStatus < 4 || form.bo.materialStatus == 10"
:rules="[
{
required: isFileRequired,
message: '请上传单据',
trigger: 'blur'
}
]"
>
<el-form-item label="上传单据" prop="file" v-if="form.bo.materialStatus < 4 || form.bo.materialStatus == 10">
<file-upload
v-model="form.file"
:fileType="['pdf', 'png', 'jpg', 'jpeg']"
@ -385,7 +374,11 @@ const submitForm = () => {
});
if (fileUploadRef.value) {
fileUploadRef.value!.submitUpload();
fileUploadRef.value!.submitUpload().then((res) => {
if (res == 'noFile') {
proxy?.$modal.msgError('请上传文件');
}
});
} else {
await addCailiaoshebei(form.value.bo).finally(() => (buttonLoading.value = false));
dialog.visible = false;

View File

@ -558,6 +558,8 @@ const listeningProject = watch(
queryParams.value.projectId = nid;
form.value.projectId = nid;
getList();
getSupplierList();
getBatchList();
}
);

View File

@ -152,7 +152,11 @@ const data = reactive<PageData<RepertoryDetailsForm, RepertoryDetailsQuery>>({
params: {}
},
rules: {
id: [{ required: true, message: 'ID不能为空', trigger: 'blur' }]
id: [{ required: true, message: 'ID不能为空', trigger: 'blur' }],
operationPhone: [
{ required: true, message: '请输入电话', trigger: 'blur' },
{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码', trigger: 'blur' }
]
}
});