|
@ -49,7 +49,6 @@ |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
:isBusiness="false" |
|
|
:isBusiness="false" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="SupplierCycle.allSchemas" /> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="SupplierCycle.allSchemas" /> |
|
|
|
|
|
|
|
@ -65,7 +64,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
|
|
// 要货预测周期管理 |
|
|
defineOptions({ name: 'SupplierCycle' }) |
|
|
defineOptions({ name: 'SupplierCycle' }) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -99,12 +98,13 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:supplierCycle:create'}), // 新增 |
|
|
// defaultButtons.defaultAddBtn({hasPermi:'wms:supplierCycle:create'}), // 新增 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:supplierCycle:import'}), // 导入 |
|
|
defaultButtons.defaultAddBtn({}), // 新增 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:supplierCycle:export'}), // 导出 |
|
|
// defaultButtons.defaultImportBtn({hasPermi:'wms:supplierCycle:import'}), // 导入 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:supplierCycle:export'}), // 导出 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
// defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
// defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
|
|
// defaultButtons.defaultSetBtn(null), // 设置 |
|
|
// { |
|
|
// { |
|
|
// label: '自定义扩展按钮', |
|
|
// label: '自定义扩展按钮', |
|
|
// name: 'zdy', |
|
|
// name: 'zdy', |
|
@ -133,7 +133,8 @@ const buttonBaseClick = (val, item) => { |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = [ |
|
|
const butttondata = [ |
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:supplierCycle:update'}), // 编辑 |
|
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierCycle:update'}), // 编辑 |
|
|
|
|
|
defaultButtons.mainListEditBtn({}), // 编辑 |
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierCycle:delete'}), // 删除 |
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierCycle:delete'}), // 删除 |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
@ -153,7 +154,14 @@ const openForm = (type: string, row?: any) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// form表单提交 |
|
|
// form表单提交 |
|
|
const formsSuccess = async (formType,data) => { |
|
|
const formsSuccess = async (formType,submitData) => { |
|
|
|
|
|
let data = {...submitData} |
|
|
|
|
|
let cycle = data.cycle |
|
|
|
|
|
cycle.forEach(item=>{ |
|
|
|
|
|
data[item] = 1 |
|
|
|
|
|
}) |
|
|
|
|
|
delete data.cycle |
|
|
|
|
|
console.log('formsSuccess',formType,data) |
|
|
var isHave =SupplierCycle.allSchemas.formSchema.some(function (item) { |
|
|
var isHave =SupplierCycle.allSchemas.formSchema.some(function (item) { |
|
|
return item.field === 'activeTime' || item.field === 'expireTime'; |
|
|
return item.field === 'activeTime' || item.field === 'expireTime'; |
|
|
}); |
|
|
}); |
|
|