Commit dcd3a56b by 杨北旺

提交代码

1 parent bf6ab7d5
......@@ -10,18 +10,18 @@
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
let timeout = 30000 //超时时间
import { Http,utils } from 'glsx-common'
import { Http } from 'glsx-common'
export const fetchConfig = function (common) {
console.log(common);
console.log(utils);
let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config',env:'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params)
// console.log(common);
// console.log(utils);
// let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config',env:'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// return utils.getConfig(params)
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return common.utils.getConfig(params)
......
<template>
<div>
<div class="caseDesc-components">
<div class="title">案件补充说明</div>
<div class="list-wrap">
<div class="cell">
<div class="widget">
<div class="label">案件说明:</div>
<div class="content">哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒哒</div>
</div>
<div class="widget">
<div class="label">提交时间:</div>
<div class="content">2023-05-16 15:12:30</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'caseDesc',
props: {},
components: {},
data() {
return {}
},
created() {},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.caseDesc-components {
background: white;
margin-top: 20px;
.title {
padding: 0 20px;
font-size: 16px;
font-weight: bold;
height: 58px;
line-height: 58px;
border-bottom: 1px solid #d8d8d8;
margin: 0 0;
color: #333;
}
.list-wrap {
padding: 32px 20px;
.cell {
display: flex;
align-items: center;
justify-content: space-between;
.widget {
display: flex;
.label {
width: 154px;
height: 20px;
font-weight: 400;
font-size: 14px;
color: #666666;
text-align: right;
}
.content {
width: 408px;
height: 20px;
font-weight: 400;
font-size: 14px;
color: #333333;
}
}
}
}
}
</style>
<template>
<div>
<div class="caseDesc-components">
<div class="title">定损记录</div>
<div class="list-wrap">
<el-timeline>
<el-timeline-item v-for="(activity, index) in activities" :key="index" :color="activity.color" :timestamp="activity.timestamp">
<div class="inline">
<div class="content">{{ activity.content }}</div>
<div v-if="activity.extra" class="tip">{{ activity.extra }}</div>
</div>
</el-timeline-item>
</el-timeline>
</div>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'claimsNote',
props: {},
components: {},
data() {
return {
activities: [
{
content: '门店提交核赔',
timestamp: '2018-04-12 20:46',
color: '#5850FF',
extra: ''
},
{
content: '定损通过',
timestamp: '2018-04-03 20:46',
extra: '批准金额:1000.00元'
},
{
content: '定损不通过',
timestamp: '2018-04-03 20:46',
extra: '资料不全'
},
{
content: '门店上传发票',
timestamp: '2018-04-03 20:46',
extra: ''
}
]
}
},
created() {},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.caseDesc-components {
background: white;
margin-top: 20px;
.title {
padding: 0 20px;
font-size: 16px;
font-weight: bold;
height: 58px;
line-height: 58px;
border-bottom: 1px solid #d8d8d8;
margin: 0 0;
color: #333;
}
.list-wrap {
padding: 17px 40px;
.inline {
display: flex;
align-items: center;
.content {
font-weight: 400;
font-size: 14px;
color: #1D2129;
}
.tip {
display: inline;
font-weight: 400;
font-size: 14px;
color: #666666;
margin-left: 8px;
}
}
}
}
</style>
<!-- 权益订单 -->
<template>
<div>
<report :renew="true" @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair :renew="true" ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material :renew="true" ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<caseDesc></caseDesc>
<claimsNote></claimsNote>
<div class="page-btm-btn" v-if="pageType == 0">
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
</div>
<div class="page-btm-btn" v-if="orderStatus == 6">
<el-button type="primary" >定损通过</el-button>
<el-button type="primary" plain>定损不通过</el-button>
<el-button @click="toShowSP" type="primary">定损通过</el-button>
<el-button @click="toShowSPNoPass" type="primary" plain>定损不通过</el-button>
</div>
<GLDialog class="gl-form-page gl-form-min" title="定损通过" mode="mid" :visible.sync="showPassedDialog" @onOk="comfirmPass" @onCancel="canclePass">
<div class="passed-wrap">
<div class="set-price">
<li>
<label for="">批准金额/元:</label>
<el-input size="small" maxlength="10" placeholder="请输入定损批准金额"></el-input>
</li>
</div>
</div>
</GLDialog>
<GLDialog class="gl-form-page gl-form-min" title="定损不通过" mode="mid" :visible.sync="showNoPassDialog" @onOk="comfirmNoPass" @onCancel="cancleNoPass">
<glsx-combi-form ref="noPassRef" :isInline="false" labelWidth="154px" defaultWidth="284px" :formObj="noPassObj" :formData="noPassForm"></glsx-combi-form>
</GLDialog>
</div>
</template>
<script>
import report from '../../claims/components/report.vue'
import repair from '../../claims/components/repair.vue'
import material from '../../claims/components/material.vue'
import caseDesc from '../Renew/components/CaseDesc/caseDesc.vue'
import claimsNote from '../Renew/components/ClaimsNote/index'
import util from '@/util/util'
import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'detail',
components: {
report,
repair,
material
material,
caseDesc,
claimsNote,
glsxCombiForm
},
data() {
return {
......@@ -66,7 +87,42 @@ export default {
otherInfo: []
},
serviceItemsList: [],
orderStatus:0
orderStatus: 0,
showPassedDialog: false,
showNoPassDialog: false,
noPassObj: {
reason: '',
desc: ''
},
noPassForm: [
{
label: '原因',
name: 'reason',
type: 'select',
isClear: true,
optionList: [
{
confId: 1,
confName: '拒赔'
},
{
confId: 2,
confName: '资料不清晰'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '具体描述:',
name: 'desc',
type: 'input',
inputType: 'textarea',
rows: 3,
isClear: true,
maxlength: 200
}
]
}
},
created() {
......@@ -85,7 +141,7 @@ export default {
},
computed: {
totalPrice() {
let total = this.serviceItemsList.reduce(function(prev, cur) {
let total = this.serviceItemsList.reduce(function (prev, cur) {
return prev + +(cur.approveAmount * 100).toFixed(0)
}, 0)
return total / 100
......@@ -93,7 +149,6 @@ export default {
},
mounted() {
console.log('更新')
},
methods: {
changeObjectType(newVal) {
......@@ -298,6 +353,25 @@ export default {
},
handleCancel() {
this.$router.push({ path: '/GH/Renew/renew' })
},
// 打开审批窗口
toShowSP() {
this.showPassedDialog = true
},
toShowSPNoPass() {
this.showNoPassDialog = true
},
// 定损审核通过
comfirmPass() {
this.canclePass()
},
canclePass() {
this.showPassedDialog = false
},
//定损不通过
comfirmNoPass() {},
cancleNoPass() {
this.showNoPassDialog = false
}
}
}
......@@ -313,4 +387,31 @@ export default {
line-height: 64px;
background: #ffffff;
}
.passed-wrap {
font-family: PingFangSC-Regular, PingFang SC;
color: #333333;
.set-price {
background: #f9f9f9;
padding: 20px;
list-style: none;
margin-top: 10px;
li {
margin-bottom: 20px;
display: flex;
align-items: center;
&:last-child {
margin-bottom: 0;
}
label {
width: 154px;
display: inline-block;
text-align: right;
}
}
.el-input {
width: 284px;
margin-right: 60px;
}
}
}
</style>
......@@ -198,7 +198,7 @@ export default {
{
label: '价格区间',
prop: 'priceSection',
width: 100,
width: 120,
formatter: cellValue => {
return cellValue.priceSection || '-'
}
......
......@@ -4,14 +4,14 @@
<div class="material">
<div class="material-item" v-for="item in materialData" :key="item.name">
<label :class="{ require: item.label }">{{ item.label }}</label>
<el-upload :disabled="pageType == 2 || renew" :id="item.name" :ref="item.name + 'Ref'" :file-list="materialForm[item.name]" :list-type="item.listType ? item.listType : 'picture-card'" :class="[pageType == 2 || item.limit == materialForm[item.name].length ? 'hidePlusBtn' : '', 'upload-item']" :limit="item.limit" action="#" :before-upload="e => beforeAvatarUpload(e, item.name)" :on-preview="handlePictureCardPreview" :on-remove="e => handleRemove(e, item.name)" :http-request="e => httpRequest(e, item.name)">
<el-upload :disabled="pageType == 2" :id="item.name" :ref="item.name + 'Ref'" :file-list="materialForm[item.name]" :list-type="item.listType ? item.listType : 'picture-card'" :class="[pageType == 2 || item.limit == materialForm[item.name].length ? 'hidePlusBtn' : '', 'upload-item']" :limit="item.limit" action="#" :before-upload="e => beforeAvatarUpload(e, item.name)" :on-preview="handlePictureCardPreview" :on-remove="e => handleRemove(e, item.name)" :http-request="e => httpRequest(e, item.name)">
<!-- <i v-if="item.name == 'billInfo'" slot="default" class="el-icon-plus">
<p>上传图片</p>
</i> -->
<img v-if="item.name === 'billInfo'" slot="default" :src="upload_img" alt="" />
<img v-if="item.name === 'idCard'" slot="default" :src="idCard" alt="" />
<img v-if="item.name === 'idCardBack'" slot="default" :src="idCardBack" alt="" />
<el-button v-if="item.name == 'otherInfo'" slot="default" :disabled="pageType == 2 || item.limit == materialForm[item.name].length || renew" size="small" class="el-icon-plus">上传文件</el-button>
<el-button v-if="item.name == 'otherInfo'" slot="default" :disabled="pageType == 2 || item.limit == materialForm[item.name].length" size="small" class="el-icon-plus">上传文件</el-button>
<div slot="tip" class="remark" v-if="item.name == 'idCard'">身份证人像面</div>
<div slot="tip" class="remark" v-if="item.name == 'idCardBack'">身份证国徽面</div>
<div slot="tip" class="file-box" v-if="item.name == 'otherInfo'">
......@@ -63,7 +63,6 @@ export default {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
},
renew:Boolean
},
data() {
return {
......
......@@ -27,7 +27,7 @@
<p class="name">{{ item.serviceItemName }}</p>
<div class="price-wrap">
<label for="">定损批准金额:</label>
<el-input :disabled="pageType == 2 || renew" maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
<el-input :disabled="pageType == 2 " maxlength="10" @input="validPrice($event, index)" @blur="changePrice($event, index)" placeholder="请选择定损批准金额" v-model="item.approveAmount"></el-input>
</div>
</div>
</template>
......@@ -46,7 +46,7 @@
</div>
<div class="collecter">
<label class="require" for="">收款对象:</label>
<el-radio-group @change="changeObjectType" :disabled="pageType == 2 || renew" v-model="accountForm.objectType">
<el-radio-group @change="changeObjectType" :disabled="pageType == 2 " v-model="accountForm.objectType">
<el-radio :label="0">店面</el-radio>
<el-radio :label="1">其他</el-radio>
</el-radio-group>
......@@ -73,7 +73,6 @@ export default {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
},
renew:Boolean
},
components: {
glsxCombiForm
......@@ -99,7 +98,7 @@ export default {
optionLabel: 'confName',
isHide: true,
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '开户行名称',
......@@ -109,7 +108,7 @@ export default {
optionId: 'code',
optionLabel: 'name',
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '账户名称',
......@@ -117,7 +116,7 @@ export default {
type: 'input',
maxlength: 60,
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '收款账号',
......@@ -125,7 +124,7 @@ export default {
type: 'input',
maxlength: 25,
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '收款账号所在省市',
......@@ -136,7 +135,7 @@ export default {
optionId: 'code',
optionLabel: 'name',
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '收款人证件类型',
......@@ -146,7 +145,7 @@ export default {
optionId: 'code',
optionLabel: 'name',
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '收款人证件号码',
......@@ -154,7 +153,7 @@ export default {
type: 'input',
maxlength: 25,
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '收款人联系电话',
......@@ -162,7 +161,7 @@ export default {
type: 'input',
maxlength: 15,
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
}
],
handlerForm: [
......@@ -172,7 +171,7 @@ export default {
type: 'input',
isClear: true,
maxlength: 100,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
{
label: '经办人联系号码:',
......@@ -180,7 +179,7 @@ export default {
type: 'input',
maxlength: 11,
isClear: true,
isDisabled: this.pageType == 2 || this.renew
isDisabled: this.pageType == 2
},
// {
// label: '出险经过描述:',
......
......@@ -45,7 +45,6 @@ export default {
type: Number,
default: 1 // 1.新增 2.查看 3.重新提交 4.去处理
},
renew:Boolean
},
data() {
return {
......@@ -163,7 +162,7 @@ export default {
},
// 处理广汇嘀加不同字段显示
diffKeyHandle(showGh) {
const isDisabled = this.pageType == 2 || this.renew ? true : false
const isDisabled = this.pageType == 2 ? true : false
const dj = [
{
label: '合同号',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!