| | |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <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" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" 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="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;"> |
| | | </div> |
| | |
| | | <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="float:left;width:150px;"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" value="" style="float: left; width: 150px; 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> |
| | |
| | | <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="float: left; width: 150px; 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;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HCurName" id="HCurName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HCurName" id="HCurName" class="layui-input" value="" style="float: left; width: 150px; 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> |
| | |
| | | </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="HExRate" id="HExRate" autocomplete="off" value="0" readonly> |
| | | <input class="layui-input" name="HExRate" id="HExRate" autocomplete="off" value="0" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:900px;"> |
| | | <label class="layui-form-label">ä¸å¡å®¢æ·</label> |
| | | <label class="layui-form-label">ä¸å¡å®¢æ·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline" style="width:750px;"> |
| | | <input type="text" name="HCusName" id="HCusName" class="layui-input" value="" style="float:left;width:475px;"> |
| | | <input type="text" name="HCusName" id="HCusName" class="layui-input" value="" style="float: left; width: 475px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HCusID" id="HCusID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HCusList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ç®æ¹å¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSSName" id="HSSName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HSSName" id="HSSName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HSSID" id="HSSID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSSList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:900px;"> |
| | | <label class="layui-form-label">ç»ç®åä½</label> |
| | | <label class="layui-form-label">ç»ç®åä½<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline" style="width:750px;"> |
| | | <input type="text" name="HAccCusName" id="HAccCusName" class="layui-input" value="" style="float:left;width:475px;"> |
| | | <input type="text" name="HAccCusName" id="HAccCusName" class="layui-input" value="" style="float: left; width: 475px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HAccCusID" id="HAccCusID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HAccCusList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | <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="text" name="HManagerName" id="HManagerName" class="layui-input" value="" style="float: left; width: 150px; 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> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¶è¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HBankName" id="HBankName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HBankName" id="HBankName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HBankID" id="HBankID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HBankList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¶è¡è´¦å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBankNo" id="HBankNo" autocomplete="off"> |
| | | <input class="layui-input" name="HBankNo" id="HBankNo" 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="HInnerBillNo" id="HInnerBillNo" autocomplete="off" readonly> |
| | | <input class="layui-input" name="HInnerBillNo" id="HInnerBillNo" autocomplete="off" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HSumMoney" id="HSumMoney" autocomplete="off"> |
| | | <input class="layui-input" name="HSumMoney" id="HSumMoney" value="0" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">客æ·ä½é¢</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="" id="" autocomplete="off" readonly> |
| | | <input class="layui-input" name="" id="" 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="" id="" autocomplete="off" readonly> |
| | | <input class="layui-input" name="" id="" autocomplete="off" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | //éå®åãéå®é¨é¨ãéå®ä¸»ç®¡åå§å |
| | | getCzyglByUser(); |
| | | } |
| | | else if (OperationType == 3) { //ç¼è¾ |
| | | //å è½½ç¼è¾é¡µé¢ |
| | |
| | | |
| | | //#region ç»ç»åå§å |
| | | Organ(); |
| | | //#endregion |
| | | |
| | | //#region æ ¹æ®è´¦å·è·åé¨é¨ãèåã主管 |
| | | function getCzyglByUser() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/getCzyglByUser", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "CurUserName": sessionStorage["HUserName"] |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | $("#HEmpID").val(data.HEmpID); |
| | | $("#HEmpName").val(data.HEmpName); |
| | | $("#HDeptID").val(data.HDeptID); |
| | | $("#HDeptName").val(data.HDeptName); |
| | | $("#HManagerID").val(data.HManagerID); |
| | | $("#HManagerName").val(data.HManagerName); |
| | | |
| | | |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HCusName").val(checkStatus.data[0].HName); |
| | | $("#HCusID").val(checkStatus.data[0].HItemID); |
| | | |
| | | getCustomerByCusID(checkStatus.data[0].HItemID); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | |
| | | //#region é¶è¡éæ©é¡µé¢ |
| | | function get_checkBank() { |
| | | |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¶è¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_BankList.html?Type=HBank', '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('è¯·éæ©æ°æ®'); |
| | | // } |
| | | // $("#HEmpName").val(checkStatus.data[0].HName); |
| | | // $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | // layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | //} |
| | | //, btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | |
| | | |
| | | function GetHSupValue(obj) //è¿åä¸å¡å®¢æ· |
| | | { |
| | | $("#HCusName").val(obj[0].HName); |
| | | $("#HCusID").val(obj[0].HItemID); |
| | | //$("#HCusName").val(obj[0].HName); |
| | | //$("#HCusID").val(obj[0].HItemID); |
| | | getCustomerByCusID(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetHManagerValue(obj) //è¿åéå®ä¸»ç®¡ |
| | |
| | | $("#HManagerID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetHBankValue(obj) //è¿åé¶è¡ |
| | | { |
| | | $("#HBankName").val(obj[0].é¶è¡åç§°); |
| | | $("#HBankID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | //#region æ ¹æ®å®¢æ·è·åå¸å«ãæ±çãç»ç®æ¹å¼ |
| | | function getCustomerByCusID(HCusID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/YS_ReceiveBill/getCustomerByCusID", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HCusID": HCusID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | $("#HCusID").val(data.HCusID); |
| | | $("#HCusName").val(data.HCusName); |
| | | $("#HCurID").val(data.HCurID); |
| | | $("#HCurName").val(data.HCurName); |
| | | $("#HExRate").val(data.HExRate); |
| | | $("#HSSID").val(data.HSSID); |
| | | $("#HSSName").val(data.HSSName); |
| | | $("#HBankID").val(data.HBankID); |
| | | $("#HBankName").val(data.HBankName); |
| | | $("#HBankNo").val(data.HBankAccount); |
| | | |
| | | if ($("#HAccCusID").val() + "" == "0") { |
| | | $("#HAccCusID").val(data.HCusID); |
| | | $("#HAccCusName").val(data.HCusName); |
| | | } |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | </html> |