123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- $(function() {
-
- $('a[node-express="untread"]').click(function() {
- $('td[node-express="msg"]').html($(this).attr('title'));
- });
-
- $("input[name='untreadPost']").click(function() {
- $("table[post-box='ture']").hide();
- });
-
- $("input[node-untread='post']").click(function() {
- $("table[post-box='ture']").show();
- });
-
- $("a[node-approval^='approval']").click(function() {
- $("input[name='status']").val($(this).attr("diss-data"));
- $("form[name='invoiceApproval']").submit();
- });
- $("a[node-invoice='droppedInvoice']").click(function() {
- $("input[name='droppedIidKey']").val($(this).attr("diss-data"));
- });
-
- $("a[node-invoice='untreadInvoice']").click(function() {
- $("input[name='untreadIidKey']").val($(this).attr("diss-data"));
- });
-
- $("a[node-post='express']").click(function() {
- var postData = $(this).attr("post-data");
- $("input[name='iidKey']").val(postData);
-
- $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
- var url = "/ajaxGetInvoicePostDetail";
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {
- iidKey : postData
- },
- global : true,
- success : function(data) {
- if (data.status == 1) {
- $("td[recipients-data='true']").html(data.invoiceDetail.recipients);
- $("td[recipientsPhone-data='true']").html(data.invoiceDetail.recipientsPhone);
- $("td[recipientsAddress-data='true']").html(data.invoiceDetail.recipientsAddress);
- $("td[mailItems-data='true']").html(data.invoiceDetail.mailItems);
- $("div[loading-msg='true']").html("");
- } else
- $("div[loading-msg='true']").html("illegal request");
- },
- error : function(err) {
- }
- });
- });
- $("a[node-post='express-msg']").click(function() {
- var postData = $(this).attr("post-data");
-
- $("div[loading-msg='express-msg']").html("<img src='/global/img/loadIco.gif' />");
- var url = "/ajaxGetInvoicePostDetail";
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {
- iidKey : postData
- },
- global : true,
- success : function(data) {
- if (data.status == 1) {
- $("td[recipients-data='express-msg']").html(data.invoiceDetail.recipients);
- $("td[recipientsPhone-data='express-msg']").html(data.invoiceDetail.recipientsPhone);
- $("td[recipientsAddress-data='express-msg']").html(data.invoiceDetail.recipientsAddress);
- $("td[mailItems-data='express-msg']").html(data.invoiceDetail.mailItems);
- $("td[actualItems-data='express-msg']").html(data.invoiceDetail.actualItems);
- $("td[expressCompany-data='express-msg']").html(data.invoiceDetail.expressCompany);
- $("td[expressNumber-data='express-msg']").html(data.invoiceDetail.expressNumber+" <a target='_blank' href='http://www.kuaidi100.com/chaxun?com="+data.invoiceDetail.expressCom+"&nu="+data.invoiceDetail.expressNumber+"'>点击查询快递信息</a>");
- $("div[loading-msg='express-msg']").html("");
- } else
- $("div[loading-msg='express-msg']").html("illegal request");
- },
- error : function(err) {
- }
- });
- });
-
- $("select[name='receivablesCategory']").click(function() {
- var cid = $("select[name='receivablesCategory'] option:selected").attr("post-data");
- var url = "/ajaxGetStaffByCategory";
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {
- cid : cid
- },
- global : true,
- success : function(data) {
- if (data.status == 1) {
- $("select[name='receivablesStaff']").html(data.html);
- }
- //else
- // $("div[loading-msg='true']").html("illegal request");
- },
- error : function(err) {
- }
- });
- });
-
- $('a[node-receivables="true"]').click(function() {
- var postData = $(this).attr("data-key");
- var url = "/ajaxGetInvoiceReceivables";
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {
- key : postData
- },
- global : true,
- success : function(data) {
- if (data.status == 1) {
- $("input[name='key']").val(postData);
-
- $("td[node-receivablesSerial]").html(data.detail.receivablesSerial);
- $("td[node-inputStaff]").html(data.detail.inputStaff+" "+data.detail.date);
- $("td[node-price]").html("<b>"+data.detail.receivablesPrice+"</b>");
- $("td[node-message]").html(data.detail.receivablesMessage);
- $("td[node-bank]").html(data.detail.receivablesBank);
- $("td[node-date]").html(data.detail.receivablesDate);
- }
-
- },
- error : function(err) {
- }
- });
- });
-
- $('a[node-recording="true"]').click(function() {
- var postData = $(this).attr("data-key");
- var url = "/ajaxGetInvoiceByStaff";
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {
- key : postData
- },
- global : true,
- success : function(data) {
- // if (data.status == 1) {
- // $("input[name='key']").val(postData);
- //
- // $("td[node-receivablesSerial]").html(data.detail.receivablesSerial);
- // $("td[node-inputStaff]").html(data.detail.inputStaff+" "+data.detail.date);
- // $("td[node-price]").html("<b>"+data.detail.receivablesPrice+"</b>");
- // $("td[node-message]").html(data.detail.receivablesMessage);
- // $("td[node-bank]").html(data.detail.receivablesBank);
- // $("td[node-date]").html(data.detail.receivablesDate);
- // }
- //else
- // $("div[loading-msg='true']").html("illegal request");
- },
- error : function(err) {
- }
- });
- });
-
-
- })
|