Browse Source

fix():处理路内bug

tags/PMS_Frontend_v1.0.6-develop
guoxin 1 year ago
parent
commit
4846055a89
  1. 5
      src/pages/InRoadMgm/BusinessMgm/Blacklist/loadable.jsx
  2. 15
      src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx
  3. 38
      src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/loadable.jsx
  4. 2
      src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx
  5. 12
      src/pages/InRoadMgm/RoadMgm/ConfigRoad/loadable.jsx
  6. 30
      src/pages/OperationCenter/CustomerServieMgm/CallbackSuggestion/loadable.jsx
  7. 1
      src/pages/OperationCenter/GeoSignalIgnore/GeoSignalIgnoreConf/index.scss
  8. 32
      src/pages/OperationCenter/GeoSignalIgnore/GeoSignalIgnoreConf/loadable.jsx
  9. 7
      src/pages/SystemMgm/RoleMgm/loadable.jsx
  10. 4
      src/services/InroadMgm/RoadMgm/RoadMgm.js

5
src/pages/InRoadMgm/BusinessMgm/Blacklist/loadable.jsx

@ -53,6 +53,7 @@ function Blacklist(props) {
const handlePlateColor = (v) => { const handlePlateColor = (v) => {
setGetAddData({ ...getAddData, plate_color_id: v }) setGetAddData({ ...getAddData, plate_color_id: v })
} }
console.log(getAddData);
// //
const handleOperatorName = (v) => { const handleOperatorName = (v) => {
setGetAddData({ ...getAddData, operator_id: v }) setGetAddData({ ...getAddData, operator_id: v })
@ -69,7 +70,7 @@ function Blacklist(props) {
message.error('请输入车牌号') message.error('请输入车牌号')
} else if (getAddData.operator_id == '') { } else if (getAddData.operator_id == '') {
message.error('请选择商户名称') message.error('请选择商户名称')
} else if (getAddData.plate_color_id == '') {
} else if (getAddData.plate_color_id === '') {
message.error('请选择车牌颜色') message.error('请选择车牌颜色')
}else { }else {
ajax.addChange(data).then(res => { ajax.addChange(data).then(res => {
@ -82,6 +83,8 @@ function Blacklist(props) {
plate_color: '', plate_color: '',
content: '', content: '',
}) })
}else{
message.error(res.message)
} }
}) })
} }

15
src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx

@ -377,12 +377,14 @@ function CollectorWorkStat(props) {
}, },
] ]
const [getCheckPic, setGetCheckPic] = useState([]) const [getCheckPic, setGetCheckPic] = useState([])
const [getTableId, setGetTableId] = useState({})
const CheckBtn = (record) => { const CheckBtn = (record) => {
setGetCheckData(record) setGetCheckData(record)
setGetCheckPic(record.image) setGetCheckPic(record.image)
setCheckVisible(true) setCheckVisible(true)
columnList(record)
getTable()
getTable(record)
setGetTableId(record.id)
} }
const [getImage, setGetImage] = useState([]) const [getImage, setGetImage] = useState([])
const CheckApplyBtn = (record) => { const CheckApplyBtn = (record) => {
@ -439,15 +441,18 @@ function CollectorWorkStat(props) {
data: [], data: [],
total_records: 0, total_records: 0,
}) })
const [getTableId, setGetTableId] = useState({})
const columnList = (record) => { const columnList = (record) => {
setGetTableId(record) setGetTableId(record)
} }
// useEffect(() => { // useEffect(() => {
// }, [getTableId.id]) // }, [getTableId.id])
const getTable = (data = lastColumnList) => {
ajax.columnData({ ...data, white_id: getTableId.id }).then(res => {
const getTable = (record) => {
let data ={
...lastColumnList,
id:record.id
}
ajax.columnData(data).then(res => {
if (res.status === 20000) { if (res.status === 20000) {
let resDataArr = res.data.list.map((item) => { let resDataArr = res.data.list.map((item) => {
item.key = item.id item.key = item.id

38
src/pages/InRoadMgm/PersonMgm/Attendance/WorkerSchedule/loadable.jsx

@ -110,7 +110,8 @@ function WorkerSchedule(props) {
setGetId(record.id) setGetId(record.id)
setGetName(record.pdaManagerName) setGetName(record.pdaManagerName)
let data = { let data = {
user_id: record.id
user_id: record.id,
date:record.date
} }
ajax.getDateList(data).then(res => { ajax.getDateList(data).then(res => {
if (res.status === 20000) { if (res.status === 20000) {
@ -127,7 +128,8 @@ function WorkerSchedule(props) {
operation(record) operation(record)
setGetName(record.pdaManagerName) setGetName(record.pdaManagerName)
let data = { let data = {
user_id: record.id
user_id: record.id,
date:record.date
} }
ajax.getDateList(data).then(res => { ajax.getDateList(data).then(res => {
if (res.status === 20000) { if (res.status === 20000) {
@ -201,21 +203,32 @@ function WorkerSchedule(props) {
const [getMonthDate, setGetMonthDate] = useState({}) const [getMonthDate, setGetMonthDate] = useState({})
console.log(getMonthDate); console.log(getMonthDate);
// //
const [getAllChange, setGetAllChange] = useState({
scheduleId:''
})
const changeBtn = () => { const changeBtn = () => {
let str = JSON.stringify(getMonthDate) let str = JSON.stringify(getMonthDate)
console.log(str); console.log(str);
let data = { let data = {
scheduleId: getAllChange,
...getAllChange,
date: str === '{}' ? getDateListNum : getMonthDate, date: str === '{}' ? getDateListNum : getMonthDate,
user_id: getId, user_id: getId,
is_batch: 1 is_batch: 1
} }
ajax.editList(data).then(res => {
if (res.status === 20000) {
setEditVisible(false)
message.success(res.message)
}
})
if(getAllChange.scheduleId===''){
message.error('请选择休息或者排班班次')
}else{
ajax.editList(data).then(res => {
if (res.status === 20000) {
setEditVisible(false)
message.success(res.message)
setGetAllChange({
scheduleId:''
})
}
})
}
} }
const getListData = (value) => { const getListData = (value) => {
let listData; let listData;
@ -316,12 +329,9 @@ function WorkerSchedule(props) {
} }
}) })
} }
const [getAllChange, setGetAllChange] = useState({
scheduleId:1
})
const handleAllChange = (v) => {
setGetAllChange(v)
const handleAllChange = (v) => {
setGetAllChange({ ...getAllChange, scheduleId: v })
} }
const changeTime = (value) => { const changeTime = (value) => {
let data = { let data = {

2
src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx

@ -733,7 +733,7 @@ function DisabledCarParkRecordTotal() {
mandatory_name={'车牌号'} mandatory_name={'车牌号'}
pageName={'disabledCarParkRecordTotal'} pageName={'disabledCarParkRecordTotal'}
search={search} search={search}
exportUrl={'http://192.168.5.149:90/PMS/api/bpm/record/get_record_export'}
exportUrl="/api/bpm/record/get_record_export_cj"
/> />
<Modal <Modal
open={detailVisible} open={detailVisible}

12
src/pages/InRoadMgm/RoadMgm/ConfigRoad/loadable.jsx

@ -617,7 +617,7 @@ function ConfigRoad() {
}, },
search: function (params) { search: function (params) {
ajax ajax
.getPoleList(params)
.getPoleListData(params)
.then((res) => { .then((res) => {
if (res.status === 20000) { if (res.status === 20000) {
setResultData({ setResultData({
@ -1107,14 +1107,8 @@ function ConfigRoad() {
title: item.label title: item.label
}) })
}) })
res.data.right.map(item => {
temparrRight.push({
key: item.value + '',
title: item.label
})
})
setLeftGetBerth(temparr) setLeftGetBerth(temparr)
setTargetKeys(temparrRight)
setTargetKeys(res.data.right)
} }
}) })
} }
@ -2280,7 +2274,7 @@ function ConfigRoad() {
{ {
dataAcquistionModal.isEdit === 0 ? dataAcquistionModal.isEdit === 0 ?
<Col span={12}> <Col span={12}>
<Form.Item label="对应的泊位号" name="berth">
<Form.Item label="对应的泊1位号" name="berth">
<Transfer <Transfer
dataSource={dataAcquistionBerth} dataSource={dataAcquistionBerth}
titles={['未选择', '已选择']} titles={['未选择', '已选择']}

30
src/pages/OperationCenter/CustomerServieMgm/CallbackSuggestion/loadable.jsx

@ -412,7 +412,12 @@ function CallbackSuggestion(props) {
} }
}) })
} }
const [submitDeploy, setSubmitDeploy] = useState({})
const [submitDeploy, setSubmitDeploy] = useState({
change_content:'',
update_value:'',
plate_type:'',
deal_reason:''
})
// //
const onChangeReason = (value) => { const onChangeReason = (value) => {
setSubmitDeploy({ ...submitDeploy, deal_reason: value.target.value }) setSubmitDeploy({ ...submitDeploy, deal_reason: value.target.value })
@ -446,19 +451,25 @@ function CallbackSuggestion(props) {
} }
const cancelBtn = () => { const cancelBtn = () => {
setOrderVisible(false) setOrderVisible(false)
setSubmitDeploy({change_content:'',update_value:'',plate_type:'',deal_reason:''})
} }
const submitBtn = () => { const submitBtn = () => {
let data = { let data = {
...submitDeploy, ...submitDeploy,
id: getId
id: getImg.parkRecordId
} }
if (submitDeploy.change_content === undefined) {
if(submitDeploy.deal_reason===''){
message.error('请输入处理理由')
}else if (submitDeploy.change_content === '') {
message.error('请选择对应的更改项') message.error('请选择对应的更改项')
} else { } else {
ajax.submitData(data).then(res => { ajax.submitData(data).then(res => {
if (res.status === 20000) { if (res.status === 20000) {
setOrderVisible(false) setOrderVisible(false)
setImgVisible(false) setImgVisible(false)
setSubmitDeploy({change_content:'',update_value:'',plate_type:'',deal_reason:''})
setGetAdjustTimeValue(1)
setGetValueList({})
} }
}) })
} }
@ -874,7 +885,7 @@ function CallbackSuggestion(props) {
</div> </div>
<div className="deal-reason"> <div className="deal-reason">
<div className="title">处理理由</div> <div className="title">处理理由</div>
<TextArea showCount maxLength={30} className="text" onChange={onChangeReason} />
<TextArea showCount maxLength={30} value={submitDeploy.deal_reason} className="text" onChange={onChangeReason} />
</div> </div>
<div className="deal-style"> <div className="deal-style">
<div className="title">处理理由</div> <div className="title">处理理由</div>
@ -885,7 +896,7 @@ function CallbackSuggestion(props) {
style={{ width: 200 }} style={{ width: 200 }}
placeholder="请选择" placeholder="请选择"
placement='topRight' placement='topRight'
value={submitDeploy.adviseType}
value={submitDeploy.change_content}
options={[ options={[
{ {
value: 1, value: 1,
@ -936,6 +947,7 @@ function CallbackSuggestion(props) {
<DatePicker <DatePicker
format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"
placement='topRight' placement='topRight'
value={submitDeploy.update_value}
style={{ width: 300 }} style={{ width: 300 }}
showTime={{ showTime={{
defaultValue: moment('00:00:00', 'HH:mm:ss'), defaultValue: moment('00:00:00', 'HH:mm:ss'),
@ -949,7 +961,7 @@ function CallbackSuggestion(props) {
<label>入场时间+</label> <label>入场时间+</label>
<Input <Input
placeholder="请输入数字" placeholder="请输入数字"
value={formData.plateNumber}
value={submitDeploy.update_value}
style={{ width: 150 }} style={{ width: 150 }}
onChange={handleComeTime} onChange={handleComeTime}
/> />
@ -966,13 +978,13 @@ function CallbackSuggestion(props) {
style={{ width: 100 }} style={{ width: 100 }}
placeholder="请选择" placeholder="请选择"
placement='topRight' placement='topRight'
value={submitDeploy.plateColor}
value={submitDeploy.plate_type}
options={sysConfig.plateColor} options={sysConfig.plateColor}
onChange={handlePlateColor} onChange={handlePlateColor}
/> />
<Input <Input
placeholder="请输入内容" placeholder="请输入内容"
value={formData.plateNumber}
value={submitDeploy.update_value}
style={{ width: 150 }} style={{ width: 150 }}
onChange={handlePlateNumber} onChange={handlePlateNumber}
/> />
@ -1001,7 +1013,7 @@ function CallbackSuggestion(props) {
<label style={{ marginLeft: 30 }}>金额-</label> <label style={{ marginLeft: 30 }}>金额-</label>
<Input <Input
placeholder="请输入内容" placeholder="请输入内容"
value={formData.addCount}
value={submitDeploy.update_value}
style={{ width: 150 }} style={{ width: 150 }}
onChange={handleAddCount} onChange={handleAddCount}
/> />

1
src/pages/OperationCenter/GeoSignalIgnore/GeoSignalIgnoreConf/index.scss

@ -210,6 +210,7 @@ $color-primary : var(--color-primary);
.yisa-search{ .yisa-search{
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
line-height: 37px;
label{ label{
line-height: 31px; line-height: 31px;
} }

32
src/pages/OperationCenter/GeoSignalIgnore/GeoSignalIgnoreConf/loadable.jsx

@ -115,15 +115,28 @@ function GeoSignalIgnoreConf(props) {
let data = { let data = {
...getModalData ...getModalData
} }
ajax.getconfigurationAdd(data).then(res => {
if (res.status === 20000) {
setImgVisible(false)
getData(formData)
}
})
if(getModalData.confName===''){
message.error('请输入类型名称')
}else{
ajax.getconfigurationAdd(data).then(res => {
if (res.status === 20000) {
setImgVisible(false)
getData(formData)
setGetModalData({
confName: '',//
content: ''//
})
}
})
}
} }
const rejectCancel = () => { const rejectCancel = () => {
setImgVisible(false) setImgVisible(false)
setGetModalData({
confName: '',//
content: ''//
})
} }
// //
const getData = (data = formData) => { const getData = (data = formData) => {
@ -217,18 +230,19 @@ function GeoSignalIgnoreConf(props) {
title='类型新建' title='类型新建'
> >
<div className="yisa-search"> <div className="yisa-search">
<div className="redLogo">*</div>
<label>类型名称</label> <label>类型名称</label>
<TextArea <TextArea
placeholder='请输入类型名称' placeholder='请输入类型名称'
style={{ width: 400, height: 50, marginLeft: 19 }}
style={{ width: 400, height: 50, marginLeft: 7 }}
onChange={handleConfName} onChange={handleConfName}
/> />
</div> </div>
<div className="yisa-search">
<div className="yisa-search" style={{marginLeft:15}}>
<label>类型描述</label> <label>类型描述</label>
<TextArea <TextArea
placeholder='请输入类型描述' placeholder='请输入类型描述'
style={{ width: 400, height: 100, marginLeft: 19 }}
style={{ width: 400, height: 100, marginLeft: 7 }}
onChange={handleContent} onChange={handleContent}
/> />
</div> </div>

7
src/pages/SystemMgm/RoleMgm/loadable.jsx

@ -70,7 +70,7 @@ function RoleMgm(props) {
}; };
const [getGovernmentArea, setGetGovernmentArea] = useState([]) const [getGovernmentArea, setGetGovernmentArea] = useState([])
//
//
const [checkedKeys, setCheckedKeys] = useState([]); const [checkedKeys, setCheckedKeys] = useState([]);
const onCheckbox = (v) => { const onCheckbox = (v) => {
if (v.target.checked === true) { if (v.target.checked === true) {
@ -299,7 +299,8 @@ function RoleMgm(props) {
setAddManage({ setAddManage({
remark: '', remark: '',
name: '', name: '',
depart_id: null,
depart_id: '',
auth: ''
}) })
setCheckedKeys([]) setCheckedKeys([])
setGetGovernment(0) setGetGovernment(0)
@ -505,7 +506,7 @@ function RoleMgm(props) {
<Cascader <Cascader
style={{ width: 260, marginLeft: 50 }} style={{ width: 260, marginLeft: 50 }}
placeholder="请选择" placeholder="请选择"
// value={addManage.depart_id}
value={addManage.depart_id}
options={getPlateColor} options={getPlateColor}
changeOnSelect changeOnSelect
onChange={handleDeptName} onChange={handleDeptName}

4
src/services/InroadMgm/RoadMgm/RoadMgm.js

@ -100,7 +100,7 @@ const addToll = (params) => {
///api/bpm/device/road_set_pole_position_list 杆位管理-获取列表 ///api/bpm/device/road_set_pole_position_list 杆位管理-获取列表
const getPoleList = (params) => {
const getPoleListData = (params) => {
return ajax({ return ajax({
url: "/api/bpm/device/road_set_pole_position_list", url: "/api/bpm/device/road_set_pole_position_list",
type: "post", type: "post",
@ -369,7 +369,7 @@ export default {
getRoadInfo, getRoadInfo,
addToll, addToll,
getEtcData, getEtcData,
getPoleList,
getPoleListData,
getRoadRuleList, getRoadRuleList,
delToll, delToll,
getEditInRoadData, getEditInRoadData,

Loading…
Cancel
Save