|
@ -26,15 +26,28 @@ |
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
|
<ContentWrap> |
|
|
<ContentWrap> |
|
|
<el-table v-clientTable v-loading="loading" :data="list" :default-sort="{ prop: 'priority', order: 'null' }"> |
|
|
<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" /> |
|
|
<el-table-column align="center" :label="t('ts.策略代码')" prop="strategyCode" show-overflow-tooltip width="150px" /> |
|
|
<el-table-column align="center" :label="t('ts.策略名称')" prop="name" show-overflow-tooltip /> |
|
|
<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" /> |
|
|
<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/> |
|
|
<el-table-column align="center" :label="t('ts.优先级')" prop="priority" sortable width="120"/> |
|
|
<el-table-column align="center" :label="t('ts.状态')" prop="status"> |
|
|
<el-table-column align="center" :label="t('ts.状态')" prop="status"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" /> |
|
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" /> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
vue |
|
|
|
|
|
<el-table-column align="center" :label="t('ts.创建时间')" prop="createTime" width="200px" > |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
{{ formatDate(scope.row.createTime) }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column align="center" :label="t('ts.创建人')" prop="creator" width="150px" /> |
|
|
|
|
|
<el-table-column align="center" :label="t('ts.最后更新时间')" prop="updateTime" width="200px" > |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
{{ formatDate(scope.row.updateTime) }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column align="center" :label="t('ts.最后更新人')" prop="updater" width="150px" /> |
|
|
<el-table-column align="center" :label="t('ts.操作')" fixed="right" width="240"> |
|
|
<el-table-column align="center" :label="t('ts.操作')" fixed="right" width="240"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" /> |
|
|
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" /> |
|
@ -54,6 +67,7 @@ import { DICT_TYPE } from '@/utils/dict' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
import AddForm from './AddForm.vue' |
|
|
import AddForm from './AddForm.vue' |
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'SupplieDeliveryStrategy' }) |
|
|
defineOptions({ name: 'SupplieDeliveryStrategy' }) |
|
|
const queryFormRef = ref() // 搜索的表单 |
|
|
const queryFormRef = ref() // 搜索的表单 |
|
@ -165,6 +179,14 @@ const buttonTableClick = (val, row) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//时间格式化 |
|
|
|
|
|
const formatDate = (date) => { |
|
|
|
|
|
if (!date) return ''; // 处理空值 |
|
|
|
|
|
return dayjs(date).format('YYYY-MM-DD HH:mm:ss'); // 根据需求格式化 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
getList() |
|
|
getList() |
|
|