| | |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100 } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCheck', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 190 } |
| | | //, { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HCloseMan").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | |
| | | , "Box2": "" //éåå· |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | | , "HMaker": data.å¶å人 |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HMakeDate": data.å¶åæ¥æ |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | }); |
| | | |
| | | } else { |
| | |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(shijian); |
| | | $("#HInterID").val(0); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | } |
| | | }); |
| | | } |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HPayTypeName").val(checkStatus.data[0].å·¥èµç±»å); |
| | | $("#HPayTypeName").val(checkStatus.data[0].å·¥èµç±»ååç§°); |
| | | $("#HPayID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 180 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 125 } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true } |
| | | , { field: 'èå代ç ', title: 'èå代ç ', width: 180 } |
| | | , { field: 'èå', title: 'èå', width: 125 } |
| | | , { field: 'HEmpNumber', title: 'èå代ç ', width: 180 } |
| | | , { field: 'HEmpName', title: 'èå', width: 125 } |
| | | , { field: 'HPayID', title: 'HPayID', width: 200, hide: true } |
| | | , { field: 'å·¥èµä»£ç ', title: 'å·¥èµä»£ç ', width: 180 } |
| | | //, { field: 'å·¥èµä»£ç ', title: 'å·¥èµä»£ç ', width: 180 } |
| | | , { field: 'å·¥èµç±»å', title: 'å·¥èµç±»å', width: 125 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 125 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 125 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 125 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 125 } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', width: 125 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 125 } |
| | | //, { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 125 } |
| | | , { field: 'HProcID', title: 'HProcID', width: 200, hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 125 } |
| | | , { field: 'HProcNumber', title: 'å·¥åºä»£ç ', width: 125 } |
| | | //, { field: 'å·¥åº', title: 'å·¥åº', width: 125 } |
| | | //, { field: 'åä»·', title: 'åä»·', width: 125 } |
| | | //, { field: 'éé¢', title: 'éé¢', width: 125 } |
| | |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Sc_MouldProdOutBill/DeltetMouldProdOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "Pay_SingleBalBill/DeltetSingleBalBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HCloseMan").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcNumber": "", "HProcName": "", "HSourceCode": "", "HSourceName": "", "HEmpCode": "", "HEmpName": "", "HTimes": 0, "HQty": 0, "HPrice": 0, "HPriceRate": 0, "HSubsidyQty": 0, "HSubsidyMoney": 0, "HSubsidyTotal": 0, "HDeuctTotal": 0, "HPackQty": 0, "HPackPrice": 0, "HPackMoney": 0, "HPackMaterID": 0, "HMoney": 0, "HICMOInterID": 0, "HICMOBillNo": 0, "HProcReportInterID": 0, "HProcReportEntryID": 0, "HProcReportBillNo": 0, "HProcPlanInterID": 0, "HProcPlanEntryID": 0, "HProcPlanBillNo": 0, "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HRelationQty": 0, "HRelationQty": 0, "HRelationMoney": 0, "HCloseMan": 0, "HCloseDate": 0, "HCloseType": 0, "HRemark": "" }; |
| | | var NewRow = { |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": "" |
| | | , "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HTimes": 0, "HQty": 0, "HPrice": 0, "HMoney": 0 |
| | | , "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HCloseDate": 0, "HRemark": "" }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | //table.cache["mainTable"].push(AddRow[rows]); |
| | |
| | | , "Box2": "" //éåå· |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | | , "HMaker": data.å¶å人 |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HMakeDate": data.å¶åæ¥æ |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | }); |
| | | |
| | | } else { |
| | |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(shijian); |
| | | $("#HInterID").val(0); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | } |
| | | }); |
| | | } |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HPayTypeName").val(checkStatus.data[0].å·¥èµç±»å); |
| | | $("#HPayTypeName").val(checkStatus.data[0].å·¥èµç±»ååç§°); |
| | | $("#HPayID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 180 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 125 } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true } |
| | | , { field: 'èå代ç ', title: 'èå代ç ', width: 180 } |
| | | , { field: 'èå', title: 'èå', width: 125 } |
| | | , { field: 'HEmpNumber', title: 'èå代ç ', width: 180 } |
| | | , { field: 'HEmpName', title: 'èå', width: 125 } |
| | | , { field: 'HPayID', title: 'HPayID', width: 200, hide: true } |
| | | //, { field: 'å·¥èµä»£ç ', title: 'å·¥èµä»£ç ', width: 180 } |
| | | , { field: 'å·¥èµç±»å', title: 'å·¥èµç±»å', width: 125 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 125 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 125 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 125 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 125 } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', width: 125 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 125 } |
| | | //, { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 125 } |
| | | , { field: 'HProcID', title: 'HProcID', width: 200, hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 125 } |
| | | , { field: 'HProcNumber', title: 'å·¥åºä»£ç ', width: 125 } |
| | | //, { field: 'å·¥åº', title: 'å·¥åº', width: 125 } |
| | | //, { field: 'åä»·', title: 'åä»·', width: 125 } |
| | | //, { field: 'éé¢', title: 'éé¢', width: 125 } |
| | |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 125 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 125, hide: true } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 125, hide: true} |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 125 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 125 } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Sc_MouldProdOutBill/DeltetMouldProdOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "Pay_OtherBalBill/DeltetOtherBalBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |