Blame view

application/admin/view/fastflow/bill/czgprz/dateils.html 2.92 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
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
  <form id="edit-form" test="1" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  
      <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>
              </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.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>