|
@@ -33,6 +33,7 @@
|
|
:allow-clear="false"
|
|
:allow-clear="false"
|
|
:options="optionList"
|
|
:options="optionList"
|
|
filter-option
|
|
filter-option
|
|
|
|
+ popup-container="body"
|
|
>
|
|
>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -92,6 +93,8 @@
|
|
|
|
|
|
const optionList = ref<Options[]>([]);
|
|
const optionList = ref<Options[]>([]);
|
|
async function getTimes() {
|
|
async function getTimes() {
|
|
|
|
+ if (optionList.value.length) return;
|
|
|
|
+
|
|
const res = await orderRecordPrintTimeListPage();
|
|
const res = await orderRecordPrintTimeListPage();
|
|
optionList.value = (res || []).map((item) => {
|
|
optionList.value = (res || []).map((item) => {
|
|
return {
|
|
return {
|
|
@@ -100,7 +103,6 @@
|
|
};
|
|
};
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- getTimes();
|
|
|
|
|
|
|
|
/* confirm */
|
|
/* confirm */
|
|
const { loading, setLoading } = useLoading();
|
|
const { loading, setLoading } = useLoading();
|
|
@@ -122,6 +124,8 @@
|
|
}
|
|
}
|
|
/* init modal */
|
|
/* init modal */
|
|
function modalBeforeOpen() {
|
|
function modalBeforeOpen() {
|
|
|
|
+ getTimes();
|
|
|
|
+
|
|
objModifyAssign(formData, defaultFormData);
|
|
objModifyAssign(formData, defaultFormData);
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
formRef.value?.clearValidate();
|
|
formRef.value?.clearValidate();
|