Commit fb97f15e by 前端

Merge branch 'v3.14.0' into 'master'

V3.14.0

See merge request !5
2 parents 0afe81fa 609e4a16
...@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) { ...@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
return new Http({ request: { timeout: timeout } }).get('https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config') return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services')
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
} }
......
...@@ -2,10 +2,16 @@ ...@@ -2,10 +2,16 @@
<div> <div>
<Card title="案件补充说明"> <Card title="案件补充说明">
<div class="explanation"> <div class="explanation">
<div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx"> <div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label> <div class="explanation-item">
<el-input :disabled="disabled" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" type="textarea" maxlength="200" :rows="3"></el-input> <label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<i class="el-icon-delete del" v-if="!disabled && supplementList.length > 1" @click="handleDel(idx)"></i> <el-input :disabled="disabled || item.operation==1" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" type="textarea" maxlength="200" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="(!disabled && supplementList.length > 1) && item.operation!=1" @click="handleDel(idx)"></i>
</div>
<div v-if="item.operation==1" class="operate-wrap">
<span>操作人:{{item.operationUser || '--'}}</span>
<span>操作时间:{{item.operationTime | formatTime(item.operationTime)}}</span>
</div>
</div> </div>
</div> </div>
<div class="add-explanation" v-if="!disabled" @click="addExplanation"> <div class="add-explanation" v-if="!disabled" @click="addExplanation">
...@@ -17,6 +23,7 @@ ...@@ -17,6 +23,7 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Card from './card.vue' import Card from './card.vue'
import util from '@/util/util'
export default { export default {
name: 'explanation', name: 'explanation',
data() { data() {
...@@ -26,6 +33,11 @@ export default { ...@@ -26,6 +33,11 @@ export default {
components: { components: {
Card Card
}, },
filters: {
formatTime(time) {
return time ? util.dateFormat(time, 'YYYY-MM-DD HH:mm:ss') : '--'
}
},
props: { props: {
supplementList:{ supplementList:{
type: Array, type: Array,
...@@ -53,13 +65,27 @@ export default { ...@@ -53,13 +65,27 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.explanation { .explanation {
.explanation-list { .explanation-list{
display: flex;
// align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
&:last-child { &:last-child {
margin-bottom: 10px; margin-bottom: 10px;
} }
}
.operate-wrap{
display: flex;
margin-left: 154px;
width: 580px;
justify-content: space-between;
font-weight: 400;
font-size: 12px;
height: 17px;
line-height: 17px;
margin-top: 4px;
color: #666666;
}
.explanation-item {
display: flex;
// align-items: center;
/deep/ .el-textarea { /deep/ .el-textarea {
width: 580px; width: 580px;
} }
......
...@@ -36,12 +36,14 @@ ...@@ -36,12 +36,14 @@
<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"/>
<!-- <pre-img ref="preImgRef"></pre-img> --> <!-- <pre-img ref="preImgRef"></pre-img> -->
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import cameraUrl from '@/assets/camera.png' import cameraUrl from '@/assets/camera.png'
import url from '../../image/code.png' import url from '../../image/code.png'
import imageViewer from 'element-ui/packages/image/src/image-viewer';
// import preImg from './preImg' // import preImg from './preImg'
// import glsxCombiForm from '@/components/glsx-combi-form' // import glsxCombiForm from '@/components/glsx-combi-form'
export default { export default {
...@@ -87,11 +89,18 @@ export default { ...@@ -87,11 +89,18 @@ export default {
// if(item.secondClassifyName.indexOf('钥匙:')!=0 || item.secondClassifyName.indexOf('车牌:')!=0) return true; // if(item.secondClassifyName.indexOf('钥匙:')!=0 || item.secondClassifyName.indexOf('车牌:')!=0) return true;
return item.serviceItemCode!='SC0006' || (item.serviceItemCode=='SC0006' && ((item.secondClassifyName.indexOf('钥匙:')===0 && this.curLossType?.includes('3')) || (item.secondClassifyName.indexOf('车牌:')===0 && this.curLossType?.includes('4')))) return item.serviceItemCode!='SC0006' || (item.serviceItemCode=='SC0006' && ((item.secondClassifyName.indexOf('钥匙:')===0 && this.curLossType?.includes('3')) || (item.secondClassifyName.indexOf('车牌:')===0 && this.curLossType?.includes('4'))))
} }
},
reviewList(){
return this.list?.map(item => {
if(this.curKey == item.key || (this.isWriteOff && item.serviceItemCode == this.curCode)) return item?.imgObj?.attachmentFile
})?.filter(item => !!item)
} }
}, },
data() { data() {
return { return {
url, url,
initIdx: 0,
showViewer: false,
cameraUrl, cameraUrl,
dialogImageUrl: '', dialogImageUrl: '',
dialogVisible: false, dialogVisible: false,
...@@ -100,16 +109,19 @@ export default { ...@@ -100,16 +109,19 @@ export default {
} }
}, },
components: { components: {
imageViewer
// glsxCombiForm // glsxCombiForm
// preImg // preImg
}, },
mounted() { mounted() {
}, },
methods: { methods: {
handlePreview(url) { closeViewer(){
this.dialogImageUrl = url; this.showViewer = false
this.dialogVisible = true; },
handlePreview(e) {
this.initIdx = this.reviewList?.indexOf(e) || 0
this.showViewer = true
}, },
viewExample(url){ viewExample(url){
// this.$refs.preImgRef.preImage(url) // this.$refs.preImgRef.preImage(url)
......
...@@ -26,20 +26,20 @@ ...@@ -26,20 +26,20 @@
<div slot="approveAmountSlot" class="amount-wrap"> <div slot="approveAmountSlot" class="amount-wrap">
<div v-for="(item, index) in serviceCodesList" :key="index"> <div v-for="(item, index) in serviceCodesList" :key="index">
<template v-if="item.checked || curRouteInfo.status == 5 || curRouteInfo.status == 7 || curRouteInfo.pageType==6"> <template v-if="item.checked || curRouteInfo.status == 5 || curRouteInfo.status == 7 || curRouteInfo.pageType==6">
<el-checkbox :disabled="disabled" v-model="item.checked" @change="changeCheckedStatus(item)">{{ item.serviceItemName }}</el-checkbox> <el-checkbox :disabled="disabled || (serviceChecked && !item.checked)" v-model="item.checked" @change="changeCheckedStatus(item)">{{ item.serviceItemName }}</el-checkbox>
<div class="unit-wrap"> <div class="unit-wrap">
<el-radio-group :disabled="disabled" v-if="item.serviceItemCode == 'SC0003'" v-model="item.lossType"> <el-radio-group :disabled="disabled || !item.checked" v-if="item.serviceItemCode == 'SC0003'" v-model="item.lossType">
<el-radio label="1">全损</el-radio> <el-radio label="1">全损</el-radio>
<el-radio label="2">局部</el-radio> <el-radio label="2">局部</el-radio>
</el-radio-group> </el-radio-group>
<el-checkbox-group :disabled="disabled" @change="changeLossType" v-if="item.serviceItemCode == 'SC0006'" v-model="item.lossType"> <el-checkbox-group :disabled="disabled || !item.checked" @change="changeLossType" v-if="item.serviceItemCode == 'SC0006'" v-model="item.lossType">
<el-checkbox label="3">钥匙</el-checkbox> <el-checkbox :disabled="item.lossType && item.lossType.length > 0 && !item.lossType.includes('3')" label="3">钥匙</el-checkbox>
<el-checkbox label="4">车牌重置</el-checkbox> <el-checkbox :disabled="item.lossType && item.lossType.length > 0 && !item.lossType.includes('4')" label="4">车牌重置</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="unit-price"> <div class="unit-price">
<label class="required" for="">预估损失金额/元:</label> <label class="required" for="">预估损失金额/元:</label>
<el-input maxlength="13" :disabled="disabled" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请输入定损预估损失金额" v-model="item.applyAmount"></el-input> <el-input maxlength="13" :disabled="disabled || !item.checked" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请输入定损预估损失金额" v-model="item.applyAmount"></el-input>
</div> </div>
</div> </div>
</template> </template>
...@@ -332,7 +332,10 @@ export default { ...@@ -332,7 +332,10 @@ export default {
return prev + +(curPrice * 100).toFixed(0) return prev + +(curPrice * 100).toFixed(0)
}, 0) }, 0)
return total / 100 return total / 100
} },
serviceChecked(){
return !!this.serviceCodesList.find(item =>item.checked)
},
}, },
created(){ created(){
...@@ -741,8 +744,8 @@ export default { ...@@ -741,8 +744,8 @@ export default {
} }
} }
this.resData.supplementList1.forEach(item => { this.resData.supplementList1.forEach(item => {
let {id, claimsId, content} = item let {id, claimsId, content, operation} = item
supplementList1.push({id :id || '', claimsId, content , suppType: 1}) supplementList1.push({id :id || '', operation: type==1? 1 : (operation || 0), claimsId, content , suppType: 1})
}) })
if(errorTarget == 'errorFile') return {error:'errorTip',tip:`请重新上传审核失败的图片`} if(errorTarget == 'errorFile') return {error:'errorTip',tip:`请重新上传审核失败的图片`}
if(type==1 && errorTarget) return {error:'errorTip',tip:`请上传${errorTarget.firstClassifyName}中的${errorTarget.secondClassifyName}`} if(type==1 && errorTarget) return {error:'errorTip',tip:`请上传${errorTarget.firstClassifyName}中的${errorTarget.secondClassifyName}`}
......
...@@ -453,8 +453,8 @@ export default { ...@@ -453,8 +453,8 @@ export default {
} }
this.resData.supplementList2.forEach(item => { this.resData.supplementList2.forEach(item => {
let {id, claimsId, content } = item let {id, claimsId, content, operation } = item
supplementList2.push({id :id || '', claimsId, content , suppType: 2}) supplementList2.push({id :id || '', operation: type==1? 1 : (operation || 0), claimsId, content , suppType: 2})
}) })
if(target == 'errorFile') return {error:'errorTip',tip:`请重新上传审核失败的图片`} if(target == 'errorFile') return {error:'errorTip',tip:`请重新上传审核失败的图片`}
if(type==1 && target) return {error:'errorTip',tip:`请上传${target.firstClassifyName}中的${target.secondClassifyName}`} if(type==1 && target) return {error:'errorTip',tip:`请上传${target.firstClassifyName}中的${target.secondClassifyName}`}
......
...@@ -76,18 +76,18 @@ const serviceList = [ ...@@ -76,18 +76,18 @@ const serviceList = [
confId: 8, confId: 8,
confName: '定损通过' confName: '定损通过'
}, },
{ // {
confId: 9, // confId: 9,
confName: '待主管审核' // confName: '待主管审核'
}, // },
{ // {
confId: 10, // confId: 10,
confName: '主管审核不通过' // confName: '主管审核不通过'
}, // },
{ // {
confId: 11, // confId: 11,
confName: '待客户签字授权' // confName: '待客户签字授权'
}, // },
{ {
confId: 12, confId: 12,
confName: '待核赔' confName: '待核赔'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!