diff --git a/ceres-uniapp-master/App.vue b/ceres-uniapp-master/App.vue index 2a9a3e0..2bd1d92 100644 --- a/ceres-uniapp-master/App.vue +++ b/ceres-uniapp-master/App.vue @@ -12,7 +12,7 @@ export default { }, onLaunch: function (options) { - + if (options.query.token) { // 将 token 存入本地缓存 uni.setStorageSync('storage_key', options.query); diff --git a/ceres-uniapp-master/config/api.js b/ceres-uniapp-master/config/api.js index 623ac8f..f534869 100644 --- a/ceres-uniapp-master/config/api.js +++ b/ceres-uniapp-master/config/api.js @@ -1,13 +1,24 @@ -// 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.7:9003' +// const DOMAIN_PREFIX = 'http://192.168.2.7:9007' +// const host = `${window.location.protocol}//${window.location.host}` + +// const DOMAIN_PREFIXPING = `${host}/cdwlMall/meserver/admin-server` +// const DOMAIN_PREFIX =`${host}/cdwlMall/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}` +// const host = `${window.location.protocol}//${window.location.host}` // const DOMAIN_PREFIXPING = `${host}/cdwlMall/meserver/admin-server` // const DOMAIN_PREFIX =`${host}/cdwlMall/meserver/api` -const DOMAIN_PREFIXPING = `http://192.168.2.38:9003` -const DOMAIN_PREFIX = 'http://192.168.2.38:9007' +// const DOMAIN_PREFIXPING = `http://192.168.2.38:9003` +// const DOMAIN_PREFIX = 'http://192.168.2.38:9007' + // const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/meserver/admin-server' // const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/meserver/api' @@ -319,6 +330,4 @@ module.exports = { cereCouponKeyUse: WX_API_BASE + '/order/cereCouponKeyUse', //问卷解析token jietoken: WX_API_BASE + '/cereQuestionnaireAnswering/get/token', - //问卷解析token - jietoken: WX_API_BASE + '/cereQuestionnaireAnswering/get/token', } diff --git a/ceres-uniapp-master/main.js b/ceres-uniapp-master/main.js index cdab146..177c696 100644 --- a/ceres-uniapp-master/main.js +++ b/ceres-uniapp-master/main.js @@ -10,13 +10,16 @@ import store from './store' import _ from 'lodash' import {jump,jumpToTabbar,goBack,getJumpParam} from './utils/jumpUtil' - +import {encrypt,decrypt,decryptall} from './utils/jiami.js' Vue.prototype.$store = store Vue.prototype.$lodash = _ Vue.prototype.$jump = jump Vue.prototype.$jumpToTabbar = jumpToTabbar Vue.prototype.$goBack = goBack Vue.prototype.$getJumpParam = getJumpParam +Vue.prototype.$encrypt = encrypt; +Vue.prototype.$decrypt = decrypt; +Vue.prototype.$decryptall = decryptall; Vue.prototype.$hostUrl =`${window.location.protocol}//${window.location.host}/cdwlMall` App.mpType = 'app' diff --git a/ceres-uniapp-master/package.json b/ceres-uniapp-master/package.json index 5bdbffb..cd6528b 100644 --- a/ceres-uniapp-master/package.json +++ b/ceres-uniapp-master/package.json @@ -7,6 +7,7 @@ "jweixin-module": "^1.6.0", "lodash": "^4.17.21", "mini-html-parser2": "^0.3.0", + "sm-crypto": "^0.3.13", "swiper": "^5.4.5", "uview-ui": "^2.0.36", "vue-awesome-swiper": "^4.1.1" diff --git a/ceres-uniapp-master/utils/jiami.js b/ceres-uniapp-master/utils/jiami.js new file mode 100644 index 0000000..659fff3 --- /dev/null +++ b/ceres-uniapp-master/utils/jiami.js @@ -0,0 +1,75 @@ +// 文本加密 +import { sm4 } from 'sm-crypto'; +const DEFAULT_KEY ="cda4442f102f6396eea76902e37ad7cb"; +const DEFAULT_IV = "8bd8a83221742111c7532b7275a7fe9c"; +export const encrypt = (str) => { + if(!str) { + return '' + } + const encryptStr = sm4.encrypt(str, DEFAULT_KEY, { + iv: DEFAULT_IV, + mode: 'cbc', + padding: 'pkcs#7' + }) + return encryptStr +} + +// 文本解密 +export const decrypt = (str) => { + if(!str) { + return '' + } +// if(str.indexOf('ENC(') === -1) { +// return str +// } +// const str_ = str.replace('ENC(', '').replace(')', '') + try { + const decryptStr = sm4.decrypt(str, DEFAULT_KEY, { + iv: DEFAULT_IV, + mode: 'cbc', + padding: 'pkcs#7' + }) + return decryptStr + } catch (error) { + return '解密失败!' + } +} + +export const decryptall = (obj,isjmlist) => { + console.error(isjmlist) + console.error(obj) + let list = [] + let objnew = {} + for (let key in obj) { + let item = { + typeis:'2',//是否加密 1加密 2不加密 + keyname:key,//变量名 + value:obj[key],//值 + } + if(isjmlist.length> 0) { + + // let found = isjmlist.find(function(element) { + // return key == element; + // }); + console.log(isjmlist.indexOf(key) != -1) + if(isjmlist.indexOf(key) != -1) { + item.typeis = '1' + } + } 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) + element.value = encrypt(element.value) + } + objnew[element.keyname] = element.value + }); + console.log(objnew); + return objnew +} \ No newline at end of file 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/utils/jiami.js b/yanshouban/src/utils/jiami.js index 79ed232..65870fe 100644 --- a/yanshouban/src/utils/jiami.js +++ b/yanshouban/src/utils/jiami.js @@ -36,8 +36,8 @@ export const decrypt = (str) => { } // 批量加密 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,13 +70,13 @@ export const decryptall = (obj,isjmlist) => { } objnew[element.keyname] = element.value }); - console.log(objnew); + return objnew } // 批量解密 export const encryptall = (list,isjmlist) => { - console.error(isjmlist) - console.error(list) + + let newlist = list.map(element => { let c1 = Object.keys(element) c1.forEach(key => { @@ -91,6 +91,6 @@ export const encryptall = (list,isjmlist) => { }); return element }); - console.error(newlist) + return newlist -} \ No newline at end of file +} 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 700f4d1..c0b987a 100644 --- a/yanshouban/src/views/business/businessList/index.vue +++ b/yanshouban/src/views/business/businessList/index.vue @@ -801,7 +801,8 @@ export default { pageSize: 10, }, business:[], - plan_Time:[] + plan_Time:[], + miList:['shopPhone','shopPassword','idCardNum','emailAddress','shopAdress','legalRepresentative','chargePersonPhone','emailAddress'] } }, // 监听属性 类似于data概念 @@ -859,6 +860,7 @@ export default { console.log(tab, event) }, onSubmit () { + this.formInline.chargePersonName = this.$encrypt(this.formInline.chargePersonName) this.getAll(this.formInline) }, resetting(){ @@ -870,6 +872,7 @@ export default { page: '1', // 当前页 pageSize: '10' // 每页记录数 } + this.getAll(this.formInline) }, // 新建商家 @@ -910,9 +913,9 @@ export default { }, // 新建商家确定 addCheck (ruleForm) { - let newinfo = this.$decryptall(this.ruleForm,['shopPhone','shopPassword']) - console.error(newinfo) - return + // let newinfo = this.$decryptall(this.ruleForm,['shopPhone','shopPassword']) + // console.error(newinfo) + // return this.$refs[ruleForm].validate(valid => { if (valid) { @@ -949,16 +952,9 @@ export default { if (!this.userState) { - // this.ruleForm.shopPhone = this.$encrypt(this.ruleForm.shopPhone) - // this.ruleForm.shopPassword = this.$encrypt(this.ruleForm.shopPassword) - // this.ruleForm.idCardNum = this.$encrypt(this.ruleForm.idCardNum) - // this.ruleForm.emailAddress = this.$encrypt(this.ruleForm.emailAddress) - // this.ruleForm.shopAdress = this.$encrypt(this.ruleForm.shopAdress) - // this.ruleForm.legalRepresentative = this.$encrypt(this.ruleForm.legalRepresentative) - // this.ruleForm.chargePersonPhone = this.$encrypt(this.ruleForm.chargePersonPhone) - - businessListSave(this.ruleForm).then(res => { + let newinfo = this.$decryptall(this.ruleForm,this.miList) + businessListSave(newinfo).then(res => { if (res.code === '') { this.$message({ message: '新增成功', @@ -970,7 +966,11 @@ export default { this.$refs.ruleForm.clearValidate() }) } else { - businessListUpdate(this.ruleForm).then(res => { + 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 === '') { this.$message({ @@ -1006,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) + } }, // 编辑 @@ -1022,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 bf0cba3..0095b74 100644 --- a/yanshouban/src/views/customer/icManagement/index.vue +++ b/yanshouban/src/views/customer/icManagement/index.vue @@ -458,11 +458,9 @@ message: '请选择营业执照', trigger: 'change' }, ], - - - - } - }; + }, + miList:['unifiedSocialCreditCode','legalRepresentative','address','emailAddress','contactName','contactPhone'] + } }, created() { @@ -522,7 +520,11 @@ this.secondData.businessStartDate = this.businessStartDate[0] this.secondData.businessEndDate = this.businessStartDate[1] } - await icManEdit(this.secondData); + 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(); }, @@ -707,8 +709,8 @@ return } // this.ruleForm.yytime =[] - - icManAdd(this.ruleForm).then(res => { +let newinfo = this.$decryptall(this.ruleForm,this.miList) + icManAdd(newinfo).then(res => { this.$message({ message: '保存成功', type: 'success' diff --git a/yanshouban/src/views/customer/rsaManagement/index.vue b/yanshouban/src/views/customer/rsaManagement/index.vue index a697dcf..d96bd8d 100644 --- a/yanshouban/src/views/customer/rsaManagement/index.vue +++ b/yanshouban/src/views/customer/rsaManagement/index.vue @@ -762,7 +762,8 @@ }, pageNumber:1, pageSize:10, - } + }, + miList:['contactPhone','idCardNumber','unifiedSocialCreditCode','legalRepresentative','address','emailAddress'] } }, @@ -830,8 +831,11 @@ this.secondData.rentalPeriodStartTime = this.rentalPeriodTime[0] this.secondData.rentalPeriodEndTime = this.rentalPeriodTime[1] } - - const res = await rsaManEdit(this.secondData) +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(); }, @@ -941,7 +945,8 @@ async getshen(item){ if(this.ziyuanData.length !=0){ this.ruleForm.intendedResources = this.ziyuanData[0].id } - await rsaManAdd(this.ruleForm) + let newinfo = this.$decryptall(this.ruleForm,this.miList) + await rsaManAdd(newinfo) this.idCardValidStart = [] this.businessStartTime = [] this.rentalPeriodTime = [] 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 148d7a5..328ffd5 100644 --- a/yanshouban/src/views/rent/audit/index.vue +++ b/yanshouban/src/views/rent/audit/index.vue @@ -1719,7 +1719,8 @@ contractNumber: '', //合同对应的ID ziyuanAll:[], ziyuanData:[], multipleSelection:[], - selData:[] + selData:[], + miList:['idNumber','unifiedSocialCreditCode','legalRepresentative','residence','emailAddress'] } }, @@ -1773,15 +1774,10 @@ 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) }) }, - //编辑确认 - async msgeditS(){ - this.secondData.id = this.msgid - const res = await msgedit(this.secondData) - this.detbox = false - this.getAll() - }, //编辑 bianji() { if(this.edit){ @@ -1888,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/setup/user/index.vue b/yanshouban/src/views/setup/user/index.vue index 9e918a7..5e043c4 100644 --- a/yanshouban/src/views/setup/user/index.vue +++ b/yanshouban/src/views/setup/user/index.vue @@ -187,6 +187,7 @@ export default { privacyTime: 0, phoneShow: true, //显示脱敏手机号 emailShow: true, //显示脱敏邮箱 + miList:['name','phone','password','email'] } filter() }, @@ -285,7 +286,8 @@ export default { return } if (this.userState) { - userAdd(this.addForm).then(res => { + let newinfo = this.$decryptall(this.addForm,this.miList) + userAdd(newinfo).then(res => { console.log(res) if (res.code === '') { this.$message({ @@ -297,7 +299,11 @@ export default { this.addFormDialog = false }) } else { - userUpdate(this.addForm).then(res => { + let newinfo = this.$decryptall(this.addForm,this.miList) + let arr = [newinfo.name,newinfo.phone,newinfo.password,newinfo.email] + arr = arr.join(',') + newinfo.dataIntegrity = this.$encrypt(arr) + userUpdate(newinfo).then(res => { console.log(res) if (res.code === '') { this.$message({ @@ -322,7 +328,6 @@ export default { this.showPhone = false this.phoneShow = true this.emailShow = true - console.log(row) userGetById({ platformUserId: row.platformUserId }).then(res => { this.addForm = res.data this.addForm.roleIds = res.data.ids 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 @@ 保证金 -