diff --git a/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx b/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx index 8e19996..ed22847 100644 --- a/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx +++ b/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx @@ -411,7 +411,7 @@ function Fence(props) {
{ return <>
-
} @@ -406,7 +406,7 @@ useEffect(() => {
{ - ajax.cascaderList().then(res => { - if (res.status === 20000) { - setGetCanCaDer(res.data) - } - }) - } - const handleEditFinish = () => { console.log('form finish') @@ -323,6 +315,7 @@ function Fence(props) { } }) } + const [roadData, setRoadData] = useState([]); const handleOperaChange = (id) => { // let roadSelect = document.querySelectorAll('.fenceModal .road-selector .ant-select-selection-item') // if (roadSelect.length) { @@ -371,9 +364,40 @@ function Fence(props) { ...formData }) }, [formData]) + // 获取下拉菜单 + const getSelectList = () => { + // 商户名称 + ajax.getOperator().then( + (res) => { + if (parseInt(res?.status) === 20000) { + setStoreData(res?.data || []); + } else { + message.error(res?.message); + } + }, + (err) => { + console.log(err); + } + ); + }; + const getAllRoad = (id, setData) => { + ajax.getAllRoadByOperatort({ operator: id }).then( + (res) => { + setData(res?.data || []); + }, + (err) => { + console.log(err); + } + ); + }; + useEffect(() => { + getSelectList(); + if (formData?.operator) { + getAllRoad(formData?.operator, setRoadData); + } + }, []); useEffect(() => { getData() - getCascaderList() getOperatorData() getDeviceType() }, []) @@ -439,7 +463,7 @@ function Fence(props) {
- {resultData.area} + {resultData.area_name} {resultData.lng_lat} @@ -77,23 +77,19 @@ function RoadDetail(props) { {resultData.operator_name} - {resultData.business === 1 ? "是" : "否"} + {resultData.operator_status_name} - {resultData.cooperation_model} + {resultData.cooperation_model_name} - {resultData.pay_type === 1 - ? "全部" - : resultData.pay_type === 2 - ? "电子支付" - : "现金支付"} + {resultData.pay_type_name} {resultData.operator_status_name} - {resultData.road_status} + {resultData.road_status_name} {resultData.charge_type === 1 @@ -103,7 +99,7 @@ function RoadDetail(props) { : "三类区"} - {resultData.extended_payment} + {resultData.extended_payment_name} {resultData.parking} diff --git a/src/pages/MerchantMgm/InvoiceConf/loadable.jsx b/src/pages/MerchantMgm/InvoiceConf/loadable.jsx index 8b14ae5..46166a0 100644 --- a/src/pages/MerchantMgm/InvoiceConf/loadable.jsx +++ b/src/pages/MerchantMgm/InvoiceConf/loadable.jsx @@ -553,7 +553,7 @@ function InvoiceConf() { getTaxRatePull() getTaxTypePull() getInvoiceItemPull() - getTable() + // getTable() }, [] ) @@ -573,6 +573,7 @@ function InvoiceConf() { } } else { //console.log(2222224333, searchForm.getFieldsValue()) + getTable() } }, []) diff --git a/src/pages/MerchantMgm/MerchantInfo/loadable.jsx b/src/pages/MerchantMgm/MerchantInfo/loadable.jsx index 7d893a5..9e808d4 100644 --- a/src/pages/MerchantMgm/MerchantInfo/loadable.jsx +++ b/src/pages/MerchantMgm/MerchantInfo/loadable.jsx @@ -772,7 +772,7 @@ function MerchantInfo() { getTenantTypePull() getBusinessTypePull() getStatusPull() - getTable() + // getTable() }, [] ) useEffect(() => { @@ -791,6 +791,7 @@ function MerchantInfo() { } } else { //console.log(2222224333, searchForm.getFieldsValue()) + getTable() } }, []) useEffect(() => {