| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , height: 500 |
| | | , loading: false |
| | | , cols: [[ //å表 |
| | | { type: 'checkbox', totalRowText: 'å计è¡', style: 'background-color:#efefef4d;' } |
| | | , { type: 'numbers', title: 'åºå·', width: 100, totalRow: true, style: 'background-color:#efefef4d;' } |
| | | , { type: 'numbers', title: 'åºå·', width: 100, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 150, edit: 'text', event: "HMaterID" }//f7 |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 150, style: 'background-color:#efefef4d;' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, style: 'background-color:#efefef4d;' }//f7 |
| | | , { field: 'HQty', title: 'æ°é', width: 100, edit: 'text' } |
| | | , { field: 'HQty', title: 'æ°é', width: 100, totalRow: true, edit: 'text' } |
| | | , { field: 'HPrice', title: 'åä»·', width: 100, edit: 'text' } |
| | | , { field: 'HTaxRate', title: 'ç¨ç', width: 100, edit: 'text' } |
| | | , { field: 'HTaxPrice', title: 'å«ç¨åä»·', width: 100, edit: 'text' } |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HlineTotal', title: 'ä»·ç¨å计', width: 100, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, totalRow: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HlineTotal', title: 'ä»·ç¨å计', width: 100, totalRow: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HDate', title: 'äº¤è´§æ¥æ', event: "HDate", width: 120 } |
| | | , { field: 'HRemark', title: '夿³¨', width: 100, edit: 'text' } |
| | | |
| | |
| | | |
| | | //#region æå° |
| | | function get_PrintReport() { |
| | | //#region 夿æºåç¶æ |
| | | var HSourceBillData = ""; |
| | | var HSourceBillData = getSourceBillStatus_SeOrderBill(); //è·åæºåæ°æ® |
| | | if (HSourceBillData != "none") { |
| | | if (HSourceBillData.length == 0) { |
| | | layer.alert("æå°å¤±è´¥!æªæ¥è¯¢å°åæ®ä¿¡æ¯!", { icon: 5 }); |
| | | return; |
| | | } else if (HSourceBillData[0]["ç¶æ"] != "å·²å®¡æ ¸") { |
| | | layer.alert("æå°å¤±è´¥!åæ®ç¶ææªä¸º'å·²å®¡æ ¸'ç¶æ!", { icon: 5 }); |
| | | return; |
| | | } |
| | | } else { |
| | | return; |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | var InterID = $("#HInterID").val(); |
| | | $.ajax({ |
| | | type: "GET", |
| | |
| | | $("#HBillMoney").val(HBillMoney * 0.5); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è·åæºå-éå®è®¢ååæ®ç¶æ |
| | | function getSourceBillStatus_SeOrderBill() { |
| | | var HSourceBillData = "none"; |
| | | var sWhere = " and hmainid = " + $("#HInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xs_SeOrderBill/list', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | HSourceBillData = data1.data; |
| | | } else { |
| | | layer.alert(data1.code + "åæ®ç¶æå¤æå¤±è´¥ï¼", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | return HSourceBillData; |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | |