|
|
@ -204,10 +204,12 @@ function StaggeredMgm(props) { |
|
|
|
const editModal = () => { |
|
|
|
setEditVisible(false) |
|
|
|
setGetSaleMsg([infoData]) |
|
|
|
setGetOperatorId('') |
|
|
|
setGetCarMsg({ |
|
|
|
operator_id: '', |
|
|
|
road: '' |
|
|
|
}) |
|
|
|
setGetRoadName([]) |
|
|
|
} |
|
|
|
//重置数据 |
|
|
|
const getResetData = () => { |
|
|
@ -432,6 +434,12 @@ function StaggeredMgm(props) { |
|
|
|
message.error('请输入错峰卡数量') |
|
|
|
return |
|
|
|
} |
|
|
|
let reg = /^[1-9]\d*$/ |
|
|
|
console.log(reg.test(infoArr[result]?.num)); |
|
|
|
if (!reg.test(infoArr[result]?.num)) { |
|
|
|
message.error('错峰卡数量只能输入正整数') |
|
|
|
return |
|
|
|
} |
|
|
|
if (!infoArr[result]?.price) { |
|
|
|
message.error('请输入销售价格') |
|
|
|
return |
|
|
@ -465,6 +473,7 @@ function StaggeredMgm(props) { |
|
|
|
const checkStaggeredBtn = () => { |
|
|
|
setCheckVisible(false) |
|
|
|
setGetSaleMsg([infoData]) |
|
|
|
setGetOperatorId('') |
|
|
|
setGetCarMsg({ |
|
|
|
operator_id: '', |
|
|
|
road: '' |
|
|
@ -515,10 +524,6 @@ function StaggeredMgm(props) { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
const placeBtn = () => { |
|
|
|
setEditVisible(false) |
|
|
|
setGetSaleMsg([infoData]) |
|
|
|
} |
|
|
|
const addplaceBtn = () => { |
|
|
|
setAddVisible(false) |
|
|
|
setGetCarMsg({ |
|
|
@ -616,22 +621,22 @@ function StaggeredMgm(props) { |
|
|
|
</div> |
|
|
|
<div className="timePicker yisa-search"> |
|
|
|
<div className="btnBox"> |
|
|
|
<Button className="colorReset reset" onClick={() => { getResetData() }}> |
|
|
|
<Button className="colorReset reset" onClick={() => { getResetData() }}> |
|
|
|
重置 |
|
|
|
</Button> |
|
|
|
<Button type="primary" className="colorBtn submit" onClick={() => { getSearchData() }}> |
|
|
|
查询 |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="paid-result"> |
|
|
|
<div className="result"> |
|
|
|
<div className="result-info-row"> |
|
|
|
<span className="font">共检索到<em>{resultData.total_records}</em>条结果</span> |
|
|
|
<Button type="primary" className="yisa-btn colorBtn" onClick={() => { addData() }}> |
|
|
|
添加 |
|
|
|
</Button> |
|
|
|
<span className="font">共检索到<em>{resultData.total_records}</em>条结果</span> |
|
|
|
<Button type="primary" className="yisa-btn colorBtn" onClick={() => { addData() }}> |
|
|
|
添加 |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
<ResultFlowResult ajaxLoad={ajaxLoading} resultData={resultData.data ? resultData.data : []}> |
|
|
|
<Table |
|
|
@ -664,6 +669,7 @@ function StaggeredMgm(props) { |
|
|
|
visible={checkVisible} |
|
|
|
onCancel={checkStaggeredBtn} |
|
|
|
footer={null} |
|
|
|
destroyOnClose={true} |
|
|
|
className="roadModal" |
|
|
|
> |
|
|
|
<div className="carTitle"> |
|
|
@ -836,6 +842,7 @@ function StaggeredMgm(props) { |
|
|
|
<Modal |
|
|
|
visible={addVisible} |
|
|
|
onCancel={addplaceBtn} |
|
|
|
destroyOnClose={true} |
|
|
|
footer={null} |
|
|
|
className="staggered-add" |
|
|
|
> |
|
|
@ -1021,6 +1028,7 @@ function StaggeredMgm(props) { |
|
|
|
<Modal |
|
|
|
visible={editVisible} |
|
|
|
onCancel={editModal} |
|
|
|
destroyOnClose={true} |
|
|
|
footer={null} |
|
|
|
className="staggered-add" |
|
|
|
> |
|
|
@ -1204,7 +1212,7 @@ function StaggeredMgm(props) { |
|
|
|
<Button type="primary" className="submit colorBtn" onClick={() => { editStageredBtn() }}> |
|
|
|
提交 |
|
|
|
</Button> |
|
|
|
<Button type="primary" className="cancel colorReset" onClick={() => { placeBtn() }}> |
|
|
|
<Button type="primary" className="cancel colorReset" onClick={() => { editModal() }}> |
|
|
|
取消 |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|