From d6f0958babd71a1dc9d24496076f763f86d76ac7 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期五, 27 十月 2023 13:08:53 +0800
Subject: [PATCH] 商户认证

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 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 cd4fe8c..0795f36 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
@@ -14,7 +14,7 @@
 TCoupon.initColumn = function () {
     return [
         {field: 'selectItem', radio: true},
-        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
+        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
         {title: '优惠券名称', field: 'name', visible: true, align: 'center', valign: 'middle'},
         {title: '适用范围', field: 'useScope', visible: true, align: 'center', valign: 'middle',
             formatter: function (value, row, index) {
@@ -27,7 +27,7 @@
             }},
         {title: '发放方式', field: 'distributionMethod', visible: true, align: 'center', valign: 'middle',
             formatter: function (value, row, index) {
-                return {1: "积分购买", 2: "注册赠送", 3: "自动发券"}[value]
+                return {1: "积分购买", 2: "注册赠送", 3: "自动发券",4:"课包赠送"}[value]
             }},
         {title: '有效期', field: 'timeValue', visible: true, align: 'center', valign: 'middle'},
         {title: '用户人群', field: 'userPopulation', visible: true, align: 'center', valign: 'middle',
@@ -44,6 +44,10 @@
         {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',
+            formatter: function (value, row, index) {
+                return {1: "待审核", 2: "已通过",3: "已拒绝"}[value]
             }},
     ];
 };
@@ -83,6 +87,11 @@
  */
 TCoupon.openChange = function () {
     if (this.check()){
+        let size = TCoupon.seItem.size
+        if(size>0){
+            Feng.info("没有该权限");
+            return;
+        }
         let id = TCoupon.seItem.id
         let name = TCoupon.seItem.name
         let quantityIssued = TCoupon.seItem.quantityIssued
@@ -238,6 +247,11 @@
 };
 TCoupon.onShelf = function (e) {
     if (this.check()) {
+        let size = TCoupon.seItem.size
+        if(size>0){
+            Feng.info("没有该权限");
+            return;
+        }
         var ajax = new $ax(Feng.ctxPath + "/tCouponManage/onShelf", function(data){
             if(data.code==200){
                 Feng.success("操作成功!")

--
Gitblit v1.7.1