修改添加页面
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
<el-button
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog('add')">
|
||||
@click="handleAdd">
|
||||
新增
|
||||
</el-button>
|
||||
<right-toolbar v-model:showSearch="showSearch" class="ml10" @queryTable="getDataList" />
|
||||
@@ -220,6 +220,7 @@
|
||||
|
||||
<script setup lang="ts" name="PurchasingRequisition">
|
||||
import { ref, reactive, defineAsyncComponent } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table";
|
||||
import { getPage, delObj } from "/@/api/finance/purchasingrequisition";
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message";
|
||||
@@ -229,6 +230,7 @@ import { List, Document, DocumentCopy, Search, Collection, Money, CircleCheck, I
|
||||
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
|
||||
|
||||
// 定义变量内容
|
||||
const router = useRouter()
|
||||
const tableRef = ref()
|
||||
const formDialogRef = ref()
|
||||
const searchFormRef = ref()
|
||||
@@ -262,6 +264,15 @@ const handleReset = () => {
|
||||
getDataList();
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增采购申请 - 跳转到新页面
|
||||
*/
|
||||
const handleAdd = () => {
|
||||
router.push({
|
||||
path: '/finance/purchasingrequisition/add'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除当前行
|
||||
* @param row - 当前行数据
|
||||
|
||||
Reference in New Issue
Block a user