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 => {
}
// 上传图片
const uploadImageApi = params =>{
const uploadImageApi = params => {
params.method = 'scrm.api.carlife.common.uploadImg'
return http({
url:'/rop-scrm-carlife/router',
url: '/rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
returnAll: true,
noSignAttr: ['file'],
noSignAttr: ['file']
})
}
//主管审核
const auditWriteOff = params =>{
const auditWriteOff = params => {
params.method = 'scrm.api.equity.service.claims.director.audit'
return http({
url: 'rop-scrm-equity/router',
......@@ -522,9 +522,8 @@ const auditWriteOff = params =>{
})
}
//主管审核
const getCurUserMenu = params =>{
const getCurUserMenu = params => {
params.method = 'scrm.api.equity.service.claims.user.menu.get'
return http({
url: 'rop-scrm-equity/router',
......@@ -535,7 +534,7 @@ const getCurUserMenu = params =>{
})
}
const hasUnsigned = params =>{
const hasUnsigned = params => {
params.method = 'scrm.api.equity.service.claims.merchant.hasUnsigned'
return http({
url: 'rop-scrm-equity/router',
......@@ -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 {
getUserInfoApi,
getCountNoDataApi,
......@@ -616,5 +635,7 @@ export default {
getCurUserMenu,
hasUnsigned,
getCityList,
getAccountInfo
getAccountInfo,
applyPassApi,
getUpdateRecordApi
}
<!-- 弹窗 -->
<template>
<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">
{{ title }}
<span class="dialog-sub-title">
......@@ -9,7 +9,7 @@
</span>
</span>
<slot></slot>
<div slot="footer">
<div v-if="hasFooter" slot="footer">
<slot name="btn-start"></slot>
<el-button type="primary" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
......@@ -30,6 +30,14 @@ export default {
type: String,
default: ''
},
clickMclose: {
type: Boolean,
default: false
},
hasFooter: {
type: Boolean,
default: true
},
isVisible: {
type: Boolean,
default: false
......@@ -66,9 +74,14 @@ export default {
}
}
</script>
<style scoped>
<style scoped lang="scss">
.dialog-sub-title {
font-size: 12px;
color: #666666;
}
.dialog_ctnr {
/deep/ .el-dialog__header {
border-bottom: 1px solid #e5e5e5;
}
}
</style>
......@@ -17,19 +17,20 @@ import render from './render'
import { routes } from '@/router'
export async function start() {
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 = {}
window.location.href.split('?').length > 1 ?
window.location.href
.split('?')[1]
.split('&')
.forEach(item => {
urlParams[item.split('=')[0]] = item.split('=')[1]
}) :
''
window.location.href.split('?').length > 1
? window.location.href
.split('?')[1]
.split('&')
.forEach(item => {
urlParams[item.split('=')[0]] = item.split('=')[1]
})
: ''
var token = Object.keys(urlParams).includes('sessionId') ? urlParams.sessionId : '1112223333444'
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_brand = new Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: token } })
Vue.prototype.$common = {
......@@ -38,4 +39,4 @@ export async function start() {
Vue.use(GLTable)
Vue.use(element)
render('/', routes)
}
\ No newline at end of file
}
......@@ -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="[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="[2].includes(scope.scope.completionStatus) && userInfo.admin" type="text" @click="viewUpdateDetail(scope.scope)">修改记录</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -78,6 +79,17 @@
<el-button :size="size" type="primary" @click="resetErrorOperate">确 定</el-button>
</span>
</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>
</div>
</template>
......@@ -91,6 +103,8 @@ export default {
name: 'equityList',
data() {
return {
updateDetailVisible: false,
updateList: [],
operationType: '',
errorOperateList: [
{
......@@ -441,6 +455,17 @@ export default {
},
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) {
this.curContractNo = contractNo
this.visiErrorDialog = true
......@@ -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>
......@@ -3,7 +3,7 @@
<div class="container">
<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">
<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">
<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>
......@@ -14,14 +14,20 @@
<i v-if="imgItem.tip" class="el-icon-question question"></i>
</el-tooltip>
</span>
<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=""/>
<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)" />
<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="" />
<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-else class="need-img" fit="cover" :src="imgItem.imgObj.attachmentFile" alt="" />
<div class="mask">
<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 class="error-tip" v-if="imgItem.imgObj.auditStatus === 0">
<el-popover placement="top-start" width="200" trigger="hover" :content="imgItem.imgObj.reasonForFailure || '--'">
......@@ -36,7 +42,7 @@
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="" />
</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> -->
</div>
</template>
......@@ -80,7 +86,7 @@ export default {
type: Boolean,
default: false
}
},
computed:{
hasLossType(){
......@@ -174,14 +180,14 @@ export default {
}).finally(()=>{
this.$refs.input.value = ''
})
}
}
}
}
}
</script>
<style lang="scss" scoped>
.disabled{
cursor: not-allowed!important;
.disabled {
cursor: not-allowed !important;
}
.container {
display: flex;
......@@ -288,12 +294,12 @@ export default {
}
}
}
.example{
.example {
position: absolute;
display: inline-block;
width: 36px;
height: 18px;
background-color: #E5E5E5;
background-color: #e5e5e5;
font-size: 12px;
text-align: center;
right: 8px;
......@@ -302,9 +308,8 @@ export default {
cursor: pointer;
border-radius: 2px;
z-index: 4;
}
.example-img{
.example-img {
z-index: 3;
}
.add-btn {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!