2、维修知识管理
This commit is contained in:
@@ -93,10 +93,10 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
label: item.label,
|
||||
shiftValue: '休息',
|
||||
isRest: 1,
|
||||
id: null,
|
||||
shiftId: null,
|
||||
})
|
||||
})
|
||||
settingData.cycleData = [{id: ''}, {id: ''}];
|
||||
settingData.cycleData = [{scheduleId: ''}, {scheduleId: ''}];
|
||||
}
|
||||
await markInitialized();
|
||||
modalApi.modalLoading(false);
|
||||
@@ -115,7 +115,7 @@ async function handleConfirm() {
|
||||
if (data.attendanceType == 1) {
|
||||
let hasError = false;
|
||||
settingData.cycleData.forEach((item, index) => {
|
||||
if (!item.id) {
|
||||
if (!item.scheduleId) {
|
||||
message.warning('请选择周期天数对应班次。');
|
||||
return;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ function handleShiftInfo(info: ShiftVO) {
|
||||
settingData.shiftId = info.id
|
||||
shiftInfo.value = info;
|
||||
settingData.weekdayData.forEach(item => {
|
||||
item.id = info.id
|
||||
item.shiftId = info.id
|
||||
let str = ''
|
||||
if (info.isRest) {
|
||||
str = `${info.name}:${info.startTime}~${info.restStartTime} ${info.restEndTime}~${info.endTime}`;
|
||||
@@ -209,7 +209,7 @@ function handleShiftList(list: any[]) {
|
||||
function addCycleHandle() {
|
||||
if (settingData.cycleData.length < 31) {
|
||||
settingData.cycleData.push({
|
||||
id: '',
|
||||
scheduleId: '',
|
||||
})
|
||||
} else {
|
||||
message.warning('周期天数最多31天。');
|
||||
@@ -244,12 +244,12 @@ function changeShiftHandle(type: number, index: number) {
|
||||
function restHandle(index: number) {
|
||||
settingData.weekdayData[index].isRest = 1
|
||||
settingData.weekdayData[index].shiftValue = '休息'
|
||||
settingData.weekdayData[index].id = null
|
||||
settingData.weekdayData[index].shiftId = null
|
||||
}
|
||||
|
||||
function handleAfterValue(val: ShiftVO) {
|
||||
if (tableIndex.value > -1 && val) {
|
||||
settingData.weekdayData[tableIndex.value].id = val.id
|
||||
settingData.weekdayData[tableIndex.value].shiftId = val.id
|
||||
let str = ''
|
||||
if (val.isRest) {
|
||||
str = `${val.name}:${val.startTime}~${val.restStartTime} ${val.restEndTime}~${val.endTime}`;
|
||||
|
Reference in New Issue
Block a user