After a single click trigger event

Finally, return the data to the page
// click on the repair order a single event
$ ( "# HouYiWXD") the Click (function () {.
// query service the total number of single-line
J ++;
DanShu ++;
i = shuzu [J];
IF (J = shuzu.length =) {
layer.msg ( "! it's the last repair bill boss", {icon: 0, Skin: "layui-Layer-molv"});
j-;
DanShu-;
} the else {
$ .post ( "/ WeiXiuYeWu / QianTaiGuanLi / SelectWeiXiuWeiTuoDanHouDan I =?" + I, function (Data) {
loadDatatoForm ( "formWeiTuoDanChaXun", Data);
// retrieve billing status value
var SettleAccountsVerifyState = $ ( "# SettleAccountsVerifyStateID ") val. ();
. MaintenanceOrderid var = $ ( "# MaintenanceOrderid") Val ();
TabXiangMuYi.search ({MaintenanceOrderID: MaintenanceOrderid});
TabWeiXiuLL.search ({MaintenanceOrderID: MaintenanceOrderid});
HeJiJinEr (); PeiJianJinEr ();
})
}
. $ ( "# Danshu") Val (DanShu);
})
// maintenance of a single click before a single event
$ ( "# QianYiWXD") the Click (function () {.
J -;
DanShu-;
I = shuzu [J];
IF (J == -1) {
layer.msg ( "this is the first maintenance single boss!", {icon: 0, skin: "layui-layer-molv "});
J ++;
DanShu ++;
} the else {
$ .post" {( "+ I, function (Data / WeiXiuYeWu / QianTaiGuanLi / SelectWeiXiuWeiTuoDanQianDan I =?)
loadDatatoForm (" formWeiTuoDanChaXun ", Data);
var SettleAccountsVerifyState = $ (" # SettleAccountsVerifyStateID. ") Val ();
var MaintenanceOrderid = $ (" #MaintenanceOrderid ") .val (https://www.qqtn.com/wm/nanshengwm_3.html);
TabXiangMuYi.search ({MaintenanceOrderID:MaintenanceOrderid});
TabWeiXiuLL.search ({MaintenanceOrderID: MaintenanceOrderid});
HeJiJinEr ();
PeiJianJinEr ();
})
}
. $ ( "# Danshu") Val (DanShu);
})
------------- -------- 

Guess you like

Origin www.cnblogs.com/ly570/p/11284687.html