dateils.html
6.24 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
<form id="edit-form" test="1" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('客户名称')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-customer_name" class="form-control " name="row[customer_name]" type="text" value="{$row.customer_name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('项目名称')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-business_name" class="form-control" name="row[business_name]" type="text" value="{$row.business_name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('报价单')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-bill_id" class="form-control" name="row[bill_id]" type="text" value="{$row.bill_name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('合同金额')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-wcvzhwhu" class="form-control" name="row[wcvzhwhu]" type="number" value="{$row.wcvzhwhu|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('合同编号')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-cawhvqvv" class="form-control" name="row[cawhvqvv]" type="text" value="{$row.cawhvqvv|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('签约日期')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-ecsnlsxg" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[ecsnlsxg]" type="text" value="{$row.ecsnlsxg}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-2">{:__('签约主体')}:</label>
<div class="col-xs-4 col-sm-4">
<input id="c-cawhvqvv" class="form-control" name="row[main_fabhjb]" type="text" value="{$contract.main_fabhjb|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-1"></label>
<div class="col-xs-6 col-sm-8">
<div>1、本合同签订后<input type="number" name="row[main_lqogcl]" style="width: 100px" value="{$contract.main_lqogcl}">日内,买方向卖方支付本合同价税合计总金额的
<input type="number" name="row[main_wyjwsd]" style="width: 100px" value="{$contract.main_wyjwsd}">%作为合同定金,卖方开始备货并发货。</div>
<div>2、货到项目所在地后<input type="number" name="row[main_fnysuc]" style="width: 100px" value="{$contract.main_fnysuc}">日内,买方向卖方支付本合同价税合计总金额的
<input type="number" name="row[main_mctrbc]" style="width: 100px" value="{$contract.main_mctrbc}">%作为提货款。</div>
<div>3、买方提货后<input type="number" name="row[main_pbyeij]" style="width: 100px" value="{$contract.main_pbyeij}">日内,买方向卖方支付本合同价税合计总金额的剩余全部款项。经买卖双方共同确认,此时买方支付的定金可以转化为货款。</div>
</div>
</div>
<div class="table-responsive">
<table id="table" class="table table-striped table-bordered table-hover table-nowrap">
<thead>
<td></td>
<th>{:__('商品名称')}</th>
<th>{:__('单位')}</th>
<th>{:__('单价')}</th>
{if condition="in_array(1, $role)"}
<th>{:__('结算价')}</th>
{/if}
{if condition="in_array(2, $role)"}
<th>{:__('成本价')}</th>
{/if}
<th>{:__('利润率')}</th>
<th>{:__('数量')}</th>
<th>{:__('总价')}</th>
</thead>
<tbody>
{volist name="row.goods_list" id="list" key="k"}
<tr>
<td>{$key}</td>
</tr>
{volist name="$row.goods_list[$key]" id="vo" key="k"}
<tr>
<td></td>
<td>{$vo.productName}</td>
<td>{$vo.unit}</td>
<td>{$vo.unitPrice}</td>
{if condition="in_array(1, $role)"}
<td>{$vo.wholesale_price}</td>
{/if}
{if condition="in_array(2, $role)"}
<td>{$vo.cb_price}</td>
{/if}
<td>{$vo.profitrate}</td>
<td>{$vo.qty}</td>
<td>{$vo.amount}</td>
</tr>
{/volist}
{/volist}
<tr>
<td>合计</td>
<td></td>
{if condition="in_array(1, $role)"}
<th></th>
{/if}
{if condition="in_array(2, $role)"}
<th></th>
{/if}
<td></td>
<td></td>
<td></td>
<td>{$row.totalprice}</td>
</tr>
{if condition="in_array(1, $role)"}
<tr>
<td>销售利润率</td>
<td></td>
{if condition="in_array(1, $role)"}
<th></th>
{/if}
{if condition="in_array(2, $role)"}
<th></th>
{/if}
<td></td>
<td></td>
<td></td>
<td>{$row.balance}</td>
</tr>
{/if}
{if condition="in_array(2, $role)"}
<tr>
<td>成本利润率</td>
<td></td>
{if condition="in_array(1, $role)"}
<th></th>
{/if}
{if condition="in_array(2, $role)"}
<th></th>
{/if}
<td></td>
<td></td>
<td></td>
<td>{$row.profit}</td>
</tr>
{/if}
</tbody>
</table>
</div>
</form>