|
@@ -91,6 +91,11 @@
|
|
|
<el-option label="否" value="false" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="来源渠道" prop="Channel">
|
|
|
+ <el-select v-model="state.queryParams.Channel" placeholder="请选择来源渠道" clearable @change="handleQuery">
|
|
|
+ <el-option v-for="items in channelOptions" :key="items.dicDataValue" :label="items.dicDataName" :value="items.dicDataValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
@@ -103,7 +108,7 @@
|
|
|
import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
-import { batchPublishOrder, publishList } from '@/api/todo/publish';
|
|
|
+import { batchPublishOrder, publishBaseInfo, publishList } from '@/api/todo/publish';
|
|
|
// 引入组件
|
|
|
const OrderPublish = defineAsyncComponent(() => import('@/views/business/publish/components/Order-publish.vue')); // 发布
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
@@ -120,7 +125,8 @@ const state = reactive<any>({
|
|
|
IsCountersign: null, // 是否会签
|
|
|
Keyword: null, // 标题
|
|
|
QuerySelf: 'true', // 是否只查询自己的待发布工单
|
|
|
- IsProvinceOrder:null, // 是否省工单
|
|
|
+ IsProvinceOrder: null, // 是否省工单
|
|
|
+ Channel:null,
|
|
|
},
|
|
|
tableData: [], //表单
|
|
|
loading: false, // 加载
|
|
@@ -242,7 +248,19 @@ const onMigration = () => {
|
|
|
const ids = proTableRef.value.selectedList.map((item: any) => item.id);
|
|
|
orderMigrationRef.value.openDialog('publishTodo', ids);
|
|
|
};
|
|
|
+// 获取基础信息
|
|
|
+const channelOptions = ref<EmptyArrayType>([]); // 来源渠道
|
|
|
+const getBaseInfo = async () => {
|
|
|
+ // 获取基础信息
|
|
|
+ try {
|
|
|
+ const { result } = await publishBaseInfo();
|
|
|
+ channelOptions.value = result.channelOptions;
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e);
|
|
|
+ }
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
queryList();
|
|
|
+ getBaseInfo();
|
|
|
});
|
|
|
</script>
|