作者 xiaoqiu

优化了可能会出现的bug

... ... @@ -23,6 +23,6 @@ input::-webkit-inner-spin-button {
padding: 0;
}
img {
width: 100%;
max-width: 100%;
}
</style>
... ...
... ... @@ -90,7 +90,7 @@ const options = ref({
["link", "image", "video"], // 链接、图片、视频
],
},
placeholder: "请输入内容",
placeholder: "",
readOnly: props.readOnly,
});
... ... @@ -163,7 +163,7 @@ function handleUploadSuccess(res, file) {
quill.insertEmbed(
length,
"image",
import.meta.env.VITE_APP_BASE_API + res.fileName
import.meta.env.VITE_APP_TAB_URL_PREFIX + res.fileName
);
// 调整光标到最后
quill.setSelection(length + 1);
... ...
... ... @@ -846,7 +846,7 @@ function submitTransfer() {
const submit = () => {
const data = {
policystatus: "2",
message: FeedbackForm.value.comment,
message: FeedbackForm.value.message,
commercialinsurancepolicynumber:
FeedbackForm.value.commercialinsurancepolicynumber,
stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber,
... ...
... ... @@ -159,6 +159,16 @@
<span>{{ row.companyName || "无" }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<template #default="{ row }">
<el-button
v-show="row.policyStatus === '已退回'"
type="primary"
@click="queryRemark(row)"
>查阅</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
... ... @@ -264,13 +274,24 @@
</el-form-item>
</el-col>
</el-row>
<el-form-item
v-if="form.policyStatus === '已退回'"
:label="labelTitle"
prop="progress"
>
<QuillEditor
v-model="form.comment"
:readOnly="true"
:min-height="192"
/>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryProcessedList } from "@/api/policy/index";
import { queryProcessedList, queryDefeatContent } from "@/api/policy/index";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(0);
... ... @@ -342,7 +363,16 @@ function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
/** 查询备注或回馈 */
const queryRemark = async (row) => {
labelTitle.value = "退回原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 1,
});
form.value.comment = data.message;
open.value = true;
};
getList();
</script>
... ...
... ... @@ -846,7 +846,7 @@ function submitTransfer() {
const submit = () => {
const data = {
policystatus: "2",
message: FeedbackForm.value.comment,
message: FeedbackForm.value.message,
commercialinsurancepolicynumber:
FeedbackForm.value.commercialinsurancepolicynumber,
stronginsurancepolicynumber: FeedbackForm.value.stronginsurancepolicynumber,
... ...
... ... @@ -121,6 +121,16 @@
<span>{{ row.companyName || "无" }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<template #default="{ row }">
<el-button
v-show="row.policyStatus === '已退回'"
type="primary"
@click="queryRemark(row)"
>查阅</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
... ... @@ -222,19 +232,31 @@
</el-form-item>
</el-col>
</el-row>
<el-form-item
v-if="form.policyStatus === '已退回'"
:label="labelTitle"
prop="progress"
>
<QuillEditor
v-model="form.comment"
:readOnly="true"
:min-height="192"
/>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<script setup>
import { queryProcessedList } from "@/api/policy/index";
import { queryProcessedList, queryDefeatContent } from "@/api/policy/index";
const { proxy } = getCurrentInstance();
const loading = ref(false);
const total = ref(0);
const open = ref(false);
const form = ref({});
const showSearch = ref(true);
const labelTitle = ref("备注");
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
... ... @@ -301,6 +323,17 @@ function resetQuery() {
handleQuery();
}
/** 查询备注或回馈 */
const queryRemark = async (row) => {
labelTitle.value = "退回原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 1,
});
form.value.comment = data.message;
open.value = true;
};
getList();
</script>
... ...
... ... @@ -236,7 +236,9 @@
<template #default="{ row }">
<el-button
v-show="
row.policyStatus === '已作废' || row.policyStatus === '已办结'
row.policyStatus === '已作废' ||
row.policyStatus === '已办结' ||
row.policyStatus === '已退回'
"
type="primary"
@click="queryRemark(row)"
... ... @@ -575,7 +577,7 @@ const queryRemark = async (row) => {
});
form.value.comment = data.message;
open.value = true;
} else {
} else if (row.policyStatus === "已办结") {
queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
form.value.commercialInsurancePolicyNumber =
res?.data?.commercialInsurancePolicyNumber;
... ... @@ -584,6 +586,14 @@ const queryRemark = async (row) => {
form.value.comment = res?.data?.message;
open.value = true;
});
} else {
labelTitle.value = "退回原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 1,
});
form.value.comment = data.message;
open.value = true;
}
};
... ...
... ... @@ -230,7 +230,9 @@
<template #default="{ row }">
<el-button
v-show="
row.policyStatus === '已作废' || row.policyStatus === '已办结'
row.policyStatus === '已作废' ||
row.policyStatus === '已办结' ||
row.policyStatus === '已退回'
"
type="primary"
@click="queryRemark(row)"
... ... @@ -560,7 +562,6 @@ function reset() {
const queryRemark = async (row) => {
const { data } = await getCarDetail(row.businessKey);
form.value = data;
isCustom.value = data.isCustomizeBrandAndModel == "0";
if (row.policyStatus === "已作废") {
labelTitle.value = "作废备注";
const { data } = await queryDefeatContent({
... ... @@ -569,7 +570,7 @@ const queryRemark = async (row) => {
});
form.value.comment = data.message;
open.value = true;
} else {
} else if (row.policyStatus === "已办结") {
queryResult({ processInstanceId: row.processInstanceId }).then((res) => {
form.value.commercialInsurancePolicyNumber =
res?.data?.commercialInsurancePolicyNumber;
... ... @@ -578,6 +579,14 @@ const queryRemark = async (row) => {
form.value.comment = res?.data?.message;
open.value = true;
});
} else {
labelTitle.value = "退回原因";
const { data } = await queryDefeatContent({
processInstanceId: row.processInstanceId,
type: 1,
});
form.value.comment = data.message;
open.value = true;
}
};
... ...