chunk-46cc45f5.f053ac8f.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46cc45f5","chunk-d382e6f6"],{5913:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.addTemplateDialogVisible?a("el-dialog",{attrs:{title:"新建",visible:e.addTemplateDialogVisible,width:"1200px","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.addTemplateDialogVisible=t},close:e.cancel}},[a("div",{staticStyle:{height:"65vh",overflow:"auto"}},[a("el-row",{staticStyle:{margin:"0",height:"100%"},attrs:{gutter:20}},[a("el-col",{attrs:{span:4,xs:24}},[a("div",{staticClass:"head-container",staticStyle:{"max-height":"calc(100vh - 160px)","overflow-y":"auto"}},[a("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"check-on-click-node":!0,"expand-on-click-node":!1,"show-checkbox":"","node-key":"id","default-expand-all":"","highlight-current":"","check-strictly":!0},on:{check:e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node;t.data;return a("span",{staticClass:"custom-tree-node"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:n.label,placement:"top-start","open-delay":500}},[a("span",[e._v(" "+e._s(n.label)+" ")])])],1)}}],null,!1,1416256344)})],1)]),a("el-col",{staticStyle:{height:"100%"},attrs:{span:20,xs:24}},[a("el-table",{staticStyle:{width:"100%",height:"45%",overflow:"auto","margin-bottom":"10px"},attrs:{height:"calc(45% - 45px)",data:e.tableData}},[a("el-table-column",{attrs:{label:"项目编号","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projectCode||"-"))])]}}],null,!1,2786882419)}),a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projectName||"-"))])]}}],null,!1,3307174009)}),a("el-table-column",{attrs:{label:"单价","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unitPrice||"-"))])]}}],null,!1,138632224)}),a("el-table-column",{attrs:{label:"单位","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit||"-"))])]}}],null,!1,2417366221)}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.doAdd(t.row)}}})]}}],null,!1,3988627251)})],1),a("h3",[e._v("已选择的项目")]),a("el-table",{staticStyle:{width:"100%",height:"45%",overflow:"auto"},attrs:{height:"calc(45% - 45px)",data:e.tableDataDown}},[a("el-table-column",{attrs:{label:"项目编号","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projectCode||"-"))])]}}],null,!1,2786882419)}),a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projectName||"-"))])]}}],null,!1,3307174009)}),a("el-table-column",{attrs:{label:"单价","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unitPrice||"-"))])]}}],null,!1,138632224)}),a("el-table-column",{attrs:{label:"单位","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit||"-"))])]}}],null,!1,2417366221)}),a("el-table-column",{attrs:{label:"数量","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input-number",{attrs:{size:"mini",min:1},on:{change:function(a){return e.changeVal(t.$index,t.row.total)}},model:{value:t.row.total,callback:function(a){e.$set(t.row,"total",a)},expression:"scope.row.total"}})]}}],null,!1,414204674)}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer",color:"red"},on:{click:function(a){return e.doDel(t.$index)}}})]}}],null,!1,2701437542)})],1)],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)]):e._e()],1)},s=[],l=a("5530"),r=a("c7eb"),i=a("1da1"),o=(a("14d9"),a("a434"),a("943d")),c={name:"EitcErmPcAddTemplateDialog",props:{listInId:{type:String,default:""}},data:function(){return{addTemplateDialogVisible:!1,tableData:[],deptOptions:[],defaultProps:{children:"childrenList",label:"costTypeName"},listInIds:"",dialogVisible:!1,tableDataDown:[]}},watch:{listInId:function(e){e&&(this.initcollectCostTypeList(),this.initList())}},mounted:function(){this.initcollectCostTypeList(),this.initList()},methods:{initcollectCostTypeList:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["A"])();case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.deptOptions=a.data;case 6:case"end":return t.stop()}}),t)})))()},initList:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["t"])({collectCostTypeId:e.listInIds});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.tableData=a.data;case 6:case"end":return t.stop()}}),t)})))()},changeVal:function(e,t){this.$set(this.tableDataDown,e,Object(l["a"])(Object(l["a"])({},this.tableDataDown[e]),{},{total:t}))},handleNodeClick:function(e,t,a){this.listInIds=e.id,t&&this.$refs.tree.getCheckedNodes().length>1&&this.$refs.tree.setCheckedNodes([e]),this.initList()},doAdd:function(e){var t=e;t.total=1,this.tableDataDown.push(t)},doDel:function(e){this.tableDataDown.splice(e,1)},cancel:function(){this.addTemplateDialogVisible=!1,this.tableDataDown=[],this.initSysUserSexerm_diagnosis_type_template_name()},submit:function(){var e=this;return Object(i["a"])(Object(r["a"])().mark((function t(){var a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(0!==e.tableDataDown.length){t.next=2;break}return t.abrupt("return",e.$message.error("请选择项目"));case 2:return a={diagnosisTypeId:e.listInId,collectCostDetailsVOList:e.tableDataDown},t.next=5,Object(o["L"])(a);case 5:if(n=t.sent,200===n.code){t.next=8;break}return t.abrupt("return",e.$message.error(n.msg));case 8:e.$message.success("新建成功!"),e.$parent.initList(),e.cancel(),e.addTemplateDialogVisible=!1;case 12:case"end":return t.stop()}}),t)})))()}}},u=c,d=(a("88ed"),a("2877")),p=Object(d["a"])(u,n,s,!1,null,"5d1d4e8c",null);t["default"]=p.exports},7459:function(e,t,a){},"88ed":function(e,t,a){"use strict";a("7459")},"913d":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4,xs:24}},[a("div",{staticClass:"head-container",staticStyle:{"max-height":"calc(100vh - 160px)","overflow-y":"auto"}},[a("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"check-on-click-node":!0,"expand-on-click-node":!1,"show-checkbox":"","node-key":"id","default-expand-all":"","highlight-current":"","check-strictly":!0},on:{check:e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node;t.data;return a("span",{staticClass:"custom-tree-node"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:n.label,placement:"top-start","open-delay":500}},[a("span",[e._v(" "+e._s(n.label)+" ")])])],1)}}])})],1)]),a("el-col",{attrs:{span:20,xs:24}},[a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{disabled:e.lookFlag,type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.addDiagnosticlassification}},[e._v("新建")])],1)],1),a("el-table",{staticStyle:{width:"100%",height:"calc(100%-80vh)"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"项目编号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projectCode||"-"))])]}}])}),a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projectName||"-"))])]}}])}),a("el-table-column",{attrs:{label:"单价","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unitPrice||"-"))])]}}])}),a("el-table-column",{attrs:{label:"单位","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit||"-"))])]}}])}),a("el-table-column",{attrs:{label:"数量","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.total||"-"))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.delTableData(t.row)}}},[e._v(" 删除 ")])]}}])})],1)],1)],1),a("addTemplateDialog",{ref:"addTemplateDialogRef",attrs:{listInId:e.listInId}})],1)},s=[],l=a("c7eb"),r=a("1da1"),i=a("5913"),o=a("943d"),c={name:"medicalRecord",components:{addTemplateDialog:i["default"]},data:function(){return{tableDataObject:{},TabledialogVisible:!1,deptOptions:[],defaultProps:{children:"childrenList",label:"diagnosisName"},ids:"",listInId:"",ruleForm:{diagnosisName:""},rules:{diagnosisName:[{required:!0,message:"请输入诊断名称",trigger:"blur"}]},lookFlag:!0,title:"",tableData:[]}},mounted:function(){this.initAiagnosisTypeTree()},methods:{addDiagnosticlassification:function(){var e=this;return Object(r["a"])(Object(l["a"])().mark((function t(){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$refs.addTemplateDialogRef.appointmentName="",e.listInId){t.next=3;break}return t.abrupt("return",e.$message.info("请先选择预约项目名称!"));case 3:e.$refs.addTemplateDialogRef.addTemplateDialogVisible=!0,e.$refs.addTemplateDialogRef.initcollectCostTypeList(),e.$refs.addTemplateDialogRef.initList();case 6:case"end":return t.stop()}}),t)})))()},initAiagnosisTypeTree:function(){var e=this;return Object(r["a"])(Object(l["a"])().mark((function t(){var a;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["Q"])();case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.deptOptions=a.data,e.deptOptions.length&&(e.listInId=e.deptOptions[0].id,e.deptOptions[0].childrenList.length?e.lookFlag=!0:e.lookFlag=!1,e.initList());case 7:case"end":return t.stop()}}),t)})))()},initList:function(){var e=this;return Object(r["a"])(Object(l["a"])().mark((function t(){var a;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["M"])({diagnosisTypeId:e.listInId});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.tableData=a.data;case 6:case"end":return t.stop()}}),t)})))()},handleNodeClick:function(e,t,a){e.childrenList.length?this.lookFlag=!0:this.lookFlag=!1,this.listInId=e.id,t&&this.$refs.tree.getCheckedNodes().length>1&&this.$refs.tree.setCheckedNodes([e]),this.initList()},closeDialog:function(){var e;this.ruleForm.diagnosisName="",null===(e=this.$refs.ruleForm)||void 0===e||e.resetFields(),this.dialogVisible=!1,this.initList(),this.TabledialogVisible=!1},submit:function(){var e=this;this.$refs.ruleForm.validate(function(){var t=Object(r["a"])(Object(l["a"])().mark((function t(a){var n,s;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=20;break}if("新建"!==e.title){t.next=9;break}return t.next=4,Object(o["R"])({diagnosisName:e.ruleForm.diagnosisName,parentId:e.$refs.tree.getCheckedNodes().length>0?e.$refs.tree.getCheckedNodes()[0].id:0});case 4:if(n=t.sent,200===n.code){t.next=7;break}return t.abrupt("return",e.$message.error(n.msg));case 7:t.next=14;break;case 9:return t.next=11,Object(o["U"])({diagnosisName:e.ruleForm.diagnosisName,id:e.$refs.tree.getCheckedNodes().length>0?e.$refs.tree.getCheckedNodes()[0].id:0});case 11:if(s=t.sent,200===s.code){t.next=14;break}return t.abrupt("return",e.$message.error(s.msg));case 14:e.$message.success("".concat(e.title,"成功!")),e.initList(),e.initAiagnosisTypeTree(),e.closeDialog(),t.next=22;break;case 20:return console.log("error submit!!"),t.abrupt("return",!1);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},delTableData:function(e){var t=this;this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r["a"])(Object(l["a"])().mark((function a(){var n;return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(o["N"])(e.id);case 2:if(n=a.sent,200===n.code){a.next=5;break}return a.abrupt("return",t.$message.error(n.msg));case 5:t.initList(),t.$message({type:"success",message:"删除成功!"});case 7:case"end":return a.stop()}}),a)})))).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},doSubmit:function(){var e=this;return Object(r["a"])(Object(l["a"])().mark((function t(){var a;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["Y"])({id:e.tableDataObject.id,diagnosisTypeId:e.tableDataObject.diagnosisTypeId,templateExample:e.tableDataObject.templateExample,templateName:e.tableDataObject.templateName});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.$message.success("修改成功!"),e.closeDialog();case 7:case"end":return t.stop()}}),t)})))()}}},u=c,d=a("2877"),p=Object(d["a"])(u,n,s,!1,null,null,null);t["default"]=p.exports}}]);