edit1013.html
6.18 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<style>
.layui-inputs, .layui-select, .layui-textarea {
height: 38px;
line-height: 1.3;
line-height: 38px \9;
border-width: 1px;
border-style: solid;
background-color: #fff;
color: rgba(0, 0, 0, .85);
border-radius: 2px;
}
.layui-inputs, .layui-textarea {
display: block;
width: 100%;
padding-left: 10px;
}
.layui-table{
/*width: 100%!important;*/
}
</style>
<script></script>
<form id="edit-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
<?php
echo "<link rel='stylesheet' href='/assets/libs/layui/css/layui.css' media='all'/>";
echo "<link rel='stylesheet' href='/assets/libs/ext/soulTable.css' media='all'/>";
echo " <script src='/assets/js/layui/ext/tableCom1.js'></script>";
?>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('报价单名称')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$name|default=''}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('关联客户')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-customer_id" data-source="antis/customer/customer/index2" class="form-control selectpage" name="row[customer_id]" type="text" value="{$row.customer_id|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('关联项目')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-business_id" data-source="antis/customer/business/index2" class="form-control selectpage" name="row[business_id]" type="text" value="{$row.business_id|htmlentities}">
</div>
</div>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('模板')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_ids" data-source="qingdong/customer/goodsmb/index" data-field="name" data-multiple="true" class="form-control selectpage" name="row[goods_ids]" type="text" value="" onchange="getGoodsids()">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('利润率')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-lr" class="form-control" name="row[lr]" type="text" value="">-->
<!-- </div>-->
<!-- </div>-->
<div class="form-group">
<div class="col-xs-12 col-sm-offset-2 col-sm-8">
<a class="btn btn-default" id="goods" role="button" data-id="goods_id">选择商品</a>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('模板')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key}">
<input id="row[status]-{$key}" name="row[status][]" type="checkbox" value="{$vo.id}" /> <span>{$vo.name}</span>
</label>
{/foreach}
</div>
</div>
</div>
{if $row.ssss == 1}
{else/}
<div class="table-responsive">
<script type="text/html" id="toolbarDemo">
<div class="layui-row">
<div class="layui-col-md10 layui-col-sm9 layui-col-xs6">
<div class="layui-input-inline yutons-btn-margin-right" style="margin-right: 0px;">
<span class="layui-inline yutons-header-tool" title="筛选列" lay-event="LAYTABLE_COLS">
<i class="layui-icon layui-icon-cols"></i></span>
</div>
</div>
</div>
</script>
<table id="table" style="width:100%" lay-filter="parse-table-demo" class="table table-striped table-bordered table-hover table-nowrap">
<thead>
<tr>
<th lay-data="{field:'username', width:100,toolbar: '#barDemo'}">{:__('操作')}</th>
<th lay-data="{field:'usernameid', width:100,hide: true}">{:__('ID')}</th>
<th lay-data="{field:'username2', width:150}">{:__('设备名称')}</th>
<th lay-data="{field:'username5', width:150}">{:__('规格型号')}</th>
<th lay-data="{field:'username9', width:150,edit: 'text'}">{:__('对外型号')}</th>
<th lay-data="{field:'username10', width:150,edit: 'text'}">{:__('参数')}</th>
<th lay-data="{field:'username1', width:150,edit: 'text'}">{:__('产地品牌')}</th>
<th lay-data="{field:'username4', width:120}">{:__('单位')}</th>
<th lay-data="{field:'username7', width:120,edit: 'text'}">{:__('数量')}</th>
<th lay-data="{field:'username6', width:120,edit: 'text',totalRow:true}">{:__('单价')}</th>
<th lay-data="{field:'username8', width:120}">{:__('合价')}</th>
<th lay-data="{field:'username11', width:120}">{:__('利润率')}</th>
<th lay-data="{field:'username3', width:120,edit: 'text'}">{:__('备注')}</th>
<th lay-data="{field:'username12', width:120}">{:__('产品图片')}</th>
</tr>
</thead>
<tbody id="list-box">
</tbody>
</table>
</div>
<div id="list-box2" class="hide">
</div>
<script type="text/html" id="barDemo">
<div id="barDemo2">
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</div>
</script>
{/if}
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>