songxingwei 3 年之前
父節點
當前提交
7e9f6ed96f

+ 0 - 103
application/company/command/Subversion.php

@@ -1,103 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\company\command;
-
-use think\console\Command;
-use think\console\Input;
-use think\console\Output;
-use think\Db;
-
-/**
- * SVN 版本指令
- * Class Subversion
- * @package app\company\command
- */
-class Subversion extends Command
-{
-    /**
-     * 账号授权文件位置
-     * @var string
-     */
-    protected $authzFile = 'php://output';
-
-    /**
-     * 账号管理文件位置
-     * @var string
-     */
-    protected $passwdFile = 'php://output';
-
-    /**
-     * 配置指令配置
-     */
-    protected function configure()
-    {
-        $this->setName('xsubversion:config')->setDescription('从数据库的配置同步到SVN配置文件');
-    }
-
-    /**
-     * @param Input $input
-     * @param Output $output
-     * @return int|void|null
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     */
-    protected function execute(Input $input, Output $output)
-    {
-        $paths = ['/' => [0]];
-        $where = ['status' => '1', 'is_deleted' => '0'];
-        // 取得可用的用户账号
-        $users = Db::name('CompanyUser')->field('svn_username,svn_password,svn_authorize')->where($where)->select();
-        $authids = array_unique(explode(',', join(',', array_column($users, 'svn_authorize'))));
-        // 取得可用的权限配置
-        $userAuths = Db::name('CompanyUserAuth')->field('id,path')->where($where)->whereIn('id', $authids)->order('sort desc,id desc')->select();
-        foreach ($userAuths as $item) foreach (explode("\n", preg_replace('/\s+/i', "\n", trim($item['path']))) as $path) {
-            $paths[$path][] = $item['id'];
-        }
-        $this->writeAuth($users, $paths);
-    }
-
-    /**
-     * 写入 SVN 配置文件
-     * @param array $users
-     * @param array $paths
-     */
-    protected function writeAuth($users, $paths)
-    {
-        $output = [];
-        // Passwd 用户账号处理
-        foreach ($users as $user) $output[] = "{$user['svn_username']}={$user['svn_password']}";
-        file_put_contents($this->passwdFile, join(PHP_EOL, $output));
-        // Authz 授权配置处理
-        $groups = ['_0' => []];
-        foreach ($users as $user) {
-            $ids = array_unique(explode(',', $user['svn_authorize']));
-            foreach ($ids as $id) $groups["_{$id}"][] = $user['svn_username'];
-        }
-        $output = [];
-        $output[] = '[groups]';
-        foreach ($groups as $key => $group) $output[] = "group{$key}=" . join(',', $group);
-        $output[] = '';
-        foreach ($paths as $path => $ids) {
-            $output[] = "[{$path}]";
-            $output[] = "* =";
-            $output[] = '@group_0 = rw';
-            foreach ($ids as $id) if ($id > 0) $output[] = "@group_{$id} = rw";
-            $output[] = '';
-        }
-        file_put_contents($this->authzFile, join(PHP_EOL, $output));
-    }
-}

+ 0 - 101
application/company/controller/Auth.php

@@ -1,101 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\company\controller;
-
-use library\Controller;
-
-/**
- * 仓库权限管理
- * Class Auth
- * @package app\company\controller
- */
-class Auth extends Controller
-{
-    /**
-     * 绑定数据表
-     * @var string
-     */
-    protected $table = 'CompanyUserAuth';
-
-    /**
-     * 仓库权限管理
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        $this->title = '仓库权限管理';
-        $query = $this->_query($this->table)->like('title,path')->equal('status');
-        $query->dateBetween('create_at')->where(['is_deleted' => '0'])->page();
-    }
-
-    /**
-     * 添加SVN权限
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function add()
-    {
-        $this->title = '添加SVN权限';
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 编辑SVN权限
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function edit()
-    {
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 修改SVN权限状态
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function state()
-    {
-        $this->_save($this->table, ['status' => input('status')]);
-    }
-
-    /**
-     * 删除SVN权限
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function remove()
-    {
-        $this->_delete($this->table);
-    }
-
-}

+ 0 - 49
application/company/controller/Clock.php

@@ -1,49 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\company\controller;
-
-use library\Controller;
-
-/**
- * 网络打卡管理
- * Class Clock
- * @package app\company\controller
- */
-class Clock extends Controller
-{
-    /**
-     * 绑定数据表
-     * @var string
-     */
-    protected $table = 'CompanyUserClock';
-
-    /**
-     * 网络打卡管理
-     * @auth true
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        $this->title = '网络打卡管理';
-        $this->_query($this->table)->like('name')->equal('date')->order('id asc')->page();
-    }
-
-}

+ 0 - 131
application/company/controller/User.php

@@ -1,131 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\company\controller;
-
-use app\company\service\DataService;
-use library\Controller;
-use think\Db;
-
-/**
- * 企业员工管理
- * Class User
- * @package app\worker\controller
- */
-class User extends Controller
-{
-
-    /**
-     * 绑定当前数据表
-     * @var string
-     */
-    protected $table = 'CompanyUser';
-
-    /**
-     * 企业员工管理
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        $this->title = '仓库权限管理';
-        $this->_query($this->table)->like('nickname,svn_username')->equal('status')->page();
-    }
-
-    /**
-     * 添加企业员工
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function add()
-    {
-        $this->_form($this->table, 'form');
-    }
-
-
-    /**
-     * 修改企业员工
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function edit()
-    {
-        $this->_form($this->table, 'form');
-    }
-
-    /**
-     * 权限表单数据处理
-     * @param array $data 表单数据
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     */
-    protected function _form_filter(&$data)
-    {
-        if ($this->request->isGet()) {
-            $where = ['status' => '1', 'is_deleted' => '0'];
-            $this->auths = Db::name('company_user_auth')->where($where)->order('sort desc,id desc')->select();
-            array_unshift($this->auths, ['id' => '0', 'title' => '所有权限', 'path' => '/']);
-            $data['svn_authorize'] = isset($data['svn_authorize']) ? explode(',', $data['svn_authorize']) : [];
-        } else {
-            if (isset($data['svn_authorize']) && is_array($data['svn_authorize'])) {
-                $data['svn_authorize'] = join(',', $data['svn_authorize']);
-            } else {
-                $data['svn_authorize'] = '';
-            }
-            $macs = [];
-            foreach (explode(PHP_EOL, preg_replace("/\s+/", PHP_EOL, trim($data['mobile_macs']))) as $mac) {
-                if (DataService::applyMacValue($mac)) $macs[] = $mac;
-            }
-            $data['mobile_macs'] = join(PHP_EOL, array_unique($macs));
-        }
-    }
-
-    /**
-     * 更改企业员工状态
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function state()
-    {
-        $this->_save($this->table, ['status' => input('status', '0')]);
-    }
-
-    /**
-     * 删除企业员工
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function remove()
-    {
-        $this->_delete($this->table);
-    }
-
-}

+ 0 - 97
application/company/controller/api/Push.php

@@ -1,97 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\company\controller\api;
-
-use app\company\service\DataService;
-use library\Controller;
-use think\Db;
-
-/**
- * ARP-SAN 推送内容接收
- * Class Push
- * @package app\company\controller\api
- */
-class Push extends Controller
-{
-    /**
-     * ARP-SAN 推送内容接收
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        // 数据输入检查
-        $content = file_get_contents('php://input');
-        if (empty($content)) $this->error('没有接收到数据');
-        // 企业员工检查
-        $where = ['is_deleted' => '0', 'status' => '1'];
-        $users = Db::name('CompanyUser')->cache(10)->where($where)->column('id uid,nickname name,mobile_macs mac');
-        if (empty($users)) $this->error('没有需要打卡的用户');
-        // 企业员工检查
-        $macs = [];
-        foreach ($users as $user) foreach (explode("\n", preg_replace('/\s+/', "\n", $user['mac'])) as $mac) {
-            if (DataService::applyMacValue($mac)) $macs[$mac] = ['uid' => $user['uid'], 'name' => $user['name']];
-        }
-        // 数据内容解析
-        list($s, $e) = [0, 0];
-        foreach (explode("\n", $content) as $line) {
-            list($ip, $mac, $dsc) = explode(' ', preg_replace('/\s+/', ' ', trim($line)) . '  ');
-            if (preg_match('/^(\d+\.?){4}$/', $ip) && DataService::applyMacValue($mac)) {
-                if (isset($macs[$mac])) {
-                    $s++;
-                    $this->writeUser($ip, $mac, strtoupper($dsc), $macs);
-                } else {
-                    $e++;
-                    $this->writeNone($ip, $mac, strtoupper($dsc));
-                }
-            }
-        }
-        return "接收到{$s}个已知设备推送,{$e}个未知设备推送。" . PHP_EOL . PHP_EOL;
-    }
-
-    /**
-     * 已知设备打卡记录
-     * @param string $ip 内网地址
-     * @param string $mac 设备地址
-     * @param string $desc 设备描述
-     * @param array $macs 用户MAC列表
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    private function writeUser($ip, $mac, $desc, $macs)
-    {
-        if (isset($macs[$mac])) {
-            $data = $macs[$mac];
-            $data['ip'] = $ip;
-            $data['mac'] = $mac;
-            $data['desc'] = $desc;
-            $data['date'] = date('Y-m-d');
-            $data['end_at'] = date('Y-m-d H:i:s');
-            data_save('CompanyUserClock', $data, 'uid', ['date' => $data['date']]);
-        }
-    }
-
-    /**
-     * 未知设备额外标识
-     * @param string $ip 内网地址
-     * @param string $mac 设备地址
-     * @param string $desc 设备描述
-     */
-    private function writeNone($ip, $mac, $desc)
-    {
-        // @todo 记录未匹配成功的设备标识
-    }
-}

+ 0 - 40
application/company/service/DataService.php

@@ -1,40 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\company\service;
-
-/**
- * 企业数据处理服务
- * Class DataService
- * @package app\company\service
- */
-class DataService
-{
-    /**
-     * 格式化MAC地址信息
-     * @param string $mac
-     * @return string
-     */
-    public static function applyMacValue(&$mac)
-    {
-        $mac = strtoupper(str_replace('-', ':', $mac));
-        if (preg_match('/([A-F0-9]{2}:){5}[A-F0-9]{2}/', $mac)) {
-            return $mac;
-        } else {
-            return false;
-        }
-    }
-
-}

+ 0 - 21
application/company/sys.php

@@ -1,21 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-// 注册系统指令
-// use think\Console;
-
-// Console::addDefaultCommands([
-//    'app\company\command\Subversion',
-// ]);

+ 0 - 35
application/company/view/auth/form.html

@@ -1,35 +0,0 @@
-<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
-    <div class="layui-card-body">
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">权限名称</label>
-            <div class="layui-input-block">
-                <input name="title" value='{$vo.title|default=""}' required placeholder="请输入权限名称" class="layui-input">
-                <p class="help-block">权限名称将出现在员工SVN授权处,请根据需求准确填写权限名称。</p>
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">权限路径</label>
-            <div class="layui-input-block">
-                <textarea class="layui-textarea" name="path" placeholder="请输入权限路径">{$vo.path|default=''}</textarea>
-                <p class="help-block">权限路径将配置到SVN权限分组上,务必要保证路径与SVN文件路径一致。</p>
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label">权限描述</label>
-            <div class="layui-input-block">
-                <textarea class="layui-textarea" name="desc" placeholder="请输入权限描述">{$vo.desc|default=''}</textarea>
-            </div>
-        </div>
-    </div>
-
-    <div class="hr-line-dashed"></div>
-    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
-
-    <div class="layui-form-item text-center">
-        <button class="layui-btn" type='submit'>保存数据</button>
-        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
-    </div>
-
-    <script>window.form.render();</script>
-
-</form>

+ 0 - 78
application/company/view/auth/index.html

@@ -1,78 +0,0 @@
-{extend name='admin@main'}
-
-{block name="button"}
-
-{if auth("add")}
-<button data-modal='{:url("add")}' data-title="添加仓库权限" class='layui-btn layui-btn-sm layui-btn-primary'>添加仓库权限</button>
-{/if}
-
-{if auth("remove")}
-<button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除这些权限吗?" class='layui-btn layui-btn-sm layui-btn-primary'>添加仓库权限</button>
-{/if}
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='auth/index_search'}
-    <table class="layui-table" lay-skin="line">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
-            </th>
-            <th class='list-table-sort-td'>
-                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
-            </th>
-            <th class='text-left nowrap'>权限名称</th>
-            <th class='text-left nowrap'>权限路径</th>
-            <th class='text-center nowrap'>使用状态</th>
-            <th class='text-left nowrap'>登录时间</th>
-            <th class='text-left nowrap'></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr data-dbclick>
-            <td class='list-table-check-td think-checkbox'>
-                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
-            </td>
-            <td class='list-table-sort-td'>
-                <label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
-            </td>
-            <td class='text-left nowrap'>{$vo.title|default=''}</td>
-            <td class='text-left nowrap'>{$vo.path|nl2br|raw}</td>
-            <td class='text-center nowrap'>
-                {eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{/eq}
-                {eq name='vo.status' value='1'}<span class="color-green">使用中</span>{/eq}
-            </td>
-            <td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
-            <td class='text-left nowrap'>
-
-                {if auth("edit")}
-                <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑仓库权限" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-
-                {if auth("state") and $vo.status neq 0}
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a>
-                {elseif auth("state") and $vo.status neq 1 }
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">启 用</a>
-                {/if}
-
-                {if auth("remove")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该权限吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
-                {/if}
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-
-{/block}

+ 0 - 50
application/company/view/auth/index_search.html

@@ -1,50 +0,0 @@
-<fieldset>
-
-    <legend>条件搜索</legend>
-
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">权限名称</label>
-            <div class="layui-input-inline">
-                <input name="title" value="{$Think.get.title|default=''}" placeholder="请输入权限名称" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">权限路径</label>
-            <div class="layui-input-inline">
-                <input name="path" value="{$Think.get.path|default=''}" placeholder="请输入权限路径" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">使用状态</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="status">
-                    {foreach [''=>'-- 全部状态 --','0'=>'已禁用的权限','1'=>'使用中的权限'] as $k=>$v}
-                    {eq name='Think.get.status' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">创建时间</label>
-            <div class="layui-input-inline">
-                <input data-date-range name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择创建时间" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
-        </div>
-    </form>
-
-</fieldset>
-
-<script>form.render()</script>

+ 0 - 41
application/company/view/clock/index.html

@@ -1,41 +0,0 @@
-{extend name='admin@main'}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='clock/index_search'}
-    <table class="layui-table" lay-skin="line">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
-            </th>
-            <th class='text-left nowrap'>员工姓名</th>
-            <th class='text-left nowrap'>打卡日期</th>
-            <th class='text-left nowrap'>内网地址</th>
-            <th class='text-left nowrap'>首次打卡</th>
-            <th class='text-left nowrap'>最后打卡</th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr data-dbclick>
-            <td class='list-table-check-td think-checkbox'>
-                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
-            </td>
-            <td class='text-left nowrap'>{$vo.name|default=''}</td>
-            <td class='text-left nowrap'>{$vo.date|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.ip|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.start_at|format_datetime}</td>
-            <td class='text-left nowrap'>{$vo.end_at|format_datetime}</td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-
-{/block}

+ 0 - 28
application/company/view/clock/index_search.html

@@ -1,28 +0,0 @@
-<fieldset>
-
-    <legend>条件搜索</legend>
-
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">员工姓名</label>
-            <div class="layui-input-inline">
-                <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入员工姓名" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">打卡日期</label>
-            <div class="layui-input-inline">
-                <input data-date-input="date" name="date" value="{$Think.get.date|default=''}" placeholder="请输入打卡日期" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
-        </div>
-    </form>
-
-</fieldset>
-
-<script>form.render()</script>

+ 0 - 89
application/company/view/user/form.html

@@ -1,89 +0,0 @@
-<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
-    <div class="layui-card-body">
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">员工姓名</label>
-            <div class="layui-input-block">
-                <input name="nickname" value='{$vo.nickname|default=""}' required placeholder="请输入公司员工姓名" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">员工身份</label>
-            <div class="layui-input-block">
-                <input name="user_type" value='{$vo.user_type|default=""}' required placeholder="请输入公司员工身份" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">仓库账号</label>
-            <div class="layui-input-block">
-                <input name="svn_username" value='{$vo.svn_username|default=""}' required placeholder="请输入SVN授权账号" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">仓库密码</label>
-            <div class="layui-input-block">
-                <input name="svn_password" value='{$vo.svn_password|default=""}' required placeholder="请输入SVN授权密码" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label label-required">仓库权限</label>
-            <div class="layui-input-block">
-                <div class="layui-textarea padding-bottom-10" style="min-height:auto">
-                    {foreach $auths as $auth}
-                    <label class="think-checkbox layui-unselect">
-                        {if isset($vo.svn_authorize) and in_array($auth.id, $vo.svn_authorize)}
-                        <input type="checkbox" name="svn_authorize[]" value="{$auth.id}" checked lay-ignore> {$auth.title}
-                        {else}
-                        <input type="checkbox" name="svn_authorize[]" value="{$auth.id}" lay-ignore> {$auth.title}
-                        {/if}
-                    </label>
-                    {/foreach}
-                </div>
-            </div>
-        </div>
-        <div class="layui-form-item nowrap">
-            <label class="layui-form-label">入职日期</label>
-            <div class="layui-input-inline margin-right-0" style="width:164px">
-                <input type="text" data-date-input="date" name="entry_date" value='{$vo.entry_date|default=""}' placeholder="请输入入职日期" class="layui-input">
-            </div>
-            <label class="layui-form-label" style="width:auto">转正日期</label>
-            <div class="layui-input-inline margin-right-0" style="width:164px">
-                <input type="text" data-date-input="date" name="become_date" value='{$vo.become_date|default=""}' placeholder="请输入转正日期" class="layui-input">
-            </div>
-            <label class="layui-form-label" style="width:auto">离职日期</label>
-            <div class="layui-input-inline margin-right-0" style="width:164px">
-                <input type="text" data-date-input="date" name="leave_date" value='{$vo.leave_date|default=""}' placeholder="请输入离职日期" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label">联系QQ</label>
-            <div class="layui-input-inline margin-right-0" style="width:164px">
-                <input type="tel" autocomplete="off" name="contact_qq" value='{$vo.contact_qq|default=""}' pattern="^\d{6,}$" placeholder="请输入联系QQ号码" class="layui-input">
-            </div>
-            <label class="layui-form-label" style="width:auto">联系手机</label>
-            <div class="layui-input-inline margin-right-0" style="width:164px">
-                <input type="tel" maxlength="11" autocomplete="off" name="contact_phone" value='{$vo.contact_phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入联系手机" class="layui-input">
-            </div>
-            <label class="layui-form-label" style="width:auto">联系邮箱</label>
-            <div class="layui-input-inline margin-right-0" style="width:164px">
-                <input name="contact_mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.contact_mail|default=""}' placeholder="请输入联系邮箱" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item">
-            <label class="layui-form-label">打卡绑定</label>
-            <div class="layui-input-block">
-                <textarea placeholder="请输入绑定手机" class="layui-textarea" name="mobile_macs">{$vo.mobile_macs|default=""}</textarea>
-            </div>
-        </div>
-    </div>
-
-    <div class="hr-line-dashed"></div>
-    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
-
-    <div class="layui-form-item text-center">
-        <button class="layui-btn" type='submit'>保存数据</button>
-        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
-    </div>
-
-    <script>window.form.render();</script>
-
-</form>

+ 0 - 83
application/company/view/user/index.html

@@ -1,83 +0,0 @@
-{extend name='admin@main'}
-
-{block name="button"}
-
-{if auth("add")}
-<button data-modal='{:url("add")}' data-title="添加企业员工" class='layui-btn layui-btn-sm layui-btn-primary'>添加企业员工</button>
-{/if}
-
-{if auth("remove")}
-<button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除这些员工吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除企业员工</button>
-{/if}
-
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='user/index_search'}
-    <table class="layui-table" lay-skin="line">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
-            </th>
-            <th class='list-table-sort-td'>
-                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
-            </th>
-            <th class='text-left nowrap'>员工姓名</th>
-            <th class='text-left nowrap'>员工身份</th>
-            <th class='text-left nowrap'>库存账号</th>
-            <th class='text-center nowrap'>使用状态</th>
-            <th class='text-left nowrap'>添加时间</th>
-            <th class='text-left nowrap'></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr data-dbclick>
-            <td class='list-table-check-td think-checkbox'>
-                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
-            </td>
-            <td class='list-table-sort-td'>
-                <label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
-            </td>
-            <td class='text-left nowrap'>{$vo.nickname|default=''}</td>
-            <td class='text-left nowrap'>{$vo.user_type|default='-'}</td>
-            <td class='text-left nowrap'>{$vo.svn_username|default='-'}</td>
-            <td class='text-center nowrap'>
-                {eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{/eq}
-                {eq name='vo.status' value='1'}<span class="color-green">在职中</span>{/eq}
-                {eq name='vo.status' value='2'}<span class="color-desc">已离职</span>{/eq}
-            </td>
-            <td class='text-left nowrap'>
-                {$vo.create_at|format_datetime}
-            </td>
-            <td class='text-left nowrap'>
-
-                {if auth("edit")}
-                <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑员工信息" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-
-                {if auth("state") and $vo.status neq 0}
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a>
-                {elseif auth("state") and $vo.status neq 1 }
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">启 用</a>
-                {/if}
-
-                {if auth("remove")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该员工吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
-                {/if}
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-
-{/block}

+ 0 - 50
application/company/view/user/index_search.html

@@ -1,50 +0,0 @@
-<fieldset>
-
-    <legend>条件搜索</legend>
-
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">员工姓名</label>
-            <div class="layui-input-inline">
-                <input name="nickname" value="{$Think.get.nickname|default=''}" placeholder="请输入员工姓名" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">仓库账号</label>
-            <div class="layui-input-inline">
-                <input name="svn_username" value="{$Think.get.svn_username|default=''}" placeholder="请输入仓库账号" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">员工状态</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="status">
-                    {foreach [''=>'-- 全部状态 --','0'=>'禁用的员工','1'=>'正常的员工','2'=>'离职的员工'] as $k=>$v}
-                    {eq name='Think.get.status' value='$k.""'}
-                    <option selected value="{$k}">{$v}</option>
-                    {else}
-                    <option value="{$k}">{$v}</option>
-                    {/eq}
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">添加时间</label>
-            <div class="layui-input-inline">
-                <input data-date-range name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择添加时间" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
-        </div>
-    </form>
-
-</fieldset>
-
-<script>form.render()</script>

+ 0 - 283
application/store/view/goods/form.html

@@ -1,283 +0,0 @@
-{extend name='admin@main'}
-
-{block name="content"}
-
-{include file='store@goods/form_style'}
-
-<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body think-box-shadow padding-left-40">
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">商品分类</span>
-                <select class="layui-select" required name="cate_id" lay-search>
-                    {foreach $cates as $cate}
-                    {if isset($vo.cate_id) and $vo.cate_id eq $cate.id}
-                    <option selected value="{$cate.id}">{$cate.id} - {$cate.title|default=''}</option>
-                    {else}
-                    <option value="{$cate.id}">{$cate.id} - {$cate.title|default=''}</option>
-                    {/if}
-                    {/foreach}
-                </select>
-            </label>
-            <label class="layui-col-xs9 relative">
-                <span class="color-green">商品名称</span>
-                <input name="title" required class="layui-input" placeholder="请输入商品名称" value="{$vo.title|default=''}">
-            </label>
-        </div>
-
-
-        <div class="layui-form-item">
-            <span class="color-green label-required-prev">商品LOGO及轮播展示图片</span>
-            <table class="layui-table">
-                <thead>
-                <tr>
-                    <th class="text-center">LOGO</th>
-                    <th class="text-left">展示图片</th>
-                </tr>
-                <tr>
-                    <td width="90px" class="text-center"><input name="logo" type="hidden" value="{$vo.logo|default=''}"></td>
-                    <td width="auto" class="text-left"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>
-                </tr>
-                </thead>
-            </table>
-            <script>$('[name="logo"]').uploadOneImage(), $('[name="image"]').uploadMultipleImage()</script>
-        </div>
-
-        <div class="layui-form-item">
-            <span class="color-green label-required-prev">商品规格及商品SKU绑定<span class="color-red font-s12">(规格填写后不允许再次修改)</span></span>
-            <div ng-repeat="x in specs track by $index" style="display:none" class="margin-bottom-10" ng-class="{true:'layui-show'}[isAddMode&&specs.length>0]">
-                <div class="goods-spec-box padding-10 margin-0 relative" style="background:#ddd">
-                    <span class="text-center goods-spec-title">分组</span>
-                    <label class="label-required-null inline-block"><input ng-blur="x.name=trimSpace(x.name)" ng-model="x.name" required placeholder="请输入分组名称"></label>
-                    <div class="pull-right">
-                        <a class="layui-btn layui-btn-sm layui-btn-primary goods-spec-btn" ng-click="addSpecVal(x.list)">增加</a>
-                        <a class="layui-btn layui-btn-sm layui-btn-primary goods-spec-btn" ng-class="{false:'layui-bg-gray'}[$index>0]" ng-click="upSpecRow(specs,$index)">上移</a>
-                        <a class="layui-btn layui-btn-sm layui-btn-primary goods-spec-btn" ng-class="{false:'layui-bg-gray'}[$index<specs.length-1]" ng-click="dnSpecRow(specs,$index)">下移</a>
-                        <a class="layui-btn layui-btn-sm layui-btn-primary goods-spec-btn" ng-click="delSpecRow(specs,$index)" ng-if="specs.length>1">删除</a>
-                    </div>
-                </div>
-                <div class="goods-spec-box padding-10 margin-0 layui-bg-gray block relative" ng-if="x.list && x.list.length > 0">
-                    <label class="label-required-null inline-block margin-right-10 margin-bottom-5 relative nowrap" ng-repeat="xx in x.list">
-                        <input type="checkbox" lay-ignore ng-model="xx.check" ng-click="xx.check=checkListChecked(x.list,$event.target.checked)">
-                        <input type="text" ng-blur="xx.name=trimSpace(xx.name)" ng-model="xx.name" ng-keyup="xx.name=$event.target.value" required placeholder="请输入规格">
-                        <a ng-if="x.list.length>1" ng-click="x.list=delSpecVal(x.list,$index)" class="layui-icon layui-icon-close font-s12 goods-spec-close"></a>
-                    </label>
-                </div>
-            </div>
-            <a ng-if="isAddMode&&specs.length<3" class="layui-btn layui-btn-sm layui-btn-primary" ng-click="addSpecRow(specs)">增加分组</a>
-            <table class="layui-table margin-top-10">
-                <thead>
-                <tr>
-                    <th ng-repeat="x in specsTreeNava track by $index" class="nowrap" ng-bind="x"></th>
-                    <th width="10%" class="text-center nowrap">商品SKU <a ng-click="batchSet('sku',0)" data-tips-text="批量设置" class="layui-icon">&#xe63c;</a></th>
-                    <th width="10%" class="text-center nowrap">市场价格 <a ng-click="batchSet('market',2)" data-tips-text="批量设置" class="layui-icon">&#xe63c;</a></th>
-                    <th width="10%" class="text-center nowrap">销售价格 <a ng-click="batchSet('selling',2)" data-tips-text="批量设置" class="layui-icon">&#xe63c;</a></th>
-                    <th width="10%" class="text-center nowrap">虚拟销量 <a ng-click="batchSet('virtual',0)" data-tips-text="批量设置" class="layui-icon">&#xe63c;</a></th>
-                    <th width="10%" class="text-center nowrap">快递计件 <a ng-click="batchSet('express',0)" data-tips-text="批量设置" class="layui-icon">&#xe63c;</a></th>
-                    <th width="10%" class="text-center nowrap">销售状态</th>
-                </tr>
-                </thead>
-                <tbody>
-                <tr ng-repeat="rows in specsTreeData track by $index">
-                    <td class="layui-bg-gray" ng-if="td.show" rowspan="{{td.span}}" ng-repeat="td in rows" ng-bind="td.name"></td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input ng-blur="rows[0].sku=setValue(rows[0].key,'sku',$event.target.value,'(parseFloat(_)||0).toFixed(0)')" class="layui-input border-0 padding-left-0 text-center" ng-model="rows[0].sku">
-                        </label>
-                    </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input ng-blur="rows[0].market=setValue(rows[0].key,'market',$event.target.value,'(parseFloat(_)||0).toFixed(2)')" class="layui-input border-0 padding-left-0 text-center" ng-model="rows[0].market">
-                        </label>
-                    </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input ng-blur="rows[0].selling=setValue(rows[0].key,'selling',$event.target.value,'(parseFloat(_)||0).toFixed(2)')" class="layui-input border-0 padding-left-0 text-center" ng-model="rows[0].selling">
-                        </label>
-                    </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input ng-blur="rows[0].virtual=setValue(rows[0].key,'virtual',$event.target.value,'(parseInt(_)||0)')" class="layui-input border-0 padding-left-0 text-center" ng-model="rows[0].virtual">
-                        </label>
-                    </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input ng-blur="rows[0].express=setValue(rows[0].key,'express',$event.target.value,'(parseInt(_)||0)')" class="layui-input border-0 padding-left-0 text-center" ng-model="rows[0].express">
-                        </label>
-                    </td>
-                    <td class="text-center layui-bg-gray">
-                        <label class="think-checkbox margin-0 full-width full-height block"><input lay-ignore type="checkbox" ng-model="rows[0].status"></label>
-                    </td>
-                </tr>
-                </tbody>
-            </table>
-            <p class="color-desc">请从仓储平台获取商品SKU与商品条码,请注意尽量不要重复,也不能产生订单后再修改!</p>
-            <textarea class="layui-textarea layui-hide" name="specs">{{specs}}</textarea>
-            <textarea class="layui-textarea layui-hide" name="lists">{{specsTreeData}}</textarea>
-        </div>
-
-        <div class="layui-form-item block">
-            <span class="label-required-prev color-green">商品详细内容</span>
-            <textarea name="content">{$vo.content|default=''|raw}</textarea>
-        </div>
-
-        <div class="layui-form-item text-center">
-            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
-            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消编辑</button>
-            <button class="layui-btn" type="submit">保存商品</button>
-        </div>
-
-    </div>
-</form>
-{/block}
-
-{block name='script'}
-<textarea class="layui-hide" id="goods-specs">{$vo.specs|raw|default=''}</textarea>
-<textarea class="layui-hide" id="goods-value">{$defaultValues|raw|default=''}</textarea>
-<script>
-    window.form.render();
-    require(['ckeditor', 'angular'], function () {
-        window.createEditor('[name="content"]', {height: 500});
-        var app = angular.module("GoodsForm", []).run(callback);
-        angular.bootstrap(document.getElementById(app.name), [app.name]);
-
-        function callback($rootScope) {
-            $rootScope.isAddMode = parseInt('{$isAddMode|default=0}');
-            $rootScope.maps = JSON.parse(angular.element('#goods-value').val() || '[]') || {};
-            $rootScope.specs = JSON.parse(angular.element('#goods-specs').val() || '[{"name":"默认分组","list":[{"name":"默认规格","check":true}]}]');
-            // 批量设置数值
-            $rootScope.batchSet = function (type, fixed) {
-                layer.prompt({title: '请输入数值', formType: 0}, function (value, index) {
-                    $rootScope.$apply(function () {
-                        var val = (parseFloat(value) || 0).toFixed(fixed);
-                        for (var i in $rootScope.specsTreeData) for (var j in $rootScope.specsTreeData[i]) {
-                            $rootScope.specsTreeData[i][j][type] = val;
-                        }
-                    });
-                    layer.close(index);
-                });
-            };
-            // 返回商品列表
-            $rootScope.hsitoryBack = function () {
-                $.msg.confirm('确定要取消编辑吗?', function (index) {
-                    history.back(), $.msg.close(index);
-                });
-            };
-            // 设置默认值
-            $rootScope.setValue = function (key, type, value, call) {
-                $rootScope.maps[key] || ($rootScope.maps[key] = {});
-                return $rootScope.maps[key][type] = eval(call.replace('_', "'" + value + "'"));
-            };
-            // 读取默认值
-            $rootScope.getValue = function (key, callback) {
-                if (typeof callback === 'function') {
-                    return callback($rootScope.maps[key] || {});
-                }
-                return {};
-            };
-            // 去除空白字符
-            $rootScope.trimSpace = function (value) {
-                return (value + '').replace(/\s*/ig, '');
-            };
-            // 生成交叉表格数据
-            $rootScope.specsTreeData = [];
-            $rootScope.specsTreeNava = [];
-            // 当前商品规格发生变化时重新计算规格列表
-            $rootScope.$watch('specs', function () {
-                var data = $rootScope.specs, list = [], navs = [], table = [[]];
-                // 过滤无效记录
-                for (var i in data) {
-                    var tmp = [];
-                    for (var j in data[i].list) if (data[i].list[j].check && data[i].list[j].name.length > 0) {
-                        data[i].list[j].span = 1, data[i].list[j].show = true, data[i].list[j].group = data[i].name;
-                        tmp.push(data[i].list[j]);
-                    }
-                    list.push(tmp), navs.push(data[i].name);
-                }
-                $rootScope.specsTreeNava = navs;
-                // 表格交叉
-                for (var i in list) {
-                    var tmp = [];
-                    for (var j in table) for (var k in list[i]) tmp.push(table[j].concat(list[i][k]));
-                    table = tmp;
-                }
-                // 表格合并
-                list = angular.fromJson(angular.toJson(table));
-                for (var i in list) {
-                    var key = [], _key = '';
-                    for (var td in list[i]) key.push(list[i][td].group + '::' + list[i][td].name);
-                    for (var td in list[i]) if (_key.length === 0) {
-                        list[i][0].key = _key = key.join(';;');
-                        list[i][0].sku = $rootScope.getValue(_key, function (data) {
-                            return data.sku || '0';
-                        });
-                        list[i][0].virtual = $rootScope.getValue(_key, function (data) {
-                            return data.virtual || '0';
-                        });
-                        list[i][0].express = $rootScope.getValue(_key, function (data) {
-                            return data.express || '1';
-                        });
-                        list[i][0].market = $rootScope.getValue(_key, function (data) {
-                            return data.market || '0.00';
-                        });
-                        list[i][0].selling = $rootScope.getValue(_key, function (data) {
-                            return data.selling || '0.00';
-                        });
-                        list[i][0].status = $rootScope.getValue(_key, function (data) {
-                            return !!(typeof data.status !== 'undefined' ? data.status : true);
-                        });
-                    }
-                }
-                $rootScope.specsTreeData = list;
-            }, true);
-            // 判断规则是否能取消选择
-            $rootScope.checkListChecked = function (list, check) {
-                for (var i in list) if (list[i].check) return check;
-                return true;
-            };
-            // 增加整行规格分组
-            $rootScope.addSpecRow = function (data) {
-                data.push({name: '规格分组', list: [{name: '规格属性', check: true}]})
-            };
-            // 下移整行规格分组
-            $rootScope.dnSpecRow = function (data, $index) {
-                var tmp = [], cur = data[$index];
-                if ($index > data.length - 2) return false;
-                for (var i in data) {
-                    (parseInt(i) !== parseInt($index)) && tmp.push(data[i]);
-                    (parseInt(i) === parseInt($index) + 1) && tmp.push(cur);
-                }
-                return $rootScope.specs = tmp;
-            };
-            // 上移整行规格分组
-            $rootScope.upSpecRow = function (data, $index) {
-                var tmp = [], cur = data[$index];
-                if ($index < 1) return false;
-                for (var i in data) {
-                    (parseInt(i) === parseInt($index) - 1) && tmp.push(cur);
-                    (parseInt(i) !== parseInt($index)) && tmp.push(data[i]);
-                }
-                return $rootScope.specs = tmp;
-            };
-            // 移除整行规格分组
-            $rootScope.delSpecRow = function (data, $index) {
-                var tmp = [];
-                for (var i in data) if (parseInt(i) !== parseInt($index)) tmp.push(data[i]);
-                return $rootScope.specs = tmp;
-            };
-            // 增加分组的属性
-            $rootScope.addSpecVal = function (list) {
-                list.push({name: '规格属性', check: true});
-            };
-            // 移除分组的属性
-            $rootScope.delSpecVal = function (data, $index) {
-                var temp = [];
-                for (var i in data) if (parseInt(i) !== parseInt($index)) temp.push(data[i]);
-                return temp;
-            };
-        }
-    })
-</script>
-{/block}

+ 0 - 87
application/store/view/goods/form_style.html

@@ -1,87 +0,0 @@
-<style>
-    .inner-input {
-        width: 80px;
-        height: 14px;
-        padding: 1px 5px;
-        line-height: 12px;
-    }
-
-    .goods-spec-box {
-        position: relative;
-        margin: 0 10px 10px 0;
-        vertical-align: middle;
-    }
-
-    .goods-spec-title {
-        z-index: 2;
-        width: 40px;
-        color: #fff;
-        height: 28px;
-        position: absolute;
-        background: #999;
-        line-height: 28px;
-    }
-
-    .goods-spec-close {
-        right: 8px;
-        z-index: 2;
-        line-height: 28px;
-        position: absolute;
-        display: inline-block
-    }
-
-    .goods-spec-btn {
-        height: 28px;
-        margin-left: 5px !important;
-        line-height: 26px !important;
-    }
-
-    .goods-spec-box input {
-        z-index: 1;
-        width: 120px;
-        position: relative;
-        border: 1px solid #999;
-        padding: 5px 0 5px 45px;
-        display: inline-block !important;
-    }
-
-    .goods-spec-box input[type=checkbox] {
-        z-index: 2;
-        width: 40px;
-        height: 28px;
-        border: none;
-        cursor: pointer;
-        appearance: none;
-        position: absolute;
-        -webkit-appearance: none;
-    }
-
-    .goods-spec-box input[type=checkbox]:before {
-        top: 1px;
-        left: 1px;
-        width: 40px;
-        height: 26px;
-        content: ' ';
-        position: absolute;
-        background: #c9c9c9;
-    }
-
-    .goods-spec-box input[type=checkbox]:after {
-        top: 1px;
-        left: 1px;
-        color: #999;
-        width: 40px;
-        height: 26px;
-        content: '\e63f';
-        font-size: 16px;
-        line-height: 26px;
-        position: absolute;
-        text-align: center;
-        font-family: 'layui-icon';
-    }
-
-    .goods-spec-box input[type=checkbox]:checked:after {
-        color: #333;
-        content: '\e605';
-    }
-</style>

+ 0 - 118
application/store/view/goods/index.html

@@ -1,118 +0,0 @@
-{extend name='admin@main'}
-
-{block name="button"}
-<!--{if auth("store/goods/add")}-->
-<button data-open='{:url("add")}' data-title="添加商品" class='layui-btn layui-btn-sm layui-btn-primary'>添加商品</button>
-<!--{/if}-->
-<!--{if auth("store/goods/remove")}-->
-<button data-action='{:url("remove")}' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除商品</button>
-<!--{/if}-->
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='goods/index_search'}
-    <table class="layui-table margin-top-10" lay-skin="line">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
-            </th>
-            <th class='list-table-sort-td'>
-                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
-            </th>
-            <th class='text-left nowrap' width="10%">商品信息</th>
-            <th class='text-left nowrap' width="10%">商品状态</th>
-            <th class='text-left nowrap padding-0 relative' style="min-width:400px">
-                <div class="layui-row" style="line-height:28px">
-                    <div class="layui-col-xs6 text-center layui-elip">商品规格</div>
-                    <div class="layui-col-xs3 text-center layui-elip">市价 / 售价</div>
-                    <div class="layui-col-xs3 text-center layui-elip">库存 / 销量</div>
-                </div>
-            </th>
-            <th></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr data-dbclick>
-            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
-            <td class='list-table-sort-td'><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></td>
-            <td class='text-left nowrap'>
-                {notempty name='vo.logo'}
-                <img data-tips-image style="width:60px;height:60px" src="{$vo.logo|default=''}" class="margin-right-5 text-top">
-                {/notempty}
-                <div class="inline-block">
-                    商品编号:{$vo.id|default='--'}<br>
-                    所属分类:{$vo.cate.title|default='--'}<br>
-                    商品名称:{$vo.title|default='--'}<br>
-                </div>
-            </td>
-            <td class='text-left nowrap'>
-                快递费用:{$vo.price_express|default='0.00'} 元<br>
-                分成比例:{$vo.price_rate+0} %<br>
-                销售状态:{eq name='vo.status' value='0'}<span class="layui-badge">已下架</span>{else}<span class="layui-badge layui-bg-green">销售中</span>{/eq}<br>
-            </td>
-            <td class='text-left nowrap padding-0 relative'>
-                <div style="overflow:auto;max-height:68px;padding:5px 0">
-                    {foreach $vo.list as $goods}
-                    <div class="layui-row" style="line-height:23px">
-                        <div class="layui-col-xs6 text-center layui-elip font-s10">{:str_replace(['::',';;'],[':',';'],$goods.goods_spec)}</div>
-                        <div class="layui-col-xs3 text-center layui-elip color-blue font-s10">{$goods.price_market+0} / {$goods.price_selling+0}</div>
-                        <div class="layui-col-xs3 text-center layui-elip color-blue font-s10">{$goods.number_stock+0} / {$goods.number_sales+0}</div>
-                    </div>
-                    {/foreach}
-                </div>
-            </td>
-            <td class='text-left nowrap'>
-
-                <div class="nowrap margin-bottom-5">
-                    {if auth("store/goods/edit")}
-                    <a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                    {else}
-                    <a data-tips-text="您没有编辑商品的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">编 辑</a>
-                    {/if}
-
-                    {if isset($vo.status) and $vo.status eq 1}
-                    <!--{if auth("store/goods/forbid")}-->
-                    <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">下 架</a>
-                    <!--{else}-->
-                    <a data-tips-text="您没有下架商品的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">下 架</a>
-                    <!--{/if}-->
-                    {else}
-                    <!--{if auth("store/goods/resume")}-->
-                    <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1">上 架</a>
-                    <!--{else}-->
-                    <a data-tips-text="您没有上架商品的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">上 架</a>
-                    <!--{/if}-->
-                    {/if}
-                </div>
-
-                <div class="nowrap margin-bottom-5">
-
-                    {if auth("store/goods/stock")}
-                    <a class="layui-btn layui-btn-sm layui-btn-normal" data-title="商品入库" data-modal='{:url("stock")}?id={$vo.id}'>入 库</a>
-                    {else}
-                    <a data-tips-text="您没有商品入库的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">入 库</a>
-                    {/if}
-
-                    {if auth("store/goods/remove")}
-                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
-                    {else}
-                    <a data-tips-text="您没有删除商品的权限哦!" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">删 除</a>
-                    {/if}
-
-                </div>
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-{/block}

+ 0 - 44
application/store/view/goods/index_search.html

@@ -1,44 +0,0 @@
-<fieldset>
-    <legend>条件搜索</legend>
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">商品名称</label>
-            <div class="layui-input-inline">
-                <input name="title" value="{$Think.get.title|default=''}" placeholder="请输入商品名称" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">商品分类</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="cate_id" lay-search>
-                    <option value="">-- 全部商品 --</option>
-                    {foreach $clist as $v}
-                    <!--{eq name='Think.get.cate_id' value='$v.id.""'}-->
-                    <option selected value="{$v.id}">{$v.title}</option>
-                    <!--{else}-->
-                    <option value="{$v.id}">{$v.title}</option>
-                    <!--{/eq}-->
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">销售状态</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="status">
-                    {foreach [''=>'- 全部状态 -','1'=>'销售中商品','0'=>'已下架商品'] as $k=>$v}
-                    <!--{eq name='Think.get.status' value='$k.""'}-->
-                    <option selected value="{$k}">{$v}</option>
-                    <!--{else}-->
-                    <option value="{$k}">{$v}</option>
-                    <!--{/eq}-->
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
-        </div>
-    </form>
-    <script>form.render()</script>
-</fieldset>

+ 0 - 64
application/store/view/goods/stock.html

@@ -1,64 +0,0 @@
-<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
-
-    <div class="layui-card-body">
-
-        <div class="layui-form-item">
-            <label class="layui-form-label">商品名称</label>
-            <div class="layui-input-block">
-                <div class="layui-input layui-bg-gray">{$vo.title}</div>
-            </div>
-        </div>
-
-        <div class="layui-form-item">
-            <label class="layui-form-label">规格详情</label>
-            <div class="layui-input-block">
-                <table class="layui-table">
-                    <thead>
-                    <tr>
-                        <th class="text-left">商品规格</th>
-                        <th class="text-center">销售价格</th>
-                        <th class="text-center">库存统计</th>
-                        <th class="text-center">总销统计</th>
-                        <th class="text-center">库存剩余</th>
-                        <th class="text-center">入库数量</th>
-                    </tr>
-                    </thead>
-                    <!--{foreach $vo.list as $goods}-->
-                    <tr>
-                        <td class="padding-0" width="50%">
-                            <input class="layui-input layui-bg-gray border-0" disabled value="{$goods.goods_spec}">
-                        </td>
-                        <td class="padding-0" width="10%">
-                            <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="¥{$goods.price_selling}">
-                        </td>
-                        <td class="padding-0" width="10%">
-                            <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="{$goods.number_stock}">
-                        </td>
-                        <td class="padding-0" width="10%">
-                            <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="{$goods.number_sales} ">
-                        </td>
-                        <td class="padding-0" width="10%">
-                            <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="{$goods.number_stock-$goods.number_sales} ">
-                        </td>
-                        <td class="padding-0" width="10%">
-                            <input type="hidden" name="goods_id[]" value="{$goods.goods_id|default=''}">
-                            <input type="hidden" name="goods_spec[]" value="{$goods.goods_spec|default=''}">
-                            <input class="layui-input text-center border-0 padding-left-0" onblur="this.value=parseInt(this.value)||0" name="goods_number[]" value="0">
-                        </td>
-                    </tr>
-                    <!--{/foreach}-->
-                </table>
-            </div>
-        </div>
-
-    </div>
-
-    <div class="hr-line-dashed"></div>
-
-    <div class="layui-form-item text-center">
-        <button class="layui-btn" type='submit'>确定入库</button>
-        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消入库吗?" data-close>取消入库</button>
-        <!--{notempty name='vo.id'}--><input type='hidden' value='{$vo.id}' name='id'><!--{/notempty}-->
-    </div>
-
-</form>

+ 0 - 37
application/store/view/goods_cate/form.html

@@ -1,37 +0,0 @@
-<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body">
-
-        <div class="layui-row margin-bottom-15">
-            <label class="layui-col-xs2 think-form-label">商品分类图片</label>
-            <label class="layui-col-xs8 think-form-group-left">
-                <input name="logo" required value='{$vo.logo|default=""}' placeholder="请上传分类图片" class="layui-input">
-            </label>
-            <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="logo" data-type="png,jpg,gif">
-                <i class="layui-icon layui-icon-upload"></i> 上传图片
-            </a>
-        </div>
-
-        <div class="layui-row margin-bottom-15">
-            <label class="layui-col-xs2 think-form-label">商品分类名称</label>
-            <label class="layui-col-xs10">
-                <input name="title" required value='{$vo.title|default=""}' placeholder="请输入商品分类名称" class="layui-input">
-            </label>
-        </div>
-
-        <div class="layui-row margin-bottom-15">
-            <label class="layui-col-xs2 think-form-label">商品分类描述</label>
-            <label class="layui-col-xs10">
-                <textarea class="layui-textarea" name="desc">{$vo.desc|default=''}</textarea>
-            </label>
-        </div>
-
-    </div>
-
-    <div class="hr-line-dashed"></div>
-    <div class="layui-form-item text-center">
-        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
-        <button class="layui-btn" type='submit'>保存数据</button>
-        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
-    </div>
-</form>

+ 0 - 72
application/store/view/goods_cate/index.html

@@ -1,72 +0,0 @@
-{extend name='admin@main'}
-
-{block name="button"}
-{if auth("store/goods_cate/add")}
-<button data-modal='{:url("add")}' data-title="添加商品分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加商品分类</button>
-{/if}
-{if auth("store/goods_cate/remove")}
-<button data-action='{:url("remove")}' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除商品分类</button>
-{/if}
-{/block}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='goods_cate/index_search'}
-    <table class="layui-table margin-top-10" lay-skin="line">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <th class='list-table-check-td think-checkbox'>
-                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
-            </th>
-            <th class='list-table-sort-td'>
-                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
-            </th>
-            <th class='text-left nowrap'>分类名称</th>
-            <th class="text-center">状态</th>
-            <th class="text-center"></th>
-            <th></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr>
-            <td class='list-table-check-td think-checkbox'>
-                <input class="list-check-box" value='{$vo.id}' type='checkbox'>
-            </td>
-            <td class='list-table-sort-td'>
-                <input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input">
-            </td>
-            <td class='text-left nowrap'>
-                <a data-tips-image="{$vo.logo|default=''}" class="fa fa-image font-s14 margin-right-5"></a>
-                {$vo.title|default=''}
-            </td>
-            <td class='text-center nowrap'>
-                {eq name='vo.status' value='0'}<span class="layui-badge">已禁用</span>{else}<span class="layui-badge layui-bg-green">使用中</span>{/eq}<br>
-            </td>
-            <td class='text-center nowrap'>{$vo.create_at|format_datetime}</td>
-            <td class='text-left nowrap'>
-
-                {if auth("store/goods_cate/edit")}
-                <a data-title="编辑商品分类" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-
-                {if $vo.status eq 1 and auth("store/goods_cate/forbid")}
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>
-                {elseif auth("store/goods_cate/resume")}
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1">启 用</a>
-                {/if}
-
-                {if auth("store/goods_cate/remove")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
-                {/if}
-
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-</div>
-{/block}

+ 0 - 30
application/store/view/goods_cate/index_search.html

@@ -1,30 +0,0 @@
-<fieldset>
-    <legend>条件搜索</legend>
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">分类名称</label>
-            <div class="layui-input-inline">
-                <input name="title" value="{$Think.get.title|default=''}" placeholder="请输入分类名称" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">使用状态</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="status">
-                    {foreach [''=>'- 全部状态 -','1'=>'使用中的商品分类','0'=>'已禁用的商品分类'] as $k=>$v}
-                    <!--{eq name='Think.get.status' value='$k.""'}-->
-                    <option selected value="{$k}">{$v}</option>
-                    <!--{else}-->
-                    <option value="{$k}">{$v}</option>
-                    <!--{/eq}-->
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
-        </div>
-    </form>
-    <script>form.render()</script>
-</fieldset>