From fe78120a79d0efe95c9554d10713096c2ccb563d Mon Sep 17 00:00:00 2001
From: rose <1942951600@qq.com>
Date: Tue, 11 May 2021 15:47:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E9=A9=BB=E7=94=B3=E8=AF=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 8 ++--
src/components/EntityApply/EntityApplyAdd.vue | 43 +++++++++----------
.../EntityApply/EntityApplyEdit.vue | 37 +++++++++++++---
.../EntityApply/EntityApplySearch.vue | 11 +++--
4 files changed, 62 insertions(+), 37 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 271b478..efacbee 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,7 +1,7 @@
-
+
@@ -13,12 +13,10 @@ import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import BtnCon from 'components/BtnCom/BtnCon.vue';
export default {
- name: 'app',
+ name: 'App',
components: { BtnCon },
data() {
- return {
- zh_CN,
- };
+ return {zh_CN,};
},
computed: mapState(['anyringToken', 'ptProps']),
diff --git a/src/components/EntityApply/EntityApplyAdd.vue b/src/components/EntityApply/EntityApplyAdd.vue
index 408c95d..9672ea6 100644
--- a/src/components/EntityApply/EntityApplyAdd.vue
+++ b/src/components/EntityApply/EntityApplyAdd.vue
@@ -101,31 +101,15 @@
-
+
-
-
-
+
-
+
@@ -230,6 +214,7 @@ export default {
codeNum: '',
showInterval: false,
codeTimer: null,
+ filesUpload: [],
interval: 120, // 验证码有效时间倒计时
};
},
@@ -346,7 +331,7 @@ export default {
this.$message.error('请输入身份证号');
} else {
for (var i = 0; i < this.fileList.length; i++) {
- this.platform.files = this.platform.files.concat(this.fileList[i].response.data[0].id);
+ this.filesUpload = this.filesUpload.concat(this.fileList[i].response.data[0].id);
}
this.addSettled();
}
@@ -362,7 +347,7 @@ export default {
company: this.platform.company,
electricDesign: this.platform.electricDesign,
email: this.platform.email,
- fileList: this.platform.files,
+ fileList: this.filesUpload,
friendCompany: this.platform.friendCompany,
gender: this.platform.sex,
idCard: this.platform.idCard,
@@ -390,7 +375,6 @@ export default {
// console.log(res);
const { code, msg, data } = res.data;
if (code === 200) {
- this.$message.success('申请成功');
this.visible = false;
this.confirmLoading = false;
for (let key in this.platform) {
@@ -398,7 +382,20 @@ export default {
}
this.platform.isTel = false;
this.platform.isEmail = false;
- this.platform.isIdCard = false;
+ this.platform.isIdCard =false;
+ this.platform.buildTime= 0 // 成立时间(时间戳)
+ this.platform.registerMoney= 0 // 注册资金
+ this.platform.staffCount= 0 // 员工人数
+ this.platform.resarchStaff= 0 // 研发人数
+ this.platform.juniorCollege =0 // 大专以上人员
+ this.platform.businessIncome = 0 // 营业收入
+ this.platform.productTech= 0 // 产品阶段
+ this.platform.patentApply= 0 // 申请专利数
+ this.platform.patentGrented= 0 // 授权专利数
+ this.platform.patentInvent= 0 // 发明专利数
+ this.platform.sex = 1
+ this.$emit('getData');
+ this.$message.success('申请成功');
} else {
throw msg;
// console.log('失败1');
diff --git a/src/components/EntityApply/EntityApplyEdit.vue b/src/components/EntityApply/EntityApplyEdit.vue
index 7ee66c9..c47aee9 100644
--- a/src/components/EntityApply/EntityApplyEdit.vue
+++ b/src/components/EntityApply/EntityApplyEdit.vue
@@ -78,6 +78,13 @@
+
+
![]()
+
+
+
1.营业执照复印件(尚无注册的无需梯控)
2.法定代表或授权代表身份证复印件
3.主导产品或技术简介
- 点击上传附件
+ 点击上传附件
@@ -112,15 +119,22 @@
-
+
-
+
-
+
@@ -203,13 +217,26 @@ export default {
if( this.platform.buildTime === null){
this.platform.buildTime = 0
}
+ //在这个地方来完成相关的上传附件回显
+ this.fileList.push(val.picUrl)
+
console.log("========>",this.platform)
-
+
},
},
methods: {
+
+ // 删除fileList
+ deleteFileList(){
+ console.log("进入事件")
+
+ this.fileList = []
+ this.editData.picUrl = ''
+
+
+ },
beforeUpload(file) {
return new Promise((resolve, reject) => {
const isLt5M = file.size / 1024 / 1024 < 5;
diff --git a/src/components/EntityApply/EntityApplySearch.vue b/src/components/EntityApply/EntityApplySearch.vue
index 80fc42d..792eb87 100644
--- a/src/components/EntityApply/EntityApplySearch.vue
+++ b/src/components/EntityApply/EntityApplySearch.vue
@@ -17,7 +17,7 @@
-
+
@@ -26,9 +26,7 @@ import EntityApplyAdd from 'components/EntityApply/EntityApplyAdd.vue';
export default {
name: 'EntityApplySearch',
- components: {
- EntityApplyAdd,
- },
+ components: {EntityApplyAdd,},
data() {
return {
visible: false,
@@ -43,6 +41,11 @@ export default {
};
},
methods: {
+
+ getData() {
+ this.$emit('entityApplicationSearch');
+ },
+
handleChangeName(value) {
console.log('value: ', value);
this.companyName = value;