权限添加

This commit is contained in:
2025-08-15 23:14:44 +08:00
4 changed files with 528 additions and 524 deletions

View File

@ -149,7 +149,6 @@
<script setup>
import { ref, reactive, onMounted, computed, toRaw } from 'vue';
import { ElMessage, ElMessageBox } from 'element-plus';
import { WarningFilled } from '@element-plus/icons-vue';
import { useUserStoreHook } from '@/store/modules/user';
import { useRouter } from 'vue-router';
const userStore = useUserStoreHook();
@ -441,7 +440,7 @@ const handleDialogClose = () => {
// 跳转
const jumpRouter = (row) => {
router.push({
path: `/materials/materialSon`,
path: `/materials/usageMaterials/materialIndexSon`,
query: {
id: row.id,
type: 'update'

View File

@ -159,7 +159,6 @@
@size-change="handleSizeChange" @current-change="handleCurrentChange" small></el-pagination>
</div>
</div>
</div>
<el-dialog v-model="dialogVisible2" :title="dialogType2 === 'addSon' ? '新增采购信息' : '编辑采购信息'" :width="dialogWidth"
:fullscreen="isFullscreen" :close-on-click-modal="false" :before-close="handleClose" destroy-on-close>
<!-- 表单内容 -->
@ -341,7 +340,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="供应商备注" prop="gysRemark">
<el-input v-model="form.gysRemark" placeholder="请输入供应商备注" type="textarea" rows="4"></el-input>
<el-input v-model="form.gysRemark" placeholder="请输入供应商备注" type="textarea"
rows="4"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -368,6 +368,8 @@
</div>
</template>
</el-dialog>
</div>
</template>
<script setup>
import { ref, reactive, onMounted, toRaw, getCurrentInstance } from 'vue';

View File

@ -61,7 +61,6 @@
@current-change="handleCurrentChange"></el-pagination>
</div>
</div>
</div>
<!-- 新增/编辑对话框 -->
<el-dialog v-model="dialogVisible" :title="dialogType === 'add' ? '新增记录' : '编辑记录'" :width="dialogWidth"
:fullscreen="isFullscreen" :before-close="handleDialogClose">
@ -122,7 +121,8 @@
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="供货要求" prop="supplyRequirements">
<el-input v-model="formData.supplyRequirements" placeholder="请输入供货要求" type="textarea" :rows="3"></el-input>
<el-input v-model="formData.supplyRequirements" placeholder="请输入供货要求" type="textarea"
:rows="3"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -142,6 +142,8 @@
</div>
</template>
</el-dialog>
</div>
</template>
<script setup>
@ -159,6 +161,7 @@ const total = ref(0);
const currentPage = ref(1);
const pageSize = ref(10);
const loading = ref(false);
const saveLoading = ref(false);
// 搜索表单
const searchForm = reactive({
@ -436,7 +439,7 @@ const handleDialogClose = () => {
// 跳转
const jumpRouter = (row) => {
router.push({
path: `/materials/purchaseSon`,
path: `/materials/usageMaterials/purchaseIndexSon`,
query: {
id: row.id,
type: 'update'
@ -449,5 +452,4 @@ onMounted(() => {
});
</script>
<style scoped>
</style>
<style scoped></style>

View File

@ -159,7 +159,6 @@
@size-change="handleSizeChange" @current-change="handleCurrentChange" small></el-pagination>
</div>
</div>
</div>
<!-- 删除确认对话框 -->
<el-dialog v-model="deleteDialogVisible2" title="确认删除" width="300px" :show-close="false">
<div class="text-center py-4">
@ -359,7 +358,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="供应商备注" prop="gysRemark">
<el-input v-model="form.gysRemark" placeholder="请输入供应商备注" type="textarea" rows="4"></el-input>
<el-input v-model="form.gysRemark" placeholder="请输入供应商备注" type="textarea"
rows="4"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -386,6 +386,8 @@
</div>
</template>
</el-dialog>
</div>
</template>
<script setup>
import { ref, reactive, onMounted, toRaw, getCurrentInstance } from 'vue';
@ -586,5 +588,4 @@ onMounted(() => {
console.log('routeParams.value', routeParams.value);
materialsUsageDetails1();
})
</script>