ysy 1 год назад
Родитель
Сommit
72765bd2fe
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      src/views/productionPlan/index.vue

+ 8 - 1
src/views/productionPlan/index.vue

@@ -11,7 +11,7 @@
       </productionPlan-search>
       <div class="btn_box">
         <el-button type="success" size="mini">齐套性检查</el-button>
-        <el-button type="primary" size="mini">计划分解</el-button>
+        <el-button type="primary" size="mini" @click="disassemblePlan">计划分解</el-button>
         <el-button type="primary" size="mini">补单计划</el-button>
         <el-button type="info" size="mini">计划行事历</el-button>
         <el-button type="warning" size="mini">预警设置</el-button>
@@ -691,6 +691,13 @@
         });
       },
 
+     //  计划分解
+     disassemblePlan() {
+      if (this.selection.length != 1) {
+          return this.$message.warning('计划分解只能选择一个计划!');
+        }
+     },
+
       // 拆批
       toUnpack(row) {
         if (!row.batchNo) {