Commit ff561c31 by 杨北旺

理赔系统

1 parent ab9f217e
......@@ -1873,6 +1873,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -1881,6 +1926,28 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -6403,9 +6470,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",
......@@ -13184,75 +13251,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.4.tgz",
......
......@@ -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",
......
<!-- 搜索 -->
<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" :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">
......@@ -133,6 +133,10 @@ export default {
},
props: {
isinline:{
type:Boolean,
default:true
},
regionData: {
type: Array,
default: cityList
......
......@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//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' })
}
......
......@@ -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,24 +162,37 @@ 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: {
......@@ -175,7 +200,7 @@ export default {
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>
<!-- 权益订单 -->
<template>
<div>
<div class="header_btn_widget flex_sc">
<!-- <div class="header_btn_widget flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
</div>
</div> -->
<div class="header_info_widget">
<span class="el-icon-warning"></span>
请注意:订单列表还有
<span class="count_num">{{ orderCount.toBeCommitCount || 0 }}</span>
<span class="count_num">0</span>
单待定损
<span class="count_num">0</span>
单待核赔
<span class="count_num">0</span>
单不通过退回处理,为保障客户权益,请尽快处理哦!
<!-- <span class="count_num">{{ orderCount.toBeCommitCount || 0 }}</span>
单待提交国任,
<span class="count_num">{{ orderCount.noPassCount || 0 }}</span>
单校验不通过退回处理,为保障客户权益,请尽快处理哦!
单校验不通过退回处理,为保障客户权益,请尽快处理哦! -->
</div>
<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>
<div class="table_top_line flex_scb">
<span>核赔订单列表</span>
<div class="table_top_btn flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<el-button plain size="small" @click="exportList">导出</el-button>
</div>
</div>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
<GLButton v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</GLButton>
<GLButton v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</GLButton> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
......@@ -63,6 +72,66 @@ export default {
return {
orderCount: {},
buttonList: [
{
type: 'el-button',
name: row => {
return '审核'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.handleEdit(5, row.scope)
}
},
{
type: 'el-button',
name: row => {
return '撤销'
},
attrs: {
type: 'text'
},
listeners: {
click: row => () => {}
}
},
{
type: 'el-button',
name: row => {
return '跟进记录'
},
attrs: {
type: 'text'
},
listeners: {
click: row => () => {}
}
},
{
type: 'el-button',
name: row => {
return '历史赔付'
},
attrs: {
type: 'text'
},
listeners: {
click: row => () => {}
}
},
{
type: 'el-button',
name: row => {
return '上传'
},
attrs: {
type: 'text'
},
listeners: {
click: row => () => {}
}
},
{
type: 'GLButton',
name: row => {
......@@ -119,14 +188,18 @@ export default {
searchForm: {
searchText: '',
status: '',
commitDate: ''
commitDate: '',
shopDate: '',
city: '',
positions: '',
merchantId: ''
},
searchParams: {},
searchFormData: [
{
label: '搜索内容',
name: 'searchText',
type: 'input',
placeholder: '请输入客户名|核销码|合同号|报案号',
isClear: true,
maxlength: 200
// isHide: true
......@@ -141,6 +214,40 @@ export default {
optionLabel: 'confName'
},
{
label: '门店提交时间',
name: 'shopDate',
type: 'datePicker',
pickerOptions: 'beforeRangePickerOptions',
isClear: true
},
{
label: '大区',
name: 'positions',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '片区',
name: 'city',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '门店',
name: 'merchantId',
type: 'select',
isClear: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '提交国任日期',
name: 'commitDate',
type: 'datePicker',
......@@ -236,6 +343,15 @@ export default {
}
},
{
label: '申请金额',
prop: 'applyAmoumt',
width: 100,
align: 'right',
formatter: cellValue => {
return cellValue.applyAmoumt || '-'
}
},
{
label: '批准金额',
prop: 'approvalAmount',
width: 100,
......@@ -264,7 +380,7 @@ export default {
{
label: '操作',
prop: '',
width: 100,
width: 170,
fixed: 'right',
addHtml: 'table-btns'
}
......@@ -290,14 +406,14 @@ export default {
diffHost() {
let href = window.location.host
this.showGh = href.indexOf('cgacar') != -1
if (!this.showGh) this.searchFormData[0].placeholder = '请输入客户名 | 合同号 | 报案号'
// if (!this.showGh) this.searchFormData[0].placeholder = '请输入客户名 | 合同号 | 报案号'
},
// 1.新增 2.查看 3.重新提交 4.去处理
// 1.新增 2.查看 3.重新提交 4.去处理 5.审核
handleEdit(editNo, row) {
let urlParam = {
editNo,
isGH: this.showGh,
// isGH: true,
// isGH: this.showGh,
isGH: true,
contractNo: editNo == 1 ? '' : row.contractNo, // 嘀加的用合同号
orderId: editNo == 1 ? '' : row.id
}
......@@ -390,15 +506,21 @@ 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;
&:first-child {
.el-input {
width: 312px !important;
}
}
}
.table_top_line {
margin-bottom: 10px;
}
.el-button + .el-button {
margin-left: 8px;
}
// /deep/ .el-form {
// .el-form-item {
// margin-right: 12px !important;
// &:first-child {
// .el-input {
// width: 312px !important;
// }
// }
// }
// }
</style>
......@@ -52,7 +52,8 @@ export default {
payeeIDCardNo: '',
payeePhone: '',
handlerName: '',
handlerPhone: ''
handlerPhone: '',
reimbursementDesc:'',//出险经过描述
},
saveObj: {},
materialForm: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!