diff --git a/src/views/modules/pms/bom/config.js b/src/views/modules/pms/bom/config.js index 1289e61..e9e0962 100644 --- a/src/views/modules/pms/bom/config.js +++ b/src/views/modules/pms/bom/config.js @@ -27,19 +27,19 @@ export default function () { actionName: "to-bom-detail", emitFullData: true, }, - { - prop: "operations", - name: "操作", - fixed: "right", - width: 120, - subcomponent: TableOperaionComponent, - options: [ - { name: "sync", label: "同步", icon: "refresh", emitFull: true, showOverlay: true } - // { name: "copy", label: "复制", icon: "copy-document" }, - // { name: "edit", label: "编辑", icon: "edit-outline" }, - // { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:bom:delete" }, - ], - }, + // { + // prop: "operations", + // name: "操作", + // fixed: "right", + // width: 120, + // subcomponent: TableOperaionComponent, + // options: [ + // { name: "sync", label: "同步", icon: "refresh", emitFull: true, showOverlay: true } + // // { name: "copy", label: "复制", icon: "copy-document" }, + // // { name: "edit", label: "编辑", icon: "edit-outline" }, + // // { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:bom:delete" }, + // ], + // }, ]; const headFormFields = [ diff --git a/src/views/modules/pms/bomDetails/config.js b/src/views/modules/pms/bomDetails/config.js index 6daaa2c..c134f33 100644 --- a/src/views/modules/pms/bomDetails/config.js +++ b/src/views/modules/pms/bomDetails/config.js @@ -215,7 +215,7 @@ export default function () { urls: { base: "/pms/bom", page: "/pms/bom/pageVersion", - syncUrl: "/pms/bom/sync", + syncUrl: "/pms/bom/bomSync", copyUrl: "/pms/bom/copy", subase: "/pms/bomMaterial", subpage: "/pms/bomMaterial/page", diff --git a/src/views/modules/pms/materialBase/config.js b/src/views/modules/pms/materialBase/config.js index 7335b1a..885bc95 100644 --- a/src/views/modules/pms/materialBase/config.js +++ b/src/views/modules/pms/materialBase/config.js @@ -41,12 +41,19 @@ export default function () { button: { type: "primary", name: "新增", - permission: "pms:materialType:save", + permission: "", }, bind: { plain: true, }, }, + { + button: { + type: "normal", + name: "同步", + permission: "", + }, + }, ]; @@ -119,6 +126,7 @@ export default function () { urls: { base: "/pms/baseMaterial", page: "/pms/baseMaterial/page", + syncUrl: "/pms/trans/baseMatSync", // subase: '/pms/blenderStepParam', // subpage: '/pms/blenderStepParam/page', // more...