|
@@ -5,17 +5,17 @@
|
|
|
<div class="type-title">当前料箱</div>
|
|
|
|
|
|
<div style="display: flex; margin-bottom: 15px">
|
|
|
- <!-- <ScanCodeInput-->
|
|
|
- <!-- v-model="currentBox"-->
|
|
|
- <!-- :clearable="true"-->
|
|
|
- <!-- placeholder="请扫描或输入料箱编号"-->
|
|
|
- <!-- style="width: 50%"-->
|
|
|
- <!-- @keyup.enter="enterBox"-->
|
|
|
- <!-- />-->
|
|
|
<div class="current-box">
|
|
|
<span class="left">料箱id: {{ boxDetail?.rfid ?? "" }}</span>
|
|
|
<!-- <span class="right">{{ boxDetail?.code || "未绑定料箱" }}</span>-->
|
|
|
</div>
|
|
|
+ <ScanCodeInput
|
|
|
+ v-model="currentBox"
|
|
|
+ :clearable="true"
|
|
|
+ placeholder="请扫描或输入料箱编号"
|
|
|
+ style="width: 50%"
|
|
|
+ @keyup.enter="enterBox"
|
|
|
+ />
|
|
|
</div>
|
|
|
|
|
|
<div class="type-title">请扫码物料</div>
|
|
@@ -109,7 +109,6 @@
|
|
|
//料箱
|
|
|
import {
|
|
|
addMaterialFlow,
|
|
|
- getBoxDetailByLabel,
|
|
|
getDestinationList,
|
|
|
getMaterialInfoByLabel,
|
|
|
getStationInfo,
|
|
@@ -127,10 +126,11 @@ let currentTimer = -1;
|
|
|
|
|
|
const enterBox = () => {
|
|
|
currentBox.value = currentBox.value.trim();
|
|
|
- getBoxDetailByLabel(currentBox.value).then((res: any) => {
|
|
|
- boxDetail.value = res.data;
|
|
|
- // materialList.value = res.data.materialList;
|
|
|
- });
|
|
|
+ boxDetail.value.rfid = currentBox.value;
|
|
|
+ // getBoxDetailByLabel(currentBox.value).then((res: any) => {
|
|
|
+ // boxDetail.value = res.data;
|
|
|
+ // // materialList.value = res.data.materialList;
|
|
|
+ // });
|
|
|
};
|
|
|
|
|
|
// 物料
|