From b5a15e4e5fb8920fbe03e90388aabf96099e1639 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 30 六月 2025 16:01:26 +0800
Subject: [PATCH] 最新版本541200007
---
h5/pages/staff/snapshot.vue | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 42 insertions(+), 4 deletions(-)
diff --git a/h5/pages/staff/snapshot.vue b/h5/pages/staff/snapshot.vue
index 269cff5..4b9f690 100644
--- a/h5/pages/staff/snapshot.vue
+++ b/h5/pages/staff/snapshot.vue
@@ -13,12 +13,25 @@
<u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
</view>
</view>
+
+ <view class="line">
+ <view class="label">
+ <text>*</text>
+ <text>妫�鏌ョ被鍨�</text>
+ </view>
+ <view class="value" @click="openArea">
+ <text class="mr6"
+ :style="{ color: param.areaName ? '#000000' : '#999999' }">{{ param.areaName ? param.areaName : "璇烽�夋嫨" }}</text>
+ <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
+ </view>
+ </view>
+
<view class="line">
<view class="label">
<text>*</text>
<text>闅愭偅鍖哄煙</text>
</view>
- <view class="value" @click="isShowArea = true">
+ <view class="value" @click="openArea">
<text class="mr6"
:style="{ color: param.areaName ? '#000000' : '#999999' }">{{ param.areaName ? param.areaName : "璇烽�夋嫨" }}</text>
<u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
@@ -120,7 +133,7 @@
<u-picker keyName="name" :show="isShowType" closeOnClickOverlay :columns="areaType" @confirm="seletedType"
@close="isShowType = false" @cancel="isShowType = false"></u-picker>
<!-- -->
- <u-datetime-picker :show="isShowTime" :minDate="new Date().getTime()" mode="datetime" closeOnClickOverlay
+ <u-datetime-picker :show="isShowTime" :formatter="formatter" :minDate="new Date().getTime()" mode="datetime" closeOnClickOverlay
@cancel="isShowTime = false" @close="isShowTime = false" @confirm="seletedDate"></u-datetime-picker>
<!-- -->
<u-popup :show="showUpload" @close="showUpload = false" closeOnClickOverlay>
@@ -172,7 +185,25 @@
this.$set(this.param, 'checkorName', option.name)
})
},
- methods: {
+ methods: {
+ formatter(type, value) {
+ if (type === 'year') {
+ return `${value}骞碻
+ }
+ if (type === 'month') {
+ return `${value}鏈坄
+ }
+ if (type === 'day') {
+ return `${value}鏃
+ }
+ if (type === 'hour') {
+ return `${value}鏃禶
+ }
+ if (type === 'minute') {
+ return `${value}鍒哷
+ }
+ return value
+ },
onSubmit() {
const {
param,
@@ -217,7 +248,10 @@
this.$set(this.param, 'companyId', item.id)
this.$set(this.param, 'companyName', item.name)
this.$set(this.param, 'areaId', '')
- this.$set(this.param, 'areaName', '')
+ this.$set(this.param, 'areaName', '')
+ this.$set(this.param, 'checkUserId', '')
+ this.$set(this.param, 'applyCheckUserId', '')
+ this.$set(this.param, 'checkorName', '')
DangerConfigType({
type: '0',
companyId: item.id
@@ -225,6 +259,10 @@
this.areaOptions = [res.data]
})
this.isShowCompany = false
+ },
+ openArea() {
+ if(!this.param.companyId) return this.showToast('璇峰厛閫夋嫨璐d换閮ㄩ棬')
+ this.isShowArea = true
},
seletedArea(e) {
const item = e.value[0]
--
Gitblit v1.9.3