作者 xiaoqiu

接入了保单接口数据

不能预览此文件类型
  1 +import request from '@/utils/request'
  2 +
  3 +// 查询保单报表
  4 +export function queryList(params) {
  5 + return request({
  6 + url: '/registration/monitor/listReports',
  7 + method: 'get',
  8 + params
  9 + })
  10 +}
  11 +
  12 +// 查询已处理保单
  13 +export function queryProcessedList(params) {
  14 + return request({
  15 + url: '/registration/monitor/listProcessed',
  16 + method: 'get',
  17 + params
  18 + })
  19 +}
  20 +
  21 +// 查询进行中保单
  22 +export function queryOngoingList(params) {
  23 + return request({
  24 + url: '/registration/monitor/listOngoing',
  25 + method: 'get',
  26 + params
  27 + })
  28 +}
  29 +
  30 +// 查询已完结保单
  31 +export function queryEndedList(params) {
  32 + return request({
  33 + url: '/registration/monitor/listEnded',
  34 + method: 'get',
  35 + params
  36 + })
  37 +}
  38 +
  39 +// 查询已作废保单
  40 +export function queryDeprecatedList(params) {
  41 + return request({
  42 + url: '/registration/monitor/listDeprecated',
  43 + method: 'get',
  44 + params
  45 + })
  46 +}
  47 +
  48 +// 查询保单回馈
  49 +export function queryResult(params) {
  50 + return request({
  51 + url: '/registration/monitor/getResult',
  52 + method: 'get',
  53 + params
  54 + })
  55 +}
  56 +
  57 +// 获取待办任务
  58 +export function queryMyList(params) {
  59 + return request({
  60 + url: '/registration/mylist',
  61 + method: 'get',
  62 + params
  63 + })
  64 +}
  65 +
  66 +// 办理一个用户任务
  67 +export function disposeUser(data) {
  68 + return request({
  69 + url: '/registration/completeTask/{taskId}',
  70 + method: 'post',
  71 + data
  72 + })
  73 +}
  74 +
  75 +// 转办
  76 +export function transfer(taskId) {
  77 + return request({
  78 + url: `/registration/completeTask/${taskId}`,
  79 + method: 'post'
  80 + })
  81 +}
  82 +
@@ -23,16 +23,19 @@ @@ -23,16 +23,19 @@
23 import { QuillEditor } from "@vueup/vue-quill"; 23 import { QuillEditor } from "@vueup/vue-quill";
24 import "@vueup/vue-quill/dist/vue-quill.snow.css"; 24 import "@vueup/vue-quill/dist/vue-quill.snow.css";
25 import { reactive, onMounted, ref, toRaw, watch } from "vue"; 25 import { reactive, onMounted, ref, toRaw, watch } from "vue";
26 -// import { backsite } from '@/api' 26 +import { uploadAvatar } from "@/api/system/user";
27 27
28 const props = defineProps(["value"]); 28 const props = defineProps(["value"]);
29 const emit = defineEmits(["updateValue"]); 29 const emit = defineEmits(["updateValue"]);
30 const content = ref(""); 30 const content = ref("");
31 const myQuillEditor = ref(); 31 const myQuillEditor = ref();
32 -// watch(() => props.value, (val) => {  
33 -// console.log(toRaw(myQuillEditor.value))  
34 -// toRaw(myQuillEditor.value).setHTML(val)  
35 -// }, { deep: true }) 32 +watch(
  33 + () => props.value,
  34 + (val) => {
  35 + toRaw(myQuillEditor.value).setHTML(val);
  36 + },
  37 + { deep: true }
  38 +);
36 const fileBtn = ref(); 39 const fileBtn = ref();
37 const data = reactive({ 40 const data = reactive({
38 content: "", 41 content: "",
@@ -65,33 +68,29 @@ const setValue = () => { @@ -65,33 +68,29 @@ const setValue = () => {
65 }; 68 };
66 const handleUpload = (e) => { 69 const handleUpload = (e) => {
67 const files = Array.prototype.slice.call(e.target.files); 70 const files = Array.prototype.slice.call(e.target.files);
68 - console.log(files, "files");  
69 if (!files) { 71 if (!files) {
70 return; 72 return;
71 } 73 }
72 const formdata = new FormData(); 74 const formdata = new FormData();
73 - formdata.append("file", files[0]); 75 + formdata.append("avatarfile", files[0]);
  76 + const quill = toRaw(myQuillEditor.value).getQuill();
  77 + const length = quill.getSelection().index;
  78 + // 调整光标到最后
  79 + quill.setSelection(length + 1);
  80 + uploadAvatar(formdata).then((res) => {
  81 + if (res.imgUrl) {
74 const quill = toRaw(myQuillEditor.value).getQuill(); 82 const quill = toRaw(myQuillEditor.value).getQuill();
75 const length = quill.getSelection().index; 83 const length = quill.getSelection().index;
76 // 插入图片,res为服务器返回的图片链接地址 84 // 插入图片,res为服务器返回的图片链接地址
77 quill.insertEmbed( 85 quill.insertEmbed(
78 length, 86 length,
79 "image", 87 "image",
80 - "https://img.zcool.cn/community/0159645d5a2f40a80120695c8d54fc.jpg@1280w_1l_2o_100sh.jpg" 88 + import.meta.env.VITE_APP_TAB_URL_PREFIX + res.imgUrl
81 ); 89 );
82 // 调整光标到最后 90 // 调整光标到最后
83 quill.setSelection(length + 1); 91 quill.setSelection(length + 1);
84 - // backsite.uploadFile(formdata)  
85 - // .then(res => {  
86 - // if (res.data.url) {  
87 - // const quill = toRaw(myQuillEditor.value).getQuill()  
88 - // const length = quill.getSelection().index  
89 - // // 插入图片,res为服务器返回的图片链接地址  
90 - // quill.insertEmbed(length, 'image', res.data.url)  
91 - // // 调整光标到最后  
92 - // quill.setSelection(length + 1)  
93 - // }  
94 - // }) 92 + }
  93 + });
95 }; 94 };
96 onMounted(() => { 95 onMounted(() => {
97 const quill = toRaw(myQuillEditor.value).getQuill(); 96 const quill = toRaw(myQuillEditor.value).getQuill();
@@ -60,15 +60,7 @@ export const constantRoutes = [ @@ -60,15 +60,7 @@ export const constantRoutes = [
60 { 60 {
61 path: '', 61 path: '',
62 component: Layout, 62 component: Layout,
63 - redirect: '/index',  
64 - children: [  
65 - {  
66 - path: '/index',  
67 - component: () => import('@/views/index'),  
68 - name: 'Index',  
69 - meta: { title: '首页', icon: 'dashboard', affix: true }  
70 - }  
71 - ] 63 + redirect: '/policy/pending'
72 }, 64 },
73 { 65 {
74 path: '/user', 66 path: '/user',
@@ -15,15 +15,6 @@ @@ -15,15 +15,6 @@
15 >新增</el-button 15 >新增</el-button
16 > 16 >
17 </el-col> 17 </el-col>
18 - <el-col :span="1.5">  
19 - <el-button  
20 - type="warning"  
21 - plain  
22 - icon="Download"  
23 - v-hasPermi="['system:role:export']"  
24 - >导出</el-button  
25 - >  
26 - </el-col>  
27 </el-row> 18 </el-row>
28 19
29 <!-- 表格数据 --> 20 <!-- 表格数据 -->
@@ -64,7 +55,7 @@ @@ -64,7 +55,7 @@
64 55
65 <!-- 添加或修改用户配置对话框 --> 56 <!-- 添加或修改用户配置对话框 -->
66 <el-dialog :title="title" v-model="open" width="600px" append-to-body> 57 <el-dialog :title="title" v-model="open" width="600px" append-to-body>
67 - <el-form :model="form" :rules="rules" ref="rulesRef" label-width="100px"> 58 + <el-form :model="form" :rules="rules" ref="rulesRef" label-width="120px">
68 <el-form-item label="承保公司名称" prop="deptId"> 59 <el-form-item label="承保公司名称" prop="deptId">
69 <el-tree-select 60 <el-tree-select
70 v-model="form.deptId" 61 v-model="form.deptId"
@@ -154,16 +145,17 @@ function handleAdd() { @@ -154,16 +145,17 @@ function handleAdd() {
154 } 145 }
155 146
156 /** 修改角色 */ 147 /** 修改角色 */
157 -function handleUpdate(row) { 148 +const handleUpdate = async (row) => {
158 reset(); 149 reset();
159 form.value = row; 150 form.value = row;
160 - title.value = "修改规则";  
161 - open.value = true;  
162 -} 151 + await updateRules([form.value]);
  152 + proxy.$modal.msgSuccess("修改成功");
  153 + getList();
  154 +};
163 155
164 /** 删除按钮操作 */ 156 /** 删除按钮操作 */
165 function handleDelete(row) { 157 function handleDelete(row) {
166 - const Ids = row.id ? [row.id] : ids.value; 158 + const Ids = row.deptId ? [row.deptId] : ids.value;
167 proxy.$modal.confirm("是否确认删除该数据项?").then(async () => { 159 proxy.$modal.confirm("是否确认删除该数据项?").then(async () => {
168 await delRules(Ids); 160 await delRules(Ids);
169 proxy.$modal.msgSuccess("删除成功"); 161 proxy.$modal.msgSuccess("删除成功");
@@ -183,7 +175,7 @@ function reset() { @@ -183,7 +175,7 @@ function reset() {
183 175
184 /** 多选框选中数据 */ 176 /** 多选框选中数据 */
185 function handleSelectionChange(selection) { 177 function handleSelectionChange(selection) {
186 - ids.value = selection.map((item) => item.roleId); 178 + ids.value = selection.map((item) => item.deptId);
187 multiple.value = !selection.length; 179 multiple.value = !selection.length;
188 } 180 }
189 181
@@ -197,7 +189,7 @@ function submitForm() { @@ -197,7 +189,7 @@ function submitForm() {
197 getList(); 189 getList();
198 open.value = false; 190 open.value = false;
199 } else { 191 } else {
200 - await addRules(form.value); 192 + await addRules([form.value]);
201 getList(); 193 getList();
202 proxy.$modal.msgSuccess("新增成功"); 194 proxy.$modal.msgSuccess("新增成功");
203 open.value = false; 195 open.value = false;
@@ -17,18 +17,18 @@ @@ -17,18 +17,18 @@
17 @keyup.enter="handleQuery" 17 @keyup.enter="handleQuery"
18 /> 18 />
19 </el-form-item> 19 </el-form-item>
20 - <el-form-item label="车牌号" prop="carNum"> 20 + <el-form-item label="车牌号" prop="licensePlate">
21 <el-input 21 <el-input
22 - v-model="queryParams.carNum" 22 + v-model="queryParams.licensePlate"
23 placeholder="请输入车牌号" 23 placeholder="请输入车牌号"
24 clearable 24 clearable
25 style="width: 200px" 25 style="width: 200px"
26 @keyup.enter="handleQuery" 26 @keyup.enter="handleQuery"
27 /> 27 />
28 </el-form-item> 28 </el-form-item>
29 - <el-form-item label="操作人员" prop="editAuth"> 29 + <el-form-item label="操作人员" prop="association">
30 <el-input 30 <el-input
31 - v-model="queryParams.editAuth" 31 + v-model="queryParams.association"
32 placeholder="填写操作人员" 32 placeholder="填写操作人员"
33 clearable 33 clearable
34 style="width: 200px" 34 style="width: 200px"
@@ -197,6 +197,7 @@ @@ -197,6 +197,7 @@
197 </template> 197 </template>
198 198
199 <script setup> 199 <script setup>
  200 +import { queryDeprecatedList } from "@/api/policy";
200 const { proxy } = getCurrentInstance(); 201 const { proxy } = getCurrentInstance();
201 const loading = ref(false); 202 const loading = ref(false);
202 const total = ref(5); 203 const total = ref(5);
@@ -207,89 +208,11 @@ const queryParams = reactive({ @@ -207,89 +208,11 @@ const queryParams = reactive({
207 pageNum: 1, 208 pageNum: 1,
208 pageSize: 10, 209 pageSize: 10,
209 name: "", 210 name: "",
210 - carNum: "",  
211 - editAuth: "",  
212 - assignment: "",  
213 - status: "", 211 + licensePlate: "",
  212 + association: "",
214 }); 213 });
215 214
216 -const policyList = ref([  
217 - {  
218 - policyId: 1,  
219 - createTime: "2024-01-01",  
220 - carNum: "桂A 1234",  
221 - frameNum: "123456789012345678",  
222 - name: "张三",  
223 - phone: "12345678901",  
224 - company: "中国平安",  
225 - editAuth: "管理员",  
226 - authTime: "2024-01-01",  
227 - assignment: 0,  
228 - handler: "张三",  
229 - statue: 0,  
230 - deprecatedReason: "无",  
231 - },  
232 - {  
233 - policyId: 2,  
234 - createTime: "2024-01-02",  
235 - carNum: "粤B 1234",  
236 - frameNum: "123456789012345678",  
237 - name: "李四",  
238 - phone: "12345678902",  
239 - company: "中国平安",  
240 - editAuth: "管理员",  
241 - authTime: "2024-01-01",  
242 - assignment: 0,  
243 - handler: "张三",  
244 - status: 0,  
245 - deprecatedReason: "无",  
246 - },  
247 - {  
248 - policyId: 3,  
249 - createTime: "2024-01-03",  
250 - carNum: "粤C 1234",  
251 - frameNum: "123456789012345678",  
252 - name: "王五",  
253 - phone: "12345678903",  
254 - company: "中国平安",  
255 - editAuth: "管理员",  
256 - authTime: "2024-01-01",  
257 - assignment: 0,  
258 - handler: "张三",  
259 - status: 0,  
260 - deprecatedReason: "无",  
261 - },  
262 - {  
263 - policyId: 4,  
264 - createTime: "2024-01-04",  
265 - carNum: "粤D 1234",  
266 - frameNum: "123456789012345678",  
267 - name: "赵六",  
268 - phone: "12345678904",  
269 - company: "中国平安",  
270 - editAuth: "管理员",  
271 - authTime: "2024-01-01",  
272 - assignment: 1,  
273 - handler: "张三",  
274 - status: 1,  
275 - deprecatedReason: "无",  
276 - },  
277 - {  
278 - policyId: 5,  
279 - createTime: "2024-01-05",  
280 - carNum: "粤E 1234",  
281 - frameNum: "123456789012345678",  
282 - name: "孙七",  
283 - phone: "12345678905",  
284 - company: "中国平安",  
285 - editAuth: "管理员",  
286 - authTime: "2024-01-01",  
287 - assignment: 1,  
288 - handler: "张三",  
289 - status: 1,  
290 - deprecatedReason: "无",  
291 - },  
292 -]); 215 +const policyList = ref([]);
293 216
294 /** 多选框选中数据 */ 217 /** 多选框选中数据 */
295 function handleSelectionChange(selection) { 218 function handleSelectionChange(selection) {
@@ -310,7 +233,13 @@ function handleUpdate(row) { @@ -310,7 +233,13 @@ function handleUpdate(row) {
310 form.value = row; 233 form.value = row;
311 open.value = true; 234 open.value = true;
312 } 235 }
313 -const getList = () => {}; 236 +const getList = async () => {
  237 + loading.value = true;
  238 + const res = await queryDeprecatedList(queryParams);
  239 + policyList.value = res.rows;
  240 + total.value = res.total;
  241 + loading.value = false;
  242 +};
314 243
315 /** 搜索按钮操作 */ 244 /** 搜索按钮操作 */
316 function handleQuery() { 245 function handleQuery() {
@@ -325,6 +254,8 @@ function resetQuery() { @@ -325,6 +254,8 @@ function resetQuery() {
325 const getMsg = (val) => { 254 const getMsg = (val) => {
326 console.log(val); 255 console.log(val);
327 }; 256 };
  257 +
  258 +getList();
328 </script> 259 </script>
329 260
330 <style></style> 261 <style></style>
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17 @keyup.enter="handleQuery" 17 @keyup.enter="handleQuery"
18 /> 18 />
19 </el-form-item> 19 </el-form-item>
20 - <el-form-item label="车牌号" prop="carNum"> 20 + <el-form-item label="车牌号" prop="licensePlate">
21 <el-input 21 <el-input
22 - v-model="queryParams.carNum" 22 + v-model="queryParams.licensePlate"
23 placeholder="请输入车牌号" 23 placeholder="请输入车牌号"
24 clearable 24 clearable
25 style="width: 200px" 25 style="width: 200px"
26 @keyup.enter="handleQuery" 26 @keyup.enter="handleQuery"
27 /> 27 />
28 </el-form-item> 28 </el-form-item>
29 - <el-form-item label="操作人员" prop="editAuth"> 29 + <el-form-item label="操作人员" prop="association">
30 <el-input 30 <el-input
31 - v-model="queryParams.editAuth" 31 + v-model="queryParams.association"
32 placeholder="填写操作人员" 32 placeholder="填写操作人员"
33 clearable 33 clearable
34 style="width: 200px" 34 style="width: 200px"
35 @keyup.enter="handleQuery" 35 @keyup.enter="handleQuery"
36 /> 36 />
37 </el-form-item> 37 </el-form-item>
38 - <el-form-item label="分配机制" prop="assignment"> 38 + <el-form-item label="分配机制" prop="associationapprovetype">
39 <el-select 39 <el-select
40 - v-model="queryParams.assignment" 40 + v-model="queryParams.associationapprovetype"
41 placeholder="系统分配" 41 placeholder="系统分配"
42 clearable 42 clearable
43 style="width: 200px" 43 style="width: 200px"
@@ -50,21 +50,6 @@ @@ -50,21 +50,6 @@
50 /> 50 />
51 </el-select> 51 </el-select>
52 </el-form-item> 52 </el-form-item>
53 - <el-form-item label="保单状态" prop="status">  
54 - <el-select  
55 - v-model="queryParams.status"  
56 - placeholder="选择进度"  
57 - clearable  
58 - style="width: 200px"  
59 - >  
60 - <el-option  
61 - v-for="dict in statusOption"  
62 - :key="dict.value"  
63 - :label="dict.label"  
64 - :value="dict.value"  
65 - />  
66 - </el-select>  
67 - </el-form-item>  
68 <el-form-item> 53 <el-form-item>
69 <el-button type="primary" icon="Search" @click="handleQuery" 54 <el-button type="primary" icon="Search" @click="handleQuery"
70 >查询</el-button 55 >查询</el-button
@@ -80,72 +65,46 @@ @@ -80,72 +65,46 @@
80 @selection-change="handleSelectionChange" 65 @selection-change="handleSelectionChange"
81 @row-click="handleUpdate" 66 @row-click="handleUpdate"
82 > 67 >
83 - <el-table-column type="selection" width="55" align="center" />  
84 - <el-table-column  
85 - label="序号"  
86 - prop="policyId"  
87 - width="120"  
88 - align="center"  
89 - />  
90 <el-table-column 68 <el-table-column
91 label="登记时间" 69 label="登记时间"
92 - prop="createTime" 70 + prop="initialRegistrationTime"
93 width="150" 71 width="150"
94 - align="center"  
95 - />  
96 - <el-table-column  
97 - label="车牌号"  
98 - prop="carNum"  
99 - width="150"  
100 - align="center"  
101 - />  
102 - <el-table-column  
103 - label="车架号"  
104 - prop="frameNum"  
105 - width="240"  
106 - align="center"  
107 - />  
108 - <el-table-column  
109 - label="车主姓名"  
110 - prop="name"  
111 - width="100"  
112 - align="center"  
113 - />  
114 - <el-table-column  
115 - label="联系电话"  
116 - prop="phone"  
117 - width="180"  
118 - align="center"  
119 /> 72 />
  73 + <el-table-column label="车牌号" prop="licensePlateNumber" width="150" />
  74 + <el-table-column label="车架号" prop="frameNumber" width="240" />
  75 + <el-table-column label="车主姓名" prop="name" width="100" />
  76 + <el-table-column label="联系电话" prop="phone" width="180" />
120 <el-table-column 77 <el-table-column
121 - align="center"  
122 label="分配机制" 78 label="分配机制"
123 width="120" 79 width="120"
124 - prop="assignment"  
125 - >  
126 - <template #default="scope"> 80 + prop="distributionMechanism"
  81 + />
  82 + <el-table-column label="承保公司" prop="companyName" width="150" />
  83 + <el-table-column label="操作人员" width="150">
  84 + <template #default="{ row }">
127 <span>{{ 85 <span>{{
128 - scope.row.assignment === 0 ? "系统分配" : "人工分配" 86 + row.associationEmployeeUserName || row.companyEmployeeUserName
  87 + }}</span>
  88 + </template>
  89 + </el-table-column>
  90 + <el-table-column label="操作时间" width="170">
  91 + <template #default="{ row }">
  92 + <span>{{
  93 + row.companyEmployeeUndertakeTime || row.distributionTime
129 }}</span> 94 }}</span>
130 </template> 95 </template>
131 </el-table-column> 96 </el-table-column>
132 - <el-table-column  
133 - label="承保公司"  
134 - prop="company"  
135 - width="150"  
136 - align="center"  
137 - />  
138 <el-table-column 97 <el-table-column
139 label="办理人" 98 label="办理人"
140 - prop="handler" 99 + prop="companyEmployeeUserName"
141 width="100" 100 width="100"
142 align="center" 101 align="center"
143 /> 102 />
144 <el-table-column label="保单状态" width="100" prop="statue"> 103 <el-table-column label="保单状态" width="100" prop="statue">
145 - <template #default="scope"> 104 + <template #default="{ row }">
146 <span 105 <span
147 - :style="{ color: scope.row.status === 0 ? '#409EFF' : '#67C23A' }"  
148 - >{{ scope.row.status === 0 ? "疑难件" : "已办结" }}</span 106 + :style="{ color: row.status === '进行中' ? '#409EFF' : '#67C23A' }"
  107 + >{{ row.policyStatus }}</span
149 > 108 >
150 </template> 109 </template>
151 </el-table-column> 110 </el-table-column>
@@ -153,6 +112,7 @@ @@ -153,6 +112,7 @@
153 label="保单回馈" 112 label="保单回馈"
154 fixed="right" 113 fixed="right"
155 width="100" 114 width="100"
  115 + show-overflow-tooltip
156 prop="Feedback" 116 prop="Feedback"
157 > 117 >
158 <template #default> 118 <template #default>
@@ -173,18 +133,18 @@ @@ -173,18 +133,18 @@
173 <el-form :model="form" ref="policyRef" label-width="100px"> 133 <el-form :model="form" ref="policyRef" label-width="100px">
174 <el-row> 134 <el-row>
175 <el-col :span="12"> 135 <el-col :span="12">
176 - <el-form-item label="车牌号" prop="carNum"> 136 + <el-form-item label="车牌号" prop="licensePlateNumber">
177 <el-input 137 <el-input
178 - v-model="form.carNum" 138 + v-model="form.licensePlateNumber"
179 placeholder="请输入车牌号" 139 placeholder="请输入车牌号"
180 disabled 140 disabled
181 /> 141 />
182 </el-form-item> 142 </el-form-item>
183 </el-col> 143 </el-col>
184 <el-col :span="12"> 144 <el-col :span="12">
185 - <el-form-item label="车架号" prop="frameNum"> 145 + <el-form-item label="车架号" prop="frameNumber">
186 <el-input 146 <el-input
187 - v-model="form.frameNum" 147 + v-model="form.frameNumber"
188 disabled 148 disabled
189 placeholder="请输入车架号" 149 placeholder="请输入车架号"
190 /> 150 />
@@ -213,18 +173,18 @@ @@ -213,18 +173,18 @@
213 </el-row> 173 </el-row>
214 <el-row> 174 <el-row>
215 <el-col :span="12"> 175 <el-col :span="12">
216 - <el-form-item label="登记时间" prop="createTime"> 176 + <el-form-item label="车辆类型" prop="vehicleType">
217 <el-input 177 <el-input
218 - v-model="form.createTime" 178 + v-model="form.vehicleType"
219 disabled 179 disabled
220 placeholder="请输入登记时间" 180 placeholder="请输入登记时间"
221 /> 181 />
222 </el-form-item> 182 </el-form-item>
223 </el-col> 183 </el-col>
224 <el-col :span="12"> 184 <el-col :span="12">
225 - <el-form-item label="办理人" prop="handler"> 185 + <el-form-item label="车辆使用性质" prop="vehicleNature">
226 <el-input 186 <el-input
227 - v-model="form.handler" 187 + v-model="form.vehicleNature"
228 disabled 188 disabled
229 placeholder="请输入办理人" 189 placeholder="请输入办理人"
230 /> 190 />
@@ -233,27 +193,18 @@ @@ -233,27 +193,18 @@
233 </el-row> 193 </el-row>
234 <el-row> 194 <el-row>
235 <el-col :span="12"> 195 <el-col :span="12">
236 - <el-form-item label="分配机制" prop="createTime">  
237 - <el-select  
238 - v-model="form.assignment"  
239 - placeholder="系统分配"  
240 - clearable 196 + <el-form-item label="核定载客数" prop="passengersNumber">
  197 + <el-input
  198 + v-model="form.passengersNumber"
241 disabled 199 disabled
242 - style="width: 230px"  
243 - >  
244 - <el-option  
245 - v-for="dict in options"  
246 - :key="dict.value"  
247 - :label="dict.label"  
248 - :value="dict.value" 200 + placeholder="请输入办理人"
249 /> 201 />
250 - </el-select>  
251 </el-form-item> 202 </el-form-item>
252 </el-col> 203 </el-col>
253 <el-col :span="12"> 204 <el-col :span="12">
254 - <el-form-item label="承保公司" prop="company"> 205 + <el-form-item label="核定载质量" prop="passengerCapacity">
255 <el-input 206 <el-input
256 - v-model="form.company" 207 + v-model="form.passengerCapacity"
257 disabled 208 disabled
258 placeholder="请输入承保公司" 209 placeholder="请输入承保公司"
259 /> 210 />
@@ -262,21 +213,61 @@ @@ -262,21 +213,61 @@
262 </el-row> 213 </el-row>
263 <el-row> 214 <el-row>
264 <el-col :span="12"> 215 <el-col :span="12">
265 - <el-form-item label="保单状态" prop="progress">  
266 - <el-select  
267 - v-model="form.status"  
268 - placeholder="保单状态"  
269 - clearable 216 + <el-form-item label="排量毫升" prop="emissions">
  217 + <el-input
  218 + v-model="form.emissions"
270 disabled 219 disabled
271 - style="width: 230px"  
272 - >  
273 - <el-option  
274 - v-for="dict in statusOption"  
275 - :key="dict.value"  
276 - :label="dict.label"  
277 - :value="dict.value" 220 + placeholder="请输入办理人"
  221 + />
  222 + </el-form-item>
  223 + </el-col>
  224 + <el-col :span="12">
  225 + <el-form-item label="中文品牌" prop="vehicleBrand">
  226 + <el-input
  227 + v-model="form.vehicleBrand"
  228 + disabled
  229 + placeholder="请输入办理人"
  230 + />
  231 + </el-form-item>
  232 + </el-col>
  233 + </el-row>
  234 + <el-row>
  235 + <el-col :span="12">
  236 + <el-form-item label="车辆型号" prop="vehicleModel">
  237 + <el-input
  238 + v-model="form.vehicleModel"
  239 + disabled
  240 + placeholder="请输入办理人"
  241 + />
  242 + </el-form-item>
  243 + </el-col>
  244 + <el-col :span="12">
  245 + <el-form-item label="准牵引准质量" prop="tractionMass">
  246 + <el-input
  247 + v-model="form.tractionMass"
  248 + disabled
  249 + placeholder="请输入办理人"
  250 + />
  251 + </el-form-item>
  252 + </el-col>
  253 + </el-row>
  254 + <el-row>
  255 + <el-col :span="12">
  256 + <el-form-item label="保险需求" prop="requirements">
  257 + <el-input
  258 + v-model="form.requirements"
  259 + disabled
  260 + placeholder="请输入办理人"
  261 + />
  262 + </el-form-item>
  263 + </el-col>
  264 + <el-col :span="12">
  265 + <el-form-item label="承保单号" prop="policyNumber">
  266 + <el-input
  267 + v-model="form.policyNumber"
  268 + disabled
  269 + placeholder="请输入办理人"
278 /> 270 />
279 - </el-select>  
280 </el-form-item> 271 </el-form-item>
281 </el-col> 272 </el-col>
282 </el-row> 273 </el-row>
@@ -286,7 +277,7 @@ @@ -286,7 +277,7 @@
286 disabled 277 disabled
287 type="textarea" 278 type="textarea"
288 placeholder="请输入保单回馈" 279 placeholder="请输入保单回馈"
289 - v-model="form.feedbank" 280 + v-model="form.message"
290 resize="none" 281 resize="none"
291 /> 282 />
292 </el-form-item> 283 </el-form-item>
@@ -302,6 +293,7 @@ @@ -302,6 +293,7 @@
302 </template> 293 </template>
303 294
304 <script setup> 295 <script setup>
  296 +import { queryEndedList, queryResult } from "@/api/policy";
305 const { proxy } = getCurrentInstance(); 297 const { proxy } = getCurrentInstance();
306 const loading = ref(false); 298 const loading = ref(false);
307 const total = ref(5); 299 const total = ref(5);
@@ -312,23 +304,11 @@ const queryParams = reactive({ @@ -312,23 +304,11 @@ const queryParams = reactive({
312 pageNum: 1, 304 pageNum: 1,
313 pageSize: 10, 305 pageSize: 10,
314 name: "", 306 name: "",
315 - carNum: "",  
316 - editAuth: "",  
317 - assignment: "",  
318 - status: "", 307 + licensePlate: "",
  308 + association: "",
  309 + associationapprovetype: "",
319 }); 310 });
320 311
321 -const statusOption = ref([  
322 - {  
323 - value: 0,  
324 - label: "疑难件",  
325 - },  
326 - {  
327 - value: 1,  
328 - label: "已办结",  
329 - },  
330 -]);  
331 -  
332 const options = [ 312 const options = [
333 { 313 {
334 value: 0, 314 value: 0,
@@ -340,83 +320,7 @@ const options = [ @@ -340,83 +320,7 @@ const options = [
340 }, 320 },
341 ]; 321 ];
342 322
343 -const policyList = ref([  
344 - {  
345 - policyId: 1,  
346 - createTime: "2024-01-01",  
347 - carNum: "桂A 1234",  
348 - frameNum: "123456789012345678",  
349 - name: "张三",  
350 - phone: "12345678901",  
351 - company: "中国平安",  
352 - editAuth: "管理员",  
353 - authTime: "2024-01-01",  
354 - assignment: 0,  
355 - handler: "张三",  
356 - statue: 0,  
357 - feedbank: "无",  
358 - },  
359 - {  
360 - policyId: 2,  
361 - createTime: "2024-01-02",  
362 - carNum: "粤B 1234",  
363 - frameNum: "123456789012345678",  
364 - name: "李四",  
365 - phone: "12345678902",  
366 - company: "中国平安",  
367 - editAuth: "管理员",  
368 - authTime: "2024-01-01",  
369 - assignment: 0,  
370 - handler: "张三",  
371 - status: 0,  
372 - feedbank: "无",  
373 - },  
374 - {  
375 - policyId: 3,  
376 - createTime: "2024-01-03",  
377 - carNum: "粤C 1234",  
378 - frameNum: "123456789012345678",  
379 - name: "王五",  
380 - phone: "12345678903",  
381 - company: "中国平安",  
382 - editAuth: "管理员",  
383 - authTime: "2024-01-01",  
384 - assignment: 0,  
385 - handler: "张三",  
386 - status: 0,  
387 - feedbank: "无",  
388 - },  
389 - {  
390 - policyId: 4,  
391 - createTime: "2024-01-04",  
392 - carNum: "粤D 1234",  
393 - frameNum: "123456789012345678",  
394 - name: "赵六",  
395 - phone: "12345678904",  
396 - company: "中国平安",  
397 - editAuth: "管理员",  
398 - authTime: "2024-01-01",  
399 - assignment: 1,  
400 - handler: "张三",  
401 - status: 1,  
402 - feedbank: "无",  
403 - },  
404 - {  
405 - policyId: 5,  
406 - createTime: "2024-01-05",  
407 - carNum: "粤E 1234",  
408 - frameNum: "123456789012345678",  
409 - name: "孙七",  
410 - phone: "12345678905",  
411 - company: "中国平安",  
412 - editAuth: "管理员",  
413 - authTime: "2024-01-01",  
414 - assignment: 1,  
415 - handler: "张三",  
416 - status: 1,  
417 - feedbank: "无",  
418 - },  
419 -]); 323 +const policyList = ref([]);
420 324
421 /** 多选框选中数据 */ 325 /** 多选框选中数据 */
422 function handleSelectionChange(selection) { 326 function handleSelectionChange(selection) {
@@ -433,14 +337,24 @@ function reset() { @@ -433,14 +337,24 @@ function reset() {
433 /** 修改按钮操作 */ 337 /** 修改按钮操作 */
434 function handleUpdate(row) { 338 function handleUpdate(row) {
435 reset(); 339 reset();
  340 + queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
436 form.value = row; 341 form.value = row;
  342 + form.value.policyNumber = res?.data?.policyNumber;
  343 + form.value.message = res?.data?.message;
437 open.value = true; 344 open.value = true;
  345 + });
438 } 346 }
439 -const getList = () => {}; 347 +const getList = async () => {
  348 + loading.value = true;
  349 + const res = await queryEndedList(queryParams);
  350 + policyList.value = res.rows;
  351 + total.value = res.total;
  352 + loading.value = false;
  353 +};
440 354
441 /** 搜索按钮操作 */ 355 /** 搜索按钮操作 */
442 function handleQuery() { 356 function handleQuery() {
443 - queryParams.value.pageNum = 1; 357 + queryParams.pageNum = 1;
444 getList(); 358 getList();
445 } 359 }
446 /** 重置按钮操作 */ 360 /** 重置按钮操作 */
@@ -448,6 +362,8 @@ function resetQuery() { @@ -448,6 +362,8 @@ function resetQuery() {
448 proxy.resetForm("queryRef"); 362 proxy.resetForm("queryRef");
449 handleQuery(); 363 handleQuery();
450 } 364 }
  365 +
  366 +getList();
451 </script> 367 </script>
452 368
453 <style></style> 369 <style></style>
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17 @keyup.enter="handleQuery" 17 @keyup.enter="handleQuery"
18 /> 18 />
19 </el-form-item> 19 </el-form-item>
20 - <el-form-item label="车牌号" prop="carNum"> 20 + <el-form-item label="车牌号" prop="licensePlate">
21 <el-input 21 <el-input
22 - v-model="queryParams.carNum" 22 + v-model="queryParams.licensePlate"
23 placeholder="请输入车牌号" 23 placeholder="请输入车牌号"
24 clearable 24 clearable
25 style="width: 200px" 25 style="width: 200px"
26 @keyup.enter="handleQuery" 26 @keyup.enter="handleQuery"
27 /> 27 />
28 </el-form-item> 28 </el-form-item>
29 - <el-form-item label="操作人员" prop="editAuth"> 29 + <el-form-item label="操作人员" prop="association">
30 <el-input 30 <el-input
31 - v-model="queryParams.editAuth" 31 + v-model="queryParams.association"
32 placeholder="填写操作人员" 32 placeholder="填写操作人员"
33 clearable 33 clearable
34 style="width: 200px" 34 style="width: 200px"
35 @keyup.enter="handleQuery" 35 @keyup.enter="handleQuery"
36 /> 36 />
37 </el-form-item> 37 </el-form-item>
38 - <el-form-item label="分配机制" prop="assignment"> 38 + <el-form-item label="分配机制" prop="associationapprovetype">
39 <el-select 39 <el-select
40 - v-model="queryParams.assignment" 40 + v-model="queryParams.associationapprovetype"
41 placeholder="系统分配" 41 placeholder="系统分配"
42 clearable 42 clearable
43 style="width: 200px" 43 style="width: 200px"
@@ -50,9 +50,9 @@ @@ -50,9 +50,9 @@
50 /> 50 />
51 </el-select> 51 </el-select>
52 </el-form-item> 52 </el-form-item>
53 - <el-form-item label="保单进度" prop="progress"> 53 + <el-form-item label="保单进度" prop="orderprogress">
54 <el-select 54 <el-select
55 - v-model="queryParams.progress" 55 + v-model="queryParams.orderprogress"
56 placeholder="选择进度" 56 placeholder="选择进度"
57 clearable 57 clearable
58 style="width: 200px" 58 style="width: 200px"
@@ -65,6 +65,21 @@ @@ -65,6 +65,21 @@
65 /> 65 />
66 </el-select> 66 </el-select>
67 </el-form-item> 67 </el-form-item>
  68 + <el-form-item label="保单状态" prop="status">
  69 + <el-select
  70 + v-model="queryParams.status"
  71 + placeholder="选择进度"
  72 + clearable
  73 + style="width: 200px"
  74 + >
  75 + <el-option
  76 + v-for="dict in statusOption"
  77 + :key="dict.value"
  78 + :label="dict.label"
  79 + :value="dict.value"
  80 + />
  81 + </el-select>
  82 + </el-form-item>
68 <el-form-item> 83 <el-form-item>
69 <el-button type="primary" icon="Search" @click="handleQuery" 84 <el-button type="primary" icon="Search" @click="handleQuery"
70 >查询</el-button 85 >查询</el-button
@@ -80,85 +95,44 @@ @@ -80,85 +95,44 @@
80 @selection-change="handleSelectionChange" 95 @selection-change="handleSelectionChange"
81 @row-click="handleUpdate" 96 @row-click="handleUpdate"
82 > 97 >
83 - <el-table-column type="selection" width="55" align="center" />  
84 - <el-table-column  
85 - label="序号"  
86 - prop="policyId"  
87 - width="120"  
88 - align="center"  
89 - /> 98 + <el-table-column label="序号" type="index" width="55" />
90 <el-table-column 99 <el-table-column
91 label="登记时间" 100 label="登记时间"
92 - prop="createTime"  
93 - width="150"  
94 - align="center"  
95 - />  
96 - <el-table-column  
97 - label="车牌号"  
98 - prop="carNum"  
99 - width="150"  
100 - align="center"  
101 - />  
102 - <el-table-column  
103 - label="车架号"  
104 - prop="frameNum"  
105 - width="240"  
106 - align="center"  
107 - />  
108 - <el-table-column  
109 - label="车主姓名"  
110 - prop="name"  
111 - width="100"  
112 - align="center"  
113 - />  
114 - <el-table-column  
115 - label="联系电话"  
116 - prop="phone"  
117 - width="180"  
118 - align="center"  
119 - />  
120 - <el-table-column  
121 - label="操作时间"  
122 - prop="authTime" 101 + prop="initialRegistrationTime"
123 width="150" 102 width="150"
124 - align="center"  
125 /> 103 />
  104 + <el-table-column label="车牌号" prop="licensePlateNumber" width="150" />
  105 + <el-table-column label="车架号" prop="frameNumber" width="240" />
  106 + <el-table-column label="车主姓名" prop="name" width="100" />
  107 + <el-table-column label="联系电话" prop="phone" width="180" />
126 <el-table-column 108 <el-table-column
127 - label="操作人员"  
128 - prop="editAuth"  
129 - width="120"  
130 - align="center"  
131 - />  
132 - <el-table-column  
133 - align="center"  
134 label="分配机制" 109 label="分配机制"
135 width="120" 110 width="120"
136 - prop="assignment"  
137 - >  
138 - <template #default="scope">  
139 - <span>{{ scope.row.progress === 0 ? "系统分配" : "人工分配" }}</span> 111 + prop="distributionMechanism"
  112 + />
  113 + <el-table-column label="承保公司" prop="companyName" width="150" />
  114 + <el-table-column label="操作人员" width="150">
  115 + <template #default="{ row }">
  116 + <span>{{
  117 + row.associationEmployeeUserName || row.companyEmployeeUserName
  118 + }}</span>
140 </template> 119 </template>
141 </el-table-column> 120 </el-table-column>
142 - <el-table-column  
143 - label="承保公司"  
144 - prop="company"  
145 - width="150"  
146 - align="center"  
147 - /> 121 + <el-table-column label="操作时间" width="170">
  122 + <template #default="{ row }">
  123 + <span>{{
  124 + row.companyEmployeeUndertakeTime || row.distributionTime
  125 + }}</span>
  126 + </template>
  127 + </el-table-column>
  128 +
148 <el-table-column 129 <el-table-column
149 label="办理人" 130 label="办理人"
150 prop="handler" 131 prop="handler"
151 width="100" 132 width="100"
152 align="center" 133 align="center"
153 /> 134 />
154 - <el-table-column label="保单进度" width="100" prop="progress">  
155 - <template #default="scope">  
156 - <span  
157 - :style="{ color: scope.row.progress === 0 ? '#409EFF' : '#67C23A' }"  
158 - >{{ scope.row.progress === 0 ? "待承接" : "已承接" }}</span  
159 - >  
160 - </template>  
161 - </el-table-column> 135 + <el-table-column label="保单进度" width="100" prop="orderProgress" />
162 </el-table> 136 </el-table>
163 137
164 <pagination 138 <pagination
@@ -174,18 +148,18 @@ @@ -174,18 +148,18 @@
174 <el-form :model="form" ref="policyRef" label-width="100px"> 148 <el-form :model="form" ref="policyRef" label-width="100px">
175 <el-row> 149 <el-row>
176 <el-col :span="12"> 150 <el-col :span="12">
177 - <el-form-item label="车牌号" prop="carNum"> 151 + <el-form-item label="车牌号" prop="licensePlateNumber">
178 <el-input 152 <el-input
179 - v-model="form.carNum" 153 + v-model="form.licensePlateNumber"
180 placeholder="请输入车牌号" 154 placeholder="请输入车牌号"
181 disabled 155 disabled
182 /> 156 />
183 </el-form-item> 157 </el-form-item>
184 </el-col> 158 </el-col>
185 <el-col :span="12"> 159 <el-col :span="12">
186 - <el-form-item label="车架号" prop="frameNum"> 160 + <el-form-item label="车架号" prop="frameNumber">
187 <el-input 161 <el-input
188 - v-model="form.frameNum" 162 + v-model="form.frameNumber"
189 disabled 163 disabled
190 placeholder="请输入车架号" 164 placeholder="请输入车架号"
191 /> 165 />
@@ -214,20 +188,20 @@ @@ -214,20 +188,20 @@
214 </el-row> 188 </el-row>
215 <el-row> 189 <el-row>
216 <el-col :span="12"> 190 <el-col :span="12">
217 - <el-form-item label="登记时间" prop="createTime"> 191 + <el-form-item label="登记时间" prop="initialRegistrationTime">
218 <el-input 192 <el-input
219 - v-model="form.createTime" 193 + v-model="form.initialRegistrationTime"
220 disabled 194 disabled
221 placeholder="请输入登记时间" 195 placeholder="请输入登记时间"
222 /> 196 />
223 </el-form-item> 197 </el-form-item>
224 </el-col> 198 </el-col>
225 <el-col :span="12"> 199 <el-col :span="12">
226 - <el-form-item label="办理人" prop="handler"> 200 + <el-form-item label="上年承保公司" prop="sysDeptName">
227 <el-input 201 <el-input
228 - v-model="form.handler" 202 + v-model="form.sysDeptName"
229 disabled 203 disabled
230 - placeholder="请输入办理人" 204 + placeholder="请输入上年承保公司"
231 /> 205 />
232 </el-form-item> 206 </el-form-item>
233 </el-col> 207 </el-col>
@@ -238,69 +212,44 @@ @@ -238,69 +212,44 @@
238 <el-input 212 <el-input
239 v-model="form.authTime" 213 v-model="form.authTime"
240 disabled 214 disabled
241 - placeholder="请输入操作时间" 215 + :placeholder="
  216 + form.companyEmployeeUndertakeTime || form.distributionTime
  217 + "
242 /> 218 />
243 </el-form-item> 219 </el-form-item>
244 </el-col> 220 </el-col>
245 <el-col :span="12"> 221 <el-col :span="12">
246 <el-form-item label="操作人员" prop="editAuth"> 222 <el-form-item label="操作人员" prop="editAuth">
247 <el-input 223 <el-input
248 - v-model="form.editAuth"  
249 disabled 224 disabled
250 - placeholder="请输入操作人员" 225 + :placeholder="
  226 + form.associationEmployeeUserName ||
  227 + form.companyEmployeeUserName
  228 + "
251 /> 229 />
252 </el-form-item> 230 </el-form-item>
253 </el-col> 231 </el-col>
254 </el-row> 232 </el-row>
255 <el-row> 233 <el-row>
256 <el-col :span="12"> 234 <el-col :span="12">
257 - <el-form-item label="分配机制" prop="createTime">  
258 - <el-select  
259 - v-model="form.assignment"  
260 - placeholder="系统分配"  
261 - clearable 235 + <el-form-item label="分配机制" prop="distributionMechanism">
  236 + <el-input
  237 + v-model="form.distributionMechanism"
262 disabled 238 disabled
263 - style="width: 230px"  
264 - >  
265 - <el-option  
266 - v-for="dict in options"  
267 - :key="dict.value"  
268 - :label="dict.label"  
269 - :value="dict.value" 239 + placeholder="请输入登记时间"
270 /> 240 />
271 - </el-select>  
272 </el-form-item> 241 </el-form-item>
273 </el-col> 242 </el-col>
274 <el-col :span="12"> 243 <el-col :span="12">
275 - <el-form-item label="承保公司" prop="company"> 244 + <el-form-item label="承保公司" prop="companyName">
276 <el-input 245 <el-input
277 - v-model="form.company" 246 + v-model="form.companyName"
278 disabled 247 disabled
279 placeholder="请输入承保公司" 248 placeholder="请输入承保公司"
280 /> 249 />
281 </el-form-item> 250 </el-form-item>
282 </el-col> 251 </el-col>
283 </el-row> 252 </el-row>
284 - <el-row>  
285 - <el-col :span="12">  
286 - <el-form-item label="保单进度" prop="progress">  
287 - <el-select  
288 - v-model="form.progress"  
289 - placeholder="保单进度"  
290 - clearable  
291 - disabled  
292 - style="width: 230px"  
293 - >  
294 - <el-option  
295 - v-for="dict in progressOption"  
296 - :key="dict.value"  
297 - :label="dict.label"  
298 - :value="dict.value"  
299 - />  
300 - </el-select>  
301 - </el-form-item>  
302 - </el-col>  
303 - </el-row>  
304 </el-form> 253 </el-form>
305 <template #footer> 254 <template #footer>
306 <div class="dialog-footer"> 255 <div class="dialog-footer">
@@ -313,6 +262,8 @@ @@ -313,6 +262,8 @@
313 </template> 262 </template>
314 263
315 <script setup> 264 <script setup>
  265 +import { queryOngoingList } from "@/api/policy";
  266 +import { get } from "@vueuse/core";
316 const { proxy } = getCurrentInstance(); 267 const { proxy } = getCurrentInstance();
317 const loading = ref(false); 268 const loading = ref(false);
318 const total = ref(5); 269 const total = ref(5);
@@ -323,10 +274,11 @@ const queryParams = reactive({ @@ -323,10 +274,11 @@ const queryParams = reactive({
323 pageNum: 1, 274 pageNum: 1,
324 pageSize: 10, 275 pageSize: 10,
325 name: "", 276 name: "",
326 - carNum: "",  
327 - editAuth: "",  
328 - assignment: "",  
329 - progress: "", 277 + licensePlate: "",
  278 + association: "",
  279 + associationapprovetype: "",
  280 + orderprogress: "",
  281 + policystatus: "",
330 }); 282 });
331 283
332 const progressOption = ref([ 284 const progressOption = ref([
@@ -350,79 +302,21 @@ const options = [ @@ -350,79 +302,21 @@ const options = [
350 label: "人工分配", 302 label: "人工分配",
351 }, 303 },
352 ]; 304 ];
353 -  
354 -const policyList = ref([ 305 +const statusOption = ref([
355 { 306 {
356 - policyId: 1,  
357 - createTime: "2024-01-01",  
358 - carNum: "桂A 1234",  
359 - frameNum: "123456789012345678",  
360 - name: "张三",  
361 - phone: "12345678901",  
362 - company: "中国平安",  
363 - editAuth: "管理员",  
364 - authTime: "2024-01-01",  
365 - assignment: 0,  
366 - handler: "张三",  
367 - progress: 0,  
368 - },  
369 - {  
370 - policyId: 2,  
371 - createTime: "2024-01-02",  
372 - carNum: "粤B 1234",  
373 - frameNum: "123456789012345678",  
374 - name: "李四",  
375 - phone: "12345678902",  
376 - company: "中国平安",  
377 - editAuth: "管理员",  
378 - authTime: "2024-01-01",  
379 - assignment: 0,  
380 - handler: "张三",  
381 - progress: 0,  
382 - },  
383 - {  
384 - policyId: 3,  
385 - createTime: "2024-01-03",  
386 - carNum: "粤C 1234",  
387 - frameNum: "123456789012345678",  
388 - name: "王五",  
389 - phone: "12345678903",  
390 - company: "中国平安",  
391 - editAuth: "管理员",  
392 - authTime: "2024-01-01",  
393 - assignment: 0,  
394 - handler: "张三",  
395 - progress: 0, 307 + value: 0,
  308 + label: "进行中",
396 }, 309 },
397 { 310 {
398 - policyId: 4,  
399 - createTime: "2024-01-04",  
400 - carNum: "粤D 1234",  
401 - frameNum: "123456789012345678",  
402 - name: "赵六",  
403 - phone: "12345678904",  
404 - company: "中国平安",  
405 - editAuth: "管理员",  
406 - authTime: "2024-01-01",  
407 - assignment: 1,  
408 - handler: "张三",  
409 - progress: 1, 311 + value: 1,
  312 + label: "疑难件",
410 }, 313 },
411 { 314 {
412 - policyId: 5,  
413 - createTime: "2024-01-05",  
414 - carNum: "粤E 1234",  
415 - frameNum: "123456789012345678",  
416 - name: "孙七",  
417 - phone: "12345678905",  
418 - company: "中国平安",  
419 - editAuth: "管理员",  
420 - authTime: "2024-01-01",  
421 - assignment: 1,  
422 - handler: "张三",  
423 - progress: 1, 315 + value: 2,
  316 + label: "已办结",
424 }, 317 },
425 ]); 318 ]);
  319 +const policyList = ref([]);
426 320
427 /** 多选框选中数据 */ 321 /** 多选框选中数据 */
428 function handleSelectionChange(selection) { 322 function handleSelectionChange(selection) {
@@ -432,7 +326,13 @@ function handleSelectionChange(selection) { @@ -432,7 +326,13 @@ function handleSelectionChange(selection) {
432 console.log(selection); 326 console.log(selection);
433 } 327 }
434 328
435 -const getList = () => {}; 329 +const getList = async () => {
  330 + loading.value = true;
  331 + const res = await queryOngoingList(queryParams);
  332 + policyList.value = res.rows;
  333 + total.value = res.total;
  334 + loading.value = false;
  335 +};
436 336
437 /** 重置操作表单 */ 337 /** 重置操作表单 */
438 function reset() { 338 function reset() {
@@ -456,6 +356,7 @@ function resetQuery() { @@ -456,6 +356,7 @@ function resetQuery() {
456 proxy.resetForm("queryRef"); 356 proxy.resetForm("queryRef");
457 handleQuery(); 357 handleQuery();
458 } 358 }
  359 +getList();
459 </script> 360 </script>
460 361
461 <style></style> 362 <style></style>
@@ -46,48 +46,15 @@ @@ -46,48 +46,15 @@
46 align="center" 46 align="center"
47 /> 47 />
48 <el-table-column label="操作" align="center" width="360" fixed="right"> 48 <el-table-column label="操作" align="center" width="360" fixed="right">
49 - <template #default="{ row }">  
50 - <el-popconfirm  
51 - width="200"  
52 - hide-icon  
53 - :title="  
54 - row.company === '无'  
55 - ? '该登记信息未选择上年承保公司,系统将执行自动分配规则'  
56 - : '该登记信息存在上年承保公司,系统自动流转保单至上年承保公司处理'  
57 - "  
58 - confirm-button-text="确定"  
59 - cancel-button-text="取消"  
60 - @confirm="handleSuccess(row)" 49 + <template #default>
  50 + <el-button type="primary" v-hasPermi="['policy:pending:continue']"
  51 + >承接</el-button
61 > 52 >
62 - <template #reference>  
63 - <el-button type="success" @click.stop="">通过</el-button>  
64 - </template>  
65 - </el-popconfirm>  
66 -  
67 - <el-popconfirm  
68 - width="200"  
69 - hide-icon  
70 - title="保单将退回至用户界面,用户修改后重新提交"  
71 - confirm-button-text="确定"  
72 - cancel-button-text="取消"  
73 - @confirm="handleFallback(row)"  
74 - >  
75 - <template #reference>  
76 - <el-button @click.stop="">退回</el-button>  
77 - </template>  
78 - </el-popconfirm>  
79 -  
80 - <el-button  
81 - type="danger"  
82 - @click.stop="handleVoid(row)"  
83 - v-hasPermi="['system:role:edit']"  
84 - >作废</el-button 53 + <el-button type="primary" v-hasPermi="['policy:pending:sharing']"
  54 + >分配</el-button
85 > 55 >
86 - <el-button  
87 - type="primary"  
88 - @click.stop="handleAuthCompany(row)"  
89 - v-hasPermi="['system:role:edit']"  
90 - >分配承保公司</el-button 56 + <el-button type="primary" v-hasPermi="['policy:pending:transfer']"
  57 + >转办</el-button
91 > 58 >
92 </template> 59 </template>
93 </el-table-column> 60 </el-table-column>
@@ -235,6 +202,7 @@ @@ -235,6 +202,7 @@
235 </template> 202 </template>
236 203
237 <script setup> 204 <script setup>
  205 +import { queryMyList } from "@/api/policy/index";
238 const { proxy } = getCurrentInstance(); 206 const { proxy } = getCurrentInstance();
239 const loading = ref(false); 207 const loading = ref(false);
240 const total = ref(5); 208 const total = ref(5);
@@ -269,53 +237,7 @@ const queryParams = reactive({ @@ -269,53 +237,7 @@ const queryParams = reactive({
269 pageNum: 1, 237 pageNum: 1,
270 pageSize: 10, 238 pageSize: 10,
271 }); 239 });
272 -const policyList = ref([  
273 - {  
274 - policyId: 1,  
275 - createTime: "2024-01-01",  
276 - carNum: "桂A 1234",  
277 - frameNum: "123456789012345678",  
278 - name: "张三",  
279 - phone: "12345678901",  
280 - company: "中国平安",  
281 - },  
282 - {  
283 - policyId: 2,  
284 - createTime: "2024-01-02",  
285 - carNum: "粤B 1234",  
286 - frameNum: "123456789012345678",  
287 - name: "李四",  
288 - phone: "12345678902",  
289 - company: "中国平安",  
290 - },  
291 - {  
292 - policyId: 3,  
293 - createTime: "2024-01-03",  
294 - carNum: "粤C 1234",  
295 - frameNum: "123456789012345678",  
296 - name: "王五",  
297 - phone: "12345678903",  
298 - company: "中国平安",  
299 - },  
300 - {  
301 - policyId: 4,  
302 - createTime: "2024-01-04",  
303 - carNum: "粤D 1234",  
304 - frameNum: "123456789012345678",  
305 - name: "赵六",  
306 - phone: "12345678904",  
307 - company: "中国平安",  
308 - },  
309 - {  
310 - policyId: 5,  
311 - createTime: "2024-01-05",  
312 - carNum: "粤E 1234",  
313 - frameNum: "123456789012345678",  
314 - name: "孙七",  
315 - phone: "12345678905",  
316 - company: "中国平安",  
317 - },  
318 -]); 240 +const policyList = ref([]);
319 241
320 /** 多选框选中数据 */ 242 /** 多选框选中数据 */
321 function handleSelectionChange(selection) { 243 function handleSelectionChange(selection) {
@@ -325,7 +247,11 @@ function handleSelectionChange(selection) { @@ -325,7 +247,11 @@ function handleSelectionChange(selection) {
325 console.log(selection); 247 console.log(selection);
326 } 248 }
327 249
328 -const getList = () => { 250 +const getList = async () => {
  251 + loading.value = true;
  252 + const res = await queryMyList(queryParams);
  253 + policyList.value = res.rows;
  254 + total.value = res.total;
329 loading.value = false; 255 loading.value = false;
330 }; 256 };
331 const handleSuccess = () => { 257 const handleSuccess = () => {
@@ -369,6 +295,8 @@ function submitForm() { @@ -369,6 +295,8 @@ function submitForm() {
369 } 295 }
370 }); 296 });
371 } 297 }
  298 +
  299 +getList();
372 </script> 300 </script>
373 301
374 <style lang="scss" scoped> 302 <style lang="scss" scoped>
@@ -17,28 +17,28 @@ @@ -17,28 +17,28 @@
17 @keyup.enter="handleQuery" 17 @keyup.enter="handleQuery"
18 /> 18 />
19 </el-form-item> 19 </el-form-item>
20 - <el-form-item label="车牌号" prop="carNum"> 20 + <el-form-item label="车牌号" prop="licensePlate">
21 <el-input 21 <el-input
22 - v-model="queryParams.carNum" 22 + v-model="queryParams.licensePlate"
23 placeholder="请输入车牌号" 23 placeholder="请输入车牌号"
24 clearable 24 clearable
25 style="width: 200px" 25 style="width: 200px"
26 @keyup.enter="handleQuery" 26 @keyup.enter="handleQuery"
27 /> 27 />
28 </el-form-item> 28 </el-form-item>
29 - <el-form-item label="操作人员" prop="editAuth"> 29 + <el-form-item label="操作人员" prop="association">
30 <el-input 30 <el-input
31 - v-model="queryParams.editAuth" 31 + v-model="queryParams.association"
32 placeholder="填写操作人员" 32 placeholder="填写操作人员"
33 clearable 33 clearable
34 style="width: 200px" 34 style="width: 200px"
35 @keyup.enter="handleQuery" 35 @keyup.enter="handleQuery"
36 /> 36 />
37 </el-form-item> 37 </el-form-item>
38 - <el-form-item label="分配机制" prop="assignment"> 38 + <el-form-item label="分配机制" prop="associationapprovetype">
39 <el-select 39 <el-select
40 - v-model="queryParams.assignment"  
41 - placeholder="系统分配" 40 + v-model="queryParams.associationapprovetype"
  41 + placeholder="选择分配机制"
42 clearable 42 clearable
43 style="width: 200px" 43 style="width: 200px"
44 > 44 >
@@ -51,7 +51,11 @@ @@ -51,7 +51,11 @@
51 </el-select> 51 </el-select>
52 </el-form-item> 52 </el-form-item>
53 <el-form-item> 53 <el-form-item>
54 - <el-button type="primary" icon="Search" @click="handleQuery" 54 + <el-button
  55 + type="primary"
  56 + icon="Search"
  57 + v-hasPermi="['system:registrationmonitor:listProcessed']"
  58 + @click="handleQuery"
55 >查询</el-button 59 >查询</el-button
56 > 60 >
57 <el-button icon="Refresh" @click="resetQuery">重置</el-button> 61 <el-button icon="Refresh" @click="resetQuery">重置</el-button>
@@ -65,33 +69,37 @@ @@ -65,33 +69,37 @@
65 @selection-change="handleSelectionChange" 69 @selection-change="handleSelectionChange"
66 @row-click="handleUpdate" 70 @row-click="handleUpdate"
67 > 71 >
68 - <el-table-column type="selection" width="55" align="center" />  
69 - <el-table-column label="序号" prop="policyId" width="120" />  
70 - <el-table-column label="登记时间" prop="createTime" width="150" />  
71 - <el-table-column label="车牌号" prop="carNum" width="150" />  
72 - <el-table-column label="车架号" prop="frameNum" width="240" />  
73 - <el-table-column label="车主姓名" prop="name" width="100" />  
74 - <el-table-column label="联系电话" prop="phone" width="180" /> 72 + <el-table-column label="序号" type="index" width="55" />
75 <el-table-column 73 <el-table-column
76 - label="上年承保公司"  
77 - prop="last_year_company" 74 + label="登记时间"
  75 + prop="initialRegistrationTime"
78 width="150" 76 width="150"
79 /> 77 />
80 - <el-table-column label="操作时间" prop="authTime" width="150" />  
81 - <el-table-column label="操作人员" prop="editAuth" width="120" />  
82 - <el-table-column  
83 - align="center"  
84 - label="分配机制"  
85 - width="120"  
86 - prop="assignment"  
87 - >  
88 - <template #default="scope"> 78 + <el-table-column label="车牌号" prop="licensePlateNumber" width="150" />
  79 + <el-table-column label="车架号" prop="frameNumber" width="240" />
  80 + <el-table-column label="车主姓名" prop="name" width="100" />
  81 + <el-table-column label="联系电话" prop="phone" width="180" />
  82 + <el-table-column label="上年承保公司" prop="sysDeptName" width="150" />
  83 + <el-table-column label="操作人员" width="150">
  84 + <template #default="{ row }">
  85 + <span>{{
  86 + row.associationEmployeeUserName || row.companyEmployeeUserName
  87 + }}</span>
  88 + </template>
  89 + </el-table-column>
  90 + <el-table-column label="操作时间" width="170">
  91 + <template #default="{ row }">
89 <span>{{ 92 <span>{{
90 - scope.row.assignment === 0 ? "系统分配" : "人工分配" 93 + row.companyEmployeeUndertakeTime || row.distributionTime
91 }}</span> 94 }}</span>
92 </template> 95 </template>
93 </el-table-column> 96 </el-table-column>
94 - <el-table-column label="承保公司" prop="company" width="150" /> 97 + <el-table-column
  98 + label="分配机制"
  99 + width="120"
  100 + prop="distributionMechanism"
  101 + />
  102 + <el-table-column label="承保公司" prop="companyName" width="150" />
95 </el-table> 103 </el-table>
96 104
97 <pagination 105 <pagination
@@ -107,18 +115,18 @@ @@ -107,18 +115,18 @@
107 <el-form :model="form" ref="policyRef" label-width="100px"> 115 <el-form :model="form" ref="policyRef" label-width="100px">
108 <el-row> 116 <el-row>
109 <el-col :span="12"> 117 <el-col :span="12">
110 - <el-form-item label="车牌号" prop="carNum"> 118 + <el-form-item label="车牌号" prop="licensePlateNumber">
111 <el-input 119 <el-input
112 - v-model="form.carNum" 120 + v-model="form.licensePlateNumber"
113 placeholder="请输入车牌号" 121 placeholder="请输入车牌号"
114 disabled 122 disabled
115 /> 123 />
116 </el-form-item> 124 </el-form-item>
117 </el-col> 125 </el-col>
118 <el-col :span="12"> 126 <el-col :span="12">
119 - <el-form-item label="车架号" prop="frameNum"> 127 + <el-form-item label="车架号" prop="frameNumber">
120 <el-input 128 <el-input
121 - v-model="form.frameNum" 129 + v-model="form.frameNumber"
122 disabled 130 disabled
123 placeholder="请输入车架号" 131 placeholder="请输入车架号"
124 /> 132 />
@@ -147,18 +155,18 @@ @@ -147,18 +155,18 @@
147 </el-row> 155 </el-row>
148 <el-row> 156 <el-row>
149 <el-col :span="12"> 157 <el-col :span="12">
150 - <el-form-item label="登记时间" prop="createTime"> 158 + <el-form-item label="登记时间" prop="initialRegistrationTime">
151 <el-input 159 <el-input
152 - v-model="form.createTime" 160 + v-model="form.initialRegistrationTime"
153 disabled 161 disabled
154 placeholder="请输入登记时间" 162 placeholder="请输入登记时间"
155 /> 163 />
156 </el-form-item> 164 </el-form-item>
157 </el-col> 165 </el-col>
158 <el-col :span="12"> 166 <el-col :span="12">
159 - <el-form-item label="上年承保公司" prop="last_year_company"> 167 + <el-form-item label="上年承保公司" prop="sysDeptName">
160 <el-input 168 <el-input
161 - v-model="form.last_year_company" 169 + v-model="form.sysDeptName"
162 disabled 170 disabled
163 placeholder="请输入上年承保公司" 171 placeholder="请输入上年承保公司"
164 /> 172 />
@@ -171,43 +179,38 @@ @@ -171,43 +179,38 @@
171 <el-input 179 <el-input
172 v-model="form.authTime" 180 v-model="form.authTime"
173 disabled 181 disabled
174 - placeholder="请输入操作时间" 182 + :placeholder="
  183 + form.companyEmployeeUndertakeTime || form.distributionTime
  184 + "
175 /> 185 />
176 </el-form-item> 186 </el-form-item>
177 </el-col> 187 </el-col>
178 <el-col :span="12"> 188 <el-col :span="12">
179 <el-form-item label="操作人员" prop="editAuth"> 189 <el-form-item label="操作人员" prop="editAuth">
180 <el-input 190 <el-input
181 - v-model="form.editAuth"  
182 disabled 191 disabled
183 - placeholder="请输入操作人员" 192 + :placeholder="
  193 + form.associationEmployeeUserName ||
  194 + form.companyEmployeeUserName
  195 + "
184 /> 196 />
185 </el-form-item> 197 </el-form-item>
186 </el-col> 198 </el-col>
187 </el-row> 199 </el-row>
188 <el-row> 200 <el-row>
189 <el-col :span="12"> 201 <el-col :span="12">
190 - <el-form-item label="分配机制" prop="createTime">  
191 - <el-select  
192 - v-model="form.assignment"  
193 - placeholder="系统分配"  
194 - clearable 202 + <el-form-item label="分配机制" prop="distributionMechanism">
  203 + <el-input
  204 + v-model="form.distributionMechanism"
195 disabled 205 disabled
196 - style="width: 230px"  
197 - >  
198 - <el-option  
199 - v-for="dict in options"  
200 - :key="dict.value"  
201 - :label="dict.label"  
202 - :value="dict.value" 206 + placeholder="请输入登记时间"
203 /> 207 />
204 - </el-select>  
205 </el-form-item> 208 </el-form-item>
206 </el-col> 209 </el-col>
207 <el-col :span="12"> 210 <el-col :span="12">
208 - <el-form-item label="承保公司" prop="company"> 211 + <el-form-item label="承保公司" prop="companyName">
209 <el-input 212 <el-input
210 - v-model="form.company" 213 + v-model="form.companyName"
211 disabled 214 disabled
212 placeholder="请输入承保公司" 215 placeholder="请输入承保公司"
213 /> 216 />
@@ -226,9 +229,10 @@ @@ -226,9 +229,10 @@
226 </template> 229 </template>
227 230
228 <script setup> 231 <script setup>
  232 +import { queryProcessedList } from "@/api/policy/index";
229 const { proxy } = getCurrentInstance(); 233 const { proxy } = getCurrentInstance();
230 const loading = ref(false); 234 const loading = ref(false);
231 -const total = ref(5); 235 +const total = ref(0);
232 const open = ref(false); 236 const open = ref(false);
233 const form = ref({}); 237 const form = ref({});
234 const showSearch = ref(true); 238 const showSearch = ref(true);
@@ -236,9 +240,9 @@ const queryParams = reactive({ @@ -236,9 +240,9 @@ const queryParams = reactive({
236 pageNum: 1, 240 pageNum: 1,
237 pageSize: 10, 241 pageSize: 10,
238 name: "", 242 name: "",
239 - carNum: "",  
240 - editAuth: "",  
241 - assignment: "", 243 + licensePlate: "",
  244 + association: "",
  245 + associationapprovetype: "",
242 }); 246 });
243 247
244 const options = [ 248 const options = [
@@ -252,73 +256,7 @@ const options = [ @@ -252,73 +256,7 @@ const options = [
252 }, 256 },
253 ]; 257 ];
254 258
255 -const policyList = ref([  
256 - {  
257 - policyId: 1,  
258 - createTime: "2024-01-01",  
259 - carNum: "桂A 1234",  
260 - frameNum: "123456789012345678",  
261 - name: "张三",  
262 - phone: "12345678901",  
263 - company: "中国平安",  
264 - last_year_company: "中国平安",  
265 - editAuth: "管理员",  
266 - authTime: "2024-01-01",  
267 - assignment: 0,  
268 - },  
269 - {  
270 - policyId: 2,  
271 - createTime: "2024-01-02",  
272 - carNum: "粤B 1234",  
273 - frameNum: "123456789012345678",  
274 - name: "李四",  
275 - phone: "12345678902",  
276 - company: "中国平安",  
277 - last_year_company: "中国平安",  
278 - editAuth: "管理员",  
279 - authTime: "2024-01-01",  
280 - assignment: 1,  
281 - },  
282 - {  
283 - policyId: 3,  
284 - createTime: "2024-01-03",  
285 - carNum: "粤C 1234",  
286 - frameNum: "123456789012345678",  
287 - name: "王五",  
288 - phone: "12345678903",  
289 - company: "中国平安",  
290 - last_year_company: "中国平安",  
291 - editAuth: "管理员",  
292 - authTime: "2024-01-01",  
293 - assignment: 1,  
294 - },  
295 - {  
296 - policyId: 4,  
297 - createTime: "2024-01-04",  
298 - carNum: "粤D 1234",  
299 - frameNum: "123456789012345678",  
300 - name: "赵六",  
301 - phone: "12345678904",  
302 - company: "中国平安",  
303 - last_year_company: "中国平安",  
304 - editAuth: "管理员",  
305 - authTime: "2024-01-01",  
306 - assignment: 0,  
307 - },  
308 - {  
309 - policyId: 5,  
310 - createTime: "2024-01-05",  
311 - carNum: "粤E 1234",  
312 - frameNum: "123456789012345678",  
313 - name: "孙七",  
314 - phone: "12345678905",  
315 - company: "中国平安",  
316 - last_year_company: "中国平安",  
317 - editAuth: "管理员",  
318 - authTime: "2024-01-01",  
319 - assignment: 0,  
320 - },  
321 -]); 259 +const policyList = ref([]);
322 260
323 /** 多选框选中数据 */ 261 /** 多选框选中数据 */
324 function handleSelectionChange(selection) { 262 function handleSelectionChange(selection) {
@@ -328,7 +266,13 @@ function handleSelectionChange(selection) { @@ -328,7 +266,13 @@ function handleSelectionChange(selection) {
328 console.log(selection); 266 console.log(selection);
329 } 267 }
330 268
331 -const getList = () => {}; 269 +const getList = async () => {
  270 + loading.value = true;
  271 + const res = await queryProcessedList(queryParams);
  272 + policyList.value = res.rows;
  273 + total.value = res.total;
  274 + loading.value = false;
  275 +};
332 276
333 /** 重置操作表单 */ 277 /** 重置操作表单 */
334 function reset() { 278 function reset() {
@@ -344,7 +288,7 @@ function handleUpdate(row) { @@ -344,7 +288,7 @@ function handleUpdate(row) {
344 288
345 /** 搜索按钮操作 */ 289 /** 搜索按钮操作 */
346 function handleQuery() { 290 function handleQuery() {
347 - queryParams.value.pageNum = 1; 291 + queryParams.pageNum = 1;
348 getList(); 292 getList();
349 } 293 }
350 /** 重置按钮操作 */ 294 /** 重置按钮操作 */
@@ -352,6 +296,8 @@ function resetQuery() { @@ -352,6 +296,8 @@ function resetQuery() {
352 proxy.resetForm("queryRef"); 296 proxy.resetForm("queryRef");
353 handleQuery(); 297 handleQuery();
354 } 298 }
  299 +
  300 +getList();
355 </script> 301 </script>
356 302
357 <style></style> 303 <style></style>
@@ -8,9 +8,9 @@ @@ -8,9 +8,9 @@
8 :inline="true" 8 :inline="true"
9 label-width="68px" 9 label-width="68px"
10 > 10 >
11 - <el-form-item label="分配机制" prop="assignment"> 11 + <el-form-item label="分配机制" prop="associationapprovetype">
12 <el-select 12 <el-select
13 - v-model="queryParams.assignment" 13 + v-model="queryParams.associationapprovetype"
14 placeholder="系统分配" 14 placeholder="系统分配"
15 clearable 15 clearable
16 style="width: 220px" 16 style="width: 220px"
@@ -23,9 +23,9 @@ @@ -23,9 +23,9 @@
23 /> 23 />
24 </el-select> 24 </el-select>
25 </el-form-item> 25 </el-form-item>
26 - <el-form-item label="操作人员" prop="editAuth"> 26 + <el-form-item label="操作人员" prop="association">
27 <el-input 27 <el-input
28 - v-model="queryParams.editAuth" 28 + v-model="queryParams.association"
29 placeholder="填写操作人员" 29 placeholder="填写操作人员"
30 clearable 30 clearable
31 style="width: 220px" 31 style="width: 220px"
@@ -41,18 +41,18 @@ @@ -41,18 +41,18 @@
41 @keyup.enter="handleQuery" 41 @keyup.enter="handleQuery"
42 /> 42 />
43 </el-form-item> 43 </el-form-item>
44 - <el-form-item label="承接人" prop="handler"> 44 + <el-form-item label="承接人" prop="companyEmployeeUserName">
45 <el-input 45 <el-input
46 - v-model="queryParams.handler" 46 + v-model="queryParams.companyEmployeeUserName"
47 placeholder="请输入承接人" 47 placeholder="请输入承接人"
48 clearable 48 clearable
49 style="width: 220px" 49 style="width: 220px"
50 @keyup.enter="handleQuery" 50 @keyup.enter="handleQuery"
51 /> 51 />
52 </el-form-item> 52 </el-form-item>
53 - <el-form-item label="保单状态" prop="status"> 53 + <el-form-item label="保单状态" prop="policystatus">
54 <el-select 54 <el-select
55 - v-model="queryParams.status" 55 + v-model="queryParams.policystatus"
56 placeholder="选择进度" 56 placeholder="选择进度"
57 clearable 57 clearable
58 style="width: 220px" 58 style="width: 220px"
@@ -65,9 +65,9 @@ @@ -65,9 +65,9 @@
65 /> 65 />
66 </el-select> 66 </el-select>
67 </el-form-item> 67 </el-form-item>
68 - <el-form-item label="保单进度" prop="progress"> 68 + <el-form-item label="保单进度" prop="orderprogress">
69 <el-select 69 <el-select
70 - v-model="queryParams.progress" 70 + v-model="queryParams.orderprogress"
71 placeholder="选择进度" 71 placeholder="选择进度"
72 clearable 72 clearable
73 style="width: 220px" 73 style="width: 220px"
@@ -89,9 +89,9 @@ @@ -89,9 +89,9 @@
89 @keyup.enter="handleQuery" 89 @keyup.enter="handleQuery"
90 /> 90 />
91 </el-form-item> 91 </el-form-item>
92 - <el-form-item label="车牌号" prop="carNum"> 92 + <el-form-item label="车牌号" prop="licensePlate">
93 <el-input 93 <el-input
94 - v-model="queryParams.carNum" 94 + v-model="queryParams.licensePlate"
95 placeholder="请输入车牌号" 95 placeholder="请输入车牌号"
96 clearable 96 clearable
97 style="width: 220px" 97 style="width: 220px"
@@ -100,11 +100,12 @@ @@ -100,11 +100,12 @@
100 </el-form-item> 100 </el-form-item>
101 <el-form-item label="时间范围" prop="timeFrame"> 101 <el-form-item label="时间范围" prop="timeFrame">
102 <el-date-picker 102 <el-date-picker
103 - v-model="queryParams.timeFrame" 103 + v-model="timeFrame"
104 type="datetimerange" 104 type="datetimerange"
105 range-separator="To" 105 range-separator="To"
106 start-placeholder="开始时间" 106 start-placeholder="开始时间"
107 end-placeholder="结束时间" 107 end-placeholder="结束时间"
  108 + @change="handleTime"
108 /> 109 />
109 </el-form-item> 110 </el-form-item>
110 <el-form-item> 111 <el-form-item>
@@ -124,34 +125,23 @@ @@ -124,34 +125,23 @@
124 </div> 125 </div>
125 126
126 <!-- 表格数据 --> 127 <!-- 表格数据 -->
127 - <el-table  
128 - v-loading="loading"  
129 - :data="policyList"  
130 - @selection-change="handleSelectionChange"  
131 - @row-click="handleUpdate"  
132 - >  
133 - <el-table-column type="selection" width="55" align="center" />  
134 - <el-table-column  
135 - label="序号"  
136 - prop="policyId"  
137 - width="120"  
138 - align="center"  
139 - /> 128 + <el-table v-loading="loading" :data="policyList" @row-click="handleUpdate">
  129 + <el-table-column label="序号" type="index" />
140 <el-table-column 130 <el-table-column
141 label="登记时间" 131 label="登记时间"
142 - prop="createTime" 132 + prop="initialRegistrationTime"
143 width="150" 133 width="150"
144 align="center" 134 align="center"
145 /> 135 />
146 <el-table-column 136 <el-table-column
147 label="车牌号" 137 label="车牌号"
148 - prop="carNum" 138 + prop="licensePlateNumber"
149 width="150" 139 width="150"
150 align="center" 140 align="center"
151 /> 141 />
152 <el-table-column 142 <el-table-column
153 label="车架号" 143 label="车架号"
154 - prop="frameNum" 144 + prop="frameNumber"
155 width="240" 145 width="240"
156 align="center" 146 align="center"
157 /> 147 />
@@ -168,55 +158,25 @@ @@ -168,55 +158,25 @@
168 align="center" 158 align="center"
169 /> 159 />
170 <el-table-column 160 <el-table-column
171 - label="操作时间"  
172 - prop="authTime"  
173 - width="150"  
174 - align="center"  
175 - />  
176 - <el-table-column  
177 - label="操作人员"  
178 - prop="editAuth"  
179 - width="120"  
180 - align="center"  
181 - />  
182 - <el-table-column  
183 align="center" 161 align="center"
184 label="分配机制" 162 label="分配机制"
185 width="120" 163 width="120"
186 - prop="assignment"  
187 - >  
188 - <template #default="scope">  
189 - <span>{{ scope.row.progress === 0 ? "系统分配" : "人工分配" }}</span>  
190 - </template>  
191 - </el-table-column> 164 + prop="distributionMechanism"
  165 + />
192 <el-table-column 166 <el-table-column
193 label="承保公司" 167 label="承保公司"
194 - prop="company" 168 + prop="companyName"
195 width="150" 169 width="150"
196 align="center" 170 align="center"
197 /> 171 />
198 <el-table-column 172 <el-table-column
199 label="办理人" 173 label="办理人"
200 - prop="handler" 174 + prop="companyEmployeeUserName"
201 width="100" 175 width="100"
202 align="center" 176 align="center"
203 /> 177 />
204 - <el-table-column label="保单进度" width="100" prop="progress">  
205 - <template #default="scope">  
206 - <span  
207 - :style="{ color: scope.row.progress === 0 ? '#409EFF' : '#67C23A' }"  
208 - >{{ scope.row.progress === 0 ? "待承接" : "已承接" }}</span  
209 - >  
210 - </template>  
211 - </el-table-column>  
212 - <el-table-column label="保单状态" width="100" prop="statue">  
213 - <template #default="scope">  
214 - <span  
215 - :style="{ color: scope.row.status === 0 ? '#409EFF' : '#67C23A' }"  
216 - >{{ scope.row.status === 0 ? "疑难件" : "已办结" }}</span  
217 - >  
218 - </template>  
219 - </el-table-column> 178 + <el-table-column label="保单进度" width="100" prop="orderProgress" />
  179 + <el-table-column label="保单状态" width="100" prop="policyStatus" />
220 <el-table-column 180 <el-table-column
221 label="查询回馈" 181 label="查询回馈"
222 fixed="right" 182 fixed="right"
@@ -241,18 +201,18 @@ @@ -241,18 +201,18 @@
241 <el-form :model="form" ref="policyRef" label-width="100px"> 201 <el-form :model="form" ref="policyRef" label-width="100px">
242 <el-row> 202 <el-row>
243 <el-col :span="12"> 203 <el-col :span="12">
244 - <el-form-item label="车牌号" prop="carNum"> 204 + <el-form-item label="车牌号" prop="licensePlateNumber">
245 <el-input 205 <el-input
246 - v-model="form.carNum" 206 + v-model="form.licensePlateNumber"
247 placeholder="请输入车牌号" 207 placeholder="请输入车牌号"
248 disabled 208 disabled
249 /> 209 />
250 </el-form-item> 210 </el-form-item>
251 </el-col> 211 </el-col>
252 <el-col :span="12"> 212 <el-col :span="12">
253 - <el-form-item label="车架号" prop="frameNum"> 213 + <el-form-item label="车架号" prop="frameNumber">
254 <el-input 214 <el-input
255 - v-model="form.frameNum" 215 + v-model="form.frameNumber"
256 disabled 216 disabled
257 placeholder="请输入车架号" 217 placeholder="请输入车架号"
258 /> 218 />
@@ -281,27 +241,38 @@ @@ -281,27 +241,38 @@
281 </el-row> 241 </el-row>
282 <el-row> 242 <el-row>
283 <el-col :span="12"> 243 <el-col :span="12">
284 - <el-form-item label="分配机制" prop="createTime">  
285 - <el-select  
286 - v-model="form.assignment"  
287 - placeholder="系统分配"  
288 - clearable 244 + <el-form-item label="车辆类型" prop="vehicleType">
  245 + <el-input
  246 + v-model="form.vehicleType"
289 disabled 247 disabled
290 - style="width: 230px"  
291 - >  
292 - <el-option  
293 - v-for="dict in options"  
294 - :key="dict.value"  
295 - :label="dict.label"  
296 - :value="dict.value" 248 + placeholder="请输入登记时间"
297 /> 249 />
298 - </el-select>  
299 </el-form-item> 250 </el-form-item>
300 </el-col> 251 </el-col>
301 <el-col :span="12"> 252 <el-col :span="12">
302 - <el-form-item label="承保公司" prop="company"> 253 + <el-form-item label="车辆使用性质" prop="vehicleNature">
  254 + <el-input
  255 + v-model="form.vehicleNature"
  256 + disabled
  257 + placeholder="请输入办理人"
  258 + />
  259 + </el-form-item>
  260 + </el-col>
  261 + </el-row>
  262 + <el-row>
  263 + <el-col :span="12">
  264 + <el-form-item label="核定载客数" prop="passengersNumber">
  265 + <el-input
  266 + v-model="form.passengersNumber"
  267 + disabled
  268 + placeholder="请输入办理人"
  269 + />
  270 + </el-form-item>
  271 + </el-col>
  272 + <el-col :span="12">
  273 + <el-form-item label="核定载质量" prop="passengerCapacity">
303 <el-input 274 <el-input
304 - v-model="form.company" 275 + v-model="form.passengerCapacity"
305 disabled 276 disabled
306 placeholder="请输入承保公司" 277 placeholder="请输入承保公司"
307 /> 278 />
@@ -310,80 +281,71 @@ @@ -310,80 +281,71 @@
310 </el-row> 281 </el-row>
311 <el-row> 282 <el-row>
312 <el-col :span="12"> 283 <el-col :span="12">
313 - <el-form-item label="操作时间" prop="authTime"> 284 + <el-form-item label="排量毫升" prop="emissions">
314 <el-input 285 <el-input
315 - v-model="form.authTime" 286 + v-model="form.emissions"
316 disabled 287 disabled
317 - placeholder="请输入操作时间" 288 + placeholder="请输入办理人"
318 /> 289 />
319 </el-form-item> 290 </el-form-item>
320 </el-col> 291 </el-col>
321 <el-col :span="12"> 292 <el-col :span="12">
322 - <el-form-item label="操作人员" prop="editAuth"> 293 + <el-form-item label="中文品牌" prop="vehicleBrand">
323 <el-input 294 <el-input
324 - v-model="form.editAuth" 295 + v-model="form.vehicleBrand"
325 disabled 296 disabled
326 - placeholder="请输入操作人员" 297 + placeholder="请输入办理人"
327 /> 298 />
328 </el-form-item> 299 </el-form-item>
329 </el-col> 300 </el-col>
330 </el-row> 301 </el-row>
331 <el-row> 302 <el-row>
332 <el-col :span="12"> 303 <el-col :span="12">
333 - <el-form-item label="保单状态" prop="progress">  
334 - <el-select  
335 - v-model="form.status"  
336 - placeholder="保单状态"  
337 - clearable 304 + <el-form-item label="车辆型号" prop="vehicleModel">
  305 + <el-input
  306 + v-model="form.vehicleModel"
338 disabled 307 disabled
339 - style="width: 230px"  
340 - >  
341 - <el-option  
342 - v-for="dict in statusOption"  
343 - :key="dict.value"  
344 - :label="dict.label"  
345 - :value="dict.value" 308 + placeholder="请输入办理人"
346 /> 309 />
347 - </el-select>  
348 </el-form-item> 310 </el-form-item>
349 </el-col> 311 </el-col>
350 <el-col :span="12"> 312 <el-col :span="12">
351 - <el-form-item label="保单进度" prop="progress">  
352 - <el-select  
353 - v-model="form.progress"  
354 - placeholder="保单进度"  
355 - clearable 313 + <el-form-item label="准牵引准质量" prop="tractionMass">
  314 + <el-input
  315 + v-model="form.tractionMass"
356 disabled 316 disabled
357 - style="width: 230px"  
358 - >  
359 - <el-option  
360 - v-for="dict in progressOption"  
361 - :key="dict.value"  
362 - :label="dict.label"  
363 - :value="dict.value" 317 + placeholder="请输入办理人"
364 /> 318 />
365 - </el-select>  
366 </el-form-item> 319 </el-form-item>
367 </el-col> 320 </el-col>
368 </el-row> 321 </el-row>
369 <el-row> 322 <el-row>
370 <el-col :span="12"> 323 <el-col :span="12">
371 - <el-form-item label="登记时间" prop="createTime"> 324 + <el-form-item label="保险需求" prop="requirements">
372 <el-input 325 <el-input
373 - v-model="form.createTime" 326 + v-model="form.requirements"
374 disabled 327 disabled
375 - placeholder="请输入登记时间" 328 + placeholder="请输入办理人"
  329 + />
  330 + </el-form-item>
  331 + </el-col>
  332 + <el-col :span="12">
  333 + <el-form-item label="承保单号" prop="policyNumber">
  334 + <el-input
  335 + v-model="form.policyNumber"
  336 + disabled
  337 + placeholder="请输入办理人"
376 /> 338 />
377 </el-form-item> 339 </el-form-item>
378 </el-col> 340 </el-col>
379 </el-row> 341 </el-row>
380 - <el-form-item label="作废原因" prop="progress"> 342 + <el-form-item label="保单回馈" prop="progress">
381 <el-input 343 <el-input
382 :rows="6" 344 :rows="6"
383 disabled 345 disabled
384 type="textarea" 346 type="textarea"
385 - placeholder="请输入作废原因"  
386 - v-model="form.deprecatedReason" 347 + placeholder="请输入保单回馈"
  348 + v-model="form.message"
387 resize="none" 349 resize="none"
388 /> 350 />
389 </el-form-item> 351 </el-form-item>
@@ -399,6 +361,7 @@ @@ -399,6 +361,7 @@
399 </template> 361 </template>
400 362
401 <script setup> 363 <script setup>
  364 +import { queryList, queryResult } from "@/api/policy";
402 const { proxy } = getCurrentInstance(); 365 const { proxy } = getCurrentInstance();
403 const loading = ref(false); 366 const loading = ref(false);
404 const total = ref(5); 367 const total = ref(5);
@@ -409,28 +372,29 @@ const queryParams = reactive({ @@ -409,28 +372,29 @@ const queryParams = reactive({
409 pageNum: 1, 372 pageNum: 1,
410 pageSize: 10, 373 pageSize: 10,
411 name: "", 374 name: "",
412 - carNum: "",  
413 - editAuth: "",  
414 - assignment: "",  
415 - progress: "", 375 + licensePlate: "",
  376 + association: "",
416 company: "", 377 company: "",
417 - handler: "",  
418 - status: "",  
419 - timeFrame: "", 378 + associationapprovetype: "",
  379 + companyEmployeeUserName: "",
  380 + orderprogress: "",
  381 + policystatus: "",
  382 + startTime: "",
  383 + endTime: "",
420 }); 384 });
421 - 385 +const timeFrame = ref(null);
422 const statusOption = ref([ 386 const statusOption = ref([
423 { 387 {
424 value: 0, 388 value: 0,
425 - label: "疑难件", 389 + label: "进行中",
426 }, 390 },
427 { 391 {
428 value: 1, 392 value: 1,
429 - label: "已办结", 393 + label: "疑难件",
430 }, 394 },
431 { 395 {
432 - value: 3,  
433 - label: "已作废", 396 + value: 2,
  397 + label: "已办结",
434 }, 398 },
435 ]); 399 ]);
436 400
@@ -456,93 +420,19 @@ const options = [ @@ -456,93 +420,19 @@ const options = [
456 }, 420 },
457 ]; 421 ];
458 422
459 -const policyList = ref([  
460 - {  
461 - policyId: 1,  
462 - createTime: "2024-01-01",  
463 - carNum: "桂A 1234",  
464 - frameNum: "123456789012345678",  
465 - name: "张三",  
466 - phone: "12345678901",  
467 - company: "中国平安",  
468 - editAuth: "管理员",  
469 - authTime: "2024-01-01",  
470 - assignment: 0,  
471 - handler: "张三",  
472 - progress: 0,  
473 - status: 0,  
474 - },  
475 - {  
476 - policyId: 2,  
477 - createTime: "2024-01-02",  
478 - carNum: "粤B 1234",  
479 - frameNum: "123456789012345678",  
480 - name: "李四",  
481 - phone: "12345678902",  
482 - company: "中国平安",  
483 - editAuth: "管理员",  
484 - authTime: "2024-01-01",  
485 - assignment: 0,  
486 - handler: "张三",  
487 - progress: 0,  
488 - status: 1,  
489 - },  
490 - {  
491 - policyId: 3,  
492 - createTime: "2024-01-03",  
493 - carNum: "粤C 1234",  
494 - frameNum: "123456789012345678",  
495 - name: "王五",  
496 - phone: "12345678903",  
497 - company: "中国平安",  
498 - editAuth: "管理员",  
499 - authTime: "2024-01-01",  
500 - assignment: 0,  
501 - handler: "张三",  
502 - progress: 0,  
503 - status: 0,  
504 - },  
505 - {  
506 - policyId: 4,  
507 - createTime: "2024-01-04",  
508 - carNum: "粤D 1234",  
509 - frameNum: "123456789012345678",  
510 - name: "赵六",  
511 - phone: "12345678904",  
512 - company: "中国平安",  
513 - editAuth: "管理员",  
514 - authTime: "2024-01-01",  
515 - assignment: 1,  
516 - handler: "张三",  
517 - progress: 1,  
518 - status: 0,  
519 - },  
520 - {  
521 - policyId: 5,  
522 - createTime: "2024-01-05",  
523 - carNum: "粤E 1234",  
524 - frameNum: "123456789012345678",  
525 - name: "孙七",  
526 - phone: "12345678905",  
527 - company: "中国平安",  
528 - editAuth: "管理员",  
529 - authTime: "2024-01-01",  
530 - assignment: 1,  
531 - handler: "张三",  
532 - progress: 1,  
533 - status: 1,  
534 - },  
535 -]);  
536 -  
537 -/** 多选框选中数据 */  
538 -function handleSelectionChange(selection) {  
539 - // ids.value = selection.map(item => item.roleId);  
540 - // single.value = selection.length != 1;  
541 - // multiple.value = !selection.length;  
542 - console.log(selection);  
543 -} 423 +const policyList = ref([]);
544 424
545 -const getList = () => {}; 425 +const handleTime = (valu) => {
  426 + queryParams.startTime = proxy.parseTime(valu[0]);
  427 + queryParams.endTime = proxy.parseTime(valu[1]);
  428 +};
  429 +const getList = async () => {
  430 + loading.value = true;
  431 + const res = await queryList(queryParams);
  432 + policyList.value = res.rows;
  433 + total.value = res.total;
  434 + loading.value = false;
  435 +};
546 436
547 /** 重置操作表单 */ 437 /** 重置操作表单 */
548 function reset() { 438 function reset() {
@@ -552,8 +442,12 @@ function reset() { @@ -552,8 +442,12 @@ function reset() {
552 /** 修改按钮操作 */ 442 /** 修改按钮操作 */
553 function handleUpdate(row) { 443 function handleUpdate(row) {
554 reset(); 444 reset();
  445 + queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
555 form.value = row; 446 form.value = row;
  447 + form.value.policyNumber = res?.data?.policyNumber;
  448 + form.value.message = res?.data?.message;
556 open.value = true; 449 open.value = true;
  450 + });
557 } 451 }
558 452
559 /** 搜索按钮操作 */ 453 /** 搜索按钮操作 */
@@ -566,6 +460,8 @@ function resetQuery() { @@ -566,6 +460,8 @@ function resetQuery() {
566 proxy.resetForm("queryRef"); 460 proxy.resetForm("queryRef");
567 handleQuery(); 461 handleQuery();
568 } 462 }
  463 +
  464 +getList();
569 </script> 465 </script>
570 466
571 <style> 467 <style>
1 <template> 1 <template>
2 <div class="app-container"> 2 <div class="app-container">
3 - <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch"> 3 + <el-form
  4 + :model="queryParams"
  5 + ref="queryRef"
  6 + :inline="true"
  7 + v-show="showSearch"
  8 + >
4 <el-form-item label="公告标题" prop="noticeTitle"> 9 <el-form-item label="公告标题" prop="noticeTitle">
5 <el-input 10 <el-input
6 v-model="queryParams.noticeTitle" 11 v-model="queryParams.noticeTitle"
@@ -20,7 +25,12 @@ @@ -20,7 +25,12 @@
20 /> 25 />
21 </el-form-item> 26 </el-form-item>
22 <el-form-item label="类型" prop="noticeType"> 27 <el-form-item label="类型" prop="noticeType">
23 - <el-select v-model="queryParams.noticeType" placeholder="公告类型" clearable style="width: 200px"> 28 + <el-select
  29 + v-model="queryParams.noticeType"
  30 + placeholder="公告类型"
  31 + clearable
  32 + style="width: 200px"
  33 + >
24 <el-option 34 <el-option
25 v-for="dict in sys_notice_type" 35 v-for="dict in sys_notice_type"
26 :key="dict.value" 36 :key="dict.value"
@@ -30,7 +40,9 @@ @@ -30,7 +40,9 @@
30 </el-select> 40 </el-select>
31 </el-form-item> 41 </el-form-item>
32 <el-form-item> 42 <el-form-item>
33 - <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button> 43 + <el-button type="primary" icon="Search" @click="handleQuery"
  44 + >搜索</el-button
  45 + >
34 <el-button icon="Refresh" @click="resetQuery">重置</el-button> 46 <el-button icon="Refresh" @click="resetQuery">重置</el-button>
35 </el-form-item> 47 </el-form-item>
36 </el-form> 48 </el-form>
@@ -43,7 +55,8 @@ @@ -43,7 +55,8 @@
43 icon="Plus" 55 icon="Plus"
44 @click="handleAdd" 56 @click="handleAdd"
45 v-hasPermi="['system:notice:add']" 57 v-hasPermi="['system:notice:add']"
46 - >新增</el-button> 58 + >新增</el-button
  59 + >
47 </el-col> 60 </el-col>
48 <el-col :span="1.5"> 61 <el-col :span="1.5">
49 <el-button 62 <el-button
@@ -53,7 +66,8 @@ @@ -53,7 +66,8 @@
53 :disabled="single" 66 :disabled="single"
54 @click="handleUpdate" 67 @click="handleUpdate"
55 v-hasPermi="['system:notice:edit']" 68 v-hasPermi="['system:notice:edit']"
56 - >修改</el-button> 69 + >修改</el-button
  70 + >
57 </el-col> 71 </el-col>
58 <el-col :span="1.5"> 72 <el-col :span="1.5">
59 <el-button 73 <el-button
@@ -63,21 +77,39 @@ @@ -63,21 +77,39 @@
63 :disabled="multiple" 77 :disabled="multiple"
64 @click="handleDelete" 78 @click="handleDelete"
65 v-hasPermi="['system:notice:remove']" 79 v-hasPermi="['system:notice:remove']"
66 - >删除</el-button> 80 + >删除</el-button
  81 + >
67 </el-col> 82 </el-col>
68 - <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> 83 + <right-toolbar
  84 + v-model:showSearch="showSearch"
  85 + @queryTable="getList"
  86 + ></right-toolbar>
69 </el-row> 87 </el-row>
70 88
71 - <el-table v-loading="loading" :data="noticeList" @selection-change="handleSelectionChange"> 89 + <el-table
  90 + v-loading="loading"
  91 + :data="noticeList"
  92 + @selection-change="handleSelectionChange"
  93 + >
72 <el-table-column type="selection" width="55" align="center" /> 94 <el-table-column type="selection" width="55" align="center" />
73 - <el-table-column label="序号" align="center" prop="noticeId" width="100" /> 95 + <el-table-column
  96 + label="序号"
  97 + align="center"
  98 + prop="noticeId"
  99 + width="100"
  100 + />
74 <el-table-column 101 <el-table-column
75 label="公告标题" 102 label="公告标题"
76 align="center" 103 align="center"
77 prop="noticeTitle" 104 prop="noticeTitle"
78 :show-overflow-tooltip="true" 105 :show-overflow-tooltip="true"
79 /> 106 />
80 - <el-table-column label="公告类型" align="center" prop="noticeType" width="100"> 107 + <el-table-column
  108 + label="公告类型"
  109 + align="center"
  110 + prop="noticeType"
  111 + width="100"
  112 + >
81 <template #default="scope"> 113 <template #default="scope">
82 <dict-tag :options="sys_notice_type" :value="scope.row.noticeType" /> 114 <dict-tag :options="sys_notice_type" :value="scope.row.noticeType" />
83 </template> 115 </template>
@@ -87,16 +119,44 @@ @@ -87,16 +119,44 @@
87 <dict-tag :options="sys_notice_status" :value="scope.row.status" /> 119 <dict-tag :options="sys_notice_status" :value="scope.row.status" />
88 </template> 120 </template>
89 </el-table-column> 121 </el-table-column>
90 - <el-table-column label="创建者" align="center" prop="createBy" width="100" />  
91 - <el-table-column label="创建时间" align="center" prop="createTime" width="100"> 122 + <el-table-column
  123 + label="创建者"
  124 + align="center"
  125 + prop="createBy"
  126 + width="100"
  127 + />
  128 + <el-table-column
  129 + label="创建时间"
  130 + align="center"
  131 + prop="createTime"
  132 + width="100"
  133 + >
92 <template #default="scope"> 134 <template #default="scope">
93 - <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> 135 + <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
94 </template> 136 </template>
95 </el-table-column> 137 </el-table-column>
96 - <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 138 + <el-table-column
  139 + label="操作"
  140 + align="center"
  141 + class-name="small-padding fixed-width"
  142 + >
97 <template #default="scope"> 143 <template #default="scope">
98 - <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:notice:edit']">修改</el-button>  
99 - <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:notice:remove']" >删除</el-button> 144 + <el-button
  145 + link
  146 + type="primary"
  147 + icon="Edit"
  148 + @click="handleUpdate(scope.row)"
  149 + v-hasPermi="['system:notice:edit']"
  150 + >修改</el-button
  151 + >
  152 + <el-button
  153 + link
  154 + type="primary"
  155 + icon="Delete"
  156 + @click="handleDelete(scope.row)"
  157 + v-hasPermi="['system:notice:remove']"
  158 + >删除</el-button
  159 + >
100 </template> 160 </template>
101 </el-table-column> 161 </el-table-column>
102 </el-table> 162 </el-table>
@@ -115,7 +175,10 @@ @@ -115,7 +175,10 @@
115 <el-row> 175 <el-row>
116 <el-col :span="12"> 176 <el-col :span="12">
117 <el-form-item label="公告标题" prop="noticeTitle"> 177 <el-form-item label="公告标题" prop="noticeTitle">
118 - <el-input v-model="form.noticeTitle" placeholder="请输入公告标题" /> 178 + <el-input
  179 + v-model="form.noticeTitle"
  180 + placeholder="请输入公告标题"
  181 + />
119 </el-form-item> 182 </el-form-item>
120 </el-col> 183 </el-col>
121 <el-col :span="12"> 184 <el-col :span="12">
@@ -137,18 +200,14 @@ @@ -137,18 +200,14 @@
137 v-for="dict in sys_notice_status" 200 v-for="dict in sys_notice_status"
138 :key="dict.value" 201 :key="dict.value"
139 :label="dict.value" 202 :label="dict.value"
140 - >{{ dict.label }}</el-radio> 203 + >{{ dict.label }}</el-radio
  204 + >
141 </el-radio-group> 205 </el-radio-group>
142 </el-form-item> 206 </el-form-item>
143 </el-col> 207 </el-col>
144 <el-col :span="24"> 208 <el-col :span="24">
145 <el-form-item label="内容"> 209 <el-form-item label="内容">
146 - <el-input  
147 - :rows="6"  
148 - type="textarea"  
149 - placeholder="请输入内容"  
150 - v-model="form.noticeContent"  
151 - /> 210 + <QuillEditor :value="form.noticeContent" @updateValue="getMsg" />
152 </el-form-item> 211 </el-form-item>
153 </el-col> 212 </el-col>
154 </el-row> 213 </el-row>
@@ -164,10 +223,19 @@ @@ -164,10 +223,19 @@
164 </template> 223 </template>
165 224
166 <script setup name="Notice"> 225 <script setup name="Notice">
167 -import { listNotice, getNotice, delNotice, addNotice, updateNotice } from "@/api/system/notice"; 226 +import {
  227 + listNotice,
  228 + getNotice,
  229 + delNotice,
  230 + addNotice,
  231 + updateNotice,
  232 +} from "@/api/system/notice";
168 233
169 const { proxy } = getCurrentInstance(); 234 const { proxy } = getCurrentInstance();
170 -const { sys_notice_status, sys_notice_type } = proxy.useDict("sys_notice_status", "sys_notice_type"); 235 +const { sys_notice_status, sys_notice_type } = proxy.useDict(
  236 + "sys_notice_status",
  237 + "sys_notice_type"
  238 +);
171 239
172 const noticeList = ref([]); 240 const noticeList = ref([]);
173 const open = ref(false); 241 const open = ref(false);
@@ -186,11 +254,15 @@ const data = reactive({ @@ -186,11 +254,15 @@ const data = reactive({
186 pageSize: 10, 254 pageSize: 10,
187 noticeTitle: undefined, 255 noticeTitle: undefined,
188 createBy: undefined, 256 createBy: undefined,
189 - status: undefined 257 + status: undefined,
190 }, 258 },
191 rules: { 259 rules: {
192 - noticeTitle: [{ required: true, message: "公告标题不能为空", trigger: "blur" }],  
193 - noticeType: [{ required: true, message: "公告类型不能为空", trigger: "change" }] 260 + noticeTitle: [
  261 + { required: true, message: "公告标题不能为空", trigger: "blur" },
  262 + ],
  263 + noticeType: [
  264 + { required: true, message: "公告类型不能为空", trigger: "change" },
  265 + ],
194 }, 266 },
195 }); 267 });
196 268
@@ -199,7 +271,7 @@ const { queryParams, form, rules } = toRefs(data); @@ -199,7 +271,7 @@ const { queryParams, form, rules } = toRefs(data);
199 /** 查询公告列表 */ 271 /** 查询公告列表 */
200 function getList() { 272 function getList() {
201 loading.value = true; 273 loading.value = true;
202 - listNotice(queryParams.value).then(response => { 274 + listNotice(queryParams.value).then((response) => {
203 noticeList.value = response.rows; 275 noticeList.value = response.rows;
204 total.value = response.total; 276 total.value = response.total;
205 loading.value = false; 277 loading.value = false;
@@ -216,8 +288,8 @@ function reset() { @@ -216,8 +288,8 @@ function reset() {
216 noticeId: undefined, 288 noticeId: undefined,
217 noticeTitle: undefined, 289 noticeTitle: undefined,
218 noticeType: undefined, 290 noticeType: undefined,
219 - noticeContent: undefined,  
220 - status: "0" 291 + noticeContent: "",
  292 + status: "0",
221 }; 293 };
222 proxy.resetForm("noticeRef"); 294 proxy.resetForm("noticeRef");
223 } 295 }
@@ -233,7 +305,7 @@ function resetQuery() { @@ -233,7 +305,7 @@ function resetQuery() {
233 } 305 }
234 /** 多选框选中数据 */ 306 /** 多选框选中数据 */
235 function handleSelectionChange(selection) { 307 function handleSelectionChange(selection) {
236 - ids.value = selection.map(item => item.noticeId); 308 + ids.value = selection.map((item) => item.noticeId);
237 single.value = selection.length != 1; 309 single.value = selection.length != 1;
238 multiple.value = !selection.length; 310 multiple.value = !selection.length;
239 } 311 }
@@ -247,24 +319,28 @@ function handleAdd() { @@ -247,24 +319,28 @@ function handleAdd() {
247 function handleUpdate(row) { 319 function handleUpdate(row) {
248 reset(); 320 reset();
249 const noticeId = row.noticeId || ids.value; 321 const noticeId = row.noticeId || ids.value;
250 - getNotice(noticeId).then(response => { 322 + getNotice(noticeId).then((response) => {
251 form.value = response.data; 323 form.value = response.data;
252 open.value = true; 324 open.value = true;
253 title.value = "修改公告"; 325 title.value = "修改公告";
254 }); 326 });
255 } 327 }
  328 +const getMsg = (val) => {
  329 + console.log(val);
  330 + form.value.noticeContent = val;
  331 +};
256 /** 提交按钮 */ 332 /** 提交按钮 */
257 function submitForm() { 333 function submitForm() {
258 - proxy.$refs["noticeRef"].validate(valid => { 334 + proxy.$refs["noticeRef"].validate((valid) => {
259 if (valid) { 335 if (valid) {
260 if (form.value.noticeId != undefined) { 336 if (form.value.noticeId != undefined) {
261 - updateNotice(form.value).then(response => { 337 + updateNotice(form.value).then((response) => {
262 proxy.$modal.msgSuccess("修改成功"); 338 proxy.$modal.msgSuccess("修改成功");
263 open.value = false; 339 open.value = false;
264 getList(); 340 getList();
265 }); 341 });
266 } else { 342 } else {
267 - addNotice(form.value).then(response => { 343 + addNotice(form.value).then((response) => {
268 proxy.$modal.msgSuccess("新增成功"); 344 proxy.$modal.msgSuccess("新增成功");
269 open.value = false; 345 open.value = false;
270 getList(); 346 getList();
@@ -275,13 +351,17 @@ function submitForm() { @@ -275,13 +351,17 @@ function submitForm() {
275 } 351 }
276 /** 删除按钮操作 */ 352 /** 删除按钮操作 */
277 function handleDelete(row) { 353 function handleDelete(row) {
278 - const noticeIds = row.noticeId || ids.value  
279 - proxy.$modal.confirm('是否确认删除公告编号为"' + noticeIds + '"的数据项?').then(function() { 354 + const noticeIds = row.noticeId || ids.value;
  355 + proxy.$modal
  356 + .confirm('是否确认删除公告编号为"' + noticeIds + '"的数据项?')
  357 + .then(function () {
280 return delNotice(noticeIds); 358 return delNotice(noticeIds);
281 - }).then(() => { 359 + })
  360 + .then(() => {
282 getList(); 361 getList();
283 proxy.$modal.msgSuccess("删除成功"); 362 proxy.$modal.msgSuccess("删除成功");
284 - }).catch(() => {}); 363 + })
  364 + .catch(() => {});
285 } 365 }
286 366
287 getList(); 367 getList();