From 3b7be2236ce179d07e014f5de1d7849c1a752a72 Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 20 Jun 2025 11:50:55 +0800 Subject: [PATCH] 快速报价app tab新增 --- src/mobile/components/SelectInput.jsx | 42 ++++++++++++++++++++++++++---------------- src/mobile/quotation/detailNew.jsx | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- src/mobile/quotation/quotationDetail.css | 19 +++++++++++++++++++ src/mobile/quotation/quotationDetail.less | 19 +++++++++++++++++++ 4 files changed, 153 insertions(+), 30 deletions(-) diff --git a/src/mobile/components/SelectInput.jsx b/src/mobile/components/SelectInput.jsx index 11e2c0f..fc9624a 100644 --- a/src/mobile/components/SelectInput.jsx +++ b/src/mobile/components/SelectInput.jsx @@ -1,5 +1,5 @@ import React, { useState, useRef, useEffect, useCallback } from "react"; -import { Input, Popup, Button, Toast, PickerView, SearchBar } from "antd-mobile"; +import { Input, Popup, Button, Toast, PickerView, SearchBar,Checkbox } from "antd-mobile"; import { DownOutline } from "antd-mobile-icons"; import commonConfig from "@/utils/config"; import * as commonServices from "@/services/services"; @@ -18,8 +18,11 @@ const SelectInput = props => { const { masterData } = props.state; const [bCanInput, setBCanInput] = useState(props.bCanInput); const { bReadonly } = itemDetail || {}; + const [propsType, setPropsType] = useState(""); useEffect(() => { if (!itemDetail) return; + const type = itemDetail.sName.charAt(0); + setPropsType(type); const viewRowNew = itemDetail.sName ? viewRow?.[itemDetail.sName] : ""; if (itemDetail.sDropDownType === "const") { return; @@ -109,7 +112,7 @@ const SelectInput = props => { setCopyColumns(list); // getSqlDropDownData(searchValue); } else if ((sDropDownType = "const")) { - if (!itemDetail.showDropDown) return + if (!itemDetail.showDropDown) return; const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({ label: value, value: key, @@ -121,7 +124,7 @@ const SelectInput = props => { if (sDropDownType === "sql") { getSqlDropDownData(searchValue); } else if ((sDropDownType = "const")) { - if (!itemDetail.showDropDown) return + if (!itemDetail.showDropDown) return; const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({ label: value, value: key, @@ -144,20 +147,27 @@ const SelectInput = props => { return (