hjg
2023-10-08 a966b5abe5fb804464fe1cd09053a03fe94877fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template/nit/tmp_brief.xhtml">
    <ui:define name="acss"> 
        <link rel="stylesheet" href="#{request.contextPath}/template/assets/css/jstree/themes/default/style.min.css"/>
        <style>
            input.error { 
                border: 1px solid #D9534F;
            }
            .text-error {
                line-height: 34px;
            padding-left: 10px;
            }
            .search {
            height: 30px;
            position: relative;
            top: 2px;
            }
            .jss{
                background-color: #E8E9EB;
                height: 30px;
                line-height: 30px; 
                padding-left: 10px;
            }
            #jstree_Enterprise{
                border:1px solid #E8E9EB;
                background-color: #fff;
                min-height: 400px;
            }
            .jstree-icon {
                color: #D15B47
            }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <div class="col-md-4" id="scrd">
            
            <div class="jss" style="font-size: 17px; margin-bottom: 10px; height: 30px;">到货字典</div>
            <div id="jstree_Enterprise"></div>
        </div>
        <div class="col-md-8" style="height: 100%;position: fixed;left: 35%;top: 10%;" >
            <div class="jss" style="font-size: 17px; height: 30px;" >编辑内容</div>
            <div  style="border:1px #ddd solid" >
                <div style="padding:10px;">
                    <input type="text" class="search" id="search" placeholder="搜索" style="width: 200px;height: 35px;" />
                    <button class="btn btn-xs btn-info" id="addSibling">
                        <i class="ace-icon fa fa-plus bigger-120"> 添加同级</i>
                    </button>
                    <button class="btn btn-xs btn-info" id="addChild" data-bind="enable: canAddChild">
                        <i class="ace-icon fa fa-plus bigger-120"> 添加下级</i>
                    </button>
                    <button class="btn btn-xs btn-danger" data-bind="enable: canDelete, click: del">
                        <i class="ace-icon fa fa-trash-o bigger-120"> 删除</i>
                    </button>
                </div>
            <form class="form-horizontal" role="form" id="form">
                <input  id="form-field-1" placeholder="" class="col-xs-10 col-sm-5" name="bianhao" data-bind="value: o().bianhao" type="hidden" />
                    <input  id="form-field-1" placeholder="" class="col-xs-10 col-sm-5" name="jishu" data-bind="value: o().jishu" type="hidden" />
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">地区编号</label>
                    <div class="col-sm-9">
                        <input type="Number" data-placeholder="请添加两位数字……" id="form-field-1" placeholder="" class="col-xs-10 col-sm-5" name="xsbianhao" data-bind="value: o().xsbianhao" style="width:380px;" />
                        <span class="text-error"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">地区名称</label>
 
                    <div class="col-sm-9">
                        <input type="text" id="form-field-1" placeholder="" class="col-xs-10 col-sm-5" name="name" data-bind="value: o().name" style="width:380px;" />
                        <span class="text-error"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">物流公司</label>
 
                    <div class="col-sm-6">
                        <select data-placeholder="选择物流公司……" id="dp" style="height: 34px; width:380px;" multiple="multiple" class="chosen-select form-control tag-input-style"  data-bind="selectedOptions: selectedList, options: allCMlist, optionsText: 'name', optionsValue: 'companyNo' "></select><!-- -->
                    </div>
                    <div class="col-sm-3" style="padding-left: 0px;" data-bind="visible:vm.canGLXJ() " >
                        <label style="display:block;background: red; width: 90px;margin-bottom: 2px;">修改下级地区</label>
                        <input type="checkbox" style="zoom:240%;margin-top: 0px;" id="GLXJ" ></input>
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="col-sm-9 col-sm-offset-1">
                        <button class="btn btn-sm btn-success" type="button" id="save">
                            <i class="ace-icon fa fa-floppy-o bigger-120"> 保存</i>
                        </button>
                    </div>
                </div>
            </form>
            </div>
        </div>
        <div id="dialog-confirm" class="hide">
            <div class="alert alert-info bigger-110" id="modalContent">
            </div>
        </div>
    </ui:define>
    <ui:define name="myscript">
        <script type="text/javascript" src="#{request.contextPath}/template/nit/cdn/js/jstree.min.js"></script>
        <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
        <script src="js/area.js"></script>
    </ui:define>
</ui:composition>
</html>