740 lines
66 KiB
JavaScript
740 lines
66 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-b2f66574"], { "0692": function(e, t, a) {
|
|
}, "0d01": function(e, t, a) {
|
|
"use strict";
|
|
a("de94");
|
|
}, "19a55": function(e, t, a) {
|
|
}, "20e1": function(e, t, a) {
|
|
"use strict";
|
|
a.d(t, "l", (function() {
|
|
return r;
|
|
})), a.d(t, "k", (function() {
|
|
return i;
|
|
})), a.d(t, "h", (function() {
|
|
return o;
|
|
})), a.d(t, "a", (function() {
|
|
return l;
|
|
})), a.d(t, "e", (function() {
|
|
return s;
|
|
})), a.d(t, "b", (function() {
|
|
return c;
|
|
})), a.d(t, "c", (function() {
|
|
return u;
|
|
})), a.d(t, "d", (function() {
|
|
return p;
|
|
})), a.d(t, "m", (function() {
|
|
return d;
|
|
})), a.d(t, "f", (function() {
|
|
return m;
|
|
})), a.d(t, "i", (function() {
|
|
return g;
|
|
})), a.d(t, "g", (function() {
|
|
return b;
|
|
})), a.d(t, "j", (function() {
|
|
return f;
|
|
}));
|
|
var n = a("b775");
|
|
function r(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdRule/pageList", method: "post", data: e2 });
|
|
}
|
|
function i(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdPool/create", method: "post", data: e2 });
|
|
}
|
|
function o(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdPool/findOsProjectYdPageList", method: "post", data: e2 });
|
|
}
|
|
function l(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdPool/countYdTotalByProject", method: "post", data: e2 });
|
|
}
|
|
function s(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdPool/getDetail", method: "post", data: e2 });
|
|
}
|
|
function c(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdMemberAccount/findMemberYdPageList", method: "post", data: e2 });
|
|
}
|
|
function u(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdMemberAccount/findById", method: "post", data: e2 });
|
|
}
|
|
function p(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdPool/pageList", method: "post", data: e2 });
|
|
}
|
|
function d(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdPool/update", method: "post", data: e2 });
|
|
}
|
|
function m(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/YdMemberAccount/memberTradeRecordPageList", method: "post", data: e2 });
|
|
}
|
|
function g(e2) {
|
|
return Object(n["a"])({ url: "/company/YdMemberAccount/findTradeRecordDetail", method: "post", data: e2 });
|
|
}
|
|
function b(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/Project/orderPricePage", method: "post", data: e2 });
|
|
}
|
|
function f(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/Project/updateOrderPrice", method: "post", data: e2 });
|
|
}
|
|
}, "4f70": function(e, t, a) {
|
|
"use strict";
|
|
a.r(t);
|
|
var n = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "app-container bgHeight" }, [a2("el-tabs", { attrs: { value: e2.activeName, type: "border-card" }, on: { "tab-click": e2.handleClick } }, [a2("el-tab-pane", { attrs: { label: "云豆列表", name: "kidneyBeanList" } }, ["kidneyBeanList" === e2.activeName ? a2("kidneyBeanList") : e2._e()], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "薪酬规则", name: "yundouRuleBase" } }, ["yundouRuleBase" === e2.activeName ? a2("yundouRuleBase") : e2._e()], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "薪酬云豆核算", name: "issueManage" } }, ["issueManage" === e2.activeName ? a2("issueManage") : e2._e()], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "非计划云豆配置", name: "unplannedBeanConfig" } }, ["unplannedBeanConfig" === e2.activeName ? a2("unplannedBeanConfig") : e2._e()], 1)], 1)], 1);
|
|
}, r = [], i = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "kidneyBeanList" }, [e2.infoList ? a2("div", [a2("el-card", { staticClass: "box-card" }, [a2("el-row", [a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-input", { attrs: { clearable: "", placeholder: "项目名称" }, model: { value: e2.query.projectName, callback: function(t3) {
|
|
e2.$set(e2.query, "projectName", t3);
|
|
}, expression: "query.projectName" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.resetForm();
|
|
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [e2._v("云豆列表")])]), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", 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) + " ")])];
|
|
} }], null, false, 3830243315) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "name", label: "项目名称" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "total", label: "云豆数量" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row ? a2("span", [null !== t3.row.total ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.detailsClick(t3.row, "view");
|
|
} } }, [e2._v("查看")]) : e2._e()], 1) : e2._e(), e2._v(" "), t3.row ? a2("span", [null !== t3.row.total ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.detailsClick(t3.row, "edit");
|
|
} } }, [e2._v("编辑")]) : e2._e()], 1) : e2._e(), e2._v(" "), t3.row ? a2("span", [null == t3.row.total ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.detailsClick(t3.row, "add");
|
|
} } }, [e2._v("配置")]) : e2._e()], 1) : e2._e()];
|
|
} }], null, false, 1429729306) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "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)], 1) : e2._e(), e2._v(" "), e2.viewInfo ? a2("div", { staticClass: "viewDetails" }, [a2("cloudBeanList", { ref: "cloud", on: { goBack: e2.goBack } })], 1) : e2._e()]);
|
|
}, o = [], l = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "cloudBeanList" }, [e2.infoLisW ? a2("div", [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content }, on: { back: e2.goBackInfo } }), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("基础信息")]), e2._v(" "), a2("div", { staticClass: "tab-title" }), e2._v(" "), a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#606266", "font-size": "16px" } }, [a2("el-row", [a2("el-col", { attrs: { span: 12 } }, [e2._v("项目名称:" + e2._s(e2.query.name))]), e2._v(" "), a2("el-col", { attrs: { span: 12 } }, [e2._v("云豆数量:"), a2("el-input", { attrs: { disabled: "" }, model: { value: e2.shuliang, callback: function(t3) {
|
|
e2.shuliang = t3;
|
|
}, expression: "shuliang" } })], 1)], 1)], 1)])], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [e2._v("云豆池列表")]), e2._v(" "), a2("span", { staticClass: "add" }, ["view" !== e2.type ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) {
|
|
return e2.detailsClick("", "add");
|
|
} } }, [e2._v("添加云豆池")]) : e2._e()], 1)]), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.pageNumber - 1) * e2.pageSize + 1) + " ")])];
|
|
} }], null, false, 2370151091) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "name", label: "云豆池名称" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "total", label: "云豆池数量" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "memberTotal", label: "引用人个数" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createBy", label: "配置人" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "updateDate", label: "最近更新时间" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row ? a2("span", ["view" === e2.type ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.detailsClick(t3.row, "view");
|
|
} } }, [e2._v("查看")]) : e2._e()], 1) : e2._e(), e2._v(" "), t3.row ? a2("span", ["view" !== e2.type ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.detailsClick(t3.row, "edit");
|
|
} } }, [e2._v("编辑")]) : e2._e()], 1) : e2._e()];
|
|
} }], null, false, 1987237268) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": e2.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
|
|
e2.pageNumber = t3;
|
|
}, "update:current-page": function(t3) {
|
|
e2.pageNumber = t3;
|
|
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1), e2._v(" "), a2("div", { staticClass: "savePrimary" }, [a2("el-button", { attrs: { type: "primary", plain: "" }, on: { click: e2.goBackInfo } }, [e2._v("返回")])], 1)], 1)], 1) : e2._e(), e2._v(" "), e2.viewInfoW ? a2("div", { staticClass: "viewDetails" }, [a2("cloudBeanConfig", { ref: "config", on: { goBack: e2.goBack, getBackInfo: e2.getDetailInfo } })], 1) : e2._e()]);
|
|
}, s = [], c = (a("ac67"), a("1bc7"), a("32ea"), a("5821")), u = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "cloudBeanList" }, [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content }, on: { back: e2.goBack } }), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("云豆池配置")]), e2._v(" "), a2("div", { staticClass: "tab-title" }), e2._v(" "), a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#606266", "font-size": "16px" } }, [a2("el-form", { ref: "ruleForm", staticClass: "demo-ruleForm", attrs: { model: e2.ruleForm, rules: e2.rules, "label-width": "130px" } }, [a2("el-row", [a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "云豆池名称:", prop: "name" } }, [a2("el-input", { attrs: { disabled: "view" === e2.type }, model: { value: e2.ruleForm.name, callback: function(t3) {
|
|
e2.$set(e2.ruleForm, "name", "string" === typeof t3 ? t3.trim() : t3);
|
|
}, expression: "ruleForm.name" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "云豆数量:", prop: "total" } }, [a2("el-input", { attrs: { disabled: "view" === e2.type, min: 0, onKeypress: "return (/[\\d]/.test(String.fromCharCode(event.keyCode)))", type: "number" }, model: { value: e2.ruleForm.total, callback: function(t3) {
|
|
e2.$set(e2.ruleForm, "total", t3);
|
|
}, expression: "ruleForm.total" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "引用成员总数:", prop: "memberQuantity" } }, [a2("el-input", { attrs: { disabled: "view" === e2.type, oninput: "value=value.replace(/\\D/g,'')", placeholder: "请输入引用成员总数" }, model: { value: e2.ruleForm.memberQuantity, callback: function(t3) {
|
|
e2.$set(e2.ruleForm, "memberQuantity", "string" === typeof t3 ? t3.trim() : t3);
|
|
}, expression: "ruleForm.memberQuantity" } })], 1)], 1)], 1)], 1)], 1)]), e2._v(" "), a2("div", [a2("el-table", { staticStyle: { width: "100%" }, attrs: { data: e2.tableData2, border: "", "header-cell-style": e2.headClass, "show-summary": "", "summary-method": e2.getSummaries } }, [a2("el-table-column", { attrs: { prop: "ruleId", align: "center", label: "云豆规则名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-select", { attrs: { disabled: "view" === e2.type, clearable: "", placeholder: "请选择" }, model: { value: t3.row.ruleId, callback: function(a3) {
|
|
e2.$set(t3.row, "ruleId", a3);
|
|
}, expression: "scope.row.ruleId" } }, e2._l(e2.options, (function(e3) {
|
|
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
|
})), 1)];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "weight", align: "center", sortable: "", label: "权重%" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-input", { attrs: { type: "number", min: 0, disabled: "view" === e2.type, onKeypress: "return (/[\\d]/.test(String.fromCharCode(event.keyCode)))" }, model: { value: t3.row.weight, callback: function(a3) {
|
|
e2.$set(t3.row, "weight", e2._n(a3));
|
|
}, expression: "scope.row.weight" } })];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "quantity", align: "center", sortable: "", label: "云豆数量" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.row.quantity = parseFloat(t3.row.weight ? t3.row.weight : 0) / 100 * parseFloat(e2.ruleForm.total ? e2.ruleForm.total : 0)))])];
|
|
} }]) }), e2._v(" "), "view" !== e2.type ? a2("el-table-column", { attrs: { fixed: "right", align: "center", width: "100", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-button", { staticClass: "el-icon-circle-plus-outline", staticStyle: { "font-size": "20px" }, attrs: { type: "text", size: "small" }, nativeOn: { click: function(a3) {
|
|
return a3.preventDefault(), e2.handleAddDetails(t3.$index, e2.tableData2);
|
|
} } }), e2._v(" "), a2("el-button", { staticClass: "el-icon-remove-outline", staticStyle: { "font-size": "20px" }, attrs: { type: "text", size: "small" }, nativeOn: { click: function(a3) {
|
|
return a3.preventDefault(), e2.deleteRow(t3.$index, e2.tableData2, t3.row);
|
|
} } })];
|
|
} }], null, false, 1541887819) }) : e2._e()], 1)], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [e2._v("引用成员")]), e2._v(" "), a2("span", { staticClass: "add" }, ["view" !== e2.type && e2.tableData.length <= e2.ruleForm.memberQuantity ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.addMember } }, [e2._v("引用成员")]) : e2._e()], 1)]), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.tableData.slice((e2.currentPage - 1) * e2.pageSize, e2.currentPage * e2.pageSize), "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.currentPage - 1) * e2.pageSize + 1) + " ")])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "memberName", label: "成员姓名" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "phoneNumber", label: "手机号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "accountNo", label: "账户号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createDate", label: "引用时间" } }), e2._v(" "), "view" !== e2.type ? a2("el-table-column", { attrs: { align: "center", prop: "address", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-button", { attrs: { type: "text" }, nativeOn: { click: function(a3) {
|
|
return a3.preventDefault(), e2.deleteClick(t3.$index, e2.tableData, t3.row);
|
|
} } }, [e2._v("删除")])];
|
|
} }], null, false, 1252120682) }) : e2._e()], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { layout: "total, sizes, prev, pager, next, jumper", "current-page": e2.currentPage, "page-sizes": [10, 20, 30, 50], "page-size": e2.pageSize, total: e2.tableData.length }, on: { "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1), e2._v(" "), a2("div", { staticClass: "savePrimary" }, ["add" === e2.type || "edit" === e2.type ? a2("el-button", { attrs: { type: "primary", disabled: e2.saveBtun }, on: { click: function(t3) {
|
|
return e2.saveInfo("ruleForm");
|
|
} } }, [e2._v("保存")]) : e2._e(), e2._v(" "), a2("el-button", { attrs: { type: "primary", plain: "" }, on: { click: e2.goBack } }, [e2._v("返回")])], 1)], 1), e2._v(" "), a2("addMemberDialog", { ref: "addMember", attrs: { memberQuantity: e2.ruleForm.memberQuantity }, on: { definiteInfo: e2.definiteInfo } })], 1);
|
|
}, p = [], d = (a("e680"), a("a450"), function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "addMemberDialog" }, [a2("el-dialog", { staticClass: "dialogHead", attrs: { "min-width": "50%", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, title: "新增引用成员", visible: e2.addMemberVisible }, on: { "update:visible": function(t3) {
|
|
e2.addMemberVisible = t3;
|
|
} } }, [a2("div", [a2("el-row", [a2("el-col", { attrs: { span: 8 } }, [a2("el-input", { attrs: { placeholder: "请输入姓名" }, model: { value: e2.form.name, callback: function(t3) {
|
|
e2.$set(e2.form, "name", t3);
|
|
}, expression: "form.name" } })], 1), e2._v(" "), a2("el-col", { staticClass: "left", attrs: { span: 8 } }, [a2("el-input", { attrs: { placeholder: "请输入手机号" }, model: { value: e2.form.phoneNumber, callback: function(t3) {
|
|
e2.$set(e2.form, "phoneNumber", t3);
|
|
}, expression: "form.phoneNumber" } })], 1), e2._v(" "), a2("el-col", { staticClass: "left", attrs: { span: 8 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.resetForm();
|
|
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("div", [a2("el-table", { ref: "multipleTable", staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.searchList.slice((e2.currentPage - 1) * e2.pageSize, e2.currentPage * e2.pageSize), "row-key": "memberId", height: "500", "header-cell-style": e2.headClass }, on: { "selection-change": e2.handleSelectionChange } }, [a2("el-table-column", { attrs: { align: "center", type: "selection", "reserve-selection": true, width: "55" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.currentPage - 1) * e2.pageSize + 1) + " ")])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "memberName", label: "姓名" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "phoneNumber", label: "手机" } })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { layout: "total, sizes, prev, pager, next, jumper", "current-page": e2.currentPage, "page-sizes": [10, 20, 30, 50], "page-size": e2.pageSize, total: e2.searchList.length }, on: { "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), a2("div", { staticClass: "button" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) {
|
|
return e2.definiteInfo();
|
|
} } }, [e2._v("确定")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.cancelClick } }, [e2._v("取消")])], 1)])], 1);
|
|
}), m = [], g = a("8d62"), b = { name: "addMemberDialog", props: ["memberQuantity"], data: function() {
|
|
return { title: "", currentPage: 1, pageSize: 10, objInfo: {}, searchList: [], tableData: [], multipleSelection: [], addMemberVisible: false, form: { name: "", phoneNumber: "" } };
|
|
}, mounted: function() {
|
|
this.headClass();
|
|
}, methods: { definiteInfo: function() {
|
|
var e2 = this, t2 = true;
|
|
if (this.tableData.length > 0 && this.tableData.forEach((function(a2) {
|
|
e2.multipleSelection.forEach((function(e3) {
|
|
a2.memberId == e3.memberId && (t2 = false);
|
|
}));
|
|
})), t2) {
|
|
if (this.tableData.length >= this.memberQuantity) return this.$message({ type: "error", message: "引用成员数量已超限制,请再引用列表移除后再添加" }), false;
|
|
if (this.multipleSelection.length > this.memberQuantity - this.tableData.length) return this.$message({ type: "error", message: "您本次选择的引用成员数量和已选择成员数量之和超出引用成员数量限制" }), false;
|
|
this.addMemberVisible = false, this.currentPage = 1, this.$emit("definiteInfo", this.multipleSelection), this.multipleSelection.length > 0 && this.$refs.multipleTable.clearSelection();
|
|
} else this.$message({ message: "引用成员列表已存在", type: "error" });
|
|
}, getInfoLst: function(e2, t2) {
|
|
this.tableData = e2, this.addMemberVisible = true, this.objInfo = t2, this.getList(this.objInfo);
|
|
}, handleSelectionChange: function(e2) {
|
|
this.multipleSelection = e2;
|
|
}, getList: function(e2) {
|
|
var t2 = this;
|
|
this.searchList = [], this.form.uuid = e2.uuid, Object(g["c"])(this.form).then((function(e3) {
|
|
0 === e3.code && e3.data && e3.data.length > 0 && e3.data.forEach((function(e4) {
|
|
t2.searchList.push({ companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, memberId: e4.id, memberName: e4.name, phoneNumber: e4.phoneNumber, accountNo: e4.workFractionAccountNo, accountId: e4.accountId });
|
|
}));
|
|
})).catch((function(e3) {
|
|
t2.$message({ message: e3, type: "error" });
|
|
}));
|
|
}, cancelClick: function() {
|
|
this.addMemberVisible = false, this.multipleSelection.length > 0 && this.$refs.multipleTable.clearSelection();
|
|
}, memoryChecked: function() {
|
|
var e2 = this, t2 = [];
|
|
this.multipleSelection.forEach((function(e3) {
|
|
t2.push(e3.memberId);
|
|
})), t2.length && this.$nextTick((function() {
|
|
e2.searchList.forEach((function(a2, n2) {
|
|
t2.indexOf(a2.memberId) >= 0 && e2.$refs.multipleTable.toggleRowSelection(a2, true);
|
|
}));
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.currentPage = 1, this.pageSize = e2, this.memoryChecked();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.currentPage = e2, this.memoryChecked();
|
|
}, resetForm: function() {
|
|
this.form.name = "", this.form.phoneNumber = "", this.form.pageNumber = 1, this.getList(this.objInfo);
|
|
}, onSearch: function() {
|
|
this.getList(this.objInfo);
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, f = b, h = (a("d155"), a("829d")), v = Object(h["a"])(f, d, m, false, null, "74d4c1a8", null), y = v.exports, _ = a("20e1");
|
|
function w(e2, t2) {
|
|
var a2 = Object.keys(e2);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var n2 = Object.getOwnPropertySymbols(e2);
|
|
t2 && (n2 = n2.filter((function(t3) {
|
|
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
|
}))), a2.push.apply(a2, n2);
|
|
}
|
|
return a2;
|
|
}
|
|
function k(e2) {
|
|
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
var a2 = null != arguments[t2] ? arguments[t2] : {};
|
|
t2 % 2 ? w(Object(a2), true).forEach((function(t3) {
|
|
Object(c["a"])(e2, t3, a2[t3]);
|
|
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(a2)) : w(Object(a2)).forEach((function(t3) {
|
|
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(a2, t3));
|
|
}));
|
|
}
|
|
return e2;
|
|
}
|
|
var C = { name: "cloudBeanList", components: { addMemberDialog: y }, data: function() {
|
|
return { content: "", saveBtun: false, type: "", tableData: [], projectObj: {}, pageTotal: 0, accountRelDeleteList: [], deleteRuleRelaList: [], currentPage: 1, pageSize: 10, ruleForm: { name: "", total: 0, memberQuantity: 0 }, query: { pageNumber: 1, pageSize: 10 }, rules: { name: [{ required: true, message: "请输入云豆池名称", trigger: "blur" }], total: [{ required: true, message: "请输入云豆数量", trigger: "blur" }], memberQuantity: [{ required: true, message: "请输入引用成员总数", trigger: "blur" }] }, options: [], tableData2: [{ ruleId: "", weight: 0, quantity: 0 }] };
|
|
}, mounted: function() {
|
|
this.headClass();
|
|
}, methods: { handleAddDetails: function() {
|
|
var e2 = { ruleId: "", weight: 0, quantity: 0 };
|
|
this.tableData2.push(e2);
|
|
}, deleteRow: function(e2, t2, a2) {
|
|
var n2 = this;
|
|
1 != t2.length ? this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
|
a2.id && n2.deleteRuleRelaList.push(a2.id), t2.splice(e2, 1);
|
|
})) : this.$message({ message: "至少有一条数据", type: "error" });
|
|
}, saveInfo: function(e2) {
|
|
var t2 = this;
|
|
this.saveBtun = true, this.$refs[e2].validate((function(e3) {
|
|
if (e3) {
|
|
var a2 = false, n2 = false;
|
|
if (0 == t2.tableData.length) return t2.$message({ message: "请选择引用成员", type: "error" }), void (t2.saveBtun = false);
|
|
if (t2.tableData2.length > 0 && t2.tableData2.forEach((function(e4) {
|
|
"" === e4.weight && (a2 = true), e4.ruleId || (n2 = true);
|
|
})), a2) return t2.$message({ message: "规则列表有未填写的权重,请检查", type: "error" }), void (t2.saveBtun = false);
|
|
if (n2) return t2.$message({ message: "规则列表有未选择的云豆规则名称,请检查", type: "error" }), void (t2.saveBtun = false);
|
|
if ("" === t2.ruleForm.memberQuantity || t2.ruleForm.memberQuantity <= 0) return t2.$message({ message: "云豆池配置的引用成员总数不能为空为零,请重新填写", type: "error" }), void (t2.saveBtun = false);
|
|
var r2 = { name: t2.ruleForm.name, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, createBy: JSON.parse(localStorage.getItem("companyInfo")).abbreviation, createId: JSON.parse(localStorage.getItem("companyInfo")).id, projectUuid: t2.projectObj.uuid, total: parseInt(t2.ruleForm.total), memberQuantity: t2.ruleForm.memberQuantity, memberRelaList: t2.tableData, ruleRelaList: t2.tableData2 };
|
|
"edit" === t2.type ? t2.UpdataInfo(r2) : t2.newlyInfo(r2);
|
|
} else t2.saveBtun = false;
|
|
}));
|
|
}, UpdataInfo: function(e2) {
|
|
var t2 = this;
|
|
e2.id = this.projectObj.id, e2.deleteMemberRelaList = this.accountRelDeleteList, e2.deleteRuleRelaList = this.deleteRuleRelaList, e2.projectUuid = this.projectObj.projectUuid, Object(_["m"])(e2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ type: "success", message: "更新成功" }), t2.saveBtun = false, t2.goBack(), t2.$emit("getBackInfo", t2.projectObj));
|
|
})).catch((function() {
|
|
t2.saveBtun = false;
|
|
}));
|
|
}, newlyInfo: function(e2) {
|
|
var t2 = this;
|
|
Object(_["k"])(e2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ type: "success", message: "添加成功" }), t2.saveBtun = false, t2.goBack(), t2.$emit("getBackInfo", t2.projectObj));
|
|
})).catch((function() {
|
|
t2.saveBtun = false;
|
|
}));
|
|
}, getSummaries: function(e2) {
|
|
var t2 = e2.columns, a2 = e2.data, n2 = [], r2 = [];
|
|
return t2.forEach((function(e3, t3) {
|
|
if (0 !== t3) {
|
|
var r3 = a2.map((function(t4) {
|
|
return Number(t4[e3.property]);
|
|
}));
|
|
r3.every((function(e4) {
|
|
return isNaN(e4);
|
|
})) ? n2[t3] = "" : (n2[t3] = r3.reduce((function(e4, t4) {
|
|
var a3 = Number(t4);
|
|
return isNaN(a3) ? e4 : e4 + t4;
|
|
}), 0), n2[t3] += "");
|
|
} else n2[t3] = "合计(权重不能大于100)";
|
|
})), r2 = n2.length > 0 ? n2.slice(0, 2) : n2, r2;
|
|
}, deleteClick: function(e2, t2, a2) {
|
|
var n2 = this;
|
|
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
|
a2.id && n2.accountRelDeleteList.push(a2), n2.tableData.forEach((function(e4, t4) {
|
|
e4.memberId === a2.memberId && n2.tableData.splice(t4, 1);
|
|
}));
|
|
var e3 = Math.ceil((n2.tableData.length - 1) / n2.pageSize), t3 = n2.currentPage > e3 ? e3 : n2.currentPage;
|
|
n2.currentPage = t3 < 1 ? 1 : t3;
|
|
}));
|
|
}, goBack: function() {
|
|
this.$emit("goBack");
|
|
}, selectProject: function(e2) {
|
|
this.projectId = e2;
|
|
}, definiteInfo: function(e2) {
|
|
"edit" === this.type ? (this.accountRelAddList = e2, this.tableData = this.tableData.concat(e2)) : this.tableData = this.tableData.concat(e2);
|
|
}, addMember: function() {
|
|
var e2 = this;
|
|
this.$nextTick((function() {
|
|
e2.$refs.addMember.getInfoLst(e2.tableData, e2.projectObj);
|
|
}));
|
|
}, getInfoLst: function(e2) {
|
|
this.projectObj = k({}, e2), this.type = e2.type, this.content = "view" === e2.type ? "查看云豆池配置" : "add" === e2.type ? "云豆池信息配置" : "编辑云豆池配置信息", this.getYdRulePageList(), "view" !== this.type && "edit" !== this.type || this.getlistData(e2);
|
|
}, getlistData: function(e2) {
|
|
var t2 = this;
|
|
Object(_["e"])({ id: e2.id }).then((function(e3) {
|
|
0 == e3.code && (t2.ruleForm.name = e3.data.name, t2.ruleForm.total = e3.data.total, t2.ruleForm.memberQuantity = e3.data.memberQuantity, t2.tableData2 = e3.data.ydPoolRuleRelaDTOList, t2.tableData = e3.data.ydPoolMemberRelaDTOList);
|
|
}));
|
|
}, getYdRulePageList: function() {
|
|
var e2 = this, t2 = { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, pageNumber: -1, pageSize: -1 };
|
|
Object(_["l"])(t2).then((function(t3) {
|
|
0 == t3.code && (e2.options = t3.data.records);
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.currentPage = 1, this.pageSize = e2;
|
|
}, handleCurrentChange: function(e2) {
|
|
this.currentPage = e2;
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, S = C, N = (a("0d01"), Object(h["a"])(S, u, p, false, null, "7e084ef2", null)), x = N.exports;
|
|
function D(e2, t2) {
|
|
var a2 = Object.keys(e2);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var n2 = Object.getOwnPropertySymbols(e2);
|
|
t2 && (n2 = n2.filter((function(t3) {
|
|
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
|
}))), a2.push.apply(a2, n2);
|
|
}
|
|
return a2;
|
|
}
|
|
function j(e2) {
|
|
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
var a2 = null != arguments[t2] ? arguments[t2] : {};
|
|
t2 % 2 ? D(Object(a2), true).forEach((function(t3) {
|
|
Object(c["a"])(e2, t3, a2[t3]);
|
|
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(a2)) : D(Object(a2)).forEach((function(t3) {
|
|
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(a2, t3));
|
|
}));
|
|
}
|
|
return e2;
|
|
}
|
|
var L = { name: "cloudBeanList", components: { cloudBeanConfig: x }, data: function() {
|
|
return { content: "", type: "", tableData: [], shuliang: "自动计算结果", pageTotal: 0, viewInfoW: false, infoLisW: true, pageNumber: 1, pageSize: 10, query: { name: "" } };
|
|
}, mounted: function() {
|
|
this.headClass();
|
|
}, methods: { goBackInfo: function() {
|
|
this.$emit("goBack");
|
|
}, goBack: function() {
|
|
this.viewInfoW = false, this.infoLisW = true;
|
|
}, getDetailInfo: function() {
|
|
this.getDetail(this.query), this.countYdTotalByProject(this.query);
|
|
}, getInfoLst: function(e2) {
|
|
this.query = j({}, e2), this.type = e2.type, this.content = "view" === e2.type ? "查看云豆池信息" : "add" === e2.type ? "配置云豆池信息" : "编辑云豆池信息", this.getDetail(this.query), this.countYdTotalByProject(this.query);
|
|
}, countYdTotalByProject: function(e2) {
|
|
var t2 = this, a2 = { id: e2.id, projectUuid: e2.uuid };
|
|
Object(_["a"])(a2).then((function(e3) {
|
|
0 == e3.code && (t2.shuliang = e3.data);
|
|
}));
|
|
}, getDetail: function(e2) {
|
|
var t2 = this, a2 = { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, uuid: e2.uuid, projectUuid: e2.uuid };
|
|
a2.pageSize = this.pageSize, a2.pageNumber = this.pageNumber, Object(_["d"])(a2).then((function(e3) {
|
|
0 == e3.code && (t2.tableData = e3.data.records, t2.pageTotal = e3.data.rowsCount);
|
|
}));
|
|
}, detailsClick: function(e2, t2) {
|
|
var a2 = this, n2 = "";
|
|
this.viewInfoW = true, this.infoLisW = false, "view" === t2 || "edit" === t2 ? (n2 = e2, n2.uuid = this.query.uuid) : n2 = this.query, n2.type = t2, this.$nextTick((function() {
|
|
a2.$refs.config.getInfoLst(n2);
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.pageSize = e2, this.getDetail(this.query);
|
|
}, handleCurrentChange: function(e2) {
|
|
this.pageNumber = e2, this.getDetail(this.query);
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, I = L, z = (a("a95a"), Object(h["a"])(I, l, s, false, null, "3116fa68", null)), O = z.exports, q = { components: { cloudBeanList: O }, data: function() {
|
|
return { type: "", pageTotal: 0, viewInfo: false, infoList: true, query: { projectName: "", companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, pageNumber: 1, pageSize: 10 }, tableData: [] };
|
|
}, mounted: function() {
|
|
this.headClass(), this.getlistData();
|
|
}, methods: { detailsClick: function(e2, t2) {
|
|
var a2 = this, n2 = e2;
|
|
n2.type = t2, this.viewInfo = true, this.infoList = false, this.$nextTick((function() {
|
|
a2.$refs.cloud.getInfoLst(n2);
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, getlistData: function() {
|
|
var e2 = this;
|
|
Object(_["h"])(this.query).then((function(t2) {
|
|
e2.tableData = t2.data.records, e2.pageTotal = t2.data.rowsCount;
|
|
}));
|
|
}, goBack: function() {
|
|
this.viewInfo = false, this.infoList = true, this.getlistData();
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, resetForm: function() {
|
|
this.query.pageNumber = 1, this.query.projectName = "", this.getlistData();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, P = q, $ = (a("d007"), Object(h["a"])(P, i, o, false, null, "71fdda0a", null)), T = $.exports, B = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "yundouRuleBase" }, [e2.infoList ? a2("div", [a2("el-card", { staticClass: "box-card" }, [a2("el-row", [a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-input", { attrs: { clearable: "", placeholder: "云豆规则名称" }, model: { value: e2.query.name, callback: function(t3) {
|
|
e2.$set(e2.query, "name", t3);
|
|
}, expression: "query.name" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.resetForm();
|
|
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [e2._v("云豆规则列表")])]), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", 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) + " ")])];
|
|
} }], null, false, 3830243315) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "name", label: "云豆规则名称" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "codeNumber", label: "规则代号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "remarks", label: "规则说明" } })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "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)], 1) : e2._e()]);
|
|
}, F = [], R = { data: function() {
|
|
return { type: "", pageTotal: 0, viewInfo: false, infoList: true, query: { name: "", companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, pageNumber: 1, pageSize: 10 }, tableData: [] };
|
|
}, mounted: function() {
|
|
this.headClass(), this.getlistData();
|
|
}, methods: { onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, getlistData: function() {
|
|
var e2 = this;
|
|
Object(_["l"])(this.query).then((function(t2) {
|
|
e2.tableData = t2.data.records, e2.pageTotal = t2.data.rowsCount;
|
|
}));
|
|
}, goBack: function() {
|
|
this.viewInfo = false, this.infoList = true, this.getlistData();
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, resetForm: function() {
|
|
this.query.pageNumber = 1, this.query.name = "", this.getlistData();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, A = R, M = (a("89c9"), Object(h["a"])(A, B, F, false, null, "cb0adfaa", null)), E = M.exports, Q = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "issueManage" }, [e2.infoList ? a2("div", [a2("el-card", { staticClass: "box-card" }, [a2("el-row", [a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-input", { attrs: { clearable: "", placeholder: "成员姓名" }, model: { value: e2.query.name, callback: function(t3) {
|
|
e2.$set(e2.query, "name", t3);
|
|
}, expression: "query.name" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-input", { attrs: { clearable: "", placeholder: "手机号" }, model: { value: e2.query.phoneNumber, callback: function(t3) {
|
|
e2.$set(e2.query, "phoneNumber", t3);
|
|
}, expression: "query.phoneNumber" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-input", { attrs: { clearable: "", placeholder: "云豆账户" }, model: { value: e2.query.accountNo, callback: function(t3) {
|
|
e2.$set(e2.query, "accountNo", t3);
|
|
}, expression: "query.accountNo" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 6 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.resetForm();
|
|
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [e2._v("云豆账户列表")])]), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", 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) + " ")])];
|
|
} }], null, false, 3830243315) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "name", label: "成员姓名" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "phoneNumber", label: "手机号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "address", label: "积分类型" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.name ? a2("span", [e2._v("云豆 ")]) : e2._e()];
|
|
} }], null, false, 3753670020) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "accountNo", label: "云豆账户号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "amount", label: "账户云豆数量" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "unissuedAmount", label: "待入帐云豆数量" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-button", { attrs: { type: "text", disabled: !(t3.row.unissuedTaskUuidList.length > 0) }, on: { click: function(a3) {
|
|
return e2.openShow(t3.row);
|
|
} } }, [e2._v(e2._s(t3.row.unissuedAmount) + " "), a2("i", { staticClass: "el-icon-document" })])];
|
|
} }], null, false, 3841327913) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "80", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row ? a2("span", [a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.detailsClick(t3.row);
|
|
} } }, [e2._v("查看")])], 1) : e2._e()];
|
|
} }], null, false, 3155379044) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "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)], 1) : e2._e(), e2._v(" "), e2.viewInfo ? a2("div", { staticClass: "viewDetails" }, [a2("issueDetails", { ref: "accountInfo", on: { goBack: e2.goBack } })], 1) : e2._e(), e2._v(" "), e2.dialogTableVisible ? a2("el-dialog", { attrs: { visible: e2.dialogTableVisible, title: "待入帐云豆列表", width: "80%", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, "destroy-on-close": "" }, on: { "update:visible": function(t3) {
|
|
e2.dialogTableVisible = t3;
|
|
} } }, [e2.dialogTableVisible ? a2("el-table", { attrs: { data: e2.recordsTableList, border: "", size: "mini" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.recordsQuery.pageNumber - 1) * e2.recordsQuery.pageSize + 1) + " ")])];
|
|
} }], null, false, 3444087443) }), e2._v(" "), a2("el-table-column", { attrs: { label: "计划工单编号", align: "center", prop: "taskNo", "min-width": "140", fixed: "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "计划工单名称", align: "center", prop: "taskName", "min-width": "160", fixed: "", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "关联云豆", align: "center", prop: "relateWages", "min-width": "120", fixed: "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "开始时间", align: "center", prop: "taskStartDate", "min-width": "150" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "结束时间", align: "center", prop: "taskEndDate", "min-width": "150" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "所需时长(小时)", align: "center", prop: "needTime", "min-width": "120" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "发起人", align: "center", prop: "createUserName", "min-width": "120" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "执行人", align: "center", prop: "recipient", "min-width": "120" } })], 1) : e2._e(), e2._v(" "), a2("div", { staticClass: "paginations recordsPaginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.recordsQuery.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": e2.recordsQuery.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.recordsTotal }, on: { "update:currentPage": function(t3) {
|
|
return e2.$set(e2.recordsQuery, "pageNumber", t3);
|
|
}, "update:current-page": function(t3) {
|
|
return e2.$set(e2.recordsQuery, "pageNumber", t3);
|
|
}, "size-change": e2.recordshandleSizeChange, "current-change": e2.recordshandleCurrentChange } })], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
|
|
e2.dialogTableVisible = false;
|
|
} } }, [e2._v("关闭")])], 1)], 1) : e2._e()], 1);
|
|
}, Y = [], U = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "workAccountDetails" }, [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: "查看云豆账户" }, on: { back: e2.goBack } }), e2._v(" "), a2("div", { staticClass: "planLst", staticStyle: { "padding-top": "25px" } }, [a2("span", { staticClass: "fontSize" }, [e2._v("云豆账户基本信息")])]), e2._v(" "), a2("div", { staticClass: "line" }), e2._v(" "), a2("div", { staticClass: "elRow" }, [a2("el-row", [a2("el-col", { attrs: { span: 6 } }, [e2._v("成员姓名:" + e2._s(e2.formInfo.name))]), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [e2._v("手机号:" + e2._s(e2.formInfo.phoneNumber))]), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [e2._v("云豆账户号:" + e2._s(e2.formInfo.accountNo))]), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [e2._v("云豆账户数量:" + e2._s(e2.formInfo.amount))])], 1)], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticClass: "fontSize" }, [e2._v("本月未入账云豆")]), e2._v(" "), a2("span", { staticClass: " el-icon-question buttDiv" }, [e2._v("每月1日00:00时自动入账")])]), e2._v(" "), a2("div", { staticClass: "line" }), e2._v(" "), a2("el-tabs", { on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(t3) {
|
|
e2.activeName = t3;
|
|
}, expression: "activeName" } }, e2._l(e2.memberPoolRuleList, (function(e3) {
|
|
return a2("el-tab-pane", { key: e3.id, attrs: { label: e3.name, name: e3.name } });
|
|
})), 1), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { data: e2.ruleList, border: "", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { align: "center", prop: "ruleName", label: "云豆规则" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "limitQuantity", label: "云豆上限值" } })], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticClass: "fontSize" }, [e2._v("历史出入账记录")])]), e2._v(" "), a2("div", { staticClass: "line" }), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { data: e2.tableData, border: "", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50", fixed: "" }, 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) + " ")])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", fixed: "", prop: "tradeNo", width: "160", "show-overflow-tooltip": "", label: "交易流水号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", fixed: "", prop: "type", width: "80", label: "交易类型" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [1 == t3.row.type ? a2("span", [e2._v("入账")]) : e2._e(), e2._v(" "), 2 == t3.row.type ? a2("span", [e2._v("出账")]) : e2._e(), e2._v(" "), 3 == t3.row.type ? a2("span", [e2._v("冻结")]) : e2._e(), e2._v(" "), 4 == t3.row.type ? a2("span", [e2._v("4解冻")]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", fixed: "", prop: "amount", width: "100", label: "交易数量" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "amountBalance", width: "150", label: "云豆账户数量" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "name", width: "150", label: "转出账户名" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [2 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.name))]) : e2._e(), e2._v(" "), 1 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.targetName))]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "accountNo", width: "200", label: "转出账户号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [2 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.accountNo.replace(/(\S{4})/g, "$1 ").replace(/\s*$/, "")))]) : e2._e(), e2._v(" "), 1 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.targetAccountNo.replace(/(\S{4})/g, "$1 ").replace(/\s*$/, "")))]) : e2._e(), e2._v(" "), a2("span")];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "targetName", width: "150", label: "转入账户名" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [2 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.targetName))]) : e2._e(), e2._v(" "), 1 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.name))]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "targetAccountNo", width: "200", label: "转入账户号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [2 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.targetAccountNo.replace(/(\S{4})/g, "$1 ").replace(/\s*$/, "")))]) : e2._e(), e2._v(" "), 1 == t3.row.type ? a2("span", [e2._v(e2._s(t3.row.accountNo.replace(/(\S{4})/g, "$1 ").replace(/\s*$/, "")))]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createDate", width: "200", label: "交易时间" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "remarks", width: "200", label: "备注" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row ? a2("span", [a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.infoListClick(t3.row);
|
|
} } }, [e2._v("查看")])], 1) : e2._e()];
|
|
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "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), e2._v(" "), a2("div", { staticClass: "center" }, [a2("el-button", { attrs: { type: "primary", plain: "" }, on: { click: e2.goBack } }, [e2._v("返回")])], 1)], 1), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { "show-close": true, visible: e2.workPointsDetails, "close-on-press-escape": false, "close-on-click-modal": false, title: "工分入账明细" }, on: { "update:visible": function(t3) {
|
|
e2.workPointsDetails = t3;
|
|
} } }, [a2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { "show-summary": "", data: e2.tableData2, border: "", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { align: "center", prop: "ruleName", label: "云豆规则" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "limitAmount", label: "云豆上上限数量" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "amount", label: "云豆数量" } })], 1), e2._v(" "), a2("div", { staticClass: "buttonStys" }, [a2("el-button", { attrs: { type: "info" }, on: { click: function(t3) {
|
|
e2.workPointsDetails = false;
|
|
} } }, [e2._v("关闭")])], 1)], 1)], 1);
|
|
}, J = [], V = (a("4057"), a("8dee"), { data: function() {
|
|
return { query: { pageNumber: 1, pageSize: 10 }, activeName: "", formInfo: {}, tableData2: [], ruleList: [], workPointsDetails: false, pageTotal: 0, tableData: [], memberPoolRuleList: [] };
|
|
}, mounted: function() {
|
|
this.headClass();
|
|
}, methods: { formatNum: function(e2, t2) {
|
|
var a2 = e2[t2.property] ? e2[t2.property] : 0, n2 = a2.toString().replace(/\d+/, (function(e3) {
|
|
return e3.replace(/(\d)(?=(\d{3})+$)/g, (function(e4) {
|
|
return e4 + ",";
|
|
}));
|
|
}));
|
|
return "¥ " + n2;
|
|
}, handleClick: function(e2, t2) {
|
|
var a2 = this;
|
|
this.memberPoolRuleList.length > 1 && this.memberPoolRuleList.forEach((function(t3) {
|
|
t3.name === e2.name && (a2.ruleList = t3.ydPoolRuleRelaDTOList);
|
|
}));
|
|
}, goBack: function() {
|
|
this.$emit("goBack");
|
|
}, infoListClick: function(e2) {
|
|
var t2 = this;
|
|
this.workPointsDetails = true;
|
|
var a2 = { id: e2.id, orderNo: e2.outOrderNo };
|
|
Object(_["i"])(a2).then((function(e3) {
|
|
0 == e3.code && null !== e3.data && (t2.tableData2 = e3.data);
|
|
}));
|
|
}, getInfoLst: function(e2) {
|
|
var t2 = this;
|
|
this.formInfo = e2;
|
|
var a2 = { id: e2.id, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId };
|
|
this.getMemberTrade(e2), Object(_["c"])(a2).then((function(e3) {
|
|
0 == e3.code && (e3.data.memberPoolRuleList.length > 0 && (t2.memberPoolRuleList = e3.data.memberPoolRuleList), t2.memberPoolRuleList.length > 0 && (t2.activeName = t2.memberPoolRuleList[0].name, t2.ruleList = t2.memberPoolRuleList[0].ydPoolRuleRelaDTOList));
|
|
}));
|
|
}, getMemberTrade: function(e2) {
|
|
var t2 = this;
|
|
this.query.accountNo = e2.accountNo, Object(_["f"])(this.query).then((function(e3) {
|
|
0 == e3.code && (t2.tableData = e3.data.records, t2.pageTotal = e3.data.rowsCount);
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.getInfoLst(this.query);
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getInfoLst(this.query);
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }), W = V, H = (a("7294"), Object(h["a"])(W, U, J, false, null, "546645e2", null)), K = H.exports, G = a("bfb7"), X = { components: { issueDetails: K }, data: function() {
|
|
return { pageTotal: 0, viewInfo: false, infoList: true, id: null, query: { name: "", phoneNumber: "", accountNo: "", pageNumber: 1, pageSize: 10 }, tableData: [], recordsTotal: 0, recordsQuery: { pageNumber: 1, pageSize: 10 }, dialogTableVisible: false, recordsTableList: [], userTableQueryUuid: [] };
|
|
}, created: function() {
|
|
this.getlistData();
|
|
}, mounted: function() {
|
|
this.headClass();
|
|
}, methods: { detailsClick: function(e2) {
|
|
var t2 = this;
|
|
this.viewInfo = true, this.infoList = false, this.$nextTick((function() {
|
|
t2.$refs.accountInfo.getInfoLst(e2);
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, getlistData: function() {
|
|
var e2 = this;
|
|
this.query.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, Object(_["b"])(this.query).then((function(t2) {
|
|
e2.tableData = t2.data.records, e2.pageTotal = t2.data.rowsCount;
|
|
}));
|
|
}, goBack: function() {
|
|
this.viewInfo = false, this.infoList = true, this.query.pageNumber = 1, this.getlistData();
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, recordshandleSizeChange: function(e2) {
|
|
this.recordsQuery.pageSize = e2, this.queryMenberTaskList();
|
|
}, recordshandleCurrentChange: function(e2) {
|
|
this.recordsQuery.pageNumber = e2, this.queryMenberTaskList();
|
|
}, resetForm: function() {
|
|
this.query.pageNumber = 1, this.query.name = "", this.query.phoneNumber = "", this.query.accountNo = "", this.getlistData();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, openShow: function(e2) {
|
|
this.userTableQueryUuid = e2.unissuedTaskUuidList, e2.unissuedTaskUuidList.length > 0 ? this.queryMenberTaskList() : this.$message({ message: "该成员还未有已完成任务", type: "error" });
|
|
}, queryMenberTaskList: function() {
|
|
var e2 = this, t2 = Object.assign(this.recordsQuery, { taskUuidList: this.userTableQueryUuid });
|
|
Object(G["d"])(t2).then((function(t3) {
|
|
0 === t3.code && (e2.recordsTableList = t3.data.records, e2.recordsTotal = t3.data.rowsCount, e2.dialogTableVisible = true);
|
|
}));
|
|
} } }, Z = X, ee = (a("ded0"), Object(h["a"])(Z, Q, Y, false, null, "264f801b", null)), te = ee.exports, ae = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", [a2("div", [a2("el-form", { ref: "query", attrs: { model: e2.query } }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "name" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "输入项目名称" }, model: { value: e2.query.name, callback: function(t3) {
|
|
e2.$set(e2.query, "name", t3);
|
|
}, expression: "query.name" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", [a2("el-button", { on: { click: function(t3) {
|
|
return e2.resetForm("query");
|
|
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", [e2._m(0), e2._v(" "), a2("div", [a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], attrs: { "header-cell-style": { background: "#FAFAFA" }, data: e2.listTable, align: "center", border: "" } }, [a2("el-table-column", { attrs: { label: "#", fixed: "", align: "center", width: "80" }, 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))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "项目名称", prop: "name" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "工单云豆配置", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.isEdit ? a2("div", [a2("el-input-number", { attrs: { "controls-position": "right", min: 0 }, model: { value: t3.row.orderPrice, callback: function(a3) {
|
|
e2.$set(t3.row, "orderPrice", a3);
|
|
}, expression: "scope.row.orderPrice" } })], 1) : a2("div", [e2._v(e2._s(t3.row.orderPrice))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", width: "170" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.isEdit ? e2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "mini" }, on: { click: function(a3) {
|
|
return e2.editClick(t3.row);
|
|
} } }, [e2._v("修改")]), e2._v(" "), t3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", plain: "", size: "mini" }, on: { click: function(a3) {
|
|
return e2.saveClick(t3.row);
|
|
} } }, [e2._v("保存")]) : e2._e(), e2._v(" "), t3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { plain: "", size: "mini" }, on: { click: function(a3) {
|
|
return e2.escClick(t3.row);
|
|
} } }, [e2._v("取消")]) : e2._e()];
|
|
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "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)])]);
|
|
}, ne = [function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "headerTop" }, [a2("span", { staticClass: "title" }, [e2._v("非计划云豆配置列表")])]);
|
|
}], re = { data: function() {
|
|
return { pageTotal: 0, listLoading: false, listTable: [], setList: [], query: { pageNumber: 1, pageSize: 10, companyId: "", name: "" }, saveData: {} };
|
|
}, mounted: function() {
|
|
this.getlistData();
|
|
}, methods: { getlistData: function() {
|
|
var e2 = this;
|
|
this.listLoading = true, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, Object(_["g"])(this.query).then((function(t2) {
|
|
0 == t2.code && (e2.pageTotal = t2.data.rowsCount, e2.composeDataList(t2.data.records));
|
|
}));
|
|
}, composeDataList: function(e2) {
|
|
var t2 = [];
|
|
e2.forEach((function(e3) {
|
|
t2.push(Object.assign(e3, { isEdit: false }));
|
|
})), this.listTable = t2, this.listLoading = false;
|
|
}, editClick: function(e2) {
|
|
this.saveData = JSON.parse(JSON.stringify(e2)), e2.isEdit = true;
|
|
}, escClick: function(e2) {
|
|
console.log(this.saveData), e2.isEdit = false;
|
|
}, saveClick: function(e2) {
|
|
var t2 = this, a2 = { orderPrice: e2.orderPrice, projectUuid: e2.code };
|
|
Object(_["j"])(a2).then((function(a3) {
|
|
t2.$message({ type: "success", message: "编辑成功!" }), t2.getlistData(), e2.isEdit = false;
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, resetForm: function(e2) {
|
|
this.$refs[e2].resetFields(), this.getlistData();
|
|
} } }, ie = re, oe = (a("f2ab"), Object(h["a"])(ie, ae, ne, false, null, null, null)), le = oe.exports, se = { name: "payManage", components: { kidneyBeanList: T, yundouRuleBase: E, issueManage: te, unplannedBeanConfig: le }, data: function() {
|
|
return { activeName: "kidneyBeanList" };
|
|
}, beforeRouteLeave: function(e2, t2, a2) {
|
|
this.activeName = "kidneyBeanList", a2();
|
|
}, methods: { handleClick: function(e2) {
|
|
var t2 = e2.paneName;
|
|
this.activeName = t2;
|
|
} } }, ce = se, ue = Object(h["a"])(ce, n, r, false, null, null, null);
|
|
t["default"] = ue.exports;
|
|
}, "64f6": function(e, t, a) {
|
|
}, 7294: function(e, t, a) {
|
|
"use strict";
|
|
a("64f6");
|
|
}, "89c9": function(e, t, a) {
|
|
"use strict";
|
|
a("0692");
|
|
}, "8d62": function(e, t, a) {
|
|
"use strict";
|
|
a.d(t, "a", (function() {
|
|
return r;
|
|
})), a.d(t, "c", (function() {
|
|
return i;
|
|
})), a.d(t, "b", (function() {
|
|
return o;
|
|
}));
|
|
var n = a("b775");
|
|
function r(e2) {
|
|
return Object(n["a"])({ url: "/company/ApplicationList/pageList", method: "post", data: e2 });
|
|
}
|
|
function i(e2) {
|
|
return Object(n["a"])({ url: "/company/member/getList", method: "post", data: e2 });
|
|
}
|
|
function o(e2) {
|
|
return Object(n["a"])({ url: "/company/ApplicationPersonRel/create", method: "post", data: e2 });
|
|
}
|
|
}, a7e9: function(e, t, a) {
|
|
}, a95a: function(e, t, a) {
|
|
"use strict";
|
|
a("f22b");
|
|
}, bfb7: function(e, t, a) {
|
|
"use strict";
|
|
a.d(t, "d", (function() {
|
|
return r;
|
|
})), a.d(t, "b", (function() {
|
|
return i;
|
|
})), a.d(t, "a", (function() {
|
|
return o;
|
|
})), a.d(t, "c", (function() {
|
|
return l;
|
|
}));
|
|
var n = a("b775");
|
|
function r(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/Task/taskStatisticsPageList", method: "post", data: e2 });
|
|
}
|
|
function i(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/data/project/postponeOrderTimeStatistics", method: "post", data: e2 });
|
|
}
|
|
function o(e2) {
|
|
return Object(n["a"])({ url: "/hakocompany/data/project/postponeOrderStaffTimeStatistics", method: "post", data: e2 });
|
|
}
|
|
function l(e2) {
|
|
return Object(n["a"])({ url: "/data/data/project/propertyStatistics", method: "post", data: e2 });
|
|
}
|
|
}, d007: function(e, t, a) {
|
|
"use strict";
|
|
a("d6ff");
|
|
}, d155: function(e, t, a) {
|
|
"use strict";
|
|
a("dfb3");
|
|
}, d6ff: function(e, t, a) {
|
|
}, de94: function(e, t, a) {
|
|
}, ded0: function(e, t, a) {
|
|
"use strict";
|
|
a("a7e9");
|
|
}, dfb3: function(e, t, a) {
|
|
}, f22b: function(e, t, a) {
|
|
}, f2ab: function(e, t, a) {
|
|
"use strict";
|
|
a("19a55");
|
|
} }]);
|