计划平台优化完善
报工平台 报检申请 生产汇报 功能优化完善
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HInterID").val(data.HInterID);//è·åæäº¤æåè¿åç忮䏻ID |
| | | layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function () { |
| | | |
| | | layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function (index) { |
| | | if (data.Verify == "Y") //èªå¨å®¡æ ¸ |
| | | { |
| | | layer.close(index); |
| | | SaveVerify(); //å®¡æ ¸ |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | if (data.Verify == "Y") //èªå¨å®¡æ ¸ |
| | | { |
| | | layer.close(index); |
| | | SaveVerify(); //å®¡æ ¸ |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | } |
| | | |
| | | //layer.confirm(data.Message, { |
| | | // btn: ['确认'] |
| | | //}, function (index) { |
| | |
| | | if (checkStatus.data.length === 1) { |
| | | console.log(data[0]); |
| | | var HInterID = data[0].HInterID; |
| | | var HICMOInID = data[0].HSourceInterID; |
| | | var HICMOEnID = data[0].HSourceEntryID; |
| | | var HICMOInID = data[0].HICMOInterID; |
| | | var HICMOEnID = data[0].HICMOEntryID; |
| | | var HRelationInterID = data[0].HRelationInterID; |
| | | if (HRelationInterID == 1) { |
| | | layer.msg('åæ®å·²æ¥æ£å®¡æ ¸æ æ³ä¿®æ¹ï¼'); |
| | |
| | | layer.msg(data.Message, { time: 1 * 2000, icon: 1 }, function (index) { |
| | | //layer.close(layer.index); |
| | | //window.parent.location.reload(); |
| | | if (data.Verify == "Y") //èªå¨å®¡æ ¸ |
| | | { |
| | | layer.close(index); |
| | | SaveVerify(); //å®¡æ ¸ |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | if (data.Verify == "Y") //èªå¨å®¡æ ¸ |
| | | { |
| | | layer.close(index); |
| | | SaveVerify(); //å®¡æ ¸ |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | } |
| | | |
| | | //layer.confirm(data.Message, { |
| | | // btn: ['确认'] |
| | | //}, function (index) { |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0,"HICMOTempID":0 |
| | | }]; |
| | | table.render(option); |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | table.cache["mainTable"].push({ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HICMOTempID', title: 'HICMOTempID', edit: 'text', width: 100, hide: true } |
| | | |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0,"HICMOTempID":0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | "HSourceName": data[i].çäº§èµæºåç§°, "HWorkerid": data[i].æä½åID, "HWorkerCode": data[i].æä½å代ç , |
| | | "HWorkerName": data[i].æä½ååç§°, "HQty": data[i].产é, "HBadQty": data[i].ä¸è¯æ°é == '' ? 0 : data[i].ä¸è¯æ°é, "HICMOBillNo": data[i].ç产订åå·, |
| | | "HICMOInterID": data[i].HICMOInterID, "HICMOEntryID": data[i].HICMOEntryID, "HRemark": "", "HSourceInterID": data[i].HICMOInterID, "HSourceEntryID": data[i].HICMOEntryID, "HSourceBillNo": data[i].ç产订åå·, |
| | | "HSourceBillType": 3710 |
| | | "HSourceBillType": 3710, "HICMOTempID": data[i].HICMOTempID |
| | | }); |
| | | } |
| | | |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | columns.push({ field: 'ç产订åå·', title: 'ç产订åå·', width: 150, style: 'background-color: #f9f9f9;', sort: true }); |
| | | columns.push({ field: 'ç产订åæç»è¡å·', title: 'ç产订åæç»è¡å·', width: 150, sort: true }); |
| | | columns.push({ field: 'ç产ç»ç»', title: 'ç产ç»ç»', width: 150, sort: true }); |
| | | columns.push({ field: 'HMaterID', title: 'HMaterID', hide: true }); |
| | | columns.push({ field: 'ç©æä»£ç ', title: 'ç©æç¼ç ', width: 150, sort: true }); |
| | | columns.push({ field: 'ç©æåç§°', title: 'ç©æåç§°', width: 150, sort: true }); |
| | | columns.push({ field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 150, sort: true }); |
| | |
| | | columns.push({ field: 'HGroupName', title: 'HGroupName', width: 150, hide:true }); |
| | | columns.push({ field: 'çäº§èµæºä»£ç ', title: 'çäº§èµæºä»£ç ', width: 150, hide: true }); |
| | | columns.push({ field: 'HSourceID', title: 'HSourceID', hide: true }); |
| | | columns.push({ field: 'HMaterID', title: 'HMaterID', hide: true }); |
| | | |
| | | columns.push({ field: 'HWorkShopID', title: 'HWorkShopID', hide: true }); |
| | | columns.push({ field: 'HUnitID', title: 'HUnitID', hide: true }); |
| | | columns.push({ field: 'HProdORGID', title: 'HProdORGID', hide: true }); |
| | |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var HInterID = data.data[0]["HInterID"]; |
| | | if (data.data.length == 0) { |
| | | return layer.msg("å½åç©ææ²¡æå·¥èºè·¯çº¿!"); |
| | | } else { |
| | | var HInterID = data.data[0]["HInterID"]; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥èºè·¯çº¿-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../计å管ç/å·¥èºè·¯çº¿/Gy_RoutingBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=3301' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | //location.reload(); |
| | | } |
| | | }) |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥èºè·¯çº¿-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../计å管ç/å·¥èºè·¯çº¿/Gy_RoutingBill.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=3301' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | //location.reload(); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5 }); |
| | |
| | | if (data.id == "0") { |
| | | sql = " and æ¥æ like'%" + HDate + "%'"; |
| | | } else { |
| | | sql = " and HSourceID='" + data.id + "' and (æ¥æ like'%" + HDate +"%' or æ¥æ is null)"; |
| | | sql = " and HSourceID='" + data.id + "' and (æ¥æ like'%" + HDate +"%' or æ¥æ is null or æ¥æ is not null)"; |
| | | } |
| | | get_Display(sql); |
| | | } |