|
|
@ -1,5 +1,26 @@ |
|
|
|
<!-- 检验策略策略 --> |
|
|
|
<template> |
|
|
|
<!-- 搜索工作栏 --> |
|
|
|
<ContentWrap> |
|
|
|
<el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" label-width="68px"> |
|
|
|
<el-form-item label="策略名称" prop="name"> |
|
|
|
<el-input v-model="queryParams.name" placeholder="请输入策略名称" clearable @keyup.enter="handleQuery" |
|
|
|
class="!w-240px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="优先级" prop="priority"> |
|
|
|
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" |
|
|
|
class="!w-240px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="info" plain @click="handleQuery"> |
|
|
|
<Icon icon="ep:search" class="mr-5px" /> 搜索 |
|
|
|
</el-button> |
|
|
|
<el-button type="info" plain @click="resetQuery"> |
|
|
|
<Icon icon="ep:refresh" class="mr-5px" /> 重置 |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</ContentWrap> |
|
|
|
<!-- 列表头部 --> |
|
|
|
<TableHead :HeadButttondata="HeadButttondata" @buttonBaseClick="buttonBaseClick" /> |
|
|
|
<!-- 列表 --> |
|
|
@ -33,10 +54,11 @@ import { DICT_TYPE } from '@/utils/dict' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
|
import AddForm from './AddForm.vue' |
|
|
|
// import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
defineOptions({ name: 'SupplieDeliveryStrategy' }) |
|
|
|
|
|
|
|
const queryFormRef = ref() // 搜索的表单 |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
|
|
|
@ -60,7 +82,17 @@ const getList = async () => { |
|
|
|
loading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
/** 搜索按钮操作 */ |
|
|
|
const handleQuery = () => { |
|
|
|
queryParams.pageNo = 1 |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
|
/** 重置按钮操作 */ |
|
|
|
const resetQuery = () => { |
|
|
|
queryFormRef.value.resetFields() |
|
|
|
handleQuery() |
|
|
|
} |
|
|
|
// 显示弹窗 |
|
|
|
const formRef = ref() |
|
|
|
const openForm = (type: string, strategyCode: string, id: number) => { |
|
|
@ -83,9 +115,6 @@ const handleDelete = async (id: number) => { |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn(null), // 新增 |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 头部按钮事件 |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
if (val == 'add') { // 新增 |
|
|
|