Browse Source

要货预测周期管理

master_hella_20240701
wangyufei 5 months ago
parent
commit
fdf18c6d59
  1. 24
      src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue
  2. 40
      src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts

24
src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue

@ -27,10 +27,26 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
<template #monday="{row}">
<Icon :size="16" v-show="row.monday==1" icon="ep:check" />
</template>
<template #tuesday="{row}">
<Icon :size="16" v-show="row.tuesday==1" icon="ep:check" />
</template>
<template #wednesday="{row}">
<Icon :size="16" v-show="row.wednesday==1" icon="ep:check" />
</template>
<template #thursday="{row}">
<Icon :size="16" v-show="row.thursday==1" icon="ep:check" />
</template>
<template #friday="{row}">
<Icon :size="16" v-show="row.friday==1" icon="ep:check" />
</template>
<template #saturday="{row}">
<Icon :size="16" v-show="row.saturday==1" icon="ep:check" />
</template>
<template #sunday="{row}">
<Icon :size="16" v-show="row.sunday==1" icon="ep:check" />
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />

40
src/views/wms/basicDataManage/supplierManage/supplierCycle/supplierCycle.data.ts

@ -103,6 +103,26 @@ export const SupplierCycle = useCrudSchemas(reactive<CrudSchema[]>([
isForm:false,
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
isSearch: false,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '同步周期',
field: 'cycle',
@ -126,26 +146,6 @@ export const SupplierCycle = useCrudSchemas(reactive<CrudSchema[]>([
},
}
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
isSearch: false,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
label: '操作',
field: 'action',

Loading…
Cancel
Save