WXL (wul)
9 小时以前 1feb410410781eb56159c8fdd856e68d2c23e0a4
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"0239":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"call-container"},[n("div",{staticClass:"sip-status",class:e.sipStatusClass},[e._v(" SIP状态: "+e._s(e.sipStatus)+" ")]),n("div",{staticClass:"call-status",class:e.callStatusClass},[e._v(" "+e._s(e.callStatusText)+" ")]),n("button",{class:["call-btn",{calling:e.isCalling,registering:e.isRegistering}],attrs:{disabled:e.isButtonDisabled},on:{click:e.startCall}},[e.isRegistering?n("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "+e._s(e.callButtonText)+" ")]),e.isCalling?n("button",{staticClass:"end-call-btn",on:{click:e.endCall}},[e._v("挂断")]):e._e(),n("audio",{attrs:{id:"remoteAudio",autoplay:""}})])},i=[],l=n("6ec7"),r=n("6932"),o=(n("7103"),n("46e6"),n("4ed2")),s=n("40d6"),c={props:{phoneNumber:{type:String,default:""}},data:function(){var e=Math.floor(20*Math.random())+1e3;return{isCalling:!1,isRegistering:!0,randomNum:e,randomID:null,callStatus:"idle",sipStatus:"未连接",sipStatusClass:"status-disconnected",sipConfig:{wsUrl:"wss://192.168.10.124:7443",sipUri:"",password:"Smartor@2023",displayName:"Web 小龙"}}},computed:{callStatusText:function(){var e={idle:"准备就绪",calling:"呼叫中...",connected:"通话中",ended:"通话结束"};return e[this.callStatus]},countdownText:function(){if("已注册"!==this.sipStatus)return"";var e=o["a"].canMakeCall(),t=e.canCall,n=e.reason;return!t&&n.includes("等待")?n:""},isButtonDisabled:function(){return this.isCalling||"已注册"!==this.sipStatus||this.isRegistering},callButtonText:function(){return this.isRegistering?"注册中...":this.isCalling?"通话中...":"一键呼叫"},callStatusClass:function(){return"status-".concat(this.callStatus)}},created:function(){},mounted:function(){var e=this;return Object(r["a"])(Object(l["a"])().m((function t(){return Object(l["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,e.CallgetList();case 1:e.isRegistering=!0,o["a"].init(e.sipConfig),o["a"].onStatusChange=function(t){e.sipStatus=t.text,e.sipStatusClass="status-".concat(t.type),"registered"!==t.type&&"failed"!==t.type||(e.isRegistering=!1),"registered"===t.type&&e.startCallsetState(),"failed"!==t.type&&"disconnected"!==t.type||(e.overCallsetState(),e.isRegistering=!1)},o["a"].onCallStatusChange=function(t){e.callStatus=t.type,e.isCalling="calling"===t.type||"connected"===t.type,e.$emit("call-status-change",t)},setTimeout((function(){e.isRegistering&&"已注册"!==e.sipStatus&&(e.isRegistering=!1,e.$message.warning("SIP注册超时,请检查网络连接"))}),1e4);case 2:return t.a(2)}}),t)})))()},methods:{startCall:function(){var e=this;return Object(r["a"])(Object(l["a"])().m((function t(){var n,a,i,r,s,c,u,d;return Object(l["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:if(e.phoneNumber){t.n=1;break}return e.$message.error("请输入电话号码"),t.a(2);case 1:return t.p=1,n=o["a"].canMakeCall(),a=n.canCall,n.reason,a||(i=o["a"].canMakeCall(),i.canCall,i.reason),e.callStatus="calling",e.isCalling=!0,console.log("开始呼叫:",o["a"]),t.n=2,o["a"].makeCall(e.phoneNumber);case 2:t.n=7;break;case 3:return t.p=3,d=t.v,r=Date.now(),console.log(r,"呼叫失败时间"),console.error("呼叫失败1:",d),t.p=4,s=o["a"].canMakeCall(),c=s.canCall,s.reason,c||(u=o["a"].canMakeCall(),u.canCall,u.reason),e.callStatus="calling",e.isCalling=!0,console.log("开始呼叫:",o["a"]),t.n=5,o["a"].makeCall("0"+e.phoneNumber);case 5:t.n=7;break;case 6:t.p=6,t.v,e.callStatus="ended",e.isCalling=!1;case 7:return t.a(2)}}),t,null,[[4,6],[1,3]])})))()},CallgetList:function(){var e=this;return Object(r["a"])(Object(l["a"])().m((function t(){var n,a;return Object(l["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,Object(s["b"])();case 1:n=t.v,e.randomNum=n.data[0].tel,e.randomID=n.data[0].id,e.sipConfig.sipUri="".concat(e.randomNum,"@192.168.10.124"),t.n=3;break;case 2:t.p=2,a=t.v,console.error("获取分机号失败:",a);case 3:return t.a(2)}}),t,null,[[0,2]])})))()},startCallsetState:function(){var e=this;return Object(r["a"])(Object(l["a"])().m((function t(){var n;return Object(l["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,t.n=1,Object(s["c"])({id:e.randomID,state:1});case 1:console.log("分机号状态更新为使用中"),t.n=3;break;case 2:t.p=2,n=t.v,console.error("更新分机号状态失败:",n);case 3:return t.a(2)}}),t,null,[[0,2]])})))()},overCallsetState:function(){var e=this;return Object(r["a"])(Object(l["a"])().m((function t(){var n;return Object(l["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:if(t.p=0,!e.randomID){t.n=2;break}return t.n=1,Object(s["c"])({id:e.randomID,state:0});case 1:console.log("分机号状态更新为可用");case 2:t.n=4;break;case 3:t.p=3,n=t.v,console.error("释放分机号失败:",n);case 4:return t.a(2)}}),t,null,[[0,3]])})))()},endCall:function(){o["a"].endCall(),this.callStatus="ended",this.isCalling=!1},cleanupResources:function(){this.isCalling&&o["a"].endCall(),this.overCallsetState(),o["a"].ua&&o["a"].ua.stop()}},beforeUnmount:function(){this.cleanupResources()}},u=c,d=(n("e57f"),n("1805")),p=Object(d["a"])(u,a,i,!1,null,"1f737012",null);t["a"]=p.exports},"09e5":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:"适用疾病选择",visible:e.dialogVisiblepatient,width:"70%","before-close":e.handleClosehz},on:{"update:visible":function(t){e.dialogVisiblepatient=t}}},[n("div",{staticClass:"examine-jic"},[n("div",{staticStyle:{margin:"0 10px 20px 10px"}},[n("el-card",{staticClass:"box-card"},[e._l(e.overallCase,(function(t){return n("el-tag",{key:t.icdid,attrs:{type:"warning",closable:""},on:{close:function(n){return e.handleClose(t)}}},[e._v(" "+e._s(t.icdname)+" ")])})),n("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[e._v(" 共选择"),n("span",{staticStyle:{"font-size":"18px",color:"#409eff",margin:"0 10px"}},[e._v(e._s(e.overallCase.length))]),e._v("条数据 ")])],2)],1),n("div",{staticClass:"jic-value"},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"queryForm",attrs:{model:e.patientqueryParams,size:"small",inline:!0,"label-width":"98px"}},[n("el-form-item",{attrs:{label:"疾病名称",prop:"name"}},[n("el-input",{attrs:{placeholder:"请输入疾病名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleAddpatient(t)}},model:{value:e.patientqueryParams.icdname,callback:function(t){e.$set(e.patientqueryParams,"icdname",t)},expression:"patientqueryParams.icdname"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:e.handleAddpatient}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.donorchargeList,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{staticClass:"checkall",attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"icdid",label:"疾病编号",width:"100","show-overflow-tooltip":""}}),n("el-table-column",{attrs:{label:"疾病名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.icdname))]}}])}),n("el-table-column",{attrs:{prop:"icdcode",label:"疾病编码",width:"150"}})],1)],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.patienttotal>0,expression:"patienttotal > 0"}],attrs:{total:e.patienttotal,page:e.patientqueryParams.pageNum,limit:e.patientqueryParams.pageSize},on:{"update:page":function(t){return e.$set(e.patientqueryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.patientqueryParams,"pageSize",t)},pagination:e.handleAddpatient}})],1)]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){return e.$emit("addoption")}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.AddDispatchpatients}},[e._v("确定添加")])],1)])],1)},i=[],l=(n("9364"),n("7103"),n("2f82"),n("6678"),n("a5a2"),n("6e70"),n("d3c0"),n("f24b"),n("c33f"),n("21b9"),n("4a55"),n("cfee"),n("46e6"),n("aad4"),n("40d6")),r={name:"Diseasetotality",data:function(){return{patienttotal:0,multipleSelection:[],patientqueryParams:{pageNum:1,pageSize:10},donorchargeList:[],donorchargeanlList:[]}},props:{dialogVisiblepatient:{type:Boolean,default:function(){return!1}},overallCase:{type:Array,required:!0,default:function(){return[]}},type:{type:Number,default:function(){return 5}}},created:function(){},mounted:function(){},watch:{},methods:{handleClosehz:function(){this.$emit("addoption")},handleClose:function(e){var t=this;console.log(e),-1!=this.multipleSelection.indexOf(e)||e.outid?e.outid?this.$modal.confirm('是否确认删除名称为"'+e.icd10name+'"的数据项?').then((function(){t.multipleSelection.splice(t.multipleSelection.indexOf(e),1),Object(l["gb"])(e.id).then((function(n){200==n.code&&(t.$modal.msgSuccess("删除成功"),t.overallCase.splice(t.overallCase.indexOf(e),1))})),t.$refs.multipleTable.toggleRowSelection(e,!1)})).catch((function(){})):(this.overallCase.splice(this.overallCase.indexOf(e),1),this.multipleSelection.splice(this.multipleSelection.indexOf(e),1),this.$refs.multipleTable.toggleRowSelection(e,!1)):(console.log(1),this.overallCase.splice(this.overallCase.indexOf(e),1))},resetQuery:function(){this.patientqueryParams.icdname=null,this.handleAddpatient()},handleAddpatient:function(e){var t=this;this.$emit("kkoption"),Object(l["Vb"])(this.patientqueryParams).then((function(e){t.donorchargeList=e.rows,t.patienttotal=e.total,t.Restorecheck()}))},handleSelectionChange:function(e){var t=this;this.decision||(this.multipleSelection.length<=e.length?this.multipleSelection=e:this.multipleSelection.forEach((function(n){e.includes(n)||(1==t.multipleSelection.length?t.multipleSelection=[]:t.multipleSelection.splice(t.multipleSelection.indexOf(n),1),1==t.overallCase.length?t.overallCase=[]:t.overallCase.splice(t.overallCase.indexOf(n),1))})),this.multipleSelection.forEach((function(e){t.overallCase.every((function(t){return t.icdname!=e.icdname}))&&t.overallCase.push(e)})),console.log(this.multipleSelection,"触发选择后multipleSelection"))},Restorecheck:function(){console.log(this.overallCase,"this.overallCase");var e=this.overallCase.map((function(e){return e.icdname})),t=this.donorchargeList.filter((function(t){return e.includes(t.icdname)}));this.multipleSelection=t,console.log(this.multipleSelection,"进入分页multipleSelection"),this.toggleSelection(t)},toggleSelection:function(e){var t=this;e?(this.decision=!0,this.$nextTick((function(){e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e,!0)})),t.decision=!1})),console.log(123)):this.$refs.multipleTable.clearSelection()},AddDispatchpatients:function(){this.$emit("addoption")}}},o=r,s=(n("8515"),n("1805")),c=Object(s["a"])(o,a,i,!1,null,"6950fffe",null);t["a"]=c.exports},"3a0d":function(e,t,n){},"512b":function(e,t,n){},"57d4":function(e,t,n){"use strict";n("8be4")},5840:function(e,t,n){"use strict";n("3a0d")},8515:function(e,t,n){"use strict";n("c3bc")},"8be4":function(e,t,n){},"8e23":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ordered-checkbox-container"},[n("el-checkbox-group",{staticClass:"horizontal-checkbox-group",model:{value:e.checkedValues,callback:function(t){e.checkedValues=t},expression:"checkedValues"}},e._l(e.options,(function(t){return n("el-checkbox",{key:e.getValue(t),attrs:{label:e.getValue(t)}},[e._v(" "+e._s(e.getLabel(t))+" ")])})),1),e.selectedOrder.length>0?n("div",{staticClass:"selection-order-display"},[n("span",{staticClass:"order-label"},[e._v("服务执行顺序:")]),e._l(e.selectedOrder,(function(t,a){return n("span",{key:t.value,staticClass:"order-item"},[e._v(" "+e._s(e.getSelectedIndex(a))+"."+e._s(e.getLabelByValue(t.value))+" "),n("el-tooltip",{attrs:{content:"设置补偿时间",placement:"top"}},[n("el-input-number",{staticClass:"compensate-time-input",attrs:{min:0,max:60,size:"mini","controls-position":"right"},on:{change:function(n){return e.handleCompensateTimeChange(t.value,n)}},model:{value:t.compensateTime,callback:function(n){e.$set(t,"compensateTime",n)},expression:"item.compensateTime"}})],1),a<e.selectedOrder.length-1?n("span",[e._v("、")]):e._e()],1)}))],2):n("div",{staticClass:"selection-order-display"},[n("span",{staticClass:"order-label"},[e._v("暂无选中项")])])],1)},i=[],l=n("1b86"),r=n("5173"),o=(n("9364"),n("9c42"),n("a76c"),n("7103"),n("2f82"),n("6678"),n("a5a2"),n("6e70"),n("f24b"),n("9493"),n("c33f"),n("21b9"),n("8ada"),n("4a55"),n("cfee"),n("46e6"),n("aad4"),{name:"OrderedCheckboxGroup",props:{options:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},value:{type:Array,default:function(){return[]},validator:function(e){return!(!Array.isArray(e)&&null!==e&&void 0!==e)||(console.warn("value prop should be an array, received:",Object(r["a"])(e)),!1)}},initialselectedOrder:{type:Array,default:function(){return[]}},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"label"},defaultCompensateTime:{type:Number,default:0}},data:function(){return{checkedValues:[],selectedOrder:[]}},watch:{value:{immediate:!0,handler:function(e){var t=this;if(!Array.isArray(e))return console.warn("Expected array for value prop, received:",Object(r["a"])(e)),this.checkedValues=[],void(this.selectedOrder=[]);if(e.length>0&&"object"===Object(r["a"])(e[0]))this.checkedValues=e.map((function(e){return e.preachform})),this.selectedOrder=e.map((function(e){return{value:e.preachform,compensateTime:e.hasOwnProperty("compensateTime")?e.compensateTime:t.defaultCompensateTime}}));else if(JSON.stringify(e)!==JSON.stringify(this.checkedValues)){this.checkedValues=Object(l["a"])(e),console.log(this.selectedOrder,"222");var n=[];e.forEach((function(e){var a=t.selectedOrder.find((function(t){return t.value===e}));if(a)n.push(a);else{var i=t.hasOwnProperty(e);n.push({value:e,compensateTime:!1!==i?i:t.defaultCompensateTime})}})),this.selectedOrder=n}},deep:!0},checkedValues:function(e,t){var n=this;console.log(this.selectedOrder,"333");var a=e.filter((function(e){return!t.includes(e)})),i=t.filter((function(t){return!e.includes(t)}));a.forEach((function(e){n.selectedOrder.find((function(t){return t.value===e}))||n.selectedOrder.push({value:e,compensateTime:n.defaultCompensateTime})})),i.forEach((function(e){var t=n.selectedOrder.findIndex((function(t){return t.value===e}));t>-1&&n.selectedOrder.splice(t,1)})),this.$emit("input",Object(l["a"])(e)),this.emitChangeEvent()}},methods:{getValue:function(e){return"object"===Object(r["a"])(e)?e[this.valueKey]:e},getLabel:function(e){return"object"===Object(r["a"])(e)?e[this.labelKey]:e},getLabelByValue:function(e){var t=this,n=this.options.find((function(n){return t.getValue(n)===e}));return n?this.getLabel(n):e},getSelectedIndex:function(e){return e<20?String.fromCharCode(9312+e):"(".concat(e+1,")")},handleCompensateTimeChange:function(e,t){var n=this.selectedOrder.find((function(t){return t.value===e}));n&&(n.compensateTime=t,this.emitChangeEvent())},hasOwnProperty:function(e){if(!this.initialselectedOrder||!Array.isArray(this.initialselectedOrder))return!1;var t=this.initialselectedOrder.find((function(t){return t.preachform===e}));return!!t&&t.compensateTime},emitChangeEvent:function(){var e=this.selectedOrder.map((function(e,t){return{sort:t+1,preachform:e.value,compensateTime:e.compensateTime}}));this.$emit("change",e)},getSelectionOrder:function(){return this.selectedOrder.map((function(e,t){return{sort:t+1,preachform:e.value,compensateTime:e.compensateTime}}))},setSelectionOrder:function(e){var t=this;this.selectedOrder=e.map((function(e){return{value:e.preachform,compensateTime:e.compensateTime||t.defaultCompensateTime}})),this.checkedValues=e.map((function(e){return e.preachform})),this.emitChangeEvent()}}}),s=o,c=(n("5840"),n("1805")),u=Object(c["a"])(s,a,i,!1,null,"fff13904",null);t["a"]=u.exports},"91fa":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._l(e.TargetoptionList,(function(t){return 3!=t.isoperation?n("div",{staticClass:"topicxq"},[n("el-form",{attrs:{inline:!0,rules:e.rules,model:t,"label-width":"80px"}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{prop:"targetvalue",label:"选项名称"}},[n("el-input",{attrs:{type:"text",placeholder:"请输入(必填项)","show-word-limit":""},model:{value:t.targetvalue,callback:function(n){e.$set(t,"targetvalue",n)},expression:"item.targetvalue"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"异常提醒"}},[n("el-radio-group",{model:{value:t.isabnormal,callback:function(n){e.$set(t,"isabnormal",n)},expression:"item.isabnormal"}},[n("el-radio",{attrs:{label:1}},[e._v("是")]),n("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1)],1)],1),e.intent?e._e():n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:20}},[n("el-form-item",{attrs:{label:"选项说明"}},[n("el-input",{staticStyle:{width:"500px"},attrs:{type:"textarea",rows:2,placeholder:"请输入","show-word-limit":""},model:{value:t.optiondesc,callback:function(n){e.$set(t,"optiondesc",n)},expression:"item.optiondesc"}})],1)],1)],1),n("el-form-item",{attrs:{label:"结束对话"}},[n("el-radio-group",{model:{value:t.isEnd,callback:function(n){e.$set(t,"isEnd",n)},expression:"item.isEnd"}},[n("el-radio",{attrs:{label:1}},[e._v("是")]),n("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1),e.intent?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"处理"}},[n("el-input",{attrs:{type:"text",placeholder:"(默认)无声",maxlength:"10","show-word-limit":""},model:{value:t.text,callback:function(n){e.$set(t,"text",n)},expression:"item.text"}})],1)],1),n("el-col",{directives:[{name:"show",rawName:"v-show",value:e.branchFlag,expression:"branchFlag"}],attrs:{span:12}},[n("el-form-item",{attrs:{label:"选中跳转"}},[n("el-input",{attrs:{type:"text",placeholder:"请输入题目节点","show-word-limit":""},on:{blur:function(n){return e.$emit("branchFlagfn",t.nextQuestion)}},model:{value:t.nextQuestion,callback:function(n){e.$set(t,"nextQuestion",n)},expression:"item.nextQuestion"}})],1)],1)],1):e._e(),1==e.scriptType?n("el-row",{attrs:{gutter:10}},[n("el-form-item",{attrs:{label:"选中提示"}},[n("el-input",{staticStyle:{width:"24vw"},attrs:{type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.prompt,callback:function(n){e.$set(t,"prompt",n)},expression:"item.prompt"}})],1)],1):e._e(),n("el-row",[e.hasValue?n("el-form-item",{attrs:{label:"关键字(含)",prop:"desc"}},[n("div",{staticClass:"xinz-inf"},[e._l(t.dynamiccruxs,(function(a){return n("el-tag",{key:a,attrs:{type:"success",closable:"",effect:"dark","disable-transitions":!1},on:{close:function(n){return e.handleClosecrux(a,t,1)}}},[e._v(" "+e._s(a)+" ")])})),t.inputVisible?n("el-select",{attrs:{filterable:"",remote:"","allow-create":"","reserve-keyword":"","default-first-option":"",loading:e.loading,placeholder:"请选择"},on:{change:function(n){return e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}},e._l(e.regular,(function(e){return n("el-option",{key:e.label,attrs:{label:e.label,value:e.label}})})),1):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return e.showInput(t)}}},[e._v("+ 新增")])],2)]):e._e()],1),n("el-row",[e.hasValue?n("el-form-item",{attrs:{label:"关键字(非)",prop:"adesc"}},[n("div",{staticClass:"xinz-inf"},[e._l(t.nodynamiccruxs,(function(a){return n("el-tag",{key:a,attrs:{type:"warning",closable:"",effect:"dark","disable-transitions":!1},on:{close:function(n){return e.handleClosecrux(a,t,2)}}},[e._v(" "+e._s(a)+" ")])})),t.noinputVisible?n("el-select",{attrs:{filterable:"",remote:"","allow-create":"","reserve-keyword":"","default-first-option":"",loading:e.loading,placeholder:"请选择"},on:{change:function(n){return e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}},e._l(e.noregular,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return e.showInputno(t)}}},[e._v("+ 新增")])],2)]):e._e()],1),e.Verbalproblem?n("el-form-item",{attrs:{label:"选项文件",prop:"sickness"}},[n("div",{staticStyle:{width:"40vw"}},[n("el-upload",{staticClass:"upload-demo",attrs:{action:e.uploadImgUrl,headers:e.headers,accept:".jpg,.png,image/*","on-success":e.handleChange.bind(this,t)}},[n("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1),n("div",{staticStyle:{margin:"20px"}},[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.picturePath,"preview-src-list":t.picturePath?[t.picturePath]:[]}})],1)],1)]):e._e(),n("el-row",{attrs:{gutter:10}},[n("el-col",[n("div",{staticStyle:{"text-align":"right","padding-right":"10px"}},[e.controlsc||e.addoption?n("el-button",{attrs:{type:"success",icon:"el-icon-circle-plus-outline",circle:""},on:{click:function(n){return e.$emit("addoption",t)}}}):e._e(),n("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(n){return e.$emit("deloption",t)}}}),e.controlsc?n("el-button",{attrs:{type:"primary",icon:"el-icon-top",circle:""},on:{click:function(n){return e.$emit("syioption",t)}}}):e._e(),e.controlsc?n("el-button",{attrs:{type:"primary",icon:"el-icon-bottom",circle:""},on:{click:function(n){return e.$emit("xiayioption",t)}}}):e._e()],1)])],1)],1)],1):e._e()})),0)},i=[],l=(n("618d"),n("a76c"),n("6678"),n("7a82"),n("a5a2"),n("4360")),r=n("5f87"),o={data:function(){return{zz1:"^(?!.不)(.(我|你|他|可以|是|好|知道|没错)+.*)$",zz2:"^(?!.不)(?=.?(我|你|他|可以|是|好|知道|没错)).*$",fileList:[{name:"food.jpeg",url:"https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100"}],headers:{Authorization:"Bearer "+Object(r["a"])()},uploadImgUrl:"/prod-api/common/uploadSort",whether:1,inputValue:"",inputVisible:!1,noinputVisible:!1,loading:!1,regular:[],noregular:[],nodynamiccruxs:["别","不"],dynamiccruxs:["好"],rules:{targetvalue:[{required:!0,message:"请输入选项名称",trigger:"blur"}],isabnormal:[{required:!0,message:"请输入选项名称",trigger:"blur"}]}}},props:{TargetoptionList:{type:Array,required:!0,default:function(){return[]}},controlsc:{type:Boolean,default:!0},scriptType:{type:String,default:"1"},addoption:{type:Boolean,default:!1},intent:{type:Boolean,default:!0},hasValue:{type:Boolean,default:!0},Verbalproblem:{type:Boolean,default:!0},branchFlag:{type:Boolean,default:!1}},created:function(){this.regular=l["a"].getters.regular,this.noregular=l["a"].getters.noregular},methods:{generateRegex:function(e){var t=this.TargetoptionList.indexOf(e);console.log(t);for(var n="",a="",i="",l="",r=0;r<this.TargetoptionList[t].dynamiccruxs.length;r++)n+="".concat(this.TargetoptionList[t].dynamiccruxs[r],"|");for(var o=0;o<this.TargetoptionList[t].nodynamiccruxs.length;o++)a+="".concat(this.TargetoptionList[t].nodynamiccruxs[o],"|");n=n.slice(0,-1),a=a.slice(0,-1),l=a?"^(?!.*(?:"+"".concat(a)+")).*$":"",i="(?=.*(?:"+"".concat(n)+")).*$",this.TargetoptionList[t].targetregex=i,this.TargetoptionList[t].targetregex2=l,console.log(i,"确定字匹配"),console.log(l,"否定字匹配"),this.handleSelectionChange()},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(e.length," 个文件,共选择了 ").concat(e.length+t.length," 个文件"))},handleClosecrux:function(e,t,n){1==n?(t.dynamiccruxs.splice(t.dynamiccruxs.indexOf(e),1),console.log(1),console.log(t.dynamiccruxs),console.log(t.nodynamiccruxs)):(console.log(2),t.nodynamiccruxs.splice(t.nodynamiccruxs.indexOf(e),1)),this.generateRegex(t)},handleInputConfirm:function(e){console.log(this.TargetoptionList,"TargetoptionList");var t=this.TargetoptionList.indexOf(e);console.log(1112),1==this.whether&&this.inputValue?(-1==this.TargetoptionList[t].dynamiccruxs.indexOf(this.inputValue)?this.TargetoptionList[t].dynamiccruxs.push(this.inputValue):this.$message.error("关键字已存在"),this.TargetoptionList[t].inputVisible=!1):2==this.whether&&this.inputValue&&(console.log(this.inputValue),console.log(this.TargetoptionList[t].nodynamiccruxs.indexOf(this.inputValue)),-1==this.TargetoptionList[t].nodynamiccruxs.indexOf(this.inputValue)?this.TargetoptionList[t].nodynamiccruxs.push(this.inputValue):this.$message.error("关键字已存在"),this.TargetoptionList[t].noinputVisible=!1),this.generateRegex(e),this.inputValue=""},showInput:function(e){var t=this.TargetoptionList.indexOf(e);this.$set(this.TargetoptionList[t],"inputVisible",!0),this.whether=1},showInputno:function(e){var t=this.TargetoptionList.indexOf(e);this.$set(this.TargetoptionList[t],"noinputVisible",!0),this.whether=2},handleSelectionChange:function(e){console.log(this.TargetoptionList),this.$emit("handleSelectionChange",e)},handleChange:function(e,t,n,a){console.log(t,"response"),console.log(e,"item"),console.log(this.TargetoptionList,"this.TargetoptionList");var i=this.TargetoptionList.findIndex((function(t){return t.guid==e.guid}));console.log(i),this.TargetoptionList[i].picturePath=t.url}}},s=o,c=(n("57d4"),n("1805")),u=Object(c["a"])(s,a,i,!1,null,"430c0c78",null);t["a"]=u.exports},"9dd6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table",{ref:"multipleTableson",attrs:{height:e.heights,data:e.currentList.filter((function(t){return!e.search||t.name.toLowerCase().includes(e.search.toLowerCase())})),"header-cell-style":{background:"#f3f6fb",color:"#666",height:"42px","font-weight":400},"highlight-current-row":!0,"empty-text":"暂无数据"},on:{"selection-change":e.handleSelectionChange}},[e.multiplechoice?n("el-table-column",{attrs:{fixed:"left",type:"selection",width:"50",align:"center"}}):e._e(),e.serialnumber?n("el-table-column",{key:"id",attrs:{label:"序号",align:"center",prop:"id"}}):e._e(),e._l(e.tableLabel,(function(t,a){return n("div",["出院日期"==t.label?n("el-table-column",{key:a,attrs:{prop:t.prop,width:t.width,label:t.label,formatter:e.formatData},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.formatTime(t.row.endtime)))])]}}],null,!0)}):e._e(),"性别"==t.label?n("el-table-column",{key:a,attrs:{prop:t.prop,width:t.width,label:t.label,formatter:e.formatData},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(1==t.row.sex?"男":"女"))])]}}],null,!0)}):e._e(),"性别"!=t.label&&"出院日期"!=t.label?n("el-table-column",{key:a,attrs:{prop:t.prop,width:t.width,label:t.label,formatter:e.formatData}}):e._e()],1)})),e.center&&!e.searchTrue?n("el-table-column",{attrs:{label:"操作",fixed:"right",align:"center",width:"120","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.controlxz?n("el-button",{attrs:{size:"medium",type:"text"},nativeOn:{click:function(n){return e.$emit("selectfn",t.row,e.typeinfo)}}},[n("span",{staticClass:"button-zx"},[n("i",{staticClass:"el-icon-s-promotion"}),e._v("选择")])]):e._e(),e.controlsc?n("el-button",{attrs:{size:"medium",type:"text"},nativeOn:{click:function(n){return e.$emit("details",t.row,e.typeinfo)}}},[n("span",{staticStyle:{color:"red"}},[n("i",{staticClass:"el-icon-delete"}),e._v("删除")])]):e._e()]}}],null,!1,3160586374)}):e._e(),e.center&&e.searchTrue?n("el-table-column",{attrs:{label:"操作",fixed:"right",align:"right",width:"200","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"header",fn:function(t){return[n("el-input",{attrs:{size:"mini",placeholder:"输入患者名称搜索"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})]}},{key:"default",fn:function(t){return[e.controlxz?n("el-button",{attrs:{size:"medium",type:"text"},nativeOn:{click:function(n){return e.$emit("selectfn",t.row,e.typeinfo)}}},[n("span",{staticClass:"button-zx"},[n("i",{staticClass:"el-icon-s-promotion"}),e._v("选择")])]):e._e(),e.controlsc?n("el-button",{attrs:{size:"medium",type:"text"},nativeOn:{click:function(n){return e.$emit("details",t.row,e.typeinfo)}}},[n("span",{staticStyle:{color:"red"}},[n("i",{staticClass:"el-icon-delete"}),e._v("删除")])]):e._e()]}}],null,!1,3422432994)}):e._e()],2)},i=[],l=(n("4a55"),n("154d")),r=n.n(l),o=n("4360"),s={data:function(){return{ids:[],mode:[],languagelist:[],editabshape:[],qyoptions:[],precedencetype:[],search:""}},props:{currentList:{type:Array,required:!0},tableLabel:{type:Array,default:function(){return[]}},controlsc:{type:Boolean,default:!0},center:{type:Boolean,default:!0},controlxz:{type:Boolean,default:!0},multiplechoice:{type:Boolean,default:!0},serialnumber:{type:Boolean,default:!0},typeinfo:{type:Number,default:1},heights:{type:Number,default:600},searchTrue:{type:Boolean,default:!1}},created:function(){this.mode=o["a"].getters.mode,this.languagelist=o["a"].getters.languagelist,this.qyoptions=o["a"].getters.usable,this.precedencetype=o["a"].getters.precedencetype,this.editabshape=o["a"].getters.editabshape},methods:{formatData:function(e,t,n){return"createType"===t.property?1===n?"自动":"手动":"createTime"===t.property||"inhosptime"===t.property?null===n?"":r()(n).format("YYYY-MM-DD "):n},handleSelectionChange:function(e){console.log(e),this.$emit("handleSelectionChange",e)},toggleRowSelection:function(e,t){this.$refs.multipleTableson.toggleRowSelection(e,t)},clearSelection:function(){this.$refs.multipleTableson.clearSelection()}}},c=s,u=(n("e13d"),n("1805")),d=Object(u["a"])(c,a,i,!1,null,null,null);t["a"]=d.exports},a1d0:function(e,t,n){},c3bc:function(e,t,n){},e13d:function(e,t,n){"use strict";n("512b")},e57f:function(e,t,n){"use strict";n("a1d0")}}]);