<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-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" @click="dialog.zw_create = false;dialog.zw_complete = true;">发起换货</el-button>
      </template>
    </el-dialog>
    <!-- 是否整套 -->
    <el-dialog
      title="下一步"
      :visible.sync="dialog.zw_complete"
      :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_complete = false;dialog.ck_create = true;">仓库确认</el-button>
        <el-button type="primary" @click="dialog.zw_complete = 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;dialog.zw_confirm = true">提交确认</el-button>
      </template>
    </el-dialog>
    <!-- 政委确认信息 -->
    <el-dialog
      title="确认信息"
      :visible.sync="dialog.zw_confirm"
      :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" @click="dialog.zw_confirm = false;dialog.zw_revise = true">修改</el-button>
        <el-button type="primary" @click="dialog.zw_confirm = false;">提交打单</el-button>
      </template>
    </el-dialog>
    <!-- 政委二次录入 -->
    <el-dialog
      title="修改信息"
      :visible.sync="dialog.zw_revise"
      :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" @click="dialog.zw_revise = false;">提交打单</el-button>
      </template>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialog: {
        zw_create: false,
        zw_complete: false,
        ck_create: false,
        zw_confirm: false,
        zw_revise: false
      }
    }
  }
}
</script>
