Browse Source

fix():bug修改

tags/PMS_Frontend_v1.0.5-develop
xingjx 1 year ago
parent
commit
75afbef9bd
  1. 7
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
  2. 9
      src/pages/FinancialMgm/OrderInquiry/ProductOrderInquiry/index.jsx
  3. 96
      src/pages/OperationCenter/UserMgm/UserAuth/loadable.jsx

7
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx

@ -27,8 +27,9 @@ function ParkingAlyDuration() {
end_time: moment().endOf("day").format("YYYY-MM-DD"), end_time: moment().endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3', car_parking_type: '3',
operator_id: '0', operator_id: '0',
area_id:'0',
area_id: '0',
date_type: '1', date_type: '1',
//region: '0'
//date_type: 1, //date_type: 1,
}; };
// //
@ -676,9 +677,9 @@ function ParkingAlyDuration() {
value: "id", value: "id",
children: "children", children: "children",
}} }}
value={formData.region}
value={formData.area_id}
onChange={(v, option) => { onChange={(v, option) => {
setFormData({ ...formData, region: v ? v : null });
setFormData({ ...formData, area_id: v ? v : null });
}} }}
/> />
</div> </div>

9
src/pages/FinancialMgm/OrderInquiry/ProductOrderInquiry/index.jsx

@ -230,7 +230,7 @@ function ProductOrderInquiry() {
type: "Select", type: "Select",
label: "支付方式", label: "支付方式",
placeholder: "请选择支付方式", placeholder: "请选择支付方式",
options: dictionary.PaydMethod,
options: sysConfig.payment,
}, },
{ {
name: "timePeriod", name: "timePeriod",
@ -393,7 +393,7 @@ function ProductOrderInquiry() {
phone: '', phone: '',
goods_name: '', goods_name: '',
buy_channel: '', buy_channel: '',
pay_channel: '',
pay_channel: 0,
order_status: '', order_status: '',
pay_device: '', pay_device: '',
channel_serial_number: '', channel_serial_number: '',
@ -405,7 +405,7 @@ function ProductOrderInquiry() {
plate_number: '', plate_number: '',
phone: '', phone: '',
parking_name: '', parking_name: '',
pay_channel: '',
pay_channel: 0,
channel_serial_number: '', channel_serial_number: '',
export: '0', export: '0',
export_file_name: '', export_file_name: '',
@ -433,6 +433,7 @@ function ProductOrderInquiry() {
export_file_name: '', export_file_name: '',
}} }}
exportUrl={url} exportUrl={url}
pageName={type == "停车卡" ? "productOrderInquiryCar" : "productOrderInquiry"}
rowKey={'id'} rowKey={'id'}
search={searchOther} search={searchOther}
/> />
@ -639,6 +640,8 @@ function ProductOrderInquiry() {
setAddOrderData(modalParams) setAddOrderData(modalParams)
//getData(formData) //getData(formData)
message.success("添加成功") message.success("添加成功")
} else {
message.error(res.message)
} }
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);

96
src/pages/OperationCenter/UserMgm/UserAuth/loadable.jsx

@ -65,35 +65,35 @@ function UserAuth() {
align: "center", align: "center",
render: (text, record, index) => ( render: (text, record, index) => (
<> <>
{
record.state == "1" ?
<span type="primary" style={{ display: 'inline-block', textAlign: 'center', margin: '0 10px' }} onClick={() => {
setMyId(record.id);
setPassVisible(true);
}}>
<a>通过</a>
</span> : null
}
<span type="primary" style={{ display: 'inline-block', textAlign: 'center', margin: '0 10px' }} onClick={() => { <span type="primary" style={{ display: 'inline-block', textAlign: 'center', margin: '0 10px' }} onClick={() => {
setTag('2'); setTag('2');
setCarId(record.carId)
setMyId(record.id)
setIndexby(index)
}}>
<a>通过</a>
</span>
<span type="primary" style={{ display: 'inline-block', textAlign: 'center', margin: '0 10px' }} onClick={() => {
setTag('2');
setCarId(record.carId)
setMyId(record.id)
setIndexby(index)
setMyId(record.id);
setIndexby(index);
}}> }}>
<a>查看</a> <a>查看</a>
</span> </span>
<span type="primary" style={{ display: 'inline-block', textAlign: 'center', margin: '0 10px' }} onClick={() => {
setTag('2');
setCarId(record.carId)
setMyId(record.id)
setIndexby(index)
}}>
<a>驳回</a>
</span>
{
record.state == "1" ?
<span type="primary" style={{ display: 'inline-block', textAlign: 'center', margin: '0 10px' }} onClick={() => {
setMyId(record.id);
setRefuseVisible(true);
}}>
<a>驳回</a>
</span> : null
}
</> </>
), ),
}, },
]; ];
const [carId, setCarId] = useState();
const [myId, setMyId] = useState(); const [myId, setMyId] = useState();
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [tag, setTag] = useState('1'); const [tag, setTag] = useState('1');
@ -105,7 +105,9 @@ function UserAuth() {
const [resultData, setResultData] = useState([]); const [resultData, setResultData] = useState([]);
const [total, setTotal] = useState(0); const [total, setTotal] = useState(0);
const [indexby, setIndexby] = useState(0); const [indexby, setIndexby] = useState(0);
const [formData, setFormData] = useState({})
const [formData, setFormData] = useState({
state: '0'
})
const [pageData, setPageData] = useState({ const [pageData, setPageData] = useState({
// //
pn: 1, pn: 1,
@ -119,10 +121,8 @@ function UserAuth() {
} }
const handleChange = (value) => { const handleChange = (value) => {
console.log(value);
setFormData({ ...formData, type: value })
setFormData({ ...formData, state: value })
setPageData({ ...pageData, pn: 1 }) setPageData({ ...pageData, pn: 1 })
//setSendData({ ...sendData, receiver_type: value })
}; };
function search() { function search() {
@ -140,28 +140,23 @@ function UserAuth() {
} }
}) })
} }
//
function toAudits(e) { function toAudits(e) {
ajax({ ajax({
url: "/api/ope/car/audit",
type: "post",
data: { id: myId, audit: e ? "pass" : "refuse", text: e ? null : toText },
url: "/api/ope/user_manage/auth_operate",
type: "get",
data: { id: myId, type: e },
}).then((res) => { }).then((res) => {
if (res.status == 20000) { if (res.status == 20000) {
message.success(res.message) message.success(res.message)
setPassVisible(false) setPassVisible(false)
setRefuseVisible(false) setRefuseVisible(false)
setToText('')
setTimeout(() => {
window.location.reload()
}, 1000)
search()
} else { } else {
message.error(res.message) message.error(res.message)
} }
}) })
} }
const handleOpinion = (v) => {
setToText(v.target.value)
}
useEffect(() => { useEffect(() => {
search() search()
}, [formData, pageData]); }, [formData, pageData]);
@ -220,12 +215,6 @@ function UserAuth() {
</div> </div>
</div> </div>
</div> </div>
{resultData[indexby].auditState == '待审核' || resultData[indexby].auditState == '残疾车待审核' ?
<div className="push-btn-box">
<div className="push-btn" onClick={() => { setPassVisible(true) }}>通过</div>
<div className="push-btn push-cancel" onClick={() => { setRefuseVisible(true) }}>驳回</div>
<div className="push-btn push-cancel" onClick={() => { setTag('1') }}>取消</div>
</div> : null}
</div > : </div > :
<div> <div>
<div className="search-box"> <div className="search-box">
@ -235,23 +224,24 @@ function UserAuth() {
style={{ style={{
width: 180, width: 180,
}} }}
value={formData.state}
onChange={handleChange} onChange={handleChange}
placeholder={"请选择审核状态"} placeholder={"请选择审核状态"}
options={[ options={[
{ {
value: 0,
value: '0',
label: '全部', label: '全部',
}, },
{ {
value: 1,
value: '1',
label: '待审核', label: '待审核',
}, },
{ {
value: 2,
value: '2',
label: '已审核', label: '已审核',
}, },
{ {
value: 3,
value: '3',
label: '已作废', label: '已作废',
}, },
]} ]}
@ -319,29 +309,21 @@ function UserAuth() {
onOk={() => { toAudits(1) }} onOk={() => { toAudits(1) }}
> >
<div> <div>
<div className="pass-icon">!</div>请您确认审核资料是否无误
<div className="pass-icon">!</div>是否通过该用户认证
</div> </div>
</Modal> </Modal>
<Modal <Modal
open={refuseVisible} open={refuseVisible}
width={800}
title={'拒绝详情'}
width={500}
title={'提示'}
className="eae-modal" className="eae-modal"
onCancel={() => { onCancel={() => {
setRefuseVisible(false); setRefuseVisible(false);
}} }}
onOk={() => { toAudits(0) }}
onOk={() => { toAudits(2) }}
> >
<div> <div>
<div className="eae-modal-item">
<div className="eae-text">请输入拒审理由</div>
<TextArea
placeholder="请输入"
value={formData.text}
style={{ width: 500 }}
onChange={handleOpinion}
/>
</div>
<div className="pass-icon">!</div>是否驳回该用户认证
</div> </div>
</Modal> </Modal>
</> </>

Loading…
Cancel
Save