From d9d0024c73ec1ef5871a18244c02f3792880abe9 Mon Sep 17 00:00:00 2001 From: admin <> Date: Fri, 22 Mar 2024 13:45:34 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PageView/index.vue | 27 +++- src/config/env.ts | 13 +- src/pagesApp/receiveCl.vue | 2 +- src/pagesReceive/form/pricingForm.vue | 29 ++-- src/pagesReceive/payReview.vue | 212 +++++++++++++++++--------- src/pagesReceive/pricing.vue | 4 +- src/pagesReceive/review/index.vue | 88 +++++++++-- 7 files changed, 268 insertions(+), 107 deletions(-) diff --git a/src/components/PageView/index.vue b/src/components/PageView/index.vue index 28afe25..312d2cd 100644 --- a/src/components/PageView/index.vue +++ b/src/components/PageView/index.vue @@ -3,19 +3,26 @@ :scroll-y="true" class="scroll-view-custom" @scrolltolower="loadMore" - :style="{ 'max-height': clientHeight + 'px' }" + :style="{ height: clientHeight + 'px' }" > - + - + @@ -28,7 +35,7 @@ import { onLoad } from "@dcloudio/uni-app"; const props = withDefaults( defineProps<{ noMoreData: boolean; - isLoading: boolean + isLoading: boolean; list: any; height: number; }>(), @@ -44,6 +51,7 @@ const emit = defineEmits(["loadList"]); const clientHeight = ref(500); const loadMore = () => { + console.log("**** 加载更多"); if (props.noMoreData) return; // 如果没有更多数据,直接返回 emit("loadList", true); }; @@ -68,6 +76,15 @@ const getClineHeight = () => { }, }); }; + +watch( + () => props.height, + (newValue, oldValue) => { + getClineHeight(); + } +); +// ,{ deep: true, immediate:true} + onLoad(() => { // #ifdef APP-PLUS || MP-WEIXIN getClineHeight(); diff --git a/src/config/env.ts b/src/config/env.ts index 9272b51..85fd234 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -1,19 +1,20 @@ // 不同的环境变量配置 const development = { // VITE_APP_BASE_URL: 'http://47.100.31.83:8081', - VITE_APP_BASE_URL: 'http://47.100.31.83:8081', - - appid: '', + // VITE_APP_BASE_URL: 'https://47.100.31.83:8081', + // appid: '', + VITE_APP_BASE_URL: 'https://ifanda.52zaisheng.cn/prod', + appid: 'wx9251d74fe0e87028', } const test = { - VITE_APP_BASE_URL: 'http://47.100.31.83:8081', + VITE_APP_BASE_URL: 'https://47.100.31.83:8081', appid: 'wxd5xxxxee0fce1c81', } const production = { - VITE_APP_BASE_URL: 'http://124.70.167.140:8081', - appid: 'wx3xxxx1ce403cab3', + VITE_APP_BASE_URL: 'https://ifanda.52zaisheng.cn/prod', + appid: 'wx9251d74fe0e87028', } export default { diff --git a/src/pagesApp/receiveCl.vue b/src/pagesApp/receiveCl.vue index 8623399..68f386b 100644 --- a/src/pagesApp/receiveCl.vue +++ b/src/pagesApp/receiveCl.vue @@ -113,7 +113,7 @@ const gridList1 = reactive([ }, { name: "作废人", - enName: "updateUserName", + enName: "updateName", unit: "", isBefore: false, isCustomStyle: true, diff --git a/src/pagesReceive/form/pricingForm.vue b/src/pagesReceive/form/pricingForm.vue index 7d9a842..af3ea26 100644 --- a/src/pagesReceive/form/pricingForm.vue +++ b/src/pagesReceive/form/pricingForm.vue @@ -391,12 +391,13 @@ const startSave = () => { PictureApi.addListAnnex({ annexPos: res.filter((item) => item) }).then( (res1) => { if (res1.code === 200) { - updateOrder() + console.log("*** 资源文件更新成功"); } } ); } }); + updateOrder(); }; const updateOrder = () => { @@ -427,20 +428,28 @@ const updateOrder = () => { ReceiveApi.updateOne({ ...model1.order }).then((res) => { if (res.code === 200) { // 定价后 若是零皮-》跳转到【付款审核】 有皮重->【待过皮重】 - uni.showToast({ - title: "定价成功", - icon: "success", - }); - // 0:有皮重 1:零皮重 - uni.redirectTo({ - url: "/pagesHome/index", // 要跳转到的页面路径 - }); + // 当上一页为审核页 + if (prePage.value === "review") { + uni.redirectTo({ + url: + "/pagesReceive/review/index?id=" + + model1.order.id + + `&scaleStatus=` + + model1.order.scaleStatus, // 要跳转到的页面路径 + }); + } else { + // 0:有皮重 1:零皮重 + uni.redirectTo({ + url: "/pagesHome/index", // 要跳转到的页面路径 + }); + } } }); }; - +const prePage = ref(""); onLoad((option) => { model1.order.id = parseInt((option as any).id); + prePage.value = (option as any).prePage; if (model1.order.id) { ReceiveApi.getDetailById({ id: model1.order.id }).then((res) => { if (res.code === 200) { diff --git a/src/pagesReceive/payReview.vue b/src/pagesReceive/payReview.vue index 9df6279..ef77d21 100644 --- a/src/pagesReceive/payReview.vue +++ b/src/pagesReceive/payReview.vue @@ -28,79 +28,109 @@ - - - - - - + + + + + + + - 收货单号:{{ item.receiptNumber }} - - - {{ item.userName }} + + 收货单号:{{ item.receiptNumber }} + + + {{ item.userName }} + - - - + - 过磅总净重:{{ item.netWeight || 0 }}KG + + 过磅总净重:{{ item.netWeight || 0 }}KG + + + 货款金额:{{ item.balanceTotalPrice || 0 }}元 + - - 货款金额:{{ item.totalPrice || 0 }}元 + + + 去审核 + 去支付 + 查看 + - - - 去审核 - 去支付 - 查看 - - - - - + + + - + - +