|
@@ -178,7 +178,9 @@ export default defineComponent({
|
|
|
instrumentCode: null as any, // 乐器编码
|
|
|
activeOverTime: 0, // 活动结束时间
|
|
|
activeOverStatus: true, // 活动是否结束 默认已结束
|
|
|
+ gradePopupShow: false,
|
|
|
gradePopupIndex: [] as any, // 年级下拉索引
|
|
|
+ classPopupShow: false,
|
|
|
classPopupIndex: [] as any // 班级下拉索引
|
|
|
});
|
|
|
|
|
@@ -1670,52 +1672,72 @@ export default defineComponent({
|
|
|
round
|
|
|
safeAreaInsetBottom
|
|
|
lazyRender={false}
|
|
|
- class={'popupBottomSearch'}>
|
|
|
- <Picker
|
|
|
- showToolbar
|
|
|
- v-model={forms.gradePopupIndex}
|
|
|
- columns={forms.gradeList}
|
|
|
- onCancel={() => (forms.gradeStatus = false)}
|
|
|
- onConfirm={(val: any) => {
|
|
|
- const selectedOption = val.selectedOptions[0];
|
|
|
- studentInfo.extra.currentGradeNum = selectedOption.value;
|
|
|
- forms.gradeNumText = selectedOption.text;
|
|
|
- forms.gradeStatus = false;
|
|
|
- if (['SCHOOL', 'GRADE'].includes(forms.schoolInstrumentSetType)) {
|
|
|
- forms.instrumentCode = selectedOption.instrumentCode;
|
|
|
- }
|
|
|
+ class={'popupBottomSearch'}
|
|
|
+ onOpen={() => {
|
|
|
+ forms.gradePopupShow = true;
|
|
|
+ }}
|
|
|
+ onClosed={() => {
|
|
|
+ forms.gradePopupShow = false;
|
|
|
+ }}>
|
|
|
+ {forms.gradePopupShow && (
|
|
|
+ <Picker
|
|
|
+ showToolbar
|
|
|
+ v-model={forms.gradePopupIndex}
|
|
|
+ columns={forms.gradeList}
|
|
|
+ onCancel={() => (forms.gradeStatus = false)}
|
|
|
+ onConfirm={(val: any) => {
|
|
|
+ const selectedOption = val.selectedOptions[0];
|
|
|
+ studentInfo.extra.currentGradeNum = selectedOption.value;
|
|
|
+ forms.gradeNumText = selectedOption.text;
|
|
|
+ forms.gradeStatus = false;
|
|
|
+ if (
|
|
|
+ ['SCHOOL', 'GRADE'].includes(forms.schoolInstrumentSetType)
|
|
|
+ ) {
|
|
|
+ forms.instrumentCode = selectedOption.instrumentCode;
|
|
|
+ }
|
|
|
|
|
|
- if (forms.schoolInstrumentSetType === 'CLASS') {
|
|
|
- forms.classList = selectedOption.classList;
|
|
|
- }
|
|
|
- if (['CLASS', 'GRADE'].includes(forms.schoolInstrumentSetType)) {
|
|
|
- forms.currentClassText = '';
|
|
|
- studentInfo.extra.currentClass = '';
|
|
|
- }
|
|
|
- }}
|
|
|
- />
|
|
|
+ if (forms.schoolInstrumentSetType === 'CLASS') {
|
|
|
+ forms.classList = selectedOption.classList;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ ['CLASS', 'GRADE'].includes(forms.schoolInstrumentSetType)
|
|
|
+ ) {
|
|
|
+ forms.currentClassText = '';
|
|
|
+ studentInfo.extra.currentClass = '';
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ )}
|
|
|
</Popup>
|
|
|
{/* 班级 */}
|
|
|
<Popup
|
|
|
v-model:show={forms.classStatus}
|
|
|
position="bottom"
|
|
|
round
|
|
|
- class={'popupBottomSearch'}>
|
|
|
- <Picker
|
|
|
- showToolbar
|
|
|
- v-model={forms.classPopupIndex}
|
|
|
- columns={forms.classList}
|
|
|
- onCancel={() => (forms.classStatus = false)}
|
|
|
- onConfirm={(val: any) => {
|
|
|
- const selectedOption = val.selectedOptions[0];
|
|
|
- studentInfo.extra.currentClass = selectedOption.value;
|
|
|
- forms.currentClassText = selectedOption.text;
|
|
|
- forms.classStatus = false;
|
|
|
- if (['CLASS'].includes(forms.schoolInstrumentSetType)) {
|
|
|
- forms.instrumentCode = selectedOption.instrumentCode;
|
|
|
- }
|
|
|
- }}
|
|
|
- />
|
|
|
+ class={'popupBottomSearch'}
|
|
|
+ onOpen={() => {
|
|
|
+ forms.classPopupShow = true;
|
|
|
+ }}
|
|
|
+ onClosed={() => {
|
|
|
+ forms.classPopupShow = false;
|
|
|
+ }}>
|
|
|
+ {forms.classPopupShow && (
|
|
|
+ <Picker
|
|
|
+ showToolbar
|
|
|
+ v-model={forms.classPopupIndex}
|
|
|
+ columns={forms.classList}
|
|
|
+ onCancel={() => (forms.classStatus = false)}
|
|
|
+ onConfirm={(val: any) => {
|
|
|
+ const selectedOption = val.selectedOptions[0];
|
|
|
+ studentInfo.extra.currentClass = selectedOption.value;
|
|
|
+ forms.currentClassText = selectedOption.text;
|
|
|
+ forms.classStatus = false;
|
|
|
+ if (['CLASS'].includes(forms.schoolInstrumentSetType)) {
|
|
|
+ forms.instrumentCode = selectedOption.instrumentCode;
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ )}
|
|
|
</Popup>
|
|
|
|
|
|
{/* 已经购买过样品 */}
|