正在显示
8 个修改的文件
包含
95 行增加
和
13 行删除
| @@ -90,7 +90,7 @@ const options = ref({ | @@ -90,7 +90,7 @@ const options = ref({ | ||
| 90 | ["link", "image", "video"], // 链接、图片、视频 | 90 | ["link", "image", "video"], // 链接、图片、视频 |
| 91 | ], | 91 | ], |
| 92 | }, | 92 | }, |
| 93 | - placeholder: "请输入内容", | 93 | + placeholder: "", |
| 94 | readOnly: props.readOnly, | 94 | readOnly: props.readOnly, |
| 95 | }); | 95 | }); |
| 96 | 96 | ||
| @@ -163,7 +163,7 @@ function handleUploadSuccess(res, file) { | @@ -163,7 +163,7 @@ function handleUploadSuccess(res, file) { | ||
| 163 | quill.insertEmbed( | 163 | quill.insertEmbed( |
| 164 | length, | 164 | length, |
| 165 | "image", | 165 | "image", |
| 166 | - import.meta.env.VITE_APP_BASE_API + res.fileName | 166 | + import.meta.env.VITE_APP_TAB_URL_PREFIX + res.fileName |
| 167 | ); | 167 | ); |
| 168 | // 调整光标到最后 | 168 | // 调整光标到最后 |
| 169 | quill.setSelection(length + 1); | 169 | quill.setSelection(length + 1); |
| @@ -846,7 +846,7 @@ function submitTransfer() { | @@ -846,7 +846,7 @@ function submitTransfer() { | ||
| 846 | const submit = () => { | 846 | const submit = () => { |
| 847 | const data = { | 847 | const data = { |
| 848 | policystatus: "2", | 848 | policystatus: "2", |
| 849 | - message: FeedbackForm.value.comment, | 849 | + message: FeedbackForm.value.message, |
| 850 | commercialinsurancepolicynumber: | 850 | commercialinsurancepolicynumber: |
| 851 | FeedbackForm.value.commercialinsurancepolicynumber, | 851 | FeedbackForm.value.commercialinsurancepolicynumber, |
| 852 | stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber, | 852 | stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber, |
| @@ -159,6 +159,16 @@ | @@ -159,6 +159,16 @@ | ||
| 159 | <span>{{ row.companyName || "无" }}</span> | 159 | <span>{{ row.companyName || "无" }}</span> |
| 160 | </template> | 160 | </template> |
| 161 | </el-table-column> | 161 | </el-table-column> |
| 162 | + <el-table-column label="操作" fixed="right" width="150"> | ||
| 163 | + <template #default="{ row }"> | ||
| 164 | + <el-button | ||
| 165 | + v-show="row.policyStatus === '已退回'" | ||
| 166 | + type="primary" | ||
| 167 | + @click="queryRemark(row)" | ||
| 168 | + >查阅</el-button | ||
| 169 | + > | ||
| 170 | + </template> | ||
| 171 | + </el-table-column> | ||
| 162 | </el-table> | 172 | </el-table> |
| 163 | 173 | ||
| 164 | <pagination | 174 | <pagination |
| @@ -264,13 +274,24 @@ | @@ -264,13 +274,24 @@ | ||
| 264 | </el-form-item> | 274 | </el-form-item> |
| 265 | </el-col> | 275 | </el-col> |
| 266 | </el-row> | 276 | </el-row> |
| 277 | + <el-form-item | ||
| 278 | + v-if="form.policyStatus === '已退回'" | ||
| 279 | + :label="labelTitle" | ||
| 280 | + prop="progress" | ||
| 281 | + > | ||
| 282 | + <QuillEditor | ||
| 283 | + v-model="form.comment" | ||
| 284 | + :readOnly="true" | ||
| 285 | + :min-height="192" | ||
| 286 | + /> | ||
| 287 | + </el-form-item> | ||
| 267 | </el-form> | 288 | </el-form> |
| 268 | </el-dialog> | 289 | </el-dialog> |
| 269 | </div> | 290 | </div> |
| 270 | </template> | 291 | </template> |
| 271 | 292 | ||
| 272 | <script setup> | 293 | <script setup> |
| 273 | -import { queryProcessedList } from "@/api/policy/index"; | 294 | +import { queryProcessedList, queryDefeatContent } from "@/api/policy/index"; |
| 274 | const { proxy } = getCurrentInstance(); | 295 | const { proxy } = getCurrentInstance(); |
| 275 | const loading = ref(false); | 296 | const loading = ref(false); |
| 276 | const total = ref(0); | 297 | const total = ref(0); |
| @@ -342,7 +363,16 @@ function resetQuery() { | @@ -342,7 +363,16 @@ function resetQuery() { | ||
| 342 | proxy.resetForm("queryRef"); | 363 | proxy.resetForm("queryRef"); |
| 343 | handleQuery(); | 364 | handleQuery(); |
| 344 | } | 365 | } |
| 345 | - | 366 | +/** 查询备注或回馈 */ |
| 367 | +const queryRemark = async (row) => { | ||
| 368 | + labelTitle.value = "退回原因"; | ||
| 369 | + const { data } = await queryDefeatContent({ | ||
| 370 | + processInstanceId: row.processInstanceId, | ||
| 371 | + type: 1, | ||
| 372 | + }); | ||
| 373 | + form.value.comment = data.message; | ||
| 374 | + open.value = true; | ||
| 375 | +}; | ||
| 346 | getList(); | 376 | getList(); |
| 347 | </script> | 377 | </script> |
| 348 | 378 |
| @@ -846,7 +846,7 @@ function submitTransfer() { | @@ -846,7 +846,7 @@ function submitTransfer() { | ||
| 846 | const submit = () => { | 846 | const submit = () => { |
| 847 | const data = { | 847 | const data = { |
| 848 | policystatus: "2", | 848 | policystatus: "2", |
| 849 | - message: FeedbackForm.value.comment, | 849 | + message: FeedbackForm.value.message, |
| 850 | commercialinsurancepolicynumber: | 850 | commercialinsurancepolicynumber: |
| 851 | FeedbackForm.value.commercialinsurancepolicynumber, | 851 | FeedbackForm.value.commercialinsurancepolicynumber, |
| 852 | stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber, | 852 | stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber, |
| @@ -121,6 +121,16 @@ | @@ -121,6 +121,16 @@ | ||
| 121 | <span>{{ row.companyName || "无" }}</span> | 121 | <span>{{ row.companyName || "无" }}</span> |
| 122 | </template> | 122 | </template> |
| 123 | </el-table-column> | 123 | </el-table-column> |
| 124 | + <el-table-column label="操作" fixed="right" width="150"> | ||
| 125 | + <template #default="{ row }"> | ||
| 126 | + <el-button | ||
| 127 | + v-show="row.policyStatus === '已退回'" | ||
| 128 | + type="primary" | ||
| 129 | + @click="queryRemark(row)" | ||
| 130 | + >查阅</el-button | ||
| 131 | + > | ||
| 132 | + </template> | ||
| 133 | + </el-table-column> | ||
| 124 | </el-table> | 134 | </el-table> |
| 125 | 135 | ||
| 126 | <pagination | 136 | <pagination |
| @@ -222,19 +232,31 @@ | @@ -222,19 +232,31 @@ | ||
| 222 | </el-form-item> | 232 | </el-form-item> |
| 223 | </el-col> | 233 | </el-col> |
| 224 | </el-row> | 234 | </el-row> |
| 235 | + <el-form-item | ||
| 236 | + v-if="form.policyStatus === '已退回'" | ||
| 237 | + :label="labelTitle" | ||
| 238 | + prop="progress" | ||
| 239 | + > | ||
| 240 | + <QuillEditor | ||
| 241 | + v-model="form.comment" | ||
| 242 | + :readOnly="true" | ||
| 243 | + :min-height="192" | ||
| 244 | + /> | ||
| 245 | + </el-form-item> | ||
| 225 | </el-form> | 246 | </el-form> |
| 226 | </el-dialog> | 247 | </el-dialog> |
| 227 | </div> | 248 | </div> |
| 228 | </template> | 249 | </template> |
| 229 | 250 | ||
| 230 | <script setup> | 251 | <script setup> |
| 231 | -import { queryProcessedList } from "@/api/policy/index"; | 252 | +import { queryProcessedList, queryDefeatContent } from "@/api/policy/index"; |
| 232 | const { proxy } = getCurrentInstance(); | 253 | const { proxy } = getCurrentInstance(); |
| 233 | const loading = ref(false); | 254 | const loading = ref(false); |
| 234 | const total = ref(0); | 255 | const total = ref(0); |
| 235 | const open = ref(false); | 256 | const open = ref(false); |
| 236 | const form = ref({}); | 257 | const form = ref({}); |
| 237 | const showSearch = ref(true); | 258 | const showSearch = ref(true); |
| 259 | +const labelTitle = ref("备注"); | ||
| 238 | const queryParams = reactive({ | 260 | const queryParams = reactive({ |
| 239 | pageNum: 1, | 261 | pageNum: 1, |
| 240 | pageSize: 10, | 262 | pageSize: 10, |
| @@ -301,6 +323,17 @@ function resetQuery() { | @@ -301,6 +323,17 @@ function resetQuery() { | ||
| 301 | handleQuery(); | 323 | handleQuery(); |
| 302 | } | 324 | } |
| 303 | 325 | ||
| 326 | +/** 查询备注或回馈 */ | ||
| 327 | +const queryRemark = async (row) => { | ||
| 328 | + labelTitle.value = "退回原因"; | ||
| 329 | + const { data } = await queryDefeatContent({ | ||
| 330 | + processInstanceId: row.processInstanceId, | ||
| 331 | + type: 1, | ||
| 332 | + }); | ||
| 333 | + form.value.comment = data.message; | ||
| 334 | + open.value = true; | ||
| 335 | +}; | ||
| 336 | + | ||
| 304 | getList(); | 337 | getList(); |
| 305 | </script> | 338 | </script> |
| 306 | 339 |
| @@ -236,7 +236,9 @@ | @@ -236,7 +236,9 @@ | ||
| 236 | <template #default="{ row }"> | 236 | <template #default="{ row }"> |
| 237 | <el-button | 237 | <el-button |
| 238 | v-show=" | 238 | v-show=" |
| 239 | - row.policyStatus === '已作废' || row.policyStatus === '已办结' | 239 | + row.policyStatus === '已作废' || |
| 240 | + row.policyStatus === '已办结' || | ||
| 241 | + row.policyStatus === '已退回' | ||
| 240 | " | 242 | " |
| 241 | type="primary" | 243 | type="primary" |
| 242 | @click="queryRemark(row)" | 244 | @click="queryRemark(row)" |
| @@ -575,7 +577,7 @@ const queryRemark = async (row) => { | @@ -575,7 +577,7 @@ const queryRemark = async (row) => { | ||
| 575 | }); | 577 | }); |
| 576 | form.value.comment = data.message; | 578 | form.value.comment = data.message; |
| 577 | open.value = true; | 579 | open.value = true; |
| 578 | - } else { | 580 | + } else if (row.policyStatus === "已办结") { |
| 579 | queryResult({ processInstanceId: row.processInstanceId }).then((res) => { | 581 | queryResult({ processInstanceId: row.processInstanceId }).then((res) => { |
| 580 | form.value.commercialInsurancePolicyNumber = | 582 | form.value.commercialInsurancePolicyNumber = |
| 581 | res?.data?.commercialInsurancePolicyNumber; | 583 | res?.data?.commercialInsurancePolicyNumber; |
| @@ -584,6 +586,14 @@ const queryRemark = async (row) => { | @@ -584,6 +586,14 @@ const queryRemark = async (row) => { | ||
| 584 | form.value.comment = res?.data?.message; | 586 | form.value.comment = res?.data?.message; |
| 585 | open.value = true; | 587 | open.value = true; |
| 586 | }); | 588 | }); |
| 589 | + } else { | ||
| 590 | + labelTitle.value = "退回原因"; | ||
| 591 | + const { data } = await queryDefeatContent({ | ||
| 592 | + processInstanceId: row.processInstanceId, | ||
| 593 | + type: 1, | ||
| 594 | + }); | ||
| 595 | + form.value.comment = data.message; | ||
| 596 | + open.value = true; | ||
| 587 | } | 597 | } |
| 588 | }; | 598 | }; |
| 589 | 599 |
| @@ -230,7 +230,9 @@ | @@ -230,7 +230,9 @@ | ||
| 230 | <template #default="{ row }"> | 230 | <template #default="{ row }"> |
| 231 | <el-button | 231 | <el-button |
| 232 | v-show=" | 232 | v-show=" |
| 233 | - row.policyStatus === '已作废' || row.policyStatus === '已办结' | 233 | + row.policyStatus === '已作废' || |
| 234 | + row.policyStatus === '已办结' || | ||
| 235 | + row.policyStatus === '已退回' | ||
| 234 | " | 236 | " |
| 235 | type="primary" | 237 | type="primary" |
| 236 | @click="queryRemark(row)" | 238 | @click="queryRemark(row)" |
| @@ -560,7 +562,6 @@ function reset() { | @@ -560,7 +562,6 @@ function reset() { | ||
| 560 | const queryRemark = async (row) => { | 562 | const queryRemark = async (row) => { |
| 561 | const { data } = await getCarDetail(row.businessKey); | 563 | const { data } = await getCarDetail(row.businessKey); |
| 562 | form.value = data; | 564 | form.value = data; |
| 563 | - isCustom.value = data.isCustomizeBrandAndModel == "0"; | ||
| 564 | if (row.policyStatus === "已作废") { | 565 | if (row.policyStatus === "已作废") { |
| 565 | labelTitle.value = "作废备注"; | 566 | labelTitle.value = "作废备注"; |
| 566 | const { data } = await queryDefeatContent({ | 567 | const { data } = await queryDefeatContent({ |
| @@ -569,7 +570,7 @@ const queryRemark = async (row) => { | @@ -569,7 +570,7 @@ const queryRemark = async (row) => { | ||
| 569 | }); | 570 | }); |
| 570 | form.value.comment = data.message; | 571 | form.value.comment = data.message; |
| 571 | open.value = true; | 572 | open.value = true; |
| 572 | - } else { | 573 | + } else if (row.policyStatus === "已办结") { |
| 573 | queryResult({ processInstanceId: row.processInstanceId }).then((res) => { | 574 | queryResult({ processInstanceId: row.processInstanceId }).then((res) => { |
| 574 | form.value.commercialInsurancePolicyNumber = | 575 | form.value.commercialInsurancePolicyNumber = |
| 575 | res?.data?.commercialInsurancePolicyNumber; | 576 | res?.data?.commercialInsurancePolicyNumber; |
| @@ -578,6 +579,14 @@ const queryRemark = async (row) => { | @@ -578,6 +579,14 @@ const queryRemark = async (row) => { | ||
| 578 | form.value.comment = res?.data?.message; | 579 | form.value.comment = res?.data?.message; |
| 579 | open.value = true; | 580 | open.value = true; |
| 580 | }); | 581 | }); |
| 582 | + } else { | ||
| 583 | + labelTitle.value = "退回原因"; | ||
| 584 | + const { data } = await queryDefeatContent({ | ||
| 585 | + processInstanceId: row.processInstanceId, | ||
| 586 | + type: 1, | ||
| 587 | + }); | ||
| 588 | + form.value.comment = data.message; | ||
| 589 | + open.value = true; | ||
| 581 | } | 590 | } |
| 582 | }; | 591 | }; |
| 583 | 592 |
-
请 注册 或 登录 后发表评论