365 lines
29 KiB
JavaScript
365 lines
29 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-9bdafe00"], { "0b37": function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "a", (function() {
|
||
return n;
|
||
})), a.d(t, "b", (function() {
|
||
return l;
|
||
})), a.d(t, "c", (function() {
|
||
return r;
|
||
})), a.d(t, "d", (function() {
|
||
return o;
|
||
})), a.d(t, "f", (function() {
|
||
return i;
|
||
})), a.d(t, "e", (function() {
|
||
return s;
|
||
}));
|
||
a("8dee"), a("e680"), a("4057"), a("fc02");
|
||
function n(e2, t2) {
|
||
var a2, n2, l2, r2;
|
||
try {
|
||
a2 = e2.toString().split(".")[1].length;
|
||
} catch (i2) {
|
||
a2 = 0;
|
||
}
|
||
try {
|
||
n2 = t2.toString().split(".")[1].length;
|
||
} catch (i2) {
|
||
n2 = 0;
|
||
}
|
||
if (r2 = Math.abs(a2 - n2), l2 = Math.pow(10, Math.max(a2, n2)), r2 > 0) {
|
||
var o2 = Math.pow(10, r2);
|
||
a2 > n2 ? (e2 = Number(e2.toString().replace(".", "")), t2 = Number(t2.toString().replace(".", "")) * o2) : (e2 = Number(e2.toString().replace(".", "")) * o2, t2 = Number(t2.toString().replace(".", "")));
|
||
} else e2 = Number(e2.toString().replace(".", "")), t2 = Number(t2.toString().replace(".", ""));
|
||
return (e2 + t2) / l2;
|
||
}
|
||
function l(e2, t2) {
|
||
var a2, n2, l2 = 0, r2 = 0;
|
||
try {
|
||
l2 = e2.toString().split(".")[1].length;
|
||
} catch (o2) {
|
||
}
|
||
try {
|
||
r2 = t2.toString().split(".")[1].length;
|
||
} catch (o2) {
|
||
}
|
||
return a2 = Number(e2.toString().replace(".", "")), n2 = Number(t2.toString().replace(".", "")), a2 / n2 * Math.pow(10, r2 - l2);
|
||
}
|
||
function r(e2, t2) {
|
||
var a2 = 0, n2 = e2.toString(), l2 = t2.toString();
|
||
try {
|
||
a2 += n2.split(".")[1].length;
|
||
} catch (r2) {
|
||
}
|
||
try {
|
||
a2 += l2.split(".")[1].length;
|
||
} catch (r2) {
|
||
}
|
||
return Number(n2.replace(".", "")) * Number(l2.replace(".", "")) / Math.pow(10, a2);
|
||
}
|
||
function o(e2, t2) {
|
||
var a2, n2, l2, r2;
|
||
try {
|
||
a2 = e2.toString().split(".")[1].length;
|
||
} catch (o2) {
|
||
a2 = 0;
|
||
}
|
||
try {
|
||
n2 = t2.toString().split(".")[1].length;
|
||
} catch (o2) {
|
||
n2 = 0;
|
||
}
|
||
return l2 = Math.pow(10, Math.max(a2, n2)), r2 = a2 >= n2 ? a2 : n2, (Math.round(e2 * l2 - t2 * l2) / l2).toFixed(r2);
|
||
}
|
||
function i(e2, t2) {
|
||
if (0 == e2 && (e2 = 0), /[^[\-|0-9][0-9]*]/.test(e2)) return "0";
|
||
if (null == e2 || "" === e2) return "";
|
||
e2 = e2.toString().replace(/^(-\d*)$/, "$1."), e2 = e2.toString().replace(/^(\d*)$/, "$1."), e2 = (e2 + "00").replace(/(\d*\.\d\d)\d*/, "$1"), e2 = e2.replace(".", ",");
|
||
var a2 = /(\d)(\d{3},)/;
|
||
while (a2.test(e2)) e2 = e2.replace(a2, "$1,$2");
|
||
if (e2 = e2.replace(/,(\d\d)$/, ".$1"), 0 === t2 || void 0 === t2) {
|
||
var n2 = e2.split(".");
|
||
"00" == n2[1] && (e2 = n2[0]);
|
||
}
|
||
return e2;
|
||
}
|
||
function s(e2, t2) {
|
||
e2 = e2.toString();
|
||
var a2 = e2.indexOf(".");
|
||
return e2 = -1 !== a2 ? e2.substring(0, t2 + a2 + 1) : e2.substring(0), parseFloat(e2).toFixed(t2);
|
||
}
|
||
}, "179e": function(e, t, a) {
|
||
"use strict";
|
||
a("b324");
|
||
}, "4d4e": function(e, t, a) {
|
||
"use strict";
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [e2.list ? a2("div", [a2("div", { staticClass: "formContent" }, [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [a2("el-form-item", { attrs: { prop: "month", label: "" } }, [a2("el-date-picker", { attrs: { "value-format": "yyyy-MM", type: "month", placeholder: "选择月份", clearable: "" }, model: { value: e2.query.month, callback: function(t3) {
|
||
e2.$set(e2.query, "month", t3);
|
||
}, expression: "query.month" } })], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
return e2.resetForm("query");
|
||
} } }, [e2._v("重置")])], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "contentStys" }, [e2._m(0), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", fixed: "", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
|
||
} }], null, false, 3311124033) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "工资月份" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.month || "-") + "\n ")];
|
||
} }], null, false, 3157063904) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "当月应发" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.totalAmount)) + "\n ")];
|
||
} }], null, false, 763374905) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "当月实发" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.realAmount)) + "\n ")];
|
||
} }], null, false, 2283499937) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [2 == t3.row.checkStatus ? a2("el-tag", { attrs: { type: "success" } }, [e2._v("已核对")]) : e2._e(), e2._v(" "), 1 == t3.row.checkStatus ? a2("el-tag", { attrs: { type: "danger" } }, [e2._v("未核对")]) : e2._e()];
|
||
} }], null, false, 1350202835) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.creatorName || "-") + "\n ")];
|
||
} }], null, false, 3106302251) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.createTime || "-") + "\n ")];
|
||
} }], null, false, 1062956897) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "核对人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.checkerName || "-") + "\n ")];
|
||
} }], null, false, 3605154054) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "核对时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.checkTime || "-") + "\n ")];
|
||
} }], null, false, 2647943363) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "150", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [1 == t3.row.checkStatus ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
||
return e2.payrollCheck(t3.row);
|
||
} } }, [e2._v("工资确认")]) : e2._e(), e2._v(" "), a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
||
return e2.toDetail(t3.row);
|
||
} } }, [e2._v("查看")])];
|
||
} }], null, false, 1130199792) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1)]) : e2._e(), e2._v(" "), e2.detail ? a2("div", [a2("div", { staticStyle: { margin: "10px 0" } }, [a2("el-page-header", { attrs: { content: "工资详情" }, on: { back: e2.goBack } })], 1), e2._v(" "), a2("payrollDetail", { ref: "detalsList" })], 1) : e2._e()]);
|
||
}, l = [function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "planLst" }, [a2("span", [e2._v("工资发放列表")])]);
|
||
}], r = (a("a450"), a("333d")), o = a("8425"), i = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", {}, [a2("div", { staticClass: "formContent" }, [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [a2("el-form-item", { attrs: { prop: "osName", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "项目名称", maxlength: "64" }, model: { value: e2.query.osName, callback: function(t3) {
|
||
e2.$set(e2.query, "osName", t3);
|
||
}, expression: "query.osName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "memberName", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "员工姓名", maxlength: "64" }, model: { value: e2.query.memberName, callback: function(t3) {
|
||
e2.$set(e2.query, "memberName", t3);
|
||
}, expression: "query.memberName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "phoneNumber", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "手机号码", maxlength: "64" }, model: { value: e2.query.phoneNumber, callback: function(t3) {
|
||
e2.$set(e2.query, "phoneNumber", t3);
|
||
}, expression: "query.phoneNumber" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "selfCheckStatus", label: "" } }, [a2("el-select", { attrs: { placeholder: "请选择确认状态" }, model: { value: e2.query.selfCheckStatus, callback: function(t3) {
|
||
e2.$set(e2.query, "selfCheckStatus", t3);
|
||
}, expression: "query.selfCheckStatus" } }, [a2("el-option", { attrs: { label: "未确认", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "已确认", value: 2 } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "filtrateZero", label: "" } }, [a2("el-checkbox", { attrs: { "true-label": 1, "false-label": 0 }, on: { change: e2.onSearch }, model: { value: e2.query.filtrateZero, callback: function(t3) {
|
||
e2.$set(e2.query, "filtrateZero", t3);
|
||
}, expression: "query.filtrateZero" } }, [e2._v("是否过滤总额为0数据")])], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "pushStatus", label: "" } }, [a2("el-select", { attrs: { placeholder: "请选择推送状态" }, model: { value: e2.query.pushStatus, callback: function(t3) {
|
||
e2.$set(e2.query, "pushStatus", t3);
|
||
}, expression: "query.pushStatus" } }, [a2("el-option", { attrs: { label: "未推送", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "已推送", value: 2 } }), e2._v(" "), a2("el-option", { attrs: { label: "推送失败", value: 3 } })], 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
return e2.resetForm("query");
|
||
} } }, [e2._v("重置")])], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "contentStys" }, [a2("div", { staticClass: "myTitle" }, [a2("div", [2 == e2.info.checkStatus ? a2("el-button", { attrs: { type: "primary" }, on: { click: e2.pushPayable } }, [e2._v("薪酬管控申请")]) : e2._e(), e2._v(" "), a2("el-button", { attrs: { type: "warning" }, on: { click: e2.downloadExecl } }, [e2._v("下载Excel")])], 1)]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], ref: "salaryTable", attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark", "row-key": "id" }, on: { "selection-change": e2.handleSelectionChange } }, [2 == e2.info.checkStatus ? a2("el-table-column", { attrs: { type: "selection", selectable: e2.selectable, "reserve-selection": true, align: "center", fixed: "", width: "50" } }) : e2._e(), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "100", label: "工资月份", fixed: "", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.month || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "员工姓名", fixed: "", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.memberName || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "确认状态", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [2 == t3.row.selfCheckStatus ? a2("el-tag", { attrs: { type: "success" } }, [e2._v("已确认")]) : e2._e(), e2._v(" "), 1 == t3.row.selfCheckStatus ? a2("el-tag", { attrs: { type: "danger" } }, [e2._v("未确认")]) : e2._e()];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "180", label: "确认时间", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.selfCheckTime || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "180", label: "确认签名", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [t3.row.selfCheckSign ? a2("el-image", { attrs: { src: t3.row.selfCheckSign } }) : a2("span", [e2._v("-")])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "推送状态", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [2 == t3.row.pushStatus ? a2("el-tag", { attrs: { type: "success" } }, [e2._v("已推送")]) : e2._e(), e2._v(" "), 1 == t3.row.pushStatus ? a2("el-tag", { attrs: { type: "warning" } }, [e2._v("未推送")]) : e2._e(), e2._v(" "), 3 == t3.row.pushStatus ? a2("el-tag", { attrs: { type: "danger" } }, [e2._v("推送失败")]) : e2._e()];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "160", "show-overflow-tooltip": "", label: "组织名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.osName || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "手机号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.phoneNumber || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "证件类型", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("getItemType")(t3.row.certificateType, e2.IDTypeList)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "证件号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2.maskedIdCard(t3.row.idNumber)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "120", label: "岗位", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(t3.row.jobName || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), e2._l(e2.tableTitleList1, (function(t3, n2) {
|
||
return a2("el-table-column", { key: n2 + "a", attrs: { width: "120", label: t3.salaryItemName, align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t4) {
|
||
return [t4.row.payrollList1 && t4.row.payrollList1.length && t4.row.payrollList1[n2] ? a2("span", [e2._v("\n " + e2._s(e2._f("formatMoney")(t4.row.payrollList1[n2].amount)) + "\n ")]) : a2("span", [e2._v(" - ")])];
|
||
} }], null, true) });
|
||
})), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "应税工资" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.calculateTaxAmount)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "专项抵扣" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.specialAmount)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "应纳税所得额" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2.getTaxAmount(t3.row) > 0 ? a2("span", [e2._v(e2._s(e2._f("formatMoney")(e2.getTaxAmount(t3.row))))]) : a2("span", [e2._v("0")])];
|
||
} }]) }, [a2("template", { slot: "header" }, [e2._v("\n 应纳税所得额\n "), a2("el-tooltip", { attrs: { content: "应纳税所得额 = ( 应税工资 - 个税起征点 - 专项扣除(三险一金等) - 专项抵扣 ) × 适用税率 - 速算扣除数", placement: "top" } }, [a2("el-button", { staticStyle: { color: "#909399" }, attrs: { type: "text", icon: "el-icon-info" } })], 1)], 1)], 2), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "个人所得税" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(-t3.row.taxAmount)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "应发税后工资" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.afterTaxAmount)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "150", label: "基本养老保险(个人)" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(-t3.row.endowmentInsurance)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "失业保险(个人)" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(-t3.row.unemploymentInsurance)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "150", label: "基本医疗保险(个人)" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(-t3.row.medicalInsurance)) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "公积金(个人)" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(-t3.row.housingFund)) + "\n ")];
|
||
} }]) }), e2._v(" "), e2._l(e2.tableTitleList2, (function(t3, n2) {
|
||
return a2("el-table-column", { key: n2 + "b", attrs: { width: "130", label: t3.salaryItemName, align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t4) {
|
||
return [t4.row.payrollList2 && t4.row.payrollList2.length && t4.row.payrollList2[n2] ? a2("span", [e2._v("\n " + e2._s(e2._f("formatMoney")(t4.row.payrollList2[n2].amount)) + "\n ")]) : a2("span", [e2._v(" - ")])];
|
||
} }], null, true) });
|
||
})), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "130", label: "实发工资" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.realAmount)) + "\n ")];
|
||
} }]) }), e2._v(" "), e2._l(e2.tableTitleList3, (function(t3, n2) {
|
||
return a2("el-table-column", { key: n2 + "c", attrs: { width: "130", label: "" + t3.salaryItemName, align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t4) {
|
||
return [t4.row.payrollList3 && t4.row.payrollList3.length && t4.row.payrollList3[n2] ? a2("span", [e2._v("\n " + e2._s(e2._f("formatMoney")(t4.row.payrollList3[n2].amount)) + "\n ")]) : a2("span", [e2._v(" - ")])];
|
||
} }], null, true) });
|
||
}))], 2), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1)]);
|
||
}, s = [], u = (a("8dee"), a("dce5")), c = a("0b37"), f = { components: { Pagination: r["a"] }, data: function() {
|
||
return { IDTypeList: u["b"], info: {}, pageTotal: 0, listLoading: false, listTable: [], query: { osName: "", memberName: "", phoneNumber: "", selfCheckStatus: "", pageSize: 10, pageNumber: 1, filtrateZero: 1 }, tableTitleList1: [], tableTitleList2: [], tableTitleList3: [], selectList: [] };
|
||
}, mounted: function() {
|
||
}, methods: { downloadExecl: function() {
|
||
Object(o["e"])(this.query).then((function(e2) {
|
||
var t2 = new Blob([e2], { type: "application/vnd.ms-excel;charset=UTF-8" });
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2);
|
||
else {
|
||
var a2 = document.createElement("a");
|
||
a2.download = "工资条明细", a2.href = URL.createObjectURL(t2), a2.click(), URL.revokeObjectURL(a2.href), document.body.removeChild(a2);
|
||
}
|
||
})).catch((function(e2) {
|
||
}));
|
||
}, init: function(e2) {
|
||
this.info = e2, this.getlistData();
|
||
}, getlistData: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, this.query.month = this.info.month, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.query.roleId = parseInt(JSON.parse(window.localStorage.getItem("roleId"))), Object(o["h"])(this.query).then((function(t2) {
|
||
0 == t2.code && t2.data.records.length ? (t2.data.records.map((function(e3, t3) {
|
||
e3.payrollList1 = e3.salaryItemInfo ? JSON.parse(e3.salaryItemInfo) : [], e3.payrollList2 = e3.unTaxSalaryItemInfo ? JSON.parse(e3.unTaxSalaryItemInfo) : [], e3.payrollList3 = e3.unCalculateSalaryItemInfo ? JSON.parse(e3.unCalculateSalaryItemInfo) : [];
|
||
})), e2.listTable = t2.data.records, e2.tableTitleList1 = e2.listTable[0].payrollList1, e2.tableTitleList2 = e2.listTable[0].payrollList2, e2.tableTitleList3 = e2.listTable[0].payrollList3, console.log(e2.tableTitleList1, "this.tableTitleList1----"), console.log(e2.tableTitleList2, "this.tableTitleList2----"), console.log(e2.tableTitleList3, "this.tableTitleList3----"), e2.pageTotal = t2.data.rowsCount, e2.listLoading = false) : (e2.tableTitleList1 = [], e2.tableTitleList2 = [], e2.tableTitleList3 = [], e2.listTable = [], e2.pageTotal = 0, e2.listLoading = false);
|
||
}));
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getlistData();
|
||
}, resetForm: function(e2) {
|
||
this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getlistData();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getlistData();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, getTaxAmount: function(e2) {
|
||
var t2 = Object(c["d"])(e2.calculateTaxAmount, e2.specialAmount), a2 = Object(c["d"])(t2, 5e3), n2 = Object(c["a"])(e2.endowmentInsurance, e2.medicalInsurance), l2 = Object(c["a"])(n2, e2.unemploymentInsurance), r2 = Object(c["a"])(l2, e2.housingFund);
|
||
return Object(c["d"])(a2, r2);
|
||
}, maskedIdCard: function(e2) {
|
||
var t2 = "";
|
||
if (e2) if (e2.length > 10) {
|
||
var a2 = /^(.{6})(?:\d+)(.{4})$/;
|
||
t2 = e2.replace(a2, "$1******$2");
|
||
} else t2 = e2;
|
||
else t2 = "-";
|
||
return t2;
|
||
}, handleSelectionChange: function(e2) {
|
||
this.selectList = e2;
|
||
}, selectable: function(e2, t2) {
|
||
return 2 != e2.pushStatus;
|
||
}, pushPayable: function() {
|
||
var e2 = this;
|
||
if (this.selectList.length > 0) {
|
||
var t2 = [];
|
||
this.selectList.map((function(e3, a3) {
|
||
t2.push(e3.id);
|
||
}));
|
||
var a2 = JSON.parse(window.localStorage.getItem("memberInfor"));
|
||
Object(o["i"])({ ids: t2, operatorId: a2.id, operatorName: a2.name }).then((function(t3) {
|
||
0 == t3.code && (e2.$message.success("提交成功"), e2.$refs.salaryTable.clearSelection(), e2.getlistData());
|
||
}));
|
||
} else this.$message.error("请选择需要提交应付管控的数据");
|
||
} } }, d = f, p = (a("179e"), a("829d")), m = Object(p["a"])(d, i, s, false, null, "0bed850c", null), h = m.exports, b = { components: { Pagination: r["a"], payrollDetail: h }, data: function() {
|
||
return { pageTotal: 0, listLoading: false, listTable: [], query: { month: "", pageSize: 10, pageNumber: 1 }, list: true, detail: false };
|
||
}, created: function() {
|
||
this.getlistData();
|
||
}, methods: { getlistData: function() {
|
||
var e2 = this;
|
||
this.listLoading = true;
|
||
var t2 = this.query;
|
||
t2.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, t2.roleId = parseInt(JSON.parse(window.localStorage.getItem("roleId"))), Object(o["f"])(t2).then((function(t3) {
|
||
e2.listTable = t3.data.records, e2.pageTotal = t3.data.rowsCount, e2.listLoading = false;
|
||
}));
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getlistData();
|
||
}, resetForm: function(e2) {
|
||
this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getlistData();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getlistData();
|
||
}, payrollCheck: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("此操作将确认该月份工资数据,且不可再更改, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
|
||
var a2 = JSON.parse(window.localStorage.getItem("memberInfor")), n2 = { checkerId: a2.id, checkerName: a2.name, companyId: JSON.parse(localStorage.getItem("companyInfo")).osId, month: e2.month };
|
||
Object(o["b"])(n2).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ type: "success", message: "确认成功!" }), t2.getlistData());
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
}, toDetail: function(e2) {
|
||
this.list = false, this.detail = true, this.$nextTick((function() {
|
||
this.$refs.detalsList.init(e2);
|
||
}));
|
||
}, goBack: function() {
|
||
this.list = true, this.detail = false;
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} } }, g = b, y = (a("b361"), Object(p["a"])(g, n, l, false, null, "1f1dfc14", null));
|
||
t["a"] = y.exports;
|
||
}, "6f50": function(e, t, a) {
|
||
}, 8425: function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "a", (function() {
|
||
return l;
|
||
})), a.d(t, "c", (function() {
|
||
return r;
|
||
})), a.d(t, "g", (function() {
|
||
return o;
|
||
})), a.d(t, "j", (function() {
|
||
return i;
|
||
})), a.d(t, "d", (function() {
|
||
return s;
|
||
})), a.d(t, "f", (function() {
|
||
return u;
|
||
})), a.d(t, "h", (function() {
|
||
return c;
|
||
})), a.d(t, "b", (function() {
|
||
return f;
|
||
})), a.d(t, "e", (function() {
|
||
return d;
|
||
})), a.d(t, "i", (function() {
|
||
return p;
|
||
}));
|
||
var n = a("b775");
|
||
function l(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/data/project/carParkStatistics", method: "POST", data: e2 });
|
||
}
|
||
function r(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/SalaryItem/create", method: "POST", data: e2 });
|
||
}
|
||
function o(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/SalaryItem/pageList", method: "POST", data: e2 });
|
||
}
|
||
function i(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/SalaryItem/update", method: "POST", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/MemberSalary/create", method: "POST", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/MemberSalary/pageByCompany", method: "POST", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/MemberSalary/pageList", method: "POST", data: e2 });
|
||
}
|
||
function f(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/MemberSalary/confirm", method: "POST", data: e2 });
|
||
}
|
||
function d(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/MemberSalary/export", method: "POST", responseType: "blob", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(n["a"])({ url: "/hakocompany/MemberSalary/pushToInvestmentSubscribe", method: "POST", data: e2 });
|
||
}
|
||
}, b324: function(e, t, a) {
|
||
}, b361: function(e, t, a) {
|
||
"use strict";
|
||
a("6f50");
|
||
} }]);
|