应付单,收料通知单,退料通知单,采购订单,退料通知单,采购退料单测试优化
| | |
| | | for (var j = i + 1; j < rowdataEntry.length; j++) { |
| | | if (rowdataEntry[j].HMaterID == item.HMaterID) { |
| | | rowdataEntry[i].HQty += rowdataEntry[j].HQty;//æ°é |
| | | rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HMoney += rowdataEntry[j].HMoney;//éé¢ |
| | | rowdataEntry[i].HPrice = rowdataEntry[i].HMoney / rowdataEntry[i].HQty;//åä»· |
| | | //rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HTaxMoney = Number((rowdataEntry[i].HMoney * rowdataEntry[i].HTaxRate).toFixed(4))//ç¨é¢ |
| | | rowdataEntry[i].HlineTotal = rowdataEntry[i].HMoney + rowdataEntry[i].HTaxMoney //ä»·ç¨å计 |
| | | var HExRate = $("#HExRate").val(); |
| | |
| | | for (var j = i + 1; j < rowdataEntry.length; j++) { |
| | | if (rowdataEntry[j].HMaterID == item.HMaterID) { |
| | | rowdataEntry[i].HQty += rowdataEntry[j].HQty; |
| | | rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HMoney += rowdataEntry[j].HMoney;//éé¢ |
| | | rowdataEntry[i].HPrice = rowdataEntry[i].HMoney / rowdataEntry[i].HQty;//åä»· |
| | | rowdataEntry[i].HTaxMoney = Number((rowdataEntry[i].HMoney * rowdataEntry[i].HTaxRate).toFixed(4))//ç¨é¢ |
| | | rowdataEntry[i].HlineTotal = rowdataEntry[i].HMoney + rowdataEntry[i].HTaxMoney //ä»·ç¨å计 |
| | | var HExRate = $("#HExRate").val(); |
| | |
| | | for (var j = i + 1; j < rowdataEntry.length; j++) { |
| | | if (rowdataEntry[j].HMaterID == item.HMaterID) { |
| | | rowdataEntry[i].HQty += rowdataEntry[j].HQty;//æ°é |
| | | rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HMoney += rowdataEntry[j].HMoney;//éé¢ |
| | | rowdataEntry[i].HPrice = rowdataEntry[i].HMoney / rowdataEntry[i].HQty;//åä»· |
| | | rowdataEntry[i].HTaxMoney = Number((rowdataEntry[i].HMoney * rowdataEntry[i].HTaxRate).toFixed(4))//ç¨é¢ |
| | | rowdataEntry[i].HlineTotal = rowdataEntry[i].HMoney + rowdataEntry[i].HTaxMoney //ä»·ç¨å计 |
| | | var HExRate = $("#HExRate").val(); |
| | |
| | | for (var j = i + 1; j < rowdataEntry.length; j++) { |
| | | if (rowdataEntry[j].HMaterID == item.HMaterID) { |
| | | rowdataEntry[i].HQty += rowdataEntry[j].HQty; |
| | | rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HMoney += rowdataEntry[j].HMoney;//éé¢ |
| | | rowdataEntry[i].HPrice = rowdataEntry[i].HMoney / rowdataEntry[i].HQty;//åä»· |
| | | rowdataEntry[i].HTaxMoney = Number((rowdataEntry[i].HMoney * rowdataEntry[i].HTaxRate).toFixed(4))//ç¨é¢ |
| | | rowdataEntry[i].HlineTotal = rowdataEntry[i].HMoney + rowdataEntry[i].HTaxMoney //ä»·ç¨å计 |
| | | var HExRate = $("#HExRate").val(); |
| | |
| | | //é䏿ºååæ°éä¸å¯ç¼è¾ |
| | | for (var i = 0; i < option.cols[0].length; i++) { |
| | | if (option.cols[0][i]["field"] == "HQty") { |
| | | option.cols[0][i]["edit"] = false; |
| | | } |
| | | if (option.cols[0][i]["field"] == "HMoney") { |
| | | option.cols[0][i]["edit"] = false; |
| | | } |
| | | |
| | |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | debugger |
| | | //è·ååè¡¨æ°æ® |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | |
| | | for (var j = i + 1; j < rowdataEntry.length; j++) { |
| | | if (rowdataEntry[j].HMaterID == item.HMaterID) { |
| | | rowdataEntry[i].HQty += rowdataEntry[j].HQty;//æ°é |
| | | rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HMoney += rowdataEntry[j].HMoney;//éé¢ |
| | | rowdataEntry[i].HPrice = rowdataEntry[i].HMoney / rowdataEntry[i].HQty;//åä»· |
| | | rowdataEntry[i].HTaxMoney = Number((rowdataEntry[i].HMoney * rowdataEntry[i].HTaxRate).toFixed(4))//ç¨é¢ |
| | | rowdataEntry[i].HlineTotal = rowdataEntry[i].HMoney + rowdataEntry[i].HTaxMoney //ä»·ç¨å计 |
| | | var HExRate = $("#HExRate").val(); |
| | |
| | | for (var j = i + 1; j < rowdataEntry.length; j++) { |
| | | if (rowdataEntry[j].HMaterID == item.HMaterID) { |
| | | rowdataEntry[i].HQty += rowdataEntry[j].HQty; |
| | | rowdataEntry[i].HMoney = rowdataEntry[i].HQty * rowdataEntry[i].HPrice//éé¢=æ°é*åä»· |
| | | rowdataEntry[i].HMoney += rowdataEntry[j].HMoney;//éé¢ |
| | | rowdataEntry[i].HPrice = rowdataEntry[i].HMoney / rowdataEntry[i].HQty;//åä»· |
| | | rowdataEntry[i].HTaxMoney = Number((rowdataEntry[i].HMoney * rowdataEntry[i].HTaxRate).toFixed(4))//ç¨é¢ |
| | | rowdataEntry[i].HlineTotal = rowdataEntry[i].HMoney + rowdataEntry[i].HTaxMoney //ä»·ç¨å计 |
| | | var HExRate = $("#HExRate").val(); |
| | |
| | | } |
| | | sWhere += addSWhereByOpenType(); |
| | | //æ ¹æ®ç¨æ·è¿æ»¤ç¨æ·å
³è客æ·çè®°å½ |
| | | sWhere += getSWhereByHUser(); |
| | | /*sWhere += getSWhereByHUser();*/ |
| | | get_DisplayPage(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery(table, option,number) { |
| | | var HBeginDate = $("#HDate").val();//å¼å§æ¥æ |
| | | var HEndDate = $("#HDate1").val();//ç»ææ¥æ |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var HSupID = $("#HSupID").val(); |
| | | var HDeptID = $("#HDeptID").val(); |
| | |
| | | sWhere += addSWhereByOpenType(); |
| | | //æ·»å æ¥è¯¢æ¡ä»¶ï¼æ ¹æ®å½åç»å½ç¨æ·å
³èèåè¿åæ°æ® |
| | | //sWhere += " and HUserID =" + sessionStorage["Czybm"] |
| | | var index = layer.load(0); |
| | | get_Display(sWhere); |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |
| | |
| | | , "HUnitID": dataArray[i].HUnitID |
| | | , "计éåä½": dataArray[i].计éåä½ |
| | | , "HWHID": dataArray[i].HWHID |
| | | , "éæä»åº": dataArray[i].éæä»åº |
| | | , "éæä»åº": dataArray[i].ä»åº |
| | | , "HSPID": dataArray[i].HSPID |
| | | , "ä»ä½åç§°": dataArray[i].ä»ä½åç§° |
| | | , "HSecUnitID": dataArray[i].HSecUnitID |
| | | , "è¾
å©åä½": dataArray[i].è¾
å©åä½ |
| | | , "HQty": dealDoubleToFixed(dataArray[i].æ°é, 1) |
| | | , "HPrice": dealDoubleToFixed(dataArray[i].åä»·, 3) |
| | | , "HTaxPrice": dealDoubleToFixed(dataArray[i].å«ç¨åä»·, 3) |
| | | , 'HDiscountRate': dataArray[i].ææ£ç // |
| | | , 'HRelTaxPrice': "0" |
| | | /*, "HTaxPrice": dealDoubleToFixed(dataArray[i].å«ç¨åä»·, 3)*/ |
| | | /*, 'HDiscountRate': dataArray[i].ææ£ç*/ // |
| | | /*, 'HRelTaxPrice': "0"*/ |
| | | , "HTaxRate": dataArray[i].ç¨ç |
| | | , 'HTaxMoney': dataArray[i].ç¨é¢ // |
| | | , "HMoney": dealDoubleToFixed(dataArray[i].éé¢, 2) |
| | |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | OperationType = 1;//设置æä½ç±»å为æ°å¢ |
| | | } |
| | | |
| | | //#endregion |
| | |
| | | layer.msg("è¯·éæ©ä»åºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HManagerName").val() == 0) { |
| | | layer.msg("è¯·éæ©ä¸»ç®¡ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | //if ($("#HManagerName").val() == 0) { |
| | | // layer.msg("è¯·éæ©ä¸»ç®¡ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | //åè¡¨æ°æ®æ£éªç®å表åéªè¯ |
| | | //åç»å¯ç¨å¤ä¸ªæ°ç»åå¨ååæ©å± |
| | | for (var i = 0; i < option.data.length; i++) { |
| | |
| | | } |
| | | var rowData = option.data[i]; |
| | | for (var col of Object.keys(rowData)) { |
| | | if (rowData[col] == "0" && col != "LAY_TABLE_INDEX") { |
| | | if (rowData[col] == "0" && (col == "HQty" || col == "HMaterID" || col == "HUnitID")) { |
| | | layer.msg("第" + (i + 1) + "è¡ï¼" + col + "ä¸è½ä¸º0ï¼"); |
| | | return; |
| | | } |
| | |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Warehouse.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Warehouse.html?Type=Warehouse', 'yes'] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (typeof (OptionData[0].HItemID) != undefined) { |
| | | obj.update({ |
| | | "HWHID": OptionData.HItemID |
| | | , "éæä»åº": OptionData.ä»åºåç§° |
| | | "HWHID": OptionData[0].HItemID |
| | | , "éæä»åº": OptionData[0].ä»åºåç§° |
| | | }) |
| | | } |
| | | OptionData = ""; |
| | | } |
| | | }) |
| | | } |
| | |
| | | $("#HManagerName").val(obj[0].èååç§°); |
| | | $("#HManagerID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetGyCur(obj) { |
| | | $("#HCurName").val(obj.è´§å¸åç§°); |
| | | $("#HCurID").val(obj.HItemID); |
| | | $("#HExRate").val(obj.æ±ç); |
| | | } |
| | | //åå»è¿åç©æ |
| | | function GetGyMaterial(data) { |
| | | OptionData = data |
| | |
| | | //#region å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | | get_Display(sWhere); |
| | | get_FastQuery(); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | $("#HSSName").val(obj[0].ç»ç®æ¹å¼); |
| | | $("#HAddress").val(obj[0].å°åº); |
| | | $("#HPSStyleName").val(obj[0].éè´æ¹å¼); |
| | | $("#HPSStyleID").val(obj[0].HPSStyleID == "" ? 0 : obj[0].HPSStyleID); |
| | | $("#HPSStyleID").val(obj[0].HPSStyleID == null ? 0 : obj[0].HPSStyleID); |
| | | } |
| | | |
| | | //æ¶é´æ ¼å¼ |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¥èºåå·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HProcExchBillNo" id="HProcExchBillNo" class="layui-input" value="" style="float:left;"> |
| | | <input type="text" name="HProcExchBillNo" id="HProcExchBillNo" class="layui-input" value="" style="float: left; width: 150px;"> |
| | | <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" lay-verify="HProcExchInterID" value="0"> |
| | | <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" lay-verify="HProcExchEntryID" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchProcExchBill" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©æµè½¬å¡å¼¹çª |
| | | form.on('submit(btnSearchProcExchBill)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æµè½¬å¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBillList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HProcExchBillNo").val(checkStatus.data[0].åæ®å·); |
| | | getMainInfoByHProcExchBillNo(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region éæ©ææµäººå¼¹çª |
| | |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,计éåä½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if (sSubStr[i].HMaterRuleType == null || sSubStr[i].HMaterRuleType == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,ç©æå
¬å¼ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | //if (sSubStr[i].HMaterRuleType == null || sSubStr[i].HMaterRuleType == "") { |
| | | // layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,ç©æå
¬å¼ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | //} |
| | | temp = sSubStr[i].HRate + ""; |
| | | if (temp == "" || temp *1 == "0") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,ç¨é为空æä¸º0!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | |
| | | , "HDeptName": dataArray[0].é¨é¨ |
| | | , "HManagerID": dataArray[0].HManagerID |
| | | , "HManagerName": dataArray[0].主管 |
| | | , "HWHID": dataArray[0].HWHID |
| | | , "HWHName": dataArray[0].ä»åº |
| | | , "HWHID": dataArray[0].主表ä»åºID == null ? 0 : dataArray[0].主表ä»åºID |
| | | , "HWHName": dataArray[0].主表ä»åº |
| | | , "HEmpID": dataArray[0].HEmpID |
| | | , "HEmpName": dataArray[0].ä¸å¡å |
| | | , "HSupID": dataArray[0].HSupID |
| | | , "HSupName": dataArray[0].ä¾åºå |
| | | , "HSecManagerID": dataArray[0].HSecManagerID |
| | | , "HSecManagerName": dataArray[0].éªæ¶å |
| | | , "HKeeperID": dataArray[0].HKeeperID |
| | | , "HKeeperName": dataArray[0].ä¿ç®¡å |
| | | //, "HSecManagerID": dataArray[0].HSecManagerID |
| | | //, "HSecManagerName": dataArray[0].éªæ¶å |
| | | //, "HKeeperID": dataArray[0].HKeeperID |
| | | //, "HKeeperName": dataArray[0].ä¿ç®¡å |
| | | , "HCurID": dataArray[0].HCurID |
| | | , "HCurName": dataArray[0].å¸å« |
| | | , "HExRate": dataArray[0].æ±ç |
| | |
| | | , "HSecUnitID": dataArray[i].HSecUnitID |
| | | , "è¾
å©åä½": dataArray[i].è¾
å©åä½ |
| | | , "HQty": dealDoubleToFixed(dataArray[i].æ°é, 1) |
| | | , "HQtyMust": dealDoubleToFixed(dataArray[i].æ°é, 1) |
| | | , "HPrice": dealDoubleToFixed(dataArray[i].åä»·, 3) |
| | | , 'HDiscountRate': dataArray[i].ææ£ç // |
| | | , 'HRelTaxPrice': "0" |
| | |
| | | layer.msg("è¯·éæ©ä»åºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HKeeperID").val() == 0) { |
| | | layer.msg("è¯·éæ©ä¿ç®¡åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HSecManagerID").val() == 0) { |
| | | layer.msg("è¯·éæ©éªæ¶åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | //if ($("#HKeeperID").val() == 0) { |
| | | // layer.msg("è¯·éæ©ä¿ç®¡åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | //if ($("#HSecManagerID").val() == 0) { |
| | | // layer.msg("è¯·éæ©éªæ¶åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | |
| | | |
| | | var num = []; |
| | |
| | | if (checkStatus.data.length == 0) { |
| | | return layer.msg("请è³å°éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HMainSourceInterID": "0" |
| | | , "HMainSourceEntryID": "0" |
| | | , "HMainSourceBillNo": "" |
| | | , "HMainSourceBillType": $("#BillType").val() |
| | | |
| | | , "HDeptID": checkStatus.data[0].HDeptID |
| | | , "HDeptName": checkStatus.data[0].é¨é¨ |
| | | , "HManagerID": checkStatus.data[0].HManagerID |
| | | , "HManagerName": checkStatus.data[0].主管 |
| | | , "HWHID": checkStatus.data[0].主表ä»åºID == null ? 0 : checkStatus.data[0].主表ä»åºID |
| | | , "HWHName": checkStatus.data[0].主表ä»åº |
| | | , "HEmpID": checkStatus.data[0].HEmpID |
| | | , "HEmpName": checkStatus.data[0].ä¸å¡å |
| | | , "HSupID": checkStatus.data[0].HSupID |
| | | , "HSupName": checkStatus.data[0].ä¾åºå |
| | | //, "HSecManagerID": checkStatus.data[0].HSecManagerID |
| | | //, "HSecManagerName": checkStatus.data[0].éªæ¶å |
| | | //, "HKeeperID": checkStatus.data[0].HKeeperID |
| | | //, "HKeeperName": checkStatus.data[0].ä¿ç®¡å |
| | | , "HCurID": checkStatus.data[0].HCurID |
| | | , "HCurName": checkStatus.data[0].å¸å« |
| | | , "HExRate": checkStatus.data[0].æ±ç |
| | | /*, "HAddress": data.交货å°ç¹*/ |
| | | , "HRemark": checkStatus.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HInnerBillNo": checkStatus.data[0].å
é¨åæ®å· |
| | | }); |
| | | |
| | | //layer.alert("ä½ å·²éæ©" + checkStatus.data.length + "æ¡æ°æ®"); |
| | | //è·åæ¶æéç¥å代ç |
| | | var ProcessNumber = []; |
| | |
| | | option.data.push({ |
| | | "HMaterID": checkStatus.data[j].HMaterID, "ç©æä»£ç ": checkStatus.data[j].ç©æä»£ç , "ç©æåç§°": checkStatus.data[j].ç©æåç§°, "è§æ ¼åå·": checkStatus.data[j].è§æ ¼åå·, |
| | | "HUnitID": checkStatus.data[j].HUnitID, "计éåä½": checkStatus.data[j].计éåä½, |
| | | "HQty": checkStatus.data[j].æ°é-checkStatus.data[j].å
³èæ°é,"HQtyMust": checkStatus.data[j].åºæ¶æ°é, "HPrice": checkStatus.data[j].åä»·, |
| | | "HMoney": checkStatus.data[j].éé¢, "HTaxRate": checkStatus.data[j].ç¨ç, "HTaxMoney": checkStatus.data[j].ç¨é¢,"HWHID": checkStatus.data[j].HWHID, |
| | | "HQty": checkStatus.data[j].æ°é - checkStatus.data[j].å
³èæ°é, "HQtyMust": checkStatus.data[j].æ°é - checkStatus.data[j].å
³èæ°é, "HPrice": checkStatus.data[j].åä»·, |
| | | "HMoney": (checkStatus.data[j].æ°é - checkStatus.data[j].å
³èæ°é) * Number(checkStatus.data[j].åä»·), "HTaxRate": checkStatus.data[j].ç¨ç, "HTaxMoney": checkStatus.data[j].ç¨é¢, "HWHID": checkStatus.data[j].HWHID, |
| | | "æ¶æä»åº": checkStatus.data[j].æ¶æä»åº,"HSPID": checkStatus.data[j].HSPID,"ä»ä½åç§°": checkStatus.data[j].ä»ä½åç§°,"HSecUnitID": checkStatus.data[j].HSecUnitID,"è¾
å©åä½": checkStatus.data[j].è¾
å©åä½, |
| | | "HSourceBillNo": checkStatus.data[j].åæ®å·, "HSourceBillType": checkStatus.data[j].HBillType, "HSourceInterID": checkStatus.data[j].hmainid, "HSourceEntryID": checkStatus.data[j].hsubid |
| | | }) |