| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="投保类型" prop="type"> |
| | | <el-radio-group v-model="form.type"> |
| | | <el-radio :label="0">直保</el-radio> |
| | | <el-radio-group v-model="form.type" :disabled="form.id!=null"> |
| | | <el-radio :label="0" >直保</el-radio> |
| | | <el-radio :label="1">委托投保</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="委托商户" prop="shopId" v-if="form.type =='1'"> |
| | | <el-form-item label="委托商户" prop="shopId" v-if="form.type =='1'" :rules="form.type===1?[{required:true,message:'请选择商户'}]:[{required:false}]"> |
| | | <el-select v-model="form.shopId" placeholder="请选择委托商户"> |
| | | <el-option |
| | | v-for="item in shops" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="上传方案确认书:" prop="fanganFile" v-if="form.type =='1'"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="editFanganFile" /> |
| | | <el-form-item label="上传方案确认书:" prop="fanganFile" v-if="form.type =='1'" :rules="form.type===1?[{required:true,message:'请上传方案确认书'}]:[{required:false}]"> |
| | | <UploadFile @remove="deleFile" :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="editFanganFile" /> |
| | | </el-form-item> |
| | | <el-form-item label="接收文件邮箱" prop="email"> |
| | | <el-input v-model="form.email" placeholder="请输入" v-trim/> |
| | |
| | | if (!valid) { |
| | | return |
| | | } |
| | | if(data.type===1 && (!data.fanganFile || !data.fanganFile.fileurl)){ |
| | | this.$message.error('请上传方案确认书!') |
| | | return; |
| | | } |
| | | // 调用新建接口 |
| | | this.isWorking = true |
| | | if (data.id == null || data.id === '') { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | deleFile(){ |
| | | this.form.fanganFile={} |
| | | }, |
| | | open (title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.form.maxAge = '' |
| | | this.form.timeUnit = '' |
| | | this.form.insureCycleUnit = '' |
| | | this.form.validTypeNum = '' |
| | | this.visible = true |
| | | this.form.fanganFile=null |
| | | this.form.fileList1= new Array(); |
| | | this.form.worktypeIdList = [{ worktypeId: '' }] |
| | |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form.maxAge = '' |
| | | this.form.timeUnit = '' |
| | | this.form.insureCycleUnit = '' |
| | | this.form.validTypeNum = '' |
| | | this.form.fanganFile=null |
| | | this.form.fileList1= new Array(); |
| | | this.form.worktypeIdList = [{ worktypeId: '' }] |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | return |
| | |
| | | this.typeWork = res |
| | | }) |
| | | }, |
| | | |
| | | // 查询全部保险公司 |
| | | allCompany () { |
| | | all({ dataType: 2, status: 0 }) |