resetreson

<template>
  <el-dialog
      title="审核退回"
      :visible.sync="dialogVisible"
      width="30%"
      append-to-body
      >
    <el-form ref="form">
    <el-form-item label="退回原因" >
      <el-input v-model="remark" placeholder="请输入内容"></el-input>
    </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
    <el-button @click="dialogVisible = false">取 消</el-button>
    <el-button type="primary" @click="submitlist()">确 定</el-button>
  </span>
  </el-dialog>

</template>
<script>

import {putAction} from "@/api";

export default {
  name:"ResetReson",
  data(){
    return {
      remark:'',
      dialogVisible:false,

    }
  },
  methods:{
    show(){
   console.log(1)
      console.log(this)
      console.log(this.$parent.$parent.ListId)

      this.dialogVisible=true
    },
    submitlist(){
      putAction("/order/"+this.$parent.$parent.ListId+"/status",{
        status:-1,
        remark: this.remark
      }).then(res=>{
        this.$message({
          message: '退回已提交',
          type: 'success'
        });
        this.$emit('ok');
        this.$emit('showCityName');
        this.dialogVisible=false

      })

      this.dialogVisible=false
    }
  }
}
</script>

   </template>
    </div>
    <reset-reson @showCityName="updateCity()" ref="reson"></reset-reson>
  </el-dialog>

</template>

控制弹出框关闭