|
|
@ -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} |
|
|
|
/> |
|
|
|