| | |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0"> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®é¨é¨</label> |
| | | <label class="layui-form-label">æºåç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptList" style="width:40px;"> |
| | | <select name="BillType" id="BillType" lay-filter="BillType" style="width: 180px; "> |
| | | <option style="color:blue;" selected="selected" value="1401">éå®è®¢å</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMainSource" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®é¨é¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" " class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HEmpName" id="HEmpName" " class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">主管</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HManagerID" id="HManagerID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HManagerList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">客æ·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSupName" id="HSupName" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¸å«</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCurName" id="HCurName" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HCurID" id="HCurID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HCurList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ±ç<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HExRate" id="HExRate" autocomplete="off" value="0" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è系人</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HLinkMan" id="HLinkMan" autocomplete="off" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">èç³»çµè¯</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HLinkPhone" id="HLinkPhone" autocomplete="off" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é宿¹å¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSellSName" id="HSellSName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HSellSName" id="HSellSName" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSellSID" id="HSellSID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSellSList" style="width:40px;"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HSellSList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:900px;"> |
| | | <label class="layui-form-label">客æ·</label> |
| | | <div class="layui-input-inline" style="width:700px;"> |
| | | <input type="text" name="HSupName" id="HSupName" class="layui-input" value="" style="float:left;width:465px;"> |
| | | <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä»ç®¡</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºåç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="BillType" id="BillType" lay-filter="BillType" style="width: 180px; "> |
| | | <option style="color:blue;" selected="selected" value="1401">éå®è®¢å</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMainSource" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">è¿è¾å
¬å¸</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HConveyCompName" id="HConveyCompName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HConveyCompID" id="HConveyCompID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HConveyCompList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">è¿è¾æ¹å¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HConveyTypeName" id="HConveyTypeName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HConveyTypeID" id="HConveyTypeID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HConveyTypeList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">èç³»çµè¯</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HLinkPhone" id="HLinkPhone" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è系人</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HLinkMan" id="HLinkMan" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">客æ·ä½é¢</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCusBalance" id="HCusBalance" autocomplete="off" readonly> |
| | | <input class="layui-input" name="HCusBalance" id="HCusBalance" autocomplete="off" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿¡ç¨é¢åº¦</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCreditRating_Now" id="HCreditRating_Now" autocomplete="off" readonly> |
| | | <input class="layui-input" name="HCreditRating_Now" id="HCreditRating_Now" autocomplete="off" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¯ç¨é¢åº¦</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HAvailableBalance" id="HAvailableBalance" autocomplete="off" readonly> |
| | | <input class="layui-input" name="HAvailableBalance" id="HAvailableBalance" autocomplete="off" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--éèåæ®µ--> |
| | | <div class="layui-row" style="display:none;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿è¾å
¬å¸</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HConveyCompName" id="HConveyCompName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HConveyCompID" id="HConveyCompID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HConveyCompList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿è¾æ¹å¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HConveyTypeName" id="HConveyTypeName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HConveyTypeID" id="HConveyTypeID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HConveyTypeList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label"></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HConveyMoney" id="HConveyMoney" autocomplete="off" value="0" > |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿è´¹</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCarriage" id="HCarriage" autocomplete="off" value="0" onfocus="this.select();"> |
| | | <input class="layui-input" name="HCarriage" id="HCarriage" autocomplete="off" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="display:none;"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID" value="0"> |
| | | <input type="hidden" name="HOWNERID" id="HOWNERID" lay-verify="HOWNERID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è°åºä»åº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSCWHName" id="HSCWHName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HSCWHID" id="HSCWHID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSCWHList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ ¸é人</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCheckStatusMan" id="HCheckStatusMan" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¸å«</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCurName" id="HCurName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HCurID" id="HCurID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HCurList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®è®¢åå·</label> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HInnerBillNo" id="HInnerBillNo" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">主管</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HManagerID" id="HManagerID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HManagerList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ ¸é人</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCheckStatusMan" id="HCheckStatusMan" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | //#region 夿æä½ç±»åå¹¶åå§åçé¢ |
| | | if (OperationType == 1) { //æ æºåæ°å¢ |
| | | $("#HItemID").val(0); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | /* $("#HItemID").val(0);*/ |
| | | |
| | | //çæåæ®å·åå
ç |
| | | get_MAXNum(); |
| | | |
| | | //æ ¹æ®ç¨æ·è·å对åºèåãé¨é¨ãéå®ä¸»ç®¡ |
| | | getCzyglByUser(); |
| | | //åå§åæ¥æãå建人ãå建æ¶é´ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | else if (OperationType == 3) { //ç¼è¾ |
| | | //ä¿®æ¹æ¶ä¸»è¡¨ID |
| | |
| | | //ç¼è¾ç¶ææ¶ï¼æ ¹æ®å
ç ï¼è·åä¿¡æ¯å¹¶åå
¥çé¢ |
| | | RoadBillMain(linterid); |
| | | } |
| | | else if (OperationType == 4) { //æµè§ |
| | | $("#HItemID").val(linterid); |
| | | |
| | | //ç¼è¾ç¶ææ¶ï¼æ ¹æ®å
ç ï¼è·åä¿¡æ¯å¹¶åå
¥çé¢ |
| | | RoadBillMain(linterid); |
| | | $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);//ä¿ååå è½½æ°æ®æ¶ä¿åæé®ç¦ç¨ |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //设置ç»ç» |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]); |
| | | |
| | | DisPlay_HideColumn(); |
| | | |
| | |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HMaterID": 0, "ç©æä»£ç ": "", "ç©æåç§°": "", "è§æ ¼åå·": "", "HUnitID": 0, "计éåä½": "", "HWHID": $("#HWHID").val(), "åè´§ä»åº": $("#HWHName").val(), "HQtyMust": "0", |
| | | "HQty": "0", "HQty_Full": "0", "HQty_Empty": "0", "HQty_Back": "0", "HPrice": "0", "HMoney": "0", "HCostPrice": "0", "HCostMoney": "0", |
| | | "HSalePrice": "0", "HSeOrderInterID": 0, "HSeOrderEntryID": 0, "HSeOrderBillNo": "", "HRemark": "" |
| | | "HMaterID": "0" |
| | | , "ç©æä»£ç ": "" |
| | | , "ç©æåç§°": "" |
| | | , "è§æ ¼åå·": "" |
| | | , "HUnitID": "0" |
| | | , "计éåä½": "" |
| | | , "HQtyMust": "0" |
| | | , "HQty": "0" |
| | | , "HPrice": "0" |
| | | , "HTaxPrice": "0" |
| | | , "HTaxRate": "0" |
| | | , "HMoney": "0" |
| | | , "HTaxMoney": "0" |
| | | , "HWHID": $("#HWHID").val() |
| | | , "åè´§ä»åº": $("#HWHName").val() |
| | | , "HRemark": "" |
| | | |
| | | , "HQty_Full": "0" |
| | | , "HQty_Empty": "0" |
| | | , "HQty_Back": "0" |
| | | , "HCostPrice": "0" |
| | | , "HCostMoney": "0" |
| | | , "HSalePrice": "0" |
| | | |
| | | , "HSeOrderInterID": 0 |
| | | , "HSeOrderEntryID": 0 |
| | | , "HSeOrderBillNo": "" |
| | | |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | , "HRelationQty": "0" |
| | | , "HRelationMoney": "0" |
| | | |
| | | , 'HSPID': "0" |
| | | , 'HSPName': "" |
| | | , 'HSPGroupID': "0" |
| | | , "HSPGroupName": "" |
| | | , 'HSCWHID': "0" |
| | | , 'HSCWHName': "" |
| | | , 'HSCSPID': "0" |
| | | , 'HSCSPName': "" |
| | | , 'HBatchNo': "" |
| | | , 'HPOOrderInterID': "0" |
| | | , 'HPOOrderEntryID': "0" |
| | | , 'HPOOrderBillNo': "" |
| | | |
| | | , 'HPropertyID': "0" |
| | | , 'HPropertyName': "" |
| | | , 'HSecUnitID': "0" |
| | | , 'HSecUnitName': "" |
| | | , 'HSecUnitRate': "0" |
| | | |
| | | |
| | | , 'HEngineNum': "" |
| | | , 'HUnderPanNum': "" |
| | | , 'HLeaveFactCard': "" |
| | | }; |
| | | |
| | | switch (obj.event) { |
| | |
| | | //layer.msg('[ID: ' + data.id + '] ' + field + ' åæ®µæ´æ¹ä¸ºï¼' + value); |
| | | |
| | | switch (field) { |
| | | case "HQty": //å®åæ°é |
| | | case "HQty": //æ°é |
| | | //æ°æ®æ ¼å¼æ ¡éª |
| | | temp = value + ""; |
| | | if (!ref.test(temp) || temp == 0) { |
| | |
| | | }); |
| | | table.render(option); |
| | | |
| | | layer.msg("å®åæ°é请è¾å
¥å¤§äº0çæ°å!"); |
| | | layer.msg("æ°é请è¾å
¥å¤§äº0çæ°å!"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | //æ°æ®æ ¡éªåæ ¼ï¼éç®è®°å½ |
| | | var HQty = value * 1; //å®åæ°é |
| | | var HQty = value * 1; //æ°é |
| | | var HPrice = obj.data.HPrice * 1; //åä»· |
| | | var HMoney = HQty * HPrice; //éé¢=å®åæ°é*åä»· |
| | | var HTaxRate = obj.data.HTaxRate * 0.01; //ç¨ç |
| | | /*var HDiscountRate = obj.data.HDiscountRate * 1; //ææ£ç*/ |
| | | var HTaxPrice = HPrice * (1 + HTaxRate); //å«ç¨åä»·=åä»·*(1+ç¨ç) |
| | | /*var HRelTaxPrice = HTaxPrice * HDiscountRate; //å®é
å«ç¨åä»·=å«ç¨åä»·*ææ£ç*/ |
| | | //ææ£é¢ = å«ç¨åä»· * (1 - ææ£ç) * æ°é |
| | | var HMoney = HQty * HPrice; //éé¢=æ°é*åä»· |
| | | var HTaxMoney = HMoney * (1 + HTaxRate); //ä»·ç¨å计=éé¢ * (1 + ç¨ç) |
| | | |
| | | //è®¾ç½®æ°æ®å°æ°ä½æ° |
| | | HQty = dealDoubleToFixed(HQty, 1); |
| | | HPrice = dealDoubleToFixed(HPrice, 3); |
| | | HTaxRate = HTaxRate; |
| | | HTaxPrice = dealDoubleToFixed(HTaxPrice, 3); |
| | | HMoney = dealDoubleToFixed(HMoney, 2); |
| | | HTaxMoney = dealDoubleToFixed(HTaxMoney, 2); |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQty: HQty |
| | | , HPrice: HPrice |
| | | , HTaxRate: HTaxRate * 100 |
| | | , HTaxPrice: HTaxPrice |
| | | , HMoney: HMoney |
| | | , HTaxMoney: HTaxMoney |
| | | }); |
| | | table.render(option); |
| | | //table.render(option); |
| | | break; |
| | | case "HPrice": //åä»· |
| | | //æ°æ®æ ¼å¼æ ¡éª |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | //æ°æ®æ ¡éªåæ ¼ï¼éç®è®°å½ |
| | | var HQty = obj.data.HQty * 1; //å®åæ°é |
| | | var HQty = obj.data.HQty * 1; //æ°é |
| | | var HPrice = value * 1; //åä»· |
| | | var HMoney = HQty * HPrice; //éé¢=å®åæ°é*åä»· |
| | | var HTaxRate = obj.data.HTaxRate * 0.01; //ç¨ç |
| | | /*var HDiscountRate = obj.data.HDiscountRate * 1; //ææ£ç*/ |
| | | var HTaxPrice = HPrice * (1 + HTaxRate); //å«ç¨åä»·=åä»·*(1+ç¨ç) |
| | | /*var HRelTaxPrice = HTaxPrice * HDiscountRate; //å®é
å«ç¨åä»·=å«ç¨åä»·*ææ£ç*/ |
| | | //ææ£é¢ = å«ç¨åä»· * (1 - ææ£ç) * æ°é |
| | | var HMoney = HQty * HPrice; //éé¢=æ°é*åä»· |
| | | var HTaxMoney = HMoney * (1 + HTaxRate); //ä»·ç¨å计=éé¢ * (1 + ç¨ç) |
| | | |
| | | //è®¾ç½®æ°æ®å°æ°ä½æ° |
| | | HQty = dealDoubleToFixed(HQty, 1); |
| | | HPrice = dealDoubleToFixed(HPrice, 3); |
| | | HTaxRate = HTaxRate; |
| | | HTaxPrice = dealDoubleToFixed(HTaxPrice, 3); |
| | | HMoney = dealDoubleToFixed(HMoney, 2); |
| | | HTaxMoney = dealDoubleToFixed(HTaxMoney, 2); |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQty: HQty |
| | | , HPrice: HPrice |
| | | , HTaxRate: HTaxRate * 100 |
| | | , HTaxPrice: HTaxPrice |
| | | , HMoney: HMoney |
| | | , HTaxMoney: HTaxMoney |
| | | }); |
| | | table.render(option); |
| | | //table.render(option); |
| | | break; |
| | | case "HTaxRate": //æ°é |
| | | //æ°æ®æ ¼å¼æ ¡éª |
| | | temp = value + ""; |
| | | if (!ref.test(temp)) { |
| | | //æ¢å¤æ°æ®å°ç¼è¾å |
| | | obj.update({ |
| | | HTaxRate: oldText |
| | | }); |
| | | table.render(option); |
| | | |
| | | layer.msg("ç¨ç请è¾å
¥ä¸å°äº0çæ°å!"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | //æ°æ®æ ¡éªåæ ¼ï¼éç®è®°å½ |
| | | var HQty = obj.data.HQty * 1; //æ°é |
| | | var HPrice = obj.data.HPrice * 1; //åä»· |
| | | var HTaxRate = value * 0.01; //ç¨ç |
| | | /*var HDiscountRate = obj.data.HDiscountRate * 1; //ææ£ç*/ |
| | | var HTaxPrice = HPrice * (1 + HTaxRate); //å«ç¨åä»·=åä»·*(1+ç¨ç) |
| | | /*var HRelTaxPrice = HTaxPrice * HDiscountRate; //å®é
å«ç¨åä»·=å«ç¨åä»·*ææ£ç*/ |
| | | //ææ£é¢ = å«ç¨åä»· * (1 - ææ£ç) * æ°é |
| | | var HMoney = HQty * HPrice; //éé¢=æ°é*åä»· |
| | | var HTaxMoney = HMoney * (1 + HTaxRate); //ä»·ç¨å计=éé¢ * (1 + ç¨ç) |
| | | |
| | | //è®¾ç½®æ°æ®å°æ°ä½æ° |
| | | HQty = dealDoubleToFixed(HQty, 1); |
| | | HPrice = dealDoubleToFixed(HPrice, 3); |
| | | HTaxRate = HTaxRate; |
| | | HTaxPrice = dealDoubleToFixed(HTaxPrice, 3); |
| | | HMoney = dealDoubleToFixed(HMoney, 2); |
| | | HTaxMoney = dealDoubleToFixed(HTaxMoney, 2); |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQty: HQty |
| | | , HPrice: HPrice |
| | | , HTaxRate: HTaxRate * 100 |
| | | , HTaxPrice: HTaxPrice |
| | | , HMoney: HMoney |
| | | , HTaxMoney: HTaxMoney |
| | | }); |
| | | //table.render(option); |
| | | break; |
| | | case "HTaxPrice": //æ°é |
| | | //æ°æ®æ ¼å¼æ ¡éª |
| | | temp = value + ""; |
| | | if (!ref.test(temp)) { |
| | | //æ¢å¤æ°æ®å°ç¼è¾å |
| | | obj.update({ |
| | | HTaxPrice: oldText |
| | | }); |
| | | table.render(option); |
| | | |
| | | layer.msg("å«ç¨åæ®è¯·è¾å
¥ä¸å°äº0çæ°å!"); |
| | | return; |
| | | } |
| | | //æ°æ®æ ¡éªåæ ¼ï¼éç®è®°å½ |
| | | var HQty = obj.data.HQty * 1; //æ°é |
| | | var HTaxRate = obj.data.HTaxRate * 0.01; //ç¨ç |
| | | var HTaxPrice = value * 1; //å«ç¨åä»·=åä»·*(1+ç¨ç) |
| | | var HPrice = HTaxPrice / (1 + HTaxRate); //åä»·=å«ç¨åæ®/(1+ç¨ç) |
| | | |
| | | /*var HDiscountRate = obj.data.HDiscountRate * 1; //ææ£ç*/ |
| | | |
| | | /*var HRelTaxPrice = HTaxPrice * HDiscountRate; //å®é
å«ç¨åä»·=å«ç¨åä»·*ææ£ç*/ |
| | | //ææ£é¢ = å«ç¨åä»· * (1 - ææ£ç) * æ°é |
| | | var HMoney = HQty * HPrice; //éé¢=æ°é*åä»· |
| | | var HTaxMoney = HMoney * (1 + HTaxRate); //ä»·ç¨å计=éé¢ * (1 + ç¨ç) |
| | | |
| | | //è®¾ç½®æ°æ®å°æ°ä½æ° |
| | | HQty = dealDoubleToFixed(HQty, 1); |
| | | HPrice = dealDoubleToFixed(HPrice, 3); |
| | | HTaxRate = HTaxRate; |
| | | HTaxPrice = dealDoubleToFixed(HTaxPrice, 3); |
| | | HMoney = dealDoubleToFixed(HMoney, 2); |
| | | HTaxMoney = dealDoubleToFixed(HTaxMoney, 2); |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQty: HQty |
| | | , HPrice: HPrice |
| | | , HTaxRate: HTaxRate * 100 |
| | | , HTaxPrice: HTaxPrice |
| | | , HMoney: HMoney |
| | | , HTaxMoney: HTaxMoney |
| | | }); |
| | | //table.render(option); |
| | | break; |
| | | default: |
| | | } |
| | |
| | | , cols: [[ //å表 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 100, hide: true } |
| | | , { 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, } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100, } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, edit: 'text', event: "HUnitID" }//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, edit: 'text', event: "HUnitID"}//f7 |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 100, totalRow: true, style: 'background-color:#efefef4d;'} |
| | | , { field: 'HQty', title: 'å®åæ°é', width: 100, totalRow: true, edit: 'text', event: "HQty" } |
| | | , { field: 'HPrice', title: 'åä»·', width: 100, edit: 'text', event: "HPrice" } |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, totalRow: true } |
| | | , { field: 'HWHID', title: 'HWHID', width: 100, edit: 'text', hide: true } |
| | | , { field: 'HTaxPrice', title: 'å«ç¨åä»·', width: 100, edit: 'text', event: "HTaxPrice" } |
| | | , { field: 'HTaxRate', title: 'ç¨ç', width: 100, edit: 'text' } |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, totalRow: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HTaxMoney', title: 'ä»·ç¨å计', width: 100, totalRow: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HWHID', title: 'HWHID', width: 100, edit: 'text', hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'åè´§ä»åº', title: 'åè´§ä»åº', width: 100, edit: 'text', event: "HWHID" } |
| | | , { field: 'HRemark', title: '夿³¨', width: 100, edit: 'text' } |
| | | |
| | | |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 100, edit: 'text', event: "HQtyMust", hide: true } |
| | | , { field: 'HQty_Full', title: '满车éé', width: 100, edit: 'text', event: "HQty_Full", hide: true } |
| | | , { field: 'HQty_Empty', title: '空车éé', width: 100, edit: 'text', event: "HQty_Empty", hide: true } |
| | | , { field: 'HQty_Back', title: 'å车éé', width: 100, edit: 'text', event: "HQty_Back", hide: true } |
| | | , { field: 'HCostPrice', title: 'ææ¬åä»·', width: 100, edit: 'text', event: "HCostPrice", hide: true } |
| | | , { field: 'HCostMoney', title: 'ææ¬éé¢', width: 100, edit: 'text', event: "HCostMoney", hide: true } |
| | | , { field: 'HSalePrice', title: 'éå®åä»·', width: 100, edit: 'text', event: "HSalePrice", hide: true } |
| | | , { field: 'HSeOrderInterID', title: 'HSeOrderInterID', width: 100, edit: 'text', hide: true } |
| | | , { field: 'HSeOrderEntryID', title: 'HSeOrderEntryID', width: 100, edit: 'text', hide: true } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', width: 100, edit: 'text', event: "HSeOrderBillNo", hide: true } |
| | | |
| | | , { field: 'HSeOrderInterID', title: 'éå®è®¢åå
ç ', width: 100, edit: 'text', hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSeOrderEntryID', title: 'éå®è®¢ååå
ç ', width: 100, edit: 'text', hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSourceBillNo', title: 'æºåå·', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HRelationQty', title: 'å
³èæ°é', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HRelationMoney', title: 'å
³èéé¢', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | |
| | | , { field: 'HSPID', title: 'HSPID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSPName', title: 'ä»ä½', width: 100, hide: true } |
| | | , { field: 'HSPGroupID', title: 'HSPGroupID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSPGroupName', title: 'ä»ä½ç»', width: 100, hide: true } |
| | | , { field: 'HSCWHID', title: 'HSCWHID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSCWHName', title: 'è°åºä»åº', width: 100, hide: true } |
| | | , { field: 'HSCSPID', title: 'HSCSPID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSCSPName', title: 'è°åºä»ä½', width: 100, hide: true } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100, hide: true } |
| | | , { field: 'HPOOrderInterID', title: 'éè´è®¢åå
ç ', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HPOOrderEntryID', title: 'éè´è®¢ååå
ç ', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HPOOrderBillNo', title: 'éè´è®¢åå·', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | |
| | | , { field: 'HPropertyID', title: 'HPropertyID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§', width: 100, hide: true } |
| | | , { field: 'HSecUnitID', title: 'HSecUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½', width: 100, hide: true } |
| | | , { field: 'HSecUnitRate', title: 'æ¢ç®ç', width: 100, hide: true } |
| | | |
| | | |
| | | , { field: 'HEngineNum', title: 'å卿ºå·', width: 100, hide: true } |
| | | , { field: 'HUnderPanNum', title: 'å°çå·', width: 100, hide: true } |
| | | , { field: 'HLeaveFactCard', title: 'åºåè¯', width: 100, hide: true } |
| | | |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | } |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "ç©æä»£ç ": "", "ç©æåç§°": "", "è§æ ¼åå·": "", "HUnitID": 0, "计éåä½": "", "HWHID": $("#HWHID").val(), "åè´§ä»åº": $("#HWHName").val(), "HQtyMust": "0", |
| | | "HQty": "0", "HQty_Full": "0", "HQty_Empty": "0", "HQty_Back": "0", "HPrice": "0", "HMoney": "0", "HCostPrice": "0", "HCostMoney": "0", |
| | | "HSalePrice": "0", "HSeOrderInterID": 0, "HSeOrderEntryID": 0, "HSeOrderBillNo": "", "HRemark": "" |
| | | "HMaterID": "0" |
| | | , "ç©æä»£ç ": "" |
| | | , "ç©æåç§°": "" |
| | | , "è§æ ¼åå·": "" |
| | | , "HUnitID": "0" |
| | | , "计éåä½": "" |
| | | , "HQtyMust": "0" |
| | | , "HQty": "0" |
| | | , "HPrice": "0" |
| | | , "HTaxPrice": "0" |
| | | , "HTaxRate": "0" |
| | | , "HMoney": "0" |
| | | , "HTaxMoney": "0" |
| | | , "HWHID": $("#HWHID").val() |
| | | , "åè´§ä»åº": $("#HWHName").val() |
| | | , "HRemark": "" |
| | | |
| | | , "HQty_Full": "0" |
| | | , "HQty_Empty": "0" |
| | | , "HQty_Back": "0" |
| | | , "HCostPrice": "0" |
| | | , "HCostMoney": "0" |
| | | , "HSalePrice": "0" |
| | | |
| | | , "HSeOrderInterID": "0" |
| | | , "HSeOrderEntryID": "0" |
| | | , "HSeOrderBillNo": "" |
| | | |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | , "HRelationQty": "0" |
| | | , "HRelationMoney": "0" |
| | | |
| | | , 'HSPID': "0" |
| | | , 'HSPName': "" |
| | | , 'HSPGroupID': "0" |
| | | , "HSPGroupName": "" |
| | | , 'HSCWHID': "0" |
| | | , 'HSCWHName': "" |
| | | , 'HSCSPID': "0" |
| | | , 'HSCSPName': "" |
| | | , 'HBatchNo': "" |
| | | , 'HPOOrderInterID': "0" |
| | | , 'HPOOrderEntryID': "0" |
| | | , 'HPOOrderBillNo': "" |
| | | |
| | | , 'HPropertyID': "0" |
| | | , 'HPropertyName': "" |
| | | , 'HSecUnitID': "0" |
| | | , 'HSecUnitName': "" |
| | | , 'HSecUnitRate': "0" |
| | | |
| | | |
| | | , 'HEngineNum': "" |
| | | , 'HUnderPanNum': "" |
| | | , 'HLeaveFactCard': "" |
| | | |
| | | |
| | | }]; |
| | | |
| | | option.data = rowdata; |
| | |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": data.åæ®å· |
| | | , "HDate": formatDate(data.æ¥æ) |
| | | , "HInnerBillNo": data.éå®è®¢åå· |
| | | , "HEmpID": data.HEmpID |
| | | , "HEmpName": data.ä¸å¡å |
| | | , "HSupID": data.hsupid |
| | | , "HSupName": data.å®¢æ· |
| | | , "HWHID": data.HWHID_Main |
| | | , "HWHName": data.ä»åº |
| | | , "HSellSID": data.HSellSID |
| | | , "HSellSName": data.é宿¹å¼ |
| | | , "HDeptID": data.HDeptID |
| | | , "HDeptName": data.é¨é¨ |
| | | , "HEmpID": data.HEmpID |
| | | , "HEmpName": data.ä¸å¡å |
| | | , "HManagerID": data.hmanagerid |
| | | , "HManagerName": data.主管 |
| | | , "BillType": data.HSourceBillType |
| | | , "HMainSourceInterID": data.HMainSourceInterID |
| | | , "HMainSourceEntryID": data.HMainSourceEntryID |
| | | , "HMainSourceBillNo": data.HMainSourceBillNo |
| | | , "HMainSourceBillType": data.HMainSourceBillType |
| | | , "HSupID": data.hsupid |
| | | , "HSupName": data.å®¢æ· |
| | | , "HLinkMan": data.è系人 |
| | | , "HLinkPhone": data.èç³»çµè¯ |
| | | , "HSellSID": data.HSellSID |
| | | , "HSellSName": data.é宿¹å¼ |
| | | , "HSecManagerID": data.hsecmanagerid |
| | | , "HSecManagerName": data.å货人 |
| | | , "HKeeperID": data.hkeeperid |
| | | , "HKeeperName": data.ä¿ç®¡å |
| | | , "HManagerID": data.hmanagerid |
| | | , "HManagerName": data.主管 |
| | | , "HCheckStatusMan": data.æ ¸é人 |
| | | , "HWHID": data.HWHID_Main |
| | | , "HWHName": data.主表ä»åº |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ |
| | | |
| | | |
| | | , "HConveyCompID": data.HConveyCompID |
| | | , "HConveyCompName": data.è¿è¾å
¬å¸ |
| | | , "HConveyTypeID": data.HConveyTypeID |
| | | , "HConveyTypeName": data.è¿è¾æ¹å¼ |
| | | , "HConveyMoney": data.HConveyMoney |
| | | , "HCarriage": data.è¿è´¹ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ |
| | | , "HExplanation": data.æè¦ |
| | | |
| | | , "HSTOCKORGID": data.HSTOCKORGID |
| | | , "HOWNERID": data.HOWNERID |
| | | , "HCurID": data.HCurID |
| | | , "HCurName": data.å¸å« |
| | | , "HSourceBillType": data.æºåç±»å |
| | | , "HLinkMan": data.è系人 |
| | | , "HLinkPhone": data.èç³»çµè¯ |
| | | , "HExRate": data.æ±ç |
| | | , "HSCWHID": data.HSCWHID_Main |
| | | , "HSCWHName": data.主表è°åºä»åº |
| | | , "HCheckStatusMan": data.æ ¸é人 |
| | | , "HExplanation": data.æè¦ |
| | | , "HInnerBillNo": data.å
é¨åæ®å· |
| | | |
| | | |
| | | , "HMaker": data.å¶å人 |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(new Date(data.å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(new Date(data.å
³éæ¥æ), "yyyy-MM-dd") |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(new Date(data.ä½åºæ¥æ), "yyyy-MM-dd") |
| | | |
| | | , "HMainSourceInterID": data.HSourceInterID |
| | | , "HMainSourceEntryID": "0" |
| | | , "HMainSourceBillNo": data.æºååå· |
| | | , "HMainSourceBillType": data.HSourceBillType |
| | | , "BillType": data.HSourceBillType |
| | | }); |
| | | |
| | | HOrgIDBar = data.HOrgID == null ? 0 : data.HOrgID; |
| | |
| | | , "è§æ ¼åå·": result.data[i].è§æ ¼åå· |
| | | , "HUnitID": result.data[i].hunitid |
| | | , "计éåä½": result.data[i].计éåä½ |
| | | , "HQty": result.data[i].æ°é |
| | | , "HPrice": result.data[i].åä»· |
| | | , "HMoney": result.data[i].éé¢ |
| | | , "HQtyMust": dealDoubleToFixed(result.data[i].åºåæ°é, 1) |
| | | , "HQty": dealDoubleToFixed(result.data[i].æ°é, 1) |
| | | , "HPrice": dealDoubleToFixed(result.data[i].åä»·, 3) |
| | | , "HTaxPrice": dealDoubleToFixed(result.data[i].å«ç¨åä»·, 3) |
| | | , "HTaxRate": result.data[i].ç¨ç |
| | | , "HMoney": dealDoubleToFixed(result.data[i].æ°é * result.data[i].åä»·, 2) |
| | | , "HTaxMoney": dealDoubleToFixed(result.data[i].æ°é * result.data[i].å«ç¨åä»·, 2) |
| | | , "HWHID": result.data[i].hwhid |
| | | , "åè´§ä»åº": result.data[i].åè´§ä»åº |
| | | , "HRemark": result.data[i].表ä½å¤æ³¨ |
| | | |
| | | , "HQtyMust": result.data[i].åºåæ°é |
| | | , "HQty_Full": result.data[i].满车éé |
| | | , "HQty_Empty": result.data[i].空车éé |
| | | , "HQty_Back": result.data[i].å车éé |
| | | , "HCostPrice": result.data[i].ææ¬åä»· |
| | | , "HCostMoney": result.data[i].ææ¬éé¢ |
| | | , "HSalePrice": result.data[i].éå®åä»· |
| | | |
| | | , "HSeOrderInterID": result.data[i].HSeOrderInterID |
| | | , "HSeOrderEntryID": result.data[i].HSeOrderEntryID |
| | | , "HSeOrderBillNo": result.data[i].éå®è®¢åå· |
| | |
| | | , "HSourceEntryID": result.data[i].HSourceEntryID |
| | | , "HSourceBillNo": result.data[i].æºååå· |
| | | , "HSourceBillType": result.data[i].HSourceBillType |
| | | , "HRelationQty": result.data[i].å
³èæ°é |
| | | , "HRelationMoney": result.data[i].å
³èéé¢ |
| | | |
| | | , 'HSPID': result.data[i].HSPID |
| | | , 'HSPName': result.data[i].ä»ä½ |
| | | , 'HSPGroupID': result.data[i].HSPGroupID |
| | | , "HSPGroupName": result.data[i].ä»ä½ç» |
| | | , 'HSCWHID': result.data[i].HSCWHID |
| | | , 'HSCWHName': result.data[i].è°åºä»åº |
| | | , 'HSCSPID': result.data[i].HSCSPID |
| | | , 'HSCSPName': result.data[i].è°åºä»ä½ |
| | | , 'HBatchNo': result.data[i].æ¹æ¬¡ |
| | | , 'HPOOrderInterID': result.data[i].éè´è®¢åå
ç |
| | | , 'HPOOrderEntryID': result.data[i].éè´è®¢ååå
ç |
| | | , 'HPOOrderBillNo': result.data[i].éè´è®¢åå· |
| | | |
| | | , 'HPropertyID': result.data[i].HPropertyID |
| | | , 'HPropertyName': result.data[i].è¾
å©å±æ§ |
| | | , 'HSecUnitID': result.data[i].HSecUnitID |
| | | , 'HSecUnitName': result.data[i].è¾
å©è®¡éåä½ |
| | | , 'HSecUnitRate': result.data[i].æ¢ç®ç |
| | | |
| | | |
| | | , 'HEngineNum': result.data[i].å卿ºå· |
| | | , 'HUnderPanNum': result.data[i].å°çå· |
| | | , 'HLeaveFactCard': result.data[i].åºåè¯ |
| | | } |
| | | ) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | //éå®è®¢å |
| | | if (obj.event == "HSeOrderBillNo") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éå®è®¢åå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../éå®ç®¡ç/éå®è®¢å/Xs_SeOrderBillList.html', 'yes'] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | ////éå®è®¢å |
| | | //if (obj.event == "HSeOrderBillNo") { |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | // , title: "éå®è®¢åå表" //æ é¢ |
| | | // , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | // , shift: 2 //å¼¹åºå¨ç» |
| | | // , area: ["90%", "90%"] //çªä½å¤§å° |
| | | // , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | // , content: ['../../éå®ç®¡ç/éå®è®¢å/Xs_SeOrderBillList.html', 'yes'] |
| | | // , btn: ["ç¡®å®", "åæ¶"] |
| | | // , btn1: function (index, laero) { |
| | | // //æé®ä¸ çåè° |
| | | // var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | // var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HSeOrderInterID": checkStatus.data[0].hmainid |
| | | , "HSeOrderEntryID": checkStatus.data[0].hsubid |
| | | , "HSeOrderBillNo": checkStatus.data[0].åæ®å· |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | // if (checkStatus.data.length != 1) { |
| | | // return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | // } |
| | | // //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | // obj.update({ |
| | | // "HSeOrderInterID": checkStatus.data[0].hmainid |
| | | // , "HSeOrderEntryID": checkStatus.data[0].hsubid |
| | | // , "HSeOrderBillNo": checkStatus.data[0].åæ®å· |
| | | // }) |
| | | // layer.close(index);//å
³éå¼¹çª |
| | | // } |
| | | // }) |
| | | //} |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HMaterID", "HUnitID", "HWHID", "HSeOrderInterID", "HSeOrderEntryID", "åºåæ°é", "满车éé", "空车éé", "å车éé", "ææ¬åä»·", "ææ¬éé¢", "éå®åä»·", "éå®è®¢åå·"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["HMaterID", "HUnitID", "HWHID", "满车éé", "空车éé", "å车éé", "ææ¬åä»·", "ææ¬éé¢", "éå®åä»·", "éå®è®¢åå
ç ", "éå®è®¢ååå
ç ", "éå®è®¢åå·","æºåå
ç ","æºååå
ç ","æºåå·","æºåç±»å","å
³èæ°é","å
³èéé¢","HSPID","ä»ä½","HSPGroupID","ä»ä½ç»","HSCWHID","è°åºä»åº","HSCSPID","è°åºä»ä½","æ¹æ¬¡","éè´è®¢åå
ç ","éè´è®¢ååå
ç ","éè´è®¢åå·","HPropertyID","è¾
å©å±æ§","HSecUnitID","è¾
å©è®¡éåä½","æ¢ç®ç","å卿ºå·","å°çå·","åºåè¯"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | //titleData = []; |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | |
| | | , "HDeptName": data.é¨é¨ |
| | | , "HEmpID": data.HEmpID |
| | | , "HEmpName": data.ä¸å¡å |
| | | , "HSellSID": data.HSellSID |
| | | , "HSellSName": data.é宿¹å¼ |
| | | , "HSupID": data.HCusID |
| | | , "HSupName": data.å®¢æ· |
| | | , "HLinkMan": data.è系人 |
| | | , "HLinkPhone": data.èç³»çµè¯ |
| | | , "HCreditRating_Now": data.HCreditRating_Now |
| | | |
| | | , "HManagerID": data.HManagerID |
| | | , "HManagerName": data.主管 |
| | | , "HMainSourceInterID": HMainSourceInterID |
| | | , "HMainSourceEntryID": "0" |
| | | , "HMainSourceBillNo": data.åæ®å· |
| | | , "HMainSourceBillType": $("#BillType").val() |
| | | |
| | | //, "HCurID": data.HCurID |
| | | //, "HCurName": data.å¸å« |
| | | , "HSupID": data.HCusID |
| | | , "HSupName": data.å®¢æ· |
| | | , "HLinkMan": data.è系人 |
| | | , "HLinkPhone": data.èç³»çµè¯ |
| | | , "HSellSID": data.HSellSID |
| | | , "HSellSName": data.é宿¹å¼ |
| | | , "HCurID": data.HCurID |
| | | , "HCurName": data.å¸å« |
| | | , "HExRate": data.æ±ç |
| | | }); |
| | | |
| | | //å表 èµå¼ |
| | |
| | | , "è§æ ¼åå·": result.data[i].è§æ ¼åå· |
| | | , "HUnitID": result.data[i].HUnitID |
| | | , "计éåä½": result.data[i].计éåä½ |
| | | , "HQty": result.data[i].æ°é |
| | | , "HPrice": result.data[i].åä»· |
| | | , "HMoney": result.data[i].éé¢ |
| | | , "HWHID": $("#").val() |
| | | , "åè´§ä»åº": $("#").val() |
| | | , "HQtyMust": dealDoubleToFixed(result.data[i].æ°é, 1) |
| | | , "HQty": dealDoubleToFixed(result.data[i].æ°é, 1) |
| | | , "HPrice": dealDoubleToFixed(result.data[i].åä»·, 3) |
| | | , "HTaxPrice": dealDoubleToFixed(result.data[i].å«ç¨åä»·, 3) |
| | | , "HTaxRate": result.data[i].ç¨ç |
| | | , "HMoney": dealDoubleToFixed(result.data[i].éé¢, 2) |
| | | , "HTaxMoney": dealDoubleToFixed(result.data[i].ä»·ç¨å计, 2) |
| | | , "HWHID": $("#HWHID").val() |
| | | , "åè´§ä»åº": $("#HWHName").val() |
| | | , "HRemark": "" |
| | | |
| | | , "HQtyMust": result.data[i].æ°é |
| | | , "HQty_Full": "0" |
| | | , "HQty_Empty": "0" |
| | | , "HQty_Back": "0" |
| | | , "HCostPrice": "0" |
| | | , "HCostMoney": "0" |
| | | , "HSalePrice": "0" |
| | | |
| | | , "HSeOrderInterID": result.data[i].hmainid |
| | | , "HSeOrderEntryID": result.data[i].hsubid |
| | | , "HSeOrderBillNo": result.data[i].åæ®å· |
| | |
| | | , "HSourceEntryID": result.data[i].hsubid |
| | | , "HSourceBillNo": result.data[i].åæ®å· |
| | | , "HSourceBillType": result.data[i].HBillType |
| | | , "HRelationQty": "0" |
| | | , "HRelationMoney": "0" |
| | | |
| | | , 'HSPID': "0" |
| | | , 'HSPName': "" |
| | | , 'HSPGroupID': "0" |
| | | , "HSPGroupName": "" |
| | | , 'HSCWHID': "0" |
| | | , 'HSCWHName': "" |
| | | , 'HSCSPID': "0" |
| | | , 'HSCSPName': "" |
| | | , 'HBatchNo': "" |
| | | , 'HPOOrderInterID': "0" |
| | | , 'HPOOrderEntryID': "0" |
| | | , 'HPOOrderBillNo': "" |
| | | |
| | | , 'HPropertyID': "0" |
| | | , 'HPropertyName': "" |
| | | , 'HSecUnitID': "0" |
| | | , 'HSecUnitName': "" |
| | | , 'HSecUnitRate': "0" |
| | | |
| | | |
| | | , 'HEngineNum': "" |
| | | , 'HUnderPanNum': "" |
| | | , 'HLeaveFactCard': "" |
| | | } |
| | | ); |
| | | } |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¤çå°æ°æ¾ç¤ºä½æ°ï¼dataï¼éè¦å¤ççæ°æ®ï¼numï¼æ°æ®çç±»å(å¦1:æ°éï¼2:éé¢ï¼3:åä»·)ï¼ |
| | | function dealDoubleToFixed(data, num) { |
| | | //ç¨äºè®¾ç½®å°æ°ä½æ° |
| | | var dotLength = 0; |
| | | |
| | | if (num == 1) { //彿°æ®ä¸ºæ°éæ¶ï¼æå¤ä¿ç6ä½å°æ° |
| | | //设置æå¤ä¿ç6ä½å°æ° |
| | | dotLength = 6; |
| | | } else if (num == 2) { //彿°æ®ä¸ºé颿¶ï¼æå¤ä¿ç2ä½å°æ° |
| | | //设置æå¤ä¿ç2ä½å°æ° |
| | | dotLength = 2; |
| | | } else if (num == 3) { //彿°æ®ä¸ºåä»·æ¶ï¼æå¤ä¿ç4ä½å°æ° |
| | | //设置æå¤ä¿ç4ä½å°æ° |
| | | dotLength = 4; |
| | | } |
| | | |
| | | //夿æ¯å¦åå¨å°æ°ç¹åå
¶ç´¢å¼ä½ç½® |
| | | data = data + ""; |
| | | var index = data.indexOf("."); |
| | | |
| | | //å¤çæ°æ®å¹¶è¿å |
| | | if (index < 0) { |
| | | return data * 1; |
| | | } else { |
| | | //è·åå°æ°ä½æ° |
| | | var length = data.length - index - 1; |
| | | if (length <= dotLength) { |
| | | return data * 1; |
| | | } else { |
| | | data = data * 1; |
| | | return data.toFixed(dotLength); |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | </html> |