权限添加
This commit is contained in:
@ -149,7 +149,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive, onMounted, computed, toRaw } from 'vue';
|
import { ref, reactive, onMounted, computed, toRaw } from 'vue';
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||||
import { WarningFilled } from '@element-plus/icons-vue';
|
|
||||||
import { useUserStoreHook } from '@/store/modules/user';
|
import { useUserStoreHook } from '@/store/modules/user';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
const userStore = useUserStoreHook();
|
const userStore = useUserStoreHook();
|
||||||
@ -441,7 +440,7 @@ const handleDialogClose = () => {
|
|||||||
// 跳转
|
// 跳转
|
||||||
const jumpRouter = (row) => {
|
const jumpRouter = (row) => {
|
||||||
router.push({
|
router.push({
|
||||||
path: `/materials/materialSon`,
|
path: `/materials/usageMaterials/materialIndexSon`,
|
||||||
query: {
|
query: {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
type: 'update'
|
type: 'update'
|
||||||
|
@ -159,7 +159,6 @@
|
|||||||
@size-change="handleSizeChange" @current-change="handleCurrentChange" small></el-pagination>
|
@size-change="handleSizeChange" @current-change="handleCurrentChange" small></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<el-dialog v-model="dialogVisible2" :title="dialogType2 === 'addSon' ? '新增采购信息' : '编辑采购信息'" :width="dialogWidth"
|
<el-dialog v-model="dialogVisible2" :title="dialogType2 === 'addSon' ? '新增采购信息' : '编辑采购信息'" :width="dialogWidth"
|
||||||
:fullscreen="isFullscreen" :close-on-click-modal="false" :before-close="handleClose" destroy-on-close>
|
:fullscreen="isFullscreen" :close-on-click-modal="false" :before-close="handleClose" destroy-on-close>
|
||||||
<!-- 表单内容 -->
|
<!-- 表单内容 -->
|
||||||
@ -341,7 +340,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="供应商备注" prop="gysRemark">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -368,6 +368,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive, onMounted, toRaw, getCurrentInstance } from 'vue';
|
import { ref, reactive, onMounted, toRaw, getCurrentInstance } from 'vue';
|
||||||
|
@ -61,7 +61,6 @@
|
|||||||
@current-change="handleCurrentChange"></el-pagination>
|
@current-change="handleCurrentChange"></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- 新增/编辑对话框 -->
|
<!-- 新增/编辑对话框 -->
|
||||||
<el-dialog v-model="dialogVisible" :title="dialogType === 'add' ? '新增记录' : '编辑记录'" :width="dialogWidth"
|
<el-dialog v-model="dialogVisible" :title="dialogType === 'add' ? '新增记录' : '编辑记录'" :width="dialogWidth"
|
||||||
:fullscreen="isFullscreen" :before-close="handleDialogClose">
|
:fullscreen="isFullscreen" :before-close="handleDialogClose">
|
||||||
@ -122,7 +121,8 @@
|
|||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="供货要求" prop="supplyRequirements">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -142,6 +142,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -159,6 +161,7 @@ const total = ref(0);
|
|||||||
const currentPage = ref(1);
|
const currentPage = ref(1);
|
||||||
const pageSize = ref(10);
|
const pageSize = ref(10);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
const saveLoading = ref(false);
|
||||||
|
|
||||||
// 搜索表单
|
// 搜索表单
|
||||||
const searchForm = reactive({
|
const searchForm = reactive({
|
||||||
@ -436,7 +439,7 @@ const handleDialogClose = () => {
|
|||||||
// 跳转
|
// 跳转
|
||||||
const jumpRouter = (row) => {
|
const jumpRouter = (row) => {
|
||||||
router.push({
|
router.push({
|
||||||
path: `/materials/purchaseSon`,
|
path: `/materials/usageMaterials/purchaseIndexSon`,
|
||||||
query: {
|
query: {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
type: 'update'
|
type: 'update'
|
||||||
@ -449,5 +452,4 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
</style>
|
|
||||||
|
@ -159,7 +159,6 @@
|
|||||||
@size-change="handleSizeChange" @current-change="handleCurrentChange" small></el-pagination>
|
@size-change="handleSizeChange" @current-change="handleCurrentChange" small></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- 删除确认对话框 -->
|
<!-- 删除确认对话框 -->
|
||||||
<el-dialog v-model="deleteDialogVisible2" title="确认删除" width="300px" :show-close="false">
|
<el-dialog v-model="deleteDialogVisible2" title="确认删除" width="300px" :show-close="false">
|
||||||
<div class="text-center py-4">
|
<div class="text-center py-4">
|
||||||
@ -359,7 +358,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="供应商备注" prop="gysRemark">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -386,6 +386,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive, onMounted, toRaw, getCurrentInstance } from 'vue';
|
import { ref, reactive, onMounted, toRaw, getCurrentInstance } from 'vue';
|
||||||
@ -586,5 +588,4 @@ onMounted(() => {
|
|||||||
console.log('routeParams.value', routeParams.value);
|
console.log('routeParams.value', routeParams.value);
|
||||||
materialsUsageDetails1();
|
materialsUsageDetails1();
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
Reference in New Issue
Block a user