|
|
@@ -1,8 +1,14 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div>
|
|
3
|
|
- <el-form ref="ruleForm" :model="ruleForm" label-width="">
|
|
4
|
|
- <el-form-item label="售后审核类型">
|
|
5
|
|
- <el-select v-model="ruleForm.F_CheckStateKG" class="form_select" filterable clearable placeholder="请选择售后审核类型">
|
|
|
3
|
+ <el-form ref="ruleForm" :model="ruleForm" label-width :rules="rules">
|
|
|
4
|
+ <el-form-item label="售后审核类型" prop="F_CheckStateKG">
|
|
|
5
|
+ <el-select
|
|
|
6
|
+ v-model="ruleForm.F_CheckStateKG"
|
|
|
7
|
+ class="form_select"
|
|
|
8
|
+ filterable
|
|
|
9
|
+ clearable
|
|
|
10
|
+ placeholder="请选择售后审核类型"
|
|
|
11
|
+ >
|
|
6
|
12
|
<el-option label="收到货" value="1"></el-option>
|
|
7
|
13
|
<el-option label="货物不符" value="2"></el-option>
|
|
8
|
14
|
<el-option label="未收到货" value="3"></el-option>
|
|
|
@@ -15,50 +21,62 @@
|
|
15
|
21
|
</div>
|
|
16
|
22
|
</template>
|
|
17
|
23
|
<script>
|
|
18
|
|
-
|
|
19
|
|
-import { getAfterSaleListCustodianReview } from '@/api/afterSaleManagement/afterSaleList'
|
|
|
24
|
+import { getAfterSaleListCustodianReview } from "@/api/afterSaleManagement/afterSaleList";
|
|
20
|
25
|
export default {
|
|
21
|
|
- props: {
|
|
22
|
|
- rowid: {
|
|
23
|
|
- type: String,
|
|
24
|
|
- default: ''
|
|
25
|
|
- },
|
|
26
|
|
- layerid: {
|
|
27
|
|
- type: String,
|
|
28
|
|
- default: ""
|
|
29
|
|
- }
|
|
30
|
|
- },
|
|
31
|
|
- data(){
|
|
32
|
|
- return{
|
|
33
|
|
- ruleForm: {
|
|
34
|
|
- F_Id: '', //订单编号
|
|
35
|
|
- F_CheckStateKG: '', //订单状态 —— 3 通过
|
|
36
|
|
- },
|
|
37
|
|
- }
|
|
|
26
|
+ props: {
|
|
|
27
|
+ rowid: {
|
|
|
28
|
+ type: String,
|
|
|
29
|
+ default: "",
|
|
38
|
30
|
},
|
|
39
|
|
- created() {
|
|
40
|
|
- if (this.rowid) {
|
|
41
|
|
- this.ruleForm.F_Id = this.rowid
|
|
42
|
|
- }
|
|
|
31
|
+ layerid: {
|
|
|
32
|
+ type: String,
|
|
|
33
|
+ default: "",
|
|
43
|
34
|
},
|
|
44
|
|
- methods: {
|
|
45
|
|
- submitForm(){
|
|
46
|
|
- getAfterSaleListCustodianReview(this.ruleForm).then(response => {
|
|
47
|
|
- if (response.state.toLowerCase() === 'success') {
|
|
48
|
|
- this.$parent.$layer.close(this.layerid);
|
|
49
|
|
- this.$parent.getList(); // 重新加载父级数据
|
|
50
|
|
- this.$message.success('恭喜你,售后审核成功!')
|
|
51
|
|
- }
|
|
52
|
|
- }).catch(() => {
|
|
53
|
|
- this.loading = false
|
|
|
35
|
+ },
|
|
|
36
|
+ data() {
|
|
|
37
|
+ return {
|
|
|
38
|
+ ruleForm: {
|
|
|
39
|
+ F_Id: "", //订单编号
|
|
|
40
|
+ F_CheckStateKG: "", //订单状态 —— 3 通过
|
|
|
41
|
+ },
|
|
|
42
|
+ rules: {
|
|
|
43
|
+ F_CheckStateKG: [
|
|
|
44
|
+ { required: true, message: "请选择售后审核类型", trigger: "change" },
|
|
|
45
|
+ ],
|
|
|
46
|
+ },
|
|
|
47
|
+ };
|
|
|
48
|
+ },
|
|
|
49
|
+ created() {
|
|
|
50
|
+ if (this.rowid) {
|
|
|
51
|
+ this.ruleForm.F_Id = this.rowid;
|
|
|
52
|
+ }
|
|
|
53
|
+ },
|
|
|
54
|
+ methods: {
|
|
|
55
|
+ submitForm() {
|
|
|
56
|
+ this.$refs.ruleForm.validate((validate) => {
|
|
|
57
|
+ if (validate) {
|
|
|
58
|
+ getAfterSaleListCustodianReview(this.ruleForm)
|
|
|
59
|
+ .then((response) => {
|
|
|
60
|
+ if (response.state.toLowerCase() === "success") {
|
|
|
61
|
+ this.$parent.$layer.close(this.layerid);
|
|
|
62
|
+ this.$parent.getList(); // 重新加载父级数据
|
|
|
63
|
+ this.$message.success("恭喜你,售后审核成功!");
|
|
|
64
|
+ }
|
|
54
|
65
|
})
|
|
55
|
|
- },
|
|
|
66
|
+ .catch(() => {
|
|
|
67
|
+ this.loading = false;
|
|
|
68
|
+ });
|
|
|
69
|
+ }else{
|
|
|
70
|
+ this.$message.error("请输入有效的必填项信息!");
|
|
|
71
|
+ return false;
|
|
|
72
|
+ }
|
|
|
73
|
+ });
|
|
56
|
74
|
},
|
|
57
|
|
-}
|
|
|
75
|
+ },
|
|
|
76
|
+};
|
|
58
|
77
|
</script>
|
|
59
|
78
|
<style lang="scss" scoped>
|
|
60
|
79
|
.form_select {
|
|
61
|
80
|
width: 100%;
|
|
62
|
81
|
}
|
|
63
|
|
-
|
|
64
|
82
|
</style>
|