This commit is contained in:
xyc 2025-06-16 17:17:24 +08:00
parent 78b0019cf0
commit 4e37c0a541
6 changed files with 104 additions and 67 deletions

View File

@ -132,12 +132,15 @@
}
}).then(res => {
this.customInfo = res.data
if (this.customInfo.avatar) {
this.customInfo.avatar = config.baseImageUrl + this.customInfo.avatar
if (this.customInfo) {
setStorageWithExpiry("userInfo", this.customInfo)
this.generateUniCode(this.customInfo.uniqueCode)
if (this.customInfo.avatar) {
this.customInfo.avatar = config.baseImageUrl + this.customInfo.avatar
}
this.customInfo.roleNames = roleNames
}
this.customInfo.roleNames = roleNames
setStorageWithExpiry("userInfo", this.customInfo)
this.generateUniCode(this.customInfo.uniqueCode)
})
} else {
this.customInfo = data

View File

@ -4,14 +4,10 @@
<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 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">
@ -93,14 +89,12 @@
headersVue,
},
onLoad() {
const now = new Date();
this.queryParams.datetimeRange = [
new Date(now.getFullYear(), now.getMonth(), 1).getTime(),
now.getTime()
];
const now = new Date();
this.setCurrentMonthRange()
this.getStaffCount();
this.getStaffCount();
this.getInspectionProject();
},
methods: {
@ -115,6 +109,23 @@
this.List = res.data;
});
});
}, // 1 01
pad(n) {
return n.toString().padStart(2, '0');
},
// Date "YYYY-MM-DD"
formatDate(d) {
return `${d.getFullYear()}-${this.pad(d.getMonth() + 1)}-${this.pad(d.getDate())}`;
},
//
setCurrentMonthRange() {
const now = new Date();
const firstDay = new Date(now.getFullYear(), now.getMonth(), 1);
this.queryParams.datetimeRange = [
this.formatDate(firstDay),
this.formatDate(now)
];
},
//
getInspectionProject() {

View File

@ -261,11 +261,11 @@
goodsId: '',
msg: '3',
radiolist1: [{
name: '接',
name: '接车拍照',
label: 0
},
{
name: '上门车',
name: '上门车',
label: 1
},
{

View File

@ -212,6 +212,8 @@
methods: {
dialogToggle() {
this.$refs.alertDialog.open()
uni.removeStorageSync('userInfo')
uni.removeStorageSync('staffinfo')
},
modifyPassword() {
//
@ -295,7 +297,11 @@
this.user = ress.data
this.generateUniCode(ress.data.uniqueCode)
//
if (ress.data.userRoles.length == 1 && ress.data.userRoles[0].roleCode == 'jcywjl') {
const hasJcywjl = ress.data.userRoles
?.flatMap(r => r.roleCode) // roleCode
.includes('jcywjl'); //
if (hasJcywjl) {
this.showCheckout = false
} else {
this.showCheckout = true

View File

@ -160,6 +160,11 @@
<u-popup :show="openMeetCar" @close="openMeetCar = false" :round="10">
<view class="popup-box">
<u--textarea v-model="remark" placeholder="请输入内容" border="bottom"></u--textarea>
<u-radio-group v-model="radiovalue1" iconPlacement="left" name="name" placement="row">
<u-radio style="margin-right: 10rpx;" :customStyle="{marginBottom: '8px'}"
v-for="(item, index) in radiolist1" :key="index" :label="item.name" :name="item.label">
</u-radio>
</u-radio-group>
<view class="on-inputx">
<text>施工图片</text>
</view>
@ -243,7 +248,7 @@
openMeetCar: false,
isTriggered: false,
selectedInfo: undefined,
selectType: undefined,
selectType: undefined,
partnerId: uni.getStorageSync("partnerId"),
goodsTitle: '',
tapindex: 0,
@ -321,6 +326,16 @@
value: "5",
},
],
radiolist1: [{
name: '还车拍照',
label: 0
},
{
name: '上门还车',
label: 1
}
],
radiovalue1: 0,
tapValue: 1,
chooseWorkNodes: [],
columnsMeetMan: [],
@ -666,48 +681,49 @@
})
return
}
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()
if (this.selectType) {
request({
url: '/system/info/returnCarPhoto',
data: {
inspectionInfoId: this.selectedInfo.id,
remark: this.remark,
dealImages: this.fileList1.map(item => item.url).join(','),
returnType: this.radiovalue1
},
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
@ -1034,7 +1050,7 @@
/**接车拍照 */
returnCarPhoto(data) {
this.selectedInfo = data
this.selectType = 1
this.selectType = 1
},
gogogo() {
uni.navigateTo({

View File

@ -328,7 +328,8 @@
method: 'get',
data: {
pageSize: this.pageSize,
pageNo: this.pageNum
pageNo: this.pageNum,
systemCode: 'jiance'
}
})
// this.arrlist = res.rows