物料问题修改

master
zhangdi 2 weeks ago
parent 852b22be1f
commit 8faa5a2038
  1. 10
      pages/logistics/delivery.vue
  2. 16
      pages/logistics/packaging.vue

@ -205,10 +205,6 @@ export default {
boxInputFocus: true, boxInputFocus: true,
startInputFocus: false, startInputFocus: false,
mockBoxes: {}, mockBoxes: {},
mockStarts: {
ST001: { stationCode: "ST001", stationName: "镀前总仓区" },
ST002: { stationCode: "ST002", stationName: "A区暂存点" },
},
workCenters: [], workCenters: [],
yieldOrderList: [], // yieldOrderList: [], //
scanMode: "bind", scanMode: "bind",
@ -265,8 +261,6 @@ export default {
.then((res) => { .then((res) => {
uni.hideLoading(); uni.hideLoading();
console.log("起点区域列表:", res.data);
this.startAreas = res.data.map((area) => ({ this.startAreas = res.data.map((area) => ({
id: area.stationRegion, id: area.stationRegion,
name: area.stationRegion, name: area.stationRegion,
@ -275,7 +269,6 @@ export default {
}) })
.catch((err) => { .catch((err) => {
uni.hideLoading(); uni.hideLoading();
console.error("获取区域列表失败:", err);
uni.showToast({ uni.showToast({
title: "加载区域列表失败", title: "加载区域列表失败",
icon: "none", icon: "none",
@ -356,7 +349,6 @@ export default {
} }
} else { } else {
this.endAreas = []; this.endAreas = [];
console.log("stationRegionList 为空或不存在");
} }
}, },
@ -463,7 +455,7 @@ export default {
.then((res) => { .then((res) => {
uni.showToast({ uni.showToast({
title: `成功配送至 ${this.endCenter}!`, title: `成功配送至 ${this.endCenter}!`,
icon: "success", icon: "none",
}); });
uni.hideLoading(); uni.hideLoading();

@ -57,7 +57,7 @@
<view class="stats-item"> <view class="stats-item">
<text class="stats-label">配送终点</text> <text class="stats-label">配送终点</text>
<text class="stats-value" <text class="stats-value"
>{{ boxInfo.wcName }}-{{ boxInfo.stationRegion }}</text >{{ boxInfo.wcName }}{{ boxInfo.stationRegion?'-'+boxInfo.stationRegion:''}}</text
> >
</view> </view>
<!-- <view class="stats-item"> <!-- <view class="stats-item">
@ -121,7 +121,7 @@
<text class="delete-icon"></text> <text class="delete-icon"></text>
</view> --> </view> -->
<view class="order-header"> <view class="order-header">
<text class="order-no">{{ order.woOrder }}订单</text> <text class="order-no">{{ order.woOrder }}流程卡</text>
<text class="order-no">{{ order.cardNo }}</text> <text class="order-no">{{ order.cardNo }}</text>
</view> </view>
<view class="order-footer"> <view class="order-footer">
@ -269,7 +269,7 @@ export default {
// , // ,
uni.showToast({ uni.showToast({
title: `物料箱 ${code} 已就绪`, title: `物料箱 ${code} 已就绪`,
icon: "success", icon: "none",
}); });
this.boxCode = ""; this.boxCode = "";
this.boxInputFocus = false; this.boxInputFocus = false;
@ -337,7 +337,7 @@ export default {
if (currentWeight > 50000) { if (currentWeight > 50000) {
uni.showToast({ uni.showToast({
title: `请注意箱子已超重!!!!!`, title: `请注意箱子已超重!!!!!`,
icon: "warring", icon: "none",
}); });
// //
this.boxInfo.yieldOrderList.pop(); this.boxInfo.yieldOrderList.pop();
@ -353,7 +353,7 @@ export default {
.then((bindRes) => { .then((bindRes) => {
uni.showToast({ uni.showToast({
title: `流程卡 ${code} 装箱绑定成功`, title: `流程卡 ${code} 装箱绑定成功`,
icon: "success", icon: "none",
}); });
// //
this.refreshBoxInfo(); this.refreshBoxInfo();
@ -396,7 +396,7 @@ export default {
.then((unbindRes) => { .then((unbindRes) => {
uni.showToast({ uni.showToast({
title: `流程卡 ${code} 解绑成功`, title: `流程卡 ${code} 解绑成功`,
icon: "success", icon: "none",
}); });
// //
this.boxInfo.yieldOrderList.splice(orderIndex, 1); this.boxInfo.yieldOrderList.splice(orderIndex, 1);
@ -406,7 +406,7 @@ export default {
.catch((unbindErr) => { .catch((unbindErr) => {
uni.showToast({ uni.showToast({
title: unbindErr || "解绑失败", title: unbindErr || "解绑失败",
icon: "error", icon: "none",
}); });
}); });
} }
@ -460,7 +460,7 @@ export default {
.then((res) => { .then((res) => {
uni.showToast({ uni.showToast({
title: `装箱成功`, title: `装箱成功`,
icon: "success", icon: "none",
}); });
this.cardCode = ""; this.cardCode = "";
this.boxInfo.yieldOrderList = []; this.boxInfo.yieldOrderList = [];

Loading…
Cancel
Save