pay:前端收银台的信息接入

This commit is contained in:
YunaiV
2023-02-13 23:59:03 +08:00
parent ecbeba5da0
commit 84e9c0bba0
7 changed files with 72 additions and 35 deletions

View File

@ -47,7 +47,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handlePay(scope.row)"
v-if="!scope.row.payed">支付</el-button>
v-if="!scope.row.payed">前往支付</el-button>
</template>
</el-table-column>
</el-table>
@ -187,15 +187,14 @@ export default {
});
});
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
this.$modal.confirm('是否确认删除示例订单编号为"' + id + '"的数据项?').then(function() {
return deleteDemoOrder(id);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
/** 支付按钮操作 */
handlePay(row) {
this.$router.push({
name: 'PayOrderSubmit',
query:{
id: row.payOrderId
}
})
}
}
};