瀏覽代碼

修改bug

695593266@qq.com 2 周之前
父節點
當前提交
8171310826
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/productionPlan/components/newFactoryProductionScheduling.vue

+ 6 - 1
src/views/productionPlan/components/newFactoryProductionScheduling.vue

@@ -79,7 +79,7 @@
               :underline="false"
               @click="handlePublish(row)"
             >
-              布点
+              {{ getPlanActionText(row) }}
             </el-link>
           </template>
           <template v-slot:dotLineStatus="{ row }">
@@ -456,6 +456,11 @@
       isReadonlyPlan(row) {
         return READONLY_LAYOUT_STATUSES.includes(String(row?.status ?? ''));
       },
+      getPlanActionText(row) {
+        return !this.isOrderScheduling && this.isReadonlyPlan(row)
+          ? '查看'
+          : '布点';
+      },
       async loadPlansByIds(ids = []) {
         const uniqueIds = Array.from(
           new Set(