diff --git a/src/views/system/corpinfo/components/corpEdit.vue b/src/views/system/corpinfo/components/corpEdit.vue index c02a2e7..fc0aa9b 100644 --- a/src/views/system/corpinfo/components/corpEdit.vue +++ b/src/views/system/corpinfo/components/corpEdit.vue @@ -58,7 +58,7 @@ - + @@ -412,7 +412,7 @@ - + @@ -685,7 +685,7 @@ export default { callback() } }).catch((e) => { - + callback() }) } return { @@ -837,7 +837,7 @@ export default { WHETHER_PRE_SALE_SERVICE: '', WHETHER_AFTER_SALES_SERVICE: '', VIPLEVEL: '', - MARKETING_PERSON: '', + MARKETING_PERSON: this.USER_ID, STATUS: '', VIP_GEAR: '' }, @@ -1171,7 +1171,7 @@ export default { const POSSESSION = data.pd.POSSESSION await this.getAreaOpts(POSSESSION, this.areaList, 0) this.OLDFOURTYPE = data.pd.FOURTYPE - data.pd.MARKETING_PERSON = data.pd.MARKETING_PERSON || '' + data.pd.MARKETING_PERSON = data.pd.MARKETING_PERSON || this.USER_ID if (data.pd.MARKETING_PERSON == null || data.pd.MARKETING_PERSON == '') { this.isOldData = '1' } @@ -1179,7 +1179,7 @@ export default { console.log(this.form) this.changeArea() this.form.FOURTYPE = data.pd.FOURTYPE ? data.pd.FOURTYPE + '' : '1' - this.form.INDUSTRY_TYPE = JSON.parse(data.pd.INDUSTRY_TYPE) + // this.form.INDUSTRY_TYPE = JSON.parse(data.pd.INDUSTRY_TYPE) if (data.pd.ecoOption && data.pd.ecoOption.length > 0) { this.jjlxList = data.pd.ecoOption } else { @@ -1203,22 +1203,26 @@ export default { this.$nextTick(() => { this.$refs.ecoCascader.presentText = this.censusRegisterPlaceName }) - if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') { - const node = {} - node.id = this.form.CORP_OF_TYPE2 - this.$nextTick(() => { - this.$refs.corpOfTypeRef.handleNodeClick(node) - }) - } else if (this.form.CORP_OF_TYPE && this.form.CORP_OF_TYPE != '') { - const node = {} - node.id = this.form.CORP_OF_TYPE - this.$nextTick(() => { - this.$refs.corpOfTypeRef.handleNodeClick(node) - }) - } + // if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') { + // const node = {} + // node.id = this.form.CORP_OF_TYPE2 + // this.$nextTick(() => { + // this.$refs.corpOfTypeRef.handleNodeClick(node) + // }) + // } else if (this.form.CORP_OF_TYPE && this.form.CORP_OF_TYPE != '') { + // const node = {} + // node.id = this.form.CORP_OF_TYPE + // this.$nextTick(() => { + // this.$refs.corpOfTypeRef.handleNodeClick(node) + // }) + // } this.$forceUpdate() this.bus_images = data.busImgs - this.official_seal_file = data.official_seal_file + console.log(data.pd.OFFICIAL_SEAL_PATH) + if (data.pd.OFFICIAL_SEAL_PATH) { + this.official_seal_file.push({ FILEPATH: data.pd.OFFICIAL_SEAL_PATH }) + this.officialSealUpload = true + } if (data.pd.FOURTYPE == 1) { this.four_images = data.fourImgs } @@ -1249,7 +1253,17 @@ export default { resolve() }) }, - + deleteOfficialSealFile() { + this.$confirm('确定要删除吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.official_seal_file.splice(0, 1) + this.officialSealUpload = false + }).catch(() => { + }) + }, deleteImage(index) { this.$confirm('确定要删除吗?', { confirmButtonText: '确定', diff --git a/src/views/system/corpinfo/components/corpView.vue b/src/views/system/corpinfo/components/corpView.vue index e364cfe..b315d31 100644 --- a/src/views/system/corpinfo/components/corpView.vue +++ b/src/views/system/corpinfo/components/corpView.vue @@ -258,7 +258,7 @@
- 修改 + 返回
@@ -309,7 +309,7 @@ export default { this.$parent.activeName = 'CorpList' }, // 修改 - handleEdit(row) { + handleEdit() { this.$parent.activeName = 'corpEdit' }, chooseMap() {