Browse Source

更新任务配置

hella_online_20241121
zhaoxuebing 4 days ago
parent
commit
87bb68cfe7
  1. 5
      src/api/wms/productputawayJobMain/index.ts
  2. 13
      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) => { export const executeProductputawayMain = async (data) => {
return await request.put({ url: `/wms/productputaway-job-main/execute`, data}) return await request.put({ url: `/wms/productputaway-job-main/execute`, data})
} }
// 更新任务配置
export const updateProductputawayJobConfig = () => {
return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobConfig'})
}

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

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

Loading…
Cancel
Save