269 lines
14 KiB
JavaScript
269 lines
14 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-1a66c265"], { 4513: function(t, e, n) {
|
|
"use strict";
|
|
n.d(e, "v", (function() {
|
|
return o;
|
|
})), n.d(e, "w", (function() {
|
|
return a;
|
|
})), n.d(e, "x", (function() {
|
|
return i;
|
|
})), n.d(e, "l", (function() {
|
|
return c;
|
|
})), n.d(e, "t", (function() {
|
|
return u;
|
|
})), n.d(e, "j", (function() {
|
|
return s;
|
|
})), n.d(e, "o", (function() {
|
|
return l;
|
|
})), n.d(e, "u", (function() {
|
|
return m;
|
|
})), n.d(e, "b", (function() {
|
|
return d;
|
|
})), n.d(e, "p", (function() {
|
|
return f;
|
|
})), n.d(e, "D", (function() {
|
|
return p;
|
|
})), n.d(e, "B", (function() {
|
|
return h;
|
|
})), n.d(e, "q", (function() {
|
|
return b;
|
|
})), n.d(e, "c", (function() {
|
|
return y;
|
|
})), n.d(e, "s", (function() {
|
|
return g;
|
|
})), n.d(e, "i", (function() {
|
|
return v;
|
|
})), n.d(e, "n", (function() {
|
|
return O;
|
|
})), n.d(e, "a", (function() {
|
|
return I;
|
|
})), n.d(e, "g", (function() {
|
|
return j;
|
|
})), n.d(e, "d", (function() {
|
|
return k;
|
|
})), n.d(e, "f", (function() {
|
|
return w;
|
|
})), n.d(e, "C", (function() {
|
|
return S;
|
|
})), n.d(e, "m", (function() {
|
|
return N;
|
|
})), n.d(e, "y", (function() {
|
|
return _;
|
|
})), n.d(e, "r", (function() {
|
|
return C;
|
|
})), n.d(e, "e", (function() {
|
|
return D;
|
|
})), n.d(e, "z", (function() {
|
|
return x;
|
|
})), n.d(e, "A", (function() {
|
|
return T;
|
|
})), n.d(e, "h", (function() {
|
|
return z;
|
|
})), n.d(e, "k", (function() {
|
|
return L;
|
|
}));
|
|
var r = n("b775");
|
|
function o() {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/updateOrgnization", method: "post" });
|
|
}
|
|
function a(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/findOsTreeV2", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(r["a"])({ url: "/company/OrganizationRoleRel/findProjectByRoleIdAndParent", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(r["a"])({ url: "/company/member/pageListByCompanyId", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(r["a"])({ url: "/company/member/findByProjectUuidAndJobUuid", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(r["a"])({ url: "/company/member/getList", method: "post", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/findOsPathList", method: "post", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(r["a"])({ url: "/company/member/create", method: "post", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(r["a"])({ url: "/company/member/findById", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(r["a"])({ url: "/company/member/update", method: "post", data: t2 });
|
|
}
|
|
function h(t2) {
|
|
return Object(r["a"])({ url: "/company/member/suspendMember", method: "post", data: t2 });
|
|
}
|
|
function b(t2) {
|
|
return Object(r["a"])({ url: "/enterprise/os/memberQuit/".concat(t2.memberUuid), method: "post" });
|
|
}
|
|
function y(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/create", method: "post", data: t2 });
|
|
}
|
|
function g(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/update", method: "post", data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(r["a"])({ url: "/company/member/findByProjectUuid", method: "post", data: t2 });
|
|
}
|
|
function O(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/Job/getJobList", method: "post", data: t2 });
|
|
}
|
|
function I(t2) {
|
|
return Object(r["a"])({ url: "/company/member/ChangeDepartment", method: "post", data: t2 });
|
|
}
|
|
function j(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: t2 });
|
|
}
|
|
function k(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/MemberRoleRel/create", method: "post", data: t2 });
|
|
}
|
|
function w(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/MemberRoleRel/findByMemberId", method: "post", data: t2 });
|
|
}
|
|
function S(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/MemberRoleRel/update", method: "post", data: t2 });
|
|
}
|
|
function N(t2) {
|
|
return Object(r["a"])({ url: "/company/member/getList", method: "POST", data: t2 });
|
|
}
|
|
function _(t2) {
|
|
return Object(r["a"])({ url: "/company/member/queryByStaff", method: "POST", data: t2 });
|
|
}
|
|
function C(t2) {
|
|
return Object(r["a"])({ url: "/company/member/memberQuit", method: "POST", data: t2 });
|
|
}
|
|
function D(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/delete", method: "POST", data: t2 });
|
|
}
|
|
function x(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/Space/queryInitData", method: "POST", data: t2 });
|
|
}
|
|
function T(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/Space/queryList", method: "POST", data: t2 });
|
|
}
|
|
function z(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/Space/findByProId", method: "POST", data: t2 });
|
|
}
|
|
function L(t2) {
|
|
return Object(r["a"])({ url: "/company/organizationalStructure/findOSListByRoleId", method: "POST", data: t2 });
|
|
}
|
|
}, "49de": function(t, e, n) {
|
|
"use strict";
|
|
n.d(e, "a", (function() {
|
|
return o;
|
|
})), n.d(e, "b", (function() {
|
|
return a;
|
|
})), n.d(e, "c", (function() {
|
|
return i;
|
|
})), n.d(e, "e", (function() {
|
|
return c;
|
|
})), n.d(e, "d", (function() {
|
|
return u;
|
|
}));
|
|
var r = n("b775");
|
|
function o(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/materielCategory/add", method: "post", data: t2 });
|
|
}
|
|
function a(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/materielCategory/edit", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/materielCategory/delete", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/materielCategory/treeList", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(r["a"])({ url: "/hakocompany/inventoryRecord/diffPageList", method: "post", data: t2 });
|
|
}
|
|
}, bfe3: function(t, e, n) {
|
|
}, e9f7: function(t, e, n) {
|
|
"use strict";
|
|
n.r(e);
|
|
var r = function() {
|
|
var t2 = this, e2 = t2.$createElement, n2 = t2._self._c || e2;
|
|
return n2("div", { staticClass: "contentStys" }, [n2("el-card", { staticClass: "box-card" }, [n2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [n2("span", { staticClass: "planTitle" }, [t2._v("物料类型列表")]), t2._v(" "), n2("div", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(e3) {
|
|
return t2.addClick(null, 0);
|
|
} } }, [t2._v("添加类型")])], 1)]), t2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], attrs: { border: "", data: t2.listTable, "row-key": "id", "tree-props": { children: "children" }, "header-cell-style": t2.headClass, "tooltip-effect": "dark" } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50", type: "index" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [n2("span", [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1) + " ")])];
|
|
} }]) }), t2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "categoryName", "show-overflow-tooltip": "", label: "类型名称" } }), t2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "codeNumber", "show-overflow-tooltip": "", label: "编码" } }), t2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "updateTime", "show-overflow-tooltip": "", label: "更新时间" } }), t2._v(" "), n2("el-table-column", { attrs: { label: "操作", align: "center", width: "160" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "small", disabled: "3" === e3.row.rank }, nativeOn: { click: function(n3) {
|
|
return n3.preventDefault(), t2.addClick(e3.row, 0);
|
|
} } }, [t2._v("新增")]), t2._v(" "), n2("span", { staticClass: "verticalLine" }), t2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "small" }, nativeOn: { click: function(n3) {
|
|
return n3.preventDefault(), t2.editClick(e3.row, 1);
|
|
} } }, [t2._v("编辑")]), t2._v(" "), n2("span", { staticClass: "verticalLine" }), t2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "small" }, nativeOn: { click: function(n3) {
|
|
return n3.preventDefault(), t2.deleteClick(e3.row);
|
|
} } }, [t2._v("删除")])];
|
|
} }]) })], 1)], 1), t2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { title: "添加类型", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.typeDialog, width: "45%", height: "300px" }, on: { "update:visible": function(e3) {
|
|
t2.typeDialog = e3;
|
|
} } }, [n2("el-form", { ref: "categoryFrom", attrs: { model: t2.form, rules: t2.rules, "label-width": "80px" } }, [n2("el-form-item", { attrs: { label: "类型名称", prop: "categoryName" } }, [n2("el-input", { attrs: { placeholder: "请输入类型名称" }, model: { value: t2.form.categoryName, callback: function(e3) {
|
|
t2.$set(t2.form, "categoryName", e3);
|
|
}, expression: "form.categoryName" } })], 1), t2._v(" "), n2("el-form-item", { attrs: { label: "操作人" } }, [n2("span", [t2._v(t2._s(t2.form.operatorName))])]), t2._v(" "), n2("el-form-item", { attrs: { label: "岗位" } }, [n2("span", [t2._v(t2._s(t2.form.operatorJob))])]), t2._v(" "), n2("el-form-item", { staticStyle: { "text-align": "center" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(e3) {
|
|
return t2.savaInfoClick("categoryFrom");
|
|
} } }, [t2._v("确 定")]), t2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
|
|
return t2.cancelFrom("categoryFrom");
|
|
} } }, [t2._v("取 消")])], 1)], 1)], 1)], 1);
|
|
}, o = [], a = (n("a450"), n("49de")), i = n("4513"), c = n("333d"), u = { name: "typeManage", components: { Pagination: c["a"] }, data: function() {
|
|
return { pageTotal: 0, typeDialog: false, listLoading: false, listTable: [], type: 0, form: { companyId: "", categoryName: "", operatorName: "", operatorJob: "", operatorUuid: "", operatorId: "" }, query: { pageNumber: 1, pageSize: 10, isDel: 0, companyId: "" }, rules: { categoryName: [{ required: true, message: "类型名称不能为空", trigger: "blur" }] }, memberId: "", userInfor: null, companyInfo: null, memberInfor: null };
|
|
}, created: function() {
|
|
var t2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
|
this.userInfor = JSON.parse(window.localStorage.getItem("userInfo")), this.memberId = window.localStorage.getItem("memberId"), this.companyInfo = JSON.parse(window.localStorage.getItem("companyInfo")), this.query.companyId = t2, this.form.companyId = t2, this.getData();
|
|
}, mounted: function() {
|
|
this.getMemberInfor();
|
|
}, methods: { getMemberInfor: function() {
|
|
var t2 = this;
|
|
Object(i["p"])({ id: this.memberId }).then((function(e2) {
|
|
if (0 === e2.code && null != e2.data) {
|
|
var n2 = e2.data.memberAddReqDTO;
|
|
localStorage.setItem("memberInfor", JSON.stringify(n2)), t2.memberInfor = n2, t2.form.operatorName = n2.name, t2.form.operatorJob = n2.postName, t2.form.operatorUuid = n2.uuid, t2.form.operatorId = n2.id;
|
|
}
|
|
}));
|
|
}, savaInfoClick: function(t2) {
|
|
var e2 = this;
|
|
console.log("this.$store.state.community_uuid", this.$store.state.community_uuid), this.$refs[t2].validate((function(t3) {
|
|
if (!t3) return false;
|
|
e2.addClassification();
|
|
}));
|
|
}, addClassification: function() {
|
|
var t2 = this;
|
|
console.log("this.form", this.form), 0 == this.type ? Object(a["a"])(this.form).then((function(e2) {
|
|
0 === e2.code && (t2.$message({ message: "添加成功", type: "success" }), t2.$refs["categoryFrom"].resetFields(), t2.getData(), t2.typeDialog = false);
|
|
})) : Object(a["b"])(this.form).then((function(e2) {
|
|
0 === e2.code && (t2.$message({ message: "添加成功", type: "success" }), t2.$refs["categoryFrom"].resetFields(), t2.getData(), t2.typeDialog = false);
|
|
}));
|
|
}, getData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.listTable = [], Object(a["e"])(this.query).then((function(e2) {
|
|
0 == e2.code && (t2.listTable = t2.listTable.concat(e2.data));
|
|
})), this.listLoading = false;
|
|
}, addClick: function(t2, e2) {
|
|
this.typeDialog = true, this.type = e2, this.form.parentId = t2 ? t2.id : null, console.log(this.form);
|
|
}, editClick: function(t2, e2) {
|
|
this.type = e2, this.form = Object.assign(this.form, { id: t2.id, categoryName: t2.categoryName }), this.form.categoryName = t2.categoryName, this.form.companyId = this.companyInfo.osId, this.form.operatorName = this.memberInfor.name, this.form.operatorJob = this.memberInfor.postName, this.form.operatorUuid = this.memberInfor.uuid, this.form.operatorId = this.memberInfor.id, this.typeDialog = true;
|
|
}, deleteClick: function(t2) {
|
|
var e2 = this, n2 = { id: t2.id, operatorUuid: this.memberInfor.uuid, operatorId: this.memberInfor.id, operatorName: this.memberInfor.name, operatorJob: this.memberInfor.postName };
|
|
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
|
Object(a["c"])(n2).then((function(t3) {
|
|
0 == t3.code ? e2.$message({ message: "删除成功", type: "success" }) : -1 == t3.code && e2.$message({ message: t3.message, type: "success" }), e2.getData();
|
|
}));
|
|
}));
|
|
}, cancelFrom: function(t2) {
|
|
this.typeDialog = false, this.$refs[t2].resetFields();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, handleSizeChange: function(t2) {
|
|
this.query.pageSize = t2.limit, this.getData();
|
|
}, handleCurrentChange: function(t2) {
|
|
this.query.pageNumber = t2.currentPage, this.getData();
|
|
} } }, s = u, l = (n("f428"), n("829d")), m = Object(l["a"])(s, r, o, false, null, null, null);
|
|
e["default"] = m.exports;
|
|
}, f428: function(t, e, n) {
|
|
"use strict";
|
|
n("bfe3");
|
|
} }]);
|