From 78a4df6ad36a5cdf18d40ef539e0ce9609c71b4f Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期六, 07 十月 2023 15:33:28 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai --- cloud-server-management/src/main/webapp/static/modular/system/tGoods/tPay_info.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tPay_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tPay_info.js index 8045689..2c49494 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tPay_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tPay_info.js @@ -20,7 +20,7 @@ {title: '联系方式', field: 'phone', visible: true, align: 'center', valign: 'middle'}, {title: '使用状态', field: 'status', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { - return {1: "未使用", 2: "待核销"}[value] + return {1: "未使用", 2: "已核销"}[value] } }, ]; @@ -46,14 +46,17 @@ * @constructor */ TPayInfo.WriteOff = function (){ - if (this.check()) { + if (TPayInfo.check()) { + if (TPayInfo.seItem.status === 2){ + return Feng.error("重复核销!"); + } var ajax = new $ax(Feng.ctxPath + "/tGoods/write_off", function (data) { Feng.success("核销成功!"); TPayInfo.table.refresh(); }, function (data) { Feng.error("核销失败!" + data.responseJSON.message + "!"); }); - ajax.set("id",this.seItem.id); + ajax.set("id",TPayInfo.seItem.id); ajax.start(); } } -- Gitblit v1.7.1