fna-saoma.js
1.56 KB
function _onSave123(){
Mobile_NS.showLoader();
var userid = Mobile_NS.getCurrUser();
var billingDate = $("#span9").text();//开票日期
var invoicecode = $("#span6").text();//发票代码
var invoiceNumber = $("#span5").text();//发票号码
var invoiceType = $("#fplx").val();//发票类型
var seller = $("#span8").text();//销售方
var purchaser = $("#span7").text();//购买方
var checkCode = $("#_checkCode").val();//校验码
var invoiceServiceYype = $("#_invoiceServiceYype").val();//货物或应税服务类型
var priceWithoutTax = $("#span3").text();//金额(不含税价)
var taxRate = $("#_taxRate").val();//税率
var tax = $("#span4").text();//税额(税价)
var taxIncludedPrice = $("#span2").text();//价税合计(含税价)
var detaildata = $("#detaildata").val();
var param = {"userid":userid, "billingDate":billingDate, "invoicecode":invoicecode,"invoiceNumber":invoiceNumber,"invoiceType":invoiceType,"seller":seller,
"purchaser":purchaser,"checkCode":checkCode,"invoiceServiceYype":invoiceServiceYype,"priceWithoutTax":priceWithoutTax,"taxRate":taxRate,"tax":tax,"taxIncludedPrice":taxIncludedPrice,
"type":"3","detaildata":detaildata};
Mobile_NS.ajax("/mobile/plugin/1/fna/invoiceInfoAjax.jsp", param, function(responseText){
Mobile_NS.hideLoader();
if(responseText.status == 1){
Mobile_NS.Alert("保存成功!");
}else{
Mobile_NS.Alert("出现异常:" + responseText.errMsg, false);
return;
}
},"json");
}