2 lines
1.0 MiB
2 lines
1.0 MiB
var __defProp=Object.defineProperty,__defNormalProp=(e,t,l)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,__publicField=(e,t,l)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,l),l);if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((l=>t.resolve(e()).then((()=>l))),(l=>t.resolve(e()).then((()=>{throw l}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e){return weex.requireModule(e)}function l(e,t,...l){uni.__log__?uni.__log__(e,t,...l):console[e].apply(console,[...l,t])}function a(e,t){return"string"==typeof e?t:e}const i=(t,l=0)=>(l,a=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,l,a)},n=i("onShow",3),o=i("onHide",3),r=i("onLoad",2),c=i("onBackPress",2),s=(e,t)=>{const l=e.__vccOpts||e;for(const[a,i]of t)l[a]=i;return l};const u=s({name:"ZyUpgrade",props:{theme:{type:String,default:"green"},updateurl:{type:String,default:""},h5preview:{type:Boolean,default:!1},oldversion:{type:String,default:""},oldcode:{type:Number,default:0},appstoreflag:{type:Boolean,default:!1},noticeflag:{type:Boolean,default:!1},autocheckupdate:{type:Boolean,default:!0}},data(){return{update_flag:!1,dshow:!1,update_process:0,downloadTask:[],updated2version:"",version_url:"",update_tips:"",forceupgrade:!1,currentversion:this.oldversion,versionname:"",vesioncode:this.oldcode,wgt_flag:0,wgt_url:"",size:0,header:{Authorization:uni.getStorageSync("token")||"token"}}},mounted(){let e=!1;e=!0,this.h5preview,this.autocheckupdate&&this.check_update()},computed:{version(){let e="";return e=this.currentversion+(""!=this.currentversion&&""!=this.updated2version?"->":"")+this.updated2version,e}},methods:{check_update(){let e=this;plus.runtime.getProperty(plus.runtime.appid,(function(t){e.currentversion=t.version,e.versionname=t.name,e.versioncode=t.versionCode,e.updatebusiness(e)}))},updatebusiness:function(e){uni.request({url:`https://www.focusnu.com/devopsapi/api/pad/versionUpdate?platform=1&version=${e.currentversion}`,method:"GET",dataType:"json",success:t=>{404!==t.statusCode&&(100==t.data.code?t.data.data.update_url?(e.dshow=!0,e.update_tips=t.data.data.update_tips,e.forceupgrade=1==t.data.data.forceupdate,e.version_url=t.data.data.update_url,e.updated2version=t.data.data.version,e.wgt_flag=t.data.data.wgt_flag,e.wgt_url=t.data.data.wgt_url,e.size=t.data.data.size,e.getnewbanben()):e.noticeflag&&e.$emit("showupdateTips",0):uni.showToast({title:"请求升级出错:"+data.msg,icon:"none"}))},fail(){this.loading=!1}})},getnewbanben:function(){this.$emit("chuandinew",this.updated2version)},upgrade_checked:function(){uni.removeStorageSync("token"),this.update_flag=!0,this.updateversion()},upgrade_cancel:function(){this.dshow=!1},upgrade_break:function(){this.downloadTask.abort(),this.update_flag=!1},updateversion:function(){let e=this;if("ios"==uni.getSystemInfoSync().platform&&this.appstoreflag&&1!=e.wgt_flag)e.dshow=!1,plus.runtime.launchApplication({action:e.version_url},(function(e){uni.showToast({title:"打开appstore失败",icon:"none"})}));else{let e=this,t="https://www.focusnu.com/devopsapi/sys/common/static/"+(1==e.wgt_flag?e.wgt_url:e.version_url);this.update_confirm=!0,this.downloadTask=uni.downloadFile({url:t,header:this.header,success:function(e){l("log","at component/zy-upgrade/zy-upgrade.vue:224","!!!",e),200==e.statusCode?plus.runtime.install(e.tempFilePath,{force:!1},(function(){plus.runtime.restart()}),(function(e){uni.showToast({title:"升级失败",icon:"none"})})):uni.showToast({title:"下载失败,网络错误",icon:"none"})},fail:function(e){uni.showToast({title:"下载失败:"+e.errMsg,icon:"none"}),this.update_flag=!1},complete:function(){}}),this.downloadTask.onProgressUpdate((function(t){if(e.update_process=t.progress,t.progress==1/0){let l=t.totalBytesWritten/e.size*100;l>100&&(l=100),e.update_process=l}}))}}}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["zy-modal",n.dshow?"show":""])},[e.createElementVNode("view",{style:{position:"absolute",top:"150rpx",left:"940rpx","z-index":"9999"}},[e.createElementVNode("image",{style:{width:"300rpx",height:"400rpx",position:"absolute",top:"0rpx",left:"0rpx"},src:"/static/index/update/fly.png"})]),e.createElementVNode("view",{class:"zy-dialog",style:{"background-color":"#fff","border-radius":"40rpx"}},[e.createElementVNode("view",{style:{height:"400rpx",width:"100%",position:"relative"}},[e.createElementVNode("image",{style:{width:"1800rpx",height:"1600rpx",position:"absolute",top:"-370rpx",left:"-220rpx"},src:"/static/index/update/bgc.png"})]),e.createElementVNode("view",{class:e.normalizeClass("zy-upgrade-topbg-"+a.theme)},[e.createElementVNode("view",null,[e.createElementVNode("text",{class:"zy-upgrade-title"}," 发现新版本 ")]),e.createElementVNode("text",{class:"flex-wrap",style:{"margin-top":"10rpx"}},e.toDisplayString(o.version),1)],2),e.createElementVNode("view",{class:"padding-xl bg-white text-left"},[e.createElementVNode("scroll-view",{class:"scroll-box","scroll-y":"true"},[e.createElementVNode("text",null,e.toDisplayString(n.update_tips),1)]),n.update_flag?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zy-progress radius striped active"},[e.createElementVNode("view",{class:e.normalizeClass("bg-"+a.theme),style:e.normalizeStyle([{"background-color":"royalblue"},"width: "+n.update_process+"%;"])},e.toDisplayString(n.update_process),7)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"zy-bar bg-white",style:{"justify-content":"center",display:"flex","margin-bottom":"60rpx"}},[!n.update_flag&&n.forceupgrade?(e.openBlock(),e.createElementBlock("view",{key:0,class:"action"},[e.createElementVNode("button",{class:e.normalizeClass(["zy-btn","bg-"+a.theme]),onClick:l[0]||(l[0]=(...e)=>o.upgrade_checked&&o.upgrade_checked(...e))},"确认升级",2)])):e.createCommentVNode("",!0),n.update_flag||n.forceupgrade?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"action"},[e.createElementVNode("view",{class:"zy-btn",onClick:l[1]||(l[1]=(...e)=>o.upgrade_checked&&o.upgrade_checked(...e))},"确认升级"),n.forceupgrade?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"zy-quxiao",onClick:l[2]||(l[2]=(...e)=>o.upgrade_cancel&&o.upgrade_cancel(...e))},"取消升级"))])),n.update_flag&&!n.forceupgrade?(e.openBlock(),e.createElementBlock("view",{key:2,class:"action text-center"},[e.createElementVNode("button",{class:e.normalizeClass(["zy-btn","bg-"+a.theme]),onClick:l[3]||(l[3]=(...e)=>o.upgrade_break&&o.upgrade_break(...e))},"中断升级",2)])):e.createCommentVNode("",!0)])])],2)}],["__scopeId","data-v-93a72108"]]);const d=s({},[["render",function(t,l){return e.openBlock(),e.createElementBlock("view",{class:"all"},[e.createElementVNode("scroll-view",{"scroll-y":"",class:"all-content"},[e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 特别提示 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 欢迎使用护理单元为您提供的护理单元平台。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"请您务必审慎并完整阅读以下内容,特别是免除或者限制护理单元责任的条款、对用户权利进行限制的条款、规定本协议的适用法律及有权解决争议的司法管辖区的条款。限制、免责条款或者其他涉及您重大权益的条款可能以加粗等形式提示您重点注意。请注意,目前在您的地区可能无法使用护理单元平台上的某些服务和功能(特别是涉及身份认证和支付的功能)。给您带来的不便,我们深表歉意,并正在努力尽快(如可能)提供这些服务和功能。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 如您未满18周岁或未满您居住所在地要求可使用护理单元平台的年龄,请不要使用护理单元平台。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 除非您已充分阅读并接受本协议所有条款,否则您无权使用护理单元平台。如您不同意本协议或其中任何条款,您应立即停止使用护理单元平台。您点击“同意”,或者您使用护理单元平台,或者以其他任何明示或者默示方式表示接受本协议的,均视为您已阅读并同意本协议。本协议即在您与护理单元之间产生法律效力,成为对双方均具有约束力的法律文件。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 一、定义及协议范围 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 1.1 定义 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 护理单元平台:指吉林省捌零信创有限公司(以下简称“护理单元”或“我们”)合法拥有并运营的名称为“护理单元” 和/或小程序、客户端应用程序以及我们不时提供的其他形式。“我们的”应相应地进行理解。为免疑义,我们亦保留调整护理单元平台名称的所有权利。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 护理单元账号或账号:指用户在使用护理单元平台时可能需要注册的账号。我们为用户提供护理单元平台注册通道,您可通过移动电话号码或我们允许的其他方式注册护理单元账号。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 用户:指护理单元平台的使用人,在本协议中更多地称为“您”。“您的”应相应地进行理解。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 不良信息:指含有下列内容的信息: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 违反中国宪法确定的基本原则,煽动抗拒或者破坏中国宪法等法律法规实施的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 危害中国国家统一、主权和领土完整,泄露中国国家秘密,危害中国国家安全,损害中国国家尊严、荣誉和利益,宣扬恐怖主义、极端主义的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 诋毁中华民族优秀文化传统,煽动民族仇恨、民族歧视,侵害中华民族风俗习惯,歪曲中华民族历史和民族历史人物,伤害民族感情,破坏民族团结的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 煽动破坏中国国家宗教政策,宣扬宗教狂热,危害宗教和睦,伤害信教公民宗教感情,破坏信教公民和不信教公民团结,宣扬邪教、迷信的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 危害中国社会公德,扰乱中国社会秩序,破坏中国社会稳定,宣扬淫秽、赌博、吸毒,渲染暴力、恐怖,教唆犯罪或者传授犯罪方法的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 侵害未成年人合法权益或者损害未成年人身心健康的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 侮辱、诽谤他人或者散布他人隐私,侵害他人合法权益的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 违反法律法规底线、中国社会主义制度底线、中国国家利益底线、中国公民合法权益底线、中国社会公共秩序底线、道德风尚底线和信息真实性底线的“七条底线”要求的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 法律法规禁止的其他内容。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 1.2 协议范围 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 本协议是您与护理单元之间关于您下载、安装、使用护理单元平台所订立的协议,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"包括本协议正文、《护理单元用户隐私政策》《护理单元未成年人个人信息保护规则》《护理单元社区公约》《护理单元社区规范》及护理单元已经发布的或将来可能发布/更新的并采取合理途径通知的各类规则、规范、通知等。"),e.createTextVNode("所有规则均为本协议不可分割的组成部分,且具有同等法律效力。 ")]),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 二、账号管理 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 2.1 账号获得 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 护理单元平台为您提供注册及登录通道,您可按照页面提示填写信息、阅读并同意本协议,在完成全部注册登录程序后,成为护理单元平台用户。您还需要根据法律法规的规定(如有)填写您真实的身份信息,否则您可能无法使用护理单元平台服务或在使用护理单元平台服务过程中受到限制。您了解并同意,您有义务保持您向我们提供的信息的真实性、有效性、准确性及完整性。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您注册获得的账号、设置的密码是您登录并以用户身份使用护理单元平台的凭证,您应当谨慎使用、妥善保管。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您须对账号进行的所有活动和行为负责。若因您保管不善导致的盗号、密码丢失、账号被非法使用的责任将由您自行承担。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您不得恶意注册护理单元账号,包括但不限于通过频繁注册、批量注册、使用他人身份注册或其他不以正常使用护理单元平台为目的的账号注册行为。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 2.2 账号信息设置 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您在注册或使用护理单元平台时提供的信息资料(包括但不限于昵称、头像及简介)须遵守法律法规、社会道德风尚和信息真实性等原则,不得出现不良信息,不得冒用他人姓名、名称、字号、头像或使用其他足以引起混淆的方式设置账号,不得侵害第三方的合法权益。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 2.3 账号使用及权属 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 部分第三方网站或者服务可以用护理单元账号作为其登录途径之一。您知晓,除非护理单元特别说明外,这些网站或者服务并非护理单元运营,您应自行判断此类第三方网站或者服务的安全性和可用性,并自行承担相关风险和责任。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 由于您的账号关联您的个人信息及护理单元平台商业信息,您的账号仅限您本人使用。未经护理单元同意,授权第三方使用您账号或获取您账号项下信息的行为无效。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"如护理单元判断您账号的使用可能违反法律法规或本协议、危及您的账号安全及/或护理单元平台信息安全的,护理单元可拒绝提供相应服务,采取包括但不限于暂停、封禁、注销、收回您的账号,或终止本协议的措施,由此带来的包括但不限于您账号中的内容以及虚拟物品的清空等损失由您自行承担。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 2.4 账号注销及回收 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 您可以依照护理单元平台的流程申请注销您的护理单元账号,但您仍应对您在注销账号前和使用护理单元平台期间的行为承担相应责任。注销成功后,除非法律法规另有规定,护理单元不会为您提供账号记录、内容或虚拟财产恢复等服务,请您谨慎操作。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您理解并同意,为了充分利用账号资源,如您在注册后未及时进行初次登录使用或连续超过六个月未登录账号并使用,且不存在未到期或未履行完毕的持续性护理单元平台服务的,护理单元有权收回您的账号。如您的账号被收回,您无法通过您此前持有被收回的账号登录并使用护理单元平台,您账号下保存的内容、权限、个性化设置和使用记录等信息也将无法恢复。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 2.5 账号违规处置 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 若您在注册或使用护理单元账号时,存在任何违反法律法规或不符合本协议约定的行为,护理单元有权不予注册;已经注册的,护理单元有权视情况要求用户限期改正,或采取短期封禁、永久封禁、注销账号等措施。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 三、护理单元平台服务 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 3.1 内容浏览 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您可通过护理单元平台浏览订阅各类信息和内容。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您对护理单元平台中的内容须自行加以判断,并自行承担因依赖或使用该等内容而引起的风险。在适用法律允许的最大限度内,您应对基于该等内容进行的所有支付或交易,或因前述内容而造成的任何损害或损失由您自行承担。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 3.2 内容发布 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 在遵守本协议的前提下,您可使用护理单元平台发表属于您原创或您有权发表的观点看法、文字、信息、图片、音视频等内容。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您在护理单元平台发布的任何内容均不代表护理单元的观点、立场或政策,您自行对您所发布内容承担全部责任。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您通过护理单元平台发布内容时必须遵守全部法律法规,不得利用护理单元平台制作、复制、发布、传播、储存任何违反法律法规、危害中国国家安全、可能对用户财产安全或信息安全造成损失的信息、营销信息、低俗不当信息或其他我们认为不应发布的信息不良信息以及不实信息等内容。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 用户不得利用基于深度学习、虚拟现实、生成式人工智能等新技术新应用制作、上传、复制、传送或传播虚假新闻信息等法律法规禁止的信息内容,或将合成内容谎称为真实或自然内容。您在发布或传播利用基于深度学习、虚拟现实、生成式人工智能等新技术新应用制作的非真实信息时,应当以显著方式予以标识,否则我们有权对相关内容和账号采取包括但不限于增加标识、限制、封禁等措施。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 3.3 商品与服务交易 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},[e.createTextVNode(" 您可使用护理单元平台进行商品与服务的交易,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"如您是未成年人或限制民事行为能力人,请在监护人同意后进行交易。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 进行交易时请您务必仔细确认所购商品的品名、价格、数量、型号、规格、尺寸或服务的时间、内容,以及该服务的限制性要求等重要事项,并在下单时核实您的联系地址、电话、收货人等信息。如您填写的收货人非您本人,则该收货人的行为和意思表示产生的法律后果均由您承担。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},[e.createTextVNode(" 您的交易行为应当基于真实的消费需求,不得存在对商品或服务实施恶意购买、恶意维权等扰乱护理单元平台正常交易秩序的行为。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"基于维护护理单元平台交易秩序及交易安全的需要,护理单元发现上述情形时可主动执行关闭相关交易订单等操作。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 如您的交易相对方存在利用护理单元平台系统漏洞、规则漏洞,不正当获取护理单元平台补贴等任何利益的行为,基于维护护理单元平台交易秩序、交易安全及护理单元合法权益的需要,护理单元发现上述情形时可主动执行关闭相关交易订单等操作。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 本协议终止后,对于您在本协议存续期间产生的交易订单,护理单元可通知交易相对方,并有权自主决定或者根据交易相对方的意愿决定是否关闭未完成的交易订单;如护理单元未关闭交易订单,则您应当就该等交易订单继续履行本协议及交易订单的约定,并承担因此产生的法律责任及损失。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 3.4 内容分享与转发 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您可对护理单元平台的信息内容进行分享、转发,但未经护理单元书面许可,您不得复制、读取、采用、统计护理单元平台的信息内容及相关数据,或者进行任何形式的销售和商业使用,或者向第三方泄露、提供或允许第三方为任何方式的使用。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 3.5 活动参与 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您可通过护理单元平台参与护理单元不定期组织的各类线上、线下互动活动,但您"),e.createElementVNode("text",{style:{"font-weight":"600"}},"不得采取任何不正当或作弊的违规手段参与活动,否则护理单元有权限制或取消您参与活动的资格,并有权取消、追讨您已获得、领取的奖励,并保留追究您法律责任的权利。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 3.6 服务费用 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 护理单元为向您提供的护理单元平台服务付出了大量的成本,除护理单元平台明示的收费业务外,护理单元向您提供的护理单元平台服务是免费的。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"如未来护理单元向您收取合理费用,护理单元会采取合理方式并以合理的期限提前通知您,确保您有充分选择的权利。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 在护理单元降低收费服务的收费标准或者将收费服务改为免费服务提供时,护理单元保留不对原付费用户提供退费或者费用调整之权利。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 四、权利与许可 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 4.1 平台声明 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"平台知识产权。"),e.createTextVNode("护理单元平台所提供的内容,包括但不限于视频、图文、文字表述及其组合、界面设计、版面框架、图标、商标等,均由护理单元所有或授权使用,受中华人民共和国著作权法、商标法、专利法、反不正当竞争法及国际条约,以及其他国家或司法管辖区的知识产权法律法规的保护。未经护理单元书面允许,用户不得为任何目的擅自使用、复制、再造这些内容、或创造与内容有关的派生产品。我们保留本条款中未明确授予您的所有权利。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"平台使用规范。"),e.createTextVNode("您不得从事下列行为: ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 对护理单元平台或护理单元平台服务进行反向工程、反向汇编、反向编译,或者以其他方式尝试发现护理单元平台的源代码; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 以任何方式(包括但不限于盗链、冗余盗取、非法抓取、模拟下载、深度链接、假冒注册等)直接或间接盗取护理单元平台的视频、图文、用户信息等信息内容; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 通过非护理单元开发、授权、许可的第三方软件、插件、外挂、系统,登录或使用护理单元平台,或对护理单元平台的正常运行进行干扰、破坏、修改或施加其他影响; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 利用或针对护理单元平台进行任何危害我们或任何第三方计算机网络安全的行为,或暴露我们或任何第三方计算机网络安全弱点的行为,包括但不限于:非法侵入网络、干扰网络正常功能、窃取网络数据等危害网络安全、为上述行为提供程序、工具或其他支持与帮助;干涉、破坏护理单元平台系统、软件或网站的正常运行,故意传播恶意程序或病毒和其他破坏干扰正常网络信息服务的行为; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 其他以任何不合法的方式、为任何不合法的目的、或与护理单元为此制定的其他规范和标准不一致的方式使用护理单元平台或护理单元平台服务。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 4.2 用户内容及信息授权 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您在护理单元平台发布、上传的内容(包括但不限于文字、图片、视频、音频等)应有合法来源,相关内容为您所有或您已获得必要的授权。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 除非有相反证明,您理解并同意,为使用户内容得到更好的分享及推广,提高其传播价值及影响力,您授予护理单元免费的、不可撤销的、非排他的、全球无地域限制的许可使用,包括:存储、使用、传播、复制、修订、改编、汇编、出版、展示、翻译、表演用户内容或制作派生作品,以已知或日后开发的形式、媒体或技术将内容纳入其它作品,再许可第三方按照前述方式使用的权利,以及以自身名义或委托专业第三方对侵犯您上传发布的享有知识产权的内容进行取证、发起投诉或提起诉讼的权利。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 为免歧义,上述许可包括使用、复制和展示用户内容中的个人形象、肖像、姓名、商标、品牌、标识及其他营销推广素材、物料的权利和许可。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 4.3 侵权投诉 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 我们尊重并保护您及他人的知识产权、名誉权、姓名权、隐私权等合法权益。您保证,在护理单元平台上传的文字、图片、视频、音频、链接等不侵犯任何第三方的知识产权、名誉权、姓名权、隐私权等合法权益。否则,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"护理单元有权在收到权利方或者相关方通知的情况下移除该涉嫌侵权内容。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您认为护理单元平台上的内容侵犯您的合法权益,应当向我们发送侵权通知,具体通知方式和要求按侵权投诉指引执行。我们将在收到有效通知后进行审核,对可以初步证明构成侵权的内容采取必要措施。对无法认定为侵权的内容,您也将收到相应告知,如果您仍然认为侵权事实存在,新的侵权通知中应当补充证明侵权的证据。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 在适用法律允许的最大限度内,护理单元储存在其服务器上的数据是用户使用护理单元平台和护理单元平台服务的唯一有效证据。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 五、法律责任 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 5.1 违约处理 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 如您违反本协议约定,护理单元有权作出独立判断,立即暂停或终止向您提供部分或全部护理单元平台服务,包括采取禁言、屏蔽信息、删除发布内容、封禁账号、注销账号等措施。您应对与该等措施相关的任何损失和损害(包括但不限于您账号的内容、虚拟财产和权限清空、无法正常使用账号及相关护理单元平台服务或任何其他后果)承担全部责任和义务。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 5.2 责任承担 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 您承担法律责任的形式包括但不限于:对受到侵害者充分赔偿损失、赔礼道歉、补救负面影响、返还财产等。如您的行为给护理单元造成损失的,您应承担全部赔偿责任,包括行政处罚或损害赔偿款等直接损失以及商誉损失、和解款、律师费、诉讼费等间接损失。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 5.3 反商业贿赂 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您充分了解,任何向护理单元的雇员或顾问等提供实物、现金、现金等价物、劳务、旅游等价值明显超出正常商务洽谈范畴的利益,均视为商业贿赂行为。发生前述情形的,护理单元可立即终止与您的所有合作并追究您的法律责任。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 5.4 关联处理 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您因违约导致护理单元终止本协议时,出于维护护理单元平台秩序的目的,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"护理单元可终止与您在其他协议(如有)项下的合作。如您违反任何护理单元与您订立的其他协议,护理单元亦有权终止本协议。除前述协议终止外,护理单元亦可追究您在本协议或其他协议下的违约责任。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 5.5 信息公示 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 我们可将对您上述违约行为的处置信息,以及其他经国家行政或司法机关生效法律文书确认的违法信息,在"),e.createElementVNode("text",{style:{"font-weight":"600"}},"护理单元平台"),e.createTextVNode("上予以公示。对涉嫌违反法律法规的行为,我们有义务保存有关记录,向国家有关机关报告并配合调查。 ")]),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 六、责任限制、免责事由和赔偿 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 由于各国家或地区的法律与其他一些法律不同,本协议包括仅适用于您位于欧洲经济区(“EEA”)、英国和瑞士(统称 “EEA+”)内情况的条款(第6.1 条)、仅适用于您位于中国内情况的条款(第 6.2 条)(为免疑义,仅为第6.2条之目的,中国不包含香港特别行政区、澳门特别行政区和中国台湾)和仅适用于您位于其他国家或地区的情况的条款(第 6.3 条)。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 6.1 如您位于 EEA+内 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 本第6.1条仅适用于您位于EEA+内的情况。在我们已尽专业勤勉义务的前提下,我们不对任何损失或损害承担责任,除非其:(1)是由于我们对本协议的违反而造成的;或(2)在签订本协议时可被合理预见,即其显然会发生,或在您与我们签订本协议时已知可能会发生。本协议无意排除或限制我们对死亡或人身伤害、欺诈、欺诈性虚假陈述或任何法律规定不能排除的责任。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 尽管本协议另有规定,如果我们怀疑您违反了本协议,我们将遵循以下步骤。首先,我们可能会进行调查,在调查期间,我们可能会暂停您对护理单元平台的访问,并根据涉嫌违规行为的严重程度,在适用法律允许的范围内,根据任何法律义务,合理客观地采取行动。在下列情况下,我们可能决定暂时中止或永久终止您对护理单元平台的访问:(1) 我们根据法律法规合理客观地认定您严重或多次违反本协议;(2) 我们有客观理由合理地认为您即将严重违反本协议;(3) 法律要求我们如此行事;或 (4) 我们有客观理由合理地认为在处理严重的技术或安全问题时需要如此行事。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 6.2 如您位于中国 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 本第6.2条仅适用于您位于中国内的情况。仅为第6.2条之目的,中国不包含香港特别行政区、澳门特别行政区和中国台湾。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 除适用法律另有明确规定外,在任何情况下,我们均不对任何间接性、后果性、惩罚性、偶然性、特殊性或刑罚性的损害承担责任,该等损害包括但不限于您因使用护理单元平台或护理单元平台服务而遭受的利润损失。除适用法律另有明确规定外,我们对您承担的全部责任,无论因何原因或何种行为方式,始终不超过您因使用护理单元平台或护理单元平台服务期间而支付给我们的费用(如有)。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 6.3 如您位于其他国家或地区 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 本第6.3条仅适用于您位于第6.1条所述EEA+和第6.2条所述中国外的情况。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 无陈述或保证:护理单元平台和护理单元平台服务按“现状”“可用”提供,且您“风险自担”。在法律允许的最大范围内,我们明确不作对护理单元平台和护理单元平台服务的任何及所有明示或默示的陈述和保证,包括对适销性的默示保证、针对特定用途的适用性或非侵权性。我们不保证护理单元平台和护理单元平台服务能够满足您的要求,也不保证护理单元平台和护理单元平台服务的运行不会中断或没有错误。与护理单元平台和护理单元平台服务相关的信息、内容和服务可能包含漏洞、错误、问题或其他限制。在法律允许的最大范围内,我们、我们的关联公司、我们或其各自的董事、高级职员、雇员、代理、服务提供商和许可方(统称 “护理单元方”)对您使用护理单元平台和护理单元平台服务不承担任何责任。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 责任限制:在法律允许的最大范围内,护理单元方不对任何因本协议、护理单元平台或护理单元平台服务引起的或与之相关的任何间接的、附带的、结果性的、特殊的、法定的、约定的、惩罚性的或其他类似的损害赔偿,或任何超出实际损害的损害赔偿,包括收入损失、利润损失、数据丢失、业务中断或其他无形损失(无论此类损失如何定性)承担责任,无论是否基于合同、侵权行为或任何其他法律理论,也无论各方是否已被告知此类损失的可能性。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"访问由我们自行决定:"),e.createTextVNode("在法律允许的最大范围内,我们可随时自行决定,不经另行通知,限制、暂停、修改或终止您对护理单元平台或护理单元平台服务的访问,包括在您未能遵守或我们怀疑您未能遵守或即将未能遵守本协议的任何规定,或实际或涉嫌非法或不当情况下。任何此类终止或暂停将不影响我们根据适用法律可能享有的任何其他权利。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"辩护和赔偿:"),e.createTextVNode("对于因您使用护理单元平台和护理单元平台服务或您违反本协议而导致或引起的任何第三方主张的任何索赔、要求、指控、调查、诉讼、程序或其他争议,您同意为护理单元方辩护。并且您同意赔偿护理单元方因任何此类争议而产生的任何损害、责任、估定、损失、成本和其他费用(包括合理的律师费和法律费用),并使其免受损害。我们将及时通知您任何此类争议,并将向您提供合理协助,费用由您承担,以就任何此类争议进行抗辩,但未提供此类通知并不免除您在本协议项下的任何义务,除非您因未被提供此类通知而受到重大损害。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"例外:"),e.createTextVNode("本协议中的任何内容均不排除或限制因我们的严重疏忽或故意不当行为而导致的任何责任,或法律不能排除的任何责任。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 6.4 第三方服务 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您在使用护理单元平台某一特定服务时,该服务可能会另有单独的协议或规则,您在使用该项服务前请阅读并同意相关的单独协议或规则。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您在护理单元平台使用第三方提供的产品或服务时,除遵守本协议及其他相关规则外,还可能需要您仔细阅读、同意并遵守第三方的协议、相关规则。如因第三方产品或服务产生的争议、损失或损害,需由您自行与第三方依据相关协议解决。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 6.5 平台责任承担 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 我们仅按照适用法律法规规定承担平台责任。我们不对任何第三方的诽谤、犯罪或其他非法行为承担责任,也不赔偿因此造成的您的损失。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 6.6 服务变更、中断、终止 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 护理单元始终在不断变更和改进护理单元平台服务,我们会尽最大努力向您提供服务,确保服务的连贯性和安全性。基于此,我们可能会对护理单元平台进行更新,您应将软件更新到最新版本,否则我们不保证您可正常使用护理单元平台。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您理解并同意,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"护理单元根据自身商业决策、政府行为、不可抗力等原因可能会选择中止、中断及终止护理单元平台的部分或全部服务。"),e.createTextVNode("如有此等情形发生,我们会采取合理的方式并以合理的期限提前通知您,除法律法规另有规定外,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"我们不承担由此对您造成的损失。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 在护理单元发生合并、分立、收购、资产转让时,护理单元可将本协议下部分或全部护理单元平台服务及相应的权利义务转交由第三方运营或履行。具体受让主体以护理单元通知为准。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如发生下列任何一种情形,我们有权不经通知而中断或终止向您提供服务: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 根据法律法规规定您应提交真实信息,而您提供的个人资料不真实、或与注册时信息不一致又未能提供合理证明。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您违反相关法律法规的规定或违反本协议的约定。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 按照法律法规规定,或司法机关或主管部门的要求。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 出于安全的原因或其他必要的情形。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 七、协议变更与终止 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 7.1 协议变更通知 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"我们有权在必要时,修改本协议内容,并将通过合理的方式(包括但不限于护理单元平台公告、系统消息、站内信、手机短信、电子邮件或其他类似方式)及合理的期限提前通知您,该等通知于发送之日视为已送达您。"),e.createTextVNode("您可以通过护理单元平台相关页面查阅最新版本的协议内容。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 7.2 变更协议生效 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"本协议变更生效后,如您继续使用护理单元平台或护理单元平台服务,即视为您已接受修改后的协议。如您不接受修改后的协议,应当停止使用护理单元平台或护理单元平台服务。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 7.3 协议终止 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您注销您的护理单元账号或护理单元通知您终止为您提供护理单元平台服务(包括但不限于封禁账号、注销账号或其他类似措施)时,本协议将同时终止,护理单元将不再另行通知您终止本协议。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 八、法律适用与管辖 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 8.1 本协议的订立、生效、履行、解释、修订、终止及纠纷解决,适用中华人民共和国法律法规(仅为本协议之目的,不包括香港特别行政区及澳门特别行政区法律法规,和中国台湾地区有关规定)。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 8.2 若您与护理单元之间发生任何纠纷或争议,由护理单元与您协商解决。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"协商不成的,您同意将纠纷或争议提交被告所在地人民法院管辖。")]),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 九、其他 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 9.1 本协议所有条款的标题仅为阅读和理解方便,本身并无实际涵义,不能作为本协议涵义解释的依据。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 9.2 本协议条款无论因何种原因部分无效或不可执行,其余条款仍有效,并对双方具有约束力。如果某条款规定我们在特定情况下有特定权利,这并不意味着该权利是我们在该等特定情况下可以行使的唯一权利,也不意味着该条款取消或使涉及相同情况或主旨事项的任何其他条款无效或失效。任何一方未能执行或延迟执行本协议项下的任何权利、救济或条款,不应被视为放弃该权利、救济或条款。任何弃权必须明确以书面形式作出并由弃权方签署。任何权利或救济的单次或部分行使,不应妨碍该权利或补救措施或任何其他权利或补救措施的进一步或其他行使。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 9.3 如您对本协议有任何意见或建议,您可向护理单元平台(service@blxinchuang.com)反馈,我们会给予您必要的帮助。 ")])])}],["__scopeId","data-v-18becb15"]]);const m=s({},[["render",function(t,l){return e.openBlock(),e.createElementBlock("view",{class:"all"},[e.createElementVNode("scroll-view",{"scroll-y":"",class:"all-content"},[e.createElementVNode("view",{style:{"font-weight":"600","margin-bottom":"10rpx"}}," 更新日期:2025年06月20日 "),e.createElementVNode("view",{style:{"font-weight":"600","margin-bottom":"20rpx"}}," 生效日期:2025年06月20日 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx"}}," 为了更好地保障您的权益,我们于近日更新了《护理单元隐私信息保护政策》。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx"}}," 请您在使用/继续使用护理单元产品/或服务前仔细阅读、充分理解全文,并在同意全部内容后使用/继续使用。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 前言 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1. 护理单元/或服务指由吉林省捌零信创科技有限公司及其关联公司(以下称为“护理单元”或者“我们”)运营,并由吉林省捌零信创科技有限公司开发及维护的产品和服务(以下亦称“我们的产品/或服务”)。我们非常重视您的隐私保护和个人信息保护,鉴于此,我们制定本《护理单元隐私信息保护政策》(以下称为“本政策”),与您确认关于您在使用我们的产品/或服务期间,护理单元收集、存储、使用、披露和保护您的个人信息的相关事宜。如您对本政策内容有任何疑问、意见或建议,您可通过我们提供的各种联系方式与我们联系。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 2. 在使用我们的各项产品和/或服务前,请您务必仔细阅读并透彻理解本政策,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"特别是以粗体、粗体加下划线标识的条款,您应重点阅读,在确认充分理解并同意后开始使用。如果您/您的监护人不同意本政策的任何内容,您应该立即停止使用。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3. 本政策为护理单元统一适用的一般性隐私政策条款,适用于护理单元提供的所有产品和服务。当我们及关联公司就其向您提供的特定产品和/或服务单独设立隐私政策的,则优先适用该产品和/或服务的隐私政策。该产品和/或服务的隐私政策未涵盖的内容,以本政策内容为准;该产品和/或服务的隐私政策与本政策存在冲突的,以该产品和/或服务的隐私政策为准。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 4. "),e.createElementVNode("text",{style:{"font-weight":"600"}},"请您注意,本政策不适用于与我们的平台、产品和/或服务集成的任何第三方应用程序或软件,或者任何其他第三方产品、服务或业务(统称为“第三方服务”)。第三方服务由第三方负责运营,您使用第三方服务应遵守第三方为此制定的隐私政策或其他个人信息处理规则,我们提示您仔细识别实际服务的提供方,并在使用任何第三方服务之前仔细查看相关规则。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 5. 您同意本政策表示您已经了解并同意在相关场景下,为实现功能运行,我们将对您的相关个人信息进行处理。但这并不代表只要您开始使用我们的产品和/或服务,我们即开始处理本政策中涉及的您的全部个人信息。只有当您使用特定功能时,我们才会根据“最小必要”原则,为实现向您提供产品功能及服务的目的,处理您的相关个人信息。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 6. 您理解并同意,基于不断完善产品和服务的目的,我们将不时推出新增和/或优化功能,可能增加或变更收集、使用个人信息的范围、目的和方式。对此,我们将通过更新本政策、页面提示、新签署文件、弹窗、网站公告或站内信等即时通知方式另行向您明确说明,并为您提供同意与否的选项。该等即时通知是本政策的有效组成部分,与本政策具有同等法律效力。您有权拒绝同意该等即时通知,但您同时知悉并理解,一旦您拒绝我们收集、处理您的个人信息属于实现更新服务或功能所必要的情形时,我们将可能无法为您提供更新后的服务与功能,或者无法达到更新服务的效果,但您原有正常使用的基础功能不受影响。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 关于我们 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们的主要运营公司基本情况如下:长春市经济开发区长吉南线以东、吉林大路以南东方广场中意国际大厦B座1431号。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 联系电话:18043530712。如您想更详细的了解我们的公司、平台,您可以通过本政策提供的联系方式与我们联系。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 第一部分 定义 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"1. 个人信息:"),e.createTextVNode("是以电子或者其他方式记录的与已识别或者可识别的自然人有关的各种信息,不包括匿名化处理后的信息。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"2. 敏感个人信息:"),e.createTextVNode("是一旦泄露或者非法使用,容易导致自然人的人格尊严受到侵害或者人身、财产安全受到危害的个人信息,包括"),e.createElementVNode("text",{style:{"font-weight":"600"}},"生物识别、宗教信仰、特定身份、金融账户、行踪轨迹等信息,以及不满十四周岁未成年人的个人信息。敏感信息在本政策中会做加粗加下划线提示。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"3. 个人信息的处理:"),e.createTextVNode("包括个人信息的收集、存储、使用、加工、传输、提供、公开、删除等。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"4.个人信息处理者:"),e.createTextVNode("是指在个人信息处理活动中自主决定处理目的、处理方式的组织、个人。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"5.个人信息主体:"),e.createTextVNode("指个人信息所标识或者关联的自然人。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"6.自动化决策:"),e.createTextVNode("是指通过计算机程序自动分析、评估个人的行为习惯、兴趣爱好或者经济、健康、信用状况等,并进行决策的活动。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"7.去标识化:"),e.createTextVNode("指个人信息经过处理,使其在不借助额外信息的情况下,无法识别特定自然人的过程。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"8.匿名化:"),e.createTextVNode("指个人信息经过处理无法识别特定自然人且不能复原的过程。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"9. 护理单元:"),e.createTextVNode("是指护理单元或其关联公司发布和/或运营的包括但不限于护理单元相关的网络平台。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"10. 护理单元产品和/或服务:"),e.createTextVNode("指我们基于互联网,以包含护理单元网站、客户端(含APP\\APK\\小程序)及其他产品形态(如SDK\\API等,以及未来技术发展出现的新的形态)向您提供的包括但不限于内容分发、信息网络传播、互联网音视频业务等各项产品和服务。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"11. 平台规则:"),e.createTextVNode("包括在所有护理单元网站、客户端内已经发布及后续发布的全部规则、用户服务协议、解读、公告、其他内容以及各平台在频道、活动页面、帮助中心发布的各类规则、实施细则、产品说明、公告及各形式的平台规范。 ")]),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 第二部分 隐私保护政策 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 本政策将帮助您了解以下内容: "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 一、我们如何收集和使用您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 二、我们如何使用 Cookie 和同类技术 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 三、我们如何共享、转让和披露您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 四、我们如何存储您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 五、我们如何保护您的个人信息安全 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 六、我们如何保护未成年人的个人信息 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 七、您如何行使您的个人信息权利 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 八、如何联系我们 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 一、我们如何收集和使用您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 因向您提供的产品和服务种类众多,我们将根据具体产品/服务范围和不同功能,遵循合法、正当和必要原则收集和使用您的个人信息。以下我们向您逐一告知各功能需要的必要个人信息类型及需授权的权限。 "),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (一) 帮助您注册、登录和维护平台账号 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1. 注册与登录 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" (1) 手机号或账号密码注册/登录:当您注册、登录我们的产品和/或服务时,为了帮您顺利完成注册/登录流程,您需要提供: "),e.createElementVNode("text",{style:{"font-weight":"600"}},"手机号码、短信验证码信息或护理单元登录账号及密码信息。"),e.createTextVNode("同时,我们还提供 “一键登录”功能,与我们建立合作关系的运营商或其合作伙伴会将您设备中的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"手机号码"),e.createTextVNode("提供给我们作为您的注册、登录账号并免于动态验证码核验,便于我们为您提供快捷的注册、登录服务。如果您不希望使用“一键登录”功能,可以选择其他方式进行注册、登录。收集手机号码信息是为了满足相关法律法规的网络实名制要求,如您拒绝提供手机号码进行核验,将导致注册/登录失败,但您仍可在游客模式下使用音视频的浏览、搜索、播放功能。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" (2) 扫码登录:当您通过扫码方式进行登录时,我们会请求您授权设备的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"相机、相册/存储权限"),e.createTextVNode(",以实现通过扫描二维码方式完成登录。如您不需要使用扫码登录服务,您也可以选择其他登录方式。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2. 资料维护和账号找回 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" (1) 为维护您的基本资料,提升您的服务体验,您可以选择填写完善您的个人信息,包括您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"电子邮箱、性别、所在地、头像、昵称、生日、个人简介;"),e.createTextVNode("在相关儿童页面,您也可以选择在宝贝信息界面内填写您宝贝的性别和生日,当您选择上传头像时,我们会请求您授权"),e.createElementVNode("text",{style:{"font-weight":"600"}},"相机、相册/存储权限"),e.createTextVNode(",以实现头像拍摄或选择后完成上传。当您选择一键同步第三方账号昵称和头像时,经您授权,第三方平台将与我们同步您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"第三方账号信息(如头像、昵称,具体以您的授权范围为准)。"),e.createTextVNode("如您选择不提供这些信息,不会影响您使用基础服务功能。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," (2) 若您希望绑定或者解绑您所关联的第三方平台账号,您可以随时在“我的-设置-账号与安全-账号绑定”进行设置,第三方平台账号的绑定或解绑不会影响您使用基础服务功能。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" (3) 如果您的账号遗失,您可以找回账号。如果您遗忘账号密码,您可以通过手机短信验证,或联系客服找回密码或重置密码;您也可以换绑已注册手机号码。但在此过程中,我们可能需要您提供必要的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"身份信息、手机号码、经常登录地点、经常登录设备、经常收听内容、注册时间和城市信息"),e.createTextVNode("等相关信息以验证您的身份;为了核验您的真实身份,必要时还可能通过静态或动态的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"人脸识别"),e.createTextVNode("验证您的真实身份。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3. 账号权益与资金 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," (1) 账号权益:基于护理单元统一账号体系和便于您在我们的产品和/或服务中使用相关权益与资产,我们会收集您在护理单元账号下的权益及资产信息,同时,我们会在应用内向您展示您的部分或全部前述信息,具体以页面实际展示为准。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" (2) 资产提现:当您使用我们的提现功能时,需要您提供"),e.createElementVNode("text",{style:{"font-weight":"600"}},"结算主体相关信息(姓名/名称、身份证号/统一社会信用代码)、结算账户相关信息(持卡人/户名、银行卡信息/支付宝账号信息),"),e.createTextVNode("以完成结算主体认证及资金结算账户绑定;若您是境外用户,可能还需要您提供"),e.createElementVNode("text",{style:{"font-weight":"600"}},"境外用户主体身份证明材料(如护照号、手持证照照片等"),e.createTextVNode(")。我们会在应用内向您展示您的部分或全部前述信息,具体以页面实际展示为准。您可以在我们产品的相关页面修改您已绑定的结算账户。如您拒绝提供前述结算账户相关信息,您将无法顺利提现,不影响您使用我们的其他功能与服务。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 4. 若您还未成为平台注册用户,您可以游客身份使用我们提供的基本功能,主要包括音频作品的搜索、浏览和播放。为保障上述功能实现、履行网络系统运营安全义务,我们将收取您的必要"),e.createElementVNode("text",{style:{"font-weight":"600"}},"设备信息(设备型号、设备MAC地址、操作系统版本、唯一移动设备识别码(IMEI、Android ID、IDFA、IDFV、HarmonyOS UUID、SIM卡序列号和IMSI信息))"),e.createTextVNode(",为您分配专属标识符,并基于此标识符记录您游客身份下的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"操作信息"),e.createTextVNode(",即您浏览、播放等记录,并以日志文件的形式进行保存。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 5. 根据相关法律法规对互联网账号的管理要求、维护网络安全和良好的网络内容生态,我们会在您的个人主页以及您发布的内容、信息页面展示您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"IP属地"),e.createTextVNode("(境内IP地址展示至省/自治区/直辖市、境外IP地址展示至国家/地区,具体信息以网络运营商数据为准)。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 6."),e.createElementVNode("text",{style:{"font-weight":"600"}}," 为更好地保护未成年人隐私权益,我们特别提醒您慎重发布包含未成年人素材的内容,一经发布,即视为您已获得权利人同意在我们的产品和/或服务展示未成年人的肖像、声音等信息,且允许我们依据平台协议及本政策使用、处理该等与未成年人相关的内容。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 通讯录权限保持默认关闭状态。如您不希望被推荐给您的通讯录好友,您也可以通过设备权限管理关闭此前向护理单元开放的通讯录授权。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 7. 您在使用我们的服务时,若您想分享您喜欢的内容至第三方平台或应用,我们需要从您的设备终端读取"),e.createElementVNode("text",{style:{"font-weight":"600"}},"已安装的移动应用列表"),e.createTextVNode(",用以判断您是否安装了第三方应用,以便为您提供正确的分享功能。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 您在使用我们的服务时所共享的内容和信息,可能会涉及他人的个人信息,请您确认已获得他人的合法授权。与此同时,您有义务妥善保护自己的个人信息,仅在必要的情形下向他人提供、展示自己的信息。如您发现自己的个人信息泄露,尤其是您的账户或密码发生泄露,请您立即联系护理单元客服。 "),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (二)为您提供充值服务 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 为向您展示充值服务,帮助您完成交易,以及向您提供客户服务,同时基于维护支付安全、追溯网络交易行为等相关法律法规要求,当您在使用订阅或购买商品/服务时,我们会收集如下信息: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 1. 当您充值时,我们将收集您在完成交易时的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"服务信息"),e.createTextVNode("生成您的账单明细,此外,我们还需记录并保存"),e.createElementVNode("text",{style:{"font-weight":"600"}},"与订单相关的信息"),e.createTextVNode(",包括:"),e.createElementVNode("text",{style:{"font-weight":"600"}},"交易金额、下单时间、订单编号、订单状态、支付方式、支付流水号、支付状态"),e.createTextVNode(",我们收集这些信息是为了帮助您顺利完成交易、保障您的交易安全、查询订单信息,配合网络交易监管的法定义务。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 上述所有信息构成您的订单信息,我们(包括与为您提供上述服务的第三方)将使用您的订单信息进行您的身份核验、确定交易、支付结算、完成配送、为您查询订单以及提供客服咨询与售后服务。我们还会使用您的订单信息来判断您的交易是否存在异常以保障您的交易安全。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 2. 当您通过扫一扫参加活动时,我们会请求您授权您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"相机权限、相册/存储权限"),e.createTextVNode(",用于识别、保存或上传活动及分享二维码。我们可能会通过您所上传的照片/图片来识别您需要参与的活动链接或者音视频服务链接。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 3. 此外,为判断您是否满足活动要求的参与资格或者为了保障活动的正常秩序、防范作弊与欺诈等违法违规情况,我们同时可能需要收集和使用您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"设备信息(如:设备型号、设备MAC地址、操作系统版本、唯一移动设备识别码(IMEI、Android ID、IDFA、IDFV、HarmonyOS UUID、SIM卡序列号和IMSI信息))。")]),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (三)为您提供个性化内容推荐 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 1."),e.createElementVNode("text",{style:{"font-weight":"600"}},"设备信息:"),e.createTextVNode("我们会根据您在软件安装和使用中的具体操作,接收并记录您所使用的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"设备相关信息(包括设备型号、硬件序列号、设备MAC地址、操作系统版本、设备设置、唯一设备识别码(IMEI、Android ID、IDFA、IDFV、GAID、HarmonyOS UUID、SIM卡序列号和IMSI信息)、UUID、必要的移动应用列表信息、软硬件及设备、设备环境信息、传感器信息)、设备所在位置相关信息"),e.createTextVNode("(为了识别判断您所在地区的内容版权,需要收集您授权的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"GPS精准位置"),e.createTextVNode("以及"),e.createElementVNode("text",{style:{"font-weight":"600"}},"WLAN接入点"),e.createTextVNode("(如SSID、BSSID)和"),e.createElementVNode("text",{style:{"font-weight":"600"}},"基站、传感器"),e.createTextVNode("信息)。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 2."),e.createElementVNode("text",{style:{"font-weight":"600"}},"日志信息:"),e.createTextVNode("当您使用我们的网站或客户端提供的产品或服务时,我们会自动收集您的详细使用情况,并作为网络日志保存。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"日志信息"),e.createTextVNode("包括您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"搜索和浏览记录"),e.createTextVNode("、关注、播放记录、"),e.createElementVNode("text",{style:{"font-weight":"600"}},"购买消费记录"),e.createTextVNode("、访问量、播放时长、"),e.createElementVNode("text",{style:{"font-weight":"600"}},"IP地址"),e.createTextVNode("、WIFI网络、运营商信息、电信运营商网络、使用的语言、访问日期和时间。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们将会在收集上述信息的基础上提取您的偏好特征,并基于特征标签产出间接人群画像,用于为您展示、推送个性化内容和您可能感兴趣的商业广告。但我们努力保障您的产品使用体验。如您对我们推荐的个性化内容不感兴趣或希望不再接收此类个性化服务,您可通过“我的-设置-我的隐私管理-个性化内容推荐/个性化广告推荐”选择关闭。关闭后首页向您展示和推荐的内容将可能与您的偏好相关度降低。 "),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (四)为您提供残障用户专享服务 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 为履行企业责任、体现社会关怀,当您享受我们为残障人士定向提供的“专享礼包”服务时,您需要提供您的姓名、"),e.createElementVNode("text",{style:{"font-weight":"600"}},"身份证号"),e.createTextVNode("以及"),e.createElementVNode("text",{style:{"font-weight":"600"}},"残疾人证信息"),e.createTextVNode("以实现身份认证,我们会将您提供的前述信息与中国残疾人联合会的数据库进行比对和信息验证,以验证您的身份。如您拒绝提供上述信息,将使您无法享受残障用户专享服务,但不影响您正常使用护理单元的其他功能。 ")]),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (五) 帮助您连接智能设备 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您如希望将App与您所使用的智能设备相连接,您需要开启"),e.createElementVNode("text",{style:{"font-weight":"600"}},"蓝牙权限"),e.createTextVNode(",以使得我们能够搜索到您的智能设备。此外我们可能会收集您的Wi-Fi信息、"),e.createElementVNode("text",{style:{"font-weight":"600"}},"位置信息"),e.createTextVNode("、智能设备信息。这些信息将用于为您提供智能设备快连、连接、发现附近设备和设备管理的功能。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"如您拒绝提供上述信息,我们将无法帮助您连接智能设备,但不影响您正常使用护理单元的其他功能。")]),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (六)为您提供客户服务及处理争议 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 当您向我们发起投诉、申诉或进行咨询时,为了您的账号与系统安全,我们可能需要您先行提供账号信息,并与您之前的个人信息相匹配以验证您的用户身份。同时,为了方便与您联系或帮助您解决问题,我们可能还需要您提供"),e.createElementVNode("text",{style:{"font-weight":"600"}},"姓名、手机号码、电子邮件"),e.createTextVNode("及其他联系方式等个人信息,并通过第三方客服系统保存"),e.createElementVNode("text",{style:{"font-weight":"600"}},"通话录音"),e.createTextVNode(",其中可能包含"),e.createElementVNode("text",{style:{"font-weight":"600"}},"通信/通话记录"),e.createTextVNode(",用于与您联系和帮助您解决问题,或记录相关问题的处理方案及结果。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 为确认交易状态及为您提供商品/服务的售后与争议解决服务,我们会通过您基于交易所选择的支付机构、支付方式等收集与"),e.createElementVNode("text",{style:{"font-weight":"600"}},"交易相关的信息"),e.createTextVNode(",包括iOS端IAP支付交易凭证和收费凭证。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 如您拒绝提供上述信息,我们将无法为您提供完整的客户服务及处理争议,但不影响您正常使用护理单元的其他功能。 "),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (七)为您提供安全保障功能 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 为履行维护网络安全义务,提高您使用服务的安全性,确保操作环境安全,预防钓鱼网站、欺诈、网络漏洞、计算机病毒、网络攻击、网络侵入等安全风险,以用于识别设备是否存在篡改设备信息行为,预防、发现和调查潜在的违法违规或违反用户服务协议、政策或规则的行为,如会员账号活动异常、多端登录、流量异常、经常性退款请求或低价转让会员卡等,我们以及在应用程序中嵌入的应用安全SDK将在后台自动收集您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"设备信息(包括设备型号、硬件序列号、设备MAC地址、操作系统版本、设备设置、唯一移动设备识别码(IMEI、Android ID、IDFA、IDFV、MEID、HarmonyOS UUID、OAID、SIM卡序列号和IMSI信息)、UUID、WLAN接入点(如SSID、BSSID)和基站、必要的移动应用列表信息、运行中的进程信息、软硬件及设备、设备环境信息、设备传感器信息 "),e.createTextVNode("(如磁场传感器、光传感器、压力传感器、旋转矢量传感器、方向传感器、重力传感器、加速度传感器、陀螺仪传感器,请您知悉,单纯的传感器数据并非个人信息))、"),e.createElementVNode("text",{style:{"font-weight":"600"}},"日志信息(包括您的搜索和浏览记录、关注、播放记录、访问量、播放时长、IP地址、WIFI扫描列表、WIFI名称、运营商信息、电信运营商网络、使用的语言、访问日期和时间)"),e.createTextVNode(",并可能使用或整合您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"账户信息、交易信息、支付信息"),e.createTextVNode("以及其他取得您授权或依据法律共享的信息,综合判断您账户及交易风险、完成身份验证、检测,防范安全事件,并依法采取必要的记录、审计、分析、处置措施,保护各方合法权益稳定不受侵害。 ")]),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (八)其他附加服务 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 为向您提供个性化的产品和服务,提升用户体验,我们还会向您提供以下附加服务,并仅在您使用到相关功能时向您获取个人信息。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"1.驾驶模式:"),e.createTextVNode("当您开启驾驶模式后,我们会在获得您的同意后为您开启语音助手功能,我们会申请访问"),e.createElementVNode("text",{style:{"font-weight":"600"}},"麦克风权限"),e.createTextVNode("并收集您的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"语音信息"),e.createTextVNode(",用于提供对应的语音服务,帮助您在驾驶时通过语音控制播放您喜欢的音频。即便您已同意开启麦克风权限,麦克风仍保持默认关闭状态,仅会在您主动点击客户端内麦克风图标或录制音频时通过麦克风获取语音信息。我们收集的语音信息仅作操作指令识别(或者语音转换文字识别),我们不会主动留存您的语音指令信息,更不会用作其他语音控制播放功能以外的用途。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"2.本地内容及生活服务推荐:"),e.createTextVNode("为向您提供或推荐您所在地附近的资讯和所在地相关音视频内容、本地广播和相关电影周边观影场所推荐、经常访问地周边的点餐和其他本地生活服务推荐信息,我们需要您授权"),e.createElementVNode("text",{style:{"font-weight":"600"}},"位置权限(精准地理位置)"),e.createTextVNode("以为您提供上述服务。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"3. 信息预填:"),e.createTextVNode("在部分需要填写您的信息的场景中(如广告落地页等),为优化您的使用体验、简化操作步骤,取得您的授权同意后,我们会将您在护理单元绑定的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"手机号码、姓名(如有)"),e.createTextVNode("等信息在相关页面进行预填。若您认为预填信息不准确的,您可以手动进行修改。请您知悉,预填的信息只有在您确认提交后才会被页面指向的个人信息处理者所获取。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 部分情况下该行为可能会被误判为应用自启动,但该行为属于合理使用并非侵犯用户权益的自启动行为。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您可在您的设备设置中逐项查看上述权限的状态,并可自行决定这些权限随时的开启或关闭。请您注意,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您开启任一权限即代表您授权我们可以收集和使用相关个人信息来为您提供对应服务,您一旦关闭任一权限即代表您取消了授权,我们将不再基于对应权限继续收集和使用相关个人信息,也无法为您提供该权限所对应的服务。"),e.createTextVNode("但是,您关闭权限的决定不会影响此前基于您的授权所进行的信息收集及使用,亦不影响您使用其他服务。 ")]),e.createElementVNode("view",{style:{"font-size":"31rpx","margin-bottom":"20rpx","font-weight":"600"}}," (九)收集和使用您的个人信息的特别说明 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 1.若你提供的信息中含有其他用户的个人信息,在向我们提供这些个人信息之前,您需确保您已经取得合法的授权。若其中涉及未成年人个人信息的,您需在发布前取得对应未成年人监护人的同意,前述情形下监护人有权通过本政策第九条的途径联系我们,要求更正或删除涉及未成年人个人信息的内容。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2.若我们将您的个人信息用于本政策未载明的其他用途,或者我们超出了与收集您的个人信息时所声称的目的及具有直接或合理关联范围的,均会事先获得您的同意。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3. 若我们从第三方处间接获取(如从第三方处共享)您的信息,我们会在收集前明确以书面形式要求该第三方在已依法取得您同意后共享您的个人信息,并向您告知共享的您的个人信息的类型、使用目的、方式、授权同意范围,并要求第三方对个人信息来源的合法性和合规性作出承诺,如第三方存在违反行为,我们会明确要求对方承担相应法律责任。同时,我们的专业安全团队对个人信息会进行安全加固(包括敏感信息报备、敏感信息加密存储、访问权限控制)。我们会使用不低于我们对自身用户个人信息同等的保护手段与措施保护间接获取的个人信息。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 4.征得授权同意的例外 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 您充分理解并同意,根据法律法规要求,我们在以下情况下收集、使用您的个人信息无需征得您的授权同意: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (1) 为订立、履行个人作为一方当事人的合同所必需; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (2) 为履行法定职责或者法定义务所必需; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (3) 为应对突发公共卫生事件,或者紧急情况下为保护自然人的生命健康和财产安全所必需; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (4) 为公共利益实施新闻报道、舆论监督等行为,在合理的范围内处理个人信息; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (5)在合理的范围内处理个人自行公开或者其他已经合法公开的个人信息; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (6) 法律、行政法规规定的其他情形。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 二、 我们如何使用 Cookie 和同类技术 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 为确保网站正常运转、为您获得更轻松的访问体验、向您推荐您可能感兴趣的内容,我们和第三方合作伙伴可能借助于 Cookie或同类技术收集和使用您访问以及使用我们产品和/或服务的信息,并将该信息进行存储。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 如果您的浏览器或浏览器附加服务允许,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您可修改对Cookie的接受程度或拒绝我们的Cookie。"),e.createTextVNode("但如果您这么做,在某些情况下可能会影响您安全访问我们的网站,且可能需要在每一次访问我们的网站时更改用户设置。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 当您使用网页浏览使用我们的产品和/或服务时,您可以选择在浏览器的设置中清除Cookie数据,大部分浏览器均为用户提供了该等功能。但请您知悉,当您选择清除后,可能无法使用由我们提供的依赖于Cookie的功能或服务。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 三、我们如何共享、转让和披露您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (一) 共享 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 除下列情形外,我们不会与任何其他第三方共享您的个人信息。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 1. 在获得您的明确同意或授权或您主动选择的情况下共享。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"2. 在法定情形下的共享。"),e.createTextVNode("我们可能会根据法律法规规定、诉讼争议解决需要,或按行政、司法机关依法提出的要求,对外共享您的个人信息。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"3. 统一账号体系下的共享。"),e.createTextVNode("为便于我们基于统一账号体系为您带来标准化的服务体验、实现安全风控及客户服务之需要,您可以使用护理单元账号登录适用统一账号体系下的关联应用产品。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"4. 与合作伙伴共享。"),e.createTextVNode("您授权并同意我们可能委托合作伙伴为您提供某些服务或代表我们履行职能,我们仅会出于本隐私信息保护政策声明的合法、正当、必要、特定、明确的目的共享您的信息。我们将通过协议约束我们的合作伙伴只能接触到为其履行职责所需信息,要求其履行严格的保密和与风险相适应的安全措施来处理您的个人信息、包括但不限于数据保护协议或条款、承诺函等,且不得将您的个人信息用于其他任何目的。如超出共享目的使用您个人信息,我们将要求其另行遵循您的明确同意。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 5. 安全运营。我们将部分个人信息提供给支持我们业务的供应商、服务提供商和其他合作伙伴,以提供技术基础设施服务、分析用户使用方式、支付便利或进行学术研究和调查,进行Bug或者崩溃统计、提升登录体验,实现网关取号。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 6. 商业推广。为了您能更方便地了解和触达我们的资讯、产品/服务促销等信息,我们会向某些第三方网站和应用程序提供"),e.createElementVNode("text",{style:{"font-weight":"600"}},"加密后的设备信息"),e.createTextVNode(",进而在第三方平台为您提供我们的上述市场推广信息,并衡量优化有关我们产品和/或服务的市场推广效果。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 7. 留资广告。当第三方合作伙伴使用我们提供的技术服务向您提供商业信息或其他服务时,经取得您的授权同意,我们将基于第三方合作伙伴的委托处理您主动填写或提供的个人信息,请以相应页面内的信息收集使用提示文本为准。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"请您知悉,该等情形下,第三方合作伙伴为个人信息处理者。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 请您放心,除得到您的明确同意,我们不会将可以联系或识别您身份的个人信息与授权合作伙伴共享,我们将能够识别您身份的个人信息进行去标识化处理,以便授权合作伙伴无法识别您的具体身份。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 护理单元产品中包含我们的合作伙伴提供的SDK插件。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"当您在护理单元中使用该授权合作伙伴提供的相关服务,该等服务插件将收集和处理您的相关个人信息,详见附件:《护理单元与第三方共享个人信息清单》,我们强烈建议您在使用在使用我们的产品和/或服务前先行查看并了解其隐私条款。"),e.createTextVNode("我们会对合作伙伴获取有关信息的应用程序接口(API)、软件工具开发包(SDK)进行严格的安全检测,审慎评估服务提供商使用您个人信息的目的,并与合作伙伴通过签署协议的方式约定严格的数据保护措施,要求其按照我们的委托目的、服务说明以及其他任何相关的保密和安全措施来处理个人信息。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (二) 转让、公开披露 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们不会将您的个人信息转让给任何公司、组织和个人,但以下情况除外: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1. 在获取您明确同意的情况下转让; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2. 在护理单元及其关联公司发生重组、合并、分立、收购、资产出售或破产清算情形或其他类似情形时,如涉及到个人信息转让,我们将要求受让方采用与本政策相同或更高的标准和要求进行处理和保护,否则我们将要求受让方重新向您征求同意。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 除符合法律法规的规定进行公开披露或获得您单独同意外,我们不会公开披露您未自行公开或者其他未合法公开的个人信息。且在我们公开披露您的个人信息前会进行个人信息保护影响评估,并采用符合行业内标准的安全保护措施进行处理。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (三) 共享、转让、披露个人信息时事先征得授权同意的例外 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 以下情形中,共享、转让、公开披露您的个人信息无需事先征得您的授权同意: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1.与国家安全、国防安全有关的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2.与公共安全、公共卫生、重大公共利益有关的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3.与犯罪侦查、起诉、审判和判决执行有关的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 4.出于维护您或其他个人的生命、财产重大合法权益但又很难得到本人同意的; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 5.您自行向社会公众公开的个人信息; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 6.从合法公开披露的信息中收集个人信息的,包括合法的新闻报道、政府信息公开渠道; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 7.履行其他履行法律法规规定的相关义务,如促成在线知识产权纠纷解决。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 根据法律规定,当共享、转让经采取技术措施处理的个人信息,使得数据接收方无法复原并重新识别特定个人身份时,我们将不会另行向您通知并征得您的同意。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 四、 我们如何存储您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (一) 存储地点 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们在中华人民共和国境内运营中收集和产生的个人信息,存储在中国境内。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 目前我们暂时不存在跨境存储您的个人信息或向境外提供您的个人信息的情况。如果确有必要进行数据的跨境传输,我们会单独向您明确告知(包括数据出境的目的、接收方、使用方式与范围、使用内容、安全保障措施、安全风险等),并征得您的明确授权同意,我们会确保数据接收方有充足的数据保护能力来保护您的个人信息,并严格按照适用法律法规的规定执行。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 针对以上情形,我们会确保依据本政策对您的个人信息提供足够的保护。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (二)存储期限 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们只会在达成本政策所述目的所需的最短期限内保留您的个人信息,除非法律法规有强制的存留要求,例如,根据《电子商务法》及配套法规的要求,您的订单类交易数据的保存时间自交易完成之日起不少于三年。我们判断前述期限的标准主要包括并以其中较长者为准: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1、完成与您相关的服务目的、维护相应服务及业务记录、应对您可能的查询或投诉; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2、保证我们为您提供服务的安全和质量; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3、您是否同意更长的留存期间; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 4、是否存在保留期限的其他特别约定。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 在您的个人信息超出保留期限后,我们会根据适用法律的要求删除或者匿名化处理您的个人信息。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (三) 删除和匿名化处理 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如本平台服务决定停止运营时,我们将在相关服务停止运营后停止继续收集您的个人信息。我们将以公告形式将停止运营通知向您送达。对已持有您的个人信息,我们将进行删除或匿名化处理,除非法律法规另有规定。涉及未成年人个人信息的,我们会采取必要合理方式及时将停止运营的通知及时告知未成年人监护人。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 五、我们如何保护您的个人信息安全 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 为保障您的信息安全,我们努力采取各种符合业界标准的合理的物理、电子和管理方面的安全措施来保护您的信息,使您的信息不会被泄漏、毁损或者丢失。为确保您的个人信息安全,我们承诺将尽合理商业努力达到通行或者更高的安全水平: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (一) 技术安全防护 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们将采取的技术安全措施包括但不限于SSL、信息加密存储、数据中心的访问控制。我们会使用加密技术提高个人信息的安全性;使用受信赖的保护机制防止个人信息遭到恶意攻击。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (二) 安全体系保证 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们有行业先进的以数据为核心,围绕数据生命周期进行的数据安全管理体系,从组织建设、制度设计、人员管理、产品技术方面多维度提升整个系统的安全性。目前,护理单元已通过网络安全等级保护的三级测评。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (三) 人员安全管理 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们对可能接触到您的信息的员工或外包人员采取了严格管理,包括但不限于根据不同岗位分配不同访问权限的控制机制,并签署保密协议,实时记录并掌握操作情况等。我们会举办安全和隐私保护培训课程,加强员工对于保护个人信息重要性的认识。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (四) 敏感信息及密码保护提示 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"1. 敏感个人信息保护:"),e.createTextVNode("您在使用我们服务时自愿共享甚至公开分享的信息,可能会涉及您或他人的个人信息甚至"),e.createElementVNode("text",{style:{"font-weight":"600"}},"敏感个人信息,例如您上传的头像图片,您在评论、发弹幕时选择上传包含个人信息的图片。"),e.createTextVNode("请您更加谨慎地考虑,是否在使用我们的服务时共享甚至公开分享相关信息。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"2. 您的账户均有安全保护功能,请妥善保管您的账户及密码信息。"),e.createTextVNode("我们将通过向其它服务器备份、对用户密码进行加密以及其他安全措施确保您的信息不丢失,不被滥用和变造。此外,请您尽量使用"),e.createElementVNode("text",{style:{"font-weight":"600"}},"复杂密码"),e.createTextVNode(",协助我们保证您的账号安全。我们将尽力保障您发送给我们的任何信息的安全性。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" "),e.createElementVNode("text",{style:{"font-weight":"600"}},"但请您知悉,互联网并非绝对安全的环境。"),e.createTextVNode("尽管有前述安全措施,但同时也请您理解在网络上不存在“完善的安全措施”。故请您妥善保护自己的个人信息,仅在必要的情形下向他人提供。如您发现自己的个人信息泄露,尤其是您的账户及密码发生泄露,请您立即联络我们客服,以便我们采取相应措施。 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (五) 信息安全事件处理 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 在不幸发生个人信息安全事件时,我们将按照法律法规的要求向您告知:安全事件的基本情况和可能的影响、我们已采取或将要采取的处置措施、您可自主防范和降低风险的建议、对您的补救措施。事件相关情况我们将以邮件、电话、推送通知、短消息的方式告知您,难以逐一告知个人信息主体时,我们会采取合理、有效的方式发布公告。同时,我们还将按照监管部门要求,上报个人信息安全事件的处置情况。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 六、 我们如何保护未成年人的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 若您是未满18周岁的未成年人,您应在您的监护人监护、指导下并获得监护人同意的情况下,认真阅读并同意本政策后,方可使用我们的服务或向我们提供信息。若您未取得监护人的同意,监护人可以通过联系本政策第九节中提供的联系方式通知我们处理相关账号,我们有权对相关账号的功能、使用进行限制,包括但不限于浏览、发布信息、互动交流等功能。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 我们非常重视对未成年人的个人信息保护,未成年用户在填写个人信息时,请加强个人保护意识并谨慎对待,并应在取得监护人的同意以及在监护人指导下正确使用我们提供的产品及相关服务。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 未成年人用户及其监护人理解并确认,如您违反法律法规、本政策内容,则您及您的监护人应依照法律规定承担因此而可能导致的全部法律责任。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 我们在应用内专门为未成年人提供了青少年模式,监护人应为未成年人选择使用青少年模式。同时,我们为14周岁以下的儿童制定了专门的隐私保护政策,如您为儿童,我们要求您请您的父母或其他监护人仔细阅读本隐私信息保护政策及《儿童隐私政策》,并在征得您的父母或其他监护人明确同意的前提下使用我们的服务或向我们提供信息。对于经父母或其他监护人同意使用我们的产品或服务而收集儿童个人信息的情况,我们只会在法律法规允许、父母或监护人明确同意或者保护未成年人所必要的情况下使用、共享、转让或披露此信息。如您的父母或其他监护人不同意您按照本政策使用我们的服务或向我们提供信息,请立即终止使用我们的服务并及时通知我们,以便我们采取相应的措施,如果监护人发现我们在未获监护人同意的情况下收集了未成年人的个人信息,可通过第九节中的联系方式与我们联系,我们会设法尽快删除相关数据。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 未成年人个人信息的保护将同样适用于严格的个人信息访问权限控制制度和个人信息处理记录与管控措施我们始终遵循最小够用的授权原则,采取相应技术措施以尽可能避免未成年人个人信息被违法复制、下载。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们已制定的个人信息安全事件应急预案将同样适用于对未成年人个人信息的保护。我们定期组织内部相关人员进行应急响应培训和应急演练,使其掌握岗位职责和应急处置策略和规程。在不幸发生未成年人个人信息安全事件后,我们将按照法律法规的要求,及时向未成年人及其监护人告知:安全事件的基本情况和可能的影响、我们已采取或将要采取的处置措施、未成年人及其监护人可自主防范和降低风险的建议、对未成年人及其监护人的补救措施。我们将及时将事件相关情况以APP推送通知、发送邮件/短消息的方式告知未成年人及其监护人。难以逐一告知时,我们会采取合理、有效的方式发布相关警示信息。同时,我们还将按照监管部门要求,主动上报未成年人个人信息安全事件的处置情况。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 若您是未成年人的父母或其他监护人,请您关注您监护的未成年人是否是在取得您的授权同意之后使用我们的服务。如您对您所监护的未成年人的个人信息有疑问,请通过第九节中的联系方式与我们联系。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 七、 您如何行使您的个人信息权利 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们通过提供便捷的方法,让您可以访问、更正及删除自己的账户信息或使用我们的服务时您提供的其他个人信息。您可以通过如下方式访问及管理您的个人信息,但我们在不同的版本或操作系统中提供的管理方式路径可能存在差异,请以实际为准。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (一) 访问您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您有权访问您的个人信息,但法律法规规定的例外情况除外。您可以通过以下方式自行访问您的个人信息: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 账户信息——如果您希望访问或编辑您的账户中的账户信息、更改您的密码或关闭您的账户,您可以登录账号通过“账号管理”执行此类操作;例如您可以登录PC端或APP端“我的-设置-账号与安全”查询、修改自己的账号绑定情况、设置/修改密码、查看最近登录设备。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 资料信息——如果您希望访问或编辑您的账户中的个人资料,您可以通过在App端“我的-头像-编辑资料”来添加、修改、删除您的头像、昵称、性别、生日、地区、声音签名、简介。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如果您无法通过上述方式访问您的个人信息,您可以随时通过本政策披露的联系方式联系我们,我们将在十五个工作日内回复您的请求。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (二) 更正或补充您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 当您发现我们处理的关于您的个人信息有错误时,您有权要求我们做出更正或补充。您可以通过“(一)访问您的个人信息”中列明的方式提出更正或补充申请。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如果您无法通过上述方式访问您的个人信息或者其他可能目前无法向您提供在线自行更正/修改服务的,您可以随时通过本政策披露的联系方式联系我们,我们将在十五个工作日内回复您的请求。经过对您身份的验证,且更正/修改不影响信息的客观性和准确性的情况下,您有权对错误或不完整的信息作出更正或修改,但法律法规另有规定的除外。出于安全性和身份识别的考虑,您可能无法修改注册时提交的某些初始注册信息。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (三) 删除您的个人信息 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您有权通过“(一)访问您的个人信息”中列明的方式对已经填写的信息进行删除。同时,在以下情形中,您可以通过本政策披露的联系方式联系我们,向我们提出删除个人信息的请求,我们将在十五个工作日内回复您的请求: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1.如果我们处理个人信息的行为违反法律法规; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2.如果我们收集、使用您的个人信息,却未征得您的明确同意; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3.如果我们处理个人信息的行为严重违反与您的约定; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 4.如果您不再使用我们的产品或服务,或您主动注销账号; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 5.如果我们永久不再为您提供产品或服务 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 若我们决定响应您的删除请求,我们还将同时尽可能通知从我们处获得您的个人信息的主体,要求其及时删除,除非法律法规另有规定,例如您所提供的订单类交易数据,将会基于法律法规要求至少保留3年,或这些主体获得您的独立授权。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (四) 个人信息副本获取 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如您需要您的个人信息的副本,您可以通过本隐私政策文末提供的方式联系我们,在核实您的身份后,我们将向您提供您在我们的服务中的个人信息副本(包括基本资料、身份信息),但法律法规另有规定的或本政策另有约定的除外。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (五) 改变您授权同意的范围 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您可在您的设备系统设置-应用-APP名称-权限中逐项查看您授权同意权限的状态,或在护理单元App内通过“我的-设置-隐私管理-系统权限”查看并可自行决定这些权限随时的开启或关闭。对于不同功能服务中个人信息的收集和使用,您也可以与护理单元客服联系给予或收回您的授权同意,我们将在十五个工作日内回复您的请求。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"当您撤回同意后,我们将不再处理相应的个人信息,我们将无法继续为您提供撤回同意或授权所对应的服务。但您撤回同意的决定,不会影响此前基于您的授权而开展的个人信息处理。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (六) 注销账户 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 当您注销账号后,您将无法再以该账号登录和使用我们的产品与服务;且该账号在使用我们的产品与服务期间已产生的但未消耗完毕的权益及未来的预期利益等全部权益将被清除;该账号下的内容、信息、数据、记录等将会被删除或匿名化处理,但法律法规另有规定或监管部门另有要求的除外;您的账号注销完成后,将无法恢复。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如您在谨慎考虑后仍决定注销您的账号的,您可以在您使用的我们的产品与/或服务的相关功能设置页面或根据操作指引向我们提交注销申请,例如,您可以通过“我的-设置-账号与安全-注销账户”自行在“注销账户”页面提交账户注销申请。若未能申请成功,您也可联系护理单元客服,我们将在十五个工作日内回复您的请求。在您主动注销账户之后,我们将停止为您提供产品或服务。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (七) 限制自动化决策 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 在护理单元App端,您可以通过“我的-设置-隐私管理-个性化内容推荐/个性化广告推荐”选择是否使用我们提供的个性化服务。此外,在某些业务功能中,经向您告知并取得同意后,我们可能仅依据信息系统、算法在内的非人工自动决策机制做出决定。如果您认为这些决定显著影响您的合法权益,您有权通过本政策披露的联系方式要求我们做出解释,我们也将在十五个工作日内回复您的请求,为您提供申诉方法。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (八) 退订 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 如您发现收到了不属于您主动搜索、浏览的视频内容和产品、服务信息推送。如您不希望接收上述信息,可通过原路径进行退订,例如短信推送可以直接回复相关的退订口令。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (九) 投诉 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您有权通过本政策披露的联系方式联系我们进行投诉。我们将在收到您投诉之日起十五个工作日内做出答复。如果您对我们的答复不满意,特别是我们的个人信息处理行为损害了您的合法权益,您还可以向网信、公安、工商等监管部门进行投诉或举报,或向有管辖权法院提起诉讼,但我们希望您能够首先就相关问题与我们取得联系。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," (十) 响应您的上述请求 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 为保障安全,您可能需要提供书面请求,或以其他方式证明您的身份。我们可能会先要求您验证自己的身份,然后再处理您的请求。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 对于您合理的请求,我们原则上不收取费用。但对多次重复、超出合理限度的请求,我们将视情收取一定成本费用。对于那些无端重复、需要过多技术手段(例如需要开发新系统或从根本上改变现行管理)、给他人合法权益带来风险或者非常不切实际的请求,我们可能会予以拒绝。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 此外,如果您的请求直接涉及国家安全、国防安全、公共卫生、犯罪侦查等和公共利益直接相关的事由,或者可能导致您或者其他个人、组织的合法权益受到严重损害,或者基于护理单元履行法律法规规定的义务相关的情形,或者有充分证据标明您存在主观恶意或滥用权利,或者响应您的请求将导致您或者其他个人、组织的合法权益受到严重损害的,我们将无法响应您的请求。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 如果您无法通过上述方式访问您的个人信息,您都可以通过第九节中的联系方式与我们取得联系,我们将在十五个工作日内回复您的权利响应请求。 "),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 七:您如何行使您的个人信息权利 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode(" 您理解,您与护理单元签署的本政策所列明的条款,并不能完全涵盖您与护理单元所有的关于个人信息的权利和义务。因此,"),e.createElementVNode("text",{style:{"font-weight":"600"}},"护理单元公布其他声明(包括但不限于页面提示、新签署文件、弹窗、网站公告或站内信等)、各形式规则均视为本政策之补充条款,为本政策不可分割的组成部分,与本政策具有同等法律效力。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 未经您明确同意,我们不会限制您按照本政策所应享有的权利。我们将在护理单元专门链接上发布对隐私权政策所做的任何变更和更新。对于重大变更,我们还会提供更为显著的通知(包括通过平台公示通知甚至向您进行弹窗提示)。本政策所指的重大变更包括但不限于: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 1.我们的服务模式发生重大变化。如处理个人信息的目的、处理的个人信息类型、个人信息的使用方式; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 2.我们在控制权方面发生重大变化。如并购重组引起的所有者变更; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 3.个人信息共享、转让或公开披露的主要对象发生变化; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 4.您参与个人信息处理方面的权利及其行使方式发生重大变化; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 5.我们负责处理个人信息安全的责任部门、联络方式及投诉渠道发生变化时。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},' 为了您能及时接收到通知,建议您在您个人的联系方式更新时及时通知我们。如您在本政策更新生效后继续使用我们的服务,即代表您已充分阅读、理解并接受更新后的政策并愿意受更新后的政策约束。我们鼓励您在每次使用我们服务时都查阅本政策。您可以在护理单元APP通过"首页-我的-设置-隐私政策"中查看本政策。 '),e.createElementVNode("view",{style:{"font-size":"33rpx","margin-bottom":"20rpx","font-weight":"600"}}," 八、如何联系我们 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 您可以通过以下方式与我们联系,我们将在十五个工作日内回复您的请求: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们设立了个人信息保护专职部门,如您对护理单元隐私信息保护政策、儿童个人信息有任何疑问、意见或建议,或有关于网络信息安全的投诉和举报,您可通过以下方式与我们取得联系: "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 我们收件地址:长春市经济开发区长吉南线以东、吉林大路以南东方广场中意国际大厦B座1431号; "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 联系人:护理单元客服部 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 联系方式:18043530712 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 联系邮箱:service@blxinchuang.com "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}}," 本政策签订地为中华人民共和国吉林省长春市,因本政策生效、履行、解释及使用护理单元产品和/或服务而产生或与本政策相关的一切争议、权利主张或其他事项,均适用中华人民共和国法律(为本政策之目的,港澳台地区法律不在此列)。您与护理单元及其关联公司或护理单元发生的一切争议,应友好协商,如协商不成的,您同意双方通过将争议提交本政策签订地有管辖权的法院解决。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 请您再次确认您已全部阅读并充分理解上述条款。 ")])])}],["__scopeId","data-v-6e36c3ee"]]),v="https://www.focusnu.com/opeapi";let p=!1;const g=e=>{let t=e.url,a=e.method||"get",i=e.data||{},n={"X-Access-Token":uni.getStorageSync("token")||"","Content-Type":"application/json;charset=UTF-8",Authorization:"Basic c2FiZXI6c2FiZXJfc2VjcmV0",...e.header};return new Promise(((e,o)=>{uni.request({url:/^https?:\/\//.test(t)?t:v+t,method:a,header:n,data:i,timeout:5e3,success(a){const n=a;if(200==n.statusCode)e(n.data),p=!1;else switch(l("log","at request/index.js:38","http",/^https?:\/\//.test(t)?t:v+t),l("log","at request/index.js:39","res",a),l("log","at request/index.js:40","data",i),n.statusCode){case 401:if(1==p)return;p=!0,uni.showModal({title:"提示",content:"登录过期",showCancel:!1,success(){uni.clearStorageSync(),setTimeout((()=>{uni.navigateTo({url:"/pages/login/login"})}),1e3)}});break;case 404:uni.showToast({title:"请求地址不存在...",duration:2e3});break;default:uni.showToast({title:"请重试...",duration:2e3})}},fail(e){l("log","at request/index.js:75",e),-1!==e.errMsg.indexOf("request:fail")?uni.showToast({title:"网络异常",icon:"error",duration:2e3}):uni.showToast({title:"未知异常",duration:2e3}),o(e)},complete(){uni.hideLoading(),uni.hideToast()}})})).catch((()=>{}))},h=e=>g({url:`${uni.getStorageSync("serverUrl")}/sys/randomCode/${e}`,method:"get"}),y=e=>g({url:`${uni.getStorageSync("serverUrl")}/sys/login`,method:"post",data:e}),w=s({__name:"huakuai",emits:["success"],setup(t,{emit:a}){const i=a,n=100,o=e.ref(400),r=e.ref(400),c=e.ref(0),s=e.ref(0),u=e.ref(0),d=e.ref(!1),m=e.ref(0),v=e.ref(""),p=e.getCurrentInstance();const g=`path('${h=n,`\n M20 0\n h${h/3-20}\n a20 20 0 0 1 0 40\n h${h/3}\n a20 20 0 0 0 0 -40\n h${h/3-20}\n v${h/3-20}\n a20 20 0 0 1 -40 0\n v${h/3}\n a20 20 0 0 0 40 0\n v${h/3-20}\n h-${h/3-20}\n a20 20 0 0 1 0 -40\n h-${h/3}\n a20 20 0 0 0 0 40\n h-${h/3-20}\n z\n `}')`;var h;function y(){e.nextTick((()=>{p?uni.createSelectorQuery().in(p.proxy).select(".bg-image").boundingClientRect((e=>{e?(o.value=2*e.width,r.value=2*e.height,c.value=Math.random()*(o.value-200)+n,c.value<100&&(c.value=100),c.value>400&&(c.value=400),s.value=r.value/2,u.value=0):l("error","at component/public/huakuai.vue:115","无法获取图片尺寸")})).exec():l("error","at component/public/huakuai.vue:107","无法获取组件实例")}))}function w(e){d.value=!0,m.value=2*e.touches[0].clientX}function N(e){if(!d.value)return;let t=2*e.touches[0].clientX-m.value;t=Math.max(0,Math.min(t,o.value-n)),u.value=t}function f(){d.value=!1,Math.abs(u.value+47-c.value)<20?(uni.showToast({title:"验证成功",icon:"none",duration:2e3}),i("success")):(u.value=0,uni.showToast({title:"验证失败",icon:"none",duration:2e3}))}return e.onMounted((()=>{const e=["https://www.focusnu.com/media/directive/login/0.png","https://www.focusnu.com/media/directive/login/1.png","https://www.focusnu.com/media/directive/login/2.png"];v.value=e[Math.floor(Math.random()*e.length)],l("log","at component/public/huakuai.vue:172","加载图片:",v.value)})),(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"captcha-container",id:"container"},[e.createElementVNode("view",{class:"font-title"},"请通过滑块验证"),e.createElementVNode("view",{class:"captcha-image",style:{position:"relative",width:"100%",height:"400rpx",overflow:"hidden"}},[e.createElementVNode("image",{src:v.value,class:"bg-image",mode:"widthFix",onLoad:y},null,40,["src"]),e.createElementVNode("view",{class:"overlay",style:e.normalizeStyle({width:o.value+"rpx",height:r.value+"rpx"})},[e.createElementVNode("view",{class:"hole",style:e.normalizeStyle({top:s.value+"rpx",left:c.value+"rpx",width:"100rpx",height:"100rpx",clipPath:g,transform:"translate(-50%, -50%)",backgroundColor:"rgba(0,0,0,0.6)"})},null,4),e.createElementVNode("view",{class:"piece",style:e.normalizeStyle({top:s.value+"rpx",left:u.value+47+"rpx",width:"100rpx",height:"100rpx",backgroundImage:`url(${v.value})`,backgroundSize:o.value+"rpx "+r.value+"rpx",backgroundPosition:`-${c.value-45}rpx -${s.value-50}rpx`,clipPath:g,transform:"translate(-50%, -50%)"})},null,4)],4)]),e.createElementVNode("view",{class:"slider-bar"},[e.createElementVNode("view",{class:"slider-bar-font"},"向右滑动滑块填充拼图"),e.createElementVNode("view",{class:"slider-button",ref:"btn",onTouchstart:w,onTouchmove:N,onTouchend:f,style:e.normalizeStyle({left:u.value+"rpx",maxWidth:o.value-n+"rpx"})},[e.createElementVNode("image",{src:"https://www.focusnu.com/media/directive/login/right.png",style:{width:"50rpx",height:"50rpx"},mode:"widthFix"})],36)])]))}},[["__scopeId","data-v-ca7ea5fb"]]),N=class e{constructor(t="",l={}){this.url=t||"",this.options=Object.assign({header:{},protocols:[],debug:!0,lang:"zh",showMessageBody:!0,filterPing:!0,heartbeatInterval:3e4,heartbeatTimeout:15e3,pingMessage:{type:"ping"},parseJSON:!0,maxReconnectAttempts:10,reconnectDelayBase:1e3,autoConnect:!1,bindGlobal:!0},l),this.socketTask=null,this.connected=!1,this._msgQueue=[],this.reconnectAttempts=0,this._lastPongAt=Date.now(),this._hbTimer=null,this._hbTimeoutTimer=null,this._subscriptions=new Map,this._shouldReconnect=!0,this._manualClose=!1,this.options.bindGlobal&&!e._globalBound?(this._bindGlobalSocketEvents(),e._globalBound=!0):this.options.bindGlobal&&e._globalBound,this.options.autoConnect&&setTimeout((()=>this.open()),0)}_label(e){return"zh"===this.options.lang?{open:"打开连接 ->",alreadyConnected:"已连接,忽略 open",connectNoTask:"connectSocket 未返回 task,使用全局回调",onOpen:"连接已打开",onMessage:"收到消息",onClose:"连接已关闭",onError:"连接错误",globalOnOpen:"全局 onSocketOpen",globalOnMessage:"全局 onSocketMessage",hbTimeout:"心跳超时",reconnectScheduled:"计划重连",sendFailed:"发送失败",closeError:"关闭错误"}[e]||e:{open:"open ->",alreadyConnected:"already connected, ignore open",connectNoTask:"connectSocket returned no task (using global callbacks if available)",onOpen:"onOpen",onMessage:"onMessage",onClose:"onClose",onError:"onError",globalOnOpen:"global onSocketOpen",globalOnMessage:"global onSocketMessage",hbTimeout:"hb timeout",reconnectScheduled:"reconnect scheduled",sendFailed:"send failed",closeError:"close error"}[e]||e}log(...e){this.options.debug&&e.map((e=>{if("object"==typeof e)try{return JSON.stringify(e,null,2)}catch(t){return String(e)}return String(e)})).join(" ")}open(){if(this.url)if(this.connected)this.log(this._label("alreadyConnected"));else{this.log(this._label("open"),this.url),this._shouldReconnect=!0,this._manualClose=!1;try{const e=uni.connectSocket({url:this.url,header:this.options.header,protocols:this.options.protocols});e&&"function"==typeof e.onOpen?this._bindSocketTask(e):this.log(this._label("connectNoTask"))}catch(e){l("error","at common/websocket.js:118",e)}}else this.log(this._label("open"),this._label("noUrl")||"no url")}close(e=1e3,t="client close",l=!0){l?(this._shouldReconnect=!1,this._manualClose=!0):this._manualClose=!1,this._stopHeartbeat();try{if(this.socketTask&&"function"==typeof this.socketTask.close)try{this.socketTask.close({code:e,reason:t})}catch(a){this.log(this._label("closeError"),a),"function"==typeof uni.closeSocket&&uni.closeSocket()}else"function"==typeof uni.closeSocket&&uni.closeSocket()}catch(a){this.log(this._label("closeError"),a)}this.connected=!1,this.socketTask=null}send(e){const t="string"==typeof e?e:JSON.stringify(e);if(this.socketTask&&"function"==typeof this.socketTask.send&&this.connected)try{return void this.socketTask.send({data:t})}catch(l){this.log(this._label("sendFailed"),l),this._msgQueue.push(t)}else try{return void uni.sendSocketMessage({data:t})}catch(l){this._msgQueue.push(t)}}_flushQueue(){if(this.connected)for(;this._msgQueue.length;){const t=this._msgQueue.shift();try{this.socketTask&&"function"==typeof this.socketTask.send?this.socketTask.send({data:t}):uni.sendSocketMessage({data:t})}catch(e){this._msgQueue.unshift(t);break}}}_bindSocketTask(e){this.socketTask=e,e.__ws_bound__||(e.__ws_bound__=!0,e.onOpen((e=>{this.log(this._label("onOpen"),e),this.connected=!0,this.reconnectAttempts=0,this._lastPongAt=Date.now(),this._startHeartbeat(),this._flushQueue(),this.options.onOpen&&this.options.onOpen(e),this._shouldReconnect=!0,this._manualClose=!1})),e.onMessage((e=>{this._handleIncoming(e)})),e.onClose((e=>{this.log(this._label("onClose"),e),this.connected=!1,this._stopHeartbeat(),this.options.onClose&&this.options.onClose(e),this._tryReconnect()})),e.onError((e=>{this.log(this._label("onError"),e),this.connected=!1,this._stopHeartbeat(),this.options.onError&&this.options.onError(e),this._tryReconnect()})))}_handleIncoming(e){this._lastPongAt=Date.now();let t=e&&e.data;if(this.options.parseJSON)try{t=JSON.parse(e.data)}catch(a){}const l=t&&t.type||"__default__";if(t&&("ping"===t.type||"pong"===t.type||"string"==typeof t&&("ping"===t||"pong"===t))&&this.options.filterPing)this.options.debug&&!1===this.options.showMessageBody&&this.log(this._label("onMessage"),l);else if(this.options.debug)if(this.options.showMessageBody){let e;try{e=JSON.stringify(t,null,2)}catch(a){e=String(t)}this.log((this.options.lang,`${this._label("onMessage")} (${l}):`),"\n"+e)}else this.log(this._label("onMessage"),l);this.options.onMessage&&setTimeout((()=>this.options.onMessage(t,e)),0),setTimeout((()=>this._dispatch(l,t,e)),0)}_bindGlobalSocketEvents(){try{uni.offSocketOpen&&uni.offSocketOpen()}catch(e){}try{uni.offSocketMessage&&uni.offSocketMessage()}catch(e){}try{uni.offSocketClose&&uni.offSocketClose()}catch(e){}try{uni.offSocketError&&uni.offSocketError()}catch(e){}try{uni.onSocketOpen((e=>{this.log(this._label("globalOnOpen"),e),this.connected=!0,this.reconnectAttempts=0,this._lastPongAt=Date.now(),this._startHeartbeat(),this._flushQueue(),this.options.onOpen&&this.options.onOpen(e),this._shouldReconnect=!0,this._manualClose=!1}))}catch(e){}try{uni.onSocketMessage((e=>{this.options.debug&&this.log(this._label("globalOnMessage")),this._handleIncoming(e)}))}catch(e){}try{uni.onSocketClose((e=>{this.log(this._label("globalOnClose"),e),this.connected=!1,this._stopHeartbeat(),this.options.onClose&&this.options.onClose(e),this._tryReconnect()}))}catch(e){}try{uni.onSocketError((e=>{this.log(this._label("globalOnError"),e),this.connected=!1,this._stopHeartbeat(),this.options.onError&&this.options.onError(e),this._tryReconnect()}))}catch(e){}}_startHeartbeat(){if(this._stopHeartbeat(),!this.options.heartbeatInterval)return;const e="string"==typeof this.options.pingMessage?this.options.pingMessage:JSON.stringify(this.options.pingMessage);this._hbTimer=setInterval((()=>{if(this.connected){try{this.send(e)}catch(t){this.log("hb send err",t)}clearTimeout(this._hbTimeoutTimer),this._hbTimeoutTimer=setTimeout((()=>{const e=Date.now()-this._lastPongAt;if(e>this.options.heartbeatTimeout){this.log(this._label("hbTimeout"),e);try{this.close(1e3,"hb timeout",!1)}catch(t){this.log("hb close fail",t)}}}),this.options.heartbeatTimeout)}}),this.options.heartbeatInterval)}_stopHeartbeat(){this._hbTimer&&(clearInterval(this._hbTimer),this._hbTimer=null),this._hbTimeoutTimer&&(clearTimeout(this._hbTimeoutTimer),this._hbTimeoutTimer=null)}_tryReconnect(){if(!this._shouldReconnect)return void this.log(this._label("reconnectScheduled"),"reconnect disabled (manual close)");if(this.reconnectAttempts>=this.options.maxReconnectAttempts)return void this.log(this._label("reconnectScheduled"),"exhausted");this.reconnectAttempts++;const e=this.options.reconnectDelayBase||1e3,t=Math.min(e*Math.pow(1.5,this.reconnectAttempts-1),3e4),l=Math.floor(401*Math.random())-200,a=Math.max(0,Math.floor(t)+l);this.log(this._label("reconnectScheduled"),a+"ms","attempt",this.reconnectAttempts),setTimeout((()=>{this.socketTask=null,this.connectIfForeground()}),a)}connectIfForeground(){this.open()}subscribe(e,t){return this._subscriptions||(this._subscriptions=new Map),this._subscriptions.has(e)||this._subscriptions.set(e,new Set),this._subscriptions.get(e).add(t),()=>this.unsubscribe(e,t)}unsubscribe(e,t){if(!this._subscriptions)return;const l=this._subscriptions.get(e);l&&(l.delete(t),0===l.size&&this._subscriptions.delete(e))}_dispatch(e,t,l){if(!this._subscriptions)return;const a=this._subscriptions.get(e);if(a)for(const o of Array.from(a))try{o(t,l)}catch(n){this.log("handler err",n)}const i=this._subscriptions.get("__default__");if(i)for(const o of Array.from(i))try{o(t,l)}catch(n){this.log("default handler err",n)}}};__publicField(N,"_globalBound",!1);let f=N,k=null;const E=s(e.defineComponent({__name:"login",setup(a){const i=e.ref(null),n=e.ref(!1),o=e.ref(!1),r=e.reactive({username:"",password:"",captcha:"",checkKey:0}),c=e.reactive({oldpassword:"",newpassword:""}),s=e.computed((()=>{return r.password&&("string"==typeof(e=r.username)&&11===e.length);var e})),v=e.ref(!1);function p(){B.value=!1,n.value=!0,z()}function N(){v.value=!1}function E(){plus.runtime.quit()}e.onMounted((()=>{var e,l;uni.setStorageSync("appWgtVersion",uni.getSystemInfoSync().appWgtVersion),uni.getStorageSync("appWgtVersion")!=uni.getSystemInfoSync().appWgtVersion&&(v.value=!0),uni.getStorageSync("token")&&1!==uni.getStorageSync("token")&&(2===_.value?setTimeout((()=>{L()}),500):_.value++),t("MonitorModule").initSMBCloudSDK(),e=t("MonitorModule"),l={userName:"admin",password:"Bl20230518",serverAddress:"121.36.88.64",port:8888},e.cloudLoginIn(l,(e=>{2===_.value?setTimeout((()=>{L()}),500):_.value++}))}));const x=e.ref(!1),V=e.ref(0),b=e.ref([]),S=()=>{var e;/^\d{11}$/.test(r.username)?(e=r.username,g({url:`/api/pad/loginApi/getAdvisoryInfo?tel=${encodeURIComponent(e)}`,method:"get"})).then((e=>{l("log","at pages/login/login.vue:221","啥啊",e),"0"==e.result.code?(uni.setStorageSync("serverUrl",e.result.orgList[0].serverUrl),uni.setStorageSync("orgList",e.result.orgList),uni.setStorageSync("orgListName",e.result.orgList[0].departName),uni.setStorageSync("orgListCode",e.result.orgList[0].orgCode),b.value=e.result.orgList,V.value=Date.now(),h(V.value).then((e=>{l("log","at pages/login/login.vue:232","啥啊",e),r.captcha=e.message,x.value=!0}))):(uni.setStorageSync("serverUrl",""),uni.setStorageSync("orgList",[]),uni.setStorageSync("orgListName",""),uni.setStorageSync("orgListCode",""),b.value=[],uni.showToast({title:e.result.msg,icon:"none",duration:2e3}),x.value=!1)})):r.username&&uni.showToast({title:"手机号不足11位",icon:"none",duration:2e3})},B=e.ref(!1),T=e.ref(!1),C=e.ref(!1),D=e.ref(!1),z=()=>{n.value?o.value=!0:B.value=!0},I=e.ref(!1),F=()=>{I.value||(2===_.value?setTimeout((()=>{L()}),500):_.value++,I.value=!0)},_=e.ref(0),M=e.ref(!1),$=()=>{r.checkKey=V.value,o.value=!1,y(r).then((e=>{e.success?(uni.showToast({title:e.message,icon:"success",duration:500}),uni.setStorageSync("token",e.result.token),uni.setStorageSync("username",r.username),uni.setStorageSync("realname",e.result.userInfo.realname),uni.setStorageSync("userInfo",e.result.userInfo),2===_.value?(uni.setStorageSync("form",r),b.value.length>1?(o.value=!1,M.value=!0):setTimeout((()=>{L()}),500)):_.value++):uni.showToast({title:e.message,icon:"none",duration:2e3})}))};const L=()=>{var e;uni.getStorageSync("userInfo")&&(((e,t={})=>{if(k){if(k.url===e)return k;try{k._shouldReconnect=!1,k.close(1e3,"reinit",!0)}catch(a){}k=null}const l=Object.assign({bindGlobal:!0},t);k=new f(e,l)})(`wss://www.focusnu.com/ws101/sdWebsocket/${uni.getStorageSync("userInfo").employessId}`,{debug:!0,heartbeatInterval:25e3,autoConnect:!1}),k&&(k.connected||(k.reconnectAttempts=0,k._shouldReconnect=!0,k._manualClose=!1,k.open()))),e="/pages/login/newanimationpage",uni.navigateTo({url:e})};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"backgroundContainer"},[e.createElementVNode("image",{class:"title-img",src:"/static/index/superNu.png"}),e.createElementVNode("view",{class:"input-father"},[e.createElementVNode("view",{class:"add"},"+86"),e.createElementVNode("view",{class:"shu"}),e.withDirectives(e.createElementVNode("input",{style:{"font-size":"27rpx",height:"350rpx"},type:"number","onUpdate:modelValue":a[0]||(a[0]=e=>r.username=e),maxlength:"11",placeholder:"请输入手机号",onBlur:S},null,544),[[e.vModelText,r.username]])]),e.createElementVNode("view",{class:"input-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:"",type:"text","onUpdate:modelValue":a[1]||(a[1]=e=>r.password=e),maxlength:"15",placeholder:"请输入密码"},null,512),[[e.vModelText,r.password]])]),e.withDirectives(e.createElementVNode("view",{class:"input-father-gray"}," 验证并登录 ",512),[[e.vShow,!s.value||!x.value]]),e.withDirectives(e.createElementVNode("view",{class:"input-father-blue",onClick:a[2]||(a[2]=e=>z())}," 验证并登录 ",512),[[e.vShow,s.value&&x.value]]),e.createElementVNode("view",{class:"under-container-title"},[e.createElementVNode("view",{class:e.normalizeClass(n.value?"radio-circle-target":"radio-circle"),onClick:a[3]||(a[3]=e=>n.value=!n.value)},null,2),e.createElementVNode("view",{style:{"margin-left":"17rpx"},class:"radio-circle-font",onClick:a[4]||(a[4]=e=>n.value=!n.value)},"我已阅读并同意"),e.createElementVNode("view",{class:"radio-circle-blue",onClick:a[5]||(a[5]=e=>{C.value=!0,D.value=!0})}," 《用户协议》 "),e.createElementVNode("view",{class:"radio-circle-blue",onClick:a[6]||(a[6]=e=>{C.value=!0,D.value=!1})}," 《隐私政策》 ")])]),v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-wrapper",style:{"z-index":"999"}},[e.createElementVNode("view",{class:"mask"}),e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"box-title"}," 服务条款和隐私保护提示 "),e.createElementVNode("view",{class:"font-father"},[e.createElementVNode("view",{class:""}," 欢迎使用护理单元app! "),e.createElementVNode("view",{style:{"text-indent":"2em"}},[e.createTextVNode(" 我们将通过"),e.createElementVNode("text",{class:"text-blue",onClick:a[7]||(a[7]=e=>{C.value=!0,D.value=!0})},"《用户协议》"),e.createTextVNode("和"),e.createElementVNode("text",{class:"text-blue",onClick:a[8]||(a[8]=e=>{C.value=!0,D.value=!1})},"《隐私政策》"),e.createTextVNode(",帮助您了解我们为您提供的服务、我们如何处理个人信息以及您享有的权利。我们会严格按照相关法律法规要求,采取各种安全措施来保护您的个人信息。 ")]),e.createElementVNode("view",{style:{margin:"30rpx 0"}}," 点击“同意”按钮,表示您已知情并同意以上协议和以下约定。 ")]),e.createElementVNode("view",{class:"gray-box-bgc"},[e.createElementVNode("scroll-view",{style:{width:"100%",height:"100%"},"scroll-y":"","show-scrollbar":!0},[e.createElementVNode("view",{style:{"margin-bottom":"10rpx"}}," 1、服务条款与隐私政策确认:登录即表示您已阅读并同意《NU 护理单元用户服务协议》及《NU 护理单元隐私信息保护政策》,其中包含对您权利义务、个人信息处理的详细说明。 "),e.createElementVNode("view",{style:{"margin-bottom":"10rpx"}}," 2、账号使用规范:账号仅限本人使用,禁止恶意注册、转借或泄露。请妥善保管账号密码,因保管不善导致的账号安全问题,由您自行承担责任。 "),e.createElementVNode("view",{style:{"margin-bottom":"10rpx"}}," 3、内容发布责任:您在平台发布的内容需遵守法律法规,不得包含不良信息或侵犯他人权益的内容。发布利用新技术制作的非真实信息时,须显著标识。 "),e.createElementVNode("view",{style:{"margin-bottom":"10rpx"}}," 4、个人信息保护:我们将依法收集、使用您的个人信息(如手机号用于注册登录),您可通过 “我的 - 设置 - 隐私管理” 查看、修改授权,也可申请注销账号(注销后相关数据将按规定处理)。 "),e.createElementVNode("view",{style:{"margin-bottom":"10rpx"}}," 5、未成年人使用提示:未满 18 周岁用户需在监护人同意后使用,监护人可联系客服人员处理未成年人账号相关事宜,我们将严格保护未成年人信息。 ")])]),e.createElementVNode("view",{class:"blue-button",onClick:N},"同意"),e.createElementVNode("view",{class:"white-button",onClick:E},"不同意")])])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-any"},[e.createElementVNode("view",{class:"mask",onClick:a[9]||(a[9]=e=>C.value=!1)}),e.createElementVNode("view",{class:"box-any"},[e.createElementVNode("view",{class:"title-left"},[e.createElementVNode("image",{class:"back-img",src:"/static/left.png",onClick:a[10]||(a[10]=e=>C.value=!1)}),D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"back-font"},"护理单元隐私信息保护政策")),D.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"back-font"},"护理单元用户服务协议")):e.createCommentVNode("",!0)]),D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0})),D.value?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"popup-wrapper"},[e.createElementVNode("view",{class:"mask",onClick:a[11]||(a[11]=e=>B.value=!1)}),e.createElementVNode("view",{class:"box-small"},[e.createElementVNode("view",{class:"box-title",style:{"margin-top":"30rpx"}}," 请阅读并同意以下条款 "),e.createElementVNode("view",{class:"font-father"},[e.createElementVNode("text",{class:"text-blue",onClick:a[12]||(a[12]=e=>{C.value=!0,D.value=!0})},"《用户协议》"),e.createElementVNode("text",{class:"text-blue",onClick:a[13]||(a[13]=e=>{C.value=!0,D.value=!1})},"《隐私政策》")]),e.createElementVNode("view",{class:"blue-button",onClick:p},"同意并继续")])])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"popup-wrapper"},[e.createElementVNode("view",{class:"mask"}),e.createElementVNode("view",{class:"box-change"},[e.createElementVNode("view",{class:"box-title"}," 修改账户登录密码 "),e.createElementVNode("view",{class:"input-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[14]||(a[14]=e=>c.oldpassword=e),maxlength:"15",placeholder:"请输入新密码"},null,512),[[e.vModelText,c.oldpassword]])]),e.createElementVNode("view",{class:"input-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[15]||(a[15]=e=>c.newpassword=e),maxlength:"15",placeholder:"请再次输入新密码"},null,512),[[e.vModelText,c.newpassword]])]),e.createElementVNode("view",{class:"blue-button",style:{"margin-top":"80rpx"},onClick:a[16]||(a[16]=e=>T.value=!1)},"确定")])])):e.createCommentVNode("",!0),e.createVNode(u,{ref_key:"zyupgrade",ref:i,noticeflag:!0,theme:"blue",h5preview:!1,oldversion:"1.0.0",appstoreflag:!0,autocheckupdate:!0,onShowupdateTips:F},null,512),o.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"bg-mask",onClick:a[18]||(a[18]=e=>o.value=!1)},[e.createVNode(w,{onClick:a[17]||(a[17]=e.withModifiers((()=>{}),["stop"])),onSuccess:$})])):e.createCommentVNode("",!0),M.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"bg-mask"},[e.createElementVNode("view",{onClick:a[19]||(a[19]=e.withModifiers((()=>{}),["stop"])),class:"white-select"},[e.createElementVNode("view",{class:"big-font"}," 请选择您的机构 "),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"small-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"small-select",onClick:e=>((e,t)=>{uni.setStorageSync("serverUrl",e.serverUrl),uni.setStorageSync("orgListName",e.departName),uni.setStorageSync("orgListCode",e.orgCode),setTimeout((()=>{h(V.value).then((e=>{l("log","at pages/login/login.vue:311","啥啊",e),r.captcha=e.message,t?y(r).then((e=>{e.success?(uni.setStorageSync("token",e.result.token),uni.setStorageSync("username",r.username),uni.setStorageSync("realname",e.result.userInfo.realname),uni.setStorageSync("userInfo",e.result.userInfo),L()):uni.showToast({title:e.message,icon:"none",duration:2e3})})):L()}))}),500)})(t,a)},e.toDisplayString(t.departName),9,["onClick"])))),256))])])])])):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-e5766b53"]]),x="/static/shouye/old.png",V=s({__name:"exit",props:{show:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:l}){const a=t,i=e.ref(!1);e.watch((()=>a.show),((e,t)=>{!t&&e&&(i.value=!1,setTimeout((()=>i.value=!0),50))}));const n=l;function o(){n("close")}const r=()=>{uni.setStorageSync("token",1),uni.setStorageSync("userInfo",null),uni.redirectTo({url:"/pages/login/login"})};return(l,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["neuro-wrapper",i.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:o}),e.createElementVNode("view",{class:"neuro-box",onClick:a[0]||(a[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:"button-white",onClick:o},"取消"),e.createElementVNode("view",{class:"button",onClick:r},"确定")]),e.createElementVNode("view",{class:"title"},"退出登录"),e.createElementVNode("view",{class:"card-font"}," 确定要退出登录吗 ")])],2)),[[e.vShow,t.show]])}},[["__scopeId","data-v-e70a6758"]]),b=s({__name:"reset",props:{show:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:l}){const a=t,i=e.reactive({username:uni.getStorageSync("username"),oldpassword:"",password:"",confirmpassword:""}),n=e.ref(!1);e.watch((()=>a.show),((e,t)=>{!t&&e&&(n.value=!1,setTimeout((()=>n.value=!0),50))}));const o=l;function r(){o("close")}const c=()=>{i.username&&i.oldpassword&&i.password&&i.confirmpassword?i.password.length<6||i.confirmpassword.length<6?uni.showToast({title:"密码要多于六位",icon:"none",duration:2e3}):i.password===i.confirmpassword?(e=>g({url:`${uni.getStorageSync("serverUrl")}/sys/user/updatePassword`,method:"put",data:{username:e.username,oldpassword:e.oldpassword,password:e.password,confirmpassword:e.confirmpassword}}))(i).then((e=>{e.success?(uni.showToast({title:e.message,icon:"success",duration:2e3}),setTimeout((()=>{uni.setStorageSync("token",1),uni.reLaunch({url:"/pages/login/login"})}),1e3)):uni.showToast({title:e.message,icon:"none",duration:2e3})})):uni.showToast({title:"新密码与确认密码不一致",icon:"none",duration:2e3}):uni.showToast({title:"请完善信息",icon:"error",duration:2e3})};return(l,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["neuro-wrapper",n.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:r}),e.createElementVNode("view",{class:"neuro-box",onClick:a[3]||(a[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:"button",onClick:c},"确定")]),e.createElementVNode("view",{class:"title"},"修改账号登录密码"),e.createElementVNode("view",{class:"password-father",style:{"margin-top":"50rpx"}},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[0]||(a[0]=e=>i.oldpassword=e),maxlength:"15",placeholder:"请输入旧密码"},null,512),[[e.vModelText,i.oldpassword]])]),e.createElementVNode("view",{class:"password-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[1]||(a[1]=e=>i.password=e),maxlength:"15",placeholder:"请输入新密码"},null,512),[[e.vModelText,i.password]])]),e.createElementVNode("view",{class:"password-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[2]||(a[2]=e=>i.confirmpassword=e),maxlength:"15",placeholder:"请再次输入新密码"},null,512),[[e.vModelText,i.confirmpassword]])]),e.createElementVNode("view",{class:"card-font"})])],2)),[[e.vShow,t.show]])}},[["__scopeId","data-v-f1eeda70"]]),S=s(e.defineComponent({__name:"menusettings",props:{isShow:{type:Boolean,required:!0}},emits:["jump","leftarray"],setup(t,{emit:l}){const a=e.ref(null),i=e.ref(!1),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),c=l,s=e.ref(["雷达扫描","扫码添加","手动录入","修改密码","切换机构","检查更新","用户协议","隐私政策"]),v=e.ref(!0);e.ref("");const p=e.ref(!1),g=e.ref(uni.getStorageSync("orgList")),h=t;e.watch((()=>h.isShow),((e,t)=>{!t&&e&&(v.value=!1,setTimeout((()=>v.value=!0),50))}));const y=e.ref(!1),w=e.ref(""),N=e=>{var t;switch(e){case 0:c("leftarray",10);break;case 1:c("leftarray",11);break;case 2:c("leftarray",12);break;case 3:r.value=!0;break;case 4:1==g.value.length?uni.showToast({title:"您目前只绑定了一个机构。如需切换,请先申请新的机构。",icon:"none",duration:2e3}):(w.value=uni.getStorageSync("serverUrl"),p.value=!0);break;case 5:i.value=!0,null==(t=a.value)||t.check_update();break;case 6:n.value=!0,o.value=!0,y.value=!1,setTimeout((()=>{y.value=!0}),50);break;case 7:n.value=!0,o.value=!1,y.value=!1,setTimeout((()=>{y.value=!0}),50)}},f=()=>{i.value&&uni.showToast({title:"已经是最新版了",icon:"none",duration:2e3})};return(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{"scroll-y":"",class:"index-content-other",style:e.normalizeStyle(v.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"array-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.slice(0,3),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>N(l)},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:`/static/index/settings/${l}.png`},null,8,["src"]),e.createElementVNode("view",{class:"left-font"},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"array-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.slice(3,5),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>N(l+3)},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:`/static/index/settings/${l+3}.png`},null,8,["src"]),e.createElementVNode("view",{class:"left-font"},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"array-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.slice(5,8),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>N(l+5)},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:`/static/index/settings/${l+5}.png`},null,8,["src"]),e.createElementVNode("view",{class:"left-font"},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"text-center"},[e.createElementVNode("view",null,e.toDisplayString(uni.getStorageSync("orgListName")),1)]),e.createVNode(b,{show:r.value,onClose:l[0]||(l[0]=e=>r.value=!1)},null,8,["show"]),e.createVNode(u,{ref_key:"zyupgrade",ref:a,noticeflag:!0,theme:"blue",h5preview:!1,oldversion:"1.0.0",appstoreflag:!0,autocheckupdate:!0,onShowupdateTips:f},null,512),n.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-any",style:e.normalizeStyle(y.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onTouchmove:l[1]||(l[1]=e.withModifiers((()=>{}),["prevent"])),onClick:l[2]||(l[2]=e=>n.value=!1)},null,32),e.createElementVNode("view",{class:"box-any",onTouchmove:l[3]||(l[3]=e.withModifiers((()=>{}),["prevent"]))},[e.createElementVNode("view",{class:"title-left"},[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"back-font"},"NU护理单元隐私信息保护政策")),o.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"back-font"},"NU护理单元用户服务协议")):e.createCommentVNode("",!0)]),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0})),o.value?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],32)],4)):e.createCommentVNode("",!0)],4),p.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bg-mask"},[e.createElementVNode("view",{onClick:l[4]||(l[4]=e.withModifiers((()=>{}),["stop"])),class:"white-select"},[e.createElementVNode("view",{class:"big-font"}," 请选择您的机构 "),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"small-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"small-select",style:e.normalizeStyle(w.value==t.serverUrl?{color:"#0083FF",borderColor:"#0083FF"}:{}),onClick:e=>(e=>{uni.setStorageSync("serverUrl",e.serverUrl),uni.setStorageSync("orgListName",e.departName),uni.setStorageSync("orgListCode",e.orgCode),uni.showToast({title:"切换机构成功",icon:"success",duration:2e3}),p.value=!1})(t)},e.toDisplayString(t.departName),13,["onClick"])))),256))])])])])):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-6d17c644"]]),B=(e,t)=>{const l=`https://www.focusnu.com/devopsapi/iot/tplink/cameraInfo/motionCtrl?deviceIndex=${uni.getStorageSync("saveinit")?uni.getStorageSync("saveinit"):5}&direction=${e}&startOrNot=${t}&speed=1`;return g({url:l,method:"get"})},T=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/queryPadPageList`,method:"get",data:e}),C=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/employessInfo/getPermissionList`,method:"get",data:e}),D=s(e.defineComponent({__name:"homelist",props:{arrlist:{type:Array,required:!0},cardtarget:{type:String},show:{type:Boolean},leftarraytarget:{type:Number}},emits:["config"],setup(t,{emit:l}){const a=l;return(l,i)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"list"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.arrlist,((l,i)=>{var n;return e.openBlock(),e.createElementBlock("view",{class:"cardm",key:i,onClick:e=>{a("config",i)},style:e.normalizeStyle({border:t.cardtarget===i?"4rpx dashed #1083F8":"4rpx solid transparent",backgroundColor:t.cardtarget===i?"#F9FCFF":""})},[e.createElementVNode("view",{class:"hldyimg tp"},[e.createElementVNode("image",{src:1==t.leftarraytarget?"/static/shouye/hldy.png":"/static/shouye/ck.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"name"},[e.createTextVNode(e.toDisplayString("1"==l.areaFlag?"":"库房")+" ",1),"1"!=l.areaFlag?(e.openBlock(),e.createElementBlock("text",{key:0})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.nuName),1)]),l.nuId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ids"}," NUID:"+e.toDisplayString(l.nuId),1)):e.createCommentVNode("",!0),1==t.leftarraytarget?(e.openBlock(),e.createElementBlock("view",{key:1},["0"==l.status||"3"==l.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"kx"},"空闲")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"bkx"},[e.createElementVNode("image",{src:x,mode:"aspectFill"}),e.createElementVNode("text",null,e.toDisplayString(null==(n=l.elderInfo)?void 0:n.name),1)]))])):(e.openBlock(),e.createElementBlock("view",{key:2},[e.createElementVNode("view",{class:"bkx"},[e.createElementVNode("image",{src:"/static/shouye/yg.png",mode:"aspectFill"}),e.createElementVNode("text",null,e.toDisplayString(l.fzr),1)])]))],12,["onClick"])})),128))])])]))}}),[["__scopeId","data-v-fadabf99"]]),z="/static/index/leida/play.png",I="/static/index/quxiao.png",F=()=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/queryPadPageList?token=${uni.getStorageSync("token")}`,method:"get"}),_=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/queryinfoByBuId?nuId=${e}`,method:"get"}),M=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/updateBaseInfo`,method:"post",data:e}),$=s(e.defineComponent({__name:"leida",setup(t){const l=e.ref(!0),a=e.ref(0),i=e.ref(100),n=e.ref(-1),o=e.ref(""),r=e.ref(),c=e.ref(!1),s=e.ref([{url:"/static/index/leida/00.png",targetUrl:"/static/index/leida/01.png",target:!1},{url:"/static/index/leida/10.png",targetUrl:"/static/index/leida/11.png",target:!1},{url:"/static/index/leida/20.png",targetUrl:"/static/index/leida/21.png",target:!1},{url:"/static/index/leida/30.png",targetUrl:"/static/index/leida/31.png",target:!1}]),u=e.ref([]),d=e.ref([]),m=e.ref(0);let v=null;function p(e){return"function"==typeof globalThis.requestAnimationFrame?globalThis.requestAnimationFrame(e):setTimeout((()=>e(Date.now())),16)}function g(e){var t;return"number"==typeof e?e:(null==(t=globalThis.performance)?void 0:t.now)?globalThis.performance.now():Date.now()}let h=null;function y(e){const t=g(e);h||(h=t);const n=(t-h)/1e3;h=t,l.value&&(a.value=(a.value+i.value*n)%360),v=p(y)}function w(){100===S.value&&(B(),N())}function N(){l.value=!l.value,l.value?(h=g(),V()):b()}const f=e.computed((()=>({transform:`rotate(${a.value}deg)`}))),k=e.ref([]);let E=null,x=0;function V(){E||(E=setInterval((()=>{!function(){const e=1*Math.random()+5,t=Math.random()*(200-e),l=Math.random()*(200-e),a=x++,i={id:a,size:e,left:t,top:l,color:"#02a9ff",opacity:0};k.value.push(i),setTimeout((()=>{i.opacity=1}),20),setTimeout((()=>{i.opacity=0,setTimeout((()=>{k.value=k.value.filter((e=>e.id!==a))}),500)}),2e3)}()}),500))}function b(){clearInterval(E),E=null}const S=e.ref(0);function B(){let e=Date.now(),t=Math.floor(30*Math.random())+30,l=!1,a=Math.floor(500*Math.random())+300,i=0;F().then((e=>{e.result.records.forEach((e=>{e.menu=JSON.parse(JSON.stringify(s.value)),e.isNew=!0})),d.value=[],d.value.push(...e.result.records),function(){const e=d.value.length;u.value=[];const t=Array.from({length:e},(()=>Math.random())),l=t.reduce(((e,t)=>e+t),0),a=t.map((e=>e/l*4e3));let i=0;for(let n=0;n<e;n++)i+=a[n],setTimeout((async()=>{u.value.push(d.value[n]),u.value.length}),i)}()})),setTimeout((function n(){let o=Date.now()-e;if(!l&&S.value>=t&&(l=!0,i=Date.now()),l){if(!(Date.now()-i>=a))return void setTimeout(n,16);l=!1}let r=Math.min(o/4e3,1);S.value=Math.floor(100*r),100===S.value&&N(),S.value<100&&setTimeout(n,16)}),16)}e.onMounted((()=>{T()}));const T=()=>{h=g(),v=p(y),V(),B()},C=e.ref(-1),D=e.ref(-1);return e.onBeforeUnmount((()=>{var e;null!=v&&(e=v,"function"==typeof globalThis.cancelAnimationFrame?globalThis.cancelAnimationFrame(e):clearTimeout(e)),b()})),(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"index-content-other"},[e.createElementVNode("view",{class:"left-contain"},[e.createElementVNode("view",{class:"blue-bgc"},[e.createElementVNode("image",{class:"all-img",src:"/static/index/leida/leftbgc.png"}),e.createElementVNode("image",{class:"all-img",style:{width:"90%",height:"90%","margin-top":"5%","margin-left":"5%"},src:"/static/index/leida/bigball.png"}),e.createElementVNode("view",{class:"inset-img",style:e.normalizeStyle(f.value)},[e.createElementVNode("image",{class:"all-img",style:{"z-index":"2"},src:"/static/index/leida/biao.png"}),e.createElementVNode("image",{class:"all-img",style:{"z-index":"1"},src:"/static/index/leida/ball.png"}),e.createElementVNode("image",{class:"all-img",src:"/static/index/leida/shallow.png"})],4),e.createElementVNode("view",{class:"ball-layer"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(t=>(e.openBlock(),e.createElementBlock("view",{key:t.id,class:"ball",style:e.normalizeStyle({width:t.size+"px",height:t.size+"px",top:t.top+"px",left:t.left+"px",backgroundColor:t.color,opacity:t.opacity})},null,4)))),128))])]),e.createElementVNode("view",{style:{width:"100%",display:"flex","flex-direction":"column","align-items":"center"}},[e.createElementVNode("view",{class:e.normalizeClass(["blue-button",-1==C.value?"zerotarget":""]),style:{"margin-top":"0"},onClick:w},e.toDisplayString((S.value,"扫描")),3),e.createElementVNode("view",{class:"progress-wrap"},[e.createElementVNode("view",{class:"progress-inner",style:e.normalizeStyle({width:S.value+"%"})},null,4)]),e.createElementVNode("view",{class:"progress-text"},e.toDisplayString(S.value)+"%",1)])]),e.createElementVNode("view",{class:"other"},[e.createElementVNode("scroll-view",{ref:"scrollViewRef","scroll-y":"",class:"other-father","scroll-top":m.value},[e.createElementVNode("view",{class:"card-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["card",[C.value===a&&-1===D.value?"zerotarget":"",{"fade-in":t.isNew}]]),key:a,onAnimationend:e=>{t.isNew=!1}},[e.createElementVNode("view",{class:"main-title"},[e.createElementVNode("view",{class:"main-title-font",style:{"font-weight":"600","font-size":"40rpx"}},e.toDisplayString(t.nuName),1),e.createElementVNode("view",{class:e.normalizeClass(["video-father",C.value===a&&0===D.value?"zerotarget":""])},[e.createElementVNode("image",{class:"edit-img",onClick:l[0]||(l[0]=()=>{}),src:z})],2)]),e.createElementVNode("view",{class:e.normalizeClass(["blue-button",C.value===a&&1===D.value?"zerotarget":""]),style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:e=>{return l=a,i=t,n.value=l,o.value=i.nuName,r.value=i.nuId,c.value=!1,void setTimeout((()=>{c.value=!0}),50);var l,i}}," 重命名 ",10,["onClick"]),e.createElementVNode("view",{class:"card-tags"},[e.createElementVNode("view",{style:{"margin-left":"80rpx"}}," NUID:"+e.toDisplayString(t.nuId),1)]),e.createElementVNode("view",{class:"play-img"}," 护理单元 ")],42,["onAnimationend"])))),128)),-1!==n.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-any",style:e.normalizeStyle(c.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onClick:l[1]||(l[1]=e=>n.value=-1)}),e.createElementVNode("view",{class:"rename-father"},[e.createElementVNode("view",{class:"rename-title"}," 重命名 "),e.createElementVNode("view",{style:{width:"100%","margin-left":"5rpx","margin-bottom":"20rpx"}}," NUID:"+e.toDisplayString(r.value),1),e.createElementVNode("view",{class:"rename-input"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",placeholder:"请重新命名","onUpdate:modelValue":l[2]||(l[2]=e=>o.value=e)},null,512),[[e.vModelText,o.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:I,onClick:l[3]||(l[3]=e=>o.value="")},null,512),[[e.vShow,o.value]])]),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"40rpx"},onClick:l[4]||(l[4]=e=>((e,t)=>{if(e){let t={id:u.value[n.value].id,nuName:e};M(t).then((e=>{e.success&&F().then((e=>{e.result.records.forEach((e=>{e.menu=JSON.parse(JSON.stringify(s.value)),e.isNew=!0})),u.value=[],u.value.push(...e.result.records)}))}))}n.value=-1})(o.value,n.value))}," 确定 ")])],4)):e.createCommentVNode("",!0)])],8,["scroll-top"])]),e.createElementVNode("view",{class:"index-content-down"}," 长春市朝阳区久泰开运养老服务有限公司 ")]))}}),[["__scopeId","data-v-d5ef98e3"]]),L=s(e.defineComponent({__name:"saoma",setup(t){const l=e.ref({});function a(){uni.scanCode({onlyFromCamera:!0,scanType:["qrCode","barCode"],success(e){e.result&&(i.value=e.result,_(i.value).then((e=>{e.success?l.value=e.result:uni.showToast({title:e.message,icon:"none"})})))},fail(e){uni.showToast({title:"扫码失败:"+e.errMsg,icon:"none"})}})}const i=e.ref(""),n=e.ref(!1),o=e.ref(!1),r=e.ref(""),c=e.ref(""),s=()=>{if(r.value){let e={id:l.value.id,nuName:r.value};M(e).then((e=>{e.success&&_(i.value).then((e=>{e.success?(l.value=e.result,n.value=!1,o.value=!1):uni.showToast({title:e.message,icon:"none"})}))}))}};return(t,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other"},[e.createElementVNode("view",{class:"saomiao"},[l.value.nuName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card"},[e.createElementVNode("view",{class:"main-title"},[e.createElementVNode("view",{class:"main-title-font",style:{"font-weight":"600","font-size":"40rpx"}},e.toDisplayString(l.value.nuName),1),e.createElementVNode("view",{class:"video-father"},[e.createElementVNode("image",{class:"edit-img",onClick:i[0]||(i[0]=()=>{}),src:z})])]),e.createElementVNode("view",{style:{display:"flex","justify-content":"center",width:"100%"}},[e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:i[1]||(i[1]=e=>l.value={})}," 关闭 "),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:i[2]||(i[2]=e=>(r.value=l.value.nuName,c.value=l.value.nuId,o.value=!1,n.value=!0,void setTimeout((()=>{o.value=!0}),50)))}," 重命名 ")]),e.createElementVNode("view",{class:"card-tags"},[e.createElementVNode("view",{style:{"margin-left":"80rpx"}}," NUID:"+e.toDisplayString(l.value.nuId),1)]),e.createElementVNode("view",{class:"play-img"}," 护理单元 ")])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("view",{class:"popup-any",style:e.normalizeStyle(o.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onClick:i[3]||(i[3]=e=>o.value=!1)}),e.createElementVNode("view",{class:"rename-father"},[e.createElementVNode("view",{class:"rename-title"}," 重命名 "),e.createElementVNode("view",{style:{width:"100%","margin-left":"5rpx","margin-bottom":"20rpx"}}," NUID:"+e.toDisplayString(c.value),1),e.createElementVNode("view",{class:"rename-input"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",placeholder:"请重新命名","onUpdate:modelValue":i[4]||(i[4]=e=>r.value=e),onConfirm:s},null,544),[[e.vModelText,r.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:I,onClick:i[5]||(i[5]=e=>r.value="")},null,512),[[e.vShow,r.value]])]),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"40rpx"},onClick:s}," 确定 ")])],4),[[e.vShow,n.value]])]),l.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:0,class:"big-bgc",src:"/static/kuai.png"})),l.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"big-img",onClick:a},[e.createElementVNode("image",{style:{width:"100%",height:"100%"},src:"/static/sao.png"}),e.createElementVNode("view",{class:"big-font"}," 点击扫描区域二维码 ")])),l.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:2,class:"big-QR",src:"/static/qr.png",onClick:a})),e.createElementVNode("view",{class:"index-content-down"}," 长春市朝阳区久泰开运养老服务有限公司 ")],64))}}),[["__scopeId","data-v-87c81c01"]]),j="/static/x.png",U=s(e.defineComponent({__name:"input",setup(t){const l=e.ref(""),a=e.ref({}),i=()=>{l.value&&_(l.value).then((e=>{e.success?a.value=e.result:uni.showToast({title:e.message,icon:"none"})}))},n=e.ref(!1),o=e.ref(!1),r=e.ref(""),c=e.ref(""),s=()=>{if(r.value){let e={id:a.value.id,nuName:r.value};M(e).then((e=>{e.success&&_(l.value).then((e=>{e.success?(a.value=e.result,n.value=!1):uni.showToast({title:e.message,icon:"none"})}))}))}};return(t,u)=>(e.openBlock(),e.createElementBlock("view",{class:"index-content-other"},[e.createElementVNode("view",{class:"saomiao"},[a.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"big-ball"},[e.createElementVNode("view",{class:"ball"})])),a.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:1,class:"left-img",src:"/static/click.png"})),a.value.nuName?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,class:"saoma-input",password:!1,"onUpdate:modelValue":u[0]||(u[0]=e=>l.value=e),placeholder:"请手动录入NUID"},null,512)),[[e.vModelText,l.value]]),a.value.nuName?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("image",{key:3,class:"right-img",src:j,onClick:u[1]||(u[1]=e=>l.value="")},null,512)),[[e.vShow,l.value]]),a.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:4,class:"blue-button",onClick:i}," 确定 ")),a.value.nuName?(e.openBlock(),e.createElementBlock("view",{key:5,class:"card"},[e.createElementVNode("view",{class:"main-title"},[e.createElementVNode("view",{class:"main-title-font",style:{"font-weight":"600","font-size":"40rpx"}},e.toDisplayString(a.value.nuName),1),e.createElementVNode("view",{class:"video-father"},[e.createElementVNode("image",{class:"edit-img",onClick:u[2]||(u[2]=()=>{}),src:z})])]),e.createElementVNode("view",{style:{display:"flex","justify-content":"center",width:"100%"}},[e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:u[3]||(u[3]=e=>a.value={})}," 关闭 "),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:u[4]||(u[4]=e=>(r.value=a.value.nuName,c.value=a.value.nuId,o.value=!1,n.value=!0,void setTimeout((()=>{o.value=!0}),50)))}," 重命名 ")]),e.createElementVNode("view",{class:"card-tags"},[e.createElementVNode("view",{style:{"margin-left":"80rpx"}}," NUID:"+e.toDisplayString(a.value.nuId),1)]),e.createElementVNode("view",{class:"play-img"}," 护理单元 ")])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("view",{class:"popup-any",style:e.normalizeStyle(o.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onClick:u[5]||(u[5]=e=>o.value=!1)}),e.createElementVNode("view",{class:"rename-father"},[e.createElementVNode("view",{class:"rename-title"}," 重命名 "),e.createElementVNode("view",{style:{width:"100%","margin-left":"5rpx","margin-bottom":"20rpx"}}," NUID:"+e.toDisplayString(c.value),1),e.createElementVNode("view",{class:"rename-input"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",placeholder:"请重新命名","onUpdate:modelValue":u[6]||(u[6]=e=>r.value=e),onConfirm:s},null,544),[[e.vModelText,r.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:I,onClick:u[7]||(u[7]=e=>r.value="")},null,512),[[e.vShow,r.value]])]),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"40rpx"},onClick:s}," 确定 ")])],4),[[e.vShow,n.value]]),e.createElementVNode("image",{class:"big-bgc",src:"/static/bgc.png"}),e.createElementVNode("image",{class:"big-img",src:"/static/qiu.png"}),e.createElementVNode("view",{class:"index-content-down"}," 长春市朝阳区久泰开运养老服务有限公司 ")]))}}),[["__scopeId","data-v-30b2ea41"]]),P=s(e.defineComponent({__name:"index",setup(t){const l=e.ref(null),a=e.ref(["","","","","",""]),i=e.ref(0);c((()=>!0));const o=e.ref([]);n((()=>{var e;null==(e=l.value)||e.check_update(),T().then((e=>{o.value=e.result.records}))}));const r=e=>o.value.filter((t=>Number(t.areaFlag)-1==e)),s=e=>{h.value===e?d(e):h.value=e},d=e=>{var t;uni.setStorageSync("nuId",g.value[e].nuId),uni.setStorageSync("nuName",g.value[e].nuName),uni.setStorageSync("elderId",g.value[e].elderInfo?null==(t=g.value[e].elderInfo)?void 0:t.id:null),uni.setStorageSync("NUall",g.value[e]),1===i.value?uni.navigateTo({url:"/pages/NursingNew/index"}):2===i.value&&uni.navigateTo({url:"/pages/Warehouse/warehome"})},m=e.ref(0),v=e=>{m.value=e},p=e.ref(!1),g=e.ref([]),h=e.ref(-1);return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"all"},[e.createElementVNode("view",{class:"all-title"},[e.createElementVNode("view",{class:"rentou"},[e.createElementVNode("view",{class:"rentou-left"},[e.createElementVNode("image",{class:"rentou-left-img",src:x})]),e.createElementVNode("view",{class:"rentou-right"},e.toDisplayString(uni.getStorageSync("realname")),1)]),e.withDirectives(e.createElementVNode("view",{class:"lingdang"},[e.createElementVNode("image",{class:"lingdang-img",src:"/static/shouye/lingdang.png"}),e.createElementVNode("view",{class:"hongdian"})],512),[[e.vShow,!i.value]])]),e.createElementVNode("view",{class:"all-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{5!==e?(h.value=-1,1===e?g.value=r(0):2===e&&(g.value=r(2)),i.value=e,m.value=0):p.value=!0})(l)},[e.createElementVNode("view",{class:"menu-one",style:e.normalizeStyle(i.value===l?{backgroundColor:"#fff"}:{})},[e.createElementVNode("image",{class:"menu-one-img",src:`/static/shouye/menu${l}.png`},null,8,["src"])],4)],8,["onClick"])))),128))]),e.createVNode(V,{show:p.value,onClose:n[0]||(n[0]=e=>p.value=!1)},null,8,["show"]),e.createElementVNode("view",{class:"right-content"},[e.withDirectives(e.createElementVNode("view",{class:"yanfazhong",style:{"font-size":"40rpx","margin-top":"-10vh"}}," 研发中... ",512),[[e.vShow,!i.value]]),e.withDirectives(e.createElementVNode("view",{class:"yanfazhong",style:{"font-size":"40rpx","margin-top":"-10vh"}}," 研发中... ",512),[[e.vShow,3==i.value]]),e.withDirectives(e.createElementVNode("view",{class:"componentall"},[e.createVNode(S,{isShow:4==i.value,onLeftarray:v},null,8,["isShow"])],512),[[e.vShow,4==i.value&&0==m.value]]),e.withDirectives(e.createElementVNode("view",{class:"componentall",style:{"margin-top":"-2vh"}},[10==m.value?(e.openBlock(),e.createBlock(e.unref($),{key:0})):e.createCommentVNode("",!0),11==m.value?(e.openBlock(),e.createBlock(e.unref(L),{key:1})):e.createCommentVNode("",!0),12==m.value?(e.openBlock(),e.createBlock(e.unref(U),{key:2})):e.createCommentVNode("",!0)],512),[[e.vShow,m.value>9]]),e.withDirectives(e.createElementVNode("view",{class:"componentall"},[e.createVNode(e.unref(D),{arrlist:g.value,leftarraytarget:i.value,onConfig:s},null,8,["arrlist","leftarraytarget"])],512),[[e.vShow,1==i.value||2==i.value]])]),e.createVNode(u,{ref_key:"zyupgrade",ref:l,noticeflag:!0,theme:"blue",h5preview:!1,oldversion:"1.0.0",appstoreflag:!0,autocheckupdate:!0},null,512)]))}}),[["__scopeId","data-v-e67c3981"]]);class A{constructor(){this.recordModule=null,this.eventModule=null,this.isRecording=!1,this.recordTime=0,this.recordTimer=null,this.eventListeners=new Map,this.init()}init(){try{this.recordModule=t("Record-Module"),this.eventModule=t("RecordEvent-Module"),l("log","at pages/recording/recorder.js:23","¼<><C2BC>ģ<EFBFBD><C4A3><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>ɹ<EFBFBD>")}catch(e){l("error","at pages/recording/recorder.js:25","¼<><C2BC>ģ<EFBFBD><C4A3><EFBFBD>ʼ<EFBFBD><CABC>ʧ<EFBFBD><CAA7>:",e)}}start(e={}){return new Promise(((t,a)=>{if(!this.recordModule)return void a(new Error("¼<><C2BC>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"));if(this.isRecording)return void a(new Error("<22>Ѿ<EFBFBD><D1BE><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>"));const i={width:720,height:1280,bitRate:4e6,fileName:null,recordAudio:!0,...e};l("log","at pages/recording/recorder.js:52","<22><>ʼ¼<CABC><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:",i),this.recordModule.startRecording(i,(e=>{l("log","at pages/recording/recorder.js:55","<22><>ʼ¼<CABC><C2BC><EFBFBD><EFBFBD><EFBFBD>:",e),0===e.code&&e.success?(this.isRecording=!0,this.startTimer(),this.emit("start",{options:i}),t({success:!0,message:"<22><>ʼ¼<CABC><C2BC><EFBFBD>ɹ<EFBFBD>",data:e})):a(new Error(e.message||"<22><>ʼ¼<CABC><C2BC>ʧ<EFBFBD><CAA7>"))}))}))}stop(){return new Promise(((e,t)=>{this.recordModule?this.isRecording?(l("log","at pages/recording/recorder.js:92","ֹͣ¼<D6B9><C2BC>"),this.recordModule.stopRecording((a=>{l("log","at pages/recording/recorder.js:95","ֹͣ¼<D6B9><C2BC><EFBFBD><EFBFBD><EFBFBD>:",a),this.isRecording=!1,this.stopTimer(),0===a.code&&a.success?(this.emit("stop",{}),e({success:!0,message:"ֹͣ¼<D6B9><C2BC><EFBFBD>ɹ<EFBFBD>",data:a})):t(new Error(a.message||"ֹͣ¼<D6B9><C2BC>ʧ<EFBFBD><CAA7>"))}))):e({success:!0,message:"<22><>ǰû<C7B0><C3BB><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>"}):t(new Error("¼<><C2BC>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}getStatus(){return new Promise(((e,t)=>{this.recordModule?this.recordModule.getRecordingStatus((t=>{this.isRecording=t.isRecording,e({isRecording:t.isRecording,duration:t.duration,filePath:t.filePath,...t})})):t(new Error("¼<><C2BC>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}getFileList(){return new Promise(((e,t)=>{this.recordModule?this.recordModule.getRecordFiles((l=>{0===l.code?e({success:!0,files:l.files,count:l.count}):t(new Error(l.message||"<22><>ȡ<EFBFBD>ļ<EFBFBD><C4BC>б<EFBFBD>ʧ<EFBFBD><CAA7>"))})):t(new Error("¼<><C2BC>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}deleteFile(e){return new Promise(((t,l)=>{this.recordModule?this.recordModule.deleteRecordFile(e,(e=>{0===e.code&&e.success?t({success:!0,message:"ɾ<><C9BE><EFBFBD>ɹ<EFBFBD>"}):l(new Error(e.message||"ɾ<><C9BE>ʧ<EFBFBD><CAA7>"))})):l(new Error("¼<><C2BC>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}checkPermission(){return new Promise(((e,t)=>{this.recordModule?this.recordModule.checkPermission((t=>{e({hasPermission:t.hasPermission,message:t.message,...t})})):t(new Error("¼<><C2BC>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}startListen(){return new Promise(((e,t)=>{this.eventModule?this.eventModule.startListen((l=>{0===l.code&&l.success?(uni.$on("recordEvent",this.handleRecordEvent.bind(this)),e({success:!0,message:"<22><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>"})):t(new Error(l.message||"<22><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>"))})):t(new Error("<22>¼<EFBFBD>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}stopListen(){return new Promise(((e,t)=>{this.eventModule?this.eventModule.stopListen((l=>{0===l.code&&l.success?(uni.$off("recordEvent",this.handleRecordEvent.bind(this)),e({success:!0,message:"ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>"})):t(new Error(l.message||"ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>"))})):t(new Error("<22>¼<EFBFBD>ģ<EFBFBD><C4A3>δ<EFBFBD><CEB4>ʼ<EFBFBD><CABC>"))}))}handleRecordEvent(e){l("log","at pages/recording/recorder.js:248","<22>յ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD>¼<EFBFBD>:",e);const{type:t,data:a}=e;if("onRecordEvent"===t)this.handleNativeEvent(a)}handleNativeEvent(e){const{event:t,filePath:a}=e;switch(t){case"start":l("log","at pages/recording/recorder.js:265","¼<><C2BC><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>ļ<EFBFBD>·<EFBFBD><C2B7>:",a),this.emit("started",{filePath:a});break;case"stop":l("log","at pages/recording/recorder.js:270","¼<><C2BC>ֹͣ<CDA3><D6B9><EFBFBD>ļ<EFBFBD>·<EFBFBD><C2B7>:",a),this.emit("stopped",{filePath:a})}}startTimer(){this.recordTime=0,this.recordTimer=setInterval((()=>{this.recordTime++,this.emit("timeupdate",{currentTime:this.recordTime})}),1e3)}stopTimer(){this.recordTimer&&(clearInterval(this.recordTimer),this.recordTimer=null,this.recordTime=0)}formatTime(e){const t=Math.floor(e/3600),l=Math.floor(e%3600/60),a=e%60;return t>0?`${t.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${l.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}on(e,t){this.eventListeners.has(e)||this.eventListeners.set(e,[]),this.eventListeners.get(e).push(t)}off(e,t){if(this.eventListeners.has(e)){const l=this.eventListeners.get(e),a=l.indexOf(t);a>-1&&l.splice(a,1)}}emit(e,t){this.eventListeners.has(e)&&this.eventListeners.get(e).forEach((a=>{try{a(t)}catch(i){l("error","at pages/recording/recorder.js:338",`ִ<><D6B4><EFBFBD>¼<EFBFBD> ${e} <20>Ļص<C4BB>ʧ<EFBFBD><CAA7>:`,i)}}))}destroy(){this.stop(),this.stopListen(),this.eventListeners.clear(),this.recordModule=null,this.eventModule=null}}let q=null;const O=s({data:()=>({recorder:null,isRecording:!1,recordTime:0,recordTimer:null,message:""}),onLoad(){this.initRecorder()},onUnload(){this.cleanup()},methods:{async initRecorder(){try{this.recorder=(q||(q=new A),q),await this.recorder.startListen(),l("log","at pages/recording/recorder.vue:59","录屏器初始化成功")}catch(e){l("error","at pages/recording/recorder.vue:61","初始化失败:",e),this.showMessage("录屏功能初始化失败"+e)}},async toggleRecording(){this.isRecording?await this.stopRecord():await this.startRecord()},async startRecord(){try{this.showMessage("开始录制...");const e={width:1280,height:720,bitRate:4e6,recordAudio:!0};await this.recorder.start(e),this.isRecording=!0,this.recordTime=0,this.startTimer(),this.showMessage("录制已开始")}catch(e){l("error","at pages/recording/recorder.vue:96","开始录制失败:",e),this.showMessage("开始录制失败: "+e.message)}},async stopRecord(){try{this.showMessage("停止录制..."),await this.recorder.stop(),this.isRecording=!1,this.stopTimer(),this.showMessage("录制已停止")}catch(e){l("error","at pages/recording/recorder.vue:114","停止录制失败:",e),this.showMessage("停止录制失败: "+e.message)}},startTimer(){this.stopTimer(),this.recordTimer=setInterval((()=>{this.recordTime++}),1e3)},stopTimer(){this.recordTimer&&(clearInterval(this.recordTimer),this.recordTimer=null)},formatTime(e){const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},showMessage(e){this.message=e,setTimeout((()=>{this.message=""}),3e3)},cleanup(){this.stopTimer(),this.recorder&&this.recorder.destroy()}}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",{class:"simple-recorder"},[e.createElementVNode("view",{class:e.normalizeClass(["simple-record-btn",{recording:n.isRecording}]),onClick:l[0]||(l[0]=(...e)=>o.toggleRecording&&o.toggleRecording(...e))},[e.createElementVNode("view",{class:"btn-icon"},[n.isRecording?(e.openBlock(),e.createElementBlock("view",{key:1,class:"icon-stop"},"■")):(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-start"},"●"))]),e.createElementVNode("text",{class:"btn-text"},e.toDisplayString(n.isRecording?"停止录制":"开始录制"),1)],2),n.isRecording?(e.openBlock(),e.createElementBlock("view",{key:0,class:"recording-time"},[e.createElementVNode("text",null,e.toDisplayString(o.formatTime(n.recordTime)),1)])):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("view",{key:1,class:"status-message"},[e.createElementVNode("text",null,e.toDisplayString(n.message),1)])):e.createCommentVNode("",!0)])}]]),Y=()=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getServiceTree`,method:"get"}),R=()=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/getServiceTree`,method:"get"}),W=()=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/getServiceTree`,method:"get"}),J=(e,t)=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getNclist?nuId=${e}&elderId=${t}`,method:"get"}),Q=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/addBatch`,method:"post",data:e}),G=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/addDirective`,method:"post",data:e}),X=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/addInstant`,method:"post",data:e}),H=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/deleteDirective`,method:"post",data:e}),Z=e=>g({url:`${uni.getStorageSync("serverUrl")}//api/pad/care/directive/deleteInstant`,method:"post",data:e}),K=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/editDirective`,method:"post",data:e}),ee=s(e.defineComponent({__name:"newanimationpage",setup(t){c((()=>!0));const l=e.ref(!1),a=e.ref(null),i=e.ref([]),r=e.ref(!1);e.ref(!1);const s=e.ref(""),d=e.ref(""),m=e.computed((()=>{const e=(s.value||"").length;return 10===e?"1.3vw":e<10?"1.5vw":e<=15?"1.1vw":"0.9vw"}));o((()=>{l.value=!1})),n((()=>{var e,t;setTimeout((()=>{l.value=!0}),200),null==(e=a.value)||e.check_update(),T().then((e=>{i.value=e.result.records})),s.value=uni.getStorageSync("orgListName"),g({url:`${uni.getStorageSync("serverUrl")}/sys/sysDepart/queryDepartTreeSync`,method:"get",data:t}).then((e=>{e.result[0].picUrl?d.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"+e.result[0].picUrl:d.value=""}))}));const v=e=>i.value.filter((t=>Number(t.areaFlag)-1==e)),p=D("/static/index/warehouse/newindexhome/","gate",5,"png",0,!1),h=D("/static/index/warehouse/newindexhome/","door",11,"png",0,!1),y=D("/static/index/warehouse/newindexhome/","Front",2,"png",1,!1),w=D("/static/index/warehouse/newindexhome/","Front",2,"png",3,!1),N=D("/static/index/warehouse/newindexhome/","Operator",8,"png",1,!1),f=[...N,...N.slice(0,-1).reverse()],k=D("/static/index/warehouse/newindexhome/","lamp",2,"png",1,!1),E=D("/static/index/warehouse/newindexhome/","service",8,"png",0,!1),x=[...E,...E.slice(0,-1).reverse()],b=D("/static/index/warehouse/newindexhome/cler","cler1-",24,"png",1,!1),S=D("/static/index/warehouse/newindexhome/","printer",13,"png",1,!1);e.onMounted((()=>{Y().then((e=>{uni.setStorageSync("saveTree0",e),R().then((e=>{uni.setStorageSync("saveTree1",e)})),W().then((e=>{uni.setStorageSync("saveTree2",e)}))}))}));const B=e.ref(0);e.ref("");const C=e=>{var t,l;if(B.value=e,0==e){let e=v(0)[0];if(!e)return void uni.showToast({title:"暂无单元数据",icon:"error",duration:1500});uni.setStorageSync("nuId",e.nuId),uni.setStorageSync("nuName",e.nuName),uni.setStorageSync("elderId",e.elderInfo?null==(t=e.elderInfo)?void 0:t.id:null),uni.setStorageSync("NUall",e),uni.navigateTo({url:"/pages/NursingNew/index"})}if(1==e&&uni.navigateTo({url:"/pages/recording/recorder"}),3===e&&uni.navigateTo({url:"/pages/controlroom/index"}),4==e){let e=v(2)[0];if(!e)return void uni.showToast({title:"暂无库房数据",icon:"error",duration:1500});uni.setStorageSync("nuId",e.nuId),uni.setStorageSync("nuName",e.nuName),uni.setStorageSync("elderId",e.elderInfo?null==(l=e.elderInfo)?void 0:l.id:null),uni.setStorageSync("NUall",e),uni.navigateTo({url:"/pages/Warehouse/index/index"})}6==e&&uni.navigateTo({url:"/pages/watch/settings/settings"}),7==e&&uni.navigateTo({url:"/pages/watch/settings/settings"}),8==e&&(r.value=!0)};function D(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}return(t,i)=>{const n=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"home"},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/backdro.jpg",mode:"scaleToFill"})]),e.createElementVNode("view",{class:"store tp",onClick:i[0]||(i[0]=e=>C(4))},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/store.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"store-font",onClick:i[1]||(i[1]=e=>C(4))},[e.createTextVNode(" 库房 "),e.createElementVNode("view",{class:"font-ball"},[e.createElementVNode("view",{class:"ball-ball"},[e.createElementVNode("view",{class:"fin-ball"})])])]),e.createElementVNode("view",{class:"unit-font",onClick:i[2]||(i[2]=e=>C(0))},[e.createTextVNode(" 护理单元 "),e.createElementVNode("view",{class:"font-ball"},[e.createElementVNode("view",{class:"ball-ball"},[e.createElementVNode("view",{class:"fin-ball"})])])]),e.createElementVNode("view",{class:"back-font"},[e.createTextVNode(" 后勤 "),e.createElementVNode("view",{class:"font-ball"},[e.createElementVNode("view",{class:"ball-ball"},[e.createElementVNode("view",{class:"fin-ball"})])])]),e.createElementVNode("view",{class:"office-font",onClick:i[3]||(i[3]=e=>C(1))},[e.createTextVNode(" 行政办公室 "),e.createElementVNode("view",{class:"font-ball"},[e.createElementVNode("view",{class:"ball-ball"},[e.createElementVNode("view",{class:"fin-ball"})])])]),e.createElementVNode("view",{class:"fontroom-font"},[e.createTextVNode(" 服务大厅 "),e.createElementVNode("view",{class:"font-ball"},[e.createElementVNode("view",{class:"ball-ball"},[e.createElementVNode("view",{class:"fin-ball"})])])]),e.createElementVNode("view",{class:"storeman tp"},[e.createVNode(n,{width:"4vw",height:"7vw",interval:250,links:f,playing:l.value,loop:!0},null,8,["playing"])]),e.createElementVNode("view",{class:"worker tp"},[e.createVNode(n,{width:"4.5vw",height:"6vw",interval:250,links:x,playing:l.value,loop:!0},null,8,["playing"])]),e.createElementVNode("view",{class:"line tp"},[e.createVNode(n,{width:"100vw",height:"100vh",interval:500,links:e.unref(k),playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"unit",onClick:i[4]||(i[4]=e=>C(0))},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/un.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"unit-text",style:e.normalizeStyle({fontSize:m.value})},e.toDisplayString(s.value),5),e.createElementVNode("view",{class:"unit-image"},[e.createElementVNode("image",{class:"all-home",src:d.value?d.value:"/static/index/indeximage.png",mode:"aspectFit"},null,8,["src"])]),e.createElementVNode("view",{class:"office",onClick:i[5]||(i[5]=e=>C(1))},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/office.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"officer tp",onClick:i[6]||(i[6]=e=>C(1))},[e.createVNode(n,{width:"14vw",height:"13vw",interval:250,links:e.unref(b),playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"Print tp"},[e.createVNode(n,{width:"5vw",height:"5vw",interval:300,links:e.unref(S),playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"fontend tp"},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/reception.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"fontendtable tp"},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/reception2.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"peopleleft tp"},[e.createVNode(n,{width:"7vw",height:"8vw",interval:550,links:e.unref(y),playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"peopleright tp"},[e.createVNode(n,{width:"7vw",height:"8vw",interval:600,links:e.unref(w),playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"door tp"},[e.createVNode(n,{width:"17vw",height:"16vw",interval:200,links:[...e.unref(h),...e.unref(h).slice().reverse()],playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"ondoor tp"},[e.createVNode(n,{width:"5vw",height:"6vw",interval:300,links:e.unref(p),playing:l.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"fontroom tp"},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newindexhome/receive.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"button-setting",onClick:i[7]||(i[7]=e=>C(7))},[e.createElementVNode("image",{class:"button-img",src:"/static/index/setting.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"button-back",onClick:i[8]||(i[8]=e=>C(8))},[e.createElementVNode("image",{class:"button-img",src:"/static/index/back.png",mode:"aspectFit"})]),e.createVNode(V,{show:r.value,onClose:i[9]||(i[9]=e=>r.value=!1)},null,8,["show"]),e.createVNode(u,{ref_key:"zyupgrade",ref:a,noticeflag:!0,theme:"blue",h5preview:!1,oldversion:"1.0.0",appstoreflag:!0,autocheckupdate:!0},null,512)])}}}),[["__scopeId","data-v-e3aca052"]]),te="/static/nocamera.png",le="/static/index/camera/back.png",ae=s(e.defineComponent({__name:"joysticknew",props:{getblue:{type:Boolean,default:!1},movebottom:{type:Number,default:30},moveright:{type:Number,default:60},pao:{type:Boolean,default:!0},notext:{type:Boolean,default:!1}},emits:["movecard"],setup(t,{emit:l}){const a=l,i=e.ref(-1);let n=null,o=null,r=!1;const c=e.ref(-1),s=e.reactive({x:0,y:0}),u=e.ref(!1),d=e.ref(!1),m=e.ref(0),v=uni.upx2px(175),p=uni.upx2px(350);uni.upx2px(-50);const g=uni.upx2px(100),h=uni.getSystemInfoSync().windowHeight-g-p,y=t,w=e.ref(!1),N=e.ref(0);function f(e,t){if(!r){if(x(),i.value=e,a("movecard",e),(null==t?void 0:t.touches)&&t.touches.length){const e=t.touches[0];b(e.pageX,e.pageY)}d.value=!1,m.value++,c.value=e,setTimeout((()=>{c.value=-1}),300),setTimeout((()=>{d.value=!0}),16),n=setTimeout((()=>{i.value=-1,n=null}),300)}}function k(e,t){V(),r=!0,u.value=!0,c.value=e;const l=((null==t?void 0:t.touches)||[])[0];l&&b(l.pageX,l.pageY),i.value=e,a("movecard",e),o=setInterval((()=>{i.value=e,a("movecard",e)}),500)}function E(){x(),V(),r=!1,u.value=!1,i.value=-1,c.value=-1}function x(){n&&(clearTimeout(n),n=null)}function V(){o&&(clearInterval(o),o=null)}function b(e,t){let l=e,a=t-h-50+y.movebottom/2;const i=l-v,n=a-v;if(Math.sqrt(i*i+n*n)>v){const e=Math.atan2(n,i);l=v+v*Math.cos(e),a=v+v*Math.sin(e)}s.x=l,s.y=a}function S(e){var t;if(!r)return;const l=((null==(t=e.detail)?void 0:t.touches)||e.touches||[])[0];l&&b(l.pageX,l.pageY)}return e.ref(0),e.watch((()=>y.getblue),(e=>{})),e.onBeforeUnmount((()=>{})),(l,a)=>(e.openBlock(),e.createElementBlock("view",{class:"move-circle",style:e.normalizeStyle({bottom:`${t.movebottom}rpx`,right:`${t.moveright}rpx`}),onTouchmove:S,onTouchend:E,onTouchcancel:E},[e.withDirectives(e.createElementVNode("image",{src:"/static/index/camera/arrow1.png",class:"move-circle-all"},null,512),[[e.vShow,-1==c.value||4==c.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/index/camera/arrow3.png",class:"move-circle-all"},null,512),[[e.vShow,3==c.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/index/camera/arrow5.png",class:"move-circle-all"},null,512),[[e.vShow,2==c.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/index/camera/arrow4.png",class:"move-circle-all"},null,512),[[e.vShow,0==c.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/index/camera/arrow2.png",class:"move-circle-all"},null,512),[[e.vShow,1==c.value]]),w.value?(e.openBlock(),e.createElementBlock("view",{class:"pulse-circle",key:N.value})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"click-box-top",onClick:a[0]||(a[0]=e=>f(0,e)),onLongpress:a[1]||(a[1]=e=>k(0,e))},null,32),e.createElementVNode("view",{class:"click-box-left",onClick:a[2]||(a[2]=e=>f(3,e)),onLongpress:a[3]||(a[3]=e=>k(3,e))},null,32),e.createElementVNode("view",{class:"click-box-bottom",onClick:a[4]||(a[4]=e=>f(2,e)),onLongpress:a[5]||(a[5]=e=>k(2,e))},null,32),e.createElementVNode("view",{class:"click-box-right",onClick:a[6]||(a[6]=e=>f(1,e)),onLongpress:a[7]||(a[7]=e=>k(1,e))},null,32),e.createElementVNode("view",{class:"click-box-center",onClick:a[8]||(a[8]=e=>f(4,e)),onLongpress:a[9]||(a[9]=e=>k(4,e))},null,32)],36))}}),[["__scopeId","data-v-b2325a59"]]),ie=s(e.defineComponent({__name:"index",setup(t){const l=e.ref([]);r((()=>{l.value=y})),c((()=>!0)),e.ref(null);const a=e.ref(-1),i=e.ref(-1),s=e.ref(!1);e.ref(null);const u=e.ref(null),d=e.ref(0),m=e.ref(3),v=[{name:"左右翻转",url:"/static/index/camera/800.png",target:"/static/index/camera/801.png"},{name:"上下翻转",url:"/static/index/camera/810.png",target:"/static/index/camera/811.png"},{name:"中心翻转",url:"/static/index/camera/820.png",target:"/static/index/camera/821.png"},{name:"不翻转",url:"/static/index/camera/830.png",target:"/static/index/camera/831.png"}],p=["原图","全景拉伸","四分屏","180°全景","360°全景"],g=e.ref([]),h=["截图","录制","对讲","静音","预警","关闭","图片","视频","清晰度","翻转"],y=["截图","录制","对讲","静音","预警","展开"],w=e.ref(0),N=e.ref(5),f=e.ref(0);function k(e){const[t,l]=e.split(":").map(Number);return 60*t+l}const E=e.ref({startTime:"",endTime:"",typeName:"",immediateFile:""});let x=0;const V=e.ref(0);const b=e.ref(-1),S=(e,t)=>{if(b.value!==t||!t){if(b.value=t,null==e?void 0:e.elderServerEntityList){const t=function(e,t){const l=k(t);let a=null,i=1/0;return e.forEach((e=>{const t=k(e.startTime);let n=Math.abs(t-l);n>720&&(n=1440-n),n<i&&(i=n,a=e)})),a}(null==e?void 0:e.elderServerEntityList,ee.value);E.value=t||{startTime:"",endTime:"",typeName:"",immediateFile:""}}else E.value={startTime:"",endTime:"",typeName:"",immediateFile:""};m.value=3,g.value=[],w.value=0,l.value=y,uni.$emit("monitor:killView"),null!==(null==e?void 0:e.cameraInfo)&&(null==e?void 0:e.cameraInfo[0].deviceName)?(uni.$emit("monitor:isshow",!0),setTimeout((()=>{uni.$emit("monitor:changeinit",null==e?void 0:e.cameraInfo[0].deviceIndex)}),100)):uni.$emit("monitor:isshow",!1)}};function C(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const D=C("/static/index/newindex/curve","curve_",9,"png",1,!1);e.ref([...D,...[...D].reverse()]);const z=C("/static/index/newindex/curve","breathe_",9,"png",1,!1);e.ref([...z,...[...z].reverse()]),e.ref([{name:"王金福",url:"/static/index/watch/people0.png"},{name:"李宝田",url:"/static/index/watch/people1.png"}]);const I=e.ref([{name:"省医保",url:"/static/index/watch/00.png",error:!1},{name:"重度失能",url:"/static/index/watch/01.png",error:!1},{name:"欠费",url:"/static/index/watch/03.png",error:!0}]),F=e.ref([{name:"护理单元",url:C("/static/index/watch","nurs_",10,"png",1,!1)},{name:"配务室",url:C("/static/index/watch","delivery_",5,"png",1,!1)},{name:"库房",url:C("/static/index/watch","warehouse_",6,"png",1,!1)},{name:"消洗区",url:C("/static/index/watch","service_",5,"png",1,!1)},{name:"",url:""}]),_=e.ref([{name:"护理单元01",NUID:"2508000001",url:C("/static/index/watch","nurs_",10,"png",1,!1),warning:!1,type:0},{name:"护理单元02",NUID:"2508000002",url:C("/static/index/watch","nurs_",10,"png",1,!1),warning:!1,type:0},{name:"护理单元03",NUID:"2508000003",url:C("/static/index/watch","nurs_",10,"png",1,!1),warning:!0,type:0},{name:"仓库01",NUID:"2508000001",url:C("/static/index/watch","warehouse_",6,"png",1,!1),warning:!1,type:1},{name:"配务室",NUID:"2508000001",url:C("/static/index/watch","delivery_",5,"png",1,!1),warning:!1,type:2},{name:"服务大厅",NUID:"2508000001",url:C("/static/index/watch","service_",5,"png",1,!1),warning:!1,type:3}]);e.onMounted((()=>{a.value=0,i.value=0,s.value=!0}));const M=e.ref(0),$=e.ref(-1),L=e.ref(-1),j=e.ref(!1),U=()=>{M.value=-1,$.value=-1,L.value=-1,j.value=!1},P=e=>{!function(e){switch(e){case 0:me(1,0);break;case 1:me(5,1);break;case 2:me(7,2);break;case 3:me(3,3);break;case 4:case 5:N.value=X.value,G.value=!1,X.value=-1,W(),J()}}(e)},A=e.ref(0),q=()=>{var e;A.value=M.value,uni.setStorageSync("nuId",Z.value[A.value].nuId),uni.setStorageSync("nuName",Z.value[A.value].nuName),uni.setStorageSync("elderId",Z.value[A.value].elderInfo?null==(e=Z.value[A.value].elderInfo)?void 0:e.id:null),uni.setStorageSync("NUall",Z.value[A.value]),i.value?2===i.value&&uni.navigateTo({url:"/pages/Warehouse/Warehouse"}):uni.navigateTo({url:"/pages/NursingNew/index"})},O=new Map;e.onBeforeUnmount((()=>{for(const e of O.values())clearTimeout(e);O.clear()}));const Y=e=>{const t=g.value.indexOf(e);-1!==t&&g.value.splice(t,1)},R=e.ref(!1),W=H((()=>{var e;return null==(e=u.value)?void 0:e.moveSecondUp()}),400),J=H((()=>function(){var e;null==(e=u.value)||e.startchange(),0===N.value&&(f.value,uni.$emit("monitor:toggleVolume"));1===N.value&&(f.value?uni.$emit("monitor:stopTalk"):uni.$emit("monitor:openTalk"));2===N.value&&uni.$emit("monitor:doSnapshot");3===N.value&&(f.value?uni.$emit("monitor:stopRecord"):uni.$emit("monitor:startRecord"));4===N.value&&(f.value||(X.value=N.value,N.value=-1,G.value=!0));5===N.value&&Q.value!==f.value&&(Q.value=f.value,uni.$emit("monitor:changeQuality"));6===N.value&&uni.$emit("monitor:switchDisplay",f.value);7===N.value&&(3===f.value?uni.$emit("monitor:flipImage",6):uni.$emit("monitor:flipImage",f.value));8===N.value&&(f.value?uni.$emit("monitor:stopAlarm"):uni.$emit("monitor:startAlarm"))}()),700),Q=e.ref(0),G=e.ref(!1),X=e.ref(-1);function H(e,t=1e3){let l=!1;return()=>{l||(e(),l=!0,setTimeout((()=>{l=!1}),t))}}const Z=e.computed((()=>(a.value=-1,setTimeout((()=>{a.value=0}),50),_.value.filter((e=>Number(e.areaFlag)-1===i.value))))),K=()=>{uni.navigateTo({url:"/pages/watch/settings/settings"})},ee=e.ref(""),ie=e.ref(""),ne=e.ref("");let oe=null;const re=e=>String(e).padStart(2,"0"),ce=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];function se(){const e=new Date;ee.value=`${re(e.getHours())}:${re(e.getMinutes())}`,ie.value=`${e.getMonth()+1}-${e.getDate()}`,ne.value=ce[e.getDay()]}n((()=>{se(),oe=setInterval(se,1e3),T().then((e=>{_.value=e.result.records,_.value.forEach((e=>{switch(e.areaFlag){case"1":e.url=C("/static/index/watch","nurs_",10,"png",1,!1);break;case"2":e.url=C("/static/index/watch","delivery_",5,"png",1,!1);break;case"3":e.url=C("/static/index/watch","warehouse_",6,"png",1,!1);break;case"4":e.url=C("/static/index/watch","service_",5,"png",1,!1)}})),S(Z.value[M.value],M.value),setTimeout((()=>{a.value=A.value,M.value=A.value,A.value=0}),100)}))})),o((()=>{oe&&(clearInterval(oe),oe=null)}));let ue=-1;const de={};function me(e,t){-1!==ue&&ue!==t&&ve(ue),ue=t,B(e,1),de[t]&&clearTimeout(de[t]),de[t]=setTimeout((()=>{ve(t)}),550)}function ve(e){if(-1===e)return;let t=0;switch(e){case 0:t=1;break;case 1:t=5;break;case 2:t=7;break;case 3:t=3}B(t,0).then((e=>{})),clearTimeout(de[e]),de[e]=null,ue===e&&(ue=-1)}function pe(e){const t=e instanceof Date?e:function(e){if(e instanceof Date)return e;if("string"!=typeof e)throw new Error("birth must be string or Date");const t=e.match(/(\d{4})\D+(\d{1,2})\D+(\d{1,2})/);if(!t)throw new Error("无法解析的日期格式");return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))}(e),l=new Date;let a=l.getFullYear()-t.getFullYear();return(l.getMonth()<t.getMonth()||l.getMonth()===t.getMonth()&&l.getDate()<t.getDate())&&(a-=1),a}const ge=()=>{};return(t,n)=>{var o,r,c,s,u;const N=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",{class:"view"},[e.createElementVNode("view",{class:"view-left"},[e.createElementVNode("view",{class:"title-father",onClick:ge},[e.createElementVNode("image",{class:"title-img",src:"/static/index/watch/uni.png"}),e.createElementVNode("view",{class:"title-font"}," 护理单元 ")]),e.createElementVNode("view",{class:"zhezhao-top"}),e.createElementVNode("view",{class:"zhezhao-bottom"}),e.createElementVNode("scroll-view",{class:"menus-father","scroll-y":"","scroll-top":d.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(["menu",{warning:"1"==t.izWarning,target:l===M.value}]),style:e.normalizeStyle([l===a.value?{backgroundColor:"#fff"}:{},M.value===l?{backgroundColor:"#ddf0ff"}:{}]),onClick:e=>{a.value=l,U(),M.value=l,function(e,t){const l=Date.now();l-x<500&&V.value===t?q():S(e,t),V.value=t,x=l}(t,l)}},[e.createElementVNode("view",{class:"menu-img"},[e.createVNode(N,{width:"55rpx",height:"55rpx",links:t.url,playing:a.value===l},null,8,["links","playing"])]),e.createElementVNode("view",{style:{"margin-left":"10rpx"}},[e.createElementVNode("view",{style:e.normalizeStyle([{"font-size":"28rpx",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",width:"270rpx"},l===a.value?{color:"#017DE9 "}:{}])},e.toDisplayString(t.nuName),5)])],14,["onClick"])))),128)),e.createElementVNode("view",{style:{height:"45rpx"}})],8,["scroll-top"])]),e.createElementVNode("view",{class:"view-right"},[e.createElementVNode("view",{class:"scroll-vi"},[e.createElementVNode("view",{class:"zhezhao-left"}),e.createElementVNode("view",{class:"zhezhao-right"}),e.createElementVNode("scroll-view",{"scroll-x":"true",style:{width:"66%",height:"100%"}},[e.createElementVNode("view",{style:{display:"flex","align-items":"center","margin-top":"3rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(["menu",{target:l===$.value}]),style:e.normalizeStyle($.value===l?{backgroundColor:"#ddf0ff"}:{}),onClick:e=>{i.value=l,(e=>{U(),$.value=e,S(Z.value[0],0)})(l)}},[t.url?(e.openBlock(),e.createBlock(N,{key:0,links:t.url,playing:i.value===l},null,8,["links","playing"])):e.createCommentVNode("",!0),t.url?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(["menu-font",{zoom:i.value===l}]),style:e.normalizeStyle(i.value===l?{color:"#008FF5"}:{})},e.toDisplayString(t.name),7)):e.createCommentVNode("",!0),t.url?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx"},src:"/static/index/watch/more.png"})]))],14,["onClick"])))),128))])]),e.createElementVNode("view",{class:"right-father"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"60rpx","margin-right":"15rpx"}},e.toDisplayString(ee.value),1),e.createElementVNode("view",{class:"",style:{"font-weight":"600","margin-right":"30rpx","font-size":"25rpx"}},[e.createElementVNode("view",null,e.toDisplayString(ie.value),1),e.createElementVNode("view",null,e.toDisplayString(ne.value),1)]),e.createElementVNode("view",{class:e.normalizeClass({targetbutton:j.value}),style:{display:"flex","align-items":"center"}},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:"/static/index/newindex/curve/shezhi.png",onClick:K}),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10rpx"},onClick:K}," 设置 ")],2)])]),e.createElementVNode("view",{class:"big-bgc"},[e.createElementVNode("view",{style:{width:"100%",height:"100%","background-color":"rgba(226, 227, 231, 0.5)",position:"relative"}},[e.createElementVNode("view",{style:{position:"absolute",top:"40%",left:"50%",transform:"translate(-50%,-50%)","text-align":"center","z-index":"1"}},[e.createElementVNode("image",{style:{width:"600rpx",height:"600rpx"},src:te}),e.createElementVNode("view",{style:{color:"#4D5561","font-size":"32rpx",position:"absolute",left:"50%",bottom:"100rpx",transform:"translateX(-50%)"}}," 暂无视频内容显示 ")])])]),e.createElementVNode("view",{class:"picture"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,((t,l)=>e.createElementVNode("view",{class:"picture-card",key:l,style:e.normalizeStyle({color:w.value===l?"#1486EB":""}),onClick:e=>(e=>{switch(U(),L.value=e,w.value=e,e){case 0:uni.$emit("monitor:switchDisplay",0);break;case 1:uni.$emit("monitor:switchDisplay",4);break;case 2:uni.$emit("monitor:switchDisplay",1);break;case 3:uni.$emit("monitor:switchDisplay",2);break;case 4:uni.$emit("monitor:switchDisplay",3)}})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["bgc-card",{target:l===L.value}]),style:e.normalizeStyle({background:w.value===l?"#E2EDFC":""})},[e.createElementVNode("image",{style:{width:"90rpx",height:"90rpx"},src:`/static/index/picture/${l}${w.value===l?1:0}.png`},null,8,["src"])],6),e.createTextVNode(" "+e.toDisplayString(t),1)],12,["onClick"]))),64))]),e.createElementVNode("view",{class:"right-right"},[0===i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"red-kuang"},[(null==(o=Z.value[a.value])?void 0:o.elderInfo)?(e.openBlock(),e.createElementBlock("image",{key:0,style:{width:"80rpx",height:"95rpx","margin-left":"40rpx","margin-top":"0rpx"},src:"/static/index/watch/laotai.png"})):e.createCommentVNode("",!0),(null==(r=Z.value[a.value])?void 0:r.elderInfo)?(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("view",{style:{"margin-left":"20rpx",display:"flex","align-items":"center",width:"100%",position:"relative"}},[e.createElementVNode("view",{class:"font-weight"},e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.name:""),1),e.createElementVNode("view",{class:"blue-bgc",style:{position:"absolute",right:"10rpx",top:"-10rpx"}}," 当日指令 ")]),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"20rpx","margin-top":"0rpx"}},[e.createTextVNode(e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.sex:"")+" ",1),e.createElementVNode("text",{style:{"margin-left":"5rpx"}},e.toDisplayString(Z.value[a.value].elderInfo?pe(Z.value[a.value].elderInfo.dateOfBirth):"")+"岁 ",1)]),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"20rpx","margin-top":"0rpx"}}," 入住时间:"+e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.createTime.slice(0,10):""),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),1===i.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"red-kuang"},[(null==(c=Z.value[a.value])?void 0:c.elderInfo)?(e.openBlock(),e.createElementBlock("image",{key:0,style:{width:"110rpx",height:"140rpx","margin-left":"40rpx","margin-top":"-10rpx"},src:"/static/index/watch/laotou.png"})):e.createCommentVNode("",!0),(null==(s=Z.value[a.value])?void 0:s.elderInfo)?(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("view",{style:{"margin-left":"20rpx",display:"flex","align-items":"center","margin-bottom":"5rpx","margin-top":"25rpx",height:"60rpx"}},[e.createElementVNode("view",{class:"font-weight"},e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.name:""),1),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"10rpx"}},e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.sex:"")+" "+e.toDisplayString(Z.value[a.value].elderInfo?pe(Z.value[a.value].elderInfo.dateOfBirth):"")+"岁 ",1)]),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"20rpx","margin-top":"25rpx"}}," 入职时间:"+e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.createTime.slice(0,10):""),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),0===i.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"states-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["states",t.error?"warning":""]),key:l},[e.createElementVNode("image",{style:{width:"35rpx",height:"35rpx"},src:t.url},null,8,["src"]),e.createElementVNode("view",{style:{color:"#555555","margin-left":"2rpx","font-size":"23rpx"}},e.toDisplayString(t.name),1)],2)))),128))])):e.createCommentVNode("",!0),1===i.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"states-father"},[e.createElementVNode("view",{class:"phone-number"},[e.createElementVNode("image",{class:"bgc-image",src:"/static/index/watch/phonebgc.png"}),e.createElementVNode("image",{style:{width:"20rpx",height:"35rpx","margin-left":"40rpx"},src:"/static/index/watch/phone.png"}),e.createElementVNode("view",{class:"font-phone"},[(null==(u=Z.value[a.value])?void 0:u.elderInfo)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(Z.value[a.value].elderInfo?Z.value[a.value].elderInfo.guardianPhone:""),1)):e.createCommentVNode("",!0)]),e.createElementVNode("image",{class:"phone-ball",src:"/static/index/watch/phoneball.png"})])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"big-view"},[e.createElementVNode("view",{class:"font-weight"},e.toDisplayString(E.value.startTime)+" - "+e.toDisplayString(E.value.endTime),1),e.createElementVNode("view",{class:"pao"},[e.createElementVNode("image",{style:{width:"100%",height:"100%",position:"absolute",top:"0",left:"0"},src:"/static/index/watch/pao.png"}),e.createElementVNode("view",{style:{"font-size":"20rpx","z-index":"1"}}," 待进行 ")]),e.createElementVNode("view",{class:"juzhong",style:{"z-index":"2","margin-top":"50rpx"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx"},src:`https://www.focusnu.com/nursingunit101/sys/common/static/${E.value.immediateFile}`},null,8,["src"])]),e.createElementVNode("view",{style:{"font-size":"28rpx","padding-top":"50rpx"}},e.toDisplayString(E.value.typeName),1)]),e.createElementVNode("view",{class:"bottom-view"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"button-father",onClick:e=>(e=>{switch(e){case 0:uni.$emit("monitor:doSnapshot"),g.value.includes(e)||g.value.push(e),O.has(e)&&clearTimeout(O.get(e));const t=setTimeout((()=>{const t=g.value.indexOf(e);-1!==t&&g.value.splice(t,1),O.delete(e)}),500);O.set(e,t);break;case 1:g.value.includes(e)?(uni.$emit("monitor:stopRecord"),Y(e)):(uni.$emit("monitor:startRecord"),g.value.push(e));break;case 2:g.value.includes(e)?(uni.$emit("monitor:stopTalk"),Y(e)):(uni.$emit("monitor:openTalk"),g.value.push(e));break;case 3:g.value.includes(e)?(uni.$emit("monitor:toggleVolume"),Y(e)):(uni.$emit("monitor:toggleVolume"),g.value.push(e));break;case 4:g.value.includes(e)?(uni.$emit("monitor:stopAlarm"),Y(e)):(uni.$emit("monitor:startAlarm"),g.value.push(e));break;case 5:g.value.includes(e)?(l.value=y,Y(e)):(l.value=h,g.value.push(e)),R.value=!1;break;case 6:case 7:g.value.includes(e)?Y(e):g.value.push(e);break;case 8:g.value.includes(e)?(uni.$emit("monitor:changeQuality"),Y(e)):(uni.$emit("monitor:changeQuality"),g.value.push(e));break;case 9:R.value=!0}})(a)},[e.createElementVNode("view",{class:"bottom-button",style:e.normalizeStyle({backgroundColor:g.value.includes(a)?"#DDE9F0":""})},[e.createElementVNode("image",{style:{width:"70%",height:"70%"},src:`/static/index/camera/${a}${g.value.includes(a)?1:0}.png`},null,8,["src"])],4),e.createElementVNode("view",{style:e.normalizeStyle([{"font-size":"25rpx"},{color:g.value.includes(a)?"#0E86EA":""}])},e.toDisplayString(t),5)],8,["onClick"])))),256)),e.withDirectives(e.createElementVNode("view",{class:"jump-white"},[e.createElementVNode("view",{style:{display:"flex","justify-content":"space-around",height:"100rpx",width:"100%","align-items":"center"}},[e.createElementVNode("view",{class:""}," 翻转 "),e.createElementVNode("image",{style:{width:"40rpx",height:"40rpx"},src:le,onClick:n[0]||(n[0]=e=>R.value=!1)})]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(v,((t,l)=>e.createElementVNode("view",{class:"jump-item",key:l,onClick:e=>(e=>{m.value=e,3===e?(uni.$emit("monitor:flipImage",6),Y(9)):(uni.$emit("monitor:flipImage",e),g.value.push(9))})(l),style:e.normalizeStyle({backgroundColor:m.value===l?"#E5E8EE":""})},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-right":"10rpx","margin-left":"-10rpx"},src:m.value===l?t.target:t.url},null,8,["src"]),e.createElementVNode("view",{style:e.normalizeStyle({color:m.value===l?"#0E86EA":""})},e.toDisplayString(t.name),5)],12,["onClick"]))),64))],512),[[e.vShow,R.value]])])])]),e.withDirectives(e.createVNode(ae,{onMovecard:P},null,512),[[e.vShow,!g.value.includes(5)]])])}}}),[["__scopeId","data-v-bfe42110"]]),ne=s(e.defineComponent({__name:"full",setup(t){const l=e.ref([]),a=e.ref({fzrHeadPath:"",fzr:"",fzrTel:""});r((()=>{l.value=p,setTimeout((()=>{const e=uni.getStorageSync("NUall");a.value=e,uni.$emit("fullmonitor:killView"),null!==e.cameraInfo&&e.cameraInfo[0].deviceName?(uni.$emit("fullmonitor:isshow",!0),setTimeout((()=>{uni.$emit("fullmonitor:changeinit",e.cameraInfo[0].deviceIndex)}),100)):uni.$emit("fullmonitor:isshow",!1)}),500)}));const i=e.ref(-1),n=e.ref(-1),o=e.ref(!1),c=e.ref(!1);e.ref(null);const s=e.ref(null);e.ref(0);const u=e.ref(3),d=[{name:"左右翻转",url:"/static/index/camera/800.png",target:"/static/index/camera/801.png"},{name:"上下翻转",url:"/static/index/camera/810.png",target:"/static/index/camera/811.png"},{name:"中心翻转",url:"/static/index/camera/820.png",target:"/static/index/camera/821.png"},{name:"不翻转",url:"/static/index/camera/830.png",target:"/static/index/camera/831.png"}],m=["原图","全景拉伸","四分屏","180°全景","360°全景"],v=e.ref([]),p=["截图","录制","对讲","静音","预警","图片","视频","清晰度","翻转","返回"],g=e.ref(0),h=e.ref(5),y=e.ref(0);e.ref({startTime:"",endTime:"",typeName:"",immediateFile:""}),e.onMounted((()=>{i.value=0,n.value=0,o.value=!0,c.value=!0})),e.ref(0),e.ref(-1);const w=e.ref(-1);e.ref(!1);const N=e=>{!function(e){switch(e){case 0:I(1,0);break;case 1:I(5,1);break;case 2:I(7,2);break;case 3:I(3,3);break;case 4:case 5:h.value=T.value,S.value=!1,T.value=-1,x(),V()}}(e)};e.ref(0);const f=new Map;e.onBeforeUnmount((()=>{for(const e of f.values())clearTimeout(e);f.clear()}));const k=e=>{const t=v.value.indexOf(e);-1!==t&&v.value.splice(t,1)},E=e.ref(!1),x=C((()=>{var e;return null==(e=s.value)?void 0:e.moveSecondUp()}),400),V=C((()=>function(){var e;null==(e=s.value)||e.startchange(),0===h.value&&(y.value,uni.$emit("fullmonitor:toggleVolume"));1===h.value&&(y.value?uni.$emit("fullmonitor:stopTalk"):uni.$emit("fullmonitor:openTalk"));2===h.value&&uni.$emit("fullmonitor:doSnapshot");3===h.value&&(y.value?uni.$emit("fullmonitor:stopRecord"):uni.$emit("fullmonitor:startRecord"));4===h.value&&(y.value||(T.value=h.value,h.value=-1,S.value=!0));5===h.value&&b.value!==y.value&&(b.value=y.value,uni.$emit("fullmonitor:changeQuality"));6===h.value&&uni.$emit("fullmonitor:switchDisplay",y.value);7===h.value&&(3===y.value?uni.$emit("fullmonitor:flipImage",6):uni.$emit("fullmonitor:flipImage",y.value));8===h.value&&(y.value?uni.$emit("fullmonitor:stopAlarm"):uni.$emit("fullmonitor:startAlarm"))}()),700),b=e.ref(0),S=e.ref(!1),T=e.ref(-1);function C(e,t=1e3){let l=!1;return()=>{l||(e(),l=!0,setTimeout((()=>{l=!1}),t))}}let D=-1;const z={};function I(e,t){-1!==D&&D!==t&&F(D),D=t,B(e,1),z[t]&&clearTimeout(z[t]),z[t]=setTimeout((()=>{F(t)}),550)}function F(e){if(-1===e)return;let t=0;switch(e){case 0:t=1;break;case 1:t=5;break;case 2:t=7;break;case 3:t=3}B(t,0).then((e=>{})),clearTimeout(z[e]),z[e]=null,D===e&&(D=-1)}return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"view"},[e.createElementVNode("view",{class:"view-right"},[e.createElementVNode("view",{class:"big-bgc"},[e.createElementVNode("view",{style:{width:"100%",height:"100%","z-index":"1",display:"flex","justify-content":"center","align-items":"center","background-color":"rgba(226, 227, 231, 0.5)"}},[e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{style:{width:"600rpx",height:"600rpx"},src:te}),e.createElementVNode("view",{style:{color:"#4D5561","font-size":"32rpx",position:"absolute",left:"50%",bottom:"100rpx",transform:"translateX(-50%)"}}," 暂无视频内容显示 ")])])]),e.createElementVNode("view",{class:"picture"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,((t,l)=>e.createElementVNode("view",{class:"picture-card",key:l,style:e.normalizeStyle({color:g.value===l?"#1486EB":""}),onClick:e=>(e=>{switch(w.value=e,g.value=e,e){case 0:uni.$emit("fullmonitor:switchDisplay",0);break;case 1:uni.$emit("fullmonitor:switchDisplay",4);break;case 2:uni.$emit("fullmonitor:switchDisplay",1);break;case 3:uni.$emit("fullmonitor:switchDisplay",2);break;case 4:uni.$emit("fullmonitor:switchDisplay",3)}})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["bgc-card",{target:l===w.value}]),style:e.normalizeStyle({background:g.value===l?"#E2EDFC":""})},[e.createElementVNode("image",{style:{width:"90rpx",height:"90rpx"},src:`/static/index/picture/${l}${g.value===l?1:0}.png`},null,8,["src"])],6),e.createTextVNode(" "+e.toDisplayString(t),1)],12,["onClick"]))),64))]),e.createElementVNode("view",{class:"right-right"},[e.createElementVNode("view",{class:"bottom-view"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"button-father",onClick:e=>(e=>{switch(e){case 0:uni.$emit("fullmonitor:doSnapshot"),v.value.includes(e)||v.value.push(e),f.has(e)&&clearTimeout(f.get(e));const t=setTimeout((()=>{const t=v.value.indexOf(e);-1!==t&&v.value.splice(t,1),f.delete(e)}),500);f.set(e,t);break;case 1:v.value.includes(e)?(uni.$emit("fullmonitor:stopRecord"),k(e)):(uni.$emit("fullmonitor:startRecord"),v.value.push(e));break;case 2:v.value.includes(e)?(uni.$emit("fullmonitor:stopTalk"),k(e)):(uni.$emit("fullmonitor:openTalk"),v.value.push(e));break;case 3:v.value.includes(e)?(uni.$emit("fullmonitor:toggleVolume"),k(e)):(uni.$emit("fullmonitor:toggleVolume"),v.value.push(e));break;case 4:v.value.includes(e)?(uni.$emit("fullmonitor:stopAlarm"),k(e)):(uni.$emit("fullmonitor:startAlarm"),v.value.push(e));break;case 5:case 6:v.value.includes(e)?k(e):v.value.push(e);break;case 7:v.value.includes(e)?(uni.$emit("fullmonitor:changeQuality"),k(e)):(uni.$emit("fullmonitor:changeQuality"),v.value.push(e));break;case 8:E.value=!0;break;case 9:E.value=!1,uni.navigateBack()}})(l)},[e.createElementVNode("view",{class:"bottom-button",style:e.normalizeStyle({backgroundColor:v.value.includes(l)?"#DDE9F0":""})},[e.createElementVNode("image",{style:{width:"70%",height:"70%"},src:`/static/index/camera/${9==l?5:l>4?l+1:l}${v.value.includes(l)?1:0}.png`},null,8,["src"])],4),e.createElementVNode("view",{style:e.normalizeStyle([{"font-size":"25rpx"},{color:v.value.includes(l)?"#0E86EA":""}])},e.toDisplayString(t),5)],8,["onClick"])))),256)),e.withDirectives(e.createElementVNode("view",{class:"jump-white"},[e.createElementVNode("view",{style:{display:"flex","justify-content":"space-around",height:"100rpx",width:"100%","align-items":"center"}},[e.createElementVNode("view",{class:""}," 翻转 "),e.createElementVNode("image",{style:{width:"40rpx",height:"40rpx"},src:le,onClick:a[0]||(a[0]=e=>E.value=!1)})]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(d,((t,l)=>e.createElementVNode("view",{class:"jump-item",key:l,onClick:e=>(e=>{u.value=e,3===e?(uni.$emit("fullmonitor:flipImage",6),k(8)):(uni.$emit("fullmonitor:flipImage",e),v.value.push(8))})(l),style:e.normalizeStyle({backgroundColor:u.value===l?"#E5E8EE":""})},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-right":"10rpx","margin-left":"-10rpx"},src:u.value===l?t.target:t.url},null,8,["src"]),e.createElementVNode("view",{style:e.normalizeStyle({color:u.value===l?"#0E86EA":""})},e.toDisplayString(t.name),5)],12,["onClick"]))),64))],512),[[e.vShow,E.value]])])])]),e.createVNode(ae,{onMovecard:N})]))}}),[["__scopeId","data-v-98cb18c4"]]),oe=s({__name:"changemenu",emits:["change"],setup(t,{emit:l}){const a=e.ref(-1),i=l,n=e=>{var t;if(a.value==e)return;a.value=e;let l=o.value[e];uni.setStorageSync("nuId",l.nuId),uni.setStorageSync("nuName",l.nuName),uni.setStorageSync("elderId",l.elderInfo?null==(t=l.elderInfo)?void 0:t.id:null),uni.setStorageSync("NUall",l),i("change"),uni.$emit("fullmonitor:killView"),null!==(null==l?void 0:l.cameraInfo)&&(null==l?void 0:l.cameraInfo[0].deviceName)?(uni.$emit("fullmonitor:isshow",!0),setTimeout((()=>{uni.$emit("fullmonitor:changeinit",null==l?void 0:l.cameraInfo[0].deviceIndex)}),100)):uni.$emit("fullmonitor:isshow",!1)},o=e.ref([]);return e.onMounted((()=>{T().then((e=>{o.value=e.result.records,n(0)}))})),(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"right-top"},[e.createElementVNode("view",{class:"top-title"}," 切换机构 "),e.createElementVNode("scroll-view",{class:"top-list","scroll-y":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,l)=>{var i,o,r,c;return e.openBlock(),e.createElementBlock("view",{class:"list-view",style:e.normalizeStyle(a.value===l?{borderColor:"#8DD6FF",backgroundColor:"#F7F7F9"}:{}),key:l,onClick:e=>n(l)},[e.withDirectives(e.createElementVNode("image",{class:"list-img",src:`/static/index/newindex/leftmenu/NU${(null==(i=t.elderInfo)?void 0:i.name)?"blue":"white"}.png`},null,8,["src"]),[[e.vShow,1==t.areaFlag]]),e.withDirectives(e.createElementVNode("image",{class:"list-img",src:`/static/index/newindex/leftmenu/ware${(null==(o=t.elderInfo)?void 0:o.name)?"blue":"white"}.png`},null,8,["src"]),[[e.vShow,3==t.areaFlag]]),e.withDirectives(e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"first-line"},[e.createElementVNode("view",{style:{"font-size":"1.2vw"}},e.toDisplayString(t.nuName),1),e.createElementVNode("view",{class:"first-line-second"},e.toDisplayString((null==(r=t.elderInfo)?void 0:r.name)?"入住":"空闲"),1)]),e.createElementVNode("view",{class:"second-line"}," NUID:"+e.toDisplayString(t.nuId),1)],512),[[e.vShow,1==t.areaFlag]]),e.withDirectives(e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"first-line"},[e.createElementVNode("view",{style:{"font-size":"1.2vw"}},e.toDisplayString(t.nuName),1),e.createElementVNode("view",{class:"first-line-second"},e.toDisplayString((null==(c=t.elderInfo)?void 0:c.name)?"盘点":"正常"),1)]),e.createElementVNode("view",{class:"second-line"}," NUID:"+e.toDisplayString(t.nuId),1)],512),[[e.vShow,3==t.areaFlag]])],12,["onClick"])})),128))])]))}},[["__scopeId","data-v-f5640530"]]),re=s({__name:"history",setup(t){const l=e.ref([]);return e.onMounted((()=>{l.value=uni.getStorageSync("NUall").elderServerEntityList||[]})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"right-top"},[e.createElementVNode("scroll-view",{class:"top-list","scroll-y":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"list-view",key:l},[e.createElementVNode("view",{class:""},e.toDisplayString(t.directiveName),1),e.createElementVNode("view",{class:"card-bottom"},[e.createTextVNode(e.toDisplayString(null==t?void 0:t.startTime)+" - "+e.toDisplayString(null==t?void 0:t.endTime)+" ",1),e.createElementVNode("view",{class:"bottom-blue"}," 待执行 ")])])))),128))])]))}},[["__scopeId","data-v-c43f4d4a"]]),ce=s(e.defineComponent({__name:"index",setup(t){const l=e.ref([]);e.ref({fzrHeadPath:"",fzr:"",fzrTel:""}),r((()=>{l.value=d}));const a=e.ref(-1),i=e.ref(-1),n=e.ref(!1),o=e.ref(!1);e.ref(null);const c=e.ref(null);e.ref(0),e.ref(3);const s=["原图","全景拉伸","四分屏","180°全景","360°全景"],u=e.ref([]),d=["截图","录制","对讲","静音","预警","图片","视频","清晰度","翻转","返回"],m=e.ref(0),v=e.ref(5),p=e.ref(0);e.ref({startTime:"",endTime:"",typeName:"",immediateFile:""}),e.onMounted((()=>{a.value=0,i.value=0,n.value=!0,o.value=!0})),e.ref(0),e.ref(-1);const g=e.ref(-1);e.ref(!1);const h=e=>{!function(e){switch(e){case 0:C(1,0);break;case 1:C(5,1);break;case 2:C(7,2);break;case 3:C(3,3);break;case 4:case 5:v.value=V.value,x.value=!1,V.value=-1,f(),k()}}(e)};e.ref(0);const y=new Map;e.onBeforeUnmount((()=>{for(const e of y.values())clearTimeout(e);y.clear()}));const w=e=>{const t=u.value.indexOf(e);-1!==t&&u.value.splice(t,1)},N=e.ref(!1),f=b((()=>{var e;return null==(e=c.value)?void 0:e.moveSecondUp()}),400),k=b((()=>function(){var e;null==(e=c.value)||e.startchange(),0===v.value&&(p.value,uni.$emit("fullmonitor:toggleVolume"));1===v.value&&(p.value?uni.$emit("fullmonitor:stopTalk"):uni.$emit("fullmonitor:openTalk"));2===v.value&&uni.$emit("fullmonitor:doSnapshot");3===v.value&&(p.value?uni.$emit("fullmonitor:stopRecord"):uni.$emit("fullmonitor:startRecord"));4===v.value&&(p.value||(V.value=v.value,v.value=-1,x.value=!0));5===v.value&&E.value!==p.value&&(E.value=p.value,uni.$emit("fullmonitor:changeQuality"));6===v.value&&uni.$emit("fullmonitor:switchDisplay",p.value);7===v.value&&(3===p.value?uni.$emit("fullmonitor:flipImage",6):uni.$emit("fullmonitor:flipImage",p.value));8===v.value&&(p.value?uni.$emit("fullmonitor:stopAlarm"):uni.$emit("fullmonitor:startAlarm"))}()),700),E=e.ref(0),x=e.ref(!1),V=e.ref(-1);function b(e,t=1e3){let l=!1;return()=>{l||(e(),l=!0,setTimeout((()=>{l=!1}),t))}}let S=-1;const T={};function C(e,t){-1!==S&&S!==t&&D(S),S=t,B(e,1),T[t]&&clearTimeout(T[t]),T[t]=setTimeout((()=>{D(t)}),550)}function D(e){if(-1===e)return;let t=0;switch(e){case 0:t=1;break;case 1:t=5;break;case 2:t=7;break;case 3:t=3}B(t,0).then((e=>{})),clearTimeout(T[e]),T[e]=null,S===e&&(S=-1)}const z=e.ref(!0),I=()=>{z.value=!1,setTimeout((()=>{z.value=!0}),1)};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"view"},[e.createElementVNode("view",{class:"view-right"},[e.createElementVNode("view",{class:"big-bgc"},[e.createElementVNode("view",{style:{width:"100%",height:"100%","z-index":"1",display:"flex","justify-content":"center","align-items":"center","background-color":"rgba(226, 227, 231, 0.5)"}},[e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{style:{width:"600rpx",height:"600rpx"},src:te}),e.createElementVNode("view",{style:{color:"#4D5561","font-size":"32rpx",position:"absolute",left:"50%",bottom:"100rpx",transform:"translateX(-50%)"}}," 暂无视频内容显示 ")])])]),e.createElementVNode("view",{class:"picture"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,((t,l)=>e.createElementVNode("view",{class:"picture-card",key:l,style:e.normalizeStyle({color:m.value===l?"#1486EB":""}),onClick:e=>(e=>{switch(g.value=e,m.value=e,e){case 0:uni.$emit("fullmonitor:switchDisplay",0);break;case 1:uni.$emit("fullmonitor:switchDisplay",4);break;case 2:uni.$emit("fullmonitor:switchDisplay",1);break;case 3:uni.$emit("fullmonitor:switchDisplay",2);break;case 4:uni.$emit("fullmonitor:switchDisplay",3)}})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["bgc-card",{target:l===g.value}]),style:e.normalizeStyle({background:m.value===l?"#E2EDFC":""})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx"},src:`/static/index/picture/${l}${m.value===l?1:0}.png`},null,8,["src"])],6),e.createTextVNode(" "+e.toDisplayString(t),1)],12,["onClick"]))),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.slice(0,4),((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"picture-card",key:l,style:e.normalizeStyle({color:u.value.includes(l)?"#0E86EA":""}),onClick:e=>(e=>{switch(e){case 0:uni.$emit("fullmonitor:doSnapshot"),u.value.includes(e)||u.value.push(e),y.has(e)&&clearTimeout(y.get(e));const t=setTimeout((()=>{const t=u.value.indexOf(e);-1!==t&&u.value.splice(t,1),y.delete(e)}),500);y.set(e,t);break;case 1:u.value.includes(e)?(uni.$emit("fullmonitor:stopRecord"),w(e)):(uni.$emit("fullmonitor:startRecord"),u.value.push(e));break;case 2:u.value.includes(e)?(uni.$emit("fullmonitor:stopTalk"),w(e)):(uni.$emit("fullmonitor:openTalk"),u.value.push(e));break;case 3:u.value.includes(e)?(uni.$emit("fullmonitor:toggleVolume"),w(e)):(uni.$emit("fullmonitor:toggleVolume"),u.value.push(e));break;case 4:u.value.includes(e)?(uni.$emit("fullmonitor:stopAlarm"),w(e)):(uni.$emit("fullmonitor:startAlarm"),u.value.push(e));break;case 5:case 6:u.value.includes(e)?w(e):u.value.push(e);break;case 7:u.value.includes(e)?(uni.$emit("fullmonitor:changeQuality"),w(e)):(uni.$emit("fullmonitor:changeQuality"),u.value.push(e));break;case 8:N.value=!0;break;case 9:N.value=!1,uni.navigateBack()}})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["bgc-card",{target:u.value.includes(l)}]),style:e.normalizeStyle({background:u.value.includes(l)?"#E2EDFC":""})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx"},src:`/static/index/camera/${9==l?5:l>4?l+1:l}${u.value.includes(l)?1:0}.png`},null,8,["src"])],6),e.createTextVNode(" "+e.toDisplayString(t),1)],12,["onClick"])))),128))]),e.createElementVNode("view",{class:"right-right"},[e.createVNode(oe,{onChange:I}),z.value?(e.openBlock(),e.createBlock(re,{key:0})):e.createCommentVNode("",!0)])]),e.createVNode(ae,{moveright:480,movebottom:0,onMovecard:h})]))}}),[["__scopeId","data-v-eb890ee0"]]),se=s(e.defineComponent({__name:"settings",emits:["jump"],setup(t,{emit:l}){const a=e.ref(null),i=e.ref(!1),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),c=e.ref(["雷达扫描","扫码添加","手动录入","修改密码","切换机构","检查更新","用户协议","隐私政策"]);e.ref(!0),e.ref("");const s=e.ref(!1),v=e.ref(uni.getStorageSync("orgList")),p=e.ref(uni.getStorageSync("userInfo")),w=e.ref(!1),N=()=>{uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["camera","album"],success:e=>{let t=JSON.stringify(e.tempFilePaths);uni.compressImage({src:JSON.parse(t)[0],quality:80,success:e=>{p.value.flag=!0,p.value.avatar=e.tempFilePath}})}})},f=()=>{w.value=!1,p.value=uni.getStorageSync("userInfo")},k=()=>{var e;(e={avatar:p.value.avatar,id:p.value.id,employessId:p.value.employessId},g({url:`${uni.getStorageSync("serverUrl")}/sys/user/login/setting/editAvatar`,method:"post",data:e})).then((e=>{e.success&&(uni.setStorageSync("userInfo",p.value),uni.showToast({icon:"success",title:"更新成功!"}),w.value=!1)}))},E=e.ref(!1),x=e.ref(""),V=e=>{var t;switch(e){case 0:uni.navigateTo({url:"/pages/watch/settings/leida"});break;case 1:uni.navigateTo({url:"/pages/watch/settings/saoma"});break;case 2:uni.navigateTo({url:"/pages/watch/settings/input"});break;case 3:r.value=!0;break;case 4:1==v.value.length?uni.showToast({title:"您目前只绑定了一个机构。如需切换,请先申请新的机构。",icon:"none",duration:2e3}):(x.value=uni.getStorageSync("serverUrl"),s.value=!0);break;case 5:i.value=!0,null==(t=a.value)||t.check_update();break;case 6:n.value=!0,o.value=!0,E.value=!1,setTimeout((()=>{E.value=!0}),50);break;case 7:n.value=!0,o.value=!1,E.value=!1,setTimeout((()=>{E.value=!0}),50);break;case 8:p.value.flag=!1,x.value=uni.getStorageSync("serverUrl"),w.value=!0}},S=()=>{i.value&&uni.showToast({title:"已经是最新版了",icon:"none",duration:2e3})};return(t,l)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other"},[e.createElementVNode("view",{class:"index-content-right"}),e.createElementVNode("view",{class:"array-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.slice(0,3),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>V(l)},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:`/static/index/settings/${l}.png`},null,8,["src"]),e.createElementVNode("view",{class:"left-font"},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"array-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.slice(3,5),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>V(l+3)},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:`/static/index/settings/${l+3}.png`},null,8,["src"]),e.createElementVNode("view",{class:"left-font"},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])],8,["onClick"])))),128)),e.createElementVNode("view",{class:"item",onClick:l[0]||(l[0]=e=>V(8))},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:"/static/index/settings/6.png"},null,8,["src"]),e.createElementVNode("view",{class:"left-font"}," 修改头像 ")]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])])]),e.createElementVNode("view",{class:"array-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.slice(5,8),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>V(l+5)},[e.createElementVNode("view",{class:"left-item"},[e.createElementVNode("image",{class:"left-icon",src:`/static/index/settings/${l+5}.png`},null,8,["src"]),e.createElementVNode("view",{class:"left-font"},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"right-item"},[e.createElementVNode("image",{class:"right-icon",src:"/static/index/settings/00.png"},null,8,["src"])])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"text-center"}),e.createVNode(b,{show:r.value,onClose:l[1]||(l[1]=e=>r.value=!1)},null,8,["show"]),e.createVNode(u,{ref_key:"zyupgrade",ref:a,noticeflag:!0,theme:"blue",h5preview:!1,oldversion:"1.0.0",appstoreflag:!0,autocheckupdate:!0,onShowupdateTips:S},null,512),n.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-any",style:e.normalizeStyle(E.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onTouchmove:l[2]||(l[2]=e.withModifiers((()=>{}),["prevent"])),onClick:l[3]||(l[3]=e=>n.value=!1)},null,32),e.createElementVNode("view",{class:"box-any",onTouchmove:l[4]||(l[4]=e.withModifiers((()=>{}),["prevent"]))},[e.createElementVNode("view",{class:"title-left"},[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"back-font"},"NU护理单元隐私信息保护政策")),o.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"back-font"},"NU护理单元用户服务协议")):e.createCommentVNode("",!0)]),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0})),o.value?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],32)],4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"avator guodu",style:e.normalizeStyle(w.value?"opacity: 1":"opacity: 0;z-index: -1")},[e.createElementVNode("text",null,"点击头像更换"),e.createElementVNode("view",{class:"avatorimg",onClick:N},[e.createElementVNode("image",{src:p.value.avatar?p.value.flag?p.value.avatar:x.value+"/sys/common/static/"+p.value.avatar:"/static/shouye/mrtx.png",mode:"aspectFill"},null,8,["src"])]),(null==(i=p.value)?void 0:i.flag)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"butft",onClick:l[5]||(l[5]=e=>{return t=p.value.avatar,void uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:t,name:"file",fileType:"image",formData:{biz:"/touxiangPath"},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);p.value.avatar=t.message,p.value.flag=!1,k()},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}});var t})}," 确定 ")):e.createCommentVNode("",!0)],4),w.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",onClick:f})):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bg-mask"},[e.createElementVNode("view",{onClick:l[6]||(l[6]=e.withModifiers((()=>{}),["stop"])),class:"white-select"},[e.createElementVNode("view",{class:"big-font"}," 请选择您的机构 "),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"small-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"small-select",style:e.normalizeStyle(x.value==t.serverUrl?{color:"#0083FF",borderColor:"#0083FF"}:{}),onClick:e=>(e=>{uni.setStorageSync("serverUrl",e.serverUrl),uni.setStorageSync("orgListName",e.departName),uni.setStorageSync("orgListCode",e.orgCode);let t=uni.getStorageSync("form"),l=Date.now();h(l).then((e=>{t.captcha=e.message,t.checkKey=l,y(t).then((e=>{e.success?(uni.setStorageSync("token",e.result.token),uni.setStorageSync("username",t.username),uni.setStorageSync("realname",e.result.userInfo.realname),uni.setStorageSync("userInfo",e.result.userInfo),Y().then((e=>{uni.setStorageSync("saveTree0",e),R().then((e=>{uni.setStorageSync("saveTree1",e)})),W().then((e=>{uni.setStorageSync("saveTree2",e)})),setTimeout((()=>{uni.showToast({title:"切换机构成功",icon:"success",duration:2e3})}),200)}))):uni.showToast({title:e.message,icon:"none",duration:2e3})}))})),s.value=!1})(t)},e.toDisplayString(t.departName),13,["onClick"])))),256))])])])])):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-edcf20f5"]]),ue="/static/index/card/arrow.png",de="/static/index/card/alarm.png",me="/static/index/card/bj.png",ve="/static/index/card/zw.png",pe="/static/index/newindex/wendu/0.png",ge="/static/index/newindex/wendu/1.png",he="/static/index/newindex/leftmenu/carmera.png",ye="/static/index/card/zanw.png",we="/static/index/procurement/x.png",Ne="/static/index/warehouse/procurement/picking/addphoto.png",fe=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/requestLog/list?column=createTime&order=desc&pageNo=${e.pageNo}&pageSize=${e.pageSize}&cid=${e.cid}&type=${e.type}`,method:"get"}),ke=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/humidDevice/logList?column=createTime&order=desc&pageNo=${e.pageNo}&pageSize=${e.pageSize}&optType=read&sn=${e.sn}`,method:"get"}),Ee=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/humidDevice/jglist?column=createTime&order=desc&pageNo=${e.pageNo}&pageSize=${e.pageSize}&optType=read&sn=${e.sn}`,method:"get"}),xe=e=>g({url:`${uni.getStorageSync("serverUrl")}/services/directivePlan/queryCountByType?nuId=${e.nuId}&elderId=${e.elderId}`,method:"get"}),Ve=e=>g({url:`${uni.getStorageSync("serverUrl")}/services/directivePlanInstant/queryAll?nuId=${e.nuId}&elderId=${e.elderId}`,method:"get"}),be=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderList`,method:"get",data:e}),Se=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderInfoList`,method:"get",data:e}),Be=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/startOrder`,method:"post",data:e}),Te=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/endOrder`,method:"post",data:e}),Ce=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/editSubMp4`,method:"post",data:e}),De=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/editSubPicPath`,method:"post",data:e}),ze=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/employee/queryEmpList`,method:"get",data:e}),Ie=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/transferOrder`,method:"post",data:e}),Fe=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/assistOrder`,method:"post",data:e}),_e=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/generateInstant`,method:"post",data:e}),Me=s(e.defineComponent({__name:"index",props:{isShow:{type:Boolean,required:!0}},emits:["swip","gospecial"],setup(t,{emit:l}){const a=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),i=e.ref(uni.getStorageSync("serverUrl")+"/sys/commonVideo/staticVideo/"),r=e.reactive({pageNo:1,pageSize:10,employeeId:uni.getStorageSync("userInfo").employessId,nuId:uni.getStorageSync("nuId"),workType:5}),c=e.ref(0),s=e.ref(0),u=e=>{var t;"Y"!=(null==(t=ke.value)?void 0:t.izStart)||1!=e?ze({id:uni.getStorageSync("userInfo").id}).then((t=>{s.value=t.result,s.value.forEach((e=>{e.flag=!1})),c.value=e})):uni.showToast({title:"服务中不能转单!",icon:"none"})},d=e.ref(!1),m=()=>{v.value=c.value,1==c.value&&(p.value="确认转单执行?"),2==c.value&&(p.value="确认协助执行?")},v=e.ref(0),p=e.ref("");e.ref([]);const g=e=>{r.nuId=e,be(r).then((e=>{e.result.records.length>0?h(0,e.result.records[0]):ke.value={}}))},h=(e,t)=>{Se({mainId:t.id}).then((e=>{e.result.length>0?ke.value=e.result[0]:ke.value={}}))},y=e.ref(0),w=e.ref(!1),N=e.ref(0),f=e.ref([]),k=e.ref({}),E=(e,t,l)=>{1==l&&e.manuallyPicPath?(f.value=e.manuallyPicPath.split(","),f.value=f.value.filter((e=>""!==e))):2==l&&e.manuallyMp4Path?(f.value=e.manuallyMp4Path.split(","),f.value=f.value.filter((e=>""!==e))):3==l&&e.tplinkPath?(f.value=e.tplinkPath.split(","),f.value=f.value.filter((e=>""!==e))):f.value=[],k.value=e,N.value=l,w.value=!0},x=e=>{let t=new Date,l=t.getFullYear(),a=t.getMonth()+1;uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:e,name:"file",fileType:2==N.value?"video":"image",formData:{biz:l+"/"+a+(1==N.value?"/fwxm/manuallyPicPath":"/fwxm/manuallyMp4Path")},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);f.value.push(t.message),uni.hideLoading()},fail:()=>{uni.hideLoading(),uni.showToast({title:"上传失败",icon:"none"})}})},V=()=>{let e="";f.value.forEach((t=>{e+=t+","})),1==N.value?De({id:k.value.id,manuallyPicPath:e}).then((e=>{e.success&&(N.value=0,w.value=!1,h(0,{id:ke.value.mainId}))})):Ce({id:k.value.id,manuallyMp4Path:e}).then((e=>{e.success&&(N.value=0,w.value=!1,h(0,{id:ke.value.mainId}))}))};e.ref(null);const b=e.ref(0),S=e.ref(!1),B=e.ref(""),C=(e,t)=>{var l,a,i,n,o,r,c,s;if(1==t){if("Y"==(null==(l=ke.value)?void 0:l.izStart)){switch(e){case 0:if(""==(null==(a=ke.value)?void 0:a.serviceContent))return;B.value=null==(i=ke.value)?void 0:i.serviceContent;break;case 1:if(""==(null==(n=ke.value)?void 0:n.mp3File))return;B.value=null==(o=ke.value)?void 0:o.mp3File;break;case 2:if(""==(null==(r=ke.value)?void 0:r.mp4File))return;B.value=null==(c=ke.value)?void 0:c.mp4File}S.value=!0}}else if("Y"==(null==(s=ke.value)?void 0:s.izStart))switch(e){case 3:E(ke.value,0,1);break;case 4:E(ke.value,0,2)}},D=e.ref([]);e.ref(!1);const z=e.ref(0),I=l,F=e=>{var t,l,a;z.value=e;let i=se(0)[e];uni.setStorageSync("nuId",i.nuId),uni.setStorageSync("nuName",i.nuName),uni.setStorageSync("elderId",i.elderInfo?null==(t=i.elderInfo)?void 0:t.id:null),uni.setStorageSync("NUall",i),g(i.nuId),M(i.nuId,null==(l=i.elderInfo)?void 0:l.id),P(i.nuId,null==(a=i.elderInfo)?void 0:a.id),I("swip")},_=e.ref({}),M=(e,t)=>{xe({nuId:e,elderId:t}).then((e=>{_.value=e.result}))},$=e.ref(0),L=e.ref(-1),j=e.ref(0),U=e.ref({}),P=(e,t)=>{Ve({nuId:e,elderId:t}).then((e=>{U.value=e.result,A($.value)}))},A=e=>{$.value=e,0==e&&(j.value=U.value.care),1==e&&(j.value=[]),2==e&&(j.value=U.value.logistics)},q=e.ref(!1),O=e.ref(""),Y=()=>{if(L.value<0)return;let e=0==$.value?1:1==$.value?2:4,t={id:j.value[L.value].id,triggerMode:1,orderType:e};_e(t).then((e=>{e.success?Le.value=!1:(q.value=!0,O.value=e.message)}))};function R(e){const t=parseInt(null==e?void 0:e.slice(0,4),10);return(new Date).getFullYear()-t}const W=e.ref(-1),Q=e.ref(!1);e.ref();const G=e.ref(0);function X(e){G.value=e.detail.scrollTop}const H=e.ref();function Z(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const K=e.ref([{url:"/static/index/newindex/rightmenu/1.png",name:"转单执行"},{url:"/static/index/newindex/rightmenu/2.png",name:"协助执行"}]);e.ref(Z("/static/index/newindex/leftmenu","left",5,"png",0,!1)),e.ref(Z("/static/index/newindex/huli","care",9,"png",0,!1));const ee=Z("/static/index/newindex/curve","curve_",9,"png",1,!1),te=e.ref([...ee,...[...ee].reverse()]),le=Z("/static/index/newindex/curve","breathe_",9,"png",1,!1);e.ref([...le,...[...le].reverse()]);const ae=e.ref(!1),ie=e.ref(""),ne=e.ref(""),oe=e.ref(""),re=e.ref(""),ce=()=>{const e=new Date,t=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0");ne.value=`${t}:${l}`;const a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][e.getDay()];re.value=a;const i=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0");oe.value=`${i}.${n}.${o}`};e.onMounted((()=>{ae.value=!1,setTimeout((()=>{ae.value=!0}),50),ie.value=uni.getStorageSync("realname"),W.value=0,ce(),setInterval(ce,1e3),fe()})),n((()=>{setTimeout((()=>{Q.value=!0}),200)})),o((()=>{Q.value=!1}));const se=e=>D.value.filter((t=>Number(t.areaFlag)-1==e)),fe=()=>{T().then((e=>{D.value=e.result.records,se(0).forEach(((e,t)=>{e.nuId===uni.getStorageSync("NUall").nuId&&(z.value=t,F(z.value))}))}))},ke=e.ref({});e.ref(!1);const Ee=()=>{uni.navigateTo({url:"/pages/watch/full"})},Me=["00","05","10","15","20","25","30","35","40","45","50","55"];e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Me.map((e=>({tagName:e,directiveName:""})))}))));const $e=()=>{I("gospecial",1)},Le=e.ref(!1),je=e.ref([]),Ue=e.ref([]),Pe=e.ref(!1);const Ae=e.ref(-1),qe=e.ref(""),Oe=e.ref(2.2),Ye=(e,t)=>{Ae.value=t,qe.value=function(e){switch(e){case"稳定":return"标准情绪";case"标准":return"标准体重;女100-120,男:120-150";case"焦虑":return"无法控制情绪(哭泣/大笑)";case"超重":return"女超过120,男超过150";case"抑郁":return"有自杀倾向";case"强直":return"四肢承伸直且僵硬无法弯曲状(标识要区分为左右和手脚)";case"暴力":return"有攻击他人倾向";case"偏瘫":return"四肢无知觉且无法支配但是并无僵硬,可弯曲(标识要区分为左右和手脚)";case"恐惧":return"被害妄想";case"佝偻":return"四肢承弯曲且僵硬无法伸直状(标识要区分为左右和手脚)";case"烦躁":return"对服务和对话都不耐烦";case"易怒":return"骂人";case"臆想":return"骗人/说谎,胡言乱语";default:return""}}(e.tagName),Oe.value=function(e){switch(e){case 0:return 2.2;case 1:return 6;case 2:return 9.8;case 3:return 13.4}}(t),Ue.value=[],je.value=[]};return(t,l)=>{var n,o,r,E,T,D,I,M,U,P,W,Z,ee,le,ie,ce,fe,xe,Ve,be,Se,Ce,De,ze,_e,Me,Re,We,Je,Qe,Ge,Xe,He,Ze,Ke,et,tt,lt,at;const it=e.resolveComponent("donghua"),nt=e.resolveComponent("tanchuang"),ot=e.resolveComponent("errorshow"),rt=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other",style:e.normalizeStyle(ae.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("view",{class:"title-card",onClick:$e},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"},e.toDisplayString(null==(n=_.value)?void 0:n.hllFinishedTotal),1),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ue})]),e.createElementVNode("view",{class:"card-spec"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"line-gray"},e.toDisplayString(null==(o=_.value)?void 0:o.hllTotal),1)])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:"/static/index/card/help.png"}),e.createElementVNode("view",{class:"bottom-font"}," 护理 ")])]),e.createElementVNode("view",{class:"title-card",onClick:l[0]||(l[0]=e=>uni.navigateTo({url:"/pages/NursingNew/component/doctorask/medical/medical"}))},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"}," 0 "),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ue})]),e.createElementVNode("view",{class:"card-spec"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"line-gray"}," 0 ")])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:"/static/index/card/doctor.png"}),e.createElementVNode("view",{class:"bottom-font"}," 医疗 ")])]),e.createElementVNode("view",{class:"title-card",onClick:l[1]||(l[1]=e=>uni.navigateTo({url:"/pages/NursingNew/component/doctorask/medical/medical"}))},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"},e.toDisplayString(_.value.hqlFinishedTotal),1),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ue})]),e.createElementVNode("view",{class:"card-spec"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"line-gray"},e.toDisplayString(_.value.hqlTotal),1)])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:"/static/index/card/work.png"}),e.createElementVNode("view",{class:"bottom-font"}," 后勤 ")])]),e.createElementVNode("view",{class:"title-card-right",onClick:l[4]||(l[4]=e=>Le.value=!0)},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"}),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ue})])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:de}),e.createElementVNode("view",{class:"bottom-font"}," 即时 ")]),Le.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bianj"},[e.createElementVNode("image",{src:me,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["jszl guodu",Le.value?"":"jsh0"]),onClick:l[3]||(l[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"tittop"},[e.createElementVNode("view"),e.createTextVNode(" 即时服务指令 ")]),e.createElementVNode("view",{class:"spiw"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["护理","医疗","后勤"],((t,l)=>e.createElementVNode("view",{key:l,class:e.normalizeClass(l==$.value?"act":""),onClick:e=>A(l)},e.toDisplayString(t),11,["onClick"]))),64))]),e.createElementVNode("scroll-view",{class:"scrol","scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass([l==L.value?"act":"","cdk"]),onClick:e=>{var t;(t=l)>-1&&t==L.value?L.value=-1:L.value=t}},[e.createElementVNode("image",{src:L.value!=l?t.netImmediateFile:t.netPreviewFileSmall,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",{style:{"white-space":"nowrap",width:"100%","text-overflow":"ellipsis",overflow:"hidden"}},e.toDisplayString(t.directiveName),1)],10,["onClick"])))),128)),0==j.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"13vw",height:"13vw",margin:"7vw 0 0 23.5vw",display:"block",background:"none"}},[e.createElementVNode("image",{src:ve,mode:"aspectFill",style:{width:"13vw",height:"13vw"}}),e.createElementVNode("view",{style:{width:"100%","text-align":"center","font-weight":"400","font-size":"1.2vw",color:"#555555","margin-top":"-3vw","white-space":"nowrap"}}," 暂无服务指令 ")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"submit"},[e.createElementVNode("view",{onClick:l[2]||(l[2]=e.withModifiers((e=>Le.value=!1),["stop"]))},"取消"),L.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:Y},"确定")):e.createCommentVNode("",!0)])],2)])]),Le.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[5]||(l[5]=e=>Le.value=!1)})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:e.normalizeStyle([{"margin-left":"-30rpx"},(null==(r=ke.value)?void 0:r.startTime)?{}:{filter:"grayscale(60%)"}])},[e.createVNode(it,{width:"1300rpx",height:"900rpx",links:te.value,playing:Q.value,loop:!0,interval:120},null,8,["links","playing"])],4),e.createElementVNode("view",{class:"weight-time"},[(null==(E=ke.value)?void 0:E.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:""},e.toDisplayString(null==(T=ke.value)?void 0:T.startTime.slice(11,16))+" - "+e.toDisplayString(null==(D=ke.value)?void 0:D.endTime.slice(11,16)),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{style:{height:"5vw"}},null,512),[[e.vShow,!(null==(I=ke.value)?void 0:I.startTime)]]),e.withDirectives(e.createElementVNode("view",{class:"pao-father"},[e.createElementVNode("image",{class:"pao-img",src:"/static/index/newindex/states/pao.png"},null,8,["src"]),0==N.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{"z-index":"1"}},e.toDisplayString("N"==(null==(M=ke.value)?void 0:M.izStart)?"待执行":"执行中"),1)):e.createCommentVNode("",!0)],512),[[e.vShow,null==(U=ke.value)?void 0:U.startTime]])]),e.createVNode(nt,{show:3==y.value,font:"是否结束服务指令?",onBack:l[6]||(l[6]=e=>y.value=0),onRight:l[7]||(l[7]=e=>{Te({id:ke.value.id}).then((e=>{e.success&&(y.value=0,g(uni.getStorageSync("nuId")))}))})},null,8,["show"]),0==N.value?(e.openBlock(),e.createElementBlock("image",{key:0,class:"big-img",style:e.normalizeStyle((null==(P=ke.value)?void 0:P.previewFile)?"":"width: 450rpx"),src:(null==(W=ke.value)?void 0:W.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(Z=ke.value)?void 0:Z.previewFile):"/static/index/newindex/wendu/2.png",mode:"aspectFill"},null,12,["src"])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[(null==(ee=ke.value)?void 0:ee.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"server-name"},e.toDisplayString(null==(le=ke.value)?void 0:le.directiveName),1)):e.createCommentVNode("",!0),(null==(ie=ke.value)?void 0:ie.categoryName)?(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"6.5vw",height:"2vw","margin-left":"1vw",position:"relative"}},[e.createElementVNode("image",{src:"/static/index/newindex/wendu/bgc.png",mode:"aspectFill",style:{width:"100%",height:"100%",position:"relative","z-index":"0","margin-top":"0.9vw"}}),0==N.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bgc-font",style:{top:"0",left:"0","padding-left":"0.65vw",width:"100%",height:"100%","z-index":"2",position:"absolute","line-height":"3.7vw","font-size":"1.1vw"}},e.toDisplayString(ke.value.categoryName),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),(null==(ce=ke.value)?void 0:ce.startTime)?(e.openBlock(),e.createElementBlock("view",{key:1,style:{display:"flex","margin-top":"40rpx"}},[e.createElementVNode("view",{style:{width:"240rpx",height:"90rpx","margin-right":"40rpx"}},[e.withDirectives(e.createElementVNode("view",{class:e.normalizeClass("N"==(null==(fe=ke.value)?void 0:fe.izStart)?"start-button":"end-button"),onClick:l[8]||(l[8]=e=>{var t;"N"==(t=ke.value).izStart&&Be({id:t.id}).then((e=>{e.success&&(t.izStart="Y",H.value.firstgetqueryCgdList())}))})}," 开始服务 ",2),[[e.vShow,null==(xe=ke.value)?void 0:xe.startTime]])]),e.createElementVNode("view",{style:{width:"240rpx",height:"90rpx"}},[e.createElementVNode("view",{class:e.normalizeClass("Y"==(null==(Ve=ke.value)?void 0:Ve.izStart)&&"N"==(null==(be=ke.value)?void 0:be.izFinish)?"start-button":"end-button"),onClick:l[9]||(l[9]=e=>(ke.value,void("Y"==ke.value.izStart&&"N"==ke.value.izFinish&&(y.value=3))))}," 结束服务 ",2)])])):e.createCommentVNode("",!0),c.value>0?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:l[10]||(l[10]=e=>c.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(c.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==c.value?"转单执行":"协助执行"),1)]),c.value>0?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"","enable-flex":""},[e.createElementVNode("view",{class:"photowall-other"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>{var i;return e.openBlock(),e.createElementBlock("view",{class:"bottom-title",key:l,onClick:e=>((e,t)=>{if(1==c.value&&(e.flag=!e.flag,s.value.forEach(((e,l)=>{l!=t&&(e.flag=!1)})),d.value=e.flag),2==c.value){e.flag=!e.flag;let t=[];s.value.forEach(((e,l)=>{e.flag&&t.push(1)})),0==t.length?d.value=!1:d.value=!0}})(t,l),style:e.normalizeStyle([{border:"1px solid #f8f8f8",width:"16vw",margin:"0 0.8vw",height:"17vw","border-radius":"1.1vw",background:"#f8f8f8",display:"flex","flex-direction":"column","align-items":"center"},t.flag?"border: 1px solid #0385FA;background: #fff !important;":""])},[e.createElementVNode("image",{style:{width:"9vw",height:"9vw","border-radius":"50%",margin:"1vw auto"},src:t.headPath?a.value+t.headPath:"/static/shouye/xd.png"},null,8,["src"]),e.createElementVNode("view",{class:"name-weight"},e.toDisplayString(t.name),1),(null==(i=uni.getStorageSync("NUall").elderInfo)?void 0:i.name)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"message-view"},[e.createTextVNode(e.toDisplayString(t.sex)+" ",1),e.createElementVNode("view",{class:"message-shu"}),e.createElementVNode("view",{style:{"font-weight":"600"}},e.toDisplayString(t.height)+"cm ",1),e.createElementVNode("view",{class:"message-shu"}),e.createTextVNode(" "+e.toDisplayString(t.weight)+"Kg ",1)])):e.createCommentVNode("",!0)],12,["onClick"])})),128))])])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{position:"absolute",right:"2vw",bottom:"0.8vw",height:"4vw"}},[d.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"8.2vw",height:"3.3vw",background:"linear-gradient(0deg, #CAE0F9, #E9F4FF)","border-radius":"1.6vw","font-weight":"400","font-size":"1.6vw",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center",border:"1px solid rgba(3,133,250,0.34)"},onClick:m},"确定")):e.createCommentVNode("",!0),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"8.2vw",height:"3.3vw",background:"#EDEDEF","border-radius":"1.6vw","font-weight":"400","font-size":"1.6vw",color:"#999",display:"flex","justify-content":"center","align-items":"center",border:"1px solid rgba(3,133,250,0.34)"}},"确定"))]),e.createVNode(nt,{show:v.value>0,font:p.value,onBack:l[11]||(l[11]=e=>v.value=0),onRight:l[12]||(l[12]=e=>(()=>{if(1==v.value){let e={};s.value.forEach(((t,l)=>{t.flag&&(e=t)}));let t={mainId:ke.value.mainId,employeeId:e.id,employeeName:e.name,beforeBy:ke.value.employeeId,beforeByName:ke.value.employeeName},l=uni.getStorageSync("nuId");Ie(t).then((e=>{e.success&&(g(l),d.value=!1,v.value=0,c.value=0)}))}if(2==v.value){let e=uni.getStorageSync("userInfo"),t=e.id+",",l=e.realname+",";s.value.forEach(((e,a)=>{e.flag&&(t+=e.id+",",l+=e.name+",")})),t=t.slice(0,-1),l=l.slice(0,-1);let a={mainId:ke.value.mainId,optIds:t,optNames:l,beforeBy:ke.value.employeeId,beforeByName:ke.value.employeeName};Fe(a).then((e=>{e.success&&(h(0,{id:ke.value.mainId}),d.value=!1,v.value=0,c.value=0)}))}})())},null,8,["show","font"])],4),[[e.vShow,c.value>0]])]),e.withDirectives(e.createElementVNode("view",{class:"left-menu"},[e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:l[13]||(l[13]=e=>C(0,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(Se=ke.value)?void 0:Se.serviceContent)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left0.png"},null,8,["src"])],4)]),e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:l[14]||(l[14]=e=>C(1,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(Ce=ke.value)?void 0:Ce.mp3File)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left1.png"},null,8,["src"])],4)]),e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:l[15]||(l[15]=e=>C(2,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(De=ke.value)?void 0:De.mp4File)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left2.png"},null,8,["src"])],4)]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([3,4],((t,l)=>{var a;return e.createElementVNode("view",{key:l,style:{margin:"30rpx 0"},onClick:e=>C(t,2)},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle("Y"==(null==(a=ke.value)?void 0:a.izStart)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left"+t+".png"},null,8,["src"])],4)],8,["onClick"])})),64))],512),[[e.vShow,null==(ze=ke.value)?void 0:ze.startTime]]),1==(null==(_e=ke.value)?void 0:_e.optType)?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:1,class:"right-menu"},[e.createElementVNode("view",{class:"zhezhao-top",onClick:l[16]||(l[16]=e=>G.value-=115)}),e.createElementVNode("view",{class:"zhezhao-bottom",onClick:l[17]||(l[17]=e=>G.value+=115)}),e.createElementVNode("image",{class:"top-img",src:"/static/index/newindex/rightmenu/top.png",onClick:l[18]||(l[18]=e=>G.value>0?G.value-=115:G.value=0)},null,8,["src"]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"right-scroll","scroll-top":G.value,onScroll:X},[e.createElementVNode("view",{style:{height:"20rpx"}}),e.createElementVNode("view",{style:{margin:"20rpx 0",width:"110rpx","margin-left":"20rpx"},onClick:l[19]||(l[19]=e=>u(1))},[e.createElementVNode("view",{class:"white-circle",style:e.normalizeStyle("Y"==(null==(Me=ke.value)?void 0:Me.izStart)?"background-color:RGBA(228, 229, 231, 1)":"")},[e.createElementVNode("image",{class:"right-menu-img",src:"/static/index/newindex/rightmenu/1.png"},null,8,["src"]),e.createElementVNode("view",{class:"right-menu-name"}," 转单执行 ")],4)]),e.createElementVNode("view",{style:{margin:"20rpx 0",width:"110rpx","margin-left":"20rpx"},onClick:l[20]||(l[20]=e=>u(2))},[e.createElementVNode("view",{class:"white-circle"},[e.createElementVNode("image",{class:"right-menu-img",src:"/static/index/newindex/rightmenu/2.png"},null,8,["src"]),e.createElementVNode("view",{class:"right-menu-name"}," 协助执行 ")])]),e.createElementVNode("view",{style:{height:"30rpx"}})],40,["scroll-top"]),e.createElementVNode("image",{class:"top-img",src:"/static/index/newindex/rightmenu/bottom.png",onClick:l[21]||(l[21]=e=>G.value>55*K.value.length?G.value=55*K.value.length:G.value+=115)},null,8,["src"])],512)),[[e.vShow,null==(Re=ke.value)?void 0:Re.startTime]]):e.createCommentVNode("",!0)],4),e.createVNode(ot,{show:S.value,font:B.value,onClose:l[22]||(l[22]=e=>S.value=!1),icons:!1,style:{left:"44%"}},null,8,["show","font"]),e.createVNode(ot,{show:q.value,font:O.value,onClose:l[23]||(l[23]=e=>q.value=!1),style:{left:"44%"}},null,8,["show","font"]),e.createElementVNode("view",{class:"index-content-right",style:e.normalizeStyle(ae.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"right-time"},[e.createElementVNode("view",{class:"time-top"},[e.createElementVNode("view",{class:"time-big"},e.toDisplayString(ne.value),1),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"time-week"},e.toDisplayString(re.value),1),e.createElementVNode("view",{class:""},e.toDisplayString(oe.value),1)])]),e.createElementVNode("view",{class:"right-container-tem"},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{class:"right-container-tem-img",src:pe}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(uni.getStorageSync("NUall").humidDeviceList&&uni.getStorageSync("NUall").humidDeviceList[0]?uni.getStorageSync("NUall").humidDeviceList[0].temperature:"-")+"°C",1)]),e.createElementVNode("view",{class:""},[e.createElementVNode("image",{class:"right-container-tem-img",src:ge}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(uni.getStorageSync("NUall").humidDeviceList&&uni.getStorageSync("NUall").humidDeviceList[0]?uni.getStorageSync("NUall").humidDeviceList[0].humidity:"-")+"%",1)])])]),e.createElementVNode("view",{class:"right-top"},[e.createElementVNode("view",{class:"top-title"}," 护理单元 "),e.createElementVNode("scroll-view",{class:"top-list","scroll-y":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(se(0),((t,l)=>{var a,i;return e.openBlock(),e.createElementBlock("view",{class:"list-view",style:e.normalizeStyle(z.value===l?{borderColor:"#8DD6FF",backgroundColor:"#F7F7F9"}:{}),key:l,onClick:e=>F(l)},[e.createElementVNode("view",{class:"list-img"},[e.createElementVNode("image",{src:`/static/index/newindex/leftmenu/NU${(null==(a=t.elderInfo)?void 0:a.name)?"blue":"white"}.png`},null,8,["src"]),null!=t.readList&&t.readList.length>0?(e.openBlock(),e.createElementBlock("view",{key:0})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"first-line"},[e.createElementVNode("view",{style:{"font-size":"1.2vw"}},e.toDisplayString(t.nuName),1),e.createElementVNode("view",{class:"first-line-second"},e.toDisplayString((null==(i=t.elderInfo)?void 0:i.name)?"入住":"空闲"),1)]),e.createElementVNode("view",{class:"second-line"}," NUID:"+e.toDisplayString(t.nuId),1)])],12,["onClick"])})),128))])]),Pe.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[24]||(l[24]=e=>{Pe.value=!1,Ae.value=-1})})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"right-bottom"},[e.createElementVNode("view",{class:"bottom-title"},[e.createElementVNode("image",{class:"bottom-carmera",src:he,onClick:Ee}),e.createElementVNode("view",{class:"blue-button",onClick:l[27]||(l[27]=e=>{uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&(je.value=[],Ue.value=[],Pe.value=!0,J(uni.getStorageSync("nuId"),uni.getStorageSync("elderId")).then((e=>{e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&je.value.push(e)})),e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&Ue.value.push(e)}))})))})},[e.createTextVNode(" 长者标签 "),e.withDirectives(e.createElementVNode("view",{class:"jb"},[e.createElementVNode("image",{src:me,mode:"aspectFill"})],512),[[e.vShow,Pe.value]]),e.createElementVNode("view",{class:e.normalizeClass(["zzbq guodu",Pe.value?"":"zzh0"]),onClick:l[25]||(l[25]=e.withModifiers((()=>{}),["stop"]))},[Pe.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"carfd"},[e.createElementVNode("view",{class:"tittop"},[e.createElementVNode("view"),e.createTextVNode(" 体重标签 ")]),e.createElementVNode("view",{class:"tg",style:{"border-right":"1px solid rgba(238, 238, 238, 1)"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(je.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>Ye(t,l)},[e.createElementVNode("image",{src:t.netPic,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.tagName),1)],8,["onClick"])))),128)),0==je.value.length?(e.openBlock(),e.createElementBlock("image",{key:0,src:ye,mode:"aspectFill",style:{width:"5.4vw",height:"5.4vw","margin-top":"-0.7vw","margin-left":"-1vw"}})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),Pe.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"carfd"},[e.createElementVNode("view",{class:"tittop"},[e.createElementVNode("view",{style:{"margin-left":"1vw"}}),e.createTextVNode(" 情绪标签 ")]),e.createElementVNode("view",{class:"tg"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ue.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>Ye(t,l+2)},[e.createElementVNode("image",{src:t.netPic,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.tagName),1)],8,["onClick"])))),128)),0==Ue.value.length?(e.openBlock(),e.createElementBlock("image",{key:0,src:ye,mode:"aspectFill",style:{width:"5.4vw",height:"5.4vw","margin-top":"-0.7vw","margin-left":"1.2vw"}})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],2),e.createElementVNode("view",{class:e.normalizeClass(["zzbqsmall guodu",Pe.value&&-1!=Ae.value?"":"zzh0"]),onClick:l[26]||(l[26]=e.withModifiers((()=>{}),["stop"]))},[e.withDirectives(e.createElementVNode("view",{class:"jbsmall",style:e.normalizeStyle({left:`${Oe.value}vw`})},[e.createElementVNode("image",{src:me,mode:"aspectFill"})],4),[[e.vShow,-1!=Ae.value]]),e.createTextVNode(" "+e.toDisplayString(-1==Ae.value?"":qe.value),1)],2)])]),e.createElementVNode("image",{class:"big-older",src:`/static/index/newindex/leftmenu/${(null==(We=uni.getStorageSync("NUall").elderInfo)?void 0:We.name)?"older":"nopeople"}.png`},null,8,["src"]),e.createElementVNode("view",{class:"name-weight"},e.toDisplayString((null==(Je=uni.getStorageSync("NUall").elderInfo)?void 0:Je.name)?null==(Qe=uni.getStorageSync("NUall").elderInfo)?void 0:Qe.name:"暂无长者"),1),(null==(Ge=uni.getStorageSync("NUall").elderInfo)?void 0:Ge.name)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"message-view"},[e.createTextVNode(e.toDisplayString(null==(Xe=uni.getStorageSync("NUall").elderInfo)?void 0:Xe.sex)+" ",1),e.createElementVNode("view",{class:"message-shu"}),e.createElementVNode("view",{style:{"font-weight":"600"}},e.toDisplayString(R(null==(He=uni.getStorageSync("NUall").elderInfo)?void 0:He.dateOfBirth)),1),e.createTextVNode(" 岁 "),e.createElementVNode("view",{class:"message-shu"}),e.createElementVNode("image",{class:"message-img",src:"/static/index/newindex/leftmenu/time.png"},null,8,["src"]),e.createTextVNode(" "+e.toDisplayString(null==(Ze=uni.getStorageSync("NUall").elderInfo)?void 0:Ze.checkinTime.replace(/-/g,".")),1)])):e.createCommentVNode("",!0),(null==(Ke=uni.getStorageSync("NUall").elderInfo)?void 0:Ke.name)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-bottom"},[e.createElementVNode("view",{class:"bottom-tags"},e.toDisplayString(null==(et=uni.getStorageSync("NUall").elderInfo)?void 0:et.yblxName),1),e.withDirectives(e.createElementVNode("view",{class:"bottom-tags"},e.toDisplayString(null==(tt=uni.getStorageSync("NUall").elderInfo)?void 0:tt.sndjName),513),[[e.vShow,null==(lt=uni.getStorageSync("NUall").elderInfo)?void 0:lt.sndjName]]),e.createElementVNode("view",{class:"bottom-tags"},e.toDisplayString(null==(at=uni.getStorageSync("NUall").elderInfo)?void 0:at.jfztName),1)])):e.createCommentVNode("",!0)])],4),N.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[28]||(l[28]=e=>N.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(w.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==N.value?"照片":"录像"),1)]),N.value>0?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"","enable-flex":""},[e.createElementVNode("view",{class:"photowall-other"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>((e,t,l)=>{if(1==N.value){let e=[];l.forEach((t=>{e.push(a.value+t)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}})(0,l,f.value)},[1==N.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%",height:"70%","border-radius":"30rpx",position:"relative"}},[e.createElementVNode("image",{style:{width:"100%",height:"100%","border-radius":"30rpx"},src:t?a.value+t:"/static/ceshiyaoshan.png",mode:"aspectFill","lazy-load":!0},null,8,["src"]),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{var t;y.value=1,t=l,b.value=t}),["stop"]),style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"-1vw",top:"-0.7vw",background:"red",display:"flex","justify-content":"center","border-radius":"50%","align-items":"center"}},[e.createElementVNode("image",{src:we,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),2==N.value?(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"100%",height:"70%","border-radius":"30rpx",position:"relative"}},[e.createElementVNode("video",{style:{width:"100%",height:"100%","border-radius":"30rpx"},id:"myVideo"+l,src:i.value+t,direction:"180",mode:"aspectFill"},null,8,["id","src"]),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>f.value.splice(l,1)),["stop"]),style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"-1vw",top:"-0.7vw",background:"red",display:"flex","justify-content":"center","border-radius":"50%","align-items":"center"}},[e.createElementVNode("image",{src:we,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128)),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,class:"photowall-other-one"},[e.createElementVNode("view",{style:{width:"100%",height:"71%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",position:"absolute",top:"0vw",left:"0","background-color":"#fafdff",border:"1rpx solid #78B1EB","border-radius":"30rpx"},onClick:l[29]||(l[29]=e=>{1==N.value?uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:e=>{let t=JSON.stringify(e.tempFilePaths);uni.compressImage({src:JSON.parse(t)[0],quality:60,success:e=>{x(e.tempFilePath)}})}}):uni.chooseVideo({sourceType:["camera"],success:e=>{uni.showLoading({title:"正在上传..."}),uni.compressVideo({src:e.tempFilePath,quality:"medium",success:e=>{x(e.tempFilePath)}})}})})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:Ne}),e.createElementVNode("view",{style:{color:"#78B1EB"}}," 点击上传"+e.toDisplayString(1==N.value?"图片":"录像"),1)])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:1,style:{position:"absolute",right:"2vw",bottom:"0.8vw",height:"4vw"}},[e.createElementVNode("view",{style:{width:"8.2vw",height:"3.3vw",background:"linear-gradient(0deg, #CAE0F9, #E9F4FF)","border-radius":"1.6vw","font-weight":"400","font-size":"1.6vw",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center",border:"1px solid rgba(3,133,250,0.34)"},onClick:V},"确定")])):e.createCommentVNode("",!0)],4),[[e.vShow,N.value>0]]),e.createVNode(nt,{show:1==y.value,font:"是否删除此图片",onBack:l[30]||(l[30]=e=>y.value=0),onRight:l[31]||(l[31]=e=>(f.value.splice(b.value,1),void(y.value=0)))},null,8,["show"]),e.createVNode(rt,{ref_key:"severcards",ref:H},null,512)],64)}}}),[["__scopeId","data-v-bee6a5e6"]]),$e="/static/index/newruler/jiao.png",Le="/static/index/newruler/monitor_1.png",je="/static/index/sharelogo.png";function Ue(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const Pe=[{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706886",title:"协助喂药",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902604232524795905",title:"鼻饲喂药",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902604428667228162",title:"注射器/吸管喂药",tagName:"头部,大体重"}],levle:"2",title:"协助喂药",key:"1900114812020310017",parentId:"1900112597427793921",url:Ue("/static/index/diet","medicine_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902605892869394433",title:"一级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606105021485058",title:"二级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606339931869185",title:"三级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606614344208386",title:"一级压疮防护",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606869953482753",title:"二级压疮防护",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607023431454722",title:"三级压疮防护",tagName:"大体重"}],levle:"2",title:"压疮防护",key:"1900115034452639746",parentId:"1900112597427793921",url:Ue("/static/index/diet","knead_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706887",title:"床椅转移",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706888",title:"床椅转移",tagName:"大体重"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605073730211842",title:"床椅转移",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605223185846273",title:"床椅转移",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902605365393723393",title:"协助床椅转移",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605496071458818",title:"协助床椅转移",tagName:null}],levle:"2",title:"床椅转移",key:"1902248363784159233",parentId:"1900112597427793921",url:Ue("/static/index/diet","chair_",8,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607507626102786",title:"轮椅防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607677415723010",title:"轮椅防护",tagName:"大体重"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902607817589362689",title:"轮椅防护",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902608061588803585",title:"轮椅防护",tagName:"大体重"}],levle:"2",title:"轮椅防护",key:"1902280900178886657",parentId:"1900112597427793921",url:Ue("/static/index/diet","wheelchair_",10,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902608564582322178",title:"约束位按摩",tagName:"手"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902608974609092610",title:"约束位按摩",tagName:"足"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902618507855237121",title:"约束位按摩",tagName:"全"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902618751548493825",title:"防护网约束",tagName:null}],levle:"2",title:"约束防护",key:"1902280933364219906",parentId:"1900112597427793921",url:Ue("/static/index/diet","constraint_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902620309090701314",title:"协助行走",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902620486044192769",title:"放松按摩",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902625161569079298",title:"心灵慰藉",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902625402468929537",title:"狂躁",tagName:null}],levle:"2",title:"按摩保健",key:"1902564031454744577",parentId:"1900112597427793921",url:Ue("/static/index/diet","massage_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902625872432304130",title:"准备衣物",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626005538541569",title:"协助更换",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626664711163905",title:"肢体障碍",tagName:"半侧"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626800510144513",title:"肢体障碍",tagName:"全身"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627064688381953",title:"准备衣物",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627280716009474",title:"协助更换",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627416598876161",title:"肢体障碍",tagName:"半侧"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627522404388866",title:"肢体障碍",tagName:"全身"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902627711806574593",title:"协助更换",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902628058591629313",title:"肢体障碍",tagName:"半侧,大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902628650718302209",title:"肢体障碍",tagName:"大体重,全测"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902628837725540354",title:"肢体障碍",tagName:"大体重,全测"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902628966847188993",title:"肢体障碍",tagName:"大体重,半侧"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902629129879785474",title:"协助更换",tagName:"大体重"}],levle:"2",title:"更换衣物",key:"1902564088417587201",parentId:"1900112597427793921",url:Ue("/static/index/diet","replace_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902629344456183809",title:"坐起",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902629492301205506",title:"躺下",tagName:null}],levle:"2",title:"调整坐卧",key:"1902564199830884354",parentId:"1900112597427793921",url:Ue("/static/index/diet","adjust_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"55",id:"1902630862769065985",title:"遗体净身",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"55",id:"1902631162275926017",title:"遗体穿衣",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902631422431825921",title:"遗体转移",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902631602463936514",title:"床位消毒",tagName:null}],levle:"2",title:"殡仪服务",key:"1902564263743688705",parentId:"1900112597427793921",url:Ue("/static/index/diet","exequy_",4,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902631830441136129",title:"更换床上用品",tagName:"全部"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902632063828987905",title:"隔尿褥子更换",tagName:null}],levle:"2",title:"更换床上用品",key:"1902564446648897538",parentId:"1900112597427793921",url:Ue("/static/index/diet","change_",6,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902632288270389250",title:"临终护理",tagName:null}],levle:"2",title:"临终服务",key:"1902564503783706625",parentId:"1900112597427793921",url:Ue("/static/index/diet","funeral_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"40",id:"1902632678701371393",title:"制氧机吸氧",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902632799853842433",title:"制氧机维护",tagName:null}],levle:"2",title:"制氧机应用",key:"1902564586101116930",parentId:"1900112597427793921",url:Ue("/static/index/diet","oxygen_",6,"png",1,!1)}],levle:"1",title:"1 日常照料",key:"1900112597427793921"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900376187661553665",title:"准备洁具",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900420873478553602",title:"棉球清洁",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706881",title:"协助清洁",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706885",title:"义齿清洁",tagName:"口腔"}],levle:"2",title:"口腔清洁",key:"1902597070889127938",parentId:"1900112615777873921",url:Ue("/static/index/diet","oral_",7,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902636771540963329",title:"准备洁具",tagName:"头部"},{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902637623425077250",title:"协助洗头",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902637985234128898",title:"卧式洗头",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902638122949906433",title:"擦头",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902638304739430401",title:"刮头",tagName:null}],levle:"2",title:"头部清洁",key:"1902597497344987137",parentId:"1900112615777873921",url:Ue("/static/index/diet","head_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902641763073101826",title:"准备洁具",tagName:"面部"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642254465175553",title:"协助洁面",tagName:null}],levle:"2",title:"面部清洁",key:"1902597651405967361",parentId:"1900112615777873921",url:Ue("/static/index/diet","wash_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642508145070081",title:"准备洁具",tagName:"躯干"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642672796667905",title:"协助清洁",tagName:"躯干"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642822885642242",title:"卧床清洁",tagName:"躯干"}],levle:"2",title:"躯干清洁",key:"1902597718082818050",parentId:"1900112615777873921",url:Ue("/static/index/diet","limbs_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643318811758594",title:"准备洁具",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643483320750082",title:"协助清洁",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643630888947713",title:"卧床清洁",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643837525528578",title:"肌张力高",tagName:"清洁"}],levle:"2",title:"四肢清洁",key:"1902597811565465601",parentId:"1900112615777873921",url:Ue("/static/index/diet","torso_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645148199391234",title:"会阴清洁",tagName:"男"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645295457210369",title:"会阴清洁",tagName:"女"}],levle:"2",title:"会阴清洁",key:"1902597873964126209",parentId:"1900112615777873921",url:Ue("/static/index/diet","perineum_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645493185089537",title:"肛周清洁",tagName:null}],levle:"2",title:"肛周清洁",key:"1902597930020999170",parentId:"1900112615777873921",url:Ue("/static/index/diet","perianal_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645693211447298",title:"洗手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647316134465538",title:"泡手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647529817477122",title:"准备洁具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647673212342274",title:"协助洗手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647905878773762",title:"强直屈曲洗手",tagName:null}],levle:"2",title:"手清洁",key:"1902597991698239489",parentId:"1900112615777873921",url:Ue("/static/index/diet","hands_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648101203316737",title:"泡脚",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648239091060737",title:"卧式泡脚",tagName:null}],levle:"2",title:"足清洁",key:"1902598178588037121",parentId:"1900112615777873921",url:Ue("/static/index/diet","feet_",4,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902648426383511553",title:"修睫毛",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648548777496577",title:"剃须",tagName:null}],levle:"2",title:"剃须",key:"1902598258573414401",parentId:"1900112615777873921",url:Ue("/static/index/diet","shave_",6,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902648962444922882",title:"角质增生",tagName:"修甲"},{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902649132536532994",title:"灰指甲",tagName:"修甲"},{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902649302149992449",title:"正常",tagName:"修甲"}],levle:"2",title:"修甲",key:"1902598354606198785",parentId:"1900112615777873921",url:Ue("/static/index/diet","clippers_",6,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902649683919736834",title:"理发",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"25",id:"1902649860344745985",title:"理发",tagName:"颅骨缺损"}],levle:"2",title:"理发",key:"1902598400382832642",parentId:"1900112615777873921",url:Ue("/static/index/diet","haircut_",5,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902650121280786434",title:"床上沐浴",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902650408884211713",title:"深度清洁",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902650763722330113",title:"浴间洗浴",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"30",id:"1902651229122301954",title:"床上沐浴",tagName:"大体重"},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902651366317985794",title:"深度清洁",tagName:"大体重"},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902651555363655682",title:"浴间洗浴",tagName:"大体重"}],levle:"2",title:"沐浴",key:"1902598454782955522",parentId:"1900112615777873921",url:Ue("/static/index/diet","bathe_",9,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902651778777452545",title:"内套管清洁",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902651924047171586",title:"更换气切纱布",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"10",id:"1902652055928672258",title:"更换气切纱布",tagName:null}],levle:"2",title:"气切消毒",key:"1902598509522817026",parentId:"1900112615777873921",url:Ue("/static/index/diet","omy_",4,"png",1,!1)}],levle:"1",title:"2 清洁照料",key:"1900112615777873921"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898057679966209",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898202668666881",title:"协助进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898339931459586",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898472584712194",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898590658564097",title:"胃肠管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902898719952179201",title:"准备餐具",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902898979948695554",title:"协助进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899086840532993",title:"协助进餐",tagName:"超时"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899214838108162",title:"鼻胃管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899325014085633",title:"胃肠管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899587028062210",title:"食物加工",tagName:null}],levle:"2",title:"加餐饮食",key:"1902596129720864770",parentId:"1902280495747317762",url:Ue("/static/index/diet","snack_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281139677839362",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902281522340970498",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281654100836354",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281870434648066",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902654960639381506",title:"鼻肠管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902655101874180097",title:"轮椅进餐",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902892199009030145",title:"轮椅进餐",tagName:null}],levle:"2",title:"正餐饮食",key:"1902601263850950657",parentId:"1902280495747317762",url:Ue("/static/index/diet","dinner_",8,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893231608926209",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893551978254337",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893716466274306",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894369850757122",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894528533860354",title:"鼻肠管进餐",tagName:null}],levle:"2",title:"辅餐饮食",key:"1902601382595891202",parentId:"1902280495747317762",url:Ue("/static/index/diet","food_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894832176304129",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894954117304322",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895077522116609",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895233407619073",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895569912434689",title:"鼻肠管进餐",tagName:null}],levle:"2",title:"果汁饮食",key:"1902601427168759809",parentId:"1902280495747317762",url:Ue("/static/index/diet","juice_",9,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895878508351489",title:"准备水杯",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895984053817346",title:"协助饮水",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896136835534850",title:"协助饮水",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896508421509122",title:"鼻胃管饮水",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896636553302017",title:"鼻肠管饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902896855802155010",title:"准备水杯",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897018344017921",title:"协助饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897464936730626",title:"协助饮水",tagName:"超时"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897675813752834",title:"鼻胃管饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897803417063426",title:"鼻肠管饮水",tagName:null}],levle:"2",title:"饮水饮食",key:"1902601487625457665",parentId:"1902280495747317762",url:Ue("/static/index/diet","drink_",5,"png",1,!1)}],levle:"1",title:"3 饮食照料",key:"1902280495747317762"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902653177363927041",title:"巡视",tagName:null}],levle:"2",title:"巡视",key:"1902564741860790273",parentId:"1902560466095017986",url:Ue("/static/index/diet","posture_",6,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653325481578497",title:"防坠床",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653497066360833",title:"被褥调整",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653650917625857",title:"睡姿调整",tagName:null}],levle:"2",title:"体位调整",key:"1902564818838851585",parentId:"1902560466095017986",url:Ue("/static/index/diet","visitation_",5,"png",1,!1)}],levle:"1",title:"4 睡眠照料",key:"1902560466095017986"},{children:[{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902904277308510210",title:"更换尿袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902904458779267073",title:"更换隔尿垫",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902905631242424322",title:"使用尿盆",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902905824973131777",title:"使用尿壶",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906220483416065",title:"协助入厕",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906459051233281",title:"坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906610562076674",title:"留置尿袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906783325458434",title:"更换纸尿裤",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902908406344945665",title:"热敷抚触排尿",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902908523827400705",title:"协助坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902909645401067522",title:"更换尿片",tagName:null}],levle:"2",title:"小便",key:"1902596314152800257",parentId:"1902560510768549889",url:Ue("/static/index/diet","urinate_",4,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902909835331735554",title:"床上排便",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910002671882242",title:"协助坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910156154048514",title:"协助入厕",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910361008050178",title:"人工取便",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910524623654913",title:"造瘘袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910700176248834",title:"坐便椅",tagName:null}],levle:"2",title:"大便",key:"1902596399423000577",parentId:"1902560510768549889",url:Ue("/static/index/diet","stool_",3,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910899565072385",title:"口腔吸痰",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902911047405899778",title:"气切吸痰",tagName:null}],levle:"2",title:"吸痰",key:"1902596461238652930",parentId:"1902560510768549889",url:Ue("/static/index/diet","Sputuma_",7,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902911232974491650",title:"呕吐",tagName:null}],levle:"2",title:"呕吐",key:"1902596886771765250",parentId:"1902560510768549889",url:Ue("/static/index/diet","vomiting_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902911378349068290",title:"腹腔引流护理",tagName:null}],levle:"2",title:"引流",key:"1902596940366581762",parentId:"1902560510768549889",url:Ue("/static/index/diet","drainage_",6,"png",1,!1)}],levle:"1",title:"5 排泄照料",key:"1902560510768549889"}],Ae=300,qe=s(e.defineComponent({__name:"newindex",props:{isshow:{type:Boolean,required:!0}},setup(t){const a=t;e.watch((()=>a.isshow),((t,l)=>{t!==l&&(Fe.value=!1,Te.value=!1,tt.value?tt.value--:(pt(),S.value=1,B.value=1,e.nextTick((()=>{B.value=0,S.value=775}))),ve.value=0)}));const i=e.ref(!1),n=e.ref(-1),o=e.ref(!1),r=e.ref(-1),c=e.ref("translate3d(0, 0, 0)");let s=0,u=!1;const d=e.ref(!1),m=e.ref(!1),v=e.ref(!1);e.watch((()=>m.value),(()=>{setTimeout((()=>{d.value=m.value}),50)}));const p=e.ref(!1);e.watch((()=>v.value),(()=>{setTimeout((()=>{p.value=v.value}),50)})),e.ref([]),e.ref([]);const g=e.ref(!1),h=e.ref([]),y=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],w=["00","05","10","15","20","25","30","35","40","45","50","55"],N=["周一","周二","周三","周四","周五","周六","周日"],f=Array.from({length:31},((e,t)=>(t+1).toString().padStart(2,"0"))),k=e.ref(!0),E=e.ref(!1),x=e.ref(0),V=e.ref(0),b=e.ref(0),S=e.ref(678),B=e.ref(0),T=e.ref(),C=e.ref(!1),D=e.ref([]),z=e.ref(!1);e.ref(!1);const I=e.ref(!1);e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1);const F=e.ref(!1);e.ref("");const _=e.ref(!1);e.ref(6),e.ref(11),e.ref(0),e.ref(3);const M=e.ref(!1),$=e.computed((()=>Se.value[0]&&Se.value[1]?"left-bottom":!Se.value[0]&&Se.value[1]?"right-bottom":Se.value[0]&&!Se.value[1]?"left-top":"right-top")),L=e.ref([]),j=e.ref(0);const U=()=>{var e,t;if(ke.value.index0===we.value.index0&&ke.value.index1===we.value.index1)return M.value=!1,ke.value.index0=-1,void(ke.value.index1=-1);(null==(e=it.value[we.value.index0])?void 0:e.children[we.value.index1].id)?H(null==(t=it.value[we.value.index0])?void 0:t.children[we.value.index1]).then((e=>{P()})):P()},P=()=>{var e,t;let l=JSON.parse(JSON.stringify(null==(e=it.value[ke.value.index0])?void 0:e.children[ke.value.index1]));qe.value=[we.value.index0,we.value.index1];let a=null==(t=it.value[ke.value.index0])?void 0:t.children[ke.value.index1].tagName;it.value[ke.value.index0].children[ke.value.index1]={directiveName:"",tagName:a};let i=it.value[qe.value[0]].children[qe.value[1]].tagName;it.value[qe.value[0]].children[qe.value[1]]=l,it.value[qe.value[0]].children[qe.value[1]].tagName=i;let n=it.value[qe.value[0]].children[qe.value[1]].startTime,o=it.value[qe.value[0]].children[qe.value[1]].endTime,r=it.value[qe.value[0]].positioning;const c=e=>{const t=String(e||"").split(":").map((e=>e.trim())),l=Number(t[0]??0),a=Number(t[1]??0);return{hour:Number.isFinite(l)?l:0,minute:Number.isFinite(a)?a:0}},s=c(n),u=c(o);let d=60*u.hour+u.minute-(60*s.hour+s.minute);d<0&&(d+=1440);const m=Number(String(i).trim()),v=Number(String(r).trim());if(!Number.isFinite(m)||m<0||m>=60)throw new Error("newtagName 必须是 0-59 的数字字符串或数字");if(!Number.isFinite(v)||v<0)throw new Error("positioning 必须是有效小时(数字或数字字符串)");const p=60*v+m+d,g=Math.floor(p/60)%24,h=p%60,y=e=>String(e).padStart(2,"0");it.value[qe.value[0]].children[qe.value[1]].startTime=`${String(v)}:${y(m)}`,it.value[qe.value[0]].children[qe.value[1]].endTime=`${String(g)}:${y(h)}`,ke.value.index1=-1,M.value=!1;let w={index0:we.value.index0,index1:we.value.index1};lt(w);let N=it.value[we.value.index0].children[we.value.index1];N.positioning=we.value.index0,N.positioningLong=we.value.index1,K(N).then((e=>{e.success&&rt()}))},A=t=>{var l;5!==t?(E.value=!1,ee.value=-1,le.value=-1,W.value="",te.value="",V.value=.01,x.value=.01,ge.value=-1,e.nextTick((()=>{V.value=0,x.value=0,ge.value=0})),pe.value=0,ve.value=t,T.value=null==(l=D.value[t])?void 0:l.children,he.value=0):uni.navigateTo({url:"/pages/watch/full"})},q=e.ref(!1),O=()=>{var e;ae.value=!1,g.value=!1,M.value?U():(null==(e=it.value[we.value.index0])?void 0:e.children[we.value.index1].directiveName)?(ke.value.index0=we.value.index0,ke.value.index1=we.value.index1,M.value=!0):(q.value=!0,setTimeout((()=>{q.value=!1}),1500))},Y=e.ref(!1),R=e.ref(-1),W=e.ref(""),ee=e.ref(-1),te=e.ref(""),le=e.ref(-1),ae=e.ref(!1),ie=()=>{var e;ke.value.index0=-1,ke.value.index1=-1,M.value=!1,g.value=!1,(null==(e=it.value[we.value.index0])?void 0:e.children[we.value.index1].directiveName)?ae.value?(ae.value=!1,Ce(we.value.index0,we.value.index1)):(ae.value=!0,setTimeout((()=>ht.value=!0),50)):(q.value=!0,setTimeout((()=>{q.value=!1}),1500))};function ne(e,t){return 2*function(e,t){const l=55.9898*e+78.233*t;return Math.abs(43758.5453*Math.sin(l))%1}(e,t)}const oe="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:e=>setTimeout(e,16);function re(e){const t=e&&e.detail&&(e.detail.scrollTop??e.detail.scrollY)||0;s=t,u||(u=!0,oe((()=>{c.value=`translate3d(0, -${s}px, 0)`,u=!1})))}const ce=e.ref(0);function se(e){ce.value=e.detail.scrollLeft}const ue=(e,t,l)=>e.startTime?ke.value.index0===t&&ke.value.index1===l?"title-time-border-yellow-active-transparent":Te.value?"title-time-border-yellow-active":"title-time-border-yellow":"title-time-border";function de(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const me=e.ref([{url:de("/static/index/newruler","daily_",6,"png",1,!1),name:"日常"},{url:de("/static/index/newruler","clean_",8,"png",1,!1),name:"清洁"},{url:de("/static/index/newruler","diet_",7,"png",1,!1),name:"饮食"},{url:de("/static/index/newruler","sleep_",5,"png",1,!1),name:"睡眠"},{url:de("/static/index/newruler","defecate_",5,"png",1,!1),name:"排泄"}]),ve=e.ref(1),pe=e.ref(0),ge=e.ref(-1),he=e.ref(0),ye=e.ref(0),we=e.ref({index0:-1,index1:-1});e.ref(null),e.ref({}),e.ref(0),e.ref(0);const Ne=e.ref(0),fe=e.ref(0),ke=e.ref({index0:999,index1:999,tagName:""}),Ee=e.ref(!1),xe=e.ref(-1),Ve=e.ref(!1),be=()=>{Ve.value=!0,Ee.value=!1,setTimeout((()=>{Ee.value=!0}),100)},Se=e.ref([!1,!1]),Be=e.ref([-1,-1]),Te=e.ref(!1);e.ref([]);const Ce=(e,t)=>{var l;H(null==(l=it.value[e])?void 0:l.children[t]).then((e=>{e.success&&rt()}))},De=e.ref(0),ze=e.ref(0),Ie=e.ref(null),Fe=e.ref(!1),_e=e=>{De.value=Math.floor(e.touches[0].pageX),ze.value=Math.floor(e.touches[0].pageY),Ie.value=setTimeout((()=>{Fe.value=!0}),500)},Me=e=>{const t=Math.floor(e.touches[0].pageX),l=Math.floor(e.touches[0].pageY);(Math.abs(t-De.value)>0||Math.abs(l-ze.value)>0)&&Ie.value&&(clearTimeout(Ie.value),Ie.value=null)},Ue=()=>{Ie.value&&(clearTimeout(Ie.value),Ie.value=null)},qe=e.ref([-1,-1]),Oe=()=>{_.value=!1,F.value=!0,setTimeout((()=>{_.value=!0}),50)},Ye=e.ref(!1);let Re=null;async function We(){Re&&(clearTimeout(Re),Re=null),Ye.value=!1,await e.nextTick(),Ye.value=!0,Qe(),Re=setTimeout((()=>{Ye.value=!1,Re=null}),1e3)}const Je=e=>{G(e).then((e=>{e.success&&rt()}))},Qe=()=>{var t,a,i,n;if(ae.value)return ae.value=!1,void Ce(we.value.index0,we.value.index1);if(M.value)return void U();let o=!1;if((null==(t=it.value[we.value.index0])?void 0:t.children[we.value.index1].directiveName)&&(o=!0),gt.value){let e=ct.value[ye.value];if(-1===we.value.index1&&-1===we.value.index0)return;if(ae.value)return ae.value=!1,void Ce(we.value.index0,we.value.index1);if(M.value)return void U();ke.value.index0=-1,ke.value.index1=-1,M.value=!1;let t="打包",l="";const r=Number(we.value.index0),c=Number(null==(a=it.value[we.value.index0])?void 0:a.children[we.value.index1].tagName),s=c+Number(e.serviceDuration),u=r+Math.floor(s/60),d=`${String(r)}:${String(c).padStart(2,"0")}`,m=`${String(u)}:${String(s%60).padStart(2,"0")}`;let v={id:o?null==(i=it.value[we.value.index0])?void 0:i.children[we.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,directiveId:e.id,directiveName:e.packageName,typeId:"",typeName:"",categoryId:"",categoryName:"",cycleTypeId:"",cycleType:t,cycleValue:l,startTime:d,endTime:m,serviceDuration:e.serviceDuration,positioning:we.value.index0.toString(),positioningLong:we.value.index1.toString(),izPackage:"Y",previewFile:"",previewFileSmall:"",netPreviewFile:"",netPreviewFileSmall:"",immediateFile:"",immediateFileFocus:"",netImmediateFileFocus:"",netImmediateFile:"",tagName:null==(n=it.value[we.value.index0])?void 0:n.children[we.value.index1].tagName,mp3File:e.mp3File,netMp3File:e.netMp3File,mp4File:e.mp4File,netMp4File:e.netMp4File,serviceContent:e.serviceContent};it.value[we.value.index0].children[we.value.index1]=v;let p={index0:we.value.index0,index1:we.value.index1};return lt(p),void(o?K(v).then((e=>{e.success&&rt()})):Je(v))}let r=!1,c=D.value[ve.value].children[pe.value].children[he.value];if(3==c.cycleTypeId)return b.value=1,h.value.forEach(((e,t)=>{e.directiveName==c.title&&(r=!0)})),void e.nextTick((()=>{if(r)clearTimeout(Xe.value),C.value=!0,Xe.value=setTimeout((()=>{C.value=!1}),1500);else{b.value=0,h.value.length&&"#03a4ff"===h.value[0].target&&(h.value[0].target="#fff",clearTimeout(Ge.value));let e=c;e.directiveId=c.id,e.directiveName=c.title,e.serviceDuration=c.serviceDuration,e.target="#03a4ff",e.id="",e.nuId=uni.getStorageSync("nuId"),e.nuName=uni.getStorageSync("nuName"),e.elderId=uni.getStorageSync("elderId"),e.elderName=uni.getStorageSync("NUall").elderInfo.name,h.value.unshift(e),Ge.value=setTimeout((()=>{h.value[0].target="#fff",l("log","at pages/NursingNew/component/nurse/newindex.vue:1459","即时指令看看进入了啥",e),X(e).then((e=>{e.success&&rt()}))}),1500)}}));if(-1===we.value.index1&&-1===we.value.index0)return;if(ke.value.index0=-1,ke.value.index1=-1,M.value=!1,2==c.cycleTypeId&&E.value&&-1==ee.value&&-1==le.value)return;if(2==c.cycleTypeId&&!E.value)return void(E.value=!0);let s="",u="";if(1==c.cycleTypeId)s="日常";else{if(-1!=ee.value){s=W.value;let e=0;N.forEach(((t,l)=>{t==W.value&&(e=l)})),u=e.toString()}else s=te.value+"号",u=te.value;E.value=!1,ee.value=-1,le.value=-1,W.value="",te.value=""}const d=Number(we.value.index0),m=Number(it.value[we.value.index0].children[we.value.index1].tagName),v=m+Number(c.serviceDuration),p=d+Math.floor(v/60),g=`${String(d)}:${String(m).padStart(2,"0")}`,y=`${String(p)}:${String(v%60).padStart(2,"0")}`;let w={id:o?it.value[we.value.index0].children[we.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,directiveId:c.id,directiveName:c.title,typeId:c.typeId,typeName:c.typeName,categoryId:c.categoryId,categoryName:c.categoryName,cycleTypeId:c.cycleTypeId,cycleType:s,cycleValue:u,startTime:g,endTime:y,positioning:we.value.index0.toString(),positioningLong:we.value.index1.toString(),izPackage:"N",previewFile:c.previewFile,previewFileSmall:c.previewFileSmall,serviceDuration:c.serviceDuration,immediateFile:c.immediateFile,immediateFileFocus:c.immediateFileFocus,netImmediateFileFocus:c.netImmediateFileFocus,netImmediateFile:c.netImmediateFile,tagName:it.value[we.value.index0].children[we.value.index1].tagName,mp3File:c.mp3File,netMp3File:c.netMp3File,mp4File:c.mp4File,netMp4File:c.netMp4File,serviceContent:c.serviceContent,netPreviewFile:c.netPreviewFile,netPreviewFileSmall:c.netPreviewFileSmall};it.value[we.value.index0].children[we.value.index1]=w;let f={index0:we.value.index0,index1:we.value.index1};lt(f),o?K(w).then((e=>{e.success&&rt()})):Je(w)},Ge=e.ref(null),Xe=e.ref(null),He=()=>{if(!dt.value)return;let e=[];ot.value.forEach((t=>{"Y"==t.izSelected&&e.push(t)})),nt.value.forEach((t=>{"Y"==t.izSelected&&e.push(t)}));let t={nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,tagList:e};Q(t).then((()=>{rt()}))},Ze=()=>{uni.navigateTo({url:"/pages/timeMatrix/indexnew"})},Ke=e.ref({index0:-1,index1:-1}),et=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),tt=e.ref(0),lt=e=>{we.value.index0=e.index0,we.value.index1=e.index1,pt(),et.value.index0=e.index0,et.value.index1=e.index1,Ke.value.index0=et.value.index0,Ke.value.index1=et.value.index1,et.value.bordershow=!1,setTimeout((()=>{et.value.index0=-1,et.value.index1=-1,et.value.current=-1}),400),setTimeout((()=>{et.value.bordershow=!0,Ke.value.index0=-1,Ke.value.index1=-1}),1e3)},at=["00","05","10","15","20","25","30","35","40","45","50","55"],it=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:at.map((e=>({tagName:e,directiveName:""})))})))),nt=e.ref([]),ot=e.ref([]),rt=()=>{uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&J(uni.getStorageSync("nuId"),uni.getStorageSync("elderId")).then((e=>{it.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:at.map((e=>({tagName:e,directiveName:""})))}))),e.result.serviceList.forEach((e=>{it.value[e.positioning].children[e.positioningLong]=e})),h.value=e.result.instantList,dt.value=!0,nt.value=e.result.emotionTagList,ut.value=[],st.value=[],e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&ut.value.push(e.netPic)})),ot.value=e.result.bodyTagList,e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&st.value.push(e.netPic)}))}))},ct=e.ref([]);e.onMounted((()=>{ct.value=uni.getStorageSync("Packagelist")||[];let e=uni.getStorageSync("saveTree0"),t=[];Pe.forEach((e=>{e.children.forEach((e=>{t.push({name:e.title,url:e.url})}))})),L.value=t,e.result&&(e.result.forEach((e=>{"0"==e.netFlag?me.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath,e.children.forEach((e=>{"0"==e.netFlag?L.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath}))})),D.value=e.result),T.value=D.value[0].children,ve.value=-1,ge.value=-1,setTimeout((()=>{ve.value=0,ge.value=0}),50),uni.$on("where",mt),ge.value=0,rt()}));const st=e.ref([]),ut=e.ref([]),dt=e.ref(!1);function mt(e){tt.value=3,lt(e)}function vt(e){let t=[],l=e,a=/([^((]*)[((]([^))]+)[))]/;for(;a.test(l);){let e=l.match(a);e&&(e[1].trim()&&t.push(e[1].trim()),e[2].trim()&&t.push(e[2].trim()),l=l.replace(e[0],"").trim())}return l.trim()&&t.push(l.trim()),t}function pt(){if(we.value.index0>=0&&we.value.index0<=24&&we.value.index1>=0&&we.value.index1<=11){const e=259*(we.value.index0+.5),t=200*(we.value.index1-1);S.value=e-650,B.value=t-200;const l=6216,a=2200;S.value=Math.max(0,Math.min(S.value,l-1300))/2,B.value=Math.max(0,Math.min(B.value,a-400))/2}}e.onBeforeUnmount((()=>{Re&&clearTimeout(Re),uni.$off("where",mt),u=!1}));const gt=e.ref(!1),ht=e.ref(!1);return(l,a)=>{var s,u,p,L,U,P,J,Q,G,X,H,K,oe,ce,de,me,Ce,De,ze,Ie,Pe,qe,Re,Je,Ge;const Xe=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",{class:"right-container",style:e.normalizeStyle(t.isshow?{opacity:"1"}:{opacity:"0"}),onClick:a[20]||(a[20]=e=>{Fe.value=!1,Te.value=!1})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("text",{style:{"margin-left":"30rpx"}}," NUID:"+e.toDisplayString(uni.getStorageSync("nuId")),1),e.createElementVNode("text",{class:"new-weight"},e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("view",{class:"right-icons"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center","margin-right":"25rpx",padding:"0 15rpx"},class:e.normalizeClass(R.value||i.value||o.value?"":"firsttarget")},[e.createElementVNode("view",{class:"mark"},[e.createElementVNode("view",{style:{"margin-right":"15rpx"}}," 老人标签: "),e.withDirectives(e.createElementVNode("view",{class:"overlay",onClick:a[0]||(a[0]=e=>m.value=!1)},null,512),[[e.vShow,m.value]])]),e.createElementVNode("view",{class:"marknone",onClick:a[1]||(a[1]=e=>{m.value=!m.value,v.value=!1})},[st.value.length||ut.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,style:{"margin-top":"-3rpx"}}," 未选择 ")),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(st.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("image",{class:"tags-img",style:{width:"40rpx",height:"40rpx",margin:"0 10rpx"},src:t},null,8,["src"])])))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ut.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("image",{class:"tags-img",style:{width:"40rpx",height:"40rpx",margin:"0 10rpx"},src:t},null,8,["src"])])))),128))]),e.createElementVNode("view",{class:"tri-down",onClick:a[3]||(a[3]=e=>{m.value=!m.value,v.value=!1})},[e.withDirectives(e.createElementVNode("view",{class:"mark-bgc",style:e.normalizeStyle({opacity:d.value?1:0}),onClick:a[2]||(a[2]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"30rpx","margin-left":"50rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 体型标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ot.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{if("Y"==ot.value[e].izSelected)ot.value[e].izSelected="N";else{let t=0;if(ot.value.forEach((e=>{"Y"==e.izSelected&&t++})),t>1)return void uni.showToast({title:"每种标签最多只能添加两个",icon:"none",duration:3e3});ot.value[e].izSelected="Y"}He()})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["tags-father",n.value===l?"secondtarget":""])},[e.createElementVNode("image",{class:"tags-img",src:"Y"==t.izSelected?t.netPicFocus:t.netPic},null,8,["src"]),e.createElementVNode("view",{class:"tags-font",style:e.normalizeStyle("Y"==t.izSelected?{color:"rgb(54, 159, 239)"}:{})},e.toDisplayString(t.tagName),5)],2)],8,["onClick"])))),128))]),e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"30rpx","margin-left":"50rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 情绪标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(nt.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{if("Y"==nt.value[e].izSelected)nt.value[e].izSelected="N";else{let t=0;if(nt.value.forEach((e=>{"Y"==e.izSelected&&t++})),t>1)return void uni.showToast({title:"标签最多只能添加两个",icon:"none",duration:3e3});nt.value[e].izSelected="Y"}He()})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["tags-father",r.value===l?"secondtarget":""])},[e.createElementVNode("image",{class:"tags-img",src:"Y"==t.izSelected?t.netPicFocus:t.netPic},null,8,["src"]),e.createElementVNode("view",{class:"tags-font",style:e.normalizeStyle("Y"==t.izSelected?{color:"rgb(54, 159, 239)"}:{})},e.toDisplayString(t.tagName),5)],2)],8,["onClick"])))),128))])],4),[[e.vShow,m.value]])])],2),e.createElementVNode("view",{class:"white-button",onClick:Ze},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/yulan.png"},null,8,["src"]),e.createTextVNode(" 预览 ")]),e.createElementVNode("view",{class:"white-button",onClick:be},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/fenxiang.png"},null,8,["src"]),e.createTextVNode(" 分享 ")]),e.createElementVNode("view",{class:"white-button",onClick:a[4]||(a[4]=e=>A(5))},[e.createElementVNode("image",{class:"white-img",style:{width:"45rpx",height:"45rpx"},src:"/static/index/newruler/watch.png"},null,8,["src"]),e.createTextVNode(" 监控 ")])])]),e.createElementVNode("view",{class:"doctorsay-container-view"},[e.createElementVNode("view",{class:"doctorsay-container-container"},[e.createElementVNode("view",{class:"super-card"},[e.createElementVNode("view",{class:"boom-father"},[e.createElementVNode("view",{class:"boom",style:e.normalizeStyle({transform:c.value})},[e.createElementVNode("view",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(s=it.value[0])?void 0:s.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.withDirectives(e.createElementVNode("view",{class:"boom-son"},[e.createElementVNode("text",{class:"boom-text"},e.toDisplayString(t.tagName),1)],512),[[e.vShow,t.tagName]])])))),128))])],4)]),e.createElementVNode("view",{class:"super-card-container"},[e.createElementVNode("scroll-view",{style:{height:"1330rpx",width:"100%",border:"2rpx solid balck"},"scroll-with-animation":"","scroll-left":S.value,"scroll-x":"",onScroll:se,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",width:"4824rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(it.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":00"),1)])))),128))]),e.createElementVNode("view",{style:{display:"flex",height:"calc(100% - 330rpx)",position:"relative"}},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{style:{height:"100%",width:"6744rpx"},"scroll-top":B.value,"scroll-with-animation":"","scroll-y":!0,onScroll:re,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(it.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time-und"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==t?void 0:t.children,((a,i)=>(e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:i},[e.createElementVNode("view",{class:e.normalizeClass(et.value.index0===l&&et.value.index1===i?et.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([et.value.bordershow||Ke.value.index0!==l||Ke.value.index1!==i?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${l}_${i}`,onClick:t=>((t,l,a)=>{ae.value=!1,we.value.index0=l,we.value.index1=a,pt(),Y.value=!0,setTimeout((()=>{t.directiveName&&g.value&&(xe.value=a,uni.createSelectorQuery().selectAll(".super-card-time-card").boundingClientRect((t=>{t.forEach((async t=>{t.left>100&&t.left<1067&&t.top<670&&t.top>50&&t.dataset.index0==l&&t.dataset.index1==a&&(t.left>100&&t.left<500?(Ne.value=Math.floor(t.left)+528,Se.value[0]=!0):(Ne.value=Math.floor(t.left)-18,Se.value[0]=!1),t.top>300?(fe.value=Math.floor(t.top)+100,Se.value[1]=!0):(fe.value=Math.floor(t.top)+180,Se.value[1]=!1),await e.nextTick(),z.value=!0,Be.value[0]=l,Be.value[1]=a,I.value=!1,setTimeout((()=>{I.value=!0}),100))}))})).exec())}),400)})(a,l,i),"data-index0":l,"data-index1":i},[ke.value.index0===l&&ke.value.index1===i&&0==i?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-button-orange-spe",style:e.normalizeStyle({left:ke.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),ke.value.index0===l&&ke.value.index1===i&&i?(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-button-orange",style:e.normalizeStyle({left:ke.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},null,512),[[e.vShow,we.value.index0==l&&we.value.index1==i&&Y.value]]),e.createElementVNode("view",{class:e.normalizeClass(ue(a,l,i)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${ne(l,i).toFixed(2)}s`}])},[a.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column"}},[e.withDirectives(e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx",margin:"0 auto","margin-top":"20rpx"},src:a.netImmediateFile?a.netImmediateFile:"/static/logo.png"},null,8,["src"]),[[e.vShow,a.startTime]]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(a.startTime+"-"+a.endTime),1),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"50rpx"},src:$e})):e.createCommentVNode("",!0),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx"}},e.toDisplayString(a.cycleType),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.startTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-rel"},e.toDisplayString(vt(a.directiveName)[0]),1)):e.createCommentVNode("",!0),we.value.index0==l&&we.value.index1==i&&Y.value&&!a.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+w[i]),1)):e.createCommentVNode("",!0)],6)],14,["id","onClick","data-index0","data-index1"])])))),128))])])))),128))])],40,["scroll-top"])])],40,["scroll-left"])]),e.createElementVNode("view",{class:"right-cards"},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-left":"30rpx"}},[e.createElementVNode("view",{class:""}," 即时指令 "),e.createElementVNode("view",{style:{width:"30rpx",height:"6rpx","background-color":"black","margin-left":"40rpx","margin-top":"3rpx","border-radius":"20rpx"}})]),e.createElementVNode("scroll-view",{"scroll-x":"",class:"scroll-box","scroll-left":b.value},[e.createElementVNode("view",{class:"right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"right-box-item",onTouchstart:_e,onTouchmove:Me,onTouchend:Ue,style:e.normalizeStyle(t.target?{background:t.target,transition:"all 1.5s ease-in-out"}:{transition:"all 1.5s ease-in-out"})},[e.createElementVNode("view",{style:e.normalizeStyle({animationDelay:`-${.1*l}s`}),class:e.normalizeClass(Fe.value?"super-end-items-img-father-active":"super-end-items-img-father")},[e.createElementVNode("image",{class:"right-box-img",src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle({fontSize:(null==(a=t.directiveName)?void 0:a.trim().length)>6?"25rpx":"27rpx"})},e.toDisplayString(t.directiveName),5)],6),e.withDirectives(e.createElementVNode("view",{class:"super-end-items-father-close-father",onClick:e.withModifiers((e=>{var a;h.value.splice(l,1),a=t.id,Z({id:a}).then((e=>{e.success&&rt()}))}),["stop"])}," - ",8,["onClick"]),[[e.vShow,Fe.value]])],36)])})),128))])],8,["scroll-left"]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("view",{class:"middle-left-box"},[e.createElementVNode("view",{class:"first-contant"},[e.withDirectives(e.createElementVNode("view",{class:"time-father"},[e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month"},"周"),e.createElementVNode("view",{class:"time-button-week",onClick:a[5]||(a[5]=e=>{k.value=!1,ee.value=-1,W.value=""})},"月")],512),[[e.vShow,k.value]]),e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month-target",onClick:a[6]||(a[6]=e=>{k.value=!0,le.value=-1,te.value=""})},"周"),e.createElementVNode("view",{class:"time-button-week-target"},"月")],512),[[e.vShow,!k.value]]),e.createElementVNode("scroll-view",{"scroll-y":"",style:{width:"100%",height:"600rpx"},"show-scrollbar":!1,"scroll-top":x.value},[k.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(N,((t,l)=>e.createElementVNode("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-j.value<Ae?(W.value=e,ee.value=t,Qe(),j.value=0):(W.value=e,ee.value=t,j.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(ee.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"]))),64)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(f),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-j.value<Ae?(te.value=e,le.value=t,Qe(),j.value=0):(te.value=e,le.value=t,j.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(le.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"])))),128)),e.createElementVNode("view",{style:{height:"40rpx"}})],8,["scroll-top"])],512),[[e.vShow,E.value]]),e.withDirectives(e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":x.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(p=null==(u=D.value[ve.value])?void 0:u.children[pe.value])?void 0:p.children,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>function(e){const t=Date.now();he.value=e,t-j.value<Ae?(he.value=e,Qe(),j.value=0):(he.value=e,j.value=t)}(l)},[e.createElementVNode("view",{class:"right-box-item",style:e.normalizeStyle(he.value==l?{border:"2rpx solid rgb(229, 233, 249)",backgroundColor:"#fff"}:{border:"2rpx solid rgb(229, 233, 249)"})},[e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 周期 ",512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 即时 ",512),[[e.vShow,3==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,3==t.cycleTypeId]]),e.createElementVNode("image",{class:"right-box-img",src:he.value==l?t.netImmediateFileFocus:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle([{marginTop:"2rpx",fontSize:(null==(a=t.title)?void 0:a.trim().length)>6?"20rpx":"25rpx"},he.value===l?{color:"rgb(54,159,239)"}:{}])},e.toDisplayString(t.title),5)],4)],8,["onClick"])})),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"]),[[e.vShow,!E.value]])]),e.createElementVNode("view",{class:"second-contant"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":V.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:e.normalizeClass(ge.value==l?"downList-box-target":"downList-box"),onClick:t=>(t=>{E.value=!1,ee.value=-1,le.value=-1,W.value="",te.value="",pe.value=t,ge.value=t,he.value=0,x.value=.01,e.nextTick((()=>{x.value=0}))})(l)},[e.createVNode(Xe,{width:"55rpx",height:"55rpx",links:t.url,playing:ge.value==l,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:"downList-box-text"},e.toDisplayString(t.title),1)],10,["onClick"])])))),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"])])]),e.createElementVNode("view",{class:"middle-right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>A(l)},[e.createElementVNode("view",{class:"doctorsay-container-card"},[e.createVNode(Xe,{width:"50rpx",height:"50rpx",links:t.url,playing:l===ve.value,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:e.normalizeClass(l===ve.value?"doctorsay-container-card-font-dark":"doctorsay-container-card-font")},e.toDisplayString(t.title),3)])],8,["onClick"])))),128))])],512),[[e.vShow,!gt.value]]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ct.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"zhiling-card",style:e.normalizeStyle(ye.value==l?{backgroundColor:"#fff"}:{}),key:l,onClick:e=>(e=>{const t=Date.now();ye.value=e,t-j.value<Ae?(Qe(),j.value=0):j.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:$e}),e.createElementVNode("view",{class:"zhiling-card-font"}," 指令包 "),e.createElementVNode("view",{class:""}," 包名:"+e.toDisplayString(t.packageName),1),e.createElementVNode("view",{class:"bag"},[e.createElementVNode("text",null," 包含: "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.directivesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"bag-one",key:l},[a?(e.openBlock(),e.createElementBlock("text",{key:0},"、")):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.directiveName),1)])))),128))])],12,["onClick"])))),128))])],512),[[e.vShow,gt.value]]),e.createElementVNode("view",{class:"under-button"},[C.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"under-button-black"}," 不能重复添加相同的即时服务指令 ")):e.createCommentVNode("",!0),q.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"under-button-black"}," 请选择服务指令来进行操作 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"white-circle",onClick:O},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/movebutton${M.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:ie},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/deletebutton${ae.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:Oe},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/notebutton${F.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:a[7]||(a[7]=e=>{g.value=!g.value,M.value=!1,ke.value.index0=-1,ke.value.index1=-1})},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/open${g.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("view",{class:e.normalizeClass(["white-circle-click-father",{anim:Ye.value}]),style:e.normalizeStyle({color:Ye.value?"#fff":""}),onClick:We},[e.createElementVNode("view",{style:{"z-index":"999"}}," 确定 ")],6),e.withDirectives(e.createElementVNode("view",{class:"white-circle-click-father-spec",onClick:a[8]||(a[8]=e=>A(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:Le}),e.createElementVNode("view",{style:{"z-index":"999","font-size":"25rpx"}}," 监控 ")])],512),[[e.vShow,!gt.value]])])])])])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-overlay",onClick:a[11]||(a[11]=e=>{z.value=!1,ke.value.index0=999,xe.value=-1})},["N"===(null==(U=null==(L=it.value[Be.value[0]])?void 0:L.children[Be.value[1]])?void 0:U.izPackage)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay-content",style:e.normalizeStyle([{height:"390rpx"},{top:2*fe.value-350+"rpx",left:2*Ne.value-780+"rpx",opacity:I.value?1:0}]),"popup-overlay:class":"getjiao",onClick:a[9]||(a[9]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"popup-overlay-content-left"},[e.createElementVNode("image",{class:"popup-overlay-content-left-img",src:null==(J=null==(P=it.value[Be.value[0]])?void 0:P.children[Be.value[1]])?void 0:J.netImmediateFileFocus},null,8,["src"])]),e.createElementVNode("view",{class:"popup-overlay-content-right"},[e.createElementVNode("view",{class:"time-font"},e.toDisplayString(null==(G=null==(Q=it.value[Be.value[0]])?void 0:Q.children[Be.value[1]])?void 0:G.startTime)+" - "+e.toDisplayString(null==(H=null==(X=it.value[Be.value[0]])?void 0:X.children[Be.value[1]])?void 0:H.endTime),1),e.createElementVNode("view",{class:"time-text"},e.toDisplayString(null==(oe=null==(K=it.value[Be.value[0]])?void 0:K.children[Be.value[1]])?void 0:oe.directiveName),1)])],4)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["popup-overlay-content",$.value]),style:e.normalizeStyle({top:2*fe.value-350+"rpx",left:2*Ne.value-780+"rpx",opacity:I.value?1:0}),onClick:a[10]||(a[10]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"specia-onshow"},[e.createElementVNode("view",{class:"specia-title"},e.toDisplayString(null==(de=null==(ce=it.value[Be.value[0]])?void 0:ce.children[Be.value[1]])?void 0:de.startTime)+" - "+e.toDisplayString(null==(Ce=null==(me=it.value[Be.value[0]])?void 0:me.children[Be.value[1]])?void 0:Ce.endTime),1),(null==(ze=null==(De=it.value[Be.value[0]])?void 0:De.children[Be.value[1]])?void 0:ze.directivesList)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"specia-cards"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(Pe=null==(Ie=it.value[Be.value[0]])?void 0:Ie.children[Be.value[1]])?void 0:Pe.directivesList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"232rpx",height:"150rpx"},key:l},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(t.serviceDuration+"分钟"),1),e.createElementVNode("image",{class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e}),e.createElementVNode("view",{class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(t.cycleType),1)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(vt(t.directiveName)[0]),1)])))),128))])):e.createCommentVNode("",!0)])],6))],512),[[e.vShow,z.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-say",onClick:a[13]||(a[13]=e=>F.value=!1)},[e.createElementVNode("view",{class:"popup-say-content",style:e.normalizeStyle([{padding:"30rpx 0"},{opacity:_.value?1:0}]),onClick:a[12]||(a[12]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 体型标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.slice(0,5),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 情绪标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.slice(5,12),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l+5}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{class:"popup-say-three"})],4)],512),[[e.vShow,F.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:a[15]||(a[15]=e=>Ve.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:Ee.value?1:0}),onClick:a[14]||(a[14]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-title"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx"},src:je}),e.createElementVNode("view",{style:{"font-weight":"600","margin-left":"15rpx"}}," 护理单元 ")]),e.createElementVNode("view",{class:"share-others"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"45rpx"}}," 护理流程 "),e.createElementVNode("view",{style:{"margin-top":"30rpx"}},[e.createTextVNode(e.toDisplayString(uni.getStorageSync("nuName"))+" ",1),e.createElementVNode("text",{style:{color:"#1083F8"}},e.toDisplayString(uni.getStorageSync("NUall").elderInfo?uni.getStorageSync("NUall").elderInfo.name:""),1)]),e.createElementVNode("view",{class:"blue-button"}," 分享 ")])])],4)],512),[[e.vShow,Ve.value]]),ae.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["neuro-wrapper",ht.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:a[16]||(a[16]=e=>ae.value=!1)}),e.createElementVNode("view",{class:"neuro-box",onClick:a[19]||(a[19]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"delete-button-father"},[e.createElementVNode("view",{class:"button-white",onClick:a[17]||(a[17]=e=>ae.value=!1)},"取消"),e.createElementVNode("view",{class:"button",onClick:a[18]||(a[18]=e=>ie())},"确定")]),e.createElementVNode("view",{class:"title"},"确定要删除指令吗"),e.createElementVNode("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"240rpx",height:"170rpx"}},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:(null==(qe=it.value[we.value.index0])?void 0:qe.children[we.value.index1].netImmediateFile)?it.value[we.value.index0].children[we.value.index1].netImmediateFile:"/static/logo.png"},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(it.value[we.value.index0].children[we.value.index1].startTime+"-"+it.value[we.value.index0].children[we.value.index1].endTime),1),1!=(null==(Re=it.value[we.value.index0])?void 0:Re.children[we.value.index1].cycleTypeId)?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e})):e.createCommentVNode("",!0),1!=it.value[we.value.index0].children[we.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(null==(Je=it.value[we.value.index0])?void 0:Je.children[we.value.index1].cycleType),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(vt(null==(Ge=it.value[we.value.index0])?void 0:Ge.children[we.value.index1].directiveName)[0]),1)])])],2)):e.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-61975830"]]),Oe="/static/nomessage.png",Ye=s(e.defineComponent({__name:"equipment",props:{isShow:{type:Boolean,required:!0}},emits:["back","cleanmain","canback"],setup(t,{emit:a}){const i=t,n=e.ref(-1),o=e.ref(!1),r=A("/static/index/newindex/curve","curve_",9,"png",1,!1),c=e.ref([...r,...[...r].reverse()]),s=e.ref([{url:"/static/index/newindex/leftmenu/up.png"},{url:"/static/index/newindex/leftmenu/down.png"}]),u=e.ref([{name:"抄表",type:"3",url:"/static/index/newindex/leftmenu/read1.png",targeturl:"/static/index/newindex/leftmenu/read8.png"},{name:"清零",type:"9",url:"/static/index/newindex/leftmenu/bezero.png",targeturl:"/static/index/newindex/leftmenu/bezerotarget.png"},{name:"电表拉闸",type:"10",url:"/static/index/newindex/rightmenu/closes0.png",targeturl:"/static/index/newindex/rightmenu/closes11.png"},{name:"电表合闸",type:"11",url:"/static/index/newindex/rightmenu/switch0.png",targeturl:"/static/index/newindex/rightmenu/switch6.png"}]),d=e.ref([{name:"抄表",type:"42",url:"/static/index/newindex/leftmenu/read1.png",targeturl:"/static/index/newindex/leftmenu/read8.png"},{name:"清零",type:"49",url:"/static/index/newindex/leftmenu/bezero.png",targeturl:"/static/index/newindex/leftmenu/bezerotarget.png"},{name:"开阀",type:"43",url:"/static/index/newindex/rightmenu/closes0.png",targeturl:"/static/index/newindex/rightmenu/closes11.png"},{name:"关阀",type:"53",url:"/static/index/newindex/rightmenu/switch0.png",targeturl:"/static/index/newindex/rightmenu/switch6.png"}]),m=e.ref([{name:"抄表",type:"0",url:"/static/index/newindex/leftmenu/read1.png",targeturl:"/static/index/newindex/leftmenu/read8.png"},{name:"告警",type:"1",url:"/static/index/newindex/rightmenu/service0.png",targeturl:"/static/index/newindex/rightmenu/service4.png"}]),v=e.ref(0),p=e.ref(-1),h=a;e.ref(0);const y=new Map;e.onBeforeUnmount((()=>{for(const e of y.values())clearTimeout(e);y.clear()}));const w=e.ref(-1),N=e.ref(0),f=e.ref(!1);e.ref(),e.ref(0);const k=e.ref(!1),E=e.ref(!1),x=e.ref(!1),V=e.ref(!1),b=e.ref(!1),S=e.ref(!1),B=e.ref({pageNo:1,pageSize:8,cid:0,type:"",sn:""}),T=e.ref([]),C=()=>{B.value.pageNo=1,T.value=[],D.value=0,z.value=0,1==w.value&&(B.value.cid=me.value.cid,B.value.type=u.value[0].type,fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records,S.value=!0)}))),2==w.value&&(B.value.cid=ve.value.cid,B.value.type=d.value[0].type,fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records,S.value=!0)}))),3==w.value&&(B.value.sn=he.value.sn,B.value.type="0",z.value=3,ke(B.value).then((e=>{200==e.code&&(T.value=e.result.records,S.value=!0)})))},D=e.ref(0),z=e.ref(0),I=(e,t)=>{if(B.value.type!=e){if(3==w.value)return D.value=t,B.value.pageNo=1,T.value=[],B.value.type=e,void("0"==e?ke(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})):Ee(B.value).then((e=>{200==e.code&&(T.value=e.result.records,l("log","at pages/NursingNew/component/equipment.vue:762","aaaa",T.value))})));z.value=t>1?1:0,D.value=t,B.value.pageNo=1,T.value=[],B.value.type=e,fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records)}))}},F=e=>{if(3==w.value)return D.value=e+2,void(e?8==T.value.length&&(B.value.pageNo++,"0"==B.value.type?ke(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})):Ee(B.value).then((e=>{200==e.code&&(T.value=e.result.records,l("log","at pages/NursingNew/component/equipment.vue:803","aaaa",T.value))}))):B.value.pageNo>1&&(B.value.pageNo--,T.value=[],"0"==B.value.type?ke(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})):Ee(B.value).then((e=>{200==e.code&&(T.value=e.result.records)}))));D.value=e+u.value.length,e?8==T.value.length&&(B.value.pageNo++,fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records)}))):B.value.pageNo>1&&(B.value.pageNo--,T.value=[],fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})))},_=()=>{var e,t;j(),1==w.value?(e=me.value.cid,t=me.value.address,g({url:`${uni.getStorageSync("serverUrl")}/api/iot/electricityMeter/eleReset?cid=${e}&address=${t}`,method:"get"})).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):2==w.value&&((e,t)=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/waterReset?cid=${e}&address=${t}`,method:"get"}))(ve.value.cid,ve.value.address).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)}))},M=e=>{j(),1==w.value?((e,t,l)=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/electricityMeter/eleControl?cid=${e}&address=${t}&type=${l}`,method:"get"}))(me.value.cid,me.value.address,e).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):2==w.value&&(e="10"==e?"43":"53",((e,t,l)=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/waterControl?cid=${e}&address=${t}&type=${l}`,method:"get"}))(ve.value.cid,ve.value.address,e).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})))},$=()=>{var e,t,l;j(),1==w.value?(t=me.value.cid,l=me.value.address,g({url:`${uni.getStorageSync("serverUrl")}/api/iot/electricityMeter/eleRead?cid=${t}&address=${l}`,method:"get"})).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):2==w.value?((e,t)=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/waterRead?cid=${e}&address=${t}`,method:"get"}))(ve.value.cid,ve.value.address).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):3==w.value&&(e=he.value.sn,g({url:`${uni.getStorageSync("serverUrl")}/api/iot/humidDevice/updateDeviceRealTime?sn=${e}`,method:"get"})).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)}))},L=()=>{var e;j(),1==w.value?(e=me.value.id,g({url:`${uni.getStorageSync("serverUrl")}/api/iot/electricityMeter/baoxiu`,method:"post",data:{id:e}})).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):2==w.value?(e=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/baoxiu`,method:"post",data:{id:e}}))(ve.value.id).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):3==w.value?(e=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/humidDevice/baoxiu`,method:"post",data:{id:e}}))(he.value.id).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})):0==w.value&&(e=>g({url:`${uni.getStorageSync("serverUrl")}/api/iot/tplink/cameraInfo/baoxiu`,method:"post",data:{id:e}}))(he.value.id).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)}))},j=()=>{k.value=!1,E.value=!1,V.value=!1,x.value=!1,b.value=!1,S.value=!1,o.value=!1,h("canback",!1)},U=e=>{p.value=e,Te(),n.value=1,3!=w.value?1!==n.value||e?1==e?(b.value=!0,h("canback",!0)):2==e&&(C(),h("canback",!0)):(k.value=!0,h("canback",!0)):e?1==e&&(C(),h("canback",!0)):(b.value=!0,h("canback",!0))},P=e=>{w.value||e?(p.value=e,Te(),n.value=2,3!=w.value?e?(V.value=!0,h("canback",!0)):"1"===me.value.relayState?(E.value=!0,h("canback",!0)):(x.value=!0,h("canback",!0)):(V.value=!0,h("canback",!0))):uni.navigateTo({url:"/pages/watch/full"})};function A(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const q=e.ref([A("/static/index/newindex/leftmenu","zero",11,"png",0,!1),A("/static/index/newindex/leftmenu","read",8,"png",1,!1),A("/static/index/newindex/leftmenu","Log",10,"png",0,!1)]),O=e.ref([A("/static/index/newindex/leftmenu","read",8,"png",1,!1),A("/static/index/newindex/leftmenu","Log",10,"png",0,!1)]),Y=e.ref([A("/static/index/newindex/rightmenu","service",5,"png",0,!1)]),R=e.ref([]),W=e.ref([]),J=e.ref([A("/static/index/newindex/rightmenu","closes",12,"png",0,!1),A("/static/index/newindex/rightmenu","switch",7,"png",0,!1),A("/static/index/newindex/rightmenu","service",5,"png",0,!1)]),Q=e.ref(["清零","抄表","日志","拉闸","合闸","报修"]),G=e.ref(["预览","报修"]),X=e.ref(["清零","抄表","日志","开阀","关阀","报修"]),H=e.ref(["抄表","日志","报修"]),Z=e.ref([{url:A("/static/index/newindex/shebei","Camera",9,"png",0,!1),name:"摄像头"},{url:A("/static/index/newindex/shebei","cable",10,"png",0,!1),name:"智能电表"},{url:A("/static/index/newindex/shebei","river",13,"png",0,!1),name:"智能水表"},{url:A("/static/index/newindex/shebei","humiture",9,"png",0,!1),name:"温湿度计"}]),K=e.ref(!1);function ee(e){const t=String(e);if(!t.includes("."))return{intPart:t,fracDigits:""};const[l,a]=t.split(".");return{intPart:l,fracDigits:a}}e.watch((()=>i.isShow),((e,t)=>{!t&&e?(K.value=!1,setTimeout((()=>{K.value=!0}),50)):K.value=!1}));const te=e.ref(""),le=e.ref(0);let ae=0,ie=0,ne=0,oe=300,re=!1;function ce(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()}function se(e){re=!1,ae=le.value,ie=e,ne=ce(),oe=300,re=!0,de(ue)}function ue(){if(!re)return;let e=(ce()-ne)/oe;e>1&&(e=1);const t=1-Math.pow(1-e,3);le.value=Number((ae+(ie-ae)*t).toFixed(2)),e<1?de(ue):re=!1}function de(e){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,16)}const me=e.ref({eleValue:"",address:"",readTime:"",relayState:"0",cid:0,id:0}),ve=e.ref({waterValue:"",address:"",readTime:"",relayState:"0",cid:0,id:0}),he=e.ref({temperature:"",humidity:"",maintainStatus:"",sn:"",reportingTime:"",id:0});e.onMounted((()=>{te.value=uni.getStorageSync("realname"),w.value=0,f.value=!0,Se(),xe(),K.value=!1,setTimeout((()=>{K.value=!0}),50)}));const ye=()=>{var e;if(uni.$emit("smallmonitor:isshow",!1),w.value=null==(e=Ne.value[N.value])?void 0:e.typeNumber,1===w.value){me.value=Ne.value[N.value];const e=me.value.eleValue;"1"===me.value.relayState?R.value=[J.value[1],J.value[2]]:R.value=[J.value[0],J.value[2]],se(Number(e))}else if(2===w.value){ve.value=Ne.value[N.value];const e=ve.value.waterValue;"1"===ve.value.relayState?W.value=[J.value[1],J.value[2]]:W.value=[J.value[0],J.value[2]],se(Number(e))}else if(3===w.value){he.value=Ne.value[N.value],l("log","at pages/NursingNew/component/equipment.vue:1386","啥啊",he.value);const e=he.value.temperature;se(Number(e))}else w.value||(we.value=Ne.value[N.value],R.value=[J.value[0],J.value[2]])},we=e.ref({deviceName:"",deviceStatus:"1",nuId:"",nuName:"",sn:"",reportingTime:"",id:0}),Ne=e.ref([]),xe=()=>{setTimeout((()=>{N.value=0,ye()}),500)},Ve=e.ref(!1),be=e.ref({temperature:"",humidity:""}),Se=()=>{g({url:`${uni.getStorageSync("serverUrl")}/api/iot/common/list?nuId=${uni.getStorageSync("nuId")}`,method:"get"}).then((e=>{if(!e.result.cameraInfoEntityList.length)return void(Ve.value=!0);if(Ne.value=[],null!=e.result.cameraInfoEntityList&&e.result.cameraInfoEntityList.forEach(((e,t)=>{e.typeNumber=0,e.lookName="摄像头",e.donghuapian=Z.value[0].url,Ne.value.push(e)})),null!=e.result.electricityMeterEntityList&&e.result.electricityMeterEntityList.forEach(((e,t)=>{e.typeNumber=1,e.lookName="智能电表",e.donghuapian=Z.value[1].url,Ne.value.push(e)})),null!=e.result.waterMeterEntityList&&e.result.waterMeterEntityList.forEach(((e,t)=>{e.typeNumber=2,e.lookName="智能水表",e.donghuapian=Z.value[2].url,Ne.value.push(e)})),null!=e.result.humidDeviceEntityList&&e.result.humidDeviceEntityList.forEach(((e,t)=>{e.typeNumber=3,e.lookName="温湿度计",e.donghuapian=Z.value[3].url,Ne.value.push(e),be.value.temperature=e.temperature,be.value.humidity=e.humidity})),3===w.value){he.value=JSON.parse(JSON.stringify(Ne.value[N.value]));const e=he.value.temperature;se(Number(e))}let t=N.value;N.value=-1,setTimeout((()=>{N.value=t}),500)}))},Be=e.ref(!1),Te=()=>{-1==n.value&&(Be.value=!0,h("cleanmain"))};return(t,l)=>{const a=e.resolveComponent("donghua");return Ve.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"index-content-other",style:e.normalizeStyle(K.value?{opacity:"1"}:{opacity:"0"})},[e.withDirectives(e.createElementVNode("view",{class:"zhezhao",onClick:l[16]||(l[16]=e=>j())},[S.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"rizhi-box",onClick:l[0]||(l[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"rizhi-title"},[1==w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"rizhi-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["rizhi-card",{buttontarget:D.value===l}]),style:e.normalizeStyle(t.type==B.value.type?{color:"#008FF5"}:{}),key:l,onClick:e=>I(t.type,l)},[e.createElementVNode("image",{class:"rizhi-card-img",src:t.type==B.value.type?t.targeturl:t.url},null,8,["src"]),e.createElementVNode("view",{class:"rizhi-card-font"},e.toDisplayString(t.name),1)],14,["onClick"])))),128))])):e.createCommentVNode("",!0),2==w.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"rizhi-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["rizhi-card",{buttontarget:D.value===l}]),style:e.normalizeStyle(t.type==B.value.type?{color:"#008FF5"}:{}),key:l,onClick:e=>I(t.type,l)},[e.createElementVNode("image",{class:"rizhi-card-img",src:t.type==B.value.type?t.targeturl:t.url},null,8,["src"]),e.createElementVNode("view",{class:"rizhi-card-font"},e.toDisplayString(t.name),1)],14,["onClick"])))),128))])):e.createCommentVNode("",!0),3==w.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"rizhi-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["rizhi-card",{buttontarget:D.value===l}]),style:e.normalizeStyle(t.type==B.value.type?{color:"#008FF5"}:{}),key:l,onClick:e=>I(t.type,l)},[e.createElementVNode("image",{class:"rizhi-card-img",src:t.type==B.value.type?t.targeturl:t.url},null,8,["src"]),e.createElementVNode("view",{class:"rizhi-card-font"},e.toDisplayString(t.name),1)],14,["onClick"])))),128))])):e.createCommentVNode("",!0),3!=w.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"rizhi-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["rizhi-card-right",{buttontarget:D.value===l+u.value.length}]),key:l,onClick:e=>F(l)},[e.createElementVNode("image",{class:"rizhi-card-img",src:t.url},null,8,["src"])],10,["onClick"])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:4,class:"rizhi-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["rizhi-card-right",{buttontarget:D.value===l+2}]),key:l,onClick:e=>F(l)},[e.createElementVNode("image",{class:"rizhi-card-img",src:t.url},null,8,["src"])],10,["onClick"])))),128))]))]),e.withDirectives(e.createElementVNode("view",{class:"rizhi-rule"},[e.createElementVNode("view",{class:"rizhi-rule-title"},[e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}}," SN "),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}}," 操作时间 "),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString(1==w.value?"上次电表值":"上次水表值"),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString(1==w.value?"电表值":"水表值"),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}}," 状态 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"rizhi-rule-kuai",key:l},[e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString(t.address),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString(t.requestTime),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString(Number(t.requestValue).toFixed(2)),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString(Number(t.resolveValue).toFixed(2)),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString(t.resolveStatus),1)])))),128)),T.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"},[e.createElementVNode("image",{class:"nomessage-img",src:Oe}),e.createElementVNode("view",{class:""}," 暂无信息 ")]))],512),[[e.vShow,!z.value]]),e.withDirectives(e.createElementVNode("view",{class:"rizhi-rule"},[e.createElementVNode("view",{class:"rizhi-rule-title"},[e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"33%"}}," SN "),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"33%"}}," 操作时间 "),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"33%"}}," 状态 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"rizhi-rule-kuai",key:l},[e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"33%"}},e.toDisplayString(t.address),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"33%"}},e.toDisplayString(t.requestTime),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"33%"}},e.toDisplayString(t.resolveStatus),1)])))),128)),T.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"},[e.createElementVNode("image",{class:"nomessage-img",src:Oe}),e.createElementVNode("view",{class:""}," 暂无信息 ")]))],512),[[e.vShow,1==z.value]]),e.withDirectives(e.createElementVNode("view",{class:"rizhi-rule"},[e.createElementVNode("view",{class:"rizhi-rule-title"},[e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}}," sn "),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString("0"==B.value.type?"抄表时间":"告警时间"),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString("0"==B.value.type?"温度":"告警内容"),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString("0"==B.value.type?"湿度":"告警值"),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString("0"==B.value.type?"状态":"消除告警时间"),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"rizhi-rule-kuai",key:l},[e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString(t.sn),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString("0"==B.value.type?t.optTime:t.wrDate),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString("0"==B.value.type?t.temperature:t.wrContent),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"15%"}},e.toDisplayString("0"==B.value.type?t.humidity:t.wrData),1),e.createElementVNode("view",{class:"rizhi-rule-title-kuai",style:{width:"23%"}},e.toDisplayString("0"==B.value.type?"0"==t.status?"抄表成功":"抄表失败":t.clearDate),1)])))),128)),T.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"},[e.createElementVNode("image",{class:"nomessage-img",src:Oe}),e.createElementVNode("view",{class:""}," 暂无信息 ")]))],512),[[e.vShow,3==z.value]])])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"neuro-box",onClick:l[3]||(l[3]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:e.normalizeClass(o.value?"button-white":"buttontarget button"),onClick:l[1]||(l[1]=e=>k.value=!1)}," 取消",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[2]||(l[2]=e=>_())},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要清零吗 ")])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"neuro-box-chaobiao",style:e.normalizeStyle({top:3==w.value?"560rpx":"650rpx"}),onClick:l[6]||(l[6]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:e.normalizeClass(o.value?"button-white":"buttontarget button"),onClick:l[4]||(l[4]=e=>b.value=!1)}," 取消",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[5]||(l[5]=e=>$())},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要抄表吗 ")],4)):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"neuro-box-lazha",onClick:l[9]||(l[9]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:e.normalizeClass(o.value?"button-white":"buttontarget button"),onClick:l[7]||(l[7]=e=>E.value=!1)},"取消 ",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[8]||(l[8]=e=>M("10"))},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要"+e.toDisplayString(1===w.value?"拉闸":2===w.value?"开阀":"")+"吗 ",1)])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"neuro-box-baoxiu",style:e.normalizeStyle({top:3==w.value?"560rpx":"650rpx"}),onClick:l[12]||(l[12]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:e.normalizeClass(o.value?"button-white":"buttontarget button"),onClick:l[10]||(l[10]=e=>V.value=!1)},"取消 ",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[11]||(l[11]=e=>L())},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要报修吗 ")],4)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"neuro-box-lazha",onClick:l[15]||(l[15]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:e.normalizeClass(o.value?"button-white":"buttontarget button"),onClick:l[13]||(l[13]=e=>x.value=!1)},"取消 ",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[14]||(l[14]=e=>M("11"))},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要"+e.toDisplayString(1===w.value?"合闸":2===w.value?"关阀":"")+"吗 ",1)])):e.createCommentVNode("",!0)],512),[[e.vShow,k.value||E.value||V.value||x.value||b.value||S.value]]),e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("text",{style:{"margin-left":"30rpx"}}," NUID:"+e.toDisplayString(uni.getStorageSync("nuId")),1),e.createElementVNode("text",{class:"new-weight"},e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("view",{class:"right-icons"},[e.createElementVNode("view",{class:"right-container-tem"},[e.createElementVNode("image",{class:"right-container-tem-img",src:pe}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(be.value.temperature?be.value.temperature:"-")+"°C",1),e.createElementVNode("image",{class:"right-container-tem-img",src:ge}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(be.value.humidity?be.value.humidity:"-")+"%",1)])])]),e.createElementVNode("view",{class:"scroll-vi"},[e.createElementVNode("view",{class:"zhezhao-left"}),e.createElementVNode("view",{class:"zhezhao-right"}),e.createElementVNode("scroll-view",{"scroll-x":"true",style:{width:"1800rpx",height:"100%"},"scroll-left":v.value},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("view",{style:{width:"100rpx"}}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ne.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass([{zerotarget:0===n.value&&p.value===l},"menu"]),style:e.normalizeStyle({backgroundColor:0===n.value&&p.value===l?"#ddf0ff":""}),onClick:e=>{N.value=l,p.value=l,Te(),n.value=0,ye()}},[e.createVNode(a,{links:t.donghuapian,width:"55rpx",height:"55rpx",playing:N.value===l},null,8,["links","playing"]),e.createElementVNode("text",{class:e.normalizeClass(["menu-font",{zoom:N.value===l}]),style:e.normalizeStyle(N.value===l?{color:"#008FF5"}:{})},e.toDisplayString(t.lookName),7)],14,["onClick"])))),128)),e.createElementVNode("view",{style:{width:"100rpx"}})])],8,["scroll-left"])]),e.withDirectives(e.createElementVNode("view",{class:"index-father"},[e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:{"margin-left":"-50rpx"}},[e.createVNode(a,{width:"1500rpx",height:"1000rpx",links:c.value,playing:f.value,loop:!0,interval:120},null,8,["links","playing"])]),e.createElementVNode("view",{class:"weight-time",style:{"font-size":"55rpx"}}," NUID:"+e.toDisplayString(we.value.nuId?we.value.nuId:""),1),e.createElementVNode("view",{class:"gray-bgc"},e.toDisplayString(we.value.nuName?we.value.nuName:""),1),e.createElementVNode("image",{class:"big-img-shexiang",src:"/static/index/newindex/wendu/6.png"},null,8,["src"]),e.createElementVNode("view",{class:"bottom-father"},[e.createElementVNode("view",{class:"status-button"},e.toDisplayString("1"==we.value.deviceStatus?"在线":"离线"),1),e.createElementVNode("view",{class:"status-font"}," SN:"+e.toDisplayString(we.value.sn),1),e.createElementVNode("view",{class:"status-time"}," 设备名称:"+e.toDisplayString(we.value.deviceName?we.value.deviceName:""),1)])]),e.createElementVNode("view",{class:"right-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>P(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:2===n.value&&p.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&p.value===l?"#ddf0ff":""})},[e.withDirectives(e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx"},src:"/static/index/newindex/wendu/yulan.png"},null,512),[[e.vShow,!l]]),e.withDirectives(e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"]),[[e.vShow,l]])],6),e.createElementVNode("view",{style:{position:"relative"}},e.toDisplayString(G.value[l]),1)],8,["onClick"])))),128))])],512),[[e.vShow,0===w.value]]),e.withDirectives(e.createElementVNode("view",{class:"index-father"},[e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:{"margin-left":"-50rpx"}},[e.createVNode(a,{width:"1500rpx",height:"1000rpx",links:c.value,playing:f.value,loop:!0,interval:120},null,8,["links","playing"])]),e.createElementVNode("view",{class:"donghua-number"},e.toDisplayString(le.value),1),e.createElementVNode("view",{class:"weight-time"},[e.createTextVNode(e.toDisplayString(me.value.eleValue?me.value.eleValue:"0.00")+" ",1),e.createElementVNode("view",{class:"big-font-right"},[e.createElementVNode("view",{class:"font-top"}," KWH "),e.createElementVNode("view",{class:"right-kuai"}," 用电量 ")])]),e.createElementVNode("image",{class:"big-img",src:"/static/index/newindex/wendu/3.png"},null,8,["src"]),e.createElementVNode("view",{class:"bottom-father"},[e.createElementVNode("view",{class:"status-button"},e.toDisplayString("1"==me.value.relayState?"合闸":"拉闸"),1),e.createElementVNode("view",{class:"status-font"}," SN:"+e.toDisplayString(me.value.address),1),e.createElementVNode("view",{class:"status-time"}," 上次抄表时间:"+e.toDisplayString(me.value.readTime?me.value.readTime:"未抄表"),1)])]),e.createElementVNode("view",{class:"left-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>U(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:1===n.value&&p.value===l&&!S.value}]),style:e.normalizeStyle({backgroundColor:1!==n.value||p.value!==l||S.value?"":"#ddf0ff"})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:1===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"])],6),e.createElementVNode("view",{class:""},e.toDisplayString(Q.value[l]),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"right-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>P(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:2===n.value&&p.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&p.value===l?"#ddf0ff":""})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"])],6),e.createElementVNode("view",{style:{position:"relative"}},e.toDisplayString(1==l?Q.value[5]:"1"===me.value.relayState?Q.value[3]:Q.value[4]),1)],8,["onClick"])))),128))])],512),[[e.vShow,1===w.value]]),e.withDirectives(e.createElementVNode("view",{class:"index-father"},[e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:{"margin-left":"-50rpx"}},[e.createVNode(a,{width:"1500rpx",height:"1000rpx",links:c.value,playing:f.value,loop:!0,interval:120},null,8,["links","playing"])]),e.createElementVNode("view",{class:"water-donghua-number"},e.toDisplayString(le.value),1),e.createElementVNode("view",{class:"weight-time"},[e.createTextVNode(e.toDisplayString(ve.value.waterValue?ve.value.waterValue:"0.00")+" ",1),e.createElementVNode("view",{class:"big-font-right"},[e.createElementVNode("view",{class:"font-top"}," m³ "),e.createElementVNode("view",{class:"right-kuai"}," 用水量 ")])]),e.createElementVNode("image",{class:"big-img",src:"/static/index/newindex/wendu/4.png"},null,8,["src"]),e.createElementVNode("view",{class:"bottom-father"},[e.createElementVNode("view",{class:"status-button"},e.toDisplayString("1"==ve.value.relayState?"关阀":"开阀"),1),e.createElementVNode("view",{class:"status-font"}," SN:"+e.toDisplayString(ve.value.address),1),e.createElementVNode("view",{class:"status-time"}," 上次抄表时间:"+e.toDisplayString(ve.value.readTime?ve.value.readTime:"未抄表"),1)])]),e.createElementVNode("view",{class:"left-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>U(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:1===n.value&&p.value===l&&!S.value}]),style:e.normalizeStyle({backgroundColor:1!==n.value||p.value!==l||S.value?"":"#ddf0ff"})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:1===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"])],6),e.createElementVNode("view",{class:""},e.toDisplayString(X.value[l]),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"right-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>P(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:2===n.value&&p.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&p.value===l?"#ddf0ff":""})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"])],6),e.createElementVNode("view",{style:{position:"relative"}},e.toDisplayString(1==l?X.value[5]:"1"===ve.value.relayState?X.value[3]:X.value[4]),1)],8,["onClick"])))),128))])],512),[[e.vShow,2===w.value]]),e.withDirectives(e.createElementVNode("view",{class:"index-father"},[e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:{"margin-left":"-50rpx"}},[e.createVNode(a,{width:"1500rpx",height:"1000rpx",links:c.value,playing:f.value,loop:!0,interval:120},null,8,["links","playing"])]),e.createElementVNode("view",{class:"wendu-juzhong"},[e.createElementVNode("view",{class:"wendu-top"},[e.createElementVNode("view",{class:"wendu-top-left"},e.toDisplayString(le.value?ee(le.value).intPart:"-"),1),e.createElementVNode("view",{class:"wendu-top-right"},[e.createElementVNode("view",{class:""}," ℃ "),e.createElementVNode("view",{class:""}," ."+e.toDisplayString(le.value?ee(le.value).fracDigits:"-"),1)])]),e.createElementVNode("view",{class:"wendu-heng"}),e.createElementVNode("view",{class:"wendu-bottom"},e.toDisplayString(he.value.humidity?he.value.humidity:"-")+" % ",1)]),e.createElementVNode("view",{class:"weight-time"},[e.createTextVNode(e.toDisplayString(he.value.temperature?he.value.temperature:"-")+" ",1),e.createElementVNode("view",{class:"big-font-right"},[e.createElementVNode("view",{class:"font-top"}," ℃ "),e.createElementVNode("view",{class:"right-kuai"}," 温度 ")]),e.createElementVNode("view",{class:"zhongjian-shu"}),e.createTextVNode(" "+e.toDisplayString(he.value.humidity?he.value.humidity:"-")+" ",1),e.createElementVNode("view",{class:"big-font-right"},[e.createElementVNode("view",{class:"font-top"}," % "),e.createElementVNode("view",{class:"right-kuai"}," 湿度 ")])]),e.createElementVNode("image",{class:"big-img",src:"/static/index/newindex/wendu/5.png"},null,8,["src"]),e.createElementVNode("view",{class:"bottom-father"},[e.createElementVNode("view",{class:"status-button"},e.toDisplayString(0==he.value.maintainStatus?"正常":1==he.value.maintainStatus?"维修中":2==he.value.maintainStatus?"报废":""),1),e.createElementVNode("view",{class:"status-font"}," SN:"+e.toDisplayString(he.value.sn),1),e.createElementVNode("view",{class:"status-time"}," 上次抄表时间:"+e.toDisplayString(he.value.reportingTime?he.value.reportingTime:"未抄表"),1)])]),e.createElementVNode("view",{class:"left-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>U(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:1===n.value&&p.value===l&&!S.value}]),style:e.normalizeStyle({backgroundColor:1!==n.value||p.value!==l||S.value?"":"#ddf0ff"})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:1===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"])],6),e.createElementVNode("view",{class:""},e.toDisplayString(H.value[l]),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"right-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"buttons-father",onClick:e=>P(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:2===n.value&&p.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&p.value===l?"#ddf0ff":""})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&p.value===l,loop:!1,interval:120},null,8,["links","playing"])],6),e.createElementVNode("view",{style:{position:"relative"}},e.toDisplayString(1==l?H.value[1]:H.value[2]),1)],8,["onClick"])))),128))])],512),[[e.vShow,3===w.value]])],4))}}}),[["__scopeId","data-v-6f0b6a12"]]),Re=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/deleteDirective`,method:"post",data:e}),We=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/editDirective`,method:"post",data:e});function Je(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const Qe=[{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706886",title:"协助喂药",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902604232524795905",title:"鼻饲喂药",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902604428667228162",title:"注射器/吸管喂药",tagName:"头部,大体重"}],levle:"2",title:"协助喂药",key:"1900114812020310017",parentId:"1900112597427793921",url:Je("/static/index/diet","medicine_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902605892869394433",title:"一级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606105021485058",title:"二级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606339931869185",title:"三级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606614344208386",title:"一级压疮防护",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606869953482753",title:"二级压疮防护",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607023431454722",title:"三级压疮防护",tagName:"大体重"}],levle:"2",title:"压疮防护",key:"1900115034452639746",parentId:"1900112597427793921",url:Je("/static/index/diet","knead_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706887",title:"床椅转移",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706888",title:"床椅转移",tagName:"大体重"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605073730211842",title:"床椅转移",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605223185846273",title:"床椅转移",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902605365393723393",title:"协助床椅转移",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605496071458818",title:"协助床椅转移",tagName:null}],levle:"2",title:"床椅转移",key:"1902248363784159233",parentId:"1900112597427793921",url:Je("/static/index/diet","chair_",8,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607507626102786",title:"轮椅防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607677415723010",title:"轮椅防护",tagName:"大体重"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902607817589362689",title:"轮椅防护",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902608061588803585",title:"轮椅防护",tagName:"大体重"}],levle:"2",title:"轮椅防护",key:"1902280900178886657",parentId:"1900112597427793921",url:Je("/static/index/diet","wheelchair_",10,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902608564582322178",title:"约束位按摩",tagName:"手"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902608974609092610",title:"约束位按摩",tagName:"足"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902618507855237121",title:"约束位按摩",tagName:"全"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902618751548493825",title:"防护网约束",tagName:null}],levle:"2",title:"约束防护",key:"1902280933364219906",parentId:"1900112597427793921",url:Je("/static/index/diet","constraint_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902620309090701314",title:"协助行走",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902620486044192769",title:"放松按摩",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902625161569079298",title:"心灵慰藉",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902625402468929537",title:"狂躁",tagName:null}],levle:"2",title:"按摩保健",key:"1902564031454744577",parentId:"1900112597427793921",url:Je("/static/index/diet","massage_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902625872432304130",title:"准备衣物",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626005538541569",title:"协助更换",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626664711163905",title:"肢体障碍",tagName:"半侧"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626800510144513",title:"肢体障碍",tagName:"全身"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627064688381953",title:"准备衣物",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627280716009474",title:"协助更换",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627416598876161",title:"肢体障碍",tagName:"半侧"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627522404388866",title:"肢体障碍",tagName:"全身"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902627711806574593",title:"协助更换",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902628058591629313",title:"肢体障碍",tagName:"半侧,大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902628650718302209",title:"肢体障碍",tagName:"大体重,全测"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902628837725540354",title:"肢体障碍",tagName:"大体重,全测"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902628966847188993",title:"肢体障碍",tagName:"大体重,半侧"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902629129879785474",title:"协助更换",tagName:"大体重"}],levle:"2",title:"更换衣物",key:"1902564088417587201",parentId:"1900112597427793921",url:Je("/static/index/diet","replace_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902629344456183809",title:"坐起",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902629492301205506",title:"躺下",tagName:null}],levle:"2",title:"调整坐卧",key:"1902564199830884354",parentId:"1900112597427793921",url:Je("/static/index/diet","adjust_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"55",id:"1902630862769065985",title:"遗体净身",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"55",id:"1902631162275926017",title:"遗体穿衣",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902631422431825921",title:"遗体转移",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902631602463936514",title:"床位消毒",tagName:null}],levle:"2",title:"殡仪服务",key:"1902564263743688705",parentId:"1900112597427793921",url:Je("/static/index/diet","exequy_",4,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902631830441136129",title:"更换床上用品",tagName:"全部"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902632063828987905",title:"隔尿褥子更换",tagName:null}],levle:"2",title:"更换床上用品",key:"1902564446648897538",parentId:"1900112597427793921",url:Je("/static/index/diet","change_",6,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902632288270389250",title:"临终护理",tagName:null}],levle:"2",title:"临终服务",key:"1902564503783706625",parentId:"1900112597427793921",url:Je("/static/index/diet","funeral_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"40",id:"1902632678701371393",title:"制氧机吸氧",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902632799853842433",title:"制氧机维护",tagName:null}],levle:"2",title:"制氧机应用",key:"1902564586101116930",parentId:"1900112597427793921",url:Je("/static/index/diet","oxygen_",6,"png",1,!1)}],levle:"1",title:"1 日常照料",key:"1900112597427793921"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900376187661553665",title:"准备洁具",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900420873478553602",title:"棉球清洁",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706881",title:"协助清洁",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706885",title:"义齿清洁",tagName:"口腔"}],levle:"2",title:"口腔清洁",key:"1902597070889127938",parentId:"1900112615777873921",url:Je("/static/index/diet","oral_",7,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902636771540963329",title:"准备洁具",tagName:"头部"},{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902637623425077250",title:"协助洗头",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902637985234128898",title:"卧式洗头",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902638122949906433",title:"擦头",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902638304739430401",title:"刮头",tagName:null}],levle:"2",title:"头部清洁",key:"1902597497344987137",parentId:"1900112615777873921",url:Je("/static/index/diet","head_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902641763073101826",title:"准备洁具",tagName:"面部"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642254465175553",title:"协助洁面",tagName:null}],levle:"2",title:"面部清洁",key:"1902597651405967361",parentId:"1900112615777873921",url:Je("/static/index/diet","wash_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642508145070081",title:"准备洁具",tagName:"躯干"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642672796667905",title:"协助清洁",tagName:"躯干"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642822885642242",title:"卧床清洁",tagName:"躯干"}],levle:"2",title:"躯干清洁",key:"1902597718082818050",parentId:"1900112615777873921",url:Je("/static/index/diet","limbs_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643318811758594",title:"准备洁具",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643483320750082",title:"协助清洁",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643630888947713",title:"卧床清洁",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643837525528578",title:"肌张力高",tagName:"清洁"}],levle:"2",title:"四肢清洁",key:"1902597811565465601",parentId:"1900112615777873921",url:Je("/static/index/diet","torso_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645148199391234",title:"会阴清洁",tagName:"男"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645295457210369",title:"会阴清洁",tagName:"女"}],levle:"2",title:"会阴清洁",key:"1902597873964126209",parentId:"1900112615777873921",url:Je("/static/index/diet","perineum_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645493185089537",title:"肛周清洁",tagName:null}],levle:"2",title:"肛周清洁",key:"1902597930020999170",parentId:"1900112615777873921",url:Je("/static/index/diet","perianal_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645693211447298",title:"洗手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647316134465538",title:"泡手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647529817477122",title:"准备洁具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647673212342274",title:"协助洗手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647905878773762",title:"强直屈曲洗手",tagName:null}],levle:"2",title:"手清洁",key:"1902597991698239489",parentId:"1900112615777873921",url:Je("/static/index/diet","hands_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648101203316737",title:"泡脚",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648239091060737",title:"卧式泡脚",tagName:null}],levle:"2",title:"足清洁",key:"1902598178588037121",parentId:"1900112615777873921",url:Je("/static/index/diet","feet_",4,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902648426383511553",title:"修睫毛",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648548777496577",title:"剃须",tagName:null}],levle:"2",title:"剃须",key:"1902598258573414401",parentId:"1900112615777873921",url:Je("/static/index/diet","shave_",6,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902648962444922882",title:"角质增生",tagName:"修甲"},{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902649132536532994",title:"灰指甲",tagName:"修甲"},{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902649302149992449",title:"正常",tagName:"修甲"}],levle:"2",title:"修甲",key:"1902598354606198785",parentId:"1900112615777873921",url:Je("/static/index/diet","clippers_",6,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902649683919736834",title:"理发",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"25",id:"1902649860344745985",title:"理发",tagName:"颅骨缺损"}],levle:"2",title:"理发",key:"1902598400382832642",parentId:"1900112615777873921",url:Je("/static/index/diet","haircut_",5,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902650121280786434",title:"床上沐浴",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902650408884211713",title:"深度清洁",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902650763722330113",title:"浴间洗浴",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"30",id:"1902651229122301954",title:"床上沐浴",tagName:"大体重"},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902651366317985794",title:"深度清洁",tagName:"大体重"},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902651555363655682",title:"浴间洗浴",tagName:"大体重"}],levle:"2",title:"沐浴",key:"1902598454782955522",parentId:"1900112615777873921",url:Je("/static/index/diet","bathe_",9,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902651778777452545",title:"内套管清洁",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902651924047171586",title:"更换气切纱布",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"10",id:"1902652055928672258",title:"更换气切纱布",tagName:null}],levle:"2",title:"气切消毒",key:"1902598509522817026",parentId:"1900112615777873921",url:Je("/static/index/diet","omy_",4,"png",1,!1)}],levle:"1",title:"2 清洁照料",key:"1900112615777873921"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898057679966209",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898202668666881",title:"协助进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898339931459586",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898472584712194",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898590658564097",title:"胃肠管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902898719952179201",title:"准备餐具",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902898979948695554",title:"协助进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899086840532993",title:"协助进餐",tagName:"超时"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899214838108162",title:"鼻胃管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899325014085633",title:"胃肠管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899587028062210",title:"食物加工",tagName:null}],levle:"2",title:"加餐饮食",key:"1902596129720864770",parentId:"1902280495747317762",url:Je("/static/index/diet","snack_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281139677839362",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902281522340970498",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281654100836354",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281870434648066",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902654960639381506",title:"鼻肠管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902655101874180097",title:"轮椅进餐",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902892199009030145",title:"轮椅进餐",tagName:null}],levle:"2",title:"正餐饮食",key:"1902601263850950657",parentId:"1902280495747317762",url:Je("/static/index/diet","dinner_",8,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893231608926209",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893551978254337",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893716466274306",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894369850757122",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894528533860354",title:"鼻肠管进餐",tagName:null}],levle:"2",title:"辅餐饮食",key:"1902601382595891202",parentId:"1902280495747317762",url:Je("/static/index/diet","food_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894832176304129",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894954117304322",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895077522116609",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895233407619073",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895569912434689",title:"鼻肠管进餐",tagName:null}],levle:"2",title:"果汁饮食",key:"1902601427168759809",parentId:"1902280495747317762",url:Je("/static/index/diet","juice_",9,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895878508351489",title:"准备水杯",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895984053817346",title:"协助饮水",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896136835534850",title:"协助饮水",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896508421509122",title:"鼻胃管饮水",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896636553302017",title:"鼻肠管饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902896855802155010",title:"准备水杯",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897018344017921",title:"协助饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897464936730626",title:"协助饮水",tagName:"超时"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897675813752834",title:"鼻胃管饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897803417063426",title:"鼻肠管饮水",tagName:null}],levle:"2",title:"饮水饮食",key:"1902601487625457665",parentId:"1902280495747317762",url:Je("/static/index/diet","drink_",5,"png",1,!1)}],levle:"1",title:"3 饮食照料",key:"1902280495747317762"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902653177363927041",title:"巡视",tagName:null}],levle:"2",title:"巡视",key:"1902564741860790273",parentId:"1902560466095017986",url:Je("/static/index/diet","posture_",6,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653325481578497",title:"防坠床",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653497066360833",title:"被褥调整",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653650917625857",title:"睡姿调整",tagName:null}],levle:"2",title:"体位调整",key:"1902564818838851585",parentId:"1902560466095017986",url:Je("/static/index/diet","visitation_",5,"png",1,!1)}],levle:"1",title:"4 睡眠照料",key:"1902560466095017986"},{children:[{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902904277308510210",title:"更换尿袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902904458779267073",title:"更换隔尿垫",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902905631242424322",title:"使用尿盆",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902905824973131777",title:"使用尿壶",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906220483416065",title:"协助入厕",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906459051233281",title:"坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906610562076674",title:"留置尿袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906783325458434",title:"更换纸尿裤",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902908406344945665",title:"热敷抚触排尿",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902908523827400705",title:"协助坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902909645401067522",title:"更换尿片",tagName:null}],levle:"2",title:"小便",key:"1902596314152800257",parentId:"1902560510768549889",url:Je("/static/index/diet","urinate_",4,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902909835331735554",title:"床上排便",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910002671882242",title:"协助坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910156154048514",title:"协助入厕",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910361008050178",title:"人工取便",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910524623654913",title:"造瘘袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910700176248834",title:"坐便椅",tagName:null}],levle:"2",title:"大便",key:"1902596399423000577",parentId:"1902560510768549889",url:Je("/static/index/diet","stool_",3,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910899565072385",title:"口腔吸痰",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902911047405899778",title:"气切吸痰",tagName:null}],levle:"2",title:"吸痰",key:"1902596461238652930",parentId:"1902560510768549889",url:Je("/static/index/diet","Sputuma_",7,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902911232974491650",title:"呕吐",tagName:null}],levle:"2",title:"呕吐",key:"1902596886771765250",parentId:"1902560510768549889",url:Je("/static/index/diet","vomiting_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902911378349068290",title:"腹腔引流护理",tagName:null}],levle:"2",title:"引流",key:"1902596940366581762",parentId:"1902560510768549889",url:Je("/static/index/diet","drainage_",6,"png",1,!1)}],levle:"1",title:"5 排泄照料",key:"1902560510768549889"}],Ge=300,Xe=s(e.defineComponent({__name:"index",props:{isshow:{type:Boolean,required:!0}},setup(t){const a=t;e.watch((()=>a.isshow),((t,a)=>{l("log","at pages/NursingNew/component/logistics/index.vue:590",1111),t!==a&&(ke.value=!1,he.value=!1,Ae.value?Ae.value--:(it(),x.value=1,V.value=1,e.nextTick((()=>{V.value=0,x.value=775}))),le.value=0)})),e.ref(!1),e.ref(-1),e.ref(!1),e.ref(-1);const i=e.ref("translate3d(0, 0, 0)");let n=0,o=!1;const r=e.ref(!1),c=e.ref(!1),s=e.ref(!1);e.watch((()=>c.value),(()=>{setTimeout((()=>{r.value=c.value}),50)}));const u=e.ref(!1);e.watch((()=>s.value),(()=>{setTimeout((()=>{u.value=s.value}),50)})),e.ref([]),e.ref([]);const d=e.ref(!1),m=e.ref([]),v=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],p=["00","05","10","15","20","25","30","35","40","45","50","55"],h=["周一","周二","周三","周四","周五","周六","周日"],y=Array.from({length:31},((e,t)=>(t+1).toString().padStart(2,"0"))),w=e.ref(!0),N=e.ref(!1),f=e.ref(0),k=e.ref(0),E=e.ref(0),x=e.ref(678),V=e.ref(0),b=e.ref(),S=e.ref(!1),B=e.ref([]),T=e.ref(!1);e.ref(!1);const C=e.ref(!1);e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1);const D=e.ref(!1);e.ref("");const z=e.ref(!1);e.ref(6),e.ref(11),e.ref(0),e.ref(3);const I=e.ref(!1),F=e.computed((()=>pe.value[0]&&pe.value[1]?"left-bottom":!pe.value[0]&&pe.value[1]?"right-bottom":pe.value[0]&&!pe.value[1]?"left-top":"right-top")),_=e.ref([]),M=e.ref(0);const $=()=>{if(ue.value.index0===re.value.index0&&ue.value.index1===re.value.index1)return I.value=!1,ue.value.index0=-1,void(ue.value.index1=-1);Ye.value[re.value.index0].children[re.value.index1].id?Re(Ye.value[re.value.index0].children[re.value.index1]).then((e=>{L()})):L()},L=()=>{let e=JSON.parse(JSON.stringify(Ye.value[ue.value.index0].children[ue.value.index1]));be.value=[re.value.index0,re.value.index1];let t=Ye.value[ue.value.index0].children[ue.value.index1].tagName;Ye.value[ue.value.index0].children[ue.value.index1]={directiveName:"",tagName:t};let l=Ye.value[be.value[0]].children[be.value[1]].tagName;Ye.value[be.value[0]].children[be.value[1]]=e,Ye.value[be.value[0]].children[be.value[1]].tagName=l;let a=Ye.value[be.value[0]].children[be.value[1]].startTime,i=Ye.value[be.value[0]].children[be.value[1]].endTime,n=Ye.value[be.value[0]].positioning;const o=e=>{const t=String(e||"").split(":").map((e=>e.trim())),l=Number(t[0]??0),a=Number(t[1]??0);return{hour:Number.isFinite(l)?l:0,minute:Number.isFinite(a)?a:0}},r=o(a),c=o(i);let s=60*c.hour+c.minute-(60*r.hour+r.minute);s<0&&(s+=1440);const u=Number(String(l).trim()),d=Number(String(n).trim());if(!Number.isFinite(u)||u<0||u>=60)throw new Error("newtagName 必须是 0-59 的数字字符串或数字");if(!Number.isFinite(d)||d<0)throw new Error("positioning 必须是有效小时(数字或数字字符串)");const m=60*d+u+s,v=Math.floor(m/60)%24,p=m%60,g=e=>String(e).padStart(2,"0");Ye.value[be.value[0]].children[be.value[1]].startTime=`${String(d)}:${g(u)}`,Ye.value[be.value[0]].children[be.value[1]].endTime=`${String(v)}:${g(p)}`,ue.value.index1=-1,I.value=!1;let h={index0:re.value.index0,index1:re.value.index1};qe(h);let y=Ye.value[re.value.index0].children[re.value.index1];y.positioning=re.value.index0,y.positioningLong=re.value.index1,We(y).then((e=>{e.success&&He()}))},j=t=>{var l;5!==t?(N.value=!1,O.value=-1,R.value=-1,q.value="",Y.value="",k.value=.01,f.value=.01,ie.value=-1,e.nextTick((()=>{k.value=0,f.value=0,ie.value=0})),ae.value=0,le.value=t,b.value=null==(l=B.value[t])?void 0:l.children,ne.value=0):uni.navigateTo({url:"/pages/watch/full"})},U=e.ref(!1),P=()=>{W.value=!1,d.value=!1,I.value?$():Ye.value[re.value.index0].children[re.value.index1].directiveName?(ue.value.index0=re.value.index0,ue.value.index1=re.value.index1,I.value=!0):(U.value=!0,setTimeout((()=>{U.value=!1}),1500))},A=e.ref(!1);e.ref(-1);const q=e.ref(""),O=e.ref(-1),Y=e.ref(""),R=e.ref(-1),W=e.ref(!1),J=()=>{ue.value.index0=-1,ue.value.index1=-1,I.value=!1,d.value=!1,Ye.value[re.value.index0].children[re.value.index1].directiveName?W.value?(W.value=!1,ye(re.value.index0,re.value.index1)):(W.value=!0,setTimeout((()=>ot.value=!0),50)):(U.value=!0,setTimeout((()=>{U.value=!1}),1500))};function Q(e,t){return 2*function(e,t){const l=55.9898*e+78.233*t;return Math.abs(43758.5453*Math.sin(l))%1}(e,t)}const G="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:e=>setTimeout(e,16);function X(e){const t=e&&e.detail&&(e.detail.scrollTop??e.detail.scrollY)||0;n=t,o||(o=!0,G((()=>{i.value=`translate3d(0, -${n}px, 0)`,o=!1})))}const H=e.ref(0);function Z(e){H.value=e.detail.scrollLeft}const K=(e,t,l)=>e.startTime?ue.value.index0===t&&ue.value.index1===l?"title-time-border-yellow-active-transparent":he.value?"title-time-border-yellow-active":"title-time-border-yellow":"title-time-border";function ee(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const te=e.ref([{url:ee("/static/index/newruler","daily_",6,"png",1,!1),name:"日常"},{url:ee("/static/index/newruler","clean_",8,"png",1,!1),name:"清洁"},{url:ee("/static/index/newruler","diet_",7,"png",1,!1),name:"饮食"},{url:ee("/static/index/newruler","sleep_",5,"png",1,!1),name:"睡眠"},{url:ee("/static/index/newruler","defecate_",5,"png",1,!1),name:"排泄"}]),le=e.ref(1),ae=e.ref(0),ie=e.ref(-1),ne=e.ref(0),oe=e.ref(0),re=e.ref({index0:-1,index1:-1});e.ref(null),e.ref({}),e.ref(0),e.ref(0);const ce=e.ref(0),se=e.ref(0),ue=e.ref({index0:999,index1:999,tagName:""}),de=e.ref(!1),me=e.ref(-1),ve=e.ref(!1),pe=e.ref([!1,!1]),ge=e.ref([-1,-1]),he=e.ref(!1);e.ref([]);const ye=(e,t)=>{Re(Ye.value[e].children[t]).then((e=>{l("log","at pages/NursingNew/component/logistics/index.vue:1241","删除",e),e.success&&He()}))},we=e.ref(0),Ne=e.ref(0),fe=e.ref(null),ke=e.ref(!1),Ee=e=>{we.value=Math.floor(e.touches[0].pageX),Ne.value=Math.floor(e.touches[0].pageY),fe.value=setTimeout((()=>{ke.value=!0}),500)},xe=e=>{const t=Math.floor(e.touches[0].pageX),l=Math.floor(e.touches[0].pageY);(Math.abs(t-we.value)>0||Math.abs(l-Ne.value)>0)&&fe.value&&(clearTimeout(fe.value),fe.value=null)},Ve=()=>{fe.value&&(clearTimeout(fe.value),fe.value=null)},be=e.ref([-1,-1]),Se=()=>{z.value=!1,D.value=!0,setTimeout((()=>{z.value=!0}),50)},Be=e.ref(!1);let Te=null;async function Ce(){Te&&(clearTimeout(Te),Te=null),Be.value=!1,await e.nextTick(),Be.value=!0,Ie(),Te=setTimeout((()=>{Be.value=!1,Te=null}),1e3)}const De=e=>{var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/addDirective`,method:"post",data:t})).then((e=>{e.success&&He()}))},ze=e=>{var t;(t={id:e},g({url:`${uni.getStorageSync("serverUrl")}//api/pad/logistics/directive/deleteInstant`,method:"post",data:t})).then((e=>{e.success&&He()}))},Ie=()=>{var t;if(W.value)return W.value=!1,void ye(re.value.index0,re.value.index1);if(I.value)return void $();let a=!1;if((null==(t=Ye.value[re.value.index0])?void 0:t.children[re.value.index1].directiveName)&&(a=!0),nt.value){let e=Ze.value[oe.value];if(-1===re.value.index1&&-1===re.value.index0)return;if(W.value)return W.value=!1,void ye(re.value.index0,re.value.index1);if(I.value)return void $();ue.value.index0=-1,ue.value.index1=-1,I.value=!1;let t="打包",l="";const i=Number(re.value.index0),n=Number(Ye.value[re.value.index0].children[re.value.index1].tagName),o=n+Number(e.serviceDuration),r=i+Math.floor(o/60),c=`${String(i)}:${String(n).padStart(2,"0")}`,s=`${String(r)}:${String(o%60).padStart(2,"0")}`;let u={id:a?Ye.value[re.value.index0].children[re.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,directiveId:e.id,directiveName:e.packageName,typeId:"",typeName:"",categoryId:"",categoryName:"",cycleTypeId:"",cycleType:t,cycleValue:l,startTime:c,endTime:s,serviceDuration:e.serviceDuration,positioning:re.value.index0.toString(),positioningLong:re.value.index1.toString(),izPackage:"Y",previewFile:"",previewFileSmall:"",netPreviewFile:"",netPreviewFileSmall:"",immediateFile:"",immediateFileFocus:"",netImmediateFileFocus:"",netImmediateFile:"",tagName:Ye.value[re.value.index0].children[re.value.index1].tagName,mp3File:e.mp3File,netMp3File:e.netMp3File,mp4File:e.mp4File,netMp4File:e.netMp4File,serviceContent:e.serviceContent};Ye.value[re.value.index0].children[re.value.index1]=u;let d={index0:re.value.index0,index1:re.value.index1};return qe(d),void(a?We(u).then((e=>{e.success&&He()})):De(u))}let i=!1,n=B.value[le.value].children[ae.value].children[ne.value];if(3==n.cycleTypeId)return E.value=1,m.value.forEach(((e,t)=>{e.directiveName==n.title&&(i=!0)})),void e.nextTick((()=>{if(i)clearTimeout(_e.value),S.value=!0,_e.value=setTimeout((()=>{S.value=!1}),1500);else{E.value=0,m.value.length&&"#03a4ff"===m.value[0].target&&(m.value[0].target="#fff",clearTimeout(Fe.value));let e=n;e.directiveId=n.id,e.directiveName=n.title,e.serviceDuration=n.serviceDuration,e.target="#03a4ff",e.id="",e.nuId=uni.getStorageSync("nuId"),e.nuName=uni.getStorageSync("nuName"),e.elderId=uni.getStorageSync("elderId"),e.elderName=uni.getStorageSync("NUall").elderInfo.name,m.value.unshift(e),Fe.value=setTimeout((()=>{var t;m.value[0].target="#fff",l("log","at pages/NursingNew/component/logistics/index.vue:1462","即时指令看看进入了啥",e),(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/addInstant`,method:"post",data:t})).then((e=>{e.success&&He()}))}),1500)}}));if(-1===re.value.index1&&-1===re.value.index0)return;if(ue.value.index0=-1,ue.value.index1=-1,I.value=!1,2==n.cycleTypeId&&N.value&&-1==O.value&&-1==R.value)return;if(2==n.cycleTypeId&&!N.value)return void(N.value=!0);let o="",r="";if(1==n.cycleTypeId)o="日常";else{if(-1!=O.value){o=q.value;let e=0;h.forEach(((t,l)=>{t==q.value&&(e=l)})),r=e.toString()}else o=Y.value+"号",r=Y.value;N.value=!1,O.value=-1,R.value=-1,q.value="",Y.value=""}const c=Number(re.value.index0),s=Number(Ye.value[re.value.index0].children[re.value.index1].tagName),u=s+Number(n.serviceDuration),d=c+Math.floor(u/60),v=`${String(c)}:${String(s).padStart(2,"0")}`,p=`${String(d)}:${String(u%60).padStart(2,"0")}`;let y={id:a?Ye.value[re.value.index0].children[re.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,directiveId:n.id,directiveName:n.title,typeId:n.typeId,typeName:n.typeName,categoryId:n.categoryId,categoryName:n.categoryName,cycleTypeId:n.cycleTypeId,cycleType:o,cycleValue:r,startTime:v,endTime:p,positioning:re.value.index0.toString(),positioningLong:re.value.index1.toString(),izPackage:"N",previewFile:n.previewFile,previewFileSmall:n.previewFileSmall,serviceDuration:n.serviceDuration,immediateFile:n.immediateFile,immediateFileFocus:n.immediateFileFocus,netImmediateFileFocus:n.netImmediateFileFocus,netImmediateFile:n.netImmediateFile,tagName:Ye.value[re.value.index0].children[re.value.index1].tagName,mp3File:n.mp3File,netMp3File:n.netMp3File,mp4File:n.mp4File,netMp4File:n.netMp4File,serviceContent:n.serviceContent,netPreviewFile:n.netPreviewFile,netPreviewFileSmall:n.netPreviewFileSmall};Ye.value[re.value.index0].children[re.value.index1]=y;let w={index0:re.value.index0,index1:re.value.index1};qe(w),a?We(y).then((e=>{e.success&&He()})):De(y)},Fe=e.ref(null),_e=e.ref(null),Me=()=>{uni.setStorage({key:"myArray",data:Ye.value,success:function(){uni.navigateTo({url:"/pages/timeMatrix/indexnew"})}})},Ue=e.ref({index0:-1,index1:-1}),Pe=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),Ae=e.ref(0),qe=e=>{re.value.index0=e.index0,re.value.index1=e.index1,it(),Pe.value.index0=e.index0,Pe.value.index1=e.index1,Ue.value.index0=Pe.value.index0,Ue.value.index1=Pe.value.index1,Pe.value.bordershow=!1,setTimeout((()=>{Pe.value.index0=-1,Pe.value.index1=-1,Pe.value.current=-1}),400),setTimeout((()=>{Pe.value.bordershow=!0,Ue.value.index0=-1,Ue.value.index1=-1}),1e3)},Oe=["00","05","10","15","20","25","30","35","40","45","50","55"],Ye=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Oe.map((e=>({tagName:e,directiveName:""})))})))),Je=e.ref([]),Xe=e.ref([]),He=()=>{var e,t;uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&(e=uni.getStorageSync("nuId"),t=uni.getStorageSync("elderId"),g({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/getNclist?nuId=${e}&elderId=${t}`,method:"get"})).then((e=>{l("log","at pages/NursingNew/component/logistics/index.vue:1669","啥啊",e),Ye.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Oe.map((e=>({tagName:e,directiveName:""})))}))),e.result.serviceList.forEach((e=>{Ye.value[e.positioning].children[e.positioningLong]=e})),m.value=e.result.instantList,tt.value=!0,Je.value=e.result.emotionTagList,et.value=[],Ke.value=[],e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&et.value.push(e.netPic)})),Xe.value=e.result.bodyTagList,e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&Ke.value.push(e.netPic)}))}))},Ze=e.ref([]);e.onMounted((()=>{Ze.value=uni.getStorageSync("Packagelist")||[];let e=uni.getStorageSync("saveTree1"),t=[];Qe.forEach((e=>{e.children.forEach((e=>{t.push({name:e.title,url:e.url})}))})),_.value=t,e.result&&(e.result.forEach((e=>{"0"==e.netFlag?te.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath,e.children.forEach((e=>{"0"==e.netFlag?_.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath}))})),B.value=e.result),b.value=B.value[0].children,le.value=-1,ie.value=-1,setTimeout((()=>{le.value=0,ie.value=0}),50),uni.$on("where",lt),ie.value=0,He()}));const Ke=e.ref([]),et=e.ref([]),tt=e.ref(!1);function lt(e){Ae.value=3,qe(e)}function at(e){let t=[],l=e,a=/([^((]*)[((]([^))]+)[))]/;for(;a.test(l);){let e=l.match(a);e&&(e[1].trim()&&t.push(e[1].trim()),e[2].trim()&&t.push(e[2].trim()),l=l.replace(e[0],"").trim())}return l.trim()&&t.push(l.trim()),t}function it(){if(re.value.index0>=0&&re.value.index0<=24&&re.value.index1>=0&&re.value.index1<=11){const e=259*(re.value.index0+.5),t=200*(re.value.index1-1);x.value=e-650,V.value=t-200;const l=6216,a=2200;x.value=Math.max(0,Math.min(x.value,l-1300))/2,V.value=Math.max(0,Math.min(V.value,a-400))/2}}e.onBeforeUnmount((()=>{Te&&clearTimeout(Te),uni.$off("where",lt),o=!1}));const nt=e.ref(!1),ot=e.ref(!1);return(l,a)=>{var n,o,r,c,s,u,g,_,$,L,G,H,ee,te,ye,we,Ne,fe,be,Te;const De=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",{class:"right-container",style:e.normalizeStyle(t.isshow?{opacity:"1"}:{opacity:"0"}),onClick:a[15]||(a[15]=e=>{ke.value=!1,he.value=!1})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("text",{style:{"margin-left":"30rpx"}}," NUID:"+e.toDisplayString(uni.getStorageSync("nuId")),1),e.createElementVNode("text",{class:"new-weight"},e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("view",{class:"right-icons"},[e.createElementVNode("view",{class:"white-button",onClick:Me},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/yulan.png"},null,8,["src"]),e.createTextVNode(" 预览 ")])])]),e.createElementVNode("view",{class:"doctorsay-container-view"},[e.createElementVNode("view",{class:"doctorsay-container-container"},[e.createElementVNode("view",{class:"super-card"},[e.createElementVNode("view",{class:"boom-father"},[e.createElementVNode("view",{class:"boom",style:e.normalizeStyle({transform:i.value})},[e.createElementVNode("view",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ye.value[0].children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.withDirectives(e.createElementVNode("view",{class:"boom-son"},[e.createElementVNode("text",{class:"boom-text"},e.toDisplayString(t.tagName),1)],512),[[e.vShow,t.tagName]])])))),128))])],4)]),e.createElementVNode("view",{class:"super-card-container"},[e.createElementVNode("scroll-view",{style:{height:"1330rpx",width:"100%",border:"2rpx solid balck"},"scroll-with-animation":"","scroll-left":x.value,"scroll-x":"",onScroll:Z,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",width:"4824rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ye.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":00"),1)])))),128))]),e.createElementVNode("view",{style:{display:"flex",height:"calc(100% - 330rpx)",position:"relative"}},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{style:{height:"100%",width:"6744rpx"},"scroll-top":V.value,"scroll-with-animation":"","scroll-y":!0,onScroll:X,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ye.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time-und"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((a,i)=>(e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:i},[e.createElementVNode("view",{class:e.normalizeClass(Pe.value.index0===l&&Pe.value.index1===i?Pe.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([Pe.value.bordershow||Ue.value.index0!==l||Ue.value.index1!==i?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${l}_${i}`,onClick:t=>((t,l,a)=>{W.value=!1,re.value.index0=l,re.value.index1=a,it(),A.value=!0,setTimeout((()=>{t.directiveName&&d.value&&(me.value=a,uni.createSelectorQuery().selectAll(".super-card-time-card").boundingClientRect((t=>{t.forEach((async t=>{t.left>100&&t.left<1067&&t.top<670&&t.top>50&&t.dataset.index0==l&&t.dataset.index1==a&&(t.left>100&&t.left<500?(ce.value=Math.floor(t.left)+528,pe.value[0]=!0):(ce.value=Math.floor(t.left)-18,pe.value[0]=!1),t.top>300?(se.value=Math.floor(t.top)+100,pe.value[1]=!0):(se.value=Math.floor(t.top)+180,pe.value[1]=!1),await e.nextTick(),T.value=!0,ge.value[0]=l,ge.value[1]=a,C.value=!1,setTimeout((()=>{C.value=!0}),100))}))})).exec())}),400)})(a,l,i),"data-index0":l,"data-index1":i},[ue.value.index0===l&&ue.value.index1===i&&0==i?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-button-orange-spe",style:e.normalizeStyle({left:ue.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),ue.value.index0===l&&ue.value.index1===i&&i?(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-button-orange",style:e.normalizeStyle({left:ue.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},null,512),[[e.vShow,re.value.index0==l&&re.value.index1==i&&A.value]]),e.createElementVNode("view",{class:e.normalizeClass(K(a,l,i)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${Q(l,i).toFixed(2)}s`}])},[a.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column"}},[e.withDirectives(e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx",margin:"0 auto","margin-top":"20rpx"},src:a.netImmediateFile?a.netImmediateFile:"/static/logo.png"},null,8,["src"]),[[e.vShow,a.startTime]]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(a.startTime+"-"+a.endTime),1),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"50rpx"},src:$e})):e.createCommentVNode("",!0),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx"}},e.toDisplayString(a.cycleType),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.startTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-rel"},e.toDisplayString(at(a.directiveName)[0]),1)):e.createCommentVNode("",!0),re.value.index0==l&&re.value.index1==i&&A.value&&!a.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+p[i]),1)):e.createCommentVNode("",!0)],6)],14,["id","onClick","data-index0","data-index1"])])))),128))])])))),128))])],40,["scroll-top"])])],40,["scroll-left"])]),e.createElementVNode("view",{class:"right-cards"},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-left":"30rpx"}},[e.createElementVNode("view",{class:""}," 即时指令 "),e.createElementVNode("view",{style:{width:"30rpx",height:"6rpx","background-color":"black","margin-left":"40rpx","margin-top":"3rpx","border-radius":"20rpx"}})]),e.createElementVNode("scroll-view",{"scroll-x":"",class:"scroll-box","scroll-left":E.value},[e.createElementVNode("view",{class:"right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"right-box-item",onTouchstart:Ee,onTouchmove:xe,onTouchend:Ve,style:e.normalizeStyle(t.target?{background:t.target,transition:"all 1.5s ease-in-out"}:{transition:"all 1.5s ease-in-out"})},[e.createElementVNode("view",{style:e.normalizeStyle({animationDelay:`-${.1*l}s`}),class:e.normalizeClass(ke.value?"super-end-items-img-father-active":"super-end-items-img-father")},[e.createElementVNode("image",{class:"right-box-img",src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle({fontSize:(null==(a=t.directiveName)?void 0:a.trim().length)>6?"25rpx":"27rpx"})},e.toDisplayString(t.directiveName),5)],6),e.withDirectives(e.createElementVNode("view",{class:"super-end-items-father-close-father",onClick:e.withModifiers((e=>{m.value.splice(l,1),ze(t.id)}),["stop"])}," - ",8,["onClick"]),[[e.vShow,ke.value]])],36)])})),128))])],8,["scroll-left"]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("view",{class:"middle-left-box"},[e.createElementVNode("view",{class:"first-contant"},[e.withDirectives(e.createElementVNode("view",{class:"time-father"},[e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month"},"周"),e.createElementVNode("view",{class:"time-button-week",onClick:a[0]||(a[0]=e=>{w.value=!1,O.value=-1,q.value=""})},"月")],512),[[e.vShow,w.value]]),e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month-target",onClick:a[1]||(a[1]=e=>{w.value=!0,R.value=-1,Y.value=""})},"周"),e.createElementVNode("view",{class:"time-button-week-target"},"月")],512),[[e.vShow,!w.value]]),e.createElementVNode("scroll-view",{"scroll-y":"",style:{width:"100%",height:"600rpx"},"show-scrollbar":!1,"scroll-top":f.value},[w.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(h,((t,l)=>e.createElementVNode("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-M.value<Ge?(q.value=e,O.value=t,Ie(),M.value=0):(q.value=e,O.value=t,M.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(O.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"]))),64)):e.createCommentVNode("",!0),w.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(y),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-M.value<Ge?(Y.value=e,R.value=t,Ie(),M.value=0):(Y.value=e,R.value=t,M.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(R.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"])))),128)),e.createElementVNode("view",{style:{height:"40rpx"}})],8,["scroll-top"])],512),[[e.vShow,N.value]]),e.withDirectives(e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":f.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(o=null==(n=B.value[le.value])?void 0:n.children[ae.value])?void 0:o.children,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>function(e){const t=Date.now();ne.value=e,t-M.value<Ge?(ne.value=e,Ie(),M.value=0):(ne.value=e,M.value=t)}(l)},[e.createElementVNode("view",{class:"right-box-item",style:e.normalizeStyle(ne.value==l?{border:"2rpx solid rgb(229, 233, 249)",backgroundColor:"#fff"}:{border:"2rpx solid rgb(229, 233, 249)"})},[e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 周期 ",512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 即时 ",512),[[e.vShow,3==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,3==t.cycleTypeId]]),e.createElementVNode("image",{class:"right-box-img",src:ne.value==l?t.netImmediateFileFocus:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle([{marginTop:"2rpx",fontSize:(null==(a=t.title)?void 0:a.trim().length)>6?"20rpx":"25rpx"},ne.value===l?{color:"rgb(54,159,239)"}:{}])},e.toDisplayString(t.title),5)],4)],8,["onClick"])})),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"]),[[e.vShow,!N.value]])]),e.createElementVNode("view",{class:"second-contant"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":k.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:e.normalizeClass(ie.value==l?"downList-box-target":"downList-box"),onClick:t=>(t=>{N.value=!1,O.value=-1,R.value=-1,q.value="",Y.value="",ae.value=t,ie.value=t,ne.value=0,f.value=.01,e.nextTick((()=>{f.value=0}))})(l)},[e.createVNode(De,{width:"55rpx",height:"55rpx",links:t.url,playing:ie.value==l,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:"downList-box-text"},e.toDisplayString(t.title),1)],10,["onClick"])])))),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"])])]),e.createElementVNode("view",{class:"middle-right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>j(l)},[e.createElementVNode("view",{class:"doctorsay-container-card"},[e.createVNode(De,{width:"50rpx",height:"50rpx",links:t.url,playing:l===le.value,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:e.normalizeClass(l===le.value?"doctorsay-container-card-font-dark":"doctorsay-container-card-font")},e.toDisplayString(t.title),3)])],8,["onClick"])))),128))])],512),[[e.vShow,!nt.value]]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ze.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"zhiling-card",style:e.normalizeStyle(oe.value==l?{backgroundColor:"#fff"}:{}),key:l,onClick:e=>(e=>{const t=Date.now();oe.value=e,t-M.value<Ge?(Ie(),M.value=0):M.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:$e}),e.createElementVNode("view",{class:"zhiling-card-font"}," 指令包 "),e.createElementVNode("view",{class:""}," 包名:"+e.toDisplayString(t.packageName),1),e.createElementVNode("view",{class:"bag"},[e.createElementVNode("text",null," 包含: "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.directivesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"bag-one",key:l},[a?(e.openBlock(),e.createElementBlock("text",{key:0},"、")):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.directiveName),1)])))),128))])],12,["onClick"])))),128))])],512),[[e.vShow,nt.value]]),e.createElementVNode("view",{class:"under-button"},[S.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"under-button-black"}," 不能重复添加相同的即时服务指令 ")):e.createCommentVNode("",!0),U.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"under-button-black"}," 请选择服务指令来进行操作 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"white-circle",onClick:P},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/movebutton${I.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:J},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/deletebutton${W.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:Se},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/notebutton${D.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:a[2]||(a[2]=e=>{d.value=!d.value,I.value=!1,ue.value.index0=-1,ue.value.index1=-1})},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/open${d.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("view",{class:e.normalizeClass(["white-circle-click-father",{anim:Be.value}]),style:e.normalizeStyle({color:Be.value?"#fff":""}),onClick:Ce},[e.createElementVNode("view",{style:{"z-index":"999"}}," 确定 ")],6),e.withDirectives(e.createElementVNode("view",{class:"white-circle-click-father-spec",onClick:a[3]||(a[3]=e=>j(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:Le}),e.createElementVNode("view",{style:{"z-index":"999","font-size":"25rpx"}}," 监控 ")])],512),[[e.vShow,!nt.value]])])])])])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-overlay",onClick:a[6]||(a[6]=e=>{T.value=!1,ue.value.index0=999,me.value=-1})},["N"===(null==(c=null==(r=Ye.value[ge.value[0]])?void 0:r.children[ge.value[1]])?void 0:c.izPackage)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay-content",style:e.normalizeStyle([{height:"390rpx"},{top:2*se.value-350+"rpx",left:2*ce.value-780+"rpx",opacity:C.value?1:0}]),"popup-overlay:class":"getjiao",onClick:a[4]||(a[4]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"popup-overlay-content-left"},[e.createElementVNode("image",{class:"popup-overlay-content-left-img",src:null==(u=null==(s=Ye.value[ge.value[0]])?void 0:s.children[ge.value[1]])?void 0:u.netImmediateFileFocus},null,8,["src"])]),e.createElementVNode("view",{class:"popup-overlay-content-right"},[e.createElementVNode("view",{class:"time-font"},e.toDisplayString(null==(_=null==(g=Ye.value[ge.value[0]])?void 0:g.children[ge.value[1]])?void 0:_.startTime)+" - "+e.toDisplayString(null==(L=null==($=Ye.value[ge.value[0]])?void 0:$.children[ge.value[1]])?void 0:L.endTime),1),e.createElementVNode("view",{class:"time-text"},e.toDisplayString(null==(H=null==(G=Ye.value[ge.value[0]])?void 0:G.children[ge.value[1]])?void 0:H.directiveName),1)])],4)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["popup-overlay-content",F.value]),style:e.normalizeStyle({top:2*se.value-350+"rpx",left:2*ce.value-780+"rpx",opacity:C.value?1:0}),onClick:a[5]||(a[5]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"specia-onshow"},[e.createElementVNode("view",{class:"specia-title"},e.toDisplayString(null==(te=null==(ee=Ye.value[ge.value[0]])?void 0:ee.children[ge.value[1]])?void 0:te.startTime)+" - "+e.toDisplayString(null==(we=null==(ye=Ye.value[ge.value[0]])?void 0:ye.children[ge.value[1]])?void 0:we.endTime),1),(null==(fe=null==(Ne=Ye.value[ge.value[0]])?void 0:Ne.children[ge.value[1]])?void 0:fe.directivesList)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"specia-cards"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(Te=null==(be=Ye.value[ge.value[0]])?void 0:be.children[ge.value[1]])?void 0:Te.directivesList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"232rpx",height:"150rpx"},key:l},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(t.serviceDuration+"分钟"),1),e.createElementVNode("image",{class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e}),e.createElementVNode("view",{class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(t.cycleType),1)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(at(t.directiveName)[0]),1)])))),128))])):e.createCommentVNode("",!0)])],6))],512),[[e.vShow,T.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-say",onClick:a[8]||(a[8]=e=>D.value=!1)},[e.createElementVNode("view",{class:"popup-say-content",style:e.normalizeStyle([{padding:"30rpx 0"},{opacity:z.value?1:0}]),onClick:a[7]||(a[7]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 体型标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.slice(0,5),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 情绪标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.slice(5,12),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l+5}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{class:"popup-say-three"})],4)],512),[[e.vShow,D.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:a[10]||(a[10]=e=>ve.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:de.value?1:0}),onClick:a[9]||(a[9]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-title"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx"},src:je}),e.createElementVNode("view",{style:{"font-weight":"600","margin-left":"15rpx"}}," 护理单元 ")]),e.createElementVNode("view",{class:"share-others"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"45rpx"}}," 护理流程 "),e.createElementVNode("view",{style:{"margin-top":"30rpx"}},[e.createTextVNode(e.toDisplayString(uni.getStorageSync("nuName"))+" ",1),e.createElementVNode("text",{style:{color:"#1083F8"}},e.toDisplayString(uni.getStorageSync("NUall").elderInfo?uni.getStorageSync("NUall").elderInfo.name:""),1)]),e.createElementVNode("view",{class:"blue-button"}," 分享 ")])])],4)],512),[[e.vShow,ve.value]]),W.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["neuro-wrapper",ot.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:a[11]||(a[11]=e=>W.value=!1)}),e.createElementVNode("view",{class:"neuro-box",onClick:a[14]||(a[14]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"delete-button-father"},[e.createElementVNode("view",{class:"button-white",onClick:a[12]||(a[12]=e=>W.value=!1)},"取消"),e.createElementVNode("view",{class:"button",onClick:a[13]||(a[13]=e=>J())},"确定")]),e.createElementVNode("view",{class:"title"},"确定要删除指令吗"),e.createElementVNode("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"240rpx",height:"170rpx"}},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:Ye.value[re.value.index0].children[re.value.index1].netImmediateFile?Ye.value[re.value.index0].children[re.value.index1].netImmediateFile:"/static/logo.png"},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(Ye.value[re.value.index0].children[re.value.index1].startTime+"-"+Ye.value[re.value.index0].children[re.value.index1].endTime),1),1!=Ye.value[re.value.index0].children[re.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e})):e.createCommentVNode("",!0),1!=Ye.value[re.value.index0].children[re.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(Ye.value[re.value.index0].children[re.value.index1].cycleType),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(at(Ye.value[re.value.index0].children[re.value.index1].directiveName)[0]),1)])])],2)):e.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-b58e6b9f"]]),He=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/deleteDirective`,method:"post",data:e}),Ze=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/editDirective`,method:"post",data:e});function Ke(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const et=[{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706886",title:"协助喂药",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902604232524795905",title:"鼻饲喂药",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902604428667228162",title:"注射器/吸管喂药",tagName:"头部,大体重"}],levle:"2",title:"协助喂药",key:"1900114812020310017",parentId:"1900112597427793921",url:Ke("/static/index/diet","medicine_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902605892869394433",title:"一级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606105021485058",title:"二级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606339931869185",title:"三级压疮防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606614344208386",title:"一级压疮防护",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902606869953482753",title:"二级压疮防护",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607023431454722",title:"三级压疮防护",tagName:"大体重"}],levle:"2",title:"压疮防护",key:"1900115034452639746",parentId:"1900112597427793921",url:Ke("/static/index/diet","knead_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706887",title:"床椅转移",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706888",title:"床椅转移",tagName:"大体重"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605073730211842",title:"床椅转移",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605223185846273",title:"床椅转移",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902605365393723393",title:"协助床椅转移",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902605496071458818",title:"协助床椅转移",tagName:null}],levle:"2",title:"床椅转移",key:"1902248363784159233",parentId:"1900112597427793921",url:Ke("/static/index/diet","chair_",8,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607507626102786",title:"轮椅防护",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902607677415723010",title:"轮椅防护",tagName:"大体重"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902607817589362689",title:"轮椅防护",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902608061588803585",title:"轮椅防护",tagName:"大体重"}],levle:"2",title:"轮椅防护",key:"1902280900178886657",parentId:"1900112597427793921",url:Ke("/static/index/diet","wheelchair_",10,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902608564582322178",title:"约束位按摩",tagName:"手"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902608974609092610",title:"约束位按摩",tagName:"足"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902618507855237121",title:"约束位按摩",tagName:"全"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902618751548493825",title:"防护网约束",tagName:null}],levle:"2",title:"约束防护",key:"1902280933364219906",parentId:"1900112597427793921",url:Ke("/static/index/diet","constraint_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902620309090701314",title:"协助行走",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902620486044192769",title:"放松按摩",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902625161569079298",title:"心灵慰藉",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902625402468929537",title:"狂躁",tagName:null}],levle:"2",title:"按摩保健",key:"1902564031454744577",parentId:"1900112597427793921",url:Ke("/static/index/diet","massage_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902625872432304130",title:"准备衣物",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626005538541569",title:"协助更换",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626664711163905",title:"肢体障碍",tagName:"半侧"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902626800510144513",title:"肢体障碍",tagName:"全身"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627064688381953",title:"准备衣物",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627280716009474",title:"协助更换",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627416598876161",title:"肢体障碍",tagName:"半侧"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902627522404388866",title:"肢体障碍",tagName:"全身"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902627711806574593",title:"协助更换",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902628058591629313",title:"肢体障碍",tagName:"半侧,大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902628650718302209",title:"肢体障碍",tagName:"大体重,全测"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902628837725540354",title:"肢体障碍",tagName:"大体重,全测"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902628966847188993",title:"肢体障碍",tagName:"大体重,半侧"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902629129879785474",title:"协助更换",tagName:"大体重"}],levle:"2",title:"更换衣物",key:"1902564088417587201",parentId:"1900112597427793921",url:Ke("/static/index/diet","replace_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902629344456183809",title:"坐起",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902629492301205506",title:"躺下",tagName:null}],levle:"2",title:"调整坐卧",key:"1902564199830884354",parentId:"1900112597427793921",url:Ke("/static/index/diet","adjust_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"55",id:"1902630862769065985",title:"遗体净身",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"55",id:"1902631162275926017",title:"遗体穿衣",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902631422431825921",title:"遗体转移",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"30",id:"1902631602463936514",title:"床位消毒",tagName:null}],levle:"2",title:"殡仪服务",key:"1902564263743688705",parentId:"1900112597427793921",url:Ke("/static/index/diet","exequy_",4,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902631830441136129",title:"更换床上用品",tagName:"全部"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902632063828987905",title:"隔尿褥子更换",tagName:null}],levle:"2",title:"更换床上用品",key:"1902564446648897538",parentId:"1900112597427793921",url:Ke("/static/index/diet","change_",6,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902632288270389250",title:"临终护理",tagName:null}],levle:"2",title:"临终服务",key:"1902564503783706625",parentId:"1900112597427793921",url:Ke("/static/index/diet","funeral_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"40",id:"1902632678701371393",title:"制氧机吸氧",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902632799853842433",title:"制氧机维护",tagName:null}],levle:"2",title:"制氧机应用",key:"1902564586101116930",parentId:"1900112597427793921",url:Ke("/static/index/diet","oxygen_",6,"png",1,!1)}],levle:"1",title:"1 日常照料",key:"1900112597427793921"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900376187661553665",title:"准备洁具",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900420873478553602",title:"棉球清洁",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706881",title:"协助清洁",tagName:"口腔"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1900421622979706885",title:"义齿清洁",tagName:"口腔"}],levle:"2",title:"口腔清洁",key:"1902597070889127938",parentId:"1900112615777873921",url:Ke("/static/index/diet","oral_",7,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902636771540963329",title:"准备洁具",tagName:"头部"},{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902637623425077250",title:"协助洗头",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902637985234128898",title:"卧式洗头",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902638122949906433",title:"擦头",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902638304739430401",title:"刮头",tagName:null}],levle:"2",title:"头部清洁",key:"1902597497344987137",parentId:"1900112615777873921",url:Ke("/static/index/diet","head_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902641763073101826",title:"准备洁具",tagName:"面部"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642254465175553",title:"协助洁面",tagName:null}],levle:"2",title:"面部清洁",key:"1902597651405967361",parentId:"1900112615777873921",url:Ke("/static/index/diet","wash_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642508145070081",title:"准备洁具",tagName:"躯干"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642672796667905",title:"协助清洁",tagName:"躯干"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902642822885642242",title:"卧床清洁",tagName:"躯干"}],levle:"2",title:"躯干清洁",key:"1902597718082818050",parentId:"1900112615777873921",url:Ke("/static/index/diet","limbs_",4,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643318811758594",title:"准备洁具",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643483320750082",title:"协助清洁",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643630888947713",title:"卧床清洁",tagName:"四肢"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902643837525528578",title:"肌张力高",tagName:"清洁"}],levle:"2",title:"四肢清洁",key:"1902597811565465601",parentId:"1900112615777873921",url:Ke("/static/index/diet","torso_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645148199391234",title:"会阴清洁",tagName:"男"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645295457210369",title:"会阴清洁",tagName:"女"}],levle:"2",title:"会阴清洁",key:"1902597873964126209",parentId:"1900112615777873921",url:Ke("/static/index/diet","perineum_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645493185089537",title:"肛周清洁",tagName:null}],levle:"2",title:"肛周清洁",key:"1902597930020999170",parentId:"1900112615777873921",url:Ke("/static/index/diet","perianal_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902645693211447298",title:"洗手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647316134465538",title:"泡手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647529817477122",title:"准备洁具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647673212342274",title:"协助洗手",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902647905878773762",title:"强直屈曲洗手",tagName:null}],levle:"2",title:"手清洁",key:"1902597991698239489",parentId:"1900112615777873921",url:Ke("/static/index/diet","hands_",5,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648101203316737",title:"泡脚",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648239091060737",title:"卧式泡脚",tagName:null}],levle:"2",title:"足清洁",key:"1902598178588037121",parentId:"1900112615777873921",url:Ke("/static/index/diet","feet_",4,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902648426383511553",title:"修睫毛",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902648548777496577",title:"剃须",tagName:null}],levle:"2",title:"剃须",key:"1902598258573414401",parentId:"1900112615777873921",url:Ke("/static/index/diet","shave_",6,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902648962444922882",title:"角质增生",tagName:"修甲"},{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902649132536532994",title:"灰指甲",tagName:"修甲"},{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902649302149992449",title:"正常",tagName:"修甲"}],levle:"2",title:"修甲",key:"1902598354606198785",parentId:"1900112615777873921",url:Ke("/static/index/diet","clippers_",6,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"20",id:"1902649683919736834",title:"理发",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"25",id:"1902649860344745985",title:"理发",tagName:"颅骨缺损"}],levle:"2",title:"理发",key:"1902598400382832642",parentId:"1900112615777873921",url:Ke("/static/index/diet","haircut_",5,"png",1,!1)},{children:[{cycleType:"周期护理",levle:"3",serviceDuration:"5",id:"1902650121280786434",title:"床上沐浴",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902650408884211713",title:"深度清洁",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902650763722330113",title:"浴间洗浴",tagName:null},{cycleType:"周期护理",levle:"3",serviceDuration:"30",id:"1902651229122301954",title:"床上沐浴",tagName:"大体重"},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902651366317985794",title:"深度清洁",tagName:"大体重"},{cycleType:"周期护理",levle:"3",serviceDuration:"55",id:"1902651555363655682",title:"浴间洗浴",tagName:"大体重"}],levle:"2",title:"沐浴",key:"1902598454782955522",parentId:"1900112615777873921",url:Ke("/static/index/diet","bathe_",9,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902651778777452545",title:"内套管清洁",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902651924047171586",title:"更换气切纱布",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"10",id:"1902652055928672258",title:"更换气切纱布",tagName:null}],levle:"2",title:"气切消毒",key:"1902598509522817026",parentId:"1900112615777873921",url:Ke("/static/index/diet","omy_",4,"png",1,!1)}],levle:"1",title:"2 清洁照料",key:"1900112615777873921"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898057679966209",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898202668666881",title:"协助进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898339931459586",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898472584712194",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902898590658564097",title:"胃肠管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902898719952179201",title:"准备餐具",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902898979948695554",title:"协助进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899086840532993",title:"协助进餐",tagName:"超时"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899214838108162",title:"鼻胃管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899325014085633",title:"胃肠管进餐",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902899587028062210",title:"食物加工",tagName:null}],levle:"2",title:"加餐饮食",key:"1902596129720864770",parentId:"1902280495747317762",url:Ke("/static/index/diet","snack_",7,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281139677839362",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"10",id:"1902281522340970498",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281654100836354",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902281870434648066",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902654960639381506",title:"鼻肠管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902655101874180097",title:"轮椅进餐",tagName:"大体重"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902892199009030145",title:"轮椅进餐",tagName:null}],levle:"2",title:"正餐饮食",key:"1902601263850950657",parentId:"1902280495747317762",url:Ke("/static/index/diet","dinner_",8,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893231608926209",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893551978254337",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902893716466274306",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894369850757122",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894528533860354",title:"鼻肠管进餐",tagName:null}],levle:"2",title:"辅餐饮食",key:"1902601382595891202",parentId:"1902280495747317762",url:Ke("/static/index/diet","food_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894832176304129",title:"准备餐具",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902894954117304322",title:"协助进餐",tagName:"正常"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895077522116609",title:"协助进餐",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895233407619073",title:"鼻胃管进餐",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895569912434689",title:"鼻肠管进餐",tagName:null}],levle:"2",title:"果汁饮食",key:"1902601427168759809",parentId:"1902280495747317762",url:Ke("/static/index/diet","juice_",9,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895878508351489",title:"准备水杯",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902895984053817346",title:"协助饮水",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896136835534850",title:"协助饮水",tagName:"超时"},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896508421509122",title:"鼻胃管饮水",tagName:null},{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902896636553302017",title:"鼻肠管饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902896855802155010",title:"准备水杯",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897018344017921",title:"协助饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897464936730626",title:"协助饮水",tagName:"超时"},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897675813752834",title:"鼻胃管饮水",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902897803417063426",title:"鼻肠管饮水",tagName:null}],levle:"2",title:"饮水饮食",key:"1902601487625457665",parentId:"1902280495747317762",url:Ke("/static/index/diet","drink_",5,"png",1,!1)}],levle:"1",title:"3 饮食照料",key:"1902280495747317762"},{children:[{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902653177363927041",title:"巡视",tagName:null}],levle:"2",title:"巡视",key:"1902564741860790273",parentId:"1902560466095017986",url:Ke("/static/index/diet","posture_",6,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653325481578497",title:"防坠床",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653497066360833",title:"被褥调整",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902653650917625857",title:"睡姿调整",tagName:null}],levle:"2",title:"体位调整",key:"1902564818838851585",parentId:"1902560466095017986",url:Ke("/static/index/diet","visitation_",5,"png",1,!1)}],levle:"1",title:"4 睡眠照料",key:"1902560466095017986"},{children:[{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902904277308510210",title:"更换尿袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902904458779267073",title:"更换隔尿垫",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902905631242424322",title:"使用尿盆",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902905824973131777",title:"使用尿壶",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906220483416065",title:"协助入厕",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906459051233281",title:"坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906610562076674",title:"留置尿袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902906783325458434",title:"更换纸尿裤",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902908406344945665",title:"热敷抚触排尿",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902908523827400705",title:"协助坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902909645401067522",title:"更换尿片",tagName:null}],levle:"2",title:"小便",key:"1902596314152800257",parentId:"1902560510768549889",url:Ke("/static/index/diet","urinate_",4,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902909835331735554",title:"床上排便",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910002671882242",title:"协助坐便椅",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910156154048514",title:"协助入厕",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910361008050178",title:"人工取便",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910524623654913",title:"造瘘袋",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910700176248834",title:"坐便椅",tagName:null}],levle:"2",title:"大便",key:"1902596399423000577",parentId:"1902560510768549889",url:Ke("/static/index/diet","stool_",3,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902910899565072385",title:"口腔吸痰",tagName:null},{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902911047405899778",title:"气切吸痰",tagName:null}],levle:"2",title:"吸痰",key:"1902596461238652930",parentId:"1902560510768549889",url:Ke("/static/index/diet","Sputuma_",7,"png",1,!1)},{children:[{cycleType:"即时护理",levle:"3",serviceDuration:"5",id:"1902911232974491650",title:"呕吐",tagName:null}],levle:"2",title:"呕吐",key:"1902596886771765250",parentId:"1902560510768549889",url:Ke("/static/index/diet","vomiting_",6,"png",1,!1)},{children:[{cycleType:"日常护理",levle:"3",serviceDuration:"5",id:"1902911378349068290",title:"腹腔引流护理",tagName:null}],levle:"2",title:"引流",key:"1902596940366581762",parentId:"1902560510768549889",url:Ke("/static/index/diet","drainage_",6,"png",1,!1)}],levle:"1",title:"5 排泄照料",key:"1902560510768549889"}],tt=300,lt=s(e.defineComponent({__name:"index",props:{isshow:{type:Boolean,required:!0}},setup(t){const l=t;e.watch((()=>l.isshow),((t,l)=>{t!==l&&(fe.value=!1,ge.value=!1,Pe.value?Pe.value--:(at(),E.value=1,x.value=1,e.nextTick((()=>{x.value=0,E.value=775}))),te.value=0)})),e.ref(!1),e.ref(-1),e.ref(!1),e.ref(-1);const a=e.ref("translate3d(0, 0, 0)");let i=0,n=!1;const o=e.ref(!1),r=e.ref(!1),c=e.ref(!1);e.watch((()=>r.value),(()=>{setTimeout((()=>{o.value=r.value}),50)}));const s=e.ref(!1);e.watch((()=>c.value),(()=>{setTimeout((()=>{s.value=c.value}),50)})),e.ref([]),e.ref([]);const u=e.ref(!1),d=e.ref([]),m=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],v=["00","05","10","15","20","25","30","35","40","45","50","55"],p=["周一","周二","周三","周四","周五","周六","周日"],h=Array.from({length:31},((e,t)=>(t+1).toString().padStart(2,"0"))),y=e.ref(!0),w=e.ref(!1),N=e.ref(0),f=e.ref(0),k=e.ref(0),E=e.ref(678),x=e.ref(0),V=e.ref(),b=e.ref(!1),S=e.ref([]),B=e.ref(!1);e.ref(!1);const T=e.ref(!1);e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1);const C=e.ref(!1);e.ref("");const D=e.ref(!1);e.ref(6),e.ref(11),e.ref(0),e.ref(3);const z=e.ref(!1),I=e.computed((()=>ve.value[0]&&ve.value[1]?"left-bottom":!ve.value[0]&&ve.value[1]?"right-bottom":ve.value[0]&&!ve.value[1]?"left-top":"right-top")),F=e.ref([]),_=e.ref(0);const M=()=>{if(se.value.index0===oe.value.index0&&se.value.index1===oe.value.index1)return z.value=!1,se.value.index0=-1,void(se.value.index1=-1);Oe.value[oe.value.index0].children[oe.value.index1].id?He(Oe.value[oe.value.index0].children[oe.value.index1]).then((e=>{$()})):$()},$=()=>{let e=JSON.parse(JSON.stringify(Oe.value[se.value.index0].children[se.value.index1]));Ve.value=[oe.value.index0,oe.value.index1];let t=Oe.value[se.value.index0].children[se.value.index1].tagName;Oe.value[se.value.index0].children[se.value.index1]={directiveName:"",tagName:t};let l=Oe.value[Ve.value[0]].children[Ve.value[1]].tagName;Oe.value[Ve.value[0]].children[Ve.value[1]]=e,Oe.value[Ve.value[0]].children[Ve.value[1]].tagName=l;let a=Oe.value[Ve.value[0]].children[Ve.value[1]].startTime,i=Oe.value[Ve.value[0]].children[Ve.value[1]].endTime,n=Oe.value[Ve.value[0]].positioning;const o=e=>{const t=String(e||"").split(":").map((e=>e.trim())),l=Number(t[0]??0),a=Number(t[1]??0);return{hour:Number.isFinite(l)?l:0,minute:Number.isFinite(a)?a:0}},r=o(a),c=o(i);let s=60*c.hour+c.minute-(60*r.hour+r.minute);s<0&&(s+=1440);const u=Number(String(l).trim()),d=Number(String(n).trim());if(!Number.isFinite(u)||u<0||u>=60)throw new Error("newtagName 必须是 0-59 的数字字符串或数字");if(!Number.isFinite(d)||d<0)throw new Error("positioning 必须是有效小时(数字或数字字符串)");const m=60*d+u+s,v=Math.floor(m/60)%24,p=m%60,g=e=>String(e).padStart(2,"0");Oe.value[Ve.value[0]].children[Ve.value[1]].startTime=`${String(d)}:${g(u)}`,Oe.value[Ve.value[0]].children[Ve.value[1]].endTime=`${String(v)}:${g(p)}`,se.value.index1=-1,z.value=!1;let h={index0:oe.value.index0,index1:oe.value.index1};Ae(h);let y=Oe.value[oe.value.index0].children[oe.value.index1];y.positioning=oe.value.index0,y.positioningLong=oe.value.index1,Ze(y).then((e=>{e.success&&We()}))},L=t=>{var l;5!==t?(w.value=!1,q.value=-1,Y.value=-1,A.value="",O.value="",f.value=.01,N.value=.01,ae.value=-1,e.nextTick((()=>{f.value=0,N.value=0,ae.value=0})),le.value=0,te.value=t,V.value=null==(l=S.value[t])?void 0:l.children,ie.value=0):uni.navigateTo({url:"/pages/watch/full"})},j=e.ref(!1),U=()=>{R.value=!1,u.value=!1,z.value?M():Oe.value[oe.value.index0].children[oe.value.index1].directiveName?(se.value.index0=oe.value.index0,se.value.index1=oe.value.index1,z.value=!0):(j.value=!0,setTimeout((()=>{j.value=!1}),1500))},P=e.ref(!1);e.ref(-1);const A=e.ref(""),q=e.ref(-1),O=e.ref(""),Y=e.ref(-1),R=e.ref(!1),W=()=>{se.value.index0=-1,se.value.index1=-1,z.value=!1,u.value=!1,Oe.value[oe.value.index0].children[oe.value.index1].directiveName?R.value?(R.value=!1,he(oe.value.index0,oe.value.index1)):(R.value=!0,setTimeout((()=>nt.value=!0),50)):(j.value=!0,setTimeout((()=>{j.value=!1}),1500))};function J(e,t){return 2*function(e,t){const l=55.9898*e+78.233*t;return Math.abs(43758.5453*Math.sin(l))%1}(e,t)}const Q="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:e=>setTimeout(e,16);function G(e){const t=e&&e.detail&&(e.detail.scrollTop??e.detail.scrollY)||0;i=t,n||(n=!0,Q((()=>{a.value=`translate3d(0, -${i}px, 0)`,n=!1})))}const X=e.ref(0);function H(e){X.value=e.detail.scrollLeft}const Z=(e,t,l)=>e.startTime?se.value.index0===t&&se.value.index1===l?"title-time-border-yellow-active-transparent":ge.value?"title-time-border-yellow-active":"title-time-border-yellow":"title-time-border";function K(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const ee=e.ref([{url:K("/static/index/newruler","daily_",6,"png",1,!1),name:"日常"},{url:K("/static/index/newruler","clean_",8,"png",1,!1),name:"清洁"},{url:K("/static/index/newruler","diet_",7,"png",1,!1),name:"饮食"},{url:K("/static/index/newruler","sleep_",5,"png",1,!1),name:"睡眠"},{url:K("/static/index/newruler","defecate_",5,"png",1,!1),name:"排泄"}]),te=e.ref(1),le=e.ref(0),ae=e.ref(-1),ie=e.ref(0),ne=e.ref(0),oe=e.ref({index0:-1,index1:-1});e.ref(null),e.ref({}),e.ref(0),e.ref(0);const re=e.ref(0),ce=e.ref(0),se=e.ref({index0:999,index1:999,tagName:""}),ue=e.ref(!1),de=e.ref(-1),me=e.ref(!1),ve=e.ref([!1,!1]),pe=e.ref([-1,-1]),ge=e.ref(!1);e.ref([]);const he=(e,t)=>{He(Oe.value[e].children[t]).then((e=>{e.success&&We()}))},ye=e.ref(0),we=e.ref(0),Ne=e.ref(null),fe=e.ref(!1),ke=e=>{ye.value=Math.floor(e.touches[0].pageX),we.value=Math.floor(e.touches[0].pageY),Ne.value=setTimeout((()=>{fe.value=!0}),500)},Ee=e=>{const t=Math.floor(e.touches[0].pageX),l=Math.floor(e.touches[0].pageY);(Math.abs(t-ye.value)>0||Math.abs(l-we.value)>0)&&Ne.value&&(clearTimeout(Ne.value),Ne.value=null)},xe=()=>{Ne.value&&(clearTimeout(Ne.value),Ne.value=null)},Ve=e.ref([-1,-1]),be=()=>{D.value=!1,C.value=!0,setTimeout((()=>{D.value=!0}),50)},Se=e.ref(!1);let Be=null;async function Te(){Be&&(clearTimeout(Be),Be=null),Se.value=!1,await e.nextTick(),Se.value=!0,ze(),Be=setTimeout((()=>{Se.value=!1,Be=null}),1e3)}const Ce=e=>{var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/addDirective`,method:"post",data:t})).then((e=>{e.success&&We()}))},De=e=>{var t;(t={id:e},g({url:`${uni.getStorageSync("serverUrl")}//api/pad/invoicing/directive/deleteInstant`,method:"post",data:t})).then((e=>{e.success&&We()}))},ze=()=>{var t,l,a,i,n;if(R.value)return R.value=!1,void he(oe.value.index0,oe.value.index1);if(z.value)return void M();let o=!1;if((null==(t=Oe.value[oe.value.index0])?void 0:t.children[oe.value.index1].directiveName)&&(o=!0),it.value){let e=Je.value[ne.value];if(-1===oe.value.index1&&-1===oe.value.index0)return;if(R.value)return R.value=!1,void he(oe.value.index0,oe.value.index1);if(z.value)return void M();se.value.index0=-1,se.value.index1=-1,z.value=!1;let t="打包",i="";const n=Number(oe.value.index0),r=Number(Oe.value[oe.value.index0].children[oe.value.index1].tagName),c=r+Number(e.serviceDuration),s=n+Math.floor(c/60),u=`${String(n)}:${String(r).padStart(2,"0")}`,d=`${String(s)}:${String(c%60).padStart(2,"0")}`;let m={id:o?Oe.value[oe.value.index0].children[oe.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:(null==(l=uni.getStorageSync("NUall").elderInfo)?void 0:l.name)?null==(a=uni.getStorageSync("NUall").elderInfo)?void 0:a.name:"",directiveId:e.id,directiveName:e.packageName,typeId:"",typeName:"",categoryId:"",categoryName:"",cycleTypeId:"",cycleType:t,cycleValue:i,startTime:u,endTime:d,serviceDuration:e.serviceDuration,positioning:oe.value.index0.toString(),positioningLong:oe.value.index1.toString(),izPackage:"Y",previewFile:"",previewFileSmall:"",netPreviewFile:"",netPreviewFileSmall:"",immediateFile:"",immediateFileFocus:"",netImmediateFileFocus:"",netImmediateFile:"",tagName:Oe.value[oe.value.index0].children[oe.value.index1].tagName,mp3File:e.mp3File,netMp3File:e.netMp3File,mp4File:e.mp4File,netMp4File:e.netMp4File,serviceContent:e.serviceContent};Oe.value[oe.value.index0].children[oe.value.index1]=m;let v={index0:oe.value.index0,index1:oe.value.index1};return Ae(v),void(o?Ze(m).then((e=>{e.success&&We()})):Ce(m))}let r=!1,c=S.value[te.value].children[le.value].children[ie.value];if(3==c.cycleTypeId)return k.value=1,d.value.forEach(((e,t)=>{e.directiveName==c.title&&(r=!0)})),void e.nextTick((()=>{var e,t;if(r)clearTimeout(Fe.value),b.value=!0,Fe.value=setTimeout((()=>{b.value=!1}),1500);else{k.value=0,d.value.length&&"#03a4ff"===d.value[0].target&&(d.value[0].target="#fff",clearTimeout(Ie.value));let l=c;l.directiveId=c.id,l.directiveName=c.title,l.serviceDuration=c.serviceDuration,l.target="#03a4ff",l.id="",l.nuId=uni.getStorageSync("nuId"),l.nuName=uni.getStorageSync("nuName"),l.elderId=uni.getStorageSync("elderId"),l.elderName=(null==(e=uni.getStorageSync("NUall").elderInfo)?void 0:e.name)?null==(t=uni.getStorageSync("NUall").elderInfo)?void 0:t.name:"",d.value.unshift(l),Ie.value=setTimeout((()=>{var e;d.value[0].target="#fff",(e=l,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/addInstant`,method:"post",data:e})).then((e=>{e.success&&We()}))}),1500)}}));if(-1===oe.value.index1&&-1===oe.value.index0)return;if(se.value.index0=-1,se.value.index1=-1,z.value=!1,2==c.cycleTypeId&&w.value&&-1==q.value&&-1==Y.value)return;if(2==c.cycleTypeId&&!w.value)return void(w.value=!0);let s="",u="";if(1==c.cycleTypeId)s="日常";else{if(-1!=q.value){s=A.value;let e=0;p.forEach(((t,l)=>{t==A.value&&(e=l)})),u=e.toString()}else s=O.value+"号",u=O.value;w.value=!1,q.value=-1,Y.value=-1,A.value="",O.value=""}const m=Number(oe.value.index0),v=Number(Oe.value[oe.value.index0].children[oe.value.index1].tagName),h=v+Number(c.serviceDuration),y=m+Math.floor(h/60),N=`${String(m)}:${String(v).padStart(2,"0")}`,f=`${String(y)}:${String(h%60).padStart(2,"0")}`;let E={id:o?Oe.value[oe.value.index0].children[oe.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:(null==(i=uni.getStorageSync("NUall").elderInfo)?void 0:i.name)?null==(n=uni.getStorageSync("NUall").elderInfo)?void 0:n.name:"",directiveId:c.id,directiveName:c.title,typeId:c.typeId,typeName:c.typeName,categoryId:c.categoryId,categoryName:c.categoryName,cycleTypeId:c.cycleTypeId,cycleType:s,cycleValue:u,startTime:N,endTime:f,positioning:oe.value.index0.toString(),positioningLong:oe.value.index1.toString(),izPackage:"N",previewFile:c.previewFile,previewFileSmall:c.previewFileSmall,serviceDuration:c.serviceDuration,immediateFile:c.immediateFile,immediateFileFocus:c.immediateFileFocus,netImmediateFileFocus:c.netImmediateFileFocus,netImmediateFile:c.netImmediateFile,tagName:Oe.value[oe.value.index0].children[oe.value.index1].tagName,mp3File:c.mp3File,netMp3File:c.netMp3File,mp4File:c.mp4File,netMp4File:c.netMp4File,serviceContent:c.serviceContent,netPreviewFile:c.netPreviewFile,netPreviewFileSmall:c.netPreviewFileSmall};Oe.value[oe.value.index0].children[oe.value.index1]=E;let x={index0:oe.value.index0,index1:oe.value.index1};Ae(x),o?Ze(E).then((e=>{e.success&&We()})):Ce(E)},Ie=e.ref(null),Fe=e.ref(null),_e=()=>{},Me=e.ref({index0:-1,index1:-1}),Ue=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),Pe=e.ref(0),Ae=e=>{oe.value.index0=e.index0,oe.value.index1=e.index1,at(),Ue.value.index0=e.index0,Ue.value.index1=e.index1,Me.value.index0=Ue.value.index0,Me.value.index1=Ue.value.index1,Ue.value.bordershow=!1,setTimeout((()=>{Ue.value.index0=-1,Ue.value.index1=-1,Ue.value.current=-1}),400),setTimeout((()=>{Ue.value.bordershow=!0,Me.value.index0=-1,Me.value.index1=-1}),1e3)},qe=["00","05","10","15","20","25","30","35","40","45","50","55"],Oe=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:qe.map((e=>({tagName:e,directiveName:""})))})))),Ye=e.ref([]),Re=e.ref([]),We=()=>{var e,t;(e=uni.getStorageSync("nuId"),t=uni.getStorageSync("elderId"),g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/getNclist?nuId=${e}&elderId=${t}`,method:"get"})).then((e=>{Oe.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:qe.map((e=>({tagName:e,directiveName:""})))}))),e.result.serviceList.forEach((e=>{Oe.value[e.positioning].children[e.positioningLong]=e})),d.value=e.result.instantList,Xe.value=!0,Ye.value=e.result.emotionTagList,Ge.value=[],Qe.value=[],e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&Ge.value.push(e.netPic)})),Re.value=e.result.bodyTagList,e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&Qe.value.push(e.netPic)}))}))},Je=e.ref([]);e.onMounted((()=>{null===uni.getStorageSync("elderId")&&uni.setStorageSync("elderId",""),Je.value=uni.getStorageSync("Packagelist")||[];let e=uni.getStorageSync("saveTree2"),t=[];et.forEach((e=>{e.children.forEach((e=>{t.push({name:e.title,url:e.url})}))})),F.value=t,e.result&&(e.result.forEach((e=>{"0"==e.netFlag?ee.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath,e.children.forEach((e=>{"0"==e.netFlag?F.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath}))})),S.value=e.result),V.value=S.value[0].children,te.value=-1,ae.value=-1,setTimeout((()=>{te.value=0,ae.value=0}),50),uni.$on("where",Ke),ae.value=0,We()}));const Qe=e.ref([]),Ge=e.ref([]),Xe=e.ref(!1);function Ke(e){Pe.value=3,Ae(e)}function lt(e){let t=[],l=e,a=/([^((]*)[((]([^))]+)[))]/;for(;a.test(l);){let e=l.match(a);e&&(e[1].trim()&&t.push(e[1].trim()),e[2].trim()&&t.push(e[2].trim()),l=l.replace(e[0],"").trim())}return l.trim()&&t.push(l.trim()),t}function at(){if(oe.value.index0>=0&&oe.value.index0<=24&&oe.value.index1>=0&&oe.value.index1<=11){const e=259*(oe.value.index0+.5),t=200*(oe.value.index1-1);E.value=e-650,x.value=t-200;const l=6216,a=2200;E.value=Math.max(0,Math.min(E.value,l-1300))/2,x.value=Math.max(0,Math.min(x.value,a-400))/2}}e.onBeforeUnmount((()=>{Be&&clearTimeout(Be),uni.$off("where",Ke),n=!1}));const it=e.ref(!1),nt=e.ref(!1);return(l,i)=>{var n,o,r,c,s,g,F,M,$,Q,X,K,ee,he,ye,we,Ne,Ve,Be,Ce,Ie;const Fe=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",{class:"right-container",style:e.normalizeStyle(t.isshow?{opacity:"1"}:{opacity:"0"}),onClick:i[15]||(i[15]=e=>{fe.value=!1,ge.value=!1})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("text",{style:{"margin-left":"30rpx"}}," NUID:"+e.toDisplayString(uni.getStorageSync("nuId")),1),e.createElementVNode("text",{class:"new-weight"},e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("view",{class:"right-icons"},[e.createElementVNode("view",{class:"white-button",onClick:_e},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/yulan.png"},null,8,["src"]),e.createTextVNode(" 预览 ")])])]),e.createElementVNode("view",{class:"doctorsay-container-view"},[e.createElementVNode("view",{class:"doctorsay-container-container"},[e.createElementVNode("view",{class:"super-card"},[e.createElementVNode("view",{class:"boom-father"},[e.createElementVNode("view",{class:"boom",style:e.normalizeStyle({transform:a.value})},[e.createElementVNode("view",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oe.value[0].children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.withDirectives(e.createElementVNode("view",{class:"boom-son"},[e.createElementVNode("text",{class:"boom-text"},e.toDisplayString(t.tagName),1)],512),[[e.vShow,t.tagName]])])))),128))])],4)]),e.createElementVNode("view",{class:"super-card-container"},[e.createElementVNode("scroll-view",{style:{height:"1330rpx",width:"100%",border:"2rpx solid balck"},"scroll-with-animation":"","scroll-left":E.value,"scroll-x":"",onScroll:H,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",width:"4824rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oe.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":00"),1)])))),128))]),e.createElementVNode("view",{style:{display:"flex",height:"calc(100% - 330rpx)",position:"relative"}},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{style:{height:"100%",width:"6744rpx"},"scroll-top":x.value,"scroll-with-animation":"","scroll-y":!0,onScroll:G,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oe.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time-und"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((a,i)=>(e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:i},[e.createElementVNode("view",{class:e.normalizeClass(Ue.value.index0===l&&Ue.value.index1===i?Ue.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([Ue.value.bordershow||Me.value.index0!==l||Me.value.index1!==i?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${l}_${i}`,onClick:t=>((t,l,a)=>{R.value=!1,oe.value.index0=l,oe.value.index1=a,at(),P.value=!0,setTimeout((()=>{t.directiveName&&u.value&&(de.value=a,uni.createSelectorQuery().selectAll(".super-card-time-card").boundingClientRect((t=>{t.forEach((async t=>{t.left>100&&t.left<1067&&t.top<670&&t.top>50&&t.dataset.index0==l&&t.dataset.index1==a&&(t.left>100&&t.left<500?(re.value=Math.floor(t.left)+528,ve.value[0]=!0):(re.value=Math.floor(t.left)-18,ve.value[0]=!1),t.top>300?(ce.value=Math.floor(t.top)+100,ve.value[1]=!0):(ce.value=Math.floor(t.top)+180,ve.value[1]=!1),await e.nextTick(),B.value=!0,pe.value[0]=l,pe.value[1]=a,T.value=!1,setTimeout((()=>{T.value=!0}),100))}))})).exec())}),400)})(a,l,i),"data-index0":l,"data-index1":i},[se.value.index0===l&&se.value.index1===i&&0==i?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-button-orange-spe",style:e.normalizeStyle({left:se.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),se.value.index0===l&&se.value.index1===i&&i?(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-button-orange",style:e.normalizeStyle({left:se.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},null,512),[[e.vShow,oe.value.index0==l&&oe.value.index1==i&&P.value]]),e.createElementVNode("view",{class:e.normalizeClass(Z(a,l,i)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${J(l,i).toFixed(2)}s`}])},[a.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column"}},[e.withDirectives(e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx",margin:"0 auto","margin-top":"20rpx"},src:a.netImmediateFile?a.netImmediateFile:"/static/logo.png"},null,8,["src"]),[[e.vShow,a.startTime]]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(a.startTime+"-"+a.endTime),1),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"50rpx"},src:$e})):e.createCommentVNode("",!0),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx"}},e.toDisplayString(a.cycleType),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.startTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-rel"},e.toDisplayString(lt(a.directiveName)[0]),1)):e.createCommentVNode("",!0),oe.value.index0==l&&oe.value.index1==i&&P.value&&!a.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+v[i]),1)):e.createCommentVNode("",!0)],6)],14,["id","onClick","data-index0","data-index1"])])))),128))])])))),128))])],40,["scroll-top"])])],40,["scroll-left"])]),e.createElementVNode("view",{class:"right-cards"},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-left":"30rpx"}},[e.createElementVNode("view",{class:""}," 即时指令 "),e.createElementVNode("view",{style:{width:"30rpx",height:"6rpx","background-color":"black","margin-left":"40rpx","margin-top":"3rpx","border-radius":"20rpx"}})]),e.createElementVNode("scroll-view",{"scroll-x":"",class:"scroll-box","scroll-left":k.value},[e.createElementVNode("view",{class:"right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"right-box-item",onTouchstart:ke,onTouchmove:Ee,onTouchend:xe,style:e.normalizeStyle(t.target?{background:t.target,transition:"all 1.5s ease-in-out"}:{transition:"all 1.5s ease-in-out"})},[e.createElementVNode("view",{style:e.normalizeStyle({animationDelay:`-${.1*l}s`}),class:e.normalizeClass(fe.value?"super-end-items-img-father-active":"super-end-items-img-father")},[e.createElementVNode("image",{class:"right-box-img",src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle({fontSize:(null==(a=t.directiveName)?void 0:a.trim().length)>6?"25rpx":"27rpx"})},e.toDisplayString(t.directiveName),5)],6),e.withDirectives(e.createElementVNode("view",{class:"super-end-items-father-close-father",onClick:e.withModifiers((e=>{d.value.splice(l,1),De(t.id)}),["stop"])}," - ",8,["onClick"]),[[e.vShow,fe.value]])],36)])})),128))])],8,["scroll-left"]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("view",{class:"middle-left-box"},[e.createElementVNode("view",{class:"first-contant"},[e.withDirectives(e.createElementVNode("view",{class:"time-father"},[e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month"},"周"),e.createElementVNode("view",{class:"time-button-week",onClick:i[0]||(i[0]=e=>{y.value=!1,q.value=-1,A.value=""})},"月")],512),[[e.vShow,y.value]]),e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month-target",onClick:i[1]||(i[1]=e=>{y.value=!0,Y.value=-1,O.value=""})},"周"),e.createElementVNode("view",{class:"time-button-week-target"},"月")],512),[[e.vShow,!y.value]]),e.createElementVNode("scroll-view",{"scroll-y":"",style:{width:"100%",height:"600rpx"},"show-scrollbar":!1,"scroll-top":N.value},[y.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(p,((t,l)=>e.createElementVNode("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-_.value<tt?(A.value=e,q.value=t,ze(),_.value=0):(A.value=e,q.value=t,_.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(q.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"]))),64)):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(h),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-_.value<tt?(O.value=e,Y.value=t,ze(),_.value=0):(O.value=e,Y.value=t,_.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(Y.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"])))),128)),e.createElementVNode("view",{style:{height:"40rpx"}})],8,["scroll-top"])],512),[[e.vShow,w.value]]),e.withDirectives(e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":N.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(o=null==(n=S.value[te.value])?void 0:n.children[le.value])?void 0:o.children,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>function(e){const t=Date.now();ie.value=e,t-_.value<tt?(ie.value=e,ze(),_.value=0):(ie.value=e,_.value=t)}(l)},[e.createElementVNode("view",{class:"right-box-item",style:e.normalizeStyle(ie.value==l?{border:"2rpx solid rgb(229, 233, 249)",backgroundColor:"#fff"}:{border:"2rpx solid rgb(229, 233, 249)"})},[e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 周期 ",512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 即时 ",512),[[e.vShow,3==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,3==t.cycleTypeId]]),e.createElementVNode("image",{class:"right-box-img",src:ie.value==l?t.netImmediateFileFocus:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle([{marginTop:"2rpx",fontSize:(null==(a=t.title)?void 0:a.trim().length)>6?"20rpx":"25rpx"},ie.value===l?{color:"rgb(54,159,239)"}:{}])},e.toDisplayString(t.title),5)],4)],8,["onClick"])})),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"]),[[e.vShow,!w.value]])]),e.createElementVNode("view",{class:"second-contant"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":f.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:e.normalizeClass(ae.value==l?"downList-box-target":"downList-box"),onClick:t=>(t=>{w.value=!1,q.value=-1,Y.value=-1,A.value="",O.value="",le.value=t,ae.value=t,ie.value=0,N.value=.01,e.nextTick((()=>{N.value=0}))})(l)},[e.createVNode(Fe,{width:"55rpx",height:"55rpx",links:t.url,playing:ae.value==l,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:"downList-box-text"},e.toDisplayString(t.title),1)],10,["onClick"])])))),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"])])]),e.createElementVNode("view",{class:"middle-right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>L(l)},[e.createElementVNode("view",{class:"doctorsay-container-card"},[e.createVNode(Fe,{width:"50rpx",height:"50rpx",links:t.url,playing:l===te.value,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:e.normalizeClass(l===te.value?"doctorsay-container-card-font-dark":"doctorsay-container-card-font")},e.toDisplayString(t.title),3)])],8,["onClick"])))),128))])],512),[[e.vShow,!it.value]]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Je.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"zhiling-card",style:e.normalizeStyle(ne.value==l?{backgroundColor:"#fff"}:{}),key:l,onClick:e=>(e=>{const t=Date.now();ne.value=e,t-_.value<tt?(ze(),_.value=0):_.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:$e}),e.createElementVNode("view",{class:"zhiling-card-font"}," 指令包 "),e.createElementVNode("view",{class:""}," 包名:"+e.toDisplayString(t.packageName),1),e.createElementVNode("view",{class:"bag"},[e.createElementVNode("text",null," 包含: "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.directivesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"bag-one",key:l},[a?(e.openBlock(),e.createElementBlock("text",{key:0},"、")):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.directiveName),1)])))),128))])],12,["onClick"])))),128))])],512),[[e.vShow,it.value]]),e.createElementVNode("view",{class:"under-button"},[b.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"under-button-black"}," 不能重复添加相同的即时服务指令 ")):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"under-button-black"}," 请选择服务指令来进行操作 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"white-circle",onClick:U},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/movebutton${z.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:W},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/deletebutton${R.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:be},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/notebutton${C.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:i[2]||(i[2]=e=>{u.value=!u.value,z.value=!1,se.value.index0=-1,se.value.index1=-1})},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/open${u.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("view",{class:e.normalizeClass(["white-circle-click-father",{anim:Se.value}]),style:e.normalizeStyle({color:Se.value?"#fff":""}),onClick:Te},[e.createElementVNode("view",{style:{"z-index":"999"}}," 确定 ")],6),e.withDirectives(e.createElementVNode("view",{class:"white-circle-click-father-spec",onClick:i[3]||(i[3]=e=>L(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:Le}),e.createElementVNode("view",{style:{"z-index":"999","font-size":"25rpx"}}," 监控 ")])],512),[[e.vShow,!it.value]])])])])])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-overlay",onClick:i[6]||(i[6]=e=>{B.value=!1,se.value.index0=999,de.value=-1})},["N"===(null==(c=null==(r=Oe.value[pe.value[0]])?void 0:r.children[pe.value[1]])?void 0:c.izPackage)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay-content",style:e.normalizeStyle([{height:"390rpx"},{top:2*ce.value-350+"rpx",left:2*re.value-780+"rpx",opacity:T.value?1:0}]),"popup-overlay:class":"getjiao",onClick:i[4]||(i[4]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"popup-overlay-content-left"},[e.createElementVNode("image",{class:"popup-overlay-content-left-img",src:null==(g=null==(s=Oe.value[pe.value[0]])?void 0:s.children[pe.value[1]])?void 0:g.netImmediateFileFocus},null,8,["src"])]),e.createElementVNode("view",{class:"popup-overlay-content-right"},[e.createElementVNode("view",{class:"time-font"},e.toDisplayString(null==(M=null==(F=Oe.value[pe.value[0]])?void 0:F.children[pe.value[1]])?void 0:M.startTime)+" - "+e.toDisplayString(null==(Q=null==($=Oe.value[pe.value[0]])?void 0:$.children[pe.value[1]])?void 0:Q.endTime),1),e.createElementVNode("view",{class:"time-text"},e.toDisplayString(null==(K=null==(X=Oe.value[pe.value[0]])?void 0:X.children[pe.value[1]])?void 0:K.directiveName),1)])],4)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["popup-overlay-content",I.value]),style:e.normalizeStyle({top:2*ce.value-350+"rpx",left:2*re.value-780+"rpx",opacity:T.value?1:0}),onClick:i[5]||(i[5]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"specia-onshow"},[e.createElementVNode("view",{class:"specia-title"},e.toDisplayString(null==(he=null==(ee=Oe.value[pe.value[0]])?void 0:ee.children[pe.value[1]])?void 0:he.startTime)+" - "+e.toDisplayString(null==(we=null==(ye=Oe.value[pe.value[0]])?void 0:ye.children[pe.value[1]])?void 0:we.endTime),1),(null==(Ve=null==(Ne=Oe.value[pe.value[0]])?void 0:Ne.children[pe.value[1]])?void 0:Ve.directivesList)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"specia-cards"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(Ce=null==(Be=Oe.value[pe.value[0]])?void 0:Be.children[pe.value[1]])?void 0:Ce.directivesList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"232rpx",height:"150rpx"},key:l},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(t.serviceDuration+"分钟"),1),e.createElementVNode("image",{class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e}),e.createElementVNode("view",{class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(t.cycleType),1)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(lt(t.directiveName)[0]),1)])))),128))])):e.createCommentVNode("",!0)])],6))],512),[[e.vShow,B.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-say",onClick:i[8]||(i[8]=e=>C.value=!1)},[e.createElementVNode("view",{class:"popup-say-content",style:e.normalizeStyle([{padding:"30rpx 0"},{opacity:D.value?1:0}]),onClick:i[7]||(i[7]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 体型标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.slice(0,5),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 情绪标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.slice(5,12),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l+5}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{class:"popup-say-three"})],4)],512),[[e.vShow,C.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:i[10]||(i[10]=e=>me.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:ue.value?1:0}),onClick:i[9]||(i[9]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-title"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx"},src:je}),e.createElementVNode("view",{style:{"font-weight":"600","margin-left":"15rpx"}}," 护理单元 ")]),e.createElementVNode("view",{class:"share-others"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"45rpx"}}," 护理流程 "),e.createElementVNode("view",{style:{"margin-top":"30rpx"}},[e.createTextVNode(e.toDisplayString(uni.getStorageSync("nuName"))+" ",1),e.createElementVNode("text",{style:{color:"#1083F8"}},e.toDisplayString(uni.getStorageSync("NUall").elderInfo?null==(Ie=uni.getStorageSync("NUall").elderInfo)?void 0:Ie.name:""),1)]),e.createElementVNode("view",{class:"blue-button"}," 分享 ")])])],4)],512),[[e.vShow,me.value]]),R.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["neuro-wrapper",nt.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:i[11]||(i[11]=e=>R.value=!1)}),e.createElementVNode("view",{class:"neuro-box",onClick:i[14]||(i[14]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"delete-button-father"},[e.createElementVNode("view",{class:"button-white",onClick:i[12]||(i[12]=e=>R.value=!1)},"取消"),e.createElementVNode("view",{class:"button",onClick:i[13]||(i[13]=e=>W())},"确定")]),e.createElementVNode("view",{class:"title"},"确定要删除指令吗"),e.createElementVNode("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"240rpx",height:"170rpx"}},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:Oe.value[oe.value.index0].children[oe.value.index1].netImmediateFile?Oe.value[oe.value.index0].children[oe.value.index1].netImmediateFile:"/static/logo.png"},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(Oe.value[oe.value.index0].children[oe.value.index1].startTime+"-"+Oe.value[oe.value.index0].children[oe.value.index1].endTime),1),1!=Oe.value[oe.value.index0].children[oe.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e})):e.createCommentVNode("",!0),1!=Oe.value[oe.value.index0].children[oe.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(Oe.value[oe.value.index0].children[oe.value.index1].cycleType),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(lt(Oe.value[oe.value.index0].children[oe.value.index1].directiveName)[0]),1)])])],2)):e.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-fc2937cc"]]),at="/static/index/requestform/chongzhi.png",it="/static/index/warehouse/procurement/picking/bebad.png",nt="/static/index/requestform/isok.png",ot="/static/index/requestform/iserror.png",rt="/static/index/requestform/gongyingshang.png",ct=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQld`,method:"get",data:e}),st=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQldWlInfo`,method:"get",data:e}),ut=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryMaterialInfo`,method:"get",data:e}),dt=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/transRead`,method:"post",data:e}),mt=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/cancellation`,method:"post",data:e}),vt=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/submitQld`,method:"post",data:e}),pt="/static/index/procurement/que.png";const gt=s({props:{cont:{type:String,default:""},show:{type:Boolean,default:!1}}},[["render",function(t,l,a,i,n,o){return a.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"que"},[e.createElementVNode("image",{src:pt,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)])):e.createCommentVNode("",!0)}],["__scopeId","data-v-42f8deeb"]]);const ht=s({props:{cont:"",style:{}}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"que",style:e.normalizeStyle(a.style)},[e.createElementVNode("image",{src:pt,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)],4)])}],["__scopeId","data-v-1bbac045"]]),yt=s(e.defineComponent({__name:"requestform",props:{isShow:{type:Boolean,required:!0}},setup(t){const l=t,a=e.ref(["全部","待出库","已出库","已收货 ","已作废"]),i=e.ref(!1);e.watch((()=>l.isShow),((e,t)=>{!t&&e?(N.value=!0,i.value=!1,u(),setTimeout((()=>{i.value=!0}),50)):i.value=!1})),e.onMounted((()=>{})),e.ref(!1);const n=e.ref(0),o=e=>{if(n.value!=e||!e){switch(y.value=1,setTimeout((()=>{y.value=0}),50),v.value=0,n.value=e,p.pageNo=1,p.canpull=!0,e){case 0:p.status="1,2,4,5";break;case 1:p.status="1";break;case 2:p.status="4";break;case 3:p.status="5";break;case 4:p.status="2"}k()}},c=()=>{s||(s=!0,p.pageNo=1,p.canpull=!0,v.value=0,k(),y.value=1,setTimeout((()=>{y.value=0}),10),setTimeout((()=>s=!1),500))};let s=!1;const u=()=>{s||(s=!0,p.searchContent="",o(0),setTimeout((()=>s=!1),500))},d=e.ref([]),m=e.ref(0),v=e.ref(0),p=e.reactive({pageNo:1,pageSize:5,canpull:!0,searchContent:"",status:"1,2,4,5",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")}),h=e.ref(!1),y=e.ref(0),w=e.ref([]),N=e.ref(!0),f=e.ref(!0),k=()=>{ct(p).then((e=>{var t;i.value=!0,"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!N.value?(N.value=!1,d.value=[],d.value.push(...e.result.records),m.value=e.result.total,e.result.records.length?(f.value=!1,st({qldNo:e.result.records[0].qldNo}).then((e=>{w.value=[],w.value.push(...e.result),f.value=!0}))):w.value=[],e.result.records.length<p.pageSize&&(p.canpull=!1)):h.value=!0}))},E=e.ref(!0),x=()=>{E.value&&(p.pageNo++,V(),E.value=!1,setTimeout((()=>{E.value=!0}),500))},V=()=>{p.canpull&&ct(p).then((e=>{d.value.push(...e.result.records),m.value=e.result.total,e.result.records.length<p.pageSize&&(p.canpull=!1)}))},b=e.ref("");r((()=>{b.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const S=e.ref(!1),B=e.ref(""),T=e.ref(!1),C=()=>{let e={qldNo:d.value[v.value].qldNo,nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),nuName:uni.getStorageSync("nuName"),elderName:uni.getStorageSync("NUall").elderInfo.name};mt(e).then((e=>{T.value=!1,e.success?d.value[v.value]=e.result.result:(p.pageNo=1,p.canpull=!0,y.value=1,setTimeout((()=>{y.value=0}),50),v.value=0,k()),setTimeout((()=>{e.success?uni.showToast({title:e.result.message,icon:"success",duration:3e3}):(S.value=!0,B.value=e.message)}),300)}))},D=e.ref(!1),z=()=>{let e={qldNo:d.value[v.value].qldNo,elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/confirmReceipt`,method:"post",data:t})).then((e=>{D.value=!1,e.success?d.value[v.value]=e.result.result:(p.pageNo=1,y.value=1,setTimeout((()=>{y.value=0}),50),v.value=0,p.canpull=!0,k()),setTimeout((()=>{e.success?uni.showToast({title:e.result.message,icon:"success",duration:3e3}):(S.value=!0,B.value=e.message)}),300)}))};return(l,r)=>{var s,m;const g=e.resolveComponent("tanchuang"),N=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("view",{class:"buttons-father",style:e.normalizeStyle(i.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=e=>p.searchContent=e),placeholder:"请领单号",onConfirm:c},null,544),[[e.vModelText,p.searchContent]])]),e.createElementVNode("view",{class:"scr",onClick:c}," 检索 "),e.createElementVNode("view",{class:"shx",onClick:u},[e.createElementVNode("image",{src:at,mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 重置 ")]),e.withDirectives(e.createElementVNode("view",{class:"right-button",onClick:r[1]||(r[1]=e=>T.value=!0)},[e.createElementVNode("image",{src:it}),e.createElementVNode("view",null," 作废 ")],512),[[e.vShow,"1"==(null==(s=d.value[v.value])?void 0:s.status)]]),e.withDirectives(e.createElementVNode("view",{class:"right-button",onClick:r[2]||(r[2]=e=>D.value=!0)},[e.createElementVNode("image",{src:"/static/index/warehouse/procurement/picking/shouhuo.png"}),e.createElementVNode("view",null," 收货 ")],512),[[e.vShow,"4"==(null==(m=d.value[v.value])?void 0:m.status)]]),e.createVNode(gt,{cont:"暂无数据",show:h.value},null,8,["show"])],4),[[e.vShow,t.isShow]]),e.createVNode(g,{show:T.value,font:"确定要作废这个请领单吗",onBack:r[3]||(r[3]=e=>{T.value=!1}),onRight:C},null,8,["show"]),e.createVNode(g,{show:D.value,font:"这个请领单确定要收货吗",onBack:r[4]||(r[4]=e=>{D.value=!1}),onRight:z},null,8,["show"]),e.withDirectives(e.createElementVNode("view",{class:"other-contain",style:e.normalizeStyle(i.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"other-contain-left"},[e.createElementVNode("view",{class:"left-selecttype"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.value===l?"selecttype-target":"selecttype"),onClick:e=>o(l)},e.toDisplayString(t),11,["onClick"])))),256)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===n.value?11.5:12+18.5*n.value)+"%"})},null,4)]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":y.value,onScrolltolower:x,"lower-threshold":200},[e.createElementVNode("view",{style:{height:"1%"}}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,l)=>{var a,i,n,o;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:e=>((e,t)=>{let l=Math.ceil(e+1);if(y.value=180*(l-2),v.value=e,f.value=!1,st({qldNo:d.value[e].qldNo}).then((e=>{w.value=[],w.value.push(...e.result),f.value=!0})),"N"==t.izYgRead){let l={status:"yg",qldNo:d.value[e].qldNo};dt(l).then((e=>{e.success&&(t.izYgRead="Y")}))}})(l,t),style:e.normalizeStyle({borderColor:l===v.value?"":"transparent",background:l===v.value?"#fff":"rgba(255,255,255,0.6)"})},["N"==t.izYgRead?(e.openBlock(),e.createElementBlock("view",{key:0,style:{background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.5vw",top:"-0.2vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"middle-title-spec"}," 请领单号 "),e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.qldNo),1)]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(t.tjTime.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 待出库 "),e.createElementVNode("view",{style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.tjByName+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title",style:e.normalizeStyle("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{})},e.toDisplayString(Number(t.status)>1?"2"===(null==t?void 0:t.status)?null==(a=t.zfTime)?void 0:a.slice(0,10).replace(/-/g,"."):"3"===(null==t?void 0:t.status)?null==(i=t.htTime)?void 0:i.slice(0,10).replace(/-/g,"."):null==(n=t.ckTime)?void 0:n.slice(0,10).replace(/-/g,"."):""),5),e.createElementVNode("view",{class:"middle-heng-father"},["2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?(e.openBlock(),e.createElementBlock("image",{key:0,class:"middle-ball-img",style:{width:"32rpx",height:"32rpx"},src:ot})):"1"===(null==t?void 0:t.status)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"middle-ball"})):(e.openBlock(),e.createElementBlock("image",{key:2,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",{style:e.normalizeStyle("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{})},e.toDisplayString("2"===(null==t?void 0:t.status)?"已作废":"3"===(null==t?void 0:t.status)?"已回退":"已出库"),5),Number(t.status)>1?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle([{"font-size":"25rpx"},"2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{}])},e.toDisplayString("[ "+("2"===(null==t?void 0:t.status)?null==t?void 0:t.zfByName:"3"===(null==t?void 0:t.status)?null==t?void 0:t.htByName:null==t?void 0:t.ckByName)+" ]"),5)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(5==Number(t.status)?null==(o=t.shTime)?void 0:o.slice(0,10).replace(/-/g,"."):""),1),e.createElementVNode("view",{class:"middle-heng-father"},[5!=Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball",style:e.normalizeStyle(4==Number(t.status)?{}:{backgroundColor:"#E5E5E5"})},null,4)):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},["9"!=(null==t?void 0:t.cgdType)?(e.openBlock(),e.createElementBlock("view",{key:0}," 已收货 ")):e.createCommentVNode("",!0),5==Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:1,style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.shByName+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:rt}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.nuName),1)]),e.createElementVNode("view",{class:e.normalizeClass("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?"tag-fail":"tag-success")},e.toDisplayString(t.statusText),3)])],12,["onClick"])})),128))],40,["scroll-top"])]),e.createElementVNode("view",{class:"other-contain-right"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"right-contain"},[e.createElementVNode("view",{class:"right-ones"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"right-one",key:l},[e.createElementVNode("view",{class:"right-one-left"},[e.createElementVNode("view",{class:"imge"},[e.createElementVNode("image",{class:"left-image",src:t.materialInfo.materialImg?b.value+t.materialInfo.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"left-tages"},e.toDisplayString(t.materialInfo.categoryName),1),e.createElementVNode("view",{class:"left-tages"},e.toDisplayString(t.materialInfo.typeName),1),t.materialInfo.medicationName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left-tages"},e.toDisplayString(t.materialInfo.medicationName),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"right-one-right"},[e.createElementVNode("view",{class:"right-title"},e.toDisplayString(t.materialInfo.materialName),1),e.createElementVNode("view",{class:"right-setting"}," 规格型号 "),e.createElementVNode("view",{class:"right-mm"},e.toDisplayString(t.materialInfo.materialNo),1),e.createElementVNode("view",{class:"right-down"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"right-first-num"},e.toDisplayString(t.qlNum),1),e.createElementVNode("view",{class:"right-first-type"}," 请领数量 ")]),e.createElementVNode("view",{class:"right-shu"}),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"right-first-num",style:{"font-weight":"500"}},e.toDisplayString(t.materialInfo.materialUnits),1),e.createElementVNode("view",{class:"right-first-type"}," 请领单位 ")])])])])))),128))]),0==w.value.length&&f.value?(e.openBlock(),e.createBlock(ht,{key:0,cont:"暂无数据",style:{width:"30%",height:"30%",position:"absolute"}})):e.createCommentVNode("",!0)])]),e.createVNode(N,{show:S.value,font:B.value,onClose:r[5]||(r[5]=e=>S.value=!1)},null,8,["show","font"])],4),[[e.vShow,t.isShow&&!h.value]])],64)}}}),[["__scopeId","data-v-04914378"]]),wt="/static/index/procurement/x.png",Nt="/static/index/procurement/zjt.png",ft="/static/index/procurement/ddj.png";const kt=s({props:{show:{type:Boolean,default:!1},font:{type:String,default:""}},data:()=>({showbox:!1}),watch:{show(e,t){e?setTimeout((()=>{this.showbox=!0}),50):this.showbox=!1}},methods:{}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:e.normalizeClass(["addall guodu",a.show?"":"unclass"]),style:e.normalizeStyle(n.showbox?"z-index:220":"z-index:-2")},[e.createElementVNode("view",null,"温馨提示"),e.createElementVNode("view",null,[e.createElementVNode("image",{src:ft,mode:"aspectFill"})]),e.createElementVNode("view",{style:{"text-align":"center"}},e.toDisplayString(a.font),1),e.createElementVNode("view",null,[e.createElementVNode("view",{onClick:l[0]||(l[0]=e=>t.$emit("back"))},"取消"),e.createElementVNode("view",{class:"qd",onClick:l[1]||(l[1]=e=>t.$emit("right"))},"确定")])],6),a.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[2]||(l[2]=e=>t.$emit("back"))})):e.createCommentVNode("",!0)])}],["__scopeId","data-v-eaaa998e"]]),Et=s(e.defineComponent({__name:"addwl",props:{Material:{type:Array,required:!0}},emits:["delall","del","submit"],setup(t,{emit:l}){const a=t,i=l,n=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),o=e.ref(!0),r=e.ref(0);e.watch((()=>a.Material),(()=>{0==a.Material.length&&(o.value=!1,r.value=0),1==a.Material.length&&(o.value||(o.value=!0))}));const c=()=>{i("delall"),setTimeout((()=>{r.value=0,o.value=!1}),100)},s=()=>{o.value=!o.value,r.value=0,h()},u=e.ref(0),d=e=>{u.value=e.touches[0].clientX},m=e.ref(0);function v(e){var t;m.value=(null==(t=null==e?void 0:e.detail)?void 0:t.scrollLeft)??0}const p=e.ref(0),g=e=>{if(0==a.Material.length)return;const t=e.touches[0].clientX-u.value;t<-60&&!o.value&&(o.value=!o.value,r.value=0,p.value=m.value+125.99,setTimeout((()=>{p.value=m.value+126}),50)),t>60&&o.value&&(o.value=!o.value,r.value=0,p.value=m.value-125.99,setTimeout((()=>{p.value=m.value-126}),50))},h=()=>{o.value?(p.value=m.value+125.99,setTimeout((()=>{p.value=m.value+126}),50)):(p.value=m.value-125.99,setTimeout((()=>{p.value=m.value-126}),50))},y=e.ref(!1);return e.onMounted((()=>{setTimeout((()=>{y.value=!0}),500)})),(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"kcyj"},[e.createElementVNode("view",{class:"kjlt"},[e.createTextVNode(" 请领物料 "),t.Material.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mhao"},[e.createElementVNode("view",{class:"mhao-font"},e.toDisplayString(t.Material.length),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("scroll-view",{"scroll-x":"true",class:"kcscrol guodu",onScroll:v,"scroll-with-animation":"","scroll-left":p.value,style:e.normalizeStyle(o.value?"width:calc(100% - 21.8vw)":"width:calc(100% - 10vw)")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.Material,((t,l)=>{var a,o,c;return e.openBlock(),e.createElementBlock("view",{class:"yjbox",key:l},[e.createElementVNode("image",{src:(null==(a=t.materialInfo)?void 0:a.materialImg)?n.value+(null==(o=t.materialInfo)?void 0:o.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",null,e.toDisplayString(null==(c=t.materialInfo)?void 0:c.materialName),1),t.qlNum>=0?(e.openBlock(),e.createElementBlock("text",{key:0,class:"ytj"},e.toDisplayString(t.qlNum),1)):e.createCommentVNode("",!0),1==r.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"zhanwei",onClick:e.withModifiers((e=>(e=>{i("del",e)})(t)),["stop"])},[e.createElementVNode("view",null,"-")],8,["onClick"])):e.createCommentVNode("",!0)])})),128)),0==t.Material.length&&y.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"que guodu",style:e.normalizeStyle(o.value?"width:65.8vw":"")},[e.createElementVNode("image",{src:pt,mode:"aspectFill"}),e.createElementVNode("view",null,"暂无数据")],4)):e.createCommentVNode("",!0)],44,["scroll-left"]),e.createElementVNode("view",{class:"kjlt more guodu",style:e.normalizeStyle(o.value?"width:15vw":""),onTouchstart:d,onTouchmove:g},[e.createElementVNode("view",{onClick:s,class:"righ0"},[e.createTextVNode(e.toDisplayString(o.value?"收起":"更多")+" ",1),e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(o.value?"transform: rotate(180deg);":""),src:Nt,mode:"aspectFill"},null,4)]),t.Material.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["guodu",o.value?1==r.value?"avt":"":"righ0"]),onClick:a[0]||(a[0]=e=>{r.value=1==r.value?0:1})}," 批量移除 ",2)):e.createCommentVNode("",!0),t.Material.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["guodu",o.value?2==r.value?"avt":"":"righ0"]),onClick:a[1]||(a[1]=e=>{r.value=2})}," 清空列表 ",2)):e.createCommentVNode("",!0),t.Material.length?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(["guodu",o.value?3==r.value?"avt":"":"righ0"]),onClick:a[2]||(a[2]=e=>{r.value=3,i("submit")})}," 提交请领单 ",2)):e.createCommentVNode("",!0),t.Material.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:3,class:e.normalizeClass(["guodu",o.value?1==r.value?"avt":"":"righ0"]),style:{"background-color":"#e8e8e8"}}," 批量移除 ",2)),t.Material.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:4,class:e.normalizeClass(["guodu",o.value?2==r.value?"avt":"":"righ0"]),style:{"background-color":"#e8e8e8"}}," 清空列表 ",2)),t.Material.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:e.normalizeClass(["guodu",o.value?3==r.value?"avt":"":"righ0"]),style:{"background-color":"#e8e8e8"}}," 提交请领单 ",2))],36)]),e.createVNode(kt,{onBack:a[3]||(a[3]=e=>r.value=0),show:2==r.value,font:"确定将本次请领清单中的所有物料都移除吗?",onRight:c},null,8,["show"])]))}}),[["__scopeId","data-v-0bf7acdb"]]);const xt=s({name:"u-line",props:{color:{type:String,default:"#e4e7ed"},length:{type:String,default:"100%"},direction:{type:String,default:"row"},hairLine:{type:Boolean,default:!0},margin:{type:String,default:"0"},borderStyle:{type:String,default:"solid"}},computed:{lineStyle(){let e={};return e.margin=this.margin,"row"==this.direction?(e.borderBottomWidth="1px",e.borderBottomStyle=this.borderStyle,e.width=this.$u.addUnit(this.length),this.hairLine&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.borderStyle,e.height=this.$u.addUnit(this.length),this.hairLine&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,e}}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",{class:"u-line",style:e.normalizeStyle([o.lineStyle])},null,4)}],["__scopeId","data-v-85e19575"]]);const Vt=s({name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle(){let e={};return e.width=this.size+"rpx",e.height=this.size+"rpx","circle"==this.mode&&(e.borderColor=`#e4e4e4 #e4e4e4 #e4e4e4 ${this.color?this.color:"#c7c7c7"}`),e}}},[["render",function(t,l,a,i,n,o){return a.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["u-loading","circle"==a.mode?"u-loading-circle":"u-loading-flower"]),style:e.normalizeStyle([o.cricleStyle])},null,6)):e.createCommentVNode("",!0)}],["__scopeId","data-v-ae8dd367"]]);const bt=s({name:"u-loadmore",emits:["loadmore"],props:{bgColor:{type:String,default:"transparent"},icon:{type:Boolean,default:!0},fontSize:{type:String,default:"28"},color:{type:String,default:"#606266"},status:{type:String,default:"loadmore"},iconType:{type:String,default:"circle"},loadText:{type:Object,default:()=>({loadmore:"加载更多",loading:"正在加载...",nomore:"没有更多了"})},isDot:{type:Boolean,default:!1},iconColor:{type:String,default:"#b7b7b7"},marginTop:{type:[String,Number],default:0},marginBottom:{type:[String,Number],default:0},height:{type:[String,Number],default:"auto"}},data:()=>({dotText:"●"}),computed:{loadTextStyle(){return{color:this.color,fontSize:this.fontSize+"rpx",position:"relative",zIndex:1,backgroundColor:this.bgColor}},cricleStyle(){return{borderColor:`#e5e5e5 #e5e5e5 #e5e5e5 ${this.circleColor}`}},flowerStyle:()=>({}),showText(){let e="";return e="loadmore"==this.status?this.loadText.loadmore:"loading"==this.status?this.loadText.loading:"nomore"==this.status&&this.isDot?this.dotText:this.loadText.nomore,e}},methods:{loadMore(){"loadmore"==this.status&&this.$emit("loadmore")}}},[["render",function(t,l,i,n,o,r){const c=a(e.resolveDynamicComponent("u-line"),xt),s=a(e.resolveDynamicComponent("u-loading"),Vt);return e.openBlock(),e.createElementBlock("view",{class:"u-load-more-wrap",style:e.normalizeStyle({backgroundColor:i.bgColor,marginBottom:i.marginBottom+"rpx",marginTop:i.marginTop+"rpx",height:t.$u.addUnit(i.height)})},[e.createVNode(c,{color:"#d4d4d4",length:"50",class:"u-line"}),e.createElementVNode("view",{class:e.normalizeClass(["loadmore"==i.status||"nomore"==i.status?"u-more":"","u-load-more-inner"])},[e.createElementVNode("view",{class:"u-loadmore-icon-wrap"},[e.createVNode(s,{class:"u-loadmore-icon",color:i.iconColor,mode:"circle"==i.iconType?"circle":"flower",show:"loading"==i.status&&i.icon},null,8,["color","mode","show"])]),e.createElementVNode("view",{class:e.normalizeClass(["u-line-1",["nomore"==i.status&&1==i.isDot?"u-dot-text":"u-more-text"]]),style:e.normalizeStyle([r.loadTextStyle]),onClick:l[0]||(l[0]=(...e)=>r.loadMore&&r.loadMore(...e))},e.toDisplayString(r.showText),7)],2),e.createVNode(c,{color:"#d4d4d4",length:"50",class:"u-line"})],4)}],["__scopeId","data-v-a01ae38a"]]),St="/static/index/procurement/zd.png",Bt=s(e.defineComponent({__name:"carditem",props:{InvoicingList:{type:Array,required:!0},status:{type:String}},emits:["scrolltolower","comfig"],setup(t,{emit:l}){const i=t,n=e.ref({}),o=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),r=l,c=e.ref(0),s=e.ref(0),u=e.ref(!0),d=(e,t,l)=>{r("comfig",e,t,l)},m=(e,t)=>{i.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))},v=e.ref(0),p=e=>{v.value=e.detail.scrollLeft};return(l,i)=>{const g=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"itembox","scroll-with-animation":"",onScrolltolower:i[3]||(i[3]=e=>{r("scrolltolower")}),"enable-back-to-top":""},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"fler",key:l},[e.createElementVNode("scroll-view",{class:"carditem guodu",onTouchend:t=>((t,l,a)=>{let i=t.changedTouches[0].pageY,o=t.changedTouches[0].pageX,r=Math.abs(o-c.value),d=Math.abs(i-s.value);if(u.value=!0,d>30&&r+10<d)return n.value.scrollleft=.01,void setTimeout((()=>{n.value.scrollleft=0}),20);r<10&&d<10?0==n.value.zk&&setTimeout((()=>{n.value.scrollleft=0}),20):(v.value<=40?(n.value.scrollleft=v.value,n.value.zk=!1,e.nextTick((()=>{n.value.scrollleft=0,v.value=0}))):(v.value=150,n.value.scrollleft=v.value,n.value.zk=!0),n.value.zk=!(o>c.value),n.value.scrollleft=n.value.zk?150:0)})(t),onTouchstart:e=>((e,t,l)=>{n.value=t,c.value=e.changedTouches[0].pageX,s.value=e.changedTouches[0].pageY,u.value&&(u.value=!1,m(t,l))})(e,t,l),"scroll-with-animation":"","scroll-x":"true","scroll-left":t.scrollleft,onScroll:p},[t.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:St,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imgs"},[e.createElementVNode("image",{src:(null==t?void 0:t.materialImg)?o.value+(null==t?void 0:t.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[t.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryId_dictText),1)):e.createCommentVNode("",!0),t.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeId_dictText),1)):e.createCommentVNode("",!0),t.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==t?void 0:t.materialName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "),e.createElementVNode("view",null,e.toDisplayString(null==t?void 0:t.specificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.qlNum?t.qlNum:"--"),1),e.createElementVNode("text",null,"请领数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.materialUnits),1),e.createElementVNode("text",null,"请领单位")])])]),e.createElementVNode("view",{class:"add",onClick:e.withModifiers((e=>d(t,l,0)),["stop"])},[1==t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0},"已添加")):e.createCommentVNode("",!0),1!=t.isAdd?(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/index/procurement/+.png",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0),1==t.isAdd?(e.openBlock(),e.createElementBlock("image",{key:2,src:"/static/index/procurement/-.png",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0)],8,["onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["zkadd guodu",1==t.isAdd?"zkf":""])},[e.createElementVNode("view",{onClick:e.withModifiers((e=>d(t,l,1)),["stop"]),onTouchend:i[0]||(i[0]=e.withModifiers((()=>{}),["stop"]))}," 请领记录 ",40,["onClick"]),e.createElementVNode("view",{onClick:e.withModifiers((e=>d(t,l,2)),["stop"]),onTouchend:i[1]||(i[1]=e.withModifiers((()=>{}),["stop"]))}," 物料详情 ",40,["onClick"]),e.createElementVNode("view",{onClick:e.withModifiers((e=>d(t,l,3)),["stop"]),onTouchend:i[2]||(i[2]=e.withModifiers((()=>{}),["stop"]))},e.toDisplayString(t.zhiDingId?"取消置顶":"置 顶"),41,["onClick"])],2)],40,["onTouchend","onTouchstart","scroll-left"])])))),128))]),e.createElementVNode("view",{style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[t.InvoicingList.length>6?(e.openBlock(),e.createBlock(g,{key:0,status:t.status,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],32)])}}}),[["__scopeId","data-v-a7f48adc"]]),Tt="/static/cleanone.png",Ct=s(e.defineComponent({__name:"takeing",props:{objtake:{type:Object,required:!0},show:{type:Boolean},num:{type:Number}},emits:["fill","right"],setup(t,{emit:l}){const a=t,i=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),n=l,o=e.ref(!1);e.watch((()=>a.show),(()=>{1==a.show?(u.value=a.num?a.num:1,s.value=f(u.value),setTimeout((()=>{o.value=!0}),50)):(o.value=!1,d.value=!1)}));const r=e.ref(!1),c=[1,2,3,4,5,6,7,8,9,"AC",0,"AE"],s=e.ref("0000"),u=e.ref(1),d=e.ref(!1),m=(e,t)=>{return"AC"==e?(u.value=0,void(s.value="0000")):"AE"==e?(u.value=Math.trunc(u.value/10),void(s.value=f(u.value))):0==d.value&&e>0?(d.value=!0,u.value=e,void(s.value=f(u.value))):(l=u.value,void(Math.abs(l).toString().length>3||(u.value?u.value=10*u.value+e:u.value=e,s.value=f(u.value))));var l},v=e.ref(null),p=e=>{h(e)},g=()=>{clearInterval(v.value)},h=e=>{v.value=setInterval((()=>{y(e)}),120)},y=e=>{u.value>=9999&&1==e?u.value=9999:u.value<=1&&-1==e?u.value=1:(u.value+=e,s.value=f(u.value))},w=e.ref(!1),N=()=>{0!=u.value?0==w.value&&(w.value=!0,n("right",u.value,a.objtake),setTimeout((()=>{w.value=!1}),1500)):uni.showToast({icon:"none",title:"数量不能为0!"})};function f(e){const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")}return(l,a)=>{var u,d,v,h,w,f;return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[0]||(a[0]=e=>n("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["takitem guodu",t.show?"":"unclass"]),style:e.normalizeStyle(o.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"tit"}," 请领物料 "),e.createElementVNode("view",{class:"cont"},[e.createElementVNode("view",{class:"zuo"},[e.createElementVNode("view",{class:"carp"},[e.createElementVNode("view",{class:"zuoimg tp"},[e.createElementVNode("image",{src:(null==(u=t.objtake)?void 0:u.materialImg)?i.value+(null==(d=t.objtake)?void 0:d.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"youcont"},[e.createElementVNode("view",null,e.toDisplayString(null==(v=t.objtake)?void 0:v.materialName),1),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 物料编码 "),e.createElementVNode("text",null,e.toDisplayString(null==(h=t.objtake)?void 0:h.materialNo),1)]),e.createElementVNode("view",null,[e.createTextVNode(" 请购单位 "),e.createElementVNode("text",null,e.toDisplayString(null==(w=t.objtake)?void 0:w.materialUnits),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 规格型号 "),e.createElementVNode("text",{style:{width:"20vw",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(null==(f=t.objtake)?void 0:f.specificationModel),1)])])])]),e.createElementVNode("view",{class:"qinggou-font"}," 数量 "),e.createElementVNode("view",{class:"stringShow-father"},[e.createElementVNode("view",{class:"jj",onClick:a[1]||(a[1]=e=>y(-1)),onLongpress:a[2]||(a[2]=e=>p(-1)),onTouchend:g}," - ",32),e.createElementVNode("view",{class:"stringShow-kuai"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,style:e.normalizeStyle(1==r.value?"color: red":"")},e.toDisplayString(t),5)))),128))]),e.createElementVNode("view",{class:"jj",onClick:a[3]||(a[3]=e=>y(1)),onLongpress:a[4]||(a[4]=e=>p(1)),onTouchend:g}," + ",32)])]),e.createElementVNode("view",{class:"you"},[e.createElementVNode("view",{class:"calculator-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,l)=>e.createElementVNode("view",{key:l},["AC"==t?(e.openBlock(),e.createElementBlock("view",{key:0,class:"calculator-kuai",style:{"font-size":"33rpx"},onClick:e=>m(t)}," 清零 ",8,["onClick"])):"AE"==t?(e.openBlock(),e.createElementBlock("view",{key:1,class:"calculator-kuai",onClick:e=>m(t)},[e.createElementVNode("image",{src:Tt,mode:"aspectFill",style:{width:"50%",height:"50%","margin-left":"-5rpx"}})],8,["onClick"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"calculator-kuai",onClick:e=>m(t)},e.toDisplayString(t),9,["onClick"]))]))),64))]),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:a[5]||(a[5]=e=>n("fill"))}," 取消 "),e.createElementVNode("view",{class:"plsbuy-bottom-blue",onClick:N}," 确定 ")])])])],6)])}}}),[["__scopeId","data-v-44482c3b"]]),Dt=s(e.defineComponent({__name:"cgdclass",props:{show:{type:Boolean,default:!1,required:!0},typenum:{type:Number,default:0},cgdId:{type:String,default:""}},emits:["confirm","fill"],setup(t,{expose:a,emit:i}){const n=e.reactive({scrolltop1:0,scrolltop2:0,scrolltop3:0,act1:-1,act2:-1,act3:-1}),o=e.ref([]);e.ref([]);const r=e.ref(-1),c=e.ref(""),s=e.ref(!1),u=i,d=(e,t,l)=>{if(1==e&&(n.act2=-1,n.act3=-1,n.scrolltop2=0,n.scrolltop3=0,n.act1==t))return n.act1=-1,void v();2==e&&(n.act3=-1,n.scrolltop3=0),n["act"+e]=t,n["scrolltop"+e]=50*(t-2),v()};e.onMounted((()=>{c.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const m=e.ref(0),v=()=>{let e={nuId:uni.getStorageSync("nuId"),categoryId:n.act1>-1?o.value[n.act1].categoryId:"",typeId:n.act2>-1?o.value[n.act1].children[n.act2].typeId:"",medicationId:n.act3>-1?o.value[n.act1].children[n.act2].children[n.act3].key:"",cgdId:y.cgdId};switch(y.typenum){case 0:(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/getTreeDataWlnum`,method:"get",data:t})).then((e=>{m.value=e.result.totalSize}));break;case 1:getGwcTreeDataWlnum(e).then((e=>{m.value=e.result.totalSize}));break;case 2:l("log","at pages/NursingNew/component/pleasetake/common/cgdclass.vue:108",e),getCgdTreeDataWlnum(e).then((e=>{m.value=e.result.totalSize}))}var t},p=()=>{switch(y.typenum){case 0:(e={nuId:uni.getStorageSync("nuId")},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/getMaterialTreeData`,method:"get",data:e})).then((e=>{o.value=e.result,v()}));break;case 1:getGwcMaterialTreeData({nuId:uni.getStorageSync("nuId")}).then((e=>{o.value=e.result,v()}));break;case 2:l("log","at pages/NursingNew/component/pleasetake/common/cgdclass.vue:137",{nuId:uni.getStorageSync("nuId"),cgdId:y.cgdId}),getCgdMaterialTreeData({nuId:uni.getStorageSync("nuId"),cgdId:y.cgdId}).then((e=>{l("log","at pages/NursingNew/component/pleasetake/common/cgdclass.vue:139",e.result),o.value=e.result,v()}))}var e},h=()=>{let e={categoryId:n.act1>-1?o.value[n.act1].categoryId:"",typeId:n.act2>-1?o.value[n.act1].children[n.act2].typeId:"",medicationId:n.act3>-1?o.value[n.act1].children[n.act2].children[n.act3].key:"",cgdId:y.cgdId};u("confirm",e)},y=t,w=e.ref(!1);e.watch((()=>y.show),(()=>{0==y.show?(s.value=!1,w.value=!1,e.nextTick((()=>{d(1,-1)}))):(p(),setTimeout((()=>{w.value=!0}),50))}));return a({typescroll:d,config:h,qingkong:()=>{r.value>-1&&(r.value=-1,v())},getTreelnum:v}),(l,a)=>{var i,r,s;return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[0]||(a[0]=e=>u("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["ifclass guodu",t.show?"":"unclass"]),style:e.normalizeStyle(w.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"titletop"},"物料分类"),e.createElementVNode("view",{class:"toptype"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["一","二","三"],(t=>e.createElementVNode("view",null,e.toDisplayString(t+"级分类"),1))),64))]),e.createElementVNode("view",{class:"scroltype"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":n.scrolltop1,class:"scroll-Y scrl1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.act1==l?"act":""),onClick:e=>d(1,l)},[n.act1==l?(e.openBlock(),e.createElementBlock("image",{key:0,src:c.value+t.appCheckIconPath,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:1,src:c.value+t.appIconPath,mode:"aspectFill"},null,8,["src"])),e.createElementVNode("text",null,e.toDisplayString(t.title),1)],10,["onClick"])))),256))],8,["scroll-top"]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":n.scrolltop2,class:"scroll-Y scrl2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(i=o.value[n.act1])?void 0:i.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.act2==l?"act":""),onClick:e=>d(2,l)},e.toDisplayString(t.title),11,["onClick"])))),256))],8,["scroll-top"]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":n.scrolltop3,class:"scroll-Y scrl3"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(s=null==(r=o.value[n.act1])?void 0:r.children[n.act2])?void 0:s.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.act3==l?"act":""),onClick:e=>d(3,l)},e.toDisplayString(t.title),11,["onClick"])))),256))],8,["scroll-top"])]),e.createElementVNode("view",{class:"btnbotm"},[e.createElementVNode("view",{class:"bt",onClick:a[1]||(a[1]=e=>d(1,-1))},"重置"),e.createElementVNode("view",{class:"bt qd",onClick:h},[e.createTextVNode("确定 "),m.value>0?(e.openBlock(),e.createElementBlock("text",{key:0},"("+e.toDisplayString(m.value>99?"99+":m.value)+"件物料)",1)):e.createCommentVNode("",!0)])])],6)])}}}),[["__scopeId","data-v-fe2dcb3b"]]),zt=s(e.defineComponent({__name:"medetails",props:{objtake:{type:Object,required:!0},show:{type:Boolean}},emits:["fill","qingling"],setup(t,{emit:a}){const i=t,n=e.ref({}),o=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),r=a,c=e.ref(!1);return e.watch((()=>i.show),(()=>{if(1==i.show){let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlId:i.objtake.wlId};ut(e).then((e=>{l("log","at pages/NursingNew/component/pleasetake/common/medetails.vue:84","wuobj",e),n.value=e.result})),setTimeout((()=>{c.value=!0}),50)}else c.value=!1})),(l,a)=>{var i,s,u,d,m,v,p,g,h,y;return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[0]||(a[0]=e=>r("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["card",t.show?"":"unclass"]),style:e.normalizeStyle(c.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"tit"},"物料详情"),e.createElementVNode("view",{class:"cont"},[e.createElementVNode("view",{class:"leftbox"},[e.createElementVNode("view",{class:"img"},[e.createElementVNode("image",{src:(null==(i=t.objtake)?void 0:i.materialImg)?o.value+(null==(s=t.objtake)?void 0:s.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardfa"},[e.createElementVNode("view",null,e.toDisplayString(null==(u=t.objtake)?void 0:u.categoryId_dictText),1),e.createElementVNode("view",null,e.toDisplayString(null==(d=t.objtake)?void 0:d.typeId_dictText),1),(null==(m=t.objtake)?void 0:m.medicationId_dictText)?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"8vw"}},e.toDisplayString(null==(v=t.objtake)?void 0:v.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"youcont"},[e.createElementVNode("view",null,e.toDisplayString(null==(p=t.objtake)?void 0:p.materialName),1),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 物料编码 "),e.createElementVNode("text",null,e.toDisplayString(null==(g=t.objtake)?void 0:g.materialNo),1)]),e.createElementVNode("view",{style:{"margin-left":"2.5vw"}},[e.createTextVNode(" 规格型号 "),e.createElementVNode("text",{style:{"white-space":"nowrap"}},e.toDisplayString(null==(h=t.objtake)?void 0:h.specificationModel),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 请领数量 "),e.createElementVNode("text",null,e.toDisplayString(n.value.qlNum?n.value.qlNum:"0"),1)]),e.createElementVNode("view",{style:{"margin-left":"2.5vw","padding-left":"1.65vw"}},[e.createTextVNode(" 请领单位 "),e.createElementVNode("text",null,e.toDisplayString(null==(y=t.objtake)?void 0:y.materialUnits),1)]),e.createElementVNode("view",{style:{"margin-left":"3vw","padding-left":"1.5vw"}},[e.createTextVNode(" 累计请领 "),e.createElementVNode("text",null,e.toDisplayString(n.value.wlNum?n.value.wlNum:0),1)])])])]),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:a[1]||(a[1]=e=>r("fill"))}," 关闭 ")])],6)])}}}),[["__scopeId","data-v-1ee92e94"]]),It=s(e.defineComponent({__name:"takerecord",props:{objtake:{type:Object,required:!0},show:{type:Boolean}},emits:["fill","qingling"],setup(t,{emit:i}){const n=t,o=e.ref(1),r=e.ref(""),c=e.ref("loadmore");e.onMounted((()=>{var e;r.value=null==(e=uni.getStorageSync("NUall").elderInfo)?void 0:e.checkinTime}));const s=e.ref({}),u=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),d=i,m=e.ref(!1),v=e.ref([]);e.watch((()=>n.show),(()=>{if(1==n.show){let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlId:n.objtake.wlId};ut(e).then((e=>{s.value=e.result})),p(),setTimeout((()=>{m.value=!0}),50)}else m.value=!1,v.value=[],o.value=1,c.value="loadmore"}));const p=()=>{let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlId:n.objtake.wlId,pageNo:o.value,pageSize:20};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQlwcLog`,method:"get",data:t})).then((t=>{l("log","at pages/NursingNew/component/pleasetake/common/takerecord.vue:140","咋没有",e,t),v.value.push(...t.result.records),c.value=t.result.total==v.value.length?"nomore":"loadmore"}))};return(l,i)=>{var n,g,h,y,w,N,f,k;const E=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:i[0]||(i[0]=e=>d("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["recorditem guodu",t.show?"":"unclass"]),style:e.normalizeStyle(m.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("view",null,"请领记录"),e.createElementVNode("text",null,"入住时间:"+e.toDisplayString(r.value),1)]),e.createElementVNode("view",{class:"cont"},[e.createElementVNode("view",{class:"leftbox"},[e.createElementVNode("view",{class:"bgimg"},[e.createElementVNode("image",{src:(null==(n=t.objtake)?void 0:n.materialImg)?u.value+(null==(g=t.objtake)?void 0:g.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"carditem"},[(null==(h=t.objtake)?void 0:h.categoryId_dictText)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(null==(y=t.objtake)?void 0:y.categoryId_dictText),1)):e.createCommentVNode("",!0),(null==(w=t.objtake)?void 0:w.typeId_dictText)?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(null==(N=t.objtake)?void 0:N.typeId_dictText),1)):e.createCommentVNode("",!0),(null==(f=t.objtake)?void 0:f.medicationId_dictText)?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(null==(k=t.objtake)?void 0:k.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"youcont"},[e.createElementVNode("view",null,e.toDisplayString(t.objtake.materialName),1),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 物料编码 "),e.createElementVNode("text",null,e.toDisplayString(t.objtake.materialNo),1)]),e.createElementVNode("view",null,[e.createTextVNode(" 规格型号 "),e.createElementVNode("text",{style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},e.toDisplayString(t.objtake.specificationModel),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 请领数量 "),e.createElementVNode("text",null,e.toDisplayString(t.objtake.qlNum?t.objtake.qlNum:"0"),1)]),e.createElementVNode("view",null,[e.createTextVNode(" 请领单位 "),e.createElementVNode("text",null,e.toDisplayString(t.objtake.materialUnits),1)])])])]),e.createElementVNode("view",{class:"lji"},[e.createElementVNode("view",null,"累计请领: "),e.createElementVNode("text",null,e.toDisplayString(s.value.wlNum?s.value.wlNum:0)+e.toDisplayString(t.objtake.materialUnits),1)]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"jilu","scroll-with-animation":"",onScrolltolower:i[1]||(i[1]=e=>{"loading"!=c.value&&"nomore"!=c.value&&(c.value="loading",o.value++,p())})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"itm",key:l},[e.createElementVNode("view",{class:e.normalizeClass(["dian",l==v.value.length-1?"d":""])},null,2),e.createElementVNode("view",{class:"riqi"},e.toDisplayString(t.opeTime),1),e.createElementVNode("view",{class:"qlr"},[e.createTextVNode(" 请领数量:"),e.createElementVNode("text",null,e.toDisplayString(t.qlNum)+e.toDisplayString(t.materialUnits),1)]),e.createElementVNode("view",{class:"qlr"},[e.createTextVNode(" 请领人:"),e.createElementVNode("text",null,e.toDisplayString(t.empName),1)])])))),128)),e.createElementVNode("view",{style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[v.value.length>6?(e.openBlock(),e.createBlock(E,{key:0,status:c.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)]),0==v.value.length?(e.openBlock(),e.createBlock(ht,{key:0,cont:"暂无请领数据",style:{width:"10vw",height:"10vw",margin:"1.5vw auto",position:"relative"}})):e.createCommentVNode("",!0)],32),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:i[2]||(i[2]=e=>d("fill"))}," 关闭 ")])],6)])}}}),[["__scopeId","data-v-27903cc1"]]),Ft=s(e.defineComponent({__name:"submits",props:{list:{type:Array,required:!0},show:{type:Boolean}},emits:["fill","submit","config"],setup(t,{emit:a}){const i=t,n=e.ref("");e.onMounted((()=>{let e=new Date,t=e.getFullYear(),l=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,a=e.getDate()<10?"0"+e.getDate():e.getDate();n.value=t+"."+l+"."+a})),e.ref({});const o=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),r=a,c=e.ref(!1);return e.watch((()=>i.show),(()=>{l("log","at pages/NursingNew/component/pleasetake/common/submits.vue:90",i.list),1==i.show?setTimeout((()=>{c.value=!0}),50):c.value=!1})),(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[0]||(a[0]=e=>r("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["qinglingdetails",t.show?"":"unclass"]),style:e.normalizeStyle(c.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("view",null,"请领详情")]),e.createElementVNode("view",{class:"itemcan"},[e.createElementVNode("text",null,"请领区域:"+e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("text",null,"请领人:"+e.toDisplayString(uni.getStorageSync("realname")),1),e.createElementVNode("text",null,"请领日期:"+e.toDisplayString(n.value),1)]),e.createElementVNode("view",{class:"qlwl"}," 请领物料 "),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"wuliaolist"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,l)=>{var a,i,n,r,c,s,u,d,m;return e.openBlock(),e.createElementBlock("view",{class:"card",key:l},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imgs"},[e.createElementVNode("image",{src:(null==(a=t.materialInfo)?void 0:a.materialImg)?o.value+(null==(i=t.materialInfo)?void 0:i.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[(null==(n=t.materialInfo)?void 0:n.categoryName)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(null==(r=t.materialInfo)?void 0:r.categoryName),1)):e.createCommentVNode("",!0),(null==(c=t.materialInfo)?void 0:c.typeName)?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(null==(s=t.materialInfo)?void 0:s.typeName),1)):e.createCommentVNode("",!0),t.materialInfo.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.materialInfo.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==(u=t.materialInfo)?void 0:u.materialName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "),e.createElementVNode("view",null,e.toDisplayString(null==(d=t.materialInfo)?void 0:d.specificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.qlNum?t.qlNum:"--"),1),e.createElementVNode("text",null,"请领数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(null==(m=t.materialInfo)?void 0:m.materialUnits),1),e.createElementVNode("text",null,"请领单位")])])])])})),128))])]),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:a[1]||(a[1]=e=>r("fill"))}," 取消 "),e.createElementVNode("view",{class:"plsbuy-bottom-blue",onClick:a[2]||(a[2]=e=>r("config"))}," 提交请领单 ")])],6)]))}}),[["__scopeId","data-v-e959f641"]]),_t=s(e.defineComponent({__name:"takehomep",props:{isShow:{type:Boolean}},emits:["changePageNumber"],setup(t,{emit:l}){const a=e.reactive({pageNo:1,pageSize:10,nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlParamInfo:"",categoryId:"",typeId:"",medicationId:""}),i=t,n=e.ref(!1);e.watch((()=>i.isShow),((e,t)=>{E.value=[],a.categoryId="",a.typeId="",a.medicationId="",a.pageNo=1,a.wlParamInfo="",f(),V(),k(),!t&&e?(n.value=!1,setTimeout((()=>{n.value=!0}),50)):n.value=!1}));const o=e.ref(!1),r=e.ref(!1),c=e.ref(!1),s=e.ref(!1),u=e.ref(!1),d=e.ref(!1),m=e.ref(!1),v=e.ref(!1),p=e.ref(""),h=e.ref(),y=e.ref([]),w=e.ref(!1),N=e.ref(!1),f=()=>{let e={pageNo:1,pageSize:1,searchContent:"",status:"3",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")};ct(e).then((e=>{e.result.records.length?w.value=!0:w.value=!1}));let t={pageNo:1,pageSize:1,searchContent:"",status:"4",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")};ct(t).then((e=>{e.result.records.length?N.value=!0:N.value=!1}))},k=()=>{let e={nuId:a.nuId,elderId:a.elderId};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryGwcInfo`,method:"get",data:t})).then((e=>{y.value=e.result}))},E=e.ref([]),x=e.ref("loadmore"),V=()=>{var e;(e=a,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryInvoicingList`,method:"get",data:e})).then((e=>{e.result.records.forEach((e=>{e.zk=!1,e.scrollleft=0})),E.value.push(...e.result.records),x.value=e.result.total==E.value.length?"nomore":"loadmore"}))},b=()=>{let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),nuName:uni.getStorageSync("nuName")};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/requireTH`,method:"post",data:t})).then((e=>{var t,l;e.success?(m.value=!1,uni.showToast({icon:"success",title:e.message})):(m.value=!1,p.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,v.value=!0)}))},S=e=>{0===e&&(a.wlParamInfo=""),a.pageNo=1,E.value=[],V()},B=()=>{"loading"!=x.value&&"nomore"!=x.value&&(x.value="loading",a.pageNo++,V())},T=()=>{k(),d.value=!0},C=e=>{E.value.forEach((t=>{t.wlId==e.wlId&&(I.value=t)})),I.value.wlId||(I.value=e),s.value=!0},D=()=>{let e={nuId:a.nuId,elderId:a.elderId,wlId:I.value.wlId};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/deleteGwcWl`,method:"post",data:t})).then((e=>{var t,l;e.success?(k(),s.value=!1,I.value.isAdd=null,I.value.qlNum=null):(p.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,v.value=!0)}))},z=()=>{var e;(e={nuId:a.nuId,elderId:a.elderId},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/removeAllGwc`,method:"post",data:e})).then((e=>{var t,l;e.success?(k(),E.value.forEach((e=>{e.isAdd=null,e.qlNum=null,e.gwcId=null}))):(p.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,v.value=!0)}))},I=e.ref({}),F=(e,t,l)=>{switch(l){case 0:I.value=e,1==e.isAdd?s.value=!0:o.value=!0;break;case 1:I.value=e,u.value=!0;break;case 2:I.value=e,c.value=!0;break;case 3:let t={nuId:a.nuId,elderId:a.elderId,wlId:e.wlId,izZd:!e.zhiDingId};(i=t,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/wlzd`,method:"post",data:i})).then((e=>{var t,l;e.success?(E.value=[],a.pageNo=1,V()):(p.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,v.value=!0)}))}var i},_=(e,t)=>{let l={kfId:t.nuId,wlId:t.wlId,qlNum:e,nuId:a.nuId,elderId:a.elderId};var i;(i=l,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/addGwc`,method:"post",data:i})).then((l=>{var a,i;l.success?(o.value=!1,t.isAdd=1,t.qlNum=e,k()):(p.value=(null==(a=l.result)?void 0:a.message)?null==(i=l.result)?void 0:i.message:l.message,v.value=!0)}))},M=()=>{let e={nuId:a.nuId,elderId:a.elderId,nuName:uni.getStorageSync("nuName"),elderName:uni.getStorageSync("NUall").elderInfo.name};vt(e).then((e=>{var t,l;e.success?(uni.showToast({icon:"success",title:"提交成功"}),setTimeout((()=>{d.value=!1,k(),U(1)}),800)):(p.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,v.value=!0)}))},$=e=>{a.categoryId=e.categoryId,a.typeId=e.typeId,a.medicationId=e.medicationId,a.pageNo=1,E.value=[],V(),r.value=!1},L=()=>{a.categoryId="",a.typeId="",a.medicationId="",a.pageNo=1,a.wlParamInfo="",E.value=[],h.value.typescroll(1,-1,{}),h.value.qingkong(),h.value.config()},j=l,U=e=>{j("changePageNumber",e)};return(l,i)=>{const n=e.resolveComponent("errorshow"),g=e.resolveComponent("severcard");return t.isShow?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("view",{class:"buttons-father"},[e.createElementVNode("view",{class:"boxtwo"},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"物料名称/物料简拼","onUpdate:modelValue":i[0]||(i[0]=e=>a.wlParamInfo=e),onConfirm:S},null,544),[[e.vModelText,a.wlParamInfo]]),a.wlParamInfo?(e.openBlock(),e.createElementBlock("image",{key:0,src:wt,mode:"aspectFill",onClick:i[1]||(i[1]=e=>S(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"scr",onClick:S}," 检索 "),e.createElementVNode("view",{class:"shx",onClick:i[2]||(i[2]=e=>r.value=!0)},[e.createElementVNode("image",{src:"/static/index/requestform/shaixuan.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 筛选 ")]),""!=a.categoryId||""!=a.wlParamInfo?(e.openBlock(),e.createElementBlock("view",{key:0,class:"shx",onClick:L},[e.createElementVNode("image",{src:at,mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 重置 ")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"boxtwo flexend"},[e.createElementVNode("view",{class:"qlthbtn"},[e.createElementVNode("image",{src:"/static/index/requestform/ql0.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font",onClick:i[3]||(i[3]=e=>U(1))}," 请领单 "),N.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"qlthbtn-red"})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"qlthbtn"},[e.createElementVNode("image",{src:"/static/index/requestform/ql1.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font",onClick:i[4]||(i[4]=e=>U(2))}," 回退单 "),w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"qlthbtn-red"})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"qlthbtn",style:{width:"8vw"},onClick:i[5]||(i[5]=e=>m.value=!0)},[e.createElementVNode("image",{src:"/static/index/requestform/ql2.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 退货 ")])])]),e.createVNode(Et,{Material:y.value,onDelall:z,onDel:C,onSubmit:T},null,8,["Material"]),e.createVNode(Bt,{InvoicingList:E.value,onScrolltolower:B,status:x.value,onComfig:F},null,8,["InvoicingList","status"]),e.createVNode(Ct,{show:o.value,objtake:I.value,onFill:i[6]||(i[6]=e=>o.value=!1),onRight:_},null,8,["show","objtake"]),e.createVNode(Dt,{onConfirm:$,show:r.value,typenum:0,ref_key:"classication",ref:h,onFill:i[7]||(i[7]=e=>r.value=!1)},null,8,["show"]),e.createVNode(zt,{show:c.value,onFill:i[8]||(i[8]=e=>c.value=!1),onConfirm:$,objtake:I.value},null,8,["show","objtake"]),e.createVNode(kt,{onBack:i[9]||(i[9]=e=>s.value=!1),show:s.value,font:"确定将该物料从本次请领清单中移除吗?",onRight:D},null,8,["show"]),e.createVNode(It,{objtake:I.value,show:u.value,onFill:i[10]||(i[10]=e=>u.value=!1)},null,8,["objtake","show"]),e.createVNode(Ft,{show:d.value,list:y.value,onFill:i[11]||(i[11]=e=>d.value=!1),onConfig:M},null,8,["show","list"]),e.createVNode(kt,{onBack:i[12]||(i[12]=e=>m.value=!1),show:m.value,font:"是否发起退货流程?",onRight:b},null,8,["show"]),e.createVNode(n,{show:v.value,font:p.value,onClose:i[13]||(i[13]=e=>v.value=!1)},null,8,["show","font"]),e.createVNode(g)])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-67bd11f1"]]),Mt=s(e.defineComponent({__name:"htditem",props:{InvoicingList:{type:Array,required:!0},status:{type:String}},emits:["scrolltolower","comfig","del"],setup(t,{emit:l}){const a=t;e.ref(0);const i=e.ref({}),n=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),o=l,r=e.ref(!1),c=e.ref(0),s=e.ref(0),u=e.ref(!0),d=e.ref(!1),m=e.ref({}),v=()=>{o("del",m.value),r.value=!1},p=(e,t)=>{o("comfig",e,m.value),d.value=!1},g=(e,t)=>{a.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))},h=e.ref(0),y=e=>{h.value=e.detail.scrollLeft};return(l,a)=>{const w=e.resolveComponent("tanchuang");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"itembox","scroll-with-animation":"",onScrolltolower:a[1]||(a[1]=e=>{o("scrolltolower")}),"enable-back-to-top":""},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((o,v)=>{var p,w,N,f,k,E,x,V,b,S,B;return e.openBlock(),e.createElementBlock("view",{class:"fler",key:v},[e.createElementVNode("scroll-view",{class:"carditem guodu",onTouchend:t=>((t,l,a)=>{let n=t.changedTouches[0].pageY,o=t.changedTouches[0].pageX,r=Math.abs(o-c.value),d=Math.abs(n-s.value);if(u.value=!0,d>30&&r+10<d)return i.value.scrollleft=.01,void setTimeout((()=>{i.value.scrollleft=0}),20);r<10&&d<10?0==i.value.zk&&setTimeout((()=>{i.value.scrollleft=0}),20):(h.value<=40?(i.value.scrollleft=h.value,i.value.zk=!1,e.nextTick((()=>{i.value.scrollleft=0,h.value=0}))):(h.value=150,i.value.scrollleft=h.value,i.value.zk=!0),i.value.zk=!(o>c.value),i.value.scrollleft=i.value.zk?150:0)})(t),onTouchstart:e=>((e,t,l)=>{i.value=t,c.value=e.changedTouches[0].pageX,s.value=e.changedTouches[0].pageY,u.value&&(u.value=!1,g(t,l))})(e,o,v),"scroll-with-animation":"","scroll-x":"true","scroll-left":o.scrollleft,onScroll:y},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imge"},[e.createElementVNode("image",{src:(null==(p=o.materialInfo)?void 0:p.materialImg)?n.value+(null==(w=o.materialInfo)?void 0:w.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[(null==(N=o.materialInfo)?void 0:N.categoryName)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(null==(f=o.materialInfo)?void 0:f.categoryName),1)):e.createCommentVNode("",!0),(null==(k=o.materialInfo)?void 0:k.typeName)?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(null==(E=o.materialInfo)?void 0:E.typeName),1)):e.createCommentVNode("",!0),(null==(x=o.materialInfo)?void 0:x.medicationName)?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(null==(V=o.materialInfo)?void 0:V.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==(b=o.materialInfo)?void 0:b.materialName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "),e.createElementVNode("view",null,e.toDisplayString(null==(S=o.materialInfo)?void 0:S.specificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(o.qlNum?o.qlNum:"--"),1),e.createElementVNode("text",null,"请领数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(null==(B=o.materialInfo)?void 0:B.materialUnits),1),e.createElementVNode("text",null,"请领单位")])])]),"3"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"add",onClick:e.withModifiers((e=>((e,t)=>{m.value=e,r.value=!0})(o,l.i)),["stop"])},[e.createElementVNode("image",{src:"/static/index/procurement/-.png",mode:"aspectFill"},null,8,["src"])],8,["onClick"])):e.createCommentVNode("",!0),"3"==t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"zkadd guodu"},[e.createElementVNode("view",{onClick:e.withModifiers((e=>((e,t,l)=>{m.value=e,d.value=!0})(o)),["stop"]),onTouchend:a[0]||(a[0]=e.withModifiers((()=>{}),["stop"]))}," 编辑 ",40,["onClick"])])):e.createCommentVNode("",!0)],40,["onTouchend","onTouchstart","scroll-left"])])})),128)),0==t.InvoicingList.length?(e.openBlock(),e.createBlock(ht,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)])],32),e.createVNode(Ct,{show:d.value,objtake:m.value.materialInfo,num:m.value.qlNum,onFill:a[2]||(a[2]=e=>d.value=!1),onRight:p},null,8,["show","objtake","num"]),e.createVNode(w,{onBack:a[3]||(a[3]=e=>r.value=!1),show:r.value,font:"确定将该物料从本次请领清单中移除吗?",onRight:v},null,8,["show"])])}}}),[["__scopeId","data-v-d9011d7f"]]),$t=s(e.defineComponent({__name:"returnorder",props:{isShow:{type:Boolean}},setup(t){const a=t,i=e.ref(!1),n=e.ref("");e.ref(["全部","待出库","已出库","已收货 ","已作废"]);const o=e.ref(!1);e.watch((()=>a.isShow),((e,t)=>{!t&&e?(p.value=!0,o.value=!1,u.pageNo=1,u.canpull=!0,setTimeout((()=>{o.value=!0,s.value=0,y()}),50)):o.value=!1})),e.ref(!1),e.ref(0);const r=e.ref([]),c=e.ref(0),s=e.ref(0),u=e.reactive({pageNo:1,pageSize:5,canpull:!0,searchContent:"",status:"3",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")}),d=e.ref(!1),m=e.ref(0),v=e.ref([]),p=e.ref(!0),h=e.ref(!0),y=()=>{ct(u).then((e=>{var t;o.value=!0,"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!p.value?(p.value=!1,r.value=[],r.value.push(...e.result.records),c.value=e.result.total,e.result.records.length&&(h.value=!1,N()),e.result.records.length<u.pageSize&&(u.canpull=!1)):d.value=!0}))},w=e=>{let t={qldNo:r.value[s.value].qldNo,wlId:e.wlId};var l;(l=t,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/deleteQldWl`,method:"post",data:l})).then((e=>{var t,l;e.success?N():(n.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,i.value=!0)}))},N=()=>{st({qldNo:r.value[s.value].qldNo}).then((e=>{v.value=[],l("log","at pages/NursingNew/component/pleasetake/component/returnorder.vue:325","kankan",e.result),v.value.push(...e.result),h.value=!0}))},f=e.ref(!0),k=()=>{f.value&&(u.pageNo++,E(),f.value=!1,setTimeout((()=>{f.value=!0}),500))},E=()=>{u.canpull&&ct(u).then((e=>{r.value.push(...e.result.records),c.value=e.result.total,e.result.records.length<u.pageSize&&(u.canpull=!1)}))},x=(e,t)=>{let l={qldNo:r.value[s.value].qldNo,wlId:t.wlId,qlNum:e};var a;(a=l,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/updateQldWlSl`,method:"post",data:a})).then((e=>{var t,l;e.success?N():(n.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,i.value=!0)}))};e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/");const V=e.ref(!1),b=()=>{let e={qldNo:r.value[s.value].qldNo,nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),nuName:uni.getStorageSync("nuName"),elderName:uni.getStorageSync("NUall").elderInfo.name};mt(e).then((e=>{V.value=!1,e.success?r.value[s.value]=e.result.result:(u.pageNo=1,u.canpull=!0,m.value=1,setTimeout((()=>{m.value=0}),50),s.value=0,y()),setTimeout((()=>{uni.showToast({title:e.success?e.result.message:e.message,icon:e.success?"success":"none",duration:3e3})}),300)}))},S=e.ref(!1),B=()=>{let e={nuId:u.nuId,elderId:u.elderId,qldNo:r.value[s.value].qldNo,nuName:uni.getStorageSync("nuName"),elderName:uni.getStorageSync("NUall").elderInfo.name};vt(e).then((e=>{var t,a;l("log","at pages/NursingNew/component/pleasetake/component/returnorder.vue:434",e),e.success?(uni.showToast({icon:"success",title:"提交成功"}),setTimeout((()=>{ct({searchContent:r.value[s.value].qldNo}).then((e=>{r.value[s.value]=e.result.records[0]})),S.value=!1,N()}),800)):(n.value=(null==(t=e.result)?void 0:t.message)?null==(a=e.result)?void 0:a.message:e.message,i.value=!0)}))};return(l,a)=>{var c,u;const p=e.resolveComponent("tanchuang"),g=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("view",{class:"buttons-father",style:e.normalizeStyle(o.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"button-tilte"}," 回退单 "),d.value||"3"!=(null==(c=r.value[s.value])?void 0:c.status)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"right-button-father"},[e.createElementVNode("view",{class:"right-button",onClick:a[0]||(a[0]=e=>V.value=!0)},[e.createElementVNode("image",{src:it}),e.createElementVNode("view",null," 作废 ")]),v.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"right-button",style:{width:"11vw"},onClick:a[1]||(a[1]=e=>S.value=!0)},[e.createElementVNode("image",{src:"/static/index/warehouse/procurement/picking/caigou.png"}),e.createElementVNode("view",null," 提交请领单 ")])):e.createCommentVNode("",!0)])),e.createVNode(gt,{cont:"暂无数据",show:d.value},null,8,["show"])],4),[[e.vShow,t.isShow]]),e.createVNode(p,{show:V.value,font:"确定要作废这个回退单吗",onBack:a[2]||(a[2]=e=>{V.value=!1}),onRight:b},null,8,["show"]),e.withDirectives(e.createElementVNode("view",{class:"other-contain",style:e.normalizeStyle(o.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"other-contain-left"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":m.value,onScrolltolower:k,"lower-threshold":200},[e.createElementVNode("view",{style:{height:"1%"}}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,l)=>{var a,i,n,o;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:e=>((e,t)=>{let l=Math.ceil(e+1);if(m.value=175.4*(l-2),s.value=e,h.value=!1,N(),"N"==t.izYgRead){let l={status:"yg",qldNo:r.value[e].qldNo};dt(l).then((e=>{e.success&&(t.izYgRead="Y")}))}})(l,t),style:e.normalizeStyle({borderColor:l===s.value?"":"transparent",background:l===s.value?"#fff":"rgba(255,255,255,0.6)"})},["N"==t.izYgRead?(e.openBlock(),e.createElementBlock("view",{key:0,style:{background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.5vw",top:"-0.2vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"middle-title-spec"}," 请领单号 "),e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.qldNo),1)]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(t.tjTime.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 待出库 "),e.createElementVNode("view",{style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.tjByName+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title",style:e.normalizeStyle("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{})},e.toDisplayString(Number(t.status)>1?"2"===(null==t?void 0:t.status)?null==(a=t.zfTime)?void 0:a.slice(0,10).replace(/-/g,"."):"3"===(null==t?void 0:t.status)?null==(i=t.htTime)?void 0:i.slice(0,10).replace(/-/g,"."):null==(n=t.ckTime)?void 0:n.slice(0,10).replace(/-/g,"."):""),5),e.createElementVNode("view",{class:"middle-heng-father"},["2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?(e.openBlock(),e.createElementBlock("image",{key:0,class:"middle-ball-img",style:{width:"32rpx",height:"32rpx"},src:ot})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"middle-ball",style:{"background-color":"#1083F8"}}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",{style:e.normalizeStyle("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{})},e.toDisplayString("2"===(null==t?void 0:t.status)?"已作废":"3"===(null==t?void 0:t.status)?"已回退":"已出库"),5),Number(t.status)>1?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle([{"font-size":"25rpx"},"2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{}])},e.toDisplayString("[ "+("2"===(null==t?void 0:t.status)?null==t?void 0:t.zfByName:"3"===(null==t?void 0:t.status)?null==t?void 0:t.htByName:null==t?void 0:t.ckByName)+" ]"),5)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(5==Number(null==t?void 0:t.status)?null==(o=t.shTime)?void 0:o.slice(0,10).replace(/-/g,"."):""),1),e.createElementVNode("view",{class:"middle-heng-father"},[5!=Number(null==t?void 0:t.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball",style:{backgroundColor:"#E5E5E5"}})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},["9"!=(null==t?void 0:t.cgdType)?(e.openBlock(),e.createElementBlock("view",{key:0}," 已收货 ")):e.createCommentVNode("",!0),5==Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:1,style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.shByName+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:rt}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.nuName),1)]),e.createElementVNode("view",{class:e.normalizeClass("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?"tag-fail":"tag-success")},e.toDisplayString(t.statusText),3)])],12,["onClick"])})),128))],40,["scroll-top"])]),e.createElementVNode("view",{class:"other-contain-right"},[e.createVNode(Mt,{InvoicingList:v.value,status:null==(u=r.value[s.value])?void 0:u.status,onComfig:x,onDel:w},null,8,["InvoicingList","status"])]),e.createVNode(g,{show:i.value,font:n.value,onClose:a[3]||(a[3]=e=>i.value=!1)},null,8,["show","font"]),e.createVNode(Ft,{show:S.value,list:v.value,onFill:a[4]||(a[4]=e=>S.value=!1),onConfig:B},null,8,["show","list"])],4),[[e.vShow,t.isShow&&!d.value]])],64)}}}),[["__scopeId","data-v-9fa75ebc"]]),Lt=s(e.defineComponent({__name:"takehome",props:{isShow:{type:Boolean}},setup(t){const l=e.ref(-1),a=e.ref(!1),i=t;e.onMounted((()=>{l.value=0,a.value=!1,setTimeout((()=>{a.value=!0}),50)})),e.watch((()=>i.isShow),((e,t)=>{!t&&e?(a.value=!1,setTimeout((()=>{a.value=!0}),50)):a.value=!1}));const n=e=>{l.value=e};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"index-content-other",style:e.normalizeStyle(a.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("text",{style:{"margin-left":"30rpx"}}," NUID:"+e.toDisplayString(uni.getStorageSync("nuId")),1),e.createElementVNode("text",{class:"new-weight"},e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("view",{class:"right-icons"},[l.value>0?(e.openBlock(),e.createElementBlock("image",{key:0,class:"right-icons-img-back",src:"/static/index/requestform/back.png",onClick:i[0]||(i[0]=e=>l.value=0)})):e.createCommentVNode("",!0),l.value>0?(e.openBlock(),e.createElementBlock("view",{key:1,onClick:i[1]||(i[1]=e=>l.value=0)},"返回")):e.createCommentVNode("",!0)])]),e.createVNode(_t,{isShow:0==l.value,onChangePageNumber:n},null,8,["isShow"]),e.createVNode(yt,{isShow:1==l.value},null,8,["isShow"]),e.createVNode($t,{isShow:2==l.value},null,8,["isShow"])],4))}}),[["__scopeId","data-v-ce1cf063"]]),jt=s(e.defineComponent({__name:"doctorask",setup(t){const i=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),n=e.ref(uni.getStorageSync("serverUrl")+"/sys/commonVideo/staticVideo/"),o=e.reactive({pageNo:1,pageSize:10,employeeId:uni.getStorageSync("userInfo").employessId,nuId:uni.getStorageSync("nuId")}),r=e.ref(0),c=e.ref([]);e.onMounted((()=>{o.pageNo=1,c.value=[],u()}));const s=e.ref("loadmore"),u=()=>{be(o).then((e=>{c.value.push(...e.result.records),s.value=e.result.total==c.value.length?"nomore":"loadmore",1==o.pageNo&&g(0,c.value[0])}))},d=e.ref(0),m=e.ref(0),v=e.ref(0),p=e.ref([]),g=(t,l)=>{d.value!=t&&(m.value=h.value,e.nextTick((()=>{m.value=0})));let a=Math.ceil(t+1);v.value=186*(a-2),d.value=t,Se({mainId:l.id}).then((e=>{p.value=e.result}))},h=e.ref(0),y=e=>{h.value=e.detail.scrollTop},w=e.ref(!1),N=e.ref(0),f=e.ref([]),k=e.ref({}),E=(e,t,l)=>{1==l&&e.manuallyPicPath?(f.value=e.manuallyPicPath.split(","),f.value=f.value.filter((e=>""!==e))):2==l&&e.manuallyMp4Path?(f.value=e.manuallyMp4Path.split(","),f.value=f.value.filter((e=>""!==e))):3==l&&e.tplinkPath?(f.value=e.tplinkPath.split(","),f.value=f.value.filter((e=>""!==e))):f.value=[],k.value=e,N.value=l,w.value=!0},x=e=>{let t=new Date,a=t.getFullYear(),i=t.getMonth()+1;uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:e,name:"file",fileType:2==N.value?"video":"image",formData:{biz:a+"/"+i+(1==N.value?"/fwxm/manuallyPicPath":"/fwxm/manuallyMp4Path")},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);l("log","at pages/NursingNew/component/doctorask/doctorask.vue:354",t),f.value.push(t.message)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})},V=()=>{let e="";f.value.forEach((t=>{e+=t+","})),1==N.value?De({id:k.value.id,manuallyPicPath:e}).then((e=>{e.success&&(N.value=0,w.value=!1,g(d.value,c.value[d.value]))})):Ce({id:k.value.id,manuallyMp4Path:e}).then((e=>{e.success&&(N.value=0,w.value=!1,g(d.value,c.value[d.value]))}))};e.ref(null);const b=e.ref(0);return(t,o)=>{const u=a(e.resolveDynamicComponent("u-loadmore"),bt),h=e.resolveComponent("tanchuang"),S=e.resolveComponent("defaultr");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"t-box"},[e.createElementVNode("view",{class:"leftscr"},[e.createElementVNode("view",{class:"left-menu-father"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":v.value,"lower-threshold":400},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["card",l==d.value?"act":""]),key:l,onClick:e=>g(l,t)},["Y"==t.izPackage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"rad"},"包")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"cont"},[e.createElementVNode("view",{class:"conle"},[e.createElementVNode("image",{src:i.value+t.previewFileSmall,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"ritcon"},[e.createElementVNode("view",{class:"rq"},[e.createElementVNode("text",null,e.toDisplayString(t.directiveName),1)]),e.createElementVNode("view",{class:"rq"}," 执行人:"+e.toDisplayString(t.employeeName),1),e.createElementVNode("view",{class:"rq"}," 开始时间:"+e.toDisplayString(t.startTime.slice(0,16)),1),e.createElementVNode("view",{class:"rq"}," 结束时间:"+e.toDisplayString(t.endTime.slice(0,16)),1),e.createElementVNode("view",{class:"rq"}," 状态:"+e.toDisplayString("N"==t.izStart?"未开始":"Y"==t.izFinish?"已结束":"进行中"),1)])])],10,["onClick"])))),128)),e.createElementVNode("view",{style:{height:"2vw",width:"90%",display:"flex","align-items":"center","justify-content":"center"}},[c.value.length>4?(e.openBlock(),e.createBlock(u,{key:0,status:s.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],8,["scroll-top"])])]),e.createElementVNode("view",{class:"rightscr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"itembox","scroll-with-animation":"","enable-back-to-top":"",onScroll:y,"scroll-top":m.value},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,((l,a)=>(e.openBlock(),e.createElementBlock("view",{class:"fler",key:a},[e.createElementVNode("view",{class:"carditem guodu"},[l.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:St,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("image",{src:i.value+l.previewFileSmall,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,"指令名称:"+e.toDisplayString(l.directiveName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 执行人: "),e.createElementVNode("view",null,e.toDisplayString(l.employeeName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 开始时间: "),e.createElementVNode("view",null,e.toDisplayString(l.startTime.slice(0,16)),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 结束时间: "),e.createElementVNode("view",null,e.toDisplayString(l.endTime.slice(0,16)),1)])]),e.createElementVNode("view",{class:"fubtn"},["N"==l.izStart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ld",onClick:e=>(e=>{Be({id:e.id}).then((t=>{t.success&&(e.izStart="Y",c.value[d.value].izStart="Y",g(d.value,c.value[d.value]))}))})(l)},"开始服务",8,["onClick"])):e.createCommentVNode("",!0),"Y"==l.izStart&&"N"==l.izFinish?(e.openBlock(),e.createElementBlock("view",{key:1,class:"ld",onClick:e=>(e=>{Te({id:e.id}).then((t=>{t.success&&(e.izStart="N",e.izFinish="Y",c.value[d.value].izFinish="Y",g(d.value,c.value[d.value]))}))})(l)},"结束服务",8,["onClick"])):e.createCommentVNode("",!0),"Y"==l.izStart&&"N"==l.izFinish||null!=l.manuallyMp4Path?(e.openBlock(),e.createElementBlock("view",{key:2,class:"bd",onClick:e=>E(l,t.i,2)},"录像",8,["onClick"])):e.createCommentVNode("",!0),"Y"==l.izStart&&"N"==l.izFinish||null!=l.manuallyPicPath?(e.openBlock(),e.createElementBlock("view",{key:3,class:"bd",onClick:e=>E(l,t.i,1)},"拍照",8,["onClick"])):e.createCommentVNode("",!0),"Y"==l.izStart&&"Y"==l.izFinish&&null!=l.tplinkPath?(e.openBlock(),e.createElementBlock("view",{key:4,class:"bd",onClick:e=>E(l,t.i,3)},"Tplink",8,["onClick"])):e.createCommentVNode("",!0)])])])))),128))])],40,["scroll-top"])])]),N.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:o[0]||(o[0]=e=>N.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(w.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==N.value?"照片":"录像"),1)]),N.value>0?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"","enable-flex":""},[e.createElementVNode("view",{class:"photowall-other"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:a,onClick:e=>((e,t,a)=>{if(1==N.value){let e=[];a.forEach((t=>{e.push(i.value+t),l("log","at pages/NursingNew/component/doctorask/doctorask.vue:390",i.value+t)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}})(0,a,f.value)},[1==N.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%",height:"70%","border-radius":"30rpx",position:"relative"}},[e.createElementVNode("image",{style:{width:"100%",height:"100%","border-radius":"30rpx"},src:t?i.value+t:"/static/ceshiyaoshan.png",mode:"aspectFill","lazy-load":!0},null,8,["src"]),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{var t;r.value=1,t=a,b.value=t}),["stop"]),style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"-1vw",top:"-0.7vw",background:"red",display:"flex","justify-content":"center","border-radius":"50%","align-items":"center"}},[e.createElementVNode("image",{src:we,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),2==N.value?(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"100%",height:"70%","border-radius":"30rpx",position:"relative"},onClick:e=>{l("log","at pages/NursingNew/component/doctorask/doctorask.vue:205",i.value+t)}},[e.createElementVNode("video",{style:{width:"100%",height:"100%","border-radius":"30rpx"},id:"myVideo"+a,src:n.value+t,mode:"aspectFill"},null,8,["id","src"]),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>f.value.splice(a,1)),["stop"]),style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"-1vw",top:"-0.7vw",background:"red",display:"flex","justify-content":"center","border-radius":"50%","align-items":"center"}},[e.createElementVNode("image",{src:we,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)],8,["onClick"])):e.createCommentVNode("",!0)],8,["onClick"])))),128)),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,class:"photowall-other-one"},[e.createElementVNode("view",{style:{width:"100%",height:"71%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",position:"absolute",top:"0vw",left:"0","background-color":"#fafdff",border:"1rpx solid #78B1EB","border-radius":"30rpx"},onClick:o[1]||(o[1]=e=>{1==N.value?uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:e=>{let t=JSON.stringify(e.tempFilePaths);uni.compressImage({src:JSON.parse(t)[0],quality:60,success:e=>{x(e.tempFilePath)}})}}):uni.chooseVideo({sourceType:["camera"],success:e=>{uni.compressVideo({src:e.tempFilePath,quality:60,success:e=>{x(e.tempFilePath)}})}})})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:Ne}),e.createElementVNode("view",{style:{color:"#78B1EB"}}," 点击上传"+e.toDisplayString(1==N.value?"图片":"录像"),1)])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),N.value>0&&"Y"==k.value.izStart&&"N"==k.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:1,style:{position:"absolute",right:"2vw",bottom:"0.8vw",height:"4vw"}},[e.createElementVNode("button",{type:"primary",style:{width:"9vw",position:"absolute",right:"0vw",bottom:"0.vw"},onClick:V},"确定")])):e.createCommentVNode("",!0)],4),[[e.vShow,N.value>0]]),e.createVNode(h,{show:1==r.value,font:"是否删除此图片",onBack:o[2]||(o[2]=e=>r.value=0),onRight:o[3]||(o[3]=e=>(f.value.splice(b.value,1),void(r.value=0)))},null,8,["show"]),"nomore"==s.value&&0==c.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",style:{background:"#fff",width:"100vw",right:"0",left:"0vw",top:"-5vw",height:"110vh"}},[e.createVNode(S,{cont:"暂无数据",style:{"z-index":"999",margin:"auto",top:"0",left:"35vw",bottom:"0",right:"0"}})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-79dded63"]]),Ut="/static/index/down.png",Pt="/static/index/leftpeople.png",At="/static/index/rightpeople.png",qt="/static/index/calendar/superleft.png",Ot="/static/index/calendar/left.png",Yt="/static/index/calendar/right.png",Rt="/static/index/calendar/superright.png";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jt={exports:{}};Jt.exports=function(e){function t(a){if(l[a])return l[a].exports;var i=l[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var l={};return t.m=e,t.c=l,t.d=function(e,l,a){t.o(e,l)||Object.defineProperty(e,l,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(l,"a",l),l},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0});var a,i=l(1),n=(a=i)&&a.__esModule?a:{default:a};t.default=n.default,e.exports=t.default},function(e,t,l){function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=a(l(2)),n=a(l(3)),o=a(l(4)),r=a(l(5)),c=a(l(6)),s=a(l(7)),u=a(l(8)),d=a(l(9)),m=a(l(10)),v=a(l(11)),p=a(l(12)),g={lunarInfo:i.default,solarMonth:n.default,gan:o.default,zhi:r.default,animals:c.default,lunarTerm:s.default,lTermInfo:u.default,nStr1:d.default,nStr2:m.default,nStr3:v.default,nStr4:p.default,lYearDays:function(e){var t,l=348;for(t=32768;t>8;t>>=1)l+=g.lunarInfo[e-1900]&t?1:0;return l+g.leapDays(e)},leapMonth:function(e){return 15&g.lunarInfo[e-1900]},leapDays:function(e){return g.leapMonth(e)?65536&g.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:g.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var l=t-1;return 1==l?e%4==0&&e%100!=0||e%400==0?29:28:g.solarMonth[l]},toGanZhi:function(e){return g.gan[e%10]+g.zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var l=g.lTermInfo[e-1900],a=[parseInt("0x"+l.substr(0,5)).toString(),parseInt("0x"+l.substr(5,5)).toString(),parseInt("0x"+l.substr(10,5)).toString(),parseInt("0x"+l.substr(15,5)).toString(),parseInt("0x"+l.substr(20,5)).toString(),parseInt("0x"+l.substr(25,5)).toString()],i=[a[0].substr(0,1),a[0].substr(1,2),a[0].substr(3,1),a[0].substr(4,2),a[1].substr(0,1),a[1].substr(1,2),a[1].substr(3,1),a[1].substr(4,2),a[2].substr(0,1),a[2].substr(1,2),a[2].substr(3,1),a[2].substr(4,2),a[3].substr(0,1),a[3].substr(1,2),a[3].substr(3,1),a[3].substr(4,2),a[4].substr(0,1),a[4].substr(1,2),a[4].substr(3,1),a[4].substr(4,2),a[5].substr(0,1),a[5].substr(1,2),a[5].substr(3,1),a[5].substr(4,2)];return parseInt(i[t-1])},toChinaYear:function(e){var t=parseInt(e/1e3),l=parseInt(e%1e3/100),a=parseInt(e%100/10),i=e%10;return g.nStr4[t]+g.nStr4[l]+g.nStr4[a]+g.nStr4[i]+"年"},toChinaMonth:function(e){return e>12||e<1?-1:g.nStr3[e-1]+"月"},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=g.nStr2[Math.floor(e/10)],t+=g.nStr1[e%10]}return t},getAnimal:function(e){return g.animals[(e-4)%12]},solar2lunar:function(e,t,l){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&l<31)return-1;if(e)var a=new Date(e,parseInt(t)-1,l);else a=new Date;var i,n=0,o=0,r=(e=a.getFullYear(),t=a.getMonth()+1,l=a.getDate(),(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&r>0;i++)r-=o=g.lYearDays(i);r<0&&(r+=o,i--);var c=new Date,s=!1;c.getFullYear()==e&&c.getMonth()+1==t&&c.getDate()==l&&(s=!0);var u=a.getDay(),d=g.nStr1[u];0==u&&(u=7);var m=i,v=(n=g.leapMonth(i),!1);for(i=1;i<13&&r>0;i++)n>0&&i==n+1&&0==v?(--i,v=!0,o=g.leapDays(m)):o=g.monthDays(m,i),1==v&&i==n+1&&(v=!1),r-=o;0==r&&n>0&&i==n+1&&(v?v=!1:(v=!0,--i)),r<0&&(r+=o,--i);var p=i,h=r+1,y=t-1,w=g.getTerm(e,3),N=g.toGanZhi(e-4),f=new Date(e,1,w).getTime();new Date(e,y,l).getTime()<f&&(N=g.toGanZhi(e-5));var k=g.getTerm(e,2*t-1),E=g.getTerm(e,2*t),x=g.toGanZhi(12*(e-1900)+t+11);l>=k&&(x=g.toGanZhi(12*(e-1900)+t+12));var V=!1,b="";k==l&&(V=!0,b=g.lunarTerm[2*t-2]),E==l&&(V=!0,b=g.lunarTerm[2*t-1]);var S=Date.UTC(e,y,1,0,0,0,0)/864e5+25567+10,B=g.toGanZhi(S+l-1);return{lYear:m,lMonth:p,lDay:h,animal:g.getAnimal(m),yearCn:g.toChinaYear(m),monthCn:(v&&n===p?"闰":"")+g.toChinaMonth(p),dayCn:g.toChinaDay(h),cYear:e,cMonth:t,cDay:l,gzYear:N,gzMonth:x,gzDay:B,isToday:s,isLeap:v,nWeek:u,ncWeek:"星期"+d,isTerm:V,term:b}},lunar2solar:function(e,t,l,a){var i=g.leapMonth(e);if(g.leapDays(e),a&&i!=t)return-1;if(2100==e&&12==t&&l>1||1900==e&&1==t&&l<31)return-1;var n=g.monthDays(e,t);if(e<1900||e>2100||l>n)return-1;for(var o=0,r=1900;r<e;r++)o+=g.lYearDays(r);var c=0,s=!1;for(r=1;r<t;r++)c=g.leapMonth(e),s||c<=r&&c>0&&(o+=g.leapDays(e),s=!0),o+=g.monthDays(e,r);a&&(o+=n);var u=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(o+l-31)+u),m=d.getUTCFullYear(),v=d.getUTCMonth()+1,p=d.getUTCDate();return g.solar2lunar(m,v,p)}};t.default=g,e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,42192,53584,62034,54560],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=[31,28,31,30,31,30,31,31,30,31,30,31],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["日","一","二","三","四","五","六","七","八","九","十"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["初","十","廿","卅"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["正","二","三","四","五","六","七","八","九","十","冬","腊"],e.exports=t.default},function(e,t,l){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["零","一","二","三","四","五","六","七","八","九","十"],e.exports=t.default}]);const Qt=Wt(Jt.exports),Gt=s({__name:"calendarsimple",props:{modelValue:{default:null}},emits:["update:modelValue","datachange"],setup(t,{emit:l}){const a=t,i=l,n=new Date,o=e.ref(n.getFullYear()),r=e.ref(n.getMonth()),c=e.ref(null);let s=!1,u=null;function d(e,t,l){return 1e4*e+100*(t+1)+l}function m(){const e=new Date;return d(e.getFullYear(),e.getMonth(),e.getDate())}function v(e,t,l){return`${e}-${String(t+1).padStart(2,"0")}-${String(l).padStart(2,"0")}`}const p=["一","二","三","四","五","六","日"];function g(e,t){const l=[],a=new Date(e,t,0),i=a.getFullYear(),n=a.getMonth(),o=a.getDate(),r=((e,t)=>(new Date(e,t,1).getDay()+6)%7)(e,t);for(let u=0;u<r;u++){const e=o-r+u+1,t=Qt.solar2lunar(i,n+1,e);l.push({key:`prev-${i}-${n+1}-${e}`,dateText:e,lunarText:t?t.dayCn:"",prev:!0,next:!1,year:i,month:n,day:e,dateNumber:d(i,n,e)})}const c=new Date(e,t+1,0).getDate();for(let u=1;u<=c;u++){const a=Qt.solar2lunar(e,t+1,u);l.push({key:v(e,t,u),dateText:u,lunarText:a?a.dayCn:"",prev:!1,next:!1,year:e,month:t,day:u,dateNumber:d(e,t,u)})}const s=42-l.length;for(let u=1;u<=s;u++){const a=new Date(e,t+1,u),i=a.getFullYear(),n=a.getMonth(),o=Qt.solar2lunar(i,n+1,u);l.push({key:`next-${i}-${n+1}-${u}`,dateText:u,lunarText:o?o.dayCn:"",prev:!1,next:!0,year:i,month:n,day:u,dateNumber:d(i,n,u)})}return l}const h=e.computed((()=>g(o.value,r.value)));function y(e){return d(e.year,e.month,e.day)>m()}function w(e){const t=function(e){if(null==e)return null;if(!("object"!=typeof e||e instanceof Date||Array.isArray(e))){const t=null!=e.year&&Number(e.year)>0,l=null!=e.month&&""!==String(e.month).trim(),a=null!=e.day&&""!==String(e.day).trim();if(!t||!l||!a)return null;const i=Number(e.year),n=Number(e.month),o=Number(e.day);return isNaN(i)||isNaN(n)||isNaN(o)?null:{y:i,m:n,d:o,time:null,isObject:!0}}if(e instanceof Date)return{y:e.getFullYear(),m:e.getMonth()+1,d:e.getDate(),time:`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}`,isObject:!1};if("number"==typeof e){const t=new Date(e);return isNaN(t.getTime())?null:{y:t.getFullYear(),m:t.getMonth()+1,d:t.getDate(),time:`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`,isObject:!1}}if("string"==typeof e){const t=e.trim().split(/[ T]/),l=t[0],a=t[1]||null,i=l.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);if(i)return{y:Number(i[1]),m:Number(i[2]),d:Number(i[3]),time:a?a.split(".")[0]:null,isObject:!1};const n=new Date(e);return isNaN(n.getTime())?null:{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),time:`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}:${String(n.getSeconds()).padStart(2,"0")}`,isObject:!1}}return null}(e);if(!t)return c.value=null,u=null,void(s=!1);s=!!t.isObject;if(d(t.y,t.m-1,t.d)>m())return c.value=null,u=null,o.value=t.y,void(r.value=t.m-1);o.value=t.y,r.value=t.m-1,c.value=v(t.y,t.m-1,t.d),u=t.time||null}function N(){0===r.value?(o.value--,r.value=11):r.value--}function f(){11===r.value?(o.value++,r.value=0):r.value++}function k(){o.value--}function E(){o.value++}return w(a.modelValue),e.watch((()=>a.modelValue),(e=>{w(e)})),(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"calendar"},[e.createElementVNode("view",{class:"header"},[e.createElementVNode("view",{class:"header-title"},[e.createElementVNode("view",{class:"head-left"},[e.createElementVNode("image",{class:"head-img",src:qt,onClick:k}),e.createElementVNode("image",{class:"head-img",src:Ot,onClick:N})]),e.createElementVNode("view",{class:"year-month"},e.toDisplayString(o.value)+"年"+e.toDisplayString(r.value+1)+"月",1),e.createElementVNode("view",{class:"head-left"},[e.createElementVNode("image",{class:"head-img",src:Yt,onClick:f}),e.createElementVNode("image",{class:"head-img",src:Rt,onClick:E})])]),e.createElementVNode("view",{class:"weekdays"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,((t,l)=>e.createElementVNode("view",{key:l,class:"weekday"},e.toDisplayString(t),1))),64))])]),e.createElementVNode("view",{class:"days"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(t=>{return e.openBlock(),e.createElementBlock("view",{key:t.key,class:e.normalizeClass(["day-cell",{"prev-month":t.prev,"next-month":t.next,selected:(l=t.key,c.value===l),disabled:y(t)}]),onClick:e=>function(e){if(e.prev||e.next)return;if(y(e))return;const t=v(e.year,e.month,e.day);if(c.value===t)return c.value=null,i("update:modelValue",null),void i("datachange",{date:null});if(c.value=t,s){const t={year:e.year,month:String(e.month+1).padStart(2,"0"),day:String(e.day).padStart(2,"0")};i("update:modelValue",t),i("datachange",{date:t})}else{let e=t;u&&(e=`${t} ${u}`),i("update:modelValue",e),i("datachange",{date:e})}}(t)},[e.createElementVNode("view",{class:"gregorian"},e.toDisplayString(t.dateText),1),t.lunarText?(e.openBlock(),e.createElementBlock("view",{key:0,class:"lunar"},e.toDisplayString(t.lunarText),1)):e.createCommentVNode("",!0)],10,["onClick"]);var l})),128))])]))}},[["__scopeId","data-v-47e1678a"]]);const Xt=s({props:{cont:""}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"que"},[e.createElementVNode("image",{src:pt,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)])])}],["__scopeId","data-v-ed9a1114"]]),Ht=1295,Zt=s(e.defineComponent({__name:"bigindex",props:{isshow:{type:Boolean,required:!0}},setup(t){const a=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),i=e.ref(!1);e.ref(!1),e.ref(-1),e.ref(!1),e.ref(-1);const n=e.ref(-1),o=e.ref(-1),r=e.ref(-1),c=e.ref(-1);let s=null;e.watch(o,(e=>{s&&(clearTimeout(s),s=null),-1===e?s=setTimeout((()=>{c.value=-1,s=null}),300):c.value=e})),e.watch(n,(e=>{s&&(clearTimeout(s),s=null),-1===e?s=setTimeout((()=>{r.value=-1,s=null}),300):r.value=e})),e.onBeforeUnmount((()=>{s&&(clearTimeout(s),s=null)}));const u=e.ref("translate3d(0, 0, 0)");let d=0,m=!1;e.ref(!1),e.ref(!1),e.ref(!1);const v=e.ref((new Date).getHours());function p(e){if(!e)return null;const t=(e+"").split(" ")[1]||"",[l="0",a="0"]=t.split(":");return String(l).padStart(2,"0")+":"+String(a).padStart(2,"0")}const h=e.ref(function(){const e=new Date,t=String(e.getMonth()+1).padStart(2,"0"),l=String(e.getDate()).padStart(2,"0");return{year:e.getFullYear(),month:t,day:l}}());const y=e.ref({year:0,month:"",day:""}),w=e.ref([]),N=e.ref(0);function f(){const e=Number(y.value.year),t=Number(y.value.month);if(!Number.isFinite(e)||!Number.isFinite(t)||t<1||t>12)return[];const l=Number(h.value.year),a=Number(h.value.month),i=Number(h.value.day);let n=0;n=e===l&&t===a?i:new Date(e,t,0).getDate(),w.value=Array.from({length:n},((e,t)=>String(t+1).padStart(2,"0"))),N.value=37.5*(Number(y.value.day)-3)}e.ref(0);e.ref(!1),e.ref(!1),e.ref([]);const k=["00","05","10","15","20","25","30","35","40","45","50","55"];Array.from({length:31},((e,t)=>(t+1).toString().padStart(2,"0"))),e.ref(!0),e.ref(!1),e.ref(0),e.ref(0),e.ref(0);const E=e.ref(678),x=e.ref(0),V=e.ref();e.ref(!1);const b=e.ref([]);e.ref(!1),e.ref(!1),e.ref(!1),e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1),e.ref(6),e.ref(11),e.ref(0),e.ref(3),e.ref(!1),e.computed((()=>A.value[0]&&A.value[1]?"left-bottom":!A.value[0]&&A.value[1]?"right-bottom":A.value[0]&&!A.value[1]?"left-top":"right-top"));const S=(e,t,l)=>{switch(e.executeStatus){case"hisUnExe":case"hisTimeOut":return"card-time-red";case"current":return"card-time-blue";default:return"card-time"}},B=e.ref([]);e.ref(0),e.ref(!1);const T=e.ref(!1);e.ref(-1);const C=e.ref(!1);function D(e,t){return 2*function(e,t){const l=55.9898*e+78.233*t;return Math.abs(43758.5453*Math.sin(l))%1}(e,t)}const z="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:e=>setTimeout(e,16);function I(e){const t=e&&e.detail&&(e.detail.scrollTop??e.detail.scrollY)||0;d=t,m||(m=!0,z((()=>{u.value=`translate3d(0, -${d}px, 0)`,m=!1})))}const F=e.ref(0);function _(e){F.value=e.detail.scrollLeft}const M=(e,t,l)=>{if(e.startTime)switch(e.executeStatus){case"hisOk":return"title-time-border-hisOk";case"hisUnExe":case"hisTimeOut":return"title-time-border-hisFaild";case"current":return"title-time-border-current";case"future":return"title-time-border-future"}return"title-time-border"},$=(e,t)=>{-1!=n.value?n.value=-1:n.value=t},L=(e,t)=>{-1!=o.value?o.value=-1:e.tagtype||(o.value=t)},j=e.ref(1);e.ref(0);const U=e.ref(-1);e.ref(0),e.ref(0);const P=e.ref({index0:-1,index1:-1});e.ref(null),e.ref({}),e.ref(0),e.ref(0),e.ref(0),e.ref(0),e.ref({index0:999,index1:999}),e.ref(!1),e.ref(-1);const A=e.ref([!1,!1]);e.ref([-1,-1]);const q=e.ref(0),O=(e,t)=>{C.value=!1,P.value.index0=e,P.value.index1=t,le(),T.value=!0};e.ref(!1),e.ref(0),e.ref(0),e.ref([-1,-1]),e.ref(!1);const Y=e.ref({index0:-1,index1:-1}),R=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),W=["00","05","10","15","20","25","30","35","40","45","50","55"],J=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:W.map((e=>({directiveName:""})))}))));function Q(e){const t=e.split(" ");if(t.length<2)return{hour:NaN,minute:NaN};const[l,a]=t[1].split(":");return{hour:l,minute:a}}function G(e){const t=e.split(" ");if(t.length<2)return{hour:NaN,minute:NaN};const[l,a]=t[1].split(":");return{hour:Number(l),minute:Number(a)}}const X=e.ref([]),H=e.ref([]),Z=()=>{let e=`${y.value.year}-${y.value.month}-${y.value.day}`;var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getDirectiveOrders?nuId=${uni.getStorageSync("nuId")}&elderId=${uni.getStorageSync("elderId")}&queryDate=${t}`,method:"get"})).then((e=>{n.value=-1,o.value=-1,e.result.current.forEach((e=>{e.tagtype=0})),e.result.future.forEach(((e,t)=>{e.tagtype=t?2:1})),X.value=[...e.result.current,...e.result.future],e.result.history.forEach(((e,t)=>{"hisUnExe"===e.executeStatus?e.rightshow="未执行":"hisTimeOut"===e.executeStatus?e.rightshow="超时":"hisOk"===e.executeStatus&&(e.rightshow="已完成")})),H.value=[...e.result.history],l("log","at pages/NursingNew/component/nurse/bigindex.vue:873","aaaaa",H.value),J.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:W.map((()=>({directiveName:""})))}))),e.result.all.forEach((e=>{var t;e.positioning=G(e.startTime).hour,e.positioningLong=G(e.startTime).minute/5,"hisUnExe"===e.executeStatus?e.rightshow="未执行":"hisTimeOut"===e.executeStatus?e.rightshow="超时":"current"===e.executeStatus||"future"===e.executeStatus?e.rightshow="":2==e.optType?e.rightshow=null==(t=e.optNames)?void 0:t.split(",").join("/"):e.rightshow=`${e.optTypeName}/${e.optNames}`,3!=e.cycleTypeId&&(J.value[e.positioning].children[e.positioningLong]=e)}))}))},K=e.ref([]);function ee(e){(e=>{P.value.index0=e.index0,P.value.index1=e.index1,le(),R.value.index0=e.index0,R.value.index1=e.index1,Y.value.index0=R.value.index0,Y.value.index1=R.value.index1,R.value.bordershow=!1,setTimeout((()=>{R.value.index0=-1,R.value.index1=-1,R.value.current=-1}),400),setTimeout((()=>{R.value.bordershow=!0,Y.value.index0=-1,Y.value.index1=-1}),1e3)})(e)}function te(e){let t=[],l=e,a=/([^((]*)[((]([^))]+)[))]/;for(;a.test(l);){let e=l.match(a);e&&(e[1].trim()&&t.push(e[1].trim()),e[2].trim()&&t.push(e[2].trim()),l=l.replace(e[0],"").trim())}return l.trim()&&t.push(l.trim()),t}function le(){if(P.value.index0>=0&&P.value.index0<=24&&P.value.index1>=0&&P.value.index1<=11){const e=259*(P.value.index0+.5),t=245*(P.value.index1+.5);E.value=e-647.5,x.value=t-612.5;const l=6216,a=2695;E.value=Math.max(0,Math.min(E.value,l-Ht))/2,x.value=Math.max(0,Math.min(x.value,a-1225))/2}}e.onMounted((()=>{y.value=h.value,f(),K.value=uni.getStorageSync("Packagelist")||[];let t=uni.getStorageSync("saveTree0"),l=[];Pe.forEach((e=>{e.children.forEach((e=>{l.push({name:e.title,url:e.url})}))})),B.value=l,t.result&&(b.value=t.result),V.value=b.value[0].children,j.value=-1,U.value=-1,setTimeout((()=>{j.value=0,U.value=0}),50),uni.$on("where",ee),U.value=0,uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&Z(),e.nextTick((()=>{!function(){let e=259*(v.value+.5)-647.5;const t=6216;E.value=Math.max(0,Math.min(e,t-Ht))/2}()}))})),e.ref([]),e.ref([]),e.ref(!1),e.onBeforeUnmount((()=>{uni.$off("where",ee),m=!1})),e.ref(!1),e.ref(!1);const ae=()=>{i.value=!1,f(),Z()},ie=e=>{n.value=-1,o.value=-1,q.value=e.id,re(e.id),J.value.forEach((t=>{t.children.forEach((t=>{e.id==t.id&&O(t.positioning,t.positioningLong)}))}))},ne=e.ref(0),oe=e.ref(0),re=e=>{X.value.forEach(((t,l)=>{t.id===e&&(ne.value=80*(l-1))})),H.value.forEach(((t,l)=>{t.id===e&&(oe.value=66.5*(l-1))}))};return(l,s)=>(e.openBlock(),e.createElementBlock("view",{class:"right-container",style:e.normalizeStyle(t.isshow?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"doctorsay-container-view"},[e.createElementVNode("view",{class:"doctorsay-container-container"},[e.createElementVNode("view",{class:"super-card"},[e.createElementVNode("view",{class:"boom-father"},[e.createElementVNode("view",{class:"boom",style:e.normalizeStyle({transform:u.value})},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(k,((t,l)=>e.createElementVNode("view",{key:l},[e.createElementVNode("view",{class:"boom-son"},[e.createElementVNode("text",{class:"boom-text"},e.toDisplayString(t),1)])]))),64))])],4)]),e.createElementVNode("view",{class:"super-card-container"},[e.createElementVNode("scroll-view",{style:{width:"100%"},"scroll-with-animation":"","scroll-left":E.value,"scroll-x":"",onScroll:_,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",width:"4824rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"super-card-right"},[e.createElementVNode("view",{class:"super-card-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":00"),1)])))),128))]),e.createElementVNode("view",{style:{display:"flex",height:"1225rpx",position:"relative"}},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{style:{height:"100%",width:"6960rpx","background-color":"#fff"},"scroll-top":x.value,"scroll-with-animation":"","scroll-y":!0,onScroll:I,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time-und"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((a,i)=>(e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:i},[e.createElementVNode("view",{class:e.normalizeClass(R.value.index0===l&&R.value.index1===i?R.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([R.value.bordershow||Y.value.index0!==l||Y.value.index1!==i?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${l}_${i}`,onClick:e=>((e,t)=>{n.value=-1,o.value=-1,q.value=J.value[e].children[t].id,re(q.value),O(e,t)})(l,i),"data-index0":l,"data-index1":i},[e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},[e.createElementVNode("image",{class:"blue-img","lazy-load":"",src:"/static/index/bluetarget.png"})],512),[[e.vShow,P.value.index0==l&&P.value.index1==i&&T.value]]),"Y"==a.izPackage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card-bao"}," 包 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(M(a)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${D(l,i).toFixed(2)}s`,border:P.value.index0==l&&P.value.index1==i?"2rpx solid #46B2F6":""}])},[a.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column"}},[a.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time-font-rel"},e.toDisplayString(a.directiveName?te(a.directiveName)[0]:""),1)):e.createCommentVNode("",!0),a.startTime&&te(a.directiveName)[1]?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-tags"}," ("+e.toDisplayString(a.directiveName?te(a.directiveName)[1]:"")+") ",1)):e.createCommentVNode("",!0),a.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(S(a))},[e.createElementVNode("view",null,e.toDisplayString(a.rightshow),1),e.createElementVNode("view",{class:"weight-time"},e.toDisplayString(`${Q(a.startTime).hour}:${Q(a.startTime).minute}-${Q(a.endTime).hour}:${Q(a.endTime).minute}`),1)],2)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),P.value.index0!=l||P.value.index1!=i||a.startTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+k[i]),1))],6)],14,["id","onClick","data-index0","data-index1"])])))),128))])])))),128))])],40,["scroll-top"])])],40,["scroll-left"])]),e.createElementVNode("view",{class:"right-order"},[e.createElementVNode("view",{class:"order-title"},[e.createElementVNode("view",{class:"order-month",onClick:s[0]||(s[0]=e=>{i.value=!0})},[e.createTextVNode(e.toDisplayString(y.value.month)+"月 ",1),e.createElementVNode("view",{class:"order-month-right"})]),e.createElementVNode("scroll-view",{class:"order-day","scroll-with-animation":"","scroll-x":"","scroll-left":N.value},[e.createElementVNode("view",{class:"days-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(y.value.day===t?"targetdays":"days"),key:l,onClick:e=>((e,t)=>{y.value.day=e,y.value=JSON.parse(JSON.stringify(y.value)),N.value=37.5*(t-2),Z()})(t,l)},e.toDisplayString(t),11,["onClick"])))),128))])],8,["scroll-left"])]),e.createElementVNode("view",{class:"order-future"},[e.withDirectives(e.createVNode(Xt,{cont:"暂无数据"},null,512),[[e.vShow,!X.value.length]]),e.createElementVNode("scroll-view",{class:"future-items","scroll-with-animation":"","scroll-y":"","scroll-top":ne.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,((t,l)=>{var a,i;return e.openBlock(),e.createElementBlock("view",{style:{position:"relative"},key:l,onClick:e=>{ie(t)}},[e.createElementVNode("view",{class:e.normalizeClass(q.value===t.id?"future-item-target":"future-item")},[e.createElementVNode("view",{class:"future-fonts"},[e.createElementVNode("view",{class:"card-over"},e.toDisplayString(t.directiveName),1),e.createElementVNode("view",{class:"spec-shu"}," | "),e.createElementVNode("text",{style:{color:"#4690FF"}}," 每天 "),e.createElementVNode("view",{class:"spec-shu"}," | "),e.createTextVNode(" "+e.toDisplayString(t.serviceDuration+"分钟"),1)]),e.createElementVNode("view",{class:"future-time"},[e.createElementVNode("text",{class:"time"},e.toDisplayString(p(t.startTime)),1),t.tagtype?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-right-bad"},e.toDisplayString("1"==t.tagtype?"即将开始":"指令尚未开始"),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-right-blue"},[e.createTextVNode(" 正在进行 "),e.createElementVNode("view",{class:"ellipsis"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,l)=>e.createElementVNode("view",{key:l,class:"dot",style:e.normalizeStyle({animationDelay:.12*l+"s"})},null,4))),64))])]))]),t.tagtype?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"open-img-father",onClick:e.withModifiers((e=>{$(0,l)}),["stop"]),style:e.normalizeStyle(n.value===l?{transform:"rotate(180deg)"}:{})},[e.createElementVNode("image",{class:"open-img",src:Ut,"lazy-load":""})],12,["onClick"]))],2),e.createElementVNode("view",{style:e.normalizeStyle([{position:"absolute",top:"0",left:"0",transition:"height 0.3s, top 0.3s","z-index":"9999"},{height:n.value===l?"300rpx":"140rpx",left:r.value===l?"0":"999rpx",top:l===X.value.length-1&&n.value===l?"-164rpx":"0rpx"}]),class:e.normalizeClass(q.value===t.id?"future-item-target":"future-item")},[e.createElementVNode("view",{class:"future-fonts"},[e.createElementVNode("view",{class:"card-over"},e.toDisplayString(t.directiveName),1),e.createElementVNode("view",{class:"spec-shu"}," | "),e.createElementVNode("text",{style:{color:"#4690FF"}}," 每天 "),e.createElementVNode("view",{class:"spec-shu"}," | "),e.createTextVNode(" "+e.toDisplayString(t.serviceDuration+"分钟"),1)]),e.createElementVNode("view",{class:"future-time"},[e.createElementVNode("text",{class:"time"},e.toDisplayString(p(t.startTime)),1),t.tagtype?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-right-bad"},e.toDisplayString("1"==t.tagtype?"即将开始":"指令尚未开始"),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-right-blue"},[e.createTextVNode(" 正在进行 "),e.createElementVNode("view",{class:"ellipsis"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,l)=>e.createElementVNode("view",{key:l,class:"dot",style:e.normalizeStyle({animationDelay:.12*l+"s"})},null,4))),64))])]))]),n.value===l?(e.openBlock(),e.createElementBlock("view",{key:0,class:"future-info"},[2==t.optType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"info"},[e.createElementVNode("image",{class:"info-img",src:Pt,"lazy-load":""}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(a=t.optNames)?void 0:a.split(",")[0]),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},"lazy-load":"",src:At}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(i=t.optNames)?void 0:i.split(",")[1]),1)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"info"},[e.createElementVNode("image",{class:"info-img",src:Pt,"lazy-load":""}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optTypeName),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},"lazy-load":"",src:At}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optNames),1)]))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"open-img-father",onClick:e.withModifiers((e=>$(0,l)),["stop"]),style:e.normalizeStyle(n.value===l?{transform:"rotate(180deg)"}:{})},[e.createElementVNode("image",{class:"open-img",src:Ut,"lazy-load":""})],12,["onClick"]),n.value===l?(e.openBlock(),e.createElementBlock("view",{key:1,class:"serviceContent"},e.toDisplayString(t.serviceContent),1)):e.createCommentVNode("",!0)],6)],8,["onClick"])})),128))],8,["scroll-top"])]),e.createElementVNode("view",{class:"order-history"},[e.createElementVNode("view",{class:"history-title"},[e.createElementVNode("view",{class:"history-left"},[e.createElementVNode("view",{class:"history-blue"}),e.createTextVNode(" 服务指令 ")]),e.createElementVNode("view",{class:"history-right"}," 长者标签 ")]),e.withDirectives(e.createVNode(Xt,{cont:"暂无数据"},null,512),[[e.vShow,!H.value.length]]),e.createElementVNode("scroll-view",{class:"history-items","scroll-with-animation":"","scroll-y":"","scroll-top":oe.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,((t,l)=>{var i,n,r,s;return e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>{ie(t)}},[e.createElementVNode("view",{class:"history-item"},[l?(e.openBlock(),e.createElementBlock("view",{key:0,class:"history-shu-up"})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"history-shu-circle"}),e.createElementVNode("view",{class:"history-spe",style:e.normalizeStyle(q.value===t.id?{border:"2rpx solid #46B2F6"}:{border:"2rpx solid transparent"})},[e.createElementVNode("view",{class:"history-left"},[e.withDirectives(e.createElementVNode("view",{class:e.normalizeClass("hisOk"!==t.executeStatus?"history-left-jiao-error":"history-left-jiao")},e.toDisplayString(t.rightshow),3),[[e.vShow,c.value!==l]]),e.createElementVNode("view",{class:"history-time"},e.toDisplayString(p(t.startTime)),1),e.createElementVNode("view",{style:{display:"flex",width:"1000rpx"}},[e.createElementVNode("image",{class:"history-img","lazy-load":"",src:`${a.value}${t.previewFileSmall}`},null,8,["src"]),e.createElementVNode("view",{class:"history-name"},e.toDisplayString(t.directiveName+" ")+"|"+e.toDisplayString(" "+t.serviceDuration+"分钟"),1)]),e.createElementVNode("view",{class:"small-font"},e.toDisplayString(t.serviceContent),1)]),e.createElementVNode("view",{class:"history-spe",style:e.normalizeStyle([{position:"absolute",top:"0",left:"0",transition:"height 0.3s, top 0.3s","z-index":"9999"},{height:o.value===l?"372rpx":"176rpx",left:c.value===l?"0":"999rpx",top:l===H.value.length-1&&o.value===l?"-140rpx":"0rpx",border:q.value===t.id?"2rpx solid #46B2F6":"2rpx solid transparent"}])},[e.createElementVNode("view",{class:"history-left"},[e.withDirectives(e.createElementVNode("view",{class:e.normalizeClass("hisOk"!==t.executeStatus?"history-left-jiao-error":"history-left-jiao")},e.toDisplayString(t.rightshow),3),[[e.vShow,c.value===l]]),e.createElementVNode("view",{class:"history-time"},e.toDisplayString(p(t.startTime)),1),e.createElementVNode("view",{style:{display:"flex",width:"1000rpx"}},[e.createElementVNode("image",{class:"history-img","lazy-load":"",src:`${a.value}${t.previewFileSmall}`},null,8,["src"]),e.createElementVNode("view",{class:"history-name"},e.toDisplayString(t.directiveName+" ")+"|"+e.toDisplayString(" "+t.serviceDuration+"分钟"),1)]),e.createElementVNode("view",{class:e.normalizeClass(o.value===l?"small-font-target":"small-font")},e.toDisplayString(t.serviceContent),3)]),o.value===l?(e.openBlock(),e.createElementBlock("view",{key:0,class:"future-info-second",style:{left:"20rpx"}},[2==t.optType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"info"},[e.createElementVNode("image",{class:"info-img","lazy-load":"",src:Pt}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(i=t.optNames)?void 0:i.split(",")[0]),1),e.createElementVNode("image",{class:"info-img","lazy-load":"",style:{"margin-left":"15rpx"},src:At}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(n=t.optNames)?void 0:n.split(",")[1]),1)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"info"},[e.createElementVNode("image",{class:"info-img","lazy-load":"",src:Pt}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optTypeName),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},src:At}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optNames),1)]))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"open-img-father",style:{right:"15rpx",bottom:"11.5rpx"},onClick:e.withModifiers((e=>L(t,l)),["stop"])},[e.createElementVNode("image",{"lazy-load":"",style:e.normalizeStyle(o.value===l?{transform:"rotate(180deg)"}:{}),class:"open-img",src:Ut},null,4)],8,["onClick"])],4)],4),o.value===l&&c.value!==l?(e.openBlock(),e.createElementBlock("view",{key:1,class:"future-info-second"},[2==t.optType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"info"},[e.createElementVNode("image",{class:"info-img","lazy-load":"",src:Pt}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(r=t.optNames)?void 0:r.split(",")[0]),1),e.createElementVNode("image",{class:"info-img","lazy-load":"",style:{"margin-left":"15rpx"},src:At}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(s=t.optNames)?void 0:s.split(",")[1]),1)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"info"},[e.createElementVNode("image",{class:"info-img","lazy-load":"",src:Pt}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optTypeName),1),e.createElementVNode("image",{class:"info-img","lazy-load":"",style:{"margin-left":"15rpx"},src:At}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optNames),1)]))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"open-img-father",style:{right:"16rpx",bottom:"12rpx"},onClick:e.withModifiers((e=>L(t,l)),["stop"])},[e.createElementVNode("image",{class:"open-img",src:Ut,"lazy-load":"",style:e.normalizeStyle(o.value===l?{transform:"rotate(180deg)"}:{})},null,4)],8,["onClick"])])],8,["onClick"])})),128))],8,["scroll-top"])]),e.withDirectives(e.createElementVNode("view",{class:"calendar-father"},[e.createVNode(Gt,{onDatachange:ae,modelValue:y.value,"onUpdate:modelValue":s[1]||(s[1]=e=>y.value=e)},null,8,["modelValue"])],512),[[e.vShow,i.value]]),e.withDirectives(e.createElementVNode("view",{class:"mengban",onClick:s[2]||(s[2]=e=>i.value=!1)},null,512),[[e.vShow,i.value]])])])])])],4))}}),[["__scopeId","data-v-bd34bb17"]]),Kt="/static/shouye/xjt.png",el=s(e.defineComponent({__name:"leftcontent",props:{list:{type:Array},style:{type:String},userInfo:{type:Object}},emits:["navurl"],setup(t,{emit:l}){const a=t,i=e.ref(uni.getStorageSync("serverUrl")),n=l,o=e.ref(0),r=e.ref(0),c=e.ref(0),s=e.ref(0);e.watch((()=>a.list),(()=>{m.value=-1,s.value=a.list.length-6,s.value>0?m.value=0:m.value=-1}));const u=e=>{let t=52*s.value;c.value=e.detail.scrollTop,c.value<30&&(m.value=0),c.value>t-30&&(m.value=2),c.value>=30&&c.value<=t-30&&(m.value=1)},d=t=>{0==t?(r.value=c.value,e.nextTick((()=>{r.value=0}))):(r.value=c.value,e.nextTick((()=>{r.value=999})))},m=e.ref(0),v=()=>{s.value>0?m.value=0:m.value=-1},p=()=>{m.value=2};return(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"letbox",style:e.normalizeStyle(t.style)},[e.createElementVNode("view",{class:"logomain"},[e.createElementVNode("image",{src:"/static/shouye/logo2.png",mode:"aspectFill"})]),e.createElementVNode("view",{class:"topcpnt"},[m.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"iconst to0",onClick:a[0]||(a[0]=e=>d(0))},[e.createElementVNode("view",{class:"to0"},[e.createElementVNode("image",{src:Kt,mode:"aspectFill",style:{transform:"rotate(180deg)"}})])])):e.createCommentVNode("",!0),e.createElementVNode("scroll-view",{class:"cont","scroll-y":!0,"scroll-top":r.value,onScroll:u,"scroll-with-animation":"",onScrolltoupper:v,onScrolltolower:p},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"items",key:l,onClick:e=>{var a;a=l,o.value=a,r.value=52*(a-2),n("navurl",l,t)}},[e.createElementVNode("view",{class:e.normalizeClass(["tm guodu",{act:l==o.value}])},[e.createElementVNode("image",{src:l==o.value?t.urls:t.url,mode:"aspectFill",class:"guodu"},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.name),1)],2)],8,["onClick"])))),128))],40,["scroll-top"]),2!=m.value&&m.value>=0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"iconst bot0",onClick:a[1]||(a[1]=e=>d(1))},[e.createElementVNode("view",{class:"bot0"},[e.createElementVNode("image",{src:Kt,mode:"aspectFill"})])])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"logo",onClick:a[2]||(a[2]=e=>uni.navigateTo({url:"/pages/watch/settings/settings"}))},[e.createElementVNode("view",{class:"tp"},[e.createElementVNode("image",{src:t.userInfo.avatar?i.value+"/sys/common/static/"+t.userInfo.avatar:"/static/shouye/xd.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("text",null,e.toDisplayString(uni.getStorageSync("realname")),1)])],4)]))}}),[["__scopeId","data-v-d9407563"]]);const tl=s({props:{cont:"",style:{}}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"que",style:e.normalizeStyle(a.style)},[e.createElementVNode("image",{src:pt,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)],4)])}],["__scopeId","data-v-a9fa2905"]]),ll=s(e.defineComponent({__name:"index",setup(t){c((()=>!!o.value&&(o.value--,!0)));const l=e.ref([]);e.onMounted((()=>{d.value=0,m.value=0,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getNcPackagelist`,method:"get"}).then((e=>{uni.setStorageSync("Packagelist",e.result)})),C({employessId:uni.getStorageSync("userInfo").employessId}).then((e=>{l.value=e.result}))}));const a=e=>{o.value=e},i=e.ref([{name:"护理",url:"/static/shouye/sy/n0.png",urls:"/static/shouye/sy/n1.png",type:"kzgn_hljz"},{name:"医疗",url:"/static/shouye/sy/y0.png",urls:"/static/shouye/sy/y1.png",type:"kzgn_yljz"},{name:"后勤",url:"/static/shouye/sy/l0.png",urls:"/static/shouye/sy/l1.png",type:"kzgn_hqjz"},{name:"库房",url:"/static/shouye/sy/l0.png",urls:"/static/shouye/sy/l1.png",type:"kzgn_kfjz"}]),o=e.ref(0),r=(e,t)=>{switch(m.value=-1,o.value=0,t.type){case"hldy":m.value=0,setTimeout((()=>{d.value=0}),100);break;case"kzgn_hljz":m.value=1,setTimeout((()=>{d.value=1}),100);break;case"kzgn_yljz":m.value=2,setTimeout((()=>{d.value=2}),100);break;case"kzgn_hqjz":m.value=3,setTimeout((()=>{d.value=3}),100);break;case"kzgn_kfjz":m.value=6,setTimeout((()=>{d.value=6}),100);break;case"kf_cg":case"kf_jh":case"kf_wj":case"kf_th":case"kf_pd":break;case"hldy_ql":m.value=4,setTimeout((()=>{d.value=4}),100);break;case"wl":m.value=5,setTimeout((()=>{d.value=5}),100);break;case"back":uni.navigateBack()}},s=e.ref([{name:"首页",url:"/static/shouye/sy/h0.png",urls:"/static/shouye/sy/h1.png",type:"hldy"}]),u=()=>{let e=uni.getStorageSync("nuId"),t=[];l.value.forEach((l=>{l.nuId==e&&(t=l.dataList)}));let a=uni.getStorageSync("nuName");T({pageNo:-1,nuName:a}).then((e=>{let l=e.result.records[0].permissionList;s.value=[{name:"首页",url:"/static/shouye/sy/h0.png",urls:"/static/shouye/sy/h1.png",type:"hldy"}];let a=[];l&&(l.forEach(((e,l)=>{t.find((t=>t.menuCode==e.menuCode))&&a.push(e)})),a.forEach((e=>{let t=i.value.find((t=>t.type==e.menuCode));t&&s.value.push(t)})));s.value.push({name:"请领",url:"/static/shouye/sy/l0.png",urls:"/static/shouye/sy/l1.png",type:"hldy_ql"},{name:"智慧物联",url:"/static/shouye/sy/g0.png",urls:"/static/shouye/sy/g1.png",type:"wl"},{name:"返回",url:"/static/shouye/sy/f0.png",urls:"/static/shouye/sy/f1.png",type:"back"})}))},d=e.ref(-1),m=e.ref(-1),v=e.ref(!1),p=e.ref(!1),h=e.ref(!1),y=e.ref(!1),w=e.ref(!1);e.ref(0),e.ref(0),e.ref(""),e.ref(!0),e.onMounted((()=>{setTimeout((()=>{var e;(e=d.value)!==d.value&&(d.value=e,v.value=!1,p.value=!1,h.value=!1,y.value=!1,e!==s.value.length-1?setTimeout((()=>{switch(e){case 0:v.value=!0;break;case 1:p.value=!0,N();break;case 2:N();break;case 3:case 5:h.value=!0;break;case 4:y.value=!0}}),50):uni.navigateBack())}),50),v.value=!1,setTimeout((()=>{v.value=!0}),50)}));const N=()=>{w.value=!1,setTimeout((()=>{w.value=!0}),200)},f=e.ref({});return n((()=>{f.value=uni.getStorageSync("userInfo")})),(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"backgroundContainer"},[e.createVNode(el,{list:s.value,onNavurl:r,userInfo:f.value},null,8,["list","userInfo"]),0!=m.value||o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me,{key:0,isShow:0==d.value,onSwip:u,onGospecial:a},null,8,["isShow"])),0==m.value&&1==o.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Zt,{key:1,isshow:0==d.value},null,8,["isshow"])):e.createCommentVNode("",!0),1==m.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(qe,{key:2,isshow:1==d.value},null,8,["isshow"])):e.createCommentVNode("",!0),2==m.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(jt,{key:3})):e.createCommentVNode("",!0),3==m.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Xe,{key:4,isshow:3==d.value},null,8,["isshow"])):e.createCommentVNode("",!0),6==m.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(lt,{key:5,isshow:6==d.value},null,8,["isshow"])):e.createCommentVNode("",!0),4==m.value?(e.openBlock(),e.createBlock(Lt,{key:6,isShow:4==d.value},null,8,["isShow"])):e.createCommentVNode("",!0),5==m.value?(e.openBlock(),e.createBlock(Ye,{key:7,isShow:5==d.value},null,8,["isShow"])):e.createCommentVNode("",!0),1!=d.value&&2!=d.value||uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:8,class:"nomessageclass",style:e.normalizeStyle(w.value?{opacity:"1"}:{opacity:"0"})},[e.createVNode(tl,{cont:"暂无老人入住"})],4))]))}}),[["__scopeId","data-v-add226cf"]]),al="/static/index/procurement/sh.png",il="/static/index/newindex/leftmenu/iconleft.png",nl="/static/index/newindex/leftmenu/iconright.png",ol="/static/index/newindex/leftmenu/openleft.png",rl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getMaterialTreeData?nuId=`+e.nuId,method:"get",data:e}),cl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGwcMaterialTreeData?nuId=`+e.nuId,method:"get",data:e}),sl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getCgdMaterialTreeData?nuId=`+e.nuId,method:"get",data:e}),ul=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdList`,method:"get",data:e}),dl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryShoppingCartList`,method:"get",data:e}),ml=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getTreeDataWlnum`,method:"get",data:e}),vl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGwcTreeDataWlnum`,method:"get",data:e}),pl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getCgdTreeDataWlnum`,method:"get",data:e}),gl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thdList`,method:"get",data:e}),hl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/transRead`,method:"POST",data:e}),yl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thdNuMaterialList`,method:"get",data:e}),wl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQld`,method:"get",data:e}),Nl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQldWlInfo`,method:"get",data:e}),fl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/queryPddList`,method:"get",data:e}),kl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/queryPddInfoList`,method:"get",data:e});const El=s({props:{show:{type:Boolean,default:!1},font:{type:String,default:""}},methods:{}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",null,[a.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"addall"},[e.createElementVNode("view",null,"温馨提示"),e.createElementVNode("view",null,[e.createElementVNode("image",{src:ft,mode:"aspectFill"})]),e.createElementVNode("view",{style:{"text-align":"center"}},e.toDisplayString(a.font),1),e.createElementVNode("view",null,[e.createElementVNode("view",{onClick:l[0]||(l[0]=e=>t.$emit("back"))},"取消"),e.createElementVNode("view",{class:"qd",onClick:l[1]||(l[1]=e=>t.$emit("right"))},"确定")])])):e.createCommentVNode("",!0),a.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",onClick:l[2]||(l[2]=e=>t.$emit("back"))})):e.createCommentVNode("",!0)])}],["__scopeId","data-v-9c679391"]]),xl=s(e.defineComponent({__name:"thwl",props:{Material:{type:Array,required:!0},status:{type:String}},emits:["delall","del","submit"],setup(t,{emit:l}){const a=t,i=l,n=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),o=e.ref(!1),r=e.ref(0);e.watch((()=>a.Material),(()=>{0==a.Material.length&&(o.value=!1,r.value=0)}));const c=()=>{i("delall"),setTimeout((()=>{r.value=0,o.value=!1}),100)},s=()=>{0!=a.Material.length?(o.value=!o.value,r.value=0,h()):uni.showToast({icon:"none",title:"请添加退货物料!"})},u=e.ref(0),d=e=>{u.value=e.touches[0].clientX},m=e.ref(0);function v(e){var t;m.value=(null==(t=null==e?void 0:e.detail)?void 0:t.scrollLeft)??0}const p=e.ref(0),g=e=>{if(0==a.Material.length)return;const t=e.touches[0].clientX-u.value;t<-60&&!o.value&&(o.value=!o.value,r.value=0,p.value=m.value+125.99,setTimeout((()=>{p.value=m.value+126}),50)),t>60&&o.value&&(o.value=!o.value,r.value=0,p.value=m.value-125.99,setTimeout((()=>{p.value=m.value-126}),50))},h=()=>{o.value?(p.value=m.value+125.99,setTimeout((()=>{p.value=m.value+126}),50)):(p.value=m.value-125.99,setTimeout((()=>{p.value=m.value-126}),50))},y=e.ref(!1);return e.onMounted((()=>{setTimeout((()=>{y.value=!0}),500)})),(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"kcyj"},[e.createElementVNode("view",{class:"kjlt"},[e.createTextVNode(" 退货物料 "),t.Material.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mhao"},[e.createElementVNode("view",{class:"mhao-font"},e.toDisplayString(t.Material.length),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("scroll-view",{"scroll-x":"true",class:e.normalizeClass(["kcscrol guodu",0==t.Material.length?"fff":""]),onScroll:v,"scroll-with-animation":"","scroll-left":p.value,style:e.normalizeStyle(o.value?"width:calc(100% - 21.8vw)":0==t.status?"width:calc(100% - 9vw)":"width:calc(100% - 5vw)")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.Material,((t,l)=>{var a,o,c;return e.openBlock(),e.createElementBlock("view",{class:"yjbox",key:l},[e.createElementVNode("image",{src:(null==(a=t.materialInfo)?void 0:a.materialImg)?n.value+(null==(o=t.materialInfo)?void 0:o.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",null,e.toDisplayString(null==(c=t.materialInfo)?void 0:c.materialName),1),t.thNum>=0?(e.openBlock(),e.createElementBlock("text",{key:0,class:"ytj"},e.toDisplayString(t.thNum),1)):e.createCommentVNode("",!0),1==r.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"zhanwei",onClick:e.withModifiers((e=>(e=>{i("del",e)})(t)),["stop"])},[e.createElementVNode("view",null,"-")],8,["onClick"])):e.createCommentVNode("",!0)])})),128)),0==t.Material.length&&y.value?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)],46,["scroll-left"]),0==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"kjlt more guodu",style:e.normalizeStyle(o.value?"width:16vw":""),onTouchstart:d,onTouchmove:g},[e.createElementVNode("view",{onClick:s,class:"righ0"},[e.createTextVNode(e.toDisplayString(o.value?"收起":"更多")+" ",1),e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(o.value?"transform: rotate(180deg);":""),src:Nt,mode:"aspectFill"},null,4)]),e.createElementVNode("view",{class:e.normalizeClass(["guodu",o.value?1==r.value?"avt":"":"righ0"]),onClick:a[0]||(a[0]=e=>{r.value=1==r.value?0:1})}," 批量移除 ",2),e.createElementVNode("view",{class:e.normalizeClass(["guodu",o.value?2==r.value?"avt":"":"righ0"]),onClick:a[1]||(a[1]=e=>{r.value=2})}," 清空列表 ",2),0==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["guodu",o.value?3==r.value?"avt":"":"righ0"]),onClick:a[2]||(a[2]=e=>{r.value=3,i("submit")})}," 提交退货单 ",2)):e.createCommentVNode("",!0)],36)):e.createCommentVNode("",!0)]),e.createVNode(El,{onBack:a[3]||(a[3]=e=>r.value=0),show:2==r.value,font:"确定将本次退货清单中的所有物料都移除吗?",onRight:c},null,8,["show"])]))}}),[["__scopeId","data-v-cea2a1e8"]]),Vl=s(e.defineComponent({__name:"takeing",props:{objtake:{type:Object},show:{type:Boolean}},emits:["fill","right"],setup(t,{emit:l}){const a=t,i=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),n=l,o=e.ref(!1);e.watch((()=>a.show),(()=>{1==a.show?(u.value=1,s.value=k(u.value),setTimeout((()=>{o.value=!0}),50)):(o.value=!1,d.value=!1,r.value=!1)}));const r=e.ref(!1),c=[1,2,3,4,5,6,7,8,9,"AC",0,"AE"],s=e.ref("0000"),u=e.ref(1),d=e.ref(!1),m=(e,t)=>{return"AC"==e?(u.value=0,s.value="0000",void v()):"AE"==e?(u.value=Math.trunc(u.value/10),s.value=k(u.value),void v()):0==d.value?(d.value=!0,u.value=e,s.value=k(u.value),void v()):(l=u.value,void(Math.abs(l).toString().length>3?v():(u.value?u.value=10*u.value+e:u.value=e,v(),s.value=k(u.value))));var l},v=()=>{let e=a.objtake.wlNum,t=u.value;r.value=t>e},p=e.ref(null),g=e=>{y(e)},h=()=>{clearInterval(p.value)},y=e=>{p.value=setInterval((()=>{w(e)}),120)},w=e=>{let t=a.objtake.wlNum;u.value>=t&&1==e?u.value=t:u.value<=1&&-1==e?u.value=1:(u.value+=e,v(),s.value=k(u.value))},N=e.ref(!1),f=()=>{0!=u.value?0==N.value&&(N.value=!0,n("right",u.value,a.objtake),setTimeout((()=>{N.value=!1}),1500)):uni.showToast({icon:"none",title:"数量不能为0!"})};function k(e){const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")}return(l,a)=>{var r,u,d,v,p,y;return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[0]||(a[0]=e=>n("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["takitem guodu",t.show?"":"unclass"]),style:e.normalizeStyle(o.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"tit"}," 退货物料 "),e.createElementVNode("view",{class:"cont"},[e.createElementVNode("view",{class:"zuo"},[e.createElementVNode("view",{class:"carp"},[e.createElementVNode("view",{class:"zuoimg tp"},[e.createElementVNode("image",{src:(null==(r=t.objtake.materialInfo)?void 0:r.materialImg)?i.value+(null==(u=t.objtake.materialInfo)?void 0:u.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"youcont"},[e.createElementVNode("view",null,e.toDisplayString(null==(d=t.objtake.materialInfo)?void 0:d.materialName),1),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 物料编码 "),e.createElementVNode("text",null,e.toDisplayString(null==(v=t.objtake.materialInfo)?void 0:v.materialNo),1)]),e.createElementVNode("view",null,[e.createTextVNode(" 请购单位 "),e.createElementVNode("text",null,e.toDisplayString(null==(p=t.objtake.materialInfo)?void 0:p.materialUnits),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createTextVNode(" 规格型号 "),e.createElementVNode("text",{style:{width:"20vw",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(null==(y=t.objtake.materialInfo)?void 0:y.specificationModel),1)])])])]),e.createElementVNode("view",{class:"qinggou-font"}," 数量 "),e.createElementVNode("view",{class:"stringShow-father"},[e.createElementVNode("view",{class:"jj",onClick:a[1]||(a[1]=e=>w(-1)),onLongpress:a[2]||(a[2]=e=>g(-1)),onTouchend:h}," - ",32),e.createElementVNode("view",{class:"stringShow-kuai"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},e.toDisplayString(t),1)))),128))]),e.createElementVNode("view",{class:"jj",onClick:a[3]||(a[3]=e=>w(1)),onLongpress:a[4]||(a[4]=e=>g(1)),onTouchend:h}," + ",32)])]),e.createElementVNode("view",{class:"you"},[e.createElementVNode("view",{class:"calculator-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,l)=>e.createElementVNode("view",{key:l},["AC"==t?(e.openBlock(),e.createElementBlock("view",{key:0,class:"calculator-kuai",style:{"font-size":"33rpx"},onClick:e=>m(t)}," 清零 ",8,["onClick"])):"AE"==t?(e.openBlock(),e.createElementBlock("view",{key:1,class:"calculator-kuai",onClick:e=>m(t)},[e.createElementVNode("image",{src:Tt,mode:"aspectFill",style:{width:"50%",height:"50%","margin-left":"-5rpx"}})],8,["onClick"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"calculator-kuai",onClick:e=>m(t)},e.toDisplayString(t),9,["onClick"]))]))),64))]),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:a[5]||(a[5]=e=>n("fill"))}," 取消 "),e.createElementVNode("view",{class:"plsbuy-bottom-blue",onClick:f}," 确定 ")])])])],6)])}}}),[["__scopeId","data-v-d1a570b4"]]),bl=s(e.defineComponent({__name:"thitem",props:{InvoicingList:{type:Array,required:!0},status:{type:String}},emits:["scrolltolower","comfig"],setup(t,{emit:l}){const a=t,i=e.ref(!1),n=e.ref("");e.ref(0);const o=e.ref({}),r=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),c=l,s=e.ref(0),u=e.ref(0),d=e.ref(!0),m=e.ref(!1),v=e.ref({}),p=(e,t)=>{c("comfig",e,t),m.value=!1},g=(e,t)=>{a.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))},h=e.ref(0),y=e=>{h.value=e.detail.scrollLeft};return(l,w)=>{const N=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"itembox","scroll-with-animation":"",onScrolltolower:w[1]||(w[1]=e=>{c("scrolltolower")}),"enable-back-to-top":""},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((l,c)=>{var p,N,f,k,E,x,V,b,S,B,T;return e.openBlock(),e.createElementBlock("view",{class:"fler",key:c},[e.createElementVNode("scroll-view",{class:"carditem guodu",onTouchend:t=>((t,l,a)=>{let i=t.changedTouches[0].pageY,n=t.changedTouches[0].pageX,r=Math.abs(n-s.value),c=Math.abs(i-u.value);if(d.value=!0,c>30&&r+10<c)return o.value.scrollleft=.01,void setTimeout((()=>{o.value.scrollleft=0}),20);r<10&&c<10?0==o.value.zk&&setTimeout((()=>{o.value.scrollleft=0}),20):(h.value<=40?(o.value.scrollleft=h.value,o.value.zk=!1,e.nextTick((()=>{o.value.scrollleft=0,h.value=0}))):(h.value=150,o.value.scrollleft=h.value,o.value.zk=!0),o.value.zk=!(n>s.value),o.value.scrollleft=o.value.zk?150:0)})(t),onTouchstart:e=>((e,t,l)=>{o.value=t,s.value=e.changedTouches[0].pageX,u.value=e.changedTouches[0].pageY,d.value&&(d.value=!1,g(t,l))})(e,l,c),"scroll-with-animation":"","scroll-x":"true","scroll-left":l.scrollleft,onScroll:y},[l.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:St,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"bgimg"},[e.createElementVNode("image",{src:(null==(p=l.materialInfo)?void 0:p.materialImg)?r.value+(null==(N=l.materialInfo)?void 0:N.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[(null==(f=l.materialInfo)?void 0:f.categoryName)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(null==(k=l.materialInfo)?void 0:k.categoryName),1)):e.createCommentVNode("",!0),(null==(E=l.materialInfo)?void 0:E.typeName)?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(null==(x=l.materialInfo)?void 0:x.typeName),1)):e.createCommentVNode("",!0),(null==(V=l.materialInfo)?void 0:V.medicationName)?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(null==(b=l.materialInfo)?void 0:b.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==(S=l.materialInfo)?void 0:S.materialName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "),e.createElementVNode("view",null,e.toDisplayString(null==(B=l.materialInfo)?void 0:B.specificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(l.thNum?l.thNum:"--"),1),e.createElementVNode("text",null,"退货数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(null==(T=l.materialInfo)?void 0:T.materialUnits),1),e.createElementVNode("text",null,"退货单位")])])]),e.createElementVNode("view",{class:"add"},[1==l.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0},"已添加")):e.createCommentVNode("",!0)]),0==t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"nextadd",onClick:e.withModifiers((e=>((e,t)=>{1==e.zk?(e.zk=!1,e.scrollleft=.01,setTimeout((()=>{e.scrollleft=0}),20)):(e.zk=!0,e.scrollleft=149.99,setTimeout((()=>{e.scrollleft=150}),20)),g(e,t)})(l,c)),["stop"])},[e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(l.zk?"transform: rotate(180deg);":""),src:"/static/index/procurement/l.png",mode:"aspectFill"},null,12,["src"])],8,["onClick"])):e.createCommentVNode("",!0),0==t.status?(e.openBlock(),e.createElementBlock("view",{key:2,class:"zkadd guodu"},[e.createElementVNode("view",{onClick:e.withModifiers((e=>((e,t,l)=>{if("1"==a.status)return n.value="退货单已完成不能添加退货物料!",void(i.value=!0);v.value=e,m.value=!0})(l)),["stop"]),onTouchend:w[0]||(w[0]=e.withModifiers((()=>{}),["stop"]))}," 添加物料 ",40,["onClick"])])):e.createCommentVNode("",!0)],40,["onTouchend","onTouchstart","scroll-left"])])})),128)),0==t.InvoicingList.length?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)])],32),e.createVNode(Vl,{show:m.value,objtake:v.value,onFill:w[2]||(w[2]=e=>m.value=!1),onRight:p},null,8,["show","objtake"]),e.createVNode(N,{show:i.value,font:n.value,onClose:w[3]||(w[3]=e=>i.value=!1)},null,8,["show","font"])])}}}),[["__scopeId","data-v-c6aa8204"]]),Sl=s(e.defineComponent({__name:"submits",props:{list:{type:Array,required:!0},show:{type:Boolean},thdt:{type:Object}},emits:["fill","submit","config"],setup(t,{emit:l}){const a=t,i=e.ref("");e.onMounted((()=>{const e=new Date,t=e.getFullYear(),l=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");i.value=`${t}.${l}.${a}`})),e.ref({});const n=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),o=l,r=e.ref(!1);return e.watch((()=>a.show),(()=>{1==a.show?setTimeout((()=>{r.value=!0}),50):r.value=!1})),(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[0]||(a[0]=e=>o("fill"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["qinglingdetails",t.show?"":"unclass"]),style:e.normalizeStyle(r.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"tit"},[e.createElementVNode("view",null,"退货详情")]),e.createElementVNode("view",{class:"itemcan"},[e.createElementVNode("text",null,"退货区域:"+e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("text",null,"退货人:"+e.toDisplayString(uni.getStorageSync("realname")),1),e.createElementVNode("text",null,"退货日期:"+e.toDisplayString(i.value),1)]),e.createElementVNode("view",{class:"qlwl"}," 退货物料 "),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"wuliaolist"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,l)=>{var a,i,o,r,c,s,u,d,m,v,p;return e.openBlock(),e.createElementBlock("view",{class:"card",key:l},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imge"},[e.createElementVNode("image",{src:(null==(a=t.materialInfo)?void 0:a.materialImg)?n.value+(null==(i=t.materialInfo)?void 0:i.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[(null==(o=t.materialInfo)?void 0:o.categoryName)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(null==(r=t.materialInfo)?void 0:r.categoryName),1)):e.createCommentVNode("",!0),(null==(c=t.materialInfo)?void 0:c.typeName)?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(null==(s=t.materialInfo)?void 0:s.typeName),1)):e.createCommentVNode("",!0),(null==(u=t.materialInfo)?void 0:u.medicationName)?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(null==(d=t.materialInfo)?void 0:d.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==(m=t.materialInfo)?void 0:m.materialName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "),e.createElementVNode("view",null,e.toDisplayString(null==(v=t.materialInfo)?void 0:v.specificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.thNum?t.thNum:"--"),1),e.createElementVNode("text",null,"退货数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(null==(p=t.materialInfo)?void 0:p.materialUnits),1),e.createElementVNode("text",null,"退货单位")])])])])})),128))])]),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:a[1]||(a[1]=e=>o("fill"))}," 取消 "),e.createElementVNode("view",{class:"plsbuy-bottom-blue",onClick:a[2]||(a[2]=e=>o("config"))}," 入库退货单 ")])],6)]))}}),[["__scopeId","data-v-1c42d09d"]]),Bl=s({__name:"calendar",emits:["datachange"],setup(t,{emit:l}){const a=new Date,i=e.ref(a.getFullYear()),n=e.ref(a.getMonth()),o=e.ref(null),r=e.ref(null);function c(e,t,l){return 1e4*e+100*(t+1)+l}function s(e,t,l){return`${e}-${String(t+1).padStart(2,"0")}-${String(l).padStart(2,"0")}`}const u=["一","二","三","四","五","六","日"];function d(e,t){const l=[],a=new Date(e,t,0),i=a.getFullYear(),n=a.getMonth(),o=a.getDate(),r=((e,t)=>(new Date(e,t,1).getDay()+6)%7)(e,t);for(let s=0;s<r;s++){const e=o-r+s+1,t=Qt.solar2lunar(i,n+1,e),a=c(i,n,e);l.push({key:`prev-${i}-${n+1}-${e}`,dateText:e,lunarText:t?t.dayCn:"",prev:!0,next:!1,year:i,month:n,day:e,dateNumber:a})}const u=new Date(e,t+1,0).getDate();for(let m=1;m<=u;m++){const a=Qt.solar2lunar(e,t+1,m),i=c(e,t,m);l.push({key:s(e,t,m),dateText:m,lunarText:a?a.dayCn:"",prev:!1,next:!1,year:e,month:t,day:m,dateNumber:i})}const d=42-l.length;for(let s=1;s<=d;s++){const a=new Date(e,t+1,s),i=a.getFullYear(),n=a.getMonth(),o=Qt.solar2lunar(i,n+1,s),r=c(i,n,s);l.push({key:`next-${i}-${n+1}-${s}`,dateText:s,lunarText:o?o.dayCn:"",prev:!1,next:!0,year:i,month:n,day:s,dateNumber:r})}return l}const m=e.computed((()=>d(i.value,n.value))),v=e.computed((()=>{if(!o.value)return null;const[e,t,l]=o.value.split("-").map(Number);return c(e,t-1,l)})),p=e.computed((()=>{if(!r.value)return null;const[e,t,l]=r.value.split("-").map(Number);return c(e,t-1,l)}));function g(e){return r.value===e}const h=l;function y(){0===n.value?(i.value--,n.value=11):n.value--}function w(){11===n.value?(i.value++,n.value=0):n.value++}function N(){i.value--}function f(){i.value++}return(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"calendar"},[e.createElementVNode("view",{class:"header"},[e.createElementVNode("view",{class:"header-title"},[e.createElementVNode("view",{class:"head-left"},[e.createElementVNode("image",{class:"head-img",src:qt,onClick:N}),e.createElementVNode("image",{class:"head-img",src:Ot,onClick:y})]),e.createElementVNode("view",{class:"year-month"},e.toDisplayString(i.value)+"年"+e.toDisplayString(n.value+1)+"月",1),e.createElementVNode("view",{class:"head-left"},[e.createElementVNode("image",{class:"head-img",src:Yt,onClick:w}),e.createElementVNode("image",{class:"head-img",src:Rt,onClick:f})])]),e.createElementVNode("view",{class:"weekdays"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,((t,l)=>e.createElementVNode("view",{key:l,class:"weekday"},e.toDisplayString(t),1))),64))])]),e.createElementVNode("view",{class:"days"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(t=>{return e.openBlock(),e.createElementBlock("view",{key:t.key,class:e.normalizeClass(["day-cell",{"prev-month":t.prev,"next-month":t.next,start:(a=t.key,o.value===a),end:g(t.key),"in-range":(l=t.dateNumber,!(!v.value||!p.value)&&l>=v.value&&l<=p.value)}]),onClick:e=>function(e){if(e.prev||e.next)return;const t=s(e.year,e.month,e.day),l=e.dateNumber;return o.value&&o.value&&!r.value?l>=v.value?(r.value=t,void h("datachange",{start:o.value,end:r.value})):(r.value=o.value,o.value=t,void h("datachange",{start:o.value,end:r.value})):(o.value=t,void(r.value=null))}(t)},[e.createElementVNode("view",{class:"gregorian"},e.toDisplayString(t.dateText),1),t.lunarText?(e.openBlock(),e.createElementBlock("view",{key:0,class:"lunar"},e.toDisplayString(t.lunarText),1)):e.createCommentVNode("",!0)],10,["onClick"]);var l,a})),128))])]))}},[["__scopeId","data-v-ad7265f0"]]),Tl=s(e.defineComponent({__name:"retstock",props:{isShow:{type:Boolean}},setup(t){const i=e.ref(!0),o=t,r=e.ref(!1);e.watch((()=>o.isShow),((e,t)=>{!t&&e?(r.value=!1,setTimeout((()=>{r.value=!0}),50)):r.value=!1}));const c=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),s=e.ref(!1),u=e.reactive({pageNo:1,pageSize:10,searchContent:"",fqStartTime:"",fqEndTime:"",showstart:"",showend:""}),d=e.ref(!1),m=e.ref(!1),v=e.ref(0);e.onMounted((()=>{S(),r.value=!1,setTimeout((()=>{r.value=!0}),50)})),n((()=>{p()}));const p=()=>{gl({pageNo:1,pageSize:10,status:3,searchContent:""}).then((e=>{v.value=e.result.total}))},h=()=>{D(b.value[B.value],B.value),e.nextTick((()=>{m.value=!0}))},y=e.ref(""),w=e.ref(!1),N=()=>{var e;(e={id:b.value[B.value].id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/submitThd`,method:"POST",data:e})).then((e=>{l("log","at pages/procurement/retstock.vue:247","入库退货单",e),e.success?(m.value=!1,f(b.value[B.value],B.value),setTimeout((()=>{D(b.value[B.value],B.value)}),200)):(y.value=e.message,w.value=!0)}))},f=(e,t)=>{let l={refreshDataKey:e.id};gl(l).then((e=>{b.value[t]=e.result.records[0],p()}))},k=()=>{var e;(e={id:z.value.id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/startDirectiveServe`,method:"post",data:e})).then((e=>{e.success?(z.value.izStart="Y",I(b.value[B.value])):uni.showToast({icon:"none",title:e.message})}))},E=()=>{var e;(e={id:z.value.id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/finishDirectiveServe`,method:"post",data:e})).then((e=>{e.success?(z.value.izFinish="Y",I(b.value[B.value])):uni.showToast({icon:"none",title:e.message})}))},x=e.ref("loadmore"),V=()=>{"loading"!=x.value&&"nomore"!=x.value&&(x.value="loading",u.pageNo++,S())},b=e.ref([]),S=()=>{gl(u).then((e=>{b.value.push(...e.result.records),l("log","at pages/procurement/retstock.vue:306","red",e.result.records),x.value=e.result.total==b.value.length?"nomore":"loadmore",1==u.pageNo&&b.value.length>0&&(D(b.value[B.value],B.value),B.value=B.value,T.value=154*Math.floor(B.value-1),l("log","at pages/procurement/retstock.vue:313",b.value[B.value]),$(),yl({nuId:b.value[B.value].nuId,id:b.value[B.value].id}).then((e=>{l("log","at pages/procurement/retstock.vue:316",e),C.value=e.result}))),0==b.value.length&&(C.value=[])}))},B=e.ref(0),T=e.ref(0),C=e.ref([]),D=(e,t)=>{B.value=t,T.value=154*Math.floor(t-1),l("log","at pages/procurement/retstock.vue:331",e),$(),I(e),yl({nuId:e.nuId,id:e.id}).then((t=>{l("log","at pages/procurement/retstock.vue:335",{nuId:e.nuId,id:e.id}),C.value=t.result})),"N"==e.izRead&&_(e)},z=e.ref({}),I=e=>{var t;l("log","at pages/procurement/retstock.vue:344",{id:e.orderId}),(t={id:e.orderId},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/warehouse/queryOrderList`,method:"get",data:t})).then((e=>{z.value=e.result,l("log","at pages/procurement/retstock.vue:347",e),"N"==z.value.izStart&&"N"==z.value.izFinish&&(i.value=!0),"Y"==z.value.izStart&&"N"==z.value.izFinish&&(i.value=!1)}))},F=e.ref([]),_=(e,t)=>{hl({id:e.id}),e.izRead="Y"},M=(e,t)=>{var a;let i={pkId:b.value[B.value].id,kfId:t.kfId,wlId:null==(a=t.materialInfo)?void 0:a.id,thNum:e,nuId:b.value[B.value].nuId,elderId:b.value[B.value].elderId};var n;l("log","at pages/procurement/retstock.vue:370",i),(n=i,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/addThc`,method:"POST",data:n})).then((e=>{l("log","at pages/procurement/retstock.vue:372",e),e.success?(uni.showToast({icon:"success",title:"提交成功"}),setTimeout((()=>{f(b.value[B.value],B.value),D(b.value[B.value],B.value)}),800)):uni.showToast({icon:"none",title:e.result.message?e.result.message:e.message})}))},$=()=>{let e={pkId:b.value[B.value].id};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thcList`,method:"get",data:t})).then((e=>{F.value=e.result}))},L=()=>{let e={pkId:b.value[B.value].id};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/removeAll`,method:"POST",data:t})).then((e=>{e.success?D(b.value[B.value],B.value):uni.showToast({icon:"none",title:e.message})}))},j=e.ref({}),U=e=>{j.value=e,d.value=!0},P=()=>{var e;let t={pkId:b.value[B.value].id,wlId:null==(e=j.value.materialInfo)?void 0:e.id};var l;(l=t,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/removeWl`,method:"POST",data:l})).then((e=>{e.success?(D(b.value[B.value],B.value),d.value=!1):uni.showToast({icon:"none",title:e.message})}))},A=e.ref(!0),q=()=>{A.value=!1,setTimeout((()=>{A.value=!0}),300),u.showstart="",u.showend="",u.fqStartTime="",u.fqEndTime="",u.pageNo=1,b.value=[],S()},O=e=>{l("log","at pages/procurement/retstock.vue:453","res",e),u.showstart=e.start.replace(/-/g,"."),u.showend=e.end.replace(/-/g,"."),u.fqStartTime=e.start.replace(/-/g,".")+" 00:00:00",u.fqEndTime=e.end.replace(/-/g,".")+" 00:00:00",u.pageNo=1,b.value=[],l("log","at pages/procurement/retstock.vue:460","0000",u),S()};return(t,l)=>{var n,o,p,g,f,S;const I=a(e.resolveDynamicComponent("u-loadmore"),bt),_=e.resolveComponent("errorshow"),$=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock("view",{class:"all-bgc guodu",style:e.normalizeStyle([r.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.createElementVNode("view",{class:"serchs"},[e.createElementVNode("view",{class:"leftbtn"},[e.createElementVNode("view",{class:"ipt",onClick:l[0]||(l[0]=e=>s.value=!0)},[e.createElementVNode("view",{class:"more-time-select"},[e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 开始日期 ",512),[[e.vShow,!u.fqStartTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(u.showstart),513),[[e.vShow,u.fqStartTime]]),e.createElementVNode("view",{style:{"font-size":"32rpx"}}," 至 "),e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 结束日期 ",512),[[e.vShow,!u.fqEndTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(u.showend),513),[[e.vShow,u.fqEndTime]])])]),e.createElementVNode("view",{onClick:l[1]||(l[1]=e=>s.value=!0),class:"scr"},[e.createElementVNode("image",{src:al,mode:"aspectFill",class:"sh"}),e.createTextVNode(" 检索 ")]),e.createElementVNode("view",{class:"scr",onClick:q},[e.createElementVNode("image",{src:at,mode:"aspectFill"}),e.createElementVNode("view",null," 重置 ")])])]),e.createElementVNode("view",{class:"t-box"},[e.createElementVNode("view",{class:"leftscr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"leftscrol","scroll-top":T.value,"scroll-with-animation":"",onScrolltolower:V},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["card",l==B.value?"act":""]),key:l,onClick:e=>D(t,l)},["N"==t.izRead?(e.openBlock(),e.createElementBlock("view",{key:0,class:"rad"})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"hli"},[e.createElementVNode("view",{class:"lig"},[e.createElementVNode("image",{src:"/static/index/procurement/gys.png",mode:"aspectFill"}),e.createTextVNode(" "+e.toDisplayString(t.nuName),1)]),e.createElementVNode("view",{class:"rig"},[e.createElementVNode("image",{src:"/static/index/procurement/jx.png",mode:"aspectFill"}),e.createElementVNode("text",null,e.toDisplayString(t.statusText),1)])]),e.createElementVNode("view",{class:"cont"},[e.createElementVNode("view",{class:"conle"},[e.createElementVNode("image",{src:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,"退货")]),e.createElementVNode("view",{class:"ritcon",style:{"margin-top":"1.5vw"}},[e.createElementVNode("view",{class:"rq"},[e.createTextVNode(" 退货日期:"),e.createElementVNode("text",null,e.toDisplayString(null==(a=t.fqTime)?void 0:a.replace(/-/g,".").substring(0,10)),1)]),e.createElementVNode("view",{class:"rq"}," 申请人:"+e.toDisplayString(t.fqrName),1)])])],10,["onClick"])})),128)),0==b.value.length?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[b.value.length>4?(e.openBlock(),e.createBlock(I,{key:0,status:x.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],40,["scroll-top"])]),e.createElementVNode("view",{class:"rightscr"},[e.createElementVNode("view",{class:"thwl"},[e.createVNode(xl,{Material:F.value,onDelall:L,onDel:U,onSubmit:h,status:null==(n=b.value[B.value])?void 0:n.status},null,8,["Material","status"])]),e.createElementVNode("view",{class:"carditem"},[e.createVNode(bl,{InvoicingList:C.value,status:null==(o=b.value[B.value])?void 0:o.status,onComfig:M},null,8,["InvoicingList","status"])])])]),e.createVNode(El,{onBack:l[2]||(l[2]=e=>d.value=!1),show:d.value,font:"确定将该物料从本次退货清单中移除吗?",onRight:P},null,8,["show"]),e.createVNode(Sl,{show:m.value,list:F.value,onFill:l[3]||(l[3]=e=>m.value=!1),thdt:b.value[B.value],onConfig:N},null,8,["show","list","thdt"]),v.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"thdfed",onClick:l[4]||(l[4]=e=>uni.navigateTo({url:"/pages/procurement/authorization"}))},[e.createElementVNode("image",{src:"/static/index/procurement/thd.png",mode:"aspectFill"}),v.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mhao"},[e.createElementVNode("view",{class:"mhao-font"},e.toDisplayString(v.value),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),A.value?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:1,class:"calendar-father"},[e.createVNode(Bl,{onDatachange:O})],512)),[[e.vShow,s.value]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:e.normalizeStyle(s.value?{background:"transparent"}:{}),onClick:l[5]||(l[5]=e=>{s.value=!1})},null,4),[[e.vShow,s.value]]),e.createVNode(_,{show:w.value,font:y.value,onClose:l[6]||(l[6]=e=>w.value=!1)},null,8,["show","font"]),"N"==(null==(p=b.value[B.value])?void 0:p.orderIzFinish)&&z.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"fixed-card",style:e.normalizeStyle(i.value?{}:{right:"-34vw"})},[e.createElementVNode("view",{class:"fixed-card-left"},[e.createElementVNode("image",{class:"card-left-img",src:c.value+((null==(g=z.value)?void 0:g.netPreviewFileSmall)?null==(f=z.value)?void 0:f.netPreviewFileSmall:null==(S=z.value)?void 0:S.netPreviewFile)},null,8,["src"]),e.createElementVNode("view",{class:""},e.toDisplayString(z.value.directiveName),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"big-time"},e.toDisplayString(z.value.startTime.substring(0,10))+" - "+e.toDisplayString(z.value.endTime.substring(0,10)),1),e.createElementVNode("view",{class:"icon-people"},[e.createElementVNode("image",{class:"people-img",src:il}),e.createTextVNode(" "+e.toDisplayString(z.value.optTypeName)+" ",1),e.createElementVNode("image",{style:{"margin-left":"1vw"},class:"people-img",src:nl}),e.createTextVNode(" "+e.toDisplayString(z.value.employeeName),1)]),e.createElementVNode("view",{style:{color:"#555555"}}," 业务单号:"+e.toDisplayString(z.value.orderNo),1),e.createElementVNode("view",{class:"icon-button"},[e.createElementVNode("view",{class:e.normalizeClass(["","N"==z.value.izStart?"button-right":"button-left"]),onClick:l[7]||(l[7]=e=>k())}," 开始服务 ",2),e.createElementVNode("view",{class:e.normalizeClass("N"==z.value.izFinish&&"Y"==z.value.izStart?"button-right":"button-left"),onClick:l[8]||(l[8]=e=>E())}," 结束服务 ",2)])]),e.createElementVNode("view",{class:"left-open",onClick:l[9]||(l[9]=e=>i.value=!i.value)},[e.createElementVNode("image",{style:e.normalizeStyle(i.value?{}:{transform:"rotate(180deg)"}),class:"open-img",src:ol},null,4)])],4)):e.createCommentVNode("",!0),e.createVNode($)],4)}}}),[["__scopeId","data-v-655817e1"]]),Cl=s({__name:"specialDrawer",props:{widNumber:{type:Number,default:17}},setup(t,{expose:l}){const a=e.ref(!1),i=t,n=e.ref(0);e.onMounted((()=>{const e=uni.getSystemInfoSync();n.value=e.screenWidth})),e.ref(0);const o=e.ref(!0),r=e.ref(0),c=e.computed((()=>{const e=`${i.widNumber}%`;if(o.value){return{width:e,transform:`translateX(${r.value}px)`,transition:"none"}}return{width:e}}));function s(e){}function u(e){}function d(){}l({openDrawer:function(){a.value=!0},closeDrawer:function(){a.value=!0}});const m=e.ref(0);return e.computed((()=>({transform:`rotate(${m.value}deg)`,transition:"transform 0.6s ease"}))),(t,l)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:e.normalizeClass(["drawer",{"drawer-open":a.value}]),style:e.normalizeStyle(c.value)},[e.createElementVNode("view",{class:"drawer-content",onTouchstartPassive:s,onTouchmovePassive:u,onTouchend:d,onTouchcancel:d},[e.renderSlot(t.$slots,"default",{},void 0,!0)],32)],6)]))}},[["__scopeId","data-v-d51e4068"]]),Dl=s(e.defineComponent({__name:"index",props:{changerightbottom:{type:String,default:"标准"}},emits:["clickball"],setup(t,{emit:l}){const a=e.ref([{name:"返回",url:""},{name:"详情",url:""},{name:"周期",url:""},{name:"放大",url:"/static/index/getbig.png"},{name:"日常",url:""},{name:"缩小",url:"/static/index/getsmall.png"},{name:"全部",url:""},{name:"标准",url:""}]),i=l;return(l,n)=>(e.openBlock(),e.createElementBlock("view",{class:"draw-all"},[e.createElementVNode("view",{class:"button-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((l,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"white-ball",onClick:e=>(e=>{i("clickball",e)})(a)},[l.url?(e.openBlock(),e.createElementBlock("image",{key:0,style:{width:"50%",height:"50%"},src:l.url},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(5===a?t.changerightbottom:l.name),1))],8,["onClick"])))),128))])]))}}),[["__scopeId","data-v-fa724fae"]]),zl=s(e.defineComponent({__name:"indexnew",setup(t){e.ref(!1);const l=["00","05","10","15","20","25","30","35","40","45","50","55"];e.ref(["全部","日常","周期"]),e.ref(["放大","缩小"]);const a=e.ref(0);uni.getSystemInfoSync().windowWidth;const i=e=>{switch(e){case 0:uni.navigateBack();break;case 1:y.value&&w.value&&(x.value?x.value=!1:b(s.value[y.value].children[w.value],y.value,w.value));break;case 2:B(2);break;case 3:g(0);break;case 4:B(1);break;case 5:g(1);break;case 6:B(0);break;case 7:7===u.value?T(!1):T(!0)}};function n(e){if(e){let t=[],l=e,a=/([^((]*)[((]([^))]+)[))]/;for(;a.test(l);){let e=l.match(a);e&&(e[1].trim()&&t.push(e[1].trim()),e[2].trim()&&t.push(e[2].trim()),l=l.replace(e[0],"").trim())}return l.trim()&&t.push(l.trim()),t}return[]}const o=e.ref(0),c=e.ref(0),s=e.ref([]),u=e.ref(0),d=e.ref(247),m=e.ref(180);e.ref(0),e.ref(0);const v=["00","05","10","15","20","25","30","35","40","45","50","55"],p=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:v.map((e=>({tagName:e,directiveName:""})))}))));r((()=>{uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&J(uni.getStorageSync("nuId"),uni.getStorageSync("elderId")).then((e=>{e.result.serviceList.forEach((e=>{p.value[e.positioning].children[e.positioningLong]=e}))})),s.value=p.value,u.value=7,h()}));const g=e=>{e?u.value<24&&u.value++:u.value>7&&u.value--};function h(){if(y.value>=0&&y.value<=24&&w.value>=0&&w.value<=11){const e=(y.value+.5)*d.value,t=(w.value-.5)*m.value;o.value=e-1110,c.value=t-281.25;const l=24*d.value,a=11*m.value;o.value=Math.max(0,Math.min(o.value,l-2220))/2,c.value=Math.max(0,Math.min(c.value,a-562.5))/2}}const y=e.ref(10),w=e.ref(0);e.watch([y,w],(()=>{h()})),e.watch(u,((e,t)=>{if(t===e);else{switch(e){case 24:d.value=92.5,m.value=107;break;case 23:d.value=96.5,m.value=107;break;case 22:d.value=101,m.value=107;break;case 21:d.value=106,m.value=116;break;case 20:d.value=112,m.value=116;break;case 19:d.value=117,m.value=116;break;case 18:d.value=124,m.value=121;break;case 17:d.value=131,m.value=128;break;case 16:d.value=139,m.value=133;break;case 15:d.value=148,m.value=142;break;case 14:d.value=159,m.value=150;break;case 13:d.value=171,m.value=160;break;case 12:d.value=185,m.value=170;break;case 11:d.value=202,m.value=183;break;case 10:d.value=222,m.value=195;break;case 9:d.value=247,m.value=213;break;case 8:d.value=280,m.value=235;break;case 7:d.value=320,m.value=256}h()}}));const N=e.ref(0),f=e.ref(null);const k=e.ref(0),E=e.ref(0),x=e.ref(!1),V=e.ref(!1);e.ref(null);const b=(t,l,a)=>{t.directiveName&&e.nextTick((()=>{uni.createSelectorQuery().selectAll(".super-card-time-card").boundingClientRect((t=>{t.forEach((async t=>{t.dataset.index0==l&&t.dataset.index1==a&&(t.left<500?k.value=Math.floor(t.left)+510:k.value=Math.floor(t.left)-10,t.top<300?E.value=Math.floor(t.top)+250:E.value=Math.floor(t.top),await e.nextTick(),x.value=!0,V.value=!1,setTimeout((()=>{V.value=!0}),100))}))})).exec()}))},S=(e,t)=>{uni.navigateBack({delta:1,success:()=>{uni.$emit("where",{index0:e,index1:t})}})},B=e=>{if(a.value!==e)switch(s.value=[],a.value=e,e){case 0:s.value=JSON.parse(JSON.stringify(p.value));break;case 1:s.value=JSON.parse(JSON.stringify(p.value)),s.value.forEach((e=>{e.children.forEach((e=>{e.directiveName&&"日常"!==e.cycleType&&(e.directiveName="",e.cycleType="",e.startTime="")}))}));break;case 2:s.value=JSON.parse(JSON.stringify(p.value)),s.value.forEach((e=>{e.children.forEach((e=>{e.directiveName&&"日常"===e.cycleType&&(e.directiveName="",e.cycleType="",e.startTime="")}))}))}};function T(e){u.value=e?7:24}return(t,a)=>{var r,v;return e.openBlock(),e.createElementBlock("view",{class:"doctorsay-container-container"},[e.createElementVNode("view",{class:"super-card"},[e.createElementVNode("view",{class:"super-card-container"},[e.createElementVNode("scroll-view",{style:{height:"100%",width:"100%"},"scroll-left":o.value,"scroll-x":"","scroll-with-animation":"","show-scrollbar":!1},[e.createElementVNode("view",{style:e.normalizeStyle([{width:24*d.value+"rpx"},{display:"flex"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time",style:e.normalizeStyle({width:d.value+"rpx"})},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":00"),5)])))),128))],4),e.createElementVNode("view",{style:e.normalizeStyle([{display:"flex",height:"calc(100% - 80rpx)",position:"relative"},{width:24*d.value+"rpx"}])},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{"scroll-y":"","show-scrollbar":!1,"scroll-top":c.value,"scroll-with-animation":""},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:"super-card-time-und",style:e.normalizeStyle({width:d.value+"rpx"})},[e.createElementVNode("view",{class:"bottom-bian"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((i,o)=>{return e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:o},[e.createElementVNode("view",{style:e.normalizeStyle({height:m.value+"rpx"}),class:"super-card-time-card",onClick:e=>function(e,t,l){const a=Date.now();x.value&&(x.value=!1),null!=f.value&&clearTimeout(f.value),a-N.value<250?(e.startTime&&S(t,l),N.value=0):(y.value=t,w.value=l,N.value=a)}(i,a,o),"data-index0":a,"data-index1":o},[e.createElementVNode("view",{class:e.normalizeClass((r=i,"日常"===r.cycleType?"title-time-border-yellow":r.cycleType?"title-time-border-pouple":"title-time-border")),style:e.normalizeStyle([u.value>=11&&"日常"!==i.cycleType&&i.startTime?{backgroundColor:"#c5e5ff"}:{},{"font-size":"30rpx",position:"relative"}])},[e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},null,512),[[e.vShow,y.value==a&&w.value==o]]),i.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column",overflow:"hidden"}},[e.withDirectives(e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx",margin:"0 auto"},src:i.netImmediateFile?i.netImmediateFile:"/static/logo.png"},null,8,["src"]),[[e.vShow,i.startTime]]),e.withDirectives(e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(i.startTime+"-"+i.endTime),513),[[e.vShow,u.value<10]]),"日常"!=i.cycleType?e.withDirectives((e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e},null,512)),[[e.vShow,u.value<11]]):e.createCommentVNode("",!0),"日常"!=i.cycleType?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"20rpx"}},e.toDisplayString(i.cycleType),513)),[[e.vShow,u.value<11]]):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),i.startTime?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-rel"},e.toDisplayString(n(i.directiveName)[0]),513)),[[e.vShow,u.value<11]]):e.createCommentVNode("",!0),y.value!=a||w.value!=o||i.startTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+l[o]),1))],6)],12,["onClick","data-index0","data-index1"])]);var r})),128))],4)])))),128))])],8,["scroll-top"])],4)],8,["scroll-left"])])]),e.createVNode(Cl,{ref:"gobackdrawer"},{default:e.withCtx((()=>[e.createVNode(Dl,{onClickball:i,changerightbottom:7===u.value?"缩略图":"标准"},null,8,["changerightbottom"])])),_:1},512),e.withDirectives(e.createElementVNode("view",{class:"popup-overlay-content",style:e.normalizeStyle({top:2*E.value-350+"rpx",left:2*k.value-780+"rpx",opacity:V.value?1:0,backgroundColor:"日常"===(null==(v=null==(r=p.value[w.value])?void 0:r.children[y.value])?void 0:v.type)?"#fffcf6":"rgb(246, 244, 254)"}),onClick:a[0]||(a[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"popup-overlay-content-left"},[e.createElementVNode("image",{class:"popup-overlay-content-left-img",src:"/static/index/teeth.png"},null,8,["src"]),e.createElementVNode("text",{class:"popup-overlay-content-left-font"}," 占个位置 ")]),e.createElementVNode("view",{class:"popup-overlay-content-right"},[e.createElementVNode("view",{class:"time-font"}," 10:00 - 10:10 "),e.createElementVNode("view",{class:"time-text"}," 为老人提供口腔清洁器具,牙膏、牙刷及水杯,看护完成 ")])],4),[[e.vShow,x.value]])])}}}),[["__scopeId","data-v-147728f9"]]),Il="/static/index/keyimg/deletebutton.png",Fl="/static/index/warehouse/procurement/picking/noarray.png",_l="/static/index/warehouse/procurement/picking/data.png",Ml="/static/index/warehouse/procurement/picking/center.png",$l="/static/shili.png",Ll="/static/index/warehouse/procurement/picking/loading.png",jl="/static/index/warehouse/procurement/picking/nomessage.png",Ul="/static/index/youngman.png",Pl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdList`,method:"get",data:e}),Al=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdInfoList`,method:"get",data:e}),ql=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/voidedCgdMain`,method:"post",data:e}),Ol=()=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getCgrList`,method:"get"}),Yl=()=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGysList`,method:"get"}),Rl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editPrice`,method:"post",data:e}),Wl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pickingInfo`,method:"post",data:e}),Jl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/querySxdList`,method:"get",data:e}),Ql=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/addSxd`,method:"post",data:e}),Gl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryJhzpList`,method:"get",data:e}),Xl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryPickingRecordList`,method:"get",data:e}),Hl=e=>g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editIzNew`,method:"post",data:e}),Zl=s(e.defineComponent({__name:"picking",props:{isShow:{type:Boolean}},setup(t){const a=t;e.watch((()=>a.isShow),((e,t)=>{!t&&e?(G(),F(),i.value=!1,setTimeout((()=>{i.value=!0}),50)):i.value=!1})),e.onMounted((()=>{G(),F(),i.value=!1,setTimeout((()=>{i.value=!0}),50)}));const i=e.ref(!1),n=e.ref(0),o=e.ref(0),r=e.ref(""),c=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),s=e.ref(!1),u=e.ref(!1),d=e.ref(!1),m=e.ref(!1),v=e.ref(""),p=()=>{Rl({id:ee.value.id,arrivalPrice:v.value}).then((e=>{l("log","at pages/Warehouse/picking.vue:1107","res",e),200==e.code&&(ee.value.arrivalPrice=v.value,ee.value.totalPrice=Number(v.value)*Number(ee.value.purchaseQuantity),W.value[K.value].totalPrice=e.result.totalPrice,s.value=!1)}))};function g(e){if(u.value&&(v.value="",u.value=!1),"AC"!==e)if("."!==e){if(/^\d$/.test(e)){if(v.value.includes(".")){const[t,l]=v.value.split(".");return void((l||"").length<2&&(v.value+=e))}let t=v.value;"0"===t&&(t=""),t.length<4&&(v.value=t+e)}}else v.value.includes(".")||(v.value=""===v.value?"0.":v.value+".");else v.value="0"}const h=()=>{0!=ee.value.jianhuobtn&&(d.value=!0,De.value=!0,fe.value=!1,setTimeout((()=>{fe.value=!0}),100))},y=()=>{s.value=!0,u.value=!0,v.value=(ee.value.arrivalPrice?ee.value.arrivalPrice:ee.value.procurementPrice).toString(),fe.value=!1,setTimeout((()=>{fe.value=!0}),100)},w=e.ref([]),N=()=>{l("log","at pages/Warehouse/picking.vue:1187","?????????"),w.value=[],S.value=U.cgBy,Y()};function f(e,t){const l=String(e??"").toLowerCase(),a=String(t??"").toLowerCase().trim();if(!a)return!0;if(l.includes(a))return!0;let i=0;for(let n=0;n<l.length&&i<a.length;n++)l[n]===a[i]&&i++;return i===a.length}let k=null;function E(e){var t;if(!e.detail.value)return U.cgBy="",w.value=[],void de();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();k&&clearTimeout(k),k=setTimeout((()=>{l?(w.value=z.value.filter((e=>f(null==e?void 0:e.cgBy,l))),w.value.length||w.value.push({cgBy:"暂无数据"})):w.value=z.value.slice()}),300)}const x=e.ref([]),V=e.ref(-1),b=()=>{x.value=[],B.value="",U.suppliers="",Y()},S=e.ref(""),B=e.ref("");function T(e){var t;if(!e.detail.value)return U.suppliers="",x.value=[],V.value=-1,B.value="",void de();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();k&&clearTimeout(k),k=setTimeout((()=>{l?(x.value=I.value.filter((e=>f(null==e?void 0:e.suppliersName,l))),x.value.length||x.value.push({suppliersName:"暂无数据"})):x.value=I.value.slice()}),300)}const C=e.ref(!1),D=e.ref(!1),z=e.ref([]),I=e.ref([]),F=()=>{Ol().then((e=>{z.value=e.result})),Yl().then((e=>{I.value=e.result}))},_=e.ref(!1);e.ref("");const M=e.ref(0),$=["待入库","待完结","已完结"],L=e.ref(-1);e.ref(0);const U=e.reactive({pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:"",suppliers:"",cgdType:"0,1",startTime:"",endTime:"",cgBy:"",nuId:uni.getStorageSync("nuId"),status:""}),P={pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:"",suppliers:"",cgdType:"0,1",startTime:"",endTime:"",cgBy:"",nuId:uni.getStorageSync("nuId")},A=e.ref(!0),q=()=>{A.value=!1,setTimeout((()=>{A.value=!0}),300),Object.assign(U,P),S.value="",B.value="",de()},O=e=>{U.startTime=e.start,U.endTime=e.end,Y()},Y=()=>{let e={...U,pageNo:1};Pl(e).then((e=>{J.value=e.result.total}))},R=e.ref(0),W=e.ref([]),J=e.ref(0),Q=e.ref(!1),G=()=>{Pl(U).then((e=>{W.value.push(...e.result.records),J.value=e.result.total,e.result.total||(Q.value=!0),e.result.records.length&&(te.cgdId=W.value[0].id,oe(0)),e.result.records.length<U.pageSize&&(U.canpull=!1)}))},X=e.ref(!0),H=()=>{X.value&&(U.pageNo++,Z(),X.value=!1,setTimeout((()=>{X.value=!0}),500))},Z=()=>{U.canpull&&Pl(U).then((e=>{W.value.push(...e.result.records),J.value=e.result.total,e.result.records.length<U.pageSize&&(U.canpull=!1)}))},K=e.ref(0),ee=e.ref({materialImg:"",cgrvalue:"",gysvalue:"",wlName:"",procurementPrice:"",wlMaterialNo:"",wlSpecificationModel:"",purchaseQuantity:"",wlUnits:"",kcsl:"",wlUpperLimit:"",wlLowerLimit:"",suppliersName:"",jianhuobtn:!1}),te=e.reactive({nuId:"",pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0,canpull:!0}),le={nuId:"",pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0},ae=e.ref(0),ie=e=>{M.value=e,ee.value=ne.value[e],ee.value.jianhuobtn=!1,ae.value=172*(e-2),(0==Number(ee.value.status)||Number(ee.value.status)>0&&Number(ee.value.wrksl)>0)&&(ee.value.maxnum=0==ee.value.rksl&&0==ee.value.wrksl&&0==ee.value.xzsl?ee.value.purchaseQuantity:ee.value.wrksl,ee.value.num=ee.value.maxnum,r.value=Fe(ee.value.num),ee.value.jianhuobtn=!0),Object.assign(te,le),ce.value=1,re.value=[],ue()},ne=e.ref([]),oe=e=>{Al(te).then((t=>{ne.value=t.result.records,ie(e)}))},re=e.ref([]),ce=e.ref(1),se=e.ref("loading"),ue=()=>{let e={cgdId:ee.value.cgdId,wlId:ee.value.wlId,pageNo:ce.value,pageSize:10};Xl(e).then((e=>{re.value.push(...e.result.records),se.value=e.result.total==re.value.length||0==e.result.records.length?"nomore":"loadmore"}))},de=()=>{U.pageNo=1,W.value=[],U.canpull=!0,Pl(U).then((e=>{W.value.push(...e.result.records),J.value=e.result.total,e.result.records.length&&(te.cgdId=W.value[0].id,oe(0)),e.result.records.length<U.pageSize&&(U.canpull=!1)}))},me=e.ref(-1);e.ref(-1);const ve=e.ref(!1),pe=e.ref(!1),ge=()=>{l("log","at pages/Warehouse/picking.vue:1585","-----------------------\x3e 点击分享按钮"),uni.share({provider:"weixin",scene:"WXSceneSession",type:0,href:"https://www.baidu.com/",title:"采购单分享",summary:"采购单",imageUrl:"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",success:function(e){uni.showToast({title:e,icon:"none",duration:2e4})},fail:function(e){uni.showToast({title:e,icon:"none",duration:2e4})}})},he=e.ref(!1),ye=()=>{var e;!Number(null==(e=W.value[K.value])?void 0:e.status)&&W.value.length&&(he.value=!0,me.value=-1)},we=()=>{ql({id:W.value[K.value].id}).then((e=>{e.success?(uni.showToast({title:e.message,icon:"success",duration:2e3}),K.value=0,he.value=!1,ne.value=[],W.value=[],Object.assign(U,P),Object.assign(te,le),G()):(uni.showToast({title:e.message,icon:"none",duration:2e3}),he.value=!1)}))},fe=e.ref(!1),ke=e.ref([]),Ee=e.ref([]),xe=e=>{1==e?be():Ve(),L.value=e,fe.value=!1,setTimeout((()=>{fe.value=!0}),100)};e.ref(1);const Ve=()=>{let e={cgdId:W.value[K.value].id};Gl(e).then((e=>{Ee.value=e.result}))},be=()=>{let e={cgdId:W.value[K.value].id,pageNo:1,pageSize:-1};Jl(e).then((e=>{ke.value=e.result.records}))},Se=e.ref([]),Be=e=>{uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:t=>{let l=JSON.stringify(t.tempFilePaths);uni.compressImage({src:JSON.parse(l)[0],quality:60,success:t=>{e?1==e&&(e=>{let t=new Date,l=t.getFullYear(),a=t.getMonth()+1;uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:e,name:"file",formData:{biz:l+"/"+a+"/sxdPic"},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);Ql({sxdPic:t.message,cgdId:W.value[K.value].id}).then((e=>{e.success&&be()}))},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})})(t.tempFilePath):Se.value.push(t.tempFilePath)}})}})},Te=(e,t,l,a)=>{if(1==a){let e=[];l.forEach((t=>{e.push(c.value+t.sxdPic)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}else if(2==a){let e=[];l.forEach((t=>{e.push(c.value+t.jhPic)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}else uni.previewImage({current:t,urls:l,showmenu:!1,longPressActions:{itemList:[]}})},Ce=e.ref(-1),De=e.ref(!1),ze=e=>"AC"==e?(ee.value.num=0,void(r.value=Fe(ee.value.num))):"AE"==e?(ee.value.num=Math.trunc(ee.value.num/10),void(r.value=Fe(ee.value.num))):1==De.value?(ee.value.num=e,De.value=!1,void(r.value=Fe(ee.value.num))):void(Ie(ee.value.num)>3||(ee.value.num?ee.value.num=10*ee.value.num+e:ee.value.num=e,r.value=Fe(ee.value.num))),Ie=e=>Math.abs(e).toString().length,Fe=e=>{const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")},_e=e.ref(null),Me=e=>{Le(e)},$e=()=>{clearInterval(_e.value)},Le=e=>{_e.value=setInterval((()=>{je(e)}),120)},je=e=>{let t=ee.value.maxnum;t<=ee.value.num&&1==e?ee.value.num=t:ee.value.num<=1&&-1==e?ee.value.num=1:(ee.value.num+=e,r.value=Fe(ee.value.num))},Ue=e.ref(!1),Pe=e.ref(""),Ae=e=>{let t="";qe.value.forEach((e=>{t+=e+","}));let l={jhId:ee.value.id,jhNum:ee.value.num,jhType:e,jhPic:""==t?null:t,cgdId:ee.value.cgdId};Wl(l).then((e=>{e.success?(uni.showToast({icon:e.success?"success":"none",title:e.message?e.message:"操作成功"}),W.value[K.value].totalPrice=e.result.cgdTotalPrice,Se.value=[],qe.value=[],d.value=!1,n.value=0,te.cgdId=W.value[K.value].id,W.value[K.value]=e.result.cgdInfo,setTimeout((()=>{oe(M.value)}),700)):(qe.value=[],Pe.value=e.message,Ue.value=!0)}))},qe=e.ref([]),Oe=e=>{if(0==Se.value.length)return void Ae(e);let t=new Date,a=t.getFullYear(),i=t.getMonth()+1;Se.value.forEach((t=>{uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:t,name:"file",formData:{biz:a+"/"+i+"/jhPic"},header:{"X-Access-Token":uni.getStorageSync("token")},success:t=>{const a=JSON.parse(t.data);qe.value.push(a.message),l("log","at pages/Warehouse/picking.vue:1903",qe.value),qe.value.length==Se.value.length&&Ae(e)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})}))},Ye=e=>{Number(r.value)?1==e?n.value=2:Oe(0):uni.showToast({title:"数量为0的时候,无法销账或入库",icon:"none"})},Re=[210,210,210],We=[50,152,255],Je=e.ref(0);function Qe(e,t,l){return Math.round(e+(t-e)*l)}function Ge(e){return"#"+e.map((e=>e.toString(16).padStart(2,"0"))).join("")}const Xe=e.computed((()=>{const e=[];for(let t=0;t<8;t++){const l=(Je.value+t/8)%1,a=[Qe(Re[0],We[0],l),Qe(Re[1],We[1],l),Qe(Re[2],We[2],l)];e.push(Ge(a))}return e})),He=e.computed((()=>({width:"180rpx",height:"70rpx",padding:"2rpx",borderRadius:"40rpx",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",position:"relative"}))),Ze=e.computed((()=>({position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:"40rpx",overflow:"hidden",display:"flex",flexDirection:"row",zIndex:1}))),Ke=e.computed((()=>({width:"calc(100% - 4rpx)",height:"calc(100% - 4rpx)",borderRadius:"36rpx",backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2}))),et=e.computed((()=>({color:Xe.value[0]||Ge(Re),fontSize:"30rpx",fontWeight:"600",zIndex:3})));let tt=null;return e.onMounted((()=>{const e=Math.max(1,Math.round(1e3/120));tt=setInterval((()=>{Je.value+=1/e,Je.value>=1&&(Je.value-=1)}),120)})),e.onUnmounted((()=>{tt&&clearInterval(tt)})),e.ref(!1),(t,a)=>{var u,f,k,z,I,F,P,G,X;const Z=e.resolveComponent("tanchuang"),le=e.resolveComponent("errorshow"),oe=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock("view",{class:"contain guodu",style:e.normalizeStyle([i.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.withDirectives(e.createElementVNode("view",{class:"mengban",style:e.normalizeStyle(C.value||D.value||m.value?{background:"transparent"}:{}),onClick:a[0]||(a[0]=e=>{me.value=-1,L.value=-1,d.value=!1,s.value=!1,m.value=!1,C.value=!1,D.value=!1,Se.value=[]})},null,4),[[e.vShow,-1!=me.value||-1!=L.value||d.value||s.value||m.value]]),Q.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",style:{background:"#fff",width:"100vw",right:"0",left:"0",top:"-5vh",height:"110vh"}},[e.createVNode(tl,{cont:"暂无数据",style:{"z-index":"999"}})])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:b},null,512),[[e.vShow,x.value.length&&B.value]]),x.value.length&&B.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"input-next",style:{bottom:"450rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>((e,t)=>{x.value=[],U.suppliers=e.suppliers,B.value=e.suppliersName,V.value=t,Y()})(t,l)},e.toDisplayString(t.suppliersName),9,["onClick"])),[[e.vShow,"暂无数据"!=x.value[0].suppliersName]]))),128)),"暂无数据"===x.value[0].suppliersName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"}," 暂无数据 ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:N},null,512),[[e.vShow,w.value.length&&S.value]]),w.value.length&&S.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"input-next"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>(e=>{w.value=[],U.cgBy=e.cgBy,S.value=U.cgBy,Y()})(t)},e.toDisplayString(t.cgBy),9,["onClick"])),[[e.vShow,"暂无数据"!=w.value[0].cgBy]]))),128)),"暂无数据"===w.value[0].cgBy?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"}," 暂无数据 ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),A.value?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:3,class:"calendar-father"},[e.createVNode(Bl,{onDatachange:O})],512)),[[e.vShow,m.value]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"gaijiafather",style:e.normalizeStyle(fe.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{style:{width:"100%","margin-top":"50rpx","font-size":"30rpx"}},[e.createTextVNode(" 采购单价: "),e.createElementVNode("text",{style:{color:"#888888"}}," ¥"+e.toDisplayString(v.value),1)]),e.createElementVNode("view",{style:{"margin-top":"150rpx",display:"flex","align-items":"center","flex-direction":"column",width:"50%"}},[e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"10rpx"}}," 到货单价 "),e.createElementVNode("view",{class:"gray-input",style:{width:"410rpx"}}," ¥ "+e.toDisplayString(v.value),1)]),e.createElementVNode("view",{style:{position:"absolute",right:"30rpx",bottom:"30rpx"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{onClick:a[1]||(a[1]=e=>s.value=!1),style:{width:"160rpx",height:"75rpx","background-color":"#ebeced",color:"#888888",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx"}}," 取消 "),e.createElementVNode("view",{onClick:p,style:{width:"160rpx",height:"75rpx",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx",border:"1rpx solid #0385FA",background:"linear-gradient(to bottom,#E9F4FF,#CAE0F9)",margin:"0 40rpx"}}," 确定 ")])]),e.createElementVNode("view",{class:"jianhuo-jianpan",style:{right:"-40rpx",bottom:"150rpx"}},[e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[2]||(a[2]=e=>g("1"))}," 1 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[3]||(a[3]=e=>g("2"))}," 2 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[4]||(a[4]=e=>g("3"))}," 3 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[5]||(a[5]=e=>g("4"))}," 4 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[6]||(a[6]=e=>g("5"))}," 5 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[7]||(a[7]=e=>g("6"))}," 6 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[8]||(a[8]=e=>g("7"))}," 7 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[9]||(a[9]=e=>g("8"))}," 8 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[10]||(a[10]=e=>g("9"))}," 9 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",style:{"font-size":"30rpx"},onClick:a[11]||(a[11]=e=>g("AC"))}," 清零 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[12]||(a[12]=e=>g("0"))}," 0 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[13]||(a[13]=e=>g("."))}," . ")])])],4),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("view",{class:"jianhuofather guodu",style:e.normalizeStyle(fe.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{style:{margin:"40rpx 0",width:"100%","text-align":"center","font-size":"35rpx","font-weight":"600"}},e.toDisplayString(ee.value.wlName),1),e.createElementVNode("view",{style:{display:"flex","justify-content":"space-between",width:"100%"}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx"}}," 物料信息 "),e.createElementVNode("view",{style:{"font-weight":"600","font-size":"35rpx",color:"#555555"}}," ¥"+e.toDisplayString(ee.value.totalPrice),1)]),e.createElementVNode("view",{style:{display:"flex","margin-top":"10rpx"}},[e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 物料编码 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(ee.value.wlMaterialNo),1)]),e.createElementVNode("view",{style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","white-space":"nowrap","font-size":"25rpx"}}," 规格型号 "),e.createElementVNode("view",{style:{"margin-top":"5rpx","font-size":"34rpx","white-space":"nowrap",display:"flex","flex-wrap":"nowrap"}},e.toDisplayString(ee.value.wlSpecificationModel),1)])]),e.createElementVNode("view",{style:{display:"flex","margin-top":"15rpx"}},[e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 采购单价 "),e.createElementVNode("view",{class:"text-anim",style:{"margin-top":"5rpx","font-weight":"600","font-size":"34rpx"}}," ¥"+e.toDisplayString(ee.value.arrivalPrice?Number(ee.value.arrivalPrice).toFixed(2):Number(ee.value.procurementPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 采购数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-weight":"600","font-size":"34rpx"}},e.toDisplayString(ee.value.purchaseQuantity),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 采购单位 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(ee.value.wlUnits),1)])]),e.createElementVNode("view",{style:{width:"95%",height:"0.5rpx","background-color":"#eff1f3","margin-top":"10rpx","margin-bottom":"5rpx"}}),e.createElementVNode("view",{style:{}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx","margin-top":"10rpx"}}," 入库信息 ")]),e.createElementVNode("view",{style:{display:"flex","margin-top":"10rpx"}},[e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 入库数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(ee.value.rksl),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 挂账数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(ee.value.wrksl),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 销账数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(ee.value.xzsl),1)])]),e.createElementVNode("view",{style:{width:"95%",height:"0.5rpx","background-color":"#eff1f3","margin-top":"10rpx","margin-bottom":"5rpx"}}),e.createElementVNode("view",{style:{}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx","margin-top":"10rpx"}}," 拣货拍照 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap",width:"60%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Se.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"moban-photo",key:l},[e.createElementVNode("view",{onClick:e.withModifiers((e=>{Ce.value=l,n.value=1}),["stop"])},[e.createElementVNode("image",{src:Il,mode:"aspectFill",style:{width:"75%",height:"70%"}})],8,["onClick"]),e.createElementVNode("image",{style:{width:"100%",height:"100%"},src:t||"/static/zhanwei.png",mode:"aspectFill",onClick:e=>Te(0,l,Se.value)},null,8,["src","onClick"])])))),128)),Se.value.length<4?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"40%",height:"150rpx","margin-right":"4%","margin-top":"3%"},onClick:a[14]||(a[14]=e=>Be(0))},[e.createElementVNode("view",{class:"moban-photo-special"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-bottom":"5rpx"},src:Ne}),e.createElementVNode("view",{style:{color:"#78B1EB","font-size":"25rpx"}}," 点击拍照上传 ")])])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{width:"87%",height:"0.5rpx","background-color":"#eff1f3","margin-top":"10rpx","margin-bottom":"5rpx"}})]),e.createElementVNode("view",{style:{}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx"}}," 数量 ")]),e.createElementVNode("view",{style:{display:"flex","margin-top":"20rpx"}},[e.createElementVNode("view",{class:"gray-button",onClick:a[15]||(a[15]=e=>je(-1)),onLongpress:a[16]||(a[16]=e=>Me(-1)),onTouchend:$e}," - ",32),e.createElementVNode("view",{class:"gray-input",style:{width:"12vw"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,l)=>(e.openBlock(),e.createElementBlock("text",{key:l},e.toDisplayString(t),1)))),128))]),e.createElementVNode("view",{class:"gray-button",onClick:a[17]||(a[17]=e=>je(1)),onLongpress:a[18]||(a[18]=e=>Me(1)),onTouchend:$e}," + ",32)]),e.createElementVNode("view",{class:"jianhuobutton"},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{onClick:a[19]||(a[19]=e=>{d.value=!1,De.value=!1}),style:{width:"160rpx",height:"75rpx","background-color":"#ebeced",color:"#888888",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx"}}," 关闭 "),e.createElementVNode("view",{onClick:a[20]||(a[20]=e=>Ye(1)),style:{width:"160rpx",height:"75rpx",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx",border:"1rpx solid #0385FA",background:"linear-gradient(to bottom,#E9F4FF,#CAE0F9)",margin:"0 20rpx"}}," 销账 "),e.createElementVNode("view",{onClick:a[21]||(a[21]=e=>Ye(0)),style:{width:"160rpx",height:"75rpx",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx",border:"1rpx solid #0385FA",background:"linear-gradient(to bottom,#E9F4FF,#CAE0F9)"}}," 入库 ")])]),e.createElementVNode("view",{class:"jianhuo-jianpan"},[e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[22]||(a[22]=e=>ze(1))}," 1 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[23]||(a[23]=e=>ze(2))}," 2 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[24]||(a[24]=e=>ze(3))}," 3 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[25]||(a[25]=e=>ze(4))}," 4 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[26]||(a[26]=e=>ze(5))}," 5 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[27]||(a[27]=e=>ze(6))}," 6 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[28]||(a[28]=e=>ze(7))}," 7 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[29]||(a[29]=e=>ze(8))}," 8 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[30]||(a[30]=e=>ze(9))}," 9 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",style:{"font-size":"30rpx"},onClick:a[31]||(a[31]=e=>ze("AC"))}," 清零 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[32]||(a[32]=e=>ze(0))}," 0 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:a[33]||(a[33]=e=>ze("AE"))},[e.createElementVNode("image",{src:Tt,mode:"aspectFill",style:{width:"50%",height:"50%"}})])])])],4),[[e.vShow,d.value]]),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(fe.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(L.value?"随行单":"拣货照片"),1),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{class:"photowall-left"}," 采购单号: "),e.createElementVNode("text",{class:"photowall-right"},e.toDisplayString(null==(u=W.value[K.value])?void 0:u.cgdNo),1)])]),0==L.value?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ee.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>Te(0,l,Ee.value,2)},[e.createElementVNode("image",{style:{width:"100%",height:"70%","border-radius":"30rpx"},src:t.jhPic?c.value+t.jhPic:"/static/ceshiyaoshan.png",mode:"aspectFill","lazy-load":!0},null,8,["src"]),e.createElementVNode("view",{style:{"margin-top":"20rpx"}},[e.createElementVNode("text",{style:{color:"#888888"}}," 上传时间: "),e.createElementVNode("text",{style:{"margin-left":"15rpx"}},e.toDisplayString(t.createTime.replace(/-/g,".")),1)]),e.createElementVNode("view",{style:{"margin-top":"10rpx"}},[e.createElementVNode("text",{style:{color:"#888888","letter-spacing":"8.9rpx"}}," 上传人: "),e.createElementVNode("text",null,e.toDisplayString(t.createBy),1)])],8,["onClick"])))),128)),Ee.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"noarray"},[e.createElementVNode("image",{class:"noarray-img",src:Fl,mode:"aspectFill"}),e.createElementVNode("view",{class:"noarray-font"}," 暂无拣货照片 ")]))])):e.createCommentVNode("",!0),1==L.value?(e.openBlock(),e.createElementBlock("scroll-view",{key:1,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"",style:{"margin-top":"0 !important"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ke.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>Te(0,l,ke.value,1)},[e.createElementVNode("image",{style:{width:"100%",height:"70%","border-radius":"30rpx"},src:t.sxdPic?c.value+t.sxdPic:"/static/ceshiyaoshan.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{style:{"margin-top":"20rpx"}},[e.createElementVNode("text",{style:{color:"#888888"}}," 上传时间: "),e.createElementVNode("text",{style:{"margin-left":"15rpx"}},e.toDisplayString(t.createTime.replace(/-/g,".")),1)]),e.createElementVNode("view",{style:{"margin-top":"10rpx"}},[e.createElementVNode("text",{style:{color:"#888888","letter-spacing":"8.9rpx"}}," 上传人: "),e.createElementVNode("text",null,e.toDisplayString(t.createBy),1)])],8,["onClick"])))),128)),1==L.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"photowall-other-one"},[e.createElementVNode("view",{style:{width:"100%",height:"71%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",position:"absolute",top:"1vw",left:"0","background-color":"#fafdff",border:"1rpx solid #78B1EB","border-radius":"30rpx"},onClick:a[34]||(a[34]=e=>Be(1))},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:Ne}),e.createElementVNode("view",{style:{color:"#78B1EB"}}," 点击拍照上传 ")])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4),[[e.vShow,-1!=L.value]]),e.createElementVNode("view",{class:"contain-left"},[e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:a[35]||(a[35]=e=>_.value=!1)},null,512),[[e.vShow,_.value]]),e.withDirectives(e.createElementVNode("view",{class:"left-select-more"},[e.createElementVNode("view",{class:"more-bottom"},[e.createElementVNode("view",{class:"bottom-left",onClick:q}," 重置 "),e.createElementVNode("view",{class:"bottom-right",onClick:a[36]||(a[36]=e=>{_.value=!1,de()})},[e.createTextVNode(" 确定 "),J.value?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"font-size":"25rpx","margin-top":"5rpx"}}," ("+e.toDisplayString(J.value)+"采购单) ",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"more-title"}," 采购单状态 "),e.createElementVNode("view",{class:"more-statues-father"},[e.createElementVNode("view",{class:e.normalizeClass(""==U.status?"more-statues-button-target":"more-statues-button"),onClick:a[37]||(a[37]=e=>{U.cgdType="0,1",U.status="",de()})}," 全部 ",2),e.createElementVNode("view",{class:e.normalizeClass("0"==U.status?"more-statues-button-target":"more-statues-button"),onClick:a[38]||(a[38]=e=>{U.cgdType="0",U.status="0",de()})}," 待入库 ",2),e.createElementVNode("view",{class:e.normalizeClass("1"==U.status?"more-statues-button-target":"more-statues-button"),onClick:a[39]||(a[39]=e=>{U.cgdType="0",U.status="1",de()})}," 待完结 ",2)]),e.createElementVNode("view",{class:"more-time"}," 采购日期 "),e.createElementVNode("view",{class:"more-time-select",onClick:a[40]||(a[40]=e=>m.value=!m.value)},[e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 开始日期 ",512),[[e.vShow,!U.startTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(U.startTime),513),[[e.vShow,U.startTime]]),e.createElementVNode("view",{style:{"font-size":"32rpx"}}," 至 "),e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 结束日期 ",512),[[e.vShow,!U.endTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(U.endTime),513),[[e.vShow,U.endTime]]),e.createElementVNode("image",{class:"more-img",src:_l})]),e.createElementVNode("view",{class:"more-select"}," 采购人 "),e.createElementVNode("view",{class:"more-time-select",onClick:a[42]||(a[42]=e=>C.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":a[41]||(a[41]=e=>S.value=e),placeholder:"请输入采购人","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:E},null,544),[[e.vModelText,S.value]]),e.createElementVNode("image",{class:"select-img",src:Ml})]),e.createElementVNode("view",{class:"more-select"}," 供应商 "),e.createElementVNode("view",{class:"more-time-select",onClick:a[44]||(a[44]=e=>D.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":a[43]||(a[43]=e=>B.value=e),placeholder:"请输入供应商","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:T},null,544),[[e.vModelText,B.value]]),e.createElementVNode("image",{class:"select-img",src:Ml})])],512),[[e.vShow,_.value]]),e.createElementVNode("view",{class:"title-input-father"},[e.withDirectives(e.createElementVNode("input",{class:"title-input",type:"text","onUpdate:modelValue":a[45]||(a[45]=e=>U.cgdParamInfo=e),maxlength:"15",placeholder:"采购单号/采购日期/供应商",onConfirm:a[46]||(a[46]=e=>de())},null,544),[[e.vModelText,U.cgdParamInfo]]),e.withDirectives(e.createElementVNode("image",{class:"title-input-img",src:j,onClick:a[47]||(a[47]=e=>{U.cgdParamInfo="",de()})},null,512),[[e.vShow,U.cgdParamInfo]]),e.createElementVNode("view",{class:"title-input-button",onClick:a[48]||(a[48]=e=>{de()})}," 检索 "),e.createElementVNode("view",{class:"filter"},[e.createElementVNode("image",{class:"filter-img",src:`/static/index/purchaseorder/select${_.value?"target":""}.png`},null,8,["src"]),e.createElementVNode("view",{class:e.normalizeClass(_.value?"filter-font-target":"filter-font"),onClick:a[49]||(a[49]=e=>_.value=!_.value)}," 筛选 ",2)])]),e.createElementVNode("view",{class:"statues-father"},[e.createElementVNode("view",{class:"statues-gray"}," 单据状态 "),e.createElementVNode("view",{class:e.normalizeClass(""==U.status?"statues-button-target":"statues-button"),style:{"margin-left":"4%"},onClick:a[50]||(a[50]=e=>{U.cgdType="0,1",U.status="",de()})}," 全部 ",2),e.createElementVNode("view",{class:e.normalizeClass("0"==U.status?"statues-button-target":"statues-button"),onClick:a[51]||(a[51]=e=>{U.cgdType="0",U.status="0",de()})}," 待入库 ",2),e.createElementVNode("view",{class:e.normalizeClass("1"==U.status?"statues-button-target":"statues-button"),onClick:a[52]||(a[52]=e=>{U.cgdType="0",U.status="1",de()})}," 待完结 ",2)]),e.createElementVNode("view",{class:"left-menu-father"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":R.value,onScrolltolower:H,"lower-threshold":400},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,((t,a)=>{var i,n;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:a,onClick:e=>((e,t)=>{let a=Math.ceil(e+1);R.value=178*(a-2),K.value=e,te.cgdId=W.value[e].id,te.pageNo=1,te.canpull=!0,Al(te).then((e=>{ne.value=[],l("log","at pages/Warehouse/picking.vue:1452","数据呢",te),ne.value.push(...e.result.records),te.pageNo&&ie(0)})),"Y"==t.izNew&&(t.izNew="N",Hl({id:t.id}))})(a,t),style:e.normalizeStyle({borderColor:a===K.value?"":"transparent",background:a===K.value?"#fff":"rgba(255,255,255,0.6)"})},["Y"==t.izNew?(e.openBlock(),e.createElementBlock("text",{key:0,style:{display:"block",background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.1vw",top:"-0.1vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.cgdNo),1),e.createElementVNode("view",{class:"title-right"},[e.createElementVNode("text",{style:{position:"absolute",bottom:"4rpx",left:"-30rpx"}}," ¥ "),e.createElementVNode("view",{class:"title-right-big"},e.toDisplayString(Number(t.totalPrice).toFixed(2)),1)])]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(t.qgDate.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 采购 "),e.createElementVNode("view",null,e.toDisplayString("[ "+t.qgBy+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(Number(t.status)<1?"":null==(i=t.jhTime)?void 0:i.slice(0,10).replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[Number(t.status)<2?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball"})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 拣货 "),t.jhBy?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(Number(t.status)<1?"":"[ "+t.jhBy+" ]"),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(Number(t.status)>=2?null==(n=t.wjTime)?void 0:n.slice(0,10).replace(/-/g,"."):""),1),e.createElementVNode("view",{class:"middle-heng-father"},[2!=Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball",style:{backgroundColor:"#E5E5E5"}})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 完结 "),t.wjBy?(e.openBlock(),e.createElementBlock("view",{key:0,style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.wjBy+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:$l}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.gysId_dictText),1)]),e.createElementVNode("view",{class:"tag-success"},e.toDisplayString($[Number(t.status)]),1)])],12,["onClick"])})),128))],40,["scroll-top"])])]),e.createElementVNode("view",{class:"white-zhezhao"}),e.createElementVNode("view",{class:"contain-right"},[e.createElementVNode("view",{class:"contain-right-title"},[e.createElementVNode("view",{class:"left-top-tags"},[e.createElementVNode("view",{class:"wuliao-title"}," 物料信息 ")]),e.createElementVNode("view",{class:e.normalizeClass("contain-right-button"),onClick:a[53]||(a[53]=e=>xe(0)),style:{width:"10vw"}},[e.createElementVNode("image",{class:"buttont-img",src:"/static/index/warehouse/procurement/picking/camera.png"},null,8,["src"]),e.createElementVNode("view",{class:"button-font"}," 拣货照片 ")]),e.createElementVNode("view",{class:e.normalizeClass("contain-right-button"),onClick:a[54]||(a[54]=e=>xe(1)),style:{width:"9vw"}},[e.createElementVNode("image",{class:"buttont-img",src:"/static/index/warehouse/procurement/picking/work.png"},null,8,["src"]),e.createElementVNode("view",{class:"button-font"}," 随行单 ")]),e.createElementVNode("view",{class:e.normalizeClass(Number(null==(f=W.value[K.value])?void 0:f.status)?"contain-right-title-bad":"contain-right-button"),style:{"border-color":"#D9DADC","box-shadow":"0 1rpx 3rpx #D9DADC"},onClick:ye},[e.createElementVNode("image",{class:"buttont-img",src:"/static/index/warehouse/procurement/picking/bebad.png"},null,8,["src"]),e.createElementVNode("view",{class:"button-font"}," 作废 ")],2)]),e.createElementVNode("view",{class:"contain-right-middle"},[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"middle-Y","scroll-left":ae.value,"scroll-with-animation":""},[e.createElementVNode("view",{class:"middle-Y-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"middle-one",key:l,style:e.normalizeStyle({border:M.value===l?"4rpx dashed #1083F8":"4rpx solid transparent",backgroundColor:M.value===l?"#F9FCFF":""}),onClick:e=>ie(l)},[e.createElementVNode("view",{class:e.normalizeClass(t.status<2?"up-tags-target":"up-tags")},e.toDisplayString(t.status_dictText),3),e.createElementVNode("image",{class:"middle-img",src:t.materialImg?c.value+t.materialImg:"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"middle-right"},[e.createElementVNode("view",{class:"right-title"},e.toDisplayString(t.wlName),1),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{"font-size":"25rpx","margin-right":"-5rpx","margin-left":"-5rpx"}}," ¥ "),e.createElementVNode("text",{style:e.normalizeStyle([{"font-size":"30rpx"},{fontWeight:M.value!==l?"600":"",color:M.value!==l?"#333333":"#888888"}])},e.toDisplayString(t.arrivalPrice?Number(t.arrivalPrice).toFixed(2):Number(t.procurementPrice).toFixed(2)),5)]),e.createElementVNode("view",{class:"",style:{"font-size":"30rpx",position:"relative"}},[e.createElementVNode("text",{style:e.normalizeStyle([{"font-weight":"600","margin-right":"5rpx"},{fontWeight:M.value===l?"600":"",color:M.value===l?"#333333":"#888888"}])},e.toDisplayString(t.purchaseQuantity),5),e.createElementVNode("text",{style:{"font-size":"26rpx",color:"#888888"}},e.toDisplayString(t.wlUnits),1)])]),e.createElementVNode("view",{class:"right-middle"}),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#888888"}}," 入库数量 ")]),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:e.normalizeStyle({fontWeight:t.rksl>0?"600":""})},e.toDisplayString(t.rksl),5)])]),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#888888"}}," 挂账数量 ")]),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:e.normalizeStyle({fontWeight:t.wrksl>0?"600":""})},e.toDisplayString(t.wrksl),5)])]),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#888888"}}," 销账数量 ")]),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:e.normalizeStyle({fontWeight:t.xzsl>0?"600":""})},e.toDisplayString(t.xzsl),5)])])])],12,["onClick"])))),128))])],8,["scroll-left"]),e.createElementVNode("view",{style:{display:"flex","justify-content":"space-between",width:"100%"}},[e.createElementVNode("view",{style:{display:"flex","margin-left":"-40rpx"}},[e.createElementVNode("view",{class:e.normalizeClass(o.value?"wuliao-title-no":"wuliao-title"),onClick:a[55]||(a[55]=e=>o.value=0)},[e.createTextVNode(" 物料详情 "),e.createElementVNode("view",{class:"wuliao-heng"})],2),e.createElementVNode("view",{class:e.normalizeClass(1==o.value?"wuliao-title":"wuliao-title-no"),style:{"margin-left":"10rpx"},onClick:a[56]||(a[56]=e=>o.value=1)},[e.createTextVNode(" 拣货记录 "),e.createElementVNode("view",{class:"wuliao-heng"})],2)]),e.createElementVNode("view",{style:{display:"flex","margin-top":"10rpx","font-size":"30rpx"}},[ee.value.jianhuobtn?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle(He.value),onClick:y},[e.createElementVNode("view",{style:e.normalizeStyle(Ze.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Xe.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,style:e.normalizeStyle({flex:1,height:"100%",backgroundColor:t})},null,4)))),128))],4),e.createElementVNode("view",{style:e.normalizeStyle(Ke.value)},[e.createElementVNode("text",{style:e.normalizeStyle(et.value)},"改价",4)],4)],4)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(0==ee.value.jianhuobtn?"jianhuobutton-gray-bad":"jianhuobutton-gray")}," 改价 ",2)),e.createElementVNode("view",{onClick:h,class:e.normalizeClass(0==ee.value.jianhuobtn?"jianhuobutton-gray-bad":"jianhuobutton-gray")}," 拣货 ",2)])]),e.createElementVNode("view",{style:{width:"95%",height:"0.5rpx","background-color":"#eff1f3","margin-left":"5%"}}),e.withDirectives(e.createElementVNode("view",{class:"right-bottom"},[e.createElementVNode("view",{class:"right-bottom-left"},[e.createElementVNode("image",{class:"left-img",src:(null==(k=ee.value)?void 0:k.materialImg)?c.value+(null==(z=ee.value)?void 0:z.materialImg):"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"left-tags"},[ee.value.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0,class:"tags-one"},e.toDisplayString(ee.value.categoryId_dictText),1)):e.createCommentVNode("",!0),ee.value.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1,class:"tags-one"},e.toDisplayString(ee.value.typeId_dictText),1)):e.createCommentVNode("",!0),ee.value.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2,class:"tags-one"},e.toDisplayString(ee.value.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"right-bottom-right"},[e.createElementVNode("view",{class:"bottom-right-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(ee.value.wlName),1)]),e.createElementVNode("view",{class:"bottom-right-middle"},[e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料编码 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.wlMaterialNo),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 规格型号 "),e.createElementVNode("view",{class:"right-text",style:{"white-space":"nowrap"}},e.toDisplayString(ee.value.wlSpecificationModel),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单价 "),e.createElementVNode("view",{class:"right-text"}," ¥"+e.toDisplayString(ee.value.arrivalPrice?Number(ee.value.arrivalPrice).toFixed(2):Number(ee.value.procurementPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.purchaseQuantity),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单位 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.wlUnits),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 库存数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.kcsl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料上限 ↑ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.wlUpperLimit),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料下限 ↓ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.wlLowerLimit),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 入库数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.rksl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 挂账数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.wrksl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 销账数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(ee.value.xzsl),1)])])])])],512),[[e.vShow,!o.value]]),e.withDirectives(e.createElementVNode("view",{class:"right-bottom",style:{padding:"0 50rpx","flex-direction":"column"}},[e.createElementVNode("view",{style:{width:"100%",display:"flex","justify-content":"space-between","margin-top":"30rpx","margin-bottom":"10rpx"}},[e.createElementVNode("view",{style:{"font-size":"35rpx","font-weight":"600","margin-left":"20rpx",color:"#222222"}},e.toDisplayString(ee.value.wlName),1),e.createElementVNode("view",{style:{color:"black","margin-top":"5rpx"}},[e.createElementVNode("text",{style:{color:"#888888"}}," 采购数量: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555"}},e.toDisplayString(ee.value.purchaseQuantity),1),e.createTextVNode(" "+e.toDisplayString(ee.value.wlUnits),1)])]),e.createElementVNode("scroll-view",{style:{width:"110%",height:"400rpx",display:"flex","flex-wrap":"wrap"},"scroll-y":"true","scroll-with-animation":"",onScrolltolower:a[57]||(a[57]=e=>{"nomore"!=se.value&&(ce.value++,ue())})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{style:{display:"inline-block",width:"45%",height:"180rpx","background-color":"#F9F9F9","border-radius":"30rpx","margin-right":"2%","margin-top":"20rpx",padding:"0 30rpx",color:"#888888"},key:l},[e.createElementVNode("view",{style:{width:"100%","justify-content":"space-between",display:"flex","align-items":"center",height:"60rpx","margin-top":"20rpx"}},[e.createElementVNode("view",{class:""},[e.createTextVNode(" 拣货数量: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555"}},e.toDisplayString(t.crkNum),1),e.createElementVNode("text",{style:{color:"#555555"}},e.toDisplayString(ee.value.materialUnits),1)]),e.createElementVNode("view",{style:{width:"110rpx",height:"50rpx","border-radius":"30rpx",display:"flex","justify-content":"center","align-items":"center",border:"1rpx solid #C3C3C3","background-color":"#f1f1f1",color:"#888888","margin-top":"-10rpx"}},e.toDisplayString(t.crkStatus_dictText),1)]),e.createElementVNode("view",{style:{width:"100%","justify-content":"space-between",display:"flex"}},[e.createElementVNode("view",{class:""},[e.createTextVNode(" 采购单价: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555"}}," ¥"+e.toDisplayString(Number(t.oldPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:""},[e.createTextVNode(" 拣货人: "),e.createElementVNode("text",{style:{color:"#888888","font-weight":"600"}},e.toDisplayString(t.createBy),1)])]),e.createElementVNode("view",{style:{width:"100%","justify-content":"space-between",display:"flex","margin-top":"10rpx"}},[e.createElementVNode("view",{class:"",style:{"white-space":"nowrap"}},[e.createTextVNode(" 到货单价: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555","white-space":"nowrap"}}," ¥"+e.toDisplayString(Number(t.newPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"",style:{"white-space":"nowrap"}},e.toDisplayString(t.createTime.replace(/-/g,".")),1)])])))),128))],32),re.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%",display:"flex","justify-content":"center",color:"#C3C3C3","margin-top":"40rpx"}},["loading"==se.value?(e.openBlock(),e.createElementBlock("image",{key:0,style:{width:"25rpx",height:"25rpx","margin-right":"10rpx","margin-top":"5rpx","margin-left":"-10rpx"},src:Ll})):e.createCommentVNode("",!0),"loading"==se.value?(e.openBlock(),e.createElementBlock("text",{key:1},"上划加载更多")):e.createCommentVNode("",!0),"nomore"==se.value?(e.openBlock(),e.createElementBlock("text",{key:2},"已加载全部~")):e.createCommentVNode("",!0),"loadmore"==se.value?(e.openBlock(),e.createElementBlock("text",{key:3},"加载中~")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),re.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"nomessage-samll"},[e.createElementVNode("image",{style:{width:"300rpx",height:"300rpx","margin-top":"-200rpx"},src:jl}),e.createElementVNode("view",{class:"noarray-font"}," 暂无拣货记录 ")]))],512),[[e.vShow,1==o.value]])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:a[59]||(a[59]=e=>ve.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:pe.value?1:0}),onClick:a[58]||(a[58]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-main"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"share-weight"},e.toDisplayString(null==(I=W.value[K.value])?void 0:I.cgdNo),1),e.createElementVNode("view",{class:"share-font"}," 供应商:"+e.toDisplayString(null==(F=W.value[K.value])?void 0:F.gysId_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购时间:"+e.toDisplayString(null==(P=W.value[K.value])?void 0:P.qgDate),1)]),e.createElementVNode("view",{class:"right-flex"},[e.createElementVNode("view",{style:{"font-weight":"600"}},[e.createElementVNode("text",{style:{"vertical-align":"2rpx"}}," ¥ "),e.createElementVNode("text",{class:"dollar-text"},e.toDisplayString(null==(G=W.value[K.value])?void 0:G.totalPrice),1)]),e.createElementVNode("view",{class:"caigou-font"}," 采购金额 ")])]),e.createElementVNode("view",{class:"share-bottom"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("image",{class:"share-bottom-img",src:Ul}),e.createElementVNode("view",{class:"share-name"},e.toDisplayString(null==(X=W.value[K.value])?void 0:X.createBy_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购人 ")]),e.createElementVNode("view",{class:"blue-button",onClick:ge}," 分享 ")])])],4)],512),[[e.vShow,ve.value]]),e.createVNode(Z,{show:he.value,font:"确定要作废这个采购单吗",onBack:a[60]||(a[60]=e=>{he.value=!1}),onRight:we},null,8,["show"]),e.createVNode(Z,{show:1==n.value,font:"是否删除此图片",onBack:a[61]||(a[61]=e=>n.value=0),onRight:a[62]||(a[62]=e=>(Se.value.splice(Ce.value,1),Ce.value=-1,void(n.value=0)))},null,8,["show"]),e.createVNode(Z,{show:2==n.value,font:"是否销账此物料?",onBack:a[63]||(a[63]=e=>n.value=0),onRight:a[64]||(a[64]=e=>Oe(1))},null,8,["show"]),e.createVNode(le,{show:Ue.value,font:Pe.value,onClose:a[65]||(a[65]=e=>Ue.value=!1)},null,8,["show","font"]),e.createVNode(oe)],4)}}}),[["__scopeId","data-v-7aab703d"]]),Kl=s(e.defineComponent({__name:"finish",props:{isShow:{type:Boolean}},setup(t){const l=e.ref(0),a=e.ref(0),i=e.ref(""),n=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),o=e.ref(!1),r=e.ref(!1),c=e.ref(!1),s=e.ref(!1),u=e.ref(""),d=()=>{Rl({id:H.value.id,arrivalPrice:u.value}).then((e=>{200==e.code&&(H.value.arrivalPrice=u.value,H.value.totalPrice=Number(u.value)*Number(H.value.purchaseQuantity),O.value[X.value].totalPrice=e.result.totalPrice,o.value=!1)}))};function m(e){if(r.value&&(u.value="",r.value=!1),"AC"!==e)if("."!==e){if(/^\d$/.test(e)){if(u.value.includes(".")){const[t,l]=u.value.split(".");return void((l||"").length<2&&(u.value+=e))}let t=u.value;"0"===t&&(t=""),t.length<4&&(u.value=t+e)}}else u.value.includes(".")||(u.value=""===u.value?"0.":u.value+".");else u.value="0"}const v=e.ref([]),p=()=>{v.value=[],k.value=M.cgBy,A()};function g(e,t){const l=String(e??"").toLowerCase(),a=String(t??"").toLowerCase().trim();if(!a)return!0;if(l.includes(a))return!0;let i=0;for(let n=0;n<l.length&&i<a.length;n++)l[n]===a[i]&&i++;return i===a.length}let h=null;function y(e){var t;if(!e.detail.value)return M.cgBy="",v.value=[],void ce();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();h&&clearTimeout(h),h=setTimeout((()=>{l?(v.value=T.value.filter((e=>g(null==e?void 0:e.cgBy,l))),v.value.length||v.value.push({cgBy:"暂无数据"})):v.value=T.value.slice()}),300)}const w=e.ref([]),N=e.ref(-1),f=()=>{w.value=[],E.value="",M.suppliers="",A()},k=e.ref(""),E=e.ref("");function x(e){var t;if(!e.detail.value)return M.suppliers="",w.value=[],N.value=-1,E.value="",void ce();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();h&&clearTimeout(h),h=setTimeout((()=>{l?(w.value=C.value.filter((e=>g(null==e?void 0:e.suppliersName,l))),w.value.length||w.value.push({suppliersName:"暂无数据"})):w.value=C.value.slice()}),300)}const V=t;e.watch((()=>V.isShow),((e,t)=>{!t&&e?(W(),D(),b.value=!1,setTimeout((()=>{b.value=!0}),50)):b.value=!1})),e.onMounted((()=>{W(),D(),b.value=!1,setTimeout((()=>{b.value=!0}),50)}));const b=e.ref(!1),S=e.ref(!1),B=e.ref(!1),T=e.ref([]),C=e.ref([]),D=()=>{Ol().then((e=>{T.value=e.result})),Yl().then((e=>{C.value=e.result}))},z=e.ref(!1);e.ref("");const I=e.ref(0),F=["待入库","待完结","已完结"],_=e.ref(-1);e.ref(0);const M=e.reactive({pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:"",suppliers:"",cgdType:"2",startTime:"",endTime:"",cgBy:"",nuId:uni.getStorageSync("nuId")}),$={pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:"",suppliers:"",cgdType:"2",startTime:"",endTime:"",cgBy:"",nuId:uni.getStorageSync("nuId")},L=e.ref(!0),U=()=>{L.value=!1,setTimeout((()=>{L.value=!0}),300),Object.assign(M,$),k.value="",E.value="",ce()},P=e=>{M.startTime=e.start,M.endTime=e.end,A()},A=()=>{let e={...M,pageNo:1};Pl(e).then((e=>{Y.value=e.result.total}))},q=e.ref(0),O=e.ref([]),Y=e.ref(0),R=e.ref(!1),W=()=>{Pl(M).then((e=>{O.value.push(...e.result.records),Y.value=e.result.total,e.result.total||(R.value=!0),e.result.records.length&&(Z.cgdId=O.value[0].id,ae(0)),e.result.records.length<M.pageSize&&(M.canpull=!1)}))},J=e.ref(!0),Q=()=>{J.value&&(M.pageNo++,G(),J.value=!1,setTimeout((()=>{J.value=!0}),500))},G=()=>{M.canpull&&Pl(M).then((e=>{O.value.push(...e.result.records),Y.value=e.result.total,e.result.records.length<M.pageSize&&(M.canpull=!1)}))},X=e.ref(0),H=e.ref({materialImg:"",cgrvalue:"",gysvalue:"",wlName:"",procurementPrice:"",wlMaterialNo:"",wlSpecificationModel:"",purchaseQuantity:"",wlUnits:"",kcsl:"",wlUpperLimit:"",wlLowerLimit:"",suppliersName:"",jianhuobtn:!1}),Z=e.reactive({nuId:"",pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0,canpull:!0}),K={nuId:"",pageNo:1,pageSize:9,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0},ee=e.ref(0),te=e=>{I.value=e,H.value=le.value[e],H.value.jianhuobtn=!1,ee.value=172*(e-2),(0==Number(H.value.status)||Number(H.value.status)>0&&Number(H.value.wrksl)>0)&&(H.value.maxnum=0==H.value.rksl&&0==H.value.wrksl&&0==H.value.xzsl?H.value.purchaseQuantity:H.value.wrksl,H.value.num=H.value.maxnum,i.value=Ce(H.value.num),H.value.jianhuobtn=!0),Object.assign(Z,K),ne.value=1,ie.value=[],re()},le=e.ref([]),ae=e=>{Al(Z).then((t=>{le.value=t.result.records,te(e)}))},ie=e.ref([]),ne=e.ref(1),oe=e.ref("loading"),re=()=>{let e={cgdId:H.value.cgdId,wlId:H.value.wlId,pageNo:ne.value,pageSize:10};Xl(e).then((e=>{ie.value.push(...e.result.records),oe.value=e.result.total==ie.value.length||0==e.result.records.length?"nomore":"loadmore"}))},ce=()=>{M.pageNo=1,O.value=[],Pl(M).then((e=>{O.value.push(...e.result.records),Y.value=e.result.total,e.result.records.length&&(Z.cgdId=O.value[0].id,ae(0)),e.result.records.length<M.pageSize&&(M.canpull=!1)}))},se=e.ref(-1);e.ref(-1);const ue=e.ref(!1),de=e.ref(!1),me=()=>{uni.share({provider:"weixin",scene:"WXSceneSession",type:0,href:"https://www.baidu.com/",title:"采购单分享",summary:"采购单",imageUrl:"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",success:function(e){uni.showToast({title:e,icon:"none",duration:2e4})},fail:function(e){uni.showToast({title:e,icon:"none",duration:2e4})}})},ve=e.ref(!1),pe=()=>{ql({id:O.value[X.value].id}).then((e=>{e.success?(uni.showToast({title:e.message,icon:"success",duration:2e3}),X.value=0,ve.value=!1,le.value=[],O.value=[],Object.assign(M,$),Object.assign(Z,K),W()):(uni.showToast({title:e.message,icon:"none",duration:2e3}),ve.value=!1)}))},ge=e.ref(!1),he=e.ref([]),ye=e.ref([]),we=e=>{1==e?ke():fe(),_.value=e,ge.value=!1,setTimeout((()=>{ge.value=!0}),100)};e.ref(1);const fe=()=>{let e={cgdId:O.value[X.value].id};Gl(e).then((e=>{ye.value=e.result}))},ke=()=>{let e={cgdId:O.value[X.value].id,pageNo:1,pageSize:-1};Jl(e).then((e=>{he.value=e.result.records}))},Ee=e.ref([]),xe=e=>{uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:t=>{let l=JSON.stringify(t.tempFilePaths);uni.compressImage({src:JSON.parse(l)[0],quality:60,success:t=>{e?1==e&&(e=>{let t=new Date,l=t.getFullYear(),a=t.getMonth()+1;uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:e,name:"file",formData:{biz:l+"/"+a+"/sxdPic"},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);Ql({sxdPic:t.message,cgdId:O.value[X.value].id}).then((e=>{e.success&&ke()}))},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})})(t.tempFilePath):Ee.value.push(t.tempFilePath)}})}})},Ve=(e,t,l,a)=>{if(1==a){let e=[];l.forEach((t=>{e.push(n.value+t.sxdPic)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}else if(2==a){let e=[];l.forEach((t=>{e.push(n.value+t.jhPic)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}else uni.previewImage({current:t,urls:l,showmenu:!1,longPressActions:{itemList:[]}})},be=e.ref(-1),Se=e.ref(!1),Be=e=>"AC"==e?(H.value.num=0,void(i.value=Ce(H.value.num))):"AE"==e?(H.value.num=Math.trunc(H.value.num/10),void(i.value=Ce(H.value.num))):1==Se.value?(H.value.num=e,Se.value=!1,void(i.value=Ce(H.value.num))):void(Te(H.value.num)>3||(H.value.num?H.value.num=10*H.value.num+e:H.value.num=e,i.value=Ce(H.value.num))),Te=e=>Math.abs(e).toString().length,Ce=e=>{const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")},De=e.ref(null),ze=e=>{Fe(e)},Ie=()=>{clearInterval(De.value)},Fe=e=>{De.value=setInterval((()=>{_e(e)}),120)},_e=e=>{let t=H.value.maxnum;t<=H.value.num&&1==e?H.value.num=t:H.value.num<=1&&-1==e?H.value.num=1:(H.value.num+=e,i.value=Ce(H.value.num))},Me=e=>{let t="";$e.value.forEach((e=>{t+=e+","}));let a={jhId:H.value.id,jhNum:H.value.num,jhType:e,jhPic:""==t?null:t,cgdId:H.value.cgdId};Wl(a).then((e=>{uni.showToast({icon:"none",title:e.message?e.message:"操作成功"}),e.success&&(O.value[X.value].totalPrice=e.result.cgdTotalPrice,Ee.value=[],$e.value=[],c.value=!1,l.value=0,Z.cgdId=O.value[X.value].id,O.value[X.value]=e.result.cgdInfo,ae(I.value))}))},$e=e.ref([]),Le=e=>{if(0==Ee.value.length)return void Me(e);let t=new Date,l=t.getFullYear(),a=t.getMonth()+1;Ee.value.forEach((t=>{uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:t,name:"file",formData:{biz:l+"/"+a+"/jhPic"},header:{"X-Access-Token":uni.getStorageSync("token")},success:t=>{const l=JSON.parse(t.data);$e.value.push(l.message),$e.value.length==Ee.value.length&&Me(e)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})}))},je=e=>{Number(i.value)?1==e?l.value=2:Le(0):uni.showToast({title:"数量为0的时候,无法销账或入库",icon:"none"})},Ue=[210,210,210],Pe=[50,152,255],Ae=e.ref(0);function qe(e,t,l){return Math.round(e+(t-e)*l)}function Oe(e){return"#"+e.map((e=>e.toString(16).padStart(2,"0"))).join("")}const Ye=e.computed((()=>{const e=[];for(let t=0;t<8;t++){const l=(Ae.value+t/8)%1,a=[qe(Ue[0],Pe[0],l),qe(Ue[1],Pe[1],l),qe(Ue[2],Pe[2],l)];e.push(Oe(a))}return e}));e.computed((()=>({width:"180rpx",height:"70rpx",padding:"2rpx",borderRadius:"40rpx",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",position:"relative"}))),e.computed((()=>({position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:"40rpx",overflow:"hidden",display:"flex",flexDirection:"row",zIndex:1}))),e.computed((()=>({width:"calc(100% - 4rpx)",height:"calc(100% - 4rpx)",borderRadius:"36rpx",backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2}))),e.computed((()=>({color:Ye.value[0]||Oe(Ue),fontSize:"30rpx",fontWeight:"600",zIndex:3})));let Re=null;return e.onMounted((()=>{const e=Math.max(1,Math.round(1e3/120));Re=setInterval((()=>{Ae.value+=1/e,Ae.value>=1&&(Ae.value-=1)}),120)})),e.onUnmounted((()=>{Re&&clearInterval(Re)})),e.ref(!1),(t,r)=>{var g,h,V,T,C,D,$,W;const J=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock("view",{class:"contain guodu",style:e.normalizeStyle([b.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.withDirectives(e.createElementVNode("view",{class:"mengban",style:e.normalizeStyle(S.value||B.value||s.value?{background:"transparent"}:{}),onClick:r[0]||(r[0]=e=>{se.value=-1,_.value=-1,c.value=!1,o.value=!1,s.value=!1,S.value=!1,B.value=!1,Ee.value=[]})},null,4),[[e.vShow,-1!=se.value||-1!=_.value||c.value||o.value||s.value]]),R.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",style:{background:"#fff",width:"100vw",right:"0",left:"8vw",top:"-5vh",height:"110vh"}},[e.createVNode(tl,{cont:"暂无数据",style:{"z-index":"999"}})])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:f},null,512),[[e.vShow,w.value.length&&E.value]]),w.value.length&&E.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"input-next",style:{bottom:"660rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>((e,t)=>{w.value=[],M.suppliers=e.suppliers,E.value=e.suppliersName,N.value=t,A()})(t,l)},e.toDisplayString(t.suppliersName),9,["onClick"])),[[e.vShow,"暂无数据"!=w.value[0].suppliersName]]))),128)),"暂无数据"===w.value[0].suppliersName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"}," 暂无数据 ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:p},null,512),[[e.vShow,v.value.length&&k.value]]),v.value.length&&k.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"input-next"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>(e=>{v.value=[],M.cgBy=e.cgBy,k.value=M.cgBy,A()})(t)},e.toDisplayString(t.cgBy),9,["onClick"])),[[e.vShow,"暂无数据"!=v.value[0].cgBy]]))),128)),"暂无数据"===v.value[0].cgBy?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"}," 暂无数据 ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),L.value?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:3,class:"calendar-father"},[e.createVNode(Bl,{onDatachange:P})],512)),[[e.vShow,s.value]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"gaijiafather",style:e.normalizeStyle(ge.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{style:{width:"100%","margin-top":"50rpx","font-size":"30rpx"}},[e.createTextVNode(" 采购单价: "),e.createElementVNode("text",{style:{color:"#888888"}}," ¥"+e.toDisplayString(u.value),1)]),e.createElementVNode("view",{style:{"margin-top":"150rpx",display:"flex","align-items":"center","flex-direction":"column",width:"50%"}},[e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"10rpx"}}," 到货单价 "),e.createElementVNode("view",{class:"gray-input",style:{width:"410rpx"}}," ¥ "+e.toDisplayString(u.value),1)]),e.createElementVNode("view",{style:{position:"absolute",right:"30rpx",bottom:"30rpx"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{onClick:r[1]||(r[1]=e=>o.value=!1),style:{width:"160rpx",height:"75rpx","background-color":"#ebeced",color:"#888888",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx"}}," 取消 "),e.createElementVNode("view",{onClick:d,style:{width:"160rpx",height:"75rpx",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx",border:"1rpx solid #0385FA",background:"linear-gradient(to bottom,#E9F4FF,#CAE0F9)",margin:"0 40rpx"}}," 确定 ")])]),e.createElementVNode("view",{class:"jianhuo-jianpan",style:{right:"-40rpx",bottom:"150rpx"}},[e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[2]||(r[2]=e=>m("1"))}," 1 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[3]||(r[3]=e=>m("2"))}," 2 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[4]||(r[4]=e=>m("3"))}," 3 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[5]||(r[5]=e=>m("4"))}," 4 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[6]||(r[6]=e=>m("5"))}," 5 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[7]||(r[7]=e=>m("6"))}," 6 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[8]||(r[8]=e=>m("7"))}," 7 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[9]||(r[9]=e=>m("8"))}," 8 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[10]||(r[10]=e=>m("9"))}," 9 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",style:{"font-size":"30rpx"},onClick:r[11]||(r[11]=e=>m("AC"))}," 清零 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[12]||(r[12]=e=>m("0"))}," 0 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[13]||(r[13]=e=>m("."))}," . ")])])],4),[[e.vShow,o.value]]),e.withDirectives(e.createElementVNode("view",{class:"jianhuofather guodu",style:e.normalizeStyle(ge.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{style:{margin:"40rpx 0",width:"100%","text-align":"center","font-size":"35rpx","font-weight":"600"}},e.toDisplayString(H.value.wlName),1),e.createElementVNode("view",{style:{display:"flex","justify-content":"space-between",width:"100%"}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx"}}," 物料信息 "),e.createElementVNode("view",{style:{"font-weight":"600","font-size":"35rpx",color:"#555555"}}," ¥"+e.toDisplayString(H.value.totalPrice),1)]),e.createElementVNode("view",{style:{display:"flex","margin-top":"10rpx"}},[e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 物料编码 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(H.value.wlMaterialNo),1)]),e.createElementVNode("view",{style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","white-space":"nowrap","font-size":"25rpx"}}," 规格型号 "),e.createElementVNode("view",{style:{"margin-top":"5rpx","font-size":"34rpx","white-space":"nowrap",display:"flex","flex-wrap":"nowrap"}},e.toDisplayString(H.value.wlSpecificationModel),1)])]),e.createElementVNode("view",{style:{display:"flex","margin-top":"15rpx"}},[e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 采购单价 "),e.createElementVNode("view",{class:"text-anim",style:{"margin-top":"5rpx","font-weight":"600","font-size":"34rpx"}}," ¥"+e.toDisplayString(H.value.arrivalPrice?Number(H.value.arrivalPrice).toFixed(2):Number(H.value.procurementPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 采购数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-weight":"600","font-size":"34rpx"}},e.toDisplayString(H.value.purchaseQuantity),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 采购单位 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(H.value.wlUnits),1)])]),e.createElementVNode("view",{style:{width:"95%",height:"0.5rpx","background-color":"#eff1f3","margin-top":"10rpx","margin-bottom":"5rpx"}}),e.createElementVNode("view",{style:{}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx","margin-top":"10rpx"}}," 入库信息 ")]),e.createElementVNode("view",{style:{display:"flex","margin-top":"10rpx"}},[e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 入库数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(H.value.rksl),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 挂账数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(H.value.wrksl),1)]),e.createElementVNode("view",{class:"",style:{width:"33%"}},[e.createElementVNode("view",{style:{color:"#999999","margin-top":"10rpx","font-size":"25rpx"}}," 销账数量 "),e.createElementVNode("view",{class:"",style:{"margin-top":"5rpx","font-size":"34rpx"}},e.toDisplayString(H.value.xzsl),1)])]),e.createElementVNode("view",{style:{width:"95%",height:"0.5rpx","background-color":"#eff1f3","margin-top":"10rpx","margin-bottom":"5rpx"}}),e.createElementVNode("view",{style:{}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx","margin-top":"10rpx"}}," 拣货拍照 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap",width:"60%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ee.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"moban-photo",key:a},[e.createElementVNode("view",{style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"0.1vw",top:"0.1vw",background:"rgba(255, 255, 255, 0.7)",display:"flex","justify-content":"center","align-items":"center"},onClick:e.withModifiers((e=>{be.value=a,l.value=1}),["stop"])},[e.createElementVNode("image",{src:j,mode:"aspectFill",style:{width:"100%",height:"100%"}})],8,["onClick"]),e.createElementVNode("image",{style:{width:"100%",height:"100%"},src:t||"/static/zhanwei.png",mode:"aspectFill",onClick:e=>Ve(0,a,Ee.value)},null,8,["src","onClick"])])))),128)),Ee.value.length<4?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"40%",height:"150rpx","margin-right":"4%","margin-top":"3%"},onClick:r[14]||(r[14]=e=>xe(0))},[e.createElementVNode("view",{class:"moban-photo-special"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-bottom":"5rpx"},src:Ne}),e.createElementVNode("view",{style:{color:"#78B1EB","font-size":"25rpx"}}," 点击拍照上传 ")])])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{width:"87%",height:"0.5rpx","background-color":"#eff1f3","margin-top":"10rpx","margin-bottom":"5rpx"}})]),e.createElementVNode("view",{style:{}},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"30rpx"}}," 数量 ")]),e.createElementVNode("view",{style:{display:"flex","margin-top":"20rpx"}},[e.createElementVNode("view",{class:"gray-button",onClick:r[15]||(r[15]=e=>_e(-1)),onLongpress:r[16]||(r[16]=e=>ze(-1)),onTouchend:Ie}," - ",32),e.createElementVNode("view",{class:"gray-input",style:{width:"12vw"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,l)=>(e.openBlock(),e.createElementBlock("text",{key:l},e.toDisplayString(t),1)))),128))]),e.createElementVNode("view",{class:"gray-button",onClick:r[17]||(r[17]=e=>_e(1)),onLongpress:r[18]||(r[18]=e=>ze(1)),onTouchend:Ie}," + ",32)]),e.createElementVNode("view",{class:"jianhuobutton"},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{onClick:r[19]||(r[19]=e=>{c.value=!1,Se.value=!1}),style:{width:"160rpx",height:"75rpx","background-color":"#ebeced",color:"#888888",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx"}}," 关闭 "),e.createElementVNode("view",{onClick:r[20]||(r[20]=e=>je(1)),style:{width:"160rpx",height:"75rpx",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx",border:"1rpx solid #0385FA",background:"linear-gradient(to bottom,#E9F4FF,#CAE0F9)",margin:"0 20rpx"}}," 销账 "),e.createElementVNode("view",{onClick:r[21]||(r[21]=e=>je(0)),style:{width:"160rpx",height:"75rpx",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center","font-size":"30rpx","border-radius":"40rpx",border:"1rpx solid #0385FA",background:"linear-gradient(to bottom,#E9F4FF,#CAE0F9)"}}," 入库 ")])]),e.createElementVNode("view",{class:"jianhuo-jianpan"},[e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[22]||(r[22]=e=>Be(1))}," 1 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[23]||(r[23]=e=>Be(2))}," 2 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[24]||(r[24]=e=>Be(3))}," 3 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[25]||(r[25]=e=>Be(4))}," 4 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[26]||(r[26]=e=>Be(5))}," 5 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[27]||(r[27]=e=>Be(6))}," 6 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[28]||(r[28]=e=>Be(7))}," 7 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[29]||(r[29]=e=>Be(8))}," 8 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[30]||(r[30]=e=>Be(9))}," 9 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",style:{"font-size":"30rpx"},onClick:r[31]||(r[31]=e=>Be("AC"))}," 清零 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[32]||(r[32]=e=>Be(0))}," 0 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:r[33]||(r[33]=e=>Be("AE"))},[e.createElementVNode("image",{src:Tt,mode:"aspectFill",style:{width:"50%",height:"50%"}})])])])],4),[[e.vShow,c.value]]),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(ge.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(_.value?"随行单":"拣货照片"),1),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{class:"photowall-left"}," 采购单号: "),e.createElementVNode("text",{class:"photowall-right"},e.toDisplayString(null==(g=O.value[X.value])?void 0:g.cgdNo),1)])]),0==_.value?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ye.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>Ve(0,l,ye.value,2)},[e.createElementVNode("image",{style:{width:"100%",height:"70%","border-radius":"30rpx"},src:t.jhPic?n.value+t.jhPic:"/static/ceshiyaoshan.png",mode:"aspectFill","lazy-load":!0},null,8,["src"]),e.createElementVNode("view",{style:{"margin-top":"20rpx"}},[e.createElementVNode("text",{style:{color:"#888888"}}," 上传时间: "),e.createElementVNode("text",{style:{"margin-left":"15rpx"}},e.toDisplayString(t.createTime.replace(/-/g,".")),1)]),e.createElementVNode("view",{style:{"margin-top":"10rpx"}},[e.createElementVNode("text",{style:{color:"#888888","letter-spacing":"8.9rpx"}}," 上传人: "),e.createElementVNode("text",null,e.toDisplayString(t.createBy),1)])],8,["onClick"])))),128)),ye.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"noarray"},[e.createElementVNode("image",{class:"noarray-img",src:Fl,mode:"aspectFill"}),e.createElementVNode("view",{class:"noarray-font"}," 暂无拣货照片 ")]))])):e.createCommentVNode("",!0),1==_.value?(e.openBlock(),e.createElementBlock("scroll-view",{key:1,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"",style:{"margin-top":"0 !important"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>Ve(0,l,he.value,1)},[e.createElementVNode("image",{style:{width:"100%",height:"70%","border-radius":"30rpx"},src:t.sxdPic?n.value+t.sxdPic:"/static/ceshiyaoshan.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{style:{"margin-top":"20rpx"}},[e.createElementVNode("text",{style:{color:"#888888"}}," 上传时间: "),e.createElementVNode("text",{style:{"margin-left":"15rpx"}},e.toDisplayString(t.createTime.replace(/-/g,".")),1)]),e.createElementVNode("view",{style:{"margin-top":"10rpx"}},[e.createElementVNode("text",{style:{color:"#888888","letter-spacing":"8.9rpx"}}," 上传人: "),e.createElementVNode("text",null,e.toDisplayString(t.createBy),1)])],8,["onClick"])))),128)),he.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"noarray"},[e.createElementVNode("image",{class:"noarray-img",src:Fl,mode:"aspectFill"}),e.createElementVNode("view",{class:"noarray-font"}," 暂无随行单 ")]))])):e.createCommentVNode("",!0)],4),[[e.vShow,-1!=_.value]]),e.createElementVNode("view",{class:"contain-left"},[e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:r[34]||(r[34]=e=>z.value=!1)},null,512),[[e.vShow,z.value]]),e.withDirectives(e.createElementVNode("view",{class:"left-select-more"},[e.createElementVNode("view",{class:"more-bottom"},[e.createElementVNode("view",{class:"bottom-left",onClick:U}," 重置 "),e.createElementVNode("view",{class:"bottom-right",onClick:r[35]||(r[35]=e=>{z.value=!1,ce()})},[e.createTextVNode(" 确定 "),Y.value?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"font-size":"25rpx","margin-top":"5rpx"}}," ("+e.toDisplayString(Y.value)+"采购单) ",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"more-time"}," 采购日期 "),e.createElementVNode("view",{class:"more-time-select",onClick:r[36]||(r[36]=e=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 开始日期 ",512),[[e.vShow,!M.startTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(M.startTime),513),[[e.vShow,M.startTime]]),e.createElementVNode("view",{style:{"font-size":"32rpx"}}," 至 "),e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 结束日期 ",512),[[e.vShow,!M.endTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(M.endTime),513),[[e.vShow,M.endTime]]),e.createElementVNode("image",{class:"more-img",src:_l})]),e.createElementVNode("view",{class:"more-select"}," 采购人 "),e.createElementVNode("view",{class:"more-time-select",onClick:r[38]||(r[38]=e=>S.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":r[37]||(r[37]=e=>k.value=e),placeholder:"请输入采购人","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:y},null,544),[[e.vModelText,k.value]]),e.createElementVNode("image",{class:"select-img",src:Ml})]),e.createElementVNode("view",{class:"more-select"}," 供应商 "),e.createElementVNode("view",{class:"more-time-select",onClick:r[40]||(r[40]=e=>B.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":r[39]||(r[39]=e=>E.value=e),placeholder:"请输入供应商","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:x},null,544),[[e.vModelText,E.value]]),e.createElementVNode("image",{class:"select-img",src:Ml})])],512),[[e.vShow,z.value]]),e.createElementVNode("view",{class:"title-input-father"},[e.withDirectives(e.createElementVNode("input",{class:"title-input",type:"text","onUpdate:modelValue":r[41]||(r[41]=e=>M.cgdParamInfo=e),maxlength:"15",placeholder:"采购单号/采购日期/供应商",onConfirm:r[42]||(r[42]=e=>ce())},null,544),[[e.vModelText,M.cgdParamInfo]]),e.withDirectives(e.createElementVNode("image",{class:"title-input-img",src:j,onClick:r[43]||(r[43]=e=>{M.cgdParamInfo="",ce()})},null,512),[[e.vShow,M.cgdParamInfo]]),e.createElementVNode("view",{class:"title-input-button",onClick:r[44]||(r[44]=e=>{ce()})}," 检索 "),e.createElementVNode("view",{class:"filter"},[e.createElementVNode("image",{class:"filter-img",src:`/static/index/purchaseorder/select${z.value?"target":""}.png`},null,8,["src"]),e.createElementVNode("view",{class:e.normalizeClass(z.value?"filter-font-target":"filter-font"),onClick:r[45]||(r[45]=e=>z.value=!z.value)}," 筛选 ",2)])]),e.createElementVNode("view",{class:"statues-father"}),e.createElementVNode("view",{class:"left-menu-father"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":q.value,onScrolltolower:Q,"lower-threshold":400},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,((t,l)=>{var a,i;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:e=>((e,t)=>{let l=Math.ceil(e+1);q.value=178*(l-2),X.value=e,Z.cgdId=O.value[e].id,Z.pageNo=1,Z.canpull=!0,Al(Z).then((e=>{le.value=[],le.value.push(...e.result.records),Z.pageNo&&te(0)})),"Y"==t.izNew&&(t.izNew="N",Hl({id:t.id}))})(l,t),style:e.normalizeStyle({borderColor:l===X.value?"":"transparent",background:l===X.value?"#fff":"rgba(255,255,255,0.6)"})},["Y"==t.izNew?(e.openBlock(),e.createElementBlock("text",{key:0,style:{display:"block",background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.1vw",top:"-0.1vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.cgdNo),1),e.createElementVNode("view",{class:"title-right"},[e.createElementVNode("text",{style:{position:"absolute",bottom:"4rpx",left:"-30rpx"}}," ¥ "),e.createElementVNode("view",{class:"title-right-big"},e.toDisplayString(Number(t.totalPrice).toFixed(2)),1)])]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(t.qgDate.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 采购 "),e.createElementVNode("view",null,e.toDisplayString("[ "+t.qgBy+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(Number(t.status)<1?"":null==(a=t.jhTime)?void 0:a.slice(0,10).replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[Number(t.status)<2?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball"})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 拣货 "),t.jhBy?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(Number(t.status)<1?"":"[ "+t.jhBy+" ]"),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(Number(t.status)>=2?null==(i=t.wjTime)?void 0:i.slice(0,10).replace(/-/g,"."):""),1),e.createElementVNode("view",{class:"middle-heng-father"},[2!=Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball",style:{backgroundColor:"#E5E5E5"}})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 完结 "),t.wjBy?(e.openBlock(),e.createElementBlock("view",{key:0,style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.wjBy+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:$l}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.gysId_dictText),1)]),e.createElementVNode("view",{class:"tag-success"},e.toDisplayString(F[Number(t.status)]),1)])],12,["onClick"])})),128))],40,["scroll-top"])])]),e.createElementVNode("view",{class:"white-zhezhao"}),e.createElementVNode("view",{class:"contain-right"},[e.createElementVNode("view",{class:"contain-right-title"},[e.createElementVNode("view",{class:"left-top-tags"},[e.createElementVNode("view",{class:"wuliao-title"}," 物料信息 ")]),e.createElementVNode("view",{class:e.normalizeClass("contain-right-button"),onClick:r[46]||(r[46]=e=>we(0)),style:{width:"10vw"}},[e.createElementVNode("image",{class:"buttont-img",src:"/static/index/warehouse/procurement/picking/camera.png"},null,8,["src"]),e.createElementVNode("view",{class:"button-font"}," 拣货照片 ")]),e.createElementVNode("view",{class:e.normalizeClass("contain-right-button"),onClick:r[47]||(r[47]=e=>we(1)),style:{width:"9vw"}},[e.createElementVNode("image",{class:"buttont-img",src:"/static/index/warehouse/procurement/picking/work.png"},null,8,["src"]),e.createElementVNode("view",{class:"button-font"}," 随行单 ")])]),e.createElementVNode("view",{class:"contain-right-middle"},[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"middle-Y","scroll-left":ee.value,"scroll-with-animation":""},[e.createElementVNode("view",{class:"middle-Y-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"middle-one",key:l,style:e.normalizeStyle({border:I.value===l?"4rpx dashed #1083F8":"4rpx solid transparent",backgroundColor:I.value===l?"#F9FCFF":""}),onClick:e=>te(l)},[e.createElementVNode("view",{class:e.normalizeClass(t.status<2?"up-tags-target":"up-tags")},e.toDisplayString(t.status_dictText),3),e.createElementVNode("image",{class:"middle-img",src:(null==t?void 0:t.materialImg)?n.value+(null==t?void 0:t.materialImg):"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"middle-right"},[e.createElementVNode("view",{class:"right-title"},e.toDisplayString(t.wlName),1),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{"font-size":"25rpx","margin-right":"-5rpx","margin-left":"-5rpx"}}," ¥ "),e.createElementVNode("text",{style:e.normalizeStyle([{"font-size":"30rpx"},{fontWeight:I.value!==l?"600":"",color:I.value!==l?"#333333":"#888888"}])},e.toDisplayString(t.arrivalPrice?Number(t.arrivalPrice).toFixed(2):Number(t.procurementPrice).toFixed(2)),5)]),e.createElementVNode("view",{class:"",style:{"font-size":"30rpx",position:"relative"}},[e.createElementVNode("text",{style:e.normalizeStyle([{"font-weight":"600","margin-right":"5rpx"},{fontWeight:I.value===l?"600":"",color:I.value===l?"#333333":"#888888"}])},e.toDisplayString(t.purchaseQuantity),5),e.createElementVNode("text",{style:{"font-size":"26rpx",color:"#888888"}},e.toDisplayString(t.wlUnits),1)])]),e.createElementVNode("view",{class:"right-middle"}),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#888888"}}," 入库数量 ")]),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:e.normalizeStyle({fontWeight:t.rksl>0?"600":""})},e.toDisplayString(t.rksl),5)])]),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#888888"}}," 挂账数量 ")]),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:e.normalizeStyle({fontWeight:t.wrksl>0?"600":""})},e.toDisplayString(t.wrksl),5)])]),e.createElementVNode("view",{class:"juzhong"},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#888888"}}," 销账数量 ")]),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:e.normalizeStyle({fontWeight:t.xzsl>0?"600":""})},e.toDisplayString(t.xzsl),5)])])])],12,["onClick"])))),128))])],8,["scroll-left"]),e.createElementVNode("view",{style:{display:"flex","justify-content":"space-between"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{class:e.normalizeClass(a.value?"wuliao-title-no":"wuliao-title"),onClick:r[48]||(r[48]=e=>a.value=0)},[e.createTextVNode(" 物料详情 "),e.createElementVNode("view",{class:"wuliao-heng"})],2),e.createElementVNode("view",{class:e.normalizeClass(1==a.value?"wuliao-title":"wuliao-title-no"),style:{"margin-left":"10rpx"},onClick:r[49]||(r[49]=e=>a.value=1)},[e.createTextVNode(" 拣货记录 "),e.createElementVNode("view",{class:"wuliao-heng"})],2)])]),e.createElementVNode("view",{style:{width:"95%",height:"0.5rpx","background-color":"#eff1f3","margin-left":"5%"}}),e.withDirectives(e.createElementVNode("view",{class:"right-bottom"},[e.createElementVNode("view",{class:"right-bottom-left"},[e.createElementVNode("image",{class:"left-img",src:(null==(h=H.value)?void 0:h.materialImg)?n.value+(null==(V=H.value)?void 0:V.materialImg):"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"left-tags"},[H.value.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0,class:"tags-one"},e.toDisplayString(H.value.categoryId_dictText),1)):e.createCommentVNode("",!0),H.value.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1,class:"tags-one"},e.toDisplayString(H.value.typeId_dictText),1)):e.createCommentVNode("",!0),H.value.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2,class:"tags-one"},e.toDisplayString(H.value.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"right-bottom-right"},[e.createElementVNode("view",{class:"bottom-right-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(H.value.wlName),1)]),e.createElementVNode("view",{class:"bottom-right-middle"},[e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料编码 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.wlMaterialNo),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 规格型号 "),e.createElementVNode("view",{class:"right-text",style:{"white-space":"nowrap"}},e.toDisplayString(H.value.wlSpecificationModel),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单价 "),e.createElementVNode("view",{class:"right-text"}," ¥"+e.toDisplayString(H.value.arrivalPrice?Number(H.value.arrivalPrice).toFixed(2):Number(H.value.procurementPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.purchaseQuantity),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单位 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.wlUnits),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 库存数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.kcsl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料上限 ↑ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.wlUpperLimit),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料下限 ↓ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.wlLowerLimit),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 入库数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.rksl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 挂账数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.wrksl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 销账数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(H.value.xzsl),1)])])])])],512),[[e.vShow,!a.value]]),e.withDirectives(e.createElementVNode("view",{class:"right-bottom",style:{padding:"0 50rpx","flex-direction":"column"}},[e.createElementVNode("view",{style:{width:"100%",display:"flex","justify-content":"space-between","margin-top":"30rpx","margin-bottom":"10rpx"}},[e.createElementVNode("view",{style:{"font-size":"35rpx","font-weight":"600","margin-left":"20rpx",color:"#222222"}},e.toDisplayString(H.value.wlName),1),e.createElementVNode("view",{style:{color:"black","margin-top":"5rpx"}},[e.createElementVNode("text",{style:{color:"#888888"}}," 采购数量: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555"}},e.toDisplayString(H.value.purchaseQuantity),1),e.createTextVNode(" "+e.toDisplayString(H.value.wlUnits),1)])]),e.createElementVNode("scroll-view",{style:{width:"110%",height:"400rpx",display:"flex","flex-wrap":"wrap"},"scroll-y":"true","scroll-with-animation":"",onScrolltolower:r[50]||(r[50]=e=>{"nomore"!=oe.value&&(ne.value++,re())})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{style:{display:"inline-block",width:"45%",height:"180rpx","background-color":"#F9F9F9","border-radius":"30rpx","margin-right":"2%","margin-top":"20rpx",padding:"0 30rpx",color:"#888888"},key:l},[e.createElementVNode("view",{style:{width:"100%","justify-content":"space-between",display:"flex","align-items":"center",height:"60rpx","margin-top":"20rpx"}},[e.createElementVNode("view",{class:""},[e.createTextVNode(" 拣货数量: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555"}},e.toDisplayString(t.crkNum),1),e.createElementVNode("text",{style:{color:"#555555"}},e.toDisplayString(H.value.materialUnits),1)]),e.createElementVNode("view",{style:{width:"110rpx",height:"50rpx","border-radius":"30rpx",display:"flex","justify-content":"center","align-items":"center",border:"1rpx solid #C3C3C3","background-color":"#f1f1f1",color:"#888888","margin-top":"-10rpx"}},e.toDisplayString(t.crkStatus_dictText),1)]),e.createElementVNode("view",{style:{width:"100%","justify-content":"space-between",display:"flex"}},[e.createElementVNode("view",{class:""},[e.createTextVNode(" 采购单价: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555"}}," ¥"+e.toDisplayString(Number(t.oldPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:""},[e.createTextVNode(" 拣货人: "),e.createElementVNode("text",{style:{color:"#888888","font-weight":"600"}},e.toDisplayString(t.createBy),1)])]),e.createElementVNode("view",{style:{width:"100%","justify-content":"space-between",display:"flex","margin-top":"10rpx","white-space":"nowrap"}},[e.createElementVNode("view",{class:"",style:{"white-space":"nowrap"}},[e.createTextVNode(" 到货单价: "),e.createElementVNode("text",{style:{"font-weight":"600",color:"#555555","white-space":"nowrap"}}," ¥"+e.toDisplayString(Number(t.newPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"",style:{"white-space":"nowrap"}},e.toDisplayString(t.createTime.replace(/-/g,".")),1)])])))),128))],32),ie.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%",display:"flex","justify-content":"center",color:"#C3C3C3","margin-top":"40rpx"}},["loading"==oe.value?(e.openBlock(),e.createElementBlock("image",{key:0,style:{width:"25rpx",height:"25rpx","margin-right":"10rpx","margin-top":"5rpx","margin-left":"-10rpx"},src:Ll})):e.createCommentVNode("",!0),"loading"==oe.value?(e.openBlock(),e.createElementBlock("text",{key:1},"上划加载更多")):e.createCommentVNode("",!0),"nomore"==oe.value?(e.openBlock(),e.createElementBlock("text",{key:2},"已加载全部~")):e.createCommentVNode("",!0),"loadmore"==oe.value?(e.openBlock(),e.createElementBlock("text",{key:3},"加载中~")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ie.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"nomessage-samll"},[e.createElementVNode("image",{style:{width:"300rpx",height:"300rpx","margin-top":"-200rpx"},src:jl}),e.createElementVNode("view",{class:"noarray-font"}," 暂无拣货记录 ")]))],512),[[e.vShow,1==a.value]])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:r[52]||(r[52]=e=>ue.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:de.value?1:0}),onClick:r[51]||(r[51]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-main"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"share-weight"},e.toDisplayString(null==(T=O.value[X.value])?void 0:T.cgdNo),1),e.createElementVNode("view",{class:"share-font"}," 供应商:"+e.toDisplayString(null==(C=O.value[X.value])?void 0:C.gysId_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购时间:"+e.toDisplayString(null==(D=O.value[X.value])?void 0:D.qgDate),1)]),e.createElementVNode("view",{class:"right-flex"},[e.createElementVNode("view",{style:{"font-weight":"600"}},[e.createElementVNode("text",{style:{"vertical-align":"2rpx"}}," ¥ "),e.createElementVNode("text",{class:"dollar-text"},e.toDisplayString(null==($=O.value[X.value])?void 0:$.totalPrice),1)]),e.createElementVNode("view",{class:"caigou-font"}," 采购金额 ")])]),e.createElementVNode("view",{class:"share-bottom"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("image",{class:"share-bottom-img",src:Ul}),e.createElementVNode("view",{class:"share-name"},e.toDisplayString(null==(W=O.value[X.value])?void 0:W.createBy_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购人 ")]),e.createElementVNode("view",{class:"blue-button",onClick:me}," 分享 ")])])],4)],512),[[e.vShow,ue.value]]),e.createVNode(El,{show:ve.value,font:"确定要作废这个采购单吗",onBack:r[53]||(r[53]=e=>{ve.value=!1}),onRight:pe},null,8,["show"]),e.createVNode(El,{show:1==l.value,font:"是否删除此图片",onBack:r[54]||(r[54]=e=>l.value=0),onRight:r[55]||(r[55]=e=>(Ee.value.splice(be.value,1),be.value=-1,void(l.value=0)))},null,8,["show"]),e.createVNode(El,{show:2==l.value,font:"是否销账此物料?",onBack:r[56]||(r[56]=e=>l.value=0),onRight:r[57]||(r[57]=e=>Le(1))},null,8,["show"]),e.createVNode(J)],4)}}}),[["__scopeId","data-v-7845fd1c"]]),ea="/static/index/procurement/sx.png",ta=s(e.defineComponent({__name:"cgdclass",props:{show:{type:Boolean,default:!1,required:!0},typenum:{type:Number,default:0},cgdId:{type:String,default:""}},emits:["confirm"],setup(t,{emit:a}){const i=e.reactive({scrolltop1:0,scrolltop2:0,scrolltop3:0,act1:-1,act2:-1,act3:-1}),n=e.ref([]);e.ref([]),e.ref(-1);const o=e.ref(""),r=e.ref(!1),c=a,s=(e,t,l)=>{if(1==e&&(i.act2=-1,i.act3=-1,i.scrolltop2=0,i.scrolltop3=0,i.act1==t))return i.act1=-1,void d();2==e&&(i.act3=-1,i.scrolltop3=0),i["act"+e]=t,i["scrolltop"+e]=50*(t-2),d()};e.onMounted((()=>{o.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const u=e.ref(0),d=()=>{let e={nuId:uni.getStorageSync("nuId"),categoryId:i.act1>-1?n.value[i.act1].categoryId:"",typeId:i.act2>-1?n.value[i.act1].children[i.act2].typeId:"",medicationId:i.act3>-1?n.value[i.act1].children[i.act2].children[i.act3].key:"",cgdId:v.cgdId};switch(v.typenum){case 0:ml(e).then((e=>{u.value=e.result.totalSize}));break;case 1:vl(e).then((e=>{u.value=e.result.totalSize}));break;case 2:l("log","at pages/procurement/components/cgdclass.vue:107",e),pl(e).then((e=>{u.value=e.result.totalSize}))}},m=()=>{let e={categoryId:i.act1>-1?n.value[i.act1].categoryId:"",typeId:i.act2>-1?n.value[i.act1].children[i.act2].typeId:"",medicationId:i.act3>-1?n.value[i.act1].children[i.act2].children[i.act3].key:"",cgdId:v.cgdId};c("confirm",e)},v=t;return e.watch((()=>v.show),(()=>{0==v.show?(r.value=!1,s(1,-1)):(()=>{switch(v.typenum){case 0:rl({nuId:uni.getStorageSync("nuId")}).then((e=>{n.value=e.result,d()}));break;case 1:cl({nuId:uni.getStorageSync("nuId")}).then((e=>{n.value=e.result,d()}));break;case 2:sl({nuId:uni.getStorageSync("nuId"),cgdId:v.cgdId}).then((e=>{n.value=e.result,d()}))}})()})),(l,a)=>{var r,c,d;return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:e.normalizeClass(["ifclass guodu",t.show?"":"unclass"])},[e.createElementVNode("view",{class:"titletop"},"物料分类"),e.createElementVNode("view",{class:"toptype"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["一","二","三"],(t=>e.createElementVNode("view",null,e.toDisplayString(t+"级分类"),1))),64))]),e.createElementVNode("view",{class:"scroltype"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":i.scrolltop1,class:"scroll-Y scrl1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(i.act1==l?"act":""),onClick:e=>s(1,l)},[i.act1==l?(e.openBlock(),e.createElementBlock("image",{key:0,src:o.value+t.appCheckIconPath,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:1,src:o.value+t.appIconPath,mode:"aspectFill"},null,8,["src"])),e.createElementVNode("text",null,e.toDisplayString(t.title),1)],10,["onClick"])))),256))],8,["scroll-top"]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":i.scrolltop2,class:"scroll-Y scrl2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(r=n.value[i.act1])?void 0:r.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(i.act2==l?"act":""),onClick:e=>s(2,l)},e.toDisplayString(t.title),11,["onClick"])))),256))],8,["scroll-top"]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":i.scrolltop3,class:"scroll-Y scrl3"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(d=null==(c=n.value[i.act1])?void 0:c.children[i.act2])?void 0:d.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(i.act3==l?"act":""),onClick:e=>s(3,l)},e.toDisplayString(t.title),11,["onClick"])))),256))],8,["scroll-top"])]),e.createElementVNode("view",{class:"btnbotm"},[e.createElementVNode("view",{class:"bt",onClick:a[0]||(a[0]=e=>s(1,-1))},"重置"),e.createElementVNode("view",{class:"bt qd",onClick:m},[e.createTextVNode("确定 "),u.value>0?(e.openBlock(),e.createElementBlock("text",{key:0},"("+e.toDisplayString(u.value>99?"99+":u.value)+"件物料)",1)):e.createCommentVNode("",!0)])])],2)])}}}),[["__scopeId","data-v-3ee48a66"]]);const la=s({props:{cont:{type:String,default:""},show:{type:Boolean,default:!1},style:{type:String}}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[a.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"que",style:e.normalizeStyle(a.style)},[e.createElementVNode("image",{src:pt,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)],4)):e.createCommentVNode("",!0),a.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:"left-top-white"})):e.createCommentVNode("",!0)],64)}],["__scopeId","data-v-6a5064a0"]]),aa=s(e.defineComponent({__name:"purchaseorder",setup(t){const a=e.ref(!1),i=e.ref("");r((()=>{v(),i.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const n=["待入库","待完结","已完结"];e.ref("");const o=e.ref(0),c=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:""}),s={nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:""},u=e.ref(0),d=e.ref([]),m=e.ref(!1),v=()=>{ul(c).then((e=>{d.value.push(...e.result.records),l("log","at pages/procurement/purchaseorder.vue:435","zzzz",d.value),e.result.total||(m.value=!0),e.result.records.length&&(E.cgdId=d.value[0].id,B()),e.result.records.length<c.pageSize&&(c.canpull=!1)}))},p=e=>{E.categoryId=e.categoryId,E.typeId=e.typeId,E.medicationId=e.medicationId,E.suppliers=e.suppliers,E.cgdId=e.cgdId,E.pageNo=1,o.value=0,S.value=[],B(),a.value=!1},h=e.ref(!0),y=()=>{h.value&&(c.pageNo++,w(),h.value=!1,setTimeout((()=>{h.value=!0}),500))},w=()=>{c.canpull&&ul(c).then((e=>{d.value.push(...e.result.records),1==c.pageNo&&f(N.value,d.value[N.value]),e.result.records.length<c.pageSize&&(c.canpull=!1)}))},N=e.ref(0),f=(e,t)=>{N.value!=e&&(o.value=0);let l=Math.ceil(e+1);var a;u.value=186*(l-2),N.value=e,E.cgdId=d.value[e].id,E.pageNo=1,E.canpull=!0,B(),"Y"==t.izNew&&(t.izNew="N",a={id:t.id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editIzNew`,method:"post",data:a}))},k=e.ref({materialImg:"",cgrvalue:"",gysvalue:"",wlName:"",procurementPrice:"",wlMaterialNo:"",wlSpecificationModel:"",purchaseQuantity:"",wlUnits:"",kcsl:"",wlUpperLimit:"",wlLowerLimit:"",suppliersName:"",categoryId_dictText:"",typeId_dictText:""}),E=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",suppliers:"",cgdId:"",isWaring:0,canpull:!0}),x={nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0},V=e.ref(0),b=e=>{o.value=e,k.value=S.value[e],V.value=105*Math.floor(e/3),Object.assign(E,x),E.pageSize=-1},S=e.ref([]),B=()=>{var e;(e=E,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdInfoList`,method:"get",data:e})).then((e=>{S.value=[],S.value.push(...e.result.records),b(o.value)}))},T=()=>{E.pageNo=1,S.value=[],o.value=0,c.pageNo=1,d.value=[],ul(c).then((e=>{l("log","at pages/procurement/purchaseorder.vue:578",e.result.records),d.value.push(...e.result.records),e.result.records.length&&(E.cgdId=d.value[0].id,B()),e.result.records.length<c.pageSize&&(c.canpull=!1)}))},C=e.ref(-1),D=e.ref(-1),z=e.ref(!1),I=e.ref(!1),F=()=>{z.value=!0,C.value=-1,I.value=!1,setTimeout((()=>{I.value=!0}),100)},_=()=>{var e;(e={id:d.value[N.value].id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editShareInfo`,method:"post",data:e})).then((e=>{e.success&&(e=>g({url:"/sys/sysDepart/getShareUrlByCode",method:"get",data:e}))({orgCode:uni.getStorageSync("orgListCode")}).then((e=>{let t=`${e.shareUrl}/h5/CgdShareInfo?cgdId=${d.value[N.value].id}`;uni.share({provider:"weixin",scene:"WXSceneSession",type:0,href:t,summary:"点击查看采购单详情,包含物料规格及采购数量",title:`采购单: ${d.value[N.value].cgdNo}`,imageUrl:"https://www.focusnu.com/media/logo.png",success:function(e){l("log","at pages/procurement/purchaseorder.vue:630","success:")},fail:function(e){l("log","at pages/procurement/purchaseorder.vue:634","fail:")}})}))}))},M=e.ref(!1),$=e.ref(!1),L=()=>{var e;(e={id:d.value[D.value].id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/voidedCgdMain`,method:"post",data:e})).then((e=>{e.success&&(uni.showToast({title:e.message,icon:"success",duration:2e3}),M.value=!1,S.value=[],d.value=[],Object.assign(c,s),Object.assign(E,x),v())}))};return e.ref(!1),(t,l)=>{var r,s,v,g,h,w,E,x,B,U,P,A,q,O,Y,R,W,J,Q;return e.openBlock(),e.createElementBlock("view",{class:"contain"},[e.withDirectives(e.createElementVNode("view",{class:"mengban",onClick:l[0]||(l[0]=e=>C.value=-1)},null,512),[[e.vShow,-1!=C.value]]),e.createElementVNode("view",{class:"contain-left"},[e.createElementVNode("view",{class:"title-input-father"},[e.withDirectives(e.createElementVNode("input",{class:"title-input",type:"text","onUpdate:modelValue":l[1]||(l[1]=e=>c.cgdParamInfo=e),maxlength:"15",placeholder:"采购单号/采购日期/供应商",onConfirm:l[2]||(l[2]=e=>T())},null,544),[[e.vModelText,c.cgdParamInfo]]),e.withDirectives(e.createElementVNode("image",{class:"title-input-img",src:j,onClick:l[3]||(l[3]=e=>{c.cgdParamInfo="",T()})},null,512),[[e.vShow,c.cgdParamInfo]]),e.createElementVNode("view",{class:"title-input-button",onClick:l[4]||(l[4]=e=>{T()})}," 检索 ")]),e.createElementVNode("view",{class:"left-menu-father"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":u.value,onScrolltolower:y,"lower-threshold":400},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,l)=>{var a,i,o;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:e=>f(l,t),style:e.normalizeStyle({borderColor:l===N.value?"":"transparent",background:l===N.value?"#fff":"rgba(255,255,255,0.6)"})},[C.value==l?(e.openBlock(),e.createElementBlock("view",{key:0,class:"more-father"},[e.createElementVNode("view",{class:"more-one",onClick:F}," 分享 "),Number(t.status)<=0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"more-one",onClick:e=>(e=>{1!=Number(e.status)?(M.value=!0,C.value=-1,$.value=!1,setTimeout((()=>$.value=!0),50)):setTimeout((()=>{uni.showToast({title:"只有采购阶段的单据才能作废",icon:"none",duration:2e3})}),300)})(t)}," 作废 ",8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),"Y"==t.izNew?(e.openBlock(),e.createElementBlock("text",{key:1,style:{display:"block",background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.1vw",top:"-0.1vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.cgdNo),1),e.createElementVNode("view",{class:"title-right"},[e.createElementVNode("text",{style:{position:"absolute",bottom:"4rpx",left:"-30rpx"}}," ¥ "),e.createElementVNode("view",{class:"title-right-big"},e.toDisplayString(Number(t.totalPrice).toFixed(2)),1),e.createElementVNode("image",{class:"title-right-img",src:"/static/more.png",onClick:e=>{return t=l,D.value=t,void("9"==d.value[t].cgdType?setTimeout((()=>{uni.showToast({title:"该采购单已作废",icon:"error",duration:2e3})}),300):C.value=t);var t}},null,8,["onClick"])])]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(t.qgDate.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 采购 "),e.createElementVNode("view",null,e.toDisplayString("[ "+t.qgBy+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title",style:e.normalizeStyle("9"==(null==t?void 0:t.cgdType)?{color:"#FF5757"}:{})},e.toDisplayString("9"==(null==t?void 0:t.cgdType)?null==(a=t.zfTime)?void 0:a.slice(0,10).replace(/-/g,"."):Number(t.status)<1?"":null==(i=t.jhTime)?void 0:i.slice(0,10).replace(/-/g,".")),5),e.createElementVNode("view",{class:"middle-heng-father"},["9"==(null==t?void 0:t.cgdType)?(e.openBlock(),e.createElementBlock("image",{key:0,class:"middle-ball-img",style:{width:"32rpx",height:"32rpx"},src:ot})):Number(t.status)<2?(e.openBlock(),e.createElementBlock("view",{key:1,class:"middle-ball",style:e.normalizeStyle([{"background-color":"#1083F8"},"9"==(null==t?void 0:t.cgdType)?{backgroundColor:"#FF5757"}:{}])},null,4)):(e.openBlock(),e.createElementBlock("image",{key:2,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",{style:e.normalizeStyle("9"==(null==t?void 0:t.cgdType)?{color:"#FF5757"}:{})},e.toDisplayString("9"==(null==t?void 0:t.cgdType)?"已作废":"拣货"),5),(null==t?void 0:t.jhBy)||(null==t?void 0:t.zfBy)?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle("9"==(null==t?void 0:t.cgdType)?{color:"#FF5757"}:{})},e.toDisplayString(Number(t.status)>0||"9"==(null==t?void 0:t.cgdType)?"[ "+("9"==(null==t?void 0:t.cgdType)?null==t?void 0:t.zfBy:null==t?void 0:t.jhBy)+" ]":""),5)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(null==(o=t.wjTime)?void 0:o.slice(0,10).replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[Number(t.status)<2?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball"})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 完结 "),Number(t.status)>1&&t.wjBy?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString("[ "+t.wjBy+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:$l}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.gysName),1)]),e.createElementVNode("view",{class:e.normalizeClass("9"==(null==t?void 0:t.cgdType)?"tag-fail":"tag-success")},e.toDisplayString("9"==(null==t?void 0:t.cgdType)?"已作废":n[Number(t.status)]),3)])],12,["onClick"])})),128))],40,["scroll-top"])])]),e.createElementVNode("view",{class:"white-zhezhao"}),e.createElementVNode("view",{class:"contain-right"},[e.createElementVNode("view",{class:"contain-right-title"},[e.createElementVNode("view",{class:"contain-right-button",onClick:l[5]||(l[5]=e=>a.value=!0)},[e.createElementVNode("image",{class:"buttont-img",src:ea}),e.createElementVNode("view",{class:"button-font"}," 筛选 ")]),e.createElementVNode("view",{class:"contain-right-button",onClick:l[6]||(l[6]=e=>{uni.navigateBack()})},[e.createElementVNode("image",{class:"buttont-img",style:{"margin-top":"4rpx"},src:"/static/index/purchaseorder/back.png"}),e.createElementVNode("view",{class:"button-font"}," 返回 ")])]),e.createElementVNode("view",{class:"contain-right-middle"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"middle-Y","scroll-with-animation":"","scroll-top":V.value},[e.createElementVNode("view",{class:"middle-Y-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"middle-one",key:l,style:e.normalizeStyle({border:o.value===l?"4rpx dashed #1083F8":"4rpx solid transparent",backgroundColor:o.value===l?"#F9FCFF":""}),onClick:e=>b(l)},[e.createElementVNode("image",{class:"middle-img",src:t.materialImg?i.value+t.materialImg:"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"middle-right"},[e.createElementVNode("view",{class:"right-title"},e.toDisplayString(t.wlName),1),e.createElementVNode("view",{class:"right-middle",style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},e.toDisplayString(t.wlSpecificationModel),1),e.createElementVNode("view",{style:{color:"#888888"}}," 采购数量: "+e.toDisplayString(t.purchaseQuantity+t.wlUnits),1)])],12,["onClick"])))),128))])],8,["scroll-top"]),e.createElementVNode("view",{class:"wuliao-title"},[e.createTextVNode(" 物料详情 "),e.createElementVNode("view",{class:"wuliao-heng"})]),e.createElementVNode("view",{style:{width:"100%",height:"0.5rpx","background-color":"#eff1f3"}}),e.createElementVNode("view",{class:"right-bottom"},[e.createElementVNode("view",{class:"right-bottom-left"},[e.createElementVNode("image",{class:"left-img",src:(null==(r=k.value)?void 0:r.materialImg)?i.value+(null==(s=k.value)?void 0:s.materialImg):"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"left-tags"},[e.createElementVNode("view",{class:"tags-one"},e.toDisplayString(null==(v=k.value)?void 0:v.categoryId_dictText),1),e.createElementVNode("view",{class:"tags-one"},e.toDisplayString(null==(g=k.value)?void 0:g.typeId_dictText),1),k.value.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0,class:"tags-one"},e.toDisplayString(k.value.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"right-bottom-right"},[e.createElementVNode("view",{class:"bottom-right-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(null==(h=k.value)?void 0:h.wlName),1)]),e.createElementVNode("view",{class:"bottom-right-middle"},[e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料编号 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(w=k.value)?void 0:w.wlMaterialNo),1)]),e.createElementVNode("view",{class:"threeone",style:{"white-space":"nowrap"}},[e.createElementVNode("view",{class:"gray-text",style:{"white-space":"nowrap"}}," 规格型号 "),e.createElementVNode("view",{class:"right-text",style:{"white-space":"nowrap"}},e.toDisplayString(null==(E=k.value)?void 0:E.wlSpecificationModel),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单价 "),e.createElementVNode("view",{class:"right-text"}," ¥"+e.toDisplayString(Number(null==(x=k.value)?void 0:x.procurementPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(B=k.value)?void 0:B.purchaseQuantity),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单位 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(U=k.value)?void 0:U.wlUnits),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 库存数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(P=k.value)?void 0:P.kcsl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料上限 ↑ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(A=k.value)?void 0:A.wlUpperLimit),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料下限 ↓ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(q=k.value)?void 0:q.wlLowerLimit),1)]),e.createElementVNode("view",{class:"gray-heng"})]),e.createElementVNode("view",{class:"middle-onecard"},[e.createElementVNode("view",{class:"threeone",style:{width:"100%"}},[e.createElementVNode("view",{class:"gray-text"}," 供应商 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(null==(O=k.value)?void 0:O.suppliersName),1)])])])])])])]),e.createVNode(la,{cont:"暂无数据",show:m.value},null,8,["show"]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:l[8]||(l[8]=e=>z.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:I.value?1:0}),onClick:l[7]||(l[7]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-main"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"share-weight"},e.toDisplayString(null==(Y=d.value[N.value])?void 0:Y.cgdNo),1),e.createElementVNode("view",{class:"share-font"}," 供应商:"+e.toDisplayString(null==(R=d.value[N.value])?void 0:R.gysId_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购时间:"+e.toDisplayString(null==(W=d.value[N.value])?void 0:W.qgDate),1)]),e.createElementVNode("view",{class:"right-flex"},[e.createElementVNode("view",{style:{"font-weight":"600"}},[e.createElementVNode("text",{style:{"vertical-align":"2rpx"}}," ¥ "),e.createElementVNode("text",{class:"dollar-text"},e.toDisplayString(Number(null==(J=d.value[N.value])?void 0:J.totalPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"caigou-font"}," 采购金额 ")])]),e.createElementVNode("view",{class:"share-bottom"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("image",{class:"share-bottom-img",src:Ul}),e.createElementVNode("view",{style:{"margin-left":"-20rpx","margin-top":"10rpx"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{class:"share-name"},e.toDisplayString(uni.getStorageSync("realname")),1),e.createElementVNode("view",{class:"share-font"}," 采购人 ")]),e.createElementVNode("view",{class:"share-phone"},e.toDisplayString(uni.getStorageSync("username")),1)])]),e.createElementVNode("view",{class:"company-father"},[e.createElementVNode("view",{class:"company"},e.toDisplayString(uni.getStorageSync("orgListName")),1),e.createElementVNode("view",{class:"blue-button",onClick:_}," 分享 ")])])])],4)],512),[[e.vShow,z.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",style:{background:"RGBA(239, 240, 244, 0.55)"},onClick:l[9]||(l[9]=e=>a.value=!1)})):e.createCommentVNode("",!0),e.createVNode(ta,{onConfirm:p,show:a.value,typenum:2,cgdId:null==(Q=d.value[N.value])?void 0:Q.id},null,8,["show","cgdId"]),e.createVNode(El,{show:M.value,font:"确定要作废这个采购单吗",onBack:l[10]||(l[10]=e=>{M.value=!1}),onRight:L},null,8,["show"])])}}}),[["__scopeId","data-v-0b5af08f"]]),ia="/static/index/procurement/cz.png",na=s(e.defineComponent({__name:"calculator",props:{show:{type:Boolean,default:!1},caigouobj:{type:Object,required:!0}},emits:["right","colse","jjnum"],setup(t,{emit:a}){const i=a,n=e.ref(-1),o=e.ref(!1),r=e.ref(!1),c=e.ref(!1),s=e.ref({}),u=e.ref(0),d=e.ref([]),m=e.ref([]),v=e.ref(0),p=t,g=e.ref(!1),h=e.ref(!1);e.watch((()=>r.value),(()=>{1==r.value&&setTimeout((()=>{g.value=!0}),200)})),e.watch((()=>p.show),(()=>{if(p.show){let e=[{multiUnitType:1,price:p.caigouobj.oneUnitPrice,unit:p.caigouobj.oneUnit,num:p.caigouobj.oneUnitProportion},{multiUnitType:2,price:p.caigouobj.twoUnitPrice,unit:p.caigouobj.twoUnit,num:p.caigouobj.twoUnitProportion},{multiUnitType:3,price:p.caigouobj.unitPrice?p.caigouobj.unitPrice:p.caigouobj.referenceUnitPrice,unit:p.caigouobj.materialUnits,num:1}];p.caigouobj.wlUnits?(s.value=e.find((e=>e.unit==p.caigouobj.wlUnits)),l("log","at pages/procurement/components/calculator.vue:180",p.caigouobj.wlUnits,s.value)):s.value=e.find((e=>e.multiUnitType==p.caigouobj.multiUnitType)),m.value=[],u.value=0,e.forEach((e=>{e.unit&&e.num&&m.value.push(e)}));let t=[],a=[];d.value=[],t=p.caigouobj.suppliers_dictText.split(/[, ]+/),a=p.caigouobj.suppliers.split(/[, ]+/),t.forEach(((e,t)=>{d.value.push({name:e,id:a[t]}),e==p.caigouobj.suppliersName&&f(t)})),p.caigouobj.purchaseQuantity?(p.caigouobj.upperLimit=p.caigouobj.wlUpperLimit,w(p.caigouobj.purchaseQuantity)):y(),setTimeout((()=>{h.value=!0}),50)}else o.value=!1,r.value=!1,g.value=!1,s.value={},c.value=!1,v.value=0,V.value=!1,setTimeout((()=>{h.value=!1}),400)}));const y=()=>{let e=Number(p.caigouobj.upperLimit)-Number(p.caigouobj.kcsl),t=Math.floor(e/s.value.num);w(t),N()},w=e=>{x.value=e,E.value=F(x.value)},N=()=>{let e=Number(p.caigouobj.upperLimit)-Number(p.caigouobj.kcsl),t=x.value*s.value.num;c.value=t>e},f=e=>{v.value=e,o.value=!1},k=[1,2,3,4,5,6,7,8,9,"AC",0,"AE"],E=e.ref("0000"),x=e.ref(0),V=e.ref(!1),b=(e,t)=>{return n.value=t,setTimeout((()=>{n.value=-1}),300),"AC"==e?(x.value=0,E.value="0000",void N()):"AE"==e?(x.value=Math.trunc(x.value/10),E.value=F(x.value),void N()):0==V.value?(V.value=!0,x.value=e,E.value=F(x.value),void N()):(l=x.value,void(Math.abs(l).toString().length>3||(x.value?x.value=10*x.value+e:x.value=e,N(),E.value=F(x.value))));var l},S=e.ref(null),B=e=>{C(e)},T=()=>{clearInterval(S.value)},C=e=>{S.value=setInterval((()=>{D(e)}),120)},D=e=>{let t=Number(p.caigouobj.upperLimit)-Number(p.caigouobj.kcsl),l=Math.floor(t/s.value.num);l<=x.value&&1==e?x.value=l:x.value<=1&&-1==e?x.value=1:(x.value+=e,E.value=F(x.value),N())},z=()=>{x.value<1?uni.showToast({title:"采购数量不能为0!",icon:"none"}):i("right",x.value,d.value[v.value],s.value,p.caigouobj)},I=()=>{i("colse")};function F(e){const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")}return(l,a)=>{var i;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["plsbuy-contain guodu",t.show?"":"unclass"]),style:e.normalizeStyle(h.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"gys"},[e.createElementVNode("view",{class:"tlt"},"供应商"),e.createElementVNode("view",{class:"gssel",onClick:a[1]||(a[1]=e=>o.value=!0)},[e.createElementVNode("view",null,e.toDisplayString(null==(i=d.value[v.value])?void 0:i.name),1),e.createElementVNode("text",{onClick:a[0]||(a[0]=e.withModifiers((e=>o.value=!o.value),["stop"]))},[e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(o.value?"transform: rotate(180deg);":""),src:"/static/index/procurement/sj.png",mode:"aspectFill"},null,12,["src"])])]),e.createElementVNode("view",{class:e.normalizeClass(["tanchu guodu",o.value?"":"hei0"]),style:e.normalizeStyle(`height: ${d.value&&7*d.value.length||0}vh`)},[o.value?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"gysscrol"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(v.value==l?"acts":""),onClick:e=>f(l)},[e.createElementVNode("text",null,e.toDisplayString(t.name),1)],10,["onClick"])))),128))])):e.createCommentVNode("",!0)],6)]),e.createElementVNode("view",{class:"calculator-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(k,((t,l)=>e.createElementVNode("view",{key:l},["AC"==t?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass([n.value==l?"calculator-kuai-target":"","calculator-kuai"]),style:{"font-size":"33rpx"},onClick:e=>b(t,l)}," 清零 ",10,["onClick"])):"AE"==t?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass([n.value==l?"calculator-kuai-target":"","calculator-kuai"]),onClick:e=>b(t,l)},[e.createElementVNode("image",{src:Tt,mode:"aspectFill",style:{width:"50%",height:"50%","margin-left":"-5rpx"}})],10,["onClick"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass([n.value==l?"calculator-kuai-target":"","calculator-kuai"]),onClick:e=>b(t,l)},e.toDisplayString(t),11,["onClick"]))]))),64))]),e.createElementVNode("view",{class:"qinggou-font"},[e.createTextVNode(" 采购数量 "),1==c.value?(e.openBlock(),e.createElementBlock("text",{key:0,style:{color:"red"}},"超过库存上限!")):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"stringShow-father"},[e.createElementVNode("view",{class:"jj",onClick:a[2]||(a[2]=e=>D(-1)),onLongpress:a[3]||(a[3]=e=>B(-1)),onTouchend:T}," - ",32),e.createElementVNode("view",{class:"stringShow-kuai"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,style:e.normalizeStyle(1==c.value?"color: red":"")},e.toDisplayString(t),5)))),128))]),e.createElementVNode("view",{class:"jj",style:e.normalizeStyle(1==c.value?"background:#f8f8f8":""),onClick:a[4]||(a[4]=e=>D(1)),onLongpress:a[5]||(a[5]=e=>B(1)),onTouchend:T}," + ",36)]),e.createElementVNode("view",{class:"cgdw"},[e.createElementVNode("view",{class:"leftr",onClick:a[6]||(a[6]=e.withModifiers((e=>(r.value=!r.value,g.value=!1)),["stop"]))},[e.createElementVNode("view",null,e.toDisplayString(s.value.unit),1),e.createElementVNode("text",null,[e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(r.value?"":"transform: rotate(180deg);"),src:"/static/index/procurement/sj.png",mode:"aspectFill"},null,12,["src"])])]),e.createElementVNode("view",{class:e.normalizeClass(["dwdw guodu",r.value?"":"hei0"]),style:e.normalizeStyle(`height: ${m.value&&7*m.value.length||0}vh`)},[g.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["gysscrol guodu",r.value?"":"hei0"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,((l,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass(s.value.multiUnitType==l.multiUnitType?"acts":""),onClick:e=>((e,t)=>{s.value=e,r.value=!1,g.value=!1,y()})(l),style:e.normalizeStyle(l.unit&&l.num?"":"height:0 !important;margin-top:-0.5vw")},[l.unit&&l.num?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(l.unit),1)):e.createCommentVNode("",!0),l.unit&&l.num?(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(l.num)+e.toDisplayString(t.caigouobj.materialUnits),1)):e.createCommentVNode("",!0)],14,["onClick"])))),128))],2)):e.createCommentVNode("",!0)],6)]),e.createElementVNode("view",{class:"plsbuy-bottom"},[e.createElementVNode("view",{class:"quxiao",onClick:I}," 取消 "),e.createElementVNode("view",{class:"plsbuy-bottom-blue",onClick:z}," 确定 ")]),r.value||o.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[7]||(a[7]=e=>{o.value=!1,r.value=!1,g.value=!1})})):e.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-2eb5c23b"]]),oa=s(e.defineComponent({__name:"classification",props:{show:{type:Boolean,default:!1,required:!0},typenum:{type:Number,default:0}},emits:["confirm"],setup(t,{expose:a,emit:i}){const n=e.reactive({scrolltop1:0,scrolltop2:0,scrolltop3:0,act1:-1,act2:-1,act3:-1}),o=e.ref([]),r=e.ref([]),c=e.ref(-1),s=e.ref(""),u=e.ref(!1),d=e.ref(!1),m=i,v=(e,t,l)=>{if(1==e&&(n.act2=-1,n.act3=-1,n.scrolltop2=0,n.scrolltop3=0,n.act1==t))return n.act1=-1,void y();2==e&&(n.act3=-1,n.scrolltop3=0),n["act"+e]=t,n["scrolltop"+e]=50*(t-2),y()};e.onMounted((()=>{s.value=uni.getStorageSync("serverUrl")+"/sys/common/static/",w(),p()}));const p=()=>{var e;g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGysList`,method:"get",data:e}).then((e=>{r.value=e.result}))},h=e.ref(0),y=()=>{let e={nuId:uni.getStorageSync("nuId"),categoryId:n.act1>-1?o.value[n.act1].categoryId:"",typeId:n.act2>-1?o.value[n.act1].children[n.act2].typeId:"",medicationId:n.act3>-1?o.value[n.act1].children[n.act2].children[n.act3].key:"",suppliers:c.value>-1?r.value[c.value].suppliers:""};switch(f.typenum){case 0:ml(e).then((e=>{h.value=e.result.totalSize}));break;case 1:vl(e).then((e=>{h.value=e.result.totalSize}));break;case 2:pl(e).then((e=>{h.value=e.result.totalSize}))}},w=()=>{switch(f.typenum){case 0:rl({nuId:uni.getStorageSync("nuId")}).then((e=>{o.value=e.result,y()}));break;case 1:cl({nuId:uni.getStorageSync("nuId")}).then((e=>{o.value=e.result,y()}));break;case 2:l("log","at pages/procurement/components/classification.vue:162",{nuId:uni.getStorageSync("nuId")}),sl({nuId:uni.getStorageSync("nuId")}).then((e=>{l("log","at pages/procurement/components/classification.vue:164",e.result),o.value=e.result,y()}))}},N=()=>{let e={categoryId:n.act1>-1?o.value[n.act1].categoryId:"",typeId:n.act2>-1?o.value[n.act1].children[n.act2].typeId:"",medicationId:n.act3>-1?o.value[n.act1].children[n.act2].children[n.act3].key:"",suppliers:c.value>-1?r.value[c.value].suppliers:""};m("confirm",e)},f=t;e.watch((()=>f.show),(()=>{0==f.show?(u.value=!1,setTimeout((()=>{d.value=!1}),400)):setTimeout((()=>{d.value=!0}),50)}));const k=()=>{c.value<0?u.value=!u.value:E()},E=()=>{c.value>-1&&(c.value=-1,y())};return a({typescroll:v,config:N,qingkong:E,getTreelnum:y}),(l,a)=>{var i,m,p;return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:e.normalizeClass(["ifclass guodu",t.show?"":"unclass"]),style:e.normalizeStyle(d.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"gyss"},[e.createElementVNode("view",{class:"lef"},"供 应 商"),e.createElementVNode("view",{class:"set",onClick:a[0]||(a[0]=e=>u.value=!u.value)},[e.createElementVNode("text",{class:e.normalizeClass(c.value>-1?"n":"")},e.toDisplayString(c.value>-1?r.value[c.value].suppliersName:"请选择供应商"),3),e.createElementVNode("image",{onClick:e.withModifiers(k,["stop"]),class:"guodu",style:e.normalizeStyle(u.value&&-1==c.value?"transform: rotate(180deg);":""),src:c.value<0?"/static/index/procurement/sj.png":"/static/index/procurement/x.png",mode:"aspectFill"},null,12,["src"])]),e.createElementVNode("view",{class:e.normalizeClass(["xuze guodu",u.value?"":"hei0"])},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:e.normalizeClass(["gysscrol guodu",u.value?"":"hei0"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(c.value==l?"acts":""),onClick:e=>{c.value=l,u.value=!1,y()}},[e.createElementVNode("text",null,e.toDisplayString(t.suppliersName),1)],10,["onClick"])))),128))],2)],2),u.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[1]||(a[1]=e=>u.value=!1)})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"titletop"},"物料分类"),e.createElementVNode("view",{class:"toptype"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["一","二","三"],(t=>e.createElementVNode("view",null,e.toDisplayString(t+"级分类"),1))),64))]),e.createElementVNode("view",{class:"scroltype"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":n.scrolltop1,class:"scroll-Y scrl1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.act1==l?"act":""),onClick:e=>v(1,l)},[n.act1==l?(e.openBlock(),e.createElementBlock("image",{key:0,src:s.value+t.appCheckIconPath,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:1,src:s.value+t.appIconPath,mode:"aspectFill"},null,8,["src"])),e.createElementVNode("text",null,e.toDisplayString(t.title),1)],10,["onClick"])))),256))],8,["scroll-top"]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":n.scrolltop2,class:"scroll-Y scrl2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(i=o.value[n.act1])?void 0:i.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.act2==l?"act":""),onClick:e=>v(2,l)},e.toDisplayString(t.title),11,["onClick"])))),256))],8,["scroll-top"]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"","scroll-top":n.scrolltop3,class:"scroll-Y scrl3"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(p=null==(m=o.value[n.act1])?void 0:m.children[n.act2])?void 0:p.children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(n.act3==l?"act":""),onClick:e=>v(3,l)},e.toDisplayString(t.title),11,["onClick"])))),256))],8,["scroll-top"])]),e.createElementVNode("view",{class:"btnbotm"},[e.createElementVNode("view",{class:"bt",onClick:a[2]||(a[2]=e=>{v(1,-1),E()})},"重置"),e.createElementVNode("view",{class:"bt qd",onClick:N},[e.createTextVNode("确定 "),h.value>0?(e.openBlock(),e.createElementBlock("text",{key:0},"("+e.toDisplayString(h.value>99?"99+":h.value)+"件物料)",1)):e.createCommentVNode("",!0)])])],6)])}}}),[["__scopeId","data-v-6616652c"]]),ra=s(e.defineComponent({__name:"Inventory",props:{InvoicingList:{type:Array,required:!0},status:{type:String},show:{type:Boolean,default:!1,required:!0}},emits:["addcartory","tolower","solleft","crk"],setup(t,{emit:l}){const i=t,n=l,o=e.ref("");e.onMounted((()=>{o.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"})),e.ref(!0);const r=()=>{n("tolower")},c=e.ref({}),s=e.ref(0),u=e.ref(0),d=(e,t)=>{i.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))};e.ref(0);return(l,i)=>{const m=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"qbkyj"},[e.createElementVNode("view",{class:"titletop"},"全部库存预警"),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"crdcroll","scroll-with-animation":"",onScrolltolower:r},[e.createElementVNode("view",{class:"fler"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((t,l)=>(e.openBlock(),e.createElementBlock("scroll-view",{class:"carditem guodu",key:l,onTouchend:e=>((e,t,l)=>{var a;let i=e.changedTouches[0].pageY,n=e.changedTouches[0].pageX,o=Math.abs(n-s.value),r=Math.abs(i-u.value);if(r>30&&o+10<r&&o<70)0==t.zk&&setTimeout((()=>{t.scrollleft=0}),20);else{if(o<10&&r<10)return 0==t.zk&&o>2&&r>2?void(t.scrollleft=0):void 0;c.value=t,c.value.Limitnum=Number(null==(a=c.value)?void 0:a.upperLimit)-Number(c.value.kcsl),c.value.index=l,t.zk=!(n>s.value),t.scrollleft=t.zk?170:0}})(e,t,l),onTouchstart:e=>((e,t,l)=>{s.value=e.changedTouches[0].pageX,u.value=e.changedTouches[0].pageY,d(t,l)})(e,t,l),"scroll-with-animation":"","scroll-x":"true","scroll-left":t.scrollleft,onScroll:e=>{}},[e.createElementVNode("view",{class:e.normalizeClass(["speitem guodu",t.zk?"spleft":""])},[e.createElementVNode("view",{class:"imghs"},[e.createElementVNode("image",{src:t.materialImg?o.value+t.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[t.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryId_dictText),1)):e.createCommentVNode("",!0),t.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeId_dictText),1)):e.createCommentVNode("",!0),t.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationId_dictText),1)):e.createCommentVNode("",!0)])],2),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(t.materialName),1),e.createElementVNode("text",null,e.toDisplayString(t.materialNo),1)]),e.createElementVNode("view",{style:{"white-space":"nowrap",display:"block"}},[e.createElementVNode("text",{style:{"white-space":"nowrap",display:"block"}}," 规格型号: "+e.toDisplayString(t.specificationModel),1)]),e.createElementVNode("view",null,["1"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:0},"采购单价: ¥"+e.toDisplayString(t.oneUnitPrice?Number(t.oneUnitPrice).toFixed(2):""),1)):e.createCommentVNode("",!0),"1"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:1},"采购单位: "+e.toDisplayString(t.oneUnit),1)):e.createCommentVNode("",!0),"2"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:2},"采购单价: ¥"+e.toDisplayString(t.twoUnitPrice?Number(t.twoUnitPrice).toFixed(2):""),1)):e.createCommentVNode("",!0),"2"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:3},"采购单位: "+e.toDisplayString(t.twoUnit),1)):e.createCommentVNode("",!0),"3"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:4},"采购单价: ¥"+e.toDisplayString(t.referenceUnitPrice?Number(t.referenceUnitPrice).toFixed(2):""),1)):e.createCommentVNode("",!0),"3"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:5},"采购单位: "+e.toDisplayString(t.materialUnits),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.kcsl),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.upperLimit),1),e.createElementVNode("text",null,"物料上限 ↑")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.lowerLimit),1),e.createElementVNode("text",null,"↓ 物料下限")])])]),e.createElementVNode("view",{class:"add",onClick:e.withModifiers((e=>((e,t)=>{var l;c.value=e,c.value.Limitnum=Number(null==(l=c.value)?void 0:l.upperLimit)-Number(c.value.kcsl),c.value.index=t,c.value.yj=!0,1==e.zk?(e.zk=!1,e.scrollleft=0):(e.zk=!0,e.scrollleft=170),d(e,t)})(t,l)),["stop"])},[1==t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0},"已添加")):e.createCommentVNode("",!0),e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(t.zk?"transform: rotate(180deg);":""),src:"/static/index/procurement/l.png",mode:"aspectFill"},null,12,["src"])],8,["onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["zkadd guodu",1==t.isAdd?"zkf":""])},[e.createElementVNode("view",{onClick:e.withModifiers((e=>((e,t)=>{n("crk",e,t)})(t,l)),["stop"]),onTouchend:i[0]||(i[0]=e.withModifiers((()=>{}),["stop"]))},"出入库",40,["onClick"]),1!=t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{n("addcartory",c.value)}),["stop"]),onTouchend:i[1]||(i[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",null," 加购物车 ")],40,["onClick"])):e.createCommentVNode("",!0)],2)],40,["onTouchend","onTouchstart","scroll-left","onScroll"])))),128))]),e.createElementVNode("view",{style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[t.InvoicingList.length>6?(e.openBlock(),e.createBlock(m,{key:0,status:t.status,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],32)])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-042a66f3"]]),ca=s(e.defineComponent({__name:"carditem",props:{InvoicingList:{type:Array},status:{type:String},show:{type:Boolean,default:!1}},emits:["addcartory","scrolltolower","addcar","crk"],setup(t,{emit:i}){const n=t,o=i,r=e.ref("");e.onMounted((()=>{r.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const c=e.ref({}),s=(e,t)=>{Number(e.kcsl)>=Number(e.upperLimit)?uni.showToast({title:"库存数量已满,不可添加购物车!",icon:"none"}):(c.value=e,c.value.index=t,c.value.yj=!1,o("addcartory",c.value))},u=e.ref(0),d=e.ref(0),m=(e,t)=>{n.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))};e.ref(0);const v=e=>{};return(i,n)=>{const p=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"crdcroll","scroll-with-animation":"",onScrolltolower:n[2]||(n[2]=e=>{o("scrolltolower")}),"enable-back-to-top":""},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"fler",key:a},[e.createElementVNode("scroll-view",{class:"carditem guodu",onTouchend:e=>((e,t,a)=>{var i;let n=e.changedTouches[0].pageY,o=e.changedTouches[0].pageX,r=Math.abs(o-u.value),s=Math.abs(n-d.value);return s>30&&r+10<s?(t.scrollleft=1,void setTimeout((()=>{t.scrollleft=0}),20)):r<10&&s<10?(0==t.zk&&setTimeout((()=>{t.scrollleft=0}),20),void l("log","at pages/procurement/components/carditem.vue:132","2")):(c.value=t,c.value.Limitnum=Number(null==(i=c.value)?void 0:i.upperLimit)-Number(c.value.kcsl),c.value.index=a,c.value.yj=!1,t.zk=!(o>u.value),void(t.scrollleft=t.zk?150:0))})(e,t,a),onTouchstart:e=>((e,t,l)=>{u.value=e.changedTouches[0].pageX,d.value=e.changedTouches[0].pageY,m(t,l)})(e,t,a),"scroll-with-animation":"","scroll-x":"true","scroll-left":t.scrollleft,onScroll:v},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imghs"},[e.createElementVNode("image",{src:t.materialImg?r.value+t.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[t.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryId_dictText),1)):e.createCommentVNode("",!0),t.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeId_dictText),1)):e.createCommentVNode("",!0),t.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(t.materialName),1),e.createElementVNode("text",null,e.toDisplayString(t.materialNo),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "+e.toDisplayString(t.specificationModel),1)]),e.createElementVNode("view",null,["1"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:0},"采购单价: ¥"+e.toDisplayString(Number(t.oneUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),"1"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:1},"采购单位: "+e.toDisplayString(t.oneUnit),1)):e.createCommentVNode("",!0),"2"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:2},"采购单价: ¥"+e.toDisplayString(Number(t.twoUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),"2"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:3},"采购单位: "+e.toDisplayString(t.twoUnit),1)):e.createCommentVNode("",!0),"3"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:4},"采购单价: ¥"+e.toDisplayString(Number(t.referenceUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),"3"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:5},"采购单位: "+e.toDisplayString(t.materialUnits),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.kcsl),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.upperLimit),1),e.createElementVNode("text",null,"物料上限 ↑")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.lowerLimit),1),e.createElementVNode("text",null,"↓ 物料下限")])])]),e.createElementVNode("view",{class:"add",onClick:e.withModifiers((e=>s(t,a)),["stop"])},[1==t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0},"已添加")):e.createCommentVNode("",!0),e.createElementVNode("image",{src:"/static/index/procurement/+.png",mode:"aspectFill"},null,8,["src"])],8,["onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["zkadd guodu",1==t.isAdd?"zkf":""])},[e.createElementVNode("view",{onClick:e.withModifiers((e=>((e,t)=>{o("crk",e,t)})(t,a)),["stop"]),onTouchend:n[0]||(n[0]=e.withModifiers((()=>{}),["stop"]))},"出入库",40,["onClick"]),1!=t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>s(t,a)),["stop"]),onTouchend:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",null," 加购物车 ")],40,["onClick"])):e.createCommentVNode("",!0)],2)],40,["onTouchend","onTouchstart","scroll-left"])])))),128))]),e.createElementVNode("view",{style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[t.InvoicingList.length>6?(e.openBlock(),e.createBlock(p,{key:0,status:t.status,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],32)])}}}),[["__scopeId","data-v-38baf91a"]]),sa=s(e.defineComponent({__name:"details",props:{InvoicingList:{type:Array,required:!0},status:{type:String},show:{type:Boolean,default:!1,required:!0}},emits:["addcartory","tolower","solleft","crk"],setup(t,{emit:l}){const a=t;e.watch((()=>a.show),(()=>{0==a.show&&(a.InvoicingList[0].scrollleft=0)}));const i=l,n=e.ref("");e.onMounted((()=>{n.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));e.ref(!0);const o=()=>{i("tolower")},r=e.ref({}),c=e.ref(0),s=e.ref(0),u=(e,t)=>{a.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))};return(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"qbkyj"},[e.createElementVNode("view",{class:"titletop"},"详情"),e.createElementVNode("view",{"scroll-y":"true",class:"crdcroll","scroll-with-animation":"",onScrolltolower:o},[e.createElementVNode("view",{class:"fler"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((t,l)=>(e.openBlock(),e.createElementBlock("scroll-view",{class:"carditem guodu",key:l,onTouchend:e=>((e,t,l)=>{var a;let i=e.changedTouches[0].pageY,n=e.changedTouches[0].pageX,o=Math.abs(n-c.value),u=Math.abs(i-s.value);if(u>30&&o+10<u&&o<70)0==t.zk&&setTimeout((()=>{t.scrollleft=0}),20);else{if(o<10&&u<10)return 0==t.zk&&o>2&&u>2?void(t.scrollleft=0):void 0;r.value=t,r.value.Limitnum=Number(null==(a=r.value)?void 0:a.upperLimit)-Number(r.value.kcsl),r.value.index=l,t.zk=!(n>c.value),t.scrollleft=t.zk?180:0}})(e,t,l),onTouchstart:e=>((e,t,l)=>{c.value=e.changedTouches[0].pageX,s.value=e.changedTouches[0].pageY,u(t,l)})(e,t,l),"scroll-with-animation":"","scroll-x":"true","scroll-left":t.scrollleft},[e.createElementVNode("view",{class:e.normalizeClass(["speitem guodu",t.zk?"spleft":""])},[e.createElementVNode("image",{src:t.materialImg?n.value+t.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"cardp"},[t.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryId_dictText),1)):e.createCommentVNode("",!0),t.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeId_dictText),1)):e.createCommentVNode("",!0),t.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationId_dictText),1)):e.createCommentVNode("",!0)])],2),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(t.materialName),1),e.createElementVNode("text",null,e.toDisplayString(t.materialNo),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "+e.toDisplayString(t.specificationModel),1)]),e.createElementVNode("view",null,["1"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:0},"采购单价: ¥"+e.toDisplayString(Number(t.oneUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),"1"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:1},"采购单位: "+e.toDisplayString(t.oneUnit),1)):e.createCommentVNode("",!0),"2"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:2},"采购单价: ¥"+e.toDisplayString(Number(t.twoUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),"2"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:3},"采购单位: "+e.toDisplayString(t.twoUnit),1)):e.createCommentVNode("",!0),"3"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:4},"采购单价: ¥"+e.toDisplayString(Number(t.referenceUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),"3"==t.multiUnitType?(e.openBlock(),e.createElementBlock("text",{key:5},"采购单位: "+e.toDisplayString(t.materialUnits),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.kcsl),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.upperLimit),1),e.createElementVNode("text",null,"物料上限 ↑")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.lowerLimit),1),e.createElementVNode("text",null,"↓ 物料下限")])])]),e.createElementVNode("view",{class:"add",onClick:e.withModifiers((e=>((e,t)=>{var l;r.value=e,r.value.Limitnum=Number(null==(l=r.value)?void 0:l.upperLimit)-Number(r.value.kcsl),r.value.index=t,r.value.yj=!0,1==e.zk?(e.zk=!1,e.scrollleft=0):(e.zk=!0,e.scrollleft=180),u(e,t)})(t,l)),["stop"])},[1==t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0},"已添加")):e.createCommentVNode("",!0),e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(t.zk?"transform: rotate(180deg);":""),src:"/static/index/procurement/l.png",mode:"aspectFill"},null,12,["src"])],8,["onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["zkadd guodu",1==t.isAdd?"zkf":""])},[e.createElementVNode("view",{onClick:e.withModifiers((e=>((e,t)=>{i("crk",e,t)})(t,l)),["stop"]),onTouchend:a[0]||(a[0]=e.withModifiers((()=>{}),["stop"]))},"出入库",40,["onClick"]),1!=t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{i("addcartory",r.value)}),["stop"]),onTouchend:a[1]||(a[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",null," 加购物车 ")],40,["onClick"])):e.createCommentVNode("",!0)],2)],40,["onTouchend","onTouchstart","scroll-left"])))),128))])],32)])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-cb6275be"]]),ua="/static/index/hulilist/xia.png",da=s(e.defineComponent({__name:"inboundoutbound",props:{wl:{type:Object},show:{type:Boolean,default:!1,required:!0}},setup(t){const l=t,i=e.ref(!0),n=e.ref(!1);e.watch((()=>l.show),(()=>{1==l.show?(p(),d(),setTimeout((()=>{n.value=!0}),10)):(c.value=1,setTimeout((()=>{n.value=!1,u.value=[],r.value=!1}),400))}));const o=e.ref([{name:"全部",value:""},{name:"入库",value:"1"},{name:"出库",value:"3"}]),r=e.ref(!1),c=e.ref(1),s=e.ref(0),u=e.ref([]),d=()=>{let e={crkStatus:o.value[s.value].value,wlId:l.wl.wlId,nuId:l.wl.nuId,colomnDesc:i.value?"desc":"asc",pageNo:c.value,pageSize:10};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCrkInfoList`,method:"get",data:t})).then((e=>{u.value.push(...e.result.records),m.value=e.result.total==u.value.length?"nomore":"loadmore"}))},m=e.ref("loadmore"),v=e.ref({}),p=()=>{var e;(e={wlId:l.wl.wlId,nuId:l.wl.nuId},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCrkInfoNumList`,method:"get",data:e})).then((e=>{v.value=e.result}))};return(l,p)=>{const g=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:e.normalizeClass(["crkcard guodu",t.show?"":"unclass"]),style:e.normalizeStyle(n.value?"z-index:220":"z-index:-2")},[e.createElementVNode("view",{class:"titletop"}," 出入库 "),e.createElementVNode("view",{class:"select"},[e.createElementVNode("view",null,[e.createElementVNode("text",null,"总计:"+e.toDisplayString(v.value.crkzl)+"笔",1),e.createElementVNode("text",null,"出库:"+e.toDisplayString(v.value.cksl),1),e.createElementVNode("text",null,"入库:"+e.toDisplayString(v.value.rksl),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",{onClick:p[1]||(p[1]=e=>r.value=!r.value)},[e.createTextVNode(e.toDisplayString(o.value[s.value].name)+" ",1),e.createElementVNode("image",{src:ua,class:"guodu",style:e.normalizeStyle(r.value?"transform: rotate(180deg);":""),mode:"aspectFill"},null,4),r.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:p[0]||(p[0]=e.withModifiers((e=>r.value=!1),["stop"]))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"tanchu guodu",style:e.normalizeStyle(r.value?"height:15vw ":"height:0vw;")},[r.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"gysscrol"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(s.value==l?"acts":""),onClick:e.withModifiers((e=>((e,t)=>{s.value=t,r.value=!1,c.value=1,u.value=[],d()})(0,l)),["stop"])},[e.createElementVNode("text",null,e.toDisplayString(t.name),1),e.createElementVNode("image",{src:"/static/index/procurement/d.png",mode:"aspectFill"})],10,["onClick"])))),128))])):e.createCommentVNode("",!0)],4)]),e.createElementVNode("view",{onClick:p[2]||(p[2]=e=>(i.value=!i.value,c.value=1,u.value=[],void d()))},[e.createTextVNode(e.toDisplayString(i.value?"日期从近到远":"日期从远到近")+" ",1),e.createElementVNode("image",{src:ua,class:"guodu",style:e.normalizeStyle(i.value?"":"transform: rotate(180deg);"),mode:"aspectFill"},null,4)])])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"crkscroll","scroll-with-animation":"",onScrolltolower:p[3]||(p[3]=e=>{"loading"!=m.value&&"nomore"!=m.value&&(m.value="loading",c.value++,d())})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"cgrk",key:l},[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.crkType_dictText)+"-"+e.toDisplayString(t.crkStatus_dictText),1),e.createElementVNode("text",null,e.toDisplayString(t.content),1),e.createElementVNode("text",null,e.toDisplayString(t.createTime),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{class:e.normalizeClass(1!=t.crkStatus?"c":"l")},e.toDisplayString(1==t.crkStatus?"+":"-")+e.toDisplayString(t.crkNum),3),e.createElementVNode("text",null,"库存:"+e.toDisplayString(t.dqkcl),1),e.createElementVNode("text")])])))),128)),0==u.value.length&&"nomore"==m.value?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无内容"})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{height:"2vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[u.value.length>3?(e.openBlock(),e.createBlock(g,{key:0,status:m.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],32)],6)])}}}),[["__scopeId","data-v-d0ce1a26"]]);const ma=s({props:{show:!1},data:()=>({openerror:!1,errmsg:""}),methods:{add(){var e;(e={nuId:uni.getStorageSync("nuId")},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/addWaringAll`,method:"post",data:e})).then((e=>{e.success?(uni.showToast({icon:e.success?"success":"none",title:e.message}),setTimeout((()=>{this.$emit("config")}),1800)):(this.errmsg=e.message,this.openerror=!0,this.$emit("back"))}))}}},[["render",function(t,l,a,i,n,o){const r=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock("view",null,[a.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"addall"},[e.createElementVNode("view",null,"温馨提示"),e.createElementVNode("view",null,[e.createElementVNode("image",{src:ft,mode:"aspectFill"})]),e.createElementVNode("view",null,"确认将所有未添加状态的库存预警物料添加至购物车中,并且物料的采购数量为物料的库存上限减去库存数量!"),e.createElementVNode("view",null,[e.createElementVNode("view",{onClick:l[0]||(l[0]=e=>t.$emit("back"))},"取消"),e.createElementVNode("view",{class:"qd",onClick:l[1]||(l[1]=e=>o.add())},"确定")])])):e.createCommentVNode("",!0),e.createVNode(r,{show:n.openerror,font:n.errmsg,onClose:l[2]||(l[2]=e=>n.openerror=!1)},null,8,["show","font"])])}],["__scopeId","data-v-ca79ca58"]]),va=s(e.defineComponent({__name:"material",props:{isShow:{type:Boolean}},setup(t,{expose:l}){const a=e.ref(!1),i=e.ref(!1),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),c=e.ref(!1),s=e.ref(!1);e.ref(!1);const u=e.ref(0),d=e.ref([]),m=e.ref({}),v=e.ref("loadmore"),p=e.ref("loadmore"),h=e.ref(!1),y=e.ref("");e.ref(0);const w=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),N=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:10,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",isWaring:0,suppliers:""}),f=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:10,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",isWaring:1}),k=e.ref(),E=e.ref(!1),x=t;e.watch((()=>x.isShow),((t,l)=>{!l&&t?(N.pageNo=1,f.pageNo=1,b.value=[],d.value=[],u.value=0,M(),S(),e.nextTick((()=>{A()})),setTimeout((()=>{E.value=!0}),500),V.value=!1,setTimeout((()=>{V.value=!0}),50)):V.value=!1}));const V=e.ref(!1),b=e.ref([]),S=()=>{var e;(e=f,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdWaringList`,method:"get",data:e})).then((e=>{e.result.records.forEach((e=>{e.zk=!1,e.scrollleft=0})),b.value.push(...e.result.records),p.value=e.result.total==b.value.length?"nomore":"loadmore",$.value=e.result.total!=b.value.length}))},B=()=>{N.pageNo=1,f.pageNo=1,b.value=[],d.value=[],u.value=0,M(),O(),S()},T=e.ref(0),C=e=>{T.value=e.touches[0].clientX},D=e.ref(0);function z(e){var t;D.value=(null==(t=null==e?void 0:e.detail)?void 0:t.scrollLeft)??0}const I=e.ref(0),F=e=>{const t=e.touches[0].clientX-T.value;t<-60&&!i.value&&(i.value=!i.value,u.value=0,I.value=D.value+95.99,setTimeout((()=>{I.value=D.value+96}),50)),t>60&&i.value&&(i.value=!i.value,u.value=0,I.value=D.value-95.99,setTimeout((()=>{I.value=D.value-96}),50))},_=e.ref(0),M=()=>{let e={nuId:N.nuId,pageNo:1,pageSize:1};dl(e).then((e=>{_.value=e.result.total}))},$=e.ref(!0),L=e.ref(!0),j=e=>{if(1==e){if(0==$.value)return;$.value=!1,p.value="loading",f.pageNo++,S()}else{if(0==L.value)return;v.value="loading",L.value=!1,N.pageNo++,O()}},U=()=>{o.value=!1,n.value=!1},P=e=>{N.categoryId=e.categoryId,N.typeId=e.typeId,N.medicationId=e.medicationId,N.suppliers=e.suppliers,N.pageNo=1,d.value=[],O(),U()},A=()=>{N.categoryId="",N.typeId="",N.medicationId="",N.suppliers="",N.pageNo=1,N.wlParamInfo="",d.value=[],k.value.typescroll(1,-1,{}),k.value.qingkong(),k.value.config()},q=e=>{0===e&&(N.wlParamInfo=""),N.pageNo=1,d.value=[],O()},O=()=>{var e;(e=N,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryInvoicingList`,method:"get",data:e})).then((e=>{e.result.records.forEach((e=>{e.zk=!1,e.scrollleft=0})),d.value.push(...e.result.records),v.value=e.result.total==d.value.length?"nomore":"loadmore",L.value=e.result.total!=d.value.length}))},Y=e=>{let t=m.value.index;m.value=e,m.value.index=t,n.value=!0},R=e=>{Number(m.value.upperLimit)-Number(m.value.kcsl)==m.value.Limitnum&&1==e||1==m.value.Limitnum&&-1==e||(m.value.Limitnum+=e)},W=e.ref(!0),J=(e,t,l)=>{W.value&&(n.value=!1,G(t,e,l))},Q=e.ref(!0),G=(e,t,l)=>{if(0==Q.value)return;if("1"==m.value.izEnabled)return void uni.showToast({icon:"none",title:"该物料已关闭,无法采购~"});Q.value=!1;let a={nuId:N.nuId,purchaseQuantity:t,suppliersId:e.id,suppliersName:e.name,wlId:m.value.wlId,kcsl:m.value.kcsl,wlUnits:l.unit,referenceUnitPrice:l.price,dhbl:l.num};var i;(i=[a],g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/addShoppingCartList`,method:"post",data:i})).then((e=>{var t,l;e.success?uni.showToast({icon:e.success?"success":"none",title:e.message}):(y.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,h.value=!0,W.value=!0),setTimeout((()=>{Q.value=!0,e.success&&(W.value=!0,n.value=!1,c.value=!1,M(),f.pageNo=1,b.value=[],S(),m.value.yj?d.value.forEach((e=>{e.id===m.value.id&&(e.isAdd="1")})):m.value.isAdd=1)}),700)}))},X=e.ref(0),H=e.ref(0),Z=e.ref(null),K=e.ref({}),ee=(e,t)=>{K.value=e,s.value=!0};return l({gwcsx:()=>{N.pageNo=1,f.pageNo=1,b.value=[],d.value=[],u.value=0,M(),S(),e.nextTick((()=>{A()}))}}),(t,l)=>{const g=e.resolveComponent("errorshow"),f=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock("view",{class:"guodu",style:e.normalizeStyle([V.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.createElementVNode("view",{class:"serchs guodu",style:e.normalizeStyle(a.value?"":"width:90vw")},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"物料名称/物料编码/物料简拼","onUpdate:modelValue":l[0]||(l[0]=e=>N.wlParamInfo=e),onConfirm:q},null,544),[[e.vModelText,N.wlParamInfo]]),N.wlParamInfo?(e.openBlock(),e.createElementBlock("image",{key:0,src:wt,mode:"aspectFill",onClick:l[1]||(l[1]=e=>q(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:q,class:"scr guodu"},[e.createElementVNode("image",{src:al,mode:"aspectFill",class:"sh"}),e.createElementVNode("image",{src:"/static/index/procurement/shr.png",mode:"aspectFill",class:"shr"}),e.createTextVNode(" 检索 ")]),e.createElementVNode("view",{class:"shx guodu",onClick:l[2]||(l[2]=e=>o.value=!0)},[e.createElementVNode("image",{src:ea,mode:"aspectFill"}),e.createTextVNode(" 筛选 ")]),""!=N.categoryId||""!=N.wlParamInfo||""!=N.suppliers?(e.openBlock(),e.createElementBlock("view",{key:0,class:"shx guodu",onClick:A},[e.createElementVNode("image",{src:ia,mode:"aspectFill"}),e.createTextVNode(" 重置 ")])):e.createCommentVNode("",!0)],4),e.createElementVNode("view",{class:"kcyj"},[e.createElementVNode("view",{class:"kjlt"}," 库存预警 "),e.createElementVNode("scroll-view",{"scroll-x":"true",class:"kcscrol guodu",style:e.normalizeStyle(a.value?i.value?"width:38.2vw":"width:47.2vw":i.value?"width:71.2vw":"width:80.2vw"),"scroll-with-animation":"","scroll-left":I.value,onScroll:z,onScrolltolower:l[3]||(l[3]=e=>j(1))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"yjbox",key:l,onClick:e=>((e,t)=>{const l=Date.now();if(X.value=t,l-H.value<300){if(clearTimeout(Z.value),1==e.isAdd)return;m.value=e,m.value.index=t,m.value.yj=!0,Y(m.value),H.value=0}else Z.value=setTimeout((()=>{m.value=e,m.value.index=t,m.value.yj=!0,c.value=!0}),300),H.value=l})(t,l)},[e.createElementVNode("image",{src:t.materialImg?w.value+t.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",null,e.toDisplayString(t.materialName),1),1==t.isAdd?(e.openBlock(),e.createElementBlock("text",{key:0,class:"ytj"},"已添加")):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"sl"},e.toDisplayString(t.ljkcsl),1)],8,["onClick"])))),128)),0==b.value.length&&E.value?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw",left:"10%"}})):e.createCommentVNode("",!0)],44,["scroll-left"]),b.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"kjlt more guodu",style:e.normalizeStyle(i.value?"width:12.15vw":""),onTouchstart:C,onTouchmove:F},[e.createElementVNode("view",{onClick:l[4]||(l[4]=e=>{i.value=!i.value,u.value=0,i.value?(I.value=D.value+95,setTimeout((()=>{I.value=D.value+96}),50)):(I.value=D.value-95,setTimeout((()=>{I.value=D.value-96}),50))}),class:"righ0"},[e.createTextVNode(e.toDisplayString(i.value?"收起":"更多")+" ",1),e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(i.value?"transform: rotate(180deg);":""),src:Nt,mode:"aspectFill"},null,4)]),e.createElementVNode("view",{class:e.normalizeClass(["guodu",i.value?1==u.value?"avt":"":"righ0"]),onClick:l[5]||(l[5]=e=>{u.value=1,r.value=!0})},"查看全部 ",2),e.createElementVNode("view",{class:e.normalizeClass(["guodu",i.value?2==u.value?"avt":"":"righ0"]),onClick:l[6]||(l[6]=e=>u.value=2)},"添加全部",2)],36)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"listcard"},[e.createVNode(ca,{InvoicingList:d.value,onAddcartory:Y,onScrolltolower:j,status:v.value,onCrk:ee},null,8,["InvoicingList","status"])]),e.createElementVNode("view",{class:"fiedright"},[e.createElementVNode("view",{onClick:l[7]||(l[7]=e=>uni.navigateTo({url:"/pages/procurement/materialcar"})),class:"fiedrightview"},[e.createElementVNode("image",{src:"/static/index/procurement/gc1.png",mode:"aspectFill"}),_.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mhao"},[e.createElementVNode("view",{class:"mhao-font"},e.toDisplayString(_.value),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:l[8]||(l[8]=e=>uni.navigateTo({url:"/pages/procurement/purchaseorder"})),class:"fiedrightview"},[e.createElementVNode("image",{src:"/static/index/procurement/cg.png",mode:"aspectFill"})])]),n.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",style:{"z-index":"119"},onClick:U})):e.createCommentVNode("",!0),e.createVNode(na,{show:n.value,onJjnum:R,caigouobj:m.value,onColse:U,onRight:J},null,8,["show","caigouobj"]),o.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",onClick:U})):e.createCommentVNode("",!0),e.createVNode(oa,{onConfirm:P,show:o.value,typenum:0,ref_key:"classication",ref:k},null,8,["show"]),r.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:l[9]||(l[9]=e=>{r.value=!1,u.value=0})})):e.createCommentVNode("",!0),e.createVNode(ra,{onAddcartory:Y,show:r.value,InvoicingList:b.value,status:p.value,onTolower:l[10]||(l[10]=e=>j(1)),onCrk:ee},null,8,["show","InvoicingList","status"]),c.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"mengban",onClick:l[11]||(l[11]=e=>c.value=!1)})):e.createCommentVNode("",!0),e.createVNode(sa,{InvoicingList:[m.value],onAddcartory:Y,show:c.value,onCrk:ee},null,8,["InvoicingList","show"]),s.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"mengban",onClick:l[12]||(l[12]=e=>s.value=!1)})):e.createCommentVNode("",!0),e.createVNode(da,{show:s.value,wl:K.value},null,8,["show","wl"]),2==u.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"mengban",onClick:l[13]||(l[13]=e=>u.value=0)})):e.createCommentVNode("",!0),e.createVNode(ma,{show:2==u.value,onBack:l[14]||(l[14]=e=>u.value=0),onConfig:B},null,8,["show"]),e.createVNode(g,{show:h.value,font:y.value,onClose:l[15]||(l[15]=e=>h.value=!1)},null,8,["show","font"]),e.createVNode(f)],4)}}}),[["__scopeId","data-v-05d55f4f"]]),pa="/static/index/procurement/bk.png",ga=s(e.defineComponent({__name:"carlist",props:{InvoicingList:{type:Array,required:!0},status:{type:String},show:{type:Boolean,default:!1,required:!0}},emits:["addcartory","scrolltolower","delindex"],setup(t,{emit:l}){const i=t,n=l,o=e.ref("");e.onMounted((()=>{o.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const r=e.ref({}),c=e.ref(0),s=e.ref(0),u=(e,t)=>{i.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))};e.ref(0);const d=e=>{};return(l,i)=>{const m=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"crdcroll","scroll-with-animation":"",onScrolltolower:i[2]||(i[2]=e=>{n("scrolltolower")}),"enable-back-to-top":""},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"fler",key:l,onClick:e=>t.flag=!t.flag},[e.createElementVNode("view",{class:"jiao guodu"},[e.createElementVNode("image",{src:t.flag?"/static/index/procurement/lxz.png":"/static/index/procurement/jxz.png",mode:"aspectFill",class:"jao guodu"},null,8,["src"]),e.createElementVNode("image",{src:"/static/index/procurement/dh.png",mode:"aspectFill",class:"dui"})]),e.createElementVNode("scroll-view",{class:e.normalizeClass(["carditem guodu",t.flag?"actve":""]),onTouchend:e=>((e,t,l)=>{var a;let i=e.changedTouches[0].pageY,n=e.changedTouches[0].pageX,o=Math.abs(n-c.value),u=Math.abs(i-s.value);if(u>30&&o+10<u&&o<70)0==t.zk&&setTimeout((()=>{t.scrollleft=0}),20);else{if(o<10&&u<10)return 0==t.zk&&o>2&&u>2?void(t.scrollleft=0):void 0;r.value=t,r.value.Limitnum=Number(null==(a=r.value)?void 0:a.upperLimit)-Number(r.value.kcsl),r.value.index=l,r.value.yj=!1,t.zk=!(n>c.value),t.scrollleft=t.zk?150:0}})(e,t,l),onTouchstart:e=>((e,t,l)=>{c.value=e.changedTouches[0].pageX,s.value=e.changedTouches[0].pageY,u(t,l)})(e,t,l),"scroll-with-animation":"","scroll-x":"true","scroll-left":t.scrollleft,onScroll:d},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imghs"},[e.createElementVNode("image",{src:t.materialImg?o.value+t.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[t.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryId_dictText),1)):e.createCommentVNode("",!0),t.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeId_dictText),1)):e.createCommentVNode("",!0),t.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationId_dictText),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(t.wlName),1),e.createElementVNode("text",null,e.toDisplayString(t.wlMaterialNo),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "+e.toDisplayString(t.wlSpecificationModel),1)]),e.createElementVNode("view",null,[t.wlUnits==t.materialUnits?(e.openBlock(),e.createElementBlock("text",{key:0},"采购单价: ¥"+e.toDisplayString(Number(t.unitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),t.wlUnits==t.twoUnit?(e.openBlock(),e.createElementBlock("text",{key:1},"采购单价: ¥"+e.toDisplayString(Number(t.twoUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),t.wlUnits==t.oneUnit?(e.openBlock(),e.createElementBlock("text",{key:2},"采购单价: ¥"+e.toDisplayString(Number(t.oneUnitPrice).toFixed(2)),1)):e.createCommentVNode("",!0),e.createElementVNode("text",null,"采购单位: "+e.toDisplayString(t.wlUnits),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",null,"供应商: "+e.toDisplayString(t.suppliersName),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",{style:{"align-items":"flex-start"}},[e.createElementVNode("text",{style:{color:"#1083F8"}},e.toDisplayString(t.purchaseQuantity),1),e.createElementVNode("text",{style:{color:"#1083F8"}},"采购数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.kcsl?t.kcsl:"0"),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.wlUpperLimit),1),e.createElementVNode("text",null,"物料上限 ↑")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.wlLowerLimit),1),e.createElementVNode("text",null,"↓ 物料下限")])])]),e.createElementVNode("view",{class:"add",onClick:e.withModifiers((e=>((e,t)=>{1==e.zk?(e.zk=!1,e.scrollleft=0):(e.zk=!0,e.scrollleft=150),u(e,t)})(t,l)),["stop"])},[e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(t.zk?"transform: rotate(180deg);":""),src:"/static/index/procurement/l.png",mode:"aspectFill"},null,12,["src"])],8,["onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["zkadd guodu",1==t.isAdd?"zkf":""])},[e.createElementVNode("view",{onClick:e.withModifiers((e=>((e,t)=>{r.value=e,r.value.index=t,n("addcartory",r.value)})(t,l)),["stop"]),onTouchend:i[0]||(i[0]=e.withModifiers((()=>{}),["stop"]))},"编辑",40,["onClick"]),1!=t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>((e,t)=>{n("delindex",e,t)})(t,l)),["stop"]),onTouchend:i[1]||(i[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",null," 删除 ")],40,["onClick"])):e.createCommentVNode("",!0)],2)],42,["onTouchend","onTouchstart","scroll-left"])],8,["onClick"])))),128))]),t.InvoicingList.length>6?(e.openBlock(),e.createElementBlock("view",{key:0,style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(m,{status:t.status,loadText:{nomore:"暂无更多数据"}},null,8,["status"])])):e.createCommentVNode("",!0)],32)])}}}),[["__scopeId","data-v-053a2c80"]]),ha=s(e.defineComponent({__name:"purorder",props:{arrlist:{type:Array,default:[]},show:{type:Boolean,default:!1}},emits:["cloe","config"],setup(t,{emit:l}){const a=l,i=e.ref(0),n=e.ref(0),o=e.ref(0),r=e.reactive({nuId:"",pageNo:1,pageSize:9,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0,canpull:!0}),c=t,s=e.ref([]),u=e.ref("");e.onMounted((()=>{u.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"})),e.watch((()=>c.show),(()=>{1==c.show&&(s.value=c.arrlist)}));const d=e.ref(0),m=e=>{d.value=e.detail.scrollTop},v=e.ref(!0),p=()=>{var e;0!=v.value&&(v.value=!1,(e=s.value,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/generatedPurchaseOrder`,method:"post",data:e})).then((e=>{uni.showToast({icon:e.success?"success":"none",title:e.message}),setTimeout((()=>{e.success&&(a("config"),v.value=!0)}),700)})))};return(l,c)=>{var v,g;return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"purbox guodu",style:e.normalizeStyle(t.show?"top:6vh":"top:-99vh")},[e.createElementVNode("view",{class:"lfitem"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":i.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>{var a,c;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:t=>(t=>{let l=Math.ceil(t+1);i.value=186*(l-2),o.value=t,n.value=0,r.cgdId=s.value[t].id,r.pageNo=1,r.canpull=!0,n.value=d.value,e.nextTick((()=>{n.value=0}))})(l),style:e.normalizeStyle({borderColor:l==o.value?"":"#fff"})},[e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.cgdNo),1),e.createElementVNode("view",{class:"title-right"},[e.createElementVNode("text",{style:{position:"absolute",bottom:"4rpx",left:"-30rpx"}}," ¥ "),e.createElementVNode("view",{class:"title-right-big"},e.toDisplayString(Number(t.totalPrice).toFixed(2)),1)])]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"}),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("view",{class:"middle-ball",style:{"background-color":"#1083F8"}})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 采购 ")])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(1==Number(t.status)?"":null==(a=t.jhTime)?void 0:a.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("view",{class:"middle-ball"})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 拣货 "),1==Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:0}," [ "+e.toDisplayString(t.jhBy)+" ] ",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(null==(c=t.wjTime)?void 0:c.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("view",{class:"middle-ball"})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 完结 ")])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:$l}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.gysName),1)])])],12,["onClick"])})),128)),e.createElementVNode("view",{class:"nomargin"})],8,["scroll-top"])]),e.createElementVNode("view",{class:"rigitem"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"crdcroll","scroll-with-animation":"","enable-back-to-top":"",onScroll:m,"scroll-top":n.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(v=s.value[o.value])?void 0:v.cgdInfoList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"fler",key:l},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imghs"},[e.createElementVNode("image",{src:t.materialImg?u.value+t.materialImg:"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[t.categoryName?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryName),1)):e.createCommentVNode("",!0),t.typeName?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeName),1)):e.createCommentVNode("",!0),t.medicationName?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(t.wlName),1),e.createElementVNode("text",null,e.toDisplayString(t.wlMaterialNo),1),e.createElementVNode("text",null,[e.createTextVNode("¥ "),e.createElementVNode("text",{class:"q"},e.toDisplayString(Number(t.totalPrice).toFixed(2)),1)])]),e.createElementVNode("view",{style:{"white-space":"nowrap"}},[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "+e.toDisplayString(t.wlSpecificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",null,"采购单价: ¥"+e.toDisplayString(t.arrivalPrice?Number(t.arrivalPrice).toFixed(2):Number(t.procurementPrice).toFixed(2)),1),e.createElementVNode("text",null,"采购单位: "+e.toDisplayString(t.wlUnits),1)]),e.createElementVNode("view"),e.createElementVNode("view",null,[e.createElementVNode("view",{style:{"align-items":"flex-start"}},[e.createElementVNode("text",{style:{color:"#1083F8"}},e.toDisplayString(t.purchaseQuantity),1),e.createElementVNode("text",{style:{color:"#1083F8"}},"采购数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.kcsl?t.kcsl:"0"),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.wlUpperLimit),1),e.createElementVNode("text",null,"物料上限 ↑")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.wlLowerLimit),1),e.createElementVNode("text",null,"↓ 物料下限")])])])])))),128)),(null==(g=s.value[o.value])?void 0:g.cgdInfoList.length)>2?(e.openBlock(),e.createElementBlock("view",{key:0,style:{height:"1.5vw"}})):e.createCommentVNode("",!0)],40,["scroll-top"]),e.createElementVNode("view",{class:"anniubtn"},[e.createElementVNode("view",{class:"gb",onClick:c[0]||(c[0]=e=>a("cloe"))},"取消"),e.createElementVNode("view",{class:"scsgd",onClick:p},"生成采购单")])])],4)])}}}),[["__scopeId","data-v-d28e8ae8"]]),ya=s(e.defineComponent({__name:"materialcar",setup(t){const a=e.ref(!1),i=e.ref(!1),o=e.ref({}),r=e.ref(!1),c=e.ref(""),s=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",suppliers:""}),u=e.ref([]),d=e.ref("nomore"),m=e.ref(0);n((()=>{u.value=[],h()}));const v=e.ref(),p=()=>{s.categoryId="",s.typeId="",s.medicationId="",s.suppliers="",s.pageNo=1,s.wlParamInfo="",u.value=[],v.value.typescroll(1,-1,{}),v.value.qingkong(),v.value.config()},h=()=>{dl(s).then((e=>{e.result.records.forEach(((e,t)=>{e.flag=!0,e.zk=!1,e.scrollleft=0})),u.value.push(...e.result.records)}))},y=e=>{0===e&&(s.wlParamInfo=""),s.pageNo=1,u.value=[],h()},w=e=>{l("log","at pages/procurement/materialcar.vue:123","eeeeeeeeeee",e),o.value=e,a.value=!0},N=e=>{s.categoryId=e.categoryId,s.typeId=e.typeId,s.medicationId=e.medicationId,s.suppliers=e.suppliers,s.pageNo=1,u.value=[],h(),i.value=!1},f=()=>{D.value=!1,y(1),setTimeout((()=>{uni.navigateTo({url:"/pages/procurement/purchaseorder"})}),1e3)},k=()=>{g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/emptiedQgInfo`,method:"DELETE"}).then((e=>{var t,l;e.success?(s.pageNo=1,u.value=[],p()):(c.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,r.value=!0),m.value=0}))},E=e.ref({}),x=(e,t)=>{m.value=2,e.index=t,E.value=e},V=()=>{let e=E.value.id;var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/deleteQgInfoById?id=`+t,method:"DELETE"})).then((e=>{var t,l;e.success?(uni.showToast({icon:e.success?"success":"none",title:e.message}),setTimeout((()=>{u.value.splice(E.value.index,1),m.value=0,d.value=0==u.value.length?"nomore":"loadmore",v.value.getTreelnum()}),800)):(c.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,r.value=!0)}))},b=e.ref(!0),S=(e,t,l,a)=>{setTimeout((()=>{b.value&&(T(t,e,l,a),b.value=!1)}),30)},B=e.ref(!0),T=(e,t,l,i)=>{if(0==B.value)return;B.value=!1;let n={nuId:s.nuId,purchaseQuantity:t,suppliersId:e.id,suppliersName:e.name,id:o.value.id,wlId:o.value.wlId,kcsl:o.value.kcsl,wlUnits:l.unit,referenceUnitPrice:l.price,dhbl:l.num};var u;(u=n,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/eddShoppingCartList`,method:"post",data:u})).then((e=>{var t,l;B.value=!0,e.success?(setTimeout((()=>{C(i),a.value=!1}),700),uni.showToast({icon:e.success?"success":"none",title:e.message})):(c.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,r.value=!0),b.value=!0}))},C=e=>{let t={nuId:uni.getStorageSync("nuId"),wlParamInfo:e.wlMaterialNo};dl(t).then((t=>{let l=t.result.records[0];u.value.forEach(((t,a)=>{t.id==l.id&&(l.flag=e.flag,l.zk=!1,l.scrollleft=0,u.value[a]=l)}))}))},D=e.ref(!1),z=e.ref([]),I=e.ref([]),F=()=>{uni.showLoading();let e=[];var t;(z.value=[],u.value.forEach((t=>{t.flag&&e.push(t)})),z.value=e,l("log","at pages/procurement/materialcar.vue:274","????",e),0!=e.length)?(t=z.value,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/generatedPurchaseViewOrder`,method:"post",data:t})).then((e=>{var t,l;e.success?(I.value=e.result,D.value=!0,uni.hideLoading()):(c.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,r.value=!0)})):uni.showToast({title:"请选择物料!",icon:"none"})};return(t,l)=>{const n=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"serchs"},[e.createElementVNode("view",{class:"leftbtn"},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"物料名称/物料编码/物料简拼","onUpdate:modelValue":l[0]||(l[0]=e=>s.wlParamInfo=e),onConfirm:l[1]||(l[1]=e=>y(0))},null,544),[[e.vModelText,s.wlParamInfo]]),s.wlParamInfo?(e.openBlock(),e.createElementBlock("image",{key:0,src:wt,mode:"aspectFill",onClick:l[2]||(l[2]=e=>y(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:y,class:"scr"},[e.createElementVNode("image",{src:al,mode:"aspectFill",class:"sh"}),e.createTextVNode(" 检索 ")]),e.createElementVNode("view",{class:"shx",onClick:l[3]||(l[3]=e=>i.value=!0)},[e.createElementVNode("image",{src:ea,mode:"aspectFill"}),e.createTextVNode(" 筛选 ")]),""!=s.categoryId||""!=s.wlParamInfo||""!=s.suppliers?(e.openBlock(),e.createElementBlock("view",{key:0,class:"shx",onClick:p},[e.createElementVNode("image",{src:ia,mode:"aspectFill"}),e.createTextVNode(" 重置 ")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"rightbtn"},[e.createElementVNode("view",{onClick:l[4]||(l[4]=e=>m.value=1)},[e.createElementVNode("image",{src:"/static/index/procurement/del1.png",mode:"aspectFill"}),e.createTextVNode(" 清空 ")]),e.createElementVNode("view",{onClick:F},[e.createElementVNode("image",{src:"/static/index/procurement/procure01.png",mode:"aspectFill"}),e.createTextVNode(" 采购 ")]),e.createElementVNode("view",{class:"back",onClick:l[5]||(l[5]=e=>uni.navigateBack())},[e.createElementVNode("image",{src:pa,mode:"aspectFill"}),e.createTextVNode(" 返回 ")])])]),e.createVNode(ga,{InvoicingList:u.value,status:d.value,onDelindex:x,onAddcartory:w},null,8,["InvoicingList","status"]),e.createVNode(El,{show:1==m.value,font:"是否清空购物车?",onBack:l[6]||(l[6]=e=>m.value=0),onRight:l[7]||(l[7]=e=>k())},null,8,["show"]),e.createVNode(El,{show:2==m.value,font:"是否删除此物料?",onBack:l[8]||(l[8]=e=>m.value=0),onRight:l[9]||(l[9]=e=>V())},null,8,["show"]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[10]||(l[10]=e=>i.value=!1)})):e.createCommentVNode("",!0),e.createVNode(oa,{onConfirm:N,show:i.value,typenum:1,ref_key:"classication",ref:v},null,8,["show"]),"nomore"==d.value&&0==u.value.length?(e.openBlock(),e.createBlock(tl,{key:1,cont:"暂无数据"})):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:l[11]||(l[11]=e=>a.value=!1)})):e.createCommentVNode("",!0),e.createVNode(na,{show:a.value,caigouobj:o.value,onColse:l[12]||(l[12]=e=>a.value=!1),onRight:S},null,8,["show","caigouobj"]),D.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"mengban",onClick:l[13]||(l[13]=e=>D.value=!1)})):e.createCommentVNode("",!0),e.createVNode(ha,{arrlist:I.value,show:D.value,onCloe:l[14]||(l[14]=e=>D.value=!1),onConfig:f},null,8,["arrlist","show"]),e.createVNode(n,{show:r.value,font:c.value,onClose:l[15]||(l[15]=e=>r.value=!1)},null,8,["show","font"])])}}}),[["__scopeId","data-v-a87f980b"]]),wa=s(e.defineComponent({__name:"outbound",props:{isShow:{type:Boolean}},setup(t){const a=t,i=e.ref(!1),n=e.ref(["全部","待出库","已出库","已收货 "]),o=e.ref(!1);e.watch((()=>a.isShow),((e,t)=>{!t&&e?(o.value=!1,setTimeout((()=>{o.value=!0}),50)):o.value=!1})),e.onMounted((()=>{x(),o.value=!1,setTimeout((()=>{o.value=!0}),50)})),e.ref(!1);const c=e.ref(0),s=e=>{if(c.value!=e||!e){switch(N.value=1,setTimeout((()=>{N.value=0}),50),h.value=0,c.value=e,y.pageNo=1,y.canpull=!0,e){case 0:y.status="1,4,5";break;case 1:y.status="1";break;case 2:y.status="4";break;case 3:y.status="5"}x()}},u=()=>{d||(d=!0,y.pageNo=1,y.canpull=!0,h.value=0,x(),N.value=1,setTimeout((()=>{N.value=0}),10),setTimeout((()=>d=!1),500))};let d=!1;const m=()=>{d||(d=!0,y.searchContent="",s(0),x(),setTimeout((()=>d=!1),500))},v=e.ref([]),p=e.ref(0),h=e.ref(0),y=e.reactive({pageNo:1,pageSize:5,canpull:!0,searchContent:"",status:"1,4,5"}),w=e.ref(!1),N=e.ref(0),f=e.ref([]),k=e.ref(!0),E=e.ref(!0),x=()=>{wl(y).then((e=>{var t;o.value=!0,"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!k.value?(k.value=!1,v.value=[],v.value.push(...e.result.records),p.value=e.result.total,e.result.records.length?(E.value=!1,Nl({qldNo:e.result.records[0].qldNo}).then((e=>{f.value=[],f.value.push(...e.result),E.value=!0}))):f.value=[],e.result.records.length<y.pageSize&&(y.canpull=!1)):w.value=!0}))},V=e.ref(!0),b=()=>{V.value&&(y.pageNo++,S(),V.value=!1,setTimeout((()=>{V.value=!0}),500))},S=()=>{y.canpull&&wl(y).then((e=>{v.value.push(...e.result.records),p.value=e.result.total,e.result.records.length<y.pageSize&&(y.canpull=!1)}))},B=e.ref(!1),T=(e,t)=>{let l=Math.ceil(e+1);if(N.value=175*(l-2),"N"==t.izYgRead){let l={status:"yg",qldNo:v.value[e].qldNo};(a=l,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/transRead`,method:"POST",data:a})).then((e=>{e.success&&(t.izYgRead="Y")}))}var a;i.value?"1"==t.status?I.value.includes(t.qldNo)?I.value=I.value.filter((e=>e!==t.qldNo)):I.value.push(t.qldNo):B.value=!0:(h.value=e,E.value=!1,Nl({qldNo:v.value[e].qldNo}).then((e=>{f.value=[],f.value.push(...e.result),E.value=!0})))},C=e.ref("");r((()=>{C.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const D=e.ref(!1),z=()=>{let e={qldNo:v.value[h.value].qldNo,nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName")};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/orderReturn`,method:"POST",data:t})).then((e=>{l("log","at pages/procurement/outbound.vue:488","回退",e),D.value=!1,e.success?v.value[h.value]=e.result.result:(y.pageNo=1,y.canpull=!0,N.value=1,setTimeout((()=>{N.value=0}),50),h.value=0,x()),setTimeout((()=>{uni.showToast({title:e.success?e.result.message:e.message,icon:"none",duration:3e3})}),300)}))},I=e.ref([]),F=e.ref(!1),_=e.ref(!1),M=e.ref(!1),$=e.ref(""),L=()=>{if(i.value&&!I.value.length)return void(_.value=!0);let e={qldNo:i.value?I.value.join(","):v.value[h.value].qldNo,nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName")};var t;(t=e,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/outbound`,method:"POST",data:t})).then((e=>{e.success&&(I.value=[],i.value=!1,F.value=!1,y.pageNo=1,h.value=0,y.canpull=!0,N.value=1,setTimeout((()=>{N.value=0}),50),h.value=0,x()),l("log","at pages/procurement/outbound.vue:612","!!!!!!",e),setTimeout((()=>{e.success?uni.showToast({title:e.result.message,icon:"none",duration:3e3}):(M.value=!0,$.value=e.message)}),300)}))};return(t,a)=>{var r,d,p;const g=e.resolveComponent("tanchuang"),k=e.resolveComponent("errorshow"),x=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"all-bgc guodu",style:e.normalizeStyle([o.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.createElementVNode("view",{class:"buttons-father"},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>y.searchContent=e),placeholder:"请领单号/请领人/请领日期",onConfirm:u},null,544),[[e.vModelText,y.searchContent]])]),e.createElementVNode("view",{class:"scr",onClick:u}," 检索 "),e.createElementVNode("view",{class:"shx",onClick:m},[e.createElementVNode("image",{src:at,mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 重置 ")]),e.createElementVNode("view",{class:"right-buttons"},[e.withDirectives(e.createElementVNode("view",{class:e.normalizeClass(i.value?"right-button-blue":"right-button-white"),onClick:a[1]||(a[1]=e=>(I.value=[],i.value=!i.value,void(i.value||(h.value=0))))},[e.createElementVNode("image",{src:`/static/index/warehouse/procurement/picking/piliang${i.value?"target":""}.png`},null,8,["src"]),e.createElementVNode("view",null," 批量统计 ")],2),[[e.vShow,"1"==(null==(r=v.value[h.value])?void 0:r.status)]]),e.withDirectives(e.createElementVNode("view",{class:"right-button",onClick:a[2]||(a[2]=e=>{i.value?(l("log","at pages/procurement/outbound.vue:562","55555"),I.value=[],i.value=!1,N.value=1,setTimeout((()=>{N.value=0}),50)):D.value=!0})},[e.createElementVNode("image",{src:"/static/index/warehouse/procurement/picking/huitui.png"}),e.createElementVNode("view",null," 回退 ")],512),[[e.vShow,"1"==(null==(d=v.value[h.value])?void 0:d.status)]])]),w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",style:{background:"#fff",width:"100vw",right:"0",left:"0vw",top:"-5vw",height:"110vh"}},[e.createVNode(tl,{cont:"暂无数据",style:{"z-index":"999",margin:"auto",top:"0",left:"35vw",bottom:"0",right:"0"}})])):e.createCommentVNode("",!0)]),e.createVNode(g,{show:D.value,font:"确定要回退这个请领单吗",onBack:a[3]||(a[3]=e=>{D.value=!1}),onRight:z},null,8,["show"]),e.createVNode(g,{show:F.value,font:"确定要出库吗",onBack:a[4]||(a[4]=e=>{F.value=!1}),onRight:L},null,8,["show"]),e.withDirectives(e.createElementVNode("view",{class:"other-contain"},[e.createElementVNode("view",{class:"other-contain-left"},[e.createElementVNode("view",{class:"left-selecttype"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(c.value===l?"selecttype-target":"selecttype"),onClick:e=>s(l)},e.toDisplayString(t),11,["onClick"])))),256)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===c.value?14:13.5+23.5*c.value)+"%"})},null,4)]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":N.value,onScrolltolower:b,"lower-threshold":200},[e.createElementVNode("view",{style:{height:"1%"}}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,((t,l)=>{var a,n,o,r;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:e=>T(l,t),style:e.normalizeStyle({borderColor:i.value?I.value.includes(t.qldNo)?"":"transparent":l===h.value?"":"transparent",background:i.value?I.value.includes(t.qldNo)?"":"rgba(255,255,255,0.6)":l===h.value?"":"rgba(255,255,255,0.6)"})},["N"==t.izYgRead?(e.openBlock(),e.createElementBlock("view",{key:0,style:{background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.5vw",top:"-0.2vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"middle-title-spec"}," 请领单号 "),e.createElementVNode("view",{class:"title-left"},e.toDisplayString(t.qldNo),1)]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(t.tjTime.replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 待出库 "),e.createElementVNode("view",{style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.tjByName+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title",style:e.normalizeStyle("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{})},e.toDisplayString(Number(t.status)>1?"2"===(null==t?void 0:t.status)?null==(a=t.zfTime)?void 0:a.slice(0,10).replace(/-/g,"."):"3"===(null==t?void 0:t.status)?null==(n=t.htTime)?void 0:n.slice(0,10).replace(/-/g,"."):null==(o=t.ckTime)?void 0:o.slice(0,10).replace(/-/g,"."):""),5),e.createElementVNode("view",{class:"middle-heng-father"},["2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?(e.openBlock(),e.createElementBlock("image",{key:0,class:"middle-ball-img",style:{width:"32rpx",height:"32rpx"},src:ot})):1==Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"middle-ball",style:{"background-color":"#1083F8"}})):(e.openBlock(),e.createElementBlock("image",{key:2,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",{style:e.normalizeStyle("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{})},e.toDisplayString("2"===(null==t?void 0:t.status)?"已作废":"3"===(null==t?void 0:t.status)?"已回退":"已出库"),5),Number(t.status)>1?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle([{"font-size":"25rpx"},"2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?{color:"#FF5757"}:{}])},e.toDisplayString("[ "+("2"===(null==t?void 0:t.status)?null==t?void 0:t.zfByName:"3"===(null==t?void 0:t.status)?null==t?void 0:t.htByName:null==t?void 0:t.ckByName)+" ]"),5)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(5==Number(t.status)?null==(r=t.shTime)?void 0:r.slice(0,10).replace(/-/g,"."):""),1),e.createElementVNode("view",{class:"middle-heng-father"},[5!=Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball",style:e.normalizeStyle(Number(t.status)<4?{backgroundColor:"#E5E5E5"}:{})},null,4)):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},["9"!=(null==t?void 0:t.cgdType)?(e.openBlock(),e.createElementBlock("view",{key:0}," 已收货 ")):e.createCommentVNode("",!0),5==Number(t.status)?(e.openBlock(),e.createElementBlock("view",{key:1,style:{"font-size":"25rpx"}},e.toDisplayString("[ "+t.shByName+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:rt}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.nuName),1)]),e.createElementVNode("view",{class:e.normalizeClass("2"===(null==t?void 0:t.status)||"3"===(null==t?void 0:t.status)?"tag-fail":"tag-success")},e.toDisplayString(t.statusText),3)])],12,["onClick"])})),128))],40,["scroll-top"])]),e.createElementVNode("view",{class:"other-contain-right"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"right-contain"},[e.createElementVNode("view",{class:"right-ones"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,((t,l)=>{var a,i;return e.openBlock(),e.createElementBlock("view",{class:"right-one",key:l},[e.createElementVNode("view",{class:"right-one-left"},[e.createElementVNode("view",{class:"bgimg"},[e.createElementVNode("image",{class:"left-image",src:(null==(a=t.materialInfo)?void 0:a.materialImg)?C.value+(null==(i=t.materialInfo)?void 0:i.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"left-tages"},e.toDisplayString(t.materialInfo.categoryName),1),e.createElementVNode("view",{class:"left-tages"},e.toDisplayString(t.materialInfo.typeName),1),t.materialInfo.medicationName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left-tages"},e.toDisplayString(t.materialInfo.medicationName),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"right-one-right"},[e.createElementVNode("view",{class:"right-title"},e.toDisplayString(t.materialInfo.materialName),1),e.createElementVNode("view",{class:"right-setting"}," 规格型号 "),e.createElementVNode("view",{class:"right-mm"},e.toDisplayString(t.materialInfo.materialNo),1),e.createElementVNode("view",{class:"right-down"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"right-first-num"},e.toDisplayString(t.qlNum),1),e.createElementVNode("view",{class:"right-first-type"}," 请领数量 ")]),e.createElementVNode("view",{class:"right-shu"}),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"right-first-num",style:{"font-weight":"500"}},e.toDisplayString(t.materialInfo.materialUnits),1),e.createElementVNode("view",{class:"right-first-type"}," 请领单位 ")])])])])})),128))]),0==f.value.length&&E.value?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{width:"30%",height:"30%",position:"absolute"}})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("view",{class:"bottom-buttons"},[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"button-blue",onClick:a[5]||(a[5]=e=>F.value=!0)}," 出库 "))],512),[[e.vShow,"1"==(null==(p=v.value[h.value])?void 0:p.status)]])])],512),[[e.vShow,!w.value]])],4),e.createVNode(k,{show:B.value,font:"注意:只能选择待出库的请领单",onClose:a[6]||(a[6]=e=>B.value=!1)},null,8,["show"]),e.createVNode(k,{show:_.value,font:"注意:批量选择模式请选择一项或以上的请领单",onClose:a[7]||(a[7]=e=>_.value=!1)},null,8,["show"]),e.createVNode(k,{show:M.value,font:$.value,onClose:a[8]||(a[8]=e=>M.value=!1)},null,8,["show","font"]),e.createVNode(x)],64)}}}),[["__scopeId","data-v-b9d885cd"]]),Na="/static/home.png",fa=s(e.defineComponent({__name:"inventory",props:{isShow:{type:Boolean}},setup(t,{expose:a}){const i=e.ref(!0);e.ref(!1);const n=e.ref(!1),o=e.ref(!1);e.ref(!1);const c=e.ref(!1),s=e.ref(["全部","盘点中","已完成","作废"]),u=e.ref([]),d=t,m=e.ref(!1);e.onMounted((()=>{T(),v(),m.value=!1,setTimeout((()=>{m.value=!0}),50)})),e.watch((()=>d.isShow),((e,t)=>{!t&&e?(m.value=!1,setTimeout((()=>{m.value=!0}),50)):m.value=!1}));const v=()=>{var e;(e={nuId:uni.getStorageSync("nuId")},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/queryPddStartByList`,method:"get",data:e})).then((e=>{u.value=e.result}))},p=e=>{I.startTime=e.start,I.endTime=e.end,V()};e.ref(!1);const h=e.ref(0),y=e=>{if(h.value!=e||!e){switch(M.value=1,setTimeout((()=>{M.value=0}),50),z.value=0,h.value=e,I.pageNo=1,I.canpull=!0,e){case 0:I.pddType="";break;case 1:I.pddType="1";break;case 2:I.pddType="2";break;case 3:I.pddType="3"}L()}},w=e.ref(!1),N=e.ref(""),f=e.ref([]);let k=null;function E(e){var t;if(!e.detail.value)return I.pddStartBy="",f.value=[],void L();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();k&&clearTimeout(k),k=setTimeout((()=>{l?(f.value=u.value.filter((e=>function(e,t){const l=String(e??"").toLowerCase(),a=String(t??"").toLowerCase().trim();if(!a)return!0;if(l.includes(a))return!0;let i=0;for(let n=0;n<l.length&&i<a.length;n++)l[n]===a[i]&&i++;return i===a.length}(null==e?void 0:e.name,l))),f.value.length||f.value.push({cgBy:"暂无数据"})):f.value=u.value.slice()}),300)}const x=()=>{f.value=[],N.value=I.pddStartBy,V()},V=()=>{let e={...I,pageNo:1};fl(e).then((e=>{D.value=e.result.total}))},b=e.ref(!1),S=()=>{B||(B=!0,I.pageNo=1,I.canpull=!0,z.value=0,L(),M.value=1,setTimeout((()=>{M.value=0}),10),setTimeout((()=>B=!1),500))};let B=!1;const T=()=>{B||(B=!0,i.value=!1,I.pddInfo="",I.pddNo="",I.pddStartBy="",I.pydOrPkd="",I.pddType="",I.startTime="",I.pddStartBy="",I.endTime="",N.value="",y(0),setTimeout((()=>{B=!1,i.value=!0}),500))},C=e.ref([]),D=e.ref(0),z=e.ref(0),I=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:12,canpull:!0,pddInfo:"",pddNo:"",pddStartBy:"",pydOrPkd:"",pddType:"",startTime:"",endTime:""}),F=e=>{const t=String(e),l=I.pydOrPkd||"",a=new Set(l?l.split(","):[]);a.has(t)?a.delete(t):a.add(t);const i=Array.from(a).filter(Boolean).sort(((e,t)=>e-t));I.pydOrPkd=i.length?i.join(","):"",V()},_=e.ref(!1),M=e.ref(0);e.ref([]);const $=e.ref(!0);e.ref(!0);const L=()=>{I.pageNo=1,I.canpull=!0,fl(I).then((e=>{var t;"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!$.value?($.value=!1,C.value=[],C.value.push(...e.result.records),D.value=e.result.total,e.result.records.length<I.pageSize&&(I.canpull=!1)):_.value=!0}))},j=e.ref(!0),U=()=>{j.value&&(I.pageNo++,P(),j.value=!1,setTimeout((()=>{j.value=!0}),500))},P=()=>{I.canpull&&fl(I).then((e=>{C.value.push(...e.result.records),l("log","at pages/procurement/inventory.vue:553","????",I,e.result.records),D.value=e.result.total,e.result.records.length<I.pageSize&&(I.canpull=!1)}))},A=e.ref("");r((()=>{A.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const q=e.ref(""),O=e.ref(!1),Y=()=>{var e;(e={nuId:uni.getStorageSync("nuId")},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/addPddMain`,method:"post",data:e})).then((e=>{if(e.success){c.value=!1,T();let t=e.result;uni.navigateTo({url:"/pages/procurement/addtory?pddobj="+JSON.stringify(t)})}else O.value=!0,q.value=e.message}))};return a({firstgetqueryCgdList:L}),(t,a)=>{const r=e.resolveComponent("tanchuang"),u=e.resolveComponent("errorshow"),d=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"all-bgc guodu",style:e.normalizeStyle([m.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.createElementVNode("view",{class:"buttons-father"},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>I.pddInfo=e),placeholder:"盘点单号/盘点人/盘点日期",onConfirm:S},null,544),[[e.vModelText,I.pddInfo]])]),e.createElementVNode("view",{class:"scr",onClick:S}," 检索 "),e.createElementVNode("view",{class:e.normalizeClass(o.value?"shx-target":"shx"),onClick:a[1]||(a[1]=e=>o.value=!0)},[e.createElementVNode("image",{src:`/static/index/purchaseorder/select${o.value?"target":""}.png`,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"shx-font"}," 筛选 ")],2),e.createElementVNode("view",{class:"shx",onClick:T},[e.createElementVNode("image",{src:at,mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 重置 ")]),e.createElementVNode("view",{class:"right-buttons"},[e.createElementVNode("view",{class:"left-selecttype"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(h.value===l?"selecttype-target":"selecttype"),onClick:e=>y(l)},e.toDisplayString(t),11,["onClick"])))),256)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===h.value?14:(3==h.value?12:13)+24*h.value)+"%"})},null,4)]),e.createElementVNode("view",{class:"right-button",onClick:a[2]||(a[2]=e=>c.value=!0)},[e.createElementVNode("image",{src:"/static/index/requestform/addnew.png"}),e.createElementVNode("view",null," 新增 ")])])]),e.createElementVNode("view",{class:"all-contain"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"all-scroll","scroll-top":M.value,onScrolltolower:U,"lower-threshold":200},[e.createElementVNode("view",{class:"scroll-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,((t,a)=>{var i,n;return e.openBlock(),e.createElementBlock("view",{class:"scroll-item",key:a,onClick:e=>{return l("log","at pages/procurement/inventory.vue:584",a=t),void uni.navigateTo({url:"/pages/procurement/addtory?pddobj="+JSON.stringify(a)});var a}},[e.createElementVNode("view",{class:"scroll-item-title"},[e.createElementVNode("view",{class:"scroll-title-left"},[e.createElementVNode("view",{class:"title-font"},e.toDisplayString(t.pddNo),1)]),e.createElementVNode("view",{class:"scroll-title-right",style:e.normalizeStyle(3==t.pddType?"color: #FF5757;border: 2rpx solid #FF5757;background-color: #FFF1F1;":"")},e.toDisplayString(t.pddType_dictText),5)]),e.createElementVNode("view",{class:"scroll-item-contect"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"contect-one"},[e.createElementVNode("view",{class:"contect-title"},e.toDisplayString(null==(i=t.pddStartTime)?void 0:i.split(" ")[0].replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null,e.toDisplayString("盘点中")),e.createElementVNode("view",{style:{color:"#888888"}}," ["+e.toDisplayString(t.pddStartBy)+"] ",1)])]),e.createElementVNode("view",{class:"contect-one"},[e.createElementVNode("view",{class:"contect-title"},e.toDisplayString(null==(n=t.pddEndTime)?void 0:n.split(" ")[0].replace(/-/g,".")),1),e.createElementVNode("view",{class:"middle-heng-father"},["2"!=t.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-ball",style:{"background-color":"#EEEEEE"}})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"middle-ball-img",src:nt}))]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 盘点结束 "),e.createElementVNode("view",{style:{color:"#888888"}},e.toDisplayString("2"==t.pddType?"["+t.pddEndBy+"]":""),1)])])]),e.createElementVNode("view",{class:"scroll-item-end"},[e.createElementVNode("view",null,[t.pydNum>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-success"}," 盘盈 ")):e.createCommentVNode("",!0),t.pkdNum>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-error"}," 盘亏 ")):e.createCommentVNode("",!0)]),e.createElementVNode("view",null,[e.createElementVNode("image",{class:"title-imge",src:Na,mode:"aspectFit"}),e.createElementVNode("view",{class:"title-font"},e.toDisplayString(t.nuName),1)])])],8,["onClick"])})),128))])],40,["scroll-top"]),0==C.value.length?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据"})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("view",{class:"mengban",onClick:a[3]||(a[3]=e=>o.value=!1)},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createElementVNode("view",{class:"left-select-more",onClick:a[14]||(a[14]=e=>n.value=!1)},[e.createElementVNode("view",{class:"more-bottom"},[e.createElementVNode("view",{class:"bottom-left",onClick:T}," 重置 "),e.createElementVNode("view",{class:"bottom-right",onClick:a[4]||(a[4]=e=>{o.value=!1,L()})},[e.createTextVNode(" 确定 "),D.value?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"font-size":"25rpx","margin-top":"5rpx"}}," ("+e.toDisplayString(D.value)+"盘点单) ",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"more-title"}," 盘点状态 "),e.createElementVNode("view",{class:"more-statues-father"},[e.createElementVNode("view",{class:e.normalizeClass(""==I.pddType?"more-statues-button-target":"more-statues-button"),onClick:a[5]||(a[5]=e=>{I.pddType="",L(),h.value=0})}," 全部 ",2),e.createElementVNode("view",{class:e.normalizeClass("1"==I.pddType?"more-statues-button-target":"more-statues-button"),onClick:a[6]||(a[6]=e=>{I.pddType="1",L(),h.value=1})}," 盘点中 ",2),e.createElementVNode("view",{class:e.normalizeClass("2"==I.pddType?"more-statues-button-target":"more-statues-button"),onClick:a[7]||(a[7]=e=>{I.pddType="2",L(),h.value=2})}," 已完成 ",2),e.createElementVNode("view",{class:e.normalizeClass("3"==I.pddType?"more-statues-button-target":"more-statues-button"),onClick:a[8]||(a[8]=e=>{I.pddType="3",L(),h.value=3})}," 作废 ",2)]),e.createElementVNode("view",{class:"more-select"}," 盘点人 "),e.createElementVNode("view",{class:"more-time-select",onClick:a[10]||(a[10]=e=>w.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":a[9]||(a[9]=e=>N.value=e),placeholder:"请输入盘点人","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:E},null,544),[[e.vModelText,N.value]]),e.createElementVNode("image",{class:"select-img",src:Ml})]),e.createElementVNode("view",{class:"more-time"}," 盘点日期 "),e.createElementVNode("view",{class:"more-time-select",onClick:a[11]||(a[11]=e.withModifiers((e=>n.value=!n.value),["stop"]))},[e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 开始日期 ",512),[[e.vShow,!I.startTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(I.startTime),513),[[e.vShow,I.startTime]]),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10rpx"}}," 至 "),e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 结束日期 ",512),[[e.vShow,!I.endTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(I.endTime),513),[[e.vShow,I.endTime]]),e.createElementVNode("image",{class:"more-img",src:_l})]),e.createElementVNode("view",{class:"more-select"}," 盘盈/盘亏 "),e.createElementVNode("view",{class:"selected"},[e.createElementVNode("view",{class:"selected-item",onClick:a[12]||(a[12]=e=>F("1"))},["1,2"!=I.pydOrPkd&&"1"!=I.pydOrPkd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"selected-kuai"})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-kuai-target"}," √ ")),e.createElementVNode("view",{class:""}," 盘盈单 ")]),e.createElementVNode("view",{class:"selected-item",onClick:a[13]||(a[13]=e=>F("2"))},["1,2"!=I.pydOrPkd&&"2"!=I.pydOrPkd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"selected-kuai"})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-kuai-target"}," √ ")),e.createElementVNode("view",{class:""}," 盘亏单 ")])])],512),[[e.vShow,o.value]])],4),i.value?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,class:"calendar-father"},[e.createVNode(Bl,{onDatachange:p})],512)),[[e.vShow,n.value]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:a[15]||(a[15]=e=>{n.value=!1})},null,512),[[e.vShow,n.value]]),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:a[16]||(a[16]=e=>{b.value=!1})},null,512),[[e.vShow,b.value]]),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent","z-index":"9999"},onClick:x},null,512),[[e.vShow,f.value.length&&N.value]]),f.value.length&&N.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"input-next"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>(e=>{f.value=[],I.pddStartBy=e.name,N.value=I.pddStartBy,V()})(t)},e.toDisplayString(t.name),9,["onClick"])),[[e.vShow,"暂无数据"!=f.value[0].cgBy]]))),128)),"暂无数据"===f.value[0].cgBy?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"}," 暂无数据 ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createVNode(r,{show:c.value,font:"确定要新增盘点单吗",onBack:a[17]||(a[17]=e=>{c.value=!1}),onRight:Y},null,8,["show"]),e.createVNode(u,{show:O.value,font:q.value,onClose:a[18]||(a[18]=e=>O.value=!1)},null,8,["show","font"]),e.createVNode(d)],64)}}}),[["__scopeId","data-v-89d18011"]]),ka="/static/index/warehouse/home/z.png",Ea=s(e.defineComponent({__name:"warehome",setup(t){const l=h("/static/index/warehouse/newhome/","matrix",5,"png",0,!1),a=h("/static/index/warehouse/newhome/","train",10,"png",1,!1),i=e.ref(0),n=h("/static/index/warehouse/newhome/","logo",3,"png",1,!1),o=h("/static/index/warehouse/newhome/","monitor",8,"png",0,!1),r=h("/static/index/warehouse/newhome/","end",6,"png",0,!1),c=h("/static/index/warehouse/newhome/","purchase",8,"png",0,!1),s=h("/static/index/warehouse/newhome/","unit1-",5,"png",0,!1),u=h("/static/index/warehouse/newhome/","Warehouse",8,"png",1,!1),d=e.ref(!1);let m;e.onMounted((()=>{d.value=!0,E(),m=uni.createInnerAudioContext(),m.src="/static/click.mp3",m.volume=.4}));const v=e.ref(0),p=e.ref(""),g=e=>{m.stop(),m.play(),v.value=e,0==e&&(p.value="pages/procurement/material",uni.navigateTo({url:"/"+p.value})),1==e&&(p.value="pages/Warehouse/paymoney",uni.navigateTo({url:"/"+p.value})),2==e&&(p.value="pages/Warehouse/picking",uni.navigateTo({url:"/"+p.value})),3===e&&uni.navigateTo({url:"/pages/watch/full"}),4==e&&(p.value="pages/Warehouse/finish",uni.navigateTo({url:"/"+p.value})),5==e&&(p.value="pages/procurement/inventory",uni.navigateTo({url:"/"+p.value})),7==e&&(p.value="pages/procurement/outbound?code=1",uni.navigateTo({url:"/"+p.value})),8==e&&(p.value="pages/procurement/retstock",uni.navigateTo({url:"/"+p.value}))};function h(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const y=e.ref(77),w=e.ref(60),N=e.ref(.7),f=e.computed((()=>({position:"fixed",left:"0",top:"0",width:"7vw",height:"7vw",transform:`translate3d(${y.value}vw, ${w.value}vw, 0)`,transition:`transform ${N.value}s linear`,willChange:"transform"})));function k(e,t,l=.6){N.value=l,y.value=e,w.value=t}const E=()=>{k(23,40.5,3),i.value=0,setTimeout((()=>{i.value=1,k(24.5,38,.5)}),3e3),setTimeout((()=>{i.value=2,k(35,32,2)}),3500),setTimeout((()=>{i.value=3,k(38,29.5,.5)}),5500),setTimeout((()=>{i.value=4,k(63.5,37.8,3)}),6e3),setTimeout((()=>{i.value=5,k(91,21,3)}),9e3),setTimeout((()=>{i.value=6,k(90,19,.5)}),12e3),setTimeout((()=>{i.value=7,k(89,17,.5)}),12500),setTimeout((()=>{i.value=8,k(48,4,3)}),13e3),setTimeout((()=>{i.value=9,k(-11,37.5,4)}),16e3),setTimeout((()=>{i.value=0,k(77,60,1e-4)}),2e4),setTimeout((()=>{E()}),21e3)};return(t,m)=>{const v=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"home"},[e.createElementVNode("image",{class:"all-home",src:"/static/index/warehouse/newhome/backpage.jpg",mode:"aspectFit"})]),e.createElementVNode("view",{class:"right-title"},[e.createElementVNode("image",{class:"title-imge",src:Na,mode:"aspectFit"}),e.createElementVNode("view",{class:"title-font"},e.toDisplayString(uni.getStorageSync("nuName")),1)]),e.createElementVNode("view",{class:"paizi tp"},[e.createVNode(v,{width:"15vw",height:"15vw",interval:300,links:e.unref(n),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"jiankong tp",onClick:m[0]||(m[0]=e=>g(3))},[e.createVNode(v,{width:"15vw",height:"15vw",interval:150,links:e.unref(o),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"jiankongtag tp",onClick:m[1]||(m[1]=e=>g(3))},[e.createElementVNode("view",{class:"blue-bgc"},[e.createTextVNode(" 监控室 "),e.createElementVNode("view",{class:"triangle-middle"})]),e.createElementVNode("image",{class:"blue-imge",src:ka,mode:""})]),e.createElementVNode("view",{class:"wanjie tp",onClick:m[2]||(m[2]=e=>g(4))},[e.createVNode(v,{width:"17vw",height:"17vw",interval:300,links:e.unref(r),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"wanjietag tp",onClick:m[3]||(m[3]=e=>g(4))},[e.createElementVNode("view",{class:"blue-bgc"},[e.createTextVNode(" 完结 "),e.createElementVNode("view",{class:"triangle-middle"})]),e.createElementVNode("image",{class:"blue-imge",src:ka,mode:""})]),e.createElementVNode("view",{class:"juzhen tp",onClick:m[4]||(m[4]=e=>g(6))},[e.createVNode(v,{width:"17vw",height:"17vw",interval:300,links:e.unref(l),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"juzhentag tp",onClick:m[5]||(m[5]=e=>g(6))},[e.createElementVNode("view",{class:"blue-bgc",style:{background:"#7BC2FF",width:"8vw"}},[e.createTextVNode(" 库房 "),e.createElementVNode("view",{class:"triangle-middle",style:{"border-top":"0.5vw solid #7BC2FF"}})]),e.createElementVNode("image",{class:"blue-imge",src:ka,mode:""})]),e.createElementVNode("view",{class:"caigou tp",onClick:m[6]||(m[6]=e=>g(0))},[e.createVNode(v,{width:"16vw",height:"16vw",interval:150,links:e.unref(c),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"caigoutag tp",onClick:m[7]||(m[7]=e=>g(0))},[e.createElementVNode("view",{class:"blue-bgc"},[e.createTextVNode(" 采购 "),e.createElementVNode("view",{class:"triangle-middle"})]),e.createElementVNode("image",{class:"blue-imge",src:ka,mode:""})]),e.createElementVNode("view",{class:"ruku tp"},[e.createVNode(v,{width:"11vw",height:"11vw",interval:300,links:e.unref(s),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"chuku tp"},[e.createVNode(v,{width:"11vw",height:"11vw",interval:300,links:e.unref(s),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"jianhuo tp"},[e.createVNode(v,{width:"34vw",height:"34vw",interval:150,links:e.unref(u),playing:d.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"pandan tp",onClick:m[8]||(m[8]=e=>g(5))},[e.createElementVNode("image",{src:"/static/index/warehouse/newhome/count.png",mode:"widthFix"})]),e.createElementVNode("view",{class:"pandantag tp",onClick:m[9]||(m[9]=e=>g(5))},[e.createElementVNode("view",{class:"gray-bgc"},[e.createTextVNode(" 库存盘点 "),e.createElementVNode("view",{class:"triangle-left"}),e.createElementVNode("view",{class:"triangle-left-bgc"})])]),e.createElementVNode("view",{class:"return tp",onClick:m[10]||(m[10]=e=>g(8))},[e.createElementVNode("image",{src:"/static/index/warehouse/newhome/return.png",mode:"widthFix"})]),e.createElementVNode("view",{class:"leadtag tp",onClick:m[11]||(m[11]=e=>g(8))},[e.createElementVNode("view",{class:"gray-bgc"},[e.createTextVNode(" 退货入库 "),e.createElementVNode("view",{class:"triangle-left"}),e.createElementVNode("view",{class:"triangle-left-bgc"})])]),e.createElementVNode("view",{class:"lead tp",onClick:m[12]||(m[12]=e=>g(7))},[e.createElementVNode("image",{src:"/static/index/warehouse/newhome/lead.png",mode:"widthFix"})]),e.createElementVNode("view",{class:"returntag tp",onClick:m[13]||(m[13]=e=>g(7))},[e.createElementVNode("view",{class:"gray-bgc"},[e.createTextVNode(" 请领出库 "),e.createElementVNode("view",{class:"triangle-left"}),e.createElementVNode("view",{class:"triangle-left-bgc"})])]),e.createElementVNode("view",{class:"picking tp",onClick:m[14]||(m[14]=e=>g(2))},[e.createElementVNode("image",{src:"/static/index/warehouse/newhome/picking.png",mode:"widthFix"})]),e.createElementVNode("view",{class:"pickingtag tp",onClick:m[15]||(m[15]=e=>g(2))},[e.createElementVNode("view",{class:"blue-bgc"},[e.createTextVNode(" 拣货 "),e.createElementVNode("view",{class:"triangle-left-bgc"})])]),e.createElementVNode("view",{style:e.normalizeStyle(f.value)},[e.createElementVNode("image",{style:{width:"100%",height:"100%"},src:e.unref(a)[i.value],mode:"widthFix"},null,8,["src"])],4)])}}}),[["__scopeId","data-v-f90be92d"]]),xa=s(e.defineComponent({__name:"authorization",setup(t){const l=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),i=e.reactive({pageNo:1,pageSize:10,status:3,searchContent:""}),n=e.ref([]);r((()=>{c()}));const o=e.ref("loadmore"),c=()=>{gl(i).then((e=>{n.value.push(...e.result.records),o.value=e.result.total==n.value.length?"nomore":"loadmore",1==i.pageNo&&p(0,n.value[0])}))},s=e=>{0==e&&(i.searchContent=""),i.pageNo=1,n.value=[],c()};e.ref([]);const u=e.ref(0),d=e.ref(0),m=e.ref(0),v=e.ref([]),p=(t,l)=>{u.value!=t&&(d.value=h.value,e.nextTick((()=>{d.value=0})));let a=Math.ceil(t+1);var i;m.value=186*(a-2),u.value=t,(i={thdNo:l.thdNo},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thdMaterialList`,method:"get",data:i})).then((e=>{v.value=e.result})),"N"==l.izRead&&w(l)},h=e.ref(0),y=e=>{h.value=e.detail.scrollTop};e.ref([]);const w=(e,t)=>{hl({id:e.id}),e.izRead="Y"};return e.ref([]),(t,r)=>{const c=a(e.resolveDynamicComponent("u-loadmore"),bt);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"serchs"},[e.createElementVNode("view",{class:"leftbtn"},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"退货单号/退货人/退货日期","onUpdate:modelValue":r[0]||(r[0]=e=>i.searchContent=e),onConfirm:s},null,544),[[e.vModelText,i.searchContent]]),i.searchContent?(e.openBlock(),e.createElementBlock("image",{key:0,src:wt,mode:"aspectFill",onClick:r[1]||(r[1]=e=>s(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:s,class:"scr"},[e.createElementVNode("image",{src:al,mode:"aspectFill",class:"sh"}),e.createTextVNode(" 检索 ")])]),e.createElementVNode("view",{class:"rightbtn"},[e.createElementVNode("view",{class:"back",onClick:r[2]||(r[2]=e=>uni.navigateBack())},[e.createElementVNode("image",{src:pa,mode:"aspectFill"}),e.createTextVNode(" 返回 ")])])]),e.createElementVNode("view",{class:"t-box"},[e.createElementVNode("view",{class:"leftscr"},[e.createElementVNode("view",{class:"left-menu-father"},[e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":m.value,"lower-threshold":400},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,l)=>{var a,i;return e.openBlock(),e.createElementBlock("view",{class:"pls-card",key:l,onClick:e=>p(l,t),style:e.normalizeStyle({borderColor:l===u.value?"":"transparent",background:l===u.value?"#fff":"rgba(255,255,255,0.6)"})},["N"==t.izRead?(e.openBlock(),e.createElementBlock("text",{key:0,style:{display:"block",background:"#ff5757",position:"absolute",width:"1.3vw",height:"1.3vw","border-radius":"50%",right:"-0.1vw",top:"-0.1vw"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"pls-card-title"},[e.createElementVNode("view",{class:"title-left"}," 退货单号 "),e.createElementVNode("view",{class:"title-right"},e.toDisplayString(t.thdNo),1)]),e.createElementVNode("view",{class:"pls-card-middle"},[e.createElementVNode("view",{class:"middle-heng"}),e.createElementVNode("view",{class:"pls-card-middle-one"},[e.createElementVNode("view",{class:"middle-title"},e.toDisplayString(null==(a=t.fqTime.replace(/-/g,"."))?void 0:a.slice(0,10)),1),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 申请退货 "),e.createElementVNode("view",null,e.toDisplayString("[ "+t.fqrName+" ]"),1)])]),e.createElementVNode("view",{class:"pls-card-middle-one"},[t.logList[1]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"middle-title"},e.toDisplayString(null==(i=t.logList[1].opeTime)?void 0:i.replace(/-/g,".").slice(0,10)),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"middle-heng-father"},[e.createElementVNode("image",{class:"middle-ball-img",src:nt})]),e.createElementVNode("view",{class:"end-font"},[e.createElementVNode("view",null," 退货完成 "),t.logList[1]?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString("[ "+t.logList[1].opeByName+" ]"),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"pls-card-end"},[e.createElementVNode("view",{class:"end-left"},[e.createElementVNode("image",{class:"end-left-img",src:$l}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.nuName),1)]),e.createElementVNode("view",{class:e.normalizeClass([null==t?void 0:t.statusText,"tag-success"])},e.toDisplayString(t.statusText),3)])],12,["onClick"])})),128)),e.createElementVNode("view",{style:{height:"2vw",width:"90%",display:"flex","align-items":"center","justify-content":"center"}},[n.value.length>4?(e.openBlock(),e.createBlock(c,{key:0,status:o.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],8,["scroll-top"])])]),e.createElementVNode("view",{class:"rightscr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"itembox","scroll-with-animation":"","enable-back-to-top":"",onScroll:y,"scroll-top":d.value},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,((t,a)=>{var i,n,o,r,c,s,u,d,m,v,p;return e.openBlock(),e.createElementBlock("view",{class:"fler",key:a},[e.createElementVNode("view",{class:"carditem guodu"},[t.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:St,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"bgimg"},[e.createElementVNode("image",{src:(null==(i=t.materialInfo)?void 0:i.materialImg)?l.value+(null==(n=t.materialInfo)?void 0:n.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[(null==(o=t.materialInfo)?void 0:o.categoryName)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(null==(r=t.materialInfo)?void 0:r.categoryName),1)):e.createCommentVNode("",!0),(null==(c=t.materialInfo)?void 0:c.typeName)?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(null==(s=t.materialInfo)?void 0:s.typeName),1)):e.createCommentVNode("",!0),(null==(u=t.materialInfo)?void 0:u.medicationName)?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(null==(d=t.materialInfo)?void 0:d.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==(m=t.materialInfo)?void 0:m.materialName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 规格型号: "),e.createElementVNode("view",null,e.toDisplayString(null==(v=t.materialInfo)?void 0:v.specificationModel),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(t.thNum?t.thNum:"--"),1),e.createElementVNode("text",null,"退货数量")]),e.createElementVNode("view",null,[e.createElementVNode("text",null,e.toDisplayString(null==(p=t.materialInfo)?void 0:p.materialUnits),1),e.createElementVNode("text",null,"退货单位")])])]),1==t.isAdd?(e.openBlock(),e.createElementBlock("view",{key:1,class:"add"},[e.createElementVNode("view",null,"已添加")])):e.createCommentVNode("",!0)])])})),128))])],40,["scroll-top"])])])])}}}),[["__scopeId","data-v-3a72e7e1"]]),Va="/static/index/procurement/jb.png",ba=s(e.defineComponent({__name:"torytor",props:{show:{type:Boolean},tb:{type:Number},idex:{type:Number},pdsl:{type:Number},pddType:{type:String}},emits:["pddjjnum"],setup(t,{emit:l}){const a=e.ref("0000"),i=e.ref(0),n=[1,2,3,4,5,6,7,8,9,0,"AC","AE"],o=t;e.watch((()=>o.show),(()=>{1==o.show?(i.value=o.pdsl?o.pdsl:0,a.value=g(i.value),c.value=!1):(i.value=0,a.value=g(i.value))}));const r=l,c=e.ref(!1),s=(e,t)=>{var l;if("1"==o.pddType)return"AE"==e?(i.value=o.tb,a.value=g(i.value),void r("pddjjnum",i.value,o.idex)):"AC"==e?(i.value=Math.trunc(i.value/10),a.value=g(i.value),void r("pddjjnum",i.value,o.idex)):0==c.value?(c.value=!0,i.value=e,a.value=g(i.value),void r("pddjjnum",i.value,o.idex)):(l=i.value,void(Math.abs(l).toString().length>3||(i.value?i.value=10*i.value+e:i.value=e,r("pddjjnum",i.value,o.idex),a.value=g(i.value))))},u=e.ref(null),d=e=>{"1"==o.pddType&&v(e)},m=()=>{clearInterval(u.value)},v=e=>{u.value=setInterval((()=>{p(e)}),120)},p=e=>{if("1"!=o.pddType)return;9999<=i.value&&1==e?i.value=9999:i.value<=0&&-1==e?i.value=0:(i.value+=e,a.value=g(i.value),r("pddjjnum",i.value,o.idex))};function g(e){const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")}return(l,i)=>(e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"jsuq guodu"},[e.createElementVNode("view",{class:"leftsa"},[e.createElementVNode("view",{class:"shu"},"数量"),e.createElementVNode("view",{class:"stringShow-kuai"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},e.toDisplayString(t),1)))),128))]),e.createElementVNode("view",{class:"jiajian"},[e.createElementVNode("view",{class:"jj",onClick:i[0]||(i[0]=e=>p(-1)),onLongpress:i[1]||(i[1]=e=>d(-1)),onTouchend:m}," - ",32),e.createElementVNode("view",{class:"jj",onClick:i[2]||(i[2]=e=>p(1)),onLongpress:i[3]||(i[3]=e=>d(1)),onTouchend:m}," + ",32)])]),e.createElementVNode("view",{class:"rigsbt"},[e.createElementVNode("view",{class:"calculator-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,l)=>e.createElementVNode("view",{key:l},["AC"==t?(e.openBlock(),e.createElementBlock("view",{key:0,class:"calculator-kuai",onClick:e=>s(t)},[e.createElementVNode("image",{src:Tt,mode:"aspectFill",style:{width:"50%",height:"50%","margin-left":"-5rpx"}})],8,["onClick"])):"AE"==t?(e.openBlock(),e.createElementBlock("view",{key:1,class:"calculator-kuai",style:{"font-size":"1.2vw",color:"#0385FA"},onClick:e=>s(t)}," 同步 ",8,["onClick"])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"calculator-kuai",onClick:e=>s(t)},e.toDisplayString(t),9,["onClick"]))]))),64))])])])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-feadc547"]]),Sa=s(e.defineComponent({__name:"toryitem",props:{pddlist:{type:Array},status:{type:String},pddType:{type:String}},emits:["scrolltolower","tabitem","right"],setup(t,{emit:i}){const n=e.ref(0),o=e.ref(0),r=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),c=i,s=t,u=e.ref(!1);e.onMounted((()=>{setTimeout((()=>{u.value=!0}),1e3)})),e.ref({});const d=e.ref(-1),m=e=>{s.pddlist.forEach(((t,l)=>{e!=l&&(t.zk=!1,t.bz=!1,t.pz=!1,t.yczk=!1)}))},v=e.ref(0),p=e=>{v.value=e.detail.scrollTop},g=(e,t)=>{let l=0;s.pddlist[t].pdsl=e,l=e-s.pddlist[t].dqkcsl,s.pddlist[t].cesl=Math.abs(l),s.pddlist[t].pdType=0==l?"":l>0?1:2};e.ref([]);const h=(e,t)=>{let a=new Date,i=a.getFullYear(),n=a.getMonth()+1;uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:e,name:"file",formData:{biz:i+"/"+n+"/pddPic"},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const a=JSON.parse(e.data);l("log","at pages/procurement/common/toryitem.vue:253",t),t.picPatharr.push(a.message),y(t)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})},y=e=>{e.picPath="",e.picPatharr.forEach(((t,l)=>{e.picPath+=t+","}))},w=e.ref({}),N=e.ref(0);return(l,i)=>{const y=a(e.resolveDynamicComponent("u-loadmore"),bt),f=e.resolveComponent("tanchuang");return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"itembox","scroll-with-animation":"",onScrolltolower:i[0]||(i[0]=e=>{c("scrolltolower")}),"enable-back-to-top":"","enable-flex":"","scroll-top":o.value,onScroll:p},[0==t.pddlist.length&&u.value?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pddlist,((l,a)=>{var i,u,p;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["items guodu",{itembord0:1==l.zk,itembord1:0==l.zk,dczk:1==l.dczk&&1==l.zk,dczks:1==l.dczk&&0==l.zk}]),key:a},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imgs"},[e.createElementVNode("image",{src:(null==l?void 0:l.materialImg)?r.value+(null==l?void 0:l.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[l.categoryName?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(l.categoryName),1)):e.createCommentVNode("",!0),l.typeName?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(l.typeName),1)):e.createCommentVNode("",!0),l.medicationName?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(l.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"wuli"},[e.createElementVNode("view",{class:"tite"},e.toDisplayString(null==l?void 0:l.materialName),1),e.createElementVNode("view",{class:"cot"},[e.createElementVNode("text",null,"物料编码:"),e.createTextVNode(" "+e.toDisplayString(null==l?void 0:l.materialNo),1)]),e.createElementVNode("view",{class:"cot"},[e.createElementVNode("text",null,"物料单位:"),e.createTextVNode(" "+e.toDisplayString(null==l?void 0:l.materialUnits),1)]),e.createElementVNode("view",{class:"cot",style:{"white-space":"nowrap",display:"block",overflow:"hidden","text-overflow":"ellipsis",height:"1.7vw"}},[e.createElementVNode("text",{style:{display:"inline-block"}},"规格型号:"),e.createTextVNode(e.toDisplayString(null==l?void 0:l.specificationModel),1)]),e.createElementVNode("view",{class:"wltwo"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==l?void 0:l.dqkcsl),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",{class:"dot"},[e.createElementVNode("view",{style:{"text-align":"right"}},e.toDisplayString((null==l?void 0:l.pdsl)?null==l?void 0:l.pdsl:"--"),1),e.createElementVNode("text",{style:{"text-align":"right"}},"盘点数量")])])]),e.createElementVNode("view",{class:"chae"},[e.createElementVNode("view",{class:e.normalizeClass({b:1==(null==l?void 0:l.pdType),r:2==(null==l?void 0:l.pdType)&&(null==l?void 0:l.cesl)>0})},e.toDisplayString(2==(null==l?void 0:l.pdType)&&(null==l?void 0:l.cesl)>0?"-":"")+e.toDisplayString(null!=(null==l?void 0:l.cesl)?null==l?void 0:l.cesl:"--"),3),e.createElementVNode("text",null,"差额")]),e.createElementVNode("view",{class:"pandian",onClick:t=>((t,l)=>{let a=Math.ceil((l+1)/3);d.value!=l&&d.value>-1&&uni.getStorageSync("valitem")&&"1"==s.pddType&&c("tabitem",d.value,uni.getStorageSync("valitem")),d.value=l,o.value=v.value,t.zk=!t.zk,t.zk?("1"==s.pddType&&uni.setStorageSync("valitem",t),setTimeout((()=>{t.yczk=t.zk}),200)):(t.yczk=t.zk,t.bz=!1,t.pz=!1),1==t.dczk||e.nextTick((()=>{o.value=v.value>182*(a-2)?v.value:182*(a-2)})),m(l)})(l,a)},[null==l.pdType||""==l.pdType||3==l.pdType?(e.openBlock(),e.createElementBlock("image",{key:0,src:l.zk?"/static/index/procurement/pd1.png":"/static/index/procurement/pd0.png",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0),1==l.pdType?(e.openBlock(),e.createElementBlock("image",{key:1,src:l.zk?"/static/index/procurement/pd5.png":"/static/index/procurement/pd2.png",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0),2==l.pdType?(e.openBlock(),e.createElementBlock("image",{key:2,src:l.zk?"/static/index/procurement/pd4.png":"/static/index/procurement/pd3.png",mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0)],8,["onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["tan guodu",l.zk?"":"itemhei0"])},[e.createElementVNode("view",{class:e.normalizeClass(["tbox guodu",l.zk?"":"itemhei0"]),style:e.normalizeStyle(l.zk?"":"overflow: hidden")},[e.createVNode(ba,{show:l.yczk,tb:l.dqkcsl,onPddjjnum:g,pdsl:l.pdsl,idex:a,pddType:t.pddType},null,8,["show","tb","pdsl","idex","pddType"]),e.withDirectives(e.createElementVNode("view",{class:"bpq"},[e.createElementVNode("view",{class:"bp b",onClick:e=>{l.bz=!l.bz,l.pz=!1}},[e.createElementVNode("image",{src:"/static/index/procurement/th.png",mode:"aspectFill"}),e.createTextVNode(" 备注 "),l.content?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({r:2==l.pdType&&(null==l?void 0:l.cesl)>0,g:1==l.pdType})},"1",2)):e.createCommentVNode("",!0)],8,["onClick"]),e.createElementVNode("view",{class:"bp p",onClick:e=>{l.pz=!l.pz,l.bz=!1}},[e.createElementVNode("image",{src:"/static/index/procurement/xj.png",mode:"aspectFill"}),e.createTextVNode(" 拍照 "),(null==(i=l.picPatharr)?void 0:i.length)>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({r:2==l.pdType&&(null==l?void 0:l.cesl)>0,g:1==l.pdType})},e.toDisplayString(null==(u=null==l?void 0:l.picPatharr)?void 0:u.length),3)):e.createCommentVNode("",!0)],8,["onClick"]),"1"==t.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"qued",onClick:e=>((e,t)=>{""!=e.content&&null!=e.content||0==e.cesl?c("right",e,t):uni.showToast({icon:"error",title:"请填写备注!"})})(l,a)}," 确定 ",8,["onClick"])):e.createCommentVNode("",!0),l.bz?(e.openBlock(),e.createElementBlock("view",{key:1,class:"triangle-leftbz"},[e.createElementVNode("image",{src:Va,mode:"aspectFill"})])):e.createCommentVNode("",!0),l.pz?(e.openBlock(),e.createElementBlock("view",{key:2,class:"triangle-leftpz"},[e.createElementVNode("image",{src:Va,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["gray-bgc guodu",l.bz?"":"itemhei0"])},[l.bz?(e.openBlock(),e.createElementBlock("view",{key:0,class:"textare"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":e=>l.content=e,placeholder:"请输入备注",maxlength:"200",disabled:"1"!=t.pddType},null,8,["onUpdate:modelValue","disabled"]),[[e.vModelText,l.content]])])):e.createCommentVNode("",!0),l.bz?(e.openBlock(),e.createElementBlock("view",{key:1,class:"submit"},[e.createElementVNode("view",{onClick:e=>l.bz=!1},e.toDisplayString("1"==t.pddType?"取消":"关闭"),9,["onClick"]),"1"==t.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e=>l.bz=!1},"确定",8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("view",{class:e.normalizeClass(["gray-pgc guodu",l.pz?"":"itemhei0"])},[l.pz?(e.openBlock(),e.createElementBlock("view",{key:0,class:"pztit"},"拍照:")):e.createCommentVNode("",!0),l.pz?(e.openBlock(),e.createElementBlock("view",{key:1,class:"zpj"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==l?void 0:l.picPatharr,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"zpk",key:a,onClick:e=>((e,t,l)=>{let a=[];e.picPatharr.forEach((e=>{a.push(r.value+e)})),uni.previewImage({current:l,urls:a,showmenu:!1,longPressActions:{itemList:[]}})})(l,0,a)},[e.createElementVNode("image",{src:r.value+t,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{onClick:e.withModifiers((e=>{n.value=1,((e,t)=>{w.value=e,N.value=t})(l,a)}),["stop"])},[e.createElementVNode("image",{src:Il,mode:"aspectFill",style:{width:"75%",height:"70%"}})],8,["onClick"])],8,["onClick"])))),128)),(null==(p=l.picPatharr)?void 0:p.length)<6&&1==t.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"clkpz",onClick:e=>((e,t)=>{uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:t=>{let l=JSON.stringify(t.tempFilePaths);uni.compressImage({src:JSON.parse(l)[0],quality:60,success:t=>{h(t.tempFilePath,e)}})}})})(l)},[e.createElementVNode("image",{src:"/static/index/procurement/xjpz.png",mode:"aspectFill"}),e.createElementVNode("text",null,"点击拍照上传 ")],8,["onClick"])):e.createCommentVNode("",!0),0==(null==l?void 0:l.picPatharr.length)&&"1"!=t.pddType?(e.openBlock(),e.createBlock(tl,{key:1,cont:"暂无图片",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.pz?(e.openBlock(),e.createElementBlock("view",{key:2,class:"submit"},[e.createElementVNode("view",{onClick:e=>l.pz=!1},e.toDisplayString("1"==t.pddType?"取消":"关闭"),9,["onClick"]),"1"==t.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e=>l.pz=!1},"确定",8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)],512),[[e.vShow,l.yczk]])],6)],2)],2)})),128)),e.createElementVNode("view",{style:{height:"3vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[t.pddlist.length>6?(e.openBlock(),e.createBlock(y,{key:0,status:t.status,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],40,["scroll-top"]),e.createVNode(f,{show:1==n.value,font:"是否删除此图片",onBack:i[1]||(i[1]=e=>n.value=0),onRight:i[2]||(i[2]=e=>(w.value.picPatharr.splice(N.value,1),void(n.value=0)))},null,8,["show"])])}}}),[["__scopeId","data-v-f79e68cc"]]),Ba=s(e.defineComponent({__name:"pddsub",props:{show:{type:Boolean},pddobj:{type:Object}},emits:["close","tabitem","right"],setup(t,{emit:l}){const a=e.ref(0),i=e.ref(0),n=e.ref(["全部","盘盈","盘亏"]),o=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),r=l,c=e.ref(""),s=e.ref(!1),u=t,d=e.ref(!1);e.watch((()=>u.show),(()=>{u.show?(v.value=[],h(),setTimeout((()=>{d.value=!0}),50)):setTimeout((()=>{d.value=!1}),400)}));const m=e.ref(1),v=e.ref([]),p=e.ref("loadmore"),h=()=>{let e={pddId:u.pddobj.id,paramType:0==a.value?"":a.value,pageNo:m.value,pageSize:10};kl(e).then((e=>{v.value.push(...e.result.records),p.value=e.result.total==v.value.length?"nomore":"loadmore"}))},y=e.ref(0),w=e=>{y.value=e.detail.scrollTop},N=()=>{var e;(e={id:u.pddobj.id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/submitPddMain`,method:"post",data:e})).then((e=>{e.success?(uni.showToast({icon:"success",title:e.message?e.message:"提交成功"}),r("close"),setTimeout((()=>{uni.navigateBack()}),800)):(c.value=e.message,s.value=!0)}))};return(l,u)=>{const g=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:u[0]||(u[0]=e=>r("close"))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["box guodu",t.show?"":"unclass"]),style:e.normalizeStyle(d.value?"z-index:999":"z-index:-2")},[e.createElementVNode("view",{class:"left-selecttype"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(a.value===l?"selecttype-target":"selecttype"),onClick:e=>(e=>{a.value!=e&&(i.value=y.value,setTimeout((()=>{i.value=0}),50),a.value=e,m.value=1,v.value=[],h())})(l)},e.toDisplayString(t),11,["onClick"])))),256)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===a.value?18:18+30*a.value)+"%"})},null,4)]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scol",onScrolltolower:u[1]||(u[1]=e=>{"loading"!=p.value&&"nomore"!=p.value&&(p.value="loading",m.value++,h())}),"enable-back-to-top":"","enable-flex":"","scroll-top":i.value,onScroll:w},[e.createElementVNode("view",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["items guodu",{itembord0:1==t.zk,dczk:1==t.dczk&&1==t.zk}]),key:l},[e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"imgs"},[e.createElementVNode("image",{src:(null==t?void 0:t.materialImg)?o.value+(null==t?void 0:t.materialImg):"/static/index/procurement/k.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"cardp"},[t.categoryName?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.categoryName),1)):e.createCommentVNode("",!0),t.typeName?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.typeName),1)):e.createCommentVNode("",!0),t.medicationName?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.medicationName),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"wuli"},[e.createElementVNode("view",{class:"tite"},e.toDisplayString(null==t?void 0:t.materialName),1),e.createElementVNode("view",{class:"cot"},[e.createElementVNode("text",null,"物料编码:"),e.createTextVNode(" "+e.toDisplayString(null==t?void 0:t.materialNo),1)]),e.createElementVNode("view",{class:"cot"},[e.createElementVNode("text",null,"物料单位:"),e.createTextVNode(" "+e.toDisplayString(null==t?void 0:t.materialUnits),1)]),e.createElementVNode("view",{class:"cot",style:{"white-space":"nowrap",display:"block",overflow:"hidden","text-overflow":"ellipsis",height:"1.5vw"}},[e.createElementVNode("text",{style:{display:"inline-block"}},"规格型号:"),e.createTextVNode(e.toDisplayString(null==t?void 0:t.specificationModel),1)]),e.createElementVNode("view",{class:"wltwo"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(null==t?void 0:t.dqkcsl),1),e.createElementVNode("text",null,"库存数量")]),e.createElementVNode("view",{class:"dot"},[e.createElementVNode("view",{style:{"text-align":"right"}},e.toDisplayString((null==t?void 0:t.pdsl)?null==t?void 0:t.pdsl:"--"),1),e.createElementVNode("text",{style:{"text-align":"right"}},"盘点数量")])])]),e.createElementVNode("view",{class:"chae"},[e.createElementVNode("view",{class:e.normalizeClass({b:1==(null==t?void 0:t.pdType),r:2==(null==t?void 0:t.pdType)&&(null==t?void 0:t.cesl)>0})},e.toDisplayString(2==(null==t?void 0:t.pdType)&&(null==t?void 0:t.cesl)>0?"-":"")+e.toDisplayString(null!=(null==t?void 0:t.cesl)?null==t?void 0:t.cesl:"--"),3),e.createElementVNode("text",null,"差额")])],2)))),128)),0==v.value.length?(e.openBlock(),e.createBlock(tl,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)])],40,["scroll-top"]),e.createElementVNode("view",{class:"submit"},[e.createElementVNode("view",{onClick:u[2]||(u[2]=e=>r("close"))},"取消"),e.createElementVNode("view",{onClick:N},"确定")])],6),e.createVNode(g,{show:s.value,font:c.value,onClose:u[3]||(u[3]=e=>s.value=!1)},null,8,["show","font"])])}}}),[["__scopeId","data-v-05e5ce60"]]),Ta=s(e.defineComponent({__name:"addtory",setup(t){const l=e.ref(0),a=e.ref({}),i=e.ref(!1),n=e.ref(""),o=e.ref(!1),c=e.ref(!1),s=e.ref(0);r((e=>{a.value=JSON.parse(e.pddobj),v()}));const u=e.ref(1),d=e.ref("loadmore"),m=e.ref([]),v=()=>{let e={pddId:a.value.id,paramType:0==s.value?"":s.value,pageNo:u.value,pageSize:10};kl(e).then((e=>{e.result.records.forEach(((e,t)=>{e.picPatharr=[],e.zk=!1,e.yczk=!1,e.bz=!1,e.pz=!1,""!=e.picPath&&null!=e.picPath&&(e.picPatharr=e.picPath.split(","),e.picPatharr=e.picPatharr.filter((e=>""!==e)))})),m.value.push(...e.result.records);let t=Math.ceil(e.result.total/3);m.value.forEach(((e,l)=>{Math.ceil((l+1)/3)==t&&t>2&&(e.dczk=!0)})),d.value=e.result.total==m.value.length?"nomore":"loadmore"}))},p=()=>{"loading"!=d.value&&"nomore"!=d.value&&(d.value="loading",u.value++,v())},h=(e,t)=>{m.value[e]=t},y=(e,t)=>{let l={id:e.id,dqkcsl:e.dqkcsl,pdsl:e.pdsl,content:e.content,picPath:e.picPath};var a;(a=l,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/editPddInfo`,method:"post",data:a})).then((l=>{l.success?(l.result.zk=!1,l.result.yczk=!1,l.result.bz=!1,l.result.pz=!1,l.result.picPatharr=[],""!=l.result.picPath&&null!=l.result.picPath&&(l.result.picPatharr=l.result.picPath.split(","),l.result.picPatharr=l.result.picPatharr.filter((e=>""!==e))),1==e.dczk&&(l.result.dczk=!0),m.value[t]=l.result,uni.removeStorage({key:"valitem"})):(n.value=l.message,i.value=!0)}))},w=()=>{let e={pddId:a.value.id,paramType:4,pageNo:-1,pageSize:10};kl(e).then((e=>{0==e.result.total?o.value=!0:(n.value="有未完成的盘点信息,不能提交盘点单",i.value=!0)}))},N=()=>{var e;(e={id:a.value.id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/voidedPddMain`,method:"post",data:e})).then((e=>{e.success?(c.value=!0,setTimeout((()=>{uni.navigateBack()}),800)):(n.value=e.message,i.value=!0)}))};return(t,r)=>{var g;const f=e.resolveComponent("errorshow"),k=e.resolveComponent("tanchuang");return e.openBlock(),e.createElementBlock("view",{class:"all-bgc"},[e.createElementVNode("view",{class:"topcard"}),e.createElementVNode("view",{class:"tablist"},[e.createElementVNode("view",{class:"lefts"},[e.createElementVNode("view",{class:"pddl"},"盘点单"),e.createElementVNode("view",{class:"pdh"},e.toDisplayString(a.value.pddNo),1),e.createElementVNode("view",{class:"nms"},e.toDisplayString(a.value.pddStartBy)+" | "+e.toDisplayString(a.value.pddStartTime.substring(0,10).replace(/-/g,".")),1),e.createElementVNode("view",{class:"shypk"},e.toDisplayString(a.value.nuName),1)]),e.createElementVNode("view",{class:"rith"},[e.createElementVNode("view",{class:"left-selecttype"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["全部","盘盈","盘亏","已盘点","未盘点"],((t,a)=>e.createElementVNode("view",{class:e.normalizeClass(s.value===a?"selecttype-target":"selecttype"),onClick:e=>(e=>{s.value==e&&e||(l.value=1,setTimeout((()=>{l.value=0}),50),s.value=e,u.value=1,m.value=[],uni.removeStorage({key:"valitem"}),v())})(a)},e.toDisplayString(t),11,["onClick"]))),64)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===s.value?11.5:10.6+19*s.value)+"%"})},null,4)]),e.createElementVNode("view",{class:"pdbt"},e.toDisplayString(a.value.pddType_dictText),1)])]),e.createElementVNode("view",{class:"list"},[e.createVNode(Sa,{pddlist:m.value,onScrolltolower:p,pddType:null==(g=a.value)?void 0:g.pddType,status:d.value,onTabitem:h,onRight:y},null,8,["pddlist","pddType","status"])]),"1"==a.value.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"submit"},[e.createElementVNode("view",{onClick:r[0]||(r[0]=e=>c.value=!0)},"取消盘点"),e.createElementVNode("view",{onClick:w},"提交盘点单")])):e.createCommentVNode("",!0),e.createVNode(f,{show:i.value,font:n.value,onClose:r[1]||(r[1]=e=>i.value=!1)},null,8,["show","font"]),e.createVNode(Ba,{show:o.value,pddobj:a.value,onClose:r[2]||(r[2]=e=>o.value=!1)},null,8,["show","pddobj"]),e.createVNode(k,{show:c.value,font:"确定要作废盘点单吗",onBack:r[3]||(r[3]=e=>{c.value=!1}),onRight:N},null,8,["show"])])}}}),[["__scopeId","data-v-8ced8ac4"]]),Ca=s(e.defineComponent({__name:"index",props:{isShow:{type:Boolean,required:!0}},emits:["swip"],setup(t,{emit:a}){const i=e.ref(!1),n=t,o=e.ref(0),r=e.ref(0),c=e=>{var t;"Y"!=(null==(t=v.value)?void 0:t.izStart)||1!=e?ze({id:uni.getStorageSync("userInfo").id}).then((t=>{r.value=t.result,r.value.forEach((e=>{e.flag=!1})),o.value=e})):uni.showToast({title:"服务中不能转单!",icon:"none"})},s=e.ref(!1),u=()=>{d.value=o.value,1==o.value&&(m.value="确认转单执行?"),2==o.value&&(m.value="确认协助执行?")},d=e.ref(0),m=e.ref(""),v=e.ref({}),p=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),g=e.ref(uni.getStorageSync("serverUrl")+"/sys/commonVideo/staticVideo/"),h=e.reactive({pageNo:1,pageSize:10,employeeId:uni.getStorageSync("userInfo").employessId,nuId:uni.getStorageSync("nuId")});e.ref([]);const y=e=>{h.nuId=e,be(h).then((e=>{e.result.records.length>0?w(0,e.result.records[0]):v.value={}}))},w=(e,t)=>{Se({mainId:t.id}).then((e=>{e.result.length>0?v.value=e.result[0]:v.value={}}))},N=e.ref(0),f=e.ref(!1),k=e.ref(0),E=e.ref([]),x=e.ref({}),V=(e,t,l)=>{1==l&&e.manuallyPicPath?(E.value=e.manuallyPicPath.split(","),E.value=E.value.filter((e=>""!==e))):2==l&&e.manuallyMp4Path?(E.value=e.manuallyMp4Path.split(","),E.value=E.value.filter((e=>""!==e))):3==l&&e.tplinkPath?(E.value=e.tplinkPath.split(","),E.value=E.value.filter((e=>""!==e))):E.value=[],x.value=e,k.value=l,f.value=!0},b=e=>{let t=new Date,l=t.getFullYear(),a=t.getMonth()+1;uni.uploadFile({url:uni.getStorageSync("serverUrl")+"/sys/common/upload",filePath:e,name:"file",fileType:2==k.value?"video":"image",formData:{biz:l+"/"+a+(1==k.value?"/fwxm/manuallyPicPath":"/fwxm/manuallyMp4Path")},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);E.value.push(t.message)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})},S=()=>{let e="";E.value.forEach((t=>{e+=t+","})),1==k.value?De({id:x.value.id,manuallyPicPath:e}).then((e=>{e.success&&(k.value=0,f.value=!1,w(0,{id:v.value.mainId}))})):Ce({id:x.value.id,manuallyMp4Path:e}).then((e=>{e.success&&(k.value=0,f.value=!1,w(0,{id:v.value.mainId}))}))};e.ref(null);const B=e.ref(0),C=e.ref(!1),D=e.ref(""),z=(e,t)=>{var l,a,i,n,o,r,c,s;if(1==t){if("Y"==(null==(l=v.value)?void 0:l.izStart)){switch(e){case 0:if(""==(null==(a=v.value)?void 0:a.serviceContent))return;D.value=null==(i=v.value)?void 0:i.serviceContent;break;case 1:if(""==(null==(n=v.value)?void 0:n.mp3File))return;D.value=null==(o=v.value)?void 0:o.mp3File;break;case 2:if(""==(null==(r=v.value)?void 0:r.mp4File))return;D.value=null==(c=v.value)?void 0:c.mp4File}C.value=!0}}else if("Y"==(null==(s=v.value)?void 0:s.izStart))switch(e){case 3:V(v.value,0,1);break;case 4:V(v.value,0,2)}},I=e.ref(),F=e.ref([]);e.ref(!1);const _=e.ref(0),M=a,$=e=>{var t;_.value=e;let l=oe(2)[e];uni.setStorageSync("nuId",l.nuId),uni.setStorageSync("nuName",l.nuName),uni.setStorageSync("elderId",(null==l?void 0:l.elderInfo)?null==(t=l.elderInfo)?void 0:t.id:null),uni.setStorageSync("NUall",l),y(l.nuId),M("swip"),j(l.nuId),A(l.nuId)},L=e.ref({}),j=e=>{xe({nuId:e}).then((e=>{L.value=e.result}))};e.ref(0);const U=e.ref(-1),P=e.ref({}),A=e=>{let t={nuId:e,elderId:elderId};Ve(t).then((e=>{l("log","at pages/Warehouse/index/component/index.vue:888",e),P.value=e.result.invoicing}))},q=e.ref(!1),O=e.ref(""),Y=()=>{if(U.value<0)return;let e={id:P.value[U.value].id,triggerMode:1,orderType:3};_e(e).then((e=>{e.success?i.value=!1:(q.value=!0,O.value=e.message)}))},R=e.ref(-1),W=e.ref(!1);e.ref();const J=e.ref(0);function Q(e){J.value=e.detail.scrollTop}function G(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const X=e.ref([{url:"/static/index/newindex/rightmenu/1.png",name:"转单执行"},{url:"/static/index/newindex/rightmenu/2.png",name:"协助执行"}]);e.ref(G("/static/index/newindex/leftmenu","left",5,"png",0,!1)),e.ref(G("/static/index/newindex/huli","care",9,"png",0,!1));const H=G("/static/index/newindex/curve","curve_",9,"png",1,!1),Z=e.ref([...H,...[...H].reverse()]),K=G("/static/index/newindex/curve","breathe_",9,"png",1,!1);e.ref([...K,...[...K].reverse()]);const ee=e.ref(!1);e.watch((()=>n.isShow),((e,t)=>{!t&&e?(ee.value=!1,setTimeout((()=>{ee.value=!0}),50)):ee.value=!1}));const te=e.ref(""),le=e.ref(""),ae=e.ref(""),ie=e.ref(""),ne=()=>{const e=new Date,t=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0");le.value=`${t}:${l}`;const a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][e.getDay()];ie.value=a;const i=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0");ae.value=`${i}.${n}.${o}`};e.onMounted((()=>{te.value=uni.getStorageSync("realname"),R.value=0,ne(),setInterval(ne,1e3),W.value=!0,re(),ee.value=!1,setTimeout((()=>{ee.value=!0}),50)}));const oe=e=>F.value.filter((t=>Number(t.areaFlag)-1==e)),re=()=>{T().then((e=>{F.value=e.result.records,oe(2).forEach(((e,t)=>{e.nuId===uni.getStorageSync("NUall").nuId&&(_.value=t,$(t)),null==e.readList&&(e.flag=!1),e.readList.length>0&&e.readList.forEach((t=>{"pdd"==t.type&&(e.flag=!0)}))}))}))};e.ref(!1);const ce=()=>{uni.navigateTo({url:"/pages/watch/full"})};return(t,l)=>{var a,n,h,V,T,C,D,F,M,j,A,R,G,H,K,te,ne,re,se,ye,fe,ke,Ee,xe;const Ve=e.resolveComponent("errorshow"),be=e.resolveComponent("donghua"),Se=e.resolveComponent("tanchuang"),Ce=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other",style:e.normalizeStyle(ee.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("view",{class:"title-card"},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"},e.toDisplayString(L.value.cklFinishedTotal),1),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ue})]),e.createElementVNode("view",{class:"card-spec"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"line-gray"},e.toDisplayString(L.value.cklTotal),1)])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:"/static/index/card/warehouse.png"}),e.createElementVNode("view",{class:"bottom-font"}," 库房 ")])]),e.createElementVNode("view",{class:"title-card-right",onClick:l[2]||(l[2]=e=>i.value=!0)},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"}),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ue})])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:de}),e.createElementVNode("view",{class:"bottom-font"}," 即时 ")]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bianj"},[e.createElementVNode("image",{src:me,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["jszl guodu",i.value?"":"jsh0"]),onClick:l[1]||(l[1]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"tittop"},[e.createElementVNode("view"),e.createTextVNode(" 即时服务指令 ")]),e.createElementVNode("view",{class:"spiw"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["库房"],((t,l)=>e.createElementVNode("view",{key:l,class:e.normalizeClass(0==l?"act":"")},e.toDisplayString(t),3))),64))]),e.createElementVNode("scroll-view",{class:"scrol","scroll-y":"true"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass([l==U.value?"act":"","cdk"]),onClick:e=>{var t;(t=l)>-1&&t==U.value?U.value=-1:U.value=t}},[e.createElementVNode("image",{src:U.value!=l?t.netImmediateFile:t.netPreviewFileSmall,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.directiveName),1)],10,["onClick"])))),128)),0==P.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"13vw",height:"13vw",margin:"7vw 0 0 23.5vw",display:"block",background:"none"}},[e.createElementVNode("image",{src:ve,mode:"aspectFill",style:{width:"13vw",height:"13vw"}}),e.createElementVNode("view",{style:{width:"100%","text-align":"center","font-weight":"400","font-size":"1.2vw",color:"#555555","margin-top":"-3vw","white-space":"nowrap"}}," 暂无服务指令 ")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"submit"},[e.createElementVNode("view",{onClick:l[0]||(l[0]=e.withModifiers((e=>i.value=!1),["stop"]))},"取消"),U.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:Y},"确定")):e.createCommentVNode("",!0)])],2)]),e.createVNode(Ve,{show:q.value,font:O.value,onClose:l[3]||(l[3]=e=>q.value=!1),style:{left:"44%"}},null,8,["show","font"]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[4]||(l[4]=e=>i.value=!1)})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:e.normalizeStyle([{"margin-left":"-30rpx"},(null==(a=v.value)?void 0:a.startTime)?{}:{filter:"grayscale(60%)"}])},[e.createVNode(be,{width:"1300rpx",height:"900rpx",links:Z.value,playing:W.value,loop:!0,interval:120},null,8,["links","playing"])],4),e.createElementVNode("view",{class:"weight-time"},[(null==(n=v.value)?void 0:n.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:""},e.toDisplayString(null==(h=v.value)?void 0:h.startTime.slice(11,16))+" - "+e.toDisplayString(null==(V=v.value)?void 0:V.endTime.slice(11,16)),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{style:{height:"5vw"}},null,512),[[e.vShow,!(null==(T=v.value)?void 0:T.startTime)]]),e.withDirectives(e.createElementVNode("view",{class:"pao-father"},[e.createElementVNode("image",{class:"pao-img",src:"/static/index/newindex/states/pao.png"},null,8,["src"]),e.createElementVNode("view",{style:{"z-index":"1"}},e.toDisplayString("N"==(null==(C=v.value)?void 0:C.izStart)?"待执行":"执行中"),1)],512),[[e.vShow,null==(D=v.value)?void 0:D.startTime]])]),e.createVNode(Se,{show:3==N.value,font:"是否结束服务指令?",onBack:l[5]||(l[5]=e=>N.value=0),onRight:l[6]||(l[6]=e=>{Te({id:v.value.id}).then((e=>{e.success&&(N.value=0,y(uni.getStorageSync("nuId")))}))})},null,8,["show"]),0==k.value?(e.openBlock(),e.createElementBlock("image",{key:0,class:"big-img",style:e.normalizeStyle((null==(F=v.value)?void 0:F.previewFile)?"":"width: 450rpx"),src:(null==(M=v.value)?void 0:M.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(j=v.value)?void 0:j.previewFile):"/static/index/newindex/wendu/2.png",mode:"aspectFill"},null,12,["src"])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[(null==(A=v.value)?void 0:A.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"server-name"},e.toDisplayString(null==(R=v.value)?void 0:R.directiveName),1)):e.createCommentVNode("",!0)]),(null==(G=v.value)?void 0:G.startTime)?(e.openBlock(),e.createElementBlock("view",{key:1,style:{display:"flex","margin-top":"40rpx"}},[e.createElementVNode("view",{style:{width:"240rpx",height:"90rpx","margin-right":"40rpx"}},[e.withDirectives(e.createElementVNode("view",{class:e.normalizeClass("N"==(null==(H=v.value)?void 0:H.izStart)?"start-button":"end-button"),onClick:l[7]||(l[7]=e=>{var t;"N"==(t=v.value).izStart&&Be({id:t.id}).then((e=>{e.success&&(t.izStart="Y",I.value.firstgetqueryCgdList())}))})}," 开始服务 ",2),[[e.vShow,null==(K=v.value)?void 0:K.startTime]])]),e.createElementVNode("view",{style:{width:"240rpx",height:"90rpx"}},[e.createElementVNode("view",{class:e.normalizeClass("Y"==(null==(te=v.value)?void 0:te.izStart)&&"N"==(null==(ne=v.value)?void 0:ne.izFinish)?"start-button":"end-button"),onClick:l[8]||(l[8]=e=>(v.value,void("Y"==v.value.izStart&&"N"==v.value.izFinish&&(N.value=3))))}," 结束服务 ",2)])])):e.createCommentVNode("",!0),o.value>0?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:l[9]||(l[9]=e=>o.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(o.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==o.value?"转单执行":"协助执行"),1)]),o.value>0?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"","enable-flex":""},[e.createElementVNode("view",{class:"photowall-other"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{class:"bottom-title",key:l,onClick:e=>((e,t)=>{if(1==o.value&&(e.flag=!e.flag,r.value.forEach(((e,l)=>{l!=t&&(e.flag=!1)})),s.value=e.flag),2==o.value){e.flag=!e.flag;let t=[];r.value.forEach(((e,l)=>{e.flag&&t.push(1)})),0==t.length?s.value=!1:s.value=!0}})(t,l),style:e.normalizeStyle([{border:"1px solid #f8f8f8",width:"16vw",margin:"0 0.8vw",height:"17vw","border-radius":"1.1vw",background:"#f8f8f8",display:"flex","flex-direction":"column","align-items":"center"},t.flag?"border: 1px solid #0385FA;background: #fff !important;":""])},[e.createElementVNode("image",{style:{width:"9vw",height:"9vw","border-radius":"50%",margin:"1vw auto"},src:t.headPath?p.value+t.headPath:"/static/shouye/xd.png"},null,8,["src"]),e.createElementVNode("view",{class:"name-weight"},e.toDisplayString(t.name),1),(null==(a=uni.getStorageSync("NUall").elderInfo)?void 0:a.name)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"message-view"},[e.createTextVNode(e.toDisplayString(t.sex)+" ",1),e.createElementVNode("view",{class:"message-shu"}),e.createElementVNode("view",{style:{"font-weight":"600"}},e.toDisplayString(t.height)+"cm ",1),e.createElementVNode("view",{class:"message-shu"}),e.createTextVNode(" "+e.toDisplayString(t.weight)+"Kg ",1)])):e.createCommentVNode("",!0)],12,["onClick"])})),128))])])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{position:"absolute",right:"2vw",bottom:"0.8vw",height:"4vw"}},[s.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"8.2vw",height:"3.3vw",background:"linear-gradient(0deg, #CAE0F9, #E9F4FF)","border-radius":"1.6vw","font-weight":"400","font-size":"1.6vw",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center",border:"1px solid rgba(3,133,250,0.34)"},onClick:u},"确定")):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"8.2vw",height:"3.3vw",background:"#EDEDEF","border-radius":"1.6vw","font-weight":"400","font-size":"1.6vw",color:"#999",display:"flex","justify-content":"center","align-items":"center",border:"1px solid rgba(3,133,250,0.34)"}},"确定"))]),e.createVNode(Se,{show:d.value>0,font:m.value,onBack:l[10]||(l[10]=e=>d.value=0),onRight:l[11]||(l[11]=e=>(()=>{if(1==d.value){let e={};r.value.forEach(((t,l)=>{t.flag&&(e=t)}));let t={mainId:v.value.mainId,employeeId:e.id,employeeName:e.name},l=uni.getStorageSync("nuId");Ie(t).then((e=>{e.success&&(y(l),s.value=!1,d.value=0,o.value=0)}))}if(2==d.value){let e=uni.getStorageSync("userInfo"),t=e.id+",",l=e.realname+",";r.value.forEach(((e,a)=>{e.flag&&(t+=e.id+",",l+=e.name+",")}));let a={mainId:v.value.mainId,employeeId:t,employeeName:l};Fe(a).then((e=>{e.success&&(w(0,{id:v.value.mainId}),s.value=!1,d.value=0,o.value=0)}))}})())},null,8,["show","font"])],4),[[e.vShow,o.value>0]])]),e.withDirectives(e.createElementVNode("view",{class:"left-menu"},[e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:l[12]||(l[12]=e=>z(0,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(re=v.value)?void 0:re.serviceContent)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left0.png"},null,8,["src"])],4)]),e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:l[13]||(l[13]=e=>z(1,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(se=v.value)?void 0:se.mp3File)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left1.png"},null,8,["src"])],4)]),e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:l[14]||(l[14]=e=>z(2,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(ye=v.value)?void 0:ye.mp4File)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left2.png"},null,8,["src"])],4)]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([3,4],((t,l)=>{var a;return e.createElementVNode("view",{key:l,style:{margin:"30rpx 0"},onClick:e=>z(t,2)},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle("Y"==(null==(a=v.value)?void 0:a.izStart)?"background-color: #fff;":"background-color:RGBA(228, 229, 231, 1);")},[e.createElementVNode("image",{class:"left-menu-img",src:"/static/index/newindex/leftmenu/left"+t+".png"},null,8,["src"])],4)],8,["onClick"])})),64))],512),[[e.vShow,null==(fe=v.value)?void 0:fe.startTime]]),1==(null==(ke=v.value)?void 0:ke.optType)?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,class:"right-menu"},[e.createElementVNode("view",{class:"zhezhao-top",onClick:l[15]||(l[15]=e=>J.value-=115)}),e.createElementVNode("view",{class:"zhezhao-bottom",onClick:l[16]||(l[16]=e=>J.value+=115)}),e.createElementVNode("image",{class:"top-img",src:"/static/index/newindex/rightmenu/top.png",onClick:l[17]||(l[17]=e=>J.value>0?J.value-=115:J.value=0)},null,8,["src"]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"right-scroll","scroll-top":J.value,onScroll:Q},[e.createElementVNode("view",{style:{height:"20rpx"}}),e.createElementVNode("view",{style:{margin:"20rpx 0",width:"110rpx","margin-left":"20rpx"},onClick:l[18]||(l[18]=e=>c(1))},[e.createElementVNode("view",{class:"white-circle",style:e.normalizeStyle("Y"==(null==(Ee=v.value)?void 0:Ee.izStart)?"background-color:RGBA(228, 229, 231, 1)":"")},[e.createElementVNode("image",{class:"right-menu-img",src:"/static/index/newindex/rightmenu/1.png"},null,8,["src"]),e.createElementVNode("view",{class:"right-menu-name"}," 转单执行 ")],4)]),e.createElementVNode("view",{style:{margin:"20rpx 0",width:"110rpx","margin-left":"20rpx"},onClick:l[19]||(l[19]=e=>c(2))},[e.createElementVNode("view",{class:"white-circle"},[e.createElementVNode("image",{class:"right-menu-img",src:"/static/index/newindex/rightmenu/2.png"},null,8,["src"]),e.createElementVNode("view",{class:"right-menu-name"}," 协助执行 ")])]),e.createElementVNode("view",{style:{height:"30rpx"}})],40,["scroll-top"]),e.createElementVNode("image",{class:"top-img",src:"/static/index/newindex/rightmenu/bottom.png",onClick:l[20]||(l[20]=e=>J.value>55*X.value.length?J.value=55*X.value.length:J.value+=115)},null,8,["src"])],512)),[[e.vShow,null==(xe=v.value)?void 0:xe.startTime]]):e.createCommentVNode("",!0)],4),e.createElementVNode("view",{class:"index-content-right",style:e.normalizeStyle(ee.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"right-time"},[e.createElementVNode("view",{class:"time-top"},[e.createElementVNode("view",{class:"time-big"},e.toDisplayString(le.value),1),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"time-week"},e.toDisplayString(ie.value),1),e.createElementVNode("view",{class:""},e.toDisplayString(ae.value),1)])]),e.createElementVNode("view",{class:"right-container-tem"},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{class:"right-container-tem-img",src:pe}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(uni.getStorageSync("NUall").humidDeviceList&&uni.getStorageSync("NUall").humidDeviceList[0]?uni.getStorageSync("NUall").humidDeviceList[0].temperature:"-")+"°C",1)]),e.createElementVNode("view",{class:""},[e.createElementVNode("image",{class:"right-container-tem-img",src:ge}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(uni.getStorageSync("NUall").humidDeviceList&&uni.getStorageSync("NUall").humidDeviceList[0]?uni.getStorageSync("NUall").humidDeviceList[0].humidity:"-")+"%",1)])])]),e.createElementVNode("view",{class:"right-top"},[e.createElementVNode("view",{class:"top-title"}," 库房 "),e.createElementVNode("scroll-view",{class:"top-list","scroll-y":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(2),((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"list-view",style:e.normalizeStyle(_.value===l?{borderColor:"#8DD6FF",backgroundColor:"#F7F7F9"}:{}),key:l,onClick:e=>$(l)},[e.createElementVNode("image",{class:"list-img",src:"/static/index/newindex/leftmenu/wareblue.png"},null,8,["src"]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"first-line"},[e.createElementVNode("view",{style:{"font-size":"1.2vw"}},e.toDisplayString(t.nuName),1),e.createElementVNode("view",{class:"first-line-second",style:e.normalizeStyle(t.flag?"background:#47ADF5;color:#fff":"")},e.toDisplayString(t.flag?"盘点":"正常"),5)]),e.createElementVNode("view",{class:"second-line"}," NUID:"+e.toDisplayString(t.nuId),1)])],12,["onClick"])))),128))])]),e.createElementVNode("view",{class:"right-bottom"},[e.createElementVNode("view",{class:"bottom-title"},[e.createElementVNode("image",{class:"bottom-carmera",src:he,onClick:ce})]),e.createElementVNode("image",{class:"big-older",src:`/static/index/newindex/leftmenu/${uni.getStorageSync("NUall").fzr?"warepeople":"nopeople"}.png`},null,8,["src"]),e.createElementVNode("view",{class:"name-weight"},e.toDisplayString(uni.getStorageSync("NUall").fzr),1),uni.getStorageSync("NUall").fzrTel?(e.openBlock(),e.createElementBlock("view",{key:0,class:"message-view"},e.toDisplayString(uni.getStorageSync("NUall").fzrTel),1)):e.createCommentVNode("",!0)])],4),k.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:l[21]||(l[21]=e=>k.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(f.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==k.value?"照片":"录像"),1)]),k.value>0?(e.openBlock(),e.createElementBlock("scroll-view",{key:0,"scroll-y":"true",class:"photowall-other","scroll-with-animation":"","enable-flex":""},[e.createElementVNode("view",{class:"photowall-other"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>((e,t,l)=>{if(1==k.value){let e=[];l.forEach((t=>{e.push(p.value+t)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}})(0,l,E.value)},[1==k.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%",height:"70%","border-radius":"30rpx",position:"relative"}},[e.createElementVNode("image",{style:{width:"100%",height:"100%","border-radius":"30rpx"},src:t?p.value+t:"/static/ceshiyaoshan.png",mode:"aspectFill","lazy-load":!0},null,8,["src"]),k.value>0&&"Y"==x.value.izStart&&"N"==x.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{var t;N.value=1,t=l,B.value=t}),["stop"]),style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"-1vw",top:"-0.7vw",background:"red",display:"flex","justify-content":"center","border-radius":"50%","align-items":"center"}},[e.createElementVNode("image",{src:we,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),2==k.value?(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"100%",height:"70%","border-radius":"30rpx",position:"relative"}},[e.createElementVNode("video",{style:{width:"100%",height:"100%","border-radius":"30rpx"},id:"myVideo"+l,src:g.value+t,mode:"aspectFill"},null,8,["id","src"]),k.value>0&&"Y"==x.value.izStart&&"N"==x.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>E.value.splice(l,1)),["stop"]),style:{width:"1.6vw",height:"1.6vw","z-index":"20",position:"absolute",right:"-1vw",top:"-0.7vw",background:"red",display:"flex","justify-content":"center","border-radius":"50%","align-items":"center"}},[e.createElementVNode("image",{src:we,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128)),k.value>0&&"Y"==x.value.izStart&&"N"==x.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,class:"photowall-other-one"},[e.createElementVNode("view",{style:{width:"100%",height:"71%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",position:"absolute",top:"0vw",left:"0","background-color":"#fafdff",border:"1rpx solid #78B1EB","border-radius":"30rpx"},onClick:l[22]||(l[22]=e=>{1==k.value?uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:e=>{let t=JSON.stringify(e.tempFilePaths);uni.compressImage({src:JSON.parse(t)[0],quality:60,success:e=>{b(e.tempFilePath)}})}}):uni.chooseVideo({sourceType:["camera"],success:e=>{uni.compressVideo({src:e.tempFilePath,quality:"medium",success:e=>{b(e.tempFilePath)}})}})})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:Ne}),e.createElementVNode("view",{style:{color:"#78B1EB"}}," 点击上传"+e.toDisplayString(1==k.value?"图片":"录像"),1)])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),k.value>0&&"Y"==x.value.izStart&&"N"==x.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:1,style:{position:"absolute",right:"2vw",bottom:"0.8vw",height:"4vw"}},[e.createElementVNode("view",{style:{width:"8.2vw",height:"3.3vw",background:"linear-gradient(0deg, #CAE0F9, #E9F4FF)","border-radius":"1.6vw","font-weight":"400","font-size":"1.6vw",color:"#0385FA",display:"flex","justify-content":"center","align-items":"center",border:"1px solid rgba(3,133,250,0.34)"},onClick:S},"确定")])):e.createCommentVNode("",!0)],4),[[e.vShow,k.value>0]]),e.createVNode(Se,{show:1==N.value,font:"是否删除此图片",onBack:l[23]||(l[23]=e=>N.value=0),onRight:l[24]||(l[24]=e=>(E.value.splice(B.value,1),void(N.value=0)))},null,8,["show"]),e.createVNode(Ce,{ref_key:"severcards",ref:I},null,512)],64)}}}),[["__scopeId","data-v-ea7bfe91"]]),Da=300,za=s(e.defineComponent({__name:"index",props:{isshow:{type:Boolean,required:!0}},setup(t){const a=t;e.watch((()=>a.isshow),((t,l)=>{t!==l&&(Fe.value=!1,Te.value=!1,et.value?et.value--:(vt(),S.value=1,B.value=1,e.nextTick((()=>{B.value=0,S.value=775}))),ve.value=0)}));const i=e.ref(!1),n=e.ref(-1),o=e.ref(!1),r=e.ref(-1),c=e.ref("translate3d(0, 0, 0)");let s=0,u=!1;const d=e.ref(!1),m=e.ref(!1),v=e.ref(!1);e.watch((()=>m.value),(()=>{setTimeout((()=>{d.value=m.value}),50)}));const p=e.ref(!1);e.watch((()=>v.value),(()=>{setTimeout((()=>{p.value=v.value}),50)})),e.ref([]),e.ref([]);const g=e.ref(!1),h=e.ref([]),y=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],w=["00","05","10","15","20","25","30","35","40","45","50","55"],N=["周一","周二","周三","周四","周五","周六","周日"],f=Array.from({length:31},((e,t)=>(t+1).toString().padStart(2,"0"))),k=e.ref(!0),E=e.ref(!1),x=e.ref(0),V=e.ref(0),b=e.ref(0),S=e.ref(678),B=e.ref(0),T=e.ref(),C=e.ref(!1),D=e.ref([]),z=e.ref(!1);e.ref(!1);const I=e.ref(!1);e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1);const F=e.ref(!1);e.ref("");const _=e.ref(!1);e.ref(6),e.ref(11),e.ref(0),e.ref(3);const M=e.ref(!1),$=e.computed((()=>Se.value[0]&&Se.value[1]?"left-bottom":!Se.value[0]&&Se.value[1]?"right-bottom":Se.value[0]&&!Se.value[1]?"left-top":"right-top")),L=e.ref([]),j=e.ref(0);const U=()=>{if(ke.value.index0===we.value.index0&&ke.value.index1===we.value.index1)return M.value=!1,ke.value.index0=-1,void(ke.value.index1=-1);at.value[we.value.index0].children[we.value.index1].id?H(at.value[we.value.index0].children[we.value.index1]).then((e=>{P()})):P()},P=()=>{let e=JSON.parse(JSON.stringify(at.value[ke.value.index0].children[ke.value.index1]));Ae.value=[we.value.index0,we.value.index1];let t=at.value[ke.value.index0].children[ke.value.index1].tagName;at.value[ke.value.index0].children[ke.value.index1]={directiveName:"",tagName:t};let l=at.value[Ae.value[0]].children[Ae.value[1]].tagName;at.value[Ae.value[0]].children[Ae.value[1]]=e,at.value[Ae.value[0]].children[Ae.value[1]].tagName=l;let a=at.value[Ae.value[0]].children[Ae.value[1]].startTime,i=at.value[Ae.value[0]].children[Ae.value[1]].endTime,n=at.value[Ae.value[0]].positioning;const o=e=>{const t=String(e||"").split(":").map((e=>e.trim())),l=Number(t[0]??0),a=Number(t[1]??0);return{hour:Number.isFinite(l)?l:0,minute:Number.isFinite(a)?a:0}},r=o(a),c=o(i);let s=60*c.hour+c.minute-(60*r.hour+r.minute);s<0&&(s+=1440);const u=Number(String(l).trim()),d=Number(String(n).trim());if(!Number.isFinite(u)||u<0||u>=60)throw new Error("newtagName 必须是 0-59 的数字字符串或数字");if(!Number.isFinite(d)||d<0)throw new Error("positioning 必须是有效小时(数字或数字字符串)");const m=60*d+u+s,v=Math.floor(m/60)%24,p=m%60,g=e=>String(e).padStart(2,"0");at.value[Ae.value[0]].children[Ae.value[1]].startTime=`${String(d)}:${g(u)}`,at.value[Ae.value[0]].children[Ae.value[1]].endTime=`${String(v)}:${g(p)}`,ke.value.index1=-1,M.value=!1;let h={index0:we.value.index0,index1:we.value.index1};tt(h);let y=at.value[we.value.index0].children[we.value.index1];y.positioning=we.value.index0,y.positioningLong=we.value.index1,K(y).then((e=>{e.success&&ot()}))},A=t=>{var l;5!==t?(E.value=!1,ee.value=-1,le.value=-1,W.value="",te.value="",V.value=.01,x.value=.01,ge.value=-1,e.nextTick((()=>{V.value=0,x.value=0,ge.value=0})),pe.value=0,ve.value=t,T.value=null==(l=D.value[t])?void 0:l.children,he.value=0):uni.navigateTo({url:"/pages/watch/full"})},q=e.ref(!1),O=()=>{ae.value=!1,g.value=!1,M.value?U():at.value[we.value.index0].children[we.value.index1].directiveName?(ke.value.index0=we.value.index0,ke.value.index1=we.value.index1,M.value=!0):(q.value=!0,setTimeout((()=>{q.value=!1}),1500))},Y=e.ref(!1),R=e.ref(-1),W=e.ref(""),ee=e.ref(-1),te=e.ref(""),le=e.ref(-1),ae=e.ref(!1),ie=()=>{ke.value.index0=-1,ke.value.index1=-1,M.value=!1,g.value=!1,at.value[we.value.index0].children[we.value.index1].directiveName?ae.value?(ae.value=!1,Ce(we.value.index0,we.value.index1)):(ae.value=!0,setTimeout((()=>gt.value=!0),50)):(q.value=!0,setTimeout((()=>{q.value=!1}),1500))};function ne(e,t){return 2*function(e,t){const l=55.9898*e+78.233*t;return Math.abs(43758.5453*Math.sin(l))%1}(e,t)}const oe="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:e=>setTimeout(e,16);function re(e){const t=e&&e.detail&&(e.detail.scrollTop??e.detail.scrollY)||0;s=t,u||(u=!0,oe((()=>{c.value=`translate3d(0, -${s}px, 0)`,u=!1})))}const ce=e.ref(0);function se(e){ce.value=e.detail.scrollLeft}const ue=(e,t,l)=>e.startTime?ke.value.index0===t&&ke.value.index1===l?"title-time-border-yellow-active-transparent":Te.value?"title-time-border-yellow-active":"title-time-border-yellow":"title-time-border";function de(e,t,l,a="png",i=0,n=!1){return Array.from({length:l},((l,o)=>{const r=n?String(o+i).padStart(2,"0"):o+i;return`${e}/${t}${r}.${a}`}))}const me=e.ref([{url:de("/static/index/newruler","daily_",6,"png",1,!1),name:"日常"},{url:de("/static/index/newruler","clean_",8,"png",1,!1),name:"清洁"},{url:de("/static/index/newruler","diet_",7,"png",1,!1),name:"饮食"},{url:de("/static/index/newruler","sleep_",5,"png",1,!1),name:"睡眠"},{url:de("/static/index/newruler","defecate_",5,"png",1,!1),name:"排泄"}]),ve=e.ref(1),pe=e.ref(0),ge=e.ref(-1),he=e.ref(0),ye=e.ref(0),we=e.ref({index0:-1,index1:-1});e.ref(null),e.ref({}),e.ref(0),e.ref(0);const Ne=e.ref(0),fe=e.ref(0),ke=e.ref({index0:999,index1:999,tagName:""}),Ee=e.ref(!1),xe=e.ref(-1),Ve=e.ref(!1),be=()=>{Ve.value=!0,Ee.value=!1,setTimeout((()=>{Ee.value=!0}),100)},Se=e.ref([!1,!1]),Be=e.ref([-1,-1]),Te=e.ref(!1);e.ref([]);const Ce=(e,t)=>{H(at.value[e].children[t]).then((e=>{e.success&&ot()}))},De=e.ref(0),ze=e.ref(0),Ie=e.ref(null),Fe=e.ref(!1),_e=e=>{De.value=Math.floor(e.touches[0].pageX),ze.value=Math.floor(e.touches[0].pageY),Ie.value=setTimeout((()=>{Fe.value=!0}),500)},Me=e=>{const t=Math.floor(e.touches[0].pageX),l=Math.floor(e.touches[0].pageY);(Math.abs(t-De.value)>0||Math.abs(l-ze.value)>0)&&Ie.value&&(clearTimeout(Ie.value),Ie.value=null)},Ue=()=>{Ie.value&&(clearTimeout(Ie.value),Ie.value=null)},Ae=e.ref([-1,-1]),qe=()=>{_.value=!1,F.value=!0,setTimeout((()=>{_.value=!0}),50)},Oe=e.ref(!1);let Ye=null;async function Re(){Ye&&(clearTimeout(Ye),Ye=null),Oe.value=!1,await e.nextTick(),Oe.value=!0,Je(),Ye=setTimeout((()=>{Oe.value=!1,Ye=null}),1e3)}const We=e=>{G(e).then((e=>{e.success&&ot()}))},Je=()=>{var t;if(ae.value)return ae.value=!1,void Ce(we.value.index0,we.value.index1);if(M.value)return void U();let a=!1;if((null==(t=at.value[we.value.index0])?void 0:t.children[we.value.index1].directiveName)&&(a=!0),pt.value){let e=rt.value[ye.value];if(-1===we.value.index1&&-1===we.value.index0)return;if(ae.value)return ae.value=!1,void Ce(we.value.index0,we.value.index1);if(M.value)return void U();ke.value.index0=-1,ke.value.index1=-1,M.value=!1;let t="打包",l="";const i=Number(we.value.index0),n=Number(at.value[we.value.index0].children[we.value.index1].tagName),o=n+Number(e.serviceDuration),r=i+Math.floor(o/60),c=`${String(i)}:${String(n).padStart(2,"0")}`,s=`${String(r)}:${String(o%60).padStart(2,"0")}`;let u={id:a?at.value[we.value.index0].children[we.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,directiveId:e.id,directiveName:e.packageName,typeId:"",typeName:"",categoryId:"",categoryName:"",cycleTypeId:"",cycleType:t,cycleValue:l,startTime:c,endTime:s,serviceDuration:e.serviceDuration,positioning:we.value.index0.toString(),positioningLong:we.value.index1.toString(),izPackage:"Y",previewFile:"",previewFileSmall:"",netPreviewFile:"",netPreviewFileSmall:"",immediateFile:"",immediateFileFocus:"",netImmediateFileFocus:"",netImmediateFile:"",tagName:at.value[we.value.index0].children[we.value.index1].tagName,mp3File:e.mp3File,netMp3File:e.netMp3File,mp4File:e.mp4File,netMp4File:e.netMp4File,serviceContent:e.serviceContent};at.value[we.value.index0].children[we.value.index1]=u;let d={index0:we.value.index0,index1:we.value.index1};return tt(d),void(a?K(u).then((e=>{e.success&&ot()})):We(u))}let i=!1,n=D.value[ve.value].children[pe.value].children[he.value];if(3==n.cycleTypeId)return b.value=1,h.value.forEach(((e,t)=>{e.directiveName==n.title&&(i=!0)})),void e.nextTick((()=>{if(i)clearTimeout(Ge.value),C.value=!0,Ge.value=setTimeout((()=>{C.value=!1}),1500);else{b.value=0,h.value.length&&"#03a4ff"===h.value[0].target&&(h.value[0].target="#fff",clearTimeout(Qe.value));let e=n;e.directiveId=n.id,e.directiveName=n.title,e.serviceDuration=n.serviceDuration,e.target="#03a4ff",e.id="",e.nuId=uni.getStorageSync("nuId"),e.nuName=uni.getStorageSync("nuName"),e.elderId=uni.getStorageSync("elderId"),e.elderName=uni.getStorageSync("NUall").elderInfo.name,h.value.unshift(e),Qe.value=setTimeout((()=>{h.value[0].target="#fff",l("log","at pages/NursingNew/component/nurse/index.vue:1459","即时指令看看进入了啥",e),X(e).then((e=>{e.success&&ot()}))}),1500)}}));if(-1===we.value.index1&&-1===we.value.index0)return;if(ke.value.index0=-1,ke.value.index1=-1,M.value=!1,2==n.cycleTypeId&&E.value&&-1==ee.value&&-1==le.value)return;if(2==n.cycleTypeId&&!E.value)return void(E.value=!0);let o="",r="";if(1==n.cycleTypeId)o="日常";else{if(-1!=ee.value){o=W.value;let e=0;N.forEach(((t,l)=>{t==W.value&&(e=l)})),r=e.toString()}else o=te.value+"号",r=te.value;E.value=!1,ee.value=-1,le.value=-1,W.value="",te.value=""}const c=Number(we.value.index0),s=Number(at.value[we.value.index0].children[we.value.index1].tagName),u=s+Number(n.serviceDuration),d=c+Math.floor(u/60),m=`${String(c)}:${String(s).padStart(2,"0")}`,v=`${String(d)}:${String(u%60).padStart(2,"0")}`;let p={id:a?at.value[we.value.index0].children[we.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,directiveId:n.id,directiveName:n.title,typeId:n.typeId,typeName:n.typeName,categoryId:n.categoryId,categoryName:n.categoryName,cycleTypeId:n.cycleTypeId,cycleType:o,cycleValue:r,startTime:m,endTime:v,positioning:we.value.index0.toString(),positioningLong:we.value.index1.toString(),izPackage:"N",previewFile:n.previewFile,previewFileSmall:n.previewFileSmall,serviceDuration:n.serviceDuration,immediateFile:n.immediateFile,immediateFileFocus:n.immediateFileFocus,netImmediateFileFocus:n.netImmediateFileFocus,netImmediateFile:n.netImmediateFile,tagName:at.value[we.value.index0].children[we.value.index1].tagName,mp3File:n.mp3File,netMp3File:n.netMp3File,mp4File:n.mp4File,netMp4File:n.netMp4File,serviceContent:n.serviceContent,netPreviewFile:n.netPreviewFile,netPreviewFileSmall:n.netPreviewFileSmall};at.value[we.value.index0].children[we.value.index1]=p;let g={index0:we.value.index0,index1:we.value.index1};tt(g),a?K(p).then((e=>{e.success&&ot()})):We(p)},Qe=e.ref(null),Ge=e.ref(null),Xe=()=>{if(!ut.value)return;let e=[];nt.value.forEach((t=>{"Y"==t.izSelected&&e.push(t)})),it.value.forEach((t=>{"Y"==t.izSelected&&e.push(t)}));let t={nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:uni.getStorageSync("NUall").elderInfo.name,tagList:e};Q(t).then((()=>{ot()}))},He=()=>{uni.navigateTo({url:"/pages/timeMatrix/indexnew"})},Ze=e.ref({index0:-1,index1:-1}),Ke=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),et=e.ref(0),tt=e=>{we.value.index0=e.index0,we.value.index1=e.index1,vt(),Ke.value.index0=e.index0,Ke.value.index1=e.index1,Ze.value.index0=Ke.value.index0,Ze.value.index1=Ke.value.index1,Ke.value.bordershow=!1,setTimeout((()=>{Ke.value.index0=-1,Ke.value.index1=-1,Ke.value.current=-1}),400),setTimeout((()=>{Ke.value.bordershow=!0,Ze.value.index0=-1,Ze.value.index1=-1}),1e3)},lt=["00","05","10","15","20","25","30","35","40","45","50","55"],at=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:lt.map((e=>({tagName:e,directiveName:""})))})))),it=e.ref([]),nt=e.ref([]),ot=()=>{uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&J(uni.getStorageSync("nuId"),uni.getStorageSync("elderId")).then((e=>{at.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:lt.map((e=>({tagName:e,directiveName:""})))}))),e.result.serviceList.forEach((e=>{at.value[e.positioning].children[e.positioningLong]=e})),h.value=e.result.instantList,ut.value=!0,it.value=e.result.emotionTagList,st.value=[],ct.value=[],e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&st.value.push(e.netPic)})),nt.value=e.result.bodyTagList,e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&ct.value.push(e.netPic)}))}))},rt=e.ref([]);e.onMounted((()=>{rt.value=uni.getStorageSync("Packagelist")||[];let e=uni.getStorageSync("saveTree0"),t=[];Pe.forEach((e=>{e.children.forEach((e=>{t.push({name:e.title,url:e.url})}))})),L.value=t,e.result&&(e.result.forEach((e=>{"0"==e.netFlag?me.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath,e.children.forEach((e=>{"0"==e.netFlag?L.value.forEach((t=>{t.name==e.title&&(e.url=t.url)})):e.url=e.animationPath}))})),D.value=e.result),T.value=D.value[0].children,ve.value=-1,ge.value=-1,setTimeout((()=>{ve.value=0,ge.value=0}),50),uni.$on("where",dt),ge.value=0,ot()}));const ct=e.ref([]),st=e.ref([]),ut=e.ref(!1);function dt(e){et.value=3,tt(e)}function mt(e){let t=[],l=e,a=/([^((]*)[((]([^))]+)[))]/;for(;a.test(l);){let e=l.match(a);e&&(e[1].trim()&&t.push(e[1].trim()),e[2].trim()&&t.push(e[2].trim()),l=l.replace(e[0],"").trim())}return l.trim()&&t.push(l.trim()),t}function vt(){if(we.value.index0>=0&&we.value.index0<=24&&we.value.index1>=0&&we.value.index1<=11){const e=259*(we.value.index0+.5),t=200*(we.value.index1-1);S.value=e-650,B.value=t-200;const l=6216,a=2200;S.value=Math.max(0,Math.min(S.value,l-1300))/2,B.value=Math.max(0,Math.min(B.value,a-400))/2}}e.onBeforeUnmount((()=>{Ye&&clearTimeout(Ye),uni.$off("where",dt),u=!1}));const pt=e.ref(!1),gt=e.ref(!1);return(l,a)=>{var s,u,p,L,U,P,J,Q,G,X,H,K,oe,ce,de,me,Ce,De,ze,Ie;const Pe=e.resolveComponent("donghua");return e.openBlock(),e.createElementBlock("view",{class:"right-container",style:e.normalizeStyle(t.isshow?{opacity:"1"}:{opacity:"0"}),onClick:a[20]||(a[20]=e=>{Fe.value=!1,Te.value=!1})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("text",{style:{"margin-left":"30rpx"}}," NUID:"+e.toDisplayString(uni.getStorageSync("nuId")),1),e.createElementVNode("text",{class:"new-weight"},e.toDisplayString(uni.getStorageSync("nuName")),1),e.createElementVNode("view",{class:"right-icons"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center","margin-right":"25rpx",padding:"0 15rpx"},class:e.normalizeClass(R.value||i.value||o.value?"":"firsttarget")},[e.createElementVNode("view",{class:"mark"},[e.createElementVNode("view",{style:{"margin-right":"15rpx"}}," 老人标签: "),e.withDirectives(e.createElementVNode("view",{class:"overlay",onClick:a[0]||(a[0]=e=>m.value=!1)},null,512),[[e.vShow,m.value]])]),e.createElementVNode("view",{class:"marknone",onClick:a[1]||(a[1]=e=>{m.value=!m.value,v.value=!1})},[ct.value.length||st.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,style:{"margin-top":"-3rpx"}}," 未选择 ")),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ct.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("image",{class:"tags-img",style:{width:"40rpx",height:"40rpx",margin:"0 10rpx"},src:t},null,8,["src"])])))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(st.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("image",{class:"tags-img",style:{width:"40rpx",height:"40rpx",margin:"0 10rpx"},src:t},null,8,["src"])])))),128))]),e.createElementVNode("view",{class:"tri-down",onClick:a[3]||(a[3]=e=>{m.value=!m.value,v.value=!1})},[e.withDirectives(e.createElementVNode("view",{class:"mark-bgc",style:e.normalizeStyle({opacity:d.value?1:0}),onClick:a[2]||(a[2]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"30rpx","margin-left":"50rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 体型标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(nt.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{if("Y"==nt.value[e].izSelected)nt.value[e].izSelected="N";else{let t=0;if(nt.value.forEach((e=>{"Y"==e.izSelected&&t++})),t>1)return void uni.showToast({title:"每种标签最多只能添加两个",icon:"none",duration:3e3});nt.value[e].izSelected="Y"}Xe()})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["tags-father",n.value===l?"secondtarget":""])},[e.createElementVNode("image",{class:"tags-img",src:"Y"==t.izSelected?t.netPicFocus:t.netPic},null,8,["src"]),e.createElementVNode("view",{class:"tags-font",style:e.normalizeStyle("Y"==t.izSelected?{color:"rgb(54, 159, 239)"}:{})},e.toDisplayString(t.tagName),5)],2)],8,["onClick"])))),128))]),e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"30rpx","margin-left":"50rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 情绪标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(it.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{if("Y"==it.value[e].izSelected)it.value[e].izSelected="N";else{let t=0;if(it.value.forEach((e=>{"Y"==e.izSelected&&t++})),t>1)return void uni.showToast({title:"标签最多只能添加两个",icon:"none",duration:3e3});it.value[e].izSelected="Y"}Xe()})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["tags-father",r.value===l?"secondtarget":""])},[e.createElementVNode("image",{class:"tags-img",src:"Y"==t.izSelected?t.netPicFocus:t.netPic},null,8,["src"]),e.createElementVNode("view",{class:"tags-font",style:e.normalizeStyle("Y"==t.izSelected?{color:"rgb(54, 159, 239)"}:{})},e.toDisplayString(t.tagName),5)],2)],8,["onClick"])))),128))])],4),[[e.vShow,m.value]])])],2),e.createElementVNode("view",{class:"white-button",onClick:He},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/yulan.png"},null,8,["src"]),e.createTextVNode(" 预览 ")]),e.createElementVNode("view",{class:"white-button",onClick:be},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/fenxiang.png"},null,8,["src"]),e.createTextVNode(" 分享 ")]),e.createElementVNode("view",{class:"white-button",onClick:a[4]||(a[4]=e=>A(5))},[e.createElementVNode("image",{class:"white-img",style:{width:"45rpx",height:"45rpx"},src:"/static/index/newruler/watch.png"},null,8,["src"]),e.createTextVNode(" 监控 ")])])]),e.createElementVNode("view",{class:"doctorsay-container-view"},[e.createElementVNode("view",{class:"doctorsay-container-container"},[e.createElementVNode("view",{class:"super-card"},[e.createElementVNode("view",{class:"boom-father"},[e.createElementVNode("view",{class:"boom",style:e.normalizeStyle({transform:c.value})},[e.createElementVNode("view",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(at.value[0].children,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.withDirectives(e.createElementVNode("view",{class:"boom-son"},[e.createElementVNode("text",{class:"boom-text"},e.toDisplayString(t.tagName),1)],512),[[e.vShow,t.tagName]])])))),128))])],4)]),e.createElementVNode("view",{class:"super-card-container"},[e.createElementVNode("scroll-view",{style:{height:"1330rpx",width:"100%",border:"2rpx solid balck"},"scroll-with-animation":"","scroll-left":S.value,"scroll-x":"",onScroll:se,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",width:"4824rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(at.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":00"),1)])))),128))]),e.createElementVNode("view",{style:{display:"flex",height:"calc(100% - 330rpx)",position:"relative"}},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{style:{height:"100%",width:"6744rpx"},"scroll-top":B.value,"scroll-with-animation":"","scroll-y":!0,onScroll:re,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(at.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"super-card-time-und"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((a,i)=>(e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:i},[e.createElementVNode("view",{class:e.normalizeClass(Ke.value.index0===l&&Ke.value.index1===i?Ke.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([Ke.value.bordershow||Ze.value.index0!==l||Ze.value.index1!==i?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${l}_${i}`,onClick:t=>((t,l,a)=>{ae.value=!1,we.value.index0=l,we.value.index1=a,vt(),Y.value=!0,setTimeout((()=>{t.directiveName&&g.value&&(xe.value=a,uni.createSelectorQuery().selectAll(".super-card-time-card").boundingClientRect((t=>{t.forEach((async t=>{t.left>100&&t.left<1067&&t.top<670&&t.top>50&&t.dataset.index0==l&&t.dataset.index1==a&&(t.left>100&&t.left<500?(Ne.value=Math.floor(t.left)+528,Se.value[0]=!0):(Ne.value=Math.floor(t.left)-18,Se.value[0]=!1),t.top>300?(fe.value=Math.floor(t.top)+100,Se.value[1]=!0):(fe.value=Math.floor(t.top)+180,Se.value[1]=!1),await e.nextTick(),z.value=!0,Be.value[0]=l,Be.value[1]=a,I.value=!1,setTimeout((()=>{I.value=!0}),100))}))})).exec())}),400)})(a,l,i),"data-index0":l,"data-index1":i},[ke.value.index0===l&&ke.value.index1===i&&0==i?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-button-orange-spe",style:e.normalizeStyle({left:ke.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),ke.value.index0===l&&ke.value.index1===i&&i?(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-button-orange",style:e.normalizeStyle({left:ke.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},null,512),[[e.vShow,we.value.index0==l&&we.value.index1==i&&Y.value]]),e.createElementVNode("view",{class:e.normalizeClass(ue(a,l,i)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${ne(l,i).toFixed(2)}s`}])},[a.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column"}},[e.withDirectives(e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx",margin:"0 auto","margin-top":"20rpx"},src:a.netImmediateFile?a.netImmediateFile:"/static/logo.png"},null,8,["src"]),[[e.vShow,a.startTime]]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(a.startTime+"-"+a.endTime),1),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"50rpx"},src:$e})):e.createCommentVNode("",!0),1!=a.cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx"}},e.toDisplayString(a.cycleType),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.startTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-rel"},e.toDisplayString(mt(a.directiveName)[0]),1)):e.createCommentVNode("",!0),we.value.index0==l&&we.value.index1==i&&Y.value&&!a.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+w[i]),1)):e.createCommentVNode("",!0)],6)],14,["id","onClick","data-index0","data-index1"])])))),128))])])))),128))])],40,["scroll-top"])])],40,["scroll-left"])]),e.createElementVNode("view",{class:"right-cards"},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-left":"30rpx"}},[e.createElementVNode("view",{class:""}," 即时指令 "),e.createElementVNode("view",{style:{width:"30rpx",height:"6rpx","background-color":"black","margin-left":"40rpx","margin-top":"3rpx","border-radius":"20rpx"}})]),e.createElementVNode("scroll-view",{"scroll-x":"",class:"scroll-box","scroll-left":b.value},[e.createElementVNode("view",{class:"right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"right-box-item",onTouchstart:_e,onTouchmove:Me,onTouchend:Ue,style:e.normalizeStyle(t.target?{background:t.target,transition:"all 1.5s ease-in-out"}:{transition:"all 1.5s ease-in-out"})},[e.createElementVNode("view",{style:e.normalizeStyle({animationDelay:`-${.1*l}s`}),class:e.normalizeClass(Fe.value?"super-end-items-img-father-active":"super-end-items-img-father")},[e.createElementVNode("image",{class:"right-box-img",src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle({fontSize:(null==(a=t.directiveName)?void 0:a.trim().length)>6?"25rpx":"27rpx"})},e.toDisplayString(t.directiveName),5)],6),e.withDirectives(e.createElementVNode("view",{class:"super-end-items-father-close-father",onClick:e.withModifiers((e=>{var a;h.value.splice(l,1),a=t.id,Z({id:a}).then((e=>{e.success&&ot()}))}),["stop"])}," - ",8,["onClick"]),[[e.vShow,Fe.value]])],36)])})),128))])],8,["scroll-left"]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("view",{class:"middle-left-box"},[e.createElementVNode("view",{class:"first-contant"},[e.withDirectives(e.createElementVNode("view",{class:"time-father"},[e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month"},"周"),e.createElementVNode("view",{class:"time-button-week",onClick:a[5]||(a[5]=e=>{k.value=!1,ee.value=-1,W.value=""})},"月")],512),[[e.vShow,k.value]]),e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month-target",onClick:a[6]||(a[6]=e=>{k.value=!0,le.value=-1,te.value=""})},"周"),e.createElementVNode("view",{class:"time-button-week-target"},"月")],512),[[e.vShow,!k.value]]),e.createElementVNode("scroll-view",{"scroll-y":"",style:{width:"100%",height:"600rpx"},"show-scrollbar":!1,"scroll-top":x.value},[k.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(N,((t,l)=>e.createElementVNode("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-j.value<Da?(W.value=e,ee.value=t,Je(),j.value=0):(W.value=e,ee.value=t,j.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(ee.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"]))),64)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(f),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-j.value<Da?(te.value=e,le.value=t,Je(),j.value=0):(te.value=e,le.value=t,j.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(le.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"])))),128)),e.createElementVNode("view",{style:{height:"40rpx"}})],8,["scroll-top"])],512),[[e.vShow,E.value]]),e.withDirectives(e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":x.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(u=null==(s=D.value[ve.value])?void 0:s.children[pe.value])?void 0:u.children,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>function(e){const t=Date.now();he.value=e,t-j.value<Da?(he.value=e,Je(),j.value=0):(he.value=e,j.value=t)}(l)},[e.createElementVNode("view",{class:"right-box-item",style:e.normalizeStyle(he.value==l?{border:"2rpx solid rgb(229, 233, 249)",backgroundColor:"#fff"}:{border:"2rpx solid rgb(229, 233, 249)"})},[e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 周期 ",512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("view",{class:"title-time-button-font"}," 即时 ",512),[[e.vShow,3==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:$e},null,512),[[e.vShow,3==t.cycleTypeId]]),e.createElementVNode("image",{class:"right-box-img",src:he.value==l?t.netImmediateFileFocus:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"right-box-font",style:e.normalizeStyle([{marginTop:"2rpx",fontSize:(null==(a=t.title)?void 0:a.trim().length)>6?"20rpx":"25rpx"},he.value===l?{color:"rgb(54,159,239)"}:{}])},e.toDisplayString(t.title),5)],4)],8,["onClick"])})),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"]),[[e.vShow,!E.value]])]),e.createElementVNode("view",{class:"second-contant"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":V.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:e.normalizeClass(ge.value==l?"downList-box-target":"downList-box"),onClick:t=>(t=>{E.value=!1,ee.value=-1,le.value=-1,W.value="",te.value="",pe.value=t,ge.value=t,he.value=0,x.value=.01,e.nextTick((()=>{x.value=0}))})(l)},[e.createVNode(Pe,{width:"55rpx",height:"55rpx",links:t.url,playing:ge.value==l,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:"downList-box-text"},e.toDisplayString(t.title),1)],10,["onClick"])])))),128)),e.createElementVNode("view",{style:{height:"20rpx"}})],8,["scroll-top"])])]),e.createElementVNode("view",{class:"middle-right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>A(l)},[e.createElementVNode("view",{class:"doctorsay-container-card"},[e.createVNode(Pe,{width:"50rpx",height:"50rpx",links:t.url,playing:l===ve.value,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:e.normalizeClass(l===ve.value?"doctorsay-container-card-font-dark":"doctorsay-container-card-font")},e.toDisplayString(t.title),3)])],8,["onClick"])))),128))])],512),[[e.vShow,!pt.value]]),e.withDirectives(e.createElementVNode("view",{class:"middle-box"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(rt.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"zhiling-card",style:e.normalizeStyle(ye.value==l?{backgroundColor:"#fff"}:{}),key:l,onClick:e=>(e=>{const t=Date.now();ye.value=e,t-j.value<Da?(Je(),j.value=0):j.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:$e}),e.createElementVNode("view",{class:"zhiling-card-font"}," 指令包 "),e.createElementVNode("view",{class:""}," 包名:"+e.toDisplayString(t.packageName),1),e.createElementVNode("view",{class:"bag"},[e.createElementVNode("text",null," 包含: "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.directivesList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"bag-one",key:l},[a?(e.openBlock(),e.createElementBlock("text",{key:0},"、")):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.directiveName),1)])))),128))])],12,["onClick"])))),128))])],512),[[e.vShow,pt.value]]),e.createElementVNode("view",{class:"under-button"},[C.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"under-button-black"}," 不能重复添加相同的即时服务指令 ")):e.createCommentVNode("",!0),q.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"under-button-black"}," 请选择服务指令来进行操作 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"white-circle",onClick:O},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/movebutton${M.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:ie},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/deletebutton${ae.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:qe},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/notebutton${F.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:a[7]||(a[7]=e=>{g.value=!g.value,M.value=!1,ke.value.index0=-1,ke.value.index1=-1})},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/open${g.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("view",{class:e.normalizeClass(["white-circle-click-father",{anim:Oe.value}]),style:e.normalizeStyle({color:Oe.value?"#fff":""}),onClick:Re},[e.createElementVNode("view",{style:{"z-index":"999"}}," 确定 ")],6),e.withDirectives(e.createElementVNode("view",{class:"white-circle-click-father-spec",onClick:a[8]||(a[8]=e=>A(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:Le}),e.createElementVNode("view",{style:{"z-index":"999","font-size":"25rpx"}}," 监控 ")])],512),[[e.vShow,!pt.value]])])])])])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-overlay",onClick:a[11]||(a[11]=e=>{z.value=!1,ke.value.index0=999,xe.value=-1})},["N"===(null==(L=null==(p=at.value[Be.value[0]])?void 0:p.children[Be.value[1]])?void 0:L.izPackage)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay-content",style:e.normalizeStyle([{height:"390rpx"},{top:2*fe.value-350+"rpx",left:2*Ne.value-780+"rpx",opacity:I.value?1:0}]),"popup-overlay:class":"getjiao",onClick:a[9]||(a[9]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"popup-overlay-content-left"},[e.createElementVNode("image",{class:"popup-overlay-content-left-img",src:null==(P=null==(U=at.value[Be.value[0]])?void 0:U.children[Be.value[1]])?void 0:P.netImmediateFileFocus},null,8,["src"])]),e.createElementVNode("view",{class:"popup-overlay-content-right"},[e.createElementVNode("view",{class:"time-font"},e.toDisplayString(null==(Q=null==(J=at.value[Be.value[0]])?void 0:J.children[Be.value[1]])?void 0:Q.startTime)+" - "+e.toDisplayString(null==(X=null==(G=at.value[Be.value[0]])?void 0:G.children[Be.value[1]])?void 0:X.endTime),1),e.createElementVNode("view",{class:"time-text"},e.toDisplayString(null==(K=null==(H=at.value[Be.value[0]])?void 0:H.children[Be.value[1]])?void 0:K.directiveName),1)])],4)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["popup-overlay-content",$.value]),style:e.normalizeStyle({top:2*fe.value-350+"rpx",left:2*Ne.value-780+"rpx",opacity:I.value?1:0}),onClick:a[10]||(a[10]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"specia-onshow"},[e.createElementVNode("view",{class:"specia-title"},e.toDisplayString(null==(ce=null==(oe=at.value[Be.value[0]])?void 0:oe.children[Be.value[1]])?void 0:ce.startTime)+" - "+e.toDisplayString(null==(me=null==(de=at.value[Be.value[0]])?void 0:de.children[Be.value[1]])?void 0:me.endTime),1),(null==(De=null==(Ce=at.value[Be.value[0]])?void 0:Ce.children[Be.value[1]])?void 0:De.directivesList)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"specia-cards"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(Ie=null==(ze=at.value[Be.value[0]])?void 0:ze.children[Be.value[1]])?void 0:Ie.directivesList,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"232rpx",height:"150rpx"},key:l},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:t.netImmediateFile},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(t.serviceDuration+"分钟"),1),e.createElementVNode("image",{class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e}),e.createElementVNode("view",{class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(t.cycleType),1)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(mt(t.directiveName)[0]),1)])))),128))])):e.createCommentVNode("",!0)])],6))],512),[[e.vShow,z.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-say",onClick:a[13]||(a[13]=e=>F.value=!1)},[e.createElementVNode("view",{class:"popup-say-content",style:e.normalizeStyle([{padding:"30rpx 0"},{opacity:_.value?1:0}]),onClick:a[12]||(a[12]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"margin-top":"20rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 体型标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.slice(0,5),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{style:{"margin-top":"40rpx","margin-bottom":"20rpx","margin-left":"30rpx","font-size":"32rpx"}},[e.createElementVNode("view",null," 情绪标签 ")]),e.createElementVNode("view",{style:{display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.slice(5,12),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"tags-father"},[e.createElementVNode("image",{class:"tags-img",src:`/static/index/tagNames/${l+5}0.png`},null,8,["src"]),e.createElementVNode("view",{class:"tags-font"},e.toDisplayString(t),1)])])))),128))]),e.createElementVNode("view",{class:"popup-say-three"})],4)],512),[[e.vShow,F.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:a[15]||(a[15]=e=>Ve.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:Ee.value?1:0}),onClick:a[14]||(a[14]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"share-other"},[e.createElementVNode("view",{class:"share-title"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx"},src:je}),e.createElementVNode("view",{style:{"font-weight":"600","margin-left":"15rpx"}}," 护理单元 ")]),e.createElementVNode("view",{class:"share-others"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"45rpx"}}," 护理流程 "),e.createElementVNode("view",{style:{"margin-top":"30rpx"}},[e.createTextVNode(e.toDisplayString(uni.getStorageSync("nuName"))+" ",1),e.createElementVNode("text",{style:{color:"#1083F8"}},e.toDisplayString(uni.getStorageSync("NUall").elderInfo?uni.getStorageSync("NUall").elderInfo.name:""),1)]),e.createElementVNode("view",{class:"blue-button"}," 分享 ")])])],4)],512),[[e.vShow,Ve.value]]),ae.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["neuro-wrapper",gt.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:a[16]||(a[16]=e=>ae.value=!1)}),e.createElementVNode("view",{class:"neuro-box",onClick:a[19]||(a[19]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"delete-button-father"},[e.createElementVNode("view",{class:"button-white",onClick:a[17]||(a[17]=e=>ae.value=!1)},"取消"),e.createElementVNode("view",{class:"button",onClick:a[18]||(a[18]=e=>ie())},"确定")]),e.createElementVNode("view",{class:"title"},"确定要删除指令吗"),e.createElementVNode("view",{class:"title-time-border-yellow",style:{"font-size":"30rpx",overflow:"hidden",width:"240rpx",height:"170rpx"}},[e.createElementVNode("view",{class:"title-time",style:{"flex-direction":"column"}},[e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx",margin:"0 auto","margin-top":"10rpx"},src:at.value[we.value.index0].children[we.value.index1].netImmediateFile?at.value[we.value.index0].children[we.value.index1].netImmediateFile:"/static/logo.png"},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(at.value[we.value.index0].children[we.value.index1].startTime+"-"+at.value[we.value.index0].children[we.value.index1].endTime),1),1!=at.value[we.value.index0].children[we.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:$e})):e.createCommentVNode("",!0),1!=at.value[we.value.index0].children[we.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(at.value[we.value.index0].children[we.value.index1].cycleType),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(mt(at.value[we.value.index0].children[we.value.index1].directiveName)[0]),1)])])],2)):e.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-a4476a27"]]),Ia=s(e.defineComponent({__name:"index",setup(t){const a=e.ref([{name:"护理",url:"/static/shouye/sy/n0.png",urls:"/static/shouye/sy/n1.png",type:"kzgn_hljz"},{name:"医疗",url:"/static/shouye/sy/y0.png",urls:"/static/shouye/sy/y1.png",type:"kzgn_yljz"},{name:"后勤",url:"/static/shouye/sy/l0.png",urls:"/static/shouye/sy/l1.png",type:"kzgn_hqjz"},{name:"库房",url:"/static/shouye/sy/l0.png",urls:"/static/shouye/sy/l1.png",type:"kzgn_kfjz"}]),i=e.ref(0),o=e.ref(0),r=(e,t)=>{i.value=-1,o.value=-1,setTimeout((()=>{switch(t.type){case"sy":o.value=0,setTimeout((()=>{i.value=0}),100);break;case"kf_cg":o.value=1,setTimeout((()=>{i.value=1}),100);break;case"kf_jh":o.value=2,setTimeout((()=>{i.value=3}),100);break;case"kf_wj":o.value=3,setTimeout((()=>{i.value=3}),100);break;case"kf_ql":o.value=4,setTimeout((()=>{i.value=4}),100);break;case"kf_th":o.value=5,setTimeout((()=>{i.value=5}),100);break;case"kf_pd":o.value=6,setTimeout((()=>{i.value=6}),100);break;case"kzgn_hljz":o.value=7,setTimeout((()=>{i.value=7}),100),l("log","at pages/Warehouse/index/index.vue:112","护理矩阵");break;case"kzgn_yljz":o.value=7,setTimeout((()=>{i.value=7}),100),l("log","at pages/Warehouse/index/index.vue:119","医疗矩阵");break;case"kzgn_hqjz":o.value=9,setTimeout((()=>{i.value=9}),100),l("log","at pages/Warehouse/index/index.vue:126","后勤矩阵");break;case"kzgn_kfjz":o.value=10,setTimeout((()=>{i.value=10}),100),l("log","at pages/Warehouse/index/index.vue:133","库房");break;case"back":uni.navigateBack()}}),10)},c=e.ref([]),s=e.ref([]),u=()=>{let e=uni.getStorageSync("nuId");C({employessId:uni.getStorageSync("userInfo").employessId}).then((t=>{t.result.forEach((t=>{t.nuId==e&&(s.value=t.dataList)}))}));let t=uni.getStorageSync("nuName");T({pageNo:-1,nuName:t}).then((e=>{let t=e.result.records[0].permissionList;c.value=[{name:"首页",url:"/static/shouye/ck/h0.png",urls:"/static/shouye/ck/h1.png",type:"sy"},{name:"采购",url:"/static/shouye/ck/c0.png",urls:"/static/shouye/ck/c1.png",type:"kf_cg"},{name:"拣货",url:"/static/shouye/ck/j0.png",urls:"/static/shouye/ck/j1.png",type:"kf_jh"},{name:"完结",url:"/static/shouye/ck/w0.png",urls:"/static/shouye/ck/w1.png",type:"kf_wj"},{name:"请领出库",url:"/static/shouye/ck/q0.png",urls:"/static/shouye/ck/q1.png",type:"kf_ql"},{name:"退货入库",url:"/static/shouye/ck/t0.png",urls:"/static/shouye/ck/t1.png",type:"kf_th"},{name:"库存盘点",url:"/static/shouye/ck/p0.png",urls:"/static/shouye/ck/p1.png",type:"kf_pd"}];let l=[];t&&(t.forEach(((e,t)=>{s.value.find((t=>t.menuCode==e.menuCode))&&l.push(e)})),l.forEach((e=>{let t=a.value.find((t=>t.type==e.menuCode));t&&c.value.push(t)})));c.value.push({name:"返回",url:"/static/shouye/sy/f0.png",urls:"/static/shouye/sy/f1.png",type:"back"})}))},d=e.ref(),m=e.ref(),v=e.ref({});return n((()=>{v.value=uni.getStorageSync("userInfo"),1==i.value&&d.value.gwcsx(),6==i.value&&m.value.firstgetqueryCgdList()})),(t,l)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"flex"},[e.createElementVNode("view",{class:"left"},[e.createVNode(el,{list:c.value,onNavurl:r,userInfo:v.value},null,8,["list","userInfo"])]),e.createElementVNode("view",{class:"boxrt"},[0==o.value?(e.openBlock(),e.createBlock(Ca,{key:0,isShow:0==i.value,onSwip:u},null,8,["isShow"])):e.createCommentVNode("",!0),1==o.value?(e.openBlock(),e.createBlock(va,{key:1,isShow:1==i.value,ref_key:"materials",ref:d},null,8,["isShow"])):e.createCommentVNode("",!0),2==o.value?(e.openBlock(),e.createBlock(Zl,{key:2,isShow:2==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),3==o.value?(e.openBlock(),e.createBlock(Kl,{key:3,isShow:3==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),4==o.value?(e.openBlock(),e.createBlock(wa,{key:4,isShow:4==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),5==o.value?(e.openBlock(),e.createBlock(Tl,{key:5,isShow:5==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),6==o.value?(e.openBlock(),e.createBlock(fa,{key:6,isShow:6==i.value,ref_key:"inventorys",ref:m},null,8,["isShow"])):e.createCommentVNode("",!0),7==o.value&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(za,{key:7,isshow:7==i.value},null,8,["isshow"])):e.createCommentVNode("",!0),9==o.value&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Xe,{key:8,isshow:9==i.value},null,8,["isshow"])):e.createCommentVNode("",!0),10==o.value&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(lt,{key:9,isshow:10==i.value},null,8,["isshow"])):e.createCommentVNode("",!0)])])]))}}),[["__scopeId","data-v-9338dc43"]]);const Fa=s({data:()=>({}),methods:{}},[["render",function(t,l,a,i,n,o){return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{style:{width:"100vw",height:"100vh","line-height":"100vh","font-size":"4.5vw","text-align":"center"}}," 敬请期待 ")])}]]);__definePage("pages/login/login",E),__definePage("pages/login/index",P),__definePage("pages/recording/recorder",O),__definePage("pages/login/newanimationpage",ee),__definePage("pages/watch/index",ie),__definePage("pages/watch/full",ne),__definePage("pages/controlroom/index",ce),__definePage("pages/watch/settings/settings",se),__definePage("pages/watch/settings/input",U),__definePage("pages/watch/settings/saoma",L),__definePage("pages/watch/settings/leida",$),__definePage("pages/NursingNew/index",ll),__definePage("pages/procurement/retstock",Tl),__definePage("pages/timeMatrix/indexnew",zl),__definePage("pages/Warehouse/picking",Zl),__definePage("pages/Warehouse/finish",Kl),__definePage("pages/procurement/purchaseorder",aa),__definePage("pages/procurement/material",va),__definePage("pages/procurement/materialcar",ya),__definePage("pages/procurement/outbound",wa),__definePage("pages/procurement/inventory",fa),__definePage("pages/Warehouse/warehome",Ea),__definePage("pages/procurement/authorization",xa),__definePage("pages/procurement/addtory",Ta),__definePage("pages/NursingNew/component/doctorask/doctorask",jt),__definePage("pages/Warehouse/index/index",Ia),__definePage("pages/NursingNew/component/doctorask/medical/medical",Fa);const _a={onLaunch(){if("Android"===plus.os.name){const e=plus.android.runtimeMainActivity();plus.android.importClass("android.view.Window");const t=plus.android.importClass("android.view.View"),l=e.getWindow().getDecorView(),a=t.SYSTEM_UI_FLAG_HIDE_NAVIGATION|t.SYSTEM_UI_FLAG_FULLSCREEN|t.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;plus.android.invoke(l,"setSystemUiVisibility",a),l.setOnSystemUiVisibilityChangeListener(new plus.android.implements("OnSystemUiVisibilityChangeListener",{onSystemUiVisibilityChange:function(e){0==(e&t.SYSTEM_UI_FLAG_FULLSCREEN)&&plus.android.invoke(l,"setSystemUiVisibility",a)}}))}},onShow(){},onHide(){}},Ma={data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect(e,t){return new Promise((l=>{uni.createSelectorQuery().in(this)[t?"selectAll":"select"](e).boundingClientRect((e=>{t&&Array.isArray(e)&&e.length&&l(e),!t&&e&&l(e)})).exec()}))},getParentData(e=""){this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,e),this.parent&&(Object.keys(this.parentData).map((e=>{this.parentData[e]=this.parent[e]})),this.parentData.value=this.parent.modelValue)},preventEvent(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom(){uni.$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&uni.$u.test.array(this.parent.children)){const e=this.parent.children;e.map(((t,l)=>{t===this&&e.splice(l,1)}))}}};function $a(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;var t,l=(t=e,"[object Array]"===Object.prototype.toString.call(t)?[]:{});for(let a in e)e.hasOwnProperty(a)&&(l[a]="object"==typeof e[a]?$a(e[a]):e[a]);return l}function La(e={},t={}){if("object"!=typeof(e=$a(e))||"object"!=typeof t)return!1;for(var l in t)t.hasOwnProperty(l)&&(l in e?"object"!=typeof e[l]||"object"!=typeof t[l]?e[l]=t[l]:e[l].concat&&t[l].concat?e[l]=e[l].concat(t[l]):e[l]=La(e[l],t[l]):e[l]=t[l]);return e}function ja(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)}function Ua(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function Pa(e){return"[object Object]"===Object.prototype.toString.call(e)}function Aa(e){return"function"==typeof e}const qa={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},url:function(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)},date:function(e){return!!e&&(ja(e)&&(e=+e),!/Invalid|NaN/.test(new Date(e).toString()))},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:ja,digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,l=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?l.test(e):8===e.length&&t.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:Ua,isEmpty:Ua,jsonString:function(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(l){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:Pa,array:function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:Aa,promise:function(e){return Pa(e)&&Aa(e.then)&&Aa(e.catch)},video:function(e){const t=e.split("?")[0];return new RegExp(/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8|3gp)$/).test(t)},image:function(e){const t=e.split("?")[0];return new RegExp(/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)$/).test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"==typeof e}};const Oa=new class{setConfig(e){this.config=La(this.config,e)}request(e={}){if(this.interceptor.request&&"function"==typeof this.interceptor.request){let t=this.interceptor.request(e);if(!1===t)return new Promise((()=>{}));this.options=t}return e.dataType=e.dataType||this.config.dataType,e.responseType=e.responseType||this.config.responseType,e.url=e.url||"",e.params=e.params||{},e.header=Object.assign({},this.config.header,e.header),e.method=e.method||this.config.method,new Promise(((t,l)=>{e.complete=e=>{if(uni.hideLoading(),clearTimeout(this.config.timer),this.config.timer=null,this.config.originalData)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let a=this.interceptor.response(e);!1!==a?t(a):l(e)}else t(e);else if(200==e.statusCode)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let a=this.interceptor.response(e.data);!1!==a?t(a):l(e.data)}else t(e.data);else l(e)},e.url=qa.url(e.url)?e.url:this.config.baseUrl+(0==e.url.indexOf("/")?e.url:"/"+e.url),this.config.showLoading&&!this.config.timer&&(this.config.timer=setTimeout((()=>{uni.showLoading({title:this.config.loadingText,mask:this.config.loadingMask}),this.config.timer=null}),this.config.loadingTime)),uni.request(e)}))}constructor(){this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"请求中...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=(e,t={},l={})=>this.request({method:"GET",url:e,header:l,data:t}),this.post=(e,t={},l={})=>this.request({url:e,method:"POST",header:l,data:t}),this.put=(e,t={},l={})=>this.request({url:e,method:"PUT",header:l,data:t}),this.delete=(e,t={},l={})=>this.request({url:e,method:"DELETE",header:l,data:t})}};const Ya=(new class{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let l="";return/.*\/.*\?.*=.*/.test(e)?(l=uni.$u.queryParams(t,!1),e+"&"+l):(l=uni.$u.queryParams(t),e+l)}async route(e={},t={}){let l={};if("string"==typeof e?(l.url=this.mixinParam(e,t),l.type="navigateTo"):(l=uni.$u.deepClone(e,this.config),l.url=this.mixinParam(e.url,e.params)),t.intercept&&(this.config.intercept=t.intercept),l.params=t,l=uni.$u.deepMerge(this.config,l),"function"==typeof uni.$u.routeIntercept){await new Promise(((e,t)=>{uni.$u.routeIntercept(l,e)}))&&this.openPage(l)}else this.openPage(l)}openPage(e){const{url:t,type:l,delta:a,animationType:i,animationDuration:n}=e;"navigateTo"!=e.type&&"to"!=e.type||uni.navigateTo({url:t,animationType:i,animationDuration:n}),"redirectTo"!=e.type&&"redirect"!=e.type||uni.redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||uni.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||uni.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||uni.navigateBack({delta:a})}}).route;function Ra(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let l,a=new Date(e),i={"y+":a.getFullYear().toString(),"m+":(a.getMonth()+1).toString(),"d+":a.getDate().toString(),"h+":a.getHours().toString(),"M+":a.getMinutes().toString(),"s+":a.getSeconds().toString()};for(let n in i)l=new RegExp("("+n+")").exec(t),l&&(t=t.replace(l[1],1==l[1].length?i[n]:i[n].padStart(l[1].length,"0")));return t}function Wa(e,t=!0){if((e=e.toLowerCase())&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){let t="#";for(let l=1;l<4;l+=1)t+=e.slice(l,l+1).concat(e.slice(l,l+1));e=t}let l=[];for(let t=1;t<7;t+=2)l.push(parseInt("0x"+e.slice(t,t+2)));return t?`rgb(${l[0]},${l[1]},${l[2]})`:l}if(/^(rgb|RGB)/.test(e)){return e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map((e=>Number(e)))}return e}function Ja(e){let t=e;if(/^(rgb|RGB)/.test(t)){let e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),l="#";for(let t=0;t<e.length;t++){let a=Number(e[t]).toString(16);a=1==String(a).length?"0"+a:a,"0"===a&&(a+=a),l+=a}return 7!==l.length&&(l=t),l}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return t;{let e=t.replace(/#/,"").split("");if(6===e.length)return t;if(3===e.length){let t="#";for(let l=0;l<e.length;l+=1)t+=e[l]+e[l];return t}}}String.prototype.padStart||(String.prototype.padStart=function(e,t=" "){if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");let l=this;if(l.length>=e)return String(l);let a=e-l.length,i=Math.ceil(a/t.length);for(;i>>=1;)t+=t,1===i&&(t+=t);return t.slice(0,a)+l});const Qa={colorGradient:function(e="rgb(0, 0, 0)",t="rgb(255, 255, 255)",l=10){let a=Wa(e,!1),i=a[0],n=a[1],o=a[2],r=Wa(t,!1),c=(r[0]-i)/l,s=(r[1]-n)/l,u=(r[2]-o)/l,d=[];for(let m=0;m<l;m++){let e=Ja("rgb("+Math.round(c*m+i)+","+Math.round(s*m+n)+","+Math.round(u*m+o)+")");d.push(e)}return d},hexToRgb:Wa,rgbToHex:Ja,colorToRgba:function(e,t=.3){let l=(e=Ja(e)).toLowerCase();if(l&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(l)){if(4===l.length){var a="#";for(let e=1;e<4;e+=1)a+=l.slice(e,e+1).concat(l.slice(e,e+1));l=a}var i=[];for(let e=1;e<7;e+=2)i.push(parseInt("0x"+l.slice(e,e+2)));return"rgba("+i.join(",")+","+t+")"}return l}};let Ga=null;let Xa=[],Ha=[];function Za(e,t="both"){return e=String(e),"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}let Ka="1.10.1";const ei={v:Ka,version:Ka,type:["primary","success","info","error","warning"]};const ti={queryParams:function(e={},t=!0,l="brackets"){let a=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(l)&&(l="brackets");for(let n in e){let t=e[n];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(l){case"indices":for(let l=0;l<t.length;l++)i.push(n+"["+l+"]="+t[l]);break;case"brackets":default:t.forEach((e=>{i.push(n+"[]="+e)}));break;case"repeat":t.forEach((e=>{i.push(n+"="+e)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),i.push(n+"="+e)}else i.push(n+"="+t)}return i.length?a+i.join("&"):""},route:Ya,timeFormat:Ra,date:Ra,timeFrom:function(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let l=+new Date(Number(e)),a=(Number(new Date)-l)/1e3,i="";switch(!0){case a<300:i="刚刚";break;case a>=300&&a<3600:i=parseInt(a/60)+"分钟前";break;case a>=3600&&a<86400:i=parseInt(a/3600)+"小时前";break;case a>=86400&&a<2592e3:i=parseInt(a/86400)+"天前";break;default:i=!1===t?a>=2592e3&&a<31536e3?parseInt(a/2592e3)+"个月前":parseInt(a/31536e3)+"年前":Ra(l,t)}return i},colorGradient:Qa.colorGradient,colorToRgba:Qa.colorToRgba,guid:function(e=32,t=!0,l=null){let a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(l=l||a.length,e)for(let n=0;n<e;n++)i[n]=a[0|Math.random()*l];else{let e;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(let t=0;t<36;t++)i[t]||(e=0|16*Math.random(),i[t]=a[19==t?3&e|8:e])}return t?(i.shift(),"u"+i.join("")):i.join("")},color:{primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},sys:function(){return uni.getSystemInfoSync()},os:function(){return uni.getSystemInfoSync().platform},type2icon:function(e="success",t=!1){-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");let l="";switch(e){case"primary":case"info":l="info-circle";break;case"error":l="close-circle";break;case"warning":l="error-circle";break;default:l="checkmark-circle"}return t&&(l+="-fill"),l},randomArray:function(e=[]){return e.sort((()=>Math.random()-.5))},wranning:function(e){},get:Oa.get,post:Oa.post,put:Oa.put,delete:Oa.delete,hexToRgb:Qa.hexToRgb,rgbToHex:Qa.rgbToHex,test:qa,random:function(e,t){if(e>=0&&t>0&&t>=e){let l=t-e+1;return Math.floor(Math.random()*l+e)}return 0},deepClone:$a,deepMerge:La,getParent:function(e,t){let l=this.$parent;for(;l;){if(l.$options.name===e){let e={};if(Array.isArray(t))t.map((t=>{e[t]=l[t]?l[t]:""}));else for(let a in t)Array.isArray(t[a])?t[a].length?e[a]=t[a]:e[a]=l[a]:t[a].constructor===Object?Object.keys(t[a]).length?e[a]=t[a]:e[a]=l[a]:e[a]=t[a]||!1===t[a]?t[a]:l[a];return e}l=l.$parent}return{}},$parent:function(e){let t=this.$parent;for(;t;){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1},addUnit:function(e="auto",t="rpx"){return e=String(e),qa.number(e)?`${e}${t}`:e},trim:function(e,t="both"){return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e},type:["primary","success","error","warning","info"],http:Oa,toast:function(e,t=1500){uni.showToast({title:e,icon:"none",duration:t})},config:ei,zIndex:{toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965},debounce:function(e,t=500,l=!1){if(null!==Ga&&clearTimeout(Ga),l){var a=!Ga;Ga=setTimeout((function(){Ga=null}),t),a&&"function"==typeof e&&e()}else Ga=setTimeout((function(){"function"==typeof e&&e()}),t)},throttle:function(e,t=500,l=!0,a="default"){Xa[a]||(Xa[a]=null),l?Ha[a]||(Ha[a]=!0,"function"==typeof e&&e(),Xa[a]=setTimeout((()=>{Ha[a]=!1}),t)):Ha[a]||(Ha[a]=!0,Xa[a]=setTimeout((()=>{Ha[a]=!1,"function"==typeof e&&e()}),t))},addStyle:function(e,t="object"){if(qa.empty(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=Za(e)).split(";"),l={};for(let e=0;e<t.length;e++)if(t[e]){const a=t[e].split(":");l[Za(a[0])]=Za(a[1])}return l}let l="";for(const a in e){l+=`${a.replace(/([A-Z])/g,"-$1").toLowerCase()}:${e[a]};`}return Za(l)}};uni.$u=ti;const li={install:e=>{e.mixin(Ma),e.config.globalProperties.$u=ti}},ai={__name:"donghua",props:{links:{type:Array,default:()=>[]},width:{type:String,default:"65rpx"},height:{type:String,default:"65rpx"},objectFit:{type:String,default:"aspectFill"},defaultImage:{type:String,default:""},interval:{type:Number,default:80},playing:{type:Boolean,default:!1},showButton:{type:Boolean,default:!1},loop:{type:Boolean,default:!1}},emits:["update:playing"],setup(t,{emit:l}){const a=t,i=e.ref(0),n=e.ref(!1),o=e.ref(!1);let r=null;const c=()=>{n.value=!1,clearInterval(r)};return e.watch((()=>a.playing),(e=>{i.value=0,e?n.value||(n.value=!0,r=setInterval((()=>{a.loop?(i.value=(i.value+1)%a.links.length,o.value=!1):i.value<a.links.length-1?(i.value++,o.value=!1):c()}),a.interval)):(c(),setTimeout((()=>i.value=0),50))})),e.watch((()=>a.links),(()=>{i.value=0,o.value=!1,n.value&&c()}),{deep:!0}),e.onUnmounted((()=>{c()})),(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("image",{src:o.value?t.defaultImage:t.links[i.value],style:e.normalizeStyle({width:t.width,height:t.height}),mode:t.objectFit,onError:a[0]||(a[0]=e=>o.value=!0),onLoad:a[1]||(a[1]=e=>o.value=!1)},null,44,["src","mode"]),t.showButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[2]||(a[2]=e=>l.$emit("update:playing",!t.playing))},e.toDisplayString(t.playing?"停止播放":"开始播放"),1)):e.createCommentVNode("",!0)]))}},ii=s({__name:"errorshow",props:{show:{type:Boolean,default:!1},font:{type:String,default:""},icons:{type:Boolean,default:!0},style:{}},emits:["close"],setup(t,{emit:l}){const a=l;function i(){a("close")}return(l,a)=>(e.openBlock(),e.createElementBlock("view",null,[t.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:"addall",style:e.normalizeStyle(t.style)},[t.icons?(e.openBlock(),e.createElementBlock("image",{key:0,class:"addallimge",src:"/static/error.png",mode:"aspectFill"})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"addallfont"},e.toDisplayString(t.font),1),e.createElementVNode("view",{class:"qd",onClick:i},"确定")],4)):e.createCommentVNode("",!0),t.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",onClick:i})):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-664224aa"]]),ni=s(e.defineComponent({__name:"severcard",emits:["start","end"],setup(t,{expose:l,emit:a}){const i=e.ref({}),n=e.ref(!0),o=e.ref(0);e.ref(""),e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/");const r=e.reactive({pageNo:1,pageSize:10,employeeId:uni.getStorageSync("userInfo").employessId,nuId:uni.getStorageSync("nuId"),workType:2});e.onMounted((()=>{c()}));const c=()=>{var e;(e=r,g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderList`,method:"get",data:e})).then((e=>{e.result.records.length>0?s(0,e.result.records[0]):i.value={}}))},s=(e,t)=>{var l;(l={mainId:t.id},g({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderInfoList`,method:"get",data:l})).then((e=>{e.result.length>0?(i.value=e.result[0],n.value="Y"==i.value.izStart):i.value={}}))};return l({firstgetqueryCgdList:c}),(t,l)=>{var a,r,u,d,m;const v=e.resolveComponent("tanchuang");return e.openBlock(),e.createElementBlock("view",null,[i.value.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"fixed-card",style:e.normalizeStyle(n.value?{}:{right:"-34vw"})},[e.createElementVNode("view",{class:"fixed-card-left"},[e.createElementVNode("image",{class:"card-left-img",style:e.normalizeStyle((null==(a=i.value)?void 0:a.previewFile)?"":"width: 450rpx"),src:(null==(r=i.value)?void 0:r.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(u=i.value)?void 0:u.previewFile):"/static/index/newindex/wendu/2.png",mode:"aspectFill"},null,12,["src"]),e.createElementVNode("view",{class:""},e.toDisplayString(i.value.directiveName),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"big-time"},e.toDisplayString(null==(d=i.value.startTime)?void 0:d.slice(11,16))+" - "+e.toDisplayString(null==(m=i.value.endTime)?void 0:m.slice(11,16)),1),e.createElementVNode("view",{class:"icon-people"},[e.createElementVNode("image",{class:"people-img",src:il}),1==i.value.optType?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"white-space":"nowrap"}},"单人执行")):e.createCommentVNode("",!0),2==i.value.optType?(e.openBlock(),e.createElementBlock("text",{key:1,style:{"white-space":"nowrap"}},"协助执行")):e.createCommentVNode("",!0),e.createElementVNode("image",{style:{"margin-left":"1vw"},class:"people-img",src:nl}),1==i.value.optType?(e.openBlock(),e.createElementBlock("text",{key:2},e.toDisplayString(i.value.employeeName),1)):e.createCommentVNode("",!0),2==i.value.optType?(e.openBlock(),e.createElementBlock("text",{key:3},e.toDisplayString(i.value.optNames),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"icon-button"},[e.createElementVNode("view",{class:e.normalizeClass(["","N"==i.value.izStart?"button-right":"button-left"]),onClick:l[0]||(l[0]=e=>{"N"==i.value.izStart&&Be({id:i.value.id}).then((e=>{e.success?(i.value.izStart="Y",s(0,{id:i.value.mainId})):uni.showToast({icon:"none",title:e.message})}))})}," 开始服务 ",2),e.createElementVNode("view",{class:e.normalizeClass("N"==i.value.izFinish&&"Y"==i.value.izStart?"button-right":"button-left"),onClick:l[1]||(l[1]=e=>{"Y"==i.value.izStart&&"N"==i.value.izFinish&&(o.value=3)})}," 结束服务 ",2)])]),e.createElementVNode("view",{class:"left-open",onClick:l[2]||(l[2]=e=>n.value=!n.value)},[e.createElementVNode("image",{style:e.normalizeStyle(n.value?{}:{transform:"rotate(180deg)"}),class:"open-img",src:ol},null,4)])],4)):e.createCommentVNode("",!0),e.createVNode(v,{show:o.value>0,font:"是否结束服务指令?",onBack:l[3]||(l[3]=e=>o.value=0),onRight:l[4]||(l[4]=e=>{Te({id:i.value.id}).then((e=>{e.success&&(o.value=0,c())}))})},null,8,["show"])])}}}),[["__scopeId","data-v-bf90a927"]]);const{app:oi,Vuex:ri,Pinia:ci}=function(){const t=e.createVueApp(_a);return t.use(li),t.component("donghua",ai),t.component("tanchuang",El),t.component("errorshow",ii),t.component("severcard",ni),{app:t}}();uni.Vuex=ri,uni.Pinia=ci,oi.provide("__globalStyles",__uniConfig.styles),oi._component.mpType="app",oi._component.render=()=>{},oi.mount("#app")}(Vue);
|