Commit cac1ee5e by 前端

权益订单汇总开发

1 parent 13dbc771
...@@ -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),
......
<template> <template>
<div class="equity-wrap" style="margin-top: 20px"> <div class="equity-wrap">
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button> <el-button type="primary" @click="add" size="small" class="addButtom">生成</el-button>
<div class="blank"></div> <div class="blank"></div>
...@@ -51,16 +51,12 @@ ...@@ -51,16 +51,12 @@
</el-row> </el-row>
</div> </div>
</el-form> </el-form>
<!-- <span slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelDetailDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('detailForm')">确 定</el-button>
</span> -->
</GLDialog> </GLDialog>
</div> </div>
</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() + '-'
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</el-row> </el-row>
</el-form> --> </el-form> -->
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="submitForm('modifyForm')" @handleRest="seletTable('reset')"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="submitForm('modifyForm')" @handleRest="seletTable('reset')"></GLCombiForm>
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportTable" class="selectBtn">导出</el-button> <el-button 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"> <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">
<!-- 批次管理详情弹窗按钮 --> <!-- 批次管理详情弹窗按钮 -->
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,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() + '-'
...@@ -318,7 +318,7 @@ export default { ...@@ -318,7 +318,7 @@ export default {
word-break: break-all; word-break: break-all;
text-align: center; text-align: center;
} }
/deep/ .el-textarea__inner { /deep/ .el-textarea__inner {
display: block; display: block;
resize: vertical; resize: vertical;
padding: 5px 15px; padding: 5px 15px;
...@@ -331,7 +331,7 @@ export default { ...@@ -331,7 +331,7 @@ export default {
background-image: none; background-image: none;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
border-radius: 4px; border-radius: 4px;
transition: border-color .2s cubic-bezier(.645,.045,.355,1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 320px; width: 320px;
height: 80px; height: 80px;
} }
......
...@@ -8,19 +8,12 @@ ...@@ -8,19 +8,12 @@
</div> </div>
<div class="container"> <div class="container">
<div class="find_wrap"> <div class="find_wrap">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"></glsx-combi-form> <GLCombiForm :key="newKey" ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3">
<span slot="footer" class="footer-btns">
<el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleExport">导出</el-button>
</span>
</glsx-combi-form>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="table_wrapper"> <div class="table_wrapper">
<el-button style="float:right;margin-bottom:10px;" :size="size" @click="handleExport">导出</el-button>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
...@@ -57,7 +50,7 @@ ...@@ -57,7 +50,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import glsxCombiForm from '@/components/glsx-combi-form' // import glsxCombiForm from '@/components/glsx-combi-form'
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
import pdfDialog from './pdfDialog' import pdfDialog from './pdfDialog'
import utils from '../../util/util' import utils from '../../util/util'
...@@ -66,6 +59,7 @@ export default { ...@@ -66,6 +59,7 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
newKey: new Date(),
buttonList: [ buttonList: [
{ {
type: 'GLButton', type: 'GLButton',
...@@ -253,9 +247,7 @@ export default { ...@@ -253,9 +247,7 @@ export default {
optionId: 'packageCode', optionId: 'packageCode',
optionLabel: 'packageName', optionLabel: 'packageName',
optionsName: 'goodsStatusList' optionsName: 'goodsStatusList'
} },
],
searchFormData2: [
{ {
label: '提单成功时间', label: '提单成功时间',
name: 'successDate', name: 'successDate',
...@@ -269,9 +261,7 @@ export default { ...@@ -269,9 +261,7 @@ export default {
name: 'effectiveDate', name: 'effectiveDate',
type: 'datePicker', type: 'datePicker',
isClear: true isClear: true
} },
],
searchFormData3: [
{ {
label: '总部', label: '总部',
name: 'merchantId', name: 'merchantId',
...@@ -282,16 +272,16 @@ export default { ...@@ -282,16 +272,16 @@ export default {
optionsName: 'merchantList', optionsName: 'merchantList',
isHide: true, isHide: true,
changeAttr: (val, targetItem) => { changeAttr: (val, targetItem) => {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['2']) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['2'])
this.searchFormData3[idx].isHide = false this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['2']] = '' this.searchForm[this.levelToShow['2']] = ''
var tempIdx = '' var tempIdx = ''
for (var i = 3; i <= 4; i++) { for (var i = 3; i <= 4; i++) {
tempIdx = this.searchFormData3.findIndex(item => item.name == this.levelToShow[i + '']) tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData3[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' this.searchForm[this.levelToShow[i + '']] = ''
} }
this.getMerchantList(val, 2, this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName) this.getMerchantList(val, 2, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
} }
}, },
{ {
...@@ -304,13 +294,13 @@ export default { ...@@ -304,13 +294,13 @@ export default {
optionsName: 'dqList', optionsName: 'dqList',
isHide: true, isHide: true,
changeAttr: (val, targetItem) => { changeAttr: (val, targetItem) => {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['3']) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['3'])
this.searchFormData3[idx].isHide = false this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['3']] = '' this.searchForm[this.levelToShow['3']] = ''
var tempIdx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['4']) var tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow['4'])
this.searchFormData3[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow['4']] = '' this.searchForm[this.levelToShow['4']] = ''
this.getMerchantList(val, 3, this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName) this.getMerchantList(val, 3, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
} }
}, },
{ {
...@@ -323,10 +313,10 @@ export default { ...@@ -323,10 +313,10 @@ export default {
optionsName: 'pqList', optionsName: 'pqList',
isHide: true, isHide: true,
changeAttr: (val, targetItem) => { changeAttr: (val, targetItem) => {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow['4']) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow['4'])
this.searchFormData3[idx].isHide = false this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['4']] = '' this.searchForm[this.levelToShow['4']] = ''
this.getMerchantList(val, 4, this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName) this.getMerchantList(val, 4, this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
} }
}, },
{ {
...@@ -340,6 +330,22 @@ export default { ...@@ -340,6 +330,22 @@ export default {
isHide: true isHide: true
} }
], ],
searchFormData2: [
{
label: '提单成功时间',
name: 'successDate',
type: 'datePicker',
labelWidth: 95,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '生效时间',
name: 'effectiveDate',
type: 'datePicker',
isClear: true
}
],
// 表格 // 表格
getListApi: this.$apis.beforeSale.getListApi, getListApi: this.$apis.beforeSale.getListApi,
tableParams: { tableParams: {
...@@ -650,7 +656,7 @@ export default { ...@@ -650,7 +656,7 @@ export default {
}, },
components: { components: {
glsxCombiForm, // glsxCombiForm,
// glsxDialog, // glsxDialog,
pdfDialog pdfDialog
}, },
...@@ -677,10 +683,10 @@ export default { ...@@ -677,10 +683,10 @@ export default {
console.log(res) console.log(res)
this.userInfo = res this.userInfo = res
if (res.merchantAccountLevel != 4) { if (res.merchantAccountLevel != 4) {
var idx = this.searchFormData3.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1]) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData3[idx].isHide = false this.searchFormData[idx].isHide = false
this.searchFormData3[idx].labelWidth = 95 this.searchFormData[idx].labelWidth = 95
this.getMerchantList('', '', this.searchFormData3[idx].name, this.searchFormData3[idx].optionsName) this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
} }
}) })
}, },
...@@ -698,7 +704,7 @@ export default { ...@@ -698,7 +704,7 @@ export default {
} }
this.$apis.beforeSale.getMerchantApi(params).then(res => { this.$apis.beforeSale.getMerchantApi(params).then(res => {
this.baseData[listName] = res this.baseData[listName] = res
this.getOptionsList('searchFormData3', false, attrName) this.getOptionsList('searchFormData', false, attrName)
}) })
}, },
getSelectInputParams() { getSelectInputParams() {
...@@ -768,6 +774,7 @@ export default { ...@@ -768,6 +774,7 @@ export default {
} }
}) })
} }
this.newKey = new Date()
}, },
secondConfirm(title, txt, apiModule, apiName, apiParams) { secondConfirm(title, txt, apiModule, apiName, apiParams) {
...@@ -997,8 +1004,8 @@ export default { ...@@ -997,8 +1004,8 @@ export default {
var addNum = this.userInfo.admin ? 1 : 2 var addNum = this.userInfo.admin ? 1 : 2
if (this.userInfo.merchantAccountLevel != 4) { if (this.userInfo.merchantAccountLevel != 4) {
for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) { for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) {
tempIdx = this.searchFormData3.findIndex(item => item.name == this.levelToShow[i + '']) tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData3[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' this.searchForm[this.levelToShow[i + '']] = ''
} }
} }
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<!-- <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;" class="primary_plain_btn"> <div style="float: right;" class="primary_plain_btn">
<el-button size="small" plain @click="exportTable">导出</el-button>
<el-button size="small" plain @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">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!