From a48ded866d223f581944ea9043df1b296b3425e3 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期四, 21 十二月 2023 13:17:46 +0800 Subject: [PATCH] modified: src/views/basic/company/index.vue modified: src/views/basic/customizeparamtemplatetype/index.vue modified: src/views/basic/division/index.vue modified: src/views/basic/factory/index.vue modified: src/views/basic/location/index.vue modified: src/views/basic/param/index.vue modified: src/views/basic/part/index.vue modified: src/views/basic/post/index.vue modified: src/views/basic/shift/index.vue modified: src/views/basic/staff/index.vue modified: src/views/basic/template/index.vue modified: src/views/basic/warehouse/index.vue modified: src/views/basic/workstation/index.vue modified: src/views/plan/manufacturingorder/index.vue modified: src/views/plan/masterproductionschedule/index.vue modified: src/views/plan/operationtask/index.vue modified: src/views/plan/productionschedul/index.vue modified: src/views/quality/finishedProductInspection/index.vue modified: src/views/quality/rawMaterial/index.vue modified: src/views/technology/completeproductstructure/index.vue modified: src/views/technology/document/index.vue modified: src/views/technology/operation/index.vue modified: src/views/technology/routing/index.vue modified: src/views/technology/structure/index.vue modified: src/views/warehouse/FinishedWarehousing/index.vue modified: src/views/warehouse/changestock/index.vue modified: src/views/warehouse/pallettransports/index.vue --- src/views/plan/manufacturingorder/index.vue | 59 +++++++---------------------------------------------------- 1 files changed, 7 insertions(+), 52 deletions(-) diff --git a/src/views/plan/manufacturingorder/index.vue b/src/views/plan/manufacturingorder/index.vue index d760c3e..0337ab1 100644 --- a/src/views/plan/manufacturingorder/index.vue +++ b/src/views/plan/manufacturingorder/index.vue @@ -101,6 +101,7 @@ </el-button> --> <el-button + v-if="permissions.manufacturingorder_export" @click="exportExcel" type="primary" style="margin-left:10px;" @@ -108,6 +109,7 @@ >瀵煎嚭 </el-button> <el-button + v-if="permissions.manufacturingorder_label_print" @click="labelPrint" type="primary" style="margin-left:10px;" @@ -1017,21 +1019,6 @@ }, created() { this.getManufactureAttrs() - /** - * { - text: '鏂板', - type: 'primary', - fun: this.addOrUpdateHandle - }, - { - text: '鎸夊鎴疯鍗曟煡璇�', - fun: this.getOperationTaskByCustomer - }, - { - text: '璁㈠崟鍚堝苟', - fun: this.openOrderMerge - } - */ if (this.permissions.plan_manufacturingorder_add) { this.table.toolbar.push({ text: '鏂板', @@ -1045,28 +1032,6 @@ fun: this.getOperationTaskByCustomer }) } - // if (this.permissions.manufacturingorder_order_merge) { - // this.table.toolbar.push({ - // text: '璁㈠崟鍚堝苟', - // fun: this.openOrderMerge - // }) - // } - - /** - * { - label: '鎵嬪姩鏂板', - command: 'MANUAL', - disabled: false, - permitArr: ['01planned', '02issued'] - }, - { - label: '鑷姩鏂板', - command: 'AUTO', - disabled: false, - permitArr: ['01planned', '02issued'] - } - */ - if (this.permissions.manufacturingorder_create_task_manual) { this.taskTypeArr.push({ label: '鎵嬪姩鏂板', @@ -1083,21 +1048,7 @@ permitArr: ['01planned', '02issued'] }) } - // 鍒濆鍖杚ueryParam - // this.initSearchCondition() - // if (!this.options.cancelRunCreated) { - // this.getDataList() - // } - // const queryParam = [] - // queryParam.push( - // Object.assign({ - // prop: 'state', - // searchInfoType: 'select', - // propVal: '01planned' - // }) - // ) - // this.$refs.manufacturingOrderTable.setQueryParam(queryParam) - // this.getData() + this.getBomTypeDbOptions() // 杞﹂棿璁㈠崟鏄惁鍚屾IFS @@ -1301,6 +1252,10 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { + if(!this.permissions.plan_manufacturingorder_edit && row.id!=null){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.$router.push({ name: 'productorderForm', query: { id: row == null ? null : row.id } -- Gitblit v1.9.3