|
@@ -317,35 +317,42 @@ export default {
|
|
|
},
|
|
|
// 操作按钮
|
|
|
operation(h, { row, index, column }) {
|
|
|
+
|
|
|
return (
|
|
|
<div class='operation-btns'>
|
|
|
<el-button type="text" onClick={() => {
|
|
|
this.formType = 0
|
|
|
this.getDetail(row.id)
|
|
|
}}>查看</el-button>
|
|
|
- <el-button type="text" onClick={() => {
|
|
|
- this.$router.push({
|
|
|
- name: "workOrderPool",
|
|
|
- query: {
|
|
|
- pgIncreItemId: row.id,
|
|
|
- }
|
|
|
- })
|
|
|
- }}>服务单明细</el-button>
|
|
|
- <el-popconfirm
|
|
|
- title={`是否确定退款?`}
|
|
|
- onConfirm={() => {
|
|
|
- increOrderSettleRefund({ id: row.id }).then(res => {
|
|
|
- this.$message({ type: 'success', message: `退款成功!` })
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
+ {["REFUND", "EXPIRE", "CANCEL", "WAIT"].includes(row.payStatus) ? (
|
|
|
+ <el-button type="text" onClick={() => {
|
|
|
+ this.$router.push({
|
|
|
+ name: "workOrderPool",
|
|
|
+ query: {
|
|
|
+ pgIncreItemId: row.id,
|
|
|
+ }
|
|
|
})
|
|
|
- }}
|
|
|
- >
|
|
|
- <el-button type="text" slot="reference">退款</el-button>
|
|
|
- </el-popconfirm>
|
|
|
- <el-button type="text" onClick={() => {
|
|
|
- this.formType = 1
|
|
|
- this.getDetail(row.id)
|
|
|
- }}>结算</el-button>
|
|
|
+ }}>服务单明细</el-button>
|
|
|
+ ) : null}
|
|
|
+ {["REFUND", "EXPIRE", "CANCEL", "WAIT"].includes(row.payStatus) ? (
|
|
|
+ <el-popconfirm
|
|
|
+ title={`是否确定退款?`}
|
|
|
+ onConfirm={() => {
|
|
|
+ increOrderSettleRefund({ id: row.id }).then(res => {
|
|
|
+ this.$message({ type: 'success', message: `退款成功!` })
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <el-button type="text" slot="reference">退款</el-button>
|
|
|
+ </el-popconfirm>
|
|
|
+ ) : null}
|
|
|
+ {["REFUND", "EXPIRE", "CANCEL", "WAIT"].includes(row.payStatus) ? (
|
|
|
+ <el-button type="text" onClick={() => {
|
|
|
+ this.formType = 1
|
|
|
+ this.getDetail(row.id)
|
|
|
+ }}>结算</el-button>
|
|
|
+ ) : null}
|
|
|
</div>
|
|
|
)
|
|
|
},
|