<!--发电用户-->
<template>
    <div>
        <el-form :inline="true" :model="ruleForm" class="demo-form-inline">
            <el-form-item label="信息查询:">
                <el-input v-model.trim="ruleForm.searchValue" placeholder="请输入查询信息" clearable></el-input>
            </el-form-item>

            <el-form-item>
                <el-button type="primary" icon="el-icon-download" class="pms">PMS获取数据</el-button>
                <!-- <el-button type="primary" icon="el-icon-upload2" class="ml10" @click="upload">PMS数据上传</el-button> -->
                <el-button type="primary" class="ml10" icon="el-icon-search" @click="pagUser">查询</el-button>
                <!-- <el-button type="primary" icon="el-icon-refresh-right" @click="Reset"
          >重置</el-button
        > -->
                <el-button type="primary" icon="el-icon-download" @click="exportEvent">导出</el-button>
            </el-form-item>
        </el-form>

        <template>
            <span>
                <el-button type="primary" size="mini" class="ml10" icon="el-icon-plus" @click="addFn">新增</el-button>
                <el-button type="primary" size="mini" class="ml10" icon="el-icon-edit" @click="modifyFn">
                    修改
                </el-button>
                <el-button type="primary" size="mini" class="ml10" icon="el-icon-delete" @click="deleteFn">
                    删除
                </el-button>
            </span>
            <vxe-table stripe :data="UserData" :height="height" border :row-config="{ isCurrent: true, isHover: true }"
                size="mini" ref="PowerGenerationAccount" style="width: 100%" v-loading="isLoading"
                header-cell-class-name="table_header" @checkbox-all="handleSelectionChange"
                @checkbox-change="handleSelectionChange" class="mt10" :cell-style="cellStyle">
                <vxe-table-column align="center" type="checkbox" width="55"></vxe-table-column>

                <vxe-table-column v-for="(item, index) in tableHeaderUser" align="center" :field="item.prop"
                    :title="item.label" :min-width="item.width" :key="index" :formatter="formFilter"
                    :show-overflow="true"></vxe-table-column>
            </vxe-table>
            <el-pagination background align="right" @size-change="handleSizeChange"
                @current-change="handleCurrentChange" :current-page="ruleForm.pageNum"
                :page-sizes="[20, 30, 40, 50, 100]" :page-size="ruleForm.pageSize"
                layout="total, sizes, prev, pager, next, jumper" :total="total" class="mt10"></el-pagination>
        </template>

        <!-- <PMS_Data
      :PMSobtain="PMSobtain"
      :title="title"
      @Close="Close"
      :Data="UserData"
      :Name="tableHeaderUser"
    ></PMS_Data> -->

        <!-- 新增/修改 -->
        <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="addinformation"
            :before-close="handleClose" width="50%" height="80%">
            <el-form :inline="true" :model="form" label-width="170px" class="form" :rules="rules" ref="rulesform">
                <el-form-item label="用户编号:" prop="id" class="mt10">
                    <el-input v-model="form.id" placeholder="请输入用户编号" clearable :disabled="disabled"></el-input>
                </el-form-item>
                <el-form-item label="用户名称:" prop="name" class="mt10">
                    <el-input v-model="form.name" clearable placeholder="请输入用户名称"></el-input>
                </el-form-item>
                <el-form-item prop="orgName" class="mt10" label="组织机构名称:" :rules="{
                    required: true,
                    message: '请输入组织机构名称',
                    trigger: 'change'
                }">
                    <Organization @click="handleNodeClick" ref="Organization" :valueTitle="valueTitle"
                        :editCheckCode="editCheckCode"></Organization>
                </el-form-item>
                <el-form-item prop="operationName" class="mt10" label="运维单位名称:" :rules="{
                    required: true,
                    message: '请输入运维单位名称',
                    trigger: 'change'
                }">
                    <Operation @click="handleNodeClick1" ref="Operation" :valueTitle="valueTitle1"
                        :editCheckCode="editCheckCode1"></Operation>
                </el-form-item>
                <el-form-item label="供电变电站:" prop="powerStationId" class="mt10">
                    <el-select v-model="form.powerStationId" clearable placeholder="请选择供电变电站" @change="changeFn1"
                        filterable>
                        <el-option v-for="item in statationName" :key="item.powerId"
                            :label="item.orgName + '_' + item.powerName" :value="item.powerId"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="供电线路:" prop="lineId" class="mt10">
                    <el-select v-model="form.lineId" clearable placeholder="请选择供电线路" @change="changeFn3" filterable>
                        <el-option v-for="item in MonitoringLine" :key="item.id"
                            :label="item.stationName + '_' + item.name" :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="供电台区:" prop="platformId" class="mt10">
                    <el-select v-model="form.platformId" clearable placeholder="请选择供电台区" @change="powerChange"
                        filterable>
                        <el-option v-for="item in Routetable" :key="item.id" :label="item.orgName + '_' + item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="电源类别:" prop="powerCategory" class="mt10">
                    <el-select v-model="form.powerCategory" clearable placeholder="请选择电源类别">
                        <el-option v-for="item in powerCategoryList" :key="item.id" :label="item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="电站类型:" prop="powerStationType" class="mt10">
                    <el-select v-model="form.powerStationType" clearable placeholder="请选择电站类型">
                        <el-option v-for="item in powerStationTypeList" :key="item.id" :label="item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="发电方式:" prop="powerGenerationMode" class="mt10">
                    <el-select v-model="form.powerGenerationMode" clearable placeholder="请选择发电方式">
                        <el-option v-for="item in powerGenerationModeList" :key="item.id" :label="item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="并网电压等级:" prop="voltageLevel" class="mt10">
                    <el-select v-model="form.voltageLevel" clearable placeholder="请选择并网电压等级">
                        <el-option v-for="item in voltageLevelList" :key="item.id" :label="item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="总装机容量:" prop="sourceCapacity" class="mt10">
                    <el-input v-model="form.sourceCapacity" maxlength="10" clearable placeholder="请输入总装机容量"></el-input>
                </el-form-item>
                <el-form-item label="并网日期:" prop="connectionDate" class="mt10">
                    <el-date-picker v-model="form.connectionDate" value-format="yyyy-MM-dd" type="date"
                        placeholder="选择日期"></el-date-picker>
                </el-form-item>
                <el-form-item label="能源消纳方式:" prop="connectionMode" class="mt10">
                    <el-select v-model="form.connectionMode" clearable placeholder="请选择能源消纳方式">
                        <el-option v-for="item in connectionModeList" :key="item.id" :label="item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="客户状态:" prop="gcStat" class="mt10">
                    <el-select v-model="form.gcStat" clearable placeholder="请选择客户状态">
                        <el-option v-for="item in gcStatList" :key="item.id" :label="item.name"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>

                <el-form-item label="用户标签:" prop="userTag" class="mt10">
                    <el-input v-model="form.userTag" clearable placeholder="请输入用户标签"></el-input>
                </el-form-item>
                <el-form-item label="是否是上送网公司监测点:" prop="isUpToGrid" class="mt10">
                    <el-select v-model="form.isUpToGrid" clearable placeholder="请选择是否是上送网公司监测点">
                        <el-option v-for="item in whether" :key="item.id" :label="item.label"
                            :value="item.id"></el-option>
                    </el-select>
                </el-form-item>
            </el-form>
            <span slot="footer" class="dialog-footer">
                <el-button type="primary" @click="handleClose">取 消</el-button>
                <el-button v-if="add" type="primary" @click="addinformationFn">确 定</el-button>
                <el-button v-if="modify" type="primary" @click="modifyinformationFn">确 定</el-button>
            </span>
        </el-dialog>
    </div>
</template>

<script>
import PMS_Data from '@/views/components/Accountinformation/PMS_Data'
import Organization from './Area/Organization.vue'
import Operation from './Area/Operation.vue'
import {
    getPowerGenerationUserPageList,
    getPowerDistributionAreaList,
    getstatationStatList,
    getGeneratrixWireList,
    addPowerGenerationUser,
    updatePowerGenerationUser,
    delPowerGenerationUser
} from '@/api/hbaccountoperation/PowerGenerationAccount'
import { deptTree } from '@/api/admin/dept'
import { dicData } from '@/assets/commjs/dictypeData'
export default {
    components: { PMS_Data, Organization, Operation },
    data() {
        return {
            vh: '',
            title: '',
            add: false,
            modify: false,

            // 查询数据
            ruleForm: {
                searchValue: '',
                pageNum: 1,
                pageSize: 20
                // orderBy: "",
                // searchBeginTime: "",
                // searchEndTime: "",
                // searchState: 0,
                // sortBy: "",
                // status: 0
            },
            total: 0,
            form: {
                connectionDate: '',
                connectionMode: '',
                gcStat: '',
                id: '',
                isUpToGrid: '',
                lineId: '',
                name: '',
                operationId: '',
                orgId: '',
                platformId: '',
                powerCategory: '',
                powerGenerationMode: '',
                powerStationId: '',
                powerStationType: '',
                sourceCapacity: '',
                userTag: '',
                voltageLevel: '',
                orgName: '',
                operationName: '',
                powerrName: '',
                lineName: '',
                platformName: ''
            },
            rules: {
                id: [{ required: true, message: '请输入用户编号', trigger: 'blur' }],
                name: [{ required: true, message: '请输入用户名称', trigger: 'blur' }],
                powerStationId: [{ required: true, message: '请选择供电变电站', trigger: 'change' }],
                lineId: [{ required: true, message: '请选择供电线路', trigger: 'change' }],
                platformId: [{ required: true, message: '请选择供电台区', trigger: 'change' }],
                powerCategory: [{ required: true, message: '请选择电源类别', trigger: 'change' }],
                powerStationType: [{ required: true, message: '请选择电站类型', trigger: 'change' }],
                powerGenerationMode: [{ required: true, message: '请选择发电方式', trigger: 'change' }],
                sourceCapacity: [
                    { required: true, message: '请输入总装机容量', trigger: 'blur' },
                    { pattern: /^[0-9]*$/, message: '只可以输入数字', trigger: 'blur' }
                ],
                voltageLevel: [{ required: true, message: '请选择并网电压等级', trigger: 'change' }],
                connectionDate: [{ required: true, message: '选择日期', trigger: 'change' }],
                connectionMode: [{ required: true, message: '请选择能源消纳方式', trigger: 'change' }],
                gcStat: [{ required: true, message: '请选择客户状态', trigger: 'change' }],
                userTag: [{ required: true, message: '请输入用户标签', trigger: 'blur' }],
                isUpToGrid: [
                    {
                        required: true,
                        message: '请选择是否是上送网公司监测点',
                        trigger: 'change'
                    }
                ]
            },
            height: null,
            height1: null,
            isLoading: false,
            disabled: true,
            multipleSelection: [],
            //台区台账表头
            tableHeaderUser: [
                { prop: 'id', label: '用户编号', width: 100 },
                { prop: 'name', label: '用户名称', width: 230 },
                { prop: 'orgName', label: '组织机构名称', width: 150 },
                { prop: 'operationName', label: '运维单位名称', width: 150 },
                { prop: 'powerCategory', label: '电源类别', width: 120 },
                { prop: 'powerStationType', label: '电站类型', width: 180 },
                { prop: 'powerGenerationMode', label: '发电方式', width: 100 },
                { prop: 'voltageLevel', label: '并网电压等级', width: 120 },
                { prop: 'sourceCapacity', label: '总装机容量', width: 100 },
                { prop: 'connectionDate', label: '并网日期', width: 100 },
                { prop: 'connectionMode', label: '能源消纳方式', width: 120 },
                { prop: 'gcStat', label: '客户状态', width: 120 },
                { prop: 'userTag', label: '用户标签', width: 120 },
                { prop: 'isUpToGrid', label: '是否是上送网公司监测点', width: 190 }
                // { prop: "status", label: "数据状态", width:100 },
            ],
            whether: [
                {
                    id: 0,
                    value: '选项1',
                    label: '否'
                },
                {
                    id: 1,
                    value: '选项2',
                    label: '是'
                }
            ],
            editCheckCode: '',
            valueTitle: '',
            editCheckCode1: '',
            valueTitle1: '',
            UserData: [],
            device: '',
            organization: [], //组织机构名称
            operation: [], //运维单位名称
            powerCategoryList: [], //电源类别
            powerStationTypeList: [], //电站类型
            powerGenerationModeList: [], //发电方式
            voltageLevelList: [], //并网电压等级
            connectionModeList: [], //能源消纳方式
            gcStatList: [], //客户状态
            statationName: [], //供电变电站
            MonitoringLine: [], //供电线路
            Routetable: [], //供电台区
            PMSobtain: false,
            information: false, //修改台区信息
            addinformation: false //新增台区信息
        }
    },
    created() {
        this.getclassificationData()
    },

    mounted() {
        this.setHeight()
        window.addEventListener('resize', this.setHeight)
        this.User()
    },
    beforeDestroy() {
        window.removeEventListener('resize', this.setHeight)
    },
    computed: {},
    methods: {
        setHeight() {
            this.height = window.sessionStorage.getItem('appheight') - 205
            this.height1 = window.sessionStorage.getItem('appheight') - 285
        },
        // 切换选项
        handleNodeClick(data) {
            this.form.powerStationId = ''
            this.form.lineId = ''
            this.form.platformId = ''
            this.MonitoringLine = []
            this.Routetable = []
            this.statationName = []
            if (data.code != null) {
                let form = {
                    deptId: data.id
                }
                // 变电站名称
                getstatationStatList(form).then(res => {
                    this.statationName = res.data
                })
            }
            this.form.orgId = data.code
            this.form.orgName = data.name
        },
        handleNodeClick1(data) {
            // console.log(data);
            this.form.operationId = data.code
            this.form.operationName = data.name
        },
        changeFn1(val) {
            this.form.lineId = ''
            this.form.platformId = ''
            this.MonitoringLine = []
            this.Routetable = []
            let form = {
                stationId: val
            }
            // 线路名称
            getGeneratrixWireList(form).then(res => {
                this.MonitoringLine = res.data
            })
            this.statationName.forEach(item => {
                //console.log(item);
                if (item.powerId == val) {
                    this.form.powerrName = item.powerName

                    // this.form.powerrName= item.orgName+'_'+item.powerName
                }
            })
            this.$forceUpdate()
        },
        changeFn3(val) {
            this.form.platformId = ''
            this.Routetable = []
            let form = {
                lineId: val
            }
            //台区
            getPowerDistributionAreaList(form).then(res => {
                this.Routetable = res.data
            })
            this.MonitoringLine.forEach(item => {
                if (item.id == val) {
                    this.form.lineName = item.name
                }
            })
            this.$forceUpdate()
        },

        powerChange() {
            this.$forceUpdate()
        },

        //获取类型
        getclassificationData() {
            //电源类别
            var code = 'Power_Category'
            this.powerCategoryList = dicData(code, [])
            //电站类型
            var code1 = 'Power_Station_Type'
            this.powerStationTypeList = dicData(code1, [])
            //发电方式
            var code2 = 'Power_Generation'
            this.powerGenerationModeList = dicData(code2, [])
            //并网电压等级
            var code3 = 'Dev_Voltage'
            this.voltageLevelList = dicData(code3, [])
            //能源消纳方式
            var code4 = 'Connection_Mode'
            this.connectionModeList = dicData(code4, [])
            //客户状态
            var code5 = 'Ecc_Stat'
            this.gcStatList = dicData(code5, [])
        },

        //PMS获取数据
        // PMSobtainFn() {
        //   this.PMSobtain = true;
        //   this.title = "线路表";
        // },
        pagUser() {
            this.ruleForm.pageNum = 1
            this.ruleForm.pageSize = 20
            this.User()
        },
        //查询用户用电信息
        User() {
            this.isLoading = true
            getPowerGenerationUserPageList(this.ruleForm).then(res => {
                this.isLoading = false
                this.UserData = res.data.records
                this.total = res.data.total
            })
        },
        // 数据过滤
        formFilter(row, column) {
            if (row.column.property == 'powerCategory') {
                let title = ''
                this.powerCategoryList.forEach(item => {
                    if (item.value == row.row.powerCategory) {
                        title = item.name
                    }
                })
                return title
            } else if (row.column.property == 'powerStationType') {
                let title = ''
                this.powerStationTypeList.forEach(item => {
                    if (item.value == row.row.powerStationType) {
                        title = item.name
                    }
                })
                return title
            } else if (row.column.property == 'powerGenerationMode') {
                let title = ''
                this.powerGenerationModeList.forEach(item => {
                    if (item.value == row.row.powerGenerationMode) {
                        title = item.name
                    }
                })
                return title
            } else if (row.column.property == 'voltageLevel') {
                // console.log("====",row)
                let title = ''
                this.voltageLevelList.forEach(item => {
                    if (item.id == row.row.voltageLevel) {
                        title = item.name
                    }
                })
                return title
            } else if (row.column.property == 'connectionMode') {
                let title = ''
                this.connectionModeList.forEach(item => {
                    if (item.value == row.row.connectionMode) {
                        title = item.name
                    }
                })
                return title
            } else if (row.column.property == 'gcStat') {
                let title = ''
                this.gcStatList.forEach(item => {
                    if (item.value == row.row.gcStat) {
                        title = item.name
                    }
                })
                return title
            } else {
                return row.row[row.column.property]
            }
        },

        //数据上传
        upload() {
            if (this.multipleSelection.length == 0) {
                this.$message({
                    showClose: true,
                    message: '请选择台账!!!',
                    type: 'warning'
                })
                return
            }
            this.$message({
                showClose: true,
                message: '上传成功！！！',
                type: 'success'
            })
        },
        // 重置
        Reset() {
            // 查询数据
            this.ruleForm.searchValue = ''
        },
        //新增
        addFn() {
            this.form = {
                connectionDate: '',
                connectionMode: '',
                gcStat: '',
                id: '',
                isUpToGrid: '',
                lineId: '',
                name: '',
                operationId: '',
                orgId: '',
                platformId: '',
                powerCategory: '',
                powerGenerationMode: '',
                powerStationId: '',
                powerStationType: '',
                sourceCapacity: '',
                userTag: '',
                voltageLevel: '',
                orgName: '',
                operationName: '',
                powerrName: '',
                lineName: '',
                platformName: ''
            }
            this.disabled = false
            this.modify = false
            this.add = true
            this.title = '新增发电用户信息'
            this.addinformation = true
        },
        //新增台区确定
        addinformationFn() {
            this.$refs.rulesform.validate(value => {
                // console.log(value);
                if (value == true) {
                    this.$confirm('是否确认新增?', '提示', {
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        type: 'warning'
                    })
                        .then(() => {
                            addPowerGenerationUser(this.form).then(res => {
                                if (res.code == 'A0000') {
                                    this.$message({
                                        message: res.message,
                                        type: 'success'
                                    })
                                }
                                this.addinformation = false
                                this.User()
                            })
                        })
                        .catch(() => {
                            this.$message({
                                type: 'info',
                                message: '已取消新增'
                            })
                        })
                }
            })
        },
        handleClose() {
            this.addinformation = false
            if (this.title == '新增发电用户信息') {
                this.$refs.Operation.form.valueTitle = ''
                this.$refs.Organization.form.valueTitle = ''
            }
        },
        //修改数据
        modifyFn() {
            this.disabled = true
            this.modify = true
            this.add = false
            this.title = '修改发电用户信息'
            if (this.multipleSelection.length != 1) {
                this.$message({
                    showClose: true,
                    message: '请选择台账!!!',
                    type: 'warning'
                })
                return
            }
            this.addinformation = true
            // console.log(this.multipleSelection[0],'===============');
            this.form = JSON.parse(JSON.stringify(this.multipleSelection[0]))
            this.valueTitle = this.multipleSelection[0].orgName
            this.editCheckCode = this.multipleSelection[0].orgId
            this.valueTitle1 = this.multipleSelection[0].operationName
            this.editCheckCode1 = this.multipleSelection[0].operationId

            if (this.form.ifSensitiveUser == '是') {
                this.form.ifSensitiveUser = 1
            } else if (this.form.ifSensitiveUser == '否') {
                this.form.ifSensitiveUser = 0
            }
            if (this.form.ifPowerQuality == '是') {
                this.form.ifPowerQuality = 1
            } else if (this.form.ifPowerQuality == '否') {
                this.form.ifPowerQuality = 0
            }
            if (this.form.ifKeyCustomers == '是') {
                this.form.ifKeyCustomers = 1
            } else if (this.form.ifKeyCustomers == '否') {
                this.form.ifKeyCustomers = 0
            }
            if (this.form.isUpToGrid == '是') {
                this.form.isUpToGrid = 1
            } else if (this.form.isUpToGrid == '否') {
                this.form.isUpToGrid = 0
            }

            //变电站下拉框
            let form = {
                deptCode: this.multipleSelection[0].orgId
            }
            getstatationStatList(form).then(res => {
                this.statationName = res.data
            })
            //台区
            let formP = {
                lineId: this.multipleSelection[0].lineId
            }
            getPowerDistributionAreaList(formP).then(res => {
                this.Routetable = res.data
            })

            // 线路名称
            let formL = {
                stationId: this.multipleSelection[0].powerStationId
            }
            getGeneratrixWireList(formL).then(res => {
                this.MonitoringLine = res.data
            })
        },
        //修改台区信息确定
        modifyinformationFn() {
            this.$refs.rulesform.validate(value => {
                // console.log(value);
                if (value == true) {
                    this.$confirm('是否确认修改?', '提示', {
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        type: 'warning'
                    })
                        .then(() => {
                            updatePowerGenerationUser(this.form).then(res => {
                                if (res.code == 'A0000') {
                                    this.$message({
                                        message: res.message,
                                        type: 'success'
                                    })
                                }
                                this.addinformation = false
                                this.User()
                            })
                        })
                        .catch(() => {
                            this.$message({
                                type: 'info',
                                message: '已取消修改'
                            })
                        })
                }
            })
        },
        // 删除
        deleteFn() {
            if (this.multipleSelection.length == 0) {
                this.$message({
                    showClose: true,
                    message: '请选择台账!!!',
                    type: 'warning'
                })
                return
            }
            this.$confirm('是否确认删除?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            })
                .then(() => {
                    let id = []
                    this.multipleSelection.forEach(item => {
                        id.push(item.id)
                    })

                    delPowerGenerationUser(id).then(res => {
                        if ((res.code == 'A0000')) {
                            this.$message({
                                type: 'success',
                                message: res.message
                            })
                        }
                        this.User()
                    })
                })
                .catch(() => {
                    this.$message({
                        type: 'info',
                        message: '已取消删除'
                    })
                })
        },

        //关闭PMS数据弹框
        // Close() {
        //   this.PMSobtain = false;
        // },

        // 表格多选
        handleSelectionChange(row) {
            this.multipleSelection = row.records
            // console.log(this.multipleSelection);
        },

        //每页条数改变时触发 选择一页显示多少行
        handleSizeChange(val) {
            this.ruleForm.pageSize = val
            this.User()
        },
        //当前页改变时触发 跳转其他页
        handleCurrentChange(val) {
            this.ruleForm.pageNum = val
            this.User()
        },
        cellStyle(row) {
            if (row.row.isUpToGrid == 0) {
                row.row.isUpToGrid = '否'
            } else if (row.row.isUpToGrid == 1) {
                row.row.isUpToGrid = '是'
            }
        },
        //导出
        exportEvent() {
            getPowerGenerationUserPageList({
                searchValue: this.ruleForm.searchValue,
                pageNum: 1,
                pageSize: this.total
            }).then(res => {
                this.$refs.PowerGenerationAccount.exportData({
                    filename: '发电用户台账', // 文件名字
                    sheetName: 'Sheet1',
                    type: 'xlsx', //导出文件类型 xlsx 和 csv
                    useStyle: true,
                    data: res.data.records, // 数据源 // 过滤那个字段导出
                    columnFilterMethod: function (column, $columnIndex) {
                        return !(column.$columnIndex === 0)
                    }
                })
            })
        }
    }
}
</script>
<style lang="less" scoped>
@import url('../../../styles/comStyle.less');

::v-deep .vxe-table .cell {
    text-align: center;
}

::v-deep .el-tabs--border-card>.el-tabs__content {
    padding: 10px;
}

::v-deep .form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .el-form-item {
        display: flex;
        width: 48%;

        .el-form-item__content {
            flex: 1 !important;

            .el-select {
                width: 100%;
            }

            .el-date-editor {
                width: 100%;
            }
        }
    }
}

.pms {
    margin-left: 10px;
}

.obtain {
    margin-left: 1220px;
}
</style>
