Commit e2fbabc6 by zhangmengjie

23.4.11

parent ea6214c4
...@@ -73,10 +73,10 @@ ...@@ -73,10 +73,10 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.status == 0 " @click="imageCaption(scope.row, '4')" <el-button v-if="scope.row.status == 0" @click="imageCaption(scope.row, '4')" type="text"
type="text" size="small">生成支付订单</el-button> size="small">生成支付订单</el-button>
<el-button v-if="scope.row.status == 5" @click="imageCaption(scope.row, '9')" <el-button v-if="scope.row.status == 5" @click="imageCaption(scope.row, '9')" type="text"
type="text" size="small">生成退款订单</el-button> size="small">生成退款订单</el-button>
<el-button v-if="scope.row.status == 0" type="text" size="small" <el-button v-if="scope.row.status == 0" type="text" size="small"
@click="imageCaption(scope.row, '5')">驳回</el-button> @click="imageCaption(scope.row, '5')">驳回</el-button>
<el-button v-if="scope.row.status == 0 || scope.row.status == 2" type="text" size="small" <el-button v-if="scope.row.status == 0 || scope.row.status == 2" type="text" size="small"
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<script> <script>
import comindex from './components/index' import comindex from './components/index'
import commodify from './components/modify' import commodify from './components/modify'
import { listGET, createPayPOST ,refundGET} from '@/api/orderform/index' import { listGET, createPayPOST, refundGET } from '@/api/orderform/index'
export default { export default {
name: "orderform", name: "orderform",
filters: { filters: {
...@@ -291,7 +291,7 @@ export default { ...@@ -291,7 +291,7 @@ export default {
this.control = val this.control = val
this.dialogVisible = true this.dialogVisible = true
break; break;
case '9': case '9':
this.id = sta.id this.id = sta.id
this.control = val this.control = val
this.dialogVisible = true this.dialogVisible = true
...@@ -318,7 +318,8 @@ export default { ...@@ -318,7 +318,8 @@ export default {
}, },
// 其他 弹窗关闭 // 其他 弹窗关闭
visivie() { visivie() {
this.$refs['refIndex'].form.money = ''
this.$refs['refIndex'].form.name = ''
this.dialogVisible = false this.dialogVisible = false
}, },
// 其他 确认 // 其他 确认
...@@ -337,30 +338,40 @@ export default { ...@@ -337,30 +338,40 @@ export default {
} }
}) })
} else if (this.control == '4') { } else if (this.control == '4') {
var params = { if (this.$refs['refIndex'].form.money) {
actualAmount: this.$refs['refIndex'].form.money, var params = {
status: 2, actualAmount: this.$refs['refIndex'].form.money,
id: this.id status: 2,
} id: this.id
createPayPOST(params).then((res) => {
if (res.code == 200) {
this.$refs['refIndex'].form.money = ''
this.dialogVisible = false
this.listth()
} }
}) createPayPOST(params).then((res) => {
}else if (this.control == '9') { if (res.code == 200) {
var params = { this.$refs['refIndex'].form.money = ''
refundeAmount: this.$refs['refIndex'].form.money, this.dialogVisible = false
orderId: this.id this.listth()
}
})
} else {
this.$message.error('请输入沟通后金额');
} }
refundGET(params).then((res) => {
if (res.code == 200) { } else if (this.control == '9') {
this.$refs['refIndex'].form.money = '' if (this.$refs['refIndex'].form.money) {
this.dialogVisible = false var params = {
this.listth() refundeAmount: this.$refs['refIndex'].form.money,
orderId: this.id
} }
}) refundGET(params).then((res) => {
if (res.code == 200) {
this.$refs['refIndex'].form.money = ''
this.dialogVisible = false
this.listth()
}
})
} else {
this.$message.error('请输入沟通后金额');
}
} }
}, },
// 详情 修改 弹窗关闭 // 详情 修改 弹窗关闭
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment