| | |
| | | <div class="app-container"> |
| | | <div class="search_form mb20"> |
| | | <div> |
| | | <span class="search_title">申请人:</span> |
| | | <span class="search_title">审批单号:</span> |
| | | <el-input |
| | | v-model="searchForm.instanceNo" |
| | | style="width: 220px" |
| | | placeholder="请输入审批单号" |
| | | clearable |
| | | @keyup.enter="onSearch" |
| | | /> |
| | | <span class="search_title" style="margin-left: 12px">申请人:</span> |
| | | <el-input |
| | | v-model="searchForm.applicantKeyword" |
| | | style="width: 220px" |
| | |
| | | :prefix-icon="Search" |
| | | @keyup.enter="onSearch" |
| | | /> |
| | | <span class="search_title" style="margin-left: 12px">加班类型:</span> |
| | | <el-select v-model="searchForm.overtimeType" placeholder="全部" clearable style="width: 180px"> |
| | | <el-option v-for="opt in OVERTIME_TYPE_OPTIONS" :key="opt.value" :label="opt.label" :value="opt.value" /> |
| | | </el-select> |
| | | <el-button type="primary" style="margin-left: 10px" @click="onSearch">搜索</el-button> |
| | | <el-button @click="resetSearch">重置</el-button> |
| | | </div> |
| | |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const searchForm = reactive({ |
| | | instanceNo: "", |
| | | applicantKeyword: "", |
| | | overtimeType: "", |
| | | }); |
| | | |
| | | const mod = useApprovalInstanceModule({ |
| | |
| | | } |
| | | } |
| | | |
| | | const tableColumn = buildInstanceTableColumns(tableData, buildTableActions); |
| | | const tableColumn = buildInstanceTableColumns(tableData, buildTableActions, { |
| | | moduleKey: APPROVAL_MODULE_KEYS.OVERTIME, |
| | | }); |
| | | |
| | | function onSearch() { |
| | | handleQuery(searchForm); |
| | | } |
| | | |
| | | function resetSearch() { |
| | | searchForm.instanceNo = ""; |
| | | searchForm.applicantKeyword = ""; |
| | | searchForm.overtimeType = ""; |
| | | onSearch(); |
| | | } |
| | | |