上传
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 搜索工作栏 -->
|
||||
<Search
|
||||
:schema="allSchemas.searchSchema"
|
||||
labelWidth="0"
|
||||
expand
|
||||
expand-field="supplier"
|
||||
@search="setSearchParams"
|
||||
@reset="setSearchParams"
|
||||
>
|
||||
<Search :schema="allSchemas.searchSchema" labelWidth="0">
|
||||
<template #actionMore>
|
||||
<el-button type="primary" @click="handleAdd">发起采购</el-button>
|
||||
<el-button @click="getList" v-hasPermi="['mall:purchase:search']"> 搜索 </el-button>
|
||||
<el-button @click="resetQuery" v-hasPermi="['mall:purchase:reset']"> 重置 </el-button>
|
||||
<el-button type="primary" @click="handleAdd" v-hasPermi="['mall:purchase:add']">
|
||||
发起采购
|
||||
</el-button>
|
||||
</template>
|
||||
</Search>
|
||||
<!-- 列表 -->
|
||||
@@ -31,11 +28,32 @@
|
||||
/>
|
||||
<el-table-column label="操作" width="150px" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" v-if="row.status == 1" link @click="handleAudit(row)"
|
||||
>采购审核</el-button
|
||||
<el-button
|
||||
type="primary"
|
||||
v-if="row.status == 1"
|
||||
link
|
||||
@click="handleAudit(row)"
|
||||
v-hasPermi="['mall:purchase:audit']"
|
||||
>
|
||||
<el-button v-else type="primary" link @click="purchaseAgain(row)">再次采购</el-button>
|
||||
<el-button type="primary" link @click="handleDetail(row)">详情</el-button>
|
||||
采购审核
|
||||
</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
type="primary"
|
||||
link
|
||||
@click="purchaseAgain(row)"
|
||||
v-hasPermi="['mall:purchase:readd']"
|
||||
>
|
||||
再次采购
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="handleDetail(row)"
|
||||
v-hasPermi="['mall:purchase:detail']"
|
||||
>
|
||||
详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</SSTable>
|
||||
@@ -59,7 +77,19 @@ const tableObject = ref({
|
||||
pageSize: 20,
|
||||
currentPage: 1
|
||||
})
|
||||
const setSearchParams = function () {
|
||||
|
||||
function resetQuery() {
|
||||
queryParams.value = {
|
||||
productName: undefined,
|
||||
productBrand: undefined,
|
||||
productCategory: undefined,
|
||||
pageNo: 1,
|
||||
pageSize: 10
|
||||
}
|
||||
getList()
|
||||
}
|
||||
|
||||
const getList = function () {
|
||||
tableObject.value.tableList = [
|
||||
{ name: '测试', status: 1, statusName: '审核中', supplier: '林氏木业', purchaseCount: 10 },
|
||||
{ name: '测试2', status: 2, statusName: '已通过', supplier: '张氏木业', purchaseCount: 1 },
|
||||
|
||||
Reference in New Issue
Block a user