后一单点击触发事件
最后返回数据到页面中
//点击维修单后一单事件
$("#HouYiWXD").click(function () {
//查询维修单行总数
j++;
DanShu++;
i = shuzu[j];
if (j == shuzu.length) {
layer.msg(“这是最后一张维修单了!老板”, { icon: 0, skin: “layui-layer-molv” });
j–;
DanShu–;
} else {
$.post("/WeiXiuYeWu/QianTaiGuanLi/SelectWeiXiuWeiTuoDanHouDan?i=" + i, function (data) {
loadDatatoForm(“formWeiTuoDanChaXun”, data);
//获取结算状态的值
var SettleAccountsVerifyState = $("#SettleAccountsVerifyStateID").val();
var MaintenanceOrderid = $("#MaintenanceOrderid").val();
TabXiangMuYi.search({ MaintenanceOrderID: MaintenanceOrderid });
TabWeiXiuLL.search({ MaintenanceOrderID: MaintenanceOrderid });
HeJiJinEr(); PeiJianJinEr();
})
}
$("#danshu").val(DanShu);
})
//点击维修单前一单事件
$("#QianYiWXD").click(function () {
j–;
DanShu–;
i = shuzu[j];
if (j == -1) {
layer.msg(“这是第一张维修单!老板”, { icon: 0, skin: “layui-layer-molv” });
j++;
DanShu++;
} else {
$.post("/WeiXiuYeWu/QianTaiGuanLi/SelectWeiXiuWeiTuoDanQianDan?i=" + i, function (data) {
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);
})
---------------------