|
|
@ -71,7 +71,7 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/wms/work-main/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
|
<ImportForm ref="importFormRef" url="/wms/work-main/import" :importTemplateData="importTemplateData" @success="importSuccess" :is-show-out="true"/> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
@ -135,7 +135,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), // 新增——需要手动修改下权限 |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), // 新增 |
|
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:work-main:import'}), // 导入 |
|
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:work-main:export'}), // 导出 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
@ -167,24 +167,10 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton = (row,val) => { |
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
|
return false |
|
|
|
} else { |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListOrderCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 |
|
|
|
defaultButtons.mainListOrderPubBtn({hide:isShowMainButton(row,['1'])}), // 发布 |
|
|
|
defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['3'])}), // 打开 |
|
|
|
defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['2'])}), // 下架 |
|
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update',hide:isShowMainButton(row,['1'])}), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:work-main:delete',hide:isShowMainButton(row,['1'])}), // 删除 |
|
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update'}), // 编辑 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|