Commit 8b0c20b7 by 前端

Merge branch 'v3.14.0' into 'master'

合并0804版本:V3.14.0

See merge request !36
2 parents b26159a8 6304d75e
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
"js-message": "1.0.7" "js-message": "1.0.7"
} }
}, },
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": { "@ampproject/remapping": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",
...@@ -1873,51 +1878,6 @@ ...@@ -1873,51 +1878,6 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true "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": { "ssri": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
...@@ -1926,28 +1886,6 @@ ...@@ -1926,28 +1886,6 @@
"requires": { "requires": {
"minipass": "^3.1.1" "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"
}
} }
} }
}, },
...@@ -6470,14 +6408,16 @@ ...@@ -6470,14 +6408,16 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.5.2", "version": "1.5.7",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.7.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==", "integrity": "sha512-WEWt1Ev7uf8VgILrEr15ZHxOreqWEVEY2WRP5EmZKzYKTVF/7dQU/oI84+Xo4vSmlz7ltblaATyrwm1U1LDnHg==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^1.4.9", "glsx-common": "^1.4.9",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3"
}, },
"dependencies": { "dependencies": {
...@@ -13060,6 +13000,21 @@ ...@@ -13060,6 +13000,21 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==", "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true "dev": true
}, },
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
},
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js": { "uri-js": {
"version": "4.4.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
...@@ -13243,6 +13198,14 @@ ...@@ -13243,6 +13198,14 @@
"csstype": "^3.1.0" "csstype": "^3.1.0"
} }
}, },
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
}
},
"vue-cli-plugin-element": { "vue-cli-plugin-element": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz", "resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz",
...@@ -13323,6 +13286,75 @@ ...@@ -13323,6 +13286,75 @@
} }
} }
}, },
"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-quill-editor": { "vue-quill-editor": {
"version": "3.0.6", "version": "3.0.6",
"resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz", "resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^2.1.0", "glsx-common": "^2.1.0",
"glsx-components": "^1.5.2", "glsx-components": "^1.5.7",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -346,6 +346,17 @@ const getMerchantApi = params => { ...@@ -346,6 +346,17 @@ const getMerchantApi = params => {
sign: true sign: true
}) })
} }
// 获取默认商户的下级商户
const getMerchantSubList=params=>{
params.method = 'scrm.api.equity.common.default.merchant.subList'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//广汇续保定损审核接口 //广汇续保定损审核接口
const renewalAudit = params => { const renewalAudit = params => {
params.method = 'scrm.api.equity.service.claims.renewal.audit' params.method = 'scrm.api.equity.service.claims.renewal.audit'
...@@ -356,5 +367,35 @@ const renewalAudit = params => { ...@@ -356,5 +367,35 @@ const renewalAudit = params => {
sign: true sign: true
}) })
} }
//分页查询理赔跟进人列表
const getFollowPersonList = params => {
params.method = 'scrm.api.equity.service.follow.person.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//删除跟进人记录
const delFollowPerson = params => {
params.method = 'scrm.api.equity.service.follow.person.delete'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { renewalAudit, 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 } // 新增理赔跟进人记录
const addFollowPerson = params => {
params.method = 'scrm.api.equity.service.follow.person.insert'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { renewalAudit, 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 ,getFollowPersonList,delFollowPerson,addFollowPerson,getMerchantSubList}
...@@ -21,7 +21,8 @@ export const fetchConfig = function (common) { ...@@ -21,7 +21,8 @@ export const fetchConfig = function (common) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // 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.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' })
// return common.utils.getConfig(params) // return common.utils.getConfig(params)
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 自选权益 --> <!-- 自选权益 -->
<div v-if="equityRadio == '1'" class="auto_widget"> <div v-if="equityRadio == '1'" class="auto_widget">
<el-checkbox-group v-model="curSelectPro" :disabled="disabled"> <el-checkbox-group v-model="curSelectPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in productList" :key="index" class="product_wrapper"> <div v-for="(item, index) in productList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<!-- <el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> --> <!-- <el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> -->
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</div> </div>
<div class="arrt_pannel"> <div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'"> <template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex,1)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input> <el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 1)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template> </template>
<template v-if="attr.attributeType == 'select'"> <template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc"> <el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
...@@ -112,74 +112,44 @@ ...@@ -112,74 +112,44 @@
<!-- 定制权益 --> <!-- 定制权益 -->
<div v-if="equityRadio == '2'" class="auto_widget"> <div v-if="equityRadio == '2'" class="auto_widget">
<el-radio-group v-model="curSelectCustomPro" :disabled="disabled"> <el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper"> <div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<el-radio @change="changeRaido($event, item)" :disabled="item.disabled" :label="item.packageName"></el-radio> <el-checkbox @change="changeRaido($event, item, index)" :label="item.packageName" :disabled="item.disabled">
<div>{{ item.packageName }}</div>
</el-checkbox>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p> <p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div> </div>
<div v-if="curSelectCustomPro == item.packageName" :key="indexs" class="child_wrap"> <div class="customer-form">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex"> <template v-for="(ele, indexs) in curSelectCustomPro">
<div class="attr_wrapper flex_sc"> <div v-if="ele == item.packageName" :key="indexs" class="child_wrap">
<div class="attr_label h13_title"> <div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<span v-if="attr.required == 1" style="color: red">*</span> <div class="attr_wrapper flex_sc">
{{ attr.attributeDesc }} <div class="attr_label h13_title">
</div> <span v-if="attr.required == 1" style="color: red">*</span>
<div class="arrt_pannel"> {{ attr.attributeDesc }}
<template v-if="attr.attributeType == 'input'"> </div>
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr,index, attrindex,2)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input> <div class="arrt_pannel">
</template> <template v-if="attr.attributeType == 'input'">
<template v-if="attr.attributeType == 'select'"> <el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 2)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc"> </template>
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option> <template v-if="attr.attributeType == 'select'">
</el-select> <el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
</template> <el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
<template v-if="attr.attributeType == 'datePicker'"> </el-select>
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker> </template>
</template> <template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
</div> </div>
</div> </div>
</div> </template>
</div> </div>
</div> </div>
</el-radio-group> </el-checkbox-group>
</div> </div>
<!-- <div v-if="equityRadio == '2'" class="auto_widget">
<glsx-combi-form class="edit-form-container" :isEdit="true" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
<template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
<span class="package-title">{{ subItem[scope.scope.optionLabel] }}</span>
<div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)">
<p class="package-subtitle">{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
<glsx-combi-form class="edit-form-container" ref="editFormRefPro" :isEdit="true" defaultWidth="320px" formRef="editChildRefPro" :isBlock="isBlock" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro">
<template slot="table" slot-scope="scope">
<table class="table-style">
<tbody>
<tr>
<td v-for="(m, n) in scope.scope.attributeList" :key="n" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">{{ m.attributeDesc }}</td>
</tr>
<tr v-for="(m, n) in scope.scope.tableList" :key="n">
<td v-for="(i, j) in m" :key="j" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">
<el-input :disabled="i.isDisabled" :class="{ 'border-red': !editFormPro[i.name] }" placeholder="请输入" v-model="editFormPro[i.name]" :maxlength="i.maxlength">
<el-popover v-show="!editFormPro[i.name]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.attributeDesc + '是必填项'">
<i class="el-icon-warning color-red" slot="reference"></i>
</el-popover>
</el-input>
</td>
</tr>
</tbody>
</table>
</template>
</glsx-combi-form>
</div>
</div>
</el-radio>
</el-radio-group>
</template>
</glsx-combi-form>
</div> -->
</div> </div>
<!-- 其他信息 --> <!-- 其他信息 -->
...@@ -480,7 +450,7 @@ export default { ...@@ -480,7 +450,7 @@ export default {
// } // }
// ], // ],
curSelectPro: [], curSelectPro: [],
curSelectCustomPro: '', curSelectCustomPro: [],
editProductObj: {}, editProductObj: {},
productList: [], productList: [],
customProductList: [], customProductList: [],
...@@ -489,7 +459,6 @@ export default { ...@@ -489,7 +459,6 @@ export default {
crash: {}, crash: {},
stolen: {}, stolen: {},
tire: {}, tire: {},
vip: {},
glass: {} glass: {}
}, },
// 其他信息 // 其他信息
...@@ -694,7 +663,8 @@ export default { ...@@ -694,7 +663,8 @@ export default {
pickerOptions2: {}, pickerOptions2: {},
hotline: '', hotline: '',
compensationNameDisable: false, compensationNameDisable: false,
errGlassName: '' errGlassName: '',
dataSourceDisable: false
} }
}, },
...@@ -848,7 +818,7 @@ export default { ...@@ -848,7 +818,7 @@ export default {
this.vaildGlassParams() this.vaildGlassParams()
} else { } else {
this.errGlassName = '' this.errGlassName = ''
if (this.vailIndex !=undefined) this.$set(this.productList[this.vailIndex], 'disabled', false) if (this.vailIndex != undefined) this.$set(this.productList[this.vailIndex], 'disabled', false)
if (this.vail_sale_price_index) this.$set(this.productList[this.vailIndex].groupAttributeList[this.vail_sale_price_index], 'disabled', false) if (this.vail_sale_price_index) this.$set(this.productList[this.vailIndex].groupAttributeList[this.vail_sale_price_index], 'disabled', false)
} }
} else { } else {
...@@ -857,18 +827,18 @@ export default { ...@@ -857,18 +827,18 @@ export default {
} }
}, },
// 轮胎玻璃提单参数处理 // 轮胎玻璃提单参数处理
vaildGlassParams(){ vaildGlassParams() {
if(this.equityRadio == 1&&this.tempAttributeList.length&&this.packageCodeList.length&&this.errGlassName){ if (this.equityRadio == 1 && this.tempAttributeList.length && this.packageCodeList.length && this.errGlassName) {
if( this.packageCodeList.indexOf(this.vailGlassCode)!=-1){ if (this.packageCodeList.indexOf(this.vailGlassCode) != -1) {
let arr1 = [] let arr1 = []
let arr2 = [] let arr2 = []
this.tempAttributeList.forEach(ele=>{ this.tempAttributeList.forEach(ele => {
if(ele.packageCode!=this.vailGlassCode){ if (ele.packageCode != this.vailGlassCode) {
arr1.push(ele) arr1.push(ele)
} }
}) })
this.packageCodeList.forEach(ele=>{ this.packageCodeList.forEach(ele => {
if(ele!=this.vailGlassCode){ if (ele != this.vailGlassCode) {
arr2.push(ele) arr2.push(ele)
} }
}) })
...@@ -912,10 +882,12 @@ export default { ...@@ -912,10 +882,12 @@ export default {
}, },
changeRaido(e, item) { changeRaido(e, item) {
if (e) { if (e) {
this.checkCodeList = [] // this.checkCodeList = []
this.autoPackageCodeList = [] // this.autoPackageCodeList = []
this.checkCodeList.push(item.packageCode) this.checkCodeList.push(item.packageCode)
this.autoPackageCodeList.push(item.packageCode) this.autoPackageCodeList.push(item.packageCode)
this.checkCodeList = Array.from(new Set(this.checkCodeList))
this.autoPackageCodeList = Array.from(new Set(this.autoPackageCodeList))
for (let key in this.productModal[item.idName]) { for (let key in this.productModal[item.idName]) {
item.groupAttributeList.forEach(attr => { item.groupAttributeList.forEach(attr => {
if (attr.attributeName == key) { if (attr.attributeName == key) {
...@@ -927,7 +899,17 @@ export default { ...@@ -927,7 +899,17 @@ export default {
attributeGroup: 'planId', attributeGroup: 'planId',
attributeName: 'planId' attributeName: 'planId'
} }
this.commonPart(this.productModal['vip']['planId'], item, customAttr) this.commonPart(this.productModal[`vip${item.packageCode}`]['planId'], item, customAttr)
} else {
this.checkCodeList = this.checkCodeList.filter(t => t != item.packageCode)
this.autoPackageCodeList = this.autoPackageCodeList.filter(t => t != item.packageCode)
for (let key in this.productModal[item.idName]) {
item.groupAttributeList.forEach(attr => {
if (attr.attributeName == key) {
this.commonPart(this.productModal[item.idName][key], item, attr)
}
})
}
} }
}, },
// 获取店铺信息 // 获取店铺信息
...@@ -973,7 +955,7 @@ export default { ...@@ -973,7 +955,7 @@ export default {
this.compensationNameDisable = false this.compensationNameDisable = false
}, },
// 自选权益产品套餐处理参数---输入框 // 自选权益产品套餐处理参数---输入框
getCurChangeInput(e, pack, attr, faIndex, childIndex,radio) { getCurChangeInput(e, pack, attr, faIndex, childIndex, radio) {
if (!e) { if (!e) {
return return
} }
...@@ -986,7 +968,7 @@ export default { ...@@ -986,7 +968,7 @@ export default {
} }
} }
if (attr.attributeName == 'card') { if (attr.attributeName == 'card') {
let _tempArr = radio==2?this.customProductList[faIndex]:this.productList[faIndex] let _tempArr = radio == 2 ? this.customProductList[faIndex] : this.productList[faIndex]
_tempArr.groupAttributeList.map(el => { _tempArr.groupAttributeList.map(el => {
if (el.attributeName == 'service_period') { if (el.attributeName == 'service_period') {
el.disabled = true el.disabled = true
...@@ -1036,10 +1018,32 @@ export default { ...@@ -1036,10 +1018,32 @@ export default {
this.handleProductArrParam(this.autoAttriButeList, this.autoPackageCodeList) this.handleProductArrParam(this.autoAttriButeList, this.autoPackageCodeList)
} }
}, },
objSort(obj) {
let newObj = {}
//遍历对象,并将key进行排序
Object.keys(obj)
.sort()
.map(key => {
newObj[key] = obj[key]
})
//将排序好的数组转成字符串
return JSON.stringify(newObj)
},
unique(arr) {
let set = new Set()
for (let i = 0; i < arr.length; i++) {
let str = this.objSort(arr[i])
set.add(str)
}
//将数组中的字符串转回对象
arr = [...set].map(item => {
return JSON.parse(item)
})
return arr
},
// 处理数据结构对比后台所需的参数 // 处理数据结构对比后台所需的参数
handleProductArrParam(arr, codearr) { handleProductArrParam(arr, codearr) {
let newArr = [] let newArr = [],filterList = []
const codeList = Array.from(new Set(codearr)) const codeList = Array.from(new Set(codearr))
this.checkCodeList = codeList this.checkCodeList = codeList
let blackArr = [] let blackArr = []
...@@ -1047,12 +1051,18 @@ export default { ...@@ -1047,12 +1051,18 @@ export default {
blackArr.push([]) blackArr.push([])
} }
const newParaArr = [] const newParaArr = []
codeList.forEach((item, index) => { if (arr.length) {
let attrStr = `attributes[${index}].packageCode` filterList = this.unique(arr)
let obj = { }
[attrStr]: item arr = filterList
} arr.forEach(el=>{
newArr.push(obj) arr.forEach(els=>{
if(el.packageCode==els.packageCode){
if(el.contractNo){
els.contractNo = el.contractNo
}
}
})
}) })
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < codeList.length; j++) { for (let j = 0; j < codeList.length; j++) {
...@@ -1068,6 +1078,13 @@ export default { ...@@ -1068,6 +1078,13 @@ export default {
} }
} }
blackArr[j].push(obj) blackArr[j].push(obj)
let attrStr = `attributes[${j}].packageCode`
let contractNoStr = `attributes[${j}].contractNo`
let temp = {
[attrStr]: codeList[j],
[contractNoStr]: arr[i].contractNo
}
newArr.push(temp)
} }
} }
} }
...@@ -1079,9 +1096,9 @@ export default { ...@@ -1079,9 +1096,9 @@ export default {
let arrt4 = `attributes[${blackArr[i][j].index}].attributeDTOList[${j}].sort` let arrt4 = `attributes[${blackArr[i][j].index}].attributeDTOList[${j}].sort`
let obj = { let obj = {
[arrt1]: blackArr[i][j].value.attributeGroup, [arrt1]: blackArr[i][j].value.attributeGroup,
[arrt2]: blackArr[i][j].value.attributeName, [arrt2]: blackArr[i][j].value.attributeName == 'afterTireScale' ? 'tireScale' : blackArr[i][j].value.attributeName,
[arrt3]: this.priceFormat(blackArr[i][j].value.attributeName, blackArr[i][j].value.attributeValue), [arrt3]: this.priceFormat(blackArr[i][j].value.attributeName, blackArr[i][j].value.attributeValue),
[arrt4]: blackArr[i][j].value.sort [arrt4]: blackArr[i][j].value.attributeName == 'afterTireScale' ? 1 : blackArr[i][j].value.sort
} }
newParaArr.push(obj) newParaArr.push(obj)
} }
...@@ -1094,6 +1111,7 @@ export default { ...@@ -1094,6 +1111,7 @@ export default {
}) })
// console.log(this.formatProduct, '自选权益') // console.log(this.formatProduct, '自选权益')
} else { } else {
this.autoFormatProduct = {}
concactArr.forEach(item => { concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item) this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
}) })
...@@ -1123,33 +1141,11 @@ export default { ...@@ -1123,33 +1141,11 @@ export default {
// 获取产品的数据 // 获取产品的数据
toGetProductData(arr) { toGetProductData(arr) {
arr.forEach(item => { arr.forEach(item => {
// if (item.packageName.includes('整车全损')) {
// item.idName = 'car'
// } else if (item.packageName.includes('轮胎')) {
// item.idName = 'tire'
// } else if (item.packageName.includes('碰撞')) {
// item.idName = 'crash'
// this.productModal[item.idName]['planId'] = item.planId
// this.productModal['vip']['planId'] = item.planId
// this.getCase(item.planId)
// } else if (item.packageName.includes('盗抢')) {
// item.idName = 'stolen'
// } else if (item.packageName.includes('尊享版')) {
// item.idName = 'vip'
// } else if (item.packageName.includes('舒享版')) {
// item.idName = 'vip'
// } else if (item.packageName.includes('优享版')) {
// item.idName = 'vip'
// } else if (item.packageType == 1) {
// item.idName = 'vip'
// } else if (item.packageName.includes('玻璃')) {
// this.vailGlassName = item.packageName // 备用
// this.vailGlassCode = item.packageCode
// item.idName = 'glass'
// }
if (item.packageType == 1) { if (item.packageType == 1) {
//定制权益 //定制权益
item.idName = 'vip' item.idName = `vip${item.packageCode}`
this.$set(this.productModal, item.idName, {})
this.productModal[item.idName]['planId'] = item.planId
} else { } else {
// 自选权益 // 自选权益
if (item.packageName.includes('整车全损')) { if (item.packageName.includes('整车全损')) {
...@@ -1159,7 +1155,6 @@ export default { ...@@ -1159,7 +1155,6 @@ export default {
} else if (item.packageName.includes('碰撞')) { } else if (item.packageName.includes('碰撞')) {
item.idName = 'crash' item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId) this.getCase(item.planId)
} else if (item.packageName.includes('盗抢')) { } else if (item.packageName.includes('盗抢')) {
item.idName = 'stolen' item.idName = 'stolen'
...@@ -1186,31 +1181,35 @@ export default { ...@@ -1186,31 +1181,35 @@ export default {
} }
e.optionList = [...arr] e.optionList = [...arr]
this.serviceObj[item.packageCode] = item.servicePeriod this.serviceObj[item.packageCode] = item.servicePeriod
this.productModal[item.idName][e.attributeName] = '1' // this.productModal[item.idName][e.attributeName] = '1'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'1')
} else if (e.attributeDesc == '购车类型') { } else if (e.attributeDesc == '购车类型') {
e.optionList = this.baseData.buyCarTypeList e.optionList = this.baseData.buyCarTypeList
this.productModal[item.idName][e.attributeName] = '0' // this.productModal[item.idName][e.attributeName] = '0'
} else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == 'vip' || item.idName == 'glass') && e.attributeDesc == '服务期限') { this.$set(this.productModal[item.idName],`${e.attributeName}`,'0')
} else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == `vip${item.packageCode}` || item.idName == 'glass') && e.attributeDesc == '服务期限') {
if (item.idName == 'tire' || item.idName == 'crash') { if (item.idName == 'tire' || item.idName == 'crash') {
e.optionList = this.baseData.servicePeriodList e.optionList = this.baseData.servicePeriodList
} else { } else {
e.optionList = this.baseData.servicePeriodList2 e.optionList = this.baseData.servicePeriodList2
} }
// this.productModal[item.idName][e.attributeName] = '1'
e.disabled = true e.disabled = true
// v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年 // v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年
let isOld = item.packageName.includes('尊享版') || item.packageName.includes('舒享版') || item.packageName.includes('优享版') let isOld = item.packageName.includes('尊享版') || item.packageName.includes('舒享版') || item.packageName.includes('优享版')
if(item.idName == 'vip' && !isOld){ if (item.idName == `vip${item.packageCode}` && !isOld) {
e.disabled = false e.disabled = false
e.optionList = this.baseData.servicePeriodList e.optionList = this.baseData.servicePeriodList
} }
this.productModal[item.idName][e.attributeName] = '1' // this.productModal[item.idName][e.attributeName] = '1'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'1')
} else if (e.attributeDesc == '生效日期') { } else if (e.attributeDesc == '生效日期') {
let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000 let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000
this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay) // this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay)
if (item.idName == 'glass') { this.$set(this.productModal[item.idName],`${e.attributeName}`,utils.dateFormat(nextDay))
if (item.idName == 'glass') {
let tAdd2 = new Date().getTime() + 24 * 60 * 60 * 1000 * 2 let tAdd2 = new Date().getTime() + 24 * 60 * 60 * 1000 * 2
this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2) // this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2)
this.$set(this.productModal[item.idName],`${e.attributeName}`,utils.dateFormat(tAdd2))
e.disabled = true e.disabled = true
} }
} }
...@@ -1271,7 +1270,7 @@ export default { ...@@ -1271,7 +1270,7 @@ export default {
}) })
}, },
getInfo(productArrData) { getInfo(productArrData) {
this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => { this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo, repeatedFlag: this.routeInfo.addOrEdit == 4 ? 1 : 0 }).then(res => {
this.editForm = { this.editForm = {
...res ...res
} }
...@@ -1312,6 +1311,7 @@ export default { ...@@ -1312,6 +1311,7 @@ export default {
if ([2, 4].includes(this.routeInfo.addOrEdit)) { if ([2, 4].includes(this.routeInfo.addOrEdit)) {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1)) this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
} }
this.dataSourceDisable = res.dataSource == 'car'
this.editForm.packageCode && this.packageAttr(true, productArrData, res) this.editForm.packageCode && this.packageAttr(true, productArrData, res)
const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId) const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId)
if (spaItem) { if (spaItem) {
...@@ -1341,93 +1341,132 @@ export default { ...@@ -1341,93 +1341,132 @@ export default {
} }
}, },
packageAttr(recovery = false, productArrData, detailInfo) { packageAttr(recovery = false, productArrData, detailInfo) {
var targetItem = productArrData.find(item => item.packageCode == this.editForm.packageCode) // 2023 7月底版本 改版
if (targetItem.packageType == 1) { let attrList = [],
this.equityRadio = 2 packCode = []
this.curSelectCustomPro = targetItem.packageName detailInfo.attributes.forEach(item => {
this.editForm.attributeList.forEach(item => { let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
if (item.attributeName.includes('price')) { const defalutAttr = this.handleDefaultValue(targetItem, item.attributeDTOList)
item.attributeValue = item.attributeValue / 100 if (defalutAttr.length) {
} item.attributeDTOList = [...item.attributeDTOList, ...defalutAttr]
if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) { }
this.compensationNameDisable = true if (targetItem.packageType == 1) {
this.equityRadio = 2
this.curSelectCustomPro.push(targetItem.packageName)
this.curSelectCustomPro = Array.from(new Set(this.curSelectCustomPro))
item.attributeDTOList.forEach(a => {
if (a.attributeName.includes('price')) {
a.attributeValue = a.attributeValue / 100
}
if (a.attributeName == 'tireScale' && a.sort == 1) {
a.attributeName = 'afterTireScale'
}
if (a.attributeName == 'buy_car_type' && a.attributeValue == 1) {
this.compensationNameDisable = true
}
this.productModal[`vip${item.packageCode}`][a.attributeName] = a.attributeValue
})
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.leftDisable = true
this.customProductList.map(c => {
c.disabled = true
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period'&&(this.routeInfo.addOrEdit >2)) {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date'&&this.routeInfo.addOrEdit==3) {
ele.disabled = true
}
})
return c
})
} }
this.productModal.vip[item.attributeName] = item.attributeValue if (this.routeInfo.addOrEdit == 2) {
}) this.customProductList.map(c => {
if (this.routeInfo.addOrEdit == 3) { c.disabled = true
this.leftDisable = true c.groupAttributeList.map(ele => {
this.customProductList.map(item => { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
item.disabled = true ele.disabled = true
item.groupAttributeList.map(ele => { this.leftDisable = true
if (ele.attributeName == 'service_period') { }
ele.disabled = true })
} return c
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
}) })
return item
})
}
} else {
this.equityRadio = 1
this.curSelectPro = [targetItem.packageName]
this.editForm.attributeList.forEach(item => {
if (item.attributeName.includes('price')) {
item.attributeValue = item.attributeValue / 100
} else if (item.attributeName == 'planId') {
this.getCase(parseInt(item.attributeValue))
} }
if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) { } else {
this.compensationNameDisable = true this.equityRadio = 1
this.curSelectPro.push(targetItem.packageName)
this.curSelectPro = Array.from(new Set(this.curSelectPro))
item.attributeDTOList.forEach(b => {
if (b.attributeName.includes('price')) {
b.attributeValue = b.attributeValue / 100
} else if (b.attributeName == 'planId') {
this.getCase(parseInt(b.attributeValue))
}
if (b.attributeName == 'tireScale' && b.sort == 1) {
b.attributeName = 'afterTireScale'
}
if (b.attributeName == 'buy_car_type' && b.attributeValue == 1) {
this.compensationNameDisable = true
}
this.productModal[targetItem.idName][b.attributeName] = b.attributeValue
})
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.rightDisable = true
this.productList.map(d => {
d.disabled = true
d.groupAttributeList.map(elee => {
if (elee.attributeName == 'service_period'&&(this.routeInfo.addOrEdit >2)) {
elee.disabled = true
}
if (elee.attributeName == 'card') {
elee.disabled = true
}
if (elee.attributeName == 'effective_date'&&this.routeInfo.addOrEdit==3) {
elee.disabled = true
}
if (elee.attributeName == 'buy_car_type' && elee.attributeValue == 1) {
elee.disabled = true
}
})
return d
})
} }
this.productModal[targetItem.idName][item.attributeName] = item.attributeValue if (this.routeInfo.addOrEdit == 2) {
}) this.productList.map(c => {
if (this.routeInfo.addOrEdit == 3) { c.disabled = true
this.rightDisable = true c.groupAttributeList.map(ele => {
this.productList.map(item => { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
item.disabled = true ele.disabled = true
this.rightDisable = true
item.groupAttributeList.map(ele => { }
if (ele.attributeName == 'service_period') { })
ele.disabled = true return c
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
if (ele.attributeName == 'buy_car_type' && ele.attributeValue == 1) {
ele.disabled = true
}
}) })
}
}
return item packCode.push(item.packageCode)
item.attributeDTOList.forEach(el => {
attrList.push({
...el,
packageCode: item.packageCode,
contractNo: item.contractNo
}) })
}
}
// this.packageToPrice()
// var tempObj = this.$common.utils.deepClone(this.editFormPro)
let attrList = []
detailInfo.attributeList.forEach(item => {
attrList.push({
...item,
packageCode: detailInfo.packageCode
}) })
}) })
if (this.equityRadio == 1) { if (this.equityRadio == 1) {
this.tempAttributeList = attrList this.tempAttributeList = attrList
this.packageCodeList = [detailInfo.packageCode] this.packageCodeList = packCode
} else { } else {
this.autoAttriButeList = attrList this.autoAttriButeList = attrList
this.autoPackageCodeList = [detailInfo.packageCode] this.autoPackageCodeList = packCode
} }
this.checkCodeList = [detailInfo.packageCode] this.checkCodeList = packCode
this.handleProductArrParam(attrList, [detailInfo.packageCode]) this.handleProductArrParam(attrList, packCode)
// this.editRulePro = {} // this.editRulePro = {}
// this.editFormPro = {} // this.editFormPro = {}
// var attrName = '' // var attrName = ''
...@@ -1470,6 +1509,34 @@ export default { ...@@ -1470,6 +1509,34 @@ export default {
this.$set(this.editFormPro, hashObj[item.attributeName] != 1 ? item.attributeName + item.sort : item.attributeName, item.attributeValue) this.$set(this.editFormPro, hashObj[item.attributeName] != 1 ? item.attributeName + item.sort : item.attributeName, item.attributeValue)
}) })
}, },
// 处理默认值赋值
handleDefaultValue(targetItem, attributeDTOList) {
const currentPackageValue = this.productModal[targetItem.idName]
const groupAttributeList = targetItem.groupAttributeList
let tempArr = [],
result = []
for (let key in currentPackageValue) {
for (let i = 0; i < groupAttributeList.length; i++) {
if (key === groupAttributeList[i].attributeName) {
let obj = {
attributeGroup: key,
attributeName: key,
attributeValue: currentPackageValue[key],
sort: 0
}
tempArr.push(obj)
}
}
}
tempArr.forEach(el => {
attributeDTOList.forEach(item => {
if (item.attributeName !== el.attributeName) {
result.push(el)
}
})
})
return result
},
autoGenerate(arr1, arr2) { autoGenerate(arr1, arr2) {
const tempList = arr1.concat(arr2) const tempList = arr1.concat(arr2)
if (this.reset) { if (this.reset) {
...@@ -1688,6 +1755,7 @@ export default { ...@@ -1688,6 +1755,7 @@ export default {
} }
this.submit = true this.submit = true
var params = this.getParams() var params = this.getParams()
delete params.attributes
params.operationType = 0 params.operationType = 0
if (this.routeInfo.addOrEdit == '2') { if (this.routeInfo.addOrEdit == '2') {
params.contractNo = this.routeInfo.contractNo params.contractNo = this.routeInfo.contractNo
...@@ -1705,6 +1773,10 @@ export default { ...@@ -1705,6 +1773,10 @@ export default {
delete params.sn delete params.sn
} }
params.isOss = 1 params.isOss = 1
params.dataSource = this.editForm.dataSource || ''
setTimeout(() => {
this.submit = false
}, 3000)
this.$apis.beforeSale.updateEquityApi(params).then(res => { this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false this.submit = false
...@@ -1776,6 +1848,7 @@ export default { ...@@ -1776,6 +1848,7 @@ export default {
return true return true
} }
var params = this.getParams() var params = this.getParams()
delete params.attributes
params.operationType = 1 params.operationType = 1
if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) { if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) {
if (this.routeInfo.addOrEdit == 4 && this.editForm.orderStatus != 3) { if (this.routeInfo.addOrEdit == 4 && this.editForm.orderStatus != 3) {
...@@ -1841,13 +1914,12 @@ export default { ...@@ -1841,13 +1914,12 @@ export default {
this.autoFormatProduct = {} this.autoFormatProduct = {}
this.equityRadio = 1 this.equityRadio = 1
this.curSelectPro = [] this.curSelectPro = []
this.curSelectCustomPro = '' this.curSelectCustomPro = []
this.productModal = { this.productModal = {
car: {}, car: {},
crash: {}, crash: {},
stolen: {}, stolen: {},
tire: {}, tire: {},
vip: {},
glass: {} glass: {}
} }
this.customProductList = [] this.customProductList = []
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<!-- 案件补充说明 --> <!-- 案件补充说明 -->
<div> <div>
<explanation :isDisabled="isDisabled" :supplementList="repotData.supplementList1"></explanation> <explanation :isDisabled="isDisabled" :supplementList="repotData.supplementList1" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div> </div>
<!-- 其他信息 --> <!-- 其他信息 -->
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</div> </div>
</div> </div>
<div> <div>
<explanation :supplementList="repotData.supplementList2"></explanation> <explanation :supplementList="repotData.supplementList2" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -2,25 +2,73 @@ ...@@ -2,25 +2,73 @@
<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-item" v-for="(item, idx) in supplementListTemp" :key="idx">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label> <div class="explanation-list">
<el-input :disabled="isCheck || isDisabled" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input> <label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<i class="el-icon-delete del" v-if="!isCheck&&supplementList.length > 1" @click="handleDel(idx)"></i> <el-input :disabled="isCheck || isDisabled || item.operation == 1" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!isCheck && supplementListTemp.length > 1&&item.operation!=1" @click="handleDel(idx)"></i>
<div class="follow-list" @click="showFollow">跟进记录</div>
</div>
<div class="operator">
<div>操作人:{{ item.operationUser ? item.operationUser : '--' }}</div>
<div>操作时间:{{ item.operationTime ? item.operationTime : '--' }}</div>
</div>
</div> </div>
</div> </div>
<div v-if="!isCheck &&!isDisabled" class="add-explanation" @click="addExplanation"> <div v-if="!isCheck && !isDisabled" class="add-explanation" @click="addExplanation">
<i class="el-icon-circle-plus-outline"></i> <i class="el-icon-circle-plus-outline"></i>
<span>新增说明</span> <span>新增说明</span>
</div> </div>
</Card> </Card>
<!-- 跟进记录 -->
<GLDialog :title="followDialogTitle" mode="mid" :close-on-press-escape="false" :close-on-click-modal="false" :visible.sync="followDialog" bef :okText="followOkText" @onOk="toAddFollw" @onCancel="closeFollow">
<template v-if="!followEditStatus">
<div class="wrap_time_line">
<templatece v-if="!followResult">
<el-timeline reverse="true">
<el-timeline-item :class="[{ spec: !index }]" v-for="(item, index) in followListData" :key="index" :timestamp="item.createdDate">
{{ item.content }}
</el-timeline-item>
</el-timeline>
</templatece>
<template v-else>
<div style="margin-top: 60px; text-align: center">暂无跟进记录</div>
</template>
</div>
</template>
<template v-if="followEditStatus">
<div class="wrap_time_line">
<div class="col">
<div class="label">
<span style="color: #eb4e4e">*</span>
<span>具体描述:</span>
</div>
<div class="fill">
<el-input maxlength="200" style="width: 432px" type="textarea" :rows="3" placeholder="请输入" v-model="followContent"></el-input>
</div>
</div>
</div>
</template>
</GLDialog>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Card from './card.vue' import Card from './card.vue'
import * as dayjs from 'dayjs'
export default { export default {
name: 'explanation', name: 'explanation',
data() { data() {
return {} return {
followDialog: false,
followListData: [],
followDialogTitle: '跟进记录',
followOkText: '新增',
followEditStatus: false,
followContent: '',
followResult: false,
curentFollowInfo:'',
supplementListTemp:[{ content: '' }]
}
}, },
components: { components: {
Card Card
...@@ -34,29 +82,105 @@ export default { ...@@ -34,29 +82,105 @@ export default {
}, },
isCheck:Boolean, isCheck:Boolean,
isDisabled:Boolean, isDisabled:Boolean,
operatorName:String,
id:Number
},
mounted() {
},
watch:{
supplementList(val){
this.supplementListTemp = val
val.forEach(item=>{
item.operationTime = dayjs( item.operationTime).format('YYYY-MM-DD HH:mm:ss')
})
}
}, },
mounted() {},
methods: { methods: {
showFollow() {
this.followDialog = true
this.curentFollowInfo = {
id:this.id,
operatorName:this.operatorName
}
this.followListData = []
this.getFollowList(this.curentFollowInfo)
},
closeFollow() {
if (this.followEditStatus) {
// 切换
this.followDialogTitle = '跟进记录'
this.followEditStatus = false
this.followOkText = '新增'
} else {
// 关闭弹窗
this.followDialog = false
this.curentFollowInfo = null
this.followOkText = '新增'
}
},
toAddFollw() {
if (!this.followEditStatus) {
// 切换新增
this.followDialogTitle = '新增记录'
this.followOkText = '提交'
this.followEditStatus = true
} else {
// 切换查看
this.followDialogTitle = '跟进记录'
this.followOkText = '新增'
this.followEditStatus = false
this.createFollow()
}
},
createFollow() {
let para = {
claimsId: this.curentFollowInfo.id,
content: this.followContent,
createdBy: this.curentFollowInfo.operatorName
}
this.$apis.claims.addGHClaimFollowsListApi(para).then(res => {
this.followDialogTitle = '跟进记录'
this.followOkText = '新增'
this.followEditStatus = false
this.getFollowList(this.curentFollowInfo)
this.$message({
message: '新增成功',
type: 'success'
})
})
},
getFollowList(row) {
this.$apis.claims.getGHClaimFollowsListApi({ claimsId: row.id }).then(res => {
res.forEach(el => {
el.createdDate = dayjs(el.createdDate).format('YYYY-MM-DD HH:mm:ss')
})
this.followListData = res || []
this.followResult = res.length ? false : true
})
},
handleDel(idx) { handleDel(idx) {
this.$delete(this.supplementList, idx) this.$delete(this.supplementListTemp, idx)
}, },
addExplanation() { addExplanation() {
const idx = this.supplementList.length const idx = this.supplementListTemp.length
const newObj = { claimsId: this.supplementList[idx - 1].claimsId, content: '' } const newObj = { claimsId: this.supplementListTemp[idx - 1].claimsId, content: '' }
this.$set(this.supplementList, idx, newObj) this.$set(this.supplementListTemp, idx, newObj)
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.explanation { .explanation {
.explanation-list { .explanation-item {
display: flex;
// align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
&:last-child { &:last-child {
margin-bottom: 10px; margin-bottom: 10px;
} }
}
.explanation-list {
position: relative;
display: flex;
/deep/ .el-textarea { /deep/ .el-textarea {
width: 580px; width: 580px;
} }
...@@ -80,7 +204,7 @@ export default { ...@@ -80,7 +204,7 @@ export default {
} }
.add-explanation { .add-explanation {
color: #5850FF; color: #5850ff;
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: 154px; margin-left: 154px;
...@@ -93,4 +217,22 @@ export default { ...@@ -93,4 +217,22 @@ export default {
font-size: 12px; font-size: 12px;
} }
} }
.operator {
font-size: 12px;
color: #666666;
display: flex;
justify-content: space-between;
margin-left: 154px;
width: 580px;
margin-top: 4px;
margin-bottom: 20px;
}
.follow-list {
font-size: 14px;
color: #5850ff;
bottom: 0;
position: absolute;
left: 742px;
cursor: pointer;
}
</style> </style>
<template>
<GLDialog :destroy-on-close="isdestroy" :close-on-click-modal="false" title="跟进人配置" mode="mid" :visible.sync="isFollowSync" :before-close="handleCancel">
<GLTable :hasPage="false" :hasNum="true" :tableData="followListData" :tableParams="followTableParams">
<div slot="followName" slot-scope="scope">
<el-form v-if="scope.scope.followName == ''">
<el-form-item style="margin-bottom: 0px">
<el-input v-model="followName" placeholder="请输入" maxlength="5"></el-input>
</el-form-item>
</el-form>
<span v-else>{{ scope.scope.followName }}</span>
</div>
<div class="table-btns" slot="table-btns" slot-scope="scope">
<el-button type="text" size="small" @click="handleDelete(scope.scope, scope.index)">删除</el-button>
</div>
</GLTable>
<div class="add-wrap" @click="addLine">
<i class="el-icon-circle-plus-outline add-icon"></i>
添加
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel">取消</el-button>
<el-button type="primary" size="small" @click="handleSave">确定</el-button>
</span>
</GLDialog>
</template>
<script>
export default {
data() {
return {
isdestroy: true,
followListData: [],
followName: '',
followTableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '跟进人',
prop: 'followName',
addHtml: 'followName'
},
{
label: '操作',
prop: '',
width: 80,
fixed: 'right',
addHtml: 'table-btns'
}
]
}
}
},
props: {
isFollowSync: {
type: Boolean,
default: false
}
},
created() {
this.getFollowPersonList()
},
methods: {
getFollowPersonList() {
this.$apis.claims
.getFollowPersonList({
pageSize: 10000,
pageNum: 1
})
.then(res => {
this.followListData = res.list
})
},
addLine() {
if (this.followListData.length > 0 && this.followListData[this.followListData.length - 1].followName == '') {
return
}
this.followName = ''
this.followListData.push({ followName: '' })
},
handleSave() {
if (this.followListData[this.followListData.length - 1].followName == '' && this.followName == '') {
this.$message({
type: 'error',
message: '请输入跟进人'
})
return
}
if (this.followName) {
this.$apis.claims.addFollowPerson({ followName: this.followName }).then(res => {
this.$message({
type: 'success',
message: '添加成功!'
})
})
}
this.$emit('handleClose')
},
handleCancel() {
// this.isFollowSync = false
this.$emit('handleClose')
},
handleCalculate() {},
//删除
handleDelete(data, index) {
if (data.id) {
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
if (data.id) {
this.$apis.claims.delFollowPerson({ id: data.id }).then(res => {})
this.followListData.splice(index, 1)
}
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
} else {
this.followListData.splice(index, 1)
}
}
}
}
</script>
<style scoped lang="scss">
.add-wrap {
display: flex;
align-items: center;
font-size: 12px;
color: #5850ff;
margin-top: 10px;
cursor: pointer;
.add-icon {
margin-right: 6px;
font-size: 20px;
color: #5850ff;
}
}
</style>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="">{{ img.secondClassifyName }}</div> <div class="">{{ img.secondClassifyName }}</div>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> <img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> --> <!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc"> <div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div class="">{{ img.secondClassifyName }}</div> <div class="">{{ img.secondClassifyName }}</div>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> <img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> --> <!-- <div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc"> <div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<span>图片{{ i + 1 }}</span> <span>图片{{ i + 1 }}</span>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentFile]" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> <img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<!-- <div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div> --> <!-- <div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div> -->
<div v-if="img.auditStatus == 0" class="errMsg flex_cc"> <div v-if="img.auditStatus == 0" class="errMsg flex_cc">
...@@ -161,7 +161,9 @@ export default { ...@@ -161,7 +161,9 @@ export default {
} }
], ],
currentServicesIndex: 0, currentServicesIndex: 0,
otherUploadIndex: null otherUploadIndex: null,
srcList:[]
} }
}, },
components: { components: {
...@@ -176,7 +178,20 @@ export default { ...@@ -176,7 +178,20 @@ export default {
isClaims: Boolean isClaims: Boolean
}, },
mounted() {}, mounted() {},
watch:{
insuranceAttachmentConfigs(val){
this.getImgList(val[0])
}
},
methods: { methods: {
getImgList(data){
this.srcList=[]
data.secondClassifyList.forEach(item=>{
item.attachmentList.forEach(img=>{
this.srcList.push(img.attachmentFile)
})
})
},
toMutiCheck() { toMutiCheck() {
this.insuranceAttachmentConfigs.forEach((item, index) => { this.insuranceAttachmentConfigs.forEach((item, index) => {
item.secondClassifyList.forEach(child => { item.secondClassifyList.forEach(child => {
...@@ -192,6 +207,7 @@ export default { ...@@ -192,6 +207,7 @@ export default {
changeTabs(e) { changeTabs(e) {
this.activeName = e.index.toString() this.activeName = e.index.toString()
this.currentIndx = e.index this.currentIndx = e.index
this.getImgList(this.insuranceAttachmentConfigs[this.currentIndx])
}, },
handleReview() { handleReview() {
this.$refs.fastReviewDialog.initDialog() this.$refs.fastReviewDialog.initDialog()
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<div class="">{{ img.secondClassifyName }}</div> <div class="">{{ img.secondClassifyName }}</div>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image> <el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> --> <!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> <div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<span>{{ img.secondClassifyName }}</span> <span>{{ img.secondClassifyName }}</span>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image> <el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> --> <!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> <div v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
</div> </div>
<!-- 案件补充说明 --> <!-- 案件补充说明 -->
<div> <div>
<explanation :isCheck="true" :supplementList="repotData.supplementList2"></explanation> <explanation :isCheck="true" :supplementList="repotData.supplementList2" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="first"> <el-tab-pane class="bg" label="定损信息" name="first">
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
<div class="">{{ img.secondClassifyName }}</div> <div class="">{{ img.secondClassifyName }}</div>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image> <el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> --> <!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<!-- <div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> --> <!-- <div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
<span>{{ img.secondClassifyName }}</span> <span>{{ img.secondClassifyName }}</span>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length && img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentList.length && img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image> <el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> --> <!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<!-- <div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> --> <!-- <div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div> -->
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
<span>图片{{ i + 1 }}</span> <span>图片{{ i + 1 }}</span>
</div> </div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]"> <div class="img_pannel flex_cc" :class="[{ errBorder: img.auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentFile]" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image> <el-image :preview-src-list="srcList" v-if="img.attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentFile" :fit="fit"></el-image>
<el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image> <el-image v-else style="width: 216px; height: 135px; border-radius: 4px" :preview-src-list="[img.exampleUrl]" :src="img.exampleUrl" :fit="fit"></el-image>
<!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> --> <!-- <img v-else :src="cameraUrl" style="width: 40px; height: 40px" /> -->
<!-- <div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div> --> <!-- <div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div> -->
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
</div> </div>
<!-- 案件补充说明 --> <!-- 案件补充说明 -->
<div> <div>
<explanation :isCheck="true" :supplementList="repotData.supplementList1"></explanation> <explanation :isCheck="true" :supplementList="repotData.supplementList1" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div> </div>
<!-- 其他信息 --> <!-- 其他信息 -->
...@@ -321,7 +321,8 @@ export default { ...@@ -321,7 +321,8 @@ export default {
activeName: '0', activeName: '0',
activeNameClaims: '0', activeNameClaims: '0',
currentServicesIndex: 0, currentServicesIndex: 0,
activeNameTabs: 'first' activeNameTabs: 'first',
srcList:[]
} }
}, },
props: { props: {
...@@ -334,7 +335,22 @@ export default { ...@@ -334,7 +335,22 @@ export default {
otherInfoData: Object, otherInfoData: Object,
lossTypeList:Array lossTypeList:Array
}, },
mounted() {}, mounted() {
},
watch:{
images(val){
this.getImgList(val[0])
},
activeNameTabs(val){
if(val=='first'){
this.getImgList(this.images[0])
}else{
this.getImgList(this.images2[0])
}
}
},
methods: { methods: {
selectServices(index) { selectServices(index) {
this.currentServicesIndex = index this.currentServicesIndex = index
...@@ -342,10 +358,22 @@ export default { ...@@ -342,10 +358,22 @@ export default {
changeTabs(e) { changeTabs(e) {
this.activeName = e.index.toString() this.activeName = e.index.toString()
this.currentIndx = e.index this.currentIndx = e.index
this.getImgList(this.images[this.currentIndx])
}, },
changeTabss(e) { changeTabss(e) {
this.activeNameClaims = e.index.toString() this.activeNameClaims = e.index.toString()
this.currentIndxClaims = e.index this.currentIndxClaims = e.index
this.getImgList(this.images2[this.currentIndxClaims])
},
getImgList(data){
this.srcList=[]
data.secondClassifyList.forEach(item=>{
item.attachmentList.forEach(img=>{
this.srcList.push(img.attachmentFile)
})
})
} }
} }
} }
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<div class="table_top_line flex_scb"> <div class="table_top_line flex_scb">
<span>核赔订单列表</span> <span>核赔订单列表</span>
<div class="table_top_btn flex_sc"> <div class="table_top_btn flex_sc">
<GLButton size="small" fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton>
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton> <GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<el-button plain size="small" @click="exportList">导出</el-button> <el-button plain size="small" @click="exportList">导出</el-button>
</div> </div>
...@@ -97,9 +98,12 @@ ...@@ -97,9 +98,12 @@
</div> </div>
</div> </div>
</GLDialog> </GLDialog>
<!-- 跟进人配置 -->
<follow-pop ref="followRef" @handleClose="handleClose" :isFollowSync="isFollowSync" v-if="isFollowSync"></follow-pop>
</div> </div>
</template> </template>
<script> <script>
import followPop from './components/followPop'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
//服务状态:0-待提交国任 1-待支付 2-校验不通过 3-支付成功 4-支付失败 //服务状态:0-待提交国任 1-待支付 2-校验不通过 3-支付成功 4-支付失败
const statusList = [ const statusList = [
...@@ -143,18 +147,18 @@ const statusList = [ ...@@ -143,18 +147,18 @@ const statusList = [
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: '待核赔'
...@@ -168,10 +172,30 @@ const statusList = [ ...@@ -168,10 +172,30 @@ const statusList = [
confName: '核赔通过' confName: '核赔通过'
} }
] ]
const describeList = [
{
confId: '',
confName: '全部'
},
{
confId: '拒赔',
confName: '拒赔'
},
{
confId: '资料不清晰',
confName: '资料不清晰'
}
]
const followList = [
{
confId: '',
confName: '全部'
}
]
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过'] const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过']
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74'] const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74']
// 操作对应状态 // 操作对应状态
const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3] // 查看 const WATCH = [5, 7, 13, 8, 9, 10, 11, 1, 3, 4] // 查看
const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付 const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付
const CHECK = [6, 12] // 审核 const CHECK = [6, 12] // 审核
const RE_SUMBIT = [2] //重新提交 const RE_SUMBIT = [2] //重新提交
...@@ -182,6 +206,7 @@ export default { ...@@ -182,6 +206,7 @@ export default {
name: 'index', name: 'index',
data() { data() {
return { return {
isFollowSync: false,
signImage: '', signImage: '',
showUpload: false, showUpload: false,
tableStatus, tableStatus,
...@@ -345,6 +370,15 @@ export default { ...@@ -345,6 +370,15 @@ export default {
optionLabel: 'confName' optionLabel: 'confName'
}, },
{ {
label: '状态描述',
name: 'statusDesc',
type: 'select',
isClear: true,
optionList: describeList,
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '门店提交时间', label: '门店提交时间',
name: 'shopDate', name: 'shopDate',
type: 'datePicker', type: 'datePicker',
...@@ -357,7 +391,7 @@ export default { ...@@ -357,7 +391,7 @@ export default {
type: 'select', type: 'select',
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: 'provinceMerchantId', optionId: 'merchantNo',
optionLabel: 'merchantName', optionLabel: 'merchantName',
changeAttr: val => { changeAttr: val => {
this.getmidMerchantList(val) this.getmidMerchantList(val)
...@@ -369,7 +403,7 @@ export default { ...@@ -369,7 +403,7 @@ export default {
type: 'select', type: 'select',
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: 'cityMerchantId', optionId: 'merchantNo',
optionLabel: 'merchantName', optionLabel: 'merchantName',
changeAttr: val => { changeAttr: val => {
this.getdMerchantList(val) this.getdMerchantList(val)
...@@ -381,7 +415,7 @@ export default { ...@@ -381,7 +415,7 @@ export default {
type: 'select', type: 'select',
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantNo',
optionLabel: 'merchantName' optionLabel: 'merchantName'
}, },
{ {
...@@ -390,6 +424,15 @@ export default { ...@@ -390,6 +424,15 @@ export default {
type: 'datePicker', type: 'datePicker',
pickerOptions: 'beforeRangePickerOptions', pickerOptions: 'beforeRangePickerOptions',
isClear: true isClear: true
},
{
label: '跟进人',
name: 'followPersonId',
type: 'select',
isClear: true,
optionList: followList,
optionId: 'id',
optionLabel: 'followName'
} }
], ],
tableParams: { tableParams: {
...@@ -508,6 +551,15 @@ export default { ...@@ -508,6 +551,15 @@ export default {
return cellValue.paymentAmount || '-' return cellValue.paymentAmount || '-'
} }
}, },
{
label: '跟进人',
prop: 'followName',
width: 100,
formatter: cellValue => {
return cellValue.followName || '-'
}
},
{ {
label: '操作人', label: '操作人',
prop: 'operatorName', prop: 'operatorName',
...@@ -598,29 +650,49 @@ export default { ...@@ -598,29 +650,49 @@ export default {
colors colors
} }
}, },
components: {
followPop
},
created() { created() {
this.getClaimsCount() this.getClaimsCount()
this.getMerchantData() this.getMerchantData()
this.getFollowPersonList()
}, },
mounted() {}, mounted() {},
methods: { methods: {
getFollowPersonList() {
this.$apis.claims
.getFollowPersonList({
pageSize: 10000,
pageNum: 1
})
.then(res => {
this.searchFormData[8].optionList = [{ followName: '全部', id: '' }].concat(res.list) || []
})
},
//跟进人配置
handleConfig() {
this.isFollowSync = true
},
handleClose() {
this.isFollowSync = false
},
// 获取当前登录人的商户层级 // 获取当前登录人的商户层级
getMerchantData() { getMerchantData() {
this.$apis.claims.getBigMerchantApi({}).then(res => { this.$apis.claims.getMerchantSubList({}).then(res => {
this.searchFormData[3].optionList = res || [] this.searchFormData[4].optionList = res || []
}) })
}, },
getmidMerchantList(provinceMerchantId) { getmidMerchantList(provinceMerchantId) {
this.$apis.claims.getMidMerchantApi({ provinceMerchantId }).then(res => { this.$apis.claims.getMerchantSubList({ accountLevel: 3, merchantId: provinceMerchantId }).then(res => {
this.searchFormData[4].optionList = res || [] this.searchFormData[5].optionList = res || []
this.searchFormData[4].isHide = false this.searchFormData[5].isHide = false
}) })
}, },
getdMerchantList(cityMerchantId) { getdMerchantList(cityMerchantId) {
this.$apis.claims.getMerchantApi({ cityMerchantId }).then(res => { this.$apis.claims.getMerchantSubList({ accountLevel: 4, merchantId: cityMerchantId }).then(res => {
this.searchFormData[5].optionList = res || [] this.searchFormData[6].optionList = res || []
this.searchFormData[5].isHide = false this.searchFormData[6].isHide = false
}) })
}, },
showFollow(row) { showFollow(row) {
......
...@@ -200,7 +200,8 @@ export default { ...@@ -200,7 +200,8 @@ export default {
attachments1: res.attachments1, attachments1: res.attachments1,
attachments2: res.attachments2, attachments2: res.attachments2,
attachments3: res.attachments3, attachments3: res.attachments3,
claimsAttachmentConfigs2: res.claimsAttachmentConfigs2 claimsAttachmentConfigs2: res.claimsAttachmentConfigs2,
updatedBy:res.updatedBy
} }
// 图片list // 图片list
...@@ -573,11 +574,13 @@ export default { ...@@ -573,11 +574,13 @@ export default {
let claimsId = `supplementList2[${index}].claimsId` let claimsId = `supplementList2[${index}].claimsId`
let content = `supplementList2[${index}].content` let content = `supplementList2[${index}].content`
let suppType = `supplementList2[${index}].suppType` let suppType = `supplementList2[${index}].suppType`
let operation = `supplementList2[${index}].operation`
let temp = { let temp = {
[idx]: item.id, [idx]: item.id,
[claimsId]: this.orderMsg.id, [claimsId]: this.orderMsg.id,
[content]: item.content, [content]: item.content,
[suppType]: item.suppType [suppType]: item.suppType,
[operation]:1
} }
Object.assign(obj, temp) Object.assign(obj, temp)
}) })
...@@ -587,11 +590,13 @@ export default { ...@@ -587,11 +590,13 @@ export default {
let claimsId = `supplementList1[${index}].claimsId` let claimsId = `supplementList1[${index}].claimsId`
let content = `supplementList1[${index}].content` let content = `supplementList1[${index}].content`
let suppType = `supplementList1[${index}].suppType` let suppType = `supplementList1[${index}].suppType`
let operation = `supplementList1[${index}].operation`
let temp = { let temp = {
[idx]: item.id, [idx]: item.id,
[claimsId]: this.orderMsg.id, [claimsId]: this.orderMsg.id,
[content]: item.content, [content]: item.content,
[suppType]: item.suppType [suppType]: item.suppType,
[operation]:1
} }
Object.assign(obj, temp) Object.assign(obj, temp)
}) })
...@@ -863,4 +868,4 @@ export default { ...@@ -863,4 +868,4 @@ export default {
align-items: center; align-items: center;
margin: 16px 0 20px 0; margin: 16px 0 20px 0;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
<el-row slot> <el-row slot>
<el-form :model="searchForm" ref="relate" :inline="true" label-width="90px" class="configDialog"> <el-form :model="searchForm" ref="relate" :inline="true" label-width="90px" class="configDialog">
<el-form-item> <el-form-item>
<el-input placeholder="请输入内容" v-model="searchForm.selectInput" class="input-with-select" size="small"> <el-input placeholder="请输入内容" v-model="searchForm.selectInput" class="input-with-select" size="small">
<el-select v-model="searchForm.select" slot="prepend" placeholder="请选择"> <el-select v-model="searchForm.select" slot="prepend" placeholder="请选择">
<el-option label="商户名称" value="1"></el-option> <el-option label="商户名称" value="1"></el-option>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!