Files
wysite/hc-pos.sqygj.cn/static/js/chunk-4a77aba0.21f8cb8c.js

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