From f26ab7fc9f1d788662d50d50ae60e73534a74670 Mon Sep 17 00:00:00 2001 From: wk Date: 星期二, 24 九月 2024 15:26:37 +0800 Subject: [PATCH] feat:危化品通行证 --- pages/public-page/forward/forward.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue index 1e64080..db7585b 100644 --- a/pages/public-page/forward/forward.vue +++ b/pages/public-page/forward/forward.vue @@ -645,6 +645,10 @@ this.$u.toast('璇疯緭鍏ュ悎娉曟暟瀛�'); isPass = false; return isPass; + } else if (!v.name){ + this.$u.toast('璇烽�夋嫨杞﹂槦'); + isPass = false; + return isPass; } else { isPass = true; return isPass; @@ -656,13 +660,13 @@ this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => { console.log(res, 'zh'); // res.data.length == 0 鎻愪氦鎴愬姛 鍚﹀垯鎻愪氦澶辫触 - if (res.data.length == 0) { + if (res.code === 0) { this.loading = false this.$u.toast('鎻愪氦鎴愬姛'); if(/鑱氭隘涔欑儻鏍戣剛/.test(this.productName)){ setTimeout(()=>{ uni - .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); + .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${1}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); },500) -- Gitblit v1.9.1