|
@@ -20,8 +20,8 @@
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="(item, index) in examination"
|
|
v-for="(item, index) in examination"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
- :value="item"
|
|
|
|
|
- :label="item"
|
|
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ :label="item.label"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -49,8 +49,8 @@
|
|
|
<el-form-item label="法人姓名" prop="privacyPolicy">
|
|
<el-form-item label="法人姓名" prop="privacyPolicy">
|
|
|
<el-input v-model="formData.privacyPolicy" placeholder="请输入法人姓名"></el-input>
|
|
<el-input v-model="formData.privacyPolicy" placeholder="请输入法人姓名"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="证件号码" prop="IDNo">
|
|
|
|
|
- <el-input v-model="formData.IDNo" placeholder="请输入证件号码"></el-input>
|
|
|
|
|
|
|
+ <el-form-item label="证件号码" prop="idNo">
|
|
|
|
|
+ <el-input v-model="formData.idNo" placeholder="请输入证件号码"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="地址" prop="district" class="address">
|
|
<el-form-item label="地址" prop="district" class="address">
|
|
|
<el-select v-model="formData.district" style="width:100%">
|
|
<el-select v-model="formData.district" style="width:100%">
|
|
@@ -102,17 +102,8 @@ export default {
|
|
|
...mapState(['userInfo', 'organization'])
|
|
...mapState(['userInfo', 'organization'])
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- // this.$http
|
|
|
|
|
- // .get('organization/getByUserId/' + this.userInfo.id)
|
|
|
|
|
- // .then(res => {
|
|
|
|
|
- // this.formData = res;
|
|
|
|
|
- // })
|
|
|
|
|
- // .catch(e => {
|
|
|
|
|
- // console.log(e);
|
|
|
|
|
- // this.$message.error(e.error);
|
|
|
|
|
- // });
|
|
|
|
|
this.formData = this.organization;
|
|
this.formData = this.organization;
|
|
|
- this.examinationAgency = this.organization.examinationAgency;
|
|
|
|
|
|
|
+ this.examinationAgency = this.organization.gradingOrganizationId;
|
|
|
this.$http
|
|
this.$http
|
|
|
.get('/district/NJ', { size: 1000, query: { del: false } })
|
|
.get('/district/NJ', { size: 1000, query: { del: false } })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -129,6 +120,22 @@ export default {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
});
|
|
});
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post('/gradingOrganization/all', { size: 1000 }, { body: 'json' })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.content.length > 0) {
|
|
|
|
|
+ res.content.forEach(item => {
|
|
|
|
|
+ this.examination.push({
|
|
|
|
|
+ label: item.name,
|
|
|
|
|
+ value: item.id
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -137,10 +144,20 @@ export default {
|
|
|
rules: {
|
|
rules: {
|
|
|
name: { required: true, message: '请输入承办单位名称', trigger: 'blur' },
|
|
name: { required: true, message: '请输入承办单位名称', trigger: 'blur' },
|
|
|
owner: { required: true, message: '请输入负责人', trigger: 'blur' },
|
|
owner: { required: true, message: '请输入负责人', trigger: 'blur' },
|
|
|
- ownerEmail: { required: true, message: '请输入负责人邮箱', trigger: 'blur' },
|
|
|
|
|
- ownerPhone: { required: true, message: '请输入负责人电话', trigger: 'blur' },
|
|
|
|
|
|
|
+ ownerEmail: {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入正确的邮箱',
|
|
|
|
|
+ pattern: /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ },
|
|
|
|
|
+ ownerPhone: {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入正确的手机号',
|
|
|
|
|
+ pattern: /^1[3-9]\d{9}$/,
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ },
|
|
|
privacyPolicy: { required: true, message: '请输入法人姓名', trigger: 'blur' },
|
|
privacyPolicy: { required: true, message: '请输入法人姓名', trigger: 'blur' },
|
|
|
- IDNo: { required: true, message: '请输入证件号码', trigger: 'blur' },
|
|
|
|
|
|
|
+ idNo: { required: true, message: '请输入证件号码', trigger: 'blur' },
|
|
|
uscc: { required: true, message: '请输入信用代码', trigger: 'blur' },
|
|
uscc: { required: true, message: '请输入信用代码', trigger: 'blur' },
|
|
|
district: { required: true, message: '请选择地址', trigger: 'change' },
|
|
district: { required: true, message: '请选择地址', trigger: 'change' },
|
|
|
address: { required: true, message: '请输入详细地址', trigger: 'blur' },
|
|
address: { required: true, message: '请输入详细地址', trigger: 'blur' },
|
|
@@ -148,9 +165,8 @@ export default {
|
|
|
businessLicense: { required: true, message: '请上传营业执照', trigger: 'change' }
|
|
businessLicense: { required: true, message: '请上传营业执照', trigger: 'change' }
|
|
|
},
|
|
},
|
|
|
districtOptions: [],
|
|
districtOptions: [],
|
|
|
- readonly: true,
|
|
|
|
|
district: [],
|
|
district: [],
|
|
|
- examination: ['中国音乐学院', '中国艺术科技研究所', '北京舞蹈学院'],
|
|
|
|
|
|
|
+ examination: [],
|
|
|
examinationAgency: ''
|
|
examinationAgency: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -167,19 +183,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
submit() {
|
|
submit() {
|
|
|
let data = { ...this.formData };
|
|
let data = { ...this.formData };
|
|
|
- data.examinationAgency = this.examinationAgency;
|
|
|
|
|
|
|
+ data.gradingOrganizationId = this.examinationAgency;
|
|
|
this.saving = true;
|
|
this.saving = true;
|
|
|
this.$http
|
|
this.$http
|
|
|
.post('/organization/save', data, { body: 'json' })
|
|
.post('/organization/save', data, { body: 'json' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
- // this.$message.success('成功');
|
|
|
|
|
|
|
+ // this.submitUser();
|
|
|
// this.$router.go(-1);
|
|
// this.$router.go(-1);
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
- this.readonly = true;
|
|
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -191,11 +206,11 @@ export default {
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
this.$message.success('成功');
|
|
this.$message.success('成功');
|
|
|
|
|
+ // this.$router.go(0);
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
- this.readonly = true;
|
|
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|