Commit d0d4a7a0 by 前端

Merge branch 'develop' into 'master'

Develop合并到master

See merge request !14
2 parents 6491336e 5f57c40d
......@@ -6403,9 +6403,9 @@
}
},
"glsx-components": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.1.tgz",
"integrity": "sha512-oH3TsANYngsVdDvi7XIqym48sbOuOYoVXV1m8FUoFBC7vI0gCPMgV9iMQosBGKSCPZ70m9XFgQTA0411CpZS9g==",
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.1",
"glsx-components": "^1.5.2",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -124,4 +124,228 @@ const getAccountInfo = params => {
})
}
export default { getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo }
/**广汇端---接口 */
// 获取核赔列表接口
const getGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 新增跟进记录
const addGHClaimFollowsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.followLog.create'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取跟进记录
const getGHClaimFollowsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.followLog.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 导出核赔列表
const exportGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list.export'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 运营端核赔订单审核通用接口
const checkGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 历史赔付记录
const getGHhistoryListApi = params => {
params.method = 'scrm.api.equity.mini.service.claims.history.records.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取定损和核赔详情
const getGHClaimsDetailApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.detail.new'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单资料获取
const getGHattachmentApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.attachment.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单手机传图资料获取
const getGHPhoneImageApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.phone.attachment'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单获取订单数
const getGHCountApi = params => {
params.method = 'scrm.api.equity.service.claims.gh.list.count'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 图片上传
const uploadImgApi = params => {
params.method = 'scrm.api.carlife.common.uploadImg'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
// 获取其他资料
const getOrderOherInfo = params => {
params.method = 'scrm.api.equity.service.claims.merchant.package.info'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损审核接口
const checkOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.draft.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔审核
const checkClaimsOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 撤销审核
const cancelClaims = params => {
params.method = 'scrm.api.equity.service.claims.audit.cancel'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损保存草稿
const saveCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔保存草稿
const saveClaimsCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.claims.draft.or.commit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 上传签名
const saveSign = params => {
params.method = 'scrm.api.equity.service.claims.sign.save'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取大区
const getBigMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.province.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据大区获取片区
const getMidMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.city.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据选择的片区获取门店
const getMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default {getMerchantApi,getMidMerchantApi,getBigMerchantApi,saveSign,saveClaimsCG,saveCG,cancelClaims,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 }
......@@ -167,15 +167,18 @@
padding: 20px;
// box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
}
.equity-wrap .contain .el-table__empty-text {
display: inline-block;
width: 64px;
height: 41px;
}
.fr-mr0 {
float: right;
margin-right: 0px !important;
}
// 单行省略
.ellipsis-1 {
overflow: hidden;
......@@ -184,9 +187,11 @@
-o-text-overflow: ellipsis;
/* for Opera */
}
.mb10 {
margin-bottom: 10px;
}
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2 {
overflow: hidden;
......@@ -211,6 +216,7 @@
background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%);
}
.el-scrollbar__bar.is-horizontal {
height: 10px !important;
left: 10px;
......@@ -291,6 +297,7 @@
margin: 0 0 30px 0;
padding-left: 8px;
}
// .app {
// background: #f4f5fa;
// padding: 0px 0 20px 0;
......@@ -305,17 +312,20 @@
.el-cascader-menu {
max-height: 250px;
}
.primary_plain_btn {
.el-button--primary.is-plain {
color: #5850ff;
background-color: #fff;
border-color: #5850ff;
}
.el-button--primary.is-plain:hover {
color: #7973ff;
background-color: #fff;
border-color: #7973ff;
}
.el-button--primary.is-plain:active {
color: #3a32e1;
background-color: #fff;
......@@ -325,6 +335,7 @@
.el-loading-mask {
.el-loading-spinner {
.el-icon-loading,
.el-loading-text {
color: #5850ff;
......@@ -332,6 +343,141 @@
}
}
// 核赔订单详情样式
.order-container-page {
.widget {
background: white;
.title {
padding: 0 20px;
height: 57px;
line-height: 57px;
border-bottom: 1px solid #e5e5e5;
}
.content {
.code {
padding: 8px 20px;
background: #f9f9f9;
}
.pannel {
.line {
margin-top: 20px;
.label {
width: 154px;
text-align: right;
}
.value {
width: 432px;
}
}
}
.element_wrap {
display: flex;
.label {
width: 154px;
text-align: right;
font-size: 16px;
font-weight: 400;
color: #333333;
}
.pannel {
.wrapper {
margin-bottom: 16px;
.name {
font-size: 16px;
font-weight: 400;
color: #333333;
margin-bottom: 8px;
}
.messag {
width: 686px;
// height: 60px;
background: #f9f9f9;
box-sizing: border-box;
padding: 0 20px;
.ms {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.price {
color: #333333;
}
}
.pannel_box {
width: 686px;
background: #f9f9f9;
box-sizing: border-box;
padding: 20px;
display: flex;
flex-wrap: wrap;
.line {
margin-bottom: 20px;
.lab {
font-size: 14px;
font-weight: 400;
color: #666666;
text-align: right;
width: 154px;
}
.tip {
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
}
}
}
.total {
padding: 12px 20px;
background: #f9f9f9;
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
}
.pad20 {
padding: 20px;
}
}
.flex_wrap {
display: flex;
flex-wrap: wrap;
}
.text_14_4_333 {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.text_14_4_666 {
font-size: 14px;
font-weight: 400;
color: #666666;
}
}
// .equity-wrap table {
// width: 98%;
// color: #666666;
......@@ -359,121 +505,18 @@
// .equity-wrap table td {
// min-width: 50px;
// }
.page-btm-btn{
.page-btm-btn {
display: flex;
justify-content: center;
margin-top: 16px;
}
.gl-form-page {
.ml12 {
margin-left: 12px;
}
.mr12 {
margin-right: 12px;
}
.mr24 {
margin-right: 24px;
}
.mb10 {
margin-bottom: 10px;
}
.mb12 {
margin-bottom: 12px;
}
.mb20 {
margin-bottom: 20px;
}
.w136 {
width: 136px !important;
}
.w154 {
width: 154px !important;
}
.w284 {
width: 284px !important;
}
.w432 {
width: 432px !important;
}
.w580 {
width: 580px !important;
}
.w728 {
width: 728px !important;
}
.el-form {
padding-left: 20px;
.el-form-item {
&:last-child {
margin-bottom: 0;
}
margin-bottom: 20px;
}
.el-form-item__label {
padding: 0;
width: 154px;
}
.el-button--medium {
padding: 10px 20px;
font-size: 14px;
border-radius: 4px;
}
.el-input {
width: 432px;
}
.el-input-number{
width: 136px;
.el-input {
width:100%;
}
.el-input-number__decrease{
background-color: #fff;
}
.el-input-number__increase{
background-color: #fff;
}
}
.el-textarea {
width: 580px !important;
}
.el-select {
width: 432px;
margin-right: 12px;
.el-input {
width: 432px;
}
.el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
}
}
.el-date-editor {
width: 432px;
}
.welcome-box {
width: 580px;
}
}
&.gl-form-min {
.el-form {
.el-input {
width: 284px;
}
.el-textarea {
width: 432px !important;
}
.el-select {
width: 284px;
.el-input {
width: 284px;
}
}
.el-date-editor {
width: 284px;
}
.welcome-box {
width: 432px;
}
}
}
.el-message.msgHierarchy {
z-index: 5000 !important;
}
.el-popover.imgPopper {
.el-form-item {
margin: 0 !important;
}
}
\ No newline at end of file
<!-- 搜索 -->
<template>
<div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<el-form :ref="formRef" :disabled="formDisable" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
......@@ -15,6 +15,7 @@
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span>
</span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<span :style="{ width: item.selectWidth || defaultWidth, display: 'inline-block' }" v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span>
<div v-else-if="item.type === 'input'">
<el-input @change="item.inputChange" :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 3" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
......@@ -133,6 +134,14 @@ export default {
},
props: {
formDisable:{
type: Boolean,
default: false
},
isInline: {
type: Boolean,
default: true
},
regionData: {
type: Array,
default: cityList
......
......@@ -12,21 +12,21 @@ let instance = null
Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
// request.baseURL = 'http://192.168.1.165:7226'
// request_brand.baseURL = 'http://192.168.1.165:7226'
// request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'http://192.168.1.53:7226'
// request_brand.baseURL = 'http://192.168.1.53:7226'
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01'
// // Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-9ff7f674-bf61-4ca5-ae43-6c493ac13f31-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-27c02d95-51f9-4576-86a9-70ba0f4d76e4-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-811305a2-49a3-4e8a-b6dc-fb925c65c95c-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-811305a2-49a3-4e8a-b6dc-fb925c65c95c-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
......
<template>
<div :style="{ 'margin-top': +marginTop + 'px' }" class="box">
<div v-if="title" class="header" :style="{ cursor: openBtn ? 'pointer' : 'unset' }" @click.stop="showBody()">
<i v-if="openBtn" class="el-icon-caret-right" :class="{ trans: open }"></i>
{{ title }}
<div style="float:right">
<slot name="right"></slot>
</div>
</div>
<div v-if="!openBtn || open" class="main-wrap">
<slot></slot>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'card',
data() {
return {
open: false
}
},
props: {
title: {
type: String,
default: ''
},
openBtn: {
type: Boolean,
default: false
},
marginTop:{
tyep: Number|String,
default: 16
}
},
mounted() {},
methods:{
showBody(){
if(!this.openBtn) return
this.open = !this.open
}
}
}
</script>
<style lang="scss" scoped>
.box {
background-color: #fff;
.header {
height: 58px;
background-color: #fff;
line-height: 58px;
padding: 0 20px;
box-sizing: border-box;
font-family: inherit;
font-size: 16px;
color: #333333;
// font-weight: 600;
}
.main-wrap {
border-top: 1px solid #e5e5e5;
padding: 20px;
height: 100%;
position: relative;
}
}
.header .trans {
transform: rotate(90deg);
}
.header .el-icon-caret-right {
transition: transform 0.3s ease 0s;
}
</style>
<template>
<div>
<Card title="案件补充说明">
<div class="explanation">
<div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :disabled="isCheck || isDisabled" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!isCheck&&supplementList.length > 1" @click="handleDel(idx)"></i>
</div>
</div>
<div v-if="!isCheck &&!isDisabled" class="add-explanation" @click="addExplanation">
<i class="el-icon-circle-plus-outline"></i>
<span>新增说明</span>
</div>
</Card>
</div>
</template>
<script type="text/ecmascript-6">
import Card from './card.vue'
export default {
name: 'explanation',
data() {
return {}
},
components: {
Card
},
props: {
supplementList: {
type: Array,
default: function () {
return [{ content: '' }]
}
},
isCheck:Boolean,
isDisabled:Boolean,
},
mounted() {},
methods: {
handleDel(idx) {
this.$delete(this.supplementList, idx)
},
addExplanation() {
const idx = this.supplementList.length
const newObj = { claimsId: this.supplementList[idx - 1].claimsId, content: '' }
this.$set(this.supplementList, idx, newObj)
}
}
}
</script>
<style lang="scss" scoped>
.explanation {
.explanation-list {
display: flex;
// align-items: center;
margin-bottom: 20px;
&:last-child {
margin-bottom: 10px;
}
/deep/ .el-textarea {
width: 580px;
}
.label {
width: 154px;
font-size: 14px;
font-weight: 400;
line-height: 32px;
color: #333;
text-align: right;
flex-shrink: 0;
}
}
.del {
color: #c6c6c6;
font-size: 16px;
margin-left: 10px;
cursor: pointer;
margin-top: 28px;
}
}
.add-explanation {
color: #5850FF;
display: flex;
align-items: center;
margin-left: 154px;
cursor: pointer;
.el-icon-circle-plus-outline {
font-size: 20px;
margin-right: 6px;
}
span {
font-size: 12px;
}
}
</style>
<template>
<div class="">
<div class="container">
<input type="file" class="file" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" />
<div class="wrap" v-for="(imgItem, imgKey) in list" :key="imgKey">
<span class="title">
<i v-if="imgItem.status == 1" class="el-icon-success success"></i>
<i v-if="imgItem.status == 2" class="el-icon-error error"></i>
<span>{{ imgItem.title }}</span>
<el-tooltip v-if="imgItem.tip" class="item" effect="dark" :content="imgItem.tip" placement="top">
<i v-if="imgItem.tip" class="el-icon-question question"></i>
</el-tooltip>
</span>
<div :class="['img-box', { 'has-img': imgItem.url, 'error-img': imgItem.status == 2, 'success-img': imgItem.status == 1 }]">
<!-- <img v-if="!imgItem.url" class="back-img" fit="cover" :src="url" alt="" @click="clickImg(imgKey)" /> -->
<img v-if="!imgItem.url" class="add-btn" :src="cameraUrl" alt="" @click="clickImg(imgKey)" />
<img v-else class="need-img" fit="cover" :src="imgItem.url" alt="" />
<div class="mask">
<i class="el-icon-view" @click="handlePreview(imgItem.url)"></i>
<i class="el-icon-delete" @click="handleDel(imgKey)"></i>
</div>
<div class="error-tip" v-if="imgItem.status == 2">
<el-popover placement="top-start" width="200" trigger="hover" :content="imgItem.reason || '--'">
<span slot="reference">{{ imgItem.reason || '--' }}</span>
</el-popover>
</div>
</div>
<slot name="footer" :scope="{ imgItem, imgKey }"></slot>
</div>
</div>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="" />
</el-dialog>
</div>
</template>
<script type="text/ecmascript-6">
import cameraUrl from '@/assets/camera.png'
import url from '@/assets/images/idCard.png'
// import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'imgList',
props:{
list:{
type: Array
}
},
data() {
return {
url,
cameraUrl,
dialogImageUrl: '',
dialogVisible: false,
activeName: 'base'
}
},
components: {
// glsxCombiForm
},
mounted() {
},
methods: {
handlePreview(url) {
this.dialogImageUrl = url;
this.dialogVisible = true;
},
handleDel(key){
this.list[key].url = ''
this.list[key].status = ''
},
clickImg(type) {
this.$refs.input.click();
},
upload(e){
const file = e.target.files[0]
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = event => {
const imgFile = event.target.result
const arrBase64 = imgFile.split(',')
const base64 = file.name.split('.').pop() + '@' + arrBase64[1]
this.$apis.beforeSale.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
console.log(res,'resss')
})
}
}
}
}
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-wrap: wrap;
position: relative;
.file {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.wrap {
margin: 0 16px 16px 0;
.title {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333333;
.success {
color: #2cca74;
margin-right: 5px;
}
.error {
color: #eb4e4e;
margin-right: 5px;
}
.question {
color: #999;
cursor: pointer;
margin-left: 5px;
}
}
.has-img:hover {
.mask {
display: block;
}
}
.error-img {
border: 1px solid #ff5257 !important;
}
.success-img {
border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
.img-box {
margin-top: 8px;
height: 135px;
width: 216px;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
position: relative;
background-color: #f5f5f5;
.error-tip {
width: 100%;
background: rgba(255, 82, 87, 0.7);
position: absolute;
height: 54px;
line-height: 16px;
bottom: 0;
border-radius: 0 0 4px 4px;
z-index: 10;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-family: PingFangSC-Regular, PingFang SC;
font-size: 14px;
padding: 5px 10px;
display: -webkit-box;
box-sizing: border-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.need-img,
.mask {
position: absolute;
left: 0;
bottom: 0;
top: 0;
right: 0;
z-index: 2;
}
.mask {
display: none;
background: rgba(0, 0, 0, 0.5);
z-index: 9;
text-align: center;
line-height: 135px;
border-radius: 4px;
i {
color: #c6c6c6;
cursor: pointer;
font-size: 16px;
&:first-child {
margin-right: 12px;
}
}
}
.add-btn {
position: absolute;
width: 60px;
height: 60px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
cursor: pointer;
}
img {
width: 100%;
height: 100%;
border-radius: 4px;
}
}
}
}
</style>
<template>
<Card title="其他信息" class="" openBtn>
<div class="other-info" v-for="(item, idx) in form" :key="idx">
<span class="title">{{ item.parentTitle }}</span>
<div class="info-wrap">
<li v-for="sonItem in item.li" :key="sonItem.key">
<label class="label" for="">{{ sonItem.label }}</label>
<span class="content">{{ otherInfoData[sonItem.key] || '--' }}</span>
</li>
</div>
</div>
</Card>
</template>
<script type="text/ecmascript-6">
import Card from './card.vue'
export default {
name: 'otherInfo',
props: {
otherInfoData: Object
},
data() {
return {
form: [
{
parentTitle: '店面信息',
li: [
{
key: 'merchantName',
label: '店面名称:'
},
{
key: 'merchantPhone',
label: '店面联系方式:'
},
{
key: 'merchantAddr',
label: '店面地址:'
}
]
},
{
parentTitle: '产品详情',
li: [
{
key: 'packageName',
label: '产品名称:'
},
{
key: 'contractNo',
label: '合同编号:'
},
{
key: 'effectiveDate',
label: '生效时间:'
},
{
key: 'servicePeriod',
label: '服务期限/年:'
},
{
key: 'expirationDate',
label: '起止时间:'
}
]
},
{
parentTitle: '客户信息',
li: [
{
key: 'customerName',
label: '客户姓名:'
},
{
key: 'customerPhone',
label: '电话号码:'
},
{
key: 'customerAddr',
label: '联系地址:'
}
]
},
{
parentTitle: '车辆信息',
li: [
{
key: 'vin',
label: '车架号:'
},
{
key: 'brandAndShape',
label: '品牌车型:'
},
{
key: 'billingDate',
label: '新车开票日期:'
},
{
key: 'invoicePrice',
label: '车辆购置价:'
}
]
}
]
}
},
components: {
Card
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.other-info {
list-style: none;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
line-height: 22px;
color: #333333;
margin-bottom: 16px;
.info-wrap {
background: #f9f9f9;
padding: 20px;
li {
display: inline-block;
line-height: 22px;
padding: 10px 0;
text-align: center;
width: 500px;
.label {
color: #666666;
}
}
}
}
</style>
......@@ -2,7 +2,19 @@
<div>
<div v-if="isGH" class="report-components gl-form-page">
<div class="title">报案信息(店面补充)</div>
<glsx-combi-form class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="handlerForm"></glsx-combi-form>
<glsx-combi-form :labelPaddingRight="0" :isInline="false" class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="handlerForm">
<!-- <div slot="serviceApply" class="serviceApply_container">
<template v-for="(item, index) in serviceItemsList">
<div :key="index" class="wrapper">
<el-checkbox-group v-model="checkList" @change="toChangeServices">
<div class="header">
<el-checkbox>{{ item.serviceItemName }}</el-checkbox>
</div>
</el-checkbox-group>
</div>
</template>
</div> -->
</glsx-combi-form>
</div>
<div class="report-components repair-wrap">
<div class="title">维修信息</div>
......@@ -55,7 +67,7 @@ export default {
props: {
accountForm: Object,
serviceItemsList: Array,
totalPrice:Number,
totalPrice: Number,
isGH: Boolean,
pageType: {
type: Number,
......@@ -63,29 +75,29 @@ export default {
}
},
components: {
glsxCombiForm,
glsxCombiForm
},
data() {
return {
accountData:[
accountData: [
{
label: '账户类型',
name: 'accountType',
type: 'radio',
optionList: [
{
confId:0,
confName:'对公'
},
{
confId:1,
confName:'对私'
}
{
confId: 0,
confName: '对公'
},
{
confId: 1,
confName: '对私'
}
],
optionId: 'confId',
optionLabel: 'confName',
isHide:true,
isClear: true,
isHide: true,
isClear: true,
isDisabled: this.pageType == 2
},
{
......@@ -95,14 +107,14 @@ export default {
optionList: [],
optionId: 'code',
optionLabel: 'name',
isClear: true,
isClear: true,
isDisabled: this.pageType == 2
},
{
label: '账户名称',
name: 'accountName',
type: 'input',
maxlength:60,
maxlength: 60,
isClear: true,
isDisabled: this.pageType == 2
},
......@@ -110,7 +122,7 @@ export default {
label: '收款账号',
name: 'accountNo',
type: 'input',
maxlength:25,
maxlength: 25,
isClear: true,
isDisabled: this.pageType == 2
},
......@@ -118,11 +130,11 @@ export default {
label: '收款账号所在省市',
name: 'bankCity',
type: 'select',
placeholder:'可输入所在市关键词查询',
placeholder: '可输入所在市关键词查询',
optionList: [],
optionId: 'code',
optionLabel: 'name',
isClear: true,
isClear: true,
isDisabled: this.pageType == 2
},
{
......@@ -132,7 +144,7 @@ export default {
optionList: [],
optionId: 'code',
optionLabel: 'name',
isClear: true,
isClear: true,
isDisabled: this.pageType == 2
},
{
......@@ -150,32 +162,45 @@ export default {
maxlength: 15,
isClear: true,
isDisabled: this.pageType == 2
},
}
],
handlerForm: [
{
label: '经办人',
label: '经办人:',
name: 'handlerName',
type: 'input',
isClear: true,
maxlength:100,
maxlength: 100,
isDisabled: this.pageType == 2
},
{
label: '经办人联系号码',
label: '经办人联系号码:',
name: 'handlerPhone',
type: 'input',
maxlength: 11,
isClear: true,
isDisabled: this.pageType == 2
}
},
// {
// label: '出险经过描述:',
// name: 'reimbursementDesc',
// type: 'input',
// inputType: 'textarea',
// maxlength: 200,
// isClear: true,
// isDisabled: this.pageType == 2
// },
// {
// label: '申请核赔服务:',
// addHtml: 'serviceApply'
// }
],
accountRule: {
accountType: [{ required: true, message: '请选择账户类型', trigger: 'change' }],
branchBankCode: [{ required: true, message: '请选择开户行名称', trigger: 'change' }],
accountName: [{ required: true, message: '请输入账户名称', trigger: 'change' }],
accountNo: [
{
{
required: true,
validator: (rule, value, callback) => {
let numRef = /^[0-9]{1,25}$/
......@@ -210,30 +235,33 @@ export default {
trigger: 'change'
}
],
// reimbursementDesc: [{ required: true, message: '请输入出险经过描述', trigger: 'change' }]
},
checkList: []
}
},
created(){
created() {
this.getBankList()
this.initSaveObj()
},
mounted() {
},
watch:{
'accountForm.objectType':{
handler(newVal,oldVal){
mounted() {},
watch: {
'accountForm.objectType': {
handler(newVal, oldVal) {
const item = this.accountData.find(item => {
return item.name == 'accountType'
})
item.isHide = newVal==0
item.isHide = newVal == 0
},
immediate:true
immediate: true
}
},
methods:{
initSaveObj(){
const obj = {
methods: {
toChangeServices(e){
console.log(e);
},
initSaveObj() {
const obj = {
accountType: 0,
branchBankCode: '',
accountName: '',
......@@ -243,11 +271,11 @@ export default {
payeeIDCardNo: '',
payeePhone: ''
}
this.saveObj = {...obj}
this.otherSaveObj = {...obj}
this.saveObj = { ...obj }
this.otherSaveObj = { ...obj }
},
changeObjectType(newVal){
this.$emit('changeObjectType',newVal)
changeObjectType(newVal) {
this.$emit('changeObjectType', newVal)
// const item = this.accountData.find(item => {
// return item.name == 'accountType'
// })
......@@ -268,38 +296,44 @@ export default {
},
getBankList() {
this.$apis.claims.getBankList({}).then(res => {
const branchBankList = this.accountData.find(item => item.name ==='branchBankCode')
const branchBankList = this.accountData.find(item => item.name === 'branchBankCode')
branchBankList.optionList = res.branchBank
const accountCityList = this.accountData.find(item => item.name ==='bankCity')
const accountCityList = this.accountData.find(item => item.name === 'bankCity')
accountCityList.optionList = res.accountCity
const IDCardTypeList = this.accountData.find(item => item.name ==='payeeIDCardType')
const IDCardTypeList = this.accountData.find(item => item.name === 'payeeIDCardType')
IDCardTypeList.optionList = res.cardType
})
},
validPrice(e,id){
validPrice(e, id) {
let checkPlan = '' + this.serviceItemsList[id].approveAmount
checkPlan = checkPlan.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace(/^\./g, '').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
checkPlan = checkPlan
.replace(/[^\d.]/g, '')
.replace(/\.{2,}/g, '.')
.replace(/^\./g, '')
.replace('.', '$#$')
.replace(/\./g, '')
.replace('$#$', '.')
if (checkPlan.indexOf('.') < 0 && checkPlan !== '') {
checkPlan = parseFloat(checkPlan) + ''
} else if (checkPlan.indexOf('.') >= 0) {
checkPlan = checkPlan.replace(/^()*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数
}
this.$set(this.serviceItemsList[id], 'approveAmount' , checkPlan)
this.$set(this.serviceItemsList[id], 'approveAmount', checkPlan)
},
changePrice(e,id){
if(!e.target.value) return;
const len = e.target.value.length
let lastStr = e.target.value.charAt(len-1)
if(lastStr==='.'){
this.$set(this.serviceItemsList[id], 'approveAmount' , e.target.value.substr(0 ,len-1))
changePrice(e, id) {
if (!e.target.value) return
const len = e.target.value.length
let lastStr = e.target.value.charAt(len - 1)
if (lastStr === '.') {
this.$set(this.serviceItemsList[id], 'approveAmount', e.target.value.substr(0, len - 1))
}
const minPrice = 1
if(Number(e.target.value)<minPrice){
this.$set(this.serviceItemsList[id], 'approveAmount' , 1)
const minPrice = 1
if (Number(e.target.value) < minPrice) {
this.$set(this.serviceItemsList[id], 'approveAmount', 1)
}
const maxPrice = 2000000
if(Number(e.target.value)>maxPrice){
this.$set(this.serviceItemsList[id], 'approveAmount' , maxPrice)
const maxPrice = 2000000
if (Number(e.target.value) > maxPrice) {
this.$set(this.serviceItemsList[id], 'approveAmount', maxPrice)
}
}
}
......@@ -321,7 +355,9 @@ export default {
color: #333;
}
.edit-form-container {
margin-top: 20px;
padding: 20px 0;
.serviceApply_container {
}
}
.require {
width: 115px;
......
<template>
<div class="report-components gl-form-page">
<div class="title">报案信息(客户提交)</div>
<glsxCombiForm :regionData="regionData" class="edit-form-container " ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div v-if="pageType == 1" style="display:inline-block;" slot="syncBtn">
<el-button style="margin:0 12px;" type="primary" @click="toSearchOrderDetail">同步</el-button>
<span style="font-weight: 400; color:#666;">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span>
<template v-if="[1, 3, 4].includes(pageType)">
<glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div v-if="pageType == 1" style="display: inline-block" slot="syncBtn">
<el-button style="margin: 0 12px" type="primary" @click="toSearchOrderDetail">同步</el-button>
<span style="font-weight: 400; color: #666">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span>
</div>
</glsxCombiForm>
</template>
<template v-else>
<div class="detail_pannel">
<div class="top_line">{{ isGH ? '核销码' : '合同号' }}:{{ editForm.contractNo }}</div>
<div class="wrap flex_sc">
<template v-for="(item, index) in editDetail">
<div :key="index" class="line_widget flex_sc">
<div class="label">
<span class="required">*</span>
<span class="text">{{item.label}}</span>
<span class="text">:</span>
</div>
<div class="value">{{item.value}}</div>
</div>
</template>
</div>
</div>
</glsxCombiForm>
</template>
</div>
</template>
......@@ -70,7 +89,8 @@ export default {
],
reimbursementAddress: [{ required: true, message: '请选择出险地点', trigger: 'change' }],
reimbursementAddr: [{ required: true, message: '请输入出险详细地址', trigger: 'change' }]
}
},
editDetail: []
}
},
created() {
......@@ -78,6 +98,10 @@ export default {
},
mounted() {
this.diffKeyHandle(this.isGH)
let _this = this
setTimeout(()=>{
_this.handlerDetail()
},500)
},
watch: {
'editForm.reportDate'(newVal, oldVal) {
......@@ -92,6 +116,33 @@ export default {
}
},
methods: {
//v2.10.0版本********
handlerDetail() {
this.editDetail = [
{
label: '报案人',
value: this.editForm.reporterName
},
{
label: '报案人电话',
value: this.editForm.reporterPhone
},
{
label: '报案日期',
value: this.editForm.reportDate
},
{
label: '出险日期',
value: this.editForm.reimbursementDate
},
{
label: '出险地点',
value: this.editForm.reimbursementAddr
}
]
console.log( this.editDetail);
},
//*************** */
getCityList() {
this.$apis.claims.getCityList({}).then(res => {
this.regionData = res
......@@ -335,4 +386,40 @@ export default {
}
}
}
.detail_pannel {
padding: 20px;
.top_line {
padding: 8px 20px;
background: #f9f9f9;
margin-bottom: 20px;
}
.wrap{
flex-wrap: wrap;
}
.line_widget {
margin-bottom: 20px;
.label {
width: 154px;
text-align: right;
.required {
color: #eb4e4e;
font-size: 6px;
margin-right: 4px;
}
.text {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
}
.value {
width: 348px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
}
}
</style>
......@@ -15,7 +15,6 @@
<div class="search_container">
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn()"></GLCombiForm>
</div>
<div class="table_widget">
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportList">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
......@@ -272,7 +271,6 @@ export default {
}
}
},
created() {
this.diffHost()
this.getClaimsCount()
......@@ -390,7 +388,6 @@ export default {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
/deep/ .el-form {
.el-form-item {
margin-right: 12px !important;
......
......@@ -4,7 +4,7 @@
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<div class="page-btm-btn">
<div class="page-btm-btn" v-if="pageType != 2">
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
</div>
......@@ -206,7 +206,6 @@ export default {
this.$message.error('至少输入一项服务的定损批准金额')
return false
}
let fileTip = false
for (let key in this.materialForm) {
if (this.materialForm[key].length < 1 && !fileTip) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!