<template>
  <div class="app-container">
    <el-button type="primary">退换货</el-button>
    <el-dialog
      title="代理退货"
      :visible.sync="dialog.t_return"
      width="540px"
      :close-on-click-modal="false"
    >
      <el-form label-width="80px">
        <el-form-item label="订货代理:">
          <el-input
            type="text"
            placeholder="订货代理手机号"
            maxlength="11"
            style="width: 300px"
          />
          <el-button
            type="primary"
            icon="el-icon-search"
          >
            查询
          </el-button>
        </el-form-item>
        <el-form-item label="上级代理:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="代理公司:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="发货时间:">
          <el-date-picker
            v-model="value1"
            type="datetime"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="商品信息:" />
        <el-form-item label="赠品信息:" />
      </el-form>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary">发起退货</el-button>
      </template>
    </el-dialog>
    <el-dialog
      title="代理换货"
      :visible.sync="dialog.t_change"
      width="550px"
      :close-on-click-modal="false"
    >
      <el-form label-width="100px">
        <el-form-item label="代理手机号:">
          <el-input
            type="text"
            placeholder="请输入代理手机号"
            maxlength="11"
            style="width: 300px"
          />
          <el-button type="primary" icon="el-icon-search">查询</el-button>
        </el-form-item>
        <el-form-item label="收货人姓名:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="收货人手机:">
          <el-input
            type="text"
            maxlength="11"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="收货人地址:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="原商品信息:" />
        <el-form-item label="调换商品信息:" />
      </el-form>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary">发起换货</el-button>
      </template>
    </el-dialog>
    <el-dialog
      title="客户换货"
      :visible.sync="dialog.u_change"
      width="550px"
      :close-on-click-modal="false"
    >
      <el-form label-width="100px">
        <el-form-item label="订货代理:">
          <el-input
            type="text"
            placeholder="订货代理手机号"
            maxlength="11"
            style="width: 300px"
          />
          <el-button
            type="primary"
            icon="el-icon-search"
          >
            查询
          </el-button>
        </el-form-item>
        <el-form-item label="客户姓名:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="客户手机号:">
          <el-input
            type="text"
            maxlength="11"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="购买时间:">
          <el-date-picker
            v-model="value1"
            type="datetime"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="收货地址:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="调换原因:">
          <el-input
            type="textarea"
            :rows="4"
            resize="none"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="调换商品信息:" />
      </el-form>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary">发起换货</el-button>
      </template>
    </el-dialog>
    <el-dialog
      title="客户退货"
      :visible.sync="dialog.u_return"
      width="550px"
      :close-on-click-modal="false"
    >
      <el-form label-width="100px">
        <el-form-item label="购买时间:">
          <el-date-picker
            v-model="value1"
            type="datetime"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="退货原因:">
          <el-input
            type="textarea"
            :rows="4"
            resize="none"
            style="width: 300px"
          />
        </el-form-item>
        <el-form-item label="退款金额:">
          <el-input
            type="text"
            style="width: 300px"
          />
        </el-form-item>
      </el-form>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary">发起退货</el-button>
      </template>
    </el-dialog>
    <!-- 仓库确认信息 -->
    <el-dialog
      title="确认信息"
      :visible.sync="dialog.c_duibi"
      :close-on-click-modal="false"
      width="80%"
      top="50px"
    >
      <el-row>
        <el-col :span="12">
          <h4>政委录入信息:</h4>
          <el-form label-width="100px" />
        </el-col>
        <el-col :span="12">
          <h4>待仓库确认信息:</h4>
          <el-form label-width="100px">
            <el-form-item label="发货时间:">
              <el-date-picker
                v-model="value1"
                type="datetime"
                style="width: 300px"
              />
            </el-form-item>
            <el-form-item label="商品信息: " />
            <el-form-item label="有无赠品">
              <el-radio v-model="radio" label="1">有</el-radio>
              <el-radio v-model="radio" label="2">无</el-radio>
            </el-form-item>
            <el-form-item label="赠品信息: " />
          </el-form>
        </el-col>
      </el-row>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary">提交确认</el-button>
      </template>
    </el-dialog>
    <!-- 政委确认信息 -->
    <el-dialog
      title="确认信息"
      :visible.sync="dialog.z_duibi"
      :close-on-click-modal="false"
      width="80%"
      top="50px"
    >
      <el-row>
        <el-col :span="12">
          <h4>政委录入信息:</h4>
          <el-form label-width="100px" />
        </el-col>
        <el-col :span="12">
          <h4>仓库确认信息:</h4>
          <el-form label-width="100px" />
        </el-col>
      </el-row>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="danger">修改</el-button>
        <el-button type="primary">二次确认通过</el-button>
      </template>
    </el-dialog>
    <!-- 政委二次录入 -->
    <el-dialog
      title="确认信息"
      :visible.sync="dialog.z_erci_return"
      :close-on-click-modal="false"
      width="80%"
      top="50px"
    >
      <el-row>
        <el-col :span="12">
          <h4>仓库录入信息:</h4>
          <el-form label-width="100px" />
        </el-col>
        <el-col :span="12">
          <h4>政委二次确认信息:</h4>
        </el-col>
      </el-row>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary">二次确认通过</el-button>
      </template>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialog: {
        t_return: false,
        t_change: false,
        u_return: false,
        u_change: false,
        c_duibi: false,
        z_duibi: true,
        z_erci_return: true
      }
    }
  }
}
</script>
<style lang="scss" scoped>
</style>
