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) => {
setGetAddData({ ...getAddData, plate_color_id: v })
}
console.log(getAddData);
//
const handleOperatorName = (v) => {
setGetAddData({ ...getAddData, operator_id: v })
@ -69,7 +70,7 @@ function Blacklist(props) {
message.error('请输入车牌号')
} else if (getAddData.operator_id == '') {
message.error('请选择商户名称')
} else if (getAddData.plate_color_id == '') {
} else if (getAddData.plate_color_id === '') {
message.error('请选择车牌颜色')
}else {
ajax.addChange(data).then(res => {
@ -82,6 +83,8 @@ function Blacklist(props) {
plate_color: '',
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 [getTableId, setGetTableId] = useState({})
const CheckBtn = (record) => {
setGetCheckData(record)
setGetCheckPic(record.image)
setCheckVisible(true)
columnList(record)
getTable()
getTable(record)
setGetTableId(record.id)
}
const [getImage, setGetImage] = useState([])
const CheckApplyBtn = (record) => {
@ -439,15 +441,18 @@ function CollectorWorkStat(props) {
data: [],
total_records: 0,
})
const [getTableId, setGetTableId] = useState({})
const columnList = (record) => {
setGetTableId(record)
}
// useEffect(() => {
// }, [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) {
let resDataArr = res.data.list.map((item) => {
item.key = item.id

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

@ -110,7 +110,8 @@ function WorkerSchedule(props) {
setGetId(record.id)
setGetName(record.pdaManagerName)
let data = {
user_id: record.id
user_id: record.id,
date:record.date
}
ajax.getDateList(data).then(res => {
if (res.status === 20000) {
@ -127,7 +128,8 @@ function WorkerSchedule(props) {
operation(record)
setGetName(record.pdaManagerName)
let data = {
user_id: record.id
user_id: record.id,
date:record.date
}
ajax.getDateList(data).then(res => {
if (res.status === 20000) {
@ -201,21 +203,32 @@ function WorkerSchedule(props) {
const [getMonthDate, setGetMonthDate] = useState({})
console.log(getMonthDate);
//
const [getAllChange, setGetAllChange] = useState({
scheduleId:''
})
const changeBtn = () => {
let str = JSON.stringify(getMonthDate)
console.log(str);
let data = {
scheduleId: getAllChange,
...getAllChange,
date: str === '{}' ? getDateListNum : getMonthDate,
user_id: getId,
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) => {
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) => {
let data = {

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

@ -733,7 +733,7 @@ function DisabledCarParkRecordTotal() {
mandatory_name={'车牌号'}
pageName={'disabledCarParkRecordTotal'}
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
open={detailVisible}

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

@ -617,7 +617,7 @@ function ConfigRoad() {
},
search: function (params) {
ajax
.getPoleList(params)
.getPoleListData(params)
.then((res) => {
if (res.status === 20000) {
setResultData({
@ -1107,14 +1107,8 @@ function ConfigRoad() {
title: item.label
})
})
res.data.right.map(item => {
temparrRight.push({
key: item.value + '',
title: item.label
})
})
setLeftGetBerth(temparr)
setTargetKeys(temparrRight)
setTargetKeys(res.data.right)
}
})
}
@ -2280,7 +2274,7 @@ function ConfigRoad() {
{
dataAcquistionModal.isEdit === 0 ?
<Col span={12}>
<Form.Item label="对应的泊位号" name="berth">
<Form.Item label="对应的泊1位号" name="berth">
<Transfer
dataSource={dataAcquistionBerth}
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) => {
setSubmitDeploy({ ...submitDeploy, deal_reason: value.target.value })
@ -446,19 +451,25 @@ function CallbackSuggestion(props) {
}
const cancelBtn = () => {
setOrderVisible(false)
setSubmitDeploy({change_content:'',update_value:'',plate_type:'',deal_reason:''})
}
const submitBtn = () => {
let data = {
...submitDeploy,
id: getId
id: getImg.parkRecordId
}
if (submitDeploy.change_content === undefined) {
if(submitDeploy.deal_reason===''){
message.error('请输入处理理由')
}else if (submitDeploy.change_content === '') {
message.error('请选择对应的更改项')
} else {
ajax.submitData(data).then(res => {
if (res.status === 20000) {
setOrderVisible(false)
setImgVisible(false)
setSubmitDeploy({change_content:'',update_value:'',plate_type:'',deal_reason:''})
setGetAdjustTimeValue(1)
setGetValueList({})
}
})
}
@ -874,7 +885,7 @@ function CallbackSuggestion(props) {
</div>
<div className="deal-reason">
<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 className="deal-style">
<div className="title">处理理由</div>
@ -885,7 +896,7 @@ function CallbackSuggestion(props) {
style={{ width: 200 }}
placeholder="请选择"
placement='topRight'
value={submitDeploy.adviseType}
value={submitDeploy.change_content}
options={[
{
value: 1,
@ -936,6 +947,7 @@ function CallbackSuggestion(props) {
<DatePicker
format="YYYY-MM-DD HH:mm:ss"
placement='topRight'
value={submitDeploy.update_value}
style={{ width: 300 }}
showTime={{
defaultValue: moment('00:00:00', 'HH:mm:ss'),
@ -949,7 +961,7 @@ function CallbackSuggestion(props) {
<label>入场时间+</label>
<Input
placeholder="请输入数字"
value={formData.plateNumber}
value={submitDeploy.update_value}
style={{ width: 150 }}
onChange={handleComeTime}
/>
@ -966,13 +978,13 @@ function CallbackSuggestion(props) {
style={{ width: 100 }}
placeholder="请选择"
placement='topRight'
value={submitDeploy.plateColor}
value={submitDeploy.plate_type}
options={sysConfig.plateColor}
onChange={handlePlateColor}
/>
<Input
placeholder="请输入内容"
value={formData.plateNumber}
value={submitDeploy.update_value}
style={{ width: 150 }}
onChange={handlePlateNumber}
/>
@ -1001,7 +1013,7 @@ function CallbackSuggestion(props) {
<label style={{ marginLeft: 30 }}>金额-</label>
<Input
placeholder="请输入内容"
value={formData.addCount}
value={submitDeploy.update_value}
style={{ width: 150 }}
onChange={handleAddCount}
/>

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

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

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

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

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

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

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

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

Loading…
Cancel
Save