From 669c288cd4b0788859fc486ca3e46f6d8cc2a5b0 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 12 Dec 2025 17:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=B7=E6=A0=BC=E6=8C=89?= =?UTF-8?q?=E9=9C=80=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/equipCardHall/index.vue | 20 ++- src/http/api/common.ts | 10 ++ src/views/cart/index.vue | 55 +++++-- src/views/equip/detail.vue | 206 ++++++++++++++----------- src/views/order/index.vue | 80 ++++++---- 5 files changed, 232 insertions(+), 139 deletions(-) create mode 100644 src/http/api/common.ts diff --git a/src/components/equipCardHall/index.vue b/src/components/equipCardHall/index.vue index c6abd52..683dcd0 100644 --- a/src/components/equipCardHall/index.vue +++ b/src/components/equipCardHall/index.vue @@ -5,7 +5,9 @@
  • {{ name }} ({{ typeName }}) - {{ manageMode == '0' ? statusText : `在库数量: ${deviceCount}` }} + + {{ manageMode == '0' ? statusText : `在库数量: ${deviceCount}` }} +
  • {{ company }}
  • @@ -14,8 +16,8 @@
  • -
    - +
    + {{ price }} / 天 @@ -25,6 +27,8 @@ diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 65f56b6..fb8943a 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -15,7 +15,13 @@
    ({{ amountNum }})
    - +
    租期
    - - - + +
    日租金/元
    +
    天数
    数量
    - - - + + +
    操作
    @@ -174,11 +180,11 @@ />
    - - - - - + +
    + {{ item.dayLeasePrice }} +
    +
    {{ item.days }} @@ -195,11 +201,11 @@ />
    - - - - - + + + + +
    - - - - - - - - + + + + + + + +
    @@ -270,11 +276,11 @@
    - - - - - + + + + +
    @@ -333,6 +339,7 @@ import jsPreviewDocx from '@js-preview/docx' import '@js-preview/docx/lib/index.css' import { debounce } from 'lodash' import { mainStore } from '@/store/main' +import { getPriceShowConfigApi } from 'http/api/common' const store = mainStore() const userStore = useStore() const router = useRouter() @@ -386,7 +393,7 @@ const getOrderListData = async () => { const addParams = { maId: Number(pageParams.maId), } - const res: any = await getCodeNumDetailApi({ id: route.query.id, devType: route.query.devType}) + const res: any = await getCodeNumDetailApi({ id: route.query.id, devType: route.query.devType }) console.log(res, '装备详情') orderList.value = [] // orderList.value = res.data @@ -402,7 +409,6 @@ const getOrderListData = async () => { } orderList.value.push(orderInfo) - } onMounted(() => { @@ -549,7 +555,7 @@ const onCartSubmit = debounce(async () => { // console.log('submitParams', submitParams) const res: any = await submitBookCarApi({ ...queryForm, - orderInfoDto: [submitParams] + orderInfoDto: [submitParams], }) if (res.code === 200) { ElMessage({ @@ -682,6 +688,14 @@ const handleViewWord = async (index: any) => { const submitBtn = () => { window.location.href = wordUrl.value } + +const isShowPrice = ref(false) +const isShowPriceFun = async () => { + const res: any = await getPriceShowConfigApi() + isShowPrice.value = res?.rows[0].status == 0 ? true : false +} + +isShowPriceFun()