Browse Source

fix():修改路内BUG

tags/PMS_Frontend_v1.0.6-develop
guoxin 1 year ago
parent
commit
56600748f2
  1. 17
      src/components/TableModule/index.jsx
  2. 3
      src/pages/InRoadMgm/RecordInquiry/ArrearsRecordTotal/loadable.jsx
  3. 3
      src/pages/InRoadMgm/RecordInquiry/DisabledCarParkRecordTotal/loadable.jsx
  4. 3
      src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/loadable.jsx
  5. 3
      src/pages/InRoadMgm/RecordInquiry/PayRecordQuery/loadable.jsx
  6. 1
      src/pages/InRoadMgm/RoadMgm/ConfigRoad/loadable.jsx
  7. 7
      src/pages/InRoadMgm/Stuff/StuffMgm/loadable.jsx
  8. 32
      src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx

17
src/components/TableModule/index.jsx

@ -469,10 +469,12 @@ const TableModule = forwardRef((props, ref) => {
label={item.label}
name={item.name}
key={item.name}
defaultValue={item.defaultValue}
>
<Select
{/* <Select
showSearch
value={value}
placeholder={props.placeholder}
defaultActiveFirstOption={false}
showArrow={false}
@ -484,6 +486,14 @@ const TableModule = forwardRef((props, ref) => {
value: d.value,
label: d.text,
}))}
/> */}
<Select
showSearch
optionFilterProp="label"
onChange={handleChange}
defaultValue={item.defaultValue}
filterOption={(input, option) => (option?.label ?? '').includes(input)}
options={getRoadList}
/>
</Form.Item>
);
@ -747,8 +757,11 @@ const TableModule = forwardRef((props, ref) => {
console.error(err);
});
}, []);
const [getRoadList,setGetRoadList]=useState([])
useEffect(() => {
ajax.getRoadSearch().then((res) => {
setGetRoadList(res.data);
})
}, [])
return (
<div className="TableModule">

3
src/pages/InRoadMgm/RecordInquiry/ArrearsRecordTotal/loadable.jsx

@ -83,7 +83,6 @@ function ArrearsRecordTotal() {
{
name: "road",
type: "SearchSelect",
id:2,
label: "路段名称",
placeholder: "请输入路段名称",
},
@ -133,7 +132,7 @@ function ArrearsRecordTotal() {
region: ["0"],
type: 2,
operator: "0",
road: "",
road: "0",
road_type: 0,
plate: "",
plate_color:-1

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

@ -369,8 +369,9 @@ function DisabledCarParkRecordTotal() {
},
{
name: "road",
type: "Input",
type: "SearchSelect",
label: "路段名称",
defaultValue: "0",
placeholder: "请输入路段名称",
},
{

3
src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/loadable.jsx

@ -279,7 +279,6 @@ function ParkRecordTotal() {
name: "road",
type: "SearchSelect",
label: "路段名称",
id: 2,
placeholder: "请输入路段名称",
},
{
@ -381,7 +380,7 @@ function ParkRecordTotal() {
const initFormData = {
region: ["0"],
operator: "0",
road: "",
road: "0",
road_type: 0,
phone: "",
plate: "",

3
src/pages/InRoadMgm/RecordInquiry/PayRecordQuery/loadable.jsx

@ -104,7 +104,6 @@ function ParkRecordTotal() {
name: "road",
type: "SearchSelect",
label: "路段名称",
id: 2,
placeholder: "请输入路段名称",
},
{
@ -152,7 +151,7 @@ function ParkRecordTotal() {
//
const initFormData = {
order_id: "",
road: "",
road: "0",
plate: "",
payment_channels: 0,
payment_equipment: 0,

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

@ -1844,6 +1844,7 @@ function ConfigRoad() {
<Descriptions.Item label="服务属性">
<Checkbox.Group
defaultValue={berthModal.record.service_type}
disabled={true}
options={[
{
label: "潮汐泊位",

7
src/pages/InRoadMgm/Stuff/StuffMgm/loadable.jsx

@ -253,7 +253,7 @@ function StuffMgm(props) {
brand_id: record.brand_id,
model_id: record.model_id,
status: record.status,
uid: record.use_name,
uid: record.uid,
}))
}
const editModal = () => {
@ -261,6 +261,7 @@ function StuffMgm(props) {
setGetUid({
uid: ''
})
setGetSelectStatus(true)
}
//
const getResetData = () => {
@ -537,6 +538,7 @@ function StuffMgm(props) {
setGetUid({
uid: ''
})
setGetSelectStatus(true)
}
})
}
@ -556,6 +558,7 @@ function StuffMgm(props) {
setGetUid({
uid: ''
})
setGetSelectStatus(true)
}
const addplaceBtn = () => {
setAddVisible(false)
@ -1094,7 +1097,7 @@ function StuffMgm(props) {
style={{ width: 180, marginLeft: 33 }}
placeholder="请选择"
disabled={getSelectStatus}
value={getUid.uid}
value={getEditData.uid}
options={getRecipient}
onChange={(v) => {
setGetEditData(

32
src/pages/SystemMgm/BusinessConfig/BusinessConf/loadable.jsx

@ -48,8 +48,7 @@ function BusinessConf(props) {
operator_name: "0",
item_name: '',
parameterValue: 1,
parameter_exit: '',
parameter_exit_pda: ''
parameter_exit: ''
})
const addAdmin = () => {
setImgVisible(true)
@ -79,15 +78,14 @@ function BusinessConf(props) {
}
//
const onChangeAdd = (e) => {
setAddManage({ ...addManage, parameterValue: e.target.value, parameter_exit: '', parameter_exit_pda: '' })
setAddManage({ ...addManage, parameterValue: e.target.value, parameter_exit: '' })
}
//
const onChangehoose = (e) => {
setAddManage({ ...addManage, parameter_exit: e.target.value })
}
//
const onChangeAddTypeValue = (e) => {
setAddManage({ ...addManage, parameter_exit_pda: e.target.value })
const onChangeEdithoose = (e) => {
setGetEditData({ ...geteditData, parameter_exit: e.target.value })
}
const [getType, setGetType] = useState(1)
const onChangeAddType = (e) => {
@ -273,8 +271,7 @@ function BusinessConf(props) {
item_id: '',
parameter: '',
parameterValue: 1,
parameter_exit: '',
parameter_exit_pda: ''
parameter_exit: ''
})
const CheckApplyBtn = (record) => {
setGetAdminId(record)
@ -616,14 +613,12 @@ function BusinessConf(props) {
<Radio value={2}>PDA审核</Radio>
{
getType == 1 ?
<>
< div>
<Radio.Group onChange={onChangehoose} value={addManage.parameter_exit}>
<Radio value={3}>自动出场</Radio>
</Radio.Group>
<Radio.Group onChange={onChangeAddTypeValue} value={addManage.parameter_exit_pda}>
<Radio value={4}>PDA确认出场</Radio>
</Radio.Group>
</>
</div>
: ''
}
</Radio.Group>
@ -976,6 +971,7 @@ function BusinessConf(props) {
<div className="yisa-search">
<Radio.Group style={{ marginLeft: 42 }}
onChange={(v) => {
setGetType(v.target.value)
setGetEditData(
Object.assign({}, geteditData, { parameterValue: v.target.value })
);
@ -983,8 +979,16 @@ function BusinessConf(props) {
value={geteditData.parameterValue}>
<Radio value={1}>取信地磁</Radio>
<Radio value={2}>PDA审核</Radio>
<Radio value={3}>自动出场</Radio>
<Radio value={4}>PDA确认出场</Radio>
{
getType == 1 ?
< div>
<Radio.Group onChange={onChangeEdithoose} value={geteditData.parameter_exit}>
<Radio value={3}>自动出场</Radio>
<Radio value={4}>PDA确认出场</Radio>
</Radio.Group>
</div>
: ''
}
</Radio.Group>
</div> : ''
}

Loading…
Cancel
Save