<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-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" @click="dialog.zw_create = false;dialog.ck_create = true;">发起换货</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;dialog.zw_next = true">二次确认通过</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;dialog.zw_next = true">二次确认通过</el-button>
      </template>
    </el-dialog>
    <!-- 政委选择财务确认(存在差价) / 打单(不存在差价)  -->
    <el-dialog
      title="下一步"
      :visible.sync="dialog.zw_next"
      :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_next = false;">财务确认</el-button>
        <el-button type="primary" @click="dialog.zw_next = false;">打单确认</el-button>
      </template>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialog: {
        zw_create: false,
        ck_create: false,
        zw_confirm: false,
        zw_revise: false,
        zw_next: false
      }
    }
  }
}
</script>
