| | |
| | | form.on('submit(btnPack)', function (data) { |
| | | var flag = "ZZ"; |
| | | var sSubStr = table.checkStatus('mainTable'); |
| | | if (sSubStr.data.length > 0) { |
| | | SavePack(flag, sSubStr); |
| | | } |
| | | else { |
| | | layer.msg('请æå°éæ©1è¡æ°æ®ï¼'); |
| | | return; |
| | | } |
| | | SavePack(flag, sSubStr); |
| | | }); |
| | | //æ¼ç®±çæ |
| | |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HInterID', title: 'HInterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HBillNo', title: 'HBillNo', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterNumber', title: 'HMaterNumber', edit: 'text', width: 100, hide: true } |
| | |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var PrintIds = data.code; |
| | | PrintIds = PrintIds.substring(0, PrintIds.length - 1); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + PrintIds + '&MyMsg=' + PrintIds + '&Type=HQKPackBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | var Type = "HQKPackBill"; |
| | | var OpenTmp = ""; |
| | | if (sSubStr.data[0].FBZFS == "" && (sSubStr.data[0].FHX != "" || sSubStr.data[0].FMaterName != "")) { |
| | | OpenTmp = "è±åæ¡ç "; |
| | | } |
| | | else { |
| | | OpenTmp = "å
è£
æ¹å¼æ¡ç "; |
| | | } |
| | | window.open("../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint.html?linterid=" + PrintIds.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString()); |
| | | |
| | | } |
| | | else { |
| | | f_alert(data.Message); |