| | |
| | | <template> |
| | | <GlobalWindow :title="title" width="500px" @close="close" :visible.sync="visible" :confirm-working="isWorking" @confirm="confirm"> |
| | | <GlobalWindow :title="title" width="500px" @close="close" :visible.sync="visible" :confirm-working="isWorking" |
| | | @confirm="confirm"> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="车牌号" prop="code"> |
| | | <el-input v-model="form.code" placeholder="请输入车牌号" v-trim /> |
| | | </el-form-item> |
| | | <el-form-item label="车辆类型" prop="type"> |
| | | <el-form-item label="业务类型" prop="type"> |
| | | <el-radio-group v-model="form.type"> |
| | | <el-radio :label="0">安泰公务车</el-radio> |
| | | <el-radio :label="1">安泰物流车</el-radio> |
| | |
| | | code: [{ required: true, message: '请输入车牌号' }], |
| | | groupId: [{ required: true, message: '请选择组织' }], |
| | | type: [ |
| | | { required: true, message: '请选择车辆类型' } |
| | | { required: true, message: '请选择业务类型' } |
| | | ] |
| | | } |
| | | } |
| | |
| | | confirm() { |
| | | console.log('form', this.form.cateId) |
| | | const { form } = this |
| | | if(form.cateId && form.cateId.length == 2){ |
| | | if (form.cateId && form.cateId.length == 2) { |
| | | |
| | | }else{ |
| | | } else { |
| | | return Message.error('请选择二级分类') |
| | | } |
| | | this.$refs['form'].validate((valid) => { |