
<!-- 驳回原因用户姓名输入 -->
<template>
  <div>
    <a-descriptions title="用户信息" :column="4">
      <a-descriptions-item label="姓名" span="2">张冬雪</a-descriptions-item>
      <a-descriptions-item label="电话" span="2">1810000000</a-descriptions-item>
      <a-descriptions-item label="身份" span="2">创客</a-descriptions-item>
    </a-descriptions>

    <!-- 出库 线上出库 -->
    <a-descriptions title="线上出库" :column="4">
      <a-descriptions-item label="线上出库方式" span="2">线上零售、优惠券扣除库存</a-descriptions-item>
      <a-descriptions-item label="出库数量" span="2">12件</a-descriptions-item>
    </a-descriptions>

    <!-- 出库 线下出库 物流 -->
    <a-descriptions title="线下出库（线上发货）" :column="4">
      <a-descriptions-item label="出库数量" span="2">12件</a-descriptions-item>
      <a-descriptions-item label="发货状态" span="2">线上发货</a-descriptions-item>
      <a-descriptions-item label="快递状态" span="2">待发货</a-descriptions-item>
      <a-descriptions-item label="发货时间" span="2">2023-12-12 12:12:12</a-descriptions-item>
      <a-descriptions-item label="快递单号" span="2">20398475766539979</a-descriptions-item>
      <a-descriptions-item label="收货人名" span="2">张冬雪</a-descriptions-item>
      <a-descriptions-item label="收货地址" span="3">哈尔滨市香坊区香顺街98号-2-201</a-descriptions-item>
    </a-descriptions>

    <!-- 出库 线下出库 自提 -->
    <a-descriptions title="线下出库（自提）" :column="4">
      <a-descriptions-item label="自提数量" span="2">12件</a-descriptions-item>
      <a-descriptions-item label="发货状态" span="2">自提</a-descriptions-item>
      <a-descriptions-item label="提货时间" span="2">2023-11-11 10:12:12</a-descriptions-item>
    </a-descriptions>

    <!-- 入库 线上 -->
    <a-descriptions title="入库(线上)" :column="4">
      <a-descriptions-item label="订单号" span="2">20398475766539979</a-descriptions-item>
      <a-descriptions-item label="进货数量" span="2">99件</a-descriptions-item>
      <a-descriptions-item label="经销商姓名手机号" span="2">张冬雪14745798055</a-descriptions-item>
      <a-descriptions-item label="进货时间" span="2">2023-11-11 10:12:12</a-descriptions-item>
    </a-descriptions>

    <!-- 入库 线下 线上发货-->
    <a-descriptions title="入库(线下发货)" :column="4">
      <a-descriptions-item label="订单号" span="2">20398475766539979</a-descriptions-item>
      <a-descriptions-item label="进货数量" span="2">99件</a-descriptions-item>
      <a-descriptions-item label="经销商姓名手机号" span="2">张冬雪14745798055</a-descriptions-item>
      <a-descriptions-item label="进货时间" span="2">2023-11-11 10:12:12</a-descriptions-item>
      <a-descriptions-item label="快递单号" span="2">20398475766539979</a-descriptions-item>
      <a-descriptions-item label="快递状态" span="2">待发货</a-descriptions-item>
      <a-descriptions-item label="收货地址" span="3">哈尔滨市香坊区香顺街98号-2-201</a-descriptions-item>
    </a-descriptions>

    <!-- 入库 线下 自提-->
    <a-descriptions title="入库(线下发货)" :column="4">
      <a-descriptions-item label="订单号" span="2">20398475766539979</a-descriptions-item>
      <a-descriptions-item label="进货数量" span="2">99件</a-descriptions-item>
      <a-descriptions-item label="经销商姓名手机号" span="2">张冬雪14745798055</a-descriptions-item>
      <a-descriptions-item label="自提时间" span="2">2023-11-11 10:12:12</a-descriptions-item>
    </a-descriptions>
  </div>
</template>

<script>
import { changeStatusTwo } from '@/api/organization'
export default {
  name: 'StockInfo',
  props: {
    item: {
      type: Object,
      default: () => {
          return {}
        }
    }
  },
  data: () => ({
    formItemLayout: {
      labelCol: { span: 6 },
      wrapperCol: { span: 14 }
    },
    loading: false
  }),
  beforeCreate () {
    this.form = this.$form.createForm(this)
  },
  methods: {
    onOk () {
      return new Promise(resolve => {
        this.form.validateFields((errors, values) => {
          if (!errors) {
            const params = {
              status: values.status
            }
            changeStatusTwo(this.item.order_item_id, params).then((res) => {
              this.$notification.success({
                message: '成功',
                description: '修改成功'
              })
              resolve(true)
            }).catch((err) => {
              this.$notification.error({
                message: '失败',
                description: err.message
              })
              resolve(false)
            })
          }
        })
      })
    }
  }
}
</script>

<style scoped>

</style>
