Blame view

admin-web-master/src/views/order/after/details/component/after-sales.vue 1.76 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  <template>
    <div>
      <div v-if="dialog.allow" class="allow">
        <h1>建议联系商家,由商家操作同意退款。</h1>
        <p>若你同意售后,客户申请的类型为仅退款时,将自动从商家账户退款给买家 若客户申请的类型为退款退货时,本售后将转为待买家退回物品的状态,有可能被商家拒收</p>
      </div>
      <div v-else class="refuse">
        <p>拒绝售后,本售后将自动关闭,但买家有权再次发起。</p>
      </div>
  
      <el-form label-width="120px" :model="form">
        <el-form-item label="备注内容">
          <el-input v-model="form.remark" type="textarea" placeholder="请填写相关内容" />
        </el-form-item>
      </el-form>
  
      <div class="btn_list">
        <el-button type="primary" @click="agree(dialog)">{{ dialog.btnName }}</el-button>
        <el-button @click="cancel">取消</el-button>
      </div>
    </div>
  </template>
  
  <script>
  // import { handles } from '@/api/after'
  export default {
    props: {
      dialog: {
        type: Object,
        default: () => {}
      }
    },
    data() {
      return {
        form: {
          remark: ''
        }
      }
    },
    methods: {
      agree(dialog) {
        console.log(dialog)
        dialog.remark = this.form.remark
        this.$emit('dialogs', dialog)
      },
      cancel() {
        console.log(1111)
        this.$emit('close')
      }
    }
  }
  </script>
  
  <style lang='less' scoped>
  h1 {
    font-size: 24px;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    text-align: center;
    width: 50%;
    margin: 30px auto;
  }
  p {
    font-size: 16px;
    color: rgba(51, 51, 51, 1);
    text-align: center;
    width: 50%;
    margin: 30px auto;
  }
  
  .btn_list {
    width: 200px;
    margin: 20px auto;
  }
  
  ::v-deep .el-textarea {
    width: 100%;
    textarea {
      min-height: 150px !important;
    }
  }
  </style>