ysy 1 yıl önce
ebeveyn
işleme
4a2b509442

+ 51 - 4
src/views/material/BOMmanage/components/workingStep.vue

@@ -595,8 +595,17 @@
             :immediate="true"
           >
             <!-- 表头工具栏 -->
-            <template v-if="!isView" v-slot:toolbar>
-              <el-button type="primary" @click="add">添加</el-button>
+            <template  v-slot:toolbar>
+              <el-button type="primary" v-if="!isView" @click="add">添加</el-button>
+              <div class="toolbar_box">
+                <div
+                  ><span>基本数量</span>
+                  <el-input placeholder="请输入" v-model.number="baseCount">
+                  </el-input>
+                  <DictSelection dictName="计量单位" v-model="baseCountUnit"
+                /></div>
+              </div>
+          
             </template>
             <template v-slot:action="{ row, $index }">
               <el-link type="primary" @click="handleDel(row, $index)"
@@ -821,8 +830,18 @@
             :immediate="true"
           >
             <!-- 表头工具栏 -->
-            <template v-if="!isView" v-slot:toolbar>
-              <el-button type="primary" @click="add">添加</el-button>
+            <template v-slot:toolbar>
+              <el-button type="primary"  v-if="!isView" @click="add">添加</el-button>
+
+              <div class="toolbar_box">
+                <div
+                  ><span>基本数量</span>
+                  <el-input placeholder="请输入" v-model.number="baseCount2">
+                  </el-input>
+                  <DictSelection dictName="计量单位" v-model="baseCountUnit2"
+                /></div>
+              </div>
+              
             </template>
             <template v-slot:action="{ row, $index }">
               <el-link type="primary" @click="handleDel(row, $index)"
@@ -960,6 +979,11 @@
     },
     data() {
       return {
+        baseCount: '',
+        baseCountUnit: '',
+        baseCount2: '',
+        baseCountUnit2: '',
+
         isView: false,
         filedList: [],
         activeName: '工艺参数',
@@ -1309,6 +1333,13 @@
           this.rowData = data;
           this.treeData = JSON.parse(JSON.stringify(treeData));
           this.activeName = '工艺参数';
+
+          this.baseCount = rowData.baseCount;
+          this.baseCountUnit = rowData.baseCountUnit;
+
+         this.baseCount2 = rowData.baseCount2;
+         this.baseCountUnit2 = rowData.baseCountUnit2;
+
           this.visible = true;
           setTimeout(() => {
             // 工艺参数
@@ -1368,4 +1399,20 @@
   .downLoad {
     display: flex;
   }
+
+  .toolbar_box {
+    float: right;
+    margin-right: 10px;
+    > div {
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      > span {
+        width: 150px;
+      }
+      > div {
+        margin-left: 10px;
+      }
+    }
+  }
 </style>