修改submitCheck了==为===
parent
ac67f16655
commit
1ed138eb0e
|
@ -136,13 +136,13 @@ class ReimbursementCreate extends React.Component<any, any> {
|
||||||
|
|
||||||
submitCheck = () => {
|
submitCheck = () => {
|
||||||
let msgContent:string = ""
|
let msgContent:string = ""
|
||||||
if(this.state.departureName == "" ) {
|
if(this.state.departureName === "" ) {
|
||||||
msgContent = "未填写出发地"
|
msgContent = "未填写出发地"
|
||||||
} else if(this.state.destinationName == "") {
|
} else if(this.state.destinationName === "") {
|
||||||
msgContent = "未填写目的地"
|
msgContent = "未填写目的地"
|
||||||
} else if(this.state.departureInvoice == null) {
|
} else if(this.state.departureInvoice === null) {
|
||||||
msgContent = "未上传出发票据"
|
msgContent = "未上传出发票据"
|
||||||
} else if(this.state.selectedDepartment == null) {
|
} else if(this.state.selectedDepartment === null) {
|
||||||
msgContent = "未选择报销部门"
|
msgContent = "未选择报销部门"
|
||||||
} else {
|
} else {
|
||||||
return {ok: true, msg: ""}
|
return {ok: true, msg: ""}
|
||||||
|
|
Loading…
Reference in New Issue