This commit is contained in:
xyc 2025-05-30 16:54:55 +08:00
parent 1bfed6c99d
commit 77a11754e2
6 changed files with 98 additions and 28 deletions

View File

@ -4,6 +4,14 @@
<u-icon name="arrow-left" color="#fff" size="18"></u-icon>
</headersVue>
<view class="content">
<view style="margin-top: 20rpx">
<uni-datetime-picker
v-model="queryParams.datetimeRange"
type="daterange"
rangeSeparator="至"
@change ="getStaffCount"
/>
</view>
<!-- 顶部选择区域 -->
<!-- <view class="top_">
<view class="select-container" @click="showDropdown">

View File

@ -108,7 +108,8 @@
<image src="/static/imgs/newStaffCount.png" mode=""></image>
<view class="">员工统计</view>
</view>
<view class="jg_ys" @click="goneworderStatistic()">
<!-- <view class="jg_ys" @click="goneworderStatistic()">-->
<view class="jg_ys" @click="goordercount(1,'1')">
<image src="/static/imgs/newDayOrder.png" mode=""></image>
<view class="">订单统计</view>
</view>

View File

@ -75,6 +75,13 @@
</view>
<u-search placeholder="请输入车辆品牌或车牌号" v-model="queryParams.carModelOrCarYear" @custom="search"
@search="search"></u-search>
<view style="margin-top: 20rpx">
<uni-datetime-picker
v-model="queryParams.datetimeRange"
type="daterange"
rangeSeparator="至"
/>
</view>
<scroll-view scroll-y="true" class="scroll_view_style">
<view class="popup-body">
<view style="display: flex;justify-content: space-between">
@ -217,6 +224,7 @@
chooseStatus: "1",
skuName: "",
payType: "",
datetimeRange: null,
startTime: null,
endTime: null,
carModelOrCarYear: null,
@ -248,6 +256,14 @@
label: "退办理",
value: "4",
},
{
label: "重检",
value: "5",
},
{
label: "复检",
value: "6",
},
],
appTypes: [{
label: "全部",

View File

@ -97,6 +97,10 @@
<view class="h_title"> 接车员</view>
<view class="h_name">{{ detailData.meetManName }}</view>
</view>
<view class="h-two-l" v-if="detailData.returnCarUserName">
<view class="h_title"> 交还车</view>
<view class="h_name">{{ detailData.returnCarUserName }}</view>
</view>
<view class="h-two-r" v-if="isChangeMeetMan" @tap="selectLeadMan">
<image src="../..//static/imgs/t_.png" mode=""></image>
<text>更换接车员</text>

View File

@ -134,10 +134,11 @@
this.fileId = data.folderId
}
this.getlist()
// this.getlist()
this.ifHasRole()
},
onShow() {
this.getlist()
this.ifHasRole()
},
onBackPress(options) {
//
@ -164,7 +165,12 @@
methods: {
formatDate,
async getlist(flag) {
this.isLoading = true
// this.isLoading = true
// uniapp
//
uni.showLoading({
title: '加载中'
});
let data = {
pageSize: this.pageSize,
pageNum: this.pageNum,
@ -188,7 +194,8 @@
}
let total = res.total
this.totalPages = Math.ceil(total / this.pageSize);
this.isLoading = false
//
uni.hideLoading();
// this.getCountByDirectory()
},
ifHasRole() {

View File

@ -131,6 +131,10 @@
@click="meetCarPhoto(item);openMeetCar = true" size="10">
接车拍照
</u-button>
<u-button class="button" v-if="tapValue == '10'"
@click="returnCarPhoto(item);openMeetCar = true" size="10">
还车拍照
</u-button>
<u-button class="button" v-if="meetCarButtonShow.includes(tapValue)"
@click="getMeetMan();meetCarPhoto(item);showMeetMan = true" size="10">
更换人员
@ -239,6 +243,7 @@
openMeetCar: false,
isTriggered: false,
selectedInfo: undefined,
selectType: undefined,
partnerId: uni.getStorageSync("partnerId"),
goodsTitle: '',
tapindex: 0,
@ -370,6 +375,10 @@
text: "检测中",
value: "2",
},
{
text: "还车",
value: "10",
},
{
text: "待重检",
value: "3",
@ -657,28 +666,48 @@
})
return
}
request({
url: '/system/info/meetCarPhoto',
data: {
meetCarId: this.selectedInfo.id,
remark: this.remark,
sourceType: this.selectedInfo.sourceType,
dealImages: this.fileList1.map(item => item.url).join(',')
},
method: 'post'
}).then(res => {
if (res.code === 200) {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 2000
});
this.openMeetCar = false
this.remark = ''
this.fileList1 = []
this.onRefresherrefresh()
}
})
if (this.selectType) {
request({
url: '/system/info/returnCarPhoto',
data: {
inspectionInfoId: this.selectedInfo.id,
remark: this.remark,
dealImages: this.fileList1.map(item => item.url).join(',')
},
method: 'post'
}).then(res => {
if (res.code === 200) {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 2000
});
}
})
}else {
request({
url: '/system/info/meetCarPhoto',
data: {
meetCarId: this.selectedInfo.id,
remark: this.remark,
sourceType: this.selectedInfo.sourceType,
dealImages: this.fileList1.map(item => item.url).join(',')
},
method: 'post'
}).then(res => {
if (res.code === 200) {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 2000
});
}
})
}
this.openMeetCar = false
this.remark = ''
this.fileList1 = []
this.onRefresherrefresh()
},
async afterRead(event) {
// multiple true , file
@ -835,7 +864,7 @@
* @param {Array} list - 数据列表默认使用 tapList
* @returns {string|null} 返回对应的 value找不到则返回 null
*/
getValueByText(text, list = this.tapList) {
getValueByText(text, list = this.newTapList) {
const item = list.find(item => item.text === text);
return item ? item.value : null;
},
@ -1002,6 +1031,11 @@
meetCarPhoto(data) {
this.selectedInfo = data
},
/**接车拍照 */
returnCarPhoto(data) {
this.selectedInfo = data
this.selectType = 1
},
gogogo() {
uni.navigateTo({
url: '/pages/index/Neworder'