Commit 3eb020be by 张权

bug修改

1 parent 5d629261
......@@ -94,6 +94,12 @@ const staticRoutes = Object.freeze([
path: '/claims/ghIndex',
component: resolve => require([`@/views/claims/ghIndex.vue`], resolve),
meta: {}
},
{
name: 'ghOrder',
path: '/claims/ghOrder/:id',
component: resolve => require([`@/views/claims/ghOrder.vue`], resolve),
meta: {}
}
])
export default staticRoutes
......@@ -2,7 +2,7 @@ import Vue from 'vue'
import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLCombiForm from '@/components/GlCombiForm'
// import GLCombiForm from '@/components/GlCombiForm'
// import GlSearch from '@/components/GlSearch'
// import GlSearchItem from '@/components/GlSearchItem'
import { getRoutes } from '@/router'
......@@ -15,13 +15,13 @@ let instance = null
Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
Vue.use(GLCombiForm)
// Vue.use(GLCombiForm)
// Vue.use(GlSearch)
// Vue.use(GlSearchItem)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
// request.baseURL = 'http://192.168.1.165:7226'
// request_brand.baseURL = 'http://192.168.1.165:7226'
Vue.prototype.$history = history
......
<!-- 编辑权益 -->
<template>
<div class="app">
<div class="before-sale edit-equity">
<!-- 车辆信息 -->
<div class="container">
......@@ -213,7 +212,6 @@
<!-- 二维码 -->
<qrCode :bottom="320" phone="400 6123 886" phoneTitle="提单及服务咨询" :codeUrl="qrcodUrl"></qrCode>
</div>
</div>
</template>
<script>
......@@ -2028,7 +2026,7 @@ export default {
}
.app {
background: #f4f5fa;
padding: 0px 0 20px 0;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
......
<!-- 权益订单列表 -->
<template>
<div class="app">
<div class="before-sale">
<div class="flex m-b-10">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button>
......@@ -60,7 +59,6 @@
</span>
</el-dialog>
</div>
</div>
</template>
<script>
......@@ -954,7 +952,7 @@ export default {
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 0 20px 0;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
......
<template>
<div class="app">
<div class="introduct_container">
<div class="top_play_wrap flex_scb">
<div class="text_wrap">
......@@ -66,7 +65,6 @@
<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>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
......@@ -139,7 +137,7 @@ export default {
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 0 20px 0;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
......
......@@ -97,6 +97,7 @@ export default {
},
methods: {
beforeAvatarUpload(e, fieldName) {
console.log(e)
return new Promise((resolve, reject) => {
let AllImgExt = '.png|.jpg|.jpeg'
if (fieldName === 'otherInfo') {
......@@ -108,8 +109,17 @@ export default {
return reject(false)
}
const size = e.size / 1024 / 1024
if (size > 200) {
this.$message.error('上传文件不可超过200M')
let maxSize = 200
let filetype = this.getFileType(e.type)
if( filetype=='image'){
maxSize = 9
}else if(filetype=='doc'){
maxSize = 100
}else{
maxSize = 200
}
if (size > maxSize) {
this.$message.error(`上传文件不可超过${maxSize}M`)
return reject(false)
}
return resolve(true)
......
<!-- 权益订单 -->
<template>
<div class="app">
<div>
<div class="header_btn_widget flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<GLButton size="small" fn="广汇订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
</div>
<div class="header_info_widget">
<span class="el-icon-warning"></span>
......@@ -17,11 +17,11 @@
<div slot="footer" class="footer-btns" 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 class="table_widget">
<el-button style="float:right;margin-bottom:10px;" size="small" type="primary" @click="exportList" plain>导出excel</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
......@@ -254,7 +254,7 @@ export default {
urlParam.contractNo = editNo == 1 ? '' : row.writeOffCode
}
const temp = encodeURIComponent(JSON.stringify(urlParam))
this.$router.push({ path: '/claims/order/' + temp })
this.$router.push({ path: '/claims/ghOrder/' + temp })
},
handleOkFn() {
this.getParams()
......
<!-- 权益订单 -->
<template>
<div class="app">
<div>
<div class="header_btn_widget flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
</div>
......@@ -17,11 +17,11 @@
<div slot="footer" class="footer-btns" 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 class="table_widget">
<el-button style="float:right;margin-bottom:10px;" size="small" type="primary" @click="exportList" plain>导出excel</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
......
<!-- 权益订单 -->
<template>
<div class="app">
<div>
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
......
......@@ -344,7 +344,6 @@ export default {
}
.addGood {
margin-bottom: 10px;
margin-left: 40px;
padding: 8px 16px;
// margin-bottom: 20px;
}
......
......@@ -345,7 +345,6 @@ export default {
}
.addGood {
margin-bottom: 10px;
margin-left: 40px;
padding: 8px 16px;
// margin-bottom: 20px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!