|
@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:printClientPrinter:create'}), // 新增 |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:print-client-printer:create'}), // 新增 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:printClientPrinter:import'}), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:print-client-printer:import'}), // 导入 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:printClientPrinter:export'}), // 导出 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:print-client-printer:export'}), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => { |
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = [ |
|
|
const butttondata = [ |
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:printClientPrinter:update'}), // 编辑 |
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:print-client-printer:update'}), // 编辑 |
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:printClientPrinter:delete'}), // 删除 |
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:print-client-printer:delete'}), // 删除 |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
@ -165,6 +165,7 @@ const formsSuccess = async (formType,data) => { |
|
|
} |
|
|
} |
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
|
|
|
basicFormRef.value.formLoading = true |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
await PrintClientPrinterApi.createPrintClientPrinter(data) |
|
|
await PrintClientPrinterApi.createPrintClientPrinter(data) |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
@ -172,6 +173,7 @@ const formsSuccess = async (formType,data) => { |
|
|
await PrintClientPrinterApi.updatePrintClientPrinter(data) |
|
|
await PrintClientPrinterApi.updatePrintClientPrinter(data) |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
} |
|
|
} |
|
|
|
|
|
basicFormRef.value.formLoading = false |
|
|
basicFormRef.value.dialogVisible = false |
|
|
basicFormRef.value.dialogVisible = false |
|
|
getList() |
|
|
getList() |
|
|
} |
|
|
} |
|
|