Commit ecd7b8c7 by 前端

Merge branch 'v3.24.0' into 'master'

上线合并

See merge request !15
2 parents 43910dbf 17040ce5
...@@ -498,20 +498,20 @@ const saveClaims = params => { ...@@ -498,20 +498,20 @@ const saveClaims = params => {
} }
// 上传图片 // 上传图片
const uploadImageApi = params =>{ const uploadImageApi = params => {
params.method = 'scrm.api.carlife.common.uploadImg' params.method = 'scrm.api.carlife.common.uploadImg'
return http({ return http({
url:'/rop-scrm-carlife/router', url: '/rop-scrm-carlife/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll: true, returnAll: true,
noSignAttr: ['file'], noSignAttr: ['file']
}) })
} }
//主管审核 //主管审核
const auditWriteOff = params =>{ const auditWriteOff = params => {
params.method = 'scrm.api.equity.service.claims.director.audit' params.method = 'scrm.api.equity.service.claims.director.audit'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
...@@ -522,9 +522,8 @@ const auditWriteOff = params =>{ ...@@ -522,9 +522,8 @@ const auditWriteOff = params =>{
}) })
} }
//主管审核 //主管审核
const getCurUserMenu = params =>{ const getCurUserMenu = params => {
params.method = 'scrm.api.equity.service.claims.user.menu.get' params.method = 'scrm.api.equity.service.claims.user.menu.get'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
...@@ -535,7 +534,7 @@ const getCurUserMenu = params =>{ ...@@ -535,7 +534,7 @@ const getCurUserMenu = params =>{
}) })
} }
const hasUnsigned = params =>{ const hasUnsigned = params => {
params.method = 'scrm.api.equity.service.claims.merchant.hasUnsigned' params.method = 'scrm.api.equity.service.claims.merchant.hasUnsigned'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
...@@ -566,6 +565,26 @@ const getAccountInfo = params => { ...@@ -566,6 +565,26 @@ const getAccountInfo = params => {
}) })
} }
const applyPassApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.makeException'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
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 { export default {
getUserInfoApi, getUserInfoApi,
getCountNoDataApi, getCountNoDataApi,
...@@ -616,5 +635,7 @@ export default { ...@@ -616,5 +635,7 @@ export default {
getCurUserMenu, getCurUserMenu,
hasUnsigned, hasUnsigned,
getCityList, getCityList,
getAccountInfo getAccountInfo,
applyPassApi,
getUpdateRecordApi
} }
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width"> <el-dialog class="dialog_ctnr" :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="clickMclose" :width="width">
<span slot="title"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</span> </span>
</span> </span>
<slot></slot> <slot></slot>
<div slot="footer"> <div v-if="hasFooter" slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
<el-button type="primary" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button> <el-button type="primary" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button> <el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
...@@ -30,6 +30,14 @@ export default { ...@@ -30,6 +30,14 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
clickMclose: {
type: Boolean,
default: false
},
hasFooter: {
type: Boolean,
default: true
},
isVisible: { isVisible: {
type: Boolean, type: Boolean,
default: false default: false
...@@ -66,9 +74,14 @@ export default { ...@@ -66,9 +74,14 @@ export default {
} }
} }
</script> </script>
<style scoped> <style scoped lang="scss">
.dialog-sub-title { .dialog-sub-title {
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
} }
.dialog_ctnr {
/deep/ .el-dialog__header {
border-bottom: 1px solid #e5e5e5;
}
}
</style> </style>
...@@ -17,19 +17,20 @@ import render from './render' ...@@ -17,19 +17,20 @@ import render from './render'
import { routes } from '@/router' import { routes } from '@/router'
export async function start() { export async function start() {
if (window.__POWERED_BY_QIANKUN__) return if (window.__POWERED_BY_QIANKUN__) return
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret, tempUrl } = await fetchConfig()
Vue.prototype.$tempUrl = tempUrl
var urlParams = {} var urlParams = {}
window.location.href.split('?').length > 1 ? window.location.href.split('?').length > 1
window.location.href ? window.location.href
.split('?')[1] .split('?')[1]
.split('&') .split('&')
.forEach(item => { .forEach(item => {
urlParams[item.split('=')[0]] = item.split('=')[1] urlParams[item.split('=')[0]] = item.split('=')[1]
}) : })
'' : ''
var token = Object.keys(urlParams).includes('sessionId') ? urlParams.sessionId : '1112223333444' var token = Object.keys(urlParams).includes('sessionId') ? urlParams.sessionId : '1112223333444'
let dirctorAudit = Object.keys(urlParams).includes('dirctorAudit') ? urlParams.dirctorAudit : 0 let dirctorAudit = Object.keys(urlParams).includes('dirctorAudit') ? urlParams.dirctorAudit : 0
Vue.prototype.$commonData = {dirctorAudit, token, baseUrl:request?.baseURL} Vue.prototype.$commonData = { dirctorAudit, token, baseUrl: request?.baseURL }
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: token } }) Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: token } })
Vue.prototype.$http_brand = new Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: token } }) Vue.prototype.$http_brand = new Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: token } })
Vue.prototype.$common = { Vue.prototype.$common = {
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<el-button v-if="[2, 8, 10, 11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button> <el-button v-if="[2, 8, 10, 11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<el-button v-if="[1, 3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button> <el-button v-if="[1, 3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button>
<el-button v-if="userInfo.admin" type="text" @click="openErrorDialog(scope.scope.contractNo)">失败</el-button> <el-button v-if="userInfo.admin" type="text" @click="openErrorDialog(scope.scope.contractNo)">失败</el-button>
<el-button v-if="[2].includes(scope.scope.completionStatus) && userInfo.admin" type="text" @click="viewUpdateDetail(scope.scope)">修改记录</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -78,6 +79,17 @@ ...@@ -78,6 +79,17 @@
<el-button :size="size" type="primary" @click="resetErrorOperate">确 定</el-button> <el-button :size="size" type="primary" @click="resetErrorOperate">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<glsx-dialog class="dialog_wrap" :clickMclose="true" :hasFooter="false" title="修改记录" mode="mid" @closeDialog="handleUpdateClose" :isVisible.sync="updateDetailVisible">
<div style="text-align: center;" v-if="!updateList.length">暂无修改记录</div>
<div style="max-height: 500px;overflow-y: auto;" 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>
</div>
</glsx-dialog>
</template> </template>
</div> </div>
</template> </template>
...@@ -91,6 +103,8 @@ export default { ...@@ -91,6 +103,8 @@ export default {
name: 'equityList', name: 'equityList',
data() { data() {
return { return {
updateDetailVisible: false,
updateList: [],
operationType: '', operationType: '',
errorOperateList: [ errorOperateList: [
{ {
...@@ -441,6 +455,17 @@ export default { ...@@ -441,6 +455,17 @@ export default {
}, },
methods: { methods: {
handleUpdateClose() {
this.updateDetailVisible = false
},
viewUpdateDetail(row) {
this.$apis.beforeSale.getUpdateRecordApi({ equityId: row.id }).then(res => {
if (res) {
this.updateList = res
this.updateDetailVisible = true
}
})
},
openErrorDialog(contractNo) { openErrorDialog(contractNo) {
this.curContractNo = contractNo this.curContractNo = contractNo
this.visiErrorDialog = true this.visiErrorDialog = true
...@@ -1425,4 +1450,54 @@ export default { ...@@ -1425,4 +1450,54 @@ export default {
} }
} }
} }
.step-item {
p {
margin: 0;
}
position: relative;
padding-left: 16px;
padding-bottom: 24px;
&:first-child {
.circle {
background: #20af89;
}
}
&:last-child {
.line {
display: none;
}
}
.circle {
top: 2px;
position: absolute;
display: inline-block;
left: 0;
width: 7px;
height: 7px;
z-index: 2;
border-radius: 50%;
background: #999999;
}
.line {
top: 2px;
position: absolute;
left: 3px;
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> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="container"> <div class="container">
<input type="file" class="file" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" /> <input type="file" class="file" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" />
<template v-for="(imgItem, imgKey) in list"> <template v-for="(imgItem, imgKey) in list">
<div class="wrap" :key="imgKey" v-if="(imgItem.key==curKey && curKey!='detail') || (curKey=='detail' && imgItem.serviceItemCode == curCode && hasLossType(imgItem))"> <div class="wrap" :key="imgKey" v-if="(imgItem.key == curKey && curKey != 'detail') || (curKey == 'detail' && imgItem.serviceItemCode == curCode && hasLossType(imgItem))">
<span class="title"> <span class="title">
<i v-if="imgItem.imgObj.auditStatus === 1" class="el-icon-success success"></i> <i v-if="imgItem.imgObj.auditStatus === 1" class="el-icon-success success"></i>
<i v-if="imgItem.imgObj.auditStatus === 0" class="el-icon-error error"></i> <i v-if="imgItem.imgObj.auditStatus === 0" class="el-icon-error error"></i>
...@@ -14,14 +14,20 @@ ...@@ -14,14 +14,20 @@
<i v-if="imgItem.tip" class="el-icon-question question"></i> <i v-if="imgItem.tip" class="el-icon-question question"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<div :class="['img-box', { 'has-img': imgItem.imgObj.attachmentFile, 'error-img': imgItem.status == 2, 'success-img': imgItem.status == 1}]"> <div :class="['img-box', { 'has-img': imgItem.imgObj.attachmentFile, 'error-img': imgItem.status == 2, 'success-img': imgItem.status == 1 }]">
<img v-if="!imgItem.imgObj.attachmentFile && imgItem.exampleUrl" class="example-img" fit="cover" :src="imgItem.exampleUrl" alt=""/> <img v-if="!imgItem.imgObj.attachmentFile && imgItem.exampleUrl" class="example-img" fit="cover" :src="imgItem.exampleUrl" alt="" />
<span class="example" v-if="!imgItem.imgObj.attachmentFile && imgItem.exampleUrl" @click.stop="viewExample(imgItem.exampleUrl)">示例</span> <span class="example" v-if="!imgItem.imgObj.attachmentFile && imgItem.exampleUrl" @click.stop="viewExample(imgItem.exampleUrl)">示例</span>
<img v-if="!imgItem.imgObj.attachmentFile" :class="['add-btn',{disabled:disabled}]" :src="cameraUrl" alt="" @click="clickImg(imgItem, imgKey)" /> <img v-if="!imgItem.imgObj.attachmentFile" :class="['add-btn', { disabled: disabled }]" :src="cameraUrl" alt="" @click="clickImg(imgItem, imgKey)" />
<img v-else class="need-img" fit="cover" :src="imgItem.imgObj.attachmentFile" alt="" /> <img v-else class="need-img" fit="cover" :src="imgItem.imgObj.attachmentFile" alt="" />
<div class="mask"> <div class="mask">
<i class="el-icon-view" @click="handlePreview(imgItem.imgObj.attachmentFile)"></i> <i class="el-icon-view" @click="handlePreview(imgItem.imgObj.attachmentFile)"></i>
<i v-if="!disabled && (curKey!='onSite' || (curKey=='onSite' && !isCustomerCommit))" class="el-icon-delete" @click="handleDel(imgItem,imgKey)"></i> <!-- 定损不通过&不是其他资料&不是不通过的,则隐藏 -->
<template v-if="!(curRouteInfo.status == 7 && imgItem.imgObj.auditStatus !== 0 && curKey != 'other')">
<!-- 如果是现场照片&客户提交的,则隐藏 -->
<template v-if="!(curKey == 'onSite' && isCustomerCommit)">
<i v-if="!disabled" class="el-icon-delete" @click="handleDel(imgItem, imgKey)"></i>
</template>
</template>
</div> </div>
<div class="error-tip" v-if="imgItem.imgObj.auditStatus === 0"> <div class="error-tip" v-if="imgItem.imgObj.auditStatus === 0">
<el-popover placement="top-start" width="200" trigger="hover" :content="imgItem.imgObj.reasonForFailure || '--'"> <el-popover placement="top-start" width="200" trigger="hover" :content="imgItem.imgObj.reasonForFailure || '--'">
...@@ -36,7 +42,7 @@ ...@@ -36,7 +42,7 @@
<el-dialog :visible.sync="dialogVisible"> <el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="" /> <img width="100%" :src="dialogImageUrl" alt="" />
</el-dialog> </el-dialog>
<image-viewer :z-index="10000" :initial-index="initIdx" v-if="showViewer" :on-close="closeViewer" :url-list="reviewList"/> <image-viewer :z-index="10000" :initial-index="initIdx" v-if="showViewer" :on-close="closeViewer" :url-list="reviewList" />
<!-- <pre-img ref="preImgRef"></pre-img> --> <!-- <pre-img ref="preImgRef"></pre-img> -->
</div> </div>
</template> </template>
...@@ -180,8 +186,8 @@ export default { ...@@ -180,8 +186,8 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.disabled{ .disabled {
cursor: not-allowed!important; cursor: not-allowed !important;
} }
.container { .container {
display: flex; display: flex;
...@@ -288,12 +294,12 @@ export default { ...@@ -288,12 +294,12 @@ export default {
} }
} }
} }
.example{ .example {
position: absolute; position: absolute;
display: inline-block; display: inline-block;
width: 36px; width: 36px;
height: 18px; height: 18px;
background-color: #E5E5E5; background-color: #e5e5e5;
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;
right: 8px; right: 8px;
...@@ -302,9 +308,8 @@ export default { ...@@ -302,9 +308,8 @@ export default {
cursor: pointer; cursor: pointer;
border-radius: 2px; border-radius: 2px;
z-index: 4; z-index: 4;
} }
.example-img{ .example-img {
z-index: 3; z-index: 3;
} }
.add-btn { .add-btn {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!