|
@@ -22,6 +22,8 @@
|
|
|
import topInfo from '@/layout/common/topInfo.vue';
|
|
|
import detailTop from '@/layout/common/detailTop.vue';
|
|
|
import detailInfo from '@/layout/companyidentify/detailInfo.vue';
|
|
|
+import { createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions } = createNamespacedHelpers('companyidentify');
|
|
|
|
|
|
export default {
|
|
|
name: 'detail',
|
|
@@ -35,45 +37,63 @@ export default {
|
|
|
display: 'none',
|
|
|
topTitle: '企业认证信息审核',
|
|
|
ruleForm: {
|
|
|
- business_license: '营业执照图片',
|
|
|
- company_name: '企业名称',
|
|
|
- establish_date: '成立日期',
|
|
|
- due_date: '营业到期日期',
|
|
|
- type: '企业类型',
|
|
|
- code: '统一社会信用代码',
|
|
|
- registered_capital: '注册资本',
|
|
|
- total_assets: '资产总额',
|
|
|
- taking: '营业收入',
|
|
|
- number: '从业人员数量',
|
|
|
- belong_type: '企业所属类型',
|
|
|
- profession_one: '所属一级行业',
|
|
|
- profession_two: '所属二级行业',
|
|
|
- profession_three: '所属三级行业',
|
|
|
- profession_four: '所属四级行业',
|
|
|
- belong_addr: '企业所属地',
|
|
|
- business_addr: '经营地址',
|
|
|
- registered_addr: '注册地址',
|
|
|
- business_scope: '经营范围',
|
|
|
- introduction: '企业简介',
|
|
|
- card_front: '身份证正面图',
|
|
|
- card_back: '身份证背面图',
|
|
|
- representative: '法定代表人',
|
|
|
- representative_id: '法人证件号',
|
|
|
- representative_phone: '法人手机号',
|
|
|
- status: '0',
|
|
|
+ // business_license: '营业执照图片',
|
|
|
+ // company_name: '企业名称',
|
|
|
+ // establish_date: '成立日期',
|
|
|
+ // due_date: '营业到期日期',
|
|
|
+ // type: '企业类型',
|
|
|
+ // code: '统一社会信用代码',
|
|
|
+ // registered_capital: '注册资本',
|
|
|
+ // total_assets: '资产总额',
|
|
|
+ // taking: '营业收入',
|
|
|
+ // number: '从业人员数量',
|
|
|
+ // belong_type: '企业所属类型',
|
|
|
+ // profession_one: '所属一级行业',
|
|
|
+ // profession_two: '所属二级行业',
|
|
|
+ // profession_three: '所属三级行业',
|
|
|
+ // profession_four: '所属四级行业',
|
|
|
+ // belong_addr: '企业所属地',
|
|
|
+ // business_addr: '经营地址',
|
|
|
+ // registered_addr: '注册地址',
|
|
|
+ // business_scope: '经营范围',
|
|
|
+ // introduction: '企业简介',
|
|
|
+ // card_front: '身份证正面图',
|
|
|
+ // card_back: '身份证背面图',
|
|
|
+ // representative: '法定代表人',
|
|
|
+ // representative_id: '法人证件号',
|
|
|
+ // representative_phone: '法人手机号',
|
|
|
+ // status: '0',
|
|
|
},
|
|
|
}),
|
|
|
- created() {},
|
|
|
- computed: {},
|
|
|
+ created() {
|
|
|
+ this.search();
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ id() {
|
|
|
+ return this.$route.query.id;
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ ...mapActions(['query', 'delete', 'fetch', 'update']),
|
|
|
+ async search() {
|
|
|
+ const res = await this.fetch(this.id);
|
|
|
+ console.log(res);
|
|
|
+ this.$set(this, `ruleForm`, res.data);
|
|
|
+ },
|
|
|
+
|
|
|
// 提交
|
|
|
- submitForm(form) {
|
|
|
- console.log(form);
|
|
|
- this.resetForm();
|
|
|
+ submitForm(ruleForm) {
|
|
|
+ this.ruleForm.status = 1;
|
|
|
+ console.log(this.ruleForm);
|
|
|
+ let res = this.update(this.ruleForm);
|
|
|
},
|
|
|
// 取消
|
|
|
- resetForm() {
|
|
|
- this.$router.push({ path: '/companyidentify/index' });
|
|
|
+ resetForm(ruleForm) {
|
|
|
+ this.ruleForm.status = 2;
|
|
|
+ console.log(this.ruleForm);
|
|
|
+ let res = this.update(this.ruleForm);
|
|
|
+
|
|
|
+ // this.$router.push({ path: '/companyup/index' });
|
|
|
},
|
|
|
// 返回
|
|
|
goBack() {
|