diff --git a/ceres-uniapp-master/config/api.js b/ceres-uniapp-master/config/api.js index e6ed4d3..f534869 100644 --- a/ceres-uniapp-master/config/api.js +++ b/ceres-uniapp-master/config/api.js @@ -1,6 +1,6 @@ -const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/admin-server' -const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/api' +// const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/admin-server' +// const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/api' // const DOMAIN_PREFIXPING = 'http://192.168.2.7:9003' // const DOMAIN_PREFIX = 'http://192.168.2.7:9007' // const host = `${window.location.protocol}//${window.location.host}` @@ -9,8 +9,8 @@ const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/api' // const DOMAIN_PREFIX =`${host}/cdwlMall/meserver/api` -// const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/meserver/admin-server' -// const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/meserver/api' +const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/admin-server' +const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/api' // const DOMAIN_PREFIXPING = 'http://192.168.2.162:9003' // const DOMAIN_PREFIX = 'http://192.168.2.162:9007' // const host = `${window.location.protocol}//${window.location.host}` diff --git a/yanshouban/src/App.vue b/yanshouban/src/App.vue index ced9d41..eda2c89 100644 --- a/yanshouban/src/App.vue +++ b/yanshouban/src/App.vue @@ -42,7 +42,7 @@ export default { //       }   //     } else { -//     window.location.href = 'https://zhld.scjysm.com:1443/home'; // 直接跳转到指定的 URL +//     window.location.href = 'https://jy.scjysm.asia:18086/login'; // 直接跳转到指定的 URL //     } // if (this.$store.state.user.token) { // this.getPrivacySwitch(); @@ -53,8 +53,8 @@ export default { handleLogin () { const data = { - username: JM.encrypt('admin'), - password: JM.encrypt('ILoveChina@666'), + username: this.$encrypt('admin'), + password: this.$encrypt('ILoveChina@666'), // username: JM.encrypt('15827188456'), // password: JM.encrypt('ILoveChina@666'), rememberMe: false diff --git a/yanshouban/src/layout/index.vue b/yanshouban/src/layout/index.vue index d75ecf8..d3ef161 100644 --- a/yanshouban/src/layout/index.vue +++ b/yanshouban/src/layout/index.vue @@ -291,7 +291,7 @@ export default { newPassword: '', confirmPass: '' }, - name: localStorage.getItem('roleName'), + name:this.$decrypt(localStorage.getItem('roleName')) , rules: { password: [ { required: true, message: '请输入旧密码', trigger: 'blur' } diff --git a/yanshouban/src/main.js b/yanshouban/src/main.js index a63e656..c82e1f7 100644 --- a/yanshouban/src/main.js +++ b/yanshouban/src/main.js @@ -12,7 +12,7 @@ import '@/assets/font.css' import App from './App.vue' import store from './store' import router from './router' -import {encrypt,decrypt,decryptall} from './utils/jiami.js' +import {encrypt,decrypt,decryptall,encryptall} from './utils/jiami.js' import '@/icons' // icon import '@/permission' // permission control @@ -31,6 +31,7 @@ Vue.prototype.$API = 'https://jy.scjysm.asia:18086/meserver/api' Vue.prototype.$encrypt = encrypt; Vue.prototype.$decrypt = decrypt; Vue.prototype.$decryptall = decryptall; +Vue.prototype.$encryptall = encryptall; // Vue.prototype.$API = 'https://wjdc.scjysm.asia:1443/meserver/api' // Vue.prototype.$API = 'http://8.130.38.56:8019/api' // https://jy.scjysm.asia:18086 http://172.16.61.126:8080 http://8.130.38.56:8027 diff --git a/yanshouban/src/utils/jiami.js b/yanshouban/src/utils/jiami.js index 659fff3..65870fe 100644 --- a/yanshouban/src/utils/jiami.js +++ b/yanshouban/src/utils/jiami.js @@ -34,10 +34,10 @@ export const decrypt = (str) => {         return '解密失败!'     } } - +// 批量加密 export const decryptall = (obj,isjmlist) => { - console.error(isjmlist) - console.error(obj) + + let list = [] let objnew = {} for (let key in obj) { @@ -47,10 +47,10 @@ export const decryptall = (obj,isjmlist) => { value:obj[key],//值 } if(isjmlist.length> 0) { - - // let found = isjmlist.find(function(element) { - // return key == element; - // }); + + // let found = isjmlist.find(function(element) { + // return key == element; + // }); console.log(isjmlist.indexOf(key) != -1) if(isjmlist.indexOf(key) != -1) { item.typeis = '1' @@ -58,11 +58,11 @@ export const decryptall = (obj,isjmlist) => { } else { item.typeis = '1' } - console.error(item) + list.push(item) } - console.log(list); - + + list.forEach(element => { if(element.typeis == '1' && element.value) { console.error(element) @@ -70,6 +70,27 @@ export const decryptall = (obj,isjmlist) => { } objnew[element.keyname] = element.value }); - console.log(objnew); + return objnew -} \ No newline at end of file +} +// 批量解密 +export const encryptall = (list,isjmlist) => { + + + let newlist = list.map(element => { + let c1 = Object.keys(element) + c1.forEach(key => { + if(isjmlist.length> 0) { + console.log(isjmlist.indexOf(key) != -1) + if(isjmlist.indexOf(key) != -1) { + element[key] = decrypt(element[key]) + } + } else { + element[key] = decrypt(element[key]) + } + }); + return element + }); + + return newlist +} diff --git a/yanshouban/src/utils/request.js b/yanshouban/src/utils/request.js index be1f8f5..26311a8 100644 --- a/yanshouban/src/utils/request.js +++ b/yanshouban/src/utils/request.js @@ -21,9 +21,9 @@ if (host == '172.16.61.48' || host == '172.16.61.49:5173' || host =='172.16.61.1 // PREFIX = 'http://172.16.61.48/meserver/admin-server'; // PREFIX = 'http://192.168.2.213:9003'; // PREFIX = 'http://8.130.38.56:8019/admin-server'; -// PREFIX = 'http://192.168.2.7:9003'; + PREFIX = 'http://192.168.8.106:9003'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server'; - PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; + // PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server' diff --git a/yanshouban/src/views/advertisement/index.vue b/yanshouban/src/views/advertisement/index.vue index 47232c4..50be388 100644 --- a/yanshouban/src/views/advertisement/index.vue +++ b/yanshouban/src/views/advertisement/index.vue @@ -894,7 +894,8 @@ auditTime:'' }, peiShow:false, - peiId:'' + peiId:'', + hemiList:['earnestMoney','contractAmount','lessorName','telephone','bankAccount','tenantName','tenantTelephone','tenantBankAccount'] } }, created() { @@ -951,6 +952,16 @@ } this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, // 获取时间 currentTime() { @@ -986,6 +997,7 @@ this.heForm.appendicesContract = JSON.stringify(this.hetongData) } this.heForm.createDate = this.currentTime() + let heinfo = this.$decryptall(this.heForm,this.hemiList) hetongadd(this.heForm).then(res => { this.formInl.contractId = res.data.id this.formInl.applicationTime = this.currentTime() diff --git a/yanshouban/src/views/business/autd/index.vue b/yanshouban/src/views/business/autd/index.vue index 4448e47..93e8eba 100644 --- a/yanshouban/src/views/business/autd/index.vue +++ b/yanshouban/src/views/business/autd/index.vue @@ -384,7 +384,10 @@ export default { search () { this.total = 1 this.formInline.page = 1 - this.getAll(this.formInline) + + let obj = { ...this.formInline} + obj.shopPhone = this.$encrypt(obj.shopPhone) + this.getAll(obj) }, // 处理 handleDel (row) { diff --git a/yanshouban/src/views/business/businessList/index.vue b/yanshouban/src/views/business/businessList/index.vue index c54884d..c0b987a 100644 --- a/yanshouban/src/views/business/businessList/index.vue +++ b/yanshouban/src/views/business/businessList/index.vue @@ -802,7 +802,7 @@ export default { }, business:[], plan_Time:[], - miList:['shopPhone','shopPassword','idCardNum','emailAddress','shopAdress','legalRepresentative','chargePersonPhone'] + miList:['shopPhone','shopPassword','idCardNum','emailAddress','shopAdress','legalRepresentative','chargePersonPhone','emailAddress'] } }, // 监听属性 类似于data概念 @@ -860,6 +860,7 @@ export default { console.log(tab, event) }, onSubmit () { + this.formInline.chargePersonName = this.$encrypt(this.formInline.chargePersonName) this.getAll(this.formInline) }, resetting(){ @@ -871,6 +872,7 @@ export default { page: '1', // 当前页 pageSize: '10' // 每页记录数 } + this.getAll(this.formInline) }, // 新建商家 @@ -949,7 +951,9 @@ export default { } if (!this.userState) { + let newinfo = this.$decryptall(this.ruleForm,this.miList) + businessListSave(newinfo).then(res => { if (res.code === '') { this.$message({ @@ -963,6 +967,9 @@ export default { }) } else { let newinfo = this.$decryptall(this.ruleForm,this.miList) + let arr = [newinfo.shopPhone,newinfo.shopPassword,newinfo.idCardNum,newinfo.emailAddress,newinfo.shopAdress,newinfo.legalRepresentative,newinfo.chargePersonPhone] + arr = arr.join(',') + newinfo.dataIntegrity = this.$encrypt(arr) businessListUpdate(newinfo).then(res => { if (res.code === '') { @@ -999,6 +1006,12 @@ export default { this.$set(this.plan_Time, 0, res.data.validityStartDate) this.$set(this.plan_Time, 1, res.data.validityEndDate) this.dialogVisible = true + this.ruleForm.shopPhone = this.$decrypt(this.ruleForm.shopPhone) + this.ruleForm.shopPassword = this.$decrypt(this.ruleForm.shopPassword) + this.ruleForm.shopAdress = this.$decrypt(this.ruleForm.shopAdress) + this.ruleForm.dataIntegrity = this.$decrypt(this.ruleForm.dataIntegrity) + this.ruleForm.chargePersonPhone = this.$decrypt(this.ruleForm.chargePersonPhone) + } }, // 编辑 @@ -1015,6 +1028,11 @@ export default { this.$set(this.plan_Time, 0, res.data.validityStartDate) this.$set(this.plan_Time, 1, res.data.validityEndDate) this.dialogVisible = true + this.ruleForm.shopPhone = this.$decrypt(this.ruleForm.shopPhone) + this.ruleForm.shopPassword = this.$decrypt(this.ruleForm.shopPassword) + this.ruleForm.shopAdress = this.$decrypt(this.ruleForm.shopAdress) + this.ruleForm.dataIntegrity = this.$decrypt(this.ruleForm.dataIntegrity) + this.ruleForm.chargePersonPhone = this.$decrypt(this.ruleForm.chargePersonPhone) }, diff --git a/yanshouban/src/views/comprehensive/Lcinquiry/index.vue b/yanshouban/src/views/comprehensive/Lcinquiry/index.vue index 0f49240..afdf936 100644 --- a/yanshouban/src/views/comprehensive/Lcinquiry/index.vue +++ b/yanshouban/src/views/comprehensive/Lcinquiry/index.vue @@ -112,6 +112,9 @@ this.tableData = Orderlist.data res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) }, async search(){ @@ -125,6 +128,9 @@ async search(){ res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) }, clear(){ diff --git a/yanshouban/src/views/comprehensive/OrderRhq/index.vue b/yanshouban/src/views/comprehensive/OrderRhq/index.vue index dca12f8..ced8720 100644 --- a/yanshouban/src/views/comprehensive/OrderRhq/index.vue +++ b/yanshouban/src/views/comprehensive/OrderRhq/index.vue @@ -202,6 +202,9 @@ export default { res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) }, // 导出订单 diff --git a/yanshouban/src/views/comprehensive/dAddress/index.vue b/yanshouban/src/views/comprehensive/dAddress/index.vue index c8803ee..59145a3 100644 --- a/yanshouban/src/views/comprehensive/dAddress/index.vue +++ b/yanshouban/src/views/comprehensive/dAddress/index.vue @@ -125,6 +125,9 @@ res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) }, async search(){ @@ -138,6 +141,9 @@ res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) }, clear(){ diff --git a/yanshouban/src/views/comprehensive/pEranking/index.vue b/yanshouban/src/views/comprehensive/pEranking/index.vue index b5dd0fc..777fda2 100644 --- a/yanshouban/src/views/comprehensive/pEranking/index.vue +++ b/yanshouban/src/views/comprehensive/pEranking/index.vue @@ -133,13 +133,13 @@ export default { }, async getAll(){ let last = this.updateCurrentTime() -// const res = await orderGetAll(this.formInline) + const Orderlist = await productEvaluationRanking({startTime:last[0],endTime:last[1]}) this.tableData = Orderlist.data.list }, async search(){ this.formInline.dates = this.formParams.dates - // const res = await orderGetAll(this.formInline) + let startTimeS = this.formInline.dates[0] +` 00:00:00` let endTimeS = this.formInline.dates[1] +` 23:59:59` const Orderlist = await productEvaluationRanking({startTime:startTimeS,endTime:endTimeS}) diff --git a/yanshouban/src/views/customer/customerMage/index.vue b/yanshouban/src/views/customer/customerMage/index.vue index 1e28a2e..9396695 100644 --- a/yanshouban/src/views/customer/customerMage/index.vue +++ b/yanshouban/src/views/customer/customerMage/index.vue @@ -333,6 +333,11 @@ export default { const res = await customerMageGetAll(formParams) this.tableData = res.data.list this.total = res.data.total + this.tableData.map(res=>{ + res.phone = this.$decrypt(res.phone) + res.name = this.$decrypt(res.name) + + }) }, // 初始化查询所有标签 async getSelect(name) { diff --git a/yanshouban/src/views/customer/icManagement/index.vue b/yanshouban/src/views/customer/icManagement/index.vue index 49a8796..0095b74 100644 --- a/yanshouban/src/views/customer/icManagement/index.vue +++ b/yanshouban/src/views/customer/icManagement/index.vue @@ -521,6 +521,9 @@ this.secondData.businessEndDate = this.businessStartDate[1] } let newinfo = this.$decryptall(this.secondData,this.miList) + let arr = [newinfo.unifiedSocialCreditCode,newinfo.legalRepresentative,newinfo.address,newinfo.emailAddress,newinfo.contactName,newinfo.contactPhone] + arr = arr.join(',') + newinfo.dataIntegrity = this.$encrypt(arr) await icManEdit(newinfo); this.detbox = false this.getAll(); diff --git a/yanshouban/src/views/customer/rsaManagement/index.vue b/yanshouban/src/views/customer/rsaManagement/index.vue index 90ec65c..d96bd8d 100644 --- a/yanshouban/src/views/customer/rsaManagement/index.vue +++ b/yanshouban/src/views/customer/rsaManagement/index.vue @@ -832,6 +832,9 @@ this.secondData.rentalPeriodEndTime = this.rentalPeriodTime[1] } let newinfo = this.$decryptall(this.secondData,this.miList) + let arr = [newinfo.contactPhone,newinfo.idCardNumber,newinfo.unifiedSocialCreditCode,newinfo.legalRepresentative,newinfo.address,newinfo.emailAddress] + arr = arr.join(',') + newinfo.dataIntegrity = this.$encrypt(arr) const res = await rsaManEdit(newinfo) this.detbox = false; this.getAll(); diff --git a/yanshouban/src/views/online/reconciliationProcessing/index.vue b/yanshouban/src/views/online/reconciliationProcessing/index.vue index db1de9f..816006d 100644 --- a/yanshouban/src/views/online/reconciliationProcessing/index.vue +++ b/yanshouban/src/views/online/reconciliationProcessing/index.vue @@ -211,6 +211,9 @@ export default { res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) // this.tableLoading = false }, diff --git a/yanshouban/src/views/order/orderany/index.vue b/yanshouban/src/views/order/orderany/index.vue index 207e2f5..ff99aab 100644 --- a/yanshouban/src/views/order/orderany/index.vue +++ b/yanshouban/src/views/order/orderany/index.vue @@ -216,6 +216,9 @@ item.receiveName = this.$decrypt(item.receiveName) item.receivePhone = this.$decrypt(item.receivePhone) item.receiveAdress = this.$decrypt(item.receiveAdress) + item.price = this.$decrypt(item.price) + item.customerPhone = this.$decrypt(item.customerPhone) + item.address = this.$decrypt(item.address) }) const Orderlist = await orderStatistics(res.data.list) const tablelist = await orderStatisticsProductInformation(res.data.list) diff --git a/yanshouban/src/views/order/ordersel/index.vue b/yanshouban/src/views/order/ordersel/index.vue index 1609228..9fcb2c7 100644 --- a/yanshouban/src/views/order/ordersel/index.vue +++ b/yanshouban/src/views/order/ordersel/index.vue @@ -205,6 +205,9 @@ export default { item.receiveName = this.$decrypt(item.receiveName) item.receivePhone = this.$decrypt(item.receivePhone) item.receiveAdress = this.$decrypt(item.receiveAdress) + item.price = this.$decrypt(item.price) + item.customerPhone = this.$decrypt(item.customerPhone) + item.address = this.$decrypt(item.address) }) }, diff --git a/yanshouban/src/views/order/pending/index.vue b/yanshouban/src/views/order/pending/index.vue index 26fc634..38935fe 100644 --- a/yanshouban/src/views/order/pending/index.vue +++ b/yanshouban/src/views/order/pending/index.vue @@ -204,6 +204,9 @@ export default { res.receiveName = this.$decrypt(res.receiveName) res.receivePhone = this.$decrypt(res.receivePhone) res.receiveAdress = this.$decrypt(res.receiveAdress) + res.price = this.$decrypt(res.price) + res.customerPhone = this.$decrypt(res.customerPhone) + res.address = this.$decrypt(res.address) }) }, // 导出订单 diff --git a/yanshouban/src/views/rent/audit/index.vue b/yanshouban/src/views/rent/audit/index.vue index 29fba06..328ffd5 100644 --- a/yanshouban/src/views/rent/audit/index.vue +++ b/yanshouban/src/views/rent/audit/index.vue @@ -1774,6 +1774,8 @@ contractNumber: '', //合同对应的ID res.legalRepresentative = this.$decrypt(item.legalRepresentative) res.residence = this.$decrypt(item.residence) res.applicant = this.$decrypt(item.applicant) + res.operatorName = this.$decrypt(item.operatorName) + res.operatingEntity = this.$decrypt(item.operatingEntity) }) }, //编辑 @@ -1882,6 +1884,8 @@ contractNumber: '', //合同对应的ID res.legalRepresentative = this.$decrypt(item.legalRepresentative) res.residence = this.$decrypt(item.residence) res.applicant = this.$decrypt(item.applicant) + res.operatorName = this.$decrypt(item.operatorName) + res.operatingEntity = this.$decrypt(item.operatingEntity) }) }) diff --git a/yanshouban/src/views/salesSta/dataSta.vue b/yanshouban/src/views/salesSta/dataSta.vue index 600c0f0..2e7ecc0 100644 --- a/yanshouban/src/views/salesSta/dataSta.vue +++ b/yanshouban/src/views/salesSta/dataSta.vue @@ -372,6 +372,9 @@ const res = await orderGetAll(this.formInline) item.receiveName = this.$decrypt(item.receiveName) item.receivePhone = this.$decrypt(item.receivePhone) item.receiveAdress = this.$decrypt(item.receiveAdress) + item.price = this.$decrypt(item.price) + item.customerPhone = this.$decrypt(item.customerPhone) + item.address = this.$decrypt(item.address) }) const Orderlist = await calculateGrossProfit(res.data.list) const tablelist = await salesStatistics(res.data.list) diff --git a/yanshouban/src/views/shopRental/manage/index.vue b/yanshouban/src/views/shopRental/manage/index.vue index c47a565..73cb31d 100644 --- a/yanshouban/src/views/shopRental/manage/index.vue +++ b/yanshouban/src/views/shopRental/manage/index.vue @@ -349,8 +349,8 @@ -
{{heForm.contractAmount}}
- +
{{heForm.earnestMoney}}
+ @@ -1368,7 +1368,8 @@ bianList:{ }, biangengPan:false, - +miList:['telephone','commander','leaseAddress','administrativeRegion','operator','tenant' ], +hemiList:['earnestMoney','contractAmount','lessorName','telephone','bankAccount','tenantName','tenantTelephone','tenantBankAccount'] } }, created() { @@ -1393,11 +1394,26 @@ biangengPan:false, this.chengeTatle = val }, async getAll(val) { - console.log(this.pageindex) + const res = await cereLeasingByPage(this.pageindex) this.tableData = res.data.content this.total = res.data.content.length - + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, // 新增确定按钮 @@ -1409,20 +1425,24 @@ biangengPan:false, this.heForm.appendicesContract = JSON.stringify(this.hefuData[0]) } this.heForm.createDate = this.currentTime() - contractAdd(this.heForm).then(res => { + let heinfo = this.$decryptall(this.heForm,this.hemiList) + contractAdd(heinfo).then(res => { this.formInline.contractNumber = res.data.contractNumber this.formInline.createDate = this.currentTime() - cereLeasingAdd(this.formInline).then(res => { + let newinfo = this.$decryptall(this.formInline,this.miList) + cereLeasingAdd(newinfo).then(res => { this.getAll() }) }) } else if (val == 2) { this.heForm.updateDate = '' this.heForm.createDate = this.currentTime() - updateList(this.heForm).then(res=>{ + let heinfo = this.$decryptall(this.heForm,this.hemiList) + updateList(heinfo).then(res=>{ this.formInline.contractNumber = res.data.contractNumber this.formInline.updateDate = '' - cereLeasingEdit(this.formInline).then(item=>{ + let newinfo = this.$decryptall(this.formInline,this.miList) + cereLeasingEdit(newinfo).then(item=>{ }) }) @@ -1616,7 +1636,22 @@ this.ggXin = true const res = await cereLeasingByPage(page) this.tableData = res.data.content this.total = res.data.content.length - + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, //重置按钮 resetting() { diff --git a/yanshouban/src/views/shopRental/renewalMan/index.vue b/yanshouban/src/views/shopRental/renewalMan/index.vue index fb2a60d..3bb4ead 100644 --- a/yanshouban/src/views/shopRental/renewalMan/index.vue +++ b/yanshouban/src/views/shopRental/renewalMan/index.vue @@ -973,6 +973,22 @@ const res = await rentalGetAll(this.pageindex) this.total = res.data.numberOfElements this.tableData = res.data.content + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, // 新增确定按钮 @@ -1073,6 +1089,22 @@ const res = await rentalGetAll(this.formSel) this.total = res.data.numberOfElements this.tableData = res.data.content + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, //重置按钮 resetting(){ diff --git a/yanshouban/src/views/shopRental/rentTermination/index.vue b/yanshouban/src/views/shopRental/rentTermination/index.vue index 71e20c7..55c47b4 100644 --- a/yanshouban/src/views/shopRental/rentTermination/index.vue +++ b/yanshouban/src/views/shopRental/rentTermination/index.vue @@ -795,6 +795,22 @@ const res = await rentalGetAll(this.pageindex) this.total = res.data.numberOfElements this.tableData = res.data.content + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, async dayin(){ let res = await pdfManagementOfFinalAccountsForRentals(this.pageindex) @@ -938,6 +954,22 @@ const res = await rentalGetAll(this.formSel) this.total = res.data.numberOfElements this.tableData = res.data.content + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, //重置按钮 resetting() { diff --git a/yanshouban/src/views/shopRental/rentalMan/index.vue b/yanshouban/src/views/shopRental/rentalMan/index.vue index 15e6902..742c4b4 100644 --- a/yanshouban/src/views/shopRental/rentalMan/index.vue +++ b/yanshouban/src/views/shopRental/rentalMan/index.vue @@ -1115,6 +1115,22 @@ import { const res = await rentalGetAll(this.pageindex) this.total = res.data.numberOfElements this.tableData = res.data.content + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, // 新增确定按钮 @@ -1195,6 +1211,22 @@ import { const res = await rentalGetAll(this.formSel) this.total = res.data.numberOfElements this.tableData = res.data.content + this.tableData.map(res=>{ + res.telephone = this.$decrypt(res.telephone) + res.commander = this.$decrypt(res.commander) + res.leaseAddress = this.$decrypt(res.leaseAddress) + res.administrativeRegion = this.$decrypt(res.administrativeRegion) + res.operator = this.$decrypt(res.operator) + res.tenant = this.$decrypt(res.tenant) + res.cereContractInformation.earnestMoney =this.$decrypt(res.cereContractInformation.earnestMoney) + res.cereContractInformation.contractAmount =this.$decrypt(res.cereContractInformation.contractAmount) + res.cereContractInformation.lessorName =this.$decrypt(res.cereContractInformation.lessorName) + res.cereContractInformation.telephone =this.$decrypt(res.cereContractInformation.telephone) + res.cereContractInformation.bankAccount =this.$decrypt(res.cereContractInformation.bankAccount) + res.cereContractInformation.tenantName =this.$decrypt(res.cereContractInformation.tenantName) + res.cereContractInformation.tenantTelephone =this.$decrypt(res.cereContractInformation.tenantTelephone) + res.cereContractInformation.tenantBankAccount =this.$decrypt(res.cereContractInformation.tenantBankAccount) + }) }, //重置按钮 resetting(){