This commit is contained in:
xiaozhiyong
2023-05-29 17:38:25 +08:00
parent a68db2dae3
commit 4da9e42eba
2 changed files with 20 additions and 17 deletions

View File

@@ -116,9 +116,10 @@
<el-link slot="reference" type="primary" :underline="false">订单锁定</el-link>
</el-popconfirm>
<el-popconfirm v-if="row.orderStatus == 'ORDER_LOCKED'" title="是否确认下单?" icon-color="red" @confirm="confirmSubmit(row)">
<el-link slot="reference" type="primary" :underline="false">下单确认</el-link>
</el-popconfirm>
<!-- <el-popconfirm v-if="row.orderStatus == 'ORDER_LOCKED'" title="是否确认下单?" icon-color="red" @confirm="confirmSubmit(row)">
</el-popconfirm> -->
<el-link v-if="row.orderStatus == 'ORDER_LOCKED'" type="primary" :underline="false" @click="confirmSubmit(row)">下单确认</el-link>
<el-popconfirm
:title="row.orderStatus == 'SUBMITED' || row.orderStatus == 'ORDER_LOCKED' ? '是否确认取消订单?' : '是否确认退款?'"
@@ -395,16 +396,16 @@ export default {
},
// 下单确认
confirmSubmit(row) {
// this.controlWindows.addInfo = row
// this.controlWindows.confirmSubmit = true
this.controlWindows.addInfo = row
this.controlWindows.confirmSubmit = true
order.orderSuccess({ id: row.id }).then(res => {
if (res.code == 20000) {
this.$message.success(res.msg)
// this.closeWindow()
this.getByPage()
}
})
// order.orderSuccess({ id: row.id }).then(res => {
// if (res.code == 20000) {
// this.$message.success(res.msg)
// // this.closeWindow()
// this.getByPage()
// }
// })
},
//启用禁用
switchTrigger(val, row) {