Commit c4af7f827a60004c74a5c687598f1403349b066c
1 parent
e122edcf
1
Showing
17 changed files
with
376 additions
and
338 deletions
admin-web-master/dist.zip deleted
No preview for this file type
admin-web-master/src/api/manage.js
admin-web-master/src/components/add/addht.vue
admin-web-master/src/utils/request.js
| ... | ... | @@ -16,11 +16,11 @@ let hostall = window.location.href; |
| 16 | 16 | let baseURL = '' |
| 17 | 17 | if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { |
| 18 | 18 | |
| 19 | - baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; | |
| 19 | + // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; | |
| 20 | 20 | // baseURL = 'http://128.10.249.11:9003'; |
| 21 | 21 | |
| 22 | 22 | // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; |
| 23 | - // baseURL = 'http://192.168.2.225:9003'; | |
| 23 | + baseURL = 'http://128.10.250.209:9003'; | |
| 24 | 24 | |
| 25 | 25 | } else { |
| 26 | 26 | console.error('---------------------') | ... | ... |
admin-web-master/src/views/shopRental/manage/index.vue
| ... | ... | @@ -87,6 +87,9 @@ |
| 87 | 87 | <span v-if='scope.row.dataStatus == 1'>使用中</span> |
| 88 | 88 | <span v-else-if='scope.row.dataStatus == 2'>往期合同</span> |
| 89 | 89 | <span v-else-if='scope.row.dataStatus == 3'>已终止</span> |
| 90 | + <span v-else-if='scope.row.dataStatus == 4'>待发起</span> | |
| 91 | + <span v-else-if='scope.row.dataStatus == 5'>待审核</span> | |
| 92 | + <span v-else-if='scope.row.dataStatus == 6'>已拒绝</span> | |
| 90 | 93 | <span v-else>-</span> |
| 91 | 94 | </template> |
| 92 | 95 | </el-table-column> |
| ... | ... | @@ -94,7 +97,7 @@ |
| 94 | 97 | <el-table-column label="操作" min-width="150" fixed="right"> |
| 95 | 98 | <template slot-scope="scope"> |
| 96 | 99 | <div @click="details(scope.row)" class="tableBtn greens">查看</div> |
| 97 | - <!-- <div @click="OA(scope.row)" class="tableBtn greens">OA</div> --> | |
| 100 | + <div v-if='scope.row.dataStatus == 4' @click="OA(scope.row)" class="tableBtn greens">OA</div> | |
| 98 | 101 | <div v-if='scope.row.dataStatus == 1' @click="removeinfo(scope.row,'合同变更')" class="tableBtn greens">合同变更</div> |
| 99 | 102 | <div v-if='scope.row.dataStatus == 1' @click="removeinfo(scope.row,'合同续约')" class="tableBtn greens">合同续约</div> |
| 100 | 103 | <div v-if='scope.row.dataStatus == 1' @click="removeinfozz(scope.row,'合同终止')" class="tableBtn greens">合同终止</div> |
| ... | ... | @@ -163,6 +166,7 @@ |
| 163 | 166 | <script> |
| 164 | 167 | import { |
| 165 | 168 | contractGetAllnew, |
| 169 | + edit | |
| 166 | 170 | } from '@/api/manage.js' |
| 167 | 171 | import add from '@/components/add/addht.vue' |
| 168 | 172 | import addremove from '@/components/add/addremoveht.vue' |
| ... | ... | @@ -216,30 +220,45 @@ |
| 216 | 220 | fd.append('fileBytes', file); // 假设 formData 包含文件 |
| 217 | 221 | fd.append('fileName', '"合同.txt"'); |
| 218 | 222 | console.log(fd); |
| 219 | - let c1 = { | |
| 220 | - "title":"这是一个流程", | |
| 223 | + let c1 ={ | |
| 224 | + "account": "zsfu-test", | |
| 225 | + "password": "000009", | |
| 226 | + "accessKey": "HfHJ1cDCX4PuwSC5hoxQcvJCdvnNFG0C", | |
| 227 | + "secretAccessKey": "tO5ebUtKpO60o4E90bfUBvl145R49Zg4", | |
| 228 | + "id": "5c19f869063e57766b127177143e5c5d", | |
| 229 | + "sponsor": "1834057529668276224", | |
| 230 | + "reviewers": ["1858710592190291968"], | |
| 221 | 231 | "files": [ |
| 222 | 232 | { |
| 223 | 233 | fileName:'合同.txt', |
| 224 | 234 | fileBytes:base64Data |
| 225 | - // fileBytes:'Y4EdWbGGg6gsD4eHlUR3aUmr0Xz050KI' | |
| 226 | 235 | } |
| 227 | 236 | ], |
| 228 | - "reviewers": ["1768540680428331008"], | |
| 229 | - // "account":"zsfu-test", | |
| 230 | - // "password":"000009", | |
| 231 | - // "accessKey":"HfHJ1cDCX4PuwSC5hox0cvJCdvnNFGOC", | |
| 232 | - // "secretAccessKey":"t05ebUtKp06004E90bfUBv1145R49Zg4", | |
| 233 | - // "sponsor":"1858710592190291968", | |
| 234 | - // // "id":"5c19f869063e57766b127177143e5c5d", | |
| 235 | - // "isonData":"这里是外部系统需要传递数据集合", | |
| 236 | - // "messageId":"外部系统唯一id", | |
| 237 | - // "reviewers":['1768540680428331008','1768539930201563136'] | |
| 238 | - } | |
| 237 | + "title": "这是一个流程" | |
| 238 | + } | |
| 239 | 239 | // c1.files.push(fd) |
| 240 | 240 | console.log(c1); |
| 241 | 241 | general(c1).then(res => { |
| 242 | - | |
| 242 | + console.log(res); | |
| 243 | + let data = JSON.parse(res.data) | |
| 244 | + if(data.code == '0'){ | |
| 245 | + this.$message({ | |
| 246 | + type: 'success', | |
| 247 | + message: '发起成功' | |
| 248 | + }) | |
| 249 | + edit({ | |
| 250 | + contractNumber: row.contractNumber, | |
| 251 | + dataStatus: '5', | |
| 252 | + }).then(res1 => { | |
| 253 | + console.error(res1) | |
| 254 | + this.resetting() | |
| 255 | + }) | |
| 256 | + } else { | |
| 257 | + this.$message({ | |
| 258 | + type: 'error', | |
| 259 | + message: data.message | |
| 260 | + }) | |
| 261 | + } | |
| 243 | 262 | }) |
| 244 | 263 | return |
| 245 | 264 | // URL.createObjectURL(this.$baseURL+row.appendicesContract) | ... | ... |
lvdao-miniapp/pages/propertyPay/payRecord/payRecord.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="page"> |
| 3 | 3 | <view class="title-top"> |
| 4 | - <div class="left"> | |
| 5 | - <text @click="show = true">2024年<u-icon name="arrow-down"></u-icon></text> | |
| 4 | + <div class="left" @click="show = true"> | |
| 5 | + <text>2024年<u-icon name="arrow-down"></u-icon></text> | |
| 6 | + <u-icon name="arrow-down" style="font-size: 24rpx;margin-left: 10rpx;" /> | |
| 6 | 7 | <u-picker v-model="show" mode="time" :params="{year: true}"></u-picker> |
| 7 | 8 | </div> |
| 8 | - <div class="right"><text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />6451.00</text></div> | |
| 9 | + <div class="right"><u-icon name="rmb" style="font-size: 24rpx;" /><text class="price">6451.00</text></div> | |
| 9 | 10 | </view> |
| 10 | 11 | <view class="record-list"> |
| 11 | 12 | <view class="record-item" v-for="(item, index) in dataList" :key="index" @click="toDetail"> |
| 12 | 13 | <view class="info-title"> |
| 13 | 14 | <view class="title">7月</view> |
| 14 | - <view class="right"><text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />6451.00</text></view> | |
| 15 | + <view class="right"><u-icon name="rmb" style="font-size: 24rpx;" /><text class="price">6451.00</text></view> | |
| 15 | 16 | </view> |
| 16 | 17 | <view class="info-items" v-for="(v, i) in item.children" :key="i"> |
| 17 | 18 | <view class="info-item"> |
| 18 | - <view class="left title">支付订单编号</view> | |
| 19 | - <view class="right"><text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />500.00</text></view> | |
| 19 | + <view class="left title">{{item.orderNumber}}</view> | |
| 20 | + <view class="right"><u-icon name="rmb" style="font-size: 24rpx;" /><text class="price">500.00</text></view> | |
| 20 | 21 | </view> |
| 21 | 22 | <view class="info-item"> |
| 22 | 23 | <view class="left">物业费、服务费、卫生费</view> |
| ... | ... | @@ -47,7 +48,21 @@ |
| 47 | 48 | ] |
| 48 | 49 | } |
| 49 | 50 | }, |
| 51 | + onLoad() { | |
| 52 | + this.gain() | |
| 53 | + }, | |
| 50 | 54 | methods: { |
| 55 | + gain() { | |
| 56 | + this.$http.sendRequest('cerePaymentInfo/queryByPage', 'POST',{paymentAccount:uni.getStorageSync('user').phone, "pageSize":10, | |
| 57 | + "pageNumber":0, | |
| 58 | + "year":"2025", | |
| 59 | + "month":"3"} ,1).then(res => { | |
| 60 | + this.dataList = res.data.data.content.map(item=>{ | |
| 61 | + return item | |
| 62 | + }) | |
| 63 | + console.error(this.dataList) | |
| 64 | + }) | |
| 65 | + }, | |
| 51 | 66 | toDetail() { |
| 52 | 67 | uni.navigateTo({ |
| 53 | 68 | url: '/pages/propertyPay/payDetail/payDetail' | ... | ... |
lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.scss
| ... | ... | @@ -54,6 +54,8 @@ |
| 54 | 54 | padding: 20rpx 30rpx; |
| 55 | 55 | border-bottom: #f6f6f6 solid 1rpx; |
| 56 | 56 | align-items: center; |
| 57 | + font-size: 24rpx; | |
| 58 | + justify-content: space-between; | |
| 57 | 59 | .list-item { |
| 58 | 60 | flex: 1; |
| 59 | 61 | } |
| ... | ... | @@ -62,7 +64,7 @@ |
| 62 | 64 | display: flex; |
| 63 | 65 | align-items: center; |
| 64 | 66 | .img { |
| 65 | - width: 72rpx; | |
| 67 | + // width: 72rpx; | |
| 66 | 68 | height: 72rpx; |
| 67 | 69 | border-radius: 50%; |
| 68 | 70 | overflow: hidden; |
| ... | ... | @@ -82,7 +84,7 @@ |
| 82 | 84 | .info-item { |
| 83 | 85 | font-size: 24rpx; |
| 84 | 86 | color: #808080; |
| 85 | - margin-top: 20rpx; | |
| 87 | + margin-top: 10rpx; | |
| 86 | 88 | } |
| 87 | 89 | } |
| 88 | 90 | } | ... | ... |
lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue
| ... | ... | @@ -2,111 +2,114 @@ |
| 2 | 2 | <view class="page"> |
| 3 | 3 | <view class="search-box"> |
| 4 | 4 | <view> |
| 5 | - <u-input v-model="value" type="select" border @click="show = true" style="background-color: #F7F7F7;"/> | |
| 5 | + <u-input v-model="value" type="select" border @click="show = true" style="background-color: #F7F7F7;" placeholder="请选择店铺"/> | |
| 6 | 6 | <u-select v-model="show" :list="list1" @confirm="confirm"></u-select> |
| 7 | 7 | </view> |
| 8 | 8 | <view class="search-total"> |
| 9 | 9 | <view class="left"> |
| 10 | - <text class="price-total"><u-icon name="rmb" style="font-size: 24rpx;" />100.00</text> | |
| 11 | - <text>(含代缴费)</text> | |
| 10 | + <text class="price-total"><u-icon name="rmb" style="font-size: 24rpx;" />{{allnum}}</text> | |
| 11 | + <text style="margin-left: 20rpx;">(含代缴费)</text> | |
| 12 | 12 | </view> |
| 13 | 13 | <div class="right" @click='toDetail'> |
| 14 | - <text>缴费记录<u-icon name="arrow-right" style="margin-left: 8rpx;"></u-icon></text> | |
| 14 | + <text>缴费记录</text> | |
| 15 | + <u-icon name="arrow-right" style="margin-left: 8rpx;"></u-icon> | |
| 15 | 16 | </div> |
| 16 | 17 | </view> |
| 17 | 18 | </view> |
| 18 | 19 | <!-- 记录列表 --> |
| 19 | - <view class="record-list"> | |
| 20 | + <view class="record-list" v-if="recordList.length>0"> | |
| 20 | 21 | <view class="record-list-box" v-for="(item,index) in recordList" :key="index"> |
| 21 | 22 | <u-checkbox-group class="list-group" style="width: 100%;"> |
| 22 | - <view class="list"> | |
| 23 | - <u-checkbox v-model="recordList[index].gouxuan" shape="circle" :label-disabled="false" /> | |
| 24 | - <view class="list-item"> | |
| 25 | - <view class="list-info"> | |
| 26 | - <view class="img"> | |
| 27 | - <image :src="$imgUrl('/img/2.jpg')"></image> | |
| 28 | - </view> | |
| 29 | - <view class="info-items"> | |
| 30 | - <view class="info-title">{{item.name}}:<text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />100.00</text></view> | |
| 31 | - <view class="info-item"> | |
| 32 | - <text>单价:¥15</text> | |
| 33 | - <text>费率:100%</text> | |
| 34 | - </view> | |
| 23 | + <view class="list"> | |
| 24 | + <u-checkbox @change="e=>quanxuanitem(e,index)" v-model="item.isshowxz" shape="circle" :label-disabled="false" /> | |
| 25 | + <view class="list-item"> | |
| 26 | + <view class="list-info"> | |
| 27 | + <view class="img"> | |
| 28 | + <image v-if="item.itemName == '物业费'" src="@/static/icon/icon11.png" mode="heightFix"></image> | |
| 29 | + <image v-else-if="item.itemName == '卫生费'" src="@/static/icon/icon12.png" mode="heightFix"></image> | |
| 30 | + <image v-else-if="item.itemName == '水费'" src="@/static/icon/icon13.png" mode="heightFix"></image> | |
| 31 | + <image v-else-if="item.itemName == '电费'" src="@/static/icon/icon14.png" mode="heightFix"></image> | |
| 32 | + <image v-else-if="item.itemName == '燃气费'" src="@/static/icon/icon15.png" mode="heightFix"></image> | |
| 33 | + <image v-else src="@/static/icon/icon16.png" mode="heightFix"></image> | |
| 34 | + </view> | |
| 35 | + <view class="info-items"> | |
| 36 | + <view class="info-title">{{item.itemName}}:<text class="price"><u-icon name="rmb" | |
| 37 | + style="font-size: 24rpx;" />{{ item.itemDetailsVOList | jsitem}}</text></view> | |
| 38 | + <view class="info-item"> | |
| 39 | + <text style="margin-right: 20rpx;">单价:¥{{item.itemStandard}}</text> | |
| 40 | + <text>费率:{{item.cheapRate}}%</text> | |
| 35 | 41 | </view> |
| 36 | 42 | </view> |
| 37 | 43 | </view> |
| 38 | - <view @click="recordList[index].showItem = !recordList[index].showItem"><u-icon name="arrow-right"></u-icon></view> | |
| 39 | 44 | </view> |
| 40 | - <view class="list" v-if="recordList[index].showItem"> | |
| 41 | - <u-checkbox v-model="recordList[index].gouxuan" shape="circle" :label-disabled="false" /> | |
| 42 | - <view class=""> | |
| 43 | - <view class="info-item">周期:2022.02.22 - 2022.02.22</view> | |
| 44 | - <view class="info-item"> | |
| 45 | - <text>数量:100m²</text> | |
| 46 | - <text>门店号:A5646</text> | |
| 45 | + <view><u-icon @click="changeisxl(index)" :name="item.isxl?'arrow-up':'arrow-down'"></u-icon></view> | |
| 46 | + </view> | |
| 47 | + <view v-if="item.itemDetailsVOList&& item.itemDetailsVOList.length>0 && item.isxl"> | |
| 48 | + <view class="list" v-for="(item1,index1) in item.itemDetailsVOList"> | |
| 49 | + <view style="display: flex;align-items: center;"> | |
| 50 | + <u-checkbox v-model="item1.isshowxz" shape="circle" :label-disabled="false" /> | |
| 51 | + <view class=""> | |
| 52 | + <view class="info-item">周期:{{item1.startDate}} - {{item1.endDate}}</view> | |
| 53 | + <view class="info-item" style="margin-top: 6rpx;"> | |
| 54 | + <text style="margin-right: 20rpx;">数量:{{item1.number}}{{item1.itemUnit}}</text> | |
| 55 | + <text>门店号:A5646</text> | |
| 56 | + </view> | |
| 47 | 57 | </view> |
| 48 | 58 | </view> |
| 49 | 59 | <view class=""> |
| 50 | - <text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />20.00</text> | |
| 60 | + <text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />¥{{item1.payPrice}}</text> | |
| 51 | 61 | </view> |
| 52 | 62 | </view> |
| 63 | + </view> | |
| 53 | 64 | </u-checkbox-group> |
| 54 | 65 | </view> |
| 55 | 66 | </view> |
| 67 | + <view v-if="recordList.length==0" style="text-align: center;margin-top: 50rpx;" class="tit1">请选择店铺</view> | |
| 56 | 68 | <view style="height: 120rpx;"></view> |
| 57 | 69 | <view class="page-footer"> |
| 58 | 70 | <view class="footer-buy"> |
| 59 | - <u-checkbox-group > | |
| 60 | - <u-checkbox | |
| 61 | - shape="circle" | |
| 62 | - @change="quanxuan" | |
| 63 | - v-model="showAll" | |
| 64 | - >全选</u-checkbox> | |
| 65 | - </u-checkbox-group> | |
| 71 | + <u-checkbox-group> | |
| 72 | + <u-checkbox shape="circle" @change="quanxuan" v-model="showAll">全选</u-checkbox> | |
| 73 | + </u-checkbox-group> | |
| 66 | 74 | <view class=""> |
| 67 | - 合计:<text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />100.00</text> | |
| 75 | + 合计:<text class="price"><u-icon name="rmb" style="font-size: 24rpx;" />{{allcknum}}</text> | |
| 68 | 76 | </view> |
| 69 | 77 | <u-button type="success" style="margin: 0 10rpx;" @click="joinShow = true">去支付</u-button> |
| 70 | 78 | </view> |
| 71 | 79 | </view> |
| 72 | - <u-popup class="userForm" v-model="joinShow" mode="center" :closeable="true" width="80%" > | |
| 73 | - <u-form class="form-box" ref="uForm" :label-width="120" > | |
| 80 | + <u-popup class="userForm" v-model="joinShow" mode="center" :closeable="true" width="80%"> | |
| 81 | + <u-form class="form-box" ref="uForm" :label-width="120"> | |
| 74 | 82 | <view style="padding: 30rpx;"> |
| 75 | 83 | <view class="title">请选择支付方式</view> |
| 76 | 84 | <u-radio-group v-model="fangshi" @change="radioGroupChange" :wrap="true"> |
| 77 | - <u-radio | |
| 78 | - @change="radioChange" | |
| 79 | - v-for="(item, index) in list" :key="index" | |
| 80 | - :name="item.name" | |
| 81 | - :disabled="item.disabled" | |
| 82 | - style="padding: 5px 0;" | |
| 83 | - > | |
| 84 | - {{item.name}} | |
| 85 | - </u-radio> | |
| 86 | - </u-radio-group> | |
| 87 | - <view class="" v-if="fangshi == 'H5支付'"> | |
| 88 | - | |
| 89 | - </view> | |
| 90 | - <view class="" v-else> | |
| 91 | - <image :src="$imgUrl('/erwm.jpg')" mode="widthFix"style="width: 80%;"/> | |
| 92 | - | |
| 93 | - | |
| 94 | - </view> | |
| 85 | + <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name" | |
| 86 | + :disabled="item.disabled" style="padding: 5px 0;"> | |
| 87 | + {{item.name}} | |
| 88 | + </u-radio> | |
| 89 | + </u-radio-group> | |
| 90 | + <view class="" v-if="fangshi == 'H5支付'"> | |
| 91 | + | |
| 92 | + </view> | |
| 93 | + <view class="" v-else> | |
| 94 | + <image :src="$imgUrl('/erwm.jpg')" mode="widthFix" style="width: 80%;" /> | |
| 95 | + | |
| 96 | + | |
| 97 | + </view> | |
| 95 | 98 | <!-- <u-form-item label="微信小程序支付"> |
| 96 | 99 | |
| 97 | 100 | </u-form-item> |
| 98 | 101 | <u-form-item label="付款码扫码支付"></u-form-item> --> |
| 99 | 102 | <u-button type="success" @click="submit">提交</u-button> |
| 100 | - | |
| 103 | + | |
| 101 | 104 | </view> |
| 102 | - | |
| 105 | + | |
| 103 | 106 | </u-form> |
| 104 | - | |
| 107 | + | |
| 105 | 108 | </u-popup> |
| 106 | - | |
| 109 | + | |
| 107 | 110 | <!-- <u-loading :show="true" size="60" style="position: absolute; top:80%;left: ;" color="red"></u-loading> --> |
| 108 | 111 | </view> |
| 109 | - | |
| 112 | + | |
| 110 | 113 | </template> |
| 111 | 114 | |
| 112 | 115 | <script> |
| ... | ... | @@ -116,285 +119,275 @@ |
| 116 | 119 | show: false, |
| 117 | 120 | joinShow: false, |
| 118 | 121 | value: '', |
| 119 | - list1: [{ value: '0', label: '全部' },{ value: '1', label: '物业费' }, { value: '2', label: '水费' },{ value: '3', label: '卫生费' }, { value: '4', label: '燃气费' },{ value: '5', label: '电费' } ], | |
| 120 | - checked: [], | |
| 121 | - recordList:[ | |
| 122 | - { | |
| 123 | - img: '', | |
| 124 | - name: '物业费', | |
| 125 | - price: 15, | |
| 126 | - rate: '100%', | |
| 127 | - chilren: [], | |
| 128 | - showItem: false, | |
| 129 | - gouxuan:false | |
| 130 | - }, | |
| 131 | - { | |
| 132 | - img: '', | |
| 133 | - name: '卫生费', | |
| 134 | - price: 15, | |
| 135 | - rate: '100%', | |
| 136 | - chilren: [], | |
| 137 | - showItem: false, | |
| 138 | - gouxuan:false | |
| 139 | - }, | |
| 140 | - { | |
| 141 | - img: '', | |
| 142 | - name: '水费', | |
| 143 | - price: 15, | |
| 144 | - rate: '100%', | |
| 145 | - chilren: [], | |
| 146 | - showItem: false, | |
| 147 | - gouxuan:false | |
| 148 | - }, | |
| 149 | - { | |
| 150 | - img: '', | |
| 151 | - name: '电费', | |
| 152 | - price: 15, | |
| 153 | - rate: '100%', | |
| 154 | - chilren: [], | |
| 155 | - showItem: false, | |
| 156 | - gouxuan:false | |
| 157 | - }, | |
| 158 | - { | |
| 159 | - img: '', | |
| 160 | - name: '燃气费', | |
| 161 | - price: 15, | |
| 162 | - rate: '100%', | |
| 163 | - chilren: [], | |
| 164 | - showItem: false, | |
| 165 | - gouxuan:false | |
| 166 | - }, | |
| 167 | - ], | |
| 168 | - recordList1:[ | |
| 169 | - { | |
| 170 | - img: '', | |
| 171 | - name: '物业费', | |
| 172 | - price: 15, | |
| 173 | - rate: '100%', | |
| 174 | - chilren: [], | |
| 175 | - showItem: false, | |
| 176 | - gouxuan:false | |
| 177 | - }, | |
| 178 | - { | |
| 179 | - img: '', | |
| 180 | - name: '卫生费', | |
| 181 | - price: 15, | |
| 182 | - rate: '100%', | |
| 183 | - chilren: [], | |
| 184 | - showItem: false, | |
| 185 | - gouxuan:false | |
| 186 | - }, | |
| 187 | - { | |
| 188 | - img: '', | |
| 189 | - name: '水费', | |
| 190 | - price: 15, | |
| 191 | - rate: '100%', | |
| 192 | - chilren: [], | |
| 193 | - showItem: false, | |
| 194 | - gouxuan:false | |
| 195 | - }, | |
| 196 | - { | |
| 197 | - img: '', | |
| 198 | - name: '电费', | |
| 199 | - price: 15, | |
| 200 | - rate: '100%', | |
| 201 | - chilren: [], | |
| 202 | - showItem: false, | |
| 203 | - gouxuan:false | |
| 204 | - }, | |
| 205 | - { | |
| 206 | - img: '', | |
| 207 | - name: '燃气费', | |
| 208 | - price: 15, | |
| 209 | - rate: '100%', | |
| 210 | - chilren: [], | |
| 211 | - showItem: false, | |
| 212 | - gouxuan:false | |
| 122 | + list1: [{ | |
| 123 | + value: '0', | |
| 124 | + label: '全部' | |
| 125 | + }, { | |
| 126 | + value: '1', | |
| 127 | + label: '物业费' | |
| 128 | + }, { | |
| 129 | + value: '2', | |
| 130 | + label: '水费' | |
| 131 | + }, { | |
| 132 | + value: '3', | |
| 133 | + label: '卫生费' | |
| 134 | + }, { | |
| 135 | + value: '4', | |
| 136 | + label: '燃气费' | |
| 137 | + }, { | |
| 138 | + value: '5', | |
| 139 | + label: '电费' | |
| 140 | + }], | |
| 141 | + recordList: [], | |
| 142 | + list: [{ | |
| 143 | + name: 'H5支付', | |
| 144 | + disabled: false | |
| 213 | 145 | }, |
| 146 | + // { | |
| 147 | + // name: '付款码扫码支付', | |
| 148 | + // disabled: false | |
| 149 | + // } | |
| 214 | 150 | ], |
| 215 | - list: [ | |
| 216 | - { | |
| 217 | - name: 'H5支付', | |
| 218 | - disabled: false | |
| 219 | - }, | |
| 220 | - // { | |
| 221 | - // name: '付款码扫码支付', | |
| 222 | - // disabled: false | |
| 223 | - // } | |
| 224 | - ], | |
| 225 | - fangshi:'H5支付', | |
| 226 | - loadShow:false, | |
| 227 | - showAll:false, | |
| 228 | - | |
| 151 | + fangshi: 'H5支付', | |
| 152 | + showAll: false, | |
| 153 | + | |
| 229 | 154 | }; |
| 230 | 155 | }, |
| 231 | - watch:{ | |
| 232 | - recordList:{ | |
| 233 | - deep:true, | |
| 234 | - handler(newVal){ | |
| 235 | - const allTrue = this.recordList.every(item => item.gouxuan) | |
| 236 | - this.showAll = allTrue | |
| 156 | + filters:{ | |
| 157 | + | |
| 158 | + jsitem(e){ | |
| 159 | + console.error(e) | |
| 160 | + let num = 0 | |
| 161 | + for (let n = 0; n < e.length; n++) { | |
| 162 | + num = num + Number(e[n].payPrice) | |
| 163 | + // if(e[n].isshowxz){ | |
| 164 | + // num = num + Number(e[n].payPrice) | |
| 165 | + // } | |
| 166 | + } | |
| 167 | + return num | |
| 168 | + } | |
| 169 | + }, | |
| 170 | + computed:{ | |
| 171 | + allnum() { | |
| 172 | + let num = 0 | |
| 173 | + for (let i = 0; i < this.recordList.length; i++) { | |
| 174 | + let list = this.recordList[i].itemDetailsVOList | |
| 175 | + for (let n = 0; n < list.length; n++) { | |
| 176 | + num = num + Number(list[n].payPrice) | |
| 177 | + } | |
| 178 | + } | |
| 179 | + return num | |
| 180 | + }, | |
| 181 | + allcknum() { | |
| 182 | + let num = 0 | |
| 183 | + for (let i = 0; i < this.recordList.length; i++) { | |
| 184 | + let list = this.recordList[i].itemDetailsVOList | |
| 185 | + for (let n = 0; n < list.length; n++) { | |
| 186 | + if(list[n].isshowxz){ | |
| 187 | + num = num + Number(list[n].payPrice) | |
| 188 | + } | |
| 189 | + } | |
| 190 | + } | |
| 191 | + return num | |
| 192 | + }, | |
| 193 | + }, | |
| 194 | + watch: { | |
| 195 | + recordList: { | |
| 196 | + deep: true, | |
| 197 | + handler(newVal) { | |
| 198 | + for (let i = 0; i < this.recordList.length; i++) { | |
| 199 | + this.recordList[i].isshowxz = this.recordList[i].itemDetailsVOList.every(item => item.isshowxz) | |
| 200 | + } | |
| 201 | + const allTrue = this.recordList.every(item => item.isshowxz) | |
| 202 | + this.showAll = allTrue | |
| 203 | + | |
| 237 | 204 | } |
| 238 | 205 | } |
| 239 | 206 | }, |
| 240 | 207 | onShow() { |
| 241 | - let shopId = { | |
| 242 | - shopId:uni.getStorageSync('shopId') || '' | |
| 243 | - } | |
| 244 | - const isLogin = uni.getStorageSync('token'); | |
| 245 | - if (isLogin =='') { | |
| 246 | - // 如果未登录,跳转到登录页面 | |
| 247 | - uni.navigateTo({ | |
| 248 | - url: '/pages/login/login' | |
| 249 | - }) | |
| 250 | - }else{ | |
| 251 | - let page={ | |
| 252 | - condition:2 | |
| 253 | - } | |
| 254 | - this.$http.sendRequest('/shop/getById', 'POST',shopId).then(res => { | |
| 255 | - if(res.data.code !="20004"){ | |
| 256 | - this.shopMsg = res.data.data | |
| 257 | - this.Islogin= false | |
| 258 | - this.$http.sendRequest('/index/index', 'POST',page).then(res => { | |
| 259 | - //成功回调 | |
| 260 | - this.tongji = res.data.data | |
| 261 | - }) | |
| 262 | - }else{ | |
| 263 | - uni.navigateTo({ | |
| 264 | - url: '/pages/login/login' | |
| 265 | - }) | |
| 266 | - } | |
| 267 | - }) | |
| 268 | - } | |
| 269 | - | |
| 208 | + let shopId = { | |
| 209 | + shopId: uni.getStorageSync('shopId') || '' | |
| 210 | + } | |
| 211 | + const isLogin = uni.getStorageSync('token'); | |
| 212 | + if (isLogin == '') { | |
| 213 | + // 如果未登录,跳转到登录页面 | |
| 214 | + uni.navigateTo({ | |
| 215 | + url: '/pages/login/login' | |
| 216 | + }) | |
| 217 | + } else { | |
| 218 | + | |
| 219 | + this.$http.sendRequest('cereAssetShopInformation/propertyQueryShopInformation', 'POST',{contactNumber:uni.getStorageSync('user').phone,pageNumber:1,pageSize:10} ,1).then(res => { | |
| 220 | + this.list1 = res.data.data.records.map(item=>{ | |
| 221 | + let c1 = { | |
| 222 | + value: item.merchantId, | |
| 223 | + label: item.shopName, | |
| 224 | + } | |
| 225 | + return c1 | |
| 226 | + }) | |
| 227 | + // this.confirm(this.list1) | |
| 228 | + console.error(this.list1) | |
| 229 | + }) | |
| 230 | + } | |
| 231 | + | |
| 270 | 232 | }, |
| 271 | 233 | methods: { |
| 272 | - quanxuan(e){ | |
| 273 | - | |
| 274 | - const allTrue = this.recordList.every(item => item.gouxuan) | |
| 275 | - if(allTrue){ | |
| 276 | - this.showAll = !this.showAll | |
| 277 | - this.recordList.forEach(item => { | |
| 278 | - item.gouxuan = !allTrue; | |
| 279 | - }); | |
| 280 | - }else{ | |
| 281 | - this.showAll = true | |
| 282 | - this.recordList.forEach(item => { | |
| 283 | - item.gouxuan = !allTrue; | |
| 284 | - }); | |
| 285 | - } | |
| 286 | - | |
| 287 | - | |
| 234 | + | |
| 235 | + changeisxl(e) { | |
| 236 | + this.recordList[e].isxl = !this.recordList[e].isxl | |
| 237 | + }, | |
| 238 | + quanxuanitem(e,index) { | |
| 239 | + console.error(e) | |
| 240 | + console.error(this.recordList[index].itemDetailsVOList) | |
| 241 | + if (e.value) { | |
| 242 | + for (let i = 0; i < this.recordList[index].itemDetailsVOList.length; i++) { | |
| 243 | + this.recordList[index].itemDetailsVOList[i].isshowxz = true | |
| 244 | + } | |
| 245 | + } else { | |
| 246 | + for (let i = 0; i < this.recordList[index].itemDetailsVOList.length; i++) { | |
| 247 | + this.recordList[index].itemDetailsVOList[i].isshowxz = false | |
| 248 | + } | |
| 249 | + } | |
| 250 | + }, | |
| 251 | + quanxuan(e) { | |
| 252 | + // this.showAll = e.value | |
| 253 | + console.error(e) | |
| 254 | + // const allTrue = this.recordList.every(item => item.gouxuan) | |
| 255 | + if (e.value) { | |
| 256 | + this.recordList = this.recordList.map(item=>{ | |
| 257 | + item.isxl = true | |
| 258 | + item.isshowxz = true | |
| 259 | + item.itemDetailsVOList = item.itemDetailsVOList.map(item1=>{ | |
| 260 | + item1.isshowxz = true | |
| 261 | + return item1 | |
| 262 | + }) | |
| 263 | + return item | |
| 264 | + }) | |
| 265 | + } else { | |
| 266 | + this.recordList = this.recordList.map(item=>{ | |
| 267 | + item.isxl = true | |
| 268 | + item.isshowxz = false | |
| 269 | + item.itemDetailsVOList = item.itemDetailsVOList.map(item1=>{ | |
| 270 | + item1.isshowxz = false | |
| 271 | + return item1 | |
| 272 | + }) | |
| 273 | + return item | |
| 274 | + }) | |
| 275 | + } | |
| 276 | + | |
| 277 | + | |
| 288 | 278 | }, |
| 289 | - recordXq(item){ | |
| 290 | - const encodedItem = encodeURIComponent(JSON.stringify(item)); | |
| 279 | + recordXq(item) { | |
| 280 | + const encodedItem = encodeURIComponent(JSON.stringify(item)); | |
| 291 | 281 | uni.navigateTo({ |
| 292 | - url: `/pages/accepting/accepting?item=${encodedItem}`, | |
| 293 | - }) | |
| 282 | + url: `/pages/accepting/accepting?item=${encodedItem}`, | |
| 283 | + }) | |
| 294 | 284 | }, |
| 295 | 285 | toDetail() { |
| 296 | 286 | uni.navigateTo({ |
| 297 | 287 | url: '/pages/propertyPay/payRecord/payRecord' |
| 298 | 288 | }) |
| 299 | 289 | }, |
| 300 | - contractdetail(){ | |
| 290 | + contractdetail() { | |
| 301 | 291 | // uni.navigateTo({ |
| 302 | - | |
| 292 | + | |
| 303 | 293 | // }) |
| 304 | 294 | }, |
| 305 | - submit(){ | |
| 306 | - | |
| 307 | - // this.loadShow = true | |
| 308 | - // setTimeout(()=>{ | |
| 309 | - // this.loadShow = false | |
| 310 | - // },2000) | |
| 311 | - if(this.fangshi =='付款码扫码支付'){ | |
| 312 | - this.joinShow = false | |
| 313 | - | |
| 314 | - }else{ | |
| 315 | - let payList ={ | |
| 316 | - additional: "附加交易授权", | |
| 317 | - backUrl: "", | |
| 318 | - channelId: "", | |
| 319 | - expireTime: 1800, | |
| 320 | - finishUrl: "", | |
| 321 | - latitude: "1", | |
| 322 | - longitude: "1", | |
| 323 | - orderNo: "", | |
| 324 | - payId: "", | |
| 325 | - payMerData: [ | |
| 326 | - { | |
| 327 | - amount: 1, | |
| 328 | - body: "物业缴费", | |
| 329 | - } | |
| 330 | - ], | |
| 331 | - payType: "Online", | |
| 332 | - returnUrl: "", | |
| 333 | - showBtn: "1", | |
| 334 | - siteId: "", | |
| 335 | - toApp: "0", | |
| 336 | - totalAmount: 1, | |
| 337 | - uid: "1693617316237021185", | |
| 338 | - universalLink: "" | |
| 339 | - } | |
| 340 | - const randomNumber = Math.floor(Math.random() * 10000); // 生成一个0到9999之间的随机数 | |
| 341 | - const timestamp = new Date().getTime(); // 获取当前时间的时间戳 | |
| 342 | - payList.orderNo = `${randomNumber}${timestamp}` | |
| 343 | - | |
| 344 | - payList.uid =uni.getStorageSync('shopId') | |
| 345 | - this.$http.sendRequest('/aggregationPayment/createOrder', 'POST', payList,1).then(res => { | |
| 346 | - console.log(JSON.parse(res.data.data).data.codeUrl) | |
| 347 | - let url = JSON.parse(res.data.data).data.codeUrl | |
| 348 | - | |
| 349 | - // window.location.href = url | |
| 350 | - // plus.runtime.openURL(url , function(e) {console.log(e)}) | |
| 351 | - uni.showModal({ | |
| 352 | - title: res.data.message, | |
| 353 | - showCancel:false, | |
| 354 | - success:ress => { | |
| 355 | - uni.switchTab({ | |
| 356 | - url: '/pages/home/home' | |
| 357 | - }) | |
| 295 | + submit() { | |
| 296 | + console.log(this.recordList) | |
| 297 | + return | |
| 298 | + // this.loadShow = true | |
| 299 | + // setTimeout(()=>{ | |
| 300 | + // this.loadShow = false | |
| 301 | + // },2000) | |
| 302 | + if (this.fangshi == '付款码扫码支付') { | |
| 303 | + this.joinShow = false | |
| 304 | + | |
| 305 | + } else { | |
| 306 | + let payList = { | |
| 307 | + additional: "附加交易授权", | |
| 308 | + backUrl: "", | |
| 309 | + channelId: "", | |
| 310 | + expireTime: 1800, | |
| 311 | + finishUrl: "", | |
| 312 | + latitude: "1", | |
| 313 | + longitude: "1", | |
| 314 | + orderNo: "", | |
| 315 | + payId: "", | |
| 316 | + payMerData: [{ | |
| 317 | + amount: 1, | |
| 318 | + body: "物业缴费", | |
| 319 | + }], | |
| 320 | + payType: "Online", | |
| 321 | + returnUrl: "", | |
| 322 | + showBtn: "1", | |
| 323 | + siteId: "", | |
| 324 | + toApp: "0", | |
| 325 | + totalAmount: 1, | |
| 326 | + uid: "1693617316237021185", | |
| 327 | + universalLink: "" | |
| 358 | 328 | } |
| 359 | - }) | |
| 360 | - }) | |
| 329 | + const randomNumber = Math.floor(Math.random() * 10000); // 生成一个0到9999之间的随机数 | |
| 330 | + const timestamp = new Date().getTime(); // 获取当前时间的时间戳 | |
| 331 | + payList.orderNo = `${randomNumber}${timestamp}` | |
| 332 | + | |
| 333 | + payList.uid = uni.getStorageSync('shopId') | |
| 334 | + this.$http.sendRequest('/aggregationPayment/createOrder', 'POST', payList, 1).then(res => { | |
| 335 | + console.log(JSON.parse(res.data.data).data.codeUrl) | |
| 336 | + let url = JSON.parse(res.data.data).data.codeUrl | |
| 337 | + | |
| 338 | + // window.location.href = url | |
| 339 | + // plus.runtime.openURL(url , function(e) {console.log(e)}) | |
| 340 | + uni.showModal({ | |
| 341 | + title: res.data.message, | |
| 342 | + showCancel: false, | |
| 343 | + success: ress => { | |
| 344 | + uni.switchTab({ | |
| 345 | + url: '/pages/home/home' | |
| 346 | + }) | |
| 347 | + } | |
| 348 | + }) | |
| 349 | + }) | |
| 350 | + | |
| 351 | + this.joinShow = false | |
| 352 | + // uni.showModal({ | |
| 353 | + // title: '支付成功 ', | |
| 354 | + // showCancel:false, | |
| 355 | + // success:ress => { | |
| 356 | + // uni.switchTab({ | |
| 357 | + // url: '/pages/home/home' | |
| 358 | + // }) | |
| 359 | + // } | |
| 360 | + // }) | |
| 361 | + } | |
| 361 | 362 | |
| 362 | - this.joinShow = false | |
| 363 | - // uni.showModal({ | |
| 364 | - // title: '支付成功 ', | |
| 365 | - // showCancel:false, | |
| 366 | - // success:ress => { | |
| 367 | - // uni.switchTab({ | |
| 368 | - // url: '/pages/home/home' | |
| 369 | - // }) | |
| 370 | - // } | |
| 371 | - // }) | |
| 372 | - } | |
| 373 | - | |
| 374 | 363 | }, |
| 375 | - confirm(e){ | |
| 364 | + confirm(e) { | |
| 376 | 365 | console.log(e) |
| 377 | - let arr =[] | |
| 378 | - if(e[0].label == '全部'){ | |
| 379 | - this.recordList = this.recordList1 | |
| 380 | - }else{ | |
| 381 | - this.recordList1.map(item =>{ | |
| 382 | - if(item.name == e[0].label){ | |
| 383 | - arr.push(item) | |
| 384 | - } | |
| 366 | + this.value = e[0].label | |
| 367 | + this.$http.sendRequest('eventReporting/propertyPayment', 'POST',{merchantId:e[0].value,pageNumber:1,pageSize:10} ,1).then(res => { | |
| 368 | + console.error(res) | |
| 369 | + this.recordList = res.data.data.itemDetailsVOList.map(item=>{ | |
| 370 | + item.isxl = true | |
| 371 | + item.isshowxz = false | |
| 372 | + item.itemDetailsVOList = item.itemDetailsVOList.map(item1=>{ | |
| 373 | + item1.isshowxz = false | |
| 374 | + return item1 | |
| 375 | + }) | |
| 376 | + return item | |
| 385 | 377 | }) |
| 386 | - this.recordList = arr | |
| 387 | - } | |
| 388 | - this.value = e[0].label | |
| 389 | - | |
| 378 | + }) | |
| 390 | 379 | }, |
| 391 | 380 | radioGroupChange(e) { |
| 392 | - this.fangshi = e | |
| 393 | - } | |
| 381 | + this.fangshi = e | |
| 382 | + } | |
| 394 | 383 | } |
| 395 | 384 | } |
| 396 | 385 | </script> |
| 397 | 386 | |
| 398 | 387 | <style scoped lang="scss"> |
| 399 | 388 | @import 'propertyPayList.scss'; |
| 400 | -</style> | |
| 389 | + .tit1 { | |
| 390 | + color: #7a7a7a; | |
| 391 | + font-size: 26rpx; | |
| 392 | + } | |
| 393 | +</style> | |
| 401 | 394 | \ No newline at end of file | ... | ... |
lvdao-miniapp/pagesA/addsb/addsb.vue
| ... | ... | @@ -55,7 +55,7 @@ |
| 55 | 55 | </view> |
| 56 | 56 | </view> |
| 57 | 57 | <scroll-view style="height: 100%;" scroll-y v-if="onindex == '我的反馈'" @scrolltolower="scrolltolower"> |
| 58 | - <view v-if="mylist.length>0" style="text-align: center;margin-top: 50rpx;" class="tit1">暂无数据</view> | |
| 58 | + <view v-if="mylist.length == 0" style="text-align: center;margin-top: 50rpx;" class="tit1">暂无数据</view> | |
| 59 | 59 | <view style="background: #fff;border-radius: 18rpx;padding: 30rpx;margin-top: 30rpx;" |
| 60 | 60 | v-for="(item,index) in mylist"> |
| 61 | 61 | <view style="display: flex;line-height: 50rpx;"> | ... | ... |
lvdao-miniapp/static/icon/icon11.png
0 → 100644
1.11 KB
lvdao-miniapp/static/icon/icon12.png
0 → 100644
1.37 KB
lvdao-miniapp/static/icon/icon13.png
0 → 100644
1.32 KB
lvdao-miniapp/static/icon/icon14.png
0 → 100644
1.2 KB
lvdao-miniapp/static/icon/icon15.png
0 → 100644
1.11 KB
lvdao-miniapp/static/icon/icon16.png
0 → 100644
4.14 KB
lvdao-miniapp/static/icon/icon7.png
0 → 100644
1.3 KB
lvdao-miniapp/utils/request.js
| ... | ... | @@ -16,7 +16,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { |
| 16 | 16 | } |
| 17 | 17 | var bases = '' |
| 18 | 18 | if(baseUrl == 1){ |
| 19 | - // bases = 'http://172.16.61.125:9003/' + url; | |
| 19 | + bases = 'http://128.10.250.25:9003/' + url; | |
| 20 | 20 | // bases = 'http://172.16.61.123/cdwlMall/admin-server' + url; |
| 21 | 21 | // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; |
| 22 | 22 | // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; |
| ... | ... | @@ -24,7 +24,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { |
| 24 | 24 | // bases = 'http://128.10.249.21:9003'+ url; |
| 25 | 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; | |
| 28 | 28 | |
| 29 | 29 | }else if(baseUrl == 3){ |
| 30 | 30 | // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; | ... | ... |