Commit 2fc8331beea89716bb84ef2fbcaffc71d626f85e

Authored by 杨鑫
2 parents ff404ccf 5149de3a

Merge branch 'master' of http://39.98.150.180/webapp/GreenwayWeb

admin-web-master/src/components/add/addht.vue
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 </el-row> 14 </el-row>
15 </el-form> 15 </el-form>
16 <TitleWithCircle title="合同信息" style="margin-bottom: 20px;" /> 16 <TitleWithCircle title="合同信息" style="margin-bottom: 20px;" />
17 - <mbadd v-if="isshow" ref="rulesallForm" :list1="list1" /> 17 + <mbadd v-if="isshow" ref="rulesallForm" :list1="list1" :isdel="isdel" />
18 <div style="margin-top: 20px;margin-left: 65px;"> 18 <div style="margin-top: 20px;margin-left: 65px;">
19 <el-button @click="close()" class="buttonHover" style="color: #606266;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button> 19 <el-button @click="close()" class="buttonHover" style="color: #606266;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
20 <el-button @click="add()" style="background-color: #3F9B6A;color: #fff;">确定</el-button> 20 <el-button @click="add()" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
@@ -125,6 +125,10 @@ import { @@ -125,6 +125,10 @@ import {
125 type: Object, 125 type: Object,
126 default: {} 126 default: {}
127 }, 127 },
  128 + isdel: {
  129 + type: String,
  130 + default:''
  131 + },
128 contractChangeReason: { 132 contractChangeReason: {
129 type: String, 133 type: String,
130 default: '' 134 default: ''
admin-web-master/src/components/change/mbadd.vue
@@ -132,7 +132,7 @@ @@ -132,7 +132,7 @@
132 132
133 </el-table-column> 133 </el-table-column>
134 134
135 - <el-table-column label="操作" v-if="!iscopy"> 135 + <el-table-column label="操作" v-if="!iscopy && isdel == ''">
136 <template slot-scope="scope"> 136 <template slot-scope="scope">
137 <div @click="MingDelete(scope.$index)" class="tableBtn greens">删除</div> 137 <div @click="MingDelete(scope.$index)" class="tableBtn greens">删除</div>
138 </template> 138 </template>
@@ -171,6 +171,10 @@ @@ -171,6 +171,10 @@
171 zy 171 zy
172 }, 172 },
173 props: { 173 props: {
  174 + isdel: {
  175 + type: String,
  176 + default:''
  177 + },
174 list1: { 178 list1: {
175 type: Array, 179 type: Array,
176 default: [] 180 default: []
admin-web-master/src/components/merchantInformation/index.vue
@@ -177,7 +177,8 @@ @@ -177,7 +177,8 @@
177 }, 177 },
178 methods: { 178 methods: {
179 minSev() { 179 minSev() {
180 - 180 + let that = this
  181 + console.error(this.info)
181 // return 182 // return
182 cerePlatformMerchantedit({ 183 cerePlatformMerchantedit({
183 ...this.info, 184 ...this.info,
@@ -190,6 +191,7 @@ @@ -190,6 +191,7 @@
190 message: '处理成功', 191 message: '处理成功',
191 type: 'success' 192 type: 'success'
192 }) 193 })
  194 + that.setmsg()
193 this.info.checkState = this.radio 195 this.info.checkState = this.radio
194 this.$emit('removeonaction', '1') 196 this.$emit('removeonaction', '1')
195 } else { 197 } else {
@@ -200,6 +202,18 @@ @@ -200,6 +202,18 @@
200 } 202 }
201 }) 203 })
202 }, 204 },
  205 + async setmsg() {
  206 + let info = {
  207 + type:'通知消息',
  208 + phone:this.info.phone,
  209 + content:{
  210 + type:'1',
  211 + title:this.radio=='2'?'商家审核已通过':this.radio=='3'?'商家审核已驳回':'商家',
  212 + content:this.checkOpinion
  213 + },
  214 + }
  215 + await this.$setmsg(info);
  216 + },
203 changetype(){ 217 changetype(){
204 this.xiangTab= 'first' 218 this.xiangTab= 'first'
205 this.$emit('removeonaction', '1') 219 this.$emit('removeonaction', '1')
admin-web-master/src/components/resourceCommodity/index.vue
@@ -52,11 +52,11 @@ @@ -52,11 +52,11 @@
52 <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingGreenwaySection) || '无'}}</div> 52 <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingGreenwaySection) || '无'}}</div>
53 </el-form-item> 53 </el-form-item>
54 </el-col> 54 </el-col>
55 - <el-col :span="8">  
56 - <el-form-item label="所属公园/步道" prop="belongingParkTrail">  
57 - <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingParkTrail) || '无'}}</div>  
58 - </el-form-item>  
59 - </el-col> 55 + <el-col :span="8">
  56 + <el-form-item label="所属公园/步道" prop="belongingParkTrail">
  57 + <div class="duiqi">{{getLvdaoNameByCode(editbgid.belongingParkTrail) || '无'}}</div>
  58 + </el-form-item>
  59 + </el-col>
60 <el-col :span="8"> 60 <el-col :span="8">
61 <el-form-item label="门牌号" prop="houseNumber"> 61 <el-form-item label="门牌号" prop="houseNumber">
62 <div class="duiqi">{{editbgid.houseNumber || '无'}}</div> 62 <div class="duiqi">{{editbgid.houseNumber || '无'}}</div>
@@ -258,20 +258,45 @@ @@ -258,20 +258,45 @@
258 </div> 258 </div>
259 </div> 259 </div>
260 </el-tab-pane> 260 </el-tab-pane>
261 - <!-- <el-tab-pane label="人流情况" name="fourth" v-if="edit">  
262 - <div style="margin-top: 30px;" class="editcss">  
263 - <div class="titles">  
264 - 人流量情况  
265 - </div>  
266 - </div>  
267 - </el-tab-pane>  
268 - <el-tab-pane label="物业维护记录" name="five" v-if="edit">  
269 - <div style="margin-top: 30px;" class="editcss">  
270 - <div class="titles">  
271 - 物业维护记录  
272 - </div>  
273 - </div>  
274 - </el-tab-pane> --> 261 + <el-tab-pane label="店铺信息" name="fourth" v-if="dpinfo">
  262 + <div style="margin-top: 30px;" class="editcss">
  263 + <TitleWithCircle title="基础信息" />
  264 + <div style="padding: 20px;">
  265 + <el-form :model="editbgid" ref="ruleForm" label-width="120px" class="demo-ruleForm">
  266 + <el-row :gutter="20">
  267 + <el-col :span="8">
  268 + <el-form-item label="店铺名称" prop="shopName">
  269 + <div class="duiqi">{{dpinfo.shopName}}</div>
  270 + </el-form-item>
  271 + </el-col>
  272 + <el-col :span="8">
  273 + <el-form-item label="营业时间" prop="businessHours">
  274 + <div class="duiqi">{{dpinfo.businessHours}}</div>
  275 + </el-form-item>
  276 + </el-col>
  277 + <el-col :span="8">
  278 + <el-form-item label="联系电话" prop="contactNumber">
  279 + <div class="duiqi">{{dpinfo.contactNumber}}</div>
  280 + </el-form-item>
  281 + </el-col>
  282 + <el-col :span="8">
  283 + <el-form-item label="位置描述" prop="locationDescription">
  284 + <div class="duiqi">{{dpinfo.locationDescription}}</div>
  285 + </el-form-item>
  286 + </el-col>
  287 + </el-row>
  288 + <el-form-item label="店铺介绍" prop="shopDescription">
  289 + <div class="duiqi">{{dpinfo.shopDescription}}</div>
  290 + </el-form-item>
  291 + <el-form-item label="店内照片" prop="shopPhotos">
  292 + <div style="display: flex;">
  293 + <allimg v-if="item" :src="item" fit="contain" v-for="item in dpinfo.shopPhotos.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
  294 + </div>
  295 + </el-form-item>
  296 + </el-form>
  297 + </div>
  298 + </div>
  299 + </el-tab-pane>
275 </el-tabs> 300 </el-tabs>
276 </div> 301 </div>
277 <div v-show="type == '2'"> 302 <div v-show="type == '2'">
@@ -324,7 +349,8 @@ @@ -324,7 +349,8 @@
324 cereBusinessPlan, 349 cereBusinessPlan,
325 cereBusinessOperationqueryByPage, 350 cereBusinessOperationqueryByPage,
326 cereContractInformation, 351 cereContractInformation,
327 - resourcesFindPlan 352 + resourcesFindPlan,
  353 + cereAssetShopInformationqueryByPage
328 } from '@/api/newly'; 354 } from '@/api/newly';
329 import newmap from "@/components/newmap/index"; 355 import newmap from "@/components/newmap/index";
330 import { 356 import {
@@ -334,6 +360,9 @@ @@ -334,6 +360,9 @@
334 lvdaoduan, 360 lvdaoduan,
335 } from '@/api/information.js'; 361 } from '@/api/information.js';
336 import allimg from '@/components/chakan/allimg.vue'; 362 import allimg from '@/components/chakan/allimg.vue';
  363 + import {
  364 + contractGetAllnew
  365 + } from '@/api/manage.js'
337 export default { 366 export default {
338 components: { 367 components: {
339 TitleWithCircle, 368 TitleWithCircle,
@@ -380,10 +409,11 @@ @@ -380,10 +409,11 @@
380 datalist: [], 409 datalist: [],
381 datalist1:[], 410 datalist1:[],
382 datalistxsj:[], 411 datalistxsj:[],
383 - lvdaoList:[] 412 + lvdaoList:[],
  413 + dpinfo:null
384 } 414 }
385 }, 415 },
386 - created() { 416 + async created() {
387 417
388 console.error(this.editbgid) 418 console.error(this.editbgid)
389 if (this.editbgid.id) { 419 if (this.editbgid.id) {
@@ -416,11 +446,18 @@ @@ -416,11 +446,18 @@
416 this.getAllxsj() 446 this.getAllxsj()
417 this.getAllzl() 447 this.getAllzl()
418 } 448 }
419 - this.getAll() 449 + const res = await contractGetAllnew({pageNumber: 0, pageSize:1,shopNumber:'sp' + this.editbgid.id,dataStatus:'1'})
  450 + if(res.data.content.length>0) {
  451 + const res1 = await cereAssetShopInformationqueryByPage({"pageNumber":0,"pageSize":10,"contractId":res.data.content[0].id})
  452 + if(res1.data.content.length>0){
  453 + this.dpinfo = res1.data.content[0]
  454 + }
  455 + console.log('=============1234567')
  456 + console.log(this.dpinfo)
  457 + }
  458 + this.getAll()
420 }, 459 },
421 -  
422 computed: { 460 computed: {
423 -  
424 }, 461 },
425 methods: { 462 methods: {
426 async getAll(){ 463 async getAll(){
admin-web-master/src/views/rent/audit/index.vue
@@ -123,7 +123,7 @@ @@ -123,7 +123,7 @@
123 </div> 123 </div>
124 124
125 <div style="padding: 20px 20px 20px 0;"> 125 <div style="padding: 20px 20px 20px 0;">
126 - <add :info="formInline" @removeonaction="removeonaction"></add> 126 + <add :info="formInline" @removeonaction="removeonaction" :isdel="'1'"></add>
127 </div> 127 </div>
128 </div> 128 </div>
129 <div class="zhuti" v-if="onaction == '3'"> 129 <div class="zhuti" v-if="onaction == '3'">
lvdao-miniapp/App.vue
@@ -6,12 +6,27 @@ export default { @@ -6,12 +6,27 @@ export default {
6 // const host = 'https://zhld.028wlkj.com:49008/cdwlMall' 6 // const host = 'https://zhld.028wlkj.com:49008/cdwlMall'
7 // let c1 = host.split('cdwlMall')[0]; 7 // let c1 = host.split('cdwlMall')[0];
8 // console.error(c1); 8 // console.error(c1);
  9 + let info = {
  10 + // phone:uni.getStorageSync('user').phone,
  11 + phone:'18121815598',
  12 + }
  13 + let that = this
  14 + // setInterval(() => {
  15 + // that.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{...info},1).then(res => {
  16 + // console.error(res)
  17 + // getApp().globalData.MessageNum = res.data
  18 + // that.$forceUpdate()
  19 + // })
  20 + // }, 6000)
9 }, 21 },
10 onShow: function() { 22 onShow: function() {
11 23
12 }, 24 },
13 onHide: function() { 25 onHide: function() {
14 console.log('App Hide'); 26 console.log('App Hide');
  27 + },
  28 + globalData: {
  29 + MessageNum:0
15 } 30 }
16 }; 31 };
17 </script> 32 </script>
lvdao-miniapp/components/tabbar/tabbar.vue
@@ -45,6 +45,7 @@ @@ -45,6 +45,7 @@
45 codeheight: 0, 45 codeheight: 0,
46 isOverall: 0, 46 isOverall: 0,
47 phoneModel: '', 47 phoneModel: '',
  48 + nums:getApp().globalData.MessageNum
48 }; 49 };
49 }, 50 },
50 props:{ 51 props:{
lvdao-miniapp/manifest.json
1 { 1 {
2 "name" : "绿道", 2 "name" : "绿道",
3 - "appid" : "__UNI__F034047", 3 + "appid" : "__UNI__189D96A",
4 "description" : "", 4 "description" : "",
5 "versionName" : "1.0.2", 5 "versionName" : "1.0.2",
6 "versionCode" : "100", 6 "versionCode" : "100",
lvdao-miniapp/pages/message/message.vue
@@ -38,6 +38,31 @@ @@ -38,6 +38,31 @@
38 <view class="icon-more">{{formatDateTime(tableList[0]?tableList[0].createdAt:'')}}</view> 38 <view class="icon-more">{{formatDateTime(tableList[0]?tableList[0].createdAt:'')}}</view>
39 </view> 39 </view>
40 </view> 40 </view>
  41 + <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=通知消息')">
  42 + <view class="icon-data">
  43 + <view class="icon">
  44 + <image :src="$imgUrl('/xtxx.png')" mode=""></image>
  45 + </view>
  46 + <view class="data">
  47 + <view class="title">
  48 + <text>通知消息</text>
  49 + </view>
  50 +
  51 + <view class="describe">
  52 + <view v-if="tzlist.length>0" >
  53 + <view v-if="tzlist[0].content.type == '2'">{{tzlist[0].content.title}}【图片】</view>
  54 + <view v-else >{{tzlist[0].content.title}}</view>
  55 + </view>
  56 + <view v-else >暂无</view>
  57 + <!-- <text>{{?tableList[0].content:''}}</text> -->
  58 + </view>
  59 + </view>
  60 + </view>
  61 + <view class="more">
  62 + <view class="more-num" v-if="tzlist.length>0">{{tzlist.length}}</view>
  63 + <view class="icon-more" v-if="tzlist.length>0">{{formatDateTime(tzlist[0]?tzlist[0].createTime:'')}}</view>
  64 + </view>
  65 + </view>
41 <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=租赁提醒')"> 66 <view class="list" @click="gopath('/pagesA/procedureList/procedureList?type=租赁提醒')">
42 <view class="icon-data"> 67 <view class="icon-data">
43 <view class="icon"> 68 <view class="icon">
@@ -87,7 +112,8 @@ @@ -87,7 +112,8 @@
87 pageSize: 2, 112 pageSize: 2,
88 receiverMerchant:'' 113 receiverMerchant:''
89 }, 114 },
90 - zllist:[] 115 + zllist:[],
  116 + tzlist:[]
91 } 117 }
92 }, 118 },
93 119
@@ -125,14 +151,13 @@ @@ -125,14 +151,13 @@
125 methods:{ 151 methods:{
126 getmsg() { 152 getmsg() {
127 this.zllist = [] 153 this.zllist = []
  154 + this.tzlist = []
128 let info = { 155 let info = {
129 // phone:uni.getStorageSync('user').phone, 156 // phone:uni.getStorageSync('user').phone,
130 phone:'18121815598', 157 phone:'18121815598',
131 isRead:'0' 158 isRead:'0'
132 } 159 }
133 - this.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{...info},1).then(res => {  
134 - // console.error(res)  
135 - }) 160 +
136 this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'租赁提醒'},1).then(res => { 161 this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'租赁提醒'},1).then(res => {
137 let obj = res.data.data 162 let obj = res.data.data
138 for(let prop in obj) { 163 for(let prop in obj) {
@@ -141,7 +166,18 @@ @@ -141,7 +166,18 @@
141 this.zllist.push(obj[prop][0]) 166 this.zllist.push(obj[prop][0])
142 } 167 }
143 } 168 }
144 - console.error(this.zllist) 169 + this.zllist.reverse()
  170 + })
  171 + this.$http.sendRequest('/cereMessage/viewMessage', 'POST',{...info,messageType:'通知消息'},1).then(res => {
  172 + let obj = res.data.data
  173 + for(let prop in obj) {
  174 + if(obj.hasOwnProperty(prop)) { // 确保只访问实例上的属性,不包括继承的
  175 + obj[prop][0].content = JSON.parse(obj[prop][0].content)
  176 + this.tzlist.push(obj[prop][0])
  177 + }
  178 + }
  179 + this.tzlist.reverse()
  180 + console.error(this.tzlist)
145 }) 181 })
146 }, 182 },
147 formatDateTime(dateTimeString) { 183 formatDateTime(dateTimeString) {
lvdao-miniapp/pagesA/procedureList/procedureList.vue
@@ -54,6 +54,7 @@ @@ -54,6 +54,7 @@
54 this.tableList.push(obj[prop][0]) 54 this.tableList.push(obj[prop][0])
55 } 55 }
56 } 56 }
  57 + this.tableList.reverse()
57 console.error(this.tableList) 58 console.error(this.tableList)
58 }) 59 })
59 // this.tableList = JSON.parse(option.item) 60 // this.tableList = JSON.parse(option.item)
lvdao-miniapp/utils/request.js
@@ -21,7 +21,7 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; { @@ -21,7 +21,7 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
21 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; 21 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url;
22 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; 22 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url;
23 23
24 - bases = 'http://128.10.249.41:9003'+ url; 24 + // bases = 'http://128.10.249.41:9003'+ url;
25 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url; 25 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url;
26 26
27 bases = c1 + 'cdwlMall/meserver/admin-server' + url; 27 bases = c1 + 'cdwlMall/meserver/admin-server' + url;
@@ -30,8 +30,8 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; { @@ -30,8 +30,8 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
30 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; 30 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url;
31 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url; 31 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/api' + url;
32 // bases = 'http://128.10.249.22:9003:9007' + url; 32 // bases = 'http://128.10.249.22:9003:9007' + url;
33 - bases = 'http://128.10.249.41:9007' + url;  
34 - // bases = c1 + 'cdwlMall/meserver/api' + url; 33 + // bases = 'http://128.10.249.41:9007' + url;
  34 + bases = c1 + 'cdwlMall/meserver/api' + url;
35 35
36 }else{ 36 }else{
37 // bases = 'http://128.10.249.22:9004' + url; 37 // bases = 'http://128.10.249.22:9004' + url;
@@ -39,7 +39,7 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; { @@ -39,7 +39,7 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
39 // bases = 'http://172.16.61.123/cdwlMall/business-server' + url; 39 // bases = 'http://172.16.61.123/cdwlMall/business-server' + url;
40 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url; 40 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/business-server' + url;
41 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url; 41 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/business-server' + url;
42 - bases = 'http://128.10.249.41:9004' + url; 42 + // bases = 'http://128.10.249.41:9004' + url;
43 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url; 43 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/business-server' + url;
44 bases = c1 + 'cdwlMall/business-server' + url; 44 bases = c1 + 'cdwlMall/business-server' + url;
45 45