|
@@ -200,6 +200,31 @@ export struct ManualWarehousing {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ // 获取二楼绑定料箱信息
|
|
|
+ getUpstairsData = async () => {
|
|
|
+ // 如果没有rfid就不调用
|
|
|
+ if (!this.recentlyRecordObject.rfid) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ let res: MaterialInformationModel[] = await StorageRequest.get(`/web/wcs/bindInfo/${this.recentlyRecordObject.rfid} `, {
|
|
|
+ label: itemCode //"#gys022#sc022#100#20220929#31"
|
|
|
+ } as MaterialInformationModel[])
|
|
|
+
|
|
|
+
|
|
|
+ // TODO
|
|
|
+ // let obj: MaterialInformationModel = JSON.parse(JSON.stringify(res))
|
|
|
+ //将返回的数据解析后,如果数组不为空 就赋值到下面的数组里面
|
|
|
+
|
|
|
+ // this.MaterialInformation = []
|
|
|
+ }
|
|
|
+ // 清空的按钮调用这个方法
|
|
|
+ clearData = () => {
|
|
|
+ this.MaterialInformation = []
|
|
|
+ }
|
|
|
+
|
|
|
//打开页面0.5s请求一次硬件,当io(有无料箱)和weight(重量)发送变化时执行改变数据,同时通过RFID请求读取料箱里面物料信息
|
|
|
async aboutToAppear() {
|
|
|
this.currentTimer = setInterval(async () => {
|