diff --git a/klp-ui/src/views/wms/post/aps/order.vue b/klp-ui/src/views/wms/post/aps/order.vue index 957ebb91a..d4837993c 100644 --- a/klp-ui/src/views/wms/post/aps/order.vue +++ b/klp-ui/src/views/wms/post/aps/order.vue @@ -192,7 +192,7 @@
已绑定的产需单({{ boundReqList.length }} 条)
-
+
@@ -266,6 +266,7 @@ export default { total: 0, currentOrder: null, boundReqList: [], + boundReqLoading: false, productList: [], productName: '', totalQuantity: 0, @@ -347,10 +348,11 @@ export default { /** 加载已绑定的产需单 */ loadBoundRequirements(orderId) { this.boundReqList = [] - if (!orderId) return + this.boundReqLoading = true + if (!orderId) { this.boundReqLoading = false; return } listRel({ orderId }).then(relRes => { const rels = (relRes.rows || []).filter(r => r.scheduleId) - if (rels.length === 0) return + if (rels.length === 0) { this.boundReqLoading = false; return } const scheduleIds = [...new Set(rels.map(r => r.scheduleId))] Promise.all(scheduleIds.map(id => getRequirement(id).catch(() => null))).then(reqs => { const reqMap = {} @@ -370,9 +372,11 @@ export default { } return arr }, []) + this.boundReqLoading = false }) }).catch(() => { this.boundReqList = [] + this.boundReqLoading = false }) }, reqStatusTag(status) {