| | |
| | | }) : "object" == typeof module && module.exports ? module.exports = http : n.http = http |
| | | }(this); |
| | | |
| | | function requireTip(el) { |
| | | el.css("border", "1px solid #FF5722"); |
| | | setTimeout(function () { |
| | | el.css("border", "0px none rgb(89, 89, 89)"); |
| | | }, 2000) |
| | | } |
| | | |
| | | function arrRemove(arr, key, val) { |
| | | for(var i=arr.length-1; i>=0; i--){ |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | var matCols = [ |
| | | {field: 'matnr', align: 'center',title: '商品编号', width: 180} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', width: 200} |
| | | ,{field: 'name', align: 'center',title: '名称', hide: true} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | | ,{field: 'model', align: 'center',title: '型号', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: 'SKC',hide: true} |
| | | // ,{field: 'docId', align: 'center',title: '单据类型', hide: true} |
| | | // ,{field: 'docNum', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'custName', align: 'center',title: '客户名称', hide: true} |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'count', align: 'center',title: '数量', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价'} |
| | | ,{field: 'weight', align: 'center',title: '重量', hide: true} |
| | | // ,{field: 'status', align: 'center',title: '状态'} |
| | | // ,{field: 'createBy$', align: 'center',title: '添加人员'} |
| | | // ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | // ,{field: 'updateBy$', align: 'center',title: '修改人员'} |
| | | // ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide: true} |
| | | ] |
| | | |
| | | var detlCols = [ |
| | | {field: 'matnr', align: 'center',title: '商品编号', width: 180} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', width: 200} |
| | | ,{field: 'anfme', align: 'center',title: '库存数量', style: 'font-weight: bold'} |
| | | ,{field: 'name', align: 'center',title: '名称', hide: true} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | | ,{field: 'model', align: 'center',title: '型号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '批号'} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'barcode', align: 'center',title: 'SKC',hide: true} |
| | | ,{field: 'docId', align: 'center',title: '单据类型', hide: true} |
| | | ,{field: 'docNum', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'custName', align: 'center',title: '客户名称', hide: true} |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'count', align: 'center',title: '数量', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'weight', align: 'center',title: '重量', hide: true} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘码'} |
| | | // ,{field: 'createBy$', align: 'center',title: '添加人员'} |
| | | // ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | // ,{field: 'updateBy$', align: 'center',title: '修改人员'} |
| | | // ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide: true} |
| | | ] |
| | | |
| | | |
| | | var popupRight; |
| | | var cstmrByMore; |
| | |
| | | data.field.cstmrId = cstmrSel.getValue()[0] ? cstmrSel.getValue()[0].value : null; |
| | | data.field.userId = userSel.getValue()[0] ? userSel.getValue()[0].value : null; |
| | | data.field.planNeed = planNeedSel.getValue()[0] ? planNeedSel.getValue()[0].value : null; |
| | | if (!data.field.orderId) { |
| | | layer.msg("跟踪项目不能为空", {icon: 2}); |
| | | top.requireTip($('#orderXmlSel')); |
| | | return false; |
| | | } |
| | | if (!data.field.cstmrId) { |
| | | layer.msg("客户名称不能为空", {icon: 2}); |
| | | top.requireTip($('#cstmrXmlSel')); |
| | | return false; |
| | | } |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/plan/add/auth", |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">跟踪项目: </label> |
| | | <label class="layui-form-label layui-form-required">跟踪项目: </label> |
| | | <div class="layui-input-block"> |
| | | <div id="orderXmlSel" name="orderXmlSel"> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">甲方单位: </label> |
| | | <label class="layui-form-label layui-form-required">客户名称: </label> |
| | | <div class="layui-input-block"> |
| | | <div id="cstmrXmlSel" name="cstmrXmlSel"> |
| | | </div> |