Browse Source

fix():修改路内bug

master
guoxin 1 year ago
parent
commit
48fa43788c
  1. 3
      src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx
  2. 6
      src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx
  3. 5
      src/pages/InRoadMgm/PersonMgm/MesNotification/loadable.jsx
  4. 12
      src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/loadable.jsx
  5. 12
      src/pages/InRoadMgm/RecordInquiry/GeomagneticSignalMgm/loadable.jsx
  6. 7
      src/pages/OperationCenter/OtherBusiness/Staggered/StaggeredMgm/loadable.jsx

3
src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx

@ -246,6 +246,7 @@ const FormModal = (props) => {
};
useEffect(() => {
if(yisaData){
let newObj = { ...defaultData }
if (JSON.stringify(yisaData) != "{}") {
newObj = handelDate(yisaData, 2)
@ -255,6 +256,8 @@ const FormModal = (props) => {
//
init(newObj);
form.setFieldsValue(newObj);
}
}, [yisaData]);
useEffect(() => {

6
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() {
</Col>
<Col span={24}>
<Form.Item label="所属路段" name="road_name">
<Input placeholder="请输入记录编号" {...inputParams} />
<Input placeholder="请输入所属路段" {...inputParams} />
</Form.Item>
</Col>
<Col span={24}>

5
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) {
</div>
<Modal
visible={sendVisible}
onCancel={sendModal}
onCancel={placeBtn}
footer={null}
title='发送短信'
className="sendModal"

12
src/pages/InRoadMgm/PersonMgm/Performance/SalesStat/loadable.jsx

@ -8,6 +8,7 @@ import moment from "moment";
import "./index.scss";
import { SearchOutlined } from '@ant-design/icons';
import ajax from '@/services'
import { useSetState } from "ahooks";
function SalesStat(props) {
@ -288,6 +289,7 @@ function SalesStat(props) {
const revenueModal = () => {
setRevenueVisible(false)
}
const [textL, setTextL] = useState('')
useEffect(() => {
getData()
}, [])
@ -388,7 +390,7 @@ function SalesStat(props) {
}></div>
{/* 外层做显示区域,里边元素滚动 */}
<div className="list-view">
<div className="tab-top" style={{ transform: `translateX(${-getValue * 100}px)` }}>
<div className="tab-top" style={{ transform: `translateX(${- textL * 14 * getValue}px)` }}>
{
getTabData &&
getTabData.map((item, index) => {
@ -400,8 +402,14 @@ function SalesStat(props) {
<div style={{ lineHeight: 4, marginLeft: 6 }}
className="curpoint"
onClick={() => {
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)
}
}
}
></div>

12
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",
},
{

7
src/pages/OperationCenter/OtherBusiness/Staggered/StaggeredMgm/loadable.jsx

@ -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
@ -417,6 +413,9 @@ function StaggeredMgm(props) {
} 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)

Loading…
Cancel
Save