Commit 61061035 by 姜雷

修改报修校验报修区域

parent 84b9343c
export const APP_ID = 'wx723baaa343083ca9';
// export const SERVER_URL = 'http://ex-dev-gx-manager.168cad.top';
export const SERVER_URL = 'http://192.168.1.33:8888';
export const SERVER_URL = 'http://ex-logistics-service-manager.168cad.top';
export default {
APP_ID,
......
......@@ -140,7 +140,7 @@ class PublicCarDeal extends Component {
return false;
}
if (value === 2) {
if (!carPlate) {
if (carPlate === '-1') {
Toast.fail('请选择派车!');
return false;
}
......@@ -201,7 +201,7 @@ class PublicCarDeal extends Component {
};
render() {
const {
selected: { value, carPlate, dealOpinion },
selected: { value, dealOpinion },
dealDialogVisible,
carPlateList,
} = this.state;
......@@ -279,9 +279,10 @@ class PublicCarDeal extends Component {
</div>
<select
className={styles.select}
value={carPlate}
onChange={this.onSelectHandle}
defaultValue="-1"
>
<option disabled value="-1" />
{carPlateList.map(i => (
<option key={i.value} value={i.lable}>
{i.lable}
......
......@@ -137,11 +137,11 @@ class ReprtRepair extends Component {
Toast.fail('请选择报修人身份!');
return;
}
if (!applyForm.area) {
if (!applyForm.areaId) {
Toast.fail('请选择报修区域!');
return;
}
if (!applyForm.term) {
if (!applyForm.termId) {
Toast.fail('请选择报修项目!');
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment