|
@ -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> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
@ -135,7 +135,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), // 新增——需要手动修改下权限 |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:work-main:create'}), // 新增 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:work-main:import'}), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:work-main:import'}), // 导入 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:work-main:export'}), // 导出 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:work-main:export'}), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
@ -167,25 +167,11 @@ const buttonBaseClick = (val, item) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
|
|
const isShowMainButton = (row,val) => { |
|
|
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
|
|
|
return false |
|
|
|
|
|
} else { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListOrderCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 |
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:work-main:update'}), // 编辑 |
|
|
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'])}), // 删除 |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|