Files
wysite/output/sourcemaps/hc-etms.sqygj.cn/static/js/chunk-006c25e0.1979fd2c.js

190 lines
18 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-006c25e0"], { "0b00": function(e, t, a) {
"use strict";
a.r(t);
var o = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "contentStys" }, [a2("div", { staticClass: "page-container" }, [a2("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(t3) {
e2.activeName = t3;
}, expression: "activeName" } }, [a2("el-tab-pane", { attrs: { label: "审批配置", name: "approveInfo" } }, [a2("approveInfo", { directives: [{ name: "show", rawName: "v-show", value: "approveInfo" === e2.activeName, expression: "activeName==='approveInfo'" }] })], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "审批记录", name: "approveList" } }, [a2("approveList", { directives: [{ name: "show", rawName: "v-show", value: "approveList" === e2.activeName, expression: "activeName==='approveList'" }] })], 1)], 1)], 1)]);
}, r = [], n = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "workPointsManage" }, [a2("div", { staticClass: "workPointsRuleList" }, [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" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.getAsync } }, [e2._v("云下载")])], 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", "min-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", label: "审批类型", prop: "type", "min-width": "130" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "审批类型编码", prop: "typeCode", "min-width": "130" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "第三方审批模板ID", "min-width": "150" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("div", { staticClass: "tableRowTextBox" }, [t3.row.outTemplateId ? a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t3.row.outTemplateId, placement: "top" } }, [a2("label", { staticClass: "tableRowText" }, [e2._v(e2._s(t3.row.outTemplateId))])]) : a2("label", { staticClass: "tableRowText" }, [e2._v("-")]), e2._v(" "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "点击可复制该段内容", placement: "top" } }, [t3.row.outTemplateId ? a2("i", { staticClass: "el-icon-document-copy", on: { click: function(a3) {
return e2.copyText(t3.row, "outTemplateId");
} } }) : e2._e()])], 1)];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", "min-width": "120", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
return e2.detailView(t3.row, 0);
} } }, [e2._v("查看")]), e2._v(" "), a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
return e2.detailView(t3.row, 1);
} } }, [e2._v("编辑")])];
} }]) })], 1), e2._v(" "), a2("div", { staticStyle: { "margin-top": "15px", "text-align": "right" } }, [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)], 1), e2._v(" "), e2.dialogVisible ? a2("el-dialog", { attrs: { title: e2.title, visible: e2.dialogVisible, "close-on-click-modal": false, "close-on-press-escape": false, width: "30%", "before-close": e2.handleClose }, on: { "update:visible": function(t3) {
e2.dialogVisible = t3;
} } }, [a2("el-form", { ref: "form", attrs: { model: e2.form, "label-width": "140px", rules: e2.rules } }, [a2("el-form-item", { attrs: { label: "审批类型" } }, [a2("el-input", { attrs: { disabled: "", readonly: "" }, model: { value: e2.form.type, callback: function(t3) {
e2.$set(e2.form, "type", t3);
}, expression: "form.type" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "类型编码" } }, [a2("el-input", { attrs: { disabled: "", readonly: "" }, model: { value: e2.form.typeCode, callback: function(t3) {
e2.$set(e2.form, "typeCode", t3);
}, expression: "form.typeCode" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "第三方审批模板ID", prop: "outTemplateId" } }, [a2("el-input", { attrs: { placeholder: "请输入第三方审批模板ID", disabled: 0 === e2.type }, model: { value: e2.form.outTemplateId, callback: function(t3) {
e2.$set(e2.form, "outTemplateId", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "form.outTemplateId" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "说明", prop: "description" } }, [a2("el-input", { attrs: { type: "textarea", placeholder: "", disabled: 0 === e2.type }, model: { value: e2.form.description, callback: function(t3) {
e2.$set(e2.form, "description", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "form.description" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "内容示例:" } }, [a2("el-input", { attrs: { disabled: "", autosize: { minRows: 3 }, type: "textarea" }, model: { value: e2.form.remarks, callback: function(t3) {
e2.$set(e2.form, "remarks", t3);
}, expression: "form.remarks" } })], 1)], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: function(t3) {
e2.dialogVisible = false;
} } }, [e2._v("取 消")]), e2._v(" "), 1 === e2.type ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
return e2.save("form");
} } }, [e2._v("确 定")]) : e2._e()], 1)], 1) : e2._e()], 1);
}, l = [], i = a("5821"), s = a("b775");
function c(e2) {
return Object(s["a"])({ url: "/hakocompany/ApproveTemplate/pageList", method: "post", data: e2 });
}
function u(e2) {
return Object(s["a"])({ url: "/hakocompany/ApproveTemplate/findById", method: "post", data: e2 });
}
function p(e2) {
return Object(s["a"])({ url: "/hakocompany/ApproveTemplate/syncPublic", method: "post", data: e2 });
}
function d(e2) {
return Object(s["a"])({ url: "/company/ApproveTemplate/update", method: "post", data: e2 });
}
function m(e2) {
return Object(s["a"])({ url: "/hakocompany/FinanceApprove/pageList", method: "post", data: e2 });
}
var f = { data: function() {
return Object(i["a"])(Object(i["a"])({ type: "", pageTotal: 0, viewInfo: false, infoList: true, query: { pageNumber: 1, pageSize: 10, companyId: "" }, tableData: [], dialogVisible: false, form: { type: "", typeCode: "", mode: "", source: "", outTemplateId: "", description: "" }, title: "查看审批模板详情" }, "type", 0), "rules", { outTemplateId: [{ required: true, message: "请输入第三方审批模板ID", trigger: "blur" }] });
}, mounted: function() {
this.headClass(), this.getlistData();
}, beforeRouteLeave: function(e2, t2, a2) {
a2();
}, methods: { getlistData: function() {
var e2 = this, t2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId, a2 = Object.assign(this.query, { companyId: t2 });
c(a2).then((function(t3) {
e2.tableData = t3.data.records, e2.pageTotal = t3.data.rowsCount, e2.tableLoading = false;
})).catch((function(t3) {
e2.tableLoading = false;
}));
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getlistData();
}, detailView: function(e2, t2) {
var a2 = this;
this.type = t2, this.title = 0 === t2 ? "查看审批模板详情" : "第三方审批模板ID配置", u({ id: e2.id }).then((function(e3) {
a2.form = e3.data, a2.dialogVisible = true;
})).catch((function(e3) {
}));
}, getAsync: function() {
var e2 = this, t2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
p({ id: t2 }).then((function(t3) {
0 === t3.code ? (e2.$message({ message: "同步成功", type: "success" }), e2.getlistData()) : e2.$message({ message: "同步失败", type: "success" });
})).catch((function(e3) {
}));
}, save: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(e3) {
e3 && d(t2.form).then((function(e4) {
0 === e4.code ? (t2.$message({ message: "更新成功", type: "success" }), t2.dialogVisible = false, t2.getlistData()) : t2.$message({ message: "更新失败", type: "success" });
})).catch((function(e4) {
}));
}));
}, handleClose: function() {
this.dialogVisible = false;
}, copyText: function(e2, t2) {
var a2 = this;
navigator.clipboard.writeText(e2[t2]).then((function() {
a2.$message({ message: "复制成功", type: "success" });
})).catch((function() {
}));
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
} } }, b = f, g = (a("d9ac"), a("829d")), h = Object(g["a"])(b, n, l, false, null, "48f84cc0", null), y = h.exports, v = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query, "label-width": "100px" } }, [a2("el-form-item", { attrs: { prop: "projectName", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入项目名称", maxlength: "64" }, model: { value: e2.query.projectName, callback: function(t3) {
e2.$set(e2.query, "projectName", t3);
}, expression: "query.projectName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "createUser", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入发起人", maxlength: "64" }, model: { value: e2.query.createUser, callback: function(t3) {
e2.$set(e2.query, "createUser", t3);
}, expression: "query.createUser" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "typeCode", label: "" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "审批类型" }, model: { value: e2.query.typeCode, callback: function(t3) {
e2.$set(e2.query, "typeCode", t3);
}, expression: "query.typeCode" } }, e2._l(e2.typeList, (function(e3) {
return a2("el-option", { key: e3.id, attrs: { label: e3.type, value: e3.typeCode } });
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "" } }, [a2("el-date-picker", { attrs: { type: "datetimerange", "range-separator": "至", format: "yyyy-MM-dd HH:mm:ss", "value-format": "yyyy-MM-dd HH:mm:ss", "start-placeholder": "发起开始时间", "end-placeholder": "发起结束时间", "default-time": ["00:00:00", "23:59:59"] }, model: { value: e2.queryTime, callback: function(t3) {
e2.queryTime = t3;
}, expression: "queryTime" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "status", label: "" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "审批状态" }, model: { value: e2.query.status, callback: function(t3) {
e2.$set(e2.query, "status", t3);
}, expression: "query.status" } }, e2._l(e2.approveStatusList, (function(e3) {
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
})), 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
return e2.searchForm("query");
} } }, [e2._v("查询")]), e2._v(" "), a2("el-button", { on: { click: function(t3) {
return e2.resetForm("query");
} } }, [e2._v("重置")])], 1)], 1), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.tableLoading, expression: "tableLoading" }], staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", "min-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) + "\n ")])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "审批编号", prop: "approveNo", "min-width": "130", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "所属项目", prop: "projectName", "min-width": "130", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "审批类型", prop: "type", "min-width": "130", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "审批详情", prop: "content", "min-width": "130" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("div", { staticClass: "tableRowTextBox" }, [t3.row.content ? a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", placement: "top" } }, [a2("label", { staticClass: "tableRowText" }, [e2._v(e2._s(t3.row.content))]), e2._v(" "), a2("div", { staticStyle: { "white-space": "pre-line" }, attrs: { slot: "content" }, slot: "content" }, [e2._v("\n " + e2._s(t3.row.content) + "\n ")])]) : a2("label", [e2._v("-")])], 1)];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "所属平台", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(1 === t3.row.mode ? "企业微信" : "自定义"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "发起人", prop: "createUser", "min-width": "100", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "发起用户", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(t3.row.proposer ? t3.row.proposer : "-"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "发起时间", prop: "createDate", "min-width": "130", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "审批状态", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(e2._f("getItemType")(t3.row.status, e2.approveStatusList)))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "备注", "min-width": "130", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(t3.row.remark || "-"))];
} }]) })], 1), e2._v(" "), a2("div", { staticStyle: { "margin-top": "15px", "text-align": "right" } }, [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);
}, w = [], _ = (a("8975"), a("dce5")), k = { data: function() {
return { approveStatusList: _["h"], typeList: [], tableData: [], tableLoading: false, pageTotal: 0, queryTime: "", query: { projectName: "", createUser: "", typeCode: "", status: "", startTime: "", endTime: "", pageNumber: 1, pageSize: 10 } };
}, mounted: function() {
this.headClass(), this.getTypeList(), this.getList();
}, methods: { getTypeList: function() {
var e2 = this, t2 = { pageSize: -1, pageNumber: -1, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId };
c(t2).then((function(t3) {
e2.typeList = t3.data.records;
}));
}, getList: function() {
var e2 = this;
this.tableLoading = true, this.query.startTime = this.queryTime ? this.queryTime[0] : "", this.query.endTime = this.queryTime ? this.queryTime[1] : "", this.query.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, m(this.query).then((function(t2) {
e2.tableData = t2.data.records, e2.pageTotal = t2.data.rowsCount, e2.tableLoading = false;
})).catch((function(t2) {
e2.tableLoading = false;
}));
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.query.pageNumber = 1, this.getList();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getList();
}, searchForm: function() {
this.query.pageNumber = 1, this.getList();
}, resetForm: function(e2) {
this.$refs[e2].resetFields(), this.queryTime = "", this.query.pageNumber = 1, this.query.pageSize = 10, this.getList();
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
} } }, q = k, x = (a("b331"), Object(g["a"])(q, v, w, false, null, "6ac6e51c", null)), C = x.exports, T = { components: { approveInfo: y, approveList: C }, data: function() {
return { activeName: "approveInfo" };
}, mounted: function() {
}, methods: { handleClick: function(e2, t2) {
console.log(e2, t2);
} } }, S = T, I = (a("8381"), Object(g["a"])(S, o, r, false, null, "0f338b00", null));
t["default"] = I.exports;
}, "37cc": function(e, t, a) {
}, 8124: function(e, t, a) {
}, 8381: function(e, t, a) {
"use strict";
a("37cc");
}, b331: function(e, t, a) {
"use strict";
a("e0d5");
}, d9ac: function(e, t, a) {
"use strict";
a("8124");
}, e0d5: function(e, t, a) {
} }]);