diff --git a/admin-web-master/src/api/inr.js b/admin-web-master/src/api/inr.js index 03cca2c..ddfd437 100644 --- a/admin-web-master/src/api/inr.js +++ b/admin-web-master/src/api/inr.js @@ -28,3 +28,12 @@ export function tanDel(data) { data }) } +// 谈判列表导出 +export function excelQueryByPage(data) { + return request({ + url: '/cereNegotiationDetails/excelQueryByPage', + method: 'post', + data, + responseType:blob + }) +} diff --git a/admin-web-master/src/views/ipm/inr/index.vue b/admin-web-master/src/views/ipm/inr/index.vue index 4cff704..3d85b9f 100644 --- a/admin-web-master/src/views/ipm/inr/index.vue +++ b/admin-web-master/src/views/ipm/inr/index.vue @@ -626,24 +626,10 @@ const res = await tanGetAll(this.formSel) await tanDel({id:item.id}) this.getAll() }, - gitOut(){ - let add =[] - this.tableData.map(item=>{ - - let obj ={ - intentCustomerName:'', - customerLevel:'', - contactPhone:'', - nextFollowUpStartTime:'' - } - obj.intentCustomerName = item.cereFollowDetails.cereCustomerInfo.intentCustomerName - obj.contactPhone = item.cereFollowDetails.cereCustomerInfo.contactPhone - obj.customerLevel = item.cereFollowDetails.cereCustomerInfo.customerLevel - obj.nextFollowUpStartTime = item.nextNegotiationStartTime - add.push(obj) - - }) - }, + // async gitOut(){ + // await excelQueryByPage(this.pageindex) + + // }, } } diff --git a/wenjuan/.env.development b/wenjuan/.env.development index 68dc6bb..5986f04 100644 --- a/wenjuan/.env.development +++ b/wenjuan/.env.development @@ -3,12 +3,12 @@ ENV = 'development' # base api VUE_APP_BASE_API = '/dev-api' -# VUE_APP_DOMAIN_PREFIX_1='http://192.168.2.133:9003' -# VUE_APP_DOMAIN_PREFIX_2='http://192.168.2.133:9007' + VUE_APP_DOMAIN_PREFIX_1='http://192.168.2.7:9003' + VUE_APP_DOMAIN_PREFIX_2='http://192.168.2.7:9007' # VUE_APP_DOMAIN_PREFIX_1='https://h5.028wlkj.com/cdwlMall/meserver/admin-server/' # VUE_APP_DOMAIN_PREFIX_2='https://h5.028wlkj.com/cdwlMall/meserver/api' - VUE_APP_DOMAIN_PREFIX_1='https://jy.scjysm.asia:18086/meserver/admin-server/' - VUE_APP_DOMAIN_PREFIX_2='https://jy.scjysm.asia:18086/meserver/api' +# VUE_APP_DOMAIN_PREFIX_1='http://jy.scjysm.asia:18086/meserver/admin-server/' +# VUE_APP_DOMAIN_PREFIX_2='https://jy.scjysm.asia:18086/meserver/api' # 开发环境 # 演示环境 # VUE_APP_DOMAIN_PREFIX = '/api' diff --git a/yanshouban/src/api/activityBz.js b/yanshouban/src/api/activityBz.js index c25c87c..de78c29 100644 --- a/yanshouban/src/api/activityBz.js +++ b/yanshouban/src/api/activityBz.js @@ -205,3 +205,35 @@ export function copy(data) { data }) } + + +// 审核流程导出 +export function excelQueryByPage(data) { + return request({ + url: '/cereEventDetails/excelQueryByPage', + method: 'post', + data, + responseType: 'blob' + }) +} + +// 导入 +export function excelAdd(data) { + return request({ + url: '/cereEventDetails/excelAdd', + method: 'post', + data, + headers: { + 'Content-type': 'multipart/form-data' + } + }) +} + +// 效果评估 +export function effectEvaluation(data) { + return request({ + url: `/cereEventDetails/effectEvaluation/${data.id}`, + method: 'get', + data + }) +} diff --git a/yanshouban/src/api/business.js b/yanshouban/src/api/business.js index 7a95d7e..da1f9e4 100644 --- a/yanshouban/src/api/business.js +++ b/yanshouban/src/api/business.js @@ -145,3 +145,16 @@ export function wordDelete(data) { data }) } + + +// 导入商家 +export function excelAdd(data) { + return request({ + url: '/cereBasicInformationShop/excelAdd', + method: 'post', + data, + headers: { + 'Content-type': 'multipart/form-data' + } + }) +} diff --git a/yanshouban/src/api/fangli.js b/yanshouban/src/api/fangli.js index b610121..e56303f 100644 --- a/yanshouban/src/api/fangli.js +++ b/yanshouban/src/api/fangli.js @@ -34,3 +34,15 @@ export function fangDel(data) { data }) } + +// 导入管理模板 +export const excelAdd = (data = {}) => { + return request({ + url: '/cereBusinessPlan/excelAdd', + method: 'post', + data, + headers: { + 'Content-type': 'multipart/form-data' + } + }) +} diff --git a/yanshouban/src/api/inr.js b/yanshouban/src/api/inr.js index 03cca2c..efa6965 100644 --- a/yanshouban/src/api/inr.js +++ b/yanshouban/src/api/inr.js @@ -28,3 +28,12 @@ export function tanDel(data) { data }) } +// 谈判列表导出 +export function excelQueryByPage(data) { + return request({ + url: '/cereNegotiationDetails/excelQueryByPage', + method: 'post', + data, + responseType: 'blob' + }) +} diff --git a/yanshouban/src/api/manage.js b/yanshouban/src/api/manage.js index eb8929c..ccad9ae 100644 --- a/yanshouban/src/api/manage.js +++ b/yanshouban/src/api/manage.js @@ -85,3 +85,36 @@ export function daoqi(data) { data }) } +// 退租决算打印 + +export function pdfManagementOfFinalAccountsForRentals(data) { + return request({ + url: '/cereLeasingInformation/pdfManagementOfFinalAccountsForRentals', + method: 'post', + data, + responseType: 'blob' + }) +} +// 续租管理打印 + +export function pdfLeaseRenewalManagement(data) { + return request({ + url: '/cereLeasingInformation/pdfLeaseRenewalManagement', + method: 'post', + data, + responseType: 'blob' + }) +} + +// 合同导入 + +export function excelAdd(data) { + return request({ + url: '/cereContractInformation/excelAdd', + method: 'post', + data, + headers: { + 'Content-type': 'multipart/form-data' + } + }) +} diff --git a/yanshouban/src/api/planningBz.js b/yanshouban/src/api/planningBz.js index dfa0d98..7cb3901 100644 --- a/yanshouban/src/api/planningBz.js +++ b/yanshouban/src/api/planningBz.js @@ -44,3 +44,15 @@ export function queryById(data) { }) } +// 导入规划模板 +export const excelAdd = (data = {}) => { + return request({ + url: '/cereInvestmentPlanningManagement/excelAdd', + method: 'post', + data, + headers: { + 'Content-type': 'multipart/form-data' + } + }) +} + diff --git a/yanshouban/src/api/rentalMan.js b/yanshouban/src/api/rentalMan.js index 92585f6..b64a963 100644 --- a/yanshouban/src/api/rentalMan.js +++ b/yanshouban/src/api/rentalMan.js @@ -51,3 +51,13 @@ export function excelLeaseRenewalManagement(data) { responseType: 'blob' }) } + +// PDF打印 +export function pdfRentOutQueryByPage(data) { + return request({ + url: '/cereLeasingInformation/pdfRentOutQueryByPage', + method: 'post', + data, + responseType: 'blob' + }) +} diff --git a/yanshouban/src/utils/jiami.js b/yanshouban/src/utils/jiami.js index b914a7e..af9895c 100644 --- a/yanshouban/src/utils/jiami.js +++ b/yanshouban/src/utils/jiami.js @@ -1,7 +1,7 @@ // 文本加密 import { sm4 } from 'sm-crypto'; -const DEFAULT_KEY ="cda4442f102f6396cca76902e37ad7cb"; -const DEFAULT_IV = "8bd8a83221742166c7532b7275a7fe9c"; +const DEFAULT_KEY ="cda4442f102f6396eea76902e37ad7cb"; +const DEFAULT_IV = "8bd8a83221742111c7532b7275a7fe9c"; export const encrypt = (str) => {     if(!str) {         return '' @@ -11,7 +11,7 @@ export const encrypt = (str) => {         mode: 'cbc',         padding: 'pkcs#7'         }) -    return 'ENC(' + encryptStr + ')' +    return encryptStr } // 文本解密 @@ -19,12 +19,12 @@ export const decrypt = (str) => {     if(!str) {         return ''     } -    if(str.indexOf('ENC(') === -1) { -        return str -    } -    const str_ = str.replace('ENC(', '').replace(')', '') +//     if(str.indexOf('ENC(') === -1) { +//         return str +//     } +//     const str_ = str.replace('ENC(', '').replace(')', '')     try {         -        const decryptStr = sm4.decrypt(str_, DEFAULT_KEY, { +        const decryptStr = sm4.decrypt(str, DEFAULT_KEY, {             iv: DEFAULT_IV,             mode: 'cbc',             padding: 'pkcs#7' diff --git a/yanshouban/src/utils/request.js b/yanshouban/src/utils/request.js index ccc88a8..45810fa 100644 --- a/yanshouban/src/utils/request.js +++ b/yanshouban/src/utils/request.js @@ -11,9 +11,9 @@ import { } from '@/utils/auth' const host = window.location.host; let PREFIX; -if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61.123:9003') { +if (host == '172.16.61.48' || host == '172.16.61.49:5173' || host =='172.16.61.123:9003') { // PREFIX = 'https://jdc.scjysm.asia:1443/meserver/admin-server'; - PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server'; + PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; // PREFIX = 'http://172.16.61.48/meserver/admin-server'; }else if( host == 'localhost:9528' || host == '8.130.38.56:8027' || host == 'localhost:9529'){ @@ -21,14 +21,14 @@ if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61. // 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.8.106:9003'; + PREFIX = 'http://192.168.2.7:9003'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/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' }else{ - PREFIX = '/admin-server'; + PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; } diff --git a/yanshouban/src/views/active/couponlist/component/shopList.vue b/yanshouban/src/views/active/couponlist/component/shopList.vue index 15cbb93..0af7772 100644 --- a/yanshouban/src/views/active/couponlist/component/shopList.vue +++ b/yanshouban/src/views/active/couponlist/component/shopList.vue @@ -116,7 +116,6 @@ export default { search () { }, - // businessListGetAll // 初始化查询所有数据 async getAll(formInline) { const res = await businessListGetAll(formInline) @@ -124,7 +123,7 @@ export default { this.tableData = res.data.list this.tableData.map(res=>{ res.shopPhone = this.$decrypt(res.shopPhone) - res.shopPassword = this.$decrypt(res.shopPassword) + // res.shopPassword = this.$decrypt(res.shopPassword) res.idCardNum = this.$decrypt(res.idCardNum) res.emailAddress = this.$decrypt(res.emailAddress) res.shopAdress = this.$decrypt(res.shopAdress) diff --git a/yanshouban/src/views/activity/activityBian.vue b/yanshouban/src/views/activity/activityBian.vue index 0445476..ee031a7 100644 --- a/yanshouban/src/views/activity/activityBian.vue +++ b/yanshouban/src/views/activity/activityBian.vue @@ -69,6 +69,16 @@ + + + + + + + + + +
diff --git a/yanshouban/src/views/activity/activityBz.vue b/yanshouban/src/views/activity/activityBz.vue index 1369e10..f601bca 100644 --- a/yanshouban/src/views/activity/activityBz.vue +++ b/yanshouban/src/views/activity/activityBz.vue @@ -88,6 +88,16 @@ + + + + + + + + + + @@ -297,7 +307,9 @@
取消 - 确定 + 暂存 + + 确定
@@ -393,6 +405,7 @@ eventTheme: '', //活动主题 sponsor: '', //活动主办方 participants: '', //活动参与方 + rangeSetting:'', mainPurpose: '', //活动主要目的 coverPoster: '', //封面海报 internalLaborCostEstimation: '', //内部人工成本预估 @@ -558,7 +571,7 @@ }, //保存 - onSubmit() { + onSubmit(val) { // pdf.save('output.pdf') let that = this let FlieName = this.ruleForm.planName @@ -614,6 +627,7 @@ // } this.$refs.jibenFrom.validate((valid) => { if (valid) { + this.ruleForm.isDraft = val add(this.ruleForm).then(res => { this.$message({ message: '保存成功', @@ -735,6 +749,7 @@ eventTheme: '', //活动主题 sponsor: '', //活动主办方 participants: '', //活动参与方 + rangeSetting:'', mainPurpose: '', //活动主要目的 coverPoster: '', //封面海报 internalLaborCostEstimation: '', //内部人工成本预估 diff --git a/yanshouban/src/views/activity/activitySp.vue b/yanshouban/src/views/activity/activitySp.vue index 5ae93c9..2a9852e 100644 --- a/yanshouban/src/views/activity/activitySp.vue +++ b/yanshouban/src/views/activity/activitySp.vue @@ -57,7 +57,7 @@ {{scope.row.state == ''?'待提交':scope.row.state == '1'?'待审批':scope.row.state == '2'?'部门领导审批':scope.row.state == '3'?'公司领导审批':scope.row.state == '4'?'其他审批':scope.row.state == '5'?'审核通过':'已驳回'}} - + @@ -664,6 +664,7 @@ pageNumber: 1, pageSize: 10, dataOwnership: '1', + isDraft:0 }, multipleSelection: [], options: [{ diff --git a/yanshouban/src/views/activity/index.vue b/yanshouban/src/views/activity/index.vue index e6443ce..d8fb7b5 100644 --- a/yanshouban/src/views/activity/index.vue +++ b/yanshouban/src/views/activity/index.vue @@ -22,14 +22,24 @@
-
+
新增 删除 效果对比 - 导入 + + 导入 + 草稿箱 + 审核流程导出
@@ -54,7 +64,7 @@
{{ node.label }} - +
@@ -84,7 +94,7 @@ {{scope.row.state == ''?'待提交':scope.row.state == '1'?'待审批':scope.row.state == '2'?'部门领导审批':scope.row.state == '3'?'公司领导审批':scope.row.state == '4'?'其他审批':scope.row.state == '5'?'审核通过':'已驳回'}} - + @@ -95,7 +105,7 @@
执行情况
上传到OA
-
效果评估
+
效果评估
复制
@@ -124,7 +134,7 @@ -
+
@@ -277,77 +287,6 @@
-
@@ -548,15 +487,14 @@ - + -
- 上传附件 -
+ :show-file-list="true" v-if="zhixingBian"> + +点击上传
+
{{zhixingList.feedbackContent}}
@@ -573,6 +511,9 @@
+
+ 下载 +
@@ -793,37 +734,37 @@
吸引游客流量
-
4289
-
+45%
+
{{fenxiData.expectedAttractTraffic}}
+
{{fenxiData.expectedAttractTrafficAnalyse}}%
参与人数
-
4289
-
+45%
+
{{fenxiData.expectedParticipation}}
+
{{fenxiData.expectedParticipationAnalyse}}%
直接收益
-
4289
-
+45%
+
{{fenxiData.expectedDirectBenefits}}
+
{{fenxiData.expectedDirectBenefitsAnalysis}}%
间接收益
-
4289
-
+45%
+
{{fenxiData.expectedIndirectBenefits}}
+
{{fenxiData.expectedIndirectBenefitsAnalysis}}%
投入生产比
-
4289
-
+45%
+
{{fenxiData.incomeAnalysis}}%
+
{{fenxiData.incomeAnalysis}}%
-
效果分析
-
+ +
@@ -1111,9 +1052,8 @@ @@ -1150,12 +1090,17 @@ cereAdd, cereEdit, cereDel, - copy + copy, + excelQueryByPage, + excelAdd, + effectEvaluation } from '../../api/activityBz' import addAct from "./activityBz" import actbians from "./activityBian" import * as echarts from 'echarts' import Vue from 'vue' + import html2canvas from 'html2canvas' + import jsPDF from 'jspdf' import { uploadUrl } from '@/utils/request' @@ -1167,6 +1112,8 @@ data() { return { uploadFileUrl: uploadUrl, // 请求地址 + daoData:[], + fenxiData:{}, fileData:[], addAct: false, //新增页 actbianMsg: { @@ -1232,9 +1179,11 @@ text: '活动主要目的', eventTheme: '' }, { - id: '5', - name: '状态', - eventTheme: '待审核' + id: 0, + name: '范围设置', + planName: '', + text: '状态', + eventTheme: '' }], internalLaborCostEstimation: '', externalLaborCostEstimation: '', @@ -1309,11 +1258,13 @@ expectedDirectBenefits: '', //直接收益 expectedIndirectBenefits: '', //间接收益 createDate: '', //创建时间 + feedbackContent:'' }, //执行效果列表 pageindex: { pageNumber: 1, pageSize: 10, - dataOwnership: '1' + dataOwnership: '1', + isDraft:0 }, multipleSelection: [], options: [], @@ -1416,7 +1367,8 @@ pageNumber: 1, pageSize: 10, dataOwnership: '1', - classificationCode:data.id + classificationCode:data.id, + isDraft:0 } const res = await queryByPage(pageindex) this.tableData = res.data.content @@ -1426,7 +1378,8 @@ this.pageindex={ pageNumber: 1, pageSize: 10, - dataOwnership: '1' + dataOwnership: '1', + isDraft:0 } const res = await queryByPage(this.pageindex) this.tableData = res.data.content @@ -1476,6 +1429,7 @@ dataOwnership: '1', pageNumber: 1, pageSize: 10, + auditTime:0 }) this.tableData = res.data.content } else if (this.planName == '' && this.eventTheme != '') { @@ -1484,6 +1438,7 @@ dataOwnership: '1', pageNumber: 1, pageSize: 10, + auditTime:0 }) this.tableData = res.data.content } else { @@ -1493,6 +1448,7 @@ dataOwnership: '1', pageNumber: 1, pageSize: 10, + auditTime:0 }) this.tableData = res.data.content } @@ -1500,6 +1456,7 @@ }, //详情点击 handleEditForm(item) { + this.fileData = [] this.zhixingList = { planTime:[], planName: '', //活动名称 @@ -1521,6 +1478,7 @@ expectedDirectBenefits: '', //直接收益 expectedIndirectBenefits: '', //间接收益 createDate: '', //创建时间 + feedbackContent:'' } //执行效果列表 actPage({ detailsId: item.id, @@ -1585,8 +1543,8 @@ that.tableData1[2].planName = res.data.content[0].sponsor that.tableData1[3].eventTheme = res.data.content[0].participants that.tableData1[3].planName = res.data.content[0].mainPurpose - - that.tableData1[4].eventTheme = this.getStatus(res.data.content[0].state) + that.tableData1[4].planName = this.getStatus(res.data.content[0].state) + that.tableData1[4].eventTheme = res.data.content[0].rangeSetting //活动成本信息 that.internalLaborCostEstimation = res.data.content[0].internalLaborCostEstimation that.externalLaborCostEstimation = res.data.content[0].externalLaborCostEstimation @@ -1661,6 +1619,9 @@ }, //执行效果保存 async bianji() { + if(this.fileData.length !=0){ + this.zhixingList.feedbackContent = this.fileData[0].url + } if (this.zhiXing) { this.zhixingList.eventStartTime = this.zhixingList.planTime[0] this.zhixingList.eventEndTime = this.zhixingList.planTime[1] @@ -1887,6 +1848,9 @@ }, xiaoguo(item) { + effectEvaluation({id:item.id}).then(res=>{ + this.fenxiData = res.data + }) this.xiaoguoBox = true this.$nextTick(() => { this.shopLiu(this.$refs.shopL); @@ -2115,22 +2079,32 @@ }, handleUploadSuccess(response, file, fileList) { - console.log(response, file, fileList) - // this.fileData.push(file) + const fileMsg = { + name:file.name, + url: file.response.data.url, + } + // 将文件地址存储在 uploadedFiles 数组中 + this.fileData.push(fileMsg); }, handleRemove(){ - - }, - daoru(){ - + this.fileData = [] }, + daoru(response, file, fileList){ + this.daoData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.daoData[0]) + excelAdd(formDate).then(res => { + this.getAll() + }) + }, caogao(){ let pageindex = { pageNumber: 1, pageSize: 10, - dataOwnership: '1' + dataOwnership: '1', + isDraft:1 } queryByPage(pageindex).then(res=>{ this.caoList = res.data.content @@ -2138,7 +2112,7 @@ this.caogaoshow =true }, - shiyong(val,item){ + shiyong(item){ const h = this.$createElement; this.$msgbox({ @@ -2153,14 +2127,14 @@ customClass: 'oe-dialog-btn', beforeClose: (action, instance, done) => { if (action === 'confirm') { - // contentEdit({ - // id: item.id, - // draftStatus:1 - // }).then(res => { - // this.getAll() - // this.getcaogao() - // done(); - // }) + xiangedit({ + id:item.id, + isDraft:0 + }).then(res => { + this.getAll() + this.caogao() + done(); + }) } else { done(); } @@ -2169,6 +2143,56 @@ }, + async daochu(){ + let res = await excelQueryByPage(this.pageindex) + if(!res){ + return + } + const blob = new Blob([res], { type: 'application/vnd.ms-excel' }) + const fileName = '审核流程.xls' + if ('download' in document.createElement('a')) { + // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { + // IE10+下载 + navigator.msSaveBlob(blob, fileName) + } + this.$message({ + message: '导出成功', + type: 'success' + }) + + + }, + // 下载 + async downloadPdf() { + const content = this.$refs.actXiang; + + // 使用 html2canvas 将 div 渲染为画布 + const canvas = await html2canvas(content); + + // 获取画布的图像数据 + const imgData = canvas.toDataURL('image/png'); + + // 创建一个新的 PDF 文档 + const pdf = new jsPDF('p', 'mm', 'a4'); + + // 添加图像到 PDF,第二个参数是图像格式,第三个参数是缩放比例 + const imgWidth = 190; // 图像的宽度(mm) + const imgHeight = (canvas.height * imgWidth) / canvas.width; // 保持图像的宽高比 + + pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); // 10, 10 是图像在 PDF 中的位置(mm) + + // 保存 PDF 文件 + pdf.save('活动方案.pdf'); + }, } } diff --git a/yanshouban/src/views/ads/fangli/index.vue b/yanshouban/src/views/ads/fangli/index.vue index 299ebed..1d2f457 100644 --- a/yanshouban/src/views/ads/fangli/index.vue +++ b/yanshouban/src/views/ads/fangli/index.vue @@ -38,17 +38,26 @@
-
+
新增 - + >导入 -->
审核流程配置
-
+
启用
-
+
禁用
@@ -199,22 +208,22 @@
-
- 审核流程配置
+ - +
- 确定 - 取消 + 取消
@@ -247,8 +256,8 @@ import { fangAdd, fangEdit, fangDel, + excelAdd }from '../../../api/fangli' - import upimg from "@/components/ImageUpload/index" import addxin from "./addform" import xiang from "./bianform" @@ -256,6 +265,7 @@ export default { components: {upimg,addxin,xiang}, data() { return { + fileData:[], detbox: false, // 详情 edit: true, // 编辑 formInline: { @@ -550,6 +560,14 @@ export default { this.peiShow = true this.peiId = item.id }, + daoru(response, file, fileList){ + this.fileData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.fileData[0]) + excelAdd(formDate).then(res => { + this.getAll() + }) + }, } } diff --git a/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue b/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue index a4d9c68..2e66483 100644 --- a/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue +++ b/yanshouban/src/views/advertisement/advertisingReview/advertisingReview.vue @@ -943,7 +943,15 @@ this.pageindex.advertisingSpaceType ='实体广告位' this.tableData = res.data.content this.total = res.data.content.length this.xxNum = res.data.content.length - + this.tableData.map(res=>{ + res.lesseeName = this.$decrypt(res.lesseeName) + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) const stList = await AdvertiserInfoGetAll(pageindex) this.stNum = stList.data.content.length @@ -957,7 +965,15 @@ this.pageindex.advertisingSpaceType ='实体广告位' this.tableData = res.data.content this.total = res.data.content.length this.stNum = res.data.content.length - + this.tableData.map(res=>{ + res.lesseeName = this.$decrypt(res.lesseeName) + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) const stList = await AdvertiserInfoGetAll(pageindex) this.xxNum = stList.data.content.length } @@ -1008,6 +1024,15 @@ this.pageindex.advertisingSpaceType ='实体广告位' this.tableData = res.data.content this.total = res.data.content.length this.xxNum = res.data.content.length + this.tableData.map(res=>{ + res.lesseeName = this.$decrypt(res.lesseeName) + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) let pageindex={ pageNumber: 1, pageSize: 10, @@ -1023,6 +1048,15 @@ this.pageindex.advertisingSpaceType ='实体广告位' this.tableData = res.data.content this.total = res.data.content.length this.stNum = res.data.content.length + this.tableData.map(res=>{ + res.lesseeName = this.$decrypt(res.lesseeName) + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) let pageindex={ pageNumber: 1, pageSize: 10, diff --git a/yanshouban/src/views/advertisement/index.vue b/yanshouban/src/views/advertisement/index.vue index 3a0150a..47232c4 100644 --- a/yanshouban/src/views/advertisement/index.vue +++ b/yanshouban/src/views/advertisement/index.vue @@ -99,6 +99,9 @@
下架
-->
投放
下架
+
+ 审核流程配置 +
更改状态
删除
@@ -753,8 +756,30 @@
+ +
+
审核流程配置
+ + + + + + +
+ 确定 + 取消 + +
+ +
+
+ @@ -864,7 +889,12 @@ xsNum:0, stNum:0, hetongList:{}, - auditStatusNum:'' + auditStatusNum:'', + peiForm:{ + auditTime:'' + }, + peiShow:false, + peiId:'' } }, created() { @@ -1163,7 +1193,25 @@ await updateList({id:this.secondData.id,auditStatus:'5'}) this.steatShow = false this.getAll() + }, + async peiCheck(){ + if(this.peiForm.auditTime ==''){ + this.$message({ + message: '请填写审核提醒时间', + }) + return; } + await fangEdit({id:this.peiId,auditTime:this.peiForm.auditTime}) + this.peiShow = false + this.getAll() + }, + peizhi(item){ + this.peiForm = { + auditTime:'' + } + this.peiShow = true + this.peiId = item.id + }, } } diff --git a/yanshouban/src/views/atmosphere/atmosphereBian.vue b/yanshouban/src/views/atmosphere/atmosphereBian.vue index 1b203c5..ce2fcd1 100644 --- a/yanshouban/src/views/atmosphere/atmosphereBian.vue +++ b/yanshouban/src/views/atmosphere/atmosphereBian.vue @@ -66,6 +66,17 @@ + + + + + + + + + + +
diff --git a/yanshouban/src/views/atmosphere/atmosphereBz.vue b/yanshouban/src/views/atmosphere/atmosphereBz.vue index 8060066..5da25e5 100644 --- a/yanshouban/src/views/atmosphere/atmosphereBz.vue +++ b/yanshouban/src/views/atmosphere/atmosphereBz.vue @@ -91,7 +91,16 @@ - + + + + + + + + + + @@ -297,12 +306,14 @@
- 保存 - - - 取消 + 取消 + + 暂存 + + 保存 + +
@@ -393,6 +404,7 @@ uploadFileUrl: uploadUrl, // 请求地址 eventTheme:'',//活动主题 sponsor:'',//活动主办方 participants:'',//活动参与方 + rangeSetting:'', mainPurpose:'',//活动主要目的 coverPoster:'',//封面海报 internalLaborCostEstimation:'',//内部人工成本预估 @@ -504,7 +516,7 @@ uploadFileUrl: uploadUrl, // 请求地址 // } }, //保存 - onSubmit(){ + onSubmit(val){ this.updateCurrentTime(); let that = this let FlieName = this.ruleForm.planName @@ -559,6 +571,7 @@ uploadFileUrl: uploadUrl, // 请求地址 // } this.$refs.jibenFrom.validate((valid) => { if (valid) { + this.ruleForm.isDraft = val add(this.ruleForm).then(res=>{ this.$message({ message: '保存成功', @@ -681,6 +694,7 @@ this.tuxiangData = { eventTheme: '', //活动主题 sponsor: '', //活动主办方 participants: '', //活动参与方 + rangeSetting:'', mainPurpose: '', //活动主要目的 coverPoster: '', //封面海报 internalLaborCostEstimation: '', //内部人工成本预估 diff --git a/yanshouban/src/views/atmosphere/atmosphereGl.vue b/yanshouban/src/views/atmosphere/atmosphereGl.vue index f2f6bb0..f932320 100644 --- a/yanshouban/src/views/atmosphere/atmosphereGl.vue +++ b/yanshouban/src/views/atmosphere/atmosphereGl.vue @@ -22,13 +22,23 @@
-
+
新增 删除 效果对比 - 导入 + + 导入 + 草稿箱 + 审核流程导出
@@ -82,7 +92,7 @@ {{scope.row.state == ''?'待提交':scope.row.state == '1'?'待审批':scope.row.state == '2'?'部门领导审批':scope.row.state == '3'?'公司领导审批':scope.row.state == '4'?'其他审批':scope.row.state == '5'?'审核通过':'已驳回'}} - + @@ -93,7 +103,7 @@
执行情况
上传到OA
-
效果评估
+
效果评估
复制
@@ -123,7 +133,7 @@ -
+
@@ -541,15 +551,14 @@ - + -
- 上传附件 -
+ :show-file-list="true" v-if="zhixingBian"> + +点击上传
+
{{zhixingList.feedbackContent}}
@@ -563,9 +572,11 @@ 保存
-
+
+ 下载 +
@@ -614,37 +625,37 @@
吸引游客流量
-
4289
-
+45%
+
{{fenxiData.expectedAttractTraffic}}
+
{{fenxiData.expectedAttractTrafficAnalyse}}%
参与人数
-
4289
-
+45%
+
{{fenxiData.expectedParticipation}}
+
{{fenxiData.expectedParticipationAnalyse}}%
直接收益
-
4289
-
+45%
+
{{fenxiData.expectedDirectBenefits}}
+
{{fenxiData.expectedDirectBenefitsAnalysis}}%
间接收益
-
4289
-
+45%
+
{{fenxiData.expectedIndirectBenefits}}
+
{{fenxiData.expectedIndirectBenefitsAnalysis}}%
投入生产比
-
4289
-
+45%
+
{{fenxiData.incomeAnalysis}}%
+
{{fenxiData.incomeAnalysis}}%
-
效果分析
-
+ +
@@ -1106,9 +1117,8 @@ @@ -1145,12 +1155,17 @@ cereGet, cereAdd, cereEdit, - cereDel + cereDel, + excelQueryByPage, + excelAdd, + effectEvaluation } from '../../api/activityBz' import addAct from "./atmosphereBz" import atmbians from "./atmosphereBian" import * as echarts from 'echarts' import Vue from 'vue' + import html2canvas from 'html2canvas' + import jsPDF from 'jspdf' import { uploadUrl } from '@/utils/request' @@ -1164,6 +1179,7 @@ components: { addAct,atmbians}, acBian:'',//编辑数据 bianshow:false,//编辑页 }, + fenxiData:{}, planName:'', planFen:'', eventTheme:'', @@ -1222,9 +1238,11 @@ components: { addAct,atmbians}, text: '活动主要目的', eventTheme: '' },{ - id: '5', - name: '状态', - eventTheme: '待审核' + id:0, + name: '范围设置', + planName: '', + text: '状态', + eventTheme: '' }], internalLaborCostEstimation:'', externalLaborCostEstimation:'', @@ -1304,7 +1322,8 @@ components: { addAct,atmbians}, pageindex: { pageNumber: 1, pageSize: 10, - dataOwnership:'2' + dataOwnership:'2', + isDraft:0 }, multipleSelection:[],//选择的数据 options: [], @@ -1345,6 +1364,7 @@ components: { addAct,atmbians}, duibiOne:{}, duibiTwo:{}, uploadFileUrl: uploadUrl, // 请求地址 + daoData:[], fileData:[], caoList:[], caogaoshow:false @@ -1377,7 +1397,7 @@ components: { addAct,atmbians}, //查询全数据 async getAll() { const res = await queryByPage((this.pageindex)) - console.log(res.data) + this.tableData = res.data.content this.total = res.data.content.length let page = { @@ -1407,12 +1427,13 @@ components: { addAct,atmbians}, })); }, async handleNodeClick(data){ - console.log('Node clicked:', data); + let pageindex= { pageNumber: 1, pageSize: 10, dataOwnership: '2', - classificationCode:data.id + classificationCode:data.id, + isDraft:0 } const res = await queryByPage(pageindex) this.tableData = res.data.content @@ -1422,7 +1443,8 @@ components: { addAct,atmbians}, this.pageindex={ pageNumber: 1, pageSize: 10, - dataOwnership: '2' + dataOwnership: '2', + isDraft:0 } const res = await queryByPage(this.pageindex) this.tableData = res.data.content @@ -1469,13 +1491,13 @@ components: { addAct,atmbians}, //查询 async onSubmit(){ if(this.planName != '' && this.eventTheme == ''){ - const res = await danqueryById({planName:this.planName,dataOwnership:'2', pageNumber: 1,pageSize: 10,}) + const res = await danqueryById({planName:this.planName,dataOwnership:'2', pageNumber: 1,pageSize: 10, auditTime:0}) this.tableData = res.data.content }else if(this.planName == '' && this.eventTheme != ''){ - const res = await danqueryById({eventTheme:this.eventTheme,dataOwnership:'2',pageNumber: 1,pageSize: 10,}) + const res = await danqueryById({eventTheme:this.eventTheme,dataOwnership:'2',pageNumber: 1,pageSize: 10, auditTime:0}) this.tableData = res.data.content }else{ - const res = await danqueryById({planName:this.planName,eventTheme:this.eventTheme,dataOwnership:'2',pageNumber: 1,pageSize: 10, }) + const res = await danqueryById({planName:this.planName,eventTheme:this.eventTheme,dataOwnership:'2',pageNumber: 1,pageSize: 10, auditTime:0 }) this.tableData = res.data.content } @@ -1497,7 +1519,9 @@ components: { addAct,atmbians}, }, //执行效果保存 async bianji() { - console.log(this.zhiXing) + if(this.fileData.length !=0){ + this.zhixingList.feedbackContent = this.fileData[0].url + } if(this.zhiXing){ this.zhixingList.eventStartTime = this.zhixingList.planTime[0] this.zhixingList.eventEndTime=this.zhixingList.planTime[1] @@ -1519,6 +1543,7 @@ components: { addAct,atmbians}, }, //详情点击 handleEditForm(item) { + this.fileData = [] this.zhixingList={ planTime: [], planName: '', //活动名称 @@ -1600,8 +1625,8 @@ components: { addAct,atmbians}, that.tableData1[2].planName = res.data.content[0].sponsor that.tableData1[3].eventTheme = res.data.content[0].participants that.tableData1[3].planName = res.data.content[0].mainPurpose - // that.tableData1[4].eventTheme = res.data.content[0].state - that.tableData1[4].eventTheme = this.getStatus(res.data.content[0].state) + that.tableData1[4].planName = this.getStatus(res.data.content[0].state) + that.tableData1[4].eventTheme = res.data.content[0].rangeSetting //活动成本信息 that.internalLaborCostEstimation=res.data.content[0].internalLaborCostEstimation that.externalLaborCostEstimation=res.data.content[0].externalLaborCostEstimation @@ -1811,6 +1836,9 @@ that.expectedAttractTraffic=res.data.content[0].expectedAttractTraffic } }, xiaoguo(item) { + effectEvaluation({id:item.id}).then(res=>{ + this.fenxiData = res.data + }) this.xiaoguoBox = true this.$nextTick(() => { this.shopLiu(this.$refs.shopL); @@ -2079,20 +2107,30 @@ that.expectedAttractTraffic=res.data.content[0].expectedAttractTraffic }, handleUploadSuccess(response, file, fileList) { - console.log(response, file, fileList) - // this.fileData.push(file) + const fileMsg = { + name:file.name, + url: file.response.data.url, + } + // 将文件地址存储在 uploadedFiles 数组中 + this.fileData.push(fileMsg); }, handleRemove(){ - +this.fileData=[] + }, + daoru(response, file, fileList){ + this.daoData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.daoData[0]) + excelAdd(formDate).then(res => { + this.getAll() + }) }, - daoru(){ - - }, caogao(){ let pageindex = { pageNumber: 1, pageSize: 10, - dataOwnership: '2' + dataOwnership: '2', + isDraft:1 } queryByPage(pageindex).then(res=>{ this.caoList = res.data.content @@ -2100,7 +2138,7 @@ that.expectedAttractTraffic=res.data.content[0].expectedAttractTraffic this.caogaoshow =true }, - shiyong(val,item){ + shiyong(item){ const h = this.$createElement; this.$msgbox({ @@ -2115,14 +2153,15 @@ that.expectedAttractTraffic=res.data.content[0].expectedAttractTraffic customClass: 'oe-dialog-btn', beforeClose: (action, instance, done) => { if (action === 'confirm') { - // contentEdit({ - // id: item.id, - // draftStatus:1 - // }).then(res => { - // this.getAll() - // this.getcaogao() - // done(); - // }) + xiangedit({ + id: item.id, + draftStatus:1, + isDraft:0 + }).then(res => { + this.getAll() + this.caogao() + done(); + }) } else { done(); } @@ -2131,6 +2170,56 @@ that.expectedAttractTraffic=res.data.content[0].expectedAttractTraffic }, + async daochu(){ + let res = await excelQueryByPage(this.pageindex) + if(!res){ + return + } + const blob = new Blob([res], { type: 'application/vnd.ms-excel' }) + const fileName = '审核流程.xls' + if ('download' in document.createElement('a')) { + // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { + // IE10+下载 + navigator.msSaveBlob(blob, fileName) + } + this.$message({ + message: '导出成功', + type: 'success' + }) + + + }, + // 下载 + async downloadPdf() { + const content = this.$refs.actXiang; + + // 使用 html2canvas 将 div 渲染为画布 + const canvas = await html2canvas(content); + + // 获取画布的图像数据 + const imgData = canvas.toDataURL('image/png'); + + // 创建一个新的 PDF 文档 + const pdf = new jsPDF('p', 'mm', 'a4'); + + // 添加图像到 PDF,第二个参数是图像格式,第三个参数是缩放比例 + const imgWidth = 190; // 图像的宽度(mm) + const imgHeight = (canvas.height * imgWidth) / canvas.width; // 保持图像的宽高比 + + pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); // 10, 10 是图像在 PDF 中的位置(mm) + + // 保存 PDF 文件 + pdf.save('氛围方案.pdf'); + }, } } diff --git a/yanshouban/src/views/atmosphere/atmosphereSp.vue b/yanshouban/src/views/atmosphere/atmosphereSp.vue index 23f5487..7b935c6 100644 --- a/yanshouban/src/views/atmosphere/atmosphereSp.vue +++ b/yanshouban/src/views/atmosphere/atmosphereSp.vue @@ -59,7 +59,7 @@ {{scope.row.state == ''?'待提交':scope.row.state == '1'?'待审批':scope.row.state == '2'?'部门领导审批':scope.row.state == '3'?'公司领导审批':scope.row.state == '4'?'其他审批':scope.row.state == '5'?'审核通过':'已驳回'}} - + @@ -912,7 +912,8 @@ pageindex: { pageNumber: 1, pageSize: 10, - dataOwnership: '2' + dataOwnership: '2', + isDraft:0 }, multipleSelection: [], options: [{ diff --git a/yanshouban/src/views/business/autd/index.vue b/yanshouban/src/views/business/autd/index.vue index 8d130e6..4448e47 100644 --- a/yanshouban/src/views/business/autd/index.vue +++ b/yanshouban/src/views/business/autd/index.vue @@ -450,7 +450,7 @@ export default { this.total = res.data.total this.tableData.map(res=>{ res.shopPhone = this.$decrypt(res.shopPhone) - res.shopPassword = this.$decrypt(res.shopPassword) + // res.shopPassword = this.$decrypt(res.shopPassword) res.emailAddress = this.$decrypt(res.emailAddress) res.idCardNum = this.$decrypt(res.idCardNum) }) diff --git a/yanshouban/src/views/business/businessList/index.vue b/yanshouban/src/views/business/businessList/index.vue index 94de591..874e737 100644 --- a/yanshouban/src/views/business/businessList/index.vue +++ b/yanshouban/src/views/business/businessList/index.vue @@ -64,14 +64,23 @@
-
+
新增 - + + 导入 +
@@ -659,7 +668,8 @@ import { businessListGetById, businessListUpdate, businessListStart, - delBusinessById + delBusinessById, + excelAdd } from '@/api/business' import upimg from "@/components/ImageUpload/index"; import { @@ -668,11 +678,14 @@ import upimg from "@/components/ImageUpload/index"; import { getAlls as map1 } from '@/api/map1' + import { uploadUrl,token } from '@/utils/request' export default { components: {upimg}, data () { // 这里存放数据 return { + action:uploadUrl, + fileData:[], // 新建商家弹框 dialogVisible: false, activeName: 0, @@ -899,8 +912,7 @@ export default { addCheck (ruleForm) { this.$refs[ruleForm].validate(valid => { if (valid) { - console.log(this.userState) - console.log(this.ruleForm) + // if (this.personPhone !== '') { // this.ruleForm.chargePersonPhone = this.personPhone // } @@ -932,6 +944,15 @@ 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 => { if (res.code === '') { @@ -1052,21 +1073,24 @@ export default { }) }, - // businessListGetAll + // 初始化查询所有数据 - async getAll (formInline) { + async getAll(formInline) { const res = await businessListGetAll(formInline) + this.total = res.data.total this.tableData = res.data.list - this.tableData.map(res=>{ - res.shopPhone = this.$decrypt(res.shopPhone) - res.shopPassword = this.$decrypt(res.shopPassword) - res.idCardNum = this.$decrypt(res.idCardNum) - res.emailAddress = this.$decrypt(res.emailAddress) - res.shopAdress = this.$decrypt(res.shopAdress) - res.legalRepresentative = this.$decrypt(res.legalRepresentative) - res.chargePersonPhone = this.$decrypt(res.chargePersonPhone) + + this.tableData.map(item=>{ + item.shopPhone = this.$decrypt(item.shopPhone) + item.shopPassword = this.$decrypt(item.shopPassword) + item.idCardNum = this.$decrypt(item.idCardNum) + item.emailAddress = this.$decrypt(item.emailAddress) + item.shopAdress = this.$decrypt(item.shopAdress) + item.legalRepresentative = this.$decrypt(item.legalRepresentative) + item.chargePersonPhone = this.$decrypt(item.chargePersonPhone) }) + }, // 编辑号码 inputPhone () { @@ -1122,6 +1146,14 @@ export default { MingDelete(index){ this.ziyuanData.splice(index, 1); }, + daoru(response, file, fileList){ + this.fileData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.fileData[0]) + excelAdd(formDate).then(res => { + this.getAll(this.formInline) + }) + }, } } diff --git a/yanshouban/src/views/couponmanagement/coupon.vue b/yanshouban/src/views/couponmanagement/coupon.vue index 3dad718..2aa6c46 100644 --- a/yanshouban/src/views/couponmanagement/coupon.vue +++ b/yanshouban/src/views/couponmanagement/coupon.vue @@ -226,7 +226,7 @@ this.shopList = res1.data.list this.shopList.map(res=>{ res.shopPhone = this.$decrypt(res.shopPhone) - res.shopPassword = this.$decrypt(res.shopPassword) + // res.shopPassword = this.$decrypt(res.shopPassword) res.idCardNum = this.$decrypt(res.idCardNum) res.emailAddress = this.$decrypt(res.emailAddress) res.shopAdress = this.$decrypt(res.shopAdress) diff --git a/yanshouban/src/views/customer/icManagement/index.vue b/yanshouban/src/views/customer/icManagement/index.vue index 2efdb70..bf0cba3 100644 --- a/yanshouban/src/views/customer/icManagement/index.vue +++ b/yanshouban/src/views/customer/icManagement/index.vue @@ -507,6 +507,14 @@ const res = await icManAll(this.pageindex); this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + res.contactName = this.$decrypt(res.contactName) + res.contactPhone = this.$decrypt(res.contactPhone) + }) }, // 编辑确认 async msgeditS() { @@ -610,6 +618,14 @@ const res = await icManAll(this.formSel) this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + res.contactName = this.$decrypt(res.contactName) + res.contactPhone = this.$decrypt(res.contactPhone) + }) }, // 详情点击 diff --git a/yanshouban/src/views/customer/icReview/index.vue b/yanshouban/src/views/customer/icReview/index.vue index e28f717..137fcc4 100644 --- a/yanshouban/src/views/customer/icReview/index.vue +++ b/yanshouban/src/views/customer/icReview/index.vue @@ -821,6 +821,14 @@ export default { const res = await icManAll(this.pageindex) this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + res.contactName = this.$decrypt(res.contactName) + res.contactPhone = this.$decrypt(res.contactPhone) + }) }, bianjilist(item) { @@ -835,7 +843,16 @@ export default { const res = await icManAll(this.formSel) this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + res.contactName = this.$decrypt(res.contactName) + res.contactPhone = this.$decrypt(res.contactPhone) + }) }, + // 详情点击 async handleEditForm(item) { this.secondData = item; diff --git a/yanshouban/src/views/customer/rUser/index.vue b/yanshouban/src/views/customer/rUser/index.vue index 45295b0..f483340 100644 --- a/yanshouban/src/views/customer/rUser/index.vue +++ b/yanshouban/src/views/customer/rUser/index.vue @@ -335,7 +335,6 @@ } from '@/utils/request' import { - businessListGetAll, businessListSave, businessListGetById, businessListUpdate, diff --git a/yanshouban/src/views/customer/rsaManagement/index.vue b/yanshouban/src/views/customer/rsaManagement/index.vue index 932211e..a697dcf 100644 --- a/yanshouban/src/views/customer/rsaManagement/index.vue +++ b/yanshouban/src/views/customer/rsaManagement/index.vue @@ -803,6 +803,14 @@ const res = await rsaManAll(this.pageindex); this.tableData = res.data.content; this.total = res.data.content.length + this.tableData.map(res=>{ + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) const ziyuan = await getAlls(this.pageindex) const ggw = await map1(this.pageindex) this.ziyuanData = [...ziyuan.data.content,...ggw.data.content] @@ -1010,6 +1018,14 @@ async getshen(item){ const res = await rsaManAll(this.formSel) this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) }, mingClose(){ this.multipleSelection =[] diff --git a/yanshouban/src/views/customer/rsaReview/index.vue b/yanshouban/src/views/customer/rsaReview/index.vue index 7e8588b..f9455c6 100644 --- a/yanshouban/src/views/customer/rsaReview/index.vue +++ b/yanshouban/src/views/customer/rsaReview/index.vue @@ -929,6 +929,14 @@ export default { const res = await rsaManAll(this.pageindex); this.tableData = res.data.content; this.total = res.data.content.length + this.tableData.map(res=>{ + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) }, // 查询 async onSubmit() { @@ -936,6 +944,14 @@ export default { const res = await rsaManAll(this.formSel) this.tableData = res.data.content this.total = res.data.content.length + this.tableData.map(res=>{ + res.contactPhone = this.$decrypt(res.contactPhone) + res.idCardNumber = this.$decrypt(res.idCardNumber) + res.unifiedSocialCreditCode = this.$decrypt(res.unifiedSocialCreditCode) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.address = this.$decrypt(res.address) + res.emailAddress = this.$decrypt(res.emailAddress) + }) }, diff --git a/yanshouban/src/views/customer/yixiang/index.vue b/yanshouban/src/views/customer/yixiang/index.vue new file mode 100644 index 0000000..6151119 --- /dev/null +++ b/yanshouban/src/views/customer/yixiang/index.vue @@ -0,0 +1,1421 @@ + + + + + + diff --git a/yanshouban/src/views/detect/admap.vue b/yanshouban/src/views/detect/admap.vue index 360ef83..d6ae36d 100644 --- a/yanshouban/src/views/detect/admap.vue +++ b/yanshouban/src/views/detect/admap.vue @@ -51,14 +51,20 @@
-
+ 新增 - + + 导入 +
@@ -136,6 +142,10 @@ + + + + @@ -1511,6 +1521,7 @@ changadd, changedit, changDel, + } from '../../api/information' import { getAlls as getAllMap, @@ -1765,6 +1776,7 @@ mapData: {}, fileData:[], uploadFileUrl: uploadUrl, // 请求地址 +daoData:[] } @@ -2266,6 +2278,14 @@ uploadFileUrl: uploadUrl, // 请求地址 // 将文件地址存储在 uploadedFiles 数组中 this.fileData.push(fileMsg); }, + daoru(response, file, fileList){ + this.daoData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.daoData[0]) + excelAdd(formDate).then(res => { + this.getAll() + }) + }, } } diff --git a/yanshouban/src/views/detect/analyse.vue b/yanshouban/src/views/detect/analyse.vue index 85a4f4c..dbd51d9 100644 --- a/yanshouban/src/views/detect/analyse.vue +++ b/yanshouban/src/views/detect/analyse.vue @@ -5,32 +5,26 @@
招商资源监测 > 统计分析
+
+
+ + + + 检索 + + 重置 + +
+
+ 导出 + +
+
+
-
-
-
商铺/广告位资源统计
- - - - 检索 - - 重置 - -
- -
+
@@ -264,6 +258,59 @@
--> +
+
+
+
合同情况统计
+ +
+ +
+
+
+
+
商铺/广告位整体经营统计
+ +
+
+
+
+
+
出租、退租、续租统计
+ +
+
+
+
+
@@ -306,7 +353,7 @@
-
签约数量占比
+
合同签约数量占比
-
+
@@ -145,6 +145,9 @@ 返回 + 生成PDF + 确定 @@ -523,6 +526,8 @@ import addAct from "./mediaMannaAdd" import wangEditor from "@/components/editor/index"; import upimg from "@/components/ImageUpload/index" + import html2canvas from 'html2canvas' + import jsPDF from 'jspdf' export default { components: { addAct,wangEditor,upimg}, data() { @@ -604,6 +609,29 @@ components: { addAct,wangEditor,upimg}, }, methods: { + async daochu(){ + + const content = this.$refs.contentToConvert; + + // 使用 html2canvas 将 div 渲染为画布 + const canvas = await html2canvas(content); + + // 获取画布的图像数据 + const imgData = canvas.toDataURL('image/png'); + + // 创建一个新的 PDF 文档 + const pdf = new jsPDF('p', 'mm', 'a4'); + + // 添加图像到 PDF,第二个参数是图像格式,第三个参数是缩放比例 + const imgWidth = 190; // 图像的宽度(mm) + const imgHeight = (canvas.height * imgWidth) / canvas.width; // 保持图像的宽高比 + + pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); // 10, 10 是图像在 PDF 中的位置(mm) + + // 保存 PDF 文件 + pdf.save('媒体推广.pdf'); + + }, //查询全数据 async getAll() { const res = await tuiGetAll(this.pageindex) diff --git a/yanshouban/src/views/member/memberList/details.vue b/yanshouban/src/views/member/memberList/details.vue index e2b0138..9b63918 100644 --- a/yanshouban/src/views/member/memberList/details.vue +++ b/yanshouban/src/views/member/memberList/details.vue @@ -369,12 +369,17 @@ export default { if (item.fields === 'sex') { item.value = item.value === '1' ? '男' : '女' } + + item.value = this.$decrypt(item.value) + console.log(item) }) }, // 初始化查询所有标签 async getSelect (name) { const res = await getLabels(name) this.tipsList = res.data + + }, doCancel () { this.visible = false diff --git a/yanshouban/src/views/online/QRFunds/index.vue b/yanshouban/src/views/online/QRFunds/index.vue index fea8c8f..e589cb4 100644 --- a/yanshouban/src/views/online/QRFunds/index.vue +++ b/yanshouban/src/views/online/QRFunds/index.vue @@ -182,6 +182,7 @@ export default { res.emailAddress = this.$decrypt(res.emailAddress) res.shopAdress = this.$decrypt(res.shopAdress) res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.chargePersonPhone = this.$decrypt(res.chargePersonPhone) }) }, onSubmit(){ diff --git a/yanshouban/src/views/scheme/addressguan.vue b/yanshouban/src/views/scheme/addressguan.vue new file mode 100644 index 0000000..60d6e04 --- /dev/null +++ b/yanshouban/src/views/scheme/addressguan.vue @@ -0,0 +1,443 @@ + + + + + + diff --git a/yanshouban/src/views/scheme/planningBz.vue b/yanshouban/src/views/scheme/planningBz.vue index e7616d9..4939534 100644 --- a/yanshouban/src/views/scheme/planningBz.vue +++ b/yanshouban/src/views/scheme/planningBz.vue @@ -33,9 +33,19 @@
-
+
新增 + + 导入 +
@@ -312,17 +322,20 @@ addList, updateList, queryById, + excelAdd } from '../../api/planningBz.js' import wangEditor from "@/components/editor/index" import upimg from "@/components/ImageUpload/index" import { uploadUrl } from '@/utils/request' + export default { components: { wangEditor ,upimg}, data() { return { upload:uploadUrl, + fileData:[], formSel: { planningName:'', planningType:'', @@ -450,7 +463,7 @@ this.total = res.data.content.length this.fileList = fileList.slice(-3); }, handleSuccess(file,fileList) { - console.log(file,fileList) + // const fileUrl = response.data.url; const fileMsg = { name:fileList.name, @@ -493,7 +506,10 @@ this.total = res.data.content.length this.secondData.annex = JSON.parse(item.annex) } - this.fileList.push(this.secondData.annex) + if(this.secondData.annex!="" && this.secondData.annex!=''){ + this.fileList.push(this.secondData.annex) + } + // this.secondData.annex = JSON.parse(this.secondData.annex) @@ -599,7 +615,7 @@ this.total = res.data.content.length console.log(file); }, handleRemove(file, fileList) { - console.log(file, fileList); + this.fileList = [] }, //重置按钮 @@ -632,6 +648,14 @@ this.total = res.data.content.length const day = ('0' + date.getDate()).slice(-2); return `${year}-${month}-${day}`; }, + daoru(response, file, fileList){ + this.fileData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.fileData[0]) + excelAdd(formDate).then(res => { + this.getAll() + }) + }, } } diff --git a/yanshouban/src/views/scheme/sam.vue b/yanshouban/src/views/scheme/sam.vue index 8be5efa..ce9d802 100644 --- a/yanshouban/src/views/scheme/sam.vue +++ b/yanshouban/src/views/scheme/sam.vue @@ -1,6 +1,6 @@ @@ -229,14 +232,16 @@ import wangEditor from "@/components/editor/index" import upimg from "@/components/ImageUpload/index" import samXin from "./samXin" +import addressguan from "./addressguan" import { uploadUrl } from '@/utils/request' export default { - components: { wangEditor ,upimg,samXin}, + components: { wangEditor ,upimg,samXin,addressguan}, data() { return { formInline: {}, + addressShow:false, upload:uploadUrl, plan_Time:[], formSel: { @@ -269,7 +274,8 @@ import samXin from "./samXin" }, fileList: [], paymentDate:[], - leaseDate:[] + leaseDate:[], + modelData:[] } }, @@ -409,6 +415,10 @@ this.getAll() this.xiang = false this.getAll() }, + addClose(msg){ + this.addressShow = msg + this.getAll() + }, } } diff --git a/yanshouban/src/views/serve/MarkActivity/index.vue b/yanshouban/src/views/serve/MarkActivity/index.vue index 4aef8dc..51efe4d 100644 --- a/yanshouban/src/views/serve/MarkActivity/index.vue +++ b/yanshouban/src/views/serve/MarkActivity/index.vue @@ -684,6 +684,10 @@ const res = await Registration(page) this.mingList = res.data this.baoming = true + this.mingList.map(res=>{ + res.userName = this.$decrypt(res.userName) + res.userPhone = this.$decrypt(res.userPhone) + }) } } diff --git a/yanshouban/src/views/serve/kefuServe/index.vue b/yanshouban/src/views/serve/kefuServe/index.vue index 0aeedd3..5dbe2e2 100644 --- a/yanshouban/src/views/serve/kefuServe/index.vue +++ b/yanshouban/src/views/serve/kefuServe/index.vue @@ -23,7 +23,7 @@
- 保修记录 + 报修记录
@@ -39,7 +39,7 @@ {{scope.$index+1}} - + diff --git a/yanshouban/src/views/setup/user/index.vue b/yanshouban/src/views/setup/user/index.vue index f0dcae7..9e918a7 100644 --- a/yanshouban/src/views/setup/user/index.vue +++ b/yanshouban/src/views/setup/user/index.vue @@ -326,10 +326,14 @@ export default { userGetById({ platformUserId: row.platformUserId }).then(res => { this.addForm = res.data this.addForm.roleIds = res.data.ids - console.log(this.addForm) - console.log(this.roleList) +this.addForm.username = this.$decrypt(this.addForm.username) + this.addForm.email = this.$decrypt(this.addForm.email) + this.addForm.password = this.$decrypt(this.addForm.password) + this.addForm.phone = this.$decrypt(this.addForm.phone) // this.addForm.roleIds = [1]; }) + + }, // 删除用户 async del (row) { diff --git a/yanshouban/src/views/shopRental/manage/index.vue b/yanshouban/src/views/shopRental/manage/index.vue index 46afee2..c47a565 100644 --- a/yanshouban/src/views/shopRental/manage/index.vue +++ b/yanshouban/src/views/shopRental/manage/index.vue @@ -37,10 +37,19 @@
-
- + 新增 - + + 导入 +
@@ -1202,9 +1211,7 @@ async } from 'q' import axios from 'axios' - import { - uploadUrl - } from '@/utils/request' +import { uploadUrl,token } from '@/utils/request' import { contractGetAll, contractDel, @@ -1214,13 +1221,15 @@ cereLeasingByPage, cereLeasingEdit, cereLeasingAdd, - cereLeasingDel + cereLeasingDel, + excelAdd } from '../../../api/manage.js' export default { name: 'manage', data() { return { uploadFileUrl: uploadUrl, // 请求地址 + fileData:[], hetongBox: false, //合同 detbox: false, //详情 leixing: true, //切换 @@ -1257,6 +1266,7 @@ promotionVideo: '', promotionImage: '', notes: '', + rentalCondition:0, }, //租赁信息字段 tableData: [{ id:1, @@ -1383,6 +1393,7 @@ 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 @@ -1521,6 +1532,7 @@ biangengPan:false, promotionVideo: '', promotionImage: '', notes: '', + rentalCondition:0, }//租赁信息字段 this.heForm={ contractNumber: '', //合同对应的ID @@ -1718,6 +1730,14 @@ this.ggXin = true bianDel(index){ this.biangengTab.splice(index, 1); }, + daoru(response, file, fileList){ + this.fileData.push(file.raw) + const formDate = new FormData() + formDate.append('file', this.fileData[0]) + excelAdd(formDate).then(res => { + this.getAll() + }) + }, } } diff --git a/yanshouban/src/views/shopRental/renewalMan/index.vue b/yanshouban/src/views/shopRental/renewalMan/index.vue index b8d21fa..fb2a60d 100644 --- a/yanshouban/src/views/shopRental/renewalMan/index.vue +++ b/yanshouban/src/views/shopRental/renewalMan/index.vue @@ -39,6 +39,7 @@
导出 + 打印
@@ -793,7 +794,7 @@
下载 - +
@@ -817,7 +818,8 @@ updateList, queryById, cereLeasingById, - cereLeasingEdit + cereLeasingEdit, + pdfLeaseRenewalManagement } from '../../../api/manage.js' import { rentalGetAll, @@ -874,7 +876,7 @@ }, pageNumber: 1, pageSize: 10, - + rentalCondition:3 }, xiangData:{}, heData:{}, @@ -890,6 +892,7 @@ pageindex: { pageNumber: 1, pageSize: 10, + rentalCondition:3 }, bianjiBox:1, chengeTatle:1, @@ -932,6 +935,30 @@ }, methods: { + async dayin(){ + let res = await pdfLeaseRenewalManagement(this.pageindex) + if(!res){ + return + } + const blob = new Blob([res], { type: 'application/pdf' }) + const fileName = '续租管理.pdf' + if ('download' in document.createElement('a')) { + // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { + // IE10+下载 + navigator.msSaveBlob(blob, fileName) + } + + + }, chenge(val){ this.formSel={ affiliation: '', @@ -1057,7 +1084,7 @@ }, pageNumber: 1, pageSize: 10, - + rentalCondition:3 } this.leaseStartDate = [] this.getAll() diff --git a/yanshouban/src/views/shopRental/rentTermination/index.vue b/yanshouban/src/views/shopRental/rentTermination/index.vue index fdab819..71e20c7 100644 --- a/yanshouban/src/views/shopRental/rentTermination/index.vue +++ b/yanshouban/src/views/shopRental/rentTermination/index.vue @@ -41,6 +41,8 @@ 导出 + 打印 +
@@ -640,8 +642,7 @@
下载 - +
@@ -662,7 +663,7 @@ contractDel, updateList, queryById, - + pdfManagementOfFinalAccountsForRentals, cereLeasingEdit } from '../../../api/manage.js' import { @@ -729,11 +730,12 @@ }, pageNumber: 1, pageSize: 10, - + rentalCondition:2 }, pageindex: { pageNumber: 1, pageSize: 10, + rentalCondition:2 }, bianjiBox: 1, chengeTatle: 1, @@ -794,7 +796,30 @@ this.total = res.data.numberOfElements this.tableData = res.data.content }, + async dayin(){ + let res = await pdfManagementOfFinalAccountsForRentals(this.pageindex) + if(!res){ + return + } + const blob = new Blob([res], { type: 'application/pdf' }) + const fileName = '退租决算管理.pdf' + if ('download' in document.createElement('a')) { + // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { + // IE10+下载 + navigator.msSaveBlob(blob, fileName) + } + + }, // 退租确定按钮 addCheck(val) { this.ggXin = false @@ -924,7 +949,7 @@ }, pageNumber: 1, pageSize: 10, - + rentalCondition:2 } this.leaseStartDate = [] this.getAll() diff --git a/yanshouban/src/views/shopRental/rentalMan/index.vue b/yanshouban/src/views/shopRental/rentalMan/index.vue index 7c7f39f..15e6902 100644 --- a/yanshouban/src/views/shopRental/rentalMan/index.vue +++ b/yanshouban/src/views/shopRental/rentalMan/index.vue @@ -39,6 +39,7 @@ style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">批量导出 --> 导出 + 打印
@@ -965,7 +966,7 @@
下载 - +
@@ -987,10 +988,10 @@ rentalGetAll, rentalDel, rentalAdd, - excelRentOutQueryByPage + excelRentOutQueryByPage, + pdfRentOutQueryByPage } from '../../../api/rentalMan.js' import { - businessListGetAll, businessListSave, businessListGetById, businessListUpdate, @@ -1049,10 +1050,12 @@ import { }, pageNumber: 1, pageSize: 10, + rentalCondition:1 }, pageindex: { pageNumber: 1, pageSize: 10, + rentalCondition:1 }, zhong:{ intentionalRent:'', @@ -1103,6 +1106,7 @@ import { }, pageNumber: 1, pageSize: 10, + rentalCondition:1 } this.leixing = !this.leixing @@ -1203,6 +1207,7 @@ import { }, pageNumber: 1, pageSize: 10, + rentalCondition:1 }, this.leaseStartDate = [] this.getAll() @@ -1227,7 +1232,7 @@ import { pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); // 10, 10 是图像在 PDF 中的位置(mm) // 保存 PDF 文件 - pdf.save('downloaded.pdf'); + pdf.save('入住单.pdf'); }, // 出租单查看 outlook(item){ @@ -1236,7 +1241,6 @@ import { this.outdan = true }, delList(){ - const h = this.$createElement; this.$msgbox({ title: '消息', @@ -1286,6 +1290,30 @@ import { }) }, + async dayin(){ + let res = await pdfRentOutQueryByPage(this.pageindex) + if(!res){ + return + } + const blob = new Blob([res], { type: 'application/pdf' }) + const fileName = '出租管理.pdf' + if ('download' in document.createElement('a')) { + // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { + // IE10+下载 + navigator.msSaveBlob(blob, fileName) + } + + }, + } } diff --git a/yanshouban/src/views/shopRental/warning/index.vue b/yanshouban/src/views/shopRental/warning/index.vue index 1168a1b..cd868b0 100644 --- a/yanshouban/src/views/shopRental/warning/index.vue +++ b/yanshouban/src/views/shopRental/warning/index.vue @@ -115,27 +115,18 @@
- + - + - + - + - - - - - - - - - @@ -728,6 +719,9 @@ cereLeasingByPage, daoqi } from '../../../api/manage.js' + import { + ManaAdd + } from '../../../api/PerWorkstation.js' export default { data() { return { @@ -827,9 +821,36 @@ }, // 新增确定按钮 async addCheck(val) { - this.ggXin = false + if(this.index == 2){ + let pageMsg = { + content:this.zhong.reasonApplication, + createdAt:this.nowTime(), + postType:'立即发布', + receiverMerchant:'电商商家', + status:'1', + title:'到期提醒' + } + await ManaAdd(pageMsg) + this.$message({ + message: '发送成功', + type: 'success' + }) + } + this.ggXin = false }, + + nowTime(){ + const now = new Date(); + const year = now.getFullYear(); + const month = (now.getMonth() + 1).toString().padStart(2, '0'); + const day = now.getDate().toString().padStart(2, '0'); + const hours = now.getHours().toString().padStart(2, '0'); + const minutes = now.getMinutes().toString().padStart(2, '0'); + const seconds = now.getSeconds().toString().padStart(2, '0'); + + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; + }, // 获取时间 currentTime(){ let date = new Date(); diff --git a/yanshouban/src/views/stockControl/inventory/index.vue b/yanshouban/src/views/stockControl/inventory/index.vue index 284045a..41f4516 100644 --- a/yanshouban/src/views/stockControl/inventory/index.vue +++ b/yanshouban/src/views/stockControl/inventory/index.vue @@ -1,7 +1,10 @@ @@ -177,8 +205,9 @@ - 取 消 - 确 定 + 取 消 + 确 定 @@ -199,8 +228,9 @@ - 取 消 - 确 定 + 取 消 + 确 定 @@ -402,7 +432,9 @@ export default { //@import url(); 引入公共css类 @import url("../../../styles/elDialog.scss"); .pending { - padding: 30px; + padding: 0 20px 20px 20px; + min-height: calc(100vh - 50px - 20px); + background-color: #Fff; } .fenye { margin-top: 20px; @@ -445,4 +477,18 @@ export default { } } } + .tableBtn { + display: inline-block; + margin-right: 10px; + } + + .greens { + color: #3F9B6A ; + } + ::v-deep .buttonHover:hover{ + color:#3f9b6a !important; + border-color: #c5e1d2 !important; + background-color: #ecf5f0 !important; + outline: none; + } diff --git a/yanshouban/src/views/stockControl/stocksForewarn/index.vue b/yanshouban/src/views/stockControl/stocksForewarn/index.vue index 22fedad..53f6dc6 100644 --- a/yanshouban/src/views/stockControl/stocksForewarn/index.vue +++ b/yanshouban/src/views/stockControl/stocksForewarn/index.vue @@ -19,17 +19,24 @@
- + - + - + + - +
@@ -161,10 +168,10 @@ export default { anNum:'', }, formSel:{ - shopname:'', - rkr:'', - sTime:'', - rTime:'' + productName:'', + createTime:'', + page: 1, + pageSize: 10 }, formInline: { searchType: '1', @@ -202,7 +209,28 @@ export default { }, // 查询 search () { - + this.total = 1; + this.formSel.page = 1; + this.getAll(this.formSel); + }, + resetting(){ + this.formSel = { + productName:'', + createTime:'', + page: 1, + pageSize: 10 + } + this.formInline = { + searchType: '1', + search: '', // 搜索字段 + state: '', + // afterState: '', // 售后状态 0-无售后 1-售后中 2-售后成功 3-售后关闭 + dates: [], // 下单时间数组 + page: 1, + shopName: '', + pageSize: 10 + } + this.getAll(this.formInline) }, async kucunSet(){ const yuzhi={ diff --git a/yanshouban/vue.config.js b/yanshouban/vue.config.js index df890d6..8a09324 100644 --- a/yanshouban/vue.config.js +++ b/yanshouban/vue.config.js @@ -67,7 +67,7 @@ module.exports = { // changeOrigin: true, // }, '/meserver/admin-server/':{ - target: 'https://jy.scjysm.asia:18086/meserver/admin-server/', // 测试 + target: 'https://jy.scjysm.asia:18086/admin-server/', // 测试 // target: 'http://172.16.61.123:8080/meserver/admin-server/', // 测试 // https://jy.scjysm.asia:18086/admin-server http://172.16.61.123:8080/meserver/admin-server/ https://wjdc.scjysm.asia1443/cdwlMall/admin-server // target: 'http://localhost:9003/', // 平台端