Commit 5f57c40d by 前端

Merge branch 'v2.10.0' into 'develop'

合并理赔系统版本

See merge request !13
2 parents c77f4943 88e72599
Showing 46 changed files with 1585 additions and 993 deletions
This diff could not be displayed because it is too large.
...@@ -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": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.7", "glsx-components": "^1.5.2",
"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",
......
...@@ -163,7 +163,7 @@ const getProListApi = params => { ...@@ -163,7 +163,7 @@ const getProListApi = params => {
// 获取无忧卡套餐列表 // 获取无忧卡套餐列表
const getPackageListApi = params => { const getPackageListApi = params => {
params.method = `scrm.api.equity.service.package.dj.list.get` params.method = `scrm.api.equity.service.package.dj.list.get`
// params.method = `scrm.api.equity.service.package.list.get` // params.method = `scrm.api.equity.service.package.list.get`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
...@@ -325,50 +325,81 @@ const spaAgressData = params => { ...@@ -325,50 +325,81 @@ const spaAgressData = params => {
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
// 店铺信息 // 店铺信息
const merchantInfo = params => { const merchantInfo = params => {
params.method = 'scrm.api.equity.common.merchant.detail.det' params.method = 'scrm.api.equity.common.merchant.detail.det'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
// 卡号---获取期限 // 卡号---获取期限
const dateBycarNo = params => { const dateBycarNo = params => {
params.method = 'scrm.api.equity.service.cfc.get.by.seqno' params.method = 'scrm.api.equity.service.cfc.get.by.seqno'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true
}) })
} }
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo,activeCodeList,updateActiveCode }
\ No newline at end of file \ No newline at end of file
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取汇总订单列表
const getOrdersummary = params => {
params.method = 'scrm.api.equity.service.order.summary.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取汇总产品列表
const getSummaryPackage = params => {
params.method = 'scrm.api.equity.service.summary.package'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getSummaryExportApi = params => {
params.method = `scrm.api.equity.service.order.summary.export`
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getOrdersummary, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode }
...@@ -124,4 +124,228 @@ const getAccountInfo = params => { ...@@ -124,4 +124,228 @@ const getAccountInfo = params => {
}) })
} }
export default { getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo } /**广汇端---接口 */
// 获取核赔列表接口
const getGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 新增跟进记录
const addGHClaimFollowsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.followLog.create'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取跟进记录
const getGHClaimFollowsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.followLog.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 导出核赔列表
const exportGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.gh.list.export'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 运营端核赔订单审核通用接口
const checkGHClaimsListApi = params => {
params.method = 'scrm.api.equity.service.claims.operate.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 历史赔付记录
const getGHhistoryListApi = params => {
params.method = 'scrm.api.equity.mini.service.claims.history.records.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取定损和核赔详情
const getGHClaimsDetailApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.detail.new'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单资料获取
const getGHattachmentApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.attachment.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单手机传图资料获取
const getGHPhoneImageApi = params => {
params.method = 'scrm.api.equity.service.claims.merchant.phone.attachment'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔订单获取订单数
const getGHCountApi = params => {
params.method = 'scrm.api.equity.service.claims.gh.list.count'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 图片上传
const uploadImgApi = params => {
params.method = 'scrm.api.carlife.common.uploadImg'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
// 获取其他资料
const getOrderOherInfo = params => {
params.method = 'scrm.api.equity.service.claims.merchant.package.info'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损审核接口
const checkOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.draft.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔审核
const checkClaimsOrderApi = params => {
params.method = 'scrm.api.equity.service.claims.audit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 撤销审核
const cancelClaims = params => {
params.method = 'scrm.api.equity.service.claims.audit.cancel'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 定损保存草稿
const saveCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 核赔保存草稿
const saveClaimsCG = params => {
params.method = 'scrm.api.equity.service.claims.merchant.claims.draft.or.commit'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 上传签名
const saveSign = params => {
params.method = 'scrm.api.equity.service.claims.sign.save'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取大区
const getBigMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.province.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据大区获取片区
const getMidMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.city.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据选择的片区获取门店
const getMerchantApi = params => {
params.method = 'scrm.api.equity.service.merchant.merchant.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default {getMerchantApi,getMidMerchantApi,getBigMerchantApi,saveSign,saveClaimsCG,saveCG,cancelClaims,checkClaimsOrderApi,checkOrderApi,getOrderOherInfo,uploadImgApi,getGHCountApi,getGHPhoneImageApi,getGHattachmentApi,getGHClaimsDetailApi,getGHhistoryListApi,checkGHClaimsListApi,exportGHClaimsListApi,getGHClaimFollowsListApi,addGHClaimFollowsListApi,getGHClaimsListApi,getclaimsList, getclaimsCount, resubmitOrder, commitClaimsOrder, getClaimsDetail, exportClaimsData, checkContractNo, getDetailByWOCode, getBankList, getCityList, getAccountInfo }
...@@ -165,17 +165,20 @@ ...@@ -165,17 +165,20 @@
background: #ffffff; background: #ffffff;
margin: 0 0 20px 0; margin: 0 0 20px 0;
padding: 20px; padding: 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1); // box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
} }
.equity-wrap .contain .el-table__empty-text { .equity-wrap .contain .el-table__empty-text {
display: inline-block; display: inline-block;
width: 64px; width: 64px;
height: 41px; height: 41px;
} }
.fr-mr0 { .fr-mr0 {
float: right; float: right;
margin-right: 0px !important; margin-right: 0px !important;
} }
// 单行省略 // 单行省略
.ellipsis-1 { .ellipsis-1 {
overflow: hidden; overflow: hidden;
...@@ -184,9 +187,11 @@ ...@@ -184,9 +187,11 @@
-o-text-overflow: ellipsis; -o-text-overflow: ellipsis;
/* for Opera */ /* for Opera */
} }
.mb10 { .mb10 {
margin-bottom: 10px; margin-bottom: 10px;
} }
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。 // 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2 { .ellipsis-2 {
overflow: hidden; overflow: hidden;
...@@ -211,6 +216,7 @@ ...@@ -211,6 +216,7 @@
background: -moz-linear-gradient(left, transparent, #fff 55%); background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%); background: linear-gradient(to right, transparent, #fff 55%);
} }
.el-scrollbar__bar.is-horizontal { .el-scrollbar__bar.is-horizontal {
height: 10px !important; height: 10px !important;
left: 10px; left: 10px;
...@@ -291,6 +297,7 @@ ...@@ -291,6 +297,7 @@
margin: 0 0 30px 0; margin: 0 0 30px 0;
padding-left: 8px; padding-left: 8px;
} }
// .app { // .app {
// background: #f4f5fa; // background: #f4f5fa;
// padding: 0px 0 20px 0; // padding: 0px 0 20px 0;
...@@ -305,17 +312,20 @@ ...@@ -305,17 +312,20 @@
.el-cascader-menu { .el-cascader-menu {
max-height: 250px; max-height: 250px;
} }
.primary_plain_btn { .primary_plain_btn {
.el-button--primary.is-plain { .el-button--primary.is-plain {
color: #5850ff; color: #5850ff;
background-color: #fff; background-color: #fff;
border-color: #5850ff; border-color: #5850ff;
} }
.el-button--primary.is-plain:hover { .el-button--primary.is-plain:hover {
color: #7973ff; color: #7973ff;
background-color: #fff; background-color: #fff;
border-color: #7973ff; border-color: #7973ff;
} }
.el-button--primary.is-plain:active { .el-button--primary.is-plain:active {
color: #3a32e1; color: #3a32e1;
background-color: #fff; background-color: #fff;
...@@ -325,6 +335,7 @@ ...@@ -325,6 +335,7 @@
.el-loading-mask { .el-loading-mask {
.el-loading-spinner { .el-loading-spinner {
.el-icon-loading, .el-icon-loading,
.el-loading-text { .el-loading-text {
color: #5850ff; color: #5850ff;
...@@ -332,6 +343,141 @@ ...@@ -332,6 +343,141 @@
} }
} }
// 核赔订单详情样式
.order-container-page {
.widget {
background: white;
.title {
padding: 0 20px;
height: 57px;
line-height: 57px;
border-bottom: 1px solid #e5e5e5;
}
.content {
.code {
padding: 8px 20px;
background: #f9f9f9;
}
.pannel {
.line {
margin-top: 20px;
.label {
width: 154px;
text-align: right;
}
.value {
width: 432px;
}
}
}
.element_wrap {
display: flex;
.label {
width: 154px;
text-align: right;
font-size: 16px;
font-weight: 400;
color: #333333;
}
.pannel {
.wrapper {
margin-bottom: 16px;
.name {
font-size: 16px;
font-weight: 400;
color: #333333;
margin-bottom: 8px;
}
.messag {
width: 686px;
// height: 60px;
background: #f9f9f9;
box-sizing: border-box;
padding: 0 20px;
.ms {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.price {
color: #333333;
}
}
.pannel_box {
width: 686px;
background: #f9f9f9;
box-sizing: border-box;
padding: 20px;
display: flex;
flex-wrap: wrap;
.line {
margin-bottom: 20px;
.lab {
font-size: 14px;
font-weight: 400;
color: #666666;
text-align: right;
width: 154px;
}
.tip {
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
}
}
}
.total {
padding: 12px 20px;
background: #f9f9f9;
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
}
.pad20 {
padding: 20px;
}
}
.flex_wrap {
display: flex;
flex-wrap: wrap;
}
.text_14_4_333 {
font-size: 14px;
font-weight: 400;
color: #333333;
}
.text_14_4_666 {
font-size: 14px;
font-weight: 400;
color: #666666;
}
}
// .equity-wrap table { // .equity-wrap table {
// width: 98%; // width: 98%;
// color: #666666; // color: #666666;
...@@ -359,3 +505,18 @@ ...@@ -359,3 +505,18 @@
// .equity-wrap table td { // .equity-wrap table td {
// min-width: 50px; // min-width: 50px;
// } // }
.page-btm-btn {
display: flex;
justify-content: center;
margin-top: 16px;
}
.el-message.msgHierarchy {
z-index: 5000 !important;
}
.el-popover.imgPopper {
.el-form-item {
margin: 0 !important;
}
}
\ No newline at end of file \ No newline at end of file
import GLCombiForm from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLCombiForm.install = function(Vue) {
Vue.component(GLCombiForm.name, GLCombiForm)
}
// 默认导出组件
export default GLCombiForm
\ No newline at end of file \ No newline at end of file
/**
* 时间控件-限制月份
*/
export const beforeRangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const afterRangePickerOptions = {
disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate() - 1))
if (date < yesterday) {
return true
}
return false
}
}
import GLSearch from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLSearch.install = function(Vue) {
Vue.component(GLSearch.name, GLSearch)
}
// 默认导出组件
export default GLSearch
\ No newline at end of file \ No newline at end of file
<!-- <content> -->
<GLSearch @onOk="handleOkFn" @onRest="handleRestFn">
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-select v-model="value" size="small" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-date-picker size="small" v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</GLSearchItem>
<GLSearchItem>
<el-select v-model="selvalue" placeholder="请选择" size="small" slot="name">
<el-option v-for="item in seloptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
</GLSearch>
<el-button type="warning" @click="toggleShow(1)">显示代码</el-button>
```js {mixin:true}
{
data() {
return {
demo1: true,
//gl-search数据
input: '',
options: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎'
},
{
value: '选项4',
label: '龙须面'
},
{
value: '选项5',
label: '北京烤鸭'
}
],
value: '',
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
seloptions: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎北京烤鸭'
},
{
value: '选项4',
label: '龙须面北京烤鸭'
},
{
value: '选项5',
label: '北京烤鸭北京烤鸭'
}
],
selvalue: ''
}
},
methods:{
toggleShow(num){
// console.log(123)
this['demo' + num] = !this['demo' + num]
},
//gl-search 方法
handleOkFn() {
console.log('您点击了确定')
},
handleRestFn() {
console.log('您点击了取消')
}
}
}
```
# 用来作为 markdown 代码的示例部分
<div v-if="demo1">
```vue
<template>
<GLSearch @onOk="handleOkFn" @onRest="handleRestFn">
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-select v-model="value" size="small" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</GLSearchItem>
<GLSearchItem>
<div slot="name">我是文本输入框</div>
<el-date-picker size="small" v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</GLSearchItem>
<GLSearchItem>
<el-select v-model="selvalue" placeholder="请选择" size="small" slot="name">
<el-option v-for="item in seloptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
</GLSearch>
</template>
<script>
import {GLSearch, GLSearchItem} from 'glsx-components'
// 全局引入一次css即可
import 'glsx-components/dist/glsx-components.css'
export default {
data() {
return {
//gl-search数据
input: '',
options: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎'
},
{
value: '选项4',
label: '龙须面'
},
{
value: '选项5',
label: '北京烤鸭'
}
],
value: '',
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
seloptions: [
{
value: '选项1',
label: '黄金糕'
},
{
value: '选项2',
label: '双皮奶'
},
{
value: '选项3',
label: '蚵仔煎北京烤鸭'
},
{
value: '选项4',
label: '龙须面北京烤鸭'
},
{
value: '选项5',
label: '北京烤鸭北京烤鸭'
}
],
selvalue: ''
}
},
methods: {
handleOkFn() {
console.log('您点击了确定')
},
handleRestFn() {
console.log('您点击了取消')
}
}
}
</script>
```
</div>
<!-- </content> -->
<template>
<div class="gl-search" id="gl-search" :class="{ transTo: !expand }">
<div class="search-list">
<!-- 默认插槽 -->
<slot></slot>
<!-- <div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div> -->
<!-- <div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div> -->
<!-- <div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div>
<div class="search-item">
<div class="name">我是文本输入框</div>
<div class="input">
<el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input>
</div>
</div> -->
</div>
<div class="gl-operate">
<div class="operate">
<el-button size="small" type="primary" @click="handleOk">查询</el-button>
<el-button size="small" @click="handleRest">重置</el-button>
<el-button type="text" size="small" @click="expandFn" v-if="hasExpand">
<span>{{ !expand ? '展开' : '收起' }}</span>
<i class="expand" :class="classIcon"></i>
</el-button>
<!-- <i class="el-icon-arrow-down expand"></i> -->
<!-- <i class="el-icon-arrow-up"></i> -->
</div>
</div>
</div>
</template>
<script>
export default {
name: 'GLSearch',
props: {},
data() {
return {
// input: '',
expand: false,
itemNum: 0,
time: null,
hasExpand: false
}
},
created() {},
mounted() {
this.getItemNum()
// 判断宽度按,是否显示展开收起
this.getClientWith()
window.addEventListener('resize', this.getClientWith, false)
},
computed: {
classIcon() {
return !this.expand ? 'el-icon-arrow-down' : 'el-icon-arrow-up'
}
},
methods: {
// 展开收起
expandFn() {
this.expand = !this.expand
},
// 获取item 输入框 的个数
getItemNum() {
const items = document.getElementById('gl-search').getElementsByClassName('search-item').length
this.itemNum = items
},
// 判断是否有展开收起标志
ifHasExpand(nowCol) {
if (this.itemNum > nowCol) {
return true
}
return false
},
// 监听函数
getClientWith() {
if (this.time) clearTimeout(this.time)
this.time = setTimeout(() => {
const clientWidth = document.documentElement.clientWidth
// console.log('clientWidth: ', clientWidth)
if (clientWidth <= 800) {
// 1列
this.hasExpand = this.ifHasExpand(1)
} else if (clientWidth <= 1440 && clientWidth > 800) {
// 2列
this.hasExpand = this.ifHasExpand(2)
} else if (clientWidth <= 1720 && clientWidth > 1440) {
// 3列
this.hasExpand = this.ifHasExpand(3)
} else {
// 4列
this.hasExpand = this.ifHasExpand(4)
}
}, 300)
},
handleOk() {
// 点击确定的回调
this.$emit('onOk')
},
handleRest() {
// 点击重置的回调
this.$emit('onRest')
}
},
components: {},
watch: {},
beforeDestroy() {
window.removeEventListener('resize', this.getClientWith, false)
this.time = null
}
}
</script>
<style lang="scss">
.gl-search {
&.transTo {
height: 52px;
}
display: flex;
justify-content: space-between;
overflow: hidden;
// @media screen and (max-width: 1062px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
// @media screen and (min-width: 1062px) and (max-width: 1440px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
// @media screen and (min-width: 1440px) and (max-width: 1720px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
// @media screen and (min-width: 1720px) {
// .search-list {
// .search-item {
// width: 100%;
// }
// }
// }
.search-list {
.search-item {
width: 100%;
}
}
.search-list {
flex: 1;
display: flex;
flex-wrap: wrap;
.search-item {
// flex: 1;
// padding-right: 12px;
margin-bottom: 20px;
min-width: 276px;
display: flex;
align-items: center;
box-sizing: border-box;
.name {
width: 112px;
text-align: right;
font-size: 14px;
font-weight: 400;
color: #666;
}
.input {
flex: 1;
// width:100%;
}
.el-input {
width: 100%;
}
.el-select {
width: 100%;
}
.el-date-editor {
width: 100%;
}
}
}
.gl-operate {
display: flex;
align-items: flex-end;
.operate {
text-align: left;
width: 190px;
margin-bottom: 20px;
.expand {
font-size: 14px;
}
.el-button + .el-button {
margin-left: 8px;
}
}
}
}
</style>
import GLSearchItem from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLSearchItem.install = function(Vue) {
Vue.component(GLSearchItem.name, GLSearchItem)
}
// 默认导出组件
export default GLSearchItem
\ No newline at end of file \ No newline at end of file
<template>
<div :style="{ 'padding-right': spacer + 'px' }" class="search-item">
<div class="name">
<!-- {{ label }} -->
<!-- name 插槽 -->
<slot name="name"></slot>
</div>
<div class="input">
<!-- 默认插槽 -->
<slot></slot>
<!-- <el-input
size="small"
v-model="input"
placeholder="请输入内容"
></el-input> -->
</div>
</div>
</template>
<script>
export default {
name: 'GLSearchItem',
props: {
// 每个项间隙
spacer: {
type: Number,
default: 12
}
},
data () {
return {}
},
created () {},
mounted () {},
computed: {},
methods: {},
components: {},
watch: {}
}
</script>
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :disabled="formDisable" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <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"> <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"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span> <span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span>
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<span :style="{ width: item.selectWidth || defaultWidth, display: 'inline-block' }" v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input @change="item.inputChange" :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"> <el-input @change="item.inputChange" :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 3" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span> <span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input> </el-input>
...@@ -133,6 +134,14 @@ export default { ...@@ -133,6 +134,14 @@ export default {
}, },
props: { props: {
formDisable:{
type: Boolean,
default: false
},
isInline: {
type: Boolean,
default: true
},
regionData: { regionData: {
type: Array, type: Array,
default: cityList default: cityList
...@@ -456,4 +465,7 @@ export default { ...@@ -456,4 +465,7 @@ export default {
.glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover { .glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover {
background-color: #e8e8ea; background-color: #e8e8ea;
} }
.el-textarea__inner {
font-family: auto !important;
}
</style> </style>
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width"> <GLDialog :bigTitle="bigTitle" :title="title" :mode="mode" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<span slot="title"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button> <el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
<slot name="btn-middle"></slot> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -53,6 +53,14 @@ export default { ...@@ -53,6 +53,14 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'small' default: 'small'
},
mode:{
type: String,
default: 'mid'
},
bigTitle:{
type: String,
default: ''
} }
}, },
......
<template> <template>
<glsx-dialog title="选择商户" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore"> <glsx-dialog bigTitle="选择商户" mode="big" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<slot></slot> <slot></slot>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
......
...@@ -48,6 +48,12 @@ const staticRoutes = Object.freeze([ ...@@ -48,6 +48,12 @@ const staticRoutes = Object.freeze([
meta: {} meta: {}
}, },
{ {
name: 'equitySummary',
path: '/beforeSale/equitySummary',
component: resolve => require([`@/views/beforeSale/equitySummary.vue`], resolve),
meta: {}
},
{
name: 'equityList', name: 'equityList',
path: '/beforeSale/equityList', path: '/beforeSale/equityList',
component: resolve => require([`@/views/beforeSale/equityList.vue`], resolve), component: resolve => require([`@/views/beforeSale/equityList.vue`], resolve),
......
import Vue from 'vue' import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js' import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable , GLCombiForm, GLTableButton,GLDialog} from 'glsx-components' //权限按钮 (根据权限动态创建)
// import GLCombiForm from '@/components/GlCombiForm'
// import GlSearch from '@/components/GlSearch'
// import GlSearchItem from '@/components/GlSearchItem'
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import render from './render' import render from './render'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
...@@ -12,29 +9,24 @@ import 'glsx-components/dist/glsx-components.css' ...@@ -12,29 +9,24 @@ import 'glsx-components/dist/glsx-components.css'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(GLCombiForm)
// Vue.use(GlSearch)
// Vue.use(GlSearchItem)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn' // request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn' // request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'http://192.168.1.165:7226' // request.baseURL = 'http://192.168.1.53:7226'
// request_brand.baseURL = 'http://192.168.1.165:7226' // request_brand.baseURL = 'http://192.168.1.53:7226'
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01' // // Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-9ff7f674-bf61-4ca5-ae43-6c493ac13f31-rop' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-811305a2-49a3-4e8a-b6dc-fb925c65c95c-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-27c02d95-51f9-4576-86a9-70ba0f4d76e4-rop' } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-811305a2-49a3-4e8a-b6dc-fb925c65c95c-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '781f08c5-c443-46fd-80e1-f98d94673a73' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -2,54 +2,26 @@ ...@@ -2,54 +2,26 @@
<div class="equity-wrap"> <div class="equity-wrap">
<el-button type="primary" icon="el-icon-plus" size="small" @click="showDialog('add')"><span style="margin-left: 5px">新增特别约定</span></el-button> <el-button type="primary" icon="el-icon-plus" size="small" @click="showDialog('add')"><span style="margin-left: 5px">新增特别约定</span></el-button>
<div class="equity-wrap contain" style="margin-top: 10px"> <div class="equity-wrap contain" style="margin-top: 10px">
<el-form :inline="true" label-width="auto" label-position="right" class="selectForm"> <GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="seletTable('select')" @handleRest="seletTable('reset')"></GLCombiForm>
<el-row style="align-items: center"> <el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportTable" class="selectBtn">导出</el-button>
<el-form-item label="特约名称"> <GLTable ref="appointmentTable" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<el-input v-model="appointmentForm.spaName" placeholder="请输入" size="small"></el-input>
</el-form-item>
<el-form-item label="特约内容">
<el-input v-model="appointmentForm.spaContent" placeholder="请输入" size="small"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px !important">
<el-button plain size="small" @click="seletTable('reset')" class="selectBtn">重置</el-button>
<el-button type="primary" size="small" @click="seletTable('select')" class="selectBtn">查询</el-button>
<el-button plain size="small" @click="exportTable" class="selectBtn">导出</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable ref="appointmentTable" style="margin-top:10px" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- 批次管理详情弹窗按钮 --> <!-- 批次管理详情弹窗按钮 -->
<el-button type="text" @click="showDialog(scope.scope)">修改</el-button> <!-- <el-button type="text" @click="showDialog(scope.scope)">修改</el-button>
<el-button type="text" @click="del(scope.scope)">删除</el-button> <el-button type="text" @click="del(scope.scope)">删除</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span> </span>
</GLTable> </GLTable>
<!-- 修改界面弹窗 --> <!-- 修改界面弹窗 -->
<el-dialog :title="dialogTitle" v-if="modifyDialog" :visible.sync="modifyDialog" width="712px" :before-close="handleClose" class="detailDialog"> <GLDialog class="gl-form-page gl-form-min" :title="dialogTitle" mode="mid" v-if="modifyDialog" :visible.sync="modifyDialog" :before-close="handleClose" @onOk="submitForm('modifyForm')" @onCancel="cancelDialog">
<el-form :inline="true" :model="modifyDialogForm" :rules="modifyDialogRules" ref="modifyForm" label-width="120px" class="detailForm"> <glsx-combi-form ref="spaRef" labelWidth="154px" defaultWidth="284px" formRef="modifyForm" :formObj="modifyDialogForm" :formData="modifyDialogData" :formRules="modifyDialogRules"></glsx-combi-form>
<div class="form"> </GLDialog>
<el-row>
<el-form-item label="名称:" prop="spaName">
<el-input v-model="modifyDialogForm.spaName" placeholder="请输入" size="small"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="特约内容" prop="spaContent" style="margin-top: 24px">
<el-input type="textarea" v-model="modifyDialogForm.spaContent" maxlength="200" placeholder="请输入"></el-input>
</el-form-item>
</el-row>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('modifyForm')">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import glsxCombiForm from '@/components/glsx-combi-form'
function date_format(date) { function date_format(date) {
var date2 = new Date(date) var date2 = new Date(date)
var YY = date2.getFullYear() + '-' var YY = date2.getFullYear() + '-'
...@@ -63,9 +35,66 @@ function date_format(date) { ...@@ -63,9 +35,66 @@ function date_format(date) {
import utils from '../../util/util' import utils from '../../util/util'
export default { export default {
name: '', name: '',
components:{
glsxCombiForm
},
data() { data() {
return { return {
date_format, date_format,
buttonList: [
{
type: 'el-button',
name: row => {
return '修改'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.showDialog(row.scope)
}
},
{
type: 'el-button',
name: row => {
return '删除'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.del(row.scope)
}
}
],
searchFormData:[
{
label: '特约名称',
name: 'spaName',
type: 'input'
},
{
label: '特约内容',
name: 'spaContent',
type: 'input'
}
],
modifyDialogData: [
{
type: 'input',
label: '特约名称',
name: 'spaName',
isClear: true,
},
{
type: 'input',
label: '特约内容',
name: 'spaContent',
isClear: true,
maxlength: 200,
inputType:'textarea',
}
],
isAdd: false, isAdd: false,
getAppointmentList: this.$apis.appointmentApi.getAppointmentList, getAppointmentList: this.$apis.appointmentApi.getAppointmentList,
dialogTitle: '', dialogTitle: '',
...@@ -83,27 +112,33 @@ export default { ...@@ -83,27 +112,33 @@ export default {
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, tableOption: {
width: 120
},
tableColumns: [ tableColumns: [
{ {
label: '特约名称', label: '特约名称',
prop: 'spaName' prop: 'spaName',
width: 400,
line:1
}, },
{ {
label: '特约内容', label: '特约内容',
prop: 'spaContent', prop: 'spaContent',
line:2, width: 400,
width:160 line:1
}, },
{ {
label: '操作人', label: '操作人',
prop: 'updatedBy' prop: 'updatedBy',
minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdDate', prop: 'createdDate',
width:220,
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.createdDate) return this.date_format(cellValue.createdDate)
} }
...@@ -112,6 +147,7 @@ export default { ...@@ -112,6 +147,7 @@ export default {
{ {
label: '更新时间', label: '更新时间',
prop: 'updatedDate', prop: 'updatedDate',
width:220,
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.updatedDate) return this.date_format(cellValue.updatedDate)
} }
...@@ -135,7 +171,7 @@ export default { ...@@ -135,7 +171,7 @@ export default {
this.modifyDialogForm = {} this.modifyDialogForm = {}
}, },
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs.spaRef.$refs[formName].validate(valid => {
if (valid) { if (valid) {
this.$apis.appointmentApi.modifyAppointment(this.modifyDialogForm).then(res => { this.$apis.appointmentApi.modifyAppointment(this.modifyDialogForm).then(res => {
if (res.code == '0') { if (res.code == '0') {
...@@ -145,7 +181,7 @@ export default { ...@@ -145,7 +181,7 @@ export default {
}) })
this.modifyDialog = false this.modifyDialog = false
this.modifyDialogForm = {} this.modifyDialogForm = {}
this.$refs.modifyForm.clearValidate() this.$refs.spaRef.$refs.modifyForm.clearValidate()
this.$refs.appointmentTable.refreshTable() this.$refs.appointmentTable.refreshTable()
} else { } else {
this.$message({ this.$message({
...@@ -252,59 +288,4 @@ export default { ...@@ -252,59 +288,4 @@ export default {
} }
</script> </script>
<style lang="scss" scoped>
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.selectForm .el-button + .el-button {
margin-left: 20px;
}
/deep/ .detailForm .el-input--small .el-input__inner {
height: 32px;
line-height: 32px;
width: 320px !important;
}
/deep/ .detailDialog .el-dialog__title {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 28px;
}
/deep/ .detailDialog .el-dialog__body {
padding: 30px 0px;
color: #606266;
font-size: 14px;
word-break: break-all;
text-align: center;
}
/deep/ .detailDialog .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
/deep/ .el-form-item__content .el-button--small:first-child, .row-btns>div .el-button--small:first-child {
border-color: #5850ff;
color: #5850ff;
}
/deep/ .el-textarea__inner {
display: block;
resize: vertical;
padding: 5px 15px;
line-height: 1.5;
box-sizing: border-box;
width: 100%;
font-size: inherit;
color: #606266;
background-color: #fff;
background-image: none;
border: 1px solid #dcdfe6;
border-radius: 4px;
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
width: 320px;
height: 80px;
}
</style>
\ No newline at end of file \ No newline at end of file
<style lang="scss" scoped></style>
...@@ -188,25 +188,10 @@ ...@@ -188,25 +188,10 @@
</div> </div>
<!-- 底部固定按钮 --> <!-- 底部固定按钮 -->
<div style="height: 78px"></div> <div class="page-btm-btn">
<div <el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" class="custom_black" @click="handleReset">重置</el-button>
class="fixed_bottom" <el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleDraft">草稿</el-button>
:style="{ <el-button v-if="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<div class="ma_top"></div>
<div class="flex_cc ma_bot">
<el-button v-if="![3, 5].includes(routeInfo.addOrEdit)" size="small" class="custom_black" @click="handleReset">重置</el-button>
<div class="mar-10"></div>
<el-button class="custom_blue" v-if="![3, 5].includes(routeInfo.addOrEdit)" size="small" @click="handleDraft">草稿</el-button>
<div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != '5'" type="primary" size="small" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div>
<el-button v-if="routeInfo.addOrEdit != 5" size="small" @click="handleCancel">返回</el-button>
<el-button v-else size="small" type="primary" @click="handleCancel">返回</el-button>
</div>
</div> </div>
<!-- 二维码 --> <!-- 二维码 -->
...@@ -228,7 +213,10 @@ export default { ...@@ -228,7 +213,10 @@ export default {
size: 'small', size: 'small',
submit: false, submit: false,
isBlock: true, isBlock: true,
serviceObj: {
PC0005: '',
PC0007: ''
},
footerLeft: '0', footerLeft: '0',
footerWidth: '0', footerWidth: '0',
editCarChildRef: 'editChildRef', editCarChildRef: 'editChildRef',
...@@ -389,13 +377,15 @@ export default { ...@@ -389,13 +377,15 @@ export default {
{ {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
return value ? callback() : callback(new Error('请输入' + (this.editForm.cardType == '1' ? '身份证' : '统一社会信息代码'))) return value ? callback() : callback(new Error('请输入证件号码'))
}, },
trigger: 'change' trigger: 'change'
}, },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
return /[a-zA-Z0-9]{18}/.test(value) ? callback() : callback(new Error('请输入18位数字或字母')) let reg = this.editForm.cardType == 1 || this.editForm.cardType == 2 ? /[a-zA-Z0-9]{18}/.test(value) : /\S\s{0,18}/.test(value)
let tip = this.editForm.cardType == 1 || this.editForm.cardType == 2 ? '请输入18位数字或字母' : '请输入证件号码'
return reg ? callback() : callback(new Error(tip))
}, },
trigger: 'change' trigger: 'change'
} }
...@@ -426,6 +416,7 @@ export default { ...@@ -426,6 +416,7 @@ export default {
this.editForm.cardType = value this.editForm.cardType = value
var idx = this.editFormDataUser.findIndex(item => item.name == 'cardNo') var idx = this.editFormDataUser.findIndex(item => item.name == 'cardNo')
this.editFormDataUser[idx].label = this.baseData.cardTypeList.find(item => item.confId == value).confName this.editFormDataUser[idx].label = this.baseData.cardTypeList.find(item => item.confId == value).confName
this.$refs.editFormRefUser.$refs.editChildRefUser.validateField('cardNo')
} }
}, },
{ {
...@@ -607,6 +598,10 @@ export default { ...@@ -607,6 +598,10 @@ export default {
{ {
confId: 5, confId: 5,
confName: '个人(军官)' confName: '个人(军官)'
},
{
confId: 7,
confName: '外国人'
} }
], ],
cardTypeList: [ cardTypeList: [
...@@ -629,6 +624,10 @@ export default { ...@@ -629,6 +624,10 @@ export default {
{ {
confId: 5, confId: 5,
confName: '军官证' confName: '军官证'
},
{
confId: 7,
confName: '护照'
} }
], ],
servicePeriodList: [ servicePeriodList: [
...@@ -768,14 +767,55 @@ export default { ...@@ -768,14 +767,55 @@ export default {
// 卡号获取期限 // 卡号获取期限
getDateList(seqNo, pack, attr) { getDateList(seqNo, pack, attr) {
this.$apis.beforeSale.dateBycarNo({ seqNo }).then(res => { this.$apis.beforeSale.dateBycarNo({ seqNo }).then(res => {
this.productModal[pack.idName]['service_period'] = `${res.servicePeriod}` if (res != null) {
pack.groupAttributeList.map(el => { let tip = false
if (el.attributeName == 'service_period') { if (pack.packageCode == 'PC0007' || pack.packageCode == 'PC0005') {
this.commonPart(res.servicePeriod, pack, el) this.productList.map(el => {
el.disabled = true if (el.packageCode == pack.packageCode) {
return el el.groupAttributeList.map(ele => {
ele.attributeList.map(item => {
if (item.attributeDesc == '服务期限') {
// if (item?.optionList?.length < 4) {
// item.optionList.push({ value: '4', label: '4年' })
// item.optionList.push({ value: '5', label: '5年' })
// } else if (item?.optionList?.length == 4) {
// item.optionList.push({ value: '5', label: '5年' })
// }
let optionObj = {
'4': { value: '4', label: '4年' },
'5': { value: '5', label: '5年' }
}
if (res.servicePeriod == '4' || res.servicePeriod == '5') {
const Target = item.optionList.find(item => {
return item.value == `${res.servicePeriod}`
})
if (this.serviceObj[el.packageCode].indexOf(res.servicePeriod) == -1) {
tip = true
}
if (!Target) {
item.optionList.push(optionObj[res.servicePeriod + ''])
}
}
}
})
})
}
})
} }
}) if (tip) {
this.productModal[pack.idName]['service_period'] = ''
this.$message.error('该卡号服务年限暂未配置,请联系运营平台人员')
} else {
this.productModal[pack.idName]['service_period'] = `${res.servicePeriod}`
}
pack.groupAttributeList.map(el => {
if (el.attributeName == 'service_period') {
this.commonPart(res.servicePeriod, pack, el)
el.disabled = true
return el
}
})
}
}) })
}, },
// 切换套餐---赋默认值 // 切换套餐---赋默认值
...@@ -1047,13 +1087,27 @@ export default { ...@@ -1047,13 +1087,27 @@ export default {
item.groupAttributeList.map(ele => { item.groupAttributeList.map(ele => {
ele.attributeList.map(e => { ele.attributeList.map(e => {
if ((item.idName == 'stolen' || item.idName == 'car') && e.attributeDesc == '服务期限') { if ((item.idName == 'stolen' || item.idName == 'car') && e.attributeDesc == '服务期限') {
e.optionList = this.baseData.servicePeriodList let serviceArr1 = { value: '4', label: '4年' }
let serviceArr2 = { value: '5', label: '5年' }
let arr = [...this.baseData.servicePeriodList]
if (item.servicePeriod && item.servicePeriod.indexOf('4') > -1) {
arr.push(serviceArr1)
}
if (item.servicePeriod && item.servicePeriod.indexOf('5') > -1) {
arr.push(serviceArr2)
}
e.optionList = [...arr]
this.serviceObj[item.packageCode] = item.servicePeriod
this.productModal[item.idName][e.attributeName] = '1' 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') && e.attributeDesc == '服务期限') { } else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == 'vip') && e.attributeDesc == '服务期限') {
e.optionList = this.baseData.servicePeriodList2 if (item.idName == 'tire' || item.idName == 'crash') {
e.optionList = this.baseData.servicePeriodList
} else {
e.optionList = this.baseData.servicePeriodList2
}
this.productModal[item.idName][e.attributeName] = '1' this.productModal[item.idName][e.attributeName] = '1'
e.disabled = true e.disabled = true
} else if (e.attributeDesc == '生效日期') { } else if (e.attributeDesc == '生效日期') {
...@@ -1166,8 +1220,8 @@ export default { ...@@ -1166,8 +1220,8 @@ export default {
}) })
}, },
getPackageList() { getPackageList() {
let contractNo = this.routeInfo.contractNo==-1? '': this.routeInfo.contractNo let contractNo = this.routeInfo.contractNo == -1 ? '' : this.routeInfo.contractNo
this.$apis.beforeSale.getPackageListApi({contractNo}).then(res => { this.$apis.beforeSale.getPackageListApi({ contractNo }).then(res => {
this.toTestProductData(res) this.toTestProductData(res)
}) })
}, },
...@@ -1727,9 +1781,6 @@ export default { ...@@ -1727,9 +1781,6 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.edit-equity {
margin-top: 17px;
}
.before-sale .container { .before-sale .container {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
...@@ -1992,40 +2043,6 @@ export default { ...@@ -1992,40 +2043,6 @@ export default {
.m-r-10 { .m-r-10 {
margin-right: 10px; margin-right: 10px;
} }
.fixed_bottom {
position: fixed;
width: 100%;
bottom: 0px;
height: 82px;
// display: flex;
// align-items: center;
// justify-content: center;
background: #ffffff;
z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
.ma_top {
height: 4px;
background: #f4f5fa;
}
.ma_bot {
box-sizing: border-box;
padding: 0 20px 0 40px;
height: 78px;
.custom_black {
background: #ffffff;
color: #333333;
border: 1px solid #333333;
}
.custom_blue {
background: #ffffff;
color: #5850ff;
border: 1px solid #5850ff;
}
.mar-10 {
width: 20px;
}
}
}
.app { .app {
background: #f4f5fa; background: #f4f5fa;
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
......
<template> <template>
<div class="introduct_container"> <div class="introduct_container">
<div class="top_play_wrap flex_scb"> <div class="top_play_wrap flex_scb">
<div class="text_wrap"> <div class="text_wrap">
<span class="maxTitle">售前权益服务</span> <span class="maxTitle">售前权益服务</span>
<span class="maxTitle">一套可变现的权益服务系统</span> <span class="maxTitle">一套可变现的权益服务系统</span>
<span class="midTitle">帮您实现客户线上化闭环</span> <span class="midTitle">帮您实现客户线上化闭环</span>
<span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span> <span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="mid_wrapper">
<div class="content_one flex_sc">
<div class="title left">
<span>您提供的</span>
<i class="el-icon-caret-right"></i>
</div> </div>
<div class="bg_wrap flex_cc"> <div class="title right">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" /> <span>您将获得的</span>
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" /> <div class="icon_point"></div>
</div> </div>
</div> </div>
<div class="mid_wrapper"> <div class="content_two flex_scb">
<div class="content_one flex_sc"> <template v-for="(item, index) in localList">
<div class="title left"> <div :key="index" class="box_item_wrap flex_cc">
<span>您提供的</span> <img :src="item.icon" />
<i class="el-icon-caret-right"></i> <div class="box_title">{{ item.title }}</div>
</div>
<div class="title right">
<span>您将获得的</span>
<div class="icon_point"></div>
</div> </div>
</div> </template>
<div class="content_two flex_scb"> </div>
<template v-for="(item, index) in localList"> <div class="label_title">无忧案例</div>
<div :key="index" class="box_item_wrap flex_cc"> <div class="content_three">
<img :src="item.icon" /> <template v-for="(item, index) in localList2">
<div class="box_title">{{ item.title }}</div> <div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
</div> <div class="left_wrap">
</template> <img class="image_wrap" :src="item.icon" />
</div> <div class="new_title">{{ item.title }}</div>
<div class="label_title">无忧案例</div> <div class="con_wrap">
<div class="content_three"> <div class="point flex_cc">
<template v-for="(item, index) in localList2"> <div class="icon_po"></div>
<div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
<div class="left_wrap">
<img class="image_wrap" :src="item.icon" />
<div class="new_title">{{ item.title }}</div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc1 }}</div>
</div>
<div style="height: 15px"></div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</div> </div>
<div class="point_content">{{ item.desc1 }}</div>
</div> </div>
<div class="right_wrap"> <div style="height: 15px"></div>
<img :src="item.img" /> <div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</div> </div>
</div> </div>
</template> <div class="right_wrap">
</div> <img :src="item.img" />
</div>
</div>
</template>
</div> </div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div> </div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 18px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div>
</template> </template>
<script> <script>
import qrCode from '../../components/qr-code/index.vue' import qrCode from '../../components/qr-code/index.vue'
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.app { .app {
background: #f4f5fa; background: #f4f5fa;
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
...@@ -146,13 +146,9 @@ export default { ...@@ -146,13 +146,9 @@ export default {
overflow-y: auto; overflow-y: auto;
height: 100%; height: 100%;
} }
.introduct_container {
margin-top: 17px;
}
.top_play_wrap { .top_play_wrap {
height: 360px; height: 360px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
padding-right: 50px; padding-right: 50px;
.text_wrap { .text_wrap {
...@@ -205,7 +201,7 @@ export default { ...@@ -205,7 +201,7 @@ export default {
} }
.mid_wrapper { .mid_wrapper {
background: #ffffff; background: #ffffff;
margin-top: 20px; margin-top: 16px;
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
.content_one { .content_one {
......
<template>
<div :style="{ 'margin-top': +marginTop + 'px' }" class="box">
<div v-if="title" class="header" :style="{ cursor: openBtn ? 'pointer' : 'unset' }" @click.stop="showBody()">
<i v-if="openBtn" class="el-icon-caret-right" :class="{ trans: open }"></i>
{{ title }}
<div style="float:right">
<slot name="right"></slot>
</div>
</div>
<div v-if="!openBtn || open" class="main-wrap">
<slot></slot>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'card',
data() {
return {
open: false
}
},
props: {
title: {
type: String,
default: ''
},
openBtn: {
type: Boolean,
default: false
},
marginTop:{
tyep: Number|String,
default: 16
}
},
mounted() {},
methods:{
showBody(){
if(!this.openBtn) return
this.open = !this.open
}
}
}
</script>
<style lang="scss" scoped>
.box {
background-color: #fff;
.header {
height: 58px;
background-color: #fff;
line-height: 58px;
padding: 0 20px;
box-sizing: border-box;
font-family: inherit;
font-size: 16px;
color: #333333;
// font-weight: 600;
}
.main-wrap {
border-top: 1px solid #e5e5e5;
padding: 20px;
height: 100%;
position: relative;
}
}
.header .trans {
transform: rotate(90deg);
}
.header .el-icon-caret-right {
transition: transform 0.3s ease 0s;
}
</style>
<template>
<div>
<Card title="案件补充说明">
<div class="explanation">
<div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :disabled="isCheck || isDisabled" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!isCheck&&supplementList.length > 1" @click="handleDel(idx)"></i>
</div>
</div>
<div v-if="!isCheck &&!isDisabled" class="add-explanation" @click="addExplanation">
<i class="el-icon-circle-plus-outline"></i>
<span>新增说明</span>
</div>
</Card>
</div>
</template>
<script type="text/ecmascript-6">
import Card from './card.vue'
export default {
name: 'explanation',
data() {
return {}
},
components: {
Card
},
props: {
supplementList: {
type: Array,
default: function () {
return [{ content: '' }]
}
},
isCheck:Boolean,
isDisabled:Boolean,
},
mounted() {},
methods: {
handleDel(idx) {
this.$delete(this.supplementList, idx)
},
addExplanation() {
const idx = this.supplementList.length
const newObj = { claimsId: this.supplementList[idx - 1].claimsId, content: '' }
this.$set(this.supplementList, idx, newObj)
}
}
}
</script>
<style lang="scss" scoped>
.explanation {
.explanation-list {
display: flex;
// align-items: center;
margin-bottom: 20px;
&:last-child {
margin-bottom: 10px;
}
/deep/ .el-textarea {
width: 580px;
}
.label {
width: 154px;
font-size: 14px;
font-weight: 400;
line-height: 32px;
color: #333;
text-align: right;
flex-shrink: 0;
}
}
.del {
color: #c6c6c6;
font-size: 16px;
margin-left: 10px;
cursor: pointer;
margin-top: 28px;
}
}
.add-explanation {
color: #5850FF;
display: flex;
align-items: center;
margin-left: 154px;
cursor: pointer;
.el-icon-circle-plus-outline {
font-size: 20px;
margin-right: 6px;
}
span {
font-size: 12px;
}
}
</style>
<template>
<div class="">
<div class="container">
<input type="file" class="file" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" />
<div class="wrap" v-for="(imgItem, imgKey) in list" :key="imgKey">
<span class="title">
<i v-if="imgItem.status == 1" class="el-icon-success success"></i>
<i v-if="imgItem.status == 2" class="el-icon-error error"></i>
<span>{{ imgItem.title }}</span>
<el-tooltip v-if="imgItem.tip" class="item" effect="dark" :content="imgItem.tip" placement="top">
<i v-if="imgItem.tip" class="el-icon-question question"></i>
</el-tooltip>
</span>
<div :class="['img-box', { 'has-img': imgItem.url, 'error-img': imgItem.status == 2, 'success-img': imgItem.status == 1 }]">
<!-- <img v-if="!imgItem.url" class="back-img" fit="cover" :src="url" alt="" @click="clickImg(imgKey)" /> -->
<img v-if="!imgItem.url" class="add-btn" :src="cameraUrl" alt="" @click="clickImg(imgKey)" />
<img v-else class="need-img" fit="cover" :src="imgItem.url" alt="" />
<div class="mask">
<i class="el-icon-view" @click="handlePreview(imgItem.url)"></i>
<i class="el-icon-delete" @click="handleDel(imgKey)"></i>
</div>
<div class="error-tip" v-if="imgItem.status == 2">
<el-popover placement="top-start" width="200" trigger="hover" :content="imgItem.reason || '--'">
<span slot="reference">{{ imgItem.reason || '--' }}</span>
</el-popover>
</div>
</div>
<slot name="footer" :scope="{ imgItem, imgKey }"></slot>
</div>
</div>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="" />
</el-dialog>
</div>
</template>
<script type="text/ecmascript-6">
import cameraUrl from '@/assets/camera.png'
import url from '@/assets/images/idCard.png'
// import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'imgList',
props:{
list:{
type: Array
}
},
data() {
return {
url,
cameraUrl,
dialogImageUrl: '',
dialogVisible: false,
activeName: 'base'
}
},
components: {
// glsxCombiForm
},
mounted() {
},
methods: {
handlePreview(url) {
this.dialogImageUrl = url;
this.dialogVisible = true;
},
handleDel(key){
this.list[key].url = ''
this.list[key].status = ''
},
clickImg(type) {
this.$refs.input.click();
},
upload(e){
const file = e.target.files[0]
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = event => {
const imgFile = event.target.result
const arrBase64 = imgFile.split(',')
const base64 = file.name.split('.').pop() + '@' + arrBase64[1]
this.$apis.beforeSale.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
console.log(res,'resss')
})
}
}
}
}
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-wrap: wrap;
position: relative;
.file {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.wrap {
margin: 0 16px 16px 0;
.title {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333333;
.success {
color: #2cca74;
margin-right: 5px;
}
.error {
color: #eb4e4e;
margin-right: 5px;
}
.question {
color: #999;
cursor: pointer;
margin-left: 5px;
}
}
.has-img:hover {
.mask {
display: block;
}
}
.error-img {
border: 1px solid #ff5257 !important;
}
.success-img {
border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
.img-box {
margin-top: 8px;
height: 135px;
width: 216px;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
position: relative;
background-color: #f5f5f5;
.error-tip {
width: 100%;
background: rgba(255, 82, 87, 0.7);
position: absolute;
height: 54px;
line-height: 16px;
bottom: 0;
border-radius: 0 0 4px 4px;
z-index: 10;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-family: PingFangSC-Regular, PingFang SC;
font-size: 14px;
padding: 5px 10px;
display: -webkit-box;
box-sizing: border-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.need-img,
.mask {
position: absolute;
left: 0;
bottom: 0;
top: 0;
right: 0;
z-index: 2;
}
.mask {
display: none;
background: rgba(0, 0, 0, 0.5);
z-index: 9;
text-align: center;
line-height: 135px;
border-radius: 4px;
i {
color: #c6c6c6;
cursor: pointer;
font-size: 16px;
&:first-child {
margin-right: 12px;
}
}
}
.add-btn {
position: absolute;
width: 60px;
height: 60px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
cursor: pointer;
}
img {
width: 100%;
height: 100%;
border-radius: 4px;
}
}
}
}
</style>
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
.report-components { .report-components {
background: white; background: white;
margin: 20px 0 64px; margin: 20px 0 0;
.title { .title {
padding: 0 20px; padding: 0 20px;
font-size: 16px; font-size: 16px;
...@@ -368,7 +368,7 @@ export default { ...@@ -368,7 +368,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.del_img { .del_img {
right: -44px; right: -49px;
} }
/deep/ .el-progress-bar__outer { /deep/ .el-progress-bar__outer {
height: 26px !important; height: 26px !important;
......
<template>
<Card title="其他信息" class="" openBtn>
<div class="other-info" v-for="(item, idx) in form" :key="idx">
<span class="title">{{ item.parentTitle }}</span>
<div class="info-wrap">
<li v-for="sonItem in item.li" :key="sonItem.key">
<label class="label" for="">{{ sonItem.label }}</label>
<span class="content">{{ otherInfoData[sonItem.key] || '--' }}</span>
</li>
</div>
</div>
</Card>
</template>
<script type="text/ecmascript-6">
import Card from './card.vue'
export default {
name: 'otherInfo',
props: {
otherInfoData: Object
},
data() {
return {
form: [
{
parentTitle: '店面信息',
li: [
{
key: 'merchantName',
label: '店面名称:'
},
{
key: 'merchantPhone',
label: '店面联系方式:'
},
{
key: 'merchantAddr',
label: '店面地址:'
}
]
},
{
parentTitle: '产品详情',
li: [
{
key: 'packageName',
label: '产品名称:'
},
{
key: 'contractNo',
label: '合同编号:'
},
{
key: 'effectiveDate',
label: '生效时间:'
},
{
key: 'servicePeriod',
label: '服务期限/年:'
},
{
key: 'expirationDate',
label: '起止时间:'
}
]
},
{
parentTitle: '客户信息',
li: [
{
key: 'customerName',
label: '客户姓名:'
},
{
key: 'customerPhone',
label: '电话号码:'
},
{
key: 'customerAddr',
label: '联系地址:'
}
]
},
{
parentTitle: '车辆信息',
li: [
{
key: 'vin',
label: '车架号:'
},
{
key: 'brandAndShape',
label: '品牌车型:'
},
{
key: 'billingDate',
label: '新车开票日期:'
},
{
key: 'invoicePrice',
label: '车辆购置价:'
}
]
}
]
}
},
components: {
Card
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.other-info {
list-style: none;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
line-height: 22px;
color: #333333;
margin-bottom: 16px;
.info-wrap {
background: #f9f9f9;
padding: 20px;
li {
display: inline-block;
line-height: 22px;
padding: 10px 0;
text-align: center;
width: 500px;
.label {
color: #666666;
}
}
}
}
</style>
<template> <template>
<div> <div>
<div v-if="isGH" class="report-components"> <div v-if="isGH" class="report-components gl-form-page">
<div class="title">报案信息(店面补充)</div> <div class="title">报案信息(店面补充)</div>
<glsx-combi-form class="edit-form-container" ref="handlerRef" :formRules="accountRule" labelWidth="144px" defaultWidth="320px" :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>
<div class="report-components repair-wrap"> <div class="report-components repair-wrap">
<div class="title">维修信息</div> <div class="title">维修信息</div>
...@@ -39,8 +51,8 @@ ...@@ -39,8 +51,8 @@
<el-radio :label="1">其他</el-radio> <el-radio :label="1">其他</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div class="account-info"> <div class="account-info gl-form-page">
<glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="144px" defaultWidth="320px" :formObj="accountForm" :formData="accountData"></glsx-combi-form> <glsx-combi-form ref="accountRef" :formRules="accountRule" labelWidth="154px" defaultWidth="432px" :formObj="accountForm" :formData="accountData"></glsx-combi-form>
</div> </div>
</div> </div>
</div> </div>
...@@ -55,7 +67,7 @@ export default { ...@@ -55,7 +67,7 @@ export default {
props: { props: {
accountForm: Object, accountForm: Object,
serviceItemsList: Array, serviceItemsList: Array,
totalPrice:Number, totalPrice: Number,
isGH: Boolean, isGH: Boolean,
pageType: { pageType: {
type: Number, type: Number,
...@@ -63,29 +75,29 @@ export default { ...@@ -63,29 +75,29 @@ export default {
} }
}, },
components: { components: {
glsxCombiForm, glsxCombiForm
}, },
data() { data() {
return { return {
accountData:[ accountData: [
{ {
label: '账户类型', label: '账户类型',
name: 'accountType', name: 'accountType',
type: 'radio', type: 'radio',
optionList: [ optionList: [
{ {
confId:0, confId: 0,
confName:'对公' confName: '对公'
}, },
{ {
confId:1, confId: 1,
confName:'对私' confName: '对私'
} }
], ],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
isHide:true, isHide: true,
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
{ {
...@@ -95,14 +107,14 @@ export default { ...@@ -95,14 +107,14 @@ export default {
optionList: [], optionList: [],
optionId: 'code', optionId: 'code',
optionLabel: 'name', optionLabel: 'name',
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
{ {
label: '账户名称', label: '账户名称',
name: 'accountName', name: 'accountName',
type: 'input', type: 'input',
maxlength:60, maxlength: 60,
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
...@@ -110,7 +122,7 @@ export default { ...@@ -110,7 +122,7 @@ export default {
label: '收款账号', label: '收款账号',
name: 'accountNo', name: 'accountNo',
type: 'input', type: 'input',
maxlength:25, maxlength: 25,
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
...@@ -118,11 +130,11 @@ export default { ...@@ -118,11 +130,11 @@ export default {
label: '收款账号所在省市', label: '收款账号所在省市',
name: 'bankCity', name: 'bankCity',
type: 'select', type: 'select',
placeholder:'可输入所在市关键词查询', placeholder: '可输入所在市关键词查询',
optionList: [], optionList: [],
optionId: 'code', optionId: 'code',
optionLabel: 'name', optionLabel: 'name',
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
{ {
...@@ -132,7 +144,7 @@ export default { ...@@ -132,7 +144,7 @@ export default {
optionList: [], optionList: [],
optionId: 'code', optionId: 'code',
optionLabel: 'name', optionLabel: 'name',
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
{ {
...@@ -150,32 +162,45 @@ export default { ...@@ -150,32 +162,45 @@ export default {
maxlength: 15, maxlength: 15,
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, }
], ],
handlerForm: [ handlerForm: [
{ {
label: '经办人', label: '经办人:',
name: 'handlerName', name: 'handlerName',
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength:100, maxlength: 100,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
{ {
label: '经办人联系号码', label: '经办人联系号码:',
name: 'handlerPhone', name: 'handlerPhone',
type: 'input', type: 'input',
maxlength: 11, maxlength: 11,
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
} },
// {
// label: '出险经过描述:',
// name: 'reimbursementDesc',
// type: 'input',
// inputType: 'textarea',
// maxlength: 200,
// isClear: true,
// isDisabled: this.pageType == 2
// },
// {
// label: '申请核赔服务:',
// addHtml: 'serviceApply'
// }
], ],
accountRule: { accountRule: {
accountType: [{ required: true, message: '请选择账户类型', trigger: 'change' }], accountType: [{ required: true, message: '请选择账户类型', trigger: 'change' }],
branchBankCode: [{ required: true, message: '请选择开户行名称', trigger: 'change' }], branchBankCode: [{ required: true, message: '请选择开户行名称', trigger: 'change' }],
accountName: [{ required: true, message: '请输入账户名称', trigger: 'change' }], accountName: [{ required: true, message: '请输入账户名称', trigger: 'change' }],
accountNo: [ accountNo: [
{ {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
let numRef = /^[0-9]{1,25}$/ let numRef = /^[0-9]{1,25}$/
...@@ -210,30 +235,33 @@ export default { ...@@ -210,30 +235,33 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
// reimbursementDesc: [{ required: true, message: '请输入出险经过描述', trigger: 'change' }]
}, },
checkList: []
} }
}, },
created(){ created() {
this.getBankList() this.getBankList()
this.initSaveObj() this.initSaveObj()
}, },
mounted() { mounted() {},
watch: {
}, 'accountForm.objectType': {
watch:{ handler(newVal, oldVal) {
'accountForm.objectType':{
handler(newVal,oldVal){
const item = this.accountData.find(item => { const item = this.accountData.find(item => {
return item.name == 'accountType' return item.name == 'accountType'
}) })
item.isHide = newVal==0 item.isHide = newVal == 0
}, },
immediate:true immediate: true
} }
}, },
methods:{ methods: {
initSaveObj(){ toChangeServices(e){
const obj = { console.log(e);
},
initSaveObj() {
const obj = {
accountType: 0, accountType: 0,
branchBankCode: '', branchBankCode: '',
accountName: '', accountName: '',
...@@ -243,11 +271,11 @@ export default { ...@@ -243,11 +271,11 @@ export default {
payeeIDCardNo: '', payeeIDCardNo: '',
payeePhone: '' payeePhone: ''
} }
this.saveObj = {...obj} this.saveObj = { ...obj }
this.otherSaveObj = {...obj} this.otherSaveObj = { ...obj }
}, },
changeObjectType(newVal){ changeObjectType(newVal) {
this.$emit('changeObjectType',newVal) this.$emit('changeObjectType', newVal)
// const item = this.accountData.find(item => { // const item = this.accountData.find(item => {
// return item.name == 'accountType' // return item.name == 'accountType'
// }) // })
...@@ -268,38 +296,44 @@ export default { ...@@ -268,38 +296,44 @@ export default {
}, },
getBankList() { getBankList() {
this.$apis.claims.getBankList({}).then(res => { 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 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 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 IDCardTypeList.optionList = res.cardType
}) })
}, },
validPrice(e,id){ validPrice(e, id) {
let checkPlan = '' + this.serviceItemsList[id].approveAmount 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 !== '') { if (checkPlan.indexOf('.') < 0 && checkPlan !== '') {
checkPlan = parseFloat(checkPlan) + '' checkPlan = parseFloat(checkPlan) + ''
} else if (checkPlan.indexOf('.') >= 0) { } else if (checkPlan.indexOf('.') >= 0) {
checkPlan = checkPlan.replace(/^()*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数 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){ changePrice(e, id) {
if(!e.target.value) return; if (!e.target.value) return
const len = e.target.value.length const len = e.target.value.length
let lastStr = e.target.value.charAt(len-1) let lastStr = e.target.value.charAt(len - 1)
if(lastStr==='.'){ if (lastStr === '.') {
this.$set(this.serviceItemsList[id], 'approveAmount' , e.target.value.substr(0 ,len-1)) this.$set(this.serviceItemsList[id], 'approveAmount', e.target.value.substr(0, len - 1))
} }
const minPrice = 1 const minPrice = 1
if(Number(e.target.value)<minPrice){ if (Number(e.target.value) < minPrice) {
this.$set(this.serviceItemsList[id], 'approveAmount' , 1) this.$set(this.serviceItemsList[id], 'approveAmount', 1)
} }
const maxPrice = 2000000 const maxPrice = 2000000
if(Number(e.target.value)>maxPrice){ if (Number(e.target.value) > maxPrice) {
this.$set(this.serviceItemsList[id], 'approveAmount' , maxPrice) this.$set(this.serviceItemsList[id], 'approveAmount', maxPrice)
} }
} }
} }
...@@ -321,7 +355,9 @@ export default { ...@@ -321,7 +355,9 @@ export default {
color: #333; color: #333;
} }
.edit-form-container { .edit-form-container {
margin-top: 20px; padding: 20px 0;
.serviceApply_container {
}
} }
.require { .require {
width: 115px; width: 115px;
...@@ -407,7 +443,7 @@ export default { ...@@ -407,7 +443,7 @@ export default {
} }
/deep/ .account-info { /deep/ .account-info {
margin: 10px 0 0 115px; margin: 10px 0 0 115px;
padding: 20px 10px 0 20px; padding: 20px;
background: #f9f9f9; background: #f9f9f9;
display: inline-block; display: inline-block;
.el-radio { .el-radio {
......
<template> <template>
<div class="report-components"> <div class="report-components gl-form-page">
<div class="title">报案信息(客户提交)</div> <div class="title">报案信息(客户提交)</div>
<glsxCombiForm :regionData="regionData" class="edit-form-container " ref="editFormRefReport" labelWidth="144px" defaultWidth="320px" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <template v-if="[1, 3, 4].includes(pageType)">
<div v-if="pageType == 1" style="display:inline-block;" slot="syncBtn"> <glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<el-button style="margin:0 12px;" type="primary" @click="toSearchOrderDetail">同步</el-button> <div v-if="pageType == 1" style="display: inline-block" slot="syncBtn">
<span style="font-weight: 400; color:#666;">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span> <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> </div>
</glsxCombiForm> </template>
</div> </div>
</template> </template>
...@@ -70,7 +89,8 @@ export default { ...@@ -70,7 +89,8 @@ export default {
], ],
reimbursementAddress: [{ required: true, message: '请选择出险地点', trigger: 'change' }], reimbursementAddress: [{ required: true, message: '请选择出险地点', trigger: 'change' }],
reimbursementAddr: [{ required: true, message: '请输入出险详细地址', trigger: 'change' }] reimbursementAddr: [{ required: true, message: '请输入出险详细地址', trigger: 'change' }]
} },
editDetail: []
} }
}, },
created() { created() {
...@@ -78,6 +98,10 @@ export default { ...@@ -78,6 +98,10 @@ export default {
}, },
mounted() { mounted() {
this.diffKeyHandle(this.isGH) this.diffKeyHandle(this.isGH)
let _this = this
setTimeout(()=>{
_this.handlerDetail()
},500)
}, },
watch: { watch: {
'editForm.reportDate'(newVal, oldVal) { 'editForm.reportDate'(newVal, oldVal) {
...@@ -92,6 +116,33 @@ export default { ...@@ -92,6 +116,33 @@ export default {
} }
}, },
methods: { 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() { getCityList() {
this.$apis.claims.getCityList({}).then(res => { this.$apis.claims.getCityList({}).then(res => {
this.regionData = res this.regionData = res
...@@ -335,4 +386,40 @@ export default { ...@@ -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> </style>
...@@ -13,27 +13,22 @@ ...@@ -13,27 +13,22 @@
单校验不通过退回处理,为保障客户权益,请尽快处理哦! 单校验不通过退回处理,为保障客户权益,请尽快处理哦!
</div> </div>
<div class="search_container"> <div class="search_container">
<glsx-combi-form ref="showSearch" labelWidth="112px" defaultWidth="218px" :formObj="searchForm" :formData="searchFormData"> <GLCombiForm :rowNumber="1" ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn()"></GLCombiForm>
<div slot="footer" class="footer-btns primary_plain_btn" style="float:right;">
<el-button size="small" @click="handleRestFn()">重置</el-button>
<el-button size="small" type="primary" @click="handleOkFn">查询</el-button>
<el-button size="small" type="primary" @click="exportList" plain>导出excel</el-button>
</div>
</glsx-combi-form>
</div> </div>
<div class="table_widget"> <div class="table_widget">
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportList">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf"> <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"> <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="[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="[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> <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> </div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import glsxCombiForm from '@/components/glsx-combi-form'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
const statusList = [ const statusList = [
{ {
...@@ -66,6 +61,56 @@ export default { ...@@ -66,6 +61,56 @@ export default {
data() { data() {
return { return {
orderCount: {}, orderCount: {},
buttonList: [
{
type: 'GLButton',
name: row => {
return '去处理'
},
condition: row => {
return [0].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '去处理'
},
listeners: {
click: row => this.handleEdit(4, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '查看'
},
condition: row => {
return [1, 3, 4].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '查看'
},
listeners: {
click: row => this.handleEdit(2, row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '重新提交'
},
condition: row => {
return [2].includes(row.scope.status)
},
attrs: {
type: 'text',
fn: '重新提交'
},
listeners: {
click: row => this.handleEdit(3, row.scope)
}
}
],
getListApi: this.$apis.claims.getclaimsList, getListApi: this.$apis.claims.getclaimsList,
sizeList: [5, 10, 20, 30, 40], sizeList: [5, 10, 20, 30, 40],
pageConf: { pageSize: 'pageCount', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageCount', pageNum: 'pageNum', totalCount: 'total' },
...@@ -109,7 +154,7 @@ export default { ...@@ -109,7 +154,7 @@ export default {
{ {
label: '核销码', label: '核销码',
prop: 'writeOffCode', prop: 'writeOffCode',
width: '90', width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.writeOffCode || '-' return cellValue.writeOffCode || '-'
} }
...@@ -117,7 +162,7 @@ export default { ...@@ -117,7 +162,7 @@ export default {
{ {
label: '报案号', label: '报案号',
prop: 'registNo', prop: 'registNo',
width: '220', width: 220,
formatter: cellValue => { formatter: cellValue => {
return cellValue.registNo || '-' return cellValue.registNo || '-'
} }
...@@ -125,7 +170,7 @@ export default { ...@@ -125,7 +170,7 @@ export default {
{ {
label: '客户名称', label: '客户名称',
prop: 'reporterName', prop: 'reporterName',
width: '200', width: 160,
formatter: cellValue => { formatter: cellValue => {
return cellValue.reporterName || '-' return cellValue.reporterName || '-'
} }
...@@ -133,7 +178,7 @@ export default { ...@@ -133,7 +178,7 @@ export default {
{ {
label: '合同号', label: '合同号',
prop: 'contractNo', prop: 'contractNo',
width: '200', width: 200,
formatter: cellValue => { formatter: cellValue => {
return cellValue.contractNo || '-' return cellValue.contractNo || '-'
} }
...@@ -141,7 +186,7 @@ export default { ...@@ -141,7 +186,7 @@ export default {
{ {
label: '价格区间', label: '价格区间',
prop: 'priceSection', prop: 'priceSection',
width: '100', width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.priceSection || '-' return cellValue.priceSection || '-'
} }
...@@ -149,7 +194,7 @@ export default { ...@@ -149,7 +194,7 @@ export default {
{ {
label: '门店提交时间', label: '门店提交时间',
prop: 'commitTime', prop: 'commitTime',
width: '180', width: 180,
formatter: cellValue => { formatter: cellValue => {
return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
...@@ -157,7 +202,7 @@ export default { ...@@ -157,7 +202,7 @@ export default {
{ {
label: '提交国任时间', label: '提交国任时间',
prop: 'commitGuoRenDate', prop: 'commitGuoRenDate',
width: '180', width: 180,
formatter: cellValue => { formatter: cellValue => {
return cellValue.commitGuoRenDate ? dayjs(cellValue.commitGuoRenDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.commitGuoRenDate ? dayjs(cellValue.commitGuoRenDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
...@@ -165,7 +210,7 @@ export default { ...@@ -165,7 +210,7 @@ export default {
{ {
label: '服务名称', label: '服务名称',
prop: 'serviceName', prop: 'serviceName',
width: '300', width: 300,
line: 1, line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.serviceName || '-' return cellValue.serviceName || '-'
...@@ -174,7 +219,7 @@ export default { ...@@ -174,7 +219,7 @@ export default {
{ {
label: '服务状态', label: '服务状态',
prop: 'status', prop: 'status',
width: '120', width: 120,
formatter: cellValue => { formatter: cellValue => {
if (!cellValue) return '-' if (!cellValue) return '-'
return statusList.map(item => item.confId).includes(cellValue.status) ? statusList.find(item => item.confId === cellValue.status).confName : '-' return statusList.map(item => item.confId).includes(cellValue.status) ? statusList.find(item => item.confId === cellValue.status).confName : '-'
...@@ -183,7 +228,8 @@ export default { ...@@ -183,7 +228,8 @@ export default {
{ {
label: '状态描述', label: '状态描述',
prop: 'statusDesc', prop: 'statusDesc',
width: '200', width: 250,
line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.statusDesc || '-' return cellValue.statusDesc || '-'
} }
...@@ -191,7 +237,8 @@ export default { ...@@ -191,7 +237,8 @@ export default {
{ {
label: '批准金额', label: '批准金额',
prop: 'approvalAmount', prop: 'approvalAmount',
width: '100', width: 100,
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.approvalAmount || '-' return cellValue.approvalAmount || '-'
} }
...@@ -199,7 +246,8 @@ export default { ...@@ -199,7 +246,8 @@ export default {
{ {
label: '支付金额', label: '支付金额',
prop: 'paymentAmount', prop: 'paymentAmount',
width: '100', align: 'right',
width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.paymentAmount || '-' return cellValue.paymentAmount || '-'
} }
...@@ -207,7 +255,7 @@ export default { ...@@ -207,7 +255,7 @@ export default {
{ {
label: '操作人', label: '操作人',
prop: 'operatorName', prop: 'operatorName',
width: '100', width: 100,
formatter: cellValue => { formatter: cellValue => {
return cellValue.operatorName || '-' return cellValue.operatorName || '-'
} }
...@@ -215,7 +263,7 @@ export default { ...@@ -215,7 +263,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: '', prop: '',
width: '200', width: 100,
fixed: 'right', fixed: 'right',
addHtml: 'table-btns' addHtml: 'table-btns'
} }
...@@ -223,10 +271,6 @@ export default { ...@@ -223,10 +271,6 @@ export default {
} }
} }
}, },
components: {
glsxCombiForm
},
created() { created() {
this.diffHost() this.diffHost()
this.getClaimsCount() this.getClaimsCount()
...@@ -309,7 +353,7 @@ export default { ...@@ -309,7 +353,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.header_info_widget { .header_info_widget {
box-sizing: border-box; box-sizing: border-box;
margin: 20px 0; margin: 16px 0;
width: 100%; width: 100%;
height: 40px; height: 40px;
display: flex; display: flex;
...@@ -344,7 +388,6 @@ export default { ...@@ -344,7 +388,6 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
/deep/ .el-form { /deep/ .el-form {
.el-form-item { .el-form-item {
margin-right: 12px !important; margin-right: 12px !important;
......
...@@ -4,15 +4,9 @@ ...@@ -4,15 +4,9 @@
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report> <report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair> <repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material> <material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<div class="footer operate-btn primary_plain_btn"> <div class="page-btm-btn" v-if="pageType != 2">
<template v-if="pageType != 2"> <el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button size="small" type="primary" @click="confirmSubmit(1)">提交</el-button> <el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
<el-button size="small" type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
<el-button size="small" @click="handleCancel">取消</el-button>
</template>
<template v-else>
<el-button size="small" type="primary" @click="handleCancel">返回</el-button>
</template>
</div> </div>
</div> </div>
</template> </template>
...@@ -86,7 +80,7 @@ export default { ...@@ -86,7 +80,7 @@ export default {
computed: { computed: {
totalPrice() { totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) { let total = this.serviceItemsList.reduce(function(prev, cur) {
return prev + (+(cur.approveAmount * 100).toFixed(0)) return prev + +(cur.approveAmount * 100).toFixed(0)
}, 0) }, 0)
return total / 100 return total / 100
} }
...@@ -212,7 +206,6 @@ export default { ...@@ -212,7 +206,6 @@ export default {
this.$message.error('至少输入一项服务的定损批准金额') this.$message.error('至少输入一项服务的定损批准金额')
return false return false
} }
let fileTip = false let fileTip = false
for (let key in this.materialForm) { for (let key in this.materialForm) {
if (this.materialForm[key].length < 1 && !fileTip) { if (this.materialForm[key].length < 1 && !fileTip) {
......
...@@ -3,34 +3,14 @@ ...@@ -3,34 +3,14 @@
<GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton> <GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> --> <!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> -->
<div class="equity-wrap contain merchant-select"> <div class="equity-wrap contain merchant-select">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right"> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="selConfig" @handleRest="selConfig('reset')"></GLCombiForm>
<el-row> <div class="row-btns">
<el-form-item size="small" label="">
<el-input placeholder="请输入内容" v-model="selectInput" class="input-with-select">
<el-select v-model="select" slot="prepend" placeholder="请选择">
<el-option label="商户名称" value="1"></el-option>
<el-option label="商户号" value="2"></el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item class="open-status" size="small" label="开通状态" style="margin-left: -10px">
<el-select size="small" v-model="openFlag">
<el-option v-for="item in openFlagList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-button size="small" @click="selConfig('reset')">重置</el-button>
<el-button size="small" type="primary" @click="selConfig">查询</el-button>
<el-button size="small" @click="exportTable">导出</el-button>
</el-form-item>
</el-row>
</el-form>
<div class="row-btns" style="margin-top: 20px">
<!-- <el-button size="small" @click="toggleAll">全选</el-button> --> <!-- <el-button size="small" @click="toggleAll">全选</el-button> -->
<!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> --> <!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> -->
<div style="float: right"> <div style="float: right;" class="primary_plain_btn">
<el-button size="small" @click="batchOperation(1)">批量开通</el-button> <el-button size="small" plain @click="batchOperation(1)">批量开通</el-button>
<el-button size="small" @click="batchOperation(2)">批量关闭</el-button> <el-button size="small" @click="batchOperation(2)">批量关闭</el-button>
<el-button size="small" @click="exportTable">导出</el-button>
</div> </div>
</div> </div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check"> <GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
...@@ -46,7 +26,7 @@ ...@@ -46,7 +26,7 @@
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
function date_format(date) { function date_format(date) {
var date2 = new Date(date) var date2 = new Date(date)
var YY = date2.getFullYear() + '-' var YY = date2.getFullYear() + '-'
...@@ -76,10 +56,57 @@ export default { ...@@ -76,10 +56,57 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
flag: true, flag: true,
searchForm: { searchForm: {
merchantId: '', openFlag : ''
merchantName: ''
}, },
searchSelectObj: {
idOrName: {
attr: 'merchantName',
value: ''
}
},
searchFormData: [
{
type: 'selectInput',
selectName: 'idOrName',
isClear: true,
inputWidth: '325px',
selectWidth: '110px',
selectOption: [
{
label: '商户名称',
name: 'merchantName'
},
{
label: '商户号',
name: 'merchantId'
}
],
handleSelectChange: value => {
this.searchSelectObj.idOrName.value = ''
}
},
{
label: '开通状态',
name: 'openFlag',
type: 'select',
optionList: [
{
label: '全部',
value: ''
},
{
label: '未开通',
value: '0'
},
{
label: '已开通',
value: '1'
}
],
optionId: 'value',
optionLabel: 'label'
}
],
openFlagList: [ openFlagList: [
{ {
label: '全部', label: '全部',
...@@ -116,7 +143,7 @@ export default { ...@@ -116,7 +143,7 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商户名称', label: '商户名称',
prop: 'merchantName' prop: 'merchantName',
}, },
{ {
label: '商户号', label: '商户号',
...@@ -134,7 +161,8 @@ export default { ...@@ -134,7 +161,8 @@ export default {
label: '开通时间', label: '开通时间',
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.createdDate) return this.date_format(cellValue.createdDate)
} },
width: 170
}, },
{ {
label: '操作人', label: '操作人',
...@@ -142,12 +170,12 @@ export default { ...@@ -142,12 +170,12 @@ export default {
}, },
{ {
label: '操作', label: '操作',
minWidth: '200',
addHtml: 'operate' addHtml: 'operate'
}, },
{ {
label: '开通开关', label: '开通开关',
addHtml: 'openFlag', addHtml: 'openFlag',
width: 100,
formatter: cellValue => { formatter: cellValue => {
if (cellValue.openFlag == '1') { if (cellValue.openFlag == '1') {
return true return true
...@@ -163,7 +191,7 @@ export default { ...@@ -163,7 +191,7 @@ export default {
} }
}, },
mounted() { mounted() {
}, },
created(){ created(){
this.diffHost() this.diffHost()
...@@ -199,7 +227,7 @@ export default { ...@@ -199,7 +227,7 @@ export default {
if (e == 'add') { if (e == 'add') {
this.$router.push({ path: '/config/addConfig', query: { $title: encodeURI('开通配置') } }) this.$router.push({ path: '/config/addConfig', query: { $title: encodeURI('开通配置') } })
} else { } else {
let query = { $title: encodeURI('修改配置') } let query = { $title: encodeURI('修改配置') }
query.merchantId = e query.merchantId = e
console.log(query, 'query') console.log(query, 'query')
this.$router.push({ path: '/config/addConfig', query }) this.$router.push({ path: '/config/addConfig', query })
...@@ -214,26 +242,22 @@ export default { ...@@ -214,26 +242,22 @@ export default {
}) })
}, },
selConfig(e) { selConfig(e) {
if (this.select == 1) { this.searchForm = {
this.searchForm.merchantName = this.selectInput openFlag : this.searchForm.openFlag
this.searchForm.merchantId = ''
} else {
this.searchForm.merchantId = this.selectInput
this.searchForm.merchantName = ''
} }
if (e == 'reset') { if (e == 'reset') {
this.openFlag = '全部' this.searchForm = {
this.searchForm = {} openFlag: ''
this.selectInput = '' }
this.$refs.table.refreshTable() this.searchSelectObj = {
} else { idOrName: {
if (this.openFlag < 2) { attr: 'merchantName',
this.searchForm.openFlag = this.openFlag value: ''
this.$refs.table.refreshTable() }
} else {
this.$refs.table.refreshTable()
} }
} }
this.searchForm[this.searchSelectObj.idOrName.attr] = this.searchSelectObj.idOrName.value
this.$refs.table.refreshTable()
}, },
// ['开通', '关闭'] // // ['开通', '关闭'] //
batchOperation(status) { batchOperation(status) {
...@@ -352,7 +376,7 @@ export default { ...@@ -352,7 +376,7 @@ export default {
} }
/deep/ .equity-wrap { /deep/ .equity-wrap {
.el-button + .el-button { .el-button + .el-button {
margin-left: 20px; margin-left: 8px;
} }
.el-form--inline .el-form-item { .el-form--inline .el-form-item {
margin-bottom: 0; margin-bottom: 0;
...@@ -378,16 +402,6 @@ export default { ...@@ -378,16 +402,6 @@ export default {
width: 166px; width: 166px;
color: #999; color: #999;
} }
.el-form-item__content .el-button--small:first-child,
.row-btns > div .el-button--small:first-child {
border-color: #5850ff;
color: #5850ff;
}
.el-form-item__content .el-button--small:last-child,
.row-btns > div .el-button--small:last-child {
border-color: #999;
color: #666666;
}
.row-btns .el-checkbox__label { .row-btns .el-checkbox__label {
color: #333; color: #333;
padding-left: 8px; padding-left: 8px;
...@@ -409,4 +423,4 @@ export default { ...@@ -409,4 +423,4 @@ export default {
/deep/ .el-input-group__prepend { /deep/ .el-input-group__prepend {
background-color: #fff; background-color: #fff;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!