wzy
2021-04-01 d388e2788b7ef088d7cd40f901b0acdcec460bc3
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
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
    th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
<script type="text/javascript" th:src="@{/js/systools/MBase.js}"></script>
</head>
<body>
    <div class="ibox-content">
        <form class="form-horizontal" id="dataform"
            onsubmit="javascripr:return false;">
 
            <input autocomplete="off"   type="hidden" name="id" th:value="${serviceId} " >
 
            <table class="table table-bordered" id="waptable">
                <tbody th:each="projInfo,outList:${projInfoList}">
 
                    <tr class="success">
                        <td colspan="6" th:text="'项目名称:'+${projInfo.name}"></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>配料名称</th>
                                    <th>推荐消耗</th>
                                    <th>实际消耗</th>
                                    <th>配料备注</th>
                                </tr>
                                </thead>
                                <tbody >
 
                                    <tr class="group" th:each="projGoods,list:${projInfo.assembleGoods}">
                                        <td th:text="${list.index+1}" ></td>
                                        <td th:text="${projGoods.shoppingGoods.name}"></td>
                                        <td >
                                             <span   th:text="${projGoods.total}+''+${projGoods.shoppingGoods.measure}"></span>
                                        </td>
                                        <td >
                                            <input autocomplete="off"   class="form-control" style="width: 200px;float: left;"  type="text" name="amount" placeholder="实际用量" >
                                            <span style="line-height: 30px;margin-left: 10px;"  th:text="${projGoods.shoppingGoods.measure}"></span>
                                        </td>
                                        <td>
                                            <input autocomplete="off"   type="hidden" name="skuId" th:value="${projGoods.assembleGoodId} " >
 
                                            <input autocomplete="off"    type="text" name="remark"  class="form-control" placeholder="配料备注"></td>
 
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
 
                </tbody>
            </table>
            <div class="form-group " style="position: fixed;bottom: 0px;left: 49%;z-index: 9999;background: #ffffff;text-align: center;">
                <div class="col-sm-12 text-center">
                    <a href="javascript:;" onclick="myForm.submit()"
                       class="btn btn-success radius">配料完成</a>
                </div>
            </div>
        </form>
    </div>
</body>
 
 
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script>
<script  th:inline="javascript">
 
    var myForm=MForm.initForm({
        invokeUrl:basePath+"/admin/projService/endPl",
        afterSubmit:function(){
            if (parent.myGrid) {
                parent.myGrid.serchData();
            }
 
            if (parent.app) {
                parent.app.serviceOrderQuery();
            }
        },
    });
 
    var index=0;
    //设置namename
    $(".group").each(function(){
 
        var inputs=$(this).find("input");
        inputs.each(function(){
            $(this).attr("name","outStoreItem["+index+"]."+$(this).attr("name"));
        });
        index++;
    });
    </script>
</body>
</html>