| | |
| | | <input type="text" id="ASNNo" name="ASNNo" placeholder="请输入入库单据" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> --> |
| | | <!-- 批次 --> |
| | | <!-- 进厂编号 --> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 60px;">批次号</label> |
| | | <label class="layui-form-label" style="width: 60px;">进厂编号</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" id="LotNo" name="LotNo" placeholder="请输入物料名称" autocomplete="off" class="layui-input"> |
| | | <input type="text" id="LotNo" name="LotNo" placeholder="请输入进厂编号" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <!-- 物料号 --> |
| | |
| | | </div> |
| | | |
| | | |
| | | <script type="text/html" id="IsStatus"> |
| | | {{# if(d.Status=='0'){ }} |
| | | <p>等待审核</p> |
| | | {{# } else if(d.Status=='1'){ }} |
| | | <p>通过</p> |
| | | {{# } else if(d.Status=='2'){ }} |
| | | <p>不通过</p> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="IsQualifiedButton"> |
| | | {{# if(d.IsQualified=='0'){ }} |
| | | <p>不合格</p> |
| | |
| | | {{# console.log(d.CreateTime); |
| | | return formatDate(d.CreateTime); |
| | | }} |
| | | </script> |
| | | <script type="text/html" id="CaoZuoList"> |
| | | {{# function GetBtn(d){ |
| | | var html = ''; |
| | | console.log(d); |
| | | switch (d.Status) { |
| | | case "0" : |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs editClass" lay-event="edit"> |
| | | <i class="layui-icon layui-icon-edit"></i>复核</a>`; |
| | | break; |
| | | default : |
| | | break; |
| | | } |
| | | return html; |
| | | } |
| | | }} |
| | | {{ GetBtn(d) }} |
| | | </script> |
| | | |
| | | </div> |
| | |
| | | field: 'InspectNo',title: '检验号',align: 'center' |
| | | }, |
| | | { |
| | | field: 'Status',title: '状态',align: 'center',templet: '#IsStatus', |
| | | }, |
| | | { |
| | | field: 'SkuNo',title: '物料编码',align: 'center' |
| | | }, |
| | | { |
| | |
| | | field: 'Standard',title: '物料规格',align: 'center' |
| | | }, |
| | | { |
| | | field: 'LotNo',title: '批次号',align: 'center' |
| | | field: 'LotNo',title: '进厂编号',align: 'center' |
| | | }, |
| | | { |
| | | field: 'IsQualified',title: '检验结果',align: 'center',templet: '#IsQualifiedButton', |
| | |
| | | }, |
| | | { |
| | | field: 'CreateTime',title: '创建时间',align: 'center', templet: '#CreateTimeButton', |
| | | }, |
| | | { |
| | | field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'center', toolbar: '#CaoZuoList', "disabled": true |
| | | }, |
| | | ]]; |
| | | var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码 |
| | |
| | | function setRight() { |
| | | $(function() { |
| | | $("#approvalBtn").hide(); |
| | | $("#editClass").hide(); |
| | | }); |
| | | sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { |
| | | if (res.code == 0) { //成功 |
| | |
| | | { |
| | | $(function() { |
| | | $("#approvalBtn").show(); |
| | | }); |
| | | } |
| | | if (res.data[k].MenuName == "复核质检结果") |
| | | { |
| | | $(function() { |
| | | $(".editClass").show(); |
| | | }); |
| | | } |
| | | } |
| | |
| | | title: '添加物料信息', |
| | | content: 'QualityInformationFrom.html', |
| | | maxmin: true, |
| | | area: ['500px', '350px'], |
| | | area: ['500px', '450px'], |
| | | btn: ['确定', '取消'], |
| | | yes: function(index, layero) { |
| | | var iframeWindow = window['layui-layer-iframe' + index], |
| | |
| | | //提交 Ajax 成功后,静态更新表格中的数据 |
| | | var param = { |
| | | InspectNo: field.InspectNo, |
| | | ASNNo: field.ASNNo, |
| | | LotNo: field.LotNo, |
| | | SkuNo: field.SkuNo, |
| | | IsQualified: field.IsQualified, |
| | | }; |
| | | if(doing) |