|
|
@ -26,7 +26,15 @@ |
|
|
|
<!-- 列表 --> |
|
|
|
<ContentWrap> |
|
|
|
<el-table v-clientTable v-loading="loading" :data="list" :default-sort="{ prop: 'priority', order: 'null' }"> |
|
|
|
<el-table-column align="center" :label="t('ts.策略代码')" prop="strategyCode" show-overflow-tooltip width="150px" /> |
|
|
|
<el-table-column align="center" :label="t('ts.策略代码')" prop="strategyCode" show-overflow-tooltip width="150px"> |
|
|
|
<template #default="{row}"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '策略代码', row.strategyCode)"> |
|
|
|
<span>{{ row.strategyCode }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column align="center" :label="t('ts.策略名称')" prop="name" show-overflow-tooltip width="150px" /> |
|
|
|
<el-table-column align="center" :label="t('ts.策略描述')" prop="description" show-overflow-tooltip width="150px" /> |
|
|
|
<el-table-column align="center" :label="t('ts.优先级')" prop="priority" sortable width="120"/> |
|
|
@ -68,7 +76,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
|
import AddForm from './AddForm.vue' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
// 采购策略 |
|
|
|
defineOptions({ name: 'SupplieDeliveryStrategy' }) |
|
|
|
const queryFormRef = ref() // 搜索的表单 |
|
|
|
|
|
|
@ -110,8 +118,14 @@ const resetQuery = () => { |
|
|
|
const formRef = ref() |
|
|
|
const openForm = (type: string, strategyCode: string, id: number) => { |
|
|
|
formRef.value.open(type, strategyCode, id) |
|
|
|
} |
|
|
|
formRef.value.setDetailStatus(false) |
|
|
|
|
|
|
|
} |
|
|
|
/** 详情操作 */ |
|
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
|
openForm('update', queryParams.strategyCode, row.id) |
|
|
|
formRef.value.setDetailStatus(true) |
|
|
|
} |
|
|
|
/** 删除按钮操作 */ |
|
|
|
const handleDelete = async (id: number) => { |
|
|
|
try { |
|
|
|