|
|
@ -41,8 +41,8 @@ |
|
|
|
</el-row> |
|
|
|
<el-row v-if="formobj.custTypeKey != '1'"> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">企业</div> |
|
|
|
<el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>企业</div> |
|
|
|
<el-form-item prop="qyName"> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.qyName" style="width: 20%" placeholder="请选择" @change="qyChange" clearable filterable> |
|
|
|
<el-option v-for="item in customer_list" :key="item.sid" :label="item.name" :value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
@ -55,11 +55,11 @@ |
|
|
|
</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">身份证号码</div> |
|
|
|
<el-form-item><el-input v-model="formobj.idCard" clearable placeholder="" class="addinputInfo addinputw" /></el-form-item> |
|
|
|
<div class="span-sty"><span class="icon">*</span>身份证号码</div> |
|
|
|
<el-form-item prop="idCard"><el-input v-model="formobj.idCard" clearable placeholder="" class="addinputInfo addinputw" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">姓名</div> |
|
|
|
<div class="span-sty"><span class="icon">*</span>姓名</div> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-if="formobj.custTypeKey != '1'" v-model="formobj.custName" class="addinputInfo addinputw" clearable placeholder=""/> |
|
|
|
<el-select v-else class="addinputInfo" v-model="formobj.custName" style="width: 35%" placeholder="请选择" @change="custChange" clearable filterable> |
|
|
@ -138,7 +138,7 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>附件</span></div> |
|
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span><span class="icon">*</span>附件</span></div> |
|
|
|
<el-form-item> |
|
|
|
<upload-img ref="uploadImg" class="addinputInfo" v-model="image_list2" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/> |
|
|
|
</el-form-item> |
|
|
@ -252,7 +252,10 @@ export default { |
|
|
|
index: '', |
|
|
|
policyImages: [] |
|
|
|
}, |
|
|
|
rules: {} |
|
|
|
rules: { |
|
|
|
qyName: [{ required: true, message: '企业名称不能为空', trigger: 'change' }], |
|
|
|
idCard: [{ required: true, message: '身份证号码不能为空', trigger: 'blur' }], |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -475,10 +478,18 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
if (this.formobj.custName === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '姓名不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
|
this.getUrl() |
|
|
|
if (this.formobj.comFkFiles.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请上传公司要求材料附件' }) |
|
|
|
return |
|
|
|
} |
|
|
|
req.saveOrUpdate(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
@ -586,4 +597,7 @@ export default { |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
/deep/ .el-form-item__error { |
|
|
|
margin-left: 120px !important; |
|
|
|
} |
|
|
|
</style> |
|
|
|