Commit d18602f6 by 张权

UI修改,处理equityList

1 parent ec5f0119
This diff could not be displayed because it is too large.
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.7",
"glsx-components": "^1.4.7",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
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
/**
* 时间控件-限制月份
*/
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
<!-- <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
<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>
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 GlSearch from '@/components/GlSearch'
// import GlSearchItem from '@/components/GlSearchItem'
import { GLButton, GLTable , GLCombiForm, GLTableButton,GLDialog} from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
......@@ -12,12 +9,7 @@ import 'glsx-components/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(GLCombiForm)
// Vue.use(GlSearch)
// Vue.use(GlSearchItem)
Vue.use(GLTable).use(GLCombiForm).use(GLTableButton).use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// request.baseURL = 'https://scrm.test.glsx.com.cn'
......
......@@ -5,7 +5,8 @@
<div class="blank"></div>
<GLTable ref="detailTable" :searchForm="addForm" :tableParams="addParams" :pageConf="addPageConf" style="margin-top: 10px" :hasNum="false" :getListApi="getWorryBatcnList">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="download(scope.scope)">批量下载</el-button>
<!-- <el-button type="text" @click="download(scope.scope)">批量下载</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span>
</GLTable>
<!-- 生成弹窗 -->
......@@ -108,6 +109,20 @@ export default {
data() {
return {
date_format,
buttonList: [
{
type: 'el-button',
name: row => {
return '批量下载'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.download(row.scope)
}
}
],
getWorryBatcnList: this.$apis.addWorryFree.getWorryBatcnList,
addDialogForm: {},
addDialog: false,
......
......@@ -2,7 +2,7 @@
<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>
<div class="equity-wrap contain" style="margin-top: 10px">
<el-form :inline="true" label-width="auto" label-position="right" class="selectForm">
<!-- <el-form :inline="true" label-width="auto" label-position="right" class="selectForm">
<el-row style="align-items: center">
<el-form-item label="特约名称">
<el-input v-model="appointmentForm.spaName" placeholder="请输入" size="small"></el-input>
......@@ -16,12 +16,15 @@
<el-button plain size="small" @click="exportTable" class="selectBtn">导出</el-button>
</el-form-item>
</el-row>
</el-form>
</el-form> -->
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="seletTable('select')" @handleRest="seletTable('reset')"></GLCombiForm>
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportTable" class="selectBtn">导出</el-button>
<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">
<!-- 批次管理详情弹窗按钮 -->
<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="showDialog(scope.scope)">修改</el-button>
<el-button type="text" @click="del(scope.scope)">删除</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span>
</GLTable>
<!-- 修改界面弹窗 -->
......@@ -66,6 +69,44 @@ export default {
data() {
return {
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'
}
],
isAdd: false,
getAppointmentList: this.$apis.appointmentApi.getAppointmentList,
dialogTitle: '',
......@@ -253,9 +294,9 @@ export default {
</script>
<style lang="scss" scoped>
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
// /deep/ .contain .el-input--small .el-input__inner {
// width: 215px;
// }
/deep/ .el-form-item {
margin-bottom: 0;
}
......@@ -286,10 +327,6 @@ export default {
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;
......
......@@ -13,15 +13,12 @@
单校验不通过退回处理,为保障客户权益,请尽快处理哦!
</div>
<div class="search_container">
<glsx-combi-form ref="showSearch" labelWidth="112px" defaultWidth="218px" :formObj="searchForm" :formData="searchFormData">
<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>
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="searchForm" :formData="searchFormData" @handleOk="handleOkFn" @handleRest="handleRestFn()">
</GLCombiForm>
</div>
<div class="table_widget">
<el-button 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">
<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>
......@@ -33,7 +30,6 @@
</div>
</template>
<script>
import glsxCombiForm from '@/components/glsx-combi-form'
import * as dayjs from 'dayjs'
const statusList = [
{
......@@ -109,7 +105,7 @@ export default {
{
label: '核销码',
prop: 'writeOffCode',
width: '90',
width: 100,
formatter: cellValue => {
return cellValue.writeOffCode || '-'
}
......@@ -117,7 +113,7 @@ export default {
{
label: '报案号',
prop: 'registNo',
width: '220',
width: 220,
formatter: cellValue => {
return cellValue.registNo || '-'
}
......@@ -125,7 +121,7 @@ export default {
{
label: '客户名称',
prop: 'reporterName',
width: '200',
width: 160,
formatter: cellValue => {
return cellValue.reporterName || '-'
}
......@@ -133,7 +129,7 @@ export default {
{
label: '合同号',
prop: 'contractNo',
width: '200',
width: 200,
formatter: cellValue => {
return cellValue.contractNo || '-'
}
......@@ -141,7 +137,7 @@ export default {
{
label: '价格区间',
prop: 'priceSection',
width: '100',
width: 100,
formatter: cellValue => {
return cellValue.priceSection || '-'
}
......@@ -149,7 +145,7 @@ export default {
{
label: '门店提交时间',
prop: 'commitTime',
width: '180',
width: 180,
formatter: cellValue => {
return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-'
}
......@@ -157,7 +153,7 @@ export default {
{
label: '提交国任时间',
prop: 'commitGuoRenDate',
width: '180',
width: 180,
formatter: cellValue => {
return cellValue.commitGuoRenDate ? dayjs(cellValue.commitGuoRenDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
......@@ -165,7 +161,7 @@ export default {
{
label: '服务名称',
prop: 'serviceName',
width: '300',
width: 300,
line: 1,
formatter: cellValue => {
return cellValue.serviceName || '-'
......@@ -174,7 +170,7 @@ export default {
{
label: '服务状态',
prop: 'status',
width: '120',
width: 120,
formatter: cellValue => {
if (!cellValue) return '-'
return statusList.map(item => item.confId).includes(cellValue.status) ? statusList.find(item => item.confId === cellValue.status).confName : '-'
......@@ -183,7 +179,7 @@ export default {
{
label: '状态描述',
prop: 'statusDesc',
width: '200',
width: 200,
formatter: cellValue => {
return cellValue.statusDesc || '-'
}
......@@ -191,7 +187,8 @@ export default {
{
label: '批准金额',
prop: 'approvalAmount',
width: '100',
width: 100,
align: 'right',
formatter: cellValue => {
return cellValue.approvalAmount || '-'
}
......@@ -199,7 +196,8 @@ export default {
{
label: '支付金额',
prop: 'paymentAmount',
width: '100',
align: 'right',
width: 100,
formatter: cellValue => {
return cellValue.paymentAmount || '-'
}
......@@ -207,7 +205,7 @@ export default {
{
label: '操作人',
prop: 'operatorName',
width: '100',
width: 100,
formatter: cellValue => {
return cellValue.operatorName || '-'
}
......@@ -215,7 +213,7 @@ export default {
{
label: '操作',
prop: '',
width: '200',
width: 200,
fixed: 'right',
addHtml: 'table-btns'
}
......@@ -223,9 +221,6 @@ export default {
}
}
},
components: {
glsxCombiForm
},
created() {
this.diffHost()
......
<template>
<div class="equity-wrap" style="margin-top: 20px">
<div class="equity-wrap contain">
<el-form :inline="true" label-width="70px" label-position="right" class="detailForm">
<el-row style="align-items: center">
<el-form-item label="序列号">
<el-input v-model="detailForm.seqNo" placeholder="请输入" size="small" class="formItem"></el-input>
</el-form-item>
<el-form-item label="版本">
<el-select v-model="detailForm.batchType" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in editOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="适用类型" style="margin-left: 30px">
<el-select v-model="detailForm.packageCode" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="状态">
<el-select v-model="detailForm.status" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in statusOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="具体价格">
<el-input v-model="detailForm.actualPrice" placeholder="请输入" size="small" class="formItem"></el-input>
</el-form-item>
<el-form-item label="使用年限" style="margin-left: 30px">
<el-select v-model="detailForm.servicePeriod" placeholder="请选择" size="small" class="formItem">
<el-option v-for="(item, index) in lifeOptions" :key="index" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px !important; padding-top: 5px">
<el-button class="selectBtn" size="small" @click="detailSelect('reset')" style="border-color: #5850ff; color: #5850ff; margin-right: 10px">重置</el-button>
<el-button class="selectBtn" size="small" type="primary" @click="detailSelect('select')" style="">查询</el-button>
</el-form-item>
</el-row>
</el-form>
<GLCombiForm ref="showSearch" :formObj="detailForm" :formData="detailFormData" @handleOk="detailSelect('select')" @handleRest="detailSelect('reset')"></GLCombiForm>
<el-alert style="margin-top: 20px" :closable="false" type="info" show-icon>总计{{ line.total }}张,已使用{{ line.usedAmount }}张</el-alert>
<GLTable ref="detailTable" :searchForm="detailForm" :tableParams="detailParams" :pageConf="detailPageConf" :getListApi="getDetailList" :beforeSearchFn="check" style="margin-top: 10px">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status == 0 ? false : true">修改</el-button>
<!-- <el-button type="text" @click="modify(scope.scope)" :disabled="scope.scope.status">修改</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</span>
</GLTable>
</div>
......@@ -116,6 +82,23 @@ export default {
data() {
return {
date_format,
buttonList: [
{
type: 'el-button',
name: row => {
return '修改'
},
attrs: {
type: 'text',
disabled:(row)=>{
return row.scope.status
}
},
listeners: {
click: row => this.modify(row.scope)
}
}
],
line: {
total: '',
usedAmount: ''
......@@ -131,6 +114,123 @@ export default {
actualPrice: '',
status: ''
},
detailFormData: [
{
type: 'input',
label: '序列号',
name: 'seqNo',
isClear: true
},
{
label: '版本',
name: 'batchType',
type: 'select',
optionList: [ {
confId: '',
confName: '全部'
},
{
confId: '1',
confName: '尊享版'
},
{
confId: '2',
confName: '畅享版'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '适用类型',
name: 'packageCode',
type: 'select',
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: 'PC0005',
confName: '盗抢全损无忧'
},
{
confId: 'PC0006',
confName: '轮胎无忧'
},
{
confId: 'PC0007',
confName: '整车全损无忧'
},
{
confId: 'PC0008',
confName: '碰撞无忧'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '状态',
name: 'status',
type: 'select',
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: '0',
confName: '未使用'
},
{
confId: '1',
confName: '已使用'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
type: 'input',
label: '具体价格',
name: 'actualPrice',
isClear: true
},
{
label: '使用年限',
name: 'servicePeriod',
type: 'select',
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: '1',
confName: '1年'
},
{
confId: '2',
confName: '2年'
},
{
confId: '3',
confName: '3年'
},
{
confId: '4',
confName: '4年'
},
{
confId: '5',
confName: '5年'
}
],
optionId: 'confId',
optionLabel: 'confName'
}
],
detailDialogForm: {
batchType: '',
packageCode: '',
......@@ -468,10 +568,6 @@ export default {
margin-bottom: 20px;
margin-left: 40px;
padding: 8px 16px;
// margin-bottom: 20px;
}
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
/deep/ .el-dialog {
.el-dialog__body {
......@@ -495,22 +591,6 @@ export default {
}
}
}
.contain:first-child {
margin-bottom: 10px;
.el-row:first-child {
margin-bottom: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
.el-form-item__label {
color: #333;
height: 32px;
}
.el-input__inner {
height: 32px;
}
}
}
.row-btns {
margin-top: 5px;
margin-bottom: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!