<template>
  <div class="app-container">
    <el-button type="primary" @click="dialog.zw_create = true">客户退货</el-button>
    <el-dialog
      title="客户退货"
      :visible.sync="dialog.zw_create"
      width="540px"
      :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" @click="dialog.zw_create = false;dialog.zw_open = true;">发起换货</el-button>
      </template>
    </el-dialog>
    <!-- 是否打开 -->
    <el-dialog
      title="下一步"
      :visible.sync="dialog.zw_open"
      :close-on-click-modal="false"
      width="520px"
      :show-close="false"
      :close-on-press-escape="false"
    >
      <p><i class="el-icon-info" />请自行确认退货产品是否被全打开</p>
      <p>未全打开->仓库确认</p>
      <p>已全打开->提交打单</p>

      <template slot="footer">
        <el-button type="primary" @click="dialog.zw_open = false;dialog.ck_create = true">仓库确认</el-button>
        <el-button type="primary" @click="dialog.zw_open = false;">提交打单</el-button>
      </template>
    </el-dialog>
    <!-- 仓库确认信息 -->
    <el-dialog
      title="确认信息"
      :visible.sync="dialog.ck_create"
      :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" @click="dialog.ck_create = false;">提交确认</el-button>
      </template>
    </el-dialog>
    <el-dialog
      title="补货"
      :visible.sync="dialog.zw_buhuo"
      :close-on-click-modal="false"
      width="80%"
      top="50px"
    >
      <el-form label-width="80px">
        <el-form-item label="补货信息:" />
      </el-form>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary" @click="dialog.ck_create = false;">提交确认</el-button>
      </template>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialog: {
        zw_create: false,
        zw_open: false,
        ck_create: false,
        zw_buhuo: false
      }
    }
  }
}
</script>
