diff --git a/src/components/SelectGaodeLngLat/index.jsx b/src/components/SelectGaodeLngLat/index.jsx index e79f2a9..a9149cd 100644 --- a/src/components/SelectGaodeLngLat/index.jsx +++ b/src/components/SelectGaodeLngLat/index.jsx @@ -18,6 +18,7 @@ function SelectGaodeLngLat(props) { onChange = () => { }, isClickMarker = false // 点击地图添加标记 } = props; + console.log(lngLatVisible); const [lnglat, setLnglat] = useState([]); const [marker, setMarker] = useState([]); const [address, setAddress] = useState(""); @@ -95,7 +96,7 @@ function SelectGaodeLngLat(props) { 共查询到 {Data?.total || 0}条数据

- {Data?.total && ( + {Data?.total ? ( @@ -732,6 +732,8 @@ function ExceptionParkReport() { }} imgno={false} /> + ) : ( + "" )} 共查询到 {Data?.total || 0}条数据

- {Data?.total && ( + {Data?.total ? ( @@ -623,6 +623,8 @@ function ParkingAly() { }} imgno={false} /> + ) : ( + "" )} 共查询到 {Data?.total || 0}条数据

- {Data?.total && ( + {Data?.total ? ( @@ -1003,7 +1003,7 @@ function PayAly() { isTableModule={true} onOk={ReportPaySummaryReport} /> - )} + ):""} 共查询到 {Data?.total || 0}条数据

- {Data?.total && ( + {Data?.total ? ( @@ -826,7 +826,7 @@ function RegisterAly() { isTableModule={true} onOk={ReportPaySummaryReport} /> - )} + ):""} 导出} modalType="noImg" - totalRecords={resultData.total} + totalRecords={resultData.total_records} exportUrl="/api/ana/dataanalysis/get_parking_berth_rate_export" //pageName="parkingOverview" postdata={{ diff --git a/src/pages/FinancialMgm/OrderInquiry/ParkingOrderInquiry/index.jsx b/src/pages/FinancialMgm/OrderInquiry/ParkingOrderInquiry/index.jsx index 480e748..f43a450 100644 --- a/src/pages/FinancialMgm/OrderInquiry/ParkingOrderInquiry/index.jsx +++ b/src/pages/FinancialMgm/OrderInquiry/ParkingOrderInquiry/index.jsx @@ -216,15 +216,15 @@ function ParkingOrderInquiry(props) { align: "center", render: (text, data) => { if (data.arrearsAmount_new) { - return
- {data.arrearsAmount} - {data.arrearsAmount_new} -
+ return
+ {data.arrearsAmount} + {data.arrearsAmount_new} +
} else { - return
{text}
+ return
{text}
} - } + } }, { title: '订单修改时间', @@ -664,6 +664,7 @@ function ParkingOrderInquiry(props) { } } else { setResultData([]) + setTotal(0) message.error(res.message) } }) @@ -687,6 +688,7 @@ function ParkingOrderInquiry(props) { } } else { setArrearsData([]) + setTotal(0) message.error(res.message) } }) diff --git a/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx b/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx index 28324eb..d030862 100644 --- a/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx +++ b/src/pages/FinancialMgm/OrderInquiry/ReturnOrderInquiry/index.jsx @@ -366,7 +366,7 @@ function ReturnOrderInquiry() { } //页面渲染 function renderTable(columns, arr, dataSource, exportUrl) { - let initFormData = { flow_id: getUrlSearch("third_party_flow_id") || '', start_time: getUrlSearch("pay_time") ? moment(getUrlSearch("pay_time")) : moment(moment().format("YYYY-MM-DD HH:mm:ss")) } + let initFormData = { flow_id: getUrlSearch("third_party_flow_id") || '', start_time: getUrlSearch("pay_time") ? moment(getUrlSearch("pay_time")) : moment(moment().startOf("day").format("YYYY-MM-DD HH:mm:ss")) } return (
-
车牌号:{getDetailId.plateNumber}
+
车牌号:{getDetailId.plateNumber}
异常类型:{getDetailId.exceptDictName}
-
上报时间:{getDetailId.reportTime}
+
上报时间:{getDetailId.reportTime}
停车场:{getDetailId.parkName}
-
入场时间:{getDetailId.entryTime}
+
入场时间:{getDetailId.entryTime}
{ diff --git a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx index 855d0ce..3fc8dbc 100644 --- a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx +++ b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx @@ -509,6 +509,7 @@ const FormModal = (props) => { } const data = options; handleOptionsProcessing(i, z, data, type)//统一区间类型下拉数据更新 + form.setFieldsValue(currentFormValues) console.log("表单数据", currentFormValues); return true; } @@ -662,7 +663,7 @@ const FormModal = (props) => {
{
{ // 校验4.增加时段最高收费金额,当选择按次计费时时段最高收费金额输入框影藏 const data = options; handleOptionsProcessing(i, z, data, type)//统一区间类型下拉数据更新 + form.setFieldsValue(currentFormValues) console.log("表单数据", currentFormValues); return true; } @@ -639,7 +640,7 @@ const FormModal = (props) => {
{
{ - setCurrentPersonInfo({ ...currentPersonInfo, operator: e }) + setCurrentPersonInfo({ ...currentPersonInfo, operator: e , depart_id: ''}) getDeparts(e) getAssets(e) setGetPersonId(e) diff --git a/src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/index.scss b/src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/index.scss index 8b5165e..5aebacb 100644 --- a/src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/index.scss +++ b/src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/index.scss @@ -48,6 +48,11 @@ $color-primary: var(--color-primary); } } } + .ant-picker { + width: 100%; + background-color: var(--color-search-list-item-bg); + border-color: var(--color-border); + } } .ant-input::-webkit-input-placeholder { @@ -165,11 +170,7 @@ $color-primary: var(--color-primary); } } -.ant-picker { - width: 100%; - background-color: var(--color-search-list-item-bg); - border-color: var(--color-border); -} + // .yisa-table { // width: 100%; diff --git a/src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx b/src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx index bc6adae..029d617 100644 --- a/src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx +++ b/src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx @@ -19,7 +19,7 @@ import { import { PlusOutlined } from "@ant-design/icons"; import { useLocation, useNavigate } from "react-router-dom"; -import { ImgUpload, TreeSelectGroup, SelectGaodeLngLat } from "@/components"; +import { ImgUpload, TreeSelectGroup, SelectGaodeLngLat2 } from "@/components"; import moment from "moment"; import "./index.scss"; import ajax from "@/services"; @@ -50,7 +50,8 @@ function AddRoad(props) { ]; const { getDetailList = {}, - setDetailModel=()=>{} + setDetailModel=()=>{}, + setcheckModel=()=>{}, } = props const navigate = useNavigate(); const location = useLocation(); @@ -76,7 +77,7 @@ function AddRoad(props) { //所属商户 const [operatorId, setOperatorId] = useState(null); //编辑还是新增 - const [isEdit, setIsEdit] = useState(id !== null); + const [isEdit, setIsEdit] = useState(id !== undefined); //所属热门商圈 const [tradingAreaList, setTradingAreaList] = useState({ left: [], @@ -154,6 +155,7 @@ function AddRoad(props) { if (res.status === 20000) { message.success(res.message); setDetailModel(false) + setcheckModel(false) } else { message.error(res.message); } @@ -550,7 +552,7 @@ function AddRoad(props) { - setLngLatVisible(true)} lngLatVisible={lngLatVisible} getLntLat={(value) => { @@ -603,7 +605,7 @@ function AddRoad(props) { {isEdit ? ( <> - + @@ -859,6 +861,7 @@ function AddRoad(props) {
{/* { setGetOption(['0']) - + getAssetData() setFormData({ ...parameter, }) diff --git a/src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx b/src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx index 7cd0045..47b1cd2 100644 --- a/src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx +++ b/src/pages/NewEnergy/ChargeDeviceMgm/PhysicalPileManagement/loadable.jsx @@ -111,18 +111,17 @@ function PhysicalPileManagement() { message.destroy(); message.warning(`硬件编码不可为空`); return - } - else if(!reg.test(rowData?.code)){ + }else if(!reg.test(rowData?.code)){ message.destroy(); message.warning(`硬件编码不能包含汉字`); return - } - else if(!rowData.model||rowData.model.match(/^\s+$/)){ + }else if(!rowData.model||rowData.model.match(/^\s+$/)){ message.destroy(); message.warning(`设备型号不可为空`); return } - else if(!reg.test(rowData?.model)){ + let regs = /^[0-9a-zA-Z]*$/g; + if(!regs.test(rowData?.model)){ message.destroy(); message.warning(`设备型号不能包含汉字`); return diff --git a/src/pages/NewEnergy/ChargeStationMgm/loadable.jsx b/src/pages/NewEnergy/ChargeStationMgm/loadable.jsx index c0e8ffa..1d55229 100644 --- a/src/pages/NewEnergy/ChargeStationMgm/loadable.jsx +++ b/src/pages/NewEnergy/ChargeStationMgm/loadable.jsx @@ -241,7 +241,7 @@ function Appointment() { setDetailVisible(true) } const handelOk = () => { - console.log(addFormData); + // console.log(addFormData); if (!addFormData.name) { message.warn("请输入充电站名称") return @@ -250,11 +250,11 @@ function Appointment() { message.warn("请输入充电站编码") return } - if (!addFormData.count) { + if (!addFormData.count && addFormData.count != 0) { message.warn("请输入车位数量") return } - if (!pattern.test(addFormData.count)) { + if (!pattern.test(addFormData.count) || addFormData.count == 0) { message.warn("请输入正整数的车位数量") return } diff --git a/src/pages/OperationCenter/CarMgm/CarInfo/index.scss b/src/pages/OperationCenter/CarMgm/CarInfo/index.scss index 0a69241..656c182 100644 --- a/src/pages/OperationCenter/CarMgm/CarInfo/index.scss +++ b/src/pages/OperationCenter/CarMgm/CarInfo/index.scss @@ -145,7 +145,7 @@ $color-primary: var(--color-primary); width: 600px; height: 300px; border: 1px solid; - background: #6565656b; + background: rgb(62 69 87); img { width: 100%; height: 100%; diff --git a/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx b/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx index 90caed0..2728c53 100644 --- a/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx +++ b/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx @@ -809,7 +809,7 @@ function CarInfo() {
- +
车辆归属信息
diff --git a/src/pages/OperationCenter/CustomerServieMgm/ErrorCorrection/loadable.jsx b/src/pages/OperationCenter/CustomerServieMgm/ErrorCorrection/loadable.jsx index 0da3cbe..2530e38 100644 --- a/src/pages/OperationCenter/CustomerServieMgm/ErrorCorrection/loadable.jsx +++ b/src/pages/OperationCenter/CustomerServieMgm/ErrorCorrection/loadable.jsx @@ -17,7 +17,7 @@ function ErrorCorrection(props) { process_url: "" }) const parameter = { - areId:['0'], //区域 + areId: ['0'], //区域 parkName: '', //车场名称 correctionType: 0,//报错类型 pn: 1, @@ -48,6 +48,7 @@ function ErrorCorrection(props) { } } console.log(res); + setFormData({ ...formData, areId:value }) setAreaSelectedList(res); } const addChild = (child, res) => { @@ -121,11 +122,11 @@ function ErrorCorrection(props) { setImgVisible(false) } // 获取列表数据 - const getData = (data = formData) => { + const getData = (data = formData,reset='') => { setAjaxLoading(true) let dataList = { ...data, - areId: areaSelectedList + areId:!reset ? areaSelectedList :[] } ajax.getCarErrorList(dataList).then(res => { setAjaxLoading(false) @@ -157,7 +158,7 @@ function ErrorCorrection(props) { if (lastFormData.page_size === length) { setFormData(Object.assign({}, formData, { pn: pn, page_size: length })) setLastFormData(Object.assign({}, lastFormData, { pn: pn, page_size: length })) - lastFormDataRef.current = Object.assign({}, lastFormData, { pn: pn , page_size: length}) + lastFormDataRef.current = Object.assign({}, lastFormData, { pn: pn, page_size: length }) getData(Object.assign({}, formData, { pn: pn, page_size: length })) } } @@ -172,7 +173,7 @@ function ErrorCorrection(props) { const getSearchData = (data = formData) => { // getData(data) setFormData({ ...formData, pn: 1 }) - setLastFormData({...formData, pn: 1}) + setLastFormData({ ...formData, pn: 1 }) getData(Object.assign({}, formData, { pn: 1 })) } //重置数据 @@ -180,8 +181,8 @@ function ErrorCorrection(props) { setFormData({ ...parameter }) - setAreaId([]) - getData({...parameter,pn: 1} ) + setAreaSelectedList([]) + getData({ ...parameter, pn: 1 },'reset') } const [getCanCaDer, setGetCanCaDer] = useState([]) @@ -204,7 +205,7 @@ function ErrorCorrection(props) {
- - - +
@@ -320,21 +321,21 @@ function ErrorCorrection(props) {
问题描述:{getImg.description}
-
-
图片:
-
+
+
图片:
+
- { - getImgList?.map((res, index) => { - return ( -
- + { + getImgList?.map((res, index) => { + return ( +
+ -
- ) - }) - } -
+
+ ) + }) + } +
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx index d20e92e..f699344 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx @@ -109,7 +109,7 @@ function EffectiveDetail(props) {