Browse Source

采购收货任务-更新任务设置

hella_online_20241107
yufei_wang 3 weeks ago
parent
commit
32f91571e4
  1. 1
      src/locales/en-US.ts
  2. 1
      src/locales/zh-CN.ts
  3. 13
      src/utils/disposition/defaultButtons.ts
  4. 6
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

1
src/locales/en-US.ts

@ -871,6 +871,7 @@ export default {
:'Add', :'Add',
:'Import', :'Import',
:'Export', :'Export',
:'UpdatingTaskSettings',
:'Refresh', :'Refresh',
:'Filter', :'Filter',
:'As Page', :'As Page',

1
src/locales/zh-CN.ts

@ -873,6 +873,7 @@ export default {
:'新增', :'新增',
:'导入', :'导入',
:'导出', :'导出',
:'更新任务设置',
:'刷新', :'刷新',
:'筛选', :'筛选',
:'选择当页', :'选择当页',

13
src/utils/disposition/defaultButtons.ts

@ -68,7 +68,18 @@ export function defaultExportTableBtn(option: any) {
hasPermi: '' hasPermi: ''
}) })
} }
// 导出按钮
export function defaultUpdateTaskSettingBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.更新任务设置`).replace('ts.', ''),
name: 'updateTaskSetting',
hide: false,
type: 'warning',
icon: 'ep:refresh',
color: '',
hasPermi: ''
})
}
// 字段设置 // 字段设置
// export function defaultFieldSettingBtn(option:any) { // export function defaultFieldSettingBtn(option:any) {

6
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -176,7 +176,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -186,6 +187,9 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'export') { // if (val == 'export') { //
handleExport() handleExport()
}else if(val == 'updateTaskSetting'){
//
} 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