Browse Source

任务配置更新

hella_online_20241121
zhaoxuebing 4 days ago
parent
commit
181aa585a4
  1. 5
      src/api/wms/productputawayJobMain/index.ts
  2. 13
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue

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

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

13
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/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',
@ -159,6 +160,18 @@ const HeadButttondata = computed(()=>{
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
}else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
ProductputawayJobMainApi.updateProductputawayJobAssembleConfig()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
} catch {
} finally {
loadDone()
}
} else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({

Loading…
Cancel
Save