From 75bac456c3d66f6b173b1213776158c3bc5f8b96 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期日, 05 十一月 2023 09:45:24 +0800
Subject: [PATCH] 后台bug修改

---
 cloud-server-management/src/main/webapp/static/modular/system/tCoupon/TCoupon.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 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..7429f89 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
@@ -49,6 +49,11 @@
             formatter: function (value, row, index) {
                 return {1: "待审核", 2: "已通过",3: "已拒绝"}[value]
             }},
+        {title: '发布类型', field: 'publisherType', visible: true, align: 'center', valign: 'middle',
+            formatter: function (value, row, index) {
+                return {1: "运营商", 2: "平台",3: "门店"}[value]
+            }
+        },
     ];
 };
 
@@ -88,10 +93,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