| | |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计' } |
| | | ,{ field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 150, } |
| | | , { field: 'ç¶æ', title: 'ç¶æ', width: 100, sort: true } |
| | | , { field: 'HBillType', title: 'HBillType', hide: true, sort: true } |
| | | , { field: 'è¡ç¶æ', title: 'è¡ç¶æ', width: 125, sort: true } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 150 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 100 } |
| | | //, { field: 'HBillType', title: 'HBillType', hide: true } |
| | | //, { field: 'HSupID', title: 'HSupID', hide: true } |
| | | //, { field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', width: 100, hide: true } |
| | | , { field: 'åé
ç¶æ', title: 'åé
ç¶æ', width: 100 } |
| | | , { field: 'åå¸ç¶æ', title: 'åå¸ç¶æ', width: 100 } |
| | | , { field: 'ä¾åºåååç¶æ', title: 'ä¾åºåååç¶æ', width: 135 }/*ç©æä»£ç ï¼ç©æåç§°ï¼è§æ ¼åå·ï¼æ¹å·ï¼æ°éï¼åä½ï¼æºååå·*/ |
| | | , { field: 'åé¦ç¶æ', title: 'ä¾åºååé¦ç¶æ', width: 135 } |
| | | , { field: 'ç©æç¼ç ', title: 'ç©æç¼ç ', width: 120 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 130 } |
| | | , { field: 'æ§ç©æç¼ç ', title: 'æ§ç©æç¼ç ', width: 130 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 130 } |
| | | , { field: 'æ°é', title: 'è®¢åæ°é', width: 100, totalRow: true } |
| | | , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120, totalRow: true } |
| | | /* å®çæ°å¢å段 begin */ |
| | | , { field: '坿尿¡ç æ°é', title: '坿尿¡ç æ°é', width: 120, totalRow: true} |
| | | /* å®çæ°å¢å段 end */ |
| | | , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120, totalRow: true} |
| | | , { field: 'æªå
³èæ°é', title: 'å¯åè´§æ°é', width: 120, totalRow: true} |
| | | /* å®çæ°å¢å段 begin */ |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 120, totalRow: true} |
| | | , { field: '宿¶æ°é', title: '宿¶æ°é', width: 120, totalRow: true} |
| | | , { field: 'å
¥åºæ°é', title: 'å
¥åºæ°é', width: 120, totalRow: true} |
| | | , { field: 'å©ä½å
¥åºæ°é', title: 'å©ä½å
¥åºæ°é', width: 120, totalRow: true} |
| | | , { field: 'å©ä½æ¶ææ°é', title: 'å©ä½æ¶ææ°é', width: 120, totalRow: true} |
| | | /* å®çæ°å¢å段 end */ |
| | | , { field: 'å®æç¶æ', title: 'å®æç¶æ', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | //, { field: 'HUnitID', title: 'HUnitID', hide: true } éå¤ |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120 , hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100, totalRow: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | //, { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120, hide: true} |
| | | //, { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100, hide: true} |
| | | //, { field: 'HPriority', title: 'HPriority', width: 100, hide: true } |
| | | , { field: 'ä¼å
级', title: 'ä¼å
级', width: 100 } |
| | | , { field: '交货å°ç¹', title: '交货å°ç¹', width: 100} |
| | | , { field: 'HPSStyleID', title: 'HPSStyleID', hide: true } |
| | | , { field: 'éè´æ¹å¼ä»£ç ', title: 'éè´æ¹å¼ä»£ç ', width: 120, hide: true } |
| | | , { field: 'éè´æ¹å¼', title: 'éè´æ¹å¼', width: 100} |
| | | , { field: 'HSSID', title: 'HSSID', hide: true } |
| | | , { 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, hide: true } |
| | | , { field: 'å¸å«', title: 'å¸å«', width: 100} |
| | | , { field: 'æ±ç', title: 'æ±ç', width: 100} |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 100, hide: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 100} |
| | | , { field: 'HManagerID', title: 'HManagerID', hide: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 100, hide: true } |
| | | , { field: '主管', title: '主管', width: 100} |
| | | , { field: 'HEmpID', title: 'HEmpID', hide: true } |
| | | , { field: 'æè¦', title: 'æè¦', width: 100 } |
| | | , { field: 'HWHID', title: '主表ä»åºID', width: 120, hide: true} |
| | | , { field: 'ä»åº', title: '主表ä»åº', width: 100, hide: true} |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 100} |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'åä»·', title: 'åä»·', width: 100} |
| | | , { field: 'éé¢', title: 'éé¢', width: 100, totalRow: true } |
| | | , { field: 'ç¨ç', title: 'ç¨ç', width: 100} |
| | | , { field: 'ç¨é¢', title: 'ç¨é¢', width: 100} |
| | | , { field: 'ææ£ç', title: 'ææ£ç', width: 100} |
| | | , { field: 'ä»·ç¨å计', title: 'ä»·ç¨å计', width: 100} |
| | | , { field: 'äº¤è´§æ¥æ', title: 'äº¤è´§æ¥æ', width: 120, templet: "<div>{{d.äº¤è´§æ¥æ ==null ?'':layui.util.toDateString(d.äº¤è´§æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', width: 100} |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 100} |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 100} |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 100} |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 120, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 100} |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 120, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 100} |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 120, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 125, sort: true } |
| | | , { field: 'è¡å
³éæ¥æ', title: 'è¡å
³éæ¥æ', width: 200, templet: "<div>{{d.è¡å
³é人 == ''?'':layui.util.toDateString(d.è¡å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 100} |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 120, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | |
| | | ]] |
| | | , cols: [[]] |
| | | |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{layui.util.toDateString(d." + (data[i].name != "æ¥æ" ? data[i].name + ", 'yyyy-MM-dd HH:mm:ss'" : data[i].name +", 'yyyy-MM-dd'")+")}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | |
| | | if (data[0].ç¶æ == "å建") { |
| | | /*if (data[0].ç¶æ == "å建") {*/ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/DeltetCg_POOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | layer.msg('è¯¥æ¡æ°æ®ä¸æ¯åå»ºç¶æ,æ æ³å é¤ï¼'); |
| | | //} else { |
| | | // layer.msg('è¯¥æ¡æ°æ®ä¸æ¯åå»ºç¶æ,æ æ³å é¤ï¼'); |
| | | |
| | | } |
| | | //} |
| | | |
| | | }) |
| | | } |
| | |
| | | } |
| | | else { |
| | | |
| | | var hmainid = []; |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | hmainid.push((data[i].hmainid * (10 ** 8)) + data[i].hsubid) |
| | | } |
| | | var hmainid = data[0].hmainid.toString(); |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + hmainid.toString() + '&MyMsg=' + hmainid.toString() + '&Type=HPOOrderBill', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + hmainid.toString() + '&MyMsg=' + hmainid.toString() + '&Type=HPOOrderBillByID', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | |
| | | var HInitTimeCycle = $("#HInitTimeCycle").val() * 1; |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd")); //å¼å§æ¥æ |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); //ç»ææ¥æ |
| | | $('#HStatus').find("option[value='-1']").attr("selected", true); |
| | | $("#HBillNo").val(""); |
| | | $("#HEmpName").val(""); |
| | | $("#HMaterNumber").val(""); |
| | | $("#HOldMaterNumber").val(""); |
| | | $("#HMaterShortNumber").val(""); |
| | | $("#HMaterName").val(""); |
| | | $("#HSupName").val(""); |
| | | $("#HOrgID").val(sessionStorage["OrganizationID"]); |
| | | /*$("#HOrgID").val(sessionStorage["OrganizationID"]);*/ |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | option.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | //ç»è®¡å |
| | | if (dataCols[6] == 1) { |
| | | option.cols[0][i + 1]["totalRow"] = true; |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | optionSub.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | |
| | | //ç»è®¡å |
| | | if (dataCols[6] == 1) { |
| | | optionSub.cols[0][i + 1]["totalRow"] = true; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |