|
@@ -13,6 +13,15 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="title"> 资质资料 </el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
+ <el-form-item label="申请单位" prop="company">
|
|
|
+ <el-input v-model="form.company" placeholder="" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="申请人" prop="apply_personal">
|
|
|
+ <el-input v-model="form.apply_personal" placeholder=""></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="联系电话" prop="phone">
|
|
|
+ <el-input v-model="form.phone" placeholder=""></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="法人复印件" prop="qyfr">
|
|
|
<e-upload url="/files/cysci/qyfr_file/upload" :limit="1" v-model="form.qyfr" type="text"></e-upload>
|
|
|
</el-form-item>
|
|
@@ -61,20 +70,14 @@ const _ = require('lodash');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: ticket } = createNamespacedHelpers('ticket');
|
|
|
const { mapActions: mechanism } = createNamespacedHelpers('mechanism');
|
|
|
+const { mapActions: organization } = createNamespacedHelpers('organization');
|
|
|
export default {
|
|
|
name: 'ticket',
|
|
|
props: {},
|
|
|
components: {},
|
|
|
data: function () {
|
|
|
return {
|
|
|
- form: {
|
|
|
- qyfr: [],
|
|
|
- yyzz: [],
|
|
|
- qylr: [],
|
|
|
- mqyfr: [],
|
|
|
- myyzz: [],
|
|
|
- mqylr: [],
|
|
|
- },
|
|
|
+ form: {},
|
|
|
rules: {},
|
|
|
mechanismList: [],
|
|
|
};
|
|
@@ -85,10 +88,11 @@ export default {
|
|
|
methods: {
|
|
|
...ticket(['create']),
|
|
|
...mechanism(['query']),
|
|
|
+ ...organization({ orgFetch: 'fetch' }),
|
|
|
onSubmit(formName) {
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
- const obj = { user_id: this.user._id, mechanism_id: this.form.mechanism_id };
|
|
|
+ const obj = { mechanism_id: this.form.mechanism_id };
|
|
|
const material = this.resetData();
|
|
|
const medium_material = this.resetDataMM();
|
|
|
if (material.length < 3) {
|
|
@@ -145,6 +149,24 @@ export default {
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, 'mechanismList', res.data);
|
|
|
}
|
|
|
+ if (this.user.id) {
|
|
|
+ const res = await this.orgFetch(this.user.id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ let data = {
|
|
|
+ user_id: res.data.id,
|
|
|
+ company: res.data.name,
|
|
|
+ apply_personal: res.data.companyperson,
|
|
|
+ phone: res.data.phone,
|
|
|
+ qyfr: [],
|
|
|
+ yyzz: [],
|
|
|
+ qylr: [],
|
|
|
+ mqyfr: [],
|
|
|
+ myyzz: [],
|
|
|
+ mqylr: [],
|
|
|
+ };
|
|
|
+ this.$set(this, `form`, data);
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
computed: {
|