Commit 396c2b80 by 前端

Merge branch 'v3.24.0' into 'master'

上线合并

See merge request !53
2 parents ffae6374 d96ffc13
......@@ -425,4 +425,14 @@ const getSummaryExportApi = params => {
})
}
export default { getOrdersummary, getChannelTypeApi, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getNewPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode }
const getUpdateRecordApi = params => {
params.method = `scrm.api.equity.service.order.update.details`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getOrdersummary, getChannelTypeApi, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getNewPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode, getUpdateRecordApi }
......@@ -292,7 +292,6 @@ const batchPassApi = params => {
})
}
// 定损保存草稿
const saveCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
......@@ -360,7 +359,7 @@ const getMerchantApi = params => {
}
// 获取默认商户的下级商户
const getMerchantSubList=params=>{
const getMerchantSubList = params => {
params.method = 'scrm.api.equity.common.default.merchant.subList'
return http({
url: 'rop-scrm-equity/router',
......@@ -410,4 +409,16 @@ const addFollowPerson = params => {
sign: true
})
}
export default { renewalAudit, getMerchantApi, getMidMerchantApi, getBigMerchantApi, saveSign, saveClaimsCG, saveCG, cancelClaims, batchPassApi, checkClaimsOrderApi, checkOrderApi, getOrderOherInfo, uploadImgApi, getGHCountApi, getGHPhoneImageApi, getGHattachmentApi, getGHClaimsDetailApi, getGHhistoryListApi, checkGHClaimsListApi, exportGHClaimsListApi, getGHClaimFollowsListApi, addGHClaimFollowsListApi, getGHClaimsListApi, getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo ,getFollowPersonList,delFollowPerson,addFollowPerson,getMerchantSubList}
//删除案件
const delCaseApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.delete'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { renewalAudit, getMerchantApi, getMidMerchantApi, getBigMerchantApi, saveSign, saveClaimsCG, saveCG, cancelClaims, batchPassApi, checkClaimsOrderApi, checkOrderApi, getOrderOherInfo, uploadImgApi, getGHCountApi, getGHPhoneImageApi, getGHattachmentApi, getGHClaimsDetailApi, getGHhistoryListApi, checkGHClaimsListApi, exportGHClaimsListApi, getGHClaimFollowsListApi, addGHClaimFollowsListApi, getGHClaimsListApi, getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo, getFollowPersonList, delFollowPerson, addFollowPerson, getMerchantSubList, delCaseApi }
import { http } from '@/main'
const CUR_BASE_URL = 'rop-scrm-equity/router'
const getBaseContractListApi = params => {
params.method = `scrm.api.equity.service.contract.base.template.list.page`
return http({
url: CUR_BASE_URL,
method: 'POST',
data: params,
sign: true
})
}
//获取产品合同更换模板列表
const getContractListApi = params => {
params.method = `scrm.api.equity.service.contract.template.list`
return http({
......@@ -51,6 +61,17 @@ const copyTemplateApi = params => {
})
}
//更换产品合同模板
const copyBaseTemplateApi = params => {
params.method = `scrm.api.equity.service.contract.base.template.replace`
return http({
url: CUR_BASE_URL,
method: 'POST',
data: params,
sign: true
})
}
//批量变更合同模板
const babchCopyTemplateApi = params => {
params.method = `scrm.api.equity.service.contract.template.batch.copyTemplate`
......@@ -106,10 +127,12 @@ const exportProdContractApi = params => {
export default {
getContractListApi,
getBaseContractListApi,
saveContractTemplateApi,
getContractDetailApi,
printContractApi,
copyTemplateApi,
copyBaseTemplateApi,
babchCopyTemplateApi,
babchInitTemplateApi,
exportContractApi,
......
......@@ -128,6 +128,9 @@ export default Vue.extend({
<style src="@wangeditor/editor/dist/css/style.css"></style>
<style scoped lang="scss">
.editor-ctnr {
& > div {
width: 100%;
}
width: 100%;
height: 100%;
display: flex;
......@@ -152,9 +155,16 @@ export default Vue.extend({
line-height: 20px;
}
/deep/ .w-e-text-container {
padding: 10px 5px;
p {
margin: 0;
}
.w-e-text-placeholder {
top: 5px;
left: 14px;
height: 32px;
line-height: 32px;
}
}
}
.extend-bar {
......
......@@ -37,6 +37,7 @@ const errorTipObj = {
contractIntroduce: '合同介绍',
relevantDefinition: '相关定义',
useConditions: '使用条件',
baseContext: '使用条件',
serviceScope: '服务范围',
exclusionLiability: '除外责任',
serviceData: '服务所需资料',
......@@ -157,16 +158,41 @@ export default {
this.$apis.contractManager.getContractDetailApi({ id: this.routerInfo.id }).then(res => {
if (res && res.templateConfig) {
this.placeholderList = res.placeholderList
this.templateType = res.templateConfig.templateType
if (res.templateConfig.templateType == 1) {
this.contentList = [
{
title: 'Logo区域',
label: 'Logo图',
key: 'logoUrl',
type: 'img'
},
{
title: '合同介绍区域',
label: '合同介绍:',
key: 'contractIntroduce',
type: 'richText'
},
{
title: '使用条件区域',
label: '使用条件:',
key: 'useConditions',
type: 'richText'
}
]
}
for (const key in this.contentObj) {
if (key != 'useConditions') {
this.contentObj[key] = res.templateConfig[key]
} else {
// 如果是自定义模板类型,使用条件的值取的是baseContext,自动化取useConditions,传参也是
let useConditions = res.templateConfig.templateType == 1 ? res.templateConfig.baseContext : res.templateConfig.useConditions
for (var i = 0; i < res.placeholderList.length; i++) {
var placeholder = res.placeholderList[i]
let targetStr = `<span data-w-e-type="text" data-key="${placeholder.key}" data-name="${placeholder.name}">${placeholder.name}</span>`
res.templateConfig.useConditions = res.templateConfig.useConditions.replace(new RegExp(placeholder.key, 'g'), targetStr)
useConditions = useConditions.replace(new RegExp(placeholder.key, 'g'), targetStr)
}
this.contentObj.useConditions = res.templateConfig.useConditions
this.contentObj.useConditions = useConditions
}
}
this.pdfObj = {
......@@ -183,6 +209,15 @@ export default {
let params = this.$common.utils.deepClone(this.contentObj)
let errorTip = ''
params.useConditions = params.useConditions?.replace(/<span.*?data-w-e-type.*?data-key="(.*?)".*?<\/span>/g, '$1')
if (this.templateType == 1) {
params = {
id: params.id,
baseContext: params.useConditions,
contractTitle: params.contractTitle,
contractIntroduce: params.contractIntroduce,
logoUrl: params.logoUrl
}
}
for (const key in params) {
if (key != 'id' && !params[key]) {
if (key == 'electronicSealUrl' || key == 'logoUrl') {
......
......@@ -98,7 +98,7 @@ export default {
{
type: 'GLButton',
name: row => {
return '更换模板'
return '更换合同'
},
attrs: {
type: 'text',
......
......@@ -18,6 +18,8 @@
<span slot="auth-button" slot-scope="row" :data="scope.scope">
<el-button type="text" v-if="scope.scope.packageType == 1" @click="handlePdf(row.scope)">打印</el-button>
<el-button type="text" v-if="scope.scope.packageType == 1" @click="editContract(row.scope)">编辑</el-button>
<el-button type="text" v-if="scope.scope.packageType == 1" @click="changeTmpl(row.scope)">更换模板</el-button>
<el-button type="text" v-if="scope.scope.packageType == 1" @click="initTmpl(row.scope)">初始化模板</el-button>
</span>
</GLTable>
</div>
......@@ -55,6 +57,14 @@
</div>
</div>
</el-drawer>
<changeContractDialog v-if="changeContractObj.visible" @closeDialog="closeTmplDialog" :changeContractObj="changeContractObj"></changeContractDialog>
<GLDialog :visible.sync="tipObj.visible" :close-on-click-modal="false" mode="small" title="提示" @onOk="toInitTmpl" @onCancel="closeTipDialog" :before-close="closeTipDialog">
<div class="tip-body">
<i class="el-icon-warning icon"></i>
<p class="title">是否确认初始化?</p>
<p class="content">选中的商品合同模板将初始化,读取后台的最新配置</p>
</div>
</GLDialog>
</div>
</template>
......@@ -127,10 +137,12 @@ const PROD_ENUM = {
import * as dayjs from 'dayjs'
import utils from '../../util/util'
import pdfDialog from '@/views/beforeSale/pdfDialog'
import changeContractDialog from './components/changeContractDialog'
export default {
name: 'prodIndex',
components: {
pdfDialog
pdfDialog,
changeContractDialog
},
data() {
return {
......@@ -287,7 +299,18 @@ export default {
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
changeContractObj: {
visible: false,
isBase: true,
skuId: '',
skuPackageCode: '',
baseTemplateId: ''
},
tipObj: {
visible: false,
ids: []
}
}
},
......@@ -309,6 +332,56 @@ export default {
this.detailData.packageTypeName = row.packageType == 1 ? '权益类' : '延保类'
this.drawer = true
},
// 更换模板
changeTmpl({ skuPackageCode, skuId }) {
this.changeContractObj = {
visible: true,
isBase: true, // true产品模板
skuId,
skuPackageCode,
baseTemplateId: ''
}
},
closeTmplDialog() {
this.changeContractObj.visible = false
this.handleSearch()
},
initTmpl(row) {
this.tipObj = {
visible: true,
ids: [row.contractId]
}
},
toInitTmpl() {
const params = {
templateIds: this.tipObj.ids,
baseFlag: 1
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.contractManager
.babchInitTemplateApi(params)
.then(res => {
if (res) {
this.$message.success('初始化模板成功')
this.closeTipDialog()
}
})
.finally(end => {
loading.close()
})
},
closeTipDialog() {
this.tipObj = {
visible: false,
ids: []
}
this.handleSearch()
},
getParams() {
let params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm?.createdDate?.length) {
......
......@@ -50,6 +50,17 @@
<el-button :size="size" type="primary" @click="handleSecondConfirm">确 定</el-button>
</span>
</el-dialog>
<GLDialog class="dialog_wrap" :hasFooter="false" title="修改记录" mode="mid" :visible.sync="updateDetailVisible" :before-close="handleClose" @onOk="onOk">
<div style="text-align: center;" v-if="!updateList.length">暂无修改记录</div>
<template v-else>
<div class="step-item" v-for="(item, index) in updateList" :key="index">
<span class="circle"></span>
<span class="line"></span>
<p class="value" v-for="ele in item.detailList" :key="ele.id">{{ ele.fieldName }}: {{ ele.beforeValue }} → {{ ele.afterValue }}</p>
<p class="info">{{ item.createdBy }} {{ item.createdDate }}</p>
</div>
</template>
</GLDialog>
</div>
</template>
......@@ -63,6 +74,7 @@ export default {
name: 'equityList',
data() {
return {
updateList: [],
size: 'small',
newKey: new Date(),
buttonList: [
......@@ -159,8 +171,24 @@ export default {
listeners: {
click: row => this.handleEdit(4, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '修改记录'
},
condition: row => {
return [2].includes(row.scope.orderStatus)
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.viewUpdateDetail(row.scope)
}
}
],
updateDetailVisible: false,
noCancel: true,
isBlock: true,
isTipVisible: false,
......@@ -718,6 +746,14 @@ export default {
},
methods: {
viewUpdateDetail(row) {
this.$apis.beforeSale.getUpdateRecordApi({ equityId: row.id }).then(res => {
if (res) {
this.updateList = res
this.updateDetailVisible = true
}
})
},
getCountNoData() {
this.$apis.beforeSale.getCountNoDataApi({}).then(res => {
this.countNoData = res
......@@ -1167,4 +1203,51 @@ export default {
.tips-dialog .el-dialog__body {
padding: 10px 15px 20px !important;
}
.step-item {
position: relative;
padding-left: 16px;
padding-bottom: 24px;
&:first-child {
.circle {
background: #5850ff;
}
}
&:last-child {
.line {
display: none;
}
}
.circle {
top: 2px;
position: absolute;
display: inline-block;
left: -3px;
width: 7px;
height: 7px;
z-index: 2;
border-radius: 50%;
background: #999999;
}
.line {
top: 2px;
position: absolute;
left: 0;
width: 1px;
height: calc(100% + 4px);
background: #e5e5e5;
}
.value {
font-weight: 400;
font-size: 14px;
color: #333333;
margin-bottom: 4px;
}
.info {
font-weight: 400;
font-size: 12px;
color: #999999;
line-height: 20px;
}
}
</style>
......@@ -62,6 +62,14 @@
<explanation :isDisabled="isDisabled" :supplementList="repotData.supplementList1" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div>
<!-- 待定损和待核赔的时候才显示案件通融说明 -->
<Card v-if="repotData.exceptionImgUrl && (repotData.status == 6 || repotData.status == 12)" title="案件通融说明">
<div class="tr-wrap">
<label class="label" for="">通融说明:</label>
<el-image class="img" :preview-src-list="[repotData.exceptionImgUrl]" :src="repotData.exceptionImgUrl"></el-image>
</div>
</Card>
<!-- 其他信息 -->
<div>
<other-info :otherInfoData="otherInfoData"></other-info>
......@@ -390,4 +398,21 @@ export default {
}
}
}
.tr-wrap {
.label {
width: 154px;
display: inline-block;
vertical-align: top;
text-align: right;
height: 20px;
font-size: 14px;
color: #333333;
line-height: 20px;
margin-top: 6px;
}
.img {
width: 104px;
height: 104px;
}
}
</style>
......@@ -3,7 +3,7 @@
<template>
<div class="tab_wrap">
<el-tabs v-model="activeNameTabs">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7, 26, 27, 28].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7, 26, 27, 28].includes(repotData.status) || (repotData.status == 31 && repotData.preStatus != 6)" class="bg" label="核赔信息" name="second">
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad20">
......
......@@ -99,6 +99,14 @@
</div>
</div>
</GLDialog>
<!-- 上传签名授权书 -->
<GLDialog title="提示" mode="small" okText="确认" cancelText="取消" :visible.sync="delReasonObj.showDelVisible" @onOk="confirmDel" @onCancel="closeDelDialog">
<div class="del-reason-body">
<div class="label">删除原因:</div>
<el-input type="text" v-model="delReasonObj.delReason" :maxlength="20" :show-word-limit="true" size="small"></el-input>
</div>
</GLDialog>
<!-- 跟进人配置 -->
<follow-pop ref="followRef" @handleClose="handleClose" :isFollowSync="isFollowSync" v-if="isFollowSync"></follow-pop>
</div>
......@@ -184,6 +192,18 @@ const statusList = [
confId: 28,
confName: '运营经理审核不通过'
},
{
confId: 29,
confName: '已失效'
},
{
confId: 30,
confName: '已删除'
},
{
confId: 31,
confName: '已结束案件'
}
]
const describeList = [
{
......@@ -205,10 +225,11 @@ const followList = [
confName: '全部'
}
]
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74', '', '', '', '', '', '', '', '', '', '', '', '#FDB757', '#2CCA74', '#EB4E4E']
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过', '已失效', '已删除', '已结束案件']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74', '', '', '', '', '', '', '', '', '', '', '', '#FDB757', '#2CCA74', '#EB4E4E', '#999', '#999', '#999']
// 操作对应状态
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4, 26, 27, 28] // 查看
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4, 26, 27, 28, 29, 30, 31] // 查看
const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付
const CHECK = [6] // 定损审核
const CHECK_HP = [12] // 核赔审核
......@@ -216,6 +237,7 @@ const RE_SUMBIT = [2] //重新提交
const RETURN_IT = [7, 13, 28] // 撤销
const UPLOAD_INFO = [11] // 上传资料
const TO_HANDLE = [0] // 去处理
const TO_DEL = [5]
const Operations_Mananger = [26] // 运营经理审核
export default {
name: 'index',
......@@ -224,6 +246,11 @@ export default {
isFollowSync: false,
signImage: '',
showUpload: false,
delReasonObj: {
showDelVisible: false,
delReason: '案件重复',
id: ''
},
tableStatus,
orderCount: {},
buttonList: [
......@@ -382,6 +409,22 @@ export default {
listeners: {
click: row => this.handleEdit(4, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '删除'
},
condition: row => {
return TO_DEL.includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '删除'
},
listeners: {
click: row => this.handleDel(row.scope)
}
}
],
getListApi: this.$apis.claims.getGHClaimsListApi,
......@@ -393,7 +436,7 @@ export default {
status: '',
commitDate: '',
shopDate: '',
merchantUpdatedDate:'',
merchantUpdatedDate: '',
cityMerchantId: '',
provinceMerchantId: '',
merchantId: ''
......@@ -550,7 +593,7 @@ export default {
prop: 'merchantUpdatedDate',
width: 180,
formatter: cellValue => {
return cellValue.merchantUpdatedDate ? cellValue.merchantUpdatedDate: '-'
return cellValue.merchantUpdatedDate ? cellValue.merchantUpdatedDate : '-'
}
},
{
......@@ -724,10 +767,10 @@ export default {
this.getFollowPersonList()
},
mounted() {},
beforeDestroy(){
const {pageNum, pageSize} = this.$refs?.equityRef?.page || {}
const ghPageInfo = {...this.searchForm,pageNum, pageSize}
window.sessionStorage.setItem('ghPageInfo',JSON.stringify(ghPageInfo))
beforeDestroy() {
const { pageNum, pageSize } = this.$refs?.equityRef?.page || {}
const ghPageInfo = { ...this.searchForm, pageNum, pageSize }
window.sessionStorage.setItem('ghPageInfo', JSON.stringify(ghPageInfo))
},
methods: {
getFollowPersonList() {
......@@ -746,9 +789,9 @@ export default {
},
batchAudit() {
const data = this.$refs.equityRef?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要审批的记录')
const _target = data.find(item => item.status!=12&item.status!=26) //批量操作只操作 待审核 和 待运营经理审核
if(_target) return this.$message.error('请选择待审核的记录')
if (!data?.length) return this.$message.error('请选择需要审批的记录')
const _target = data.find(item => (item.status != 12) & (item.status != 26)) //批量操作只操作 待审核 和 待运营经理审核
if (_target) return this.$message.error('请选择待审核的记录')
const parmas = {
idList: data.map(item => item.id)
}
......@@ -758,14 +801,17 @@ export default {
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.claims.batchPassApi(parmas).then(res => {
if(res) {
this.$message.success('操作成功')
this.handleOkFn()
}
}).finally(end => {
loading.close()
})
this.$apis.claims
.batchPassApi(parmas)
.then(res => {
if (res) {
this.$message.success('操作成功')
this.handleOkFn()
}
})
.finally(end => {
loading.close()
})
},
handleClose() {
this.isFollowSync = false
......@@ -861,6 +907,28 @@ export default {
this.orderCount = res
})
},
handleDel(row) {
this.delReasonObj.showDelVisible = true
this.delReasonObj.id = row.id
},
confirmDel() {
if (!this.delReasonObj.delReason) return this.$message.error('请输入删除原因')
const { delReason: statusDesc, id } = this.delReasonObj
this.$apis.claims.delCaseApi({ statusDesc, id }).then(res => {
if (res) {
this.closeDelDialog()
this.$message.success('删除成功')
this.getTableData()
}
})
},
closeDelDialog() {
this.delReasonObj = {
showDelVisible: false,
delReason: '案件重复',
id: ''
}
},
// 1.新增 2.查看 6.重新提交 4.去处理 5.定损审核 7.核赔审核 8.运营经理审核
handleEdit(editNo, row) {
let urlParam = {}
......@@ -897,7 +965,7 @@ export default {
status: '',
commitDate: '',
shopDate: '',
merchantUpdatedDate:'',
merchantUpdatedDate: '',
cityMerchantId: '',
provinceMerchantId: '',
merchantId: ''
......@@ -907,17 +975,17 @@ export default {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchParams = { ...this.getParams() }
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('ghPageInfo') || '{}')
if(pageNum && pageSize){
const { pageNum, pageSize } = JSON.parse(window.sessionStorage.getItem('ghPageInfo') || '{}')
if (pageNum && pageSize) {
this.searchParams.pageNum = pageNum
this.searchParams.pageSize = pageSize
}
resolve()
})
},
setTableFinishFun(){
const {pageNum, pageSize} = JSON.parse(window.sessionStorage.getItem('ghPageInfo') || '{}')
if(pageNum && pageSize){
setTableFinishFun() {
const { pageNum, pageSize } = JSON.parse(window.sessionStorage.getItem('ghPageInfo') || '{}')
if (pageNum && pageSize) {
this.$refs.equityRef.page.pageNum = pageNum
this.$refs.equityRef.page.pageSize = pageSize
this.$forceUpdate()
......@@ -927,10 +995,10 @@ export default {
getParams() {
const sessionInfo = window.sessionStorage.getItem('ghPageInfo')
const searchForm = JSON.parse(sessionInfo || '{}')
if(sessionInfo) {
if (sessionInfo) {
delete searchForm.pageNum
delete searchForm.pageSize
this.searchForm = {...this.searchForm, ...searchForm}
this.searchForm = { ...this.searchForm, ...searchForm }
}
let params = JSON.parse(JSON.stringify(this.searchForm))
if (Array.isArray(params.commitDate) && params.commitDate.length > 0) {
......@@ -1171,4 +1239,16 @@ export default {
// }
// }
// }
.del-reason-body {
display: flex;
align-items: center;
margin-top: 12px;
.label {
width: 154px;
text-align: right;
}
/deep/ .el-input {
width: 350px;
}
}
</style>
......@@ -19,9 +19,11 @@
</div>
</template>
<!-- 底部按钮 -->
<div v-if="pageType != 2 && activeName != 'second' && orderMsg.status != 26" class="btn-box">
<el-button plain class="btn-three" @click="toBackList">取消</el-button>
<el-button plain class="btn-three" @click="toSaveOrder">保存</el-button>
<el-button type="danger" class="danger-btn" plain @click="endCaseFn()">结束案件</el-button>
<el-button plain @click="toNoPassOrder">不通过</el-button>
<el-button type="primary" @click="toPassOrder">通过</el-button>
</div>
......@@ -213,7 +215,9 @@ export default {
claimsAttachmentConfigs2: res.claimsAttachmentConfigs2,
updatedBy: res.updatedBy,
expressName:res.expressName,
expressNo:res.expressNo
expressNo:res.expressNo,
exceptionImgUrl: res.exceptionImgUrl,
preStatus: res.preStatus
}
// 图片list
......@@ -520,9 +524,21 @@ export default {
}
})
},
comfirmPass() {
endCaseFn(){
this.$confirm('确定结束此案件吗', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.comfirmPass(1)
}
}
})
},
comfirmPass(isEndCase) {
let para = this.handleParams()
para.auditStatus = 1
para.auditStatus = isEndCase ? 2 : 1 // 2结束案件,1 通过
let loading = this.createLoading()
this.$apis.claims.checkOrderApi(para).then(res => {
loading.close()
......@@ -917,4 +933,20 @@ export default {
align-items: center;
margin: 16px 0 20px 0;
}
.danger-btn {
border-color: #f56c6c;
color: #f56c6c;
}
.danger-btn:hover {
background: #f56c6c;
border-color: #f56c6c;
color: #fff;
}
.danger-btn:focus {
background: #dd6161;
border-color: #dd6161;
color: #fff;
outline: 0;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!