Browse Source

更新任务配置

hella_online_20241121
zhaoxuebing 4 days ago
parent
commit
87bb68cfe7
  1. 7
      src/api/wms/productputawayJobMain/index.ts
  2. 15
      src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

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

@ -129,4 +129,9 @@ 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'})
}

15
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,7 +158,19 @@ const HeadButttondata = computed(()=>{
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'export') { // if (val == 'export') { //
handleExport() 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 ) { if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({ searchFormClick({
filters: tableObject.params.filters filters: tableObject.params.filters

Loading…
Cancel
Save