|
|
@@ -101,9 +101,12 @@
|
|
|
<el-button size="mini" type="text"
|
|
|
v-if="item.orderstatus == '1' && item.inscompany=='中煤财险'"
|
|
|
@click="updateStatus(item)" style="color:#f56c6c">更新订单</el-button>
|
|
|
+ <el-button size="mini" type="text"
|
|
|
+ v-if="item.orderstatus == '1' && item.inscompany=='华泰财险'"
|
|
|
+ @click="updateStatusHuatai(item)" style="color:#f56c6c">更新订单</el-button>
|
|
|
<el-button size="mini" type="text"
|
|
|
- v-if="item.orderstatus == '1' && item.inscompany=='华泰财险'"
|
|
|
- @click="refreshStatusHuatai(item)" style="color:#f56c6c">更新订单</el-button>
|
|
|
+ v-if="item.orderstatus == '2' && item.inscompany=='华泰财险'"
|
|
|
+ @click="updateOrderInfoHuatai(item)" style="color:#f56c6c">状态更新</el-button>
|
|
|
<el-button size="mini" type="text"
|
|
|
v-if="item.orderstatus == '2' && item.inscompany=='国任财险'"
|
|
|
@click="refreshStatusGuoren(item)" style="color:#f56c6c">状态更新</el-button>
|
|
|
@@ -1930,7 +1933,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//华泰刷新核保状态
|
|
|
- refreshStatusHuatai(item){
|
|
|
+ updateStatusHuatai(item){
|
|
|
this.$api.letter.orderStatushuatai( {companyId:item.id} ).then(res => {
|
|
|
if(res.code==200){
|
|
|
this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
|
|
|
@@ -1954,6 +1957,31 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //华泰更新订单状态
|
|
|
+ updateOrderInfoHuatai(item){
|
|
|
+ this.$api.letter.updateOrderInfoHuatai( {companyId:item.id} ).then(res => {
|
|
|
+ if(res.code==200){
|
|
|
+ this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
|
|
|
+ this.loading = true;
|
|
|
+ this.$api.letter.queryOrders(this.pageRequest).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.loading = false;
|
|
|
+ this.pageResult = res.data.content;
|
|
|
+ this.pageNum = res.data.pageNum;
|
|
|
+ this.totalSize = res.data.totalSize;
|
|
|
+ this.pageResult.forEach(val => {
|
|
|
+ this.$set(val, "expanded", false);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$message({ message:res.msg, type: "error" })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//中煤查询缴费状态
|
|
|
updateStatus(item){
|
|
|
this.$api.letter.orderStatuszhongmei( {companyId:item.id} ).then(res => {
|
|
|
@@ -2268,6 +2296,52 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
break;
|
|
|
+ case "华泰财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: '2',//2:保单
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data && res.data[0]
|
|
|
+ ) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: '1',// 1:标志
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter.HuataigetPolicyPrint({
|
|
|
+ companyId: item.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: '2',//2:保单
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ break;
|
|
|
case "中煤财险":
|
|
|
if (this.orderInfo.jqpolicyno) {
|
|
|
this.$api.letter.ZhongmeigetPolicyPrint({
|