|
@@ -3,14 +3,18 @@
|
|
|
<vxe-grid v-bind="gridOptions" v-on="gridEvents" ref="gridRef" @checkbox-all="selectAllChangeEvent" @checkbox-change="selectChangeEvent">
|
|
|
<template #form>
|
|
|
<el-form :model="state.queryParams" ref="ruleFormRef" inline @submit.native.prevent>
|
|
|
- <el-form-item label="关键词" prop="Keyword">
|
|
|
- <el-input
|
|
|
- v-model="state.queryParams.Keyword"
|
|
|
- placeholder="工单标题/工单编码"
|
|
|
- clearable
|
|
|
- @keyup.enter="handleQuery"
|
|
|
- class="keyword-input"
|
|
|
- />
|
|
|
+ <el-form-item label="工单标题" prop="Title">
|
|
|
+ <el-input v-model="state.queryParams.Title" placeholder="工单标题" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工单编码" prop="No">
|
|
|
+ <el-input v-model="state.queryParams.No" placeholder="工单编码" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="推送状态" prop="OrderPushStatus">
|
|
|
+ <el-select v-model="state.queryParams.OrderPushStatus" placeholder="请选择推送状态" @change="handleQuery">
|
|
|
+ <el-option :value="0" label="待推送" />
|
|
|
+ <el-option :value="1" label="item.dicDataName" />
|
|
|
+ <el-option :value="2" label="item.dicDataName" />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="handleQuery" :loading="gridOptions.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
@@ -42,6 +46,7 @@
|
|
|
import { computed, defineAsyncComponent, reactive, ref } from 'vue';
|
|
|
import { ElMessage, FormInstance } from 'element-plus';
|
|
|
import { throttle } from '@/utils/tools';
|
|
|
+import { getEarlyPushOrderList } from '@/api/early/push';
|
|
|
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
|
const pagination = defineAsyncComponent(() => import('@/components/ProTable/components/Pagination.vue')); // 分页
|
|
@@ -53,6 +58,9 @@ const state = reactive<any>({
|
|
|
PageIndex: 1, // 当前页
|
|
|
PageSize: 10, // 每页条数
|
|
|
Keyword: null, // 关键字
|
|
|
+ Title: null, // 工单标题
|
|
|
+ No: null, // 工单编码
|
|
|
+ OrderPushStatus:null, // 推送状态
|
|
|
},
|
|
|
total: 0, // 总条数
|
|
|
});
|
|
@@ -160,7 +168,19 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
formEl.resetFields();
|
|
|
handleQuery();
|
|
|
};
|
|
|
-const queryList = () => {};
|
|
|
+// 获取可以选择的推送工单列表
|
|
|
+const queryList = () => {
|
|
|
+ gridOptions.loading = true;
|
|
|
+ getEarlyPushOrderList(state.queryParams)
|
|
|
+ .then((res: any) => {
|
|
|
+ gridOptions.loading = false;
|
|
|
+ gridOptions.data = res.result.items ?? [];
|
|
|
+ state.total = res.result.total ?? 0;
|
|
|
+ })
|
|
|
+ .catch((err: any) => {
|
|
|
+ gridOptions.loading = false;
|
|
|
+ });
|
|
|
+};
|
|
|
|
|
|
// 关闭弹窗
|
|
|
const closeDialog = () => {
|