695593266@qq.com 2 tygodni temu
rodzic
commit
8171310826

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

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