Compare commits
2 Commits
de046f3c01
...
51b927d29a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51b927d29a | ||
|
|
b1128b9adf |
16
pages.json
16
pages.json
@@ -118,22 +118,6 @@
|
|||||||
"onReachBottomDistance": 50
|
"onReachBottomDistance": 50
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/audit/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "在线审批",
|
|
||||||
"enablePullDownRefresh": true,
|
|
||||||
"onReachBottomDistance": 50
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/audit/detail",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "合同审批详情",
|
|
||||||
"enablePullDownRefresh": true,
|
|
||||||
"onReachBottomDistance": 50
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/unusualActionApply/index",
|
"path": "pages/unusualActionApply/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,290 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view>
|
|
||||||
<u-sticky>
|
|
||||||
<view style="background-color: #fff">
|
|
||||||
<u-subsection
|
|
||||||
mode="subsection"
|
|
||||||
:list="list"
|
|
||||||
:current="current"
|
|
||||||
@change="sectionChange"
|
|
||||||
activeColor="#7ba746"
|
|
||||||
:fontSize="30"
|
|
||||||
>
|
|
||||||
</u-subsection>
|
|
||||||
</view>
|
|
||||||
<u-search
|
|
||||||
placeholder="请输入"
|
|
||||||
v-model="keyword"
|
|
||||||
:showAction="false"
|
|
||||||
@search="searchList()"
|
|
||||||
></u-search>
|
|
||||||
</u-sticky>
|
|
||||||
<view class="list">
|
|
||||||
<view class="item" v-for="item in dataList" :key="item.id">
|
|
||||||
<view class="line">
|
|
||||||
<view class="text-normal" v-if="current == 0 || item.approvalName"
|
|
||||||
>@{{ item.approvalName }},请处理待处理审批单:
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="block">
|
|
||||||
<view class="line">
|
|
||||||
<view class="text-small">
|
|
||||||
{{ item.createName }}提交的{{ item.contractTypeName }}申请</view
|
|
||||||
>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="line">
|
|
||||||
<view class="text-small"> {{ item.customerName }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="line">
|
|
||||||
<view class="text-small">等待</view>
|
|
||||||
<view class="text-small hot">{{ item.waitTime || "--" }}</view>
|
|
||||||
<view class="text-small">小时</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="line" style="justify-content: flex-end">
|
|
||||||
<view class="buttons">
|
|
||||||
<!--deliveryPermit为1的时候准许交车 -->
|
|
||||||
<button
|
|
||||||
@tap="goto"
|
|
||||||
v-if="current == 0"
|
|
||||||
:data-url="`/pages/audit/detail?id=${item.id}`"
|
|
||||||
>
|
|
||||||
处理
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
v-else
|
|
||||||
@tap="goto"
|
|
||||||
:data-url="`/pages/audit/detail?id=${item.id}&isRead=1`"
|
|
||||||
>
|
|
||||||
查看
|
|
||||||
</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="line">
|
|
||||||
<view class="line" style="justify-content: space-between">
|
|
||||||
<view class="text-small left"
|
|
||||||
>合同提交时间: {{ formatDateTime(item.createTime) }}</view
|
|
||||||
>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="no-more" v-if="noMoreData">没有更多数据了</view>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
clas="line"
|
|
||||||
style="margin-top: 150rpx"
|
|
||||||
v-if="!dataList || dataList.length === 0"
|
|
||||||
>
|
|
||||||
<u-empty mode="search" text="暂无数据" width="400" textSize="16">
|
|
||||||
</u-empty
|
|
||||||
></view>
|
|
||||||
<u-loading-page
|
|
||||||
bg-color="#ffffff"
|
|
||||||
:loading="loading"
|
|
||||||
color="#7ba746"
|
|
||||||
font-size="24"
|
|
||||||
></u-loading-page>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import stora from "@/utils/storage";
|
|
||||||
export default {
|
|
||||||
options: {
|
|
||||||
styleIsolation: "shared", // 解除样式隔离
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
keyword: "",
|
|
||||||
current: 0,
|
|
||||||
list: ["待审批", "审批通过"],
|
|
||||||
queryPage: {
|
|
||||||
pageNo: 1, // 页码
|
|
||||||
pageSize: 10, //每页查询条数
|
|
||||||
total: 0, //总页数
|
|
||||||
pages: -1, //总页数
|
|
||||||
// contractStatus: "2", // 交车许可 1表示 准许交车
|
|
||||||
},
|
|
||||||
dataList: [],
|
|
||||||
pageNo: 1,
|
|
||||||
noMoreData: false,
|
|
||||||
loading: false,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 新增的搜索方法
|
|
||||||
searchList() {
|
|
||||||
this.queryPage.customerName = this.keyword.trim(); // 设置车牌号条件
|
|
||||||
this.queryPage.pageNo = 1; // 重置页码为1
|
|
||||||
this.dataList = []; // 清空数据列表
|
|
||||||
this.noMoreData = false; // 重置没有更多数据的标志
|
|
||||||
this.loadmore(); // 重新加载数据
|
|
||||||
},
|
|
||||||
sectionChange(index) {
|
|
||||||
this.queryPage.customerName = "";
|
|
||||||
this.keyword = "";
|
|
||||||
this.current = index;
|
|
||||||
// if (index == 1) {
|
|
||||||
// // 全部 (准许交车 + 已交车)
|
|
||||||
// this.queryPage.contractStatus = "3";
|
|
||||||
// } else {
|
|
||||||
// // 仅显示准许交车
|
|
||||||
// this.queryPage.contractStatus = "2";
|
|
||||||
// }
|
|
||||||
|
|
||||||
this.queryPage.pageNo = 1;
|
|
||||||
this.dataList = [];
|
|
||||||
this.loadmore();
|
|
||||||
},
|
|
||||||
formatDateTime(obj) {
|
|
||||||
if (obj == null) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
let date = new Date(obj);
|
|
||||||
let y = 1900 + date.getYear();
|
|
||||||
let m = "0" + (date.getMonth() + 1);
|
|
||||||
let d = "0" + date.getDate();
|
|
||||||
return (
|
|
||||||
y +
|
|
||||||
"-" +
|
|
||||||
m.substring(m.length - 2, m.length) +
|
|
||||||
"-" +
|
|
||||||
d.substring(d.length - 2, d.length)
|
|
||||||
);
|
|
||||||
},
|
|
||||||
loadmore() {
|
|
||||||
this.loading = true;
|
|
||||||
if (this.current == 0) {
|
|
||||||
this.$api.audit
|
|
||||||
.queryAuditList(this.queryPage)
|
|
||||||
.then((res) => {
|
|
||||||
console.log(res);
|
|
||||||
this.queryPage.pageNo = res.data.current;
|
|
||||||
this.queryPage.pages = res.data.pages;
|
|
||||||
this.queryPage.total = res.data.total;
|
|
||||||
this.dataList.push(...(res.data.records || []));
|
|
||||||
this.loading = false;
|
|
||||||
})
|
|
||||||
.catch((errors) => {
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.$api.audit
|
|
||||||
.queryAuditedList(this.queryPage)
|
|
||||||
.then((res) => {
|
|
||||||
console.log(res);
|
|
||||||
this.queryPage.pageNo = res.data.current;
|
|
||||||
this.queryPage.pages = res.data.pages;
|
|
||||||
this.queryPage.total = res.data.total;
|
|
||||||
this.dataList.push(...(res.data.records || []));
|
|
||||||
this.loading = false;
|
|
||||||
})
|
|
||||||
.catch((errors) => {
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
goto(e) {
|
|
||||||
uni.navigateTo({ url: e.target.dataset.url });
|
|
||||||
},
|
|
||||||
},
|
|
||||||
onLoad() {},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
this.sectionChange(this.current);
|
|
||||||
uni.stopPullDownRefresh(); //刷新数据之后停止刷新效果
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
//页面销毁删除掉数据缓存
|
|
||||||
stora.remove("fault_fromData");
|
|
||||||
},
|
|
||||||
onReachBottom() {
|
|
||||||
console.log("触底了");
|
|
||||||
//当前页数小于总页数
|
|
||||||
if (this.queryPage.pageNo < this.queryPage.pages) {
|
|
||||||
this.queryPage.pageNo++;
|
|
||||||
this.loadmore();
|
|
||||||
} else {
|
|
||||||
this.noMoreData = true;
|
|
||||||
console.log("没有更多数据了");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
this.sectionChange(this.current);
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="less" scoped>
|
|
||||||
/deep/ .u-search {
|
|
||||||
background: #d7d7d7 !important;
|
|
||||||
padding: 20rpx 10rpx !important;
|
|
||||||
}
|
|
||||||
// /deep/ .u-search__content__input {
|
|
||||||
// height: 50rpx !important;
|
|
||||||
// padding-top: 20rpx !important; /* 上边距 */
|
|
||||||
// padding-bottom: 20rpx !important; /* 下边距 */
|
|
||||||
// }
|
|
||||||
.list {
|
|
||||||
background: #d7d7d7;
|
|
||||||
padding: 0 20px 20rpx;
|
|
||||||
|
|
||||||
.item {
|
|
||||||
background: white;
|
|
||||||
padding: 20rpx;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 15rpx;
|
|
||||||
.block {
|
|
||||||
display: flex;
|
|
||||||
line-height: 1.5;
|
|
||||||
padding: 10px;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: left;
|
|
||||||
margin-bottom: 15rpx;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
.hot {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
.line {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 15rpx;
|
|
||||||
|
|
||||||
.left {
|
|
||||||
margin-right: 50rpx;
|
|
||||||
width: 300rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-small {
|
|
||||||
font-size: x-small;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-normal {
|
|
||||||
font-size: small;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.buttons {
|
|
||||||
button {
|
|
||||||
width: 130rpx;
|
|
||||||
display: inline-block;
|
|
||||||
height: 50rpx;
|
|
||||||
padding: 12rpx 0;
|
|
||||||
font-size: 26rpx;
|
|
||||||
line-height: 26rpx;
|
|
||||||
margin-bottom: 10rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-more {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: xx-small;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
@beforeleave="onBeforeLeave"
|
@beforeleave="onBeforeLeave"
|
||||||
>
|
>
|
||||||
<!-- @afterShow="onAfterShow"
|
<!-- @afterShow="onAfterShow"
|
||||||
@afterHide="onAfterHide" -->
|
@afterHide="onAfterHide" -->
|
||||||
<view class="right-panel" @tap.native.stop="banIosChuanTou">
|
<view class="right-panel" @tap.native.stop="banIosChuanTou">
|
||||||
<view class="panel-header">
|
<view class="panel-header">
|
||||||
<view class="panel-title"
|
<view class="panel-title"
|
||||||
@@ -403,14 +403,14 @@
|
|||||||
<cover-view class="popup" v-if="showPopup">
|
<cover-view class="popup" v-if="showPopup">
|
||||||
<cover-view class="popup-header">
|
<cover-view class="popup-header">
|
||||||
<!-- <cover-view style="display: flex" :show-location="true"
|
<!-- <cover-view style="display: flex" :show-location="true"
|
||||||
><cover-image
|
><cover-image
|
||||||
:src="
|
:src="
|
||||||
current === 0 ? '/static/kachetou.png' : '/static/jiaqingzhan.png'
|
current === 0 ? '/static/kachetou.png' : '/static/jiaqingzhan.png'
|
||||||
"
|
"
|
||||||
style="width: 40rpx; height: 40rpx; margin: 5px"
|
style="width: 40rpx; height: 40rpx; margin: 5px"
|
||||||
></cover-image
|
></cover-image
|
||||||
>1111</cover-view
|
>1111</cover-view
|
||||||
> -->
|
> -->
|
||||||
<cover-view style="display: flex; padding: 5px; flex: 1">
|
<cover-view style="display: flex; padding: 5px; flex: 1">
|
||||||
<cover-image
|
<cover-image
|
||||||
:src="
|
:src="
|
||||||
@@ -419,7 +419,7 @@
|
|||||||
style="width: 40rpx; height: 40rpx; margin-right: 5px"
|
style="width: 40rpx; height: 40rpx; margin-right: 5px"
|
||||||
></cover-image>
|
></cover-image>
|
||||||
<cover-view style="flex: 1">{{
|
<cover-view style="flex: 1">{{
|
||||||
currMarker.plateNumber || currMarker.name
|
currMarker.plateNumber || currMarker.shortName || currMarker.name
|
||||||
}}</cover-view>
|
}}</cover-view>
|
||||||
<cover-image
|
<cover-image
|
||||||
v-if="current === 0"
|
v-if="current === 0"
|
||||||
@@ -449,7 +449,7 @@
|
|||||||
</cover-view>
|
</cover-view>
|
||||||
</cover-view>
|
</cover-view>
|
||||||
<cover-view class="popup-content">
|
<cover-view class="popup-content">
|
||||||
<cover-view style="display: flex">
|
<cover-view style="display: flex; white-space: normal">
|
||||||
<u-icon
|
<u-icon
|
||||||
name="map"
|
name="map"
|
||||||
size="45"
|
size="45"
|
||||||
@@ -473,6 +473,15 @@
|
|||||||
</cover-view>
|
</cover-view>
|
||||||
</cover-view>
|
</cover-view>
|
||||||
<cover-view v-else>
|
<cover-view v-else>
|
||||||
|
<cover-view
|
||||||
|
class="content-items"
|
||||||
|
style="text-align: left"
|
||||||
|
v-if="currMarker.shortName"
|
||||||
|
>
|
||||||
|
<cover-view style="flex: 1; white-space: normal">
|
||||||
|
加氢站全称:{{ currMarker.name || "--" }}
|
||||||
|
</cover-view>
|
||||||
|
</cover-view>
|
||||||
<cover-view class="content-items" style="text-align: left">
|
<cover-view class="content-items" style="text-align: left">
|
||||||
<cover-view style="flex: 1">
|
<cover-view style="flex: 1">
|
||||||
氢源:{{ currMarker.hydrogenSource || "--" }}
|
氢源:{{ currMarker.hydrogenSource || "--" }}
|
||||||
@@ -661,7 +670,6 @@ export default {
|
|||||||
onPullDownRefresh(event) {},
|
onPullDownRefresh(event) {},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log("mounted");
|
console.log("mounted");
|
||||||
this.$store.state.current = "map";
|
|
||||||
this.sectionChange(this.current);
|
this.sectionChange(this.current);
|
||||||
this.getOrgList();
|
this.getOrgList();
|
||||||
this.getAreaList();
|
this.getAreaList();
|
||||||
@@ -678,8 +686,13 @@ export default {
|
|||||||
}
|
}
|
||||||
// 清理地图事件监听器
|
// 清理地图事件监听器
|
||||||
if (this._mapContext) {
|
if (this._mapContext) {
|
||||||
this._mapContext.off("markerClusterCreate");
|
// 直接移除所有监听器,不需要传递回调函数
|
||||||
this._mapContext.off("markerClusterClick");
|
try {
|
||||||
|
this._mapContext.off("markerClusterCreate");
|
||||||
|
this._mapContext.off("markerClusterClick");
|
||||||
|
} catch (e) {
|
||||||
|
console.log("移除地图事件监听器失败:", e);
|
||||||
|
}
|
||||||
this._mapContext = null;
|
this._mapContext = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1154,8 +1167,12 @@ export default {
|
|||||||
createMapContext() {
|
createMapContext() {
|
||||||
// 清理之前的地图上下文,防止重复创建
|
// 清理之前的地图上下文,防止重复创建
|
||||||
if (this._mapContext) {
|
if (this._mapContext) {
|
||||||
this._mapContext.off("markerClusterCreate");
|
try {
|
||||||
this._mapContext.off("markerClusterClick");
|
this._mapContext.off("markerClusterCreate");
|
||||||
|
this._mapContext.off("markerClusterClick");
|
||||||
|
} catch (e) {
|
||||||
|
console.log("移除地图事件监听器失败:", e);
|
||||||
|
}
|
||||||
this._mapContext = null;
|
this._mapContext = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1272,7 +1289,7 @@ export default {
|
|||||||
iconPath = item.cooperate
|
iconPath = item.cooperate
|
||||||
? `/static/maph.png`
|
? `/static/maph.png`
|
||||||
: `/static/maph2.png`;
|
: `/static/maph2.png`;
|
||||||
calloutText = item.stationName;
|
calloutText = item.shortName || item.stationName;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// let flag = false;
|
// let flag = false;
|
||||||
@@ -1624,6 +1641,7 @@ export default {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin: 8rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
.item {
|
.item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user