diff --git a/src/components/TableModule/index.jsx b/src/components/TableModule/index.jsx
index 2d63ae3..8a7dfc0 100644
--- a/src/components/TableModule/index.jsx
+++ b/src/components/TableModule/index.jsx
@@ -280,7 +280,7 @@ const TableModule = forwardRef((props, ref) => {
});
}
useEffect(() => {
- !areaSelectedList.length && fetch()
+ !areaSelectedList.length && setTimeout( fetch,1000)
}, [areaSelectedList])
function cascaderChange(value, options) {
let res = [];
diff --git a/src/components/layout/Tabs/index.jsx b/src/components/layout/Tabs/index.jsx
index b4d2d0b..22cd89b 100644
--- a/src/components/layout/Tabs/index.jsx
+++ b/src/components/layout/Tabs/index.jsx
@@ -60,6 +60,7 @@ export default function Tabs() {
let path = tabList[index + 1].path
navigate(path)
}
+ console.log(data);
}
// 关闭所有标签
diff --git a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx
index 750ed14..1968329 100644
--- a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx
+++ b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx
@@ -54,11 +54,11 @@ const FormModal = (props) => {
"limit": "",
"items": [
{
- "type": 0,
- "segment": 0,
- "threshold": 0,
- "period": 0,
- "unit": 0
+ "type": '',
+ "segment": '',
+ "threshold": '',
+ "period": '',
+ "unit": ''
},
]
},
@@ -70,11 +70,11 @@ const FormModal = (props) => {
"limit": "",
"items": [
{
- "type": 0,
- "segment": 0,
- "threshold": 0,
- "period": 0,
- "unit": 0
+ "type": '',
+ "segment": '',
+ "threshold": '',
+ "period": '',
+ "unit": ''
},
]
},
@@ -232,7 +232,11 @@ const FormModal = (props) => {
})
if(handleFormValidation(data,0)&&handleFormValidation(data,1)){
// let newData = handelDate(data, 1)
- ajax.deleteChangeRules({source:data}).then(res => {
+ let i = data
+ const {rules,...rest} = i
+ const source = { source:{ ...rest,rules:rules }};
+ i={ ...rest,...source}
+ ajax.deleteChangeRules(i).then(res => {
if (res.status === 20000) {
setGetEditVisible(false)
getData()
@@ -287,11 +291,11 @@ const FormModal = (props) => {
//区间模板
const newItems = {
- "type": 0,
- "segment": 0,
- "threshold": 0,
- "period": 0,
- "unit": 0
+ "type": '',
+ "segment": '',
+ "threshold": '',
+ "period": '',
+ "unit": ''
};
//工作日计费时段模板
const newDetails = {
diff --git a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/FormModal.jsx b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/FormModal.jsx
index 6504dfb..4ad7e74 100644
--- a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/FormModal.jsx
+++ b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/FormModal.jsx
@@ -60,11 +60,11 @@ const FormModal = (props) => {
"limit": "",
"items": [
{
- "type": 0,
- "segment": 0,
- "threshold": 0,
- "period": 0,
- "unit": 0
+ "type": '',
+ "segment": '',
+ "threshold": '',
+ "period": '',
+ "unit": ''
},
]
},
@@ -76,11 +76,11 @@ const FormModal = (props) => {
"limit": "",
"items": [
{
- "type": 0,
- "segment": 0,
- "threshold": 0,
- "period": 0,
- "unit": 0
+ "type": '',
+ "segment": '',
+ "threshold": '',
+ "period": '',
+ "unit": ''
},
]
},
@@ -251,6 +251,7 @@ const FormModal = (props) => {
const {rules,...rest} = i
const source = { source:{ ...rest,rules:rules }};
i={ ...rest,...source}
+ console.log(rules);
console.log("addChangeRules",i)
ajax.addChangeRules(i).then(res => {
if (res.status === 20000) {
@@ -300,11 +301,11 @@ const FormModal = (props) => {
};
//区间模板
const newItems = {
- "type": 0,
- "segment": 0,
- "threshold": 0,
- "period": 0,
- "unit": 0
+ "type": '',
+ "segment": '',
+ "threshold": '',
+ "period": '',
+ "unit": ''
};
//工作日计费时段模板
const newDetails = {
@@ -864,6 +865,7 @@ const FormModal = (props) => {
{...restField}
name={[name, "period"]}
label=""
+ rules={[{ required: true, message: "不能为0" }]}
>
@@ -1046,6 +1048,7 @@ const FormModal = (props) => {
{...restField}
name={[name, "period"]}
label=""
+ rules={[{ required: true, message: "不能为0" }]}
>
diff --git a/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx b/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx
index 46d7350..7db8d50 100644
--- a/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx
+++ b/src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx
@@ -8,6 +8,7 @@ import "./index.scss";
import { SearchOutlined, DeleteOutlined, PlusOutlined, CloseCircleFilled } from '@ant-design/icons';
import ajax from '@/services'
import { useSessionStorageState } from "ahooks"
+import { dictionary, utils } from "@/config/common";
const { TabPane } = Tabs;
const { TextArea } = Input;
function CollectorWorkStat(props) {
@@ -1021,7 +1022,9 @@ function CollectorWorkStat(props) {
message.error('请选择车牌颜色')
} else if (getCreatDataList.plate === undefined) {
message.error('请输入车牌号')
- } else {
+ } else if (!utils?.validationPlate(getCreatDataList.plate) ) {
+ message.error('请输入完整的车牌号码')
+ }else {
let data = {
plate_color_id: getCreatDataList.plate_color_id,
plate: getCreatDataList.plate
diff --git a/src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx b/src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx
index 19dceb4..9586410 100644
--- a/src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx
+++ b/src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx
@@ -608,6 +608,7 @@ function DisabledCarParkRecordTotal() {
preferential_amount: record.preferential_amount,
road_discount: record.road_discount,
parking_card_discount: record.parking_card_discount,
+ vehicel_type: record.vehicel_type,
},
}).then((res) => {
let { status, data, total_records, total } = res
diff --git a/src/pages/InRoadMgm/RecordInquiry/UnRecordOrder/loadable.jsx b/src/pages/InRoadMgm/RecordInquiry/UnRecordOrder/loadable.jsx
index b6821d2..22424d8 100644
--- a/src/pages/InRoadMgm/RecordInquiry/UnRecordOrder/loadable.jsx
+++ b/src/pages/InRoadMgm/RecordInquiry/UnRecordOrder/loadable.jsx
@@ -107,10 +107,10 @@ function PreOrderRecord() {
dataIndex: "validity",
key: "validity",
align: "center",
- width: 100,
+ width: 150,
render: (_, record) => {
let flag = record.tollman === "";
- return
2.请选择上传文件,并上传。
-