| | |
| | | <button type="button" id="copy-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Copy">å¤å¶</button> |
| | | <button type="button" id="addnew-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Add">æ°å¢</button> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="planview">é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">æå°</button> |
| | | <button type="button" id="exit-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <button type="button" id="preview-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="planview">é¢è§</button> |
| | | <button type="button" id="print-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">æå°</button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <label class="layui-form-label">åæ®å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <label class="layui-form-label">æ¥æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¥èºåå·</label> |
| | | <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="hidden" name="HProcExchInterID" id="HProcExchInterID" lay-verify="HProcExchInterID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产订åå·</label> |
| | | <label class="layui-form-label">ç产订åå·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" readonly="readonly" autocomplete="off"> |
| | | <input id="HICMOInterID" name="HICMOInterID" type="hidden" value="0" /> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¢è²</label> |
| | | <label class="layui-form-label">é¢è²<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" autocomplete="off"> |
| | | <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" readonly="readonly" autocomplete="off"> |
| | | <input id="HMaterID" name="HMaterID" type="hidden" value="0" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">客æ·</label> |
| | | <label class="layui-form-label">客æ·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCusName" lay-verify="HCusName" id="HCusName" autocomplete="off"> |
| | | <input class="layui-input" name="HCusName" lay-verify="HCusName" id="HCusName" readonly="readonly" autocomplete="off"> |
| | | <input id="HCusID" name="HCusID" type="hidden" value="0" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ°´å²</label> |
| | | <label class="layui-form-label">æ°´å²<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HWaterRush" id="HWaterRush" class="layui-input" value="" style="float:left;"> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¸é</label> |
| | | <label class="layui-form-label">å¸é<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HWeight" id="HWeight" class="layui-input" value="" style="float:left;"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºé</label> |
| | | <label class="layui-form-label">æºé<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMachineSpeed" id="HMachineSpeed" class="layui-input" value="" style="float:left;"> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ°´æ¯</label> |
| | | <label class="layui-form-label">æ°´æ¯<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HWaterRate" id="HWaterRate" class="layui-input" value="" style="float:left;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ°´é</label> |
| | | <label class="layui-form-label">æ°´é<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HWaterQty" id="HWaterQty" class="layui-input" value="" style="float:left;" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | |
| | | //#region 夿æä½ç±»åå¹¶åå§åçé¢ |
| | | if (OperationType == 1) {//æ æºæ°å¢ |
| | | set_AddFNew(); |
| | | //$('#print-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else if (OperationType == 2) {//å¤å¶ |
| | | set_CopyFromGrid(linterid); |
| | | //$('#print-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | set_EditFromGrid(linterid); |
| | |
| | | var HInterID = $("#HInterID").val(); |
| | | OperationType = 2; |
| | | set_CopyFromGrid(HInterID); |
| | | |
| | | //$('#print-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | clear(); |
| | | OperationType = 1; |
| | | set_AddFNew(); |
| | | $("#HProcExchBillNo").prop("disabled", false); |
| | | //$('#print-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | /*$('#print-btn').addClass("layui-btn-disabled").attr("disabled", false);*/ |
| | | //var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | //parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | } |
| | | else { |
| | |
| | | |
| | | //#region é¢è§ |
| | | form.on("submit(planview)", function (data) { |
| | | if (linterid != "" || linterid != null) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + '&MyMsg=' + linterid.toString() + '&Type=HMouldProdInBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('å½ååæ®ID为空ï¼'); |
| | | } |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + '&MyMsg=' + linterid.toString() + '&Type=Kf_MateOutBillList', 'yes'] |
| | | , resize: false |
| | | }) |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æå° |
| | | form.on("submit(print)", function (data) { |
| | | var HInterID = $("#HInterID").val(); |
| | | |
| | | if (HInterID != "" || HInterID != null) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + '&MyMsg=' + linterid.toString() + '&Type=Kf_MateOutBillList', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('å½ååæ®ID为空ï¼'); |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + '&MyMsg=' + linterid.toString() + '&Type=Kf_MateOutBillList', 'yes'] |
| | | , resize: false |
| | | }) |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HInterID").val(0); |
| | | linterid = $("#HInterID").val(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | columns = [ |
| | | { 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', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterRuleType', title: 'ç©æåç±»', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterRuleType', title: 'ç©æå
¬å¼', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true } |
| | | , { field: 'HUnitCode', title: '计éåä½ä»£ç ', edit: 'text', event: 'HUnitCode', width: 100, hide: true } |
| | | , { field: 'HUnitName', title: '计éåä½', edit: 'text', width: 100 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', edit: 'text', width: 100, hide: true} |
| | | , { field: 'HUnitName', title: '计éåä½', width: 100 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 100, hide: true} |
| | | , { field: 'HRate', title: 'ç¨éâ°', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'éé', edit: 'text', width: 100 } |
| | | , { field: 'HPrice', title: 'åä»·', edit: 'text', width: 100, hide: true} |
| | | , { field: 'HMoney', title: 'éé¢', edit: 'text', width: 100, hide: true} |
| | | , { field: 'HWHID', title: 'HWHID', edit: 'text', width: 100, hide: true, hide: true } |
| | | , { field: 'HQty', title: 'éé', width: 100 } |
| | | , { field: 'HPrice', title: 'åä»·', width: 100, hide: true} |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, hide: true} |
| | | , { field: 'HWHID', title: 'HWHID', width: 100, hide: true, hide: true } |
| | | , { field: 'HWHCode', title: 'åæä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120, hide: true} |
| | | , { field: 'HWHName', title: 'åæä»åºåç§°', edit: 'text', width: 120, hide: true} |
| | | , { field: 'HWHName', title: 'åæä»åºåç§°', width: 120, hide: true} |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | |
| | | //#region å¤å¶ |
| | | function set_CopyFromGrid(linterid) { |
| | | //æ ¹æ®æå¤å¶åæ®çå
ç è·ååæ®ä¿¡æ¯ï¼å¹¶åå§åé¡µé¢ |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HMaterRuleType": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HQtyMust": 0, "HRate": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HRemark": "" }]; |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HMaterRuleType":"", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HQtyMust": 0, "HRate": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HRemark": "" }]; |
| | | |
| | | table.render(option); |
| | | |
| | | //è¦çåæ®å
ç ãåæ®å·ãæ¥æ |
| | |
| | | $("#HProcExchInterID").val("0"); |
| | | $("#HProcExchEntryID").val("0"); |
| | | $("#HProcExchBillNo").val(""); |
| | | |
| | | $("#HProcExchBillNo").prop("disabled", false); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¼è¾ |
| | | function set_EditFromGrid(linterid) { |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HMaterRuleType": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HQtyMust": 0, "HRate": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HRemark": "" }]; |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HMaterRuleType":"", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HQtyMust": 0, "HRate": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HRemark": "" }]; |
| | | table.render(option); |
| | | |
| | | $("#HProcExchBillNo").prop("disabled", true); |
| | |
| | | function set_EditForm(linterid){ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Kf_MateOutBill/Kf_MateOutBillListCheckDetai", |
| | | async:false, |
| | | type: "GET", |
| | | data: { |
| | | "HID": linterid |
| | |
| | | , "HICMOInterID": data.ä»»å¡åå
ç |
| | | , "HICMOEntryID": data.ä»»å¡ååå
ç |
| | | , "HICMOBillNo": data.ä»»å¡åå· |
| | | , "HProExitInterID": data.å·¥åºæµè½¬å¡å
ç |
| | | , "HProExitEntryID": data.å·¥åºæµè½¬å¡åå
ç |
| | | , "HProExitBillNo": data.å·¥åºæµè½¬å¡å· |
| | | , "HProcExchInterID": data.å·¥åºæµè½¬å¡å
ç |
| | | , "HProcExchEntryID": data.å·¥åºæµè½¬å¡åå
ç |
| | | , "HProcExchBillNo": data.å·¥åºæµè½¬å¡å· |
| | | , "HMaterID": data.主产åå
ç |
| | | , "HMaterName": data.主产ååç§° |
| | | , "HVerNo": data.è±çå· |
| | |
| | | , "HWaterRush": data.æ°´å² |
| | | , "HWaterQty": data.æ°´é |
| | | , "HWaterRate": data.æ°´æ¯ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ |
| | | }); |
| | | |
| | | } else { |
| | |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Kf_MateOutBill/Kf_MateOutBillListProjectDetai', |
| | | async:false, |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | |
| | | option.data[rowIndex + i].HDesignLife = 0; |
| | | option.data[rowIndex + i].HLeaveLife = 0; |
| | | option.data[rowIndex + i].HQty = 1; |
| | | option.data[rowIndex + i].HMoney = 0; |
| | | |
| | | |
| | | //æ ¹æ®ç©æç ç©æå
¬å¼ è®¡ç® éé |
| | | var HWeight = $("#HWeight").val(); |
| | | var HWaterQty = $("#HWaterQty").val(); |
| | | if (option.data[rowIndex + i].HMaterRuleType == "ææ") { |
| | | option.data[rowIndex + i].HQty = option.data[rowIndex + i].HRate * HWeight; |
| | | } else if (option.data[rowIndex + i].HMaterRuleType == "å©å") { |
| | | option.data[rowIndex + i].HQty = option.data[rowIndex + i].HRate * HWaterQty; |
| | | } |
| | | } |
| | | table.render(option); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | layer.closeAll(); |
| | | //layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | // return Result = false; |
| | | //} |
| | | |
| | | if ($("#HBillNo").val() == '' || $("#HBillNo").val() == null) { |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HDate").val() == '' || $("#HDate").val() == null) { |
| | | layer.msg("æ¥æä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HDeptID").val() == '0' || $("#HDeptID").val() == null) { |
| | | layer.msg("车é´ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HProcExchBillNo").val() == '' || $("#HProcExchBillNo").val() == null) { |
| | | layer.msg("å·¥èºåå·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HICMOBillNo").val() == '' || $("#HICMOBillNo").val() == null) { |
| | | layer.msg("ç产订åå·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HMaterID").val() == '0' || $("#HMaterID").val() == null) { |
| | | layer.msg("é¢è²ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HCusID").val() == '0' || $("#HCusID").val() == null) { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | |
| | | return Result = false; |
| | | } |
| | | |
| | | var HProcExchBillNo = $("#HProcExchBillNo").val(); |
| | | var resultData = getHWeightByHProcExchBillNo(HProcExchBillNo); |
| | | if (typeof (resultData.HWeight) == "undefined") { |
| | | return Result = false; |
| | | } else { |
| | | var HWeight = resultData.HWeight * 1; |
| | | temp = temp * 1; |
| | | if (temp > HWeight) { |
| | | layer.msg("å¸éä¸è½è¶
åºå·¥èºåå¯¹åºæ°éï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | } |
| | | //var HProcExchBillNo = $("#HProcExchBillNo").val(); |
| | | //var resultData = getHWeightByHProcExchBillNo(HProcExchBillNo); |
| | | //if (typeof (resultData.HWeight) == "undefined") { |
| | | // return Result = false; |
| | | //} else { |
| | | // var HWeight = resultData.HWeight * 1; |
| | | // temp = temp * 1; |
| | | // if (temp > HWeight) { |
| | | // layer.msg("å¸éä¸è½è¶
åºå·¥èºåå¯¹åºæ°éï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | // } |
| | | //} |
| | | |
| | | //temp = $("#HLong").val() + ""; |
| | | //if (temp == "") { |
| | |
| | | if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") { |
| | | sSubStr = JSON.parse(sSubStr); |
| | | for (var i = 0; i < sSubStr.length; i++) { |
| | | if (sSubStr[i].HMaterID == "") { |
| | | if (sSubStr[i].HMaterID == "0") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,ç©æä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if (sSubStr[i].HUnitID == "") { |
| | | if (sSubStr[i].HUnitID == "0") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,计éåä½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | |
| | | if (result.code == 1) { |
| | | var data = result.data.h_v_Sc_ProcessExchangeBillList[0]; |
| | | resultData = data; |
| | | var HWaterRate = $("#HWaterRate").val(); |
| | | |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HICMOInterID": data.HICMOInterID |
| | |
| | | , "HCusID": data.HCusID |
| | | , "HCusName": data.HCusName |
| | | , "HWeight": data.HWeight |
| | | , "HWaterQty": data.HWeight * HWaterRate |
| | | //, "HLong": data.ç±³æ° |
| | | //, "HMaterEmpID": data.ææµäººå
ç |
| | | //, "HMaterEmpName": data.ææµäººåç§° |