|
|
@ -450,12 +450,12 @@ |
|
|
const onMouthConfirm = (value) => { |
|
|
const onMouthConfirm = (value) => { |
|
|
value.selectedValues.forEach((item, index) => { |
|
|
value.selectedValues.forEach((item, index) => { |
|
|
// submitData.planYear = item; |
|
|
// submitData.planYear = item; |
|
|
console.log(item) |
|
|
|
|
|
data.mouthText = item; |
|
|
data.mouthText = item; |
|
|
nameObj.mouth = item; |
|
|
nameObj.mouth = item + "月"; |
|
|
}); |
|
|
}); |
|
|
// submitData.establishmentTime = "2023-04-21" |
|
|
// submitData.establishmentTime = "2023-04-21" |
|
|
data.showMouthPicker = false; |
|
|
data.showMouthPicker = false; |
|
|
|
|
|
data.quarterText = ""; |
|
|
} |
|
|
} |
|
|
//取消日期选择 |
|
|
//取消日期选择 |
|
|
const cancelSelectDate = () => { |
|
|
const cancelSelectDate = () => { |
|
|
@ -489,12 +489,25 @@ |
|
|
if(selectedOptions[0].value == "quarter"){ |
|
|
if(selectedOptions[0].value == "quarter"){ |
|
|
data.showQuarter = true; |
|
|
data.showQuarter = true; |
|
|
data.showMouth = false; |
|
|
data.showMouth = false; |
|
|
|
|
|
nameObj.mouth = ""; |
|
|
|
|
|
submitData.mouth = null; |
|
|
}else if (selectedOptions[0].value == "month") { |
|
|
}else if (selectedOptions[0].value == "month") { |
|
|
data.showMouth = true; |
|
|
data.showMouth = true; |
|
|
data.showQuarter = false; |
|
|
data.showQuarter = false; |
|
|
var date = new Date(); |
|
|
var date = new Date(); |
|
|
var month = date.getMonth(); |
|
|
var month = date.getMonth(); |
|
|
data.currentMouth = ref([month + 1]) |
|
|
data.currentMouth = ref([month + 1]) |
|
|
|
|
|
nameObj.quarter = ""; |
|
|
|
|
|
submitData.quarter = null; |
|
|
|
|
|
}else if( selectedOptions[0].value == "year"){ |
|
|
|
|
|
data.showMouth = false; |
|
|
|
|
|
data.showQuarter = false; |
|
|
|
|
|
data.mouthText = ""; |
|
|
|
|
|
data.quarterText = ""; |
|
|
|
|
|
nameObj.mouth = ""; |
|
|
|
|
|
nameObj.quarter = ""; |
|
|
|
|
|
submitData.quarter = null; |
|
|
|
|
|
submitData.mouth = null; |
|
|
} |
|
|
} |
|
|
console.log(data.showMouth) |
|
|
console.log(data.showMouth) |
|
|
console.log(data.showQuarter) |
|
|
console.log(data.showQuarter) |
|
|
@ -507,6 +520,8 @@ |
|
|
submitData.quarter = selectedOptions[0].value; |
|
|
submitData.quarter = selectedOptions[0].value; |
|
|
data.quarterText = selectedOptions[0].text; |
|
|
data.quarterText = selectedOptions[0].text; |
|
|
nameObj.quarter = selectedOptions[0].text; |
|
|
nameObj.quarter = selectedOptions[0].text; |
|
|
|
|
|
data.mouthText = ""; |
|
|
|
|
|
nameObj.mouthText = ""; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const foucePlan = () =>{ |
|
|
const foucePlan = () =>{ |
|
|
|