|
|
@@ -249,6 +249,14 @@
|
|
|
{{ row.extInfo.clientCode }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
+ <el-table-column label="操作" show-overflow-tooltip fixed="right">
|
|
|
+ <template slot-scope="{ row, $index }">
|
|
|
+ <el-button type="text" @click="deleteData(row, $index)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
@@ -282,6 +290,13 @@
|
|
|
<el-button type="text" @click="convertList(item, index)"
|
|
|
>转物品清单</el-button
|
|
|
>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ style="color: red"
|
|
|
+ @click="deleteBomMaterial(item, index)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
@@ -661,8 +676,6 @@
|
|
|
this.$set(this.pickOutInList[index], 'newWeight', item.weight);
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
-
|
|
|
- console.log(this.pickOutInList, 'this.pickOutInList');
|
|
|
},
|
|
|
|
|
|
// 仓库
|
|
|
@@ -672,6 +685,10 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ deleteData(item, index) {
|
|
|
+ this.pickOutInList.splice(index, 1);
|
|
|
+ },
|
|
|
+
|
|
|
handTab(item) {
|
|
|
this.actTab = item.name;
|
|
|
},
|
|
|
@@ -738,17 +755,26 @@
|
|
|
this.standardOutputList.splice(index, 1);
|
|
|
},
|
|
|
|
|
|
+ deleteBomMaterial(item, index) {
|
|
|
+ this.bomMaterialList.splice(index, 1);
|
|
|
+ },
|
|
|
+
|
|
|
convertList(item, index) {
|
|
|
if (item.demandQuantity) {
|
|
|
item.categoryCode = item.code;
|
|
|
item.feedQuantity = item.demandQuantity;
|
|
|
- item.isSelection = '2';
|
|
|
+ item.isSelection = '1';
|
|
|
item.categoryId = item.id;
|
|
|
item.newWeight = item.weight;
|
|
|
this.pickOutInList.push(item);
|
|
|
this.selectionData();
|
|
|
this.bomMaterialList.splice(index, 1);
|
|
|
this.$forceUpdate();
|
|
|
+ } else {
|
|
|
+ return this.$message({
|
|
|
+ message: '请输入转换数量',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -921,7 +947,7 @@
|
|
|
|
|
|
.items {
|
|
|
font-size: 12px;
|
|
|
- width: 28%;
|
|
|
+ width: 25%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
white-space: nowrap;
|