|
|
@@ -1,32 +1,70 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <retrievalForm :fields="retrievalFields" @submit="handleFormSubmit" @toggleCollapse="toggleCollapse"
|
|
|
- @areaSelectChange="areaSelectChange"></retrievalForm>
|
|
|
- <kt-common-table :data="pageResult" :columns="columns" element-loading-text="加载中..." v-loading="loading"
|
|
|
- :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text"
|
|
|
- @handleButton3="transmit" button2Name="报价轨迹" button2Type="text"
|
|
|
- @handleButton2="trajectory" button5Name="详情" button5Type="text" @handleButton5="detailFun" button4Name="转发记录" button4Type="text"
|
|
|
- @handleButton4="forwardingRecords" :operationWidth="300"
|
|
|
+ <retrievalForm
|
|
|
+ :fields="retrievalFields"
|
|
|
+ @submit="handleFormSubmit"
|
|
|
+ @toggleCollapse="toggleCollapse"
|
|
|
+ @areaSelectChange="areaSelectChange"
|
|
|
+ ></retrievalForm>
|
|
|
+ <kt-common-table
|
|
|
+ :data="pageResult"
|
|
|
+ :columns="columns"
|
|
|
+ element-loading-text="加载中..."
|
|
|
+ v-loading="loading"
|
|
|
+ :showBatchDelete="false"
|
|
|
+ @findPage="findPage"
|
|
|
+ button3Name="状态更新"
|
|
|
+ button3Type="text"
|
|
|
+ @handleButton3="querystatus"
|
|
|
+ button2Name="报价轨迹"
|
|
|
+ button2Type="text"
|
|
|
+ @handleButton2="trajectory"
|
|
|
+ button5Name="详情"
|
|
|
+ button5Type="text"
|
|
|
+ @handleButton5="detailFun"
|
|
|
+ button4Name="转发记录"
|
|
|
+ button4Type="text"
|
|
|
+ @handleButton4="forwardingRecords"
|
|
|
+ :operationWidth="300"
|
|
|
:buttonDropdown="dropdownOption"
|
|
|
- ></kt-common-table>
|
|
|
+ ></kt-common-table>
|
|
|
<el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
|
|
|
转发人:
|
|
|
- <el-select v-model="transmitValue" filterable clearable placeholder="请选择">
|
|
|
- <el-option v-for="item in options" :key="item.userId" :label="item.name" :value="item.userId"></el-option>
|
|
|
+ <el-select
|
|
|
+ v-model="transmitValue"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.userId"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.userId"
|
|
|
+ ></el-option>
|
|
|
</el-select>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" size="small" @click="transmitSumit">确 定</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="transmitSumit"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <detailsDialog ref="detailsDialog" :isTaskPool="true" :orderInfo="queryOrders" :isAuditing="isAuditing" :feeOrderNewVoList="feeOrderNewVoList"></detailsDialog>
|
|
|
+ <detailsDialog
|
|
|
+ ref="detailsDialog"
|
|
|
+ :isTaskPool="true"
|
|
|
+ :orderInfo="queryOrders"
|
|
|
+ :isAuditing="isAuditing"
|
|
|
+ :feeOrderNewVoList="feeOrderNewVoList"
|
|
|
+ ></detailsDialog>
|
|
|
<el-dialog :visible.sync="ddgjdialogVisible" width="430px">
|
|
|
- <div slot="title" class=" dialog-title">
|
|
|
+ <div slot="title" class="dialog-title">
|
|
|
<span>订单轨迹</span>
|
|
|
</div>
|
|
|
<div style="height: 300px; overflow-y: auto">
|
|
|
- <el-steps direction="vertical" :active="trajectoryTable.length - 1" >
|
|
|
- <el-step v-for="item in trajectoryTable"
|
|
|
+ <el-steps direction="vertical" :active="trajectoryTable.length - 1">
|
|
|
+ <el-step
|
|
|
+ v-for="item in trajectoryTable"
|
|
|
:key="item.id"
|
|
|
:title="getStatusText(item.orderStatus)"
|
|
|
>
|
|
|
@@ -39,18 +77,51 @@
|
|
|
</el-steps>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :visible.sync="forwardingRecordsdialogVisible" title="转发记录" width="70%">
|
|
|
- <el-table :data="gridData" height="400" border v-loading="loading" highlight-current-row stripe
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="forwardingRecordsdialogVisible"
|
|
|
+ title="转发记录"
|
|
|
+ width="70%"
|
|
|
+ >
|
|
|
+ <el-table
|
|
|
+ :data="gridData"
|
|
|
+ height="400"
|
|
|
+ border
|
|
|
+ v-loading="loading"
|
|
|
+ highlight-current-row
|
|
|
+ stripe
|
|
|
:header-cell-style="{
|
|
|
background: '#F2F7FC',
|
|
|
fontWeight: '700',
|
|
|
color: '#606266',
|
|
|
- }">
|
|
|
- <el-table-column property="subOrderId" align="center" label="订单号" width="200"></el-table-column>
|
|
|
- <el-table-column property="oldOperatorId" align="center" label="转发人" width="200"></el-table-column>
|
|
|
- <el-table-column property="newOperatorId" align="center" label="接收人"></el-table-column>
|
|
|
- <el-table-column property="remark" align="center" label="转发信息"></el-table-column>
|
|
|
- <el-table-column property="createTime" align="center" label="转发时间"></el-table-column>
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ property="subOrderId"
|
|
|
+ align="center"
|
|
|
+ label="订单号"
|
|
|
+ width="200"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="oldOperatorId"
|
|
|
+ align="center"
|
|
|
+ label="转发人"
|
|
|
+ width="200"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="newOperatorId"
|
|
|
+ align="center"
|
|
|
+ label="接收人"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="remark"
|
|
|
+ align="center"
|
|
|
+ label="转发信息"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ property="createTime"
|
|
|
+ align="center"
|
|
|
+ label="转发时间"
|
|
|
+ ></el-table-column>
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
<qrCodedialog ref="qrCodedialog"></qrCodedialog>
|
|
|
@@ -70,7 +141,7 @@ export default {
|
|
|
KtCommonTable,
|
|
|
detailsDialog,
|
|
|
retrievalForm,
|
|
|
- qrCodedialog
|
|
|
+ qrCodedialog,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -81,31 +152,32 @@ export default {
|
|
|
userId: "",
|
|
|
},
|
|
|
|
|
|
- ddgjdialogVisible:false,
|
|
|
- trajectoryTable:[],
|
|
|
- optionsStatus:[],
|
|
|
- subOrderId:'',
|
|
|
- dropdownOption:[
|
|
|
+ ddgjdialogVisible: false,
|
|
|
+ trajectoryTable: [],
|
|
|
+ optionsStatus: [],
|
|
|
+ subOrderId: "",
|
|
|
+ dropdownOption: [
|
|
|
{
|
|
|
- label:'二维码',
|
|
|
- click:(row)=>this.carcode(row)
|
|
|
- },{
|
|
|
- label:'撤销二维码',
|
|
|
- click:(row)=>this.revokeCode(row)
|
|
|
- },{
|
|
|
- label:'状态更新',
|
|
|
- click:(row)=>this.querystatus(row)
|
|
|
+ label: "二维码",
|
|
|
+ click: (row) => this.carcode(row),
|
|
|
},
|
|
|
{
|
|
|
- label:'撤单',
|
|
|
- hide:(row) => {
|
|
|
- return row.insCompany == '紫金财险' ?true:false
|
|
|
+ label: "撤销二维码",
|
|
|
+ click: (row) => this.revokeCode(row),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "转发",
|
|
|
+ click: (row) => this.transmit(row),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "撤单",
|
|
|
+ hide: (row) => {
|
|
|
+ return row.insCompany == "紫金财险" ? true : false;
|
|
|
},
|
|
|
- click:(row)=>this.cancelorder(row)
|
|
|
+ click: (row) => this.cancelorder(row),
|
|
|
},
|
|
|
- ]
|
|
|
-
|
|
|
- }
|
|
|
+ ],
|
|
|
+ };
|
|
|
},
|
|
|
mixins: [mixin],
|
|
|
created() {
|
|
|
@@ -117,37 +189,38 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
querystatus(item) {
|
|
|
+ console.log(item)
|
|
|
let inscompany = {
|
|
|
国任财险: "updateOrderInfoGuoren",
|
|
|
华泰财险: "updateOrderInfoHuatai",
|
|
|
大家财险: "updateOrderInfoDajia",
|
|
|
紫金财险: "getOrderDetail",
|
|
|
中煤财险: "paymentEnquiry",
|
|
|
- 渤海财险: "getOrderDetailboHai"
|
|
|
+ 渤海财险: "getOrderDetailboHai",
|
|
|
};
|
|
|
- Object.keys(inscompany).forEach(val => {
|
|
|
- if (val == item.insCompany) {
|
|
|
- this.$api.letter[inscompany[val]]({ companyId: item.subOrderId }).then(
|
|
|
- res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message({
|
|
|
- message: res.msg ? res.msg : "已刷新状态",
|
|
|
- type: "success"
|
|
|
- });
|
|
|
- this.findPage();
|
|
|
- } else {
|
|
|
- this.$message({ message: res.msg, type: "error" });
|
|
|
- }
|
|
|
+ Object.keys(inscompany).forEach((val) => {
|
|
|
+ if (val == item.row.insCompany) {
|
|
|
+ this.$api.letter[inscompany[val]]({
|
|
|
+ companyId: item.row.subOrderId,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg ? res.msg : "已刷新状态",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.findPage();
|
|
|
+ } else {
|
|
|
+ this.$message({ message: res.msg, type: "error" });
|
|
|
}
|
|
|
- );
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
- if (item.insCompany == "永诚财险") {
|
|
|
- this.$api.letter.orderStatusyongcheng(item.subOrderId).then(res => {
|
|
|
+ if (item.row.insCompany == "永诚财险") {
|
|
|
+ this.$api.letter.orderStatusyongcheng(item.row.subOrderId).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
|
message: res.msg ? res.msg : "已刷新状态",
|
|
|
- type: "success"
|
|
|
+ type: "success",
|
|
|
});
|
|
|
this.findPage();
|
|
|
} else {
|
|
|
@@ -155,17 +228,17 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if (item.insCompany == "华泰财险") {
|
|
|
+ if (item.row.insCompany == "华泰财险") {
|
|
|
let HtApiType =
|
|
|
- item.apiType == 2
|
|
|
- ? "pychonverifyPayment"
|
|
|
- : "updateOrderInfoHuatai";
|
|
|
+ item.row.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoHuatai";
|
|
|
|
|
|
- this.$api.letter[HtApiType](item.apiType == 2 ? { subOrderNo: item.subOrderId } : item.id).then(res => {
|
|
|
+ this.$api.letter[HtApiType](
|
|
|
+ item.row.apiType == 2 ? { subOrderNo: item.row.subOrderId } : item.row.id
|
|
|
+ ).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
|
message: res.msg ? res.msg : "已刷新状态",
|
|
|
- type: "success"
|
|
|
+ type: "success",
|
|
|
});
|
|
|
this.findPage();
|
|
|
} else {
|
|
|
@@ -174,20 +247,20 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (
|
|
|
- item.insCompany == "恒邦财险" ||
|
|
|
- item.insCompany == "众安财险" ||
|
|
|
- item.insCompany == "中国人寿" ||
|
|
|
- item.insCompany == "安盛天平" ||
|
|
|
- item.insCompany == "太平财险" ||
|
|
|
- item.insCompany == "华农财险"
|
|
|
+ item.row.insCompany == "恒邦财险" ||
|
|
|
+ item.row.insCompany == "众安财险" ||
|
|
|
+ item.row.insCompany == "中国人寿" ||
|
|
|
+ item.row.insCompany == "安盛天平" ||
|
|
|
+ item.row.insCompany == "太平财险" ||
|
|
|
+ item.row.insCompany == "华农财险"
|
|
|
) {
|
|
|
this.$api.letter
|
|
|
- .pychonverifyPayment({ subOrderNo: item.subOrderId })
|
|
|
- .then(res => {
|
|
|
+ .pychonverifyPayment({ subOrderNo: item.row.subOrderId })
|
|
|
+ .then((res) => {
|
|
|
if (res.code == "200") {
|
|
|
this.$message({
|
|
|
message: "订单支付成功,正在更改状态",
|
|
|
- type: "success"
|
|
|
+ type: "success",
|
|
|
});
|
|
|
this.findPage();
|
|
|
} else {
|
|
|
@@ -197,21 +270,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
carcode(row) {
|
|
|
- this.$refs.qrCodedialog.carcode(row)
|
|
|
+ this.$refs.qrCodedialog.carcode(row);
|
|
|
},
|
|
|
getStatusText(code) {
|
|
|
- return this.optionsStatus.find(val=>val.dictValue==code).dictTag;;
|
|
|
+ return this.optionsStatus.find((val) => val.dictValue == code).dictTag;
|
|
|
},
|
|
|
handleFormSubmit(data) {
|
|
|
- let obj = Object.assign(this.pageRequest, data)
|
|
|
+ let obj = Object.assign(this.pageRequest, data);
|
|
|
this.pageRequest = obj;
|
|
|
this.findPage();
|
|
|
},
|
|
|
toggleCollapse(data) {
|
|
|
- this.retrievalFields.map(val => {
|
|
|
+ this.retrievalFields.map((val) => {
|
|
|
if (val.Retained != null) val.Retained = data;
|
|
|
return val;
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
queryStaffInfo() {
|
|
|
this.findPage();
|
|
|
@@ -225,7 +298,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
this.$api.task
|
|
|
.queryPageHospitalityByInsuranceCompany(this.pageRequest)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.loading = false;
|
|
|
this.pageResult = res.data;
|
|
|
@@ -235,7 +308,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- trajectory(row){
|
|
|
+ trajectory(row) {
|
|
|
this.$api.letter.queryBySuborder(row.row.subOrderId).then((res) => {
|
|
|
if (res.code == 200 && res.data.length > 0) {
|
|
|
this.ddgjdialogVisible = true;
|
|
|
@@ -249,49 +322,51 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
transmit(row) {
|
|
|
+ // console.log(row)
|
|
|
this.dialogVisible = true;
|
|
|
this.transmitValue = "";
|
|
|
- this.orderNo = row.row.orderno
|
|
|
- this.subOrderId = row.row.subOrderId
|
|
|
- this.$api.task.getCustomerUsers().then(res => {
|
|
|
+ this.orderNo = row.orderno;
|
|
|
+ this.subOrderId = row.subOrderId;
|
|
|
+ this.$api.task.getCustomerUsers().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- this.options = res.data
|
|
|
+ this.options = res.data;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 收回
|
|
|
takeBack(row) {
|
|
|
- let orderNo = row.row.orderno
|
|
|
- let subOrderId = row.row.subOrderId
|
|
|
- this.$api.task.taskPoolsRecover({ orderNo, subOrderId }).then(res => {
|
|
|
+ let orderNo = row.row.orderno;
|
|
|
+ let subOrderId = row.row.subOrderId;
|
|
|
+ this.$api.task.taskPoolsRecover({ orderNo, subOrderId }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
|
- type: 'success'
|
|
|
+ type: "success",
|
|
|
});
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
transmitSumit() {
|
|
|
if (this.transmitValue) {
|
|
|
- this.$api.task.forwardingSubOrders({ auditId: this.transmitValue, orderNo: this.orderNo, subOrderId: this.subOrderId }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.options = res.data
|
|
|
- this.dialogVisible = false;
|
|
|
- this.findPage()
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error(res.msg);
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
- else {
|
|
|
- this.$message.error('请选择转发人!');
|
|
|
-
|
|
|
+ this.$api.task
|
|
|
+ .forwardingSubOrders({
|
|
|
+ auditId: this.transmitValue,
|
|
|
+ orderNo: this.orderNo,
|
|
|
+ subOrderId: this.subOrderId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.options = res.data;
|
|
|
+ this.dialogVisible = false;
|
|
|
+ this.findPage();
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error("请选择转发人!");
|
|
|
}
|
|
|
},
|
|
|
//联级选择器触发事件
|
|
|
@@ -348,37 +423,36 @@ export default {
|
|
|
// });
|
|
|
// this.$refs.detailsDialog.setBackupVisible(true);
|
|
|
// },
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
-/deep/{
|
|
|
+/deep/ {
|
|
|
.el-step__description.is-finish,
|
|
|
.el-step__head.is-finish {
|
|
|
color: #333;
|
|
|
border: none;
|
|
|
}
|
|
|
- .el-step__title,.el-step__icon-inner{
|
|
|
- color:var(--themeColor)
|
|
|
+ .el-step__title,
|
|
|
+ .el-step__icon-inner {
|
|
|
+ color: var(--themeColor);
|
|
|
}
|
|
|
- .el-step__line-inner{
|
|
|
- height:0;
|
|
|
- display:none
|
|
|
- }
|
|
|
- .is-flex{
|
|
|
-
|
|
|
- .el-step__icon{
|
|
|
- background: var(--themeColor)
|
|
|
+ .el-step__line-inner {
|
|
|
+ height: 0;
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ .is-flex {
|
|
|
+ .el-step__icon {
|
|
|
+ background: var(--themeColor);
|
|
|
}
|
|
|
- .el-step__icon-inner{
|
|
|
+ .el-step__icon-inner {
|
|
|
color: #fff;
|
|
|
}
|
|
|
}
|
|
|
- .el-step__icon.is-text{
|
|
|
- border:none;
|
|
|
- box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.1);
|
|
|
+ .el-step__icon.is-text {
|
|
|
+ border: none;
|
|
|
+ box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|