| | |
| | | , { field: 'HBillType', title: 'HBillType', hide: true } |
| | | , { field: 'HSupID', title: 'HSupID', hide: true } |
| | | , { field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', width: 100 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 100} |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120} |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 100 } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 100 } |
| | | , { field: '交货å°ç¹', title: '交货å°ç¹', width: 100} |
| | | , { field: 'HPSStyleID', title: 'HPSStyleID', hide: true } |
| | | , { field: 'éè´æ¹å¼ä»£ç ', title: 'éè´æ¹å¼ä»£ç ', width: 100} |
| | | , { field: 'éè´æ¹å¼ä»£ç ', title: 'éè´æ¹å¼ä»£ç ', width: 120} |
| | | , { field: 'éè´æ¹å¼', title: 'éè´æ¹å¼', width: 100} |
| | | , { field: 'HSSID', title: 'HSSID', hide: true } |
| | | , { field: 'ç»ç®æ¹å¼ä»£ç ', title: 'ç»ç®æ¹å¼ä»£ç ', width: 100} |
| | | , { field: 'ç»ç®æ¹å¼ä»£ç ', title: 'ç»ç®æ¹å¼ä»£ç ', width: 120} |
| | | , { field: 'ç»ç®æ¹å¼', title: 'ç»ç®æ¹å¼', width: 100} |
| | | , { field: 'ç»ç®æ¥æ', title: 'ç»ç®æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ç»ç®æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'HCurID', title: 'HCurID', hide: true } |
| | |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100} |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100} |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 100} |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120} |
| | | , { field: '计éåä½', title: '计éåä½', width: 100} |
| | | , { field: 'æ°é', title: 'æ°é', width: 100} |
| | | , { field: 'åä»·', title: 'åä»·', width: 100} |
| | |
| | | } |
| | | for (var i = 0; i < data.length; i++) { |
| | | hmainid += data[i]["hmainid"] + ','; |
| | | if (data[i]["ä¸å¡ç¶æ"] == "3") { |
| | | if (data[i]["ä¸å¡ç¶æ"] == "å·²åå¸") { |
| | | return layer.msg('åæ®å·ï¼' + data[i]["åæ®å·"]+'å·²åå¸'); |
| | | } |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/distribut', |
| | | async: false, |
| | | type: "POST", |
| | | //dataType: "json", |
| | | type: "GET", |
| | | dataType: "json", |
| | | data: { "Hmainid": hmainid, "HSupplierId": HSupplierId }, |
| | | success: function (data1) { |
| | | if (data.Message.indexOf("æå") > 0) { |
| | | layer.msg(data.Message, { icon: 1 }) |
| | | |
| | | if (data1.Message.indexOf("æå") > 0) { |
| | | layer.msg("å叿å", { time: 3 * 1000, icon: 1 }, function () { |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } else { |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function (e) { |
| | | layer.alert(e.Message, { icon: 5 }); |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | } |
| | | //åå¸ |
| | | function set_Release() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var hmainid = ''; |
| | | var checkStatus = table.checkStatus('mainTable'), |
| | | data = checkStatus.data; |
| | | if (checkStatus.data.length == 0) { |
| | | //var InterID = data[0].hmainid.toString(); |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | for (var i = 0; i < data.length; i++) { |
| | | hmainid += data[i]["hmainid"] + ','; |
| | | if (data[i]["ä¸å¡ç¶æ"] == "æªåé
" || data[i]["ä¸å¡ç¶æ"] == "" ) { |
| | | return layer.msg('åæ®å·ï¼' + data[i]["åæ®å·"] + 'æªåé
'); |
| | | } |
| | | } |
| | | hmainid = hmainid.substring(0, hmainid.length - 1) |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/release', |
| | | async: false, |
| | | type: "GET", |
| | | dataType: "json", |
| | | data: { "Hmainid": hmainid}, |
| | | success: function (data1) { |
| | | if (data1.Message.indexOf("æå") > 0) { |
| | | layer.msg("å叿å", { time: 1 * 1000, icon: 1 }, function () { |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } else { |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function (e) { |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery(table, option) { |