From 48fa43788cbaa65902af473bb42a87a3a8557d39 Mon Sep 17 00:00:00 2001 From: guoxin Date: Tue, 2 Jan 2024 09:01:49 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=86=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessMgm/ChargeRules/EditModal.jsx | 19 ++++++++------ .../PersonMgm/AuditMgm/AuditCheck/loadable.jsx | 6 +++-- .../PersonMgm/MesNotification/loadable.jsx | 5 +--- .../PersonMgm/Performance/SalesStat/loadable.jsx | 30 ++++++++++++++-------- .../GeomagneticSignalMgm/loadable.jsx | 12 ++++----- .../Staggered/StaggeredMgm/loadable.jsx | 21 ++++++++------- 6 files changed, 51 insertions(+), 42 deletions(-) diff --git a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx index 1968329..64262b5 100644 --- a/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx +++ b/src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx @@ -246,15 +246,18 @@ const FormModal = (props) => { }; useEffect(() => { - let newObj = { ...defaultData } - if (JSON.stringify(yisaData) != "{}") { - newObj = handelDate(yisaData, 2) + if(yisaData){ + let newObj = { ...defaultData } + if (JSON.stringify(yisaData) != "{}") { + newObj = handelDate(yisaData, 2) + } + newObj.rules = newObj?.source?.rules + // delete newObj.source + //生成初始组件 + init(newObj); + form.setFieldsValue(newObj); } - newObj.rules = newObj?.source?.rules - // delete newObj.source - //生成初始组件 - init(newObj); - form.setFieldsValue(newObj); + }, [yisaData]); useEffect(() => { diff --git a/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx index 50a26a8..dbfbcc8 100644 --- a/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx +++ b/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx @@ -306,6 +306,7 @@ function AuditCheck() { function search(date) { console.log(date); let result = searchForm.getFieldsValue(); + console.log(result); if (type === "1") { result = { ...result, ...reportTime, ...pageData }; } else { @@ -373,7 +374,8 @@ function AuditCheck() { operator_id: "0", report_time: "", type_id: "0", - road_name: "" + road_name: "", + status:-1 }; //查询部分 function renderSearch(params) { @@ -441,7 +443,7 @@ function AuditCheck() { - + diff --git a/src/pages/InRoadMgm/PersonMgm/MesNotification/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/MesNotification/loadable.jsx index ca20e52..c7c962c 100644 --- a/src/pages/InRoadMgm/PersonMgm/MesNotification/loadable.jsx +++ b/src/pages/InRoadMgm/PersonMgm/MesNotification/loadable.jsx @@ -48,9 +48,6 @@ function MesNotification(props) { } return result; } - const sendModal = () => { - setSendVisible(false) - } //重置数据 const getResetData = () => { setSendVisible(true) @@ -308,7 +305,7 @@ function MesNotification(props) { { let data = { ...formData, - export_type:"" + export_type: "" } ajax.salesExport(data).then(res => { window.open(res.data.url) @@ -274,10 +275,10 @@ function SalesStat(props) { }) } const exportAll = () => { - + let data = { ...formData, - export_type:"all" + export_type: "all" } ajax.salesExport(data).then(res => { window.open(res.data.url) @@ -288,6 +289,7 @@ function SalesStat(props) { const revenueModal = () => { setRevenueVisible(false) } + const [textL, setTextL] = useState('') useEffect(() => { getData() }, []) @@ -327,10 +329,10 @@ function SalesStat(props) { ]} />
- - +
@@ -339,8 +341,8 @@ function SalesStat(props) {
共检索到{resultData.total_records}条结果 + 导出 +
《 {/* 外层做显示区域,里边元素滚动 */}
-
+
{ getTabData && getTabData.map((item, index) => { @@ -398,10 +400,16 @@ function SalesStat(props) {
{ - getValue < getTabData.length - 1 && + if (getValue < getTabData.length - 1) { setGetValue(getValue + 1) + let Arritem = getTabData.filter((item) => item.value == getValue + 1)[0] + setTextL(Arritem.text.length) + console.log(textL); + setCheckData(Arritem.children) + setGetTotal(Arritem.total_records) + } } } >》
diff --git a/src/pages/InRoadMgm/RecordInquiry/GeomagneticSignalMgm/loadable.jsx b/src/pages/InRoadMgm/RecordInquiry/GeomagneticSignalMgm/loadable.jsx index f33eb80..4f3bba2 100644 --- a/src/pages/InRoadMgm/RecordInquiry/GeomagneticSignalMgm/loadable.jsx +++ b/src/pages/InRoadMgm/RecordInquiry/GeomagneticSignalMgm/loadable.jsx @@ -300,14 +300,14 @@ function GeomagneticSignalMgm() { }, { title: "实付金额", - dataIndex: "actual_amount", - key: "actual_amount", + dataIndex: "paid_in_money", + key: "paid_in_money", align: "center", }, { title: "支付类型", - dataIndex: "pay_road", - key: "pay_road", + dataIndex: "pay_type_name", + key: "pay_type_name", align: "center", }, { @@ -330,8 +330,8 @@ function GeomagneticSignalMgm() { }, { title: "付款路段", - dataIndex: "road", - key: "road", + dataIndex: "pay_road", + key: "pay_road", align: "center", }, { diff --git a/src/pages/OperationCenter/OtherBusiness/Staggered/StaggeredMgm/loadable.jsx b/src/pages/OperationCenter/OtherBusiness/Staggered/StaggeredMgm/loadable.jsx index ca8fe85..404c7b1 100644 --- a/src/pages/OperationCenter/OtherBusiness/Staggered/StaggeredMgm/loadable.jsx +++ b/src/pages/OperationCenter/OtherBusiness/Staggered/StaggeredMgm/loadable.jsx @@ -95,7 +95,7 @@ function StaggeredMgm(props) { // }; //物品类型 const handleParkName = (v) => { - setFormData({ ...formData, road: v}) + setFormData({ ...formData, road: v }) } //商户名称 const handleDeployType = (value) => { @@ -396,10 +396,6 @@ function StaggeredMgm(props) { const placeSaveBtn = () => { let infoArr = [...getSaleMsg] infoArr.map((item, index) => { - if (item.week.length != []) { - item.week = item.week.join(',') - } - let data = { ...getCarMsg, info: infoArr @@ -412,11 +408,14 @@ function StaggeredMgm(props) { message.error('请选择错峰日期') } else if (item?.start_time === '' || item?.end_time === '') { message.error('请选择错峰时间') - } else if (item?.num === '') { + } else if (item?.num === '') { message.error('请输入错峰卡数量') } else if (item?.price === '') { message.error('请输入销售价格') } else { + if (item.week.length != []) { + item.week = item.week.join(',') + } ajax.getAddStaggered(data).then(res => { if (res.status === 20000) { message.success(res.message) @@ -567,13 +566,13 @@ function StaggeredMgm(props) {
- - -
@@ -855,7 +854,7 @@ function StaggeredMgm(props) {
*
handleChangeDate( date, dateString, index