diff --git a/pages/logistics/delivery.vue b/pages/logistics/delivery.vue index e0d34f2..6f5330f 100644 --- a/pages/logistics/delivery.vue +++ b/pages/logistics/delivery.vue @@ -323,9 +323,6 @@ export default { this.endArea = ""; this.endAreaIndex = 0; - console.log("选中的作业中心:", selectedWorkCenter); - console.log("stationRegionList:", selectedWorkCenter.stationRegionList); - // 从作业中心获取 stationRegionList 作为区域列表 if ( selectedWorkCenter.stationRegionList && @@ -369,30 +366,6 @@ export default { this.endArea = this.endAreas[index].name; this.endAreaIndex = index; }, - - // 获取作业中心列表 - getWorkCenterList() { - // this.$u.api.getWorkCenter().then((res) => { - // this.workCenters = res.data.map((c) => ({ - // id: c.id, - // name: c.wcName, - // })); - // }); - }, - - // 获取终点区域列表(根据作业中心 ID) - getEndAreaList(workCenterId) { - if (!workCenterId) { - this.endAreas = []; - return; - } - // this.$u.api.getEndArea({ workCenterId }).then((res) => { - // this.endAreas = res.data.map((area) => ({ - // id: area.id, - // name: area.areaName, - // })); - // }); - }, handleModeChange(mode) { this.scanMode = mode; this.hasData = false; @@ -437,7 +410,6 @@ export default { this.$u.api .boxbarcodeDetails({ boxBarcode: this.boxData.boxBarcode }) .then((res) => { - console.log(9999, res.data); this.yieldOrderList = res.data.yieldOrderList; }); }, @@ -450,28 +422,7 @@ export default { this.boxData = res.data; this.boxInputFocus = false; this.startInputFocus = true; - // this.endCenter = ""; - // this.boxCode = ""; }); - // const data = this.mockBoxes[code]; - // if (data) { - // this.boxData = data; - // this.endCenter = data.targetWorkCenter; - // uni.showToast({ - // title: `已识别物料箱 ${code}`, - // icon: "success", - // }); - // this.boxInputFocus = false; - // this.startInputFocus = true; - // } else { - // uni.showToast({ - // title: "未查询到该物料箱信息", - // icon: "none", - // }); - // this.boxData = null; - // this.endCenter = ""; - // this.boxCode = ""; - // } }, handleStartConfirm() {