Explorar o código

32隐藏字段

Cherry %!s(int64=2) %!d(string=hai) anos
pai
achega
a66e24f323
Modificáronse 1 ficheiros con 14 adicións e 10 borrados
  1. 14 10
      public/assets/js/backend/mobile_order.js

+ 14 - 10
public/assets/js/backend/mobile_order.js

@@ -20,6 +20,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
             var table = $("#table");
 
             let is_proxy = Config.is_proxy;
+            let is_proxy_operate = false;
+            if(is_proxy==0){
+                is_proxy_operate = 'LIKE';
+            }
 
             let clip=new clipboard('.btn-pay_link',{
                 text(a){
@@ -71,15 +75,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
                         a.push(`<div>${order.s_name}</div>`);
                         return a.join('')
                     },searchList: subs,width: 100},
-                {field: 'pay_type', title: __('支付方式'),searchList: payType,visible: false},
+                {field: 'pay_type', title: __('支付方式'),searchList: payType,visible: false, operate: is_proxy_operate},
                 {field: 'no', title: __('手机号'),visible: false,operate: 'LIKE'},
                 {field: 'phone', title: __('收货人手机'),visible: false,operate: 'LIKE'},
                 {field: 'name', title: __('收货人'),visible: false,operate: 'LIKE'},
                 {field: 'id_no', title: __('收货人身份证'),visible: false,operate: "like"},
-                {field: 'pay_mid_wechat', title: __('微信商户号'),visible: false,operate: 'LIKE'},
-                {field: 'pay_mid_alipay', title: __('支付宝商户号'),visible: false,operate: 'LIKE'},
-                {field: 'pay_mid_dy', title: __('抖音商户号'),visible: false,operate: 'LIKE'},
-                {field: 'pay_mid_ks', title: __('快手商户号'),visible: false,operate: 'LIKE'},
+                {field: 'pay_mid_wechat', title: __('微信商户号'),visible: false, operate: is_proxy_operate},
+                {field: 'pay_mid_alipay', title: __('支付宝商户号'),visible: false,operate: is_proxy_operate},
+                {field: 'pay_mid_dy', title: __('抖音商户号'),visible: false,operate: is_proxy_operate},
+                {field: 'pay_mid_ks', title: __('快手商户号'),visible: false,operate: is_proxy_operate},
                 {field: 'order_no', title: __('订单信息'),operate: false,formatter(_,order){
                         let a=[]
                         a.push(`<div>订单号:<b>${order.order_no}</b></div>`)
@@ -128,9 +132,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
                         return `<span class="label label-primary">${status[order.status_bak]||''}-${status[a]}</span>`
                     }
                         return `<span class="label ${statusColor[a]}">${status[a]}</span>`
-                    },searchList:status},
+                    },searchList:status,operate: is_proxy_operate},
                 {field: 'anchor.name', title:__('主播名称') ,searchList(){return Template('anchor-search',{});},width: 100},
-                {field: 'sub_anchor.mobile_anchor.name', title: __(adminInfo.is_sub?'主播名称':'分站主播'),searchList(){return Template('anchor-sub-search',{});},width: 100},
+                {field: 'sub_anchor.mobile_anchor.name', title: __(adminInfo.is_sub?'主播名称':'分站主播'),searchList(){return Template('anchor-sub-search',{});},width: 100,operate: is_proxy_operate,visible:is_proxy_operate},
                 {field: 'rules.rule', title: __('规律'),visible: false,searchList:mobileRules},
                 {field: '', title: __('退款记录'),formatter(_,order){
                         let a=[]
@@ -138,7 +142,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
                             a.push(`<div>${item.create_time_format} ${item.pass?'同意':'驳回'} ${item.reason}</div>`)
                         })
                         return `<div style="text-align: left;font-size: 10px;" class="break-words">${a.join('')}</div>`
-                    },operate:false,valign:'top',align:'left',width: 200},
+                    },operate:false,valign:'top',align:'left',width: 200,visible:is_proxy_operate},
                 {field: 'sub_log', title: __(adminInfo.is_manager?'分站备注':'备注'),formatter(_,order){
                         let a=[]
                         order.sub_remark.forEach(item=>{
@@ -168,7 +172,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
                             return ''
                         }
                         return `<button class="btn btn-success btn-sm btn-pay_link" data-link="${order.pay_link}">点击复制</button>`
-                    },operate:false,width: 150},
+                    },operate:false,width: 150,visible:is_proxy_operate},
                 {field: 'create_time', title: __('Create_time'),formatter: Table.api.formatter.datetime,addClass:'datetimerange',operate: 'range'},
                 //{field: 'update_time', title: __('更新时间'),formatter: Table.api.formatter.datetime,addClass:'datetimerange',operate: 'range'},
                 /*                        {field: 'pay_time', title: __('Pay_time'),formatter: Table.api.formatter.datetime,addClass:'datetimerange',operate: 'range'},
@@ -335,7 +339,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','clipboard'],
                     diff.forEach(function (i,k){
                         $(".nav li .nav_id_"+i).text(0);
                     });
-                    
+
                     /*table.find('thead').css('position','fixed').css('background','white').css('top','370px')
                     table.css('margin-top',41)
                     table.find('tbody>tr:first-child>td').each((a,b)=>{