docs(skills): 删除 UI/UX Pro Max 和 Web Design Guidelines 技能文档
- 移除 ui-ux-pro-max 技能的完整文档文件 SKILL.md - 移除 web-design-guidelines 技能的完整文档文件 SKILL.md - 删除 xlsx 技能相关的多个 XSD 模式定义文件 - 清理 office 文档格式的架构验证相关文件
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>操作员</th>
|
||||
<th>员工工号</th>
|
||||
<th>员工账号</th>
|
||||
<th>领用日期</th>
|
||||
<th>起始号码</th>
|
||||
<th>终止号码</th>
|
||||
@@ -65,16 +65,16 @@
|
||||
:key="user.employeeId"
|
||||
:value="user.employeeId"
|
||||
>
|
||||
{{ user.name }} ({{ user.employeeId }})
|
||||
{{ user.name }} ({{ user.employeeAccount }})
|
||||
</option>
|
||||
</select>
|
||||
<span v-else class="employee-name">{{ item.operator || '-' }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="employee-id-cell">
|
||||
<td class="employee-account-cell">
|
||||
<div class="input-container">
|
||||
<!-- 员工工号字段不允许编辑,从用户账号自动获取 -->
|
||||
<span>{{ item.employeeId || '-' }}</span>
|
||||
<!-- 员工账号字段不允许编辑,从用户账号自动获取 -->
|
||||
<span>{{ item.employeeAccount || '-' }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="date-cell">
|
||||
@@ -190,6 +190,7 @@ export default {
|
||||
name: '',
|
||||
nickName: '',
|
||||
employeeId: '',
|
||||
employeeAccount: '', // 员工账号
|
||||
status: '' // 0: 启用, 1: 禁用(仅用于显示,不再控制权限)
|
||||
},
|
||||
// 用户列表,用于操作员下拉选择(将在created中从后端获取)
|
||||
@@ -221,6 +222,7 @@ export default {
|
||||
name: userStore.nickName || userStore.name,
|
||||
nickName: userStore.nickName,
|
||||
employeeId: userStore.id || userStore.practitionerId,
|
||||
employeeAccount: userStore.name, // 用户账号
|
||||
status: userStore.status || '' // 0: 启用(管理员), 1: 禁用(普通人员)
|
||||
};
|
||||
console.log('当前登录用户信息:', this.currentUser);
|
||||
@@ -259,7 +261,8 @@ export default {
|
||||
// 从响应中提取用户列表,并转换为需要的格式
|
||||
this.userList = res.data.records.map(user => ({
|
||||
name: user.nickName || user.username || user.name, // 尝试多种可能的名称字段
|
||||
employeeId: user.userId, // 使用用户ID作为员工工号
|
||||
employeeId: user.userId, // 使用用户ID作为员工ID
|
||||
employeeAccount: user.userName, // 使用用户账号作为员工账号
|
||||
status: user.status // 0: 启用(管理员), 1: 禁用(普通人员)
|
||||
}));
|
||||
console.log('获取到的用户列表:', this.userList);
|
||||
@@ -324,6 +327,7 @@ export default {
|
||||
((record.invoicingStaffId || record.employeeId) ?
|
||||
this.getUserNameById(record.invoicingStaffId || record.employeeId) : '-'),
|
||||
employeeId: record.invoicingStaffId || record.employeeId || '',
|
||||
employeeAccount: record.employeeAccount || '', // 员工账号字段
|
||||
date: record.billBusDate || record.createDate ?
|
||||
new Date(record.billBusDate || record.createDate).toISOString().split('T')[0] : '',
|
||||
startNum: record.startNum || record.beginNumber || '',
|
||||
@@ -377,6 +381,7 @@ export default {
|
||||
segmentId: record.segmentId || record.id, // 优先使用record.segmentId,确保segment_id不为空
|
||||
invoicingStaffId: record.employeeId,
|
||||
employeeId: record.employeeId, // 同时提供employeeId字段
|
||||
employeeAccount: record.employeeAccount, // 员工账号字段
|
||||
billBusDate: record.date ? new Date(record.date) : null,
|
||||
createDate: record.date ? new Date(record.date) : null,
|
||||
startNum: record.startNum,
|
||||
@@ -467,11 +472,20 @@ export default {
|
||||
updateOperatorFromEmployeeId(item) {
|
||||
if (item.employeeId) {
|
||||
item.operator = this.getUserNameById(item.employeeId);
|
||||
item.employeeAccount = this.getUserAccountById(item.employeeId);
|
||||
} else {
|
||||
item.operator = '';
|
||||
item.employeeAccount = '';
|
||||
}
|
||||
},
|
||||
|
||||
// 根据员工ID获取用户账号
|
||||
getUserAccountById(employeeId) {
|
||||
if (!employeeId) return '';
|
||||
const user = this.userList.find(u => String(u.employeeId) === String(employeeId));
|
||||
return user ? user.employeeAccount : '';
|
||||
},
|
||||
|
||||
// 根据员工ID获取用户名称
|
||||
getUserNameById(employeeId) {
|
||||
if (!employeeId) return '';
|
||||
@@ -495,6 +509,7 @@ export default {
|
||||
segmentId: newSegmentId, // 为新记录设置segmentId
|
||||
operator: this.isAdmin ? '' : this.currentUser.name, // 超级管理员可选择,普通用户自动填充
|
||||
employeeId: this.isAdmin ? '' : this.currentUser.employeeId, // 超级管理员可选择,普通用户自动填充
|
||||
employeeAccount: this.isAdmin ? '' : this.currentUser.employeeAccount, // 员工账号
|
||||
date: currentDate, // 自动填充当日日期
|
||||
startNum: '',
|
||||
endNum: '',
|
||||
@@ -1166,6 +1181,7 @@ export default {
|
||||
invoicingStaffId: record.employeeId,
|
||||
invoicingStaffName: record.operator || this.getUserNameById(record.employeeId),
|
||||
employeeId: record.employeeId, // 同时提供employeeId字段以保持一致性
|
||||
employeeAccount: record.employeeAccount, // 员工账号字段
|
||||
// 日期信息,确保同时设置billBusDate和createDate字段
|
||||
billBusDate: record.date ? new Date(record.date) : null,
|
||||
createDate: record.date ? new Date(record.date) : null,
|
||||
|
||||
Reference in New Issue
Block a user