From 1edc99c8d6fc4ab71961c23aaf3dd5fecc076908 Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期五, 06 三月 2026 16:56:04 +0800
Subject: [PATCH] feat(销售管理): 新增销售退货单管理功能
---
src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue | 33 ++++++++++++++++++++++++++-------
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue b/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue
index 1585a8a..a410be0 100644
--- a/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue
+++ b/src/views/personnelManagement/attendanceCheckin/checkinRules/components/form.vue
@@ -18,7 +18,7 @@
placeholder="璇烽�夋嫨閮ㄩ棬"
check-strictly
style="width: 100%"
- :disabled="operationType === 'view'" />
+ :disabled="['edit', 'view'].includes(operationType)" />
</el-form-item>
<!-- 鍦扮偣淇℃伅 -->
<!-- <el-form-item label="鍦扮偣鍚嶇О"
@@ -28,6 +28,18 @@
:disabled="operationType === 'view'" />
</el-form-item> -->
<!-- 鎵撳崱鑼冨洿 -->
+ <el-form-item label="鐝"
+ prop="shift">
+ <el-select v-model="form.shift"
+ placeholder="璇烽�夋嫨鐝"
+ :disabled="operationType === 'view'"
+ style="width: 100%">
+ <el-option v-for="item in shifts_list"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value" />
+ </el-select>
+ </el-form-item>
<el-form-item label="鎵撳崱鑼冨洿(m)"
prop="radius">
<el-input-number v-model="form.radius"
@@ -43,13 +55,13 @@
<div class="map-container">
<div class="map-header"
style="margin-bottom: 10px">
- <el-button @click="getCurrentLocation">
+ <!-- <el-button @click="getCurrentLocation">
<el-icon>
<Position />
</el-icon>
褰撳墠浣嶇疆
- </el-button>
- <span style="margin-left: 10px; color: #909399;font-size: 12px;">鐐瑰嚮鍦板浘閫夋嫨浣嶇疆</span>
+ </el-button> -->
+ <!-- <span style="margin-left: 10px; color: #909399;font-size: 12px;">鐐瑰嚮鍦板浘閫夋嫨浣嶇疆</span> -->
</div>
<div id="map-container"
class="map"
@@ -115,6 +127,7 @@
import { Position } from "@element-plus/icons-vue";
import { deptTreeSelect } from "@/api/system/user.js";
import { addAttendanceRule } from "@/api/personnelManagement/attendanceRules.js";
+ import { useDict } from "@/utils/dict";
const props = defineProps({
modelValue: {
@@ -140,10 +153,13 @@
});
const dialogTitle = computed(() => {
- if (props.operationType === "add") return "鏂板鎵撳崱瑙勫垯";
- if (props.operationType === "edit") return "缂栬緫鎵撳崱瑙勫垯";
- return "鏌ョ湅鎵撳崱瑙勫垯";
+ if (props.operationType === "add") return "鏂板鐝";
+ if (props.operationType === "edit") return "缂栬緫鐝";
+ return "鏌ョ湅鐝";
});
+
+ // 鑾峰彇鐝瀛楀吀鍊�
+ const { shifts_list } = useDict("shifts_list");
// 琛ㄥ崟鏁版嵁
const formRef = ref();
@@ -156,6 +172,7 @@
radius: 100,
startAt: "09:00",
endAt: "18:00",
+ shift: "",
});
// 琛ㄥ崟楠岃瘉瑙勫垯
@@ -166,6 +183,7 @@
],
longitude: [{ required: true, message: "璇烽�夋嫨鎵撳崱浣嶇疆", trigger: "blur" }],
latitude: [{ required: true, message: "璇烽�夋嫨鎵撳崱浣嶇疆", trigger: "blur" }],
+ shift: [{ required: true, message: "璇烽�夋嫨鐝", trigger: "change" }],
radius: [{ required: true, message: "璇疯緭鍏ユ墦鍗¤寖鍥�", trigger: "blur" }],
startAt: [{ required: true, message: "璇烽�夋嫨涓婄彮鏃堕棿", trigger: "change" }],
endAt: [
@@ -405,6 +423,7 @@
radius: 100,
startAt: "09:00",
endAt: "18:00",
+ shift: "",
});
// 濡傛灉鏄紪杈戞垨鏌ョ湅锛屽~鍏呮暟鎹�
--
Gitblit v1.9.3