Kirin 3 年之前
父节点
当前提交
d4126bb4d7
共有 1 个文件被更改,包括 1 次插入63 次删除
  1. 1 63
      app/admin/view/system/system_store/apply.php

+ 1 - 63
app/admin/view/system/system_store/apply.php

@@ -94,76 +94,14 @@
     layList.search('search', function (where) {
         layList.reload(where);
     });
-    //excel下载
-    layList.search('export', function (where) {
-        where.excel = 1;
-        location.href = layList.U({c: 'system.system_store', a: 'list', q: where});
-    })
-    //门店是否显示
-    layList.switch('is_show', function (odj, value) {
-        if (odj.elem.checked == true) {
-            layList.baseGet(layList.Url({
-                c: 'system.system_store',
-                a: 'set_show',
-                p: {is_show: 1, id: value}
-            }), function (res) {
-                layList.msg(res.msg, function () {
-                    layList.reload();
-                });
-            });
-        } else {
-            layList.baseGet(layList.Url({
-                c: 'system.system_store',
-                a: 'set_show',
-                p: {is_show: 0, id: value}
-            }), function (res) {
-                layList.msg(res.msg, function () {
-                    layList.reload();
-                });
-            });
-        }
-    });
     //点击事件绑定
     layList.tool(function (event, data, obj) {
         switch (event) {
-            case 'del':
-                var url = layList.U({c: 'system.system_store', a: 'delete', q: {id: data.id}});
-                if (data.is_del) var code = {title: "操作提示", text: "确定恢复门店吗?", type: 'info', confirm: '是的,恢复该门店'};
-                else var code = {title: "操作提示", text: "确定将该门店删除吗?", type: 'info', confirm: '是的,删除该门店'};
-                $eb.$swal('delete', function () {
-                    $eb.axios.get(url).then(function (res) {
-                        if (res.status == 200 && res.data.code == 200) {
-                            $eb.$swal('success', res.data.msg);
-                            obj.del();
-                            location.reload();
-                        } else
-                            return Promise.reject(res.data.msg || '删除失败')
-                    }).catch(function (err) {
-                        $eb.$swal('error', err);
-                    });
-                }, code)
-                break;
             case 'open_image':
                 $eb.openImage(data.image);
                 break;
             case 'edit':
-                $eb.createModalFrame(data.name + '-编辑', layList.U({a: 'add', q: {id: data.id}}), {h: 700, w: 1100});
-                break;
-            case 'init':
-                var url = layList.U({c: 'system.system_store', a: 'init', q: {store_id: data.id}});
-                var code = {title: "操作提示", text: "确定初始化商品吗?", type: 'info', confirm: '是'};
-                $eb.$swal('delete', function () {
-                    $eb.axios.get(url).then(function (res) {
-                        if (res.status == 200 && res.data.code == 200) {
-                            $eb.$swal('success', res.data.msg);
-                            obj.del();
-                            location.reload();
-                        } else
-                            return Promise.reject(res.data.msg || '初始化失败')
-                    }).catch(function (err) {
-                        $eb.$swal('error', err);
-                    });
-                }, code)
+                $eb.createModalFrame(data.name + '-审核', layList.U({a: 'check_apply', q: {id: data.id}}), {h: 700, w: 1100});
                 break;
         }
     })