From a24683ee30bccf4c7cc8ccbe13192e43e43b6570 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Fri, 5 Jan 2024 17:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E6=AC=BE=E7=9F=AD=E6=9C=9F=E9=99=A9?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BF=9D=E5=8D=95=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/sale/sale.js | 9 +++ src/views/ebiz/common/SelectedProduct.vue | 71 ++++++++++------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/api/ebiz/sale/sale.js b/src/api/ebiz/sale/sale.js index fe86fb829..7ee5e49d8 100644 --- a/src/api/ebiz/sale/sale.js +++ b/src/api/ebiz/sale/sale.js @@ -381,3 +381,12 @@ export function appntIsAgent(data) { data }) } + +export function saveOrderType(data) { + return request({ + url: getUrl('/sale/order/saveOrderType', 1), + method: 'post', + data + }) +} + diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index d24c63d26..093830ec9 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -148,7 +148,7 @@ import { orderDetail, deleteOrderInfo, mainRiskList, mainRiskListProposal, calculatePremium } from '@/api/ebiz/common/common' import { formatAllRisk } from '@/assets/js/utils/formatRiskList' import { getDetail, deleteProposal } from '@/api/ebiz/proposal/proposal.js' - import { saveOrderActiveType,getActivityList, getDoubleRecordProductLst, saveOrUpdateOrderInfo } from '@/api/ebiz/sale/sale.js' + import { saveOrderActiveType,getActivityList, getDoubleRecordProductLst, saveOrderType } from '@/api/ebiz/sale/sale.js' import utilsAge from '@/assets/js/utils/age' import IndexBar from '@/components/ebiz/sale/IndexBar' import riskRules from './risk-rules' @@ -1006,47 +1006,38 @@ return false } else { - // let params = { - // orderType: 'APPNT_ORDER', - // orderDTO: { - // orderInfoDTO: { - // orderNo: this.$route.query.orderNo, - // isElecCont: '' - // }, - // appntDTO: this.appntDTO - // } - // } - // if(this.isElecCont == '1') { - // params.orderDTO.orderInfoDTO.isElecCont = '0' - // } - // saveOrUpdateOrderInfo(params).then(res => { - // if(res.result == 0) { - // this.$jump({ - // flag: 'h5', - // extra: { - // forbidSwipeBack: '1', - // url: location.origin + '/#' + thismyurl, - // needRefresh: '1' - // }, - // routerInfo: { - // path: thismyurl - // } - // }) - // } else { - // this.$toast(res.resultMessage) - // } - // }) - this.$jump({ - flag: 'h5', - extra: { - forbidSwipeBack: '1', - url: location.origin + '/#' + thismyurl, - needRefresh: '1' - }, - routerInfo: { - path: thismyurl + let params = { + orderNO: this.$route.query.orderNo, + isElecCont: this.isElecCont + } + saveOrderType(params).then(res => { + if(res.result == 0) { + this.$jump({ + flag: 'h5', + extra: { + forbidSwipeBack: '1', + url: location.origin + '/#' + thismyurl, + needRefresh: '1' + }, + routerInfo: { + path: thismyurl + } + }) + } else { + this.$toast(res.resultMessage) } }) + // this.$jump({ + // flag: 'h5', + // extra: { + // forbidSwipeBack: '1', + // url: location.origin + '/#' + thismyurl, + // needRefresh: '1' + // }, + // routerInfo: { + // path: thismyurl + // } + // }) } } else { this.$jump({