Compare commits

...

2 Commits

  1. 5
      src/api/wms/productputawayJobMain/index.ts
  2. 15
      src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

5
src/api/wms/productputawayJobMain/index.ts

@ -130,3 +130,8 @@ export const closeProductputawayMain = async (id) => {
export const executeProductputawayMain = async (data) => {
return await request.put({ url: `/wms/productputaway-job-main/execute`, data})
}
// 更新任务配置
export const updateProductputawayJobConfig = () => {
return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobConfig'})
}

15
src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

@ -138,6 +138,7 @@ const getSwitchStatus = async ()=>{
const HeadButttondata = computed(()=>{
return [
defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
{
label: '待处理状态全部打印',
name: 'printAllPending',
@ -157,7 +158,19 @@ const HeadButttondata = computed(()=>{
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
} else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
ProductputawayJobMainApi.updateProductputawayJobConfig()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
} catch {
} finally {
loadDone()
}
}else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters

Loading…
Cancel
Save