From 73c85d8c2951693f9b555ac77831d7b3dc346050 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Thu, 19 Oct 2023 11:24:38 +0800 Subject: [PATCH] 2023-10-19 --- .../src/views/project/projectAdd2.vue | 845 +++++++++--------- .../src/views/project/projectInfo2.vue | 8 +- 2 files changed, 443 insertions(+), 410 deletions(-) diff --git a/supervise-crm-ui/src/views/project/projectAdd2.vue b/supervise-crm-ui/src/views/project/projectAdd2.vue index 91dea887..782442f1 100644 --- a/supervise-crm-ui/src/views/project/projectAdd2.vue +++ b/supervise-crm-ui/src/views/project/projectAdd2.vue @@ -592,9 +592,6 @@ stepClick(index) { this.stepIndex = index }, - addImg() { - console.log(6); - }, loanbankinformation() { req.getUserListByOrg().then((res) => { if (res.success) { @@ -772,473 +769,509 @@ this.formobj.enterpriseList.push(info) let enterprise = { - dictValue: info.enterpriseName, + dictValue: info.enterpriseName, dictKey: info.enterpriseSid, + } + this.enterpriseRelevanceList.push(enterprise) + } else { + this.$message({ + showClose: true, + type: 'error', + message: "请勿重复添加!" + }) } - this.enterpriseRelevanceList.push(enterprise) - } else { - this.$message({ - showClose: true, - type: 'error', - message: "请勿重复添加!" - }) - } - - }, - doDel2(row) { - console.log(">>>>>>>>>doDel", row) - const index = this.formobj.enterpriseList.filter((item) => item.sid === row.sid) - this.formobj.enterpriseList.splice(index, 1) + }, + doDel2(row) { + console.log(">>>>>>>>>doDel", row) + + const index = this.formobj.enterpriseList.filter((item) => item.sid === row.sid) + + // // 判断 账户列表 是否包含 此企业 + // var count = 0 + // for (var i = 0; i < this.formobj.bankList.length; i++) { + // var item = this.formobj.bankList[i] + // if (row.sid === item.enterpriseSid) { + // count++ + // } + // } + + // // 判断 章证列表 是否包含 此企业 + // var count2 = 0 + // for (var i = 0; i < this.formobj.idCardList.length; i++) { + // var item = this.formobj.idCardList[i] + // if (row.sid === item.enterpriseSid) { + // count2++ + // } + // } + const tip = '请确认是否删除所选记录,同时也会删除账户、章证相关联数据!' + this.$confirm(tip, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.formobj.enterpriseList.splice(index, 1) + + const index2 = this.enterpriseRelevanceList.filter((item) => item.dictKey === row.sid) + this.enterpriseRelevanceList.splice(index2, 1) + + const index3 = this.formobj.bankList.filter((item) => item.enterpriseSid === row.sid) + this.formobj.bankList.splice(index3, 1) + + const index4 = this.formobj.idCardList.filter((item) => item.enterpriseSid === row.sid) + this.formobj.idCardList.splice(index4, 1) - const index2 = this.enterpriseRelevanceList.filter((item) => item.dictKey === row.sid) - this.enterpriseRelevanceList.splice(index2, 1) - console.log(">>>>>>>>>doDel", index2) - console.log(">>>>>>>>>doDel", this.enterpriseRelevanceList) - }, - getEnterpriseName(value) { - console.log(">>>>>>>>>getBManager", value) - const choose = this.enterpriseList.filter((item) => item.dictKey === value) - this.formobj.baseInfo.enterpriseName = choose[0].dictValue - this.formobj.baseInfo.enterpriseSid = choose[0].dictKey - let items = this.enterpriseAllList.filter( - // function(item) { - // return item.id == val.id; - item => { - console.log('item: ' + JSON.parse(JSON.stringify(item)).sid) - console.log('val: ' + value) - if (JSON.parse(JSON.stringify(item)).sid == value) { - return true - } }) - console.log(">>>>>>>>>getBManager", items) - this.formobj.baseInfo.econtacts = items[0].contacts - }, - getStateName(value) { - console.log(">>>>>>>>>getStatedName", value) - const choose = this.stateList.filter((item) => item.dictKey === value) - this.formobj.baseInfo.stateName = choose[0].dictValue - this.formobj.baseInfo.stateSid = choose[0].dictKey - this.formobj.baseInfo.stateRemarks = choose[0].dictExplain - }, - saveOrUpdate() { - console.log(">>>>>>>>>saveOrUpdate", this.formobj) - - var bankData = [] - var warehouseData = [] - var idCardData = [] - var enterpriseData = [] - - for (var i = 0; i < this.formobj.bankList.length; i++) { - var item = this.formobj.bankList[i] - bankData.push({ - accountType: item.accountType, - accountNumber: item.accountNumber, - bank: item.bank, - enterpriseSid: item.bankEnterpriseSid, - }) - } - for (var i = 0; i < this.formobj.warehouse.length; i++) { - var item = this.formobj.warehouse[i] - warehouseData.push({ - shSid: item.shSid, - }) - } - for (var i = 0; i < this.formobj.enterpriseList.length; i++) { - var item = this.formobj.enterpriseList[i] - enterpriseData.push({ - enterpriseSid: item.enterpriseSid, - }) - } - for (var i = 0; i < this.formobj.idCardList.length; i++) { - var item = this.formobj.idCardList[i] - var imgs = [] + }, - for (var j = 0; j < item.urls.length; j++) { - var img = item.urls[j] - imgs.push(img.url) + getEnterpriseName(value) { + console.log(">>>>>>>>>getBManager", value) + const choose = this.enterpriseList.filter((item) => item.dictKey === value) + this.formobj.baseInfo.enterpriseName = choose[0].dictValue + this.formobj.baseInfo.enterpriseSid = choose[0].dictKey + let items = this.enterpriseAllList.filter( + // function(item) { + // return item.id == val.id; + item => { + console.log('item: ' + JSON.parse(JSON.stringify(item)).sid) + console.log('val: ' + value) + if (JSON.parse(JSON.stringify(item)).sid == value) { + return true + } + }) + console.log(">>>>>>>>>getBManager", items) + this.formobj.baseInfo.econtacts = items[0].contacts + }, + getStateName(value) { + console.log(">>>>>>>>>getStatedName", value) + const choose = this.stateList.filter((item) => item.dictKey === value) + this.formobj.baseInfo.stateName = choose[0].dictValue + this.formobj.baseInfo.stateSid = choose[0].dictKey + this.formobj.baseInfo.stateRemarks = choose[0].dictExplain + }, + saveOrUpdate() { + console.log(">>>>>>>>>saveOrUpdate", this.formobj) + + var bankData = [] + var warehouseData = [] + var idCardData = [] + var enterpriseData = [] + + for (var i = 0; i < this.formobj.bankList.length; i++) { + var item = this.formobj.bankList[i] + bankData.push({ + accountType: item.accountType, + accountNumber: item.accountNumber, + bank: item.bank, + enterpriseSid: item.enterpriseSid, + }) } - idCardData.push({ - enterpriseSid: item.enterpriseSid, - idCardType: item.idCardType, - idCardName: item.idCardName, - urls: imgs, - }) - } + for (var i = 0; i < this.formobj.warehouse.length; i++) { + var item = this.formobj.warehouse[i] + warehouseData.push({ + shSid: item.shSid, + }) + } - var data = { - sid: this.formobj.sid, - baseInfo: this.formobj.baseInfo, - enterpriseList: enterpriseData, - bankList: bankData, - warehouse: warehouseData, - idCardList: idCardData + for (var i = 0; i < this.formobj.enterpriseList.length; i++) { + var item = this.formobj.enterpriseList[i] + enterpriseData.push({ + enterpriseSid: item.enterpriseSid, + }) + } - } - console.log(">>>>>>>>>", data) - - req.saveInfo(data) - .then(resp => { - if (resp.success) { - this.$message({ - showClose: true, - type: 'success', - message: resp.msg - }) - this.handleReturn("true") - - this.$refs.multipleTable.clearSelection(); - } else { - // 根据resp.code进行异常情况处理 - } - }) - .catch(() => {}) + for (var i = 0; i < this.formobj.idCardList.length; i++) { + var item = this.formobj.idCardList[i] - }, - selectStoreHouses() { - req.selectStoreHouse().then((res) => { - if (res.success) { - console.log(">>>>>>>>>selectStoreHouses", res.data) - this.tableAllList = [] - for (var i = 0; i < res.data.length; i++) { - let type = { - dictValue: res.data[i].name, - dictKey: res.data[i].sid, - address: res.data[i].address, - linkerName: res.data[i].linkerName, - linkerPhone: res.data[i].linkerPhone, + var imgs = [] - } - this.tableAllList.push(type) + for (var j = 0; j < item.urls.length; j++) { + var img = item.urls[j] + imgs.push(img.url) } + + idCardData.push({ + enterpriseSid: item.enterpriseSid, + idCardType: item.idCardType, + idCardName: item.idCardName, + urls: imgs, + }) } - }) - }, - handleReturn(isreload) { - if (isreload === 'true') this.$emit('reloadlist') - - this.formobj = { - sid: "", - baseInfo: { - entryName: "", // 项目名称 - industryName: "", // 行业名称 - industrySid: "", - typeName: "", // 项目类型 - typeSid: "", - bankPledgeRate: "", // 质押率 - creditLimit: "", // 授信额度 - bankName: "", // 贷款行 - bankSid: "", - bmanagerName: '', // 客户经理 - managerSid: "", - engaDate: "", // 授信日期 - loanDate: "", // 放款日期 - signingDate: "", // 签约日期 - remarks: "", // 项目说明 - regulatoryLeader: "", // 监管负责人 - regulatorySupervisor: "", // 监管部主管 - endDate: "", // 结束日期 - fillInDate: "", // 填表日期 - stateSid: "", - stateName: "", - stateRemarks: "", - }, - warehouse: [], - enterpriseList: [], - bankList: [], - idCardList: [], + var data = { + sid: this.formobj.sid, + baseInfo: this.formobj.baseInfo, + enterpriseList: enterpriseData, + bankList: bankData, + warehouse: warehouseData, + idCardList: idCardData - } - this.stepIndex = 1 - this.cangKu.name = '' - this.enterprise.name = '' - this.bankInfo = {} - this.idCardInfo = {} - this.$emit('doback') - }, - showAdd() { - this.title = "【新增】项目信息" - }, - showEdit(row) { - this.title = "【修改】项目信息", - req.getInfoBySid(row.sid) - .then(resp => { - if (resp.success) { - console.log(">>>>>>>>>showEdit", resp.data) - this.formobj = resp.data + } - this.enterpriseRelevanceList = [] - for (var i = 0; i < this.formobj.enterpriseList.length; i++) { + console.log(">>>>>>>>>", data) + + req.saveInfo(data) + .then(resp => { + if (resp.success) { + this.$message({ + showClose: true, + type: 'success', + message: resp.msg + }) + this.handleReturn("true") + + this.$refs.multipleTable.clearSelection(); + } else { + // 根据resp.code进行异常情况处理 + } + }) + .catch(() => {}) - let enterprise = { - dictValue: this.formobj.enterpriseList[i].enterpriseName, - dictKey: this.formobj.enterpriseList[i].enterpriseSid, + }, + selectStoreHouses() { + req.selectStoreHouse().then((res) => { + if (res.success) { + console.log(">>>>>>>>>selectStoreHouses", res.data) + this.tableAllList = [] + for (var i = 0; i < res.data.length; i++) { + let type = { + dictValue: res.data[i].name, + dictKey: res.data[i].sid, + address: res.data[i].address, + linkerName: res.data[i].linkerName, + linkerPhone: res.data[i].linkerPhone, } - this.enterpriseRelevanceList.push(enterprise) + this.tableAllList.push(type) } - - // this.formobj.entryName = resp.data.entryName - // this.formobj.sid = resp.data.sid - // this.formobj.industryName = resp.data.industryName - // this.formobj.industrySid = resp.data.industrySid - // this.formobj.bankPledgeRate = resp.data.bankPledgeRate - // this.formobj.typeName = resp.data.typeName - // this.formobj.typeSid = resp.data.typeSid - // this.formobj.creditLimit = resp.data.creditLimit - // this.formobj.bankName = resp.data.bankName - // this.formobj.bankSid = resp.data.bankSid - // this.formobj.bmanagerName = resp.data.bmanagerName - // this.formobj.managerSid = resp.data.managerSid - // this.formobj.engaDate = resp.data.engaDate - // this.formobj.useLimit = resp.data.useLimit - // this.formobj.loanDate = resp.data.loanDate - // this.formobj.useDate = resp.data.useDate - // this.formobj.signingDate = resp.data.signingDate - // this.formobj.enterpriseName = resp.data.enterpriseName - // this.formobj.enterpriseSid = resp.data.enterpriseSid - // this.formobj.econtacts = resp.data.econtacts - // this.formobj.remarks = resp.data.remarks - // this.formobj.regulatoryLeader = resp.data.regulatoryLeader - // this.formobj.generalManager = resp.data.generalManager - // this.formobj.endDate = resp.data.endDate - // this.formobj.fillInDate = resp.data.fillInDate - // this.Sidlists = resp.data.enterpriseProjectVoList - // this.enterSids.enterpriseSid = [] - // for (let i = 0; i < this.Sidlists.length; i++) { - // this.enterSids.enterpriseSid.push(this.Sidlists[i].enterpriseSid) - // } } - - }) - .catch(e => { - this.formobj = row }) - }, - getCangku(value) { - console.log(">>>>>>>>>getCangku", value) - const choose = this.tableAllList.filter((item) => item.dictKey === value) + }, - this.cangKu.name = choose[0].dictValue - this.cangKu.sid = choose[0].dictKey - this.cangKu.address = choose[0].address - this.cangKu.linkerName = choose[0].linkerName - this.cangKu.linkerPhone = choose[0].linkerPhone + handleReturn(isreload) { + if (isreload === 'true') this.$emit('reloadlist') - }, - addCangku() { - var info = { - shSid: this.cangKu.sid, - name: this.cangKu.name, - address: this.cangKu.address, - linkerName: this.cangKu.linkerName, - linkerPhone: this.cangKu.linkerPhone, - } + this.formobj = { + sid: "", + baseInfo: { + entryName: "", // 项目名称 + industryName: "", // 行业名称 + industrySid: "", + typeName: "", // 项目类型 + typeSid: "", + bankPledgeRate: "", // 质押率 + creditLimit: "", // 授信额度 + bankName: "", // 贷款行 + bankSid: "", + bmanagerName: '', // 客户经理 + managerSid: "", + engaDate: "", // 授信日期 + loanDate: "", // 放款日期 + signingDate: "", // 签约日期 + remarks: "", // 项目说明 + regulatoryLeader: "", // 监管负责人 + regulatorySupervisor: "", // 监管部主管 + endDate: "", // 结束日期 + fillInDate: "", // 填表日期 + stateSid: "", + stateName: "", + stateRemarks: "", + }, + warehouse: [], + enterpriseList: [], + bankList: [], + idCardList: [], - const choose = this.formobj.warehouse.filter((item) => item.shSid === info.shSid) - console.log(">>>>>>>>>addCangku", choose) - if (choose.length == 0) - this.formobj.warehouse.push(info) - else - this.$message({ - showClose: true, - type: 'error', - message: "请勿重复添加!" - }) - }, - doDel(row) { - console.log(">>>>>>>>>doDel", row) + } + this.stepIndex = 1 + this.cangKu.name = '' + this.enterprise.name = '' + this.bankInfo = {} + this.idCardInfo = {} + this.$emit('doback') + }, + showAdd() { + this.title = "【新增】项目信息" + }, + showEdit(row) { + this.title = "【修改】项目信息", + req.getInfoBySid(row.sid) + .then(resp => { + if (resp.success) { + console.log(">>>>>>>>>showEdit", resp.data) + this.formobj = resp.data + + this.enterpriseRelevanceList = [] + for (var i = 0; i < this.formobj.enterpriseList.length; i++) { + + let enterprise = { + dictValue: this.formobj.enterpriseList[i].enterpriseName, + dictKey: this.formobj.enterpriseList[i].enterpriseSid, + + } + this.enterpriseRelevanceList.push(enterprise) + } - const index = this.formobj.warehouse.filter((item) => item.sid === row.sid) - this.formobj.warehouse.splice(index, 1) - }, - addBanK() { - console.log(">>>>>>>>>doDel", this.bankInfo) - - if (!this.bankInfo.bankType) { - this.$message({ - showClose: true, - type: 'error', - message: "账户类型不能为空!" - }) - return - } + // this.formobj.entryName = resp.data.entryName + // this.formobj.sid = resp.data.sid + // this.formobj.industryName = resp.data.industryName + // this.formobj.industrySid = resp.data.industrySid + // this.formobj.bankPledgeRate = resp.data.bankPledgeRate + // this.formobj.typeName = resp.data.typeName + // this.formobj.typeSid = resp.data.typeSid + // this.formobj.creditLimit = resp.data.creditLimit + // this.formobj.bankName = resp.data.bankName + // this.formobj.bankSid = resp.data.bankSid + // this.formobj.bmanagerName = resp.data.bmanagerName + // this.formobj.managerSid = resp.data.managerSid + // this.formobj.engaDate = resp.data.engaDate + // this.formobj.useLimit = resp.data.useLimit + // this.formobj.loanDate = resp.data.loanDate + // this.formobj.useDate = resp.data.useDate + // this.formobj.signingDate = resp.data.signingDate + // this.formobj.enterpriseName = resp.data.enterpriseName + // this.formobj.enterpriseSid = resp.data.enterpriseSid + // this.formobj.econtacts = resp.data.econtacts + // this.formobj.remarks = resp.data.remarks + // this.formobj.regulatoryLeader = resp.data.regulatoryLeader + // this.formobj.generalManager = resp.data.generalManager + // this.formobj.endDate = resp.data.endDate + // this.formobj.fillInDate = resp.data.fillInDate + // this.Sidlists = resp.data.enterpriseProjectVoList + // this.enterSids.enterpriseSid = [] + // for (let i = 0; i < this.Sidlists.length; i++) { + // this.enterSids.enterpriseSid.push(this.Sidlists[i].enterpriseSid) + // } + } - if (!this.bankInfo.bankEnterprise) { - this.$message({ - showClose: true, - type: 'error', - message: "所属企业不能为空!" - }) - return - } + }) + .catch(e => { + this.formobj = row + }) + }, + getCangku(value) { + console.log(">>>>>>>>>getCangku", value) + const choose = this.tableAllList.filter((item) => item.dictKey === value) + this.cangKu.name = choose[0].dictValue + this.cangKu.sid = choose[0].dictKey + this.cangKu.address = choose[0].address + this.cangKu.linkerName = choose[0].linkerName + this.cangKu.linkerPhone = choose[0].linkerPhone - if (!this.bankInfo.bankNum) { - this.$message({ - showClose: true, - type: 'error', - message: "银行账号不能为空!" - }) - return - } + }, + addCangku() { + var info = { + shSid: this.cangKu.sid, + name: this.cangKu.name, + address: this.cangKu.address, + linkerName: this.cangKu.linkerName, + linkerPhone: this.cangKu.linkerPhone, + } + const choose = this.formobj.warehouse.filter((item) => item.shSid === info.shSid) + console.log(">>>>>>>>>addCangku", choose) + if (choose.length == 0) + this.formobj.warehouse.push(info) + else + this.$message({ + showClose: true, + type: 'error', + message: "请勿重复添加!" + }) + }, + doDel(row) { + console.log(">>>>>>>>>doDel", row) - if (!this.bankInfo.bankName) { - this.$message({ - showClose: true, - type: 'error', - message: "开户银行不能为空!" - }) - return - } + const index = this.formobj.warehouse.filter((item) => item.sid === row.sid) + this.formobj.warehouse.splice(index, 1) + }, + addBanK() { + console.log(">>>>>>>>>doDel", this.bankInfo) + + if (!this.bankInfo.bankType) { + this.$message({ + showClose: true, + type: 'error', + message: "账户类型不能为空!" + }) + return + } + if (!this.bankInfo.bankEnterprise) { + this.$message({ + showClose: true, + type: 'error', + message: "所属企业不能为空!" + }) + return + } - var info = { - accountType: this.bankInfo.bankType, - bankTypeSid: this.bankInfo.bankTypeSid, - enterpriseName: this.bankInfo.bankEnterprise, - bankEnterpriseSid: this.bankInfo.bankEnterpriseSid, - accountNumber: this.bankInfo.bankNum, - bank: this.bankInfo.bankName, - } - const choose = this.formobj.bankList.filter((item) => item.accountNumber == info.accountNumber) - console.log(">>>>>>>>>addCangku", choose) - if (choose.length == 0) - this.formobj.bankList.push(info) - else - this.$message({ - showClose: true, - type: 'error', - message: "请勿重复添加!" - }) + if (!this.bankInfo.bankNum) { + this.$message({ + showClose: true, + type: 'error', + message: "银行账号不能为空!" + }) + return + } - }, - doDel3(row) { - console.log(">>>>>>>>>doDel", row) + if (!this.bankInfo.bankName) { + this.$message({ + showClose: true, + type: 'error', + message: "开户银行不能为空!" + }) + return + } - const index = this.formobj.bankList.filter((item) => item.bankNum === row.bankNum) - this.formobj.bankList.splice(index, 1) - }, - getBankType(value) { - console.log(">>>>>>>>>getBankType", value) - const choose = this.bankType.filter((item) => item.dictKey === value) - this.bankInfo.bankType = choose[0].dictValue - this.bankInfo.bankTypeSid = choose[0].dictKey - }, - getBankEnterprise(value) { - console.log(">>>>>>>>>getCangku", value) - const choose = this.enterpriseRelevanceList.filter((item) => item.dictKey === value) - this.bankInfo.bankEnterprise = choose[0].dictValue - this.bankInfo.bankEnterpriseSid = choose[0].dictKey - }, - addIdCard() { - console.log(">>>>>>>>>addIdCard", this.idCardInfo) - - if (!this.idCardInfo.idCardType) { - this.$message({ - showClose: true, - type: 'error', - message: "章证类型不能为空!" - }) - return - } + var info = { + accountType: this.bankInfo.bankType, + bankTypeSid: this.bankInfo.bankTypeSid, + enterpriseName: this.bankInfo.bankEnterprise, + enterpriseSid: this.bankInfo.bankEnterpriseSid, + accountNumber: this.bankInfo.bankNum, + bank: this.bankInfo.bankName, + } - if (!this.idCardInfo.idCardEnterprise) { - this.$message({ - showClose: true, - type: 'error', - message: "所属企业不能为空!" - }) - return - } + const choose = this.formobj.bankList.filter((item) => item.accountNumber == info.accountNumber) + console.log(">>>>>>>>>addCangku", choose) + if (choose.length == 0) + this.formobj.bankList.push(info) + else + this.$message({ + showClose: true, + type: 'error', + message: "请勿重复添加!" + }) - if (!this.idCardInfo.name) { - this.$message({ - showClose: true, - type: 'error', - message: "章证名称不能为空!" - }) - return - } + }, + doDel3(row) { + console.log(">>>>>>>>>doDel", row) + const index = this.formobj.bankList.filter((item) => item.bankNum === row.bankNum) + this.formobj.bankList.splice(index, 1) + }, + getBankType(value) { + console.log(">>>>>>>>>getBankType", value) + const choose = this.bankType.filter((item) => item.dictKey === value) + this.bankInfo.bankType = choose[0].dictValue + this.bankInfo.bankTypeSid = choose[0].dictKey + }, + getBankEnterprise(value) { + console.log(">>>>>>>>>getCangku", value) + const choose = this.enterpriseRelevanceList.filter((item) => item.dictKey === value) - if (this.imgList.length == 0) { - this.$message({ - showClose: true, - type: 'error', - message: "章证图片不能为空!" - }) - return - } + this.bankInfo.bankEnterprise = choose[0].dictValue + this.bankInfo.bankEnterpriseSid = choose[0].dictKey + }, + addIdCard() { + console.log(">>>>>>>>>addIdCard", this.idCardInfo) + + if (!this.idCardInfo.idCardType) { + this.$message({ + showClose: true, + type: 'error', + message: "章证类型不能为空!" + }) + return + } + if (!this.idCardInfo.idCardEnterprise) { + this.$message({ + showClose: true, + type: 'error', + message: "所属企业不能为空!" + }) + return + } - var info = { - idCardType: this.idCardInfo.idCardType, - idCardTypeSid: this.idCardInfo.idCardTypeSid, - enterpriseName: this.idCardInfo.idCardEnterprise, - enterpriseSid: this.idCardInfo.idCardEnterpriseSid, - idCardName: this.idCardInfo.name, - urls: this.imgList, - } - this.formobj.idCardList.push(info) - console.log("idCardList", this.formobj.idCardList) + if (!this.idCardInfo.name) { + this.$message({ + showClose: true, + type: 'error', + message: "章证名称不能为空!" + }) + return + } - this.imgList = [] - }, - doDel4(row) { - console.log(">>>>>>>>>doDel", row) + if (this.imgList.length == 0) { + this.$message({ + showClose: true, + type: 'error', + message: "章证图片不能为空!" + }) + return + } - const index = this.formobj.idCardList.filter((item) => item.idCardName === row.idCardName) - this.formobj.idCardList.splice(index, 1) - }, - getIdCardType(value) { - console.log(">>>>>>>>>getIdCardType", value) - const choose = this.idCardType.filter((item) => item.dictKey === value) - this.idCardInfo.idCardType = choose[0].dictValue - this.idCardInfo.idCardTypeSid = choose[0].dictKey - }, - getIdCardEnterprise(value) { - console.log(">>>>>>>>>getIdCardEnterprise", value) - const choose = this.enterpriseRelevanceList.filter((item) => item.dictKey === value) - this.idCardInfo.idCardEnterprise = choose[0].dictValue - this.idCardInfo.idCardEnterpriseSid = choose[0].dictKey - }, + var info = { + idCardType: this.idCardInfo.idCardType, + idCardTypeSid: this.idCardInfo.idCardTypeSid, + enterpriseName: this.idCardInfo.idCardEnterprise, + enterpriseSid: this.idCardInfo.idCardEnterpriseSid, + idCardName: this.idCardInfo.name, + urls: this.imgList, + } + this.formobj.idCardList.push(info) - backData(value) { - console.log(value, 999) - console.log("imgList", this.imgList) - // const aa = [] - // if (value.length > 0 && value != null && value != undefined) { - // for (var i = 0; i < value.length; i++) { - // aa.push(value[i].url) - // } - // } - // this.formobj.contractInfo.contractFiles = aa + console.log("idCardList", this.formobj.idCardList) - }, + this.imgList = [] - } + }, + doDel4(row) { + console.log(">>>>>>>>>doDel", row) + + const index = this.formobj.idCardList.filter((item) => item.idCardName === row.idCardName) + this.formobj.idCardList.splice(index, 1) + }, + getIdCardType(value) { + console.log(">>>>>>>>>getIdCardType", value) + const choose = this.idCardType.filter((item) => item.dictKey === value) + this.idCardInfo.idCardType = choose[0].dictValue + this.idCardInfo.idCardTypeSid = choose[0].dictKey + }, + getIdCardEnterprise(value) { + console.log(">>>>>>>>>getIdCardEnterprise", value) + const choose = this.enterpriseRelevanceList.filter((item) => item.dictKey === value) + + this.idCardInfo.idCardEnterprise = choose[0].dictValue + this.idCardInfo.idCardEnterpriseSid = choose[0].dictKey + }, + + backData(value) { + console.log(value, 999) + console.log("imgList", this.imgList) + // const aa = [] + // if (value.length > 0 && value != null && value != undefined) { + // for (var i = 0; i < value.length; i++) { + // aa.push(value[i].url) + // } + // } + // this.formobj.contractInfo.contractFiles = aa + + }, + + } } + \ No newline at end of file diff --git a/supervise-crm-ui/src/views/project/projectInfo2.vue b/supervise-crm-ui/src/views/project/projectInfo2.vue index 49c2b78e..2341dfa8 100644 --- a/supervise-crm-ui/src/views/project/projectInfo2.vue +++ b/supervise-crm-ui/src/views/project/projectInfo2.vue @@ -155,7 +155,7 @@ - {{temp.baseInfo.generalManager}} + {{temp.baseInfo.regulatorySupervisor}} @@ -254,12 +254,12 @@ - + - +