320 lines
19 KiB
JavaScript
320 lines
19 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-4a77aba0"], { "484b": function(e, t, n) {
|
|
"use strict";
|
|
n.d(t, "d", (function() {
|
|
return r;
|
|
})), n.d(t, "G", (function() {
|
|
return s;
|
|
})), n.d(t, "v", (function() {
|
|
return i;
|
|
})), n.d(t, "p", (function() {
|
|
return c;
|
|
})), n.d(t, "r", (function() {
|
|
return o;
|
|
})), n.d(t, "B", (function() {
|
|
return u;
|
|
})), n.d(t, "c", (function() {
|
|
return l;
|
|
})), n.d(t, "u", (function() {
|
|
return p;
|
|
})), n.d(t, "i", (function() {
|
|
return d;
|
|
})), n.d(t, "w", (function() {
|
|
return f;
|
|
})), n.d(t, "b", (function() {
|
|
return m;
|
|
})), n.d(t, "j", (function() {
|
|
return h;
|
|
})), n.d(t, "m", (function() {
|
|
return b;
|
|
})), n.d(t, "f", (function() {
|
|
return g;
|
|
})), n.d(t, "h", (function() {
|
|
return S;
|
|
})), n.d(t, "a", (function() {
|
|
return y;
|
|
})), n.d(t, "k", (function() {
|
|
return j;
|
|
})), n.d(t, "F", (function() {
|
|
return v;
|
|
})), n.d(t, "z", (function() {
|
|
return O;
|
|
})), n.d(t, "t", (function() {
|
|
return I;
|
|
})), n.d(t, "n", (function() {
|
|
return M;
|
|
})), n.d(t, "s", (function() {
|
|
return T;
|
|
})), n.d(t, "y", (function() {
|
|
return _;
|
|
})), n.d(t, "g", (function() {
|
|
return P;
|
|
})), n.d(t, "o", (function() {
|
|
return N;
|
|
})), n.d(t, "q", (function() {
|
|
return w;
|
|
})), n.d(t, "D", (function() {
|
|
return q;
|
|
})), n.d(t, "e", (function() {
|
|
return k;
|
|
})), n.d(t, "l", (function() {
|
|
return C;
|
|
})), n.d(t, "E", (function() {
|
|
return x;
|
|
})), n.d(t, "x", (function() {
|
|
return L;
|
|
})), n.d(t, "C", (function() {
|
|
return $;
|
|
})), n.d(t, "A", (function() {
|
|
return A;
|
|
}));
|
|
var a = n("b775");
|
|
function r(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMeal/create", method: "POST", data: e2 });
|
|
}
|
|
function s(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMeal/update", method: "POST", data: e2 });
|
|
}
|
|
function i(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMeal/pageList", method: "POST", data: e2 });
|
|
}
|
|
function c(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectProject/getInspectTypeTree", method: "POST", data: e2 });
|
|
}
|
|
function o(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/inspectSetMealPageList", method: "POST", data: e2 });
|
|
}
|
|
function u(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/querySetMealStandardScore", method: "POST", data: e2 });
|
|
}
|
|
function l(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/create", method: "POST", data: e2 });
|
|
}
|
|
function p(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/update", method: "POST", data: e2 });
|
|
}
|
|
function d(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/editSetMealStandardScore", method: "POST", data: e2 });
|
|
}
|
|
function f(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/pageList", method: "POST", data: e2 });
|
|
}
|
|
function m(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/create", method: "POST", data: e2 });
|
|
}
|
|
function h(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMeal/findById", method: "POST", data: e2 });
|
|
}
|
|
function b(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribeExpert/page", method: "POST", data: e2 });
|
|
}
|
|
function g(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribeExpert/delete", method: "POST", data: e2 });
|
|
}
|
|
function S(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMeal/delete", method: "POST", data: e2 });
|
|
}
|
|
function y(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribeExpert/create", method: "POST", data: e2 });
|
|
}
|
|
function j(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/findById", method: "POST", data: e2 });
|
|
}
|
|
function v(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/update", method: "POST", data: e2 });
|
|
}
|
|
function O(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/queryInspectScore", method: "POST", data: e2 });
|
|
}
|
|
function I(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/inspectTaskPageList", method: "POST", data: e2 });
|
|
}
|
|
function M(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/generateReport", method: "POST", data: e2 });
|
|
}
|
|
function T(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/inspectTaskItemStandardInfo", method: "POST", data: e2 });
|
|
}
|
|
function _(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/queryInspectReport", method: "POST", data: e2 });
|
|
}
|
|
function P(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/delete", method: "post", data: e2, responseType: "blob" });
|
|
}
|
|
function N(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectProject/getInspectTypeChildNode", method: "POST", data: e2 });
|
|
}
|
|
function w(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectProject/getInspectTypeChildNodeByTypeUuid", method: "POST", data: e2 });
|
|
}
|
|
function q(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectStandardProject/update", method: "POST", data: e2 });
|
|
}
|
|
function k(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectStandardProject/create", method: "POST", data: e2 });
|
|
}
|
|
function C(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/findById", method: "POST", data: e2 });
|
|
}
|
|
function x(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/updateExecuteResult", method: "POST", data: e2 });
|
|
}
|
|
function L(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMealStandardRel/inspQueryStandUnionPageList", method: "POST", data: e2 });
|
|
}
|
|
function $(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSetMeal/setMealCloudDownSync", method: "POST", data: e2 });
|
|
}
|
|
function A(e2) {
|
|
return Object(a["a"])({ url: "/appproject/InspectSubscribe/serviceReport", method: "POST", data: e2 });
|
|
}
|
|
}, "66ba": function(e, t, n) {
|
|
}, "9af8": function(e, t, n) {
|
|
e.exports = n.p + "static/img/waiting.46d85db3.png";
|
|
}, c541: function(e, t, n) {
|
|
"use strict";
|
|
var a = function() {
|
|
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
|
return n2("div", { staticClass: "app-container bgHeight" }, [n2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [n2("el-form", { ref: "query", attrs: { model: e2.query } }, [n2("div", { ref: "form_box", staticClass: "searchBar" }, [n2("div", { staticClass: "searchInput" }, [n2("el-row", { attrs: { gutter: 20 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", { attrs: { prop: "setMealName" } }, [n2("el-input", { attrs: { placeholder: "体检套餐", clearable: "" }, model: { value: e2.query.setMealName, callback: function(t3) {
|
|
e2.$set(e2.query, "setMealName", t3);
|
|
}, expression: "query.setMealName" } })], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.resetForm("query");
|
|
} } }, [e2._v("重置")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1)], 1)])])], 1), e2._v(" "), n2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [n2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [n2("span", { staticClass: "planTitle" }, [e2._v("体检套餐列表")]), e2._v(" "), n2("div", [1 == e2.queryType ? n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-download", attrs: { type: "primary" }, on: { click: e2.synchroCloud } }, [e2._v("同步云库")]) : e2._e(), e2._v(" "), 2 === e2.queryType ? n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-plus", attrs: { type: "primary" }, on: { click: e2.addPhysical } }, [e2._v("新增体检套餐")]) : e2._e()], 1)]), e2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + " ")])];
|
|
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "setMealName", align: "center", label: "体检套餐名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(t3.row.setMealName))])];
|
|
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "应用场景" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.sceneMenuId, e2.sceneMenuList, "id", "sceneName")))])];
|
|
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "star", align: "center", label: "套餐级别" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(t3.row.star ? 1 === t3.row.star ? "1A" : 2 === t3.row.star ? "2A" : 3 === t3.row.star ? "3A" : 4 === t3.row.star ? "4A" : "5A" : "-"))])];
|
|
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "avgScore", align: "center", label: "套餐分数" } }), e2._v(" "), n2("el-table-column", { attrs: { label: "操作", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
|
return e2.editClick(t3.row);
|
|
} } }, [e2._v("编辑")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
|
return e2.configClick(t3.row);
|
|
} } }, [e2._v("套餐配置")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
|
return e2.deleteSetMeal(t3.row);
|
|
} } }, [e2._v("删除")])];
|
|
} }]) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("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), e2._v(" "), n2("div", [n2("el-dialog", { staticClass: "dialogHead", attrs: { width: "30%", title: e2.title, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.physicalVisible }, on: { "update:visible": function(t3) {
|
|
e2.physicalVisible = t3;
|
|
} } }, [n2("el-form", { ref: "form", staticClass: "demo-ruleForm", attrs: { model: e2.form, "label-width": "100px" } }, [n2("el-form-item", { attrs: { label: "体检名称", prop: "setMealName", rules: [{ required: true, message: "体检名称不能为空", trigger: "blur" }] } }, [n2("el-input", { attrs: { placeholder: "请输入体检名称" }, model: { value: e2.form.setMealName, callback: function(t3) {
|
|
e2.$set(e2.form, "setMealName", t3);
|
|
}, expression: "form.setMealName" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "应用场景", prop: "sceneMenuId", rules: { required: true, message: "请选择应用场景", trigger: "change" } } }, [n2("el-select", { attrs: { placeholder: "请选择应用场景" }, model: { value: e2.form.sceneMenuId, callback: function(t3) {
|
|
e2.$set(e2.form, "sceneMenuId", t3);
|
|
}, expression: "form.sceneMenuId" } }, e2._l(e2.sceneMenuList, (function(e3) {
|
|
return n2("el-option", { key: e3.id, attrs: { label: e3.sceneName, value: e3.id } });
|
|
})), 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "套餐级别", prop: "star" } }, [n2("el-input", { attrs: { placeholder: "请输入套餐级别", disabled: "" }, model: { value: e2.form.star, callback: function(t3) {
|
|
e2.$set(e2.form, "star", t3);
|
|
}, expression: "form.star" } })], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { on: { click: function(t3) {
|
|
e2.physicalVisible = false;
|
|
} } }, [e2._v("取消")]), e2._v(" "), n2("el-button", { attrs: { type: "primary", loading: e2.btnLoading }, on: { click: function(t3) {
|
|
return e2.submitForm("form");
|
|
} } }, [e2._v("确定")])], 1)], 1)], 1)], 1)], 1);
|
|
}, r = [], s = n("21bf"), i = n("d2a7"), c = n("484b"), o = n("dce5"), u = { name: "physicaExamineList", components: {}, props: ["queryType", "sceneMenu"], data: function() {
|
|
return { packageTypeList: o["Ab"], title: "新增体检套餐", pageTotal: 0, listLoading: false, physicalVisible: false, btnLoading: false, listTable: [], type: 1, form: { setMealName: "", star: "", sceneMenuId: "", projectUuid: this.$store.state.community_uuid }, query: { pageNumber: 1, pageSize: 10, setMealName: "", sceneMenuId: "" }, projectStar: 0, sceneMenuList: [] };
|
|
}, beforeRouteEnter: function(e2, t2, n2) {
|
|
n2((function(t3) {
|
|
var n3 = e2.name, a2 = JSON.parse(sessionStorage.getItem(n3));
|
|
a2 && (t3.query = a2), t3.getlistData();
|
|
}));
|
|
}, created: function() {
|
|
this.getProjectList(), this.getlistData(), this.headClass(), this.getSceneMenuList();
|
|
}, mounted: function() {
|
|
}, methods: { getProjectList: function() {
|
|
var e2 = this, t2 = JSON.parse(window.localStorage.getItem("C_userInfo")), n2 = JSON.parse(t2.targetInfo).accountName;
|
|
Object(s["d"])({ accountName: n2, memberId: t2.memberId, roleId: t2.roleId }).then((function(t3) {
|
|
if (0 === t3.code && t3.data) {
|
|
var n3 = e2.$store.state.community_uuid, a2 = t3.data.organizationalStructureRespDTOS, r2 = a2.filter((function(e3) {
|
|
return e3.uuid === n3;
|
|
}))[0].star;
|
|
e2.projectStar = r2 || "", e2.form.star = r2 ? r2 + "A" : "A";
|
|
}
|
|
}));
|
|
}, getSceneMenuList: function() {
|
|
var e2 = this, t2 = {};
|
|
t2 = this.sceneMenu ? { sceneMenu: this.sceneMenu } : {}, Object(i["a"])(t2).then((function(t3) {
|
|
e2.sceneMenuList = t3.data;
|
|
}));
|
|
}, submitForm: function(e2) {
|
|
var t2 = this;
|
|
this.btnLoading = true, this.$refs[e2].validate((function(e3) {
|
|
e3 ? 1 == t2.type ? t2.createPhysical() : t2.updatePhysical() : t2.btnLoading = false;
|
|
}));
|
|
}, deleteSetMeal: function(e2) {
|
|
var t2 = this;
|
|
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
|
Object(c["h"])({ id: e2.id }).then((function(e3) {
|
|
0 == e3.code && (t2.$message({ message: "删除成功", type: "success" }), t2.getlistData());
|
|
}));
|
|
}));
|
|
}, updatePhysical: function() {
|
|
var e2 = this, t2 = { id: this.form.id, setMealName: this.form.setMealName, sceneMenuId: this.form.sceneMenuId, star: this.projectStar, projectUuid: this.$store.state.community_uuid };
|
|
Object(c["G"])(t2).then((function(t3) {
|
|
0 === t3.code && (e2.$message({ type: "success", message: "更新成功" }), e2.getlistData(), e2.physicalVisible = false, e2.btnLoading = false);
|
|
})).catch((function() {
|
|
e2.btnLoading = false;
|
|
}));
|
|
}, createPhysical: function() {
|
|
var e2 = this, t2 = { setMealName: this.form.setMealName, star: this.projectStar, sceneMenuId: this.form.sceneMenuId, projectUuid: this.$store.state.community_uuid };
|
|
Object(c["d"])(t2).then((function(t3) {
|
|
0 === t3.code && (e2.$message({ type: "success", message: "创建成功" }), e2.btnLoading = false, e2.getlistData(), e2.physicalVisible = false);
|
|
})).catch((function() {
|
|
e2.btnLoading = false;
|
|
}));
|
|
}, addPhysical: function() {
|
|
if ("" === this.projectStar) return this.$message({ type: "error", message: "该项目暂未配置套餐级别,请配置项目套餐级别后再添加" }), false;
|
|
this.type = 1, this.title = "新增体检套餐", this.form.setMealName = "", this.form.sceneMenuId = "", delete this.form.id, this.physicalVisible = true;
|
|
}, configClick: function(e2) {
|
|
this.$router.replace({ path: "/createInfo/packageConfig", query: { data: e2.id } });
|
|
}, editClick: function(e2) {
|
|
if ("" === this.projectStar) return this.$message({ type: "error", message: "该项目暂未配置套餐级别,请配置项目套餐级别后再修改" }), false;
|
|
this.type = 2, this.title = "编辑体检套餐", this.physicalVisible = true, this.form.id = e2.id, this.form.setMealName = e2.setMealName, this.form.sceneMenuId = e2.sceneMenuId;
|
|
}, getlistData: function() {
|
|
var e2 = this;
|
|
this.listLoading = true, this.query.sceneMenu = this.sceneMenu ? this.sceneMenu : null, this.query.queryType = this.queryType ? this.queryType : null, this.query.projectUuid = this.$store.state.community_uuid, Object(c["v"])(this.query).then((function(t2) {
|
|
t2 && t2.data && (e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount);
|
|
})), this.listLoading = false;
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, resetForm: function(e2) {
|
|
this.query.pageNumber = 1, this.$refs[e2].resetFields(), this.getlistData();
|
|
}, handleSlow: function() {
|
|
this.isShow = !this.isShow;
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, typeFormat: function(e2) {
|
|
if (e2) {
|
|
var t2 = o["Ab"].filter((function(t3) {
|
|
return t3.value == e2;
|
|
}));
|
|
return t2.length > 0 ? t2[0].label : "-";
|
|
}
|
|
return "-";
|
|
}, synchroCloud: function() {
|
|
var e2 = this;
|
|
Object(c["C"])({ uuid: this.$store.state.community_uuid }).then((function(t2) {
|
|
e2.$message({ message: "云库同步成功,请等待数据刷新...", type: "success" }), e2.resetForm("query");
|
|
}));
|
|
} } }, l = u, p = (n("ffac"), n("829d")), d = Object(p["a"])(l, a, r, false, null, "59974806", null);
|
|
t["a"] = d.exports;
|
|
}, d2a7: function(e, t, n) {
|
|
"use strict";
|
|
n.d(t, "a", (function() {
|
|
return r;
|
|
}));
|
|
var a = n("b775");
|
|
function r(e2) {
|
|
return Object(a["a"])({ url: "/appproject/AloneStandardProject/sceneMenuList", method: "POST", data: e2 });
|
|
}
|
|
}, ffac: function(e, t, n) {
|
|
"use strict";
|
|
n("66ba");
|
|
} }]);
|