<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="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" @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.cw_create = 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.cw_create = true">二次确认通过</el-button>
      </template>
    </el-dialog>
    <!-- 财务计算金额 -->
    <el-dialog
      title="修改信息"
      :visible.sync="dialog.cw_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="80px">
            <el-form-item label="退款金额:">
              <el-input
                type="text"
                style="width: 400px"
              />
            </el-form-item>
            <el-form-item label="备注:">
              <el-input
                type="textarea"
                :rows="4"
                resize="none"
                style="width: 400px"
              />
            </el-form-item>
          </el-form>
        </el-col>
      </el-row>
      <template slot="footer">
        <el-button>取消</el-button>
        <el-button type="primary" @click="dialog.cw_create = 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,
        cw_create: false
      }
    }
  }
}
</script>
