瀏覽代碼

班次:更改了日执行的撒料计划的班次

duanxiaoduan 1 年之前
父節點
當前提交
c13fdec5b8
共有 1 個文件被更改,包括 34 次插入44 次删除
  1. 34 44
      src/views/formulationPlan/dailyExecutionPlan/typePage/materialIssuancePlan.vue

+ 34 - 44
src/views/formulationPlan/dailyExecutionPlan/typePage/materialIssuancePlan.vue

@@ -394,12 +394,12 @@
     </el-dialog>
 
     <!-- 更改TMR编号 -->
-    <el-dialog 
-    :title="textMap[tmrNumber.dialogStatus]" 
-    :destroy-on-close="true" 
+    <el-dialog
+    :title="textMap[tmrNumber.dialogStatus]"
+    :destroy-on-close="true"
     :visible.sync="tmrNumber.dialogFormVisible"
     :before-close="close"
-    :close-on-click-modal="false" 
+    :close-on-click-modal="false"
     width="30%"
     :modal-append-to-body="false"
     :append-to-body="true">
@@ -666,51 +666,41 @@ export default {
       postJson(url, data).then(response => {
         console.log(response.data.list[0].inforvalue)
         if (response.data.list[0].inforvalue == 1) {
-          this.frequencyList = [{
-            id: 1,
-            name: '第一班'
-          }]
+          this.frequencyList = [{ id: 1, name: '第一班' }]
         } else if (response.data.list[0].inforvalue == 2) {
-          this.frequencyList = [{
-            id: 1,
-            name: '第一班'
-          },
-          {
-            id: 2,
-            name: '第二班'
-          }
+          this.frequencyList = [
+            { id: 1, name: '第一班' },
+            { id: 2, name: '第二班' }
           ]
         } else if (response.data.list[0].inforvalue == 3) {
-          this.frequencyList = [{
-            id: 1,
-            name: '第一班'
-          },
-          {
-            id: 2,
-            name: '第二班'
-          },
-          {
-            id: 3,
-            name: '第三班'
-          }
+          this.frequencyList = [
+            { id: 1, name: '第一班' },
+            { id: 2, name: '第二班' },
+            { id: 3, name: '第三班' }
           ]
         } else if (response.data.list[0].inforvalue == 4) {
-          this.frequencyList = [{
-            id: 1,
-            name: '第一班'
-          },
-          {
-            id: 2,
-            name: '第二班'
-          },
-          {
-            id: 3,
-            name: '第三班'
-          },
-          {
-            id: 4,
-            name: '第四班'
-          }
+          this.frequencyList = [
+            { id: 1, name: '第一班' },
+            { id: 2, name: '第二班' },
+            { id: 3, name: '第三班' },
+            { id: 4, name: '第四班' }
+          ]
+        }else if (response.data.list[0].inforvalue == 5) {
+          this.frequencyList = [
+            { id: 1, name: '第一班' },
+            { id: 2, name: '第二班' },
+            { id: 3, name: '第三班' },
+            { id: 4, name: '第四班' },
+            { id: 5, name: '第五班' }
+          ]
+        }else if (response.data.list[0].inforvalue == 6) {
+          this.frequencyList = [
+            { id: 1, name: '第一班' },
+            { id: 2, name: '第二班' },
+            { id: 3, name: '第三班' },
+            { id: 4, name: '第四班' },
+            { id: 5, name: '第五班' },
+            { id: 6, name: '第六班' }
           ]
         }
       })