Helius
2021-04-15 abed1e1b52663b539ce88e613051cbab389b0f8a
zq-erp/src/main/resources/templates/views/admin/hive/store/projServiceStartpl-list.html
@@ -24,7 +24,8 @@
            <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">
@@ -38,7 +39,7 @@
                           <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>
@@ -77,6 +78,7 @@
<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(){
@@ -100,6 +102,24 @@
      });
      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>