From a4bfb5fa7b283b80ce3336f4761d0f1ce5d82769 Mon Sep 17 00:00:00 2001
From: yangxin <2509699647@qq.com>
Date: Thu, 27 Feb 2025 17:18:50 +0800
Subject: [PATCH] '最新'
---
admin-web-master/src/api/rsaManagement.js | 25 +++++++++++++++++++++++++
admin-web-master/src/layout/index.vue | 4 ++--
admin-web-master/src/views/customer/yixiang/index.vue | 660 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lvdao-miniapp/main.js | 6 +++---
lvdao-miniapp/pages/shops/shops.vue | 34 ++++++++++++++++++++++++++++++----
lvdao-miniapp/utils/request.js | 10 +++++-----
yanshouban/src/views/customer/yixiang/index.vue | 14 +++++++-------
7 files changed, 186 insertions(+), 567 deletions(-)
diff --git a/admin-web-master/src/api/rsaManagement.js b/admin-web-master/src/api/rsaManagement.js
index 27bd415..9d54f73 100644
--- a/admin-web-master/src/api/rsaManagement.js
+++ b/admin-web-master/src/api/rsaManagement.js
@@ -35,3 +35,28 @@ export function ziyuanduiy(data) {
data
})
}
+
+// 招商意向管理
+ // 匹配记录查询
+export function recordGetAll(data) {
+ return request({
+ url: '/resourceStrategyMatchingRecord/getAll',
+ method: 'post',
+ data
+ })
+}
+// 匹配记录新增
+export function recordInsert(data) {
+ return request({
+ url: '/resourceStrategyMatchingRecord/insert',
+ method: 'post',
+ data
+ })
+}
+// 匹配记录删除
+export function recordEdit(data) {
+ return request({
+ url: `/resourceStrategyMatchingRecord/edit/${data.id}`,
+ method: 'get'
+ })
+}
diff --git a/admin-web-master/src/layout/index.vue b/admin-web-master/src/layout/index.vue
index 94f3423..c73a080 100644
--- a/admin-web-master/src/layout/index.vue
+++ b/admin-web-master/src/layout/index.vue
@@ -199,8 +199,8 @@
return {
// msg: [],
// list: [],
- msg: ['招商服务系统'],
- // msg: ['招商服务系统', '推广策划系统', '在线商城系统', '支付服务模块', '票务'],
+ // msg: ['招商服务系统'],
+ msg: ['招商服务系统', '推广策划系统', '在线商城系统', '支付服务模块', '票务'],
list: [
['招商资源监测', '商家管理', '商铺租赁服务', '招商方案管理', '招商租赁管理', '广告服务', '轮播图设置', '商户意向管理', '客服服务管理', '系统设置'],
['品牌策划', '活动策划', '氛围策划', '媒体推广'],
diff --git a/admin-web-master/src/views/customer/yixiang/index.vue b/admin-web-master/src/views/customer/yixiang/index.vue
index 8b6a560..2415790 100644
--- a/admin-web-master/src/views/customer/yixiang/index.vue
+++ b/admin-web-master/src/views/customer/yixiang/index.vue
@@ -8,30 +8,6 @@
-
-
@@ -40,25 +16,40 @@
-
-
- {{scope.$index+1}}
-
-
-
-
-
-
-
-
-
+
+
+ {{scope.$index +1 }}
+
+
+
+
+
+
+
+ {{scope.row.shopType=='1'?'移动铺位':scope.row.shopType=='2'?'固定铺位':'无'}}
+
+
+
+
+
+
+
+
+ {{scope.row.belongingDepartment || '无'}}
+
+
+
+
+ {{scope.row.head || '无'}}
+
+
查看
-
- 编辑
+
+ 删除
-
-
-
- {{edit==true?'详情':'编辑'}}
-
-
-
-
-
-
-
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -332,15 +133,40 @@
+
+
+
+
+ {{scope.$index+1}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
重置
+ @click="pipeiClose">返回
查询
+ @click="pipeiBtn">确定
-
+
@@ -353,18 +179,10 @@
token
} from '@/utils/request'
import {
- rsaManAll,
- rsaManAdd,
- rsaManEdit,
- rsaManDel,
- ziyuanduiy,
+ recordGetAll,
+ recordInsert,
+ recordEdit,
} from '../../../api/rsaManagement'
- import {
- getAlls
- } from '../../../api/information.js'
- import {
- getAlls as map1
- } from '../../../api/map1'
import upimg from "@/components/ImageUpload/index"
export default {
components: {
@@ -374,80 +192,20 @@
data() {
return {
detbox: false, // 详情
- edit: true, // 编辑
- addMing: false,//资源
- selshop: [], //意向资源列表
action: uploadUrl, // 上传图片
- myHeaders: {
- 'Authorization-admin': token
- },
- ggXin: false, // 新增
- sel: [], // 选择资源
- stepNum: 0, // 切换
- linShop: [], // 临铺列表
- isAdd: false, //添加铺位弹框
- formSel: {
- intentCustomerName:'',
- region:'',
- id:'',
- auditStatus:'',
- pageNumber: 1,
- pageSize: 10,
- },
- ruleForm: {
- intentCustomerName: '', //意向客户名称
- contactPhone: '', //联系电话
- entityType: '', //主体类型
- customerLevel: '', //客户级别
- isLegalPerson: '', //是否为法人(0:否,1:是)
- enterpriseAuthorization: '', //企业授权书
- idCardNumber: '', //身份证号
- idCardType: '', //证件类型
- idCardValidStart: '', //身份证有效开始时间
- idCardValidEnd: '', //身份证有效结束时间
- idCardPhotoFront: '', //身份证照片(正面)
- idCardPhotoBack: '', //身份证照片(反面)
- subjectName: '', //主体名称
- unifiedSocialCreditCode: '', //统一社会信用代码
- type: '', //类型(可能是企业类型等)
- legalRepresentative: '', //法定代表人
- businessScope: '', //经营范围
- registeredCapital: '', //注册资本
- establishmentDate: '', //成立日期
- address: '', //住所
- emailAddress: '', //邮箱地址
- businessStartTime: '', //营业开始时间(如果为全天,则可为NULL或指定默认时
- businessEndTime: '', //营业结束时间(如果为全天,则可为NULL或指定默认时
- businessLicense: '', //营业执照(存储路径或URL)
- intendedResources: '', //意向资源
- auditStatus:'1',
- rentalPeriodStartTime:'',
- rentalPeriodEndTime:'',
- leaseTerm:'',
- rent:'',
- intentionalBusinessType:'',
- intendedArea:'',
- intentionalStoreLocation:'',
- intentionalStoreName:'',
- },
- idCardValidStart: [],
- businessStartTime: [],
- rentalPeriodTime:[],
- card: 'first', // 切换
secondData: {},
+ tableData:[],
+ pipData:[],
currentPage: 1,
total: 10,
flag: false,
pageSize: 10,
msgid: '',
pageindex: {
- pageNumber: 1,
+ pageNumber: 0,
pageSize: 10,
},
- ziyuanData:[],
- multipleSelection:[],
pip:false,
- pipData:[],
pipeiSel:{
resources:{
cereRentalPolicies:{
@@ -458,12 +216,7 @@
},
pageNumber:1,
pageSize:10,
- },
- peiPing:{
- customerLevel:'',
- id:''
- },
- peiPingShow:false,
+ },
}
},
@@ -492,158 +245,24 @@
handleSelectionChange(val) {
this.multipleSelection = val;
},
- lextStep(val) {
- if (val == 0) {
- this.stepNum = this.stepNum - 1;
- } else {
- this.stepNum = this.stepNum + 1;
- }
- },
// 查询全数据
async getAll() {
- const res = await rsaManAll(this.pageindex);
- this.tableData = res.data.content;
- this.total = res.data.content.length
-
- const ziyuan = await getAlls(this.pageindex)
- const ggw = await map1(this.pageindex)
- this.ziyuanData = [...ziyuan.data.content,...ggw.data.content]
- },
- // 编辑确认
- async msgeditS() {
- this.secondData.id = this.msgid
- if (this.idCardValidStart.length != 0) {
- this.secondData.idCardValidStart = this.idCardValidStart[0]
- this.secondData.idCardValidEnd = this.idCardValidStart[1]
- }
- if (this.businessStartTime.length != 0) {
- this.secondData.businessStartTime = this.businessStartTime[0]
- this.secondData.businessEndTime = this.businessStartTime[1]
- }
- if (this.rentalPeriodTime.length != 0) {
- this.secondData.rentalPeriodStartTime = this.rentalPeriodTime[0]
- this.secondData.rentalPeriodEndTime = this.rentalPeriodTime[1]
- }
-
- const res = await rsaManEdit(this.secondData)
- this.detbox = false;
- this.getAll();
- },
- bianji() {
- if (this.edit) {
- this.edit = false;
- }
-
- },
- // 编辑
- bianjilist(item) {
- this.secondData = item
- this.$set(this.idCardValidStart, 0, item.idCardValidStart)
- this.$set(this.idCardValidStart, 1, item.idCardValidEnd)
- this.$set(this.businessStartTime, 0, item.businessStartTime)
- this.$set(this.businessStartTime, 1, item.businessEndTime)
- this.$set(this.rentalPeriodTime, 0, item.rentalPeriodStartTime)
- this.$set(this.rentalPeriodTime, 1, item.rentalPeriodEndTime)
- this.msgid = item.id;
- this.detbox = true
- if (this.edit) {
- this.edit = false;
- }
- },
- async chehui(item){
- await rsaManEdit({id:item.id,auditStatus:'1'})
- this.getAll()
+ const res = await recordGetAll(this.pageindex);
+ this.tableData = res.data.content
+ this.total = res.data.totalElements
+ this.tableData.map(item =>{
+ item.matchingRecord = JSON.parse(item.matchingRecord)
+ })
+
+ console.log (this.tableData)
},
-async getshen(item){
- await rsaManEdit({id:item.id,auditStatus:'2'})
- this.getAll()
-},
// 详情点击
handleEditForm(item) {
- console.log(item.rentalPeriodEndTime)
- this.secondData = item
- this.$set(this.idCardValidStart, 0, item.idCardValidStart)
- this.$set(this.idCardValidStart, 1, item.idCardValidEnd)
- this.$set(this.businessStartTime, 0, item.businessStartTime)
- this.$set(this.businessStartTime, 1, item.businessEndTime)
- this.$set(this.rentalPeriodTime, 0, item.rentalPeriodStartTime)
- this.$set(this.rentalPeriodTime, 1, item.rentalPeriodEndTime)
- this.card = 'first'
- this.detbox = true;
- this.msgid = item.id;
- },
- // 新增
- addbuss() {
- this.ruleForm = {
- intentCustomerName: '', //意向客户名称
- contactPhone: '', //联系电话
- entityType: '', //主体类型
- customerLevel: '', //客户级别
- isLegalPerson: '', //是否为法人(0:否,1:是)
- enterpriseAuthorization: '', //企业授权书
- idCardNumber: '', //身份证号
- idCardType: '', //证件类型
- idCardValidStart: '', //身份证有效开始时间
- idCardValidEnd: '', //身份证有效结束时间
- idCardPhotoFront: '', //身份证照片(正面)
- idCardPhotoBack: '', //身份证照片(反面)
- subjectName: '', //主体名称
- unifiedSocialCreditCode: '', //统一社会信用代码
- type: '', //类型(可能是企业类型等)
- legalRepresentative: '', //法定代表人
- businessScope: '', //经营范围
- registeredCapital: '', //注册资本
- establishmentDate: '', //成立日期
- address: '', //住所
- emailAddress: '', //邮箱地址
- businessStartTime: '', //营业开始时间(如果为全天,则可为NULL或指定默认时
- businessEndTime: '', //营业结束时间(如果为全天,则可为NULL或指定默认时
- businessLicense: '', //营业执照(存储路径或URL)
- intendedResources: '', //意向资源
- auditStatus:'1',
- rentalPeriodStartTime:'',
- rentalPeriodEndTime:'',
- leaseTerm:'',
- rent:'',
- intentionalBusinessType:'',
- intendedArea:'',
- intentionalStoreLocation:'',
- intentionalStoreName:'',
-
- }
- this.rentalPeriodTime = []
- this.ggXin = true;
- this.getAll();
- },
-
- // 新增确定
- async addCheck() {
- if (this.idCardValidStart.length != 0) {
- this.ruleForm.idCardValidStart = this.idCardValidStart[0]
- this.ruleForm.idCardValidEnd = this.idCardValidStart[1]
- }
- if (this.businessStartTime.length != 0) {
- this.ruleForm.businessStartTime = this.businessStartTime[0]
- this.ruleForm.businessEndTime = this.businessStartTime[1]
- }
- if (this.rentalPeriodTime.length != 0) {
- this.ruleForm.rentalPeriodStartTime = this.rentalPeriodTime[0]
- this.ruleForm.rentalPeriodEndTime = this.rentalPeriodTime[1]
- }
+
+ },
- if(this.ziyuanData.length !=0){
- this.ruleForm.intendedResources = this.ziyuanData[0].id
- }
- await rsaManAdd(this.ruleForm)
- this.idCardValidStart = []
- this.businessStartTime = []
- this.rentalPeriodTime = []
- this.getAll();
- this.stepNum = 0;
- this.ggXin = false;
- },
handleCurrentChange(val) {
this.currentPage = val;
},
@@ -655,9 +274,6 @@ async getshen(item){
if (val == 1) {
this.detbox = false;
this.edit = true;
- } else {
- this.ggXin = false;
- this.stepNum = 0;
}
},
//删除管理列表
@@ -675,8 +291,8 @@ async getshen(item){
customClass: 'oe-dialog-btn',
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
- rsaManDel({
- id: item.id
+ recordEdit({
+ id: item
}).then(res => {
this.getAll()
done();
@@ -689,42 +305,6 @@ async getshen(item){
},
- handlePreview(file) {
- console.log(file);
- },
- handleRemove(file, fileList) {
- console.log(file, fileList);
- },
-
- // 重置按钮
- resetting() {
- this.formSel = {
- intentCustomerName:'',
- region:'',
- id:'',
- auditStatus:'',
- pageNumber: 1,
- pageSize: 10,
- };
- this.getAll()
- },
- // 查询
- async onSubmit() {
- const res = await rsaManAll(this.formSel)
- this.tableData = res.data.content
- this.total = res.data.content.length
-
- },
- mingClose(){
- this.multipleSelection =[]
- this.addMing = false
-
- },
- minSev() {
- this.selshop = this.multipleSelection
- this.addMing = false
- this.multipleSelection =[]
- },
pipei(item){
this.pip = true
this.pipData = []
@@ -737,9 +317,7 @@ async getshen(item){
}else{
this.pipeiSel.resourcesId = 'gg'
}
- ziyuanduiy(this.pipeiSel).then(res=>{
- this.pipData = res.data.content
- })
+
},
pipeiClose(){
this.pipeiSel ={
@@ -754,19 +332,9 @@ async getshen(item){
pageNumber:1,
pageSize:10,
},
+ this.pip = false
this.pipData = []
},
- pingji(item){
- this.peiPing.id = item.id
- this.peiPing.customerLevel = item.customerLevel
- this.peiPingShow = true
- },
- async peiPingChenk(){
- await rsaManEdit(this.peiPing)
- this.getAll()
- this.peiPingShow = false
-
- },
}
}
diff --git a/lvdao-miniapp/main.js b/lvdao-miniapp/main.js
index a7861cc..be1c407 100644
--- a/lvdao-miniapp/main.js
+++ b/lvdao-miniapp/main.js
@@ -6,9 +6,9 @@ import uView from "uview-ui";
// 弹出框
import DialogBox from './components/DialogBox/DialogBox';
- let hostall = window.location.href;
-let c1 = hostall.split('cdwlMall')[0];
-//let c1 = 'https://jy.scjysm.asia:18086/'
+// let hostall = window.location.href;
+// let c1 = hostall.split('cdwlMall')[0];
+let c1 = 'https://jy.scjysm.asia:18086/'
Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.prototype.$imgUrl = (url) => {
diff --git a/lvdao-miniapp/pages/shops/shops.vue b/lvdao-miniapp/pages/shops/shops.vue
index 6438b26..59895b8 100644
--- a/lvdao-miniapp/pages/shops/shops.vue
+++ b/lvdao-miniapp/pages/shops/shops.vue
@@ -79,7 +79,14 @@
- 意向租金(月)
+ 租金周期
+
+ {{formList.zhouqi ==''?'请选择':formList.zhouqi}}
+
+
+
+
+ 意向租金
{{formList.zujin ==''?'请选择':formList.zujin}}
@@ -157,6 +164,7 @@
mianji:'',
name:'',
phone:'',
+ zhouqi:'',
pageNumber: 0,
pageSize: 10,
publishStatus:2
@@ -199,6 +207,7 @@
this.$http.sendRequest('/cereBasicInformationShop/queryByPage', 'POST', query, 1).then(res => {
//成功回调
this.tableData = res.data.data.content
+
}).catch(err => {
console.log(err)
//请求失败
@@ -290,11 +299,19 @@
this.companys = [
{
value: '1',
- label: '1年'
+ label: '年'
},
{
value: '2',
- label: '2年'
+ label: '季'
+ },
+ {
+ value: '3',
+ label: '月'
+ },
+ {
+ value: '4',
+ label: '日'
}
]
}else if(val == 4){
@@ -336,7 +353,7 @@
}else if(this.index == 2){
this.formList.belongingRegion = e[0].label
}else if(this.index == 3){
- this.formList.zuqi = e[0].label
+ this.formList.zhouqi = e[0].label
}else if(this.index == 4){
this.formList.zujin = e[0].label
if(e[0].value == 1){
@@ -406,6 +423,15 @@
this.$http.sendRequest('/cereBasicInformationShop/queryByPage', 'POST', this.formList, 1).then(res => {
//成功回调
this.tableData = res.data.data.content
+ if(res.data.data.content.length!=0){
+ let obj={
+ type:2,
+ matchingRecord:JSON.stringify(res.data.data.content)
+ }
+ this.$http.sendRequest('/resourceStrategyMatchingRecord/insert', 'POST', obj, 1).then(res => {
+ })
+ }
+
})
this.formList = {
zulei: '',
diff --git a/lvdao-miniapp/utils/request.js b/lvdao-miniapp/utils/request.js
index fa7b679..94e393f 100644
--- a/lvdao-miniapp/utils/request.js
+++ b/lvdao-miniapp/utils/request.js
@@ -1,7 +1,7 @@
- let hostall = window.location.href;
-let c1 = hostall.split('cdwlMall')[0];
-//let c1 = 'https://jy.scjysm.asia:18086/'
+// let hostall = window.location.href;
+// let c1 = hostall.split('cdwlMall')[0];
+let c1 = 'https://jy.scjysm.asia:18086/'
//封装request请求
const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => {
//判断header提交数据类型
@@ -20,10 +20,10 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => {
// bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url;
// bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url;
- // bases = 'http://192.168.2.230:9003' + url;
+ bases = 'http://128.10.249.21:9003'+ url;
// bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url;
- bases = c1 + 'cdwlMall/meserver/admin-server' + url;
+ // bases = c1 + 'cdwlMall/meserver/admin-server' + url;
}else if(baseUrl == 3){
// bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url;
diff --git a/yanshouban/src/views/customer/yixiang/index.vue b/yanshouban/src/views/customer/yixiang/index.vue
index 27950a2..505ebac 100644
--- a/yanshouban/src/views/customer/yixiang/index.vue
+++ b/yanshouban/src/views/customer/yixiang/index.vue
@@ -348,13 +348,8 @@
匹配记录
-
-
+
+
@@ -1131,6 +1126,11 @@ async getshen(item){