| | |
| | | <i class="layui-icon"></i>添加 |
| | | </button> |
| | | </script> |
| | | |
| | | <!-- if((d.AsnType =="1" || d.AsnType == "4" || d.AsnType == "5" || d.AsnType == "6") && d.IsPasteCode == "1" && (d.Status == "0" || d.Status == "1")){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel"> |
| | | <i class="layui-icon layui-icon-edit"></i>生成标签</a>`; |
| | | } --> |
| | | <script type="text/html" id="toolbarDemoList"> |
| | | {{# function GetBtn2(d){ |
| | | console.log(d); |
| | |
| | | html = `<a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del"> |
| | | <i class="layui-icon layui-icon-delete"></i>删除</a>`; |
| | | } |
| | | if((d.AsnType =="1" || d.AsnType == "4" || d.AsnType == "5" || d.AsnType == "6") && d.IsPasteCode == "1" && (d.Status == "0" || d.Status == "1")){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel"> |
| | | <i class="layui-icon layui-icon-edit"></i>生成标签</a>`; |
| | | } |
| | | |
| | | |
| | | return html; |
| | | } |
| | |
| | | base: '../../layuiadmin/' //静态资源所在路径 |
| | | }).extend({ |
| | | index: 'lib/index' //主入口模块 |
| | | }).use(['index', 'form','table', 'laypage', 'layer', 'laydate'], function () { |
| | | }).use(['index', 'form', 'table', 'laypage', 'layer', 'laydate'], function () { |
| | | |
| | | var doing = true; |
| | | |
| | |
| | | // {field: 'Money',title: '金额',align: 'center',width: 65}, |
| | | { field: 'LotText', title: '批次描述', align: 'center', width: 120 }, |
| | | { field: 'PackagName', title: '包装名称', align: 'center', width: 110, }, |
| | | { field: 'IsBale', title: '是否裹包', align: 'center', width: 150 }, |
| | | { field: 'IsBelt', title: '是否打带', align: 'center', width: 150 }, |
| | | { field: 'UDF1', title: '自定义列1', align: 'center', width: 140 }, |
| | | { field: 'UDF2', title: '自定义列2', align: 'center', width: 140 }, |
| | | { field: 'UDF3', title: '自定义列3', align: 'center', width: 140 }, |
| | | { field: 'UDF4', title: '自定义列4', align: 'center', width: 140 }, |
| | | { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' }, |
| | | { field: 'Lot1', title: '生产日期', align: 'center', width: 140 }, |
| | | { field: 'Lot2', title: '过期日期', align: 'center', width: 140 }, |
| | | // { field: 'IsBale', title: '是否裹包', align: 'center', width: 150 }, |
| | | // { field: 'IsBelt', title: '是否打带', align: 'center', width: 150 }, |
| | | // { field: 'UDF1', title: '自定义列1', align: 'center', width: 140 }, |
| | | // { field: 'UDF2', title: '自定义列2', align: 'center', width: 140 }, |
| | | // { field: 'UDF3', title: '自定义列3', align: 'center', width: 140 }, |
| | | // { field: 'UDF4', title: '自定义列4', align: 'center', width: 140 }, |
| | | // { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' }, |
| | | { field: 'CreateUserName', title: '创建人', align: 'center', width: 100 }, |
| | | { field: 'CreateTime', title: '创建时间', align: 'center', width: 160, templet: '#templetCreateTime2' }, |
| | | { field: 'UpdateUserName', title: '修改人', align: 'center', width: 150, }, |
| | |
| | | $(".clossClass").hide(); |
| | | $(".editDemoClass").hide();//备注 |
| | | $(".checkClass").hide(); //复核 |
| | | $(".addLabelClass").hide(); //复核 |
| | | //$(".addLabelClass").hide(); //生成标签 |
| | | |
| | | }); |
| | | sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { |
| | |
| | | $(".checkClass").show(); |
| | | }); |
| | | } |
| | | if (res.data[k].MenuName == "生成标签") { |
| | | $(function () { |
| | | $(".addLabelClass").show(); |
| | | }); |
| | | } |
| | | // if (res.data[k].MenuName == "生成标签") { |
| | | // $(function () { |
| | | // $(".addLabelClass").show(); |
| | | // }); |
| | | // } |
| | | } |
| | | } else { //不成功 |
| | | layer.msg('获取权限信息失败', { |