                                                                                          
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="本站订单号" prop="order_sn">
        <el-input
          v-model="queryParams.order_sn"
          placeholder="请输入本站订单号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="父订单sn" prop="parent_order_sn">
        <el-input
          v-model="queryParams.parent_order_sn"
          placeholder="请输入父订单sn"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第三方订单号" prop="tx_sn">
        <el-input
          v-model="queryParams.tx_sn"
          placeholder="请输入第三方订单号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="快递单号" prop="deliver_no">
        <el-input
          v-model="queryParams.deliver_no"
          placeholder="请输入快递单号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="快递公司名称" prop="deliver_name">
        <el-input
          v-model="queryParams.deliver_name"
          placeholder="请输入快递公司名称"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商品id" prop="goods_id">
        <el-input
          v-model="queryParams.goods_id"
          placeholder="请输入商品id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组合商品主id" prop="g_id">
        <el-input
          v-model="queryParams.g_id"
          placeholder="请输入组合商品主id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商品名称" prop="goods_name">
        <el-input
          v-model="queryParams.goods_name"
          placeholder="请输入商品名称"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商品图片" prop="img">
        <el-input
          v-model="queryParams.img"
          placeholder="请输入商品图片"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="卖家id" prop="seller_id">
        <el-input
          v-model="queryParams.seller_id"
          placeholder="请输入卖家id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0则无规格" prop="spec_id">
        <el-input
          v-model="queryParams.spec_id"
          placeholder="请输入0则无规格"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="规格说明" prop="spec_des">
        <el-input
          v-model="queryParams.spec_des"
          placeholder="请输入规格说明"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商品数量" prop="quantity">
        <el-input
          v-model="queryParams.quantity"
          placeholder="请输入商品数量"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单金额" prop="money">
        <el-input
          v-model="queryParams.money"
          placeholder="请输入订单金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商家结算金额" prop="seller_money">
        <el-input
          v-model="queryParams.seller_money"
          placeholder="请输入商家结算金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商品的分销价" prop="fx_money">
        <el-input
          v-model="queryParams.fx_money"
          placeholder="请输入商品的分销价"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="买家uid" prop="uid">
        <el-input
          v-model="queryParams.uid"
          placeholder="请输入买家uid"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="买家账号名称" prop="name">
        <el-input
          v-model="queryParams.name"
          placeholder="请输入买家账号名称"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="发货地址id" prop="sid">
        <el-input
          v-model="queryParams.sid"
          placeholder="请输入发货地址id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="收货人地址" prop="shipname">
        <el-input
          v-model="queryParams.shipname"
          placeholder="请输入收货人地址"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="电话号码" prop="tel">
        <el-input
          v-model="queryParams.tel"
          placeholder="请输入电话号码"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="省" prop="province">
        <el-input
          v-model="queryParams.province"
          placeholder="请输入省"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="市" prop="city">
        <el-input
          v-model="queryParams.city"
          placeholder="请输入市"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="区域" prop="area">
        <el-input
          v-model="queryParams.area"
          placeholder="请输入区域"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="乡镇" prop="town">
        <el-input
          v-model="queryParams.town"
          placeholder="请输入乡镇"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="收货地址" prop="address">
        <el-input
          v-model="queryParams.address"
          placeholder="请输入收货地址"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="ip地址" prop="ip">
        <el-input
          v-model="queryParams.ip"
          placeholder="请输入ip地址"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="支付渠道:wx-微信,0gow-零元购买,business第三方商户(openapi)余额扣款,erpmoney erp余额支付，erpcoin erp金积分支付，" prop="from">
        <el-input
          v-model="queryParams.from"
          placeholder="请输入支付渠道:wx-微信,0gow-零元购买,business第三方商户(openapi)余额扣款,erpmoney erp余额支付，erpcoin erp金积分支付，"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0:0购平台来源，1：拼团平台来源，2：夺宝平台来源，3：秒杀平台来源，4：砍价平台来源,5：app平台来源8:web端, 13openapi接入的第三方商家14微信小程序" prop="pt">
        <el-input
          v-model="queryParams.pt"
          placeholder="请输入0:0购平台来源，1：拼团平台来源，2：夺宝平台来源，3：秒杀平台来源，4：砍价平台来源,5：app平台来源8:web端, 13openapi接入的第三方商家14微信小程序"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="1:已结算，0：未结算" prop="balance">
        <el-input
          v-model="queryParams.balance"
          placeholder="请输入1:已结算，0：未结算"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单状态:0:未处理,1,已作废,2,待退货,3,已退货,4,异常订单,10已处理" prop="status">
        <el-select v-model="queryParams.status" placeholder="请选择订单状态:0:未处理,1,已作废,2,待退货,3,已退货,4,异常订单,10已处理" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="erp 退款 退积分状态 0 失败 1 成功" prop="erp_refund_status">
        <el-select v-model="queryParams.erp_refund_status" placeholder="请选择erp 退款 退积分状态 0 失败 1 成功" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="付款状态:0:未付款,1:已付款,2申请退款,3,退款中,4已退款5退款申请失败（申请后20天内未处理）" prop="pay_status">
        <el-select v-model="queryParams.pay_status" placeholder="请选择付款状态:0:未付款,1:已付款,2申请退款,3,退款中,4已退款5退款申请失败（申请后20天内未处理）" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="货物状态 0:未发货,1:已发货,2:已收货,3:配货中,4：拒收" prop="goods_status">
        <el-select v-model="queryParams.goods_status" placeholder="请选择货物状态 0:未发货,1:已发货,2:已收货,3:配货中,4：拒收" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="下单时间" prop="addtime">
        <el-input
          v-model="queryParams.addtime"
          placeholder="请输入下单时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单更新时间" prop="updatetime">
        <el-input
          v-model="queryParams.updatetime"
          placeholder="请输入订单更新时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="发货时间" prop="delivertime">
        <el-input
          v-model="queryParams.delivertime"
          placeholder="请输入发货时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="用户备注" prop="user_remark">
        <el-input
          v-model="queryParams.user_remark"
          placeholder="请输入用户备注"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="单拍买家id" prop="seller">
        <el-input
          v-model="queryParams.seller"
          placeholder="请输入单拍买家id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="" prop="discount_money">
        <el-input
          v-model="queryParams.discount_money"
          placeholder="请输入"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="活动ID" prop="active_id">
        <el-input
          v-model="queryParams.active_id"
          placeholder="请输入活动ID"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单类型:0实物订单,1虚拟订单" prop="order_type">
        <el-select v-model="queryParams.order_type" placeholder="请选择订单类型:0实物订单,1虚拟订单" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="1：正常  2：已删" prop="display_status">
        <el-select v-model="queryParams.display_status" placeholder="请选择1：正常  2：已删" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="鉴定师订单奖金体现至用户余额状态;0，未体现；1.已提现" prop="jds_tx">
        <el-input
          v-model="queryParams.jds_tx"
          placeholder="请输入鉴定师订单奖金体现至用户余额状态;0，未体现；1.已提现"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="" prop="lr_money">
        <el-input
          v-model="queryParams.lr_money"
          placeholder="请输入"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="结算时间" prop="balance_time">
        <el-input
          v-model="queryParams.balance_time"
          placeholder="请输入结算时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="美购可转换金额" prop="ylh_points">
        <el-input
          v-model="queryParams.ylh_points"
          placeholder="请输入美购可转换金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第三方order_id" prop="ylh_order">
        <el-input
          v-model="queryParams.ylh_order"
          placeholder="请输入第三方order_id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单所属类型  1 ： 普通订单  2：赠送好友订单" prop="order_classify">
        <el-input
          v-model="queryParams.order_classify"
          placeholder="请输入订单所属类型  1 ： 普通订单  2：赠送好友订单"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物流费" prop="freight">
        <el-input
          v-model="queryParams.freight"
          placeholder="请输入物流费"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="责任人id" prop="response_uid">
        <el-input
          v-model="queryParams.response_uid"
          placeholder="请输入责任人id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="财务是否已对账0未对账 1已对账2对账中" prop="finance_checked">
        <el-input
          v-model="queryParams.finance_checked"
          placeholder="请输入财务是否已对账0未对账 1已对账2对账中"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="此次订单积分返还手机号" prop="score_mobile">
        <el-input
          v-model="queryParams.score_mobile"
          placeholder="请输入此次订单积分返还手机号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第三方授权 " prop="tp_authority">
        <el-input
          v-model="queryParams.tp_authority"
          placeholder="请输入第三方授权 "
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="拍单单号" prop="paiorder_sn">
        <el-input
          v-model="queryParams.paiorder_sn"
          placeholder="请输入拍单单号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0待通知1成功2失败3老订单4第三方已授权5未开通积分功能" prop="notify2fund">
        <el-input
          v-model="queryParams.notify2fund"
          placeholder="请输入0待通知1成功2失败3老订单4第三方已授权5未开通积分功能"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="fund order" prop="notify2fund_order">
        <el-input
          v-model="queryParams.notify2fund_order"
          placeholder="请输入fund order"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="通知失败log" prop="notify2fund_log">
        <el-input
          v-model="queryParams.notify2fund_log"
          placeholder="请输入通知失败log"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商品来源，1美购平台，2京东，3多商网，4网易严选，5第三方" prop="goods_resource">
        <el-input
          v-model="queryParams.goods_resource"
          placeholder="请输入商品来源，1美购平台，2京东，3多商网，4网易严选，5第三方"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合作方商品ID" prop="third_id">
        <el-input
          v-model="queryParams.third_id"
          placeholder="请输入合作方商品ID"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合作方父订单号" prop="parent_third_sn">
        <el-input
          v-model="queryParams.parent_third_sn"
          placeholder="请输入合作方父订单号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合作方订单号" prop="third_sn">
        <el-input
          v-model="queryParams.third_sn"
          placeholder="请输入合作方订单号"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合作方订单状态：0：为取消订单，1:为有效 ,2:为下单失败,3退单审核中" prop="third_order_state">
        <el-input
          v-model="queryParams.third_order_state"
          placeholder="请输入合作方订单状态：0：为取消订单，1:为有效 ,2:为下单失败,3退单审核中"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合作方订单支付状态，1成功，2失败" prop="third_order_pay">
        <el-input
          v-model="queryParams.third_order_pay"
          placeholder="请输入合作方订单支付状态，1成功，2失败"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否已经点击过配货中 1：是 2：否" prop="is_already_prepare_goods">
        <el-input
          v-model="queryParams.is_already_prepare_goods"
          placeholder="请输入是否已经点击过配货中 1：是 2：否"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="操作配货时间" prop="prepare_goods_time">
        <el-input
          v-model="queryParams.prepare_goods_time"
          placeholder="请输入操作配货时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="退款金额" prop="partial_refund_money">
        <el-input
          v-model="queryParams.partial_refund_money"
          placeholder="请输入退款金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="结算退款金额" prop="balance_refund_money">
        <el-input
          v-model="queryParams.balance_refund_money"
          placeholder="请输入结算退款金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="1部分退款 2不是" prop="partial_refund">
        <el-input
          v-model="queryParams.partial_refund"
          placeholder="请输入1部分退款 2不是"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="1结算退款 2不是" prop="balance_refund">
        <el-input
          v-model="queryParams.balance_refund"
          placeholder="请输入1结算退款 2不是"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部分退款后的金额" prop="refund_after_money">
        <el-input
          v-model="queryParams.refund_after_money"
          placeholder="请输入部分退款后的金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="部分退款后第三方可转换金额" prop="refund_after_ylh_points">
        <el-input
          v-model="queryParams.refund_after_ylh_points"
          placeholder="请输入部分退款后第三方可转换金额"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="全额退款" prop="refund_money">
        <el-input
          v-model="queryParams.refund_money"
          placeholder="请输入全额退款"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="来源平台：1美购自营订单，2第三方订单，3云联商城订单，4消费链" prop="order_platform">
        <el-input
          v-model="queryParams.order_platform"
          placeholder="请输入来源平台：1美购自营订单，2第三方订单，3云联商城订单，4消费链"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商户通公众号用户下单消息发送。0未发送，1发送" prop="is_msg">
        <el-input
          v-model="queryParams.is_msg"
          placeholder="请输入商户通公众号用户下单消息发送。0未发送，1发送"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="商户通公众号用户确认收货消息发送。0未发送，1发送" prop="is_confirm_msg">
        <el-input
          v-model="queryParams.is_confirm_msg"
          placeholder="请输入商户通公众号用户确认收货消息发送。0未发送，1发送"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="计算方式0适用京东严选商品结算方式 1有账期后付款 2实销实结" prop="settlement_type">
        <el-select v-model="queryParams.settlement_type" placeholder="请选择计算方式0适用京东严选商品结算方式 1有账期后付款 2实销实结" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="商家备注" prop="seller_remark">
        <el-input
          v-model="queryParams.seller_remark"
          placeholder="请输入商家备注"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="退款成功时间" prop="refund_success_time">
        <el-input
          v-model="queryParams.refund_success_time"
          placeholder="请输入退款成功时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="退款操作人id" prop="refund_user_id">
        <el-input
          v-model="queryParams.refund_user_id"
          placeholder="请输入退款操作人id"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="退款操作人的身份 1运营后台人员 2商户" prop="refund_user_type">
        <el-select v-model="queryParams.refund_user_type" placeholder="请选择退款操作人的身份 1运营后台人员 2商户" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="账单结算时间" prop="bill_balance_time">
        <el-input
          v-model="queryParams.bill_balance_time"
          placeholder="请输入账单结算时间"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="账单状态：0未生成账单1已生成账单商户待确认2已确认" prop="settlement_status">
        <el-select v-model="queryParams.settlement_status" placeholder="请选择账单状态：0未生成账单1已生成账单商户待确认2已确认" clearable size="small">
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="售后时长" prop="aftersale_time">
        <el-input
          v-model="queryParams.aftersale_time"
          placeholder="请输入售后时长"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否开发票 ，0未申请 1.未开票 2.已开票未寄出 3.已开票已寄出" prop="is_invoice">
        <el-input
          v-model="queryParams.is_invoice"
          placeholder="请输入是否开发票 ，0未申请 1.未开票 2.已开票未寄出 3.已开票已寄出"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
        <el-form-item>
            <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
          </el-form-item>
    </el-form>
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
        >删除</el-button>
      </el-col>
    </el-row>
    <el-table v-loading="loading" :data="orderList" @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="55" align="center" />   
             <el-table-column label="本站订单号" align="center" prop="order_sn" />   
             <el-table-column label="父订单sn" align="center" prop="parent_order_sn" />   
             <el-table-column label="第三方订单号" align="center" prop="tx_sn" />   
             <el-table-column label="快递单号" align="center" prop="deliver_no" />   
             <el-table-column label="快递公司名称" align="center" prop="deliver_name" />   
             <el-table-column label="商品id" align="center" prop="goods_id" />   
             <el-table-column label="组合商品主id" align="center" prop="g_id" />   
             <el-table-column label="商品名称" align="center" prop="goods_name" />   
             <el-table-column label="商品图片" align="center" prop="img" />   
             <el-table-column label="卖家id" align="center" prop="seller_id" />   
             <el-table-column label="0则无规格" align="center" prop="spec_id" />   
             <el-table-column label="规格说明" align="center" prop="spec_des" />   
             <el-table-column label="商品数量" align="center" prop="quantity" />   
             <el-table-column label="订单金额" align="center" prop="money" />   
             <el-table-column label="商家结算金额" align="center" prop="seller_money" />   
             <el-table-column label="商品的分销价" align="center" prop="fx_money" />   
             <el-table-column label="买家uid" align="center" prop="uid" />   
             <el-table-column label="买家账号名称" align="center" prop="name" />   
             <el-table-column label="发货地址id" align="center" prop="sid" />   
             <el-table-column label="收货人地址" align="center" prop="shipname" />   
             <el-table-column label="电话号码" align="center" prop="tel" />   
             <el-table-column label="省" align="center" prop="province" />   
             <el-table-column label="市" align="center" prop="city" />   
             <el-table-column label="区域" align="center" prop="area" />   
             <el-table-column label="乡镇" align="center" prop="town" />   
             <el-table-column label="收货地址" align="center" prop="address" />   
             <el-table-column label="ip地址" align="center" prop="ip" />   
             <el-table-column label="支付渠道:wx-微信,0gow-零元购买,business第三方商户(openapi)余额扣款,erpmoney erp余额支付，erpcoin erp金积分支付，" align="center" prop="from" />   
             <el-table-column label="0:0购平台来源，1：拼团平台来源，2：夺宝平台来源，3：秒杀平台来源，4：砍价平台来源,5：app平台来源8:web端, 13openapi接入的第三方商家14微信小程序" align="center" prop="pt" />   
             <el-table-column label="1:已结算，0：未结算" align="center" prop="balance" />   
             <el-table-column label="订单状态:0:未处理,1,已作废,2,待退货,3,已退货,4,异常订单,10已处理" align="center" prop="status" />   
             <el-table-column label="erp 退款 退积分状态 0 失败 1 成功" align="center" prop="erp_refund_status" />   
             <el-table-column label="付款状态:0:未付款,1:已付款,2申请退款,3,退款中,4已退款5退款申请失败（申请后20天内未处理）" align="center" prop="pay_status" />   
             <el-table-column label="货物状态 0:未发货,1:已发货,2:已收货,3:配货中,4：拒收" align="center" prop="goods_status" />   
             <el-table-column label="下单时间" align="center" prop="addtime" />   
             <el-table-column label="付款时间" align="center" prop="paytime" />   
             <el-table-column label="订单更新时间" align="center" prop="updatetime" />   
             <el-table-column label="发货时间" align="center" prop="delivertime" />   
             <el-table-column label="提醒卖家发货时间" align="center" prop="remindtime" />   
             <el-table-column label="备注" align="center" prop="remark" />   
             <el-table-column label="用户备注" align="center" prop="user_remark" />   
             <el-table-column label="单拍买家id" align="center" prop="seller" />   
             <el-table-column label="" align="center" prop="discount_money" />   
             <el-table-column label="确认收货时间" align="center" prop="confirm_time" />   
             <el-table-column label="活动ID" align="center" prop="active_id" />   
             <el-table-column label="订单类型:0实物订单,1虚拟订单" align="center" prop="order_type" />   
             <el-table-column label="1：正常  2：已删" align="center" prop="display_status" />   
             <el-table-column label="鉴定师订单奖金体现至用户余额状态;0，未体现；1.已提现" align="center" prop="jds_tx" />   
             <el-table-column label="" align="center" prop="lr_money" />   
             <el-table-column label="结算时间" align="center" prop="balance_time" />   
             <el-table-column label="美购可转换金额" align="center" prop="ylh_points" />   
             <el-table-column label="第三方order_id" align="center" prop="ylh_order" />   
             <el-table-column label="订单所属类型  1 ： 普通订单  2：赠送好友订单" align="center" prop="order_classify" />   
             <el-table-column label="物流费" align="center" prop="freight" />   
             <el-table-column label="责任人id" align="center" prop="response_uid" />   
             <el-table-column label="财务是否已对账0未对账 1已对账2对账中" align="center" prop="finance_checked" />   
             <el-table-column label="此次订单积分返还手机号" align="center" prop="score_mobile" />   
             <el-table-column label="第三方授权 " align="center" prop="tp_authority" />   
             <el-table-column label="拍单单号" align="center" prop="paiorder_sn" />   
             <el-table-column label="0待通知1成功2失败3老订单4第三方已授权5未开通积分功能" align="center" prop="notify2fund" />   
             <el-table-column label="fund order" align="center" prop="notify2fund_order" />   
             <el-table-column label="通知失败log" align="center" prop="notify2fund_log" />   
             <el-table-column label="商品来源，1美购平台，2京东，3多商网，4网易严选，5第三方" align="center" prop="goods_resource" />   
             <el-table-column label="合作方商品ID" align="center" prop="third_id" />   
             <el-table-column label="合作方父订单号" align="center" prop="parent_third_sn" />   
             <el-table-column label="合作方订单号" align="center" prop="third_sn" />   
             <el-table-column label="合作方订单状态：0：为取消订单，1:为有效 ,2:为下单失败,3退单审核中" align="center" prop="third_order_state" />   
             <el-table-column label="合作方订单支付状态，1成功，2失败" align="center" prop="third_order_pay" />   
             <el-table-column label="是否已经点击过配货中 1：是 2：否" align="center" prop="is_already_prepare_goods" />   
             <el-table-column label="操作配货时间" align="center" prop="prepare_goods_time" />   
             <el-table-column label="自动取消配货中时间" align="center" prop="auto_cancel_prepare_time" />   
             <el-table-column label="退款金额" align="center" prop="partial_refund_money" />   
             <el-table-column label="结算退款金额" align="center" prop="balance_refund_money" />   
             <el-table-column label="1部分退款 2不是" align="center" prop="partial_refund" />   
             <el-table-column label="1结算退款 2不是" align="center" prop="balance_refund" />   
             <el-table-column label="部分退款后的金额" align="center" prop="refund_after_money" />   
             <el-table-column label="部分退款后第三方可转换金额" align="center" prop="refund_after_ylh_points" />   
             <el-table-column label="全额退款" align="center" prop="refund_money" />   
             <el-table-column label="来源平台：1美购自营订单，2第三方订单，3云联商城订单，4消费链" align="center" prop="order_platform" />   
             <el-table-column label="商户通公众号用户下单消息发送。0未发送，1发送" align="center" prop="is_msg" />   
             <el-table-column label="商户通公众号用户确认收货消息发送。0未发送，1发送" align="center" prop="is_confirm_msg" />   
             <el-table-column label="计算方式0适用京东严选商品结算方式 1有账期后付款 2实销实结" align="center" prop="settlement_type" />   
             <el-table-column label="商家备注" align="center" prop="seller_remark" />   
             <el-table-column label="退款成功时间" align="center" prop="refund_success_time" />   
             <el-table-column label="退款操作人id" align="center" prop="refund_user_id" />   
             <el-table-column label="退款操作人的身份 1运营后台人员 2商户" align="center" prop="refund_user_type" />   
             <el-table-column label="账单结算时间" align="center" prop="bill_balance_time" />   
             <el-table-column label="账单状态：0未生成账单1已生成账单商户待确认2已确认" align="center" prop="settlement_status" />   
             <el-table-column label="售后时长" align="center" prop="aftersale_time" />   
             <el-table-column label="售后过期时间" align="center" prop="after_sale_over_time" />   
             <el-table-column label="是否开发票 ，0未申请 1.未开票 2.已开票未寄出 3.已开票已寄出" align="center" prop="is_invoice" />    
          <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
            <template slot-scope="scope">
              <el-button
                size="mini"
                type="text"
                icon="el-icon-edit"
                @click="handleUpdate(scope.row)"
              >修改</el-button>
              <el-button
                size="mini"
                type="text"
                icon="el-icon-delete"
                @click="handleDelete(scope.row)"
              >删除</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"
            />
            <!-- 添加或修改折扣金额对话框 -->
                <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
                  <el-form ref="form" :model="form" :rules="rules" label-width="80px">            
                    <el-form-item label="父订单sn" prop="parent_order_sn">
                      <el-input v-model="form.parent_order_sn" placeholder="请输入父订单sn" />
                    </el-form-item>            
                    <el-form-item label="第三方订单号" prop="tx_sn">
                      <el-input v-model="form.tx_sn" placeholder="请输入第三方订单号" />
                    </el-form-item>            
                    <el-form-item label="快递单号" prop="deliver_no">
                      <el-input v-model="form.deliver_no" placeholder="请输入快递单号" />
                    </el-form-item>            
                    <el-form-item label="快递公司名称" prop="deliver_name">
                      <el-input v-model="form.deliver_name" placeholder="请输入快递公司名称" />
                    </el-form-item>            
                    <el-form-item label="商品id" prop="goods_id">
                      <el-input v-model="form.goods_id" placeholder="请输入商品id" />
                    </el-form-item>            
                    <el-form-item label="组合商品主id" prop="g_id">
                      <el-input v-model="form.g_id" placeholder="请输入组合商品主id" />
                    </el-form-item>            
                    <el-form-item label="商品名称" prop="goods_name">
                      <el-input v-model="form.goods_name" placeholder="请输入商品名称" />
                    </el-form-item>            
                    <el-form-item label="商品图片" prop="img">
                      <el-input v-model="form.img" placeholder="请输入商品图片" />
                    </el-form-item>            
                    <el-form-item label="卖家id" prop="seller_id">
                      <el-input v-model="form.seller_id" placeholder="请输入卖家id" />
                    </el-form-item>            
                    <el-form-item label="0则无规格" prop="spec_id">
                      <el-input v-model="form.spec_id" placeholder="请输入0则无规格" />
                    </el-form-item>            
                    <el-form-item label="规格说明" prop="spec_des">
                      <el-input v-model="form.spec_des" placeholder="请输入规格说明" />
                    </el-form-item>            
                    <el-form-item label="商品数量" prop="quantity">
                      <el-input v-model="form.quantity" placeholder="请输入商品数量" />
                    </el-form-item>            
                    <el-form-item label="订单金额" prop="money">
                      <el-input v-model="form.money" placeholder="请输入订单金额" />
                    </el-form-item>            
                    <el-form-item label="商家结算金额" prop="seller_money">
                      <el-input v-model="form.seller_money" placeholder="请输入商家结算金额" />
                    </el-form-item>            
                    <el-form-item label="商品的分销价" prop="fx_money">
                      <el-input v-model="form.fx_money" placeholder="请输入商品的分销价" />
                    </el-form-item>            
                    <el-form-item label="买家uid" prop="uid">
                      <el-input v-model="form.uid" placeholder="请输入买家uid" />
                    </el-form-item>            
                    <el-form-item label="买家账号名称" prop="name">
                      <el-input v-model="form.name" placeholder="请输入买家账号名称" />
                    </el-form-item>            
                    <el-form-item label="发货地址id" prop="sid">
                      <el-input v-model="form.sid" placeholder="请输入发货地址id" />
                    </el-form-item>            
                    <el-form-item label="收货人地址" prop="shipname">
                      <el-input v-model="form.shipname" placeholder="请输入收货人地址" />
                    </el-form-item>            
                    <el-form-item label="电话号码" prop="tel">
                      <el-input v-model="form.tel" placeholder="请输入电话号码" />
                    </el-form-item>            
                    <el-form-item label="省" prop="province">
                      <el-input v-model="form.province" placeholder="请输入省" />
                    </el-form-item>            
                    <el-form-item label="市" prop="city">
                      <el-input v-model="form.city" placeholder="请输入市" />
                    </el-form-item>            
                    <el-form-item label="区域" prop="area">
                      <el-input v-model="form.area" placeholder="请输入区域" />
                    </el-form-item>            
                    <el-form-item label="乡镇" prop="town">
                      <el-input v-model="form.town" placeholder="请输入乡镇" />
                    </el-form-item>            
                    <el-form-item label="收货地址" prop="address">
                      <el-input v-model="form.address" placeholder="请输入收货地址" />
                    </el-form-item>            
                    <el-form-item label="ip地址" prop="ip">
                      <el-input v-model="form.ip" placeholder="请输入ip地址" />
                    </el-form-item>            
                    <el-form-item label="支付渠道:wx-微信,0gow-零元购买,business第三方商户(openapi)余额扣款,erpmoney erp余额支付，erpcoin erp金积分支付，" prop="from">
                      <el-input v-model="form.from" placeholder="请输入支付渠道:wx-微信,0gow-零元购买,business第三方商户(openapi)余额扣款,erpmoney erp余额支付，erpcoin erp金积分支付，" />
                    </el-form-item>            
                    <el-form-item label="0:0购平台来源，1：拼团平台来源，2：夺宝平台来源，3：秒杀平台来源，4：砍价平台来源,5：app平台来源8:web端, 13openapi接入的第三方商家14微信小程序" prop="pt">
                      <el-input v-model="form.pt" placeholder="请输入0:0购平台来源，1：拼团平台来源，2：夺宝平台来源，3：秒杀平台来源，4：砍价平台来源,5：app平台来源8:web端, 13openapi接入的第三方商家14微信小程序" />
                    </el-form-item>            
                    <el-form-item label="1:已结算，0：未结算" prop="balance">
                      <el-input v-model="form.balance" placeholder="请输入1:已结算，0：未结算" />
                    </el-form-item>            
                    <el-form-item label="下单时间" prop="addtime">
                      <el-input v-model="form.addtime" placeholder="请输入下单时间" />
                    </el-form-item>            
                    <el-form-item label="订单更新时间" prop="updatetime">
                      <el-input v-model="form.updatetime" placeholder="请输入订单更新时间" />
                    </el-form-item>            
                    <el-form-item label="发货时间" prop="delivertime">
                      <el-input v-model="form.delivertime" placeholder="请输入发货时间" />
                    </el-form-item>            
                    <el-form-item label="备注" prop="remark">
                      <el-input v-model="form.remark" placeholder="请输入备注" />
                    </el-form-item>            
                    <el-form-item label="用户备注" prop="user_remark">
                      <el-input v-model="form.user_remark" placeholder="请输入用户备注" />
                    </el-form-item>            
                    <el-form-item label="单拍买家id" prop="seller">
                      <el-input v-model="form.seller" placeholder="请输入单拍买家id" />
                    </el-form-item>            
                    <el-form-item label="" prop="discount_money">
                      <el-input v-model="form.discount_money" placeholder="请输入" />
                    </el-form-item>            
                    <el-form-item label="活动ID" prop="active_id">
                      <el-input v-model="form.active_id" placeholder="请输入活动ID" />
                    </el-form-item>            
                    <el-form-item label="鉴定师订单奖金体现至用户余额状态;0，未体现；1.已提现" prop="jds_tx">
                      <el-input v-model="form.jds_tx" placeholder="请输入鉴定师订单奖金体现至用户余额状态;0，未体现；1.已提现" />
                    </el-form-item>            
                    <el-form-item label="" prop="lr_money">
                      <el-input v-model="form.lr_money" placeholder="请输入" />
                    </el-form-item>            
                    <el-form-item label="结算时间" prop="balance_time">
                      <el-input v-model="form.balance_time" placeholder="请输入结算时间" />
                    </el-form-item>            
                    <el-form-item label="美购可转换金额" prop="ylh_points">
                      <el-input v-model="form.ylh_points" placeholder="请输入美购可转换金额" />
                    </el-form-item>            
                    <el-form-item label="第三方order_id" prop="ylh_order">
                      <el-input v-model="form.ylh_order" placeholder="请输入第三方order_id" />
                    </el-form-item>            
                    <el-form-item label="订单所属类型  1 ： 普通订单  2：赠送好友订单" prop="order_classify">
                      <el-input v-model="form.order_classify" placeholder="请输入订单所属类型  1 ： 普通订单  2：赠送好友订单" />
                    </el-form-item>            
                    <el-form-item label="物流费" prop="freight">
                      <el-input v-model="form.freight" placeholder="请输入物流费" />
                    </el-form-item>            
                    <el-form-item label="责任人id" prop="response_uid">
                      <el-input v-model="form.response_uid" placeholder="请输入责任人id" />
                    </el-form-item>            
                    <el-form-item label="财务是否已对账0未对账 1已对账2对账中" prop="finance_checked">
                      <el-input v-model="form.finance_checked" placeholder="请输入财务是否已对账0未对账 1已对账2对账中" />
                    </el-form-item>            
                    <el-form-item label="此次订单积分返还手机号" prop="score_mobile">
                      <el-input v-model="form.score_mobile" placeholder="请输入此次订单积分返还手机号" />
                    </el-form-item>            
                    <el-form-item label="第三方授权 " prop="tp_authority">
                      <el-input v-model="form.tp_authority" placeholder="请输入第三方授权 " />
                    </el-form-item>            
                    <el-form-item label="拍单单号" prop="paiorder_sn">
                      <el-input v-model="form.paiorder_sn" placeholder="请输入拍单单号" />
                    </el-form-item>            
                    <el-form-item label="0待通知1成功2失败3老订单4第三方已授权5未开通积分功能" prop="notify2fund">
                      <el-input v-model="form.notify2fund" placeholder="请输入0待通知1成功2失败3老订单4第三方已授权5未开通积分功能" />
                    </el-form-item>            
                    <el-form-item label="fund order" prop="notify2fund_order">
                      <el-input v-model="form.notify2fund_order" placeholder="请输入fund order" />
                    </el-form-item>            
                    <el-form-item label="通知失败log" prop="notify2fund_log">
                      <el-input v-model="form.notify2fund_log" placeholder="请输入通知失败log" />
                    </el-form-item>            
                    <el-form-item label="商品来源，1美购平台，2京东，3多商网，4网易严选，5第三方" prop="goods_resource">
                      <el-input v-model="form.goods_resource" placeholder="请输入商品来源，1美购平台，2京东，3多商网，4网易严选，5第三方" />
                    </el-form-item>            
                    <el-form-item label="合作方商品ID" prop="third_id">
                      <el-input v-model="form.third_id" placeholder="请输入合作方商品ID" />
                    </el-form-item>            
                    <el-form-item label="合作方父订单号" prop="parent_third_sn">
                      <el-input v-model="form.parent_third_sn" placeholder="请输入合作方父订单号" />
                    </el-form-item>            
                    <el-form-item label="合作方订单号" prop="third_sn">
                      <el-input v-model="form.third_sn" placeholder="请输入合作方订单号" />
                    </el-form-item>            
                    <el-form-item label="合作方订单状态：0：为取消订单，1:为有效 ,2:为下单失败,3退单审核中" prop="third_order_state">
                      <el-input v-model="form.third_order_state" placeholder="请输入合作方订单状态：0：为取消订单，1:为有效 ,2:为下单失败,3退单审核中" />
                    </el-form-item>            
                    <el-form-item label="合作方订单支付状态，1成功，2失败" prop="third_order_pay">
                      <el-input v-model="form.third_order_pay" placeholder="请输入合作方订单支付状态，1成功，2失败" />
                    </el-form-item>            
                    <el-form-item label="是否已经点击过配货中 1：是 2：否" prop="is_already_prepare_goods">
                      <el-input v-model="form.is_already_prepare_goods" placeholder="请输入是否已经点击过配货中 1：是 2：否" />
                    </el-form-item>            
                    <el-form-item label="操作配货时间" prop="prepare_goods_time">
                      <el-input v-model="form.prepare_goods_time" placeholder="请输入操作配货时间" />
                    </el-form-item>            
                    <el-form-item label="退款金额" prop="partial_refund_money">
                      <el-input v-model="form.partial_refund_money" placeholder="请输入退款金额" />
                    </el-form-item>            
                    <el-form-item label="结算退款金额" prop="balance_refund_money">
                      <el-input v-model="form.balance_refund_money" placeholder="请输入结算退款金额" />
                    </el-form-item>            
                    <el-form-item label="1部分退款 2不是" prop="partial_refund">
                      <el-input v-model="form.partial_refund" placeholder="请输入1部分退款 2不是" />
                    </el-form-item>            
                    <el-form-item label="1结算退款 2不是" prop="balance_refund">
                      <el-input v-model="form.balance_refund" placeholder="请输入1结算退款 2不是" />
                    </el-form-item>            
                    <el-form-item label="部分退款后的金额" prop="refund_after_money">
                      <el-input v-model="form.refund_after_money" placeholder="请输入部分退款后的金额" />
                    </el-form-item>            
                    <el-form-item label="部分退款后第三方可转换金额" prop="refund_after_ylh_points">
                      <el-input v-model="form.refund_after_ylh_points" placeholder="请输入部分退款后第三方可转换金额" />
                    </el-form-item>            
                    <el-form-item label="全额退款" prop="refund_money">
                      <el-input v-model="form.refund_money" placeholder="请输入全额退款" />
                    </el-form-item>            
                    <el-form-item label="来源平台：1美购自营订单，2第三方订单，3云联商城订单，4消费链" prop="order_platform">
                      <el-input v-model="form.order_platform" placeholder="请输入来源平台：1美购自营订单，2第三方订单，3云联商城订单，4消费链" />
                    </el-form-item>            
                    <el-form-item label="商户通公众号用户下单消息发送。0未发送，1发送" prop="is_msg">
                      <el-input v-model="form.is_msg" placeholder="请输入商户通公众号用户下单消息发送。0未发送，1发送" />
                    </el-form-item>            
                    <el-form-item label="商户通公众号用户确认收货消息发送。0未发送，1发送" prop="is_confirm_msg">
                      <el-input v-model="form.is_confirm_msg" placeholder="请输入商户通公众号用户确认收货消息发送。0未发送，1发送" />
                    </el-form-item>            
                    <el-form-item label="商家备注" prop="seller_remark">
                      <el-input v-model="form.seller_remark" placeholder="请输入商家备注" />
                    </el-form-item>            
                    <el-form-item label="退款成功时间" prop="refund_success_time">
                      <el-input v-model="form.refund_success_time" placeholder="请输入退款成功时间" />
                    </el-form-item>            
                    <el-form-item label="退款操作人id" prop="refund_user_id">
                      <el-input v-model="form.refund_user_id" placeholder="请输入退款操作人id" />
                    </el-form-item>            
                    <el-form-item label="账单结算时间" prop="bill_balance_time">
                      <el-input v-model="form.bill_balance_time" placeholder="请输入账单结算时间" />
                    </el-form-item>            
                    <el-form-item label="售后时长" prop="aftersale_time">
                      <el-input v-model="form.aftersale_time" placeholder="请输入售后时长" />
                    </el-form-item>            
                    <el-form-item label="是否开发票 ，0未申请 1.未开票 2.已开票未寄出 3.已开票已寄出" prop="is_invoice">
                      <el-input v-model="form.is_invoice" placeholder="请输入是否开发票 ，0未申请 1.未开票 2.已开票未寄出 3.已开票已寄出" />
                    </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button type="primary" @click="submitForm">确 定</el-button>
            <el-button @click="cancel">取 消</el-button>
          </div>
        </el-dialog>
      </div>
</template>
<script>
import { listOrder, getOrder, delOrder, addOrder, updateOrder } from '@/api/module/order'
export default {
  name: "order",
  data() {
    return {
          // 遮罩层
          loading: true,
          // 选中数组
          ids: [],
          // 非单个禁用
          single: true,
          // 非多个禁用
          multiple: true,
          // 显示搜索条件
          showSearch: true,
          // 总条数
          total: 0,
          // 折扣金额表格数据
          orderList: [],
          // 弹出层标题
          title: "",
          // 是否显示弹出层
          open: false,          
          // 查询参数
        queryParams: {
          pageNum: 1,
          pageSize: 10,          
          order_sn: null,          
          parent_order_sn: null,          
          tx_sn: null,          
          deliver_no: null,          
          deliver_name: null,          
          goods_id: null,          
          g_id: null,          
          goods_name: null,          
          img: null,          
          seller_id: null,          
          spec_id: null,          
          spec_des: null,          
          quantity: null,          
          money: null,          
          seller_money: null,          
          fx_money: null,          
          uid: null,          
          name: null,          
          sid: null,          
          shipname: null,          
          tel: null,          
          province: null,          
          city: null,          
          area: null,          
          town: null,          
          address: null,          
          ip: null,          
          from: null,          
          pt: null,          
          balance: null,          
          status: null,          
          erp_refund_status: null,          
          pay_status: null,          
          goods_status: null,          
          addtime: null,          
          paytime: null,          
          updatetime: null,          
          delivertime: null,          
          remindtime: null,          
          user_remark: null,          
          seller: null,          
          discount_money: null,          
          confirm_time: null,          
          active_id: null,          
          order_type: null,          
          display_status: null,          
          jds_tx: null,          
          lr_money: null,          
          balance_time: null,          
          ylh_points: null,          
          ylh_order: null,          
          order_classify: null,          
          freight: null,          
          response_uid: null,          
          finance_checked: null,          
          score_mobile: null,          
          tp_authority: null,          
          paiorder_sn: null,          
          notify2fund: null,          
          notify2fund_order: null,          
          notify2fund_log: null,          
          goods_resource: null,          
          third_id: null,          
          parent_third_sn: null,          
          third_sn: null,          
          third_order_state: null,          
          third_order_pay: null,          
          is_already_prepare_goods: null,          
          prepare_goods_time: null,          
          auto_cancel_prepare_time: null,          
          partial_refund_money: null,          
          balance_refund_money: null,          
          partial_refund: null,          
          balance_refund: null,          
          refund_after_money: null,          
          refund_after_ylh_points: null,          
          refund_money: null,          
          order_platform: null,          
          is_msg: null,          
          is_confirm_msg: null,          
          settlement_type: null,          
          seller_remark: null,          
          refund_success_time: null,          
          refund_user_id: null,          
          refund_user_type: null,          
          bill_balance_time: null,          
          settlement_status: null,          
          aftersale_time: null,          
          after_sale_over_time: null,          
          is_invoice: null,          
        },
        // 表单参数
          form: {},
          // 表单校验
          rules: {              
              deliver_name: [
                { required: true, message: "快递公司名称不能为空", trigger: "blur" }
              ],              
              goods_name: [
                { required: true, message: "商品名称不能为空", trigger: "blur" }
              ],              
              name: [
                { required: true, message: "买家账号名称不能为空", trigger: "blur" }
              ],              
              shipname: [
                { required: true, message: "收货人地址不能为空", trigger: "blur" }
              ],              
              status: [
                { required: true, message: "订单状态:0:未处理,1,已作废,2,待退货,3,已退货,4,异常订单,10已处理不能为空", trigger: "blur" }
              ],              
              erp_refund_status: [
                { required: true, message: "erp 退款 退积分状态 0 失败 1 成功不能为空", trigger: "blur" }
              ],              
              pay_status: [
                { required: true, message: "付款状态:0:未付款,1:已付款,2申请退款,3,退款中,4已退款5退款申请失败（申请后20天内未处理）不能为空", trigger: "blur" }
              ],              
              goods_status: [
                { required: true, message: "货物状态 0:未发货,1:已发货,2:已收货,3:配货中,4：拒收不能为空", trigger: "blur" }
              ],              
              display_status: [
                { required: true, message: "1：正常  2：已删不能为空", trigger: "blur" }
              ],              
              settlement_status: [
                { required: true, message: "账单状态：0未生成账单1已生成账单商户待确认2已确认不能为空", trigger: "blur" }
              ],              
          }
      };
    },
    created() {
        this.getList();    
    },
    methods: {
        /** 查询折扣金额列表 */
        getList() {
          this.loading = true;
          listOrder(this.queryParams).then(response => {
            this.orderList = response.data.list;
            this.total = response.data.total;
            this.loading = false;
          });
        },        
        // 取消按钮
        cancel() {
          this.open = false;
          this.reset();
        },
        // 表单重置
        reset() {
          this.form = {    
            order_sn: null,    
            parent_order_sn: null,    
            tx_sn: null,    
            deliver_no: null,    
            deliver_name: null,    
            goods_id: null,    
            g_id: null,    
            goods_name: null,    
            img: null,    
            seller_id: null,    
            spec_id: null,    
            spec_des: null,    
            quantity: null,    
            money: null,    
            seller_money: null,    
            fx_money: null,    
            uid: null,    
            name: null,    
            sid: null,    
            shipname: null,    
            tel: null,    
            province: null,    
            city: null,    
            area: null,    
            town: null,    
            address: null,    
            ip: null,    
            from: null,    
            pt: null,    
            balance: null,    
            status: 0 ,    
            erp_refund_status: 0 ,    
            pay_status: 0 ,    
            goods_status: 0 ,    
            addtime: null,    
            paytime: null,    
            updatetime: null,    
            delivertime: null,    
            remindtime: null,    
            remark: null,    
            user_remark: null,    
            seller: null,    
            discount_money: null,    
            confirm_time: null,    
            active_id: null,    
            order_type: null,    
            display_status: 0 ,    
            jds_tx: null,    
            lr_money: null,    
            balance_time: null,    
            ylh_points: null,    
            ylh_order: null,    
            order_classify: null,    
            freight: null,    
            response_uid: null,    
            finance_checked: null,    
            score_mobile: null,    
            tp_authority: null,    
            paiorder_sn: null,    
            notify2fund: null,    
            notify2fund_order: null,    
            notify2fund_log: null,    
            goods_resource: null,    
            third_id: null,    
            parent_third_sn: null,    
            third_sn: null,    
            third_order_state: null,    
            third_order_pay: null,    
            is_already_prepare_goods: null,    
            prepare_goods_time: null,    
            auto_cancel_prepare_time: null,    
            partial_refund_money: null,    
            balance_refund_money: null,    
            partial_refund: null,    
            balance_refund: null,    
            refund_after_money: null,    
            refund_after_ylh_points: null,    
            refund_money: null,    
            order_platform: null,    
            is_msg: null,    
            is_confirm_msg: null,    
            settlement_type: null,    
            seller_remark: null,    
            refund_success_time: null,    
            refund_user_id: null,    
            refund_user_type: null,    
            bill_balance_time: null,    
            settlement_status: 0 ,    
            aftersale_time: null,    
            after_sale_over_time: null,    
            is_invoice: null    
          };
          this.resetForm("form");
        },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.order_sn)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加折扣金额";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const order_sn = row.order_sn || this.ids
      getOrder(order_sn).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改折扣金额";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.order_sn != null) {
            updateOrder(this.form).then(response => {
              if (response.code === 0) {
                this.msgSuccess("修改成功");
                this.open = false;
                this.getList();
              }
            });
          } else {
            addOrder(this.form).then(response => {
              if (response.code === 0) {
                this.msgSuccess("新增成功");
                this.open = false;
                this.getList();
              }
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const order_sns = row.order_sn || this.ids;
      this.$confirm('是否确认删除折扣金额编号为"' + order_sns + '"的数据项?', "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(function() {
          return delOrder(order_sns);
        }).then(() => {
          this.getList();
          this.msgSuccess("删除成功");
        }).catch(function() {});
    },
    } //methods结束
};
</script>