From eb6b6dbb35a9f029e0b7d269773685c19fd40976 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 11 七月 2024 10:47:51 +0800 Subject: [PATCH] 玩湃微信商户认证代码 --- cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js index 0795f36..05e9891 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js @@ -37,18 +37,16 @@ {title: '发放数量', field: 'quantityIssued', visible: true, align: 'center', valign: 'middle'}, {title: '限领数量', field: 'pickUpQuantity', visible: true, align: 'center', valign: 'middle'}, {title: '已领数量', field: 'hasPickQty', visible: true, align: 'center', valign: 'middle'}, - {title: '活动状态', field: 'status', visible: true, align: 'center', valign: 'middle', - formatter: function (value, row, index) { - return {1: "未开始", 2: "已开始", 3: "已结束"}[value] - }}, {title: '可售状态', field: 'state', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { return {1: "上架", 2: "下架"}[value] }}, - {title: '审核状态', field: 'auditStatus', visible: true, align: 'center', valign: 'middle', + + {title: '发布类型', field: 'publisherType', visible: true, align: 'center', valign: 'middle', formatter: function (value, row, index) { - return {1: "待审核", 2: "已通过",3: "已拒绝"}[value] - }}, + return {1: "运营商", 2: "平台",3: "门店"}[value] + } + }, ]; }; @@ -88,10 +86,18 @@ TCoupon.openChange = function () { if (this.check()){ let size = TCoupon.seItem.size + if(size>0){ Feng.info("没有该权限"); return; } + let publisherType = TCoupon.seItem.publisherType; + if ($("#objectType").val()==2){ + if(publisherType != 1){ + Feng.info("不能操作平台添加的优惠券"); + return; + } + } let id = TCoupon.seItem.id let name = TCoupon.seItem.name let quantityIssued = TCoupon.seItem.quantityIssued -- Gitblit v1.7.1