<template>
    <div class="app-container">
        <div class="flexBet searchTop">
            <!-- <div class="title flex m20">
          <div class="bar"></div>
          <div class="text">承兑商</div>
        </div> -->
        </div>

        <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="116px"
            class="flex form" style="position: relative">
            <el-form-item label="平台订单号" prop="businessNo">
                <el-input size="medium" v-model="queryParams.businessNo" placeholder="请输入平台订单号"
                    @keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" />
            </el-form-item>

            <el-form-item label="上传人" prop="uploader">
                <el-input size="medium" v-model="queryParams.uploader" placeholder="请输入上传人"
                    @keyup.enter.native="handleQuery" style="width: 180px; border-color: #e6f1ff" />
            </el-form-item>

            <el-form-item label="审核状态" prop="reviewStatus">
                <el-select v-model="queryParams.reviewStatus" placeholder="请选择审核状态" clearable size="medium">
                    <el-option v-for="dict in dict.type.exchange_audite_status" :key="dict.value" :label="dict.label"
                        :value="dict.value"></el-option>
                </el-select>
            </el-form-item>

            <el-form-item label="创建时间">
                <el-date-picker v-model="dateRange" size="small" style="width: 340px" value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
                    :unlink-panels="true" :default-time="['00:00:00', '23:59:59']"></el-date-picker>
            </el-form-item>


            <el-form-item style="margin-left:10px">
                <div class="searchTop flexBet" style="align-items: center">
                    <el-row :gutter="10" class="mb8">
                        <el-button type="primary" icon="" size="medium" @click="handleQuery">搜索</el-button>
                        <el-button icon="el-icon-refresh" size="medium" @click="resetQuery">重置</el-button>
                    </el-row>
                    <el-row :gutter="10" class="mb8" style="margin-left:8px">
                        <el-col :span="1.5" class="flex">
                            <el-button size="medium" type="primary" @click="getImport">导入承兑商订单</el-button>
                        </el-col>

                    </el-row>
                    <!-- <el-row :gutter="10" class="mb8">
          <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
        </el-row> -->

                </div>
            </el-form-item>
        </el-form>
        <div class="bg">
            <el-table stripe :data="infoList" v-loading="loading" :row-class-name="tableRowClassName">
                <el-table-column label="平台订单号" align="center" prop="businessNo" />
                <el-table-column label="批次号" align="center" prop="batchNo" min-width="120" />
                <el-table-column label="银行名称" align="center" prop="bankName" />
                <el-table-column label="卡号" align="center" prop="cardNumber" />
                <el-table-column label="姓名" align="center" prop="accountName" />
                <el-table-column label="开户行" align="center" prop="branchName" />
                <el-table-column :label="'订单请求金额'" align="center" prop="amount">
                    <template slot-scope="scope">
                        {{ parseFloat(NumberDiv(scope.row.amount, 100)).toFixed(2) }}
                    </template>
                </el-table-column>

                <el-table-column :label="'未完成金额'" align="center" prop="unpaidAmountr">
                    <template slot-scope="scope">
                        {{ parseFloat(NumberDiv(scope.row.amount - (scope.row.successAmountr - scope.row.unpaidAmountr),
                            100)).toFixed(2) }}
                    </template>
                </el-table-column>

                <el-table-column :label="'成功金额'" align="center" prop="successAmountr">
                    <template slot-scope="scope">
                        {{ parseFloat(NumberDiv(scope.row.successAmountr - scope.row.unpaidAmountr, 100)).toFixed(2) }}
                    </template>
                </el-table-column>

                <el-table-column :label="'最小拆分金额'" align="center" prop="minSplitsAmount">
                    <template slot-scope="scope">
                        {{ parseFloat(NumberDiv(scope.row.minSplitsAmount, 100)).toFixed(2) }}
                    </template>
                </el-table-column>
                <el-table-column label="未处理子单数" align="center" prop="acceptorOrderSubCount" />
                <el-table-column label="优先级" align="center" prop="priority" />
                <el-table-column label="拆分笔数" align="center" prop="splitsNumber" />

                <el-table-column :label="'成功笔数'" align="center" prop="successNumber">
                    <template slot-scope="scope">
                        <span>{{ scope.row.successNumber - scope.row.acceptorOrderSubCount }} </span>
                    </template>
                </el-table-column>


                <el-table-column label="上传人" align="center" prop="uploader" />
                <el-table-column :label="'审核状态'" align="center" prop="reviewStatus">
                    <template slot-scope="scope">
                        {{ scope.row.reviewStatus == 1 ? '处理中' : scope.row.reviewStatus == 2 ? '成功' : '驳回' }}
                    </template>
                </el-table-column>
                <el-table-column :label="'订单状态'" align="center" prop="orderStatus">
                    <template slot-scope="scope">
                        {{ scope.row.orderStatus == 1 ? '待支付' : scope.row.orderStatus == 2 ? '支付成功' : '支付失败' }}
                    </template>
                </el-table-column>
                <el-table-column label="审核备注" align="center" prop="reviewRemark" />

                <el-table-column label="付款备注" align="center" prop="remark" />


                <el-table-column :label="'倒计时'" align="center" prop="expiredTime">
                    <template slot-scope="scope">
                        {{ scope.row.expiredTimeStr }}
                    </template>
                </el-table-column>

                <el-table-column label="创建时间" align="center" prop="createTime" min-width="180" />
                <!-- <el-table-column label="更新时间" align="center" prop="updateTime" min-width="180" /> -->

                <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right"
                    min-width="120">
                    <!-- 如果是待审核的只有审核和修改操作 -->
                    <!-- 驳回没有操作 -->
                    <!-- 如果支付成功或者失败操作有查看凭证 成功和失败也可以查看子单 -->
                    <template slot-scope="scope" v-if="scope.row.reviewStatus != 3">
                        <span v-if="scope.row.orderStatus == 1">
                            <el-button size="small" type="text" @click="switchStatusChange(scope.row, 'status')"
                                style="color: #006eff">
                                {{ scope.row.status == false ? '解锁' : '锁定' }}
                            </el-button>

                            <el-button size="small" type="text" @click="handleUpdate(scope.row)" style="color: #006eff;"
                                v-if="(scope.row.reviewStatus == 1) || (scope.row.reviewStatus == 2 && scope.row.orderStatus == 1)">修改</el-button>

                            <el-button size="small" type="text" @click="handleUnaudited(scope.row)" style="color: #006eff;"
                                v-if="scope.row.reviewStatus == 1">审核</el-button>

                            <el-button size="small" type="text" @click="handleSuccess(scope.row, 3)" style="color: #006eff"
                                v-if="scope.row.reviewStatus != 1">关闭</el-button>

                            <el-button size="small" type="text" @click="handleSuccess(scope.row, 2)" style="color: #006eff"
                                v-if="scope.row.reviewStatus != 1">成功</el-button>

                            <el-button size="small" type="text" @click="handleSaveAcceptorOrderSub(scope.row)"
                                style="color: #006eff" v-if="scope.row.reviewStatus != 1">添加手工子单</el-button>
                        </span>

                        <el-button size="small" type="text" @click="getCertificate(scope.row)" style="color: #006eff"
                            v-if="scope.row.orderStatus == 2 || scope.row.orderStatus == 3">查看凭证</el-button>

                        <el-button size="small" type="text" @click="handleSonOrder(scope.row)" style="color: #006eff"
                            v-if="scope.row.reviewStatus != 1">子单列表</el-button>

                    </template>
                </el-table-column>
            </el-table>
            <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
                :limit.sync="queryParams.pageSize" @pagination="getList">
            </pagination>
        </div>



        <!-- 子单列表 -->
        <el-dialog v-dialogDrag title="子单列表" :visible.sync="pkCouponScopeRangeParkingStoreOpen" width="80%" append-to-body
            :close-on-click-modal="false">
            <pkCouponScopeRangeStoreList v-if="pkCouponScopeRangeParkingStoreOpen" :pkCouponStore="pkCouponStore"
                :pkCouponId="pkCouponStoreId">
            </pkCouponScopeRangeStoreList>
        </el-dialog>


        <!-- 凭证 -->
        <el-dialog v-dialogDrag :close-on-click-modal="false" title="凭证" :visible.sync="isShowDetailImg" width="40%"
            append-to-body>
            <el-form label-width="142px" :label-suffix="':'">
                <el-form-item label="凭证图片">
                    <div style="display: flex;justify-content: space-around;flex-wrap: wrap;" v-if="imgCon.length">
                        <div v-for="item, index in imgCon" :key="index">
                            <el-image style="width: 300px; height: 200px" :src="item" @click="previewImage(item)"
                                :preview-src-list="srcList">
                                <div slot="placeholder">
                                    <div style="margin-top: 40px">
                                        加载中<i class="el-icon-loading" />
                                    </div>
                                </div>
                            </el-image>
                        </div>
                    </div>
                    <div v-else>
                        无
                    </div>
                </el-form-item>
            </el-form>
        </el-dialog>

        <!-- 审核 -->
        <el-dialog title="审核" :visible.sync="openAuditStatus" width="500px" append-to-body>
            <el-form ref="formAudit" :model="form" :rules="rules" label-width="110px">
                <el-form-item label="审核状态" prop="reviewStatus">
                    <el-select v-model="form.reviewStatus" placeholder="请选择审核状态" clearable size="medium">
                        <el-option v-for="dict in exchange_audite_con" :key="dict.value" :label="dict.label"
                            :value="dict.value"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="谷歌验证码" prop="googleCode">
                    <el-input size="medium" v-model="form.googleCode" placeholder="请输入谷歌验证码" />
                </el-form-item>

                <el-form-item label="备注" prop="reviewRemark">
                    <el-input size="medium" v-model="form.reviewRemark" placeholder="请输入备注" type="textarea" />
                </el-form-item>


            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitFormAudit()">保 存</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>


        <!-- 添加手工子单 -->
        <el-dialog title="添加手工子单" :visible.sync="openSave" width="500px" append-to-body>
            <el-form ref="formSaveSub" :model="form" :rules="rules" label-width="110px">
                <el-form-item label="订单请求金额" prop="amount">
                    <el-input size="medium" v-model="form.amount" placeholder="请输入订单请求金额" />
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitForm('formSaveSub', 'save')">保 存</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>



        <!-- 导入 -->
        <el-dialog title="导入" :visible.sync="openImport" width="500px" append-to-body>
            <el-form ref="form" :model="form" :rules="rules" label-width="110px">
                <div style="margin-left:10px;margin-bottom:20px">
                    导入模板下载
                    <a :href="url" style="color:#197CFE">（模板.xls）</a>
                </div>

                <el-upload class="upload-demo" style="margin-bottom:20px" action="#" v-model="fileList"
                    :on-change="onChange" accept=".xls, .xlsx" :show-file-list="false" :multiple="false"
                    :auto-upload="false">
                    <el-button slot="trigger" size="medium" type="primary">选择文件</el-button><span style="margin-left:5px">{{
                        fileName }}</span>
                </el-upload>

                <el-form-item label="谷歌验证码" prop="googleCode">
                    <el-input size="medium" v-model="form.googleCode" placeholder="请输入谷歌验证码" />
                </el-form-item>

            </el-form>
            <div slot="footer" class="dialog-footer" style="display:flex;justify-content:right">
                <el-button size="medium" type="primary" @click="upload">确定</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>

        <!-- 修改 -->
        <el-dialog title="修改承兑商订单" :visible.sync="open" width="800px" append-to-body>
            <el-form ref="formUpdate" :model="form" :rules="rules" label-width="110px">
                <el-form-item label="最小拆分金额" prop="minSplitsAmount">
                    <el-input size="medium" v-model="form.minSplitsAmount" placeholder="请输入最小拆分金额" />
                </el-form-item>
                <el-form-item label="优先级" prop="priority">
                    <el-input size="medium" v-model="form.priority" placeholder="请输入优先级" />
                </el-form-item>
                <el-form-item label="有效期" prop="validityPeriod">
                    <el-input size="medium" style="width: 200px;" v-model="form.validityPeriod" placeholder="请输入有效期" />
                    <span style="color: red;">（小时）</span>
                </el-form-item>

                <el-form-item label="拆分笔数" prop="splitsNumber">
                    <el-input size="medium" v-model="form.splitsNumber" placeholder="请输入拆分笔数" />
                </el-form-item>



            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitForm('formUpdate', 'update')">保 存</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>


    </div>
</template>
  
<script>
import { listTransferOrder, getTransferOrder, delTransferOrder, addTransferOrder, updateTransferOrder, exportTransferOrder } from "@/api/order/TransferOrder";
import { payOutOrder, common_api, payExchange } from "@/api/form";
import pkCouponScopeRangeStoreList from "./pkCouponScopeRangeStoreList";
import cardMerchantOrderRefreshMixin from "@/api/cardMerchantOrderRefresh.mixin";
import dayjs from "dayjs"
export default {
    name: "TransferOrder",
    dicts: ['collection_order_status', 'exchange_audite_status'],
    components: { pkCouponScopeRangeStoreList },
    mixins: [cardMerchantOrderRefreshMixin],

    data() {
        return {
            timer: null,
            url: '',
            openSave: false,
            openImport: false,
            loadingBtn: false,
            fileList: [],
            fileName: '',
            exchange_audite_con: [
                {
                    label: '成功',
                    value: 2
                },
                {
                    label: '驳回',
                    value: 3
                },
            ],
            // 审核遮罩
            openAuditStatus: false,
            imgCon: [],
            // 预览
            srcList: ['https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg'],
            // 显示凭证
            isShowDetailImg: false,
            pkCouponScopeRangeParkingStoreOpen: false,
            pkCouponStore: {},
            pkCouponStoreId: '',

            // 显示详情
            isShowDetail: false,
            // 详情
            detailTitle: "",
            // 详情的数据
            detailInfoList: {},
            dateRange: [],
            // 遮罩层
            loading: true,
            // 选中数组
            ids: [],
            // 非单个禁用
            single: true,
            // 非多个禁用
            multiple: true,
            // 显示搜索条件
            showSearch: true,
            // 总条数
            total: 0,
            // 代付订单表格数据
            infoList: [],
            // 弹出层标题
            title: "",
            // 是否显示弹出层
            open: false,
            // 查询参数
            queryParams: {
                pageNum: 1,
                pageSize: 10,
                businessNo: null,
                orderStatus: 1,
                reviewStatus: null,
                uploader: null,
            },
            // 表单参数
            form: {},
            // 表单校验
            rules: {
                splitsNumber: [
                    { required: true, message: "请输入拆分笔数", trigger: "blur" }
                ],
                minSplitsAmount: [
                    { required: true, message: "请输入最小拆分金额", trigger: "blur" }
                ],
                priority: [
                    { required: true, message: "请输入优先级", trigger: "blur" }
                ],
                validityPeriod: [
                    { required: true, message: "请输入有效期", trigger: "blur" }
                ],

                amount: [
                    { required: true, message: "请输入订单请求金额", trigger: "blur" }
                ],
                reviewStatus: [
                    { required: true, message: "请选择审核状态", trigger: "blur" }
                ],
                googleCode: [
                    { required: true, message: "请输入谷歌验证码", trigger: "blur" }
                ],

            },
        };
    },
    created() {
        this.getList();
        this.init();


    },
    $autoRefresh: {
        // 刷新间隔时间
        interval: 3000 * 10,
        // 立即执行一次
        immediate: false,
        // 被回调的函数, 不保证顺序执行
        handles: ["getList"],
        /**
         * 调用 handles 后的回调函数
         * 这个字段为数组类型, 数组中的每个元素都是一个函数, 在对应索引的 handle 执行后被调用
         */
        callbacks: [],
        // 是否启用调试模式
        debug: true,
    },
    methods: {
        getImport(){
            this.reset()
            this.fileList=[]
            this.fileName=''
            this.openImport = true
        },
        // 解锁锁定
        switchStatusChange(row) {
            this.reset()
            const id = row.id || this.ids;
            console.log(id)
            payExchange.acceptorOrder(id).then((response) => {
                this.form = response.data;
                this.form.status == false ? this.form.status = true : this.form.status = false
                payExchange.acceptorOrderPut({
                    id: this.form.id,
                    status: this.form.status
                }).then((res) => {
                    if (res.code === 200) {
                        this.$message.success("编辑成功");
                        this.getList()
                    }
                });
            });
        },
        // 失败#fdf2f2
        // 成功#e9feea
        // 待审核#FFE7BC
        // 审核通过待支付#FFF9ED
        tableRowClassName({ row, rowIndex }) {
            if (row.orderStatus == 1 && row.reviewStatus == 2) {
                return "FFF9ED";
            }
            if (row.orderStatus == 2 || row.reviewStatus == 2) {
                return "greenTransfer";
            }
            if (row.orderStatus == 3) {
                return "redTransfer";
            }
            if (row.reviewStatus == 3) {
                return "FF9B8F";
            }
            if (row.reviewStatus == 1) {
                return "yellowTransfer";
            }
        },
        // 附件选择
        onChange(file, fileList) {
            if (fileList.length > 0) {
                this.fileList = [fileList[fileList.length - 1]]//这一步，是 展示最后一次选择文件
                this.fileName = this.fileList[0].name
                this.loadingBtn = false;
            }
        },
        upload() {
            if (!this.fileList.length) {
                this.$message.error('请选择文件')
                return
            }
            if (!this.form.googleCode) {
                this.$message.error('请输入谷歌验证码')
                return
            }

            const loading = this.$loading({
                lock: true,
                text: `正在操作`,
                spinner: "el-icon-loading",
                background: "rgba(0, 0, 0, 0.7)",
            });
            let formData = new FormData();
            formData.append("googleCode", this.form.googleCode);
            formData.append("file", this.fileList[0].raw);
            payExchange.importOrder(formData).then(() => {
                this.$message.success('上传成功！')
                this.openImport = false
                loading.close();
                this.fileName=''
                this.fileList=[]
                this.reset()
                this.getList()
            }).catch(() => {
                this.loadingBtn = false;
                this.openImport = false
                loading.close();
            })
        },
        // 上传成功，回调
        success(res, file) {
            console.log(res, file.name, '上传成功')
        },
        /** 提交按钮 */
        submitForm(val, type) {
            this.$refs[val].validate(valid => {
                if (valid) {
                    if (type == 'update') {
                        const form = Object.assign({}, this.form);//后端要求金额单位为分
                        form.minSplitsAmount = Number(form.minSplitsAmount) * 100;
                        payExchange.acceptorOrderPut(form).then(response => {
                            this.msgSuccess("操作成功");
                            this.open = false;
                            this.getList();
                        });
                    }
                    if (type == 'save') {
                        const form = Object.assign({}, this.form);//后端要求金额单位为分
                        form.amount = Number(form.amount) * 100;
                        payExchange.saveAcceptorOrderSub(form).then(response => {
                            this.msgSuccess("操作成功");
                            this.openSave = false;
                            this.getList();
                        });
                    }

                }
            });
        },
        /** 审核 */
        submitFormAudit() {
            this.$refs["formAudit"].validate(valid => {
                if (valid) {
                    payExchange.orderReview(this.form).then(response => {
                        this.msgSuccess("操作成功");
                        this.openAuditStatus = false;
                        this.getList();
                    });
                }
            });
        },
        // 手工添加子单
        handleSaveAcceptorOrderSub(row) {
            this.reset()
            this.form.id = row.id
            this.openSave = true
        },
        // 审核
        handleUnaudited(row) {
            this.reset()
            this.form.id = row.id
            this.$forceUpdate()
            this.openAuditStatus = true
        },

        /** 成功按钮操作 */
        handleSuccess(row, num) {
            this.$confirm('是否确认订单编号为"' + row.businessNo + '"的数据项?', "警告", {
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                type: "warning"
            }).then(function () {
                return payExchange.setPayOrderSuccess({
                    id: row.id,
                    isSuccess: num,
                });
            }).then(() => {
                this.getList();
                this.msgSuccess("操作成功");
            })
        },

        init() {
        },
        // 预览图片
        previewImage(abUrl) {
            this.srcList[0] = abUrl;
        },
        // 查看子单
        handleSonOrder(row) {
            this.pkCouponStore = row;
            this.pkCouponStoreId = row.businessNo;
            this.pkCouponScopeRangeParkingStoreOpen = true;
        },

        // 凭证图片
        getCertificate(row) {
            this.reset()
            payExchange.getCertificate(row.businessNo).then(response => {
                this.isShowDetailImg = true;
                this.imgCon = response.data
            });
        },

        timerHandler() {
            payExchange.listInfo(this.addSESDateRange(this.queryParams, this.dateRange)).then(response => {
                this.infoList = response.rows;
                this.total = Number(response.total);
            });
        },

        /** 查询订单列表 */
        getList() {
            this.loading = true;
            payExchange.listInfo(this.addSESDateRange(this.queryParams, this.dateRange)).then(response => {
                this.infoList = response.rows;
                this.total = Number(response.total);
                this.loading = false;
                this.startTimer(this.queryParams)
                this.countdown()
            });
            payExchange.downloadManualTemplate().then(response => {
                this.url = response.msg
            });
        },
        countdown() {
            clearInterval(this.timer)
            this.timer = setInterval(() => {
                this.infoList = this.infoList.map(i => {
                    return {
                        ...i,
                        expiredTimeStr: i.expiredTimeLong ? this.getTimeExpre(i.expiredTimeLong) : "未设置过期时间"
                    }
                })
            }, 1000)
        },
        getTimeExpre(v) {
            let startTime = dayjs(`${new Date()}`).format('YYYY-MM-DD HH:mm:ss');
            let expiredTime = dayjs(Number(v)).format('YYYY-MM-DD HH:mm:ss')
            let seconds = dayjs(expiredTime).diff(dayjs(startTime), 'second')
            const minute = 60
            const hour = 60 * minute
            let hourStr = dayjs().hour(~~(seconds / hour)).format('hh')
            let minuteStr = dayjs().minute(~~(seconds / minute)).format('mm')
            let secondStr = dayjs().second(seconds % 60).format('ss')
            if (seconds<0||hourStr < 0 || minuteStr < 0 || secondStr < 0) {
                return "已过期";
            }
            return hourStr + "时" + minuteStr + "分" + secondStr + "秒"
        },
        // 取消按钮
        cancel() {
            this.open = false;
            this.openImport = false,
                this.openAuditStatus = false;
            this.openSave = false
            this.fileList=[]
            this.fileName=''
            this.reset();
        },
        // 表单重置
        reset() {
            this.form = {

            };
            this.resetForm("form");
        },
        /** 搜索按钮操作 */
        handleQuery() {
            this.queryParams.pageNum = 1;
            this.getList()
        },
        /** 重置按钮操作 */
        resetQuery() {
            this.dateRange = []
            this.resetForm("queryForm");
            this.handleQuery();
        },
        // 多选框选中数据
        handleSelectionChange(selection) {
            this.ids = selection.map(item => item.id)
            this.single = selection.length !== 1
            this.multiple = !selection.length
        },
        /** 新增按钮操作 */
        handleAdd() {
            this.reset();
            this.open = true;
            this.title = "添加代付订单";
        },

        /** 修改按钮操作 */
        handleUpdate(row) {
            this.reset();
            const id = row.id || this.ids
            payExchange.acceptorOrder(id).then(response => {
                this.form = response.data;
                this.form.minSplitsAmount = this.NumberDiv(this.form.minSplitsAmount, 100)
                this.open = true;
                this.title = "修改承兑商订单";
            });
        },


    }
};
</script>
<style>
.FF9B8F {
    background: #FF9B8F !important;
}

.FFF9ED {
    background: #FFF9ED !important;
}

.greyOrder {
    background: #F4F4F5 !important;
}

.purpleTransfer {
    background: #FDF7FF !important;
}

.blueTransfer {
    background: #EEF6FF !important;
}

.yellowTransfer {
    background: #FFE7BC !important;
}

.greenTransfer {
    background: #e9feea !important;
}

.redTransfer {
    background: #fdf2f2 !important;
}
</style>
<style scoped>
.red {
    color: red !important;
}

.yellow {
    color: #F49300 !important;
}

.green {
    color: #67c23a !important;
}

::v-deep .el-table tbody tr:hover>td {
    background-color: rgba(0, 0, 0, 0) !important
}

::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
    background: none !important;
}
</style>