| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | /* |
| | | 确认受理 |
| | | */ |
| | | function ToSuodan(orderId, orderShowId) { |
| | | |
| | | |
| | | var msg ='确认锁单订单:' + orderShowId + '?'; |
| | | top.Dialog.confirm(msg, function () { |
| | | CallServer({ Target: "SuodanOrder", id: orderId }, function (data, textStatus) { |
| | | if ('1' == data) { |
| | | alertMsg('操作成功!'); |
| | | RefreshDIVOpener(); //关闭页面 |
| | | } else { |
| | | alertMsg('-1' == data ? '锁单过程中发生异常,请重新受理!' : '锁单失败!'); |
| | | //dialog.close(); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | ///批量受理 |
| | | function ToAllAccept() { |
| | | var commission = parseFloat(document.getElementById('txtCommission').value); |
| | |
| | | function printTypeChange(sel) { |
| | | showWait(); |
| | | var OldOrderId = document.getElementById('txtKeyid').value; |
| | | if (sel.value == -1 || sel.value == "-1") {//其他类型 |
| | | if (sel.value == -1 || sel.value == "-1") |
| | | { |
| | | //其他类型 |
| | | $("#hidOrderId").val(OldOrderId); |
| | | $("#divInquiry").load("/Pages/front/OtherType.aspx", { "PrintTypeId": "-1" }); |
| | | setTimeout(function () { |
| | |
| | | }, 1000); |
| | | |
| | | window.hideWaitDiv = window.parent.parent.parent.parent.parent.parent.hideWaitDiv; |
| | | if (window.hideWaitDiv) window.hideWaitDiv(); |
| | | } else { |
| | | if (window.hideWaitDiv) |
| | | window.hideWaitDiv(); |
| | | } |
| | | else |
| | | { |
| | | DelayLoadPrintType(sel.value, '1', OldOrderId, 'order'); |
| | | } |
| | | |
| | | document.getElementById('hidPrintTypeId').value = sel.value; |
| | | if ($("#txtKeyid").val() == "0") { |
| | | //document.getElementById('txtDocumentName').value = sel.value ? sel.options[sel.selectedIndex].text : ''; |
| | |
| | | if (sel.value == 6) { |
| | | document.getElementById('trbook').style.display = ''; |
| | | var sselCustormer = document.getElementById('selCustormer').value; |
| | | if (sselCustormer != null && sselCustormer != '') { |
| | | if (sselCustormer != null && sselCustormer != '') |
| | | { |
| | | |
| | | |
| | | //CallServer({ Target: "getPrintAsk", id: sselCustormer }, function (data, textStatus) { |
| | | // alert(sselCustormer); |
| | | // var jobj = false; |
| | |
| | | $("#selprintask").empty(); |
| | | $("#selprintask").prepend("<option value=''>请选择</option>"); //为Select插入一个Option(第一个位置) |
| | | } |
| | | |
| | | if (sel.value == 37) { |
| | | document.getElementById('tbFacing').style.display = 'none'; |
| | | document.getElementById('selVerifyWay12').style.display = 'none'; |
| | | document.getElementById('selVerifyWay21').style.display = 'none'; |
| | | document.getElementById('selVerifyWay1234').style.display = 'none'; |
| | | document.getElementById('selVerifyWay4321').style.display = 'none'; |
| | | if (OldOrderId == "" || OldOrderId == "0") { |
| | | document.getElementById('txtDeliveryTime').value = ""; |
| | | } |
| | | |
| | | if (document.getElementById('txtDocumentNameHide').value != "") { |
| | | document.getElementById('txtDocumentName').value = document.getElementById('txtDocumentNameHide').value; |
| | | } |
| | | |
| | | |
| | | } |
| | | else { |
| | | document.getElementById('tbFacing').style.display = ''; |
| | | document.getElementById('selVerifyWay12').style.display = ''; |
| | | document.getElementById('selVerifyWay21').style.display = ''; |
| | | document.getElementById('selVerifyWay123').style.display = ''; |
| | | document.getElementById('selVerifyWay321').style.display = ''; |
| | | document.getElementById('selVerifyWay1234').style.display = ''; |
| | | document.getElementById('selVerifyWay4321').style.display = ''; |
| | | |
| | | } |
| | | |
| | | if (sel.value == 37 || sel.value == 38) { |
| | | $("#Duiyinghetongbianhao").hide(); |
| | | } else { |
| | | $("#Duiyinghetongbianhao").show(); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | document.getElementById('selBusinessManagers').value = jobj.BusinessManagerId; |
| | | document.getElementById('txtContact').value = jobj.BusinessManagers; |
| | | document.getElementById('txtPhone').value = jobj.CompanyPhone; |
| | | document.getElementById('txtPrintPackDeliveryRequir').value = jobj.Note; |
| | | var aaaaaaaaaselPrintTypes = document.getElementById('selPrintTypes').value; |
| | | if (aaaaaaaaaselPrintTypes == "37") { |
| | | document.getElementById('txtDocumentName').value = jobj.CompanyName + "作业本"; |
| | | document.getElementById('txtDocumentNameHide').value = jobj.CompanyName + "作业本"; |
| | | } else { |
| | | document.getElementById('txtDocumentNameHide').value = jobj.CompanyName + "作业本"; |
| | | } |
| | | setTimeout(function () { ReceiptT('customer', jobj.Keyid, 6, 120); }, 0); //获取收货方式 |
| | | } else; |
| | | }); |
| | |
| | | return verfy_form(document.forms[0]); |
| | | } |
| | | } |
| | | function Save() { return ValidateForm(); } |
| | | function Save() { |
| | | if (document.getElementById('txtSumPrice').value == "" || parseFloat(document.getElementById('txtSumPrice').value) <= 0) { |
| | | if (!confirm("订单总价为0,是否继续保存?")) |
| | | return false; |
| | | } |
| | | return ValidateForm(); |
| | | } |