|
@@ -11,6 +11,8 @@
|
|
|
:table-events="{
|
|
|
select: select,
|
|
|
}"
|
|
|
+ :onMoreSearch="true"
|
|
|
+ @moreSearch="clickMoreSearch"
|
|
|
:action-list="[
|
|
|
{
|
|
|
text: '添加计划',
|
|
@@ -62,6 +64,29 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ :title="'高级检索'"
|
|
|
+ v-model="formSearchDialog"
|
|
|
+ width="700"
|
|
|
+ v-loading="loading"
|
|
|
+ destroy-on-close
|
|
|
+ >
|
|
|
+ <byForm
|
|
|
+ :formConfig="formSearchConfig"
|
|
|
+ :formOption="formOption"
|
|
|
+ v-model="sourceList.pagination"
|
|
|
+ :rules="rules"
|
|
|
+ ref="byform"
|
|
|
+ >
|
|
|
+ </byForm>
|
|
|
+ <template #footer>
|
|
|
+ <el-button @click="moreSearchReset" size="large">重置</el-button>
|
|
|
+ <el-button @click="moreSearchQuery" type="primary" size="large"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -80,6 +105,8 @@ const sourceList = ref({
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
keyword: "",
|
|
|
+ beginTime: "",
|
|
|
+ endTime: "",
|
|
|
},
|
|
|
});
|
|
|
const dialogVisible = ref(false);
|
|
@@ -392,6 +419,49 @@ const changeFn = (val) => {
|
|
|
formData.data.waitQuantity = current.remainingQuantity;
|
|
|
}
|
|
|
};
|
|
|
+const formSearchDialog = ref(false);
|
|
|
+const formSearchConfig = computed(() => {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ type: "date",
|
|
|
+ itemType: "date",
|
|
|
+ prop: "beginTime",
|
|
|
+ label: "计划开始时间",
|
|
|
+ itemWidth: 50,
|
|
|
+ style: {
|
|
|
+ width: "100%",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "date",
|
|
|
+ itemType: "date",
|
|
|
+ prop: "endTime",
|
|
|
+ label: "计划结束时间",
|
|
|
+ itemWidth: 50,
|
|
|
+ style: {
|
|
|
+ width: "100%",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ];
|
|
|
+});
|
|
|
+const clickMoreSearch = () => {
|
|
|
+ formSearchDialog.value = true;
|
|
|
+};
|
|
|
+const moreSearchQuery = () => {
|
|
|
+ formSearchDialog.value = false;
|
|
|
+ getList();
|
|
|
+};
|
|
|
+const moreSearchReset = () => {
|
|
|
+ sourceList.value.pagination = {
|
|
|
+ total: 0,
|
|
|
+ pageNum: sourceList.value.pagination.pageNum,
|
|
|
+ pageSize: sourceList.value.pagination.pageSize,
|
|
|
+ keyword: "",
|
|
|
+ beginTime: "",
|
|
|
+ endTime: "",
|
|
|
+ };
|
|
|
+ moreSearchQuery();
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|