| | |
| | | <tbody th:each="projInfo,outList:${projInfoList}"> |
| | | |
| | | <tr class="success"> |
| | | <td colspan="6" th:text="'项目名称:'+${projInfo.name}"></td> |
| | | <td colspan="5" th:text="'项目名称:'+${projInfo.name}"></td> |
| | | <td colspan="1" ><button type="button" class="btn btn-primary btn-xs" th:onclick="'javascript:openPlList('+ ${outList.index} +')'">添加配料</button></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="6"> |
| | |
| | | <th>配料备注</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody > |
| | | <tbody th:attrappend="id=${outList.index}" > |
| | | |
| | | <tr class="group" th:each="projGoods,list:${projInfo.assembleGoods}"> |
| | | <td th:text="${list.index+1}" ></td> |
| | |
| | | <script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script> |
| | | <script th:inline="javascript"> |
| | | |
| | | var plList = [[${projInfoList}]]; |
| | | var myForm=MForm.initForm({ |
| | | invokeUrl:basePath+"/admin/projService/endPl", |
| | | afterSubmit:function(){ |
| | |
| | | }); |
| | | index++; |
| | | }); |
| | | |
| | | function openPlList(value) { |
| | | console.log(value); |
| | | // layer.full(layer.open({ |
| | | // type: 2, |
| | | // title: "选择配料", |
| | | // maxmin: true, |
| | | // area: [MUI.SIZE_L, '450px'], |
| | | // content: [basePath + '/admin/redirect/hive/instore/store-list-pl'] |
| | | // })); |
| | | } |
| | | |
| | | function selectPl(value) { |
| | | if (value) { |
| | | |
| | | } |
| | | console.log(value); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |