hldy_app_mini/unpackage/resources/__UNI__FB2D473/www/app-service.js

2 lines
1014 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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("   欢迎使用NU护理单元为您提供的NU护理单元平台。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"请您务必审慎并完整阅读以下内容特别是免除或者限制NU护理单元责任的条款、对用户权利进行限制的条款、规定本协议的适用法律及有权解决争议的司法管辖区的条款。限制、免责条款或者其他涉及您重大权益的条款可能以加粗等形式提示您重点注意。请注意目前在您的地区可能无法使用NU护理单元平台上的某些服务和功能特别是涉及身份认证和支付的功能。给您带来的不便我们深表歉意并正在努力尽快如可能提供这些服务和功能。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   如您未满18周岁或未满您居住所在地要求可使用NU护理单元平台的年龄请不要使用NU护理单元平台。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   除非您已充分阅读并接受本协议所有条款否则您无权使用NU护理单元平台。如您不同意本协议或其中任何条款您应立即停止使用NU护理单元平台。您点击“同意”或者您使用NU护理单元平台或者以其他任何明示或者默示方式表示接受本协议的均视为您已阅读并同意本协议。本协议即在您与NU护理单元之间产生法律效力成为对双方均具有约束力的法律文件。 "),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"}},"   NU护理单元平台指吉林省捌零信创有限公司以下简称“NU护理单元”或“我们”合法拥有并运营的名称为“NU护理单元” 和/或小程序、客户端应用程序以及我们不时提供的其他形式。“我们的”应相应地进行理解。为免疑义我们亦保留调整NU护理单元平台名称的所有权利。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   NU护理单元账号或账号指用户在使用NU护理单元平台时可能需要注册的账号。我们为用户提供NU护理单元平台注册通道您可通过移动电话号码或我们允许的其他方式注册NU护理单元账号。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   用户指NU护理单元平台的使用人在本协议中更多地称为“您”。“您的”应相应地进行理解。 "),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("   本协议是您与NU护理单元之间关于您下载、安装、使用NU护理单元平台所订立的协议"),e.createElementVNode("text",{style:{"font-weight":"600"}},"包括本协议正文、《NU护理单元用户隐私政策》《NU护理单元未成年人个人信息保护规则》《NU护理单元社区公约》《NU护理单元社区规范》及NU护理单元已经发布的或将来可能发布/更新的并采取合理途径通知的各类规则、规范、通知等。"),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"}},"   NU护理单元平台为您提供注册及登录通道您可按照页面提示填写信息、阅读并同意本协议在完成全部注册登录程序后成为NU护理单元平台用户。您还需要根据法律法规的规定如有填写您真实的身份信息否则您可能无法使用NU护理单元平台服务或在使用NU护理单元平台服务过程中受到限制。您了解并同意您有义务保持您向我们提供的信息的真实性、有效性、准确性及完整性。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode("   您注册获得的账号、设置的密码是您登录并以用户身份使用NU护理单元平台的凭证您应当谨慎使用、妥善保管。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您须对账号进行的所有活动和行为负责。若因您保管不善导致的盗号、密码丢失、账号被非法使用的责任将由您自行承担。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   您不得恶意注册NU护理单元账号包括但不限于通过频繁注册、批量注册、使用他人身份注册或其他不以正常使用NU护理单元平台为目的的账号注册行为。 "),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"}},"   您在注册或使用NU护理单元平台时提供的信息资料包括但不限于昵称、头像及简介须遵守法律法规、社会道德风尚和信息真实性等原则不得出现不良信息不得冒用他人姓名、名称、字号、头像或使用其他足以引起混淆的方式设置账号不得侵害第三方的合法权益。 "),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"}},"   部分第三方网站或者服务可以用NU护理单元账号作为其登录途径之一。您知晓除非NU护理单元特别说明外这些网站或者服务并非NU护理单元运营您应自行判断此类第三方网站或者服务的安全性和可用性并自行承担相关风险和责任。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode("   由于您的账号关联您的个人信息及NU护理单元平台商业信息您的账号仅限您本人使用。未经NU护理单元同意授权第三方使用您账号或获取您账号项下信息的行为无效。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"如NU护理单元判断您账号的使用可能违反法律法规或本协议、危及您的账号安全及/或NU护理单元平台信息安全的NU护理单元可拒绝提供相应服务采取包括但不限于暂停、封禁、注销、收回您的账号或终止本协议的措施由此带来的包括但不限于您账号中的内容以及虚拟物品的清空等损失由您自行承担。")]),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"}},"   您可以依照NU护理单元平台的流程申请注销您的NU护理单元账号但您仍应对您在注销账号前和使用NU护理单元平台期间的行为承担相应责任。注销成功后除非法律法规另有规定NU护理单元不会为您提供账号记录、内容或虚拟财产恢复等服务请您谨慎操作。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   您理解并同意为了充分利用账号资源如您在注册后未及时进行初次登录使用或连续超过六个月未登录账号并使用且不存在未到期或未履行完毕的持续性NU护理单元平台服务的NU护理单元有权收回您的账号。如您的账号被收回您无法通过您此前持有被收回的账号登录并使用NU护理单元平台您账号下保存的内容、权限、个性化设置和使用记录等信息也将无法恢复。 "),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"}},"   若您在注册或使用NU护理单元账号时存在任何违反法律法规或不符合本协议约定的行为NU护理单元有权不予注册已经注册的NU护理单元有权视情况要求用户限期改正或采取短期封禁、永久封禁、注销账号等措施。 "),e.createElementVNode("view",{style:{"font-size":"30rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}}," 三、NU护理单元平台服务 "),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("   您可通过NU护理单元平台浏览订阅各类信息和内容。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您对NU护理单元平台中的内容须自行加以判断并自行承担因依赖或使用该等内容而引起的风险。在适用法律允许的最大限度内您应对基于该等内容进行的所有支付或交易或因前述内容而造成的任何损害或损失由您自行承担。")]),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("   在遵守本协议的前提下您可使用NU护理单元平台发表属于您原创或您有权发表的观点看法、文字、信息、图片、音视频等内容。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您在NU护理单元平台发布的任何内容均不代表NU护理单元的观点、立场或政策您自行对您所发布内容承担全部责任。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   您通过NU护理单元平台发布内容时必须遵守全部法律法规不得利用NU护理单元平台制作、复制、发布、传播、储存任何违反法律法规、危害中国国家安全、可能对用户财产安全或信息安全造成损失的信息、营销信息、低俗不当信息或其他我们认为不应发布的信息不良信息以及不实信息等内容。 "),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("   您可使用NU护理单元平台进行商品与服务的交易"),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("   您的交易行为应当基于真实的消费需求不得存在对商品或服务实施恶意购买、恶意维权等扰乱NU护理单元平台正常交易秩序的行为。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"基于维护NU护理单元平台交易秩序及交易安全的需要NU护理单元发现上述情形时可主动执行关闭相关交易订单等操作。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   如您的交易相对方存在利用NU护理单元平台系统漏洞、规则漏洞不正当获取NU护理单元平台补贴等任何利益的行为基于维护NU护理单元平台交易秩序、交易安全及NU护理单元合法权益的需要NU护理单元发现上述情形时可主动执行关闭相关交易订单等操作。 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   本协议终止后对于您在本协议存续期间产生的交易订单NU护理单元可通知交易相对方并有权自主决定或者根据交易相对方的意愿决定是否关闭未完成的交易订单如NU护理单元未关闭交易订单则您应当就该等交易订单继续履行本协议及交易订单的约定并承担因此产生的法律责任及损失。 "),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"}},"   您可对NU护理单元平台的信息内容进行分享、转发但未经NU护理单元书面许可您不得复制、读取、采用、统计NU护理单元平台的信息内容及相关数据或者进行任何形式的销售和商业使用或者向第三方泄露、提供或允许第三方为任何方式的使用。 "),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("   您可通过NU护理单元平台参与NU护理单元不定期组织的各类线上、线下互动活动但您"),e.createElementVNode("text",{style:{"font-weight":"600"}},"不得采取任何不正当或作弊的违规手段参与活动否则NU护理单元有权限制或取消您参与活动的资格并有权取消、追讨您已获得、领取的奖励并保留追究您法律责任的权利。")]),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("   NU护理单元为向您提供的NU护理单元平台服务付出了大量的成本除NU护理单元平台明示的收费业务外NU护理单元向您提供的NU护理单元平台服务是免费的。"),e.createElementVNode("text",{style:{"font-weight":"600"}},"如未来NU护理单元向您收取合理费用NU护理单元会采取合理方式并以合理的期限提前通知您确保您有充分选择的权利。")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   在NU护理单元降低收费服务的收费标准或者将收费服务改为免费服务提供时NU护理单元保留不对原付费用户提供退费或者费用调整之权利。 "),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("NU护理单元平台所提供的内容包括但不限于视频、图文、文字表述及其组合、界面设计、版面框架、图标、商标等均由NU护理单元所有或授权使用受中华人民共和国著作权法、商标法、专利法、反不正当竞争法及国际条约以及其他国家或司法管辖区的知识产权法律法规的保护。未经NU护理单元书面允许用户不得为任何目的擅自使用、复制、再造这些内容、或创造与内容有关的派生产品。我们保留本条款中未明确授予您的所有权利。 ")]),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"}},"   对NU护理单元平台或NU护理单元平台服务进行反向工程、反向汇编、反向编译或者以其他方式尝试发现NU护理单元平台的源代码 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   以任何方式包括但不限于盗链、冗余盗取、非法抓取、模拟下载、深度链接、假冒注册等直接或间接盗取NU护理单元平台的视频、图文、用户信息等信息内容 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   通过非NU护理单元开发、授权、许可的第三方软件、插件、外挂、系统登录或使用NU护理单元平台或对NU护理单元平台的正常运行进行干扰、破坏、修改或施加其他影响 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   利用或针对NU护理单元平台进行任何危害我们或任何第三方计算机网络安全的行为或暴露我们或任何第三方计算机网络安全弱点的行为包括但不限于非法侵入网络干扰网络正常功能窃取网络数据等危害网络安全为上述行为提供程序工具或其他支持与帮助干涉破坏NU护理单元平台系统软件或网站的正常运行故意传播恶意程序或病毒和其他破坏干扰正常网络信息服务的行为 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   其他以任何不合法的方式为任何不合法的目的或与NU护理单元为此制定的其他规范和标准不一致的方式使用NU护理单元平台或NU护理单元平台服务 "),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"}},"   您在NU护理单元平台发布上传的内容包括但不限于文字图片视频音频等应有合法来源相关内容为您所有或您已获得必要的授权 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   除非有相反证明您理解并同意为使用户内容得到更好的分享及推广提高其传播价值及影响力您授予NU护理单元免费的不可撤销的非排他的全球无地域限制的许可使用包括存储使用传播复制修订改编汇编出版展示翻译表演用户内容或制作派生作品以已知或日后开发的形式媒体或技术将内容纳入其它作品再许可第三方按照前述方式使用的权利以及以自身名义或委托专业第三方对侵犯您上传发布的享有知识产权的内容进行取证发起投诉或提起诉讼的权利 "),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("   我们尊重并保护您及他人的知识产权名誉权姓名权隐私权等合法权益您保证在NU护理单元平台上传的文字图片视频音频链接等不侵犯任何第三方的知识产权名誉权姓名权隐私权等合法权益否则"),e.createElementVNode("text",{style:{"font-weight":"600"}},"NU护理单元有权在收到权利方或者相关方通知的情况下移除该涉嫌侵权内容")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   您认为NU护理单元平台上的内容侵犯您的合法权益应当向我们发送侵权通知具体通知方式和要求按侵权投诉指引执行我们将在收到有效通知后进行审核对可以初步证明构成侵权的内容采取必要措施对无法认定为侵权的内容您也将收到相应告知如果您仍然认为侵权事实存在新的侵权通知中应当补充证明侵权的证据 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   在适用法律允许的最大限度内NU护理单元储存在其服务器上的数据是用户使用NU护理单元平台和NU护理单元平台服务的唯一有效证据 "),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"}},"   如您违反本协议约定NU护理单元有权作出独立判断立即暂停或终止向您提供部分或全部NU护理单元平台服务包括采取禁言屏蔽信息删除发布内容封禁账号注销账号等措施您应对与该等措施相关的任何损失和损害包括但不限于您账号的内容虚拟财产和权限清空无法正常使用账号及相关NU护理单元平台服务或任何其他后果承担全部责任和义务 "),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"}},"   您承担法律责任的形式包括但不限于对受到侵害者充分赔偿损失赔礼道歉补救负面影响返还财产等如您的行为给NU护理单元造成损失的您应承担全部赔偿责任包括行政处罚或损害赔偿款等直接损失以及商誉损失和解款律师费诉讼费等间接损失 "),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"}},"   您充分了解任何向NU护理单元的雇员或顾问等提供实物现金现金等价物劳务旅游等价值明显超出正常商务洽谈范畴的利益均视为商业贿赂行为发生前述情形的NU护理单元可立即终止与您的所有合作并追究您的法律责任 "),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("   您因违约导致NU护理单元终止本协议时出于维护NU护理单元平台秩序的目的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"NU护理单元可终止与您在其他协议如有项下的合作如您违反任何NU护理单元与您订立的其他协议NU护理单元亦有权终止本协议除前述协议终止外NU护理单元亦可追究您在本协议或其他协议下的违约责任")]),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"}},"NU护理单元平台"),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"}},"   尽管本协议另有规定如果我们怀疑您违反了本协议我们将遵循以下步骤首先我们可能会进行调查在调查期间我们可能会暂停您对NU护理单元平台的访问并根据涉嫌违规行为的严重程度在适用法律允许的范围内根据任何法律义务合理客观地采取行动在下列情况下我们可能决定暂时中止或永久终止您对NU护理单元平台的访问(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"}},"   除适用法律另有明确规定外在任何情况下我们均不对任何间接性后果性惩罚性偶然性特殊性或刑罚性的损害承担责任该等损害包括但不限于您因使用NU护理单元平台或NU护理单元平台服务而遭受的利润损失除适用法律另有明确规定外我们对您承担的全部责任无论因何原因或何种行为方式始终不超过您因使用NU护理单元平台或NU护理单元平台服务期间而支付给我们的费用如有 "),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"}},"   无陈述或保证NU护理单元平台和NU护理单元平台服务按现状可用提供且您风险自担在法律允许的最大范围内我们明确不作对NU护理单元平台和NU护理单元平台服务的任何及所有明示或默示的陈述和保证包括对适销性的默示保证针对特定用途的适用性或非侵权性我们不保证NU护理单元平台和NU护理单元平台服务能够满足您的要求也不保证NU护理单元平台和NU护理单元平台服务的运行不会中断或没有错误与NU护理单元平台和NU护理单元平台服务相关的信息内容和服务可能包含漏洞错误问题或其他限制在法律允许的最大范围内我们我们的关联公司我们或其各自的董事高级职员雇员代理服务提供商和许可方统称 NU护理单元方对您使用NU护理单元平台和NU护理单元平台服务不承担任何责任 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   责任限制在法律允许的最大范围内NU护理单元方不对任何因本协议NU护理单元平台或NU护理单元平台服务引起的或与之相关的任何间接的附带的结果性的特殊的法定的约定的惩罚性的或其他类似的损害赔偿或任何超出实际损害的损害赔偿包括收入损失利润损失数据丢失业务中断或其他无形损失无论此类损失如何定性承担责任无论是否基于合同侵权行为或任何其他法律理论也无论各方是否已被告知此类损失的可能性 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode("   "),e.createElementVNode("text",{style:{"font-weight":"600"}},"访问由我们自行决定"),e.createTextVNode("在法律允许的最大范围内我们可随时自行决定不经另行通知限制暂停修改或终止您对NU护理单元平台或NU护理单元平台服务的访问包括在您未能遵守或我们怀疑您未能遵守或即将未能遵守本协议的任何规定或实际或涉嫌非法或不当情况下任何此类终止或暂停将不影响我们根据适用法律可能享有的任何其他权利 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode("   "),e.createElementVNode("text",{style:{"font-weight":"600"}},"辩护和赔偿"),e.createTextVNode("对于因您使用NU护理单元平台和NU护理单元平台服务或您违反本协议而导致或引起的任何第三方主张的任何索赔要求指控调查诉讼程序或其他争议您同意为NU护理单元方辩护并且您同意赔偿NU护理单元方因任何此类争议而产生的任何损害责任估定损失成本和其他费用包括合理的律师费和法律费用并使其免受损害我们将及时通知您任何此类争议并将向您提供合理协助费用由您承担以就任何此类争议进行抗辩但未提供此类通知并不免除您在本协议项下的任何义务除非您因未被提供此类通知而受到重大损害 ")]),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("   您在使用NU护理单元平台某一特定服务时该服务可能会另有单独的协议或规则您在使用该项服务前请阅读并同意相关的单独协议或规则"),e.createElementVNode("text",{style:{"font-weight":"600"}},"您在NU护理单元平台使用第三方提供的产品或服务时除遵守本协议及其他相关规则外还可能需要您仔细阅读同意并遵守第三方的协议相关规则如因第三方产品或服务产生的争议损失或损害需由您自行与第三方依据相关协议解决")]),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"}},"   NU护理单元始终在不断变更和改进NU护理单元平台服务我们会尽最大努力向您提供服务确保服务的连贯性和安全性基于此我们可能会对NU护理单元平台进行更新您应将软件更新到最新版本否则我们不保证您可正常使用NU护理单元平台 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode("   您理解并同意"),e.createElementVNode("text",{style:{"font-weight":"600"}},"NU护理单元根据自身商业决策政府行为不可抗力等原因可能会选择中止中断及终止NU护理单元平台的部分或全部服务"),e.createTextVNode("如有此等情形发生我们会采取合理的方式并以合理的期限提前通知您除法律法规另有规定外"),e.createElementVNode("text",{style:{"font-weight":"600"}},"我们不承担由此对您造成的损失")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   在NU护理单元发生合并分立收购资产转让时NU护理单元可将本协议下部分或全部NU护理单元平台服务及相应的权利义务转交由第三方运营或履行具体受让主体以NU护理单元通知为准 "),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"}},"我们有权在必要时修改本协议内容并将通过合理的方式包括但不限于NU护理单元平台公告系统消息站内信手机短信电子邮件或其他类似方式及合理的期限提前通知您该等通知于发送之日视为已送达您"),e.createTextVNode("您可以通过NU护理单元平台相关页面查阅最新版本的协议内容 ")]),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"}},"本协议变更生效后如您继续使用NU护理单元平台或NU护理单元平台服务即视为您已接受修改后的协议如您不接受修改后的协议应当停止使用NU护理单元平台或NU护理单元平台服务")]),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"}},"   您注销您的NU护理单元账号或NU护理单元通知您终止为您提供NU护理单元平台服务包括但不限于封禁账号注销账号或其他类似措施本协议将同时终止NU护理单元将不再另行通知您终止本协议 "),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 若您与NU护理单元之间发生任何纠纷或争议由NU护理单元与您协商解决"),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 如您对本协议有任何意见或建议您可向NU护理单元平台service@blxinchuang.com反馈我们会给予您必要的帮助 ")])])}],["__scopeId","data-v-54d60f3e"]]);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-size":"28rpx","margin-bottom":"20rpx"}},"   为了更好地保障您的权益我们于近日更新了NU护理单元隐私信息保护政策 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx"}},"   请您在使用/继续使用NU护理单元产品/或服务前仔细阅读充分理解全文并在同意全部内容后使用/继续使用 "),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. NU护理单元/或服务指由吉林省捌零信创科技有限公司及其关联公司以下称为NU护理单元或者我们运营并由吉林省捌零信创科技有限公司开发及维护的产品和服务以下亦称我们的产品/或服务我们非常重视您的隐私保护和个人信息保护鉴于此我们制定本NU护理单元隐私信息保护政策以下称为本政策与您确认关于您在使用我们的产品/或服务期间NU护理单元收集存储使用披露和保护您的个人信息的相关事宜如您对本政策内容有任何疑问意见或建议您可通过我们提供的各种联系方式与我们联系 "),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. 本政策为NU护理单元统一适用的一般性隐私政策条款适用于NU护理单元提供的所有产品和服务当我们及关联公司就其向您提供的特定产品和/或服务单独设立隐私政策的则优先适用该产品和/或服务的隐私政策该产品和/或服务的隐私政策未涵盖的内容以本政策内容为准该产品和/或服务的隐私政策与本政策存在冲突的以该产品和/或服务的隐私政策为准 "),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. NU护理单元"),e.createTextVNode("是指NU护理单元或其关联公司发布和/或运营的包括但不限于NU护理单元相关的网络平台 ")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},[e.createTextVNode("   "),e.createElementVNode("text",{style:{"font-weight":"600"}},"10. NU护理单元产品和/或服务"),e.createTextVNode("指我们基于互联网以包含NU护理单元网站客户端含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("包括在所有NU护理单元网站客户端内已经发布及后续发布的全部规则用户服务协议解读公告其他内容以及各平台在频道活动页面帮助中心发布的各类规则实施细则产品说明公告及各形式的平台规范 ")]),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"}},"手机号码短信验证码信息或NU护理单元登录账号及密码信息"),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 账号权益基于NU护理单元统一账号体系和便于您在我们的产品和/或服务中使用相关权益与资产我们会收集您在NU护理单元账号下的权益及资产信息同时我们会在应用内向您展示您的部分或全部前述信息具体以页面实际展示为准 "),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地址操作系统版本唯一移动设备识别码IMEIAndroid IDIDFAIDFVHarmonyOS UUIDSIM卡序列号和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"}},"   通讯录权限保持默认关闭状态如您不希望被推荐给您的通讯录好友您也可以通过设备权限管理关闭此前向NU护理单元开放的通讯录授权 "),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"}},"   您在使用我们的服务时所共享的内容和信息可能会涉及他人的个人信息请您确认已获得他人的合法授权与此同时您有义务妥善保护自己的个人信息仅在必要的情形下向他人提供展示自己的信息如您发现自己的个人信息泄露尤其是您的账户或密码发生泄露请您立即联系NU护理单元客服 "),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地址操作系统版本唯一移动设备识别码IMEIAndroid IDIDFAIDFVHarmonyOS UUIDSIM卡序列号和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地址操作系统版本设备设置唯一设备识别码IMEIAndroid IDIDFAIDFVGAIDHarmonyOS UUIDSIM卡序列号和IMSI信息UUID必要的移动应用列表信息软硬件及设备设备环境信息传感器信息设备所在位置相关信息"),e.createTextVNode("为了识别判断您所在地区的内容版权需要收集您授权的"),e.createElementVNode("text",{style:{"font-weight":"600"}},"GPS精准位置"),e.createTextVNode("以及"),e.createElementVNode("text",{style:{"font-weight":"600"}},"WLAN接入点"),e.createTextVNode("如SSIDBSSID"),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("以实现身份认证我们会将您提供的前述信息与中国残疾人联合会的数据库进行比对和信息验证以验证您的身份如您拒绝提供上述信息将使您无法享受残障用户专享服务但不影响您正常使用NU护理单元的其他功能 ")]),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"}},"如您拒绝提供上述信息我们将无法帮助您连接智能设备但不影响您正常使用NU护理单元的其他功能")]),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"}},"   如您拒绝提供上述信息我们将无法为您提供完整的客户服务及处理争议但不影响您正常使用NU护理单元的其他功能 "),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地址操作系统版本设备设置唯一移动设备识别码IMEIAndroid IDIDFAIDFVMEIDHarmonyOS UUIDOAIDSIM卡序列号和IMSI信息UUIDWLAN接入点如SSIDBSSID和基站必要的移动应用列表信息运行中的进程信息软硬件及设备设备环境信息设备传感器信息 "),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("在部分需要填写您的信息的场景中如广告落地页等为优化您的使用体验简化操作步骤取得您的授权同意后我们会将您在NU护理单元绑定的"),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("为便于我们基于统一账号体系为您带来标准化的服务体验实现安全风控及客户服务之需要您可以使用NU护理单元账号登录适用统一账号体系下的关联应用产品 ")]),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("   NU护理单元产品中包含我们的合作伙伴提供的SDK插件"),e.createElementVNode("text",{style:{"font-weight":"600"}},"当您在NU护理单元中使用该授权合作伙伴提供的相关服务该等服务插件将收集和处理您的相关个人信息详见附件NU护理单元与第三方共享个人信息清单我们强烈建议您在使用在使用我们的产品和/或服务前先行查看并了解其隐私条款"),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. 在NU护理单元及其关联公司发生重组合并分立收购资产出售或破产清算情形或其他类似情形时如涉及到个人信息转让我们将要求受让方采用与本政策相同或更高的标准和要求进行处理和保护否则我们将要求受让方重新向您征求同意 "),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"}},"   我们有行业先进的以数据为核心围绕数据生命周期进行的数据安全管理体系从组织建设制度设计人员管理产品技术方面多维度提升整个系统的安全性目前NU护理单元已通过网络安全等级保护的三级测评 "),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名称-权限中逐项查看您授权同意权限的状态或在NU护理单元App内通过我的-设置-隐私管理-系统权限查看并可自行决定这些权限随时的开启或关闭对于不同功能服务中个人信息的收集和使用您也可以与NU护理单元客服联系给予或收回您的授权同意我们将在十五个工作日内回复您的请求"),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"}},"   如您在谨慎考虑后仍决定注销您的账号的您可以在您使用的我们的产品与/或服务的相关功能设置页面或根据操作指引向我们提交注销申请例如您可以通过我的-设置-账号与安全-注销账户自行在注销账户页面提交账户注销申请若未能申请成功您也可联系NU护理单元客服我们将在十五个工作日内回复您的请求在您主动注销账户之后我们将停止为您提供产品或服务 "),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"}},"   在NU护理单元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"}},"   此外如果您的请求直接涉及国家安全国防安全公共卫生犯罪侦查等和公共利益直接相关的事由或者可能导致您或者其他个人组织的合法权益受到严重损害或者基于NU护理单元履行法律法规规定的义务相关的情形或者有充分证据标明您存在主观恶意或滥用权利或者响应您的请求将导致您或者其他个人组织的合法权益受到严重损害的我们将无法响应您的请求 "),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("   您理解您与NU护理单元签署的本政策所列明的条款并不能完全涵盖您与NU护理单元所有的关于个人信息的权利和义务因此"),e.createElementVNode("text",{style:{"font-weight":"600"}},"NU护理单元公布其他声明包括但不限于页面提示新签署文件弹窗网站公告或站内信等各形式规则均视为本政策之补充条款为本政策不可分割的组成部分与本政策具有同等法律效力")]),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx"}},"   未经您明确同意我们不会限制您按照本政策所应享有的权利我们将在NU护理单元专门链接上发布对隐私权政策所做的任何变更和更新对于重大变更我们还会提供更为显著的通知包括通过平台公示通知甚至向您进行弹窗提示本政策所指的重大变更包括但不限于 "),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"}},'   为了您能及时接收到通知建议您在您个人的联系方式更新时及时通知我们。如您在本政策更新生效后继续使用我们的服务即代表您已充分阅读、理解并接受更新后的政策并愿意受更新后的政策约束。我们鼓励您在每次使用我们服务时都查阅本政策。您可以在NU护理单元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"}},"   我们设立了个人信息保护专职部门如您对NU护理单元隐私信息保护政策儿童个人信息有任何疑问意见或建议或有关于网络信息安全的投诉和举报您可通过以下方式与我们取得联系 "),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"}},"   联系人NU护理单元客服部 "),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"}},"   本政策签订地为中华人民共和国吉林省长春市因本政策生效履行解释及使用NU护理单元产品和/或服务而产生或与本政策相关的一切争议权利主张或其他事项均适用中华人民共和国法律为本政策之目的港澳台地区法律不在此列您与NU护理单元及其关联公司或NU护理单元发生的一切争议应友好协商如协商不成的您同意双方通过将争议提交本政策签订地有管辖权的法院解决 "),e.createElementVNode("view",{style:{"font-size":"28rpx","margin-bottom":"20rpx","line-height":"50rpx","font-weight":"600"}},"   请您再次确认您已全部阅读并充分理解上述条款 ")])])}],["__scopeId","data-v-85e00dee"]]),v="https://www.focusnu.com/opeapi",p=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);else switch(l("log","at request/index.js:36","http",/^https?:\/\//.test(t)?t:v+t),l("log","at request/index.js:37","res",a),l("log","at request/index.js:38","data",i),n.statusCode){case 401: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:71",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((()=>{}))},g=e=>p({url:`${uni.getStorageSync("serverUrl")}/sys/randomCode/${e}`,method:"get"}),h=e=>p({url:`${uni.getStorageSync("serverUrl")}/sys/login`,method:"post",data:e}),y=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"]]);class w{constructor(e="",t={}){this.url=e||"",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},t),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.options.bindGlobal&&this._bindGlobalSocketEvents(),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);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:99",e)}}else this.log(this._label("open"),this._label("noUrl")||"no url")}close(e=1e3,t="client close"){this._stopHeartbeat();try{this.socketTask&&"function"==typeof this.socketTask.close?this.socketTask.close({code:e,reason:t}):"function"==typeof uni.closeSocket&&uni.closeSocket()}catch(l){this.log(this._label("closeError"),l)}this.connected=!1}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)})),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)}))}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()}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.reconnectAttempts>=this.options.maxReconnectAttempts)return void this.log(this._label("reconnectScheduled"),"exhausted");this.reconnectAttempts++;const e=Math.min(this.options.reconnectDelayBase*Math.pow(1.5,this.reconnectAttempts-1),3e4);this.log(this._label("reconnectScheduled"),e+"ms","attempt",this.reconnectAttempts),setTimeout((()=>{this.socketTask=null,this.connectIfForeground()}),e)}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)}}}let N=null;const f=()=>{N&&(N.reconnectAttempts=0,N.open())},k=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(!0);function k(){T.value=!1,n.value=!0,I()}function E(){var e,l;v.value=!1,uni.setStorageSync("appWgtVersion",uni.getSystemInfoSync().appWgtVersion),uni.getStorageSync("appWgtVersion")!=uni.getSystemInfoSync().appWgtVersion&&(v.value=!0),uni.getStorageSync("token")&&1!==uni.getStorageSync("token")&&(2===U.value?setTimeout((()=>{L()}),500):U.value++),t("MonitorModule").initSMBCloudSDK(),e=t("MonitorModule"),l={userName:"admin",password:"Bl20230518",serverAddress:"121.36.88.64",port:8888},e.cloudLoginIn(l,(e=>{2===U.value?setTimeout((()=>{L()}),500):U.value++}))}function V(){plus.runtime.quit()}const x=e.ref(!1),b=e.ref(0),S=e.ref([]),B=()=>{var e;/^\d{11}$/.test(r.username)?(e=r.username,p({url:`/api/pad/loginApi/getAdvisoryInfo?tel=${encodeURIComponent(e)}`,method:"get"})).then((e=>{l("log","at pages/login/login.vue:219","啥啊",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),S.value=e.result.orgList,b.value=Date.now(),g(b.value).then((e=>{l("log","at pages/login/login.vue:230","啥啊",e),r.captcha=e.message,x.value=!0}))):(uni.setStorageSync("serverUrl",""),uni.setStorageSync("orgList",[]),uni.setStorageSync("orgListName",""),uni.setStorageSync("orgListCode",""),S.value=[],uni.showToast({title:e.result.msg,icon:"none",duration:2e3}),x.value=!1)})):r.username&&uni.showToast({title:"手机号不足11位",icon:"none",duration:2e3})},T=e.ref(!1),C=e.ref(!1),D=e.ref(!1),z=e.ref(!1),I=()=>{n.value?o.value=!0:T.value=!0},F=e.ref(!1),_=()=>{F.value||(2===U.value?setTimeout((()=>{L()}),500):U.value++,F.value=!0)},U=e.ref(0),M=e.ref(!1),$=()=>{r.checkKey=b.value,o.value=!1,h(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===U.value?(uni.setStorageSync("form",r),S.value.length>1?(o.value=!1,M.value=!0):setTimeout((()=>{L()}),500)):U.value++):uni.showToast({title:e.message,icon:"none",duration:2e3})}))};const L=()=>{var e,t;uni.getStorageSync("userInfo")&&(e=`wss://www.focusnu.com/ws101/sdWebsocket/${uni.getStorageSync("userInfo").employessId}`,t={debug:!0,heartbeatInterval:25e3,autoConnect:!1},N||(N=new w(e,t)),f()),(e=>{uni.navigateTo({url:e})})("/pages/login/newanimationpage")};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:B},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=>I())}," 验证并登录 ",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=>{D.value=!0,z.value=!0})}," 《用户协议》 "),e.createElementVNode("view",{class:"radio-circle-blue",onClick:a[6]||(a[6]=e=>{D.value=!0,z.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=>{D.value=!0,z.value=!0})},"《用户协议》"),e.createTextVNode("和"),e.createElementVNode("text",{class:"text-blue",onClick:a[8]||(a[8]=e=>{D.value=!0,z.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:E},"同意"),e.createElementVNode("view",{class:"white-button",onClick:V},"不同意")])])):e.createCommentVNode("",!0),D.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-any"},[e.createElementVNode("view",{class:"mask",onClick:a[9]||(a[9]=e=>D.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=>D.value=!1)}),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"back-font"},"NU护理单元隐私信息保护政策")),z.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"back-font"},"NU护理单元用户服务协议")):e.createCommentVNode("",!0)]),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0})),z.value?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"popup-wrapper"},[e.createElementVNode("view",{class:"mask",onClick:a[11]||(a[11]=e=>T.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=>{D.value=!0,z.value=!0})},"《用户协议》"),e.createElementVNode("text",{class:"text-blue",onClick:a[13]||(a[13]=e=>{D.value=!0,z.value=!1})},"《隐私政策》")]),e.createElementVNode("view",{class:"blue-button",onClick:k},"同意并继续")])])):e.createCommentVNode("",!0),C.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=>C.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:_},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(y,{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(S.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((()=>{g(b.value).then((e=>{l("log","at pages/login/login.vue:309","啥啊",e),r.captcha=e.message,t?h(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-b02aa1f5"]]),E="/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"]]),x=s({__name:"reset",props:{show:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:a}){const i=t,n=e.reactive({username:uni.getStorageSync("username"),oldpassword:"",password:"",confirmpassword:""}),o=e.ref(!1);e.watch((()=>i.show),((e,t)=>{!t&&e&&(o.value=!1,setTimeout((()=>o.value=!0),50))}));const r=a;function c(){r("close")}const s=()=>{n.username&&n.oldpassword&&n.password&&n.confirmpassword?n.password.length<6||n.confirmpassword.length<6?uni.showToast({title:"密码要多于六位",icon:"none",duration:2e3}):n.password===n.confirmpassword?(e=>p({url:`${uni.getStorageSync("serverUrl")}/sys/user/updatePassword`,method:"put",data:{username:e.username,oldpassword:e.oldpassword,password:e.password,confirmpassword:e.confirmpassword}}))(n).then((e=>{l("log","at component/public/reset.vue:105","res",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",o.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:c}),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:s},"确定")]),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=>n.oldpassword=e),maxlength:"15",placeholder:"请输入旧密码"},null,512),[[e.vModelText,n.oldpassword]])]),e.createElementVNode("view",{class:"password-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[1]||(a[1]=e=>n.password=e),maxlength:"15",placeholder:"请输入新密码"},null,512),[[e.vModelText,n.password]])]),e.createElementVNode("view",{class:"password-father"},[e.withDirectives(e.createElementVNode("input",{class:"password",password:!1,"onUpdate:modelValue":a[2]||(a[2]=e=>n.confirmpassword=e),maxlength:"15",placeholder:"请再次输入新密码"},null,512),[[e.vModelText,n.confirmpassword]])]),e.createElementVNode("view",{class:"card-font"})])],2)),[[e.vShow,t.show]])}},[["__scopeId","data-v-82428a75"]]),b=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(x,{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"]]),S=(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 p({url:l,method:"get"})},B=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/queryPadPageList`,method:"get",data:e}),T=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/employessInfo/getPermissionList`,method:"get",data:e}),C=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:E,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"]]),D="/static/index/leida/play.png",z="/static/index/quxiao.png",I=()=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/queryPadPageList?token=${uni.getStorageSync("token")}`,method:"get"}),F=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/queryinfoByBuId?nuId=${e}`,method:"get"}),_=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/baseInfo/updateBaseInfo`,method:"post",data:e}),U=s(e.defineComponent({__name:"leida",setup(t){const a=e.ref(!0),i=e.ref(0),n=e.ref(100),o=e.ref(-1),r=e.ref(""),c=e.ref(),s=e.ref(!1),u=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}]),d=e.ref([]),m=e.ref([]),v=e.ref(0);let p=null;function g(e){return"function"==typeof globalThis.requestAnimationFrame?globalThis.requestAnimationFrame(e):setTimeout((()=>e(Date.now())),16)}function h(e){var t;return"number"==typeof e?e:(null==(t=globalThis.performance)?void 0:t.now)?globalThis.performance.now():Date.now()}let y=null;function w(e){const t=h(e);y||(y=t);const l=(t-y)/1e3;y=t,a.value&&(i.value=(i.value+n.value*l)%360),p=g(w)}function N(){100===B.value&&(T(),f())}function f(){a.value=!a.value,a.value?(y=h(),b()):S()}const k=e.computed((()=>({transform:`rotate(${i.value}deg)`}))),E=e.ref([]);let V=null,x=0;function b(){V||(V=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};E.value.push(i),setTimeout((()=>{i.opacity=1}),20),setTimeout((()=>{i.opacity=0,setTimeout((()=>{E.value=E.value.filter((e=>e.id!==a))}),500)}),2e3)}()}),500))}function S(){clearInterval(V),V=null}const B=e.ref(0);function T(){let e=Date.now(),t=Math.floor(30*Math.random())+30,l=!1,a=Math.floor(500*Math.random())+300,i=0;I().then((e=>{e.result.records.forEach((e=>{e.menu=JSON.parse(JSON.stringify(u.value)),e.isNew=!0})),m.value=[],m.value.push(...e.result.records),function(){const e=m.value.length;d.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()=>{d.value.push(m.value[n]),d.value.length}),i)}()})),setTimeout((function n(){let o=Date.now()-e;if(!l&&B.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);B.value=Math.floor(100*r),100===B.value&&f(),B.value<100&&setTimeout(n,16)}),16)}e.onMounted((()=>{C()}));const C=()=>{y=h(),p=g(w),b(),T()},F=e.ref(-1),U=e.ref(-1);return e.onBeforeUnmount((()=>{var e;null!=p&&(e=p,"function"==typeof globalThis.cancelAnimationFrame?globalThis.cancelAnimationFrame(e):clearTimeout(e)),S()})),(t,a)=>(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(k.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(E.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==F.value?"zerotarget":""]),style:{"margin-top":"0"},onClick:N},e.toDisplayString((B.value,"扫描")),3),e.createElementVNode("view",{class:"progress-wrap"},[e.createElementVNode("view",{class:"progress-inner",style:e.normalizeStyle({width:B.value+"%"})},null,4)]),e.createElementVNode("view",{class:"progress-text"},e.toDisplayString(B.value)+"%",1)])]),e.createElementVNode("view",{class:"other"},[e.createElementVNode("scroll-view",{ref:"scrollViewRef","scroll-y":"",class:"other-father","scroll-top":v.value},[e.createElementVNode("view",{class:"card-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["card",[F.value===l&&-1===U.value?"zerotarget":"",{"fade-in":t.isNew}]]),key:l,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",F.value===l&&0===U.value?"zerotarget":""])},[e.createElementVNode("image",{class:"edit-img",onClick:a[0]||(a[0]=()=>{}),src:D})],2)]),e.createElementVNode("view",{class:e.normalizeClass(["blue-button",F.value===l&&1===U.value?"zerotarget":""]),style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:e=>{return a=l,i=t,o.value=a,r.value=i.nuName,c.value=i.nuId,s.value=!1,void setTimeout((()=>{s.value=!0}),50);var a,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!==o.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-any",style:e.normalizeStyle(s.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onClick:a[1]||(a[1]=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":a[2]||(a[2]=e=>r.value=e)},null,512),[[e.vModelText,r.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:z,onClick:a[3]||(a[3]=e=>r.value="")},null,512),[[e.vShow,r.value]])]),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"40rpx"},onClick:a[4]||(a[4]=e=>((e,t)=>{if(l("log","at pages/watch/settings/leida.vue:196","jiance",e,c.value),e){let t={id:d.value[o.value].id,nuName:e};_(t).then((e=>{e.success&&I().then((e=>{e.result.records.forEach((e=>{e.menu=JSON.parse(JSON.stringify(u.value)),e.isNew=!0})),d.value=[],d.value.push(...e.result.records)}))}))}o.value=-1})(r.value,o.value))}," 确定 ")])],4)):e.createCommentVNode("",!0)])],8,["scroll-top"])]),e.createElementVNode("view",{class:"index-content-down"}," 长春市朝阳区久泰开运养老服务有限公司 ")]))}}),[["__scopeId","data-v-043be7cb"]]),M=s(e.defineComponent({__name:"saoma",setup(t){const a=e.ref({});function i(){uni.scanCode({onlyFromCamera:!0,scanType:["qrCode","barCode"],success(e){e.result&&(n.value=e.result,F(n.value).then((e=>{e.success?a.value=e.result:uni.showToast({title:e.message,icon:"none"})}))),l("log","at pages/watch/settings/saoma.vue:105","chenggong",e.result)},fail(e){uni.showToast({title:"扫码失败:"+e.errMsg,icon:"none"})}})}const n=e.ref(""),o=e.ref(!1),r=e.ref(!1),c=e.ref(""),s=e.ref(""),u=()=>{if(c.value){let e={id:a.value.id,nuName:c.value};l("log","at pages/watch/settings/saoma.vue:136","????",e),_(e).then((e=>{e.success&&F(n.value).then((e=>{e.success?(a.value=e.result,o.value=!1,r.value=!1):uni.showToast({title:e.message,icon:"none"})}))}))}};return(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other"},[e.createElementVNode("view",{class:"saomiao"},[a.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(a.value.nuName),1),e.createElementVNode("view",{class:"video-father"},[e.createElementVNode("image",{class:"edit-img",onClick:l[0]||(l[0]=()=>{}),src:D})])]),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:l[1]||(l[1]=e=>a.value={})}," 关闭 "),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:l[2]||(l[2]=e=>(c.value=a.value.nuName,s.value=a.value.nuId,r.value=!1,o.value=!0,void setTimeout((()=>{r.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(r.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onClick:l[3]||(l[3]=e=>r.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(s.value),1),e.createElementVNode("view",{class:"rename-input"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",placeholder:"请重新命名","onUpdate:modelValue":l[4]||(l[4]=e=>c.value=e),onConfirm:u},null,544),[[e.vModelText,c.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:z,onClick:l[5]||(l[5]=e=>c.value="")},null,512),[[e.vShow,c.value]])]),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"40rpx"},onClick:u}," 确定 ")])],4),[[e.vShow,o.value]])]),a.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:0,class:"big-bgc",src:"/static/kuai.png"})),a.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"big-img",onClick:i},[e.createElementVNode("image",{style:{width:"100%",height:"100%"},src:"/static/sao.png"}),e.createElementVNode("view",{class:"big-font"}," 点击扫描区域二维码 ")])),a.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:2,class:"big-QR",src:"/static/qr.png",onClick:i})),e.createElementVNode("view",{class:"index-content-down"}," 长春市朝阳区久泰开运养老服务有限公司 ")],64))}}),[["__scopeId","data-v-4d290af2"]]),$="/static/x.png",L=s(e.defineComponent({__name:"input",setup(t){const a=e.ref(""),i=e.ref({}),n=()=>{a.value&&F(a.value).then((e=>{e.success?i.value=e.result:uni.showToast({title:e.message,icon:"none"})}))},o=e.ref(!1),r=e.ref(!1),c=e.ref(""),s=e.ref(""),u=()=>{if(c.value){l("log","at pages/watch/settings/input.vue:124","????");let e={id:i.value.id,nuName:c.value};_(e).then((e=>{e.success&&F(a.value).then((e=>{e.success?(i.value=e.result,o.value=!1):uni.showToast({title:e.message,icon:"none"})}))}))}};return(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"index-content-other"},[e.createElementVNode("view",{class:"saomiao"},[i.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"big-ball"},[e.createElementVNode("view",{class:"ball"})])),i.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:1,class:"left-img",src:"/static/click.png"})),i.value.nuName?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,class:"saoma-input",password:!1,"onUpdate:modelValue":l[0]||(l[0]=e=>a.value=e),placeholder:"请手动录入NUID"},null,512)),[[e.vModelText,a.value]]),i.value.nuName?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("image",{key:3,class:"right-img",src:$,onClick:l[1]||(l[1]=e=>a.value="")},null,512)),[[e.vShow,a.value]]),i.value.nuName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:4,class:"blue-button",onClick:n}," 确定 ")),i.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(i.value.nuName),1),e.createElementVNode("view",{class:"video-father"},[e.createElementVNode("image",{class:"edit-img",onClick:l[2]||(l[2]=()=>{}),src:D})])]),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:l[3]||(l[3]=e=>i.value={})}," 关闭 "),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"50rpx"},onClick:l[4]||(l[4]=e=>(c.value=i.value.nuName,s.value=i.value.nuId,r.value=!1,o.value=!0,void setTimeout((()=>{r.value=!0}),50)))}," 重命名 ")]),e.createElementVNode("view",{class:"card-tags"},[e.createElementVNode("view",{style:{"margin-left":"80rpx"}}," NUID:"+e.toDisplayString(i.value.nuId),1)]),e.createElementVNode("view",{class:"play-img"}," 护理单元 ")])):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("view",{class:"popup-any",style:e.normalizeStyle(r.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onClick:l[5]||(l[5]=e=>r.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(s.value),1),e.createElementVNode("view",{class:"rename-input"},[e.withDirectives(e.createElementVNode("input",{class:"uni-input",placeholder:"请重新命名","onUpdate:modelValue":l[6]||(l[6]=e=>c.value=e),onConfirm:u},null,544),[[e.vModelText,c.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:z,onClick:l[7]||(l[7]=e=>c.value="")},null,512),[[e.vShow,c.value]])]),e.createElementVNode("view",{class:"blue-button",style:{width:"200rpx",height:"70rpx","margin-top":"40rpx"},onClick:u}," 确定 ")])],4),[[e.vShow,o.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-f71fcced"]]),j=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(),B().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:E})]),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(b,{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(U),{key:0})):e.createCommentVNode("",!0),11==m.value?(e.openBlock(),e.createBlock(e.unref(M),{key:1})):e.createCommentVNode("",!0),12==m.value?(e.openBlock(),e.createBlock(e.unref(L),{key:2})):e.createCommentVNode("",!0)],512),[[e.vShow,m.value>9]]),e.withDirectives(e.createElementVNode("view",{class:"componentall"},[e.createVNode(e.unref(C),{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 P{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 A=null;const q=s({data:()=>({recorder:null,isRecording:!1,recordTime:0,recordTimer:null,message:""}),onLoad(){this.initRecorder()},onUnload(){this.cleanup()},methods:{async initRecorder(){try{this.recorder=(A||(A=new P),A),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)])}]]),O=()=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getServiceTree`,method:"get"}),Y=()=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/getServiceTree`,method:"get"}),R=()=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/getServiceTree`,method:"get"}),W=(e,t)=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getNclist?nuId=${e}&elderId=${t}`,method:"get"}),J=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/deleteDirective`,method:"post",data:e}),Q=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/editDirective`,method:"post",data:e}),G=s(e.defineComponent({__name:"newanimationpage",setup(t){c((()=>!0));const a=e.ref(null),i=e.ref([]),o=e.ref(!1);e.ref(!1);const r=e.ref(""),s=e.ref(""),d=e.computed((()=>{const e=(r.value||"").length;return 10===e?"1.3vw":e<10?"1.5vw":e<=15?"1.1vw":"0.9vw"}));n((()=>{var e,t;null==(e=a.value)||e.check_update(),B().then((e=>{i.value=e.result.records,l("log","at pages/login/newanimationpage.vue:150","????",e)})),r.value=uni.getStorageSync("orgListName"),p({url:`${uni.getStorageSync("serverUrl")}/sys/sysDepart/queryDepartTreeSync`,method:"get",data:t}).then((e=>{l("log","at pages/login/newanimationpage.vue:154",e),e.result[0].picUrl?s.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"+e.result[0].picUrl:s.value=""}))}));const m=e=>i.value.filter((t=>Number(t.areaFlag)-1==e)),v=D("/static/index/warehouse/newindexhome/","gate",5,"png",0,!1),g=D("/static/index/warehouse/newindexhome/","door",11,"png",0,!1),h=D("/static/index/warehouse/newindexhome/","Front",2,"png",1,!1),y=D("/static/index/warehouse/newindexhome/","Front",2,"png",3,!1),w=D("/static/index/warehouse/newindexhome/","Operator",8,"png",1,!1),N=[...w,...w.slice(0,-1).reverse()],f=D("/static/index/warehouse/newindexhome/","lamp",2,"png",1,!1),k=D("/static/index/warehouse/newindexhome/","service",8,"png",0,!1),E=[...k,...k.slice(0,-1).reverse()],x=D("/static/index/warehouse/newindexhome/cler","cler1-",24,"png",1,!1),b=D("/static/index/warehouse/newindexhome/","printer",13,"png",1,!1),S=e.ref(!1);e.onMounted((()=>{S.value=!0,O().then((e=>{uni.setStorageSync("saveTree0",e),Y().then((e=>{uni.setStorageSync("saveTree1",e)})),R().then((e=>{uni.setStorageSync("saveTree2",e)}))}))}));const T=e.ref(0);e.ref("");const C=e=>{var t,l;if(T.value=e,0==e){let e=m(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=m(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&&(o.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,l)=>{const i=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:l[0]||(l[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:l[1]||(l[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:l[2]||(l[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:l[3]||(l[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(i,{width:"4vw",height:"7vw",interval:250,links:N,playing:S.value,loop:!0},null,8,["playing"])]),e.createElementVNode("view",{class:"worker tp"},[e.createVNode(i,{width:"4.5vw",height:"6vw",interval:250,links:E,playing:S.value,loop:!0},null,8,["playing"])]),e.createElementVNode("view",{class:"line tp"},[e.createVNode(i,{width:"100vw",height:"100vh",interval:500,links:e.unref(f),playing:S.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"unit",onClick:l[4]||(l[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:d.value})},e.toDisplayString(r.value),5),e.createElementVNode("view",{class:"unit-image"},[e.createElementVNode("image",{class:"all-home",src:s.value?s.value:"/static/index/indeximage.png",mode:"aspectFit"},null,8,["src"])]),e.createElementVNode("view",{class:"office",onClick:l[5]||(l[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:l[6]||(l[6]=e=>C(1))},[e.createVNode(i,{width:"14vw",height:"13vw",interval:250,links:e.unref(x),playing:S.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"Print tp"},[e.createVNode(i,{width:"5vw",height:"5vw",interval:300,links:e.unref(b),playing:S.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(i,{width:"7vw",height:"8vw",interval:550,links:e.unref(h),playing:S.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"peopleright tp"},[e.createVNode(i,{width:"7vw",height:"8vw",interval:600,links:e.unref(y),playing:S.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"door tp"},[e.createVNode(i,{width:"17vw",height:"16vw",interval:200,links:[...e.unref(g),...e.unref(g).slice().reverse()],playing:S.value,loop:!0},null,8,["links","playing"])]),e.createElementVNode("view",{class:"ondoor tp"},[e.createVNode(i,{width:"5vw",height:"6vw",interval:300,links:e.unref(v),playing:S.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:l[7]||(l[7]=e=>C(7))},[e.createElementVNode("image",{class:"button-img",src:"/static/index/setting.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"button-back",onClick:l[8]||(l[8]=e=>C(8))},[e.createElementVNode("image",{class:"button-img",src:"/static/index/back.png",mode:"aspectFit"})]),e.createVNode(V,{show:o.value,onClose:l[9]||(l[9]=e=>o.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-65b7b064"]]),X="/static/nocamera.png",H="/static/index/camera/back.png",Z=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(V(),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){x(),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(){V(),x(),r=!1,u.value=!1,i.value=-1,c.value=-1}function V(){n&&(clearTimeout(n),n=null)}function x(){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"]]),K=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 V=0;const x=e.ref(0);const b=e.ref(-1),T=(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,ae.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 U=e.ref(0),M=e.ref(-1),$=e.ref(-1),L=e.ref(!1),j=()=>{U.value=-1,M.value=-1,$.value=-1,L.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=K.value,G.value=!1,K.value=-1,W(),J()}}(e)},A=e.ref(0),q=()=>{var e;A.value=U.value,uni.setStorageSync("nuId",te.value[A.value].nuId),uni.setStorageSync("nuName",te.value[A.value].nuName),uni.setStorageSync("elderId",te.value[A.value].elderInfo?null==(e=te.value[A.value].elderInfo)?void 0:e.id:null),uni.setStorageSync("NUall",te.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=ee((()=>{var e;return null==(e=u.value)?void 0:e.moveSecondUp()}),400),J=ee((()=>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||(K.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),K=e.ref(-1);function ee(e,t=1e3){let l=!1;return()=>{l||(e(),l=!0,setTimeout((()=>{l=!1}),t))}}const te=e.computed((()=>(a.value=-1,setTimeout((()=>{a.value=0}),50),_.value.filter((e=>Number(e.areaFlag)-1===i.value))))),le=()=>{uni.navigateTo({url:"/pages/watch/settings/settings"})},ae=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;ae.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),B().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)}})),T(te.value[U.value],U.value),setTimeout((()=>{a.value=A.value,U.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,S(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}S(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(te.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(["menu",{warning:"1"==t.izWarning,target:l===U.value}]),style:e.normalizeStyle([l===a.value?{backgroundColor:"#fff"}:{},U.value===l?{backgroundColor:"#ddf0ff"}:{}]),onClick:e=>{a.value=l,j(),U.value=l,function(e,t){const l=Date.now();l-V<500&&x.value===t?q():T(e,t),x.value=t,V=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===M.value}]),style:e.normalizeStyle(M.value===l?{backgroundColor:"#ddf0ff"}:{}),onClick:e=>{i.value=l,(e=>{j(),M.value=e,T(te.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(ae.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:L.value}),style:{display:"flex","align-items":"center"}},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:"/static/index/newindex/curve/shezhi.png",onClick:le}),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10rpx"},onClick:le}," 设置 ")],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:X}),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(j(),$.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===$.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=te.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=te.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(te.value[a.value].elderInfo?te.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(te.value[a.value].elderInfo?te.value[a.value].elderInfo.sex:"")+" ",1),e.createElementVNode("text",{style:{"margin-left":"5rpx"}},e.toDisplayString(te.value[a.value].elderInfo?pe(te.value[a.value].elderInfo.dateOfBirth):"")+"岁 ",1)]),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"20rpx","margin-top":"0rpx"}}," 入住时间:"+e.toDisplayString(te.value[a.value].elderInfo?te.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=te.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=te.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(te.value[a.value].elderInfo?te.value[a.value].elderInfo.name:""),1),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"10rpx"}},e.toDisplayString(te.value[a.value].elderInfo?te.value[a.value].elderInfo.sex:"")+" "+e.toDisplayString(te.value[a.value].elderInfo?pe(te.value[a.value].elderInfo.dateOfBirth):"")+"岁 ",1)]),e.createElementVNode("view",{class:"font-small",style:{"margin-left":"20rpx","margin-top":"25rpx"}}," 入职时间:"+e.toDisplayString(te.value[a.value].elderInfo?te.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=te.value[a.value])?void 0:u.elderInfo)?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(te.value[a.value].elderInfo?te.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:H,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(Z,{onMovecard:P},null,512),[[e.vShow,!g.value.includes(5)]])])}}}),[["__scopeId","data-v-bfe42110"]]),ee=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,B.value=!1,T.value=-1,V(),x()}}(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),V=C((()=>{var e;return null==(e=s.value)?void 0:e.moveSecondUp()}),400),x=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,B.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),B=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,S(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}S(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:X}),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:H,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(Z,{onMovecard:N})]))}}),[["__scopeId","data-v-98cb18c4"]]),te=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((()=>{B().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"]]),le=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"]]),ae=s(e.defineComponent({__name:"index",setup(t){const a=e.ref([]);e.ref({fzrHeadPath:"",fzr:"",fzrTel:""}),r((()=>{a.value=m}));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),e.ref(3);const u=["原图","全景拉伸","四分屏","180°全景","360°全景"],d=e.ref([]),m=["截图","录制","对讲","静音","预警","图片","视频","清晰度","翻转","返回"],v=e.ref(0),p=e.ref(5),g=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 h=e.ref(-1);e.ref(!1);const y=e=>{!function(e){switch(e){case 0:D(1,0);break;case 1:D(5,1);break;case 2:D(7,2);break;case 3:D(3,3);break;case 4:case 5:p.value=b.value,x.value=!1,b.value=-1,k(),E()}}(e)};e.ref(0);const w=new Map;e.onBeforeUnmount((()=>{for(const e of w.values())clearTimeout(e);w.clear()}));const N=e=>{const t=d.value.indexOf(e);-1!==t&&d.value.splice(t,1)},f=e.ref(!1),k=B((()=>{var e;return null==(e=s.value)?void 0:e.moveSecondUp()}),400),E=B((()=>function(){var e;null==(e=s.value)||e.startchange(),0===p.value&&(g.value,uni.$emit("fullmonitor:toggleVolume"));1===p.value&&(g.value?uni.$emit("fullmonitor:stopTalk"):uni.$emit("fullmonitor:openTalk"));2===p.value&&uni.$emit("fullmonitor:doSnapshot");3===p.value&&(g.value?uni.$emit("fullmonitor:stopRecord"):uni.$emit("fullmonitor:startRecord"));4===p.value&&(g.value||(b.value=p.value,p.value=-1,x.value=!0));5===p.value&&V.value!==g.value&&(V.value=g.value,uni.$emit("fullmonitor:changeQuality"));6===p.value&&uni.$emit("fullmonitor:switchDisplay",g.value);7===p.value&&(3===g.value?uni.$emit("fullmonitor:flipImage",6):uni.$emit("fullmonitor:flipImage",g.value));8===p.value&&(g.value?uni.$emit("fullmonitor:stopAlarm"):uni.$emit("fullmonitor:startAlarm"))}()),700),V=e.ref(0),x=e.ref(!1),b=e.ref(-1);function B(e,t=1e3){let l=!1;return()=>{l||(e(),l=!0,setTimeout((()=>{l=!1}),t))}}let T=-1;const C={};function D(e,t){-1!==T&&T!==t&&z(T),T=t,S(e,1),C[t]&&clearTimeout(C[t]),C[t]=setTimeout((()=>{z(t)}),550)}function z(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}S(t,0).then((e=>{})),clearTimeout(C[e]),C[e]=null,T===e&&(T=-1)}const I=e.ref(!0),F=()=>{l("log","at pages/controlroom/index.vue:499","切换了",uni.getStorageSync("NUall")),I.value=!1,setTimeout((()=>{I.value=!0}),1)};return(t,l)=>(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:X}),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(u,((t,l)=>e.createElementVNode("view",{class:"picture-card",key:l,style:e.normalizeStyle({color:v.value===l?"#1486EB":""}),onClick:e=>(e=>{switch(h.value=e,v.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===h.value}]),style:e.normalizeStyle({background:v.value===l?"#E2EDFC":""})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx"},src:`/static/index/picture/${l}${v.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(a.value.slice(0,4),((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"picture-card",key:l,style:e.normalizeStyle({color:d.value.includes(l)?"#0E86EA":""}),onClick:e=>(e=>{switch(e){case 0:uni.$emit("fullmonitor:doSnapshot"),d.value.includes(e)||d.value.push(e),w.has(e)&&clearTimeout(w.get(e));const t=setTimeout((()=>{const t=d.value.indexOf(e);-1!==t&&d.value.splice(t,1),w.delete(e)}),500);w.set(e,t);break;case 1:d.value.includes(e)?(uni.$emit("fullmonitor:stopRecord"),N(e)):(uni.$emit("fullmonitor:startRecord"),d.value.push(e));break;case 2:d.value.includes(e)?(uni.$emit("fullmonitor:stopTalk"),N(e)):(uni.$emit("fullmonitor:openTalk"),d.value.push(e));break;case 3:d.value.includes(e)?(uni.$emit("fullmonitor:toggleVolume"),N(e)):(uni.$emit("fullmonitor:toggleVolume"),d.value.push(e));break;case 4:d.value.includes(e)?(uni.$emit("fullmonitor:stopAlarm"),N(e)):(uni.$emit("fullmonitor:startAlarm"),d.value.push(e));break;case 5:case 6:d.value.includes(e)?N(e):d.value.push(e);break;case 7:d.value.includes(e)?(uni.$emit("fullmonitor:changeQuality"),N(e)):(uni.$emit("fullmonitor:changeQuality"),d.value.push(e));break;case 8:f.value=!0;break;case 9:f.value=!1,uni.navigateBack()}})(l)},[e.createElementVNode("view",{class:e.normalizeClass(["bgc-card",{target:d.value.includes(l)}]),style:e.normalizeStyle({background:d.value.includes(l)?"#E2EDFC":""})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx"},src:`/static/index/camera/${9==l?5:l>4?l+1:l}${d.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(te,{onChange:F}),I.value?(e.openBlock(),e.createBlock(le,{key:0})):e.createCommentVNode("",!0)])]),e.createVNode(Z,{moveright:480,movebottom:0,onMovecard:y})]))}}),[["__scopeId","data-v-f8dc5258"]]),ie=s(e.defineComponent({__name:"settings",emits:["jump"],setup(t,{emit:a}){const i=e.ref(null),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),c=e.ref(!1),s=e.ref(["雷达扫描","扫码添加","手动录入","修改密码","切换机构","检查更新","用户协议","隐私政策"]);e.ref(!0),e.ref("");const v=e.ref(!1),y=e.ref(uni.getStorageSync("orgList")),w=e.ref(uni.getStorageSync("userInfo")),N=e.ref(!1),f=()=>{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=>{w.value.flag=!0,w.value.avatar=e.tempFilePath}})}})},k=()=>{N.value=!1,w.value=uni.getStorageSync("userInfo")},E=()=>{var e;(e={avatar:w.value.avatar,id:w.value.id,employessId:w.value.employessId},p({url:`${uni.getStorageSync("serverUrl")}/sys/user/login/setting/editAvatar`,method:"post",data:e})).then((e=>{l("log","at pages/watch/settings/settings.vue:194",e),e.success&&(uni.setStorageSync("userInfo",w.value),uni.showToast({icon:"success",title:"更新成功!"}),N.value=!1)}))},V=e.ref(!1),b=e.ref(""),S=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:c.value=!0;break;case 4:1==y.value.length?uni.showToast({title:"您目前只绑定了一个机构。如需切换,请先申请新的机构。",icon:"none",duration:2e3}):(b.value=uni.getStorageSync("serverUrl"),v.value=!0,l("log","at pages/watch/settings/settings.vue:296","!!!!",y.value));break;case 5:n.value=!0,null==(t=i.value)||t.check_update();break;case 6:o.value=!0,r.value=!0,V.value=!1,setTimeout((()=>{V.value=!0}),50);break;case 7:o.value=!0,r.value=!1,V.value=!1,setTimeout((()=>{V.value=!0}),50);break;case 8:w.value.flag=!1,b.value=uni.getStorageSync("serverUrl"),N.value=!0,l("log","at pages/watch/settings/settings.vue:323",w.value)}},B=()=>{n.value&&uni.showToast({title:"已经是最新版了",icon:"none",duration:2e3})};return(t,a)=>{var n;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(s.value.slice(0,3),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>S(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=>S(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:a[0]||(a[0]=e=>S(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(s.value.slice(5,8),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:"item",onClick:e=>S(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(x,{show:c.value,onClose:a[1]||(a[1]=e=>c.value=!1)},null,8,["show"]),e.createVNode(u,{ref_key:"zyupgrade",ref:i,noticeflag:!0,theme:"blue",h5preview:!1,oldversion:"1.0.0",appstoreflag:!0,autocheckupdate:!0,onShowupdateTips:B},null,512),o.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-any",style:e.normalizeStyle(V.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"mask",onTouchmove:a[2]||(a[2]=e.withModifiers((()=>{}),["prevent"])),onClick:a[3]||(a[3]=e=>o.value=!1)},null,32),e.createElementVNode("view",{class:"box-any",onTouchmove:a[4]||(a[4]=e.withModifiers((()=>{}),["prevent"]))},[e.createElementVNode("view",{class:"title-left"},[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"back-font"},"NU护理单元隐私信息保护政策")),r.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"back-font"},"NU护理单元用户服务协议")):e.createCommentVNode("",!0)]),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0})),r.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(N.value?"opacity: 1":"opacity: 0;z-index: -1")},[e.createElementVNode("text",null,"点击头像更换"),e.createElementVNode("view",{class:"avatorimg",onClick:f},[e.createElementVNode("image",{src:w.value.avatar?w.value.flag?w.value.avatar:b.value+"/sys/common/static/"+w.value.avatar:"/static/shouye/mrtx.png",mode:"aspectFill"},null,8,["src"])]),(null==(n=w.value)?void 0:n.flag)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"butft",onClick:a[5]||(a[5]=e=>{return t=w.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);l("log","at pages/watch/settings/settings.vue:178",t),w.value.avatar=t.message,w.value.flag=!1,E()},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}});var t})}," 确定 ")):e.createCommentVNode("",!0)],4),N.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",onClick:k})):e.createCommentVNode("",!0)]),v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bg-mask"},[e.createElementVNode("view",{onClick:a[6]||(a[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(y.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"small-select",style:e.normalizeStyle(b.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();g(l).then((e=>{t.captcha=e.message,t.checkKey=l,h(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),O().then((e=>{uni.setStorageSync("saveTree0",e),Y().then((e=>{uni.setStorageSync("saveTree1",e)})),R().then((e=>{uni.setStorageSync("saveTree2",e)})),setTimeout((()=>{uni.showToast({title:"切换机构成功",icon:"success",duration:2e3})}),200)}))):uni.showToast({title:e.message,icon:"none",duration:2e3})}))})),v.value=!1})(t)},e.toDisplayString(t.departName),13,["onClick"])))),256))])])])])):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ed465ccb"]]),ne="/static/index/card/arrow.png",oe="/static/index/card/alarm.png",re="/static/index/card/bj.png",ce="/static/index/card/zw.png",se="/static/index/newindex/wendu/0.png",ue="/static/index/newindex/wendu/1.png",de="/static/index/newindex/leftmenu/carmera.png",me="/static/index/card/zanw.png",ve="/static/index/newindex/leftmenu/iconleft.png",pe="/static/index/newindex/leftmenu/iconright.png",ge="/static/index/newindex/leftmenu/openleft.png",he="/static/index/procurement/x.png",ye="/static/index/warehouse/procurement/picking/addphoto.png",we=e=>p({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"}),Ne=e=>p({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"}),fe=e=>p({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"}),ke=e=>p({url:`${uni.getStorageSync("serverUrl")}/services/directivePlan/queryCountByType?nuId=${e.nuId}&elderId=${e.elderId}`,method:"get"}),Ee=e=>p({url:`${uni.getStorageSync("serverUrl")}/services/directivePlanInstant/queryAll?nuId=${e.nuId}&elderId=${e.elderId}`,method:"get"}),Ve=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderList`,method:"get",data:e}),xe=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderInfoList`,method:"get",data:e}),be=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/startOrder`,method:"post",data:e}),Se=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/endOrder`,method:"post",data:e}),Be=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/editSubMp4`,method:"post",data:e}),Te=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/editSubPicPath`,method:"post",data:e}),Ce=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/employee/queryEmpList`,method:"get",data:e}),De=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/transferOrder`,method:"post",data:e}),ze=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/assistOrder`,method:"post",data:e}),Ie=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/generateInstant`,method:"post",data:e}),Fe=s(e.defineComponent({__name:"index",props:{isShow:{type:Boolean,required:!0}},emits:["swip","gospecial"],setup(t,{emit:a}){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(0),s=e=>{var t;"Y"!=(null==(t=$e.value)?void 0:t.izStart)||1!=e?Ce({id:uni.getStorageSync("userInfo").id}).then((t=>{c.value=t.result,l("log","at pages/NursingNew/component/index.vue:626",t),c.value.forEach((e=>{e.flag=!1})),r.value=e})):uni.showToast({title:"服务中不能转单!",icon:"none"})},u=e.ref(!1),d=()=>{m.value=r.value,1==r.value&&(v.value="确认转单执行?"),2==r.value&&(v.value="确认协助执行?")},m=e.ref(0),v=e.ref("");e.ref([]);const p=e=>{o.nuId=e,l("log","at pages/NursingNew/component/index.vue:728",o),Ve(o).then((e=>{e.result.records.length>0?g(0,e.result.records[0]):$e.value={}}))},g=(e,t)=>{xe({mainId:t.id}).then((e=>{l("log","at pages/NursingNew/component/index.vue:739",e),e.result.length>0?$e.value=e.result[0]:$e.value={}}))},h=e.ref(0),y=e.ref(!1),w=e.ref(0),N=e.ref([]),f=e.ref({}),k=(e,t,l)=>{1==l&&e.manuallyPicPath?(N.value=e.manuallyPicPath.split(","),N.value=N.value.filter((e=>""!==e))):2==l&&e.manuallyMp4Path?(N.value=e.manuallyMp4Path.split(","),N.value=N.value.filter((e=>""!==e))):3==l&&e.tplinkPath?(N.value=e.tplinkPath.split(","),N.value=N.value.filter((e=>""!==e))):N.value=[],f.value=e,w.value=l,y.value=!0},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",fileType:2==w.value?"video":"image",formData:{biz:l+"/"+a+(1==w.value?"/fwxm/manuallyPicPath":"/fwxm/manuallyMp4Path")},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);N.value.push(t.message),uni.hideLoading()},fail:()=>{uni.hideLoading(),uni.showToast({title:"上传失败",icon:"none"})}})},V=()=>{let e="";N.value.forEach((t=>{e+=t+","})),1==w.value?Te({id:f.value.id,manuallyPicPath:e}).then((e=>{e.success&&(w.value=0,y.value=!1,g(0,{id:$e.value.mainId}))})):Be({id:f.value.id,manuallyMp4Path:e}).then((e=>{e.success&&(w.value=0,y.value=!1,g(0,{id:$e.value.mainId}))}))};e.ref(null);const x=e.ref(0),b=e.ref(!1),S=e.ref(""),T=(e,t)=>{var l,a,i,n,o,r,c,s;if(1==t){if("Y"==(null==(l=$e.value)?void 0:l.izStart)){switch(e){case 0:if(""==(null==(a=$e.value)?void 0:a.serviceContent))return;S.value=null==(i=$e.value)?void 0:i.serviceContent;break;case 1:if(""==(null==(n=$e.value)?void 0:n.mp3File))return;S.value=null==(o=$e.value)?void 0:o.mp3File;break;case 2:if(""==(null==(r=$e.value)?void 0:r.mp4File))return;S.value=null==(c=$e.value)?void 0:c.mp4File}b.value=!0}}else if("Y"==(null==(s=$e.value)?void 0:s.izStart))switch(e){case 3:k($e.value,0,1);break;case 4:k($e.value,0,2)}},C=e.ref([]),D=e.ref(!1),z=e.ref(0),I=a,F=e=>{var t,l,a;z.value=e;let i=Ue(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),p(i.nuId),U(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({}),U=(e,t)=>{ke({nuId:e,elderId:t}).then((e=>{_.value=e.result}))},M=e.ref(0),$=e.ref(-1),L=e.ref(0),j=e.ref({}),P=(e,t)=>{Ee({nuId:e,elderId:t}).then((e=>{j.value=e.result,A(M.value)}))},A=e=>{M.value=e,0==e&&(L.value=j.value.care),1==e&&(L.value=[]),2==e&&(L.value=j.value.logistics),l("log","at pages/NursingNew/component/index.vue:996",L.value)},q=e.ref(!1),O=e.ref(""),Y=()=>{if($.value<0)return;let e=0==M.value?1:1==M.value?2:4,t={id:L.value[$.value].id,triggerMode:1,orderType:e};l("log","at pages/NursingNew/component/index.vue:1017",t),Ie(t).then((e=>{e.success?Ae.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 J=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=>{"N"==e.izStart&&(l("log","at pages/NursingNew/component/index.vue:1044",e),be({id:e.id}).then((t=>{l("log","at pages/NursingNew/component/index.vue:1046",t),t.success&&(e.izStart="Y")})))},Z=e=>{"Y"==$e.value.izStart&&"N"==$e.value.izFinish&&(h.value=3)};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:"/static/index/newindex/rightmenu/1.png",name:"转单执行"},{url:"/static/index/newindex/rightmenu/2.png",name:"协助执行"}]);e.ref(K("/static/index/newindex/leftmenu","left",5,"png",0,!1)),e.ref(K("/static/index/newindex/huli","care",9,"png",0,!1));const te=K("/static/index/newindex/curve","curve_",9,"png",1,!1),le=e.ref([...te,...[...te].reverse()]),ae=K("/static/index/newindex/curve","breathe_",9,"png",1,!1);e.ref([...ae,...[...ae].reverse()]);const ie=e.ref(!1),we=e.ref(""),Ne=e.ref(""),fe=e.ref(""),Fe=e.ref(""),_e=()=>{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()];Fe.value=a;const i=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0");fe.value=`${i}.${n}.${o}`};e.onMounted((()=>{ie.value=!1,setTimeout((()=>{ie.value=!0}),50),we.value=uni.getStorageSync("realname"),J.value=0,_e(),setInterval(_e,1e3),Q.value=!0,Me()}));const Ue=e=>C.value.filter((t=>Number(t.areaFlag)-1==e)),Me=()=>{B().then((e=>{C.value=e.result.records,Ue(0).forEach(((e,t)=>{e.nuId===uni.getStorageSync("NUall").nuId&&(z.value=t,F(z.value))}))}))},$e=e.ref({});e.ref(!1);const Le=()=>{uni.navigateTo({url:"/pages/watch/full"})},je=["00","05","10","15","20","25","30","35","40","45","50","55"];e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:je.map((e=>({tagName:e,directiveName:""})))}))));const Pe=()=>{I("gospecial",1)},Ae=e.ref(!1),qe=e.ref([]),Oe=e.ref([]),Ye=e.ref(!1);const Re=e.ref(-1),We=e.ref(""),Je=e.ref(2.2),Qe=(e,t)=>{Re.value=t,We.value=function(e){switch(e){case"稳定":return"标准情绪";case"标准":return"标准体重女100-120120-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),Je.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),Oe.value=[],qe.value=[]};return(t,a)=>{var o,k,B,C,I,U,j,P,J,K,te,ae,we,ke,Ee,Ve,xe,be,Be,Te,Ce,Ie,_e,Me,je,Ge,Xe,He,Ze,Ke,et,tt,lt,at,it,nt,ot,rt,ct,st,ut,dt,mt,vt,pt,gt,ht,yt,wt,Nt;const ft=e.resolveComponent("donghua"),kt=e.resolveComponent("tanchuang"),Et=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other",style:e.normalizeStyle(ie.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"right-container-title-nav"},[e.createElementVNode("view",{class:"title-card",onClick:Pe},[e.createElementVNode("view",{class:"card-top"},[e.createElementVNode("view",{class:"card-top-left"},e.toDisplayString(null==(o=_.value)?void 0:o.hllFinishedTotal),1),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ne})]),e.createElementVNode("view",{class:"card-spec"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"line-gray"},e.toDisplayString(null==(k=_.value)?void 0:k.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:Pe},[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:ne})]),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:Pe},[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:ne})]),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:a[2]||(a[2]=e=>Ae.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:ne})])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:oe}),e.createElementVNode("view",{class:"bottom-font"}," 即时 ")]),Ae.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bianj"},[e.createElementVNode("image",{src:re,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["jszl guodu",Ae.value?"":"jsh0"]),onClick:a[1]||(a[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(l==M.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(L.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass([l==$.value?"act":"","cdk"]),onClick:e=>{var t;(t=l)>-1&&t==$.value?$.value=-1:$.value=t}},[e.createElementVNode("image",{src:$.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==L.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:ce,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:a[0]||(a[0]=e.withModifiers((e=>Ae.value=!1),["stop"]))},"取消"),$.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:Y},"确定")):e.createCommentVNode("",!0)])],2)])]),Ae.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[3]||(a[3]=e=>Ae.value=!1)})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"photo-father"},[e.createElementVNode("view",{class:"juzhong",style:e.normalizeStyle([{"margin-left":"-30rpx"},(null==(B=$e.value)?void 0:B.startTime)?{}:{filter:"grayscale(60%)"}])},[e.createVNode(ft,{width:"1300rpx",height:"900rpx",links:le.value,playing:Q.value,loop:!0,interval:120},null,8,["links","playing"])],4),e.createElementVNode("view",{class:"weight-time"},[(null==(C=$e.value)?void 0:C.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:""},e.toDisplayString(null==(I=$e.value)?void 0:I.startTime.slice(11,16))+" - "+e.toDisplayString(null==(U=$e.value)?void 0:U.endTime.slice(11,16)),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{style:{height:"5vw"}},null,512),[[e.vShow,!(null==(j=$e.value)?void 0:j.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==w.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:{"z-index":"1"}},e.toDisplayString("N"==(null==(P=$e.value)?void 0:P.izStart)?"待执行":"执行中"),1)):e.createCommentVNode("",!0)],512),[[e.vShow,null==(J=$e.value)?void 0:J.startTime]])]),e.createVNode(kt,{show:3==h.value,font:"是否结束服务指令?",onBack:a[4]||(a[4]=e=>h.value=0),onRight:a[5]||(a[5]=e=>{Se({id:$e.value.id}).then((e=>{e.success&&(h.value=0,p(uni.getStorageSync("nuId")))}))})},null,8,["show"]),0==w.value?(e.openBlock(),e.createElementBlock("image",{key:0,class:"big-img",style:e.normalizeStyle((null==(K=$e.value)?void 0:K.previewFile)?"":"width: 450rpx"),src:(null==(te=$e.value)?void 0:te.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(ae=$e.value)?void 0:ae.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==(we=$e.value)?void 0:we.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"server-name"},e.toDisplayString(null==(ke=$e.value)?void 0:ke.directiveName),1)):e.createCommentVNode("",!0),(null==(Ee=$e.value)?void 0:Ee.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==w.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($e.value.categoryName),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),(null==(Ve=$e.value)?void 0:Ve.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==(xe=$e.value)?void 0:xe.izStart)?"start-button":"end-button"),onClick:a[6]||(a[6]=e=>H($e.value))}," 开始服务 ",2),[[e.vShow,null==(be=$e.value)?void 0:be.startTime]])]),e.createElementVNode("view",{style:{width:"240rpx",height:"90rpx"}},[e.createElementVNode("view",{class:e.normalizeClass("Y"==(null==(Be=$e.value)?void 0:Be.izStart)&&"N"==(null==(Te=$e.value)?void 0:Te.izFinish)?"start-button":"end-button"),onClick:a[7]||(a[7]=e=>Z($e.value))}," 结束服务 ",2)])])):e.createCommentVNode("",!0),r.value>0?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:a[8]||(a[8]=e=>r.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(r.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==r.value?"转单执行":"协助执行"),1)]),r.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(c.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{class:"bottom-title",key:l,onClick:e=>((e,t)=>{if(1==r.value&&(e.flag=!e.flag,c.value.forEach(((e,l)=>{l!=t&&(e.flag=!1)})),u.value=e.flag),2==r.value){e.flag=!e.flag;let t=[];c.value.forEach(((e,l)=>{e.flag&&t.push(1)})),0==t.length?u.value=!1:u.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?i.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"}},[u.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:d},"确定")):e.createCommentVNode("",!0),u.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(kt,{show:m.value>0,font:v.value,onBack:a[9]||(a[9]=e=>m.value=0),onRight:a[10]||(a[10]=e=>(()=>{if(1==m.value){let e={};c.value.forEach(((t,l)=>{t.flag&&(e=t)}));let t={mainId:$e.value.mainId,employeeId:e.id,employeeName:e.name,beforeBy:$e.value.employeeId,beforeByName:$e.value.employeeName},l=uni.getStorageSync("nuId");De(t).then((e=>{e.success&&(p(l),u.value=!1,m.value=0,r.value=0)}))}if(2==m.value){let e=uni.getStorageSync("userInfo"),t=e.id+",",a=e.realname+",";c.value.forEach(((e,l)=>{e.flag&&(t+=e.id+",",a+=e.name+",")})),t=t.slice(0,-1),a=a.slice(0,-1);let i={mainId:$e.value.mainId,optIds:t,optNames:a,beforeBy:$e.value.employeeId,beforeByName:$e.value.employeeName};l("log","at pages/NursingNew/component/index.vue:714",i),ze(i).then((e=>{e.success&&(g(0,{id:$e.value.mainId}),u.value=!1,m.value=0,r.value=0)}))}})())},null,8,["show","font"])],4),[[e.vShow,r.value>0]])]),e.withDirectives(e.createElementVNode("view",{class:"left-menu"},[e.createElementVNode("view",{style:{margin:"30rpx 0"},onClick:a[11]||(a[11]=e=>T(0,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(Ce=$e.value)?void 0:Ce.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:a[12]||(a[12]=e=>T(1,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(Ie=$e.value)?void 0:Ie.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:a[13]||(a[13]=e=>T(2,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(_e=$e.value)?void 0:_e.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=>T(t,2)},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle("Y"==(null==(a=$e.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==(Me=$e.value)?void 0:Me.startTime]]),1==(null==(je=$e.value)?void 0:je.optType)?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:1,class:"right-menu"},[e.createElementVNode("view",{class:"zhezhao-top",onClick:a[14]||(a[14]=e=>G.value-=115)}),e.createElementVNode("view",{class:"zhezhao-bottom",onClick:a[15]||(a[15]=e=>G.value+=115)}),e.createElementVNode("image",{class:"top-img",src:"/static/index/newindex/rightmenu/top.png",onClick:a[16]||(a[16]=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:a[17]||(a[17]=e=>s(1))},[e.createElementVNode("view",{class:"white-circle",style:e.normalizeStyle("Y"==(null==(Ge=$e.value)?void 0:Ge.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:a[18]||(a[18]=e=>s(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:a[19]||(a[19]=e=>G.value>55*ee.value.length?G.value=55*ee.value.length:G.value+=115)},null,8,["src"])],512)),[[e.vShow,null==(Xe=$e.value)?void 0:Xe.startTime]]):e.createCommentVNode("",!0)],4),e.createVNode(Et,{show:b.value,font:S.value,onClose:a[20]||(a[20]=e=>b.value=!1),icons:!1,style:{left:"44%"}},null,8,["show","font"]),e.createVNode(Et,{show:q.value,font:O.value,onClose:a[21]||(a[21]=e=>q.value=!1),style:{left:"44%"}},null,8,["show","font"]),e.createElementVNode("view",{class:"index-content-right",style:e.normalizeStyle(ie.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(Fe.value),1),e.createElementVNode("view",{class:""},e.toDisplayString(fe.value),1)])]),e.createElementVNode("view",{class:"right-container-tem"},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{class:"right-container-tem-img",src:se}),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:ue}),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(Ue(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))])]),Ye.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[22]||(a[22]=e=>{Ye.value=!1,Re.value=-1})})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"right-bottom"},[e.createElementVNode("view",{class:"bottom-title"},[e.createElementVNode("image",{class:"bottom-carmera",src:de,onClick:Le}),e.createElementVNode("view",{class:"blue-button",onClick:a[25]||(a[25]=e=>{uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&(qe.value=[],Oe.value=[],Ye.value=!0,W(uni.getStorageSync("nuId"),uni.getStorageSync("elderId")).then((e=>{e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&qe.value.push(e)})),e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&Oe.value.push(e)})),l("log","at pages/NursingNew/component/index.vue:1255",e.result)})))})},[e.createTextVNode(" 长者标签 "),e.withDirectives(e.createElementVNode("view",{class:"jb"},[e.createElementVNode("image",{src:re,mode:"aspectFill"})],512),[[e.vShow,Ye.value]]),e.createElementVNode("view",{class:e.normalizeClass(["zzbq guodu",Ye.value?"":"zzh0"]),onClick:a[23]||(a[23]=e.withModifiers((()=>{}),["stop"]))},[Ye.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(qe.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>Qe(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==qe.value.length?(e.openBlock(),e.createElementBlock("image",{key:0,src:me,mode:"aspectFill",style:{width:"5.4vw",height:"5.4vw","margin-top":"-0.7vw","margin-left":"-1vw"}})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),Ye.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(Oe.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>Qe(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==Oe.value.length?(e.openBlock(),e.createElementBlock("image",{key:0,src:me,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",Ye.value&&-1!=Re.value?"":"zzh0"]),onClick:a[24]||(a[24]=e.withModifiers((()=>{}),["stop"]))},[e.withDirectives(e.createElementVNode("view",{class:"jbsmall",style:e.normalizeStyle({left:`${Je.value}vw`})},[e.createElementVNode("image",{src:re,mode:"aspectFill"})],4),[[e.vShow,-1!=Re.value]]),e.createTextVNode(" "+e.toDisplayString(-1==Re.value?"":We.value),1)],2)])]),e.createElementVNode("image",{class:"big-older",src:`/static/index/newindex/leftmenu/${(null==(He=uni.getStorageSync("NUall").elderInfo)?void 0:He.name)?"older":"nopeople"}.png`},null,8,["src"]),e.createElementVNode("view",{class:"name-weight"},e.toDisplayString((null==(Ze=uni.getStorageSync("NUall").elderInfo)?void 0:Ze.name)?null==(Ke=uni.getStorageSync("NUall").elderInfo)?void 0:Ke.name:"暂无长者"),1),(null==(et=uni.getStorageSync("NUall").elderInfo)?void 0:et.name)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"message-view"},[e.createTextVNode(e.toDisplayString(null==(tt=uni.getStorageSync("NUall").elderInfo)?void 0:tt.sex)+" ",1),e.createElementVNode("view",{class:"message-shu"}),e.createElementVNode("view",{style:{"font-weight":"600"}},e.toDisplayString(R(null==(lt=uni.getStorageSync("NUall").elderInfo)?void 0:lt.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==(at=uni.getStorageSync("NUall").elderInfo)?void 0:at.checkinTime.replace(/-/g,".")),1)])):e.createCommentVNode("",!0),(null==(it=uni.getStorageSync("NUall").elderInfo)?void 0:it.name)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"message-bottom"},[e.createElementVNode("view",{class:"bottom-tags"},e.toDisplayString(null==(nt=uni.getStorageSync("NUall").elderInfo)?void 0:nt.yblxName),1),e.withDirectives(e.createElementVNode("view",{class:"bottom-tags"},e.toDisplayString(null==(ot=uni.getStorageSync("NUall").elderInfo)?void 0:ot.sndjName),513),[[e.vShow,null==(rt=uni.getStorageSync("NUall").elderInfo)?void 0:rt.sndjName]]),e.createElementVNode("view",{class:"bottom-tags"},e.toDisplayString(null==(ct=uni.getStorageSync("NUall").elderInfo)?void 0:ct.jfztName),1)])):e.createCommentVNode("",!0)])],4),e.withDirectives(e.createElementVNode("view",{class:"fixed-card",style:e.normalizeStyle(D.value?{}:{right:"-33vw"})},[e.createElementVNode("view",{class:"fixed-card-left"},[0==w.value?(e.openBlock(),e.createElementBlock("image",{key:0,class:"card-left-img",style:e.normalizeStyle((null==(st=$e.value)?void 0:st.previewFile)?"":"width: 450rpx"),src:(null==(ut=$e.value)?void 0:ut.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(dt=$e.value)?void 0:dt.previewFile):"/static/index/newindex/wendu/2.png",mode:"aspectFill"},null,12,["src"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:""},e.toDisplayString(null==(mt=$e.value)?void 0:mt.directiveName),1)]),e.createElementVNode("view",null,[(null==(vt=$e.value)?void 0:vt.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"big-time"},e.toDisplayString(null==(pt=$e.value)?void 0:pt.startTime.slice(11,16))+" - "+e.toDisplayString(null==(gt=$e.value)?void 0:gt.endTime.slice(11,16)),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"icon-people"},[e.createElementVNode("image",{class:"people-img",src:ve}),1==$e.value.optType?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"white-space":"nowrap"}},"单人执行")):e.createCommentVNode("",!0),2==$e.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:pe}),1==$e.value.optType?(e.openBlock(),e.createElementBlock("text",{key:2},e.toDisplayString($e.value.employeeName),1)):e.createCommentVNode("",!0),2==$e.value.optType?(e.openBlock(),e.createElementBlock("text",{key:3},e.toDisplayString($e.value.optNames),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"icon-button"},[e.createElementVNode("view",{class:e.normalizeClass("N"==(null==(ht=$e.value)?void 0:ht.izStart)?"button-right":"button-left"),onClick:a[26]||(a[26]=e=>H($e.value))}," 开始服务 ",2),e.createElementVNode("view",{class:e.normalizeClass("Y"==(null==(yt=$e.value)?void 0:yt.izStart)&&"N"==(null==(wt=$e.value)?void 0:wt.izFinish)?"button-right":"button-left"),onClick:a[27]||(a[27]=e=>Z($e.value))}," 结束服务 ",2)])]),e.createElementVNode("view",{class:"left-open",onClick:a[28]||(a[28]=e=>D.value=!D.value)},[e.createElementVNode("image",{style:e.normalizeStyle(D.value?{}:{transform:"rotate(180deg)"}),class:"open-img",src:ge},null,4)]),w.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[29]||(a[29]=e=>w.value=0)})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(y.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(1==w.value?"照片":"录像"),1)]),w.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(N.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:a,onClick:e=>((e,t,a)=>{if(1==w.value){let e=[];a.forEach((t=>{e.push(i.value+t),l("log","at pages/NursingNew/component/index.vue:866",i.value+t)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}})(0,a,N.value)},[1==w.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"]),w.value>0&&"Y"==f.value.izStart&&"N"==f.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{var t;h.value=1,t=a,x.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:he,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),2==w.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"+a,src:n.value+t,direction:"180",mode:"aspectFill"},null,8,["id","src"]),w.value>0&&"Y"==f.value.izStart&&"N"==f.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>N.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:he,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128)),w.value>0&&"Y"==f.value.izStart&&"N"==f.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:a[30]||(a[30]=e=>{1==w.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=>{E(e.tempFilePath)}})}}):uni.chooseVideo({sourceType:["camera"],success:e=>{uni.showLoading({title:"正在上传..."}),uni.compressVideo({src:e.tempFilePath,quality:"medium",success:e=>{E(e.tempFilePath)}})}})})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:ye}),e.createElementVNode("view",{style:{color:"#78B1EB"}}," 点击上传"+e.toDisplayString(1==w.value?"图片":"录像"),1)])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),w.value>0&&"Y"==f.value.izStart&&"N"==f.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,w.value>0]]),e.createVNode(kt,{show:1==h.value,font:"是否删除此图片",onBack:a[31]||(a[31]=e=>h.value=0),onRight:a[32]||(a[32]=e=>(N.value.splice(x.value,1),void(h.value=0)))},null,8,["show"])],4),[[e.vShow,null==(Nt=$e.value)?void 0:Nt.startTime]])],64)}}}),[["__scopeId","data-v-423e677b"]]),_e="/static/nomessage.png",Ue=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),g=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),V=e.ref(!1),x=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=pe.value.cid,B.value.type=u.value[0].type,we(B.value).then((e=>{200==e.code&&(T.value=e.result.records,S.value=!0)}))),2==w.value&&(B.value.cid=ge.value.cid,B.value.type=d.value[0].type,we(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,Ne(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?Ne(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})):fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records,l("log","at pages/NursingNew/component/equipment.vue:764","aaaa",T.value))})));z.value=t>1?1:0,D.value=t,B.value.pageNo=1,T.value=[],B.value.type=e,we(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?Ne(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})):fe(B.value).then((e=>{200==e.code&&(T.value=e.result.records,l("log","at pages/NursingNew/component/equipment.vue:805","aaaa",T.value))}))):B.value.pageNo>1&&(B.value.pageNo--,T.value=[],"0"==B.value.type?Ne(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})):fe(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++,we(B.value).then((e=>{200==e.code&&(T.value=e.result.records)}))):B.value.pageNo>1&&(B.value.pageNo--,T.value=[],we(B.value).then((e=>{200==e.code&&(T.value=e.result.records)})))},_=()=>{var e,t;L(),1==w.value?(e=pe.value.cid,t=pe.value.address,p({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)=>p({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/waterReset?cid=${e}&address=${t}`,method:"get"}))(ge.value.cid,ge.value.address).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)}))},U=e=>{L(),1==w.value?((e,t,l)=>p({url:`${uni.getStorageSync("serverUrl")}/api/iot/electricityMeter/eleControl?cid=${e}&address=${t}&type=${l}`,method:"get"}))(pe.value.cid,pe.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)=>p({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/waterControl?cid=${e}&address=${t}&type=${l}`,method:"get"}))(ge.value.cid,ge.value.address,e).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),setTimeout((()=>{Se()}),4e3)})))},M=()=>{var e,t,l;L(),1==w.value?(t=pe.value.cid,l=pe.value.address,p({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)=>p({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/waterRead?cid=${e}&address=${t}`,method:"get"}))(ge.value.cid,ge.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,p({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)}))},$=()=>{var e;L(),1==w.value?(e=pe.value.id,p({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}),l("log","at pages/NursingNew/component/equipment.vue:976","!1",e),setTimeout((()=>{Se()}),4e3)})):2==w.value?(e=>p({url:`${uni.getStorageSync("serverUrl")}/api/iot/water/baoxiu`,method:"post",data:{id:e}}))(ge.value.id).then((e=>{uni.showToast({title:e.message,icon:"none",duration:1500,mask:!1}),l("log","at pages/NursingNew/component/equipment.vue:990","!1",e),setTimeout((()=>{Se()}),4e3)})):3==w.value?(e=>p({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=>p({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)}))},L=()=>{k.value=!1,E.value=!1,x.value=!1,V.value=!1,b.value=!1,S.value=!1,o.value=!1,h("canback",!1)},j=e=>{g.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?(g.value=e,Te(),n.value=2,3!=w.value?e?(x.value=!0,h("canback",!0)):"1"===pe.value.relayState?(E.value=!0,h("canback",!0)):(V.value=!0,h("canback",!0)):(x.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 de(e){re=!1,ae=le.value,ie=e,ne=ce(),oe=300,re=!0,ve(me)}function me(){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?ve(me):re=!1}function ve(e){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,16)}const pe=e.ref({eleValue:"",address:"",readTime:"",relayState:"0",cid:0,id:0}),ge=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(),Ve(),K.value=!1,setTimeout((()=>{K.value=!0}),50)}));const ye=()=>{var e;if(uni.$emit("smallmonitor:isshow",!1),w.value=null==(e=Ee.value[N.value])?void 0:e.typeNumber,1===w.value){pe.value=Ee.value[N.value];const e=pe.value.eleValue;"1"===pe.value.relayState?R.value=[J.value[1],J.value[2]]:R.value=[J.value[0],J.value[2]],de(Number(e))}else if(2===w.value){ge.value=Ee.value[N.value];const e=ge.value.waterValue;"1"===ge.value.relayState?W.value=[J.value[1],J.value[2]]:W.value=[J.value[0],J.value[2]],de(Number(e))}else if(3===w.value){he.value=Ee.value[N.value],l("log","at pages/NursingNew/component/equipment.vue:1390","啥啊",he.value);const e=he.value.temperature;de(Number(e))}else w.value||(ke.value=Ee.value[N.value],R.value=[J.value[0],J.value[2]])},ke=e.ref({deviceName:"",deviceStatus:"1",nuId:"",nuName:"",sn:"",reportingTime:"",id:0}),Ee=e.ref([]),Ve=()=>{setTimeout((()=>{N.value=0,ye()}),500)},xe=e.ref(!1),be=e.ref({temperature:"",humidity:""}),Se=()=>{p({url:`${uni.getStorageSync("serverUrl")}/api/iot/common/list?nuId=${uni.getStorageSync("nuId")}`,method:"get"}).then((e=>{if(!e.result.cameraInfoEntityList.length)return void(xe.value=!0);if(Ee.value=[],null!=e.result.cameraInfoEntityList&&e.result.cameraInfoEntityList.forEach(((e,t)=>{e.typeNumber=0,e.lookName="摄像头"+(t+1),e.donghuapian=Z.value[0].url,Ee.value.push(e)})),null!=e.result.electricityMeterEntityList&&e.result.electricityMeterEntityList.forEach(((e,t)=>{e.typeNumber=1,e.lookName="电表"+(t+1),e.donghuapian=Z.value[1].url,Ee.value.push(e)})),null!=e.result.waterMeterEntityList&&e.result.waterMeterEntityList.forEach(((e,t)=>{e.typeNumber=2,e.lookName="水表"+(t+1),e.donghuapian=Z.value[2].url,Ee.value.push(e)})),null!=e.result.humidDeviceEntityList&&e.result.humidDeviceEntityList.forEach(((e,t)=>{e.typeNumber=3,e.lookName="温度计"+(t+1),e.donghuapian=Z.value[3].url,Ee.value.push(e),be.value.temperature=e.temperature,be.value.humidity=e.humidity})),3===w.value){he.value=JSON.parse(JSON.stringify(Ee.value[N.value]));const e=he.value.temperature;de(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 xe.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=>L())},[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:_e}),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:_e}),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:_e}),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=>M())},"确定",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=>U("10"))},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要"+e.toDisplayString(1===w.value?"拉闸":2===w.value?"开阀":"")+"吗 ",1)])):e.createCommentVNode("",!0),x.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=>x.value=!1)},"取消 ",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[11]||(l[11]=e=>$())},"确定",2)]),e.createElementVNode("view",{class:"card-font"}," 确定要报修吗 ")],4)):e.createCommentVNode("",!0),V.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=>V.value=!1)},"取消 ",2),e.createElementVNode("view",{class:e.normalizeClass(o.value?"buttontarget button":"button-white"),onClick:l[14]||(l[14]=e=>U("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||x.value||V.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:se}),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:ue}),e.createElementVNode("text",{class:"right-container-tem-text"},e.toDisplayString(be.value.humidity?be.value.humidity:"-")+"%",1)]),e.createElementVNode("image",{class:"right-icons-img",src:"/static/index/undericons/man.png"},null,8,["src"]),e.createElementVNode("view",null,e.toDisplayString(te.value),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(Ee.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass([{zerotarget:0===n.value&&g.value===l},"menu"]),style:e.normalizeStyle({backgroundColor:0===n.value&&g.value===l?"#ddf0ff":""}),onClick:e=>{N.value=l,g.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(ke.value.nuId?ke.value.nuId:""),1),e.createElementVNode("view",{class:"gray-bgc"},e.toDisplayString(ke.value.nuName?ke.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"==ke.value.deviceStatus?"在线":"离线"),1),e.createElementVNode("view",{class:"status-font"}," SN"+e.toDisplayString(ke.value.sn),1),e.createElementVNode("view",{class:"status-time"}," 设备名称:"+e.toDisplayString(ke.value.deviceName?ke.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&&g.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&g.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&&g.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(pe.value.eleValue?pe.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"==pe.value.relayState?"合闸":"拉闸"),1),e.createElementVNode("view",{class:"status-font"}," SN"+e.toDisplayString(pe.value.address),1),e.createElementVNode("view",{class:"status-time"}," 上次抄表时间:"+e.toDisplayString(pe.value.readTime?pe.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=>j(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:1===n.value&&g.value===l&&!S.value}]),style:e.normalizeStyle({backgroundColor:1!==n.value||g.value!==l||S.value?"":"#ddf0ff"})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:1===n.value&&g.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&&g.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&g.value===l?"#ddf0ff":""})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&g.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"===pe.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(ge.value.waterValue?ge.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"==ge.value.relayState?"关阀":"开阀"),1),e.createElementVNode("view",{class:"status-font"}," SN"+e.toDisplayString(ge.value.address),1),e.createElementVNode("view",{class:"status-time"}," 上次抄表时间:"+e.toDisplayString(ge.value.readTime?ge.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=>j(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:1===n.value&&g.value===l&&!S.value}]),style:e.normalizeStyle({backgroundColor:1!==n.value||g.value!==l||S.value?"":"#ddf0ff"})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:1===n.value&&g.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&&g.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&g.value===l?"#ddf0ff":""})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&g.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"===ge.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=>j(l)},[e.createElementVNode("view",{class:e.normalizeClass(["left-ball",{firsttarget:1===n.value&&g.value===l&&!S.value}]),style:e.normalizeStyle({backgroundColor:1!==n.value||g.value!==l||S.value?"":"#ddf0ff"})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:1===n.value&&g.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&&g.value===l}]),style:e.normalizeStyle({backgroundColor:2===n.value&&g.value===l?"#ddf0ff":""})},[e.createVNode(a,{width:"50rpx",height:"50rpx",links:t,style:{width:"50rpx",height:"50rpx"},playing:2===n.value&&g.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-08875682"]]),Me="/static/index/newruler/jiao.png",$e="/static/index/newruler/monitor_1.png",Le="/static/index/sharelogo.png",je=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/deleteDirective`,method:"post",data:e}),Pe=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/logistics/directive/editDirective`,method:"post",data:e});function Ae(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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/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:Ae("/static/index/diet","drainage_",6,"png",1,!1)}],levle:"1",title:"5 排泄照料",key:"1902560510768549889"}],Oe=300,Ye=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,Re.value?Re.value--:(it(),V.value=1,x.value=1,e.nextTick((()=>{x.value=0,V.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=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],g=["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),V=e.ref(678),x=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([]),U=e.ref(0);const M=()=>{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);Qe.value[re.value.index0].children[re.value.index1].id?je(Qe.value[re.value.index0].children[re.value.index1]).then((e=>{$()})):$()},$=()=>{let e=JSON.parse(JSON.stringify(Qe.value[ue.value.index0].children[ue.value.index1]));be.value=[re.value.index0,re.value.index1];let t=Qe.value[ue.value.index0].children[ue.value.index1].tagName;Qe.value[ue.value.index0].children[ue.value.index1]={directiveName:"",tagName:t};let l=Qe.value[be.value[0]].children[be.value[1]].tagName;Qe.value[be.value[0]].children[be.value[1]]=e,Qe.value[be.value[0]].children[be.value[1]].tagName=l;let a=Qe.value[be.value[0]].children[be.value[1]].startTime,i=Qe.value[be.value[0]].children[be.value[1]].endTime,n=Qe.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");Qe.value[be.value[0]].children[be.value[1]].startTime=`${String(d)}:${g(u)}`,Qe.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};We(h);let y=Qe.value[re.value.index0].children[re.value.index1];y.positioning=re.value.index0,y.positioningLong=re.value.index1,Pe(y).then((e=>{e.success&&He()}))},L=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"})},j=e.ref(!1),P=()=>{W.value=!1,d.value=!1,I.value?M():Qe.value[re.value.index0].children[re.value.index1].directiveName?(ue.value.index0=re.value.index0,ue.value.index1=re.value.index1,I.value=!0):(j.value=!0,setTimeout((()=>{j.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,Qe.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)):(j.value=!0,setTimeout((()=>{j.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)=>{je(Qe.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)},Ve=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)},xe=()=>{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,p({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},p({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 M();let a=!1;if((null==(t=Qe.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 M();ue.value.index0=-1,ue.value.index1=-1,I.value=!1;let t="打包",l="";const i=Number(re.value.index0),n=Number(Qe.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?Qe.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:Qe.value[re.value.index0].children[re.value.index1].tagName,mp3File:e.mp3File,netMp3File:e.netMp3File,mp4File:e.mp4File,netMp4File:e.netMp4File,serviceContent:e.serviceContent};Qe.value[re.value.index0].children[re.value.index1]=u;let d={index0:re.value.index0,index1:re.value.index1};return We(d),void(a?Pe(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,p({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(Qe.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")}`,g=`${String(d)}:${String(u%60).padStart(2,"0")}`;let y={id:a?Qe.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:g,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:Qe.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};Qe.value[re.value.index0].children[re.value.index1]=y;let w={index0:re.value.index0,index1:re.value.index1};We(w),a?Pe(y).then((e=>{e.success&&He()})):De(y)},Fe=e.ref(null),_e=e.ref(null),Ue=()=>{uni.setStorage({key:"myArray",data:Qe.value,success:function(){uni.navigateTo({url:"/pages/timeMatrix/indexnew"})}})},Ae=e.ref({index0:-1,index1:-1}),Ye=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),Re=e.ref(0),We=e=>{re.value.index0=e.index0,re.value.index1=e.index1,it(),Ye.value.index0=e.index0,Ye.value.index1=e.index1,Ae.value.index0=Ye.value.index0,Ae.value.index1=Ye.value.index1,Ye.value.bordershow=!1,setTimeout((()=>{Ye.value.index0=-1,Ye.value.index1=-1,Ye.value.current=-1}),400),setTimeout((()=>{Ye.value.bordershow=!0,Ae.value.index0=-1,Ae.value.index1=-1}),1e3)},Je=["00","05","10","15","20","25","30","35","40","45","50","55"],Qe=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Je.map((e=>({tagName:e,directiveName:""})))})))),Ge=e.ref([]),Xe=e.ref([]),He=()=>{var e,t;uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&(e=uni.getStorageSync("nuId"),t=uni.getStorageSync("elderId"),p({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),Qe.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Je.map((e=>({tagName:e,directiveName:""})))}))),e.result.serviceList.forEach((e=>{Qe.value[e.positioning].children[e.positioningLong]=e})),m.value=e.result.instantList,tt.value=!0,Ge.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){Re.value=3,We(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);V.value=e-650,x.value=t-200;const l=6216,a=2200;V.value=Math.max(0,Math.min(V.value,l-1300))/2,x.value=Math.max(0,Math.min(x.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,p,_,M,$,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:Ue},[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(Qe.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":V.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(Qe.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:X,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Qe.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(Ye.value.index0===l&&Ye.value.index1===i?Ye.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([Ye.value.bordershow||Ae.value.index0!==l||Ae.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:Me})):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)+":"+g[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:Ve,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(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-U.value<Oe?(q.value=e,O.value=t,Ie(),U.value=0):(q.value=e,O.value=t,U.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-U.value<Oe?(Y.value=e,R.value=t,Ie(),U.value=0):(Y.value=e,R.value=t,U.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-U.value<Oe?(ne.value=e,Ie(),U.value=0):(ne.value=e,U.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:Me},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:Me},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=>L(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-U.value<Oe?(Ie(),U.value=0):U.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:Me}),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),j.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=>L(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:$e}),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=Qe.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=Qe.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==(p=Qe.value[ge.value[0]])?void 0:p.children[ge.value[1]])?void 0:_.startTime)+" - "+e.toDisplayString(null==($=null==(M=Qe.value[ge.value[0]])?void 0:M.children[ge.value[1]])?void 0:$.endTime),1),e.createElementVNode("view",{class:"time-text"},e.toDisplayString(null==(H=null==(G=Qe.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=Qe.value[ge.value[0]])?void 0:ee.children[ge.value[1]])?void 0:te.startTime)+" - "+e.toDisplayString(null==(we=null==(ye=Qe.value[ge.value[0]])?void 0:ye.children[ge.value[1]])?void 0:we.endTime),1),(null==(fe=null==(Ne=Qe.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=Qe.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:Me}),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:Le}),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:Qe.value[re.value.index0].children[re.value.index1].netImmediateFile?Qe.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(Qe.value[re.value.index0].children[re.value.index1].startTime+"-"+Qe.value[re.value.index0].children[re.value.index1].endTime),1),1!=Qe.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:Me})):e.createCommentVNode("",!0),1!=Qe.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(Qe.value[re.value.index0].children[re.value.index1].cycleType),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(at(Qe.value[re.value.index0].children[re.value.index1].directiveName)[0]),1)])])],2)):e.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-b58e6b9f"]]),Re=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/deleteDirective`,method:"post",data:e}),We=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/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/invoicing/index.vue:590",1111),t!==a&&(ke.value=!1,he.value=!1,Ae.value?Ae.value--:(it(),V.value=1,x.value=1,e.nextTick((()=>{x.value=0,V.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=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],g=["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),V=e.ref(678),x=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([]),U=e.ref(0);const M=()=>{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=>{$()})):$()},$=()=>{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()}))},L=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"})},j=e.ref(!1),P=()=>{W.value=!1,d.value=!1,I.value?M():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):(j.value=!0,setTimeout((()=>{j.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)):(j.value=!0,setTimeout((()=>{j.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/invoicing/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)},Ve=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)},xe=()=>{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,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/addDirective`,method:"post",data:t})).then((e=>{e.success&&He()}))},ze=e=>{var t;(t={id:e},p({url:`${uni.getStorageSync("serverUrl")}//api/pad/invoicing/directive/deleteInstant`,method:"post",data:t})).then((e=>{e.success&&He()}))},Ie=()=>{var t,a,i,n,o;if(W.value)return W.value=!1,void ye(re.value.index0,re.value.index1);if(I.value)return void M();let r=!1;if((null==(t=Ye.value[re.value.index0])?void 0:t.children[re.value.index1].directiveName)&&(r=!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 M();ue.value.index0=-1,ue.value.index1=-1,I.value=!1;let t="打包",l="";const n=Number(re.value.index0),o=Number(Ye.value[re.value.index0].children[re.value.index1].tagName),c=o+Number(e.serviceDuration),s=n+Math.floor(c/60),u=`${String(n)}:${String(o).padStart(2,"0")}`,d=`${String(s)}:${String(c%60).padStart(2,"0")}`;let m={id:r?Ye.value[re.value.index0].children[re.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:(null==(a=uni.getStorageSync("NUall").elderInfo)?void 0:a.name)?null==(i=uni.getStorageSync("NUall").elderInfo)?void 0:i.name:"",directiveId:e.id,directiveName:e.packageName,typeId:"",typeName:"",categoryId:"",categoryName:"",cycleTypeId:"",cycleType:t,cycleValue:l,startTime:u,endTime:d,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]=m;let v={index0:re.value.index0,index1:re.value.index1};return qe(v),void(r?We(m).then((e=>{e.success&&He()})):De(m))}let c=!1,s=B.value[le.value].children[ae.value].children[ne.value];if(3==s.cycleTypeId)return E.value=1,m.value.forEach(((e,t)=>{e.directiveName==s.title&&(c=!0)})),void e.nextTick((()=>{var e,t;if(c)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 a=s;a.directiveId=s.id,a.directiveName=s.title,a.serviceDuration=s.serviceDuration,a.target="#03a4ff",a.id="",a.nuId=uni.getStorageSync("nuId"),a.nuName=uni.getStorageSync("nuName"),a.elderId=uni.getStorageSync("elderId"),a.elderName=(null==(e=uni.getStorageSync("NUall").elderInfo)?void 0:e.name)?null==(t=uni.getStorageSync("NUall").elderInfo)?void 0:t.name:"",m.value.unshift(a),Fe.value=setTimeout((()=>{var e;m.value[0].target="#fff",l("log","at pages/NursingNew/component/invoicing/index.vue:1462","即时指令看看进入了啥",a),(e=a,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/addInstant`,method:"post",data:e})).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==s.cycleTypeId&&N.value&&-1==O.value&&-1==R.value)return;if(2==s.cycleTypeId&&!N.value)return void(N.value=!0);let u="",d="";if(1==s.cycleTypeId)u="日常";else{if(-1!=O.value){u=q.value;let e=0;h.forEach(((t,l)=>{t==q.value&&(e=l)})),d=e.toString()}else u=Y.value+"号",d=Y.value;N.value=!1,O.value=-1,R.value=-1,q.value="",Y.value=""}const v=Number(re.value.index0),g=Number(Ye.value[re.value.index0].children[re.value.index1].tagName),y=g+Number(s.serviceDuration),w=v+Math.floor(y/60),f=`${String(v)}:${String(g).padStart(2,"0")}`,k=`${String(w)}:${String(y%60).padStart(2,"0")}`;let V={id:r?Ye.value[re.value.index0].children[re.value.index1].id:"",nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName"),elderId:uni.getStorageSync("elderId"),elderName:(null==(n=uni.getStorageSync("NUall").elderInfo)?void 0:n.name)?null==(o=uni.getStorageSync("NUall").elderInfo)?void 0:o.name:"",directiveId:s.id,directiveName:s.title,typeId:s.typeId,typeName:s.typeName,categoryId:s.categoryId,categoryName:s.categoryName,cycleTypeId:s.cycleTypeId,cycleType:u,cycleValue:d,startTime:f,endTime:k,positioning:re.value.index0.toString(),positioningLong:re.value.index1.toString(),izPackage:"N",previewFile:s.previewFile,previewFileSmall:s.previewFileSmall,serviceDuration:s.serviceDuration,immediateFile:s.immediateFile,immediateFileFocus:s.immediateFileFocus,netImmediateFileFocus:s.netImmediateFileFocus,netImmediateFile:s.netImmediateFile,tagName:Ye.value[re.value.index0].children[re.value.index1].tagName,mp3File:s.mp3File,netMp3File:s.netMp3File,mp4File:s.mp4File,netMp4File:s.netMp4File,serviceContent:s.serviceContent,netPreviewFile:s.netPreviewFile,netPreviewFileSmall:s.netPreviewFileSmall};Ye.value[re.value.index0].children[re.value.index1]=V;let x={index0:re.value.index0,index1:re.value.index1};qe(x),r?We(V).then((e=>{e.success&&He()})):De(V)},Fe=e.ref(null),_e=e.ref(null),Ue=()=>{uni.setStorage({key:"myArray",data:Ye.value,success:function(){uni.navigateTo({url:"/pages/timeMatrix/indexnew"})}})},je=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,je.value.index0=Pe.value.index0,je.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,je.value.index0=-1,je.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"),p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/directive/getNclist?nuId=${e}&elderId=${t}`,method:"get"})).then((e=>{l("log","at pages/NursingNew/component/invoicing/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("saveTree2"),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);V.value=e-650,x.value=t-200;const l=6216,a=2200;V.value=Math.max(0,Math.min(V.value,l-1300))/2,x.value=Math.max(0,Math.min(x.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,p,_,M,$,G,H,ee,te,ye,we,Ne,fe,be,Te,De;const Fe=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:Ue},[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":V.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":x.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||je.value.index0!==l||je.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:Me})):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)+":"+g[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:Ve,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(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-U.value<Ge?(q.value=e,O.value=t,Ie(),U.value=0):(q.value=e,O.value=t,U.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-U.value<Ge?(Y.value=e,R.value=t,Ie(),U.value=0):(Y.value=e,R.value=t,U.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-U.value<Ge?(ne.value=e,Ie(),U.value=0):(ne.value=e,U.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:Me},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:Me},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(Fe,{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=>L(l)},[e.createElementVNode("view",{class:"doctorsay-container-card"},[e.createVNode(Fe,{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-U.value<Ge?(Ie(),U.value=0):U.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:Me}),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),j.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=>L(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:$e}),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==(p=Ye.value[ge.value[0]])?void 0:p.children[ge.value[1]])?void 0:_.startTime)+" - "+e.toDisplayString(null==($=null==(M=Ye.value[ge.value[0]])?void 0:M.children[ge.value[1]])?void 0:$.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:Me}),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:Le}),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==(De=uni.getStorageSync("NUall").elderInfo)?void 0:De.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:Me})):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-0940de7c"]]),He="/static/index/requestform/chongzhi.png",Ze="/static/index/warehouse/procurement/picking/bebad.png",Ke="/static/index/requestform/isok.png",et="/static/index/requestform/iserror.png",tt="/static/index/requestform/gongyingshang.png",lt=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQld`,method:"get",data:e}),at=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQldWlInfo`,method:"get",data:e}),it=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryMaterialInfo`,method:"get",data:e}),nt=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/transRead`,method:"post",data:e}),ot=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/cancellation`,method:"post",data:e}),rt=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/submitQld`,method:"post",data:e}),ct="/static/index/procurement/que.png";const st=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:ct,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)])):e.createCommentVNode("",!0)}],["__scopeId","data-v-42f8deeb"]]);const ut=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:ct,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)],4)])}],["__scopeId","data-v-1bbac045"]]),dt=s(e.defineComponent({__name:"requestform",props:{isShow:{type:Boolean,required:!0}},setup(t){const a=t,i=e.ref(["全部","待出库","已出库","已收货 ","已作废"]),n=e.ref(!1);e.watch((()=>a.isShow),((e,t)=>{!t&&e?(f.value=!0,n.value=!1,d(),setTimeout((()=>{n.value=!0}),50)):n.value=!1})),e.onMounted((()=>{})),e.ref(!1);const o=e.ref(0),c=e=>{if(o.value!=e||!e){switch(w.value=1,setTimeout((()=>{w.value=0}),50),g.value=0,o.value=e,h.pageNo=1,h.canpull=!0,e){case 0:h.status="1,2,4,5";break;case 1:h.status="1";break;case 2:h.status="4";break;case 3:h.status="5";break;case 4:h.status="2"}E()}},s=()=>{u||(u=!0,h.pageNo=1,h.canpull=!0,g.value=0,E(),w.value=1,setTimeout((()=>{w.value=0}),10),setTimeout((()=>u=!1),500))};let u=!1;const d=()=>{u||(u=!0,h.searchContent="",c(0),setTimeout((()=>u=!1),500))},m=e.ref([]),v=e.ref(0),g=e.ref(0),h=e.reactive({pageNo:1,pageSize:5,canpull:!0,searchContent:"",status:"1,2,4,5",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")}),y=e.ref(!1),w=e.ref(0),N=e.ref([]),f=e.ref(!0),k=e.ref(!0),E=()=>{lt(h).then((e=>{var t;n.value=!0,"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!f.value?(f.value=!1,m.value=[],m.value.push(...e.result.records),v.value=e.result.total,e.result.records.length?(k.value=!1,at({qldNo:e.result.records[0].qldNo}).then((e=>{N.value=[],N.value.push(...e.result),k.value=!0}))):N.value=[],e.result.records.length<h.pageSize&&(h.canpull=!1)):y.value=!0}))},V=e.ref(!0),x=()=>{V.value&&(h.pageNo++,b(),V.value=!1,setTimeout((()=>{V.value=!0}),500))},b=()=>{h.canpull&&lt(h).then((e=>{l("log","at pages/NursingNew/component/pleasetake/component/requestform.vue:394","???加载",e.result.records),m.value.push(...e.result.records),v.value=e.result.total,e.result.records.length<h.pageSize&&(h.canpull=!1)}))},S=e.ref("");r((()=>{S.value=uni.getStorageSync("serverUrl")+"/sys/common/static/"}));const B=e.ref(!1),T=e.ref(""),C=e.ref(!1),D=()=>{let e={qldNo:m.value[g.value].qldNo,nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),nuName:uni.getStorageSync("nuName"),elderName:uni.getStorageSync("NUall").elderInfo.name};ot(e).then((e=>{l("log","at pages/NursingNew/component/pleasetake/component/requestform.vue:459","作废",e),C.value=!1,e.success?m.value[g.value]=e.result.result:(h.pageNo=1,h.canpull=!0,w.value=1,setTimeout((()=>{w.value=0}),50),g.value=0,E()),setTimeout((()=>{e.success?uni.showToast({title:e.result.message,icon:"success",duration:3e3}):(B.value=!0,T.value=e.message)}),300)}))},z=e.ref(!1),I=()=>{let e={qldNo:m.value[g.value].qldNo,elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")};var t;(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/confirmReceipt`,method:"post",data:t})).then((t=>{l("log","at pages/NursingNew/component/pleasetake/component/requestform.vue:498","收货",e,t),z.value=!1,t.success?m.value[g.value]=t.result.result:(h.pageNo=1,w.value=1,setTimeout((()=>{w.value=0}),50),g.value=0,h.canpull=!0,E()),setTimeout((()=>{t.success?uni.showToast({title:t.result.message,icon:"success",duration:3e3}):(B.value=!0,T.value=t.message)}),300)}))};return(l,a)=>{var r,u;const v=e.resolveComponent("tanchuang"),p=e.resolveComponent("errorshow");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("view",{class:"buttons-father",style:e.normalizeStyle(n.value?{opacity:"1"}:{opacity:"0"})},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>h.searchContent=e),placeholder:"请领单号",onConfirm:s},null,544),[[e.vModelText,h.searchContent]])]),e.createElementVNode("view",{class:"scr",onClick:s}," 检索 "),e.createElementVNode("view",{class:"shx",onClick:d},[e.createElementVNode("image",{src:He,mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 重置 ")]),e.withDirectives(e.createElementVNode("view",{class:"right-button",onClick:a[1]||(a[1]=e=>C.value=!0)},[e.createElementVNode("image",{src:Ze}),e.createElementVNode("view",null," 作废 ")],512),[[e.vShow,"1"==(null==(r=m.value[g.value])?void 0:r.status)]]),e.withDirectives(e.createElementVNode("view",{class:"right-button",onClick:a[2]||(a[2]=e=>z.value=!0)},[e.createElementVNode("image",{src:"/static/index/warehouse/procurement/picking/shouhuo.png"}),e.createElementVNode("view",null," 收货 ")],512),[[e.vShow,"4"==(null==(u=m.value[g.value])?void 0:u.status)]]),e.createVNode(st,{cont:"暂无数据",show:y.value},null,8,["show"])],4),[[e.vShow,t.isShow]]),e.createVNode(v,{show:C.value,font:"确定要作废这个请领单吗",onBack:a[3]||(a[3]=e=>{C.value=!1}),onRight:D},null,8,["show"]),e.createVNode(v,{show:z.value,font:"这个请领单确定要收货吗",onBack:a[4]||(a[4]=e=>{z.value=!1}),onRight:I},null,8,["show"]),e.withDirectives(e.createElementVNode("view",{class:"other-contain",style:e.normalizeStyle(n.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(i.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(o.value===l?"selecttype-target":"selecttype"),onClick:e=>c(l)},e.toDisplayString(t),11,["onClick"])))),256)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===o.value?11.5:12+18.5*o.value)+"%"})},null,4)]),e.createElementVNode("scroll-view",{"scroll-y":"true","scroll-with-animation":"",class:"left-menu-scroll","scroll-top":w.value,onScrolltolower:x,"lower-threshold":200},[e.createElementVNode("view",{style:{height:"1%"}}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.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(w.value=175.4*(l-2),g.value=e,k.value=!1,at({qldNo:m.value[e].qldNo}).then((e=>{N.value=[],N.value.push(...e.result),k.value=!0})),"N"==t.izYgRead){let l={status:"yg",qldNo:m.value[e].qldNo};nt(l).then((e=>{e.success&&(t.izYgRead="Y")}))}})(l,t),style:e.normalizeStyle({borderColor:l===g.value?"":"transparent",background:l===g.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:Ke})]),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:et})):"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:Ke}))]),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:Ke}))]),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:tt}),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(N.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?S.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==N.value.length&&k.value?(e.openBlock(),e.createBlock(ut,{key:0,cont:"暂无数据",style:{width:"30%",height:"30%",position:"absolute"}})):e.createCommentVNode("",!0)])]),e.createVNode(p,{show:B.value,font:T.value,onClose:a[5]||(a[5]=e=>B.value=!1)},null,8,["show","font"])],4),[[e.vShow,t.isShow&&!y.value]])],64)}}}),[["__scopeId","data-v-6e1d9f5b"]]),mt="/static/index/procurement/x.png",vt="/static/index/procurement/zjt.png",pt="/static/index/procurement/ddj.png";const gt=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:pt,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"]]),ht=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:ct,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:vt,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(gt,{onBack:a[3]||(a[3]=e=>r.value=0),show:2==r.value,font:"确定将本次请领清单中的所有物料都移除吗?",onRight:c},null,8,["show"])]))}}),[["__scopeId","data-v-0bf7acdb"]]);const yt=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 wt=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 Nt=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"),yt),s=a(e.resolveDynamicComponent("u-loading"),wt);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"]]),ft="/static/index/procurement/zd.png",kt=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"),Nt);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:ft,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"]]),Et="/static/cleanone.png",Vt=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:Et,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"]]),xt=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,p({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},g=()=>{switch(y.typenum){case 0:(e={nuId:uni.getStorageSync("nuId")},p({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)}))):(g(),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"]]),bt=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};it(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"]]),St=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(l("log","at pages/NursingNew/component/pleasetake/common/takerecord.vue:105",n.objtake),1==n.show){let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlId:n.objtake.wlId};it(e).then((t=>{l("log","at pages/NursingNew/component/pleasetake/common/takerecord.vue:113","入参",e,"返回",t),s.value=t.result})),g(),setTimeout((()=>{m.value=!0}),50)}else m.value=!1,v.value=[],o.value=1,c.value="loadmore"}));const g=()=>{let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlId:n.objtake.wlId,pageNo:o.value,pageSize:20};var t;(t=e,p({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:142","咋没有",e,t),v.value.push(...t.result.records),c.value=t.result.total==v.value.length?"nomore":"loadmore"}))};return(l,i)=>{var n,p,h,y,w,N,f,k;const E=a(e.resolveDynamicComponent("u-loadmore"),Nt);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==(p=t.objtake)?void 0:p.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++,g())})},[(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(ut,{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-71362fe9"]]),Bt=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"]]),Tt=s(e.defineComponent({__name:"takehomep",props:{isShow:{type:Boolean}},emits:["changePageNumber"],setup(t,{emit:a}){const i=e.reactive({pageNo:1,pageSize:10,nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),wlParamInfo:"",categoryId:"",typeId:"",medicationId:""}),n=t,o=e.ref(!1);e.watch((()=>n.isShow),((e,t)=>{V.value=[],i.categoryId="",i.typeId="",i.medicationId="",i.pageNo=1,i.wlParamInfo="",k(),b(),E(),!t&&e?(o.value=!1,setTimeout((()=>{o.value=!0}),50)):o.value=!1}));const 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),g=e.ref(!1),h=e.ref(""),y=e.ref(),w=e.ref([]),N=e.ref(!1),f=e.ref(!1),k=()=>{let e={pageNo:1,pageSize:1,searchContent:"",status:"3",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")};lt(e).then((e=>{e.result.records.length?N.value=!0:N.value=!1}));let t={pageNo:1,pageSize:1,searchContent:"",status:"4",elderId:uni.getStorageSync("elderId"),nuId:uni.getStorageSync("nuId")};lt(t).then((e=>{e.result.records.length?f.value=!0:f.value=!1}))},E=()=>{let e={nuId:i.nuId,elderId:i.elderId};var t;(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryGwcInfo`,method:"get",data:t})).then((e=>{w.value=e.result}))},V=e.ref([]),x=e.ref("loadmore"),b=()=>{var e;(e=i,p({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})),V.value.push(...e.result.records),x.value=e.result.total==V.value.length?"nomore":"loadmore"}))},S=()=>{let e={nuId:uni.getStorageSync("nuId"),elderId:uni.getStorageSync("elderId"),nuName:uni.getStorageSync("nuName")};var t;l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:191","?????",e),(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/requireTH`,method:"post",data:t})).then((e=>{var t,a;l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:193","?????",e),e.success?(v.value=!1,uni.showToast({icon:"success",title:e.message})):(v.value=!1,h.value=(null==(t=e.result)?void 0:t.message)?null==(a=e.result)?void 0:a.message:e.message,g.value=!0)}))},B=e=>{0===e&&(i.wlParamInfo=""),i.pageNo=1,V.value=[],b()},T=()=>{"loading"!=x.value&&"nomore"!=x.value&&(x.value="loading",i.pageNo++,b())},C=()=>{E(),m.value=!0},D=e=>{V.value.forEach((t=>{t.wlId==e.wlId&&(F.value=t)})),F.value.wlId||(F.value=e),u.value=!0,l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:233",F.value)},z=()=>{let e={nuId:i.nuId,elderId:i.elderId,wlId:F.value.wlId};var t;l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:241",e),(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/deleteGwcWl`,method:"post",data:t})).then((e=>{var t,l;e.success?(E(),u.value=!1,F.value.isAdd=null,F.value.qlNum=null):(h.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,g.value=!0)}))},I=()=>{var e;l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:255",{nuId:i.nuId,elderId:i.elderId}),(e={nuId:i.nuId,elderId:i.elderId},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/removeAllGwc`,method:"post",data:e})).then((e=>{var t,l;e.success?(E(),V.value.forEach((e=>{e.isAdd=null,e.qlNum=null,e.gwcId=null}))):(h.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,g.value=!0)}))},F=e.ref({}),_=(e,t,a)=>{switch(l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:272","看看数据",e,t,a),a){case 0:F.value=e,1==e.isAdd?u.value=!0:r.value=!0;break;case 1:F.value=e,d.value=!0;break;case 2:F.value=e,s.value=!0;break;case 3:let t={nuId:i.nuId,elderId:i.elderId,wlId:e.wlId,izZd:!e.zhiDingId};(n=t,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/wlzd`,method:"post",data:n})).then((e=>{var a,n;l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:302",t,e),e.success?(V.value=[],i.pageNo=1,b()):(h.value=(null==(a=e.result)?void 0:a.message)?null==(n=e.result)?void 0:n.message:e.message,g.value=!0)}))}var n},U=(e,t)=>{l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:327",t);let a={kfId:t.nuId,wlId:t.wlId,qlNum:e,nuId:i.nuId,elderId:i.elderId};var n;(n=a,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/addGwc`,method:"post",data:n})).then((l=>{var a,i;l.success?(r.value=!1,t.isAdd=1,t.qlNum=e,E()):(h.value=(null==(a=l.result)?void 0:a.message)?null==(i=l.result)?void 0:i.message:l.message,g.value=!0)}))},M=()=>{let e={nuId:i.nuId,elderId:i.elderId,nuName:uni.getStorageSync("nuName"),elderName:uni.getStorageSync("NUall").elderInfo.name};rt(e).then((t=>{var a,i;l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:355","?????111",e,t),t.success?(uni.showToast({icon:"success",title:"提交成功"}),setTimeout((()=>{m.value=!1,E(),P(1)}),800)):(h.value=(null==(a=t.result)?void 0:a.message)?null==(i=t.result)?void 0:i.message:t.message,g.value=!0)}))},$=e=>{i.categoryId=e.categoryId,i.typeId=e.typeId,i.medicationId=e.medicationId,i.pageNo=1,V.value=[],b(),c.value=!1,l("log","at pages/NursingNew/component/pleasetake/component/takehomep.vue:381",e)},L=()=>{i.categoryId="",i.typeId="",i.medicationId="",i.pageNo=1,i.wlParamInfo="",V.value=[],y.value.typescroll(1,-1,{}),y.value.qingkong(),y.value.config()},j=a,P=e=>{j("changePageNumber",e)};return(l,a)=>{const n=e.resolveComponent("errorshow"),o=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":a[0]||(a[0]=e=>i.wlParamInfo=e),onConfirm:B},null,544),[[e.vModelText,i.wlParamInfo]]),i.wlParamInfo?(e.openBlock(),e.createElementBlock("image",{key:0,src:mt,mode:"aspectFill",onClick:a[1]||(a[1]=e=>B(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"scr",onClick:B}," 检索 "),e.createElementVNode("view",{class:"shx",onClick:a[2]||(a[2]=e=>c.value=!0)},[e.createElementVNode("image",{src:"/static/index/requestform/shaixuan.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 筛选 ")]),""!=i.categoryId||""!=i.wlParamInfo?(e.openBlock(),e.createElementBlock("view",{key:0,class:"shx",onClick:L},[e.createElementVNode("image",{src:He,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:a[3]||(a[3]=e=>P(1))}," 请领单 "),f.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:a[4]||(a[4]=e=>P(2))}," 回退单 "),N.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"qlthbtn-red"})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"qlthbtn",style:{width:"8vw"},onClick:a[5]||(a[5]=e=>v.value=!0)},[e.createElementVNode("image",{src:"/static/index/requestform/ql2.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"shx-font"}," 退货 ")])])]),e.createVNode(ht,{Material:w.value,onDelall:I,onDel:D,onSubmit:C},null,8,["Material"]),e.createVNode(kt,{InvoicingList:V.value,onScrolltolower:T,status:x.value,onComfig:_},null,8,["InvoicingList","status"]),e.createVNode(Vt,{show:r.value,objtake:F.value,onFill:a[6]||(a[6]=e=>r.value=!1),onRight:U},null,8,["show","objtake"]),e.createVNode(xt,{onConfirm:$,show:c.value,typenum:0,ref_key:"classication",ref:y,onFill:a[7]||(a[7]=e=>c.value=!1)},null,8,["show"]),e.createVNode(bt,{show:s.value,onFill:a[8]||(a[8]=e=>s.value=!1),onConfirm:$,objtake:F.value},null,8,["show","objtake"]),e.createVNode(gt,{onBack:a[9]||(a[9]=e=>u.value=!1),show:u.value,font:"确定将该物料从本次请领清单中移除吗?",onRight:z},null,8,["show"]),e.createVNode(St,{objtake:F.value,show:d.value,onFill:a[10]||(a[10]=e=>d.value=!1)},null,8,["objtake","show"]),e.createVNode(Bt,{show:m.value,list:w.value,onFill:a[11]||(a[11]=e=>m.value=!1),onConfig:M},null,8,["show","list"]),e.createVNode(gt,{onBack:a[12]||(a[12]=e=>v.value=!1),show:v.value,font:"是否发起退货流程?",onRight:S},null,8,["show"]),e.createVNode(n,{show:g.value,font:h.value,onClose:a[13]||(a[13]=e=>g.value=!1)},null,8,["show","font"]),e.createVNode(o)])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-c3c5a150"]]),Ct=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,V,x,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==(V=o.materialInfo)?void 0:V.medicationName)?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(null==(x=o.materialInfo)?void 0:x.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(ut,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)])],32),e.createVNode(Vt,{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-88ff49a1"]]),Dt=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?(g.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([]),g=e.ref(!0),h=e.ref(!0),y=()=>{lt(u).then((e=>{var t;o.value=!0,"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!g.value?(g.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,p({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=()=>{at({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&&lt(u).then((e=>{r.value.push(...e.result.records),c.value=e.result.total,e.result.records.length<u.pageSize&&(u.canpull=!1)}))},V=(e,t)=>{let l={qldNo:r.value[s.value].qldNo,wlId:t.wlId,qlNum:e};var a;(a=l,p({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 x=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};ot(e).then((e=>{x.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};rt(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((()=>{lt({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=>x.value=!0)},[e.createElementVNode("image",{src:Ze}),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(st,{cont:"暂无数据",show:d.value},null,8,["show"])],4),[[e.vShow,t.isShow]]),e.createVNode(p,{show:x.value,font:"确定要作废这个回退单吗",onBack:a[2]||(a[2]=e=>{x.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};nt(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:Ke})]),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:et})):(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:Ke}))]),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:tt}),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(Ct,{InvoicingList:v.value,status:null==(u=r.value[s.value])?void 0:u.status,onComfig:V,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(Bt,{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"]]),zt=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(Tt,{isShow:0==l.value,onChangePageNumber:n},null,8,["isShow"]),e.createVNode(dt,{isShow:1==l.value},null,8,["isShow"]),e.createVNode(Dt,{isShow:2==l.value},null,8,["isShow"])],4))}}),[["__scopeId","data-v-ce1cf063"]]),It=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=()=>{Ve(o).then((e=>{l("log","at pages/NursingNew/component/doctorask/doctorask.vue:222",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,a)=>{l("log","at pages/NursingNew/component/doctorask/doctorask.vue:235",a),d.value!=t&&(m.value=h.value,e.nextTick((()=>{m.value=0})));let i=Math.ceil(t+1);v.value=186*(i-2),d.value=t,xe({mainId:a.id}).then((e=>{l("log","at pages/NursingNew/component/doctorask/doctorask.vue:246",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},V=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:358",t),f.value.push(t.message)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})},x=()=>{let e="";f.value.forEach((t=>{e+=t+","})),1==N.value?Te({id:k.value.id,manuallyPicPath:e}).then((e=>{e.success&&(N.value=0,w.value=!1,g(d.value,c.value[d.value]))})):Be({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"),Nt),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,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:"fler",key:n},[e.createElementVNode("view",{class:"carditem guodu"},[a.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:ft,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("image",{src:i.value+a.previewFileSmall,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"msitem guodu"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,"指令名称:"+e.toDisplayString(a.directiveName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 执行人: "),e.createElementVNode("view",null,e.toDisplayString(a.employeeName),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 开始时间: "),e.createElementVNode("view",null,e.toDisplayString(a.startTime.slice(0,16)),1)]),e.createElementVNode("view",null,[e.createElementVNode("text",{style:{"white-space":"nowrap"}}," 结束时间: "),e.createElementVNode("view",null,e.toDisplayString(a.endTime.slice(0,16)),1)])]),e.createElementVNode("view",{class:"fubtn"},["N"==a.izStart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ld",onClick:e=>(e=>{be({id:e.id}).then((t=>{l("log","at pages/NursingNew/component/doctorask/doctorask.vue:256",t),t.success&&(e.izStart="Y",c.value[d.value].izStart="Y",g(d.value,c.value[d.value]))}))})(a)},"开始服务",8,["onClick"])):e.createCommentVNode("",!0),"Y"==a.izStart&&"N"==a.izFinish?(e.openBlock(),e.createElementBlock("view",{key:1,class:"ld",onClick:e=>(e=>{Se({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]))}))})(a)},"结束服务",8,["onClick"])):e.createCommentVNode("",!0),"Y"==a.izStart&&"N"==a.izFinish||null!=a.manuallyMp4Path?(e.openBlock(),e.createElementBlock("view",{key:2,class:"bd",onClick:e=>E(a,t.i,2)},"录像",8,["onClick"])):e.createCommentVNode("",!0),"Y"==a.izStart&&"N"==a.izFinish||null!=a.manuallyPicPath?(e.openBlock(),e.createElementBlock("view",{key:3,class:"bd",onClick:e=>E(a,t.i,1)},"拍照",8,["onClick"])):e.createCommentVNode("",!0),"Y"==a.izStart&&"Y"==a.izFinish&&null!=a.tplinkPath?(e.openBlock(),e.createElementBlock("view",{key:4,class:"bd",onClick:e=>E(a,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:394",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:he,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:he,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=>{V(e.tempFilePath)}})}}):uni.chooseVideo({sourceType:["camera"],success:e=>{uni.compressVideo({src:e.tempFilePath,quality:60,success:e=>{V(e.tempFilePath)}})}})})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:ye}),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:x},"确定")])):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-7a5c48ed"]]);function Ft(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 _t=[{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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/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:Ft("/static/index/diet","drainage_",6,"png",1,!1)}],levle:"1",title:"5 排泄照料",key:"1902560510768549889"}],Ut=300,Mt=s(e.defineComponent({__name:"index",props:{isshow:{type:Boolean,required:!0}},setup(t){const a=t;e.watch((()=>a.isshow),((t,l)=>{t!==l&&(De.value=!1,be.value=!1,He.value?He.value--:(ut(),B.value=1,T.value=1,e.nextTick((()=>{T.value=0,B.value=775}))),ue.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 g=e.ref(!1);e.watch((()=>v.value),(()=>{setTimeout((()=>{g.value=v.value}),50)})),e.ref([]),e.ref([]);const h=e.ref(!1),y=e.ref([]),w=["标准","超重","强直","偏瘫","佝偻","稳定","焦虑","抑郁","暴力","恐惧","烦躁","易怒","臆想"],N=["00","05","10","15","20","25","30","35","40","45","50","55"],f=["周一","周二","周三","周四","周五","周六","周日"],k=Array.from({length:31},((e,t)=>(t+1).toString().padStart(2,"0"))),E=e.ref(!0),V=e.ref(!1),x=e.ref(0),b=e.ref(0),S=e.ref(0),B=e.ref(678),T=e.ref(0),C=e.ref(),D=e.ref(!1),z=e.ref([]),I=e.ref(!1);e.ref(!1);const F=e.ref(!1);e.ref(!1),e.ref(!1),e.ref(""),e.ref(!1);const _=e.ref(!1);e.ref("");const U=e.ref(!1);e.ref(6),e.ref(11),e.ref(0),e.ref(3);const M=e.ref(!1),$=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")),L=e.ref([]),j=e.ref(0);const P=()=>{if(we.value.index0===ge.value.index0&&we.value.index1===ge.value.index1)return M.value=!1,we.value.index0=-1,void(we.value.index1=-1);et.value[ge.value.index0].children[ge.value.index1].id?J(et.value[ge.value.index0].children[ge.value.index1]).then((e=>{A()})):A()},A=()=>{let e=JSON.parse(JSON.stringify(et.value[we.value.index0].children[we.value.index1]));_e.value=[ge.value.index0,ge.value.index1];let t=et.value[we.value.index0].children[we.value.index1].tagName;et.value[we.value.index0].children[we.value.index1]={directiveName:"",tagName:t};let l=et.value[_e.value[0]].children[_e.value[1]].tagName;et.value[_e.value[0]].children[_e.value[1]]=e,et.value[_e.value[0]].children[_e.value[1]].tagName=l;let a=et.value[_e.value[0]].children[_e.value[1]].startTime,i=et.value[_e.value[0]].children[_e.value[1]].endTime,n=et.value[_e.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");et.value[_e.value[0]].children[_e.value[1]].startTime=`${String(d)}:${g(u)}`,et.value[_e.value[0]].children[_e.value[1]].endTime=`${String(v)}:${g(p)}`,we.value.index1=-1,M.value=!1;let h={index0:ge.value.index0,index1:ge.value.index1};Ze(h);let y=et.value[ge.value.index0].children[ge.value.index1];y.positioning=ge.value.index0,y.positioningLong=ge.value.index1,Q(y).then((e=>{e.success&&at()}))},q=t=>{var l;5!==t?(V.value=!1,H.value=-1,K.value=-1,X.value="",Z.value="",b.value=.01,x.value=.01,me.value=-1,e.nextTick((()=>{b.value=0,x.value=0,me.value=0})),de.value=0,ue.value=t,C.value=null==(l=z.value[t])?void 0:l.children,ve.value=0):uni.navigateTo({url:"/pages/watch/full"})},O=e.ref(!1),Y=()=>{ee.value=!1,h.value=!1,M.value?P():et.value[ge.value.index0].children[ge.value.index1].directiveName?(we.value.index0=ge.value.index0,we.value.index1=ge.value.index1,M.value=!0):(O.value=!0,setTimeout((()=>{O.value=!1}),1500))},R=e.ref(!1),G=e.ref(-1),X=e.ref(""),H=e.ref(-1),Z=e.ref(""),K=e.ref(-1),ee=e.ref(!1),te=()=>{we.value.index0=-1,we.value.index1=-1,M.value=!1,h.value=!1,et.value[ge.value.index0].children[ge.value.index1].directiveName?ee.value?(ee.value=!1,Se(ge.value.index0,ge.value.index1)):(ee.value=!0,setTimeout((()=>mt.value=!0),50)):(O.value=!0,setTimeout((()=>{O.value=!1}),1500))};function le(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 ae="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:e=>setTimeout(e,16);function ie(e){const t=e&&e.detail&&(e.detail.scrollTop??e.detail.scrollY)||0;s=t,u||(u=!0,ae((()=>{c.value=`translate3d(0, -${s}px, 0)`,u=!1})))}const ne=e.ref(0);function oe(e){ne.value=e.detail.scrollLeft}const re=(e,t,l)=>e.startTime?we.value.index0===t&&we.value.index1===l?"title-time-border-yellow-active-transparent":be.value?"title-time-border-yellow-active":"title-time-border-yellow":"title-time-border";function ce(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 se=e.ref([{url:ce("/static/index/newruler","daily_",6,"png",1,!1),name:"日常"},{url:ce("/static/index/newruler","clean_",8,"png",1,!1),name:"清洁"},{url:ce("/static/index/newruler","diet_",7,"png",1,!1),name:"饮食"},{url:ce("/static/index/newruler","sleep_",5,"png",1,!1),name:"睡眠"},{url:ce("/static/index/newruler","defecate_",5,"png",1,!1),name:"排泄"}]),ue=e.ref(1),de=e.ref(0),me=e.ref(-1),ve=e.ref(0),pe=e.ref(0),ge=e.ref({index0:-1,index1:-1});e.ref(null),e.ref({}),e.ref(0),e.ref(0);const he=e.ref(0),ye=e.ref(0),we=e.ref({index0:999,index1:999,tagName:""}),Ne=e.ref(!1),fe=e.ref(-1),ke=e.ref(!1),Ee=()=>{ke.value=!0,Ne.value=!1,setTimeout((()=>{Ne.value=!0}),100)},Ve=e.ref([!1,!1]),xe=e.ref([-1,-1]),be=e.ref(!1);e.ref([]);const Se=(e,t)=>{J(et.value[e].children[t]).then((e=>{e.success&&at()}))},Be=e.ref(0),Te=e.ref(0),Ce=e.ref(null),De=e.ref(!1),ze=e=>{Be.value=Math.floor(e.touches[0].pageX),Te.value=Math.floor(e.touches[0].pageY),Ce.value=setTimeout((()=>{De.value=!0}),500)},Ie=e=>{const t=Math.floor(e.touches[0].pageX),l=Math.floor(e.touches[0].pageY);(Math.abs(t-Be.value)>0||Math.abs(l-Te.value)>0)&&Ce.value&&(clearTimeout(Ce.value),Ce.value=null)},Fe=()=>{Ce.value&&(clearTimeout(Ce.value),Ce.value=null)},_e=e.ref([-1,-1]),Ue=()=>{U.value=!1,_.value=!0,setTimeout((()=>{U.value=!0}),50)},je=e.ref(!1);let Pe=null;async function Ae(){Pe&&(clearTimeout(Pe),Pe=null),je.value=!1,await e.nextTick(),je.value=!0,Ye(),Pe=setTimeout((()=>{je.value=!1,Pe=null}),1e3)}const qe=e=>{var t;(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/addDirective`,method:"post",data:t})).then((e=>{e.success&&at()}))},Oe=e=>{var t;(t={id:e},p({url:`${uni.getStorageSync("serverUrl")}//api/pad/care/directive/deleteInstant`,method:"post",data:t})).then((e=>{e.success&&at()}))},Ye=()=>{var t;if(ee.value)return ee.value=!1,void Se(ge.value.index0,ge.value.index1);if(M.value)return void P();let a=!1;if((null==(t=et.value[ge.value.index0])?void 0:t.children[ge.value.index1].directiveName)&&(a=!0),dt.value){let e=it.value[pe.value];if(-1===ge.value.index1&&-1===ge.value.index0)return;if(ee.value)return ee.value=!1,void Se(ge.value.index0,ge.value.index1);if(M.value)return void P();we.value.index0=-1,we.value.index1=-1,M.value=!1;let t="打包",l="";const i=Number(ge.value.index0),n=Number(et.value[ge.value.index0].children[ge.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?et.value[ge.value.index0].children[ge.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:ge.value.index0.toString(),positioningLong:ge.value.index1.toString(),izPackage:"Y",previewFile:"",previewFileSmall:"",netPreviewFile:"",netPreviewFileSmall:"",immediateFile:"",immediateFileFocus:"",netImmediateFileFocus:"",netImmediateFile:"",tagName:et.value[ge.value.index0].children[ge.value.index1].tagName,mp3File:e.mp3File,netMp3File:e.netMp3File,mp4File:e.mp4File,netMp4File:e.netMp4File,serviceContent:e.serviceContent};et.value[ge.value.index0].children[ge.value.index1]=u;let d={index0:ge.value.index0,index1:ge.value.index1};return Ze(d),void(a?Q(u).then((e=>{e.success&&at()})):qe(u))}let i=!1,n=z.value[ue.value].children[de.value].children[ve.value];if(3==n.cycleTypeId)return S.value=1,y.value.forEach(((e,t)=>{e.directiveName==n.title&&(i=!0)})),void e.nextTick((()=>{if(i)clearTimeout(We.value),D.value=!0,We.value=setTimeout((()=>{D.value=!1}),1500);else{S.value=0,y.value.length&&"#03a4ff"===y.value[0].target&&(y.value[0].target="#fff",clearTimeout(Re.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,y.value.unshift(e),Re.value=setTimeout((()=>{var t;y.value[0].target="#fff",l("log","at pages/NursingNew/component/nurse/index.vue:1459","即时指令看看进入了啥",e),(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/addInstant`,method:"post",data:t})).then((e=>{e.success&&at()}))}),1500)}}));if(-1===ge.value.index1&&-1===ge.value.index0)return;if(we.value.index0=-1,we.value.index1=-1,M.value=!1,2==n.cycleTypeId&&V.value&&-1==H.value&&-1==K.value)return;if(2==n.cycleTypeId&&!V.value)return void(V.value=!0);let o="",r="";if(1==n.cycleTypeId)o="日常";else{if(-1!=H.value){o=X.value;let e=0;f.forEach(((t,l)=>{t==X.value&&(e=l)})),r=e.toString()}else o=Z.value+"号",r=Z.value;V.value=!1,H.value=-1,K.value=-1,X.value="",Z.value=""}const c=Number(ge.value.index0),s=Number(et.value[ge.value.index0].children[ge.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 g={id:a?et.value[ge.value.index0].children[ge.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:ge.value.index0.toString(),positioningLong:ge.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:et.value[ge.value.index0].children[ge.value.index1].tagName,mp3File:n.mp3File,netMp3File:n.netMp3File,mp4File:n.mp4File,netMp4File:n.netMp4File,serviceContent:n.serviceContent,netPreviewFile:n.netPreviewFile,netPreviewFileSmall:n.netPreviewFileSmall};et.value[ge.value.index0].children[ge.value.index1]=g;let h={index0:ge.value.index0,index1:ge.value.index1};Ze(h),a?Q(g).then((e=>{e.success&&at()})):qe(g)},Re=e.ref(null),We=e.ref(null),Je=()=>{if(!rt.value)return;let e=[];lt.value.forEach((t=>{"Y"==t.izSelected&&e.push(t)})),tt.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};var l;(l=t,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/addBatch`,method:"post",data:l})).then((()=>{at()}))},Qe=()=>{uni.navigateTo({url:"/pages/timeMatrix/indexnew"})},Ge=e.ref({index0:-1,index1:-1}),Xe=e.ref({index0:-1,index1:-1,current:-1,bordershow:!0}),He=e.ref(0),Ze=e=>{ge.value.index0=e.index0,ge.value.index1=e.index1,ut(),Xe.value.index0=e.index0,Xe.value.index1=e.index1,Ge.value.index0=Xe.value.index0,Ge.value.index1=Xe.value.index1,Xe.value.bordershow=!1,setTimeout((()=>{Xe.value.index0=-1,Xe.value.index1=-1,Xe.value.current=-1}),400),setTimeout((()=>{Xe.value.bordershow=!0,Ge.value.index0=-1,Ge.value.index1=-1}),1e3)},Ke=["00","05","10","15","20","25","30","35","40","45","50","55"],et=e.ref(Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Ke.map((e=>({tagName:e,directiveName:""})))})))),tt=e.ref([]),lt=e.ref([]),at=()=>{uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&W(uni.getStorageSync("nuId"),uni.getStorageSync("elderId")).then((e=>{et.value=Array.from({length:24},((e,t)=>({positioning:t.toString(),children:Ke.map((e=>({tagName:e,directiveName:""})))}))),e.result.serviceList.forEach((e=>{et.value[e.positioning].children[e.positioningLong]=e})),y.value=e.result.instantList,rt.value=!0,tt.value=e.result.emotionTagList,ot.value=[],nt.value=[],e.result.emotionTagList.forEach((e=>{"Y"==e.izSelected&&ot.value.push(e.netPic)})),lt.value=e.result.bodyTagList,e.result.bodyTagList.forEach((e=>{"Y"==e.izSelected&&nt.value.push(e.netPic)}))}))},it=e.ref([]);e.onMounted((()=>{it.value=uni.getStorageSync("Packagelist")||[];let e=uni.getStorageSync("saveTree0"),t=[];_t.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?se.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}))})),z.value=e.result),C.value=z.value[0].children,ue.value=-1,me.value=-1,setTimeout((()=>{ue.value=0,me.value=0}),50),uni.$on("where",ct),me.value=0,at()}));const nt=e.ref([]),ot=e.ref([]),rt=e.ref(!1);function ct(e){He.value=3,Ze(e)}function st(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 ut(){if(ge.value.index0>=0&&ge.value.index0<=24&&ge.value.index1>=0&&ge.value.index1<=11){const e=259*(ge.value.index0+.5),t=200*(ge.value.index1-1);B.value=e-650,T.value=t-200;const l=6216,a=2200;B.value=Math.max(0,Math.min(B.value,l-1300))/2,T.value=Math.max(0,Math.min(T.value,a-400))/2}}e.onBeforeUnmount((()=>{Pe&&clearTimeout(Pe),uni.$off("where",ct),u=!1}));const dt=e.ref(!1),mt=e.ref(!1);return(l,a)=>{var s,u,p,g,L,P,A,W,J,Q,ae,ne,ce,se,Se,Be,Te,Ce,_e,Pe;const qe=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=>{De.value=!1,be.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(G.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})},[nt.value.length||ot.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(nt.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(ot.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(lt.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{if("Y"==lt.value[e].izSelected)lt.value[e].izSelected="N";else{let t=0;if(lt.value.forEach((e=>{"Y"==e.izSelected&&t++})),t>1)return void uni.showToast({title:"每种标签最多只能添加两个",icon:"none",duration:3e3});lt.value[e].izSelected="Y"}Je()})(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(tt.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>(e=>{if("Y"==tt.value[e].izSelected)tt.value[e].izSelected="N";else{let t=0;if(tt.value.forEach((e=>{"Y"==e.izSelected&&t++})),t>1)return void uni.showToast({title:"标签最多只能添加两个",icon:"none",duration:3e3});tt.value[e].izSelected="Y"}Je()})(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:Qe},[e.createElementVNode("image",{class:"white-img",src:"/static/index/newruler/yulan.png"},null,8,["src"]),e.createTextVNode(" 预览 ")]),e.createElementVNode("view",{class:"white-button",onClick:Ee},[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=>q(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(et.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":B.value,"scroll-x":"",onScroll:oe,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",width:"4824rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(et.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":T.value,"scroll-with-animation":"","scroll-y":!0,onScroll:ie,"show-scrollbar":!1},[e.createElementVNode("view",{style:{display:"flex",height:"100%"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(et.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(Xe.value.index0===l&&Xe.value.index1===i?Xe.value.index1?"title-time-border-big":"title-time-border-big-top":"super-card-time-card"),style:e.normalizeStyle([Xe.value.bordershow||Ge.value.index0!==l||Ge.value.index1!==i?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${l}_${i}`,onClick:t=>((t,l,a)=>{ee.value=!1,ge.value.index0=l,ge.value.index1=a,ut(),R.value=!0,setTimeout((()=>{t.directiveName&&h.value&&(fe.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?(he.value=Math.floor(t.left)+528,Ve.value[0]=!0):(he.value=Math.floor(t.left)-18,Ve.value[0]=!1),t.top>300?(ye.value=Math.floor(t.top)+100,Ve.value[1]=!0):(ye.value=Math.floor(t.top)+180,Ve.value[1]=!1),await e.nextTick(),I.value=!0,xe.value[0]=l,xe.value[1]=a,F.value=!1,setTimeout((()=>{F.value=!0}),100))}))})).exec())}),400)})(a,l,i),"data-index0":l,"data-index1":i},[we.value.index0===l&&we.value.index1===i&&0==i?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time-button-orange-spe",style:e.normalizeStyle({left:we.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),we.value.index0===l&&we.value.index1===i&&i?(e.openBlock(),e.createElementBlock("view",{key:1,class:"time-button-orange",style:e.normalizeStyle({left:we.value.index0?"-130rpx":"0"})}," 请选择服务指令迁移的目标单元格 ",4)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},null,512),[[e.vShow,ge.value.index0==l&&ge.value.index1==i&&R.value]]),e.createElementVNode("view",{class:e.normalizeClass(re(a,l,i)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${le(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:Me})):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(st(a.directiveName)[0]),1)):e.createCommentVNode("",!0),ge.value.index0==l&&ge.value.index1==i&&R.value&&!a.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:"pulic-time"},e.toDisplayString((1==t.positioning.length?"0"+t.positioning:t.positioning)+":"+N[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":S.value},[e.createElementVNode("view",{class:"right-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,((t,l)=>{var a;return e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:"right-box-item",onTouchstart:ze,onTouchmove:Ie,onTouchend:Fe,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(De.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=>{y.value.splice(l,1),Oe(t.id)}),["stop"])}," - ",8,["onClick"]),[[e.vShow,De.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=>{E.value=!1,H.value=-1,X.value=""})},"月")],512),[[e.vShow,E.value]]),e.withDirectives(e.createElementVNode("view",{class:"time-button"},[e.createElementVNode("view",{class:"time-button-month-target",onClick:a[6]||(a[6]=e=>{E.value=!0,K.value=-1,Z.value=""})},"周"),e.createElementVNode("view",{class:"time-button-week-target"},"月")],512),[[e.vShow,!E.value]]),e.createElementVNode("scroll-view",{"scroll-y":"",style:{width:"100%",height:"600rpx"},"show-scrollbar":!1,"scroll-top":x.value},[E.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(f,((t,l)=>e.createElementVNode("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-j.value<Ut?(X.value=e,H.value=t,Ye(),j.value=0):(X.value=e,H.value=t,j.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(H.value===l?"items-card-target":"items-card")},e.toDisplayString(t),3)],8,["onClick"]))),64)):e.createCommentVNode("",!0),E.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(k),((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>((e,t)=>{const l=Date.now();l-j.value<Ut?(Z.value=e,K.value=t,Ye(),j.value=0):(Z.value=e,K.value=t,j.value=l)})(t,l)},[e.createElementVNode("view",{class:e.normalizeClass(K.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,V.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=z.value[ue.value])?void 0:s.children[de.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();ve.value=e,t-j.value<Ut?(ve.value=e,Ye(),j.value=0):(ve.value=e,j.value=t)}(l)},[e.createElementVNode("view",{class:"right-box-item",style:e.normalizeStyle(ve.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:Me},null,512),[[e.vShow,2==t.cycleTypeId]]),e.withDirectives(e.createElementVNode("image",{class:"title-time-button",src:Me},null,512),[[e.vShow,3==t.cycleTypeId]]),e.createElementVNode("image",{class:"right-box-img",src:ve.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"},ve.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,!V.value]])]),e.createElementVNode("view",{class:"second-contant"},[e.createElementVNode("scroll-view",{"scroll-y":"",style:{height:"100%",width:"100%"},"show-scrollbar":!1,"scroll-top":b.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l},[e.createElementVNode("view",{class:e.normalizeClass(me.value==l?"downList-box-target":"downList-box"),onClick:t=>(t=>{V.value=!1,H.value=-1,K.value=-1,X.value="",Z.value="",de.value=t,me.value=t,ve.value=0,x.value=.01,e.nextTick((()=>{x.value=0}))})(l)},[e.createVNode(qe,{width:"55rpx",height:"55rpx",links:t.url,playing:me.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(z.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,onClick:e=>q(l)},[e.createElementVNode("view",{class:"doctorsay-container-card"},[e.createVNode(qe,{width:"50rpx",height:"50rpx",links:t.url,playing:l===ue.value,interval:120},null,8,["links","playing"]),e.createElementVNode("view",{class:e.normalizeClass(l===ue.value?"doctorsay-container-card-font-dark":"doctorsay-container-card-font")},e.toDisplayString(t.title),3)])],8,["onClick"])))),128))])],512),[[e.vShow,!dt.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(it.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"zhiling-card",style:e.normalizeStyle(pe.value==l?{backgroundColor:"#fff"}:{}),key:l,onClick:e=>(e=>{const t=Date.now();pe.value=e,t-j.value<Ut?(Ye(),j.value=0):j.value=t})(l)},[e.createElementVNode("image",{class:"zhiling-card-button",src:Me}),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,dt.value]]),e.createElementVNode("view",{class:"under-button"},[D.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"under-button-black"}," 不能重复添加相同的即时服务指令 ")):e.createCommentVNode("",!0),O.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"under-button-black"}," 请选择服务指令来进行操作 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"white-circle",onClick:Y},[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:te},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/deletebutton${ee.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:Ue},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/notebutton${_.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"white-circle",onClick:a[7]||(a[7]=e=>{h.value=!h.value,M.value=!1,we.value.index0=-1,we.value.index1=-1})},[e.createElementVNode("image",{class:"white-circle-img",src:`/static/index/keyimg/open${h.value?"blue":""}.png`},null,8,["src"])]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("view",{class:e.normalizeClass(["white-circle-click-father",{anim:je.value}]),style:e.normalizeStyle({color:je.value?"#fff":""}),onClick:Ae},[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=>q(5))},[e.createElementVNode("view",{class:"other-father"},[e.createElementVNode("image",{style:{width:"55rpx",height:"55rpx"},src:$e}),e.createElementVNode("view",{style:{"z-index":"999","font-size":"25rpx"}}," 监控 ")])],512),[[e.vShow,!dt.value]])])])])])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-overlay",onClick:a[11]||(a[11]=e=>{I.value=!1,we.value.index0=999,fe.value=-1})},["N"===(null==(g=null==(p=et.value[xe.value[0]])?void 0:p.children[xe.value[1]])?void 0:g.izPackage)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-overlay-content",style:e.normalizeStyle([{height:"390rpx"},{top:2*ye.value-350+"rpx",left:2*he.value-780+"rpx",opacity:F.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==(L=et.value[xe.value[0]])?void 0:L.children[xe.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==(W=null==(A=et.value[xe.value[0]])?void 0:A.children[xe.value[1]])?void 0:W.startTime)+" - "+e.toDisplayString(null==(Q=null==(J=et.value[xe.value[0]])?void 0:J.children[xe.value[1]])?void 0:Q.endTime),1),e.createElementVNode("view",{class:"time-text"},e.toDisplayString(null==(ne=null==(ae=et.value[xe.value[0]])?void 0:ae.children[xe.value[1]])?void 0:ne.directiveName),1)])],4)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["popup-overlay-content",$.value]),style:e.normalizeStyle({top:2*ye.value-350+"rpx",left:2*he.value-780+"rpx",opacity:F.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==(se=null==(ce=et.value[xe.value[0]])?void 0:ce.children[xe.value[1]])?void 0:se.startTime)+" - "+e.toDisplayString(null==(Be=null==(Se=et.value[xe.value[0]])?void 0:Se.children[xe.value[1]])?void 0:Be.endTime),1),(null==(Ce=null==(Te=et.value[xe.value[0]])?void 0:Te.children[xe.value[1]])?void 0:Ce.directivesList)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"specia-cards"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(Pe=null==(_e=et.value[xe.value[0]])?void 0:_e.children[xe.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:Me}),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(st(t.directiveName)[0]),1)])))),128))])):e.createCommentVNode("",!0)])],6))],512),[[e.vShow,I.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-say",onClick:a[13]||(a[13]=e=>_.value=!1)},[e.createElementVNode("view",{class:"popup-say-content",style:e.normalizeStyle([{padding:"30rpx 0"},{opacity:U.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(w.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(w.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,_.value]]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:a[15]||(a[15]=e=>ke.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:Ne.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:Le}),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,ke.value]]),ee.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["neuro-wrapper",mt.value?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:a[16]||(a[16]=e=>ee.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=>ee.value=!1)},"取消"),e.createElementVNode("view",{class:"button",onClick:a[18]||(a[18]=e=>te())},"确定")]),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:et.value[ge.value.index0].children[ge.value.index1].netImmediateFile?et.value[ge.value.index0].children[ge.value.index1].netImmediateFile:"/static/logo.png"},null,8,["src"]),e.createElementVNode("view",{class:"title-time-time",style:{"font-size":"30rpx"}},e.toDisplayString(et.value[ge.value.index0].children[ge.value.index1].startTime+"-"+et.value[ge.value.index0].children[ge.value.index1].endTime),1),1!=et.value[ge.value.index0].children[ge.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-time-button",style:{width:"80rpx",height:"48rpx"},src:Me})):e.createCommentVNode("",!0),1!=et.value[ge.value.index0].children[ge.value.index1].cycleTypeId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font",style:{right:"10rpx",top:"5rpx","font-size":"23rpx"}},e.toDisplayString(et.value[ge.value.index0].children[ge.value.index1].cycleType),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"title-time-font-rel"},e.toDisplayString(st(et.value[ge.value.index0].children[ge.value.index1].directiveName)[0]),1)])])],2)):e.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-a4476a27"]]),$t="/static/index/down.png",Lt="/static/index/leftpeople.png",jt="/static/index/rightpeople.png",Pt="/static/index/calendar/superleft.png",At="/static/index/calendar/left.png",qt="/static/index/calendar/right.png",Ot="/static/index/calendar/superright.png";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt={exports:{}};Rt.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),V=g.toGanZhi(12*(e-1900)+t+11);l>=k&&(V=g.toGanZhi(12*(e-1900)+t+12));var x=!1,b="";k==l&&(x=!0,b=g.lunarTerm[2*t-2]),E==l&&(x=!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:V,gzDay:B,isToday:s,isLeap:v,nWeek:u,ncWeek:"星期"+d,isTerm:x,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 Wt=Yt(Rt.exports),Jt=s({__name:"calendarsimple",props:{modelValue:{type:[String,Date,Number,Object],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=Wt.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=Wt.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=Wt.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:Pt,onClick:k}),e.createElementVNode("image",{class:"head-img",src:At,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:qt,onClick:f}),e.createElementVNode("image",{class:"head-img",src:Ot,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-0ecb39d5"]]);const Qt=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:ct,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)])])}],["__scopeId","data-v-ed9a1114"]]),Gt=1450,Xt=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 g(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=25*(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),V=e.ref(0),x=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 U=(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"},M=(e,t)=>{-1!=n.value?n.value=-1:n.value=t},$=(e,t)=>{-1!=o.value?o.value=-1:e.tagtype||(o.value=t)},L=e.ref(1);e.ref(0);const j=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,p({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],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="未执行":"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=290*(P.value.index0+.5),t=234*(P.value.index1+.5);E.value=e-725,V.value=t-585;const l=6960,a=2574;E.value=Math.max(0,Math.min(E.value,l-Gt))/2+.7,V.value=Math.max(0,Math.min(V.value,a-1170))/2}}e.onMounted((()=>{y.value=h.value,f(),K.value=uni.getStorageSync("Packagelist")||[];let t=uni.getStorageSync("saveTree0"),l=[];_t.forEach((e=>{e.children.forEach((e=>{l.push({name:e.title,url:e.url})}))})),B.value=l,t.result&&(b.value=t.result),x.value=b.value[0].children,L.value=-1,j.value=-1,setTimeout((()=>{L.value=0,j.value=0}),50),uni.$on("where",ee),j.value=0,uni.getStorageSync("nuId")&&uni.getStorageSync("elderId")&&Z(),e.nextTick((()=>{!function(){let e=290*(v.value+.5)-725;const t=6960;E.value=Math.max(0,Math.min(e,t-Gt))/2+.7}()}))})),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(s,d)=>(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:"1165rpx",position:"relative"}},[e.createElementVNode("view",{class:"xian-bian"}),e.createElementVNode("scroll-view",{style:{height:"100%",width:"6960rpx","background-color":"#fff"},"scroll-top":V.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,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:"super-card-time-und"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((i,r)=>(e.openBlock(),e.createElementBlock("view",{style:{width:"100%"},key:r},[e.createElementVNode("view",{class:e.normalizeClass(R.value.index0===a&&R.value.index1===r?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!==a||Y.value.index1!==r?{borderBottom:"1rpx solid transparent"}:{zIndex:999},{position:"relative"}]),id:`a${a}_${r}`,onClick:e=>((e,t)=>{l("log","at pages/NursingNew/component/nurse/bigindex.vue:721","sssss",J.value[e].children[t]),n.value=-1,o.value=-1,q.value=J.value[e].children[t].id,re(q.value),O(e,t)})(a,r),"data-index0":a,"data-index1":r},[e.withDirectives(e.createElementVNode("view",{class:"title-time-blue"},[e.createElementVNode("image",{class:"blue-img",src:"/static/index/bluetarget.png"})],512),[[e.vShow,P.value.index0==a&&P.value.index1==r&&T.value]]),"Y"==i.izPackage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card-bao"}," 包 ")):e.createCommentVNode("",!0),"hisTimeOut"==i.executeStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"card-overtime"}," 超时 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(U(i)),style:e.normalizeStyle([{"font-size":"30rpx",overflow:"hidden"},{animationDelay:`-${D(a,r).toFixed(2)}s`,border:P.value.index0==a&&P.value.index1==r?"2rpx solid #46B2F6":""}])},[i.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time",style:{"flex-direction":"column"}},[i.startTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-time-font-rel"},e.toDisplayString(i.directiveName?te(i.directiveName)[0]:""),1)):e.createCommentVNode("",!0),i.startTime&&te(i.directiveName)[1]?(e.openBlock(),e.createElementBlock("view",{key:1,class:"title-time-font-tags"}," ("+e.toDisplayString(i.directiveName?te(i.directiveName)[1]:"")+") ",1)):e.createCommentVNode("",!0),i.startTime?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass(S(i))},[e.createElementVNode("view",{style:{"margin-bottom":"3rpx"}},e.toDisplayString(i.rightshow),1),e.createElementVNode("view",{class:""},e.toDisplayString(`${Q(i.startTime).hour}:${Q(i.startTime).minute} - ${Q(i.endTime).hour}:${Q(i.endTime).minute}`),1)],2)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),P.value.index0!=a||P.value.index1!=r||i.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[r]),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:d[0]||(d[0]=e=>{i.value=!0})},e.toDisplayString(y.value.month)+"月 ",1),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,N.value=25*(t-2),Z()})(t,l)},e.toDisplayString(t),11,["onClick"])))),128))])],8,["scroll-left"])]),e.createElementVNode("view",{class:"order-future"},[e.withDirectives(e.createVNode(Qt,{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.createTextVNode(" "+e.toDisplayString(" | "+t.serviceDuration+"分钟"),1)]),e.createElementVNode("view",{class:"future-time"},[e.createElementVNode("text",{class:"time"},e.toDisplayString(g(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))])]))]),e.createElementVNode("view",{class:"future-tag"},e.toDisplayString(t.cycleType),1),t.tagtype?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"open-img-father",onClick:e.withModifiers((e=>{M(0,l)}),["stop"]),style:e.normalizeStyle(n.value===l?{transform:"rotate(180deg)"}:{})},[e.createElementVNode("image",{class:"open-img",src:$t})],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?"320rpx":"152rpx",left:r.value===l?"0":"999rpx",top:l===X.value.length-1&&n.value===l?"-168rpx":"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.createTextVNode(" "+e.toDisplayString(" | "+t.serviceDuration+"分钟"),1)]),e.createElementVNode("view",{class:"future-time"},[e.createElementVNode("text",{class:"time"},e.toDisplayString(g(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))])]))]),e.createElementVNode("view",{class:"future-tag"},e.toDisplayString(t.cycleType),1),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:Lt}),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"},src:jt}),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:Lt}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optTypeName),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},src:jt}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optNames),1)]))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"open-img-father",onClick:e.withModifiers((e=>M(0,l)),["stop"]),style:e.normalizeStyle(n.value===l?{transform:"rotate(180deg)"}:{})},[e.createElementVNode("image",{class:"open-img",src:$t})],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-right"}," 长者标签 ")]),e.withDirectives(e.createVNode(Qt,{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"),style:{top:"1.5rpx",right:"1.5rpx"}},e.toDisplayString(t.rightshow),3),[[e.vShow,c.value!==l]]),e.createElementVNode("view",{class:"history-time"},e.toDisplayString(g(t.startTime)),1),e.createElementVNode("view",{style:{display:"flex",width:"1000rpx"}},[e.createElementVNode("image",{class:"history-img",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?"260rpx":"120rpx",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(g(t.startTime)),1),e.createElementVNode("view",{style:{display:"flex",width:"1000rpx"}},[e.createElementVNode("image",{class:"history-img",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",src:Lt}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(i=t.optNames)?void 0:i.split(",")[0]),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},src:jt}),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",src:Lt}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optTypeName),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},src:jt}),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=>$(t,l)),["stop"])},[e.createElementVNode("image",{style:e.normalizeStyle(o.value===l?{transform:"rotate(180deg)"}:{}),class:"open-img",src:$t},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",src:Lt}),e.createElementVNode("view",{class:""},e.toDisplayString(null==(r=t.optNames)?void 0:r.split(",")[0]),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},src:jt}),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",src:Lt}),e.createElementVNode("view",{class:""},e.toDisplayString(t.optTypeName),1),e.createElementVNode("image",{class:"info-img",style:{"margin-left":"15rpx"},src:jt}),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=>$(t,l)),["stop"])},[e.createElementVNode("image",{class:"open-img",src:$t,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(Jt,{onDatachange:ae,modelValue:y.value,"onUpdate:modelValue":d[1]||(d[1]=e=>y.value=e)},null,8,["modelValue"])],512),[[e.vShow,i.value]]),e.withDirectives(e.createElementVNode("view",{class:"mengban",onClick:d[2]||(d[2]=e=>i.value=!1)},null,512),[[e.vShow,i.value]])])])])])],4))}}),[["__scopeId","data-v-3fd636d1"]]),Ht="/static/shouye/xjt.png",Zt=s(e.defineComponent({__name:"leftcontent",props:{list:{type:Array},style:{type:String},userInfo:{type:Object}},emits:["navurl"],setup(t,{emit:a}){const i=t,n=e.ref(uni.getStorageSync("serverUrl")),o=a,r=e.ref(0),c=e.ref(0),s=e.ref(0),u=e.ref(0);e.watch((()=>i.list),(()=>{v.value=-1,u.value=i.list.length-6,u.value>0?v.value=0:v.value=-1}));const d=e=>{let t=52*u.value;s.value=e.detail.scrollTop,s.value<30&&(v.value=0),s.value>t-30&&(v.value=2),s.value>=30&&s.value<=t-30&&(v.value=1)},m=t=>{0==t?(c.value=s.value,e.nextTick((()=>{c.value=0}))):(c.value=s.value,e.nextTick((()=>{c.value=999})))},v=e.ref(0),p=()=>{u.value>0?v.value=0:v.value=-1,l("log","at pages/NursingNew/component/leftcontent/leftcontent.vue:108","顶")},g=()=>{v.value=2,l("log","at pages/NursingNew/component/leftcontent/leftcontent.vue:113","底")};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"},[v.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"iconst to0",onClick:a[0]||(a[0]=e=>m(0))},[e.createElementVNode("view",{class:"to0"},[e.createElementVNode("image",{src:Ht,mode:"aspectFill",style:{transform:"rotate(180deg)"}})])])):e.createCommentVNode("",!0),e.createElementVNode("scroll-view",{class:"cont","scroll-y":!0,"scroll-top":c.value,onScroll:d,"scroll-with-animation":"",onScrolltoupper:p,onScrolltolower:g},[(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,r.value=a,c.value=52*(a-2),o("navurl",l,t)}},[e.createElementVNode("view",{class:e.normalizeClass(["tm guodu",{act:l==r.value}])},[e.createElementVNode("image",{src:l==r.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!=v.value&&v.value>=0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"iconst bot0",onClick:a[1]||(a[1]=e=>m(1))},[e.createElementVNode("view",{class:"bot0"},[e.createElementVNode("image",{src:Ht,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?n.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-2515df89"]]);const Kt=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:ct,mode:"aspectFill"}),e.createElementVNode("view",null,e.toDisplayString(a.cont),1)],4)])}],["__scopeId","data-v-a9fa2905"]]),el=s(e.defineComponent({__name:"index",setup(t){c((()=>!!r.value&&(r.value--,!0)));const a=e.ref([]);e.onMounted((()=>{m.value=0,v.value=0,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/care/directive/getNcPackagelist`,method:"get"}).then((e=>{uni.setStorageSync("Packagelist",e.result)})),T({employessId:uni.getStorageSync("userInfo").employessId}).then((e=>{a.value=e.result}))}));const i=e=>{r.value=e},o=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"}]),r=e.ref(0),s=(e,t)=>{switch(v.value=-1,r.value=0,t.type){case"hldy":v.value=0,setTimeout((()=>{m.value=0}),100),l("log","at pages/NursingNew/index.vue:97","护理单元");break;case"kzgn_hljz":v.value=1,setTimeout((()=>{m.value=1}),100),l("log","at pages/NursingNew/index.vue:104","护理矩阵");break;case"kzgn_yljz":v.value=2,setTimeout((()=>{m.value=2}),100),l("log","at pages/NursingNew/index.vue:111","医疗矩阵");break;case"kzgn_hqjz":v.value=3,setTimeout((()=>{m.value=3}),100),l("log","at pages/NursingNew/index.vue:118","后勤矩阵");break;case"kzgn_kfjz":v.value=6,setTimeout((()=>{m.value=6}),100),l("log","at pages/NursingNew/index.vue:125","库房");break;case"kf_cg":l("log","at pages/NursingNew/index.vue:128","采购");break;case"kf_jh":l("log","at pages/NursingNew/index.vue:131","拣货");break;case"kf_wj":l("log","at pages/NursingNew/index.vue:134","完结");break;case"hldy_ql":v.value=4,setTimeout((()=>{m.value=4}),100),l("log","at pages/NursingNew/index.vue:141","请领");break;case"kf_th":l("log","at pages/NursingNew/index.vue:144","退货");break;case"kf_pd":l("log","at pages/NursingNew/index.vue:147","盘点");break;case"wl":v.value=5,setTimeout((()=>{m.value=5}),100),l("log","at pages/NursingNew/index.vue:154","物联");break;case"back":uni.navigateBack(),l("log","at pages/NursingNew/index.vue:158","物联")}},u=e.ref([{name:"首页",url:"/static/shouye/sy/h0.png",urls:"/static/shouye/sy/h1.png",type:"hldy"}]),d=()=>{let e=uni.getStorageSync("nuId"),t=[];a.value.forEach((l=>{l.nuId==e&&(t=l.dataList)}));let l=uni.getStorageSync("nuName");B({pageNo:-1,nuName:l}).then((e=>{let l=e.result.records[0].permissionList;u.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=o.value.find((t=>t.type==e.menuCode));t&&u.value.push(t)})));u.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"})}))},m=e.ref(-1),v=e.ref(-1),g=e.ref(!1),h=e.ref(!1),y=e.ref(!1),w=e.ref(!1),N=e.ref(!1);e.ref(0),e.ref(0),e.ref(""),e.ref(!0),e.onMounted((()=>{setTimeout((()=>{var e;(e=m.value)!==m.value&&(m.value=e,g.value=!1,h.value=!1,y.value=!1,w.value=!1,e!==u.value.length-1?setTimeout((()=>{switch(e){case 0:g.value=!0;break;case 1:h.value=!0,f();break;case 2:f();break;case 3:case 5:y.value=!0;break;case 4:w.value=!0}}),50):uni.navigateBack())}),50),g.value=!1,setTimeout((()=>{g.value=!0}),50)}));const f=()=>{N.value=!1,setTimeout((()=>{N.value=!0}),200)},k=e.ref({});return n((()=>{k.value=uni.getStorageSync("userInfo")})),(t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"backgroundContainer"},[e.createVNode(Zt,{list:u.value,onNavurl:s,userInfo:k.value},null,8,["list","userInfo"]),0!=v.value||r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Fe,{key:0,isShow:0==m.value,onSwip:d,onGospecial:i},null,8,["isShow"])),0==v.value&&1==r.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Xt,{key:1,isshow:0==m.value},null,8,["isshow"])):e.createCommentVNode("",!0),1==v.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Mt,{key:2,isshow:1==m.value},null,8,["isshow"])):e.createCommentVNode("",!0),2==v.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(It,{key:3})):e.createCommentVNode("",!0),3==v.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Ye,{key:4,isshow:3==m.value},null,8,["isshow"])):e.createCommentVNode("",!0),6==v.value&&uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Xe,{key:5,isshow:6==m.value},null,8,["isshow"])):e.createCommentVNode("",!0),4==v.value?(e.openBlock(),e.createBlock(zt,{key:6,isShow:4==m.value},null,8,["isShow"])):e.createCommentVNode("",!0),5==v.value?(e.openBlock(),e.createBlock(Ue,{key:7,isShow:5==m.value},null,8,["isShow"])):e.createCommentVNode("",!0),1!=m.value&&2!=m.value||uni.getStorageSync("elderId")&&uni.getStorageSync("nuId")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:8,class:"nomessageclass",style:e.normalizeStyle(N.value?{opacity:"1"}:{opacity:"0"})},[e.createVNode(Kt,{cont:"暂无老人入住"})],4))]))}}),[["__scopeId","data-v-dc472a30"]]),tl="/static/index/procurement/sh.png",ll=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getMaterialTreeData?nuId=`+e.nuId,method:"get",data:e}),al=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGwcMaterialTreeData?nuId=`+e.nuId,method:"get",data:e}),il=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getCgdMaterialTreeData?nuId=`+e.nuId,method:"get",data:e}),nl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdList`,method:"get",data:e}),ol=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryShoppingCartList`,method:"get",data:e}),rl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getTreeDataWlnum`,method:"get",data:e}),cl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGwcTreeDataWlnum`,method:"get",data:e}),sl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getCgdTreeDataWlnum`,method:"get",data:e}),ul=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thdList`,method:"get",data:e}),dl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/transRead`,method:"POST",data:e}),ml=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thdNuMaterialList`,method:"get",data:e}),vl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQld`,method:"get",data:e}),pl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/queryQldWlInfo`,method:"get",data:e}),gl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/queryPddList`,method:"get",data:e}),hl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/queryPddInfoList`,method:"get",data:e});const yl=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:pt,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"]]),wl=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(Kt,{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:vt,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(yl,{onBack:a[3]||(a[3]=e=>r.value=0),show:2==r.value,font:"确定将本次退货清单中的所有物料都移除吗?",onRight:c},null,8,["show"])]))}}),[["__scopeId","data-v-cea2a1e8"]]),Nl=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:Et,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"]]),fl=s(e.defineComponent({__name:"thitem",props:{InvoicingList:{type:Array,required:!0},status:{type:String}},emits:["scrolltolower","comfig"],setup(t,{emit:a}){const i=t,n=e.ref(!1),o=e.ref("");e.ref(0);const r=e.ref({}),c=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),s=a,u=e.ref(0),d=e.ref(0),m=e.ref(!0),v=e.ref(!1),p=e.ref({}),g=(e,t)=>{s("comfig",e,t),v.value=!1},h=(e,t)=>{l("log","at pages/procurement/common/thitem.vue:178",e),i.InvoicingList.forEach(((e,l)=>{l!=t&&1==e.zk&&(e.zk=!1,e.scrollleft=0)}))},y=e.ref(0),w=e=>{y.value=e.detail.scrollLeft};return(l,a)=>{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:a[1]||(a[1]=e=>{s("scrolltolower")}),"enable-back-to-top":""},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.InvoicingList,((l,s)=>{var g,N,f,k,E,V,x,b,S,B,T;return e.openBlock(),e.createElementBlock("view",{class:"fler",key:s},[e.createElementVNode("scroll-view",{class:"carditem guodu",onTouchend:t=>((t,l,a)=>{let i=t.changedTouches[0].pageY,n=t.changedTouches[0].pageX,o=Math.abs(n-u.value),c=Math.abs(i-d.value);if(m.value=!0,c>30&&o+10<c)return r.value.scrollleft=.01,void setTimeout((()=>{r.value.scrollleft=0}),20);o<10&&c<10?0==r.value.zk&&setTimeout((()=>{r.value.scrollleft=0}),20):(y.value<=40?(r.value.scrollleft=y.value,r.value.zk=!1,e.nextTick((()=>{r.value.scrollleft=0,y.value=0}))):(y.value=150,r.value.scrollleft=y.value,r.value.zk=!0),r.value.zk=!(n>u.value),r.value.scrollleft=r.value.zk?150:0)})(t),onTouchstart:e=>((e,t,l)=>{r.value=t,u.value=e.changedTouches[0].pageX,d.value=e.changedTouches[0].pageY,m.value&&(m.value=!1,h(t,l))})(e,l,s),"scroll-with-animation":"","scroll-x":"true","scroll-left":l.scrollleft,onScroll:w},[l.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:ft,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"bgimg"},[e.createElementVNode("image",{src:(null==(g=l.materialInfo)?void 0:g.materialImg)?c.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==(V=l.materialInfo)?void 0:V.typeName),1)):e.createCommentVNode("",!0),(null==(x=l.materialInfo)?void 0:x.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)),h(e,t)})(l,s)),["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"==i.status)return o.value="退货单已完成不能添加退货物料!",void(n.value=!0);p.value=e,v.value=!0})(l)),["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(Kt,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw"}})):e.createCommentVNode("",!0)])],32),e.createVNode(Nl,{show:v.value,objtake:p.value,onFill:a[2]||(a[2]=e=>v.value=!1),onRight:g},null,8,["show","objtake"]),e.createVNode(N,{show:n.value,font:o.value,onClose:a[3]||(a[3]=e=>n.value=!1)},null,8,["show","font"])])}}}),[["__scopeId","data-v-11babd64"]]),kl=s(e.defineComponent({__name:"submits",props:{list:{type:Array,required:!0},show:{type:Boolean},thdt:{type:Object}},emits:["fill","submit","config"],setup(t,{emit:a}){const i=t,n=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");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/procurement/common/submits.vue:98",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,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)?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),(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=>r("fill"))}," 取消 "),e.createElementVNode("view",{class:"plsbuy-bottom-blue",onClick:a[2]||(a[2]=e=>r("config"))}," 入库退货单 ")])],6)]))}}),[["__scopeId","data-v-0e7f34f6"]]),El=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=Wt.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=Wt.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=Wt.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:Pt,onClick:N}),e.createElementVNode("image",{class:"head-img",src:At,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:qt,onClick:w}),e.createElementVNode("image",{class:"head-img",src:Ot,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-0314e4b5"]]),Vl=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((()=>{g()}));const g=()=>{ul({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},p({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};ul(l).then((e=>{b.value[t]=e.result.records[0],g()}))},k=()=>{var e;(e={id:z.value.id},p({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},p({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})}))},V=e.ref("loadmore"),x=()=>{"loading"!=V.value&&"nomore"!=V.value&&(V.value="loading",u.pageNo++,S())},b=e.ref([]),S=()=>{ul(u).then((e=>{b.value.push(...e.result.records),l("log","at pages/procurement/retstock.vue:306","red",e.result.records),V.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]),M(),ml({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),M(),I(e),ml({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},p({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)=>{dl({id:e.id}),e.izRead="Y"},U=(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,p({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})}))},M=()=>{let e={pkId:b.value[B.value].id};var t;(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thcList`,method:"get",data:t})).then((e=>{F.value=e.result}))},$=()=>{let e={pkId:b.value[B.value].id};var t;(t=e,p({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})}))},L=e.ref({}),j=e=>{L.value=e,d.value=!0},P=()=>{var e;let t={pkId:b.value[B.value].id,wlId:null==(e=L.value.materialInfo)?void 0:e.id};var l;(l=t,p({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"),Nt),_=e.resolveComponent("errorshow"),M=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:tl,mode:"aspectFill",class:"sh"}),e.createTextVNode(" 检索 ")]),e.createElementVNode("view",{class:"scr",onClick:q},[e.createElementVNode("image",{src:He,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:x},[(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(Kt,{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:V.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],40,["scroll-top"])]),e.createElementVNode("view",{class:"rightscr"},[e.createElementVNode("view",{class:"thwl"},[e.createVNode(wl,{Material:F.value,onDelall:$,onDel:j,onSubmit:h,status:null==(n=b.value[B.value])?void 0:n.status},null,8,["Material","status"])]),e.createElementVNode("view",{class:"carditem"},[e.createVNode(fl,{InvoicingList:C.value,status:null==(o=b.value[B.value])?void 0:o.status,onComfig:U},null,8,["InvoicingList","status"])])])]),e.createVNode(yl,{onBack:l[2]||(l[2]=e=>d.value=!1),show:d.value,font:"确定将该物料从本次退货清单中移除吗?",onRight:P},null,8,["show"]),e.createVNode(kl,{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(El,{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:ve}),e.createTextVNode(" "+e.toDisplayString(z.value.optTypeName)+" ",1),e.createElementVNode("image",{style:{"margin-left":"1vw"},class:"people-img",src:pe}),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:ge},null,4)])],4)):e.createCommentVNode("",!0),e.createVNode(M)],4)}}}),[["__scopeId","data-v-655817e1"]]),xl=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"]]),bl=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"]]),Sl=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&&(V.value?V.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")&&W(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),V=e.ref(!1),x=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(),V.value=!0,x.value=!1,setTimeout((()=>{x.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();V.value&&(V.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:Me},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(xl,{ref:"gobackdrawer"},{default:e.withCtx((()=>[e.createVNode(bl,{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:x.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,V.value]])])}}}),[["__scopeId","data-v-147728f9"]]),Bl="/static/index/keyimg/deletebutton.png",Tl="/static/index/warehouse/procurement/picking/noarray.png",Cl="/static/index/warehouse/procurement/picking/data.png",Dl="/static/index/warehouse/procurement/picking/center.png",zl="/static/shili.png",Il="/static/index/warehouse/procurement/picking/loading.png",Fl="/static/index/warehouse/procurement/picking/nomessage.png",_l="/static/index/youngman.png",Ul=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdList`,method:"get",data:e}),Ml=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCgdInfoList`,method:"get",data:e}),$l=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/voidedCgdMain`,method:"post",data:e}),Ll=()=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getCgrList`,method:"get"}),jl=()=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/getGysList`,method:"get"}),Pl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editPrice`,method:"post",data:e}),Al=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pickingInfo`,method:"post",data:e}),ql=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/querySxdList`,method:"get",data:e}),Ol=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/addSxd`,method:"post",data:e}),Yl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryJhzpList`,method:"get",data:e}),Rl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryPickingRecordList`,method:"get",data:e}),Wl=e=>p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editIzNew`,method:"post",data:e}),Jl=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=()=>{Pl({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=j.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 j.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 V=e.ref([]),x=e.ref(-1),b=()=>{V.value=[],B.value="",j.suppliers="",Y()},S=e.ref(""),B=e.ref("");function T(e){var t;if(!e.detail.value)return j.suppliers="",V.value=[],x.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?(V.value=I.value.filter((e=>f(null==e?void 0:e.suppliersName,l))),V.value.length||V.value.push({suppliersName:"暂无数据"})):V.value=I.value.slice()}),300)}const C=e.ref(!1),D=e.ref(!1),z=e.ref([]),I=e.ref([]),F=()=>{Ll().then((e=>{z.value=e.result})),jl().then((e=>{I.value=e.result}))},_=e.ref(!1);e.ref("");const U=e.ref(0),M=["待入库","待完结","已完结"],L=e.ref(-1);e.ref(0);const j=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(j,P),S.value="",B.value="",de()},O=e=>{j.startTime=e.start,j.endTime=e.end,Y()},Y=()=>{let e={...j,pageNo:1};Ul(e).then((e=>{J.value=e.result.total}))},R=e.ref(0),W=e.ref([]),J=e.ref(0),Q=e.ref(!1),G=()=>{Ul(j).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<j.pageSize&&(j.canpull=!1)}))},X=e.ref(!0),H=()=>{X.value&&(j.pageNo++,Z(),X.value=!1,setTimeout((()=>{X.value=!0}),500))},Z=()=>{j.canpull&&Ul(j).then((e=>{W.value.push(...e.result.records),J.value=e.result.total,e.result.records.length<j.pageSize&&(j.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=>{U.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=>{Ml(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};Rl(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=()=>{j.pageNo=1,W.value=[],j.canpull=!0,Ul(j).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<j.pageSize&&(j.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}),l("log","at pages/Warehouse/picking.vue:1601","-------------------success:",e)},fail:function(e){l("log","at pages/Warehouse/picking.vue:1604","------------------- fail:",e),uni.showToast({title:e,icon:"none",duration:2e4})}})},he=e.ref(!1),we=()=>{var e;!Number(null==(e=W.value[K.value])?void 0:e.status)&&W.value.length&&(he.value=!0,me.value=-1)},Ne=()=>{$l({id:W.value[K.value].id}).then((e=>{l("log","at pages/Warehouse/picking.vue:1622","res",e),e.success?(uni.showToast({title:e.message,icon:"success",duration:2e3}),K.value=0,he.value=!1,ne.value=[],W.value=[],Object.assign(j,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([]),Ve=e=>{1==e?be():xe(),L.value=e,fe.value=!1,setTimeout((()=>{fe.value=!0}),100)};e.ref(1);const xe=()=>{let e={cgdId:W.value[K.value].id};Yl(e).then((e=>{Ee.value=e.result}))},be=()=>{let e={cgdId:W.value[K.value].id,pageNo:1,pageSize:-1};ql(e).then((e=>{l("log","at pages/Warehouse/picking.vue:1679",e.result.records),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);Ol({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),Ue=e=>{$e(e)},Me=()=>{clearInterval(_e.value)},$e=e=>{_e.value=setInterval((()=>{Le(e)}),120)},Le=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))},je=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};Al(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(U.value)}),700)):(qe.value=[],Pe.value=e.message,je.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:1907",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}))),et=e.computed((()=>({width:"calc(100% - 4rpx)",height:"calc(100% - 4rpx)",borderRadius:"36rpx",backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2}))),tt=e.computed((()=>({color:Xe.value[0]||Ge(Re),fontSize:"30rpx",fontWeight:"600",zIndex:3})));let lt=null;return e.onMounted((()=>{const e=Math.max(1,Math.round(1e3/120));lt=setInterval((()=>{Je.value+=1/e,Je.value>=1&&(Je.value-=1)}),120)})),e.onUnmounted((()=>{lt&&clearInterval(lt)})),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(Kt,{cont:"暂无数据",style:{"z-index":"999"}})])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:b},null,512),[[e.vShow,V.value.length&&B.value]]),V.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(V.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>((e,t)=>{V.value=[],j.suppliers=e.suppliers,B.value=e.suppliersName,x.value=t,Y()})(t,l)},e.toDisplayString(t.suppliersName),9,["onClick"])),[[e.vShow,"暂无数据"!=V.value[0].suppliersName]]))),128)),"暂无数据"===V.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=[],j.cgBy=e.cgBy,S.value=j.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(El,{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:Bl,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:ye}),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=>Le(-1)),onLongpress:a[16]||(a[16]=e=>Ue(-1)),onTouchend:Me}," - ",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=>Le(1)),onLongpress:a[18]||(a[18]=e=>Ue(1)),onTouchend:Me}," + ",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:Et,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:Tl,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:ye}),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(""==j.status?"more-statues-button-target":"more-statues-button"),onClick:a[37]||(a[37]=e=>{j.cgdType="0,1",j.status="",de()})}," 全部 ",2),e.createElementVNode("view",{class:e.normalizeClass("0"==j.status?"more-statues-button-target":"more-statues-button"),onClick:a[38]||(a[38]=e=>{j.cgdType="0",j.status="0",de()})}," 待入库 ",2),e.createElementVNode("view",{class:e.normalizeClass("1"==j.status?"more-statues-button-target":"more-statues-button"),onClick:a[39]||(a[39]=e=>{j.cgdType="0",j.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,!j.startTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(j.startTime),513),[[e.vShow,j.startTime]]),e.createElementVNode("view",{style:{"font-size":"32rpx"}}," 至 "),e.withDirectives(e.createElementVNode("view",{class:"more-gray"}," 结束日期 ",512),[[e.vShow,!j.endTime]]),e.withDirectives(e.createElementVNode("view",{class:"more-black"},e.toDisplayString(j.endTime),513),[[e.vShow,j.endTime]]),e.createElementVNode("image",{class:"more-img",src:Cl})]),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:Dl})]),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:Dl})])],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=>j.cgdParamInfo=e),maxlength:"15",placeholder:"采购单号/采购日期/供应商",onConfirm:a[46]||(a[46]=e=>de())},null,544),[[e.vModelText,j.cgdParamInfo]]),e.withDirectives(e.createElementVNode("image",{class:"title-input-img",src:$,onClick:a[47]||(a[47]=e=>{j.cgdParamInfo="",de()})},null,512),[[e.vShow,j.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(""==j.status?"statues-button-target":"statues-button"),style:{"margin-left":"4%"},onClick:a[50]||(a[50]=e=>{j.cgdType="0,1",j.status="",de()})}," 全部 ",2),e.createElementVNode("view",{class:e.normalizeClass("0"==j.status?"statues-button-target":"statues-button"),onClick:a[51]||(a[51]=e=>{j.cgdType="0",j.status="0",de()})}," 待入库 ",2),e.createElementVNode("view",{class:e.normalizeClass("1"==j.status?"statues-button-target":"statues-button"),onClick:a[52]||(a[52]=e=>{j.cgdType="0",j.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,Ml(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",Wl({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:Ke})]),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:Ke}))]),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:Ke}))]),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:zl}),e.createElementVNode("view",{class:"end-left-font"},e.toDisplayString(t.gysId_dictText),1)]),e.createElementVNode("view",{class:"tag-success"},e.toDisplayString(M[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=>Ve(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=>Ve(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:we},[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:U.value===l?"4rpx dashed #1083F8":"4rpx solid transparent",backgroundColor:U.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:U.value!==l?"600":"",color:U.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:U.value===l?"600":"",color:U.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(et.value)},[e.createElementVNode("text",{style:e.normalizeStyle(tt.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:Il})):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:Fl}),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:_l}),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:Ne},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:je.value,font:Pe.value,onClose:a[65]||(a[65]=e=>je.value=!1)},null,8,["show","font"]),e.createVNode(oe)],4)}}}),[["__scopeId","data-v-f1e2e8bf"]]),Ql=s(e.defineComponent({__name:"finish",props:{isShow:{type:Boolean}},setup(t){const a=e.ref(0),i=e.ref(0),n=e.ref(""),o=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),r=e.ref(!1),c=e.ref(!1),s=e.ref(!1),u=e.ref(!1),d=e.ref(""),m=()=>{Pl({id:Z.value.id,arrivalPrice:d.value}).then((e=>{l("log","at pages/Warehouse/finish.vue:1112","res",e),200==e.code&&(Z.value.arrivalPrice=d.value,Z.value.totalPrice=Number(d.value)*Number(Z.value.purchaseQuantity),Y.value[H.value].totalPrice=e.result.totalPrice,r.value=!1)}))};function v(e){if(c.value&&(d.value="",c.value=!1),"AC"!==e)if("."!==e){if(/^\d$/.test(e)){if(d.value.includes(".")){const[t,l]=d.value.split(".");return void((l||"").length<2&&(d.value+=e))}let t=d.value;"0"===t&&(t=""),t.length<4&&(d.value=t+e)}}else d.value.includes(".")||(d.value=""===d.value?"0.":d.value+".");else d.value="0"}const p=e.ref([]),g=()=>{p.value=[],E.value=M.cgBy,q()};function h(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 y=null;function w(e){var t;if(!e.detail.value)return M.cgBy="",p.value=[],void se();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();y&&clearTimeout(y),y=setTimeout((()=>{l?(p.value=C.value.filter((e=>h(null==e?void 0:e.cgBy,l))),p.value.length||p.value.push({cgBy:"暂无数据"})):p.value=C.value.slice()}),300)}const N=e.ref([]),f=e.ref(-1),k=()=>{N.value=[],V.value="",M.suppliers="",q()},E=e.ref(""),V=e.ref("");function x(e){var t;if(!e.detail.value)return M.suppliers="",N.value=[],f.value=-1,V.value="",void se();const l=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();y&&clearTimeout(y),y=setTimeout((()=>{l?(N.value=D.value.filter((e=>h(null==e?void 0:e.suppliersName,l))),N.value.length||N.value.push({suppliersName:"暂无数据"})):N.value=D.value.slice()}),300)}const b=t;e.watch((()=>b.isShow),((e,t)=>{!t&&e?(J(),z(),S.value=!1,setTimeout((()=>{S.value=!0}),50)):S.value=!1})),e.onMounted((()=>{J(),z(),S.value=!1,setTimeout((()=>{S.value=!0}),50)}));const S=e.ref(!1),B=e.ref(!1),T=e.ref(!1),C=e.ref([]),D=e.ref([]),z=()=>{Ll().then((e=>{C.value=e.result})),jl().then((e=>{D.value=e.result}))},I=e.ref(!1);e.ref("");const F=e.ref(0),_=["待入库","待完结","已完结"],U=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")}),L={pageNo:1,pageSize:10,canpull:!0,cgdParamInfo:"",suppliers:"",cgdType:"2",startTime:"",endTime:"",cgBy:"",nuId:uni.getStorageSync("nuId")},j=e.ref(!0),P=()=>{j.value=!1,setTimeout((()=>{j.value=!0}),300),Object.assign(M,L),E.value="",V.value="",se()},A=e=>{M.startTime=e.start,M.endTime=e.end,q()},q=()=>{let e={...M,pageNo:1};Ul(e).then((e=>{R.value=e.result.total}))},O=e.ref(0),Y=e.ref([]),R=e.ref(0),W=e.ref(!1),J=()=>{Ul(M).then((e=>{Y.value.push(...e.result.records),R.value=e.result.total,e.result.total||(W.value=!0),e.result.records.length&&(K.cgdId=Y.value[0].id,ie(0)),e.result.records.length<M.pageSize&&(M.canpull=!1)}))},Q=e.ref(!0),G=()=>{Q.value&&(M.pageNo++,X(),Q.value=!1,setTimeout((()=>{Q.value=!0}),500))},X=()=>{M.canpull&&Ul(M).then((e=>{Y.value.push(...e.result.records),R.value=e.result.total,e.result.records.length<M.pageSize&&(M.canpull=!1)}))},H=e.ref(0),Z=e.ref({materialImg:"",cgrvalue:"",gysvalue:"",wlName:"",procurementPrice:"",wlMaterialNo:"",wlSpecificationModel:"",purchaseQuantity:"",wlUnits:"",kcsl:"",wlUpperLimit:"",wlLowerLimit:"",suppliersName:"",jianhuobtn:!1}),K=e.reactive({nuId:"",pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0,canpull:!0}),ee={nuId:"",pageNo:1,pageSize:9,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0},te=e.ref(0),le=e=>{F.value=e,Z.value=ae.value[e],Z.value.jianhuobtn=!1,te.value=172*(e-2),(0==Number(Z.value.status)||Number(Z.value.status)>0&&Number(Z.value.wrksl)>0)&&(Z.value.maxnum=0==Z.value.rksl&&0==Z.value.wrksl&&0==Z.value.xzsl?Z.value.purchaseQuantity:Z.value.wrksl,Z.value.num=Z.value.maxnum,n.value=De(Z.value.num),Z.value.jianhuobtn=!0),Object.assign(K,ee),oe.value=1,ne.value=[],ce()},ae=e.ref([]),ie=e=>{Ml(K).then((t=>{ae.value=t.result.records,le(e)}))},ne=e.ref([]),oe=e.ref(1),re=e.ref("loading"),ce=()=>{let e={cgdId:Z.value.cgdId,wlId:Z.value.wlId,pageNo:oe.value,pageSize:10};Rl(e).then((e=>{ne.value.push(...e.result.records),re.value=e.result.total==ne.value.length||0==e.result.records.length?"nomore":"loadmore"}))},se=()=>{M.pageNo=1,Y.value=[],Ul(M).then((e=>{Y.value.push(...e.result.records),R.value=e.result.total,e.result.records.length&&(K.cgdId=Y.value[0].id,ie(0)),e.result.records.length<M.pageSize&&(M.canpull=!1)}))},ue=e.ref(-1);e.ref(-1);const de=e.ref(!1),me=e.ref(!1),ve=()=>{l("log","at pages/Warehouse/finish.vue:1613","-----------------------\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}),l("log","at pages/Warehouse/finish.vue:1629","-------------------success:",e)},fail:function(e){l("log","at pages/Warehouse/finish.vue:1632","------------------- fail:",e),uni.showToast({title:e,icon:"none",duration:2e4})}})},pe=e.ref(!1),ge=()=>{$l({id:Y.value[H.value].id}).then((e=>{l("log","at pages/Warehouse/finish.vue:1650","res",e),e.success?(uni.showToast({title:e.message,icon:"success",duration:2e3}),H.value=0,pe.value=!1,ae.value=[],Y.value=[],Object.assign(M,L),Object.assign(K,ee),J()):(uni.showToast({title:e.message,icon:"none",duration:2e3}),pe.value=!1)}))},he=e.ref(!1),we=e.ref([]),Ne=e.ref([]),fe=e=>{1==e?Ee():ke(),U.value=e,he.value=!1,setTimeout((()=>{he.value=!0}),100)};e.ref(1);const ke=()=>{let e={cgdId:Y.value[H.value].id};Yl(e).then((e=>{Ne.value=e.result}))},Ee=()=>{let e={cgdId:Y.value[H.value].id,pageNo:1,pageSize:-1};ql(e).then((e=>{l("log","at pages/Warehouse/finish.vue:1707",e.result.records),we.value=e.result.records}))},Ve=e.ref([]),xe=e=>{uni.chooseImage({count:1,sizeType:["compressed"],sourceType:["camera"],success:t=>{let a=JSON.stringify(t.tempFilePaths);uni.compressImage({src:JSON.parse(a)[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);Ol({sxdPic:t.message,cgdId:Y.value[H.value].id}).then((e=>{e.success&&Ee()}))},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})})(t.tempFilePath),l("log","at pages/Warehouse/finish.vue:1755",t.tempFilePath)):Ve.value.push(t.tempFilePath)}})}})},be=(e,t,l,a)=>{if(1==a){let e=[];l.forEach((t=>{e.push(o.value+t.sxdPic)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}else if(2==a){let e=[];l.forEach((t=>{e.push(o.value+t.jhPic)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}else uni.previewImage({current:t,urls:l,showmenu:!1,longPressActions:{itemList:[]}})},Se=e.ref(-1),Be=e.ref(!1),Te=e=>"AC"==e?(Z.value.num=0,void(n.value=De(Z.value.num))):"AE"==e?(Z.value.num=Math.trunc(Z.value.num/10),void(n.value=De(Z.value.num))):1==Be.value?(Z.value.num=e,Be.value=!1,void(n.value=De(Z.value.num))):void(Ce(Z.value.num)>3||(Z.value.num?Z.value.num=10*Z.value.num+e:Z.value.num=e,n.value=De(Z.value.num))),Ce=e=>Math.abs(e).toString().length,De=e=>{const t=Math.floor(Math.abs(e));return String(t).padStart(4,"0")},ze=e.ref(null),Ie=e=>{_e(e)},Fe=()=>{clearInterval(ze.value)},_e=e=>{ze.value=setInterval((()=>{Ue(e)}),120)},Ue=e=>{let t=Z.value.maxnum;t<=Z.value.num&&1==e?Z.value.num=t:Z.value.num<=1&&-1==e?Z.value.num=1:(Z.value.num+=e,n.value=De(Z.value.num))},Me=e=>{let t="";$e.value.forEach((e=>{t+=e+","}));let i={jhId:Z.value.id,jhNum:Z.value.num,jhType:e,jhPic:""==t?null:t,cgdId:Z.value.cgdId};Al(i).then((e=>{l("log","at pages/Warehouse/finish.vue:1889","入参",i),l("log","at pages/Warehouse/finish.vue:1890","返回",e),uni.showToast({icon:"none",title:e.message?e.message:"操作成功"}),e.success&&(Y.value[H.value].totalPrice=e.result.cgdTotalPrice,Ve.value=[],$e.value=[],s.value=!1,a.value=0,K.cgdId=Y.value[H.value].id,Y.value[H.value]=e.result.cgdInfo,ie(F.value))}))},$e=e.ref([]),Le=e=>{if(0==Ve.value.length)return void Me(e);let t=new Date,l=t.getFullYear(),a=t.getMonth()+1;Ve.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==Ve.value.length&&Me(e)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})}))},je=e=>{Number(n.value)?1==e?a.value=2:Le(0):uni.showToast({title:"数量为0的时候无法销账或入库",icon:"none"})},Pe=[210,210,210],Ae=[50,152,255],qe=e.ref(0);function Oe(e,t,l){return Math.round(e+(t-e)*l)}function Ye(e){return"#"+e.map((e=>e.toString(16).padStart(2,"0"))).join("")}const Re=e.computed((()=>{const e=[];for(let t=0;t<8;t++){const l=(qe.value+t/8)%1,a=[Oe(Pe[0],Ae[0],l),Oe(Pe[1],Ae[1],l),Oe(Pe[2],Ae[2],l)];e.push(Ye(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:Re.value[0]||Ye(Pe),fontSize:"30rpx",fontWeight:"600",zIndex:3})));let We=null;return e.onMounted((()=>{const e=Math.max(1,Math.round(1e3/120));We=setInterval((()=>{qe.value+=1/e,qe.value>=1&&(qe.value-=1)}),120)})),e.onUnmounted((()=>{We&&clearInterval(We)})),e.ref(!1),(t,l)=>{var c,h,y,b,C,D,z,L;const J=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock("view",{class:"contain guodu",style:e.normalizeStyle([S.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.withDirectives(e.createElementVNode("view",{class:"mengban",style:e.normalizeStyle(B.value||T.value||u.value?{background:"transparent"}:{}),onClick:l[0]||(l[0]=e=>{ue.value=-1,U.value=-1,s.value=!1,r.value=!1,u.value=!1,B.value=!1,T.value=!1,Ve.value=[]})},null,4),[[e.vShow,-1!=ue.value||-1!=U.value||s.value||r.value||u.value]]),W.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(Kt,{cont:"暂无数据",style:{"z-index":"999"}})])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:k},null,512),[[e.vShow,N.value.length&&V.value]]),N.value.length&&V.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"input-next",style:{bottom:"660rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>((e,t)=>{N.value=[],M.suppliers=e.suppliers,V.value=e.suppliersName,f.value=t,q()})(t,l)},e.toDisplayString(t.suppliersName),9,["onClick"])),[[e.vShow,"暂无数据"!=N.value[0].suppliersName]]))),128)),"暂无数据"===N.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:g},null,512),[[e.vShow,p.value.length&&E.value]]),p.value.length&&E.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"input-next"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.slice(0,5),((t,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"next-father",key:l,onClick:e=>(e=>{p.value=[],M.cgBy=e.cgBy,E.value=M.cgBy,q()})(t)},e.toDisplayString(t.cgBy),9,["onClick"])),[[e.vShow,"暂无数据"!=p.value[0].cgBy]]))),128)),"暂无数据"===p.value[0].cgBy?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomessage"}," 暂无数据 ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),j.value?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:3,class:"calendar-father"},[e.createVNode(El,{onDatachange:A})],512)),[[e.vShow,u.value]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{class:"gaijiafather",style:e.normalizeStyle(he.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(d.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(d.value),1)]),e.createElementVNode("view",{style:{position:"absolute",right:"30rpx",bottom:"30rpx"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{onClick:l[1]||(l[1]=e=>r.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:m,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:l[2]||(l[2]=e=>v("1"))}," 1 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[3]||(l[3]=e=>v("2"))}," 2 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[4]||(l[4]=e=>v("3"))}," 3 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[5]||(l[5]=e=>v("4"))}," 4 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[6]||(l[6]=e=>v("5"))}," 5 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[7]||(l[7]=e=>v("6"))}," 6 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[8]||(l[8]=e=>v("7"))}," 7 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[9]||(l[9]=e=>v("8"))}," 8 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[10]||(l[10]=e=>v("9"))}," 9 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",style:{"font-size":"30rpx"},onClick:l[11]||(l[11]=e=>v("AC"))}," 清零 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[12]||(l[12]=e=>v("0"))}," 0 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[13]||(l[13]=e=>v("."))}," . ")])])],4),[[e.vShow,r.value]]),e.withDirectives(e.createElementVNode("view",{class:"jianhuofather guodu",style:e.normalizeStyle(he.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(Z.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(Z.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(Z.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(Z.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(Z.value.arrivalPrice?Number(Z.value.arrivalPrice).toFixed(2):Number(Z.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(Z.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(Z.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(Z.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(Z.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(Z.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(Ve.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"moban-photo",key:l},[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=>{Se.value=l,a.value=1}),["stop"])},[e.createElementVNode("image",{src:$,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=>be(0,l,Ve.value)},null,8,["src","onClick"])])))),128)),Ve.value.length<4?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"40%",height:"150rpx","margin-right":"4%","margin-top":"3%"},onClick:l[14]||(l[14]=e=>xe(0))},[e.createElementVNode("view",{class:"moban-photo-special"},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-bottom":"5rpx"},src:ye}),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:l[15]||(l[15]=e=>Ue(-1)),onLongpress:l[16]||(l[16]=e=>Ie(-1)),onTouchend:Fe}," - ",32),e.createElementVNode("view",{class:"gray-input",style:{width:"12vw"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,l)=>(e.openBlock(),e.createElementBlock("text",{key:l},e.toDisplayString(t),1)))),128))]),e.createElementVNode("view",{class:"gray-button",onClick:l[17]||(l[17]=e=>Ue(1)),onLongpress:l[18]||(l[18]=e=>Ie(1)),onTouchend:Fe}," + ",32)]),e.createElementVNode("view",{class:"jianhuobutton"},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{onClick:l[19]||(l[19]=e=>{s.value=!1,Be.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:l[20]||(l[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:l[21]||(l[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:l[22]||(l[22]=e=>Te(1))}," 1 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[23]||(l[23]=e=>Te(2))}," 2 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[24]||(l[24]=e=>Te(3))}," 3 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[25]||(l[25]=e=>Te(4))}," 4 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[26]||(l[26]=e=>Te(5))}," 5 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[27]||(l[27]=e=>Te(6))}," 6 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[28]||(l[28]=e=>Te(7))}," 7 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[29]||(l[29]=e=>Te(8))}," 8 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[30]||(l[30]=e=>Te(9))}," 9 ")]),e.createElementVNode("view",{style:{display:"flex",width:"480rpx"}},[e.createElementVNode("view",{class:"gray-button-jianpan",style:{"font-size":"30rpx"},onClick:l[31]||(l[31]=e=>Te("AC"))}," 清零 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[32]||(l[32]=e=>Te(0))}," 0 "),e.createElementVNode("view",{class:"gray-button-jianpan",onClick:l[33]||(l[33]=e=>Te("AE"))},[e.createElementVNode("image",{src:Et,mode:"aspectFill",style:{width:"50%",height:"50%"}})])])])],4),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("view",{class:"photowall",style:e.normalizeStyle(he.value?{opacity:1}:{opacity:0})},[e.createElementVNode("view",{class:"photowall-title"},[e.createElementVNode("view",{class:"photowall-name"},e.toDisplayString(U.value?"随行单":"拣货照片"),1),e.createElementVNode("view",{class:""},[e.createElementVNode("text",{class:"photowall-left"}," 采购单号: "),e.createElementVNode("text",{class:"photowall-right"},e.toDisplayString(null==(c=Y.value[H.value])?void 0:c.cgdNo),1)])]),0==U.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(Ne.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>be(0,l,Ne.value,2)},[e.createElementVNode("image",{style:{width:"100%",height:"70%","border-radius":"30rpx"},src:t.jhPic?o.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)),Ne.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"noarray"},[e.createElementVNode("image",{class:"noarray-img",src:Tl,mode:"aspectFill"}),e.createElementVNode("view",{class:"noarray-font"}," 暂无拣货照片 ")]))])):e.createCommentVNode("",!0),1==U.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(we.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:l,onClick:e=>be(0,l,we.value,1)},[e.createElementVNode("image",{style:{width:"100%",height:"70%","border-radius":"30rpx"},src:t.sxdPic?o.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)),we.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"noarray"},[e.createElementVNode("image",{class:"noarray-img",src:Tl,mode:"aspectFill"}),e.createElementVNode("view",{class:"noarray-font"}," 暂无随行单 ")]))])):e.createCommentVNode("",!0)],4),[[e.vShow,-1!=U.value]]),e.createElementVNode("view",{class:"contain-left"},[e.withDirectives(e.createElementVNode("view",{class:"mengban",style:{background:"transparent"},onClick:l[34]||(l[34]=e=>I.value=!1)},null,512),[[e.vShow,I.value]]),e.withDirectives(e.createElementVNode("view",{class:"left-select-more"},[e.createElementVNode("view",{class:"more-bottom"},[e.createElementVNode("view",{class:"bottom-left",onClick:P}," 重置 "),e.createElementVNode("view",{class:"bottom-right",onClick:l[35]||(l[35]=e=>{I.value=!1,se()})},[e.createTextVNode(" 确定 "),R.value?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"font-size":"25rpx","margin-top":"5rpx"}}," "+e.toDisplayString(R.value)+"采购单) ",1)):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"more-time"}," 采购日期 "),e.createElementVNode("view",{class:"more-time-select",onClick:l[36]||(l[36]=e=>u.value=!u.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:Cl})]),e.createElementVNode("view",{class:"more-select"}," 采购人 "),e.createElementVNode("view",{class:"more-time-select",onClick:l[38]||(l[38]=e=>B.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":l[37]||(l[37]=e=>E.value=e),placeholder:"请输入采购人","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:w},null,544),[[e.vModelText,E.value]]),e.createElementVNode("image",{class:"select-img",src:Dl})]),e.createElementVNode("view",{class:"more-select"}," 供应商 "),e.createElementVNode("view",{class:"more-time-select",onClick:l[40]||(l[40]=e=>T.value=!0)},[e.withDirectives(e.createElementVNode("input",{class:"more-gray","onUpdate:modelValue":l[39]||(l[39]=e=>V.value=e),placeholder:"请输入供应商","placeholder-style":"color: #BFBFBF;",style:{"margin-left":"30rpx",width:"400rpx"},onInput:x},null,544),[[e.vModelText,V.value]]),e.createElementVNode("image",{class:"select-img",src:Dl})])],512),[[e.vShow,I.value]]),e.createElementVNode("view",{class:"title-input-father"},[e.withDirectives(e.createElementVNode("input",{class:"title-input",type:"text","onUpdate:modelValue":l[41]||(l[41]=e=>M.cgdParamInfo=e),maxlength:"15",placeholder:"采购单号/采购日期/供应商",onConfirm:l[42]||(l[42]=e=>se())},null,544),[[e.vModelText,M.cgdParamInfo]]),e.withDirectives(e.createElementVNode("image",{class:"title-input-img",src:$,onClick:l[43]||(l[43]=e=>{M.cgdParamInfo="",se()})},null,512),[[e.vShow,M.cgdParamInfo]]),e.createElementVNode("view",{class:"title-input-button",onClick:l[44]||(l[44]=e=>{se()})}," 检索 "),e.createElementVNode("view",{class:"filter"},[e.createElementVNode("image",{class:"filter-img",src:`/static/index/purchaseorder/select${I.value?"target":""}.png`},null,8,["src"]),e.createElementVNode("view",{class:e.normalizeClass(I.value?"filter-font-target":"filter-font"),onClick:l[45]||(l[45]=e=>I.value=!I.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":O.value,onScrolltolower:G,"lower-threshold":400},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Y.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);O.value=178*(l-2),H.value=e,K.cgdId=Y.value[e].id,K.pageNo=1,K.canpull=!0,Ml(K).then((e=>{ae.value=[],ae.value.push(...e.result.records),K.pageNo&&le(0)})),"Y"==t.izNew&&(t.izNew="N",Wl({id:t.id}))})(l,t),style:e.normalizeStyle({borderColor:l===H.value?"":"transparent",background:l===H.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:Ke})]),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:Ke}))]),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:Ke}))]),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:zl}),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:l[46]||(l[46]=e=>fe(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:l[47]||(l[47]=e=>fe(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":te.value,"scroll-with-animation":""},[e.createElementVNode("view",{class:"middle-Y-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"middle-one",key:l,style:e.normalizeStyle({border:F.value===l?"4rpx dashed #1083F8":"4rpx solid transparent",backgroundColor:F.value===l?"#F9FCFF":""}),onClick:e=>le(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)?o.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:F.value!==l?"600":"",color:F.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:F.value===l?"600":"",color:F.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(i.value?"wuliao-title-no":"wuliao-title"),onClick:l[48]||(l[48]=e=>i.value=0)},[e.createTextVNode(" 物料详情 "),e.createElementVNode("view",{class:"wuliao-heng"})],2),e.createElementVNode("view",{class:e.normalizeClass(1==i.value?"wuliao-title":"wuliao-title-no"),style:{"margin-left":"10rpx"},onClick:l[49]||(l[49]=e=>i.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=Z.value)?void 0:h.materialImg)?o.value+(null==(y=Z.value)?void 0:y.materialImg):"/static/index/warehouse/procurement/k.png",mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"left-tags"},[Z.value.categoryId_dictText?(e.openBlock(),e.createElementBlock("view",{key:0,class:"tags-one"},e.toDisplayString(Z.value.categoryId_dictText),1)):e.createCommentVNode("",!0),Z.value.typeId_dictText?(e.openBlock(),e.createElementBlock("view",{key:1,class:"tags-one"},e.toDisplayString(Z.value.typeId_dictText),1)):e.createCommentVNode("",!0),Z.value.medicationId_dictText?(e.openBlock(),e.createElementBlock("view",{key:2,class:"tags-one"},e.toDisplayString(Z.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(Z.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(Z.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(Z.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(Z.value.arrivalPrice?Number(Z.value.arrivalPrice).toFixed(2):Number(Z.value.procurementPrice).toFixed(2)),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(Z.value.purchaseQuantity),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 采购单位 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(Z.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(Z.value.kcsl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料上限 ↑ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(Z.value.wlUpperLimit),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 物料下限 ↓ "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(Z.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(Z.value.rksl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 挂账数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(Z.value.wrksl),1)]),e.createElementVNode("view",{class:"threeone"},[e.createElementVNode("view",{class:"gray-text"}," 销账数量 "),e.createElementVNode("view",{class:"right-text"},e.toDisplayString(Z.value.xzsl),1)])])])])],512),[[e.vShow,!i.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(Z.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(Z.value.purchaseQuantity),1),e.createTextVNode(" "+e.toDisplayString(Z.value.wlUnits),1)])]),e.createElementVNode("scroll-view",{style:{width:"110%",height:"400rpx",display:"flex","flex-wrap":"wrap"},"scroll-y":"true","scroll-with-animation":"",onScrolltolower:l[50]||(l[50]=e=>{"nomore"!=re.value&&(oe.value++,ce())})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.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(Z.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),ne.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%",display:"flex","justify-content":"center",color:"#C3C3C3","margin-top":"40rpx"}},["loading"==re.value?(e.openBlock(),e.createElementBlock("image",{key:0,style:{width:"25rpx",height:"25rpx","margin-right":"10rpx","margin-top":"5rpx","margin-left":"-10rpx"},src:Il})):e.createCommentVNode("",!0),"loading"==re.value?(e.openBlock(),e.createElementBlock("text",{key:1},"上划加载更多")):e.createCommentVNode("",!0),"nomore"==re.value?(e.openBlock(),e.createElementBlock("text",{key:2},"已加载全部~")):e.createCommentVNode("",!0),"loadmore"==re.value?(e.openBlock(),e.createElementBlock("text",{key:3},"加载中~")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ne.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:Fl}),e.createElementVNode("view",{class:"noarray-font"}," 暂无拣货记录 ")]))],512),[[e.vShow,1==i.value]])])]),e.withDirectives(e.createElementVNode("view",{class:"popup-share",onClick:l[52]||(l[52]=e=>de.value=!1)},[e.createElementVNode("view",{class:"popup-share-content",style:e.normalizeStyle({opacity:me.value?1:0}),onClick:l[51]||(l[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==(b=Y.value[H.value])?void 0:b.cgdNo),1),e.createElementVNode("view",{class:"share-font"}," 供应商:"+e.toDisplayString(null==(C=Y.value[H.value])?void 0:C.gysId_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购时间:"+e.toDisplayString(null==(D=Y.value[H.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==(z=Y.value[H.value])?void 0:z.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:_l}),e.createElementVNode("view",{class:"share-name"},e.toDisplayString(null==(L=Y.value[H.value])?void 0:L.createBy_dictText),1),e.createElementVNode("view",{class:"share-font"}," 采购人 ")]),e.createElementVNode("view",{class:"blue-button",onClick:ve}," 分享 ")])])],4)],512),[[e.vShow,de.value]]),e.createVNode(yl,{show:pe.value,font:"确定要作废这个采购单吗",onBack:l[53]||(l[53]=e=>{pe.value=!1}),onRight:ge},null,8,["show"]),e.createVNode(yl,{show:1==a.value,font:"是否删除此图片",onBack:l[54]||(l[54]=e=>a.value=0),onRight:l[55]||(l[55]=e=>(Ve.value.splice(Se.value,1),Se.value=-1,void(a.value=0)))},null,8,["show"]),e.createVNode(yl,{show:2==a.value,font:"是否销账此物料?",onBack:l[56]||(l[56]=e=>a.value=0),onRight:l[57]||(l[57]=e=>Le(1))},null,8,["show"]),e.createVNode(J)],4)}}}),[["__scopeId","data-v-92f4d4f4"]]),Gl="/static/index/procurement/sx.png",Xl=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:rl(e).then((e=>{u.value=e.result.totalSize}));break;case 1:cl(e).then((e=>{u.value=e.result.totalSize}));break;case 2:l("log","at pages/procurement/components/cgdclass.vue:107",e),sl(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:ll({nuId:uni.getStorageSync("nuId")}).then((e=>{n.value=e.result,d()}));break;case 1:al({nuId:uni.getStorageSync("nuId")}).then((e=>{n.value=e.result,d()}));break;case 2:l("log","at pages/procurement/components/cgdclass.vue:136",{nuId:uni.getStorageSync("nuId"),cgdId:v.cgdId}),il({nuId:uni.getStorageSync("nuId"),cgdId:v.cgdId}).then((e=>{l("log","at pages/procurement/components/cgdclass.vue:138",e.result),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-2e34110c"]]);const Hl=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:ct,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"]]),Zl=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=()=>{nl(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)}))},g=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&&nl(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},p({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}),V={nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:-1,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",cgdId:"",isWaring:0},x=e.ref(0),b=e=>{o.value=e,k.value=S.value[e],x.value=105*Math.floor(e/3),Object.assign(E,V),E.pageSize=-1},S=e.ref([]),B=()=>{var e;(e=E,p({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=[],nl(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},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/editShareInfo`,method:"post",data:e})).then((e=>{e.success&&(e=>p({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:")}})}))}))},U=e.ref(!1),M=e.ref(!1),L=()=>{var e;(e={id:d.value[D.value].id},p({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}),U.value=!1,S.value=[],d.value=[],Object.assign(c,s),Object.assign(E,V),v())}))};return e.ref(!1),(t,l)=>{var r,s,v,p,h,w,E,V,B,j,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:$,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)?(U.value=!0,C.value=-1,M.value=!1,setTimeout((()=>M.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:Ke})]),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:et})):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:Ke}))]),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:Ke}))]),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:zl}),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:Gl}),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":x.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==(p=k.value)?void 0:p.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==(V=k.value)?void 0:V.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==(j=k.value)?void 0:j.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(Hl,{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:_l}),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(Xl,{onConfirm:g,show:a.value,typenum:2,cgdId:null==(Q=d.value[N.value])?void 0:Q.id},null,8,["show","cgdId"]),e.createVNode(yl,{show:U.value,font:"确定要作废这个采购单吗",onBack:l[10]||(l[10]=e=>{U.value=!1}),onRight:L},null,8,["show"])])}}}),[["__scopeId","data-v-0b5af08f"]]),Kl="/static/index/procurement/cz.png",ea=s(e.defineComponent({__name:"calculator",props:{show:{type:Boolean,default:!1,required:!0},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){l("log","at pages/procurement/components/calculator.vue:157",p.caigouobj);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:182",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)})),l("log","at pages/procurement/components/calculator.vue:197","a",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,x.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=>{V.value=e,E.value=F(V.value)},N=()=>{let e=Number(p.caigouobj.upperLimit)-Number(p.caigouobj.kcsl),t=V.value*s.value.num;c.value=t>e,l("log","at pages/procurement/components/calculator.vue:250",c.value,e,t)},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"),V=e.ref(0),x=e.ref(!1),b=(e,t)=>{return n.value=t,setTimeout((()=>{n.value=-1}),300),"AC"==e?(V.value=0,E.value="0000",void N()):"AE"==e?(V.value=Math.trunc(V.value/10),E.value=F(V.value),void N()):0==x.value?(x.value=!0,V.value=e,E.value=F(V.value),void N()):(l=V.value,void(Math.abs(l).toString().length>3||(V.value?V.value=10*V.value+e:V.value=e,N(),E.value=F(V.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<=V.value&&1==e?V.value=l:V.value<=1&&-1==e?V.value=1:(V.value+=e,E.value=F(V.value),N())},z=()=>{V.value<1?uni.showToast({title:"采购数量不能为0",icon:"none"}):i("right",V.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:Et,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-92186fba"]]),ta=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(),g()}));const g=()=>{var e;p({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:rl(e).then((e=>{h.value=e.result.totalSize}));break;case 1:cl(e).then((e=>{h.value=e.result.totalSize}));break;case 2:sl(e).then((e=>{h.value=e.result.totalSize}))}},w=()=>{switch(f.typenum){case 0:ll({nuId:uni.getStorageSync("nuId")}).then((e=>{o.value=e.result,y()}));break;case 1:al({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")}),il({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"]]),la=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"),Nt);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"]]),aa=s(e.defineComponent({__name:"carditem",props:{InvoicingList:{type:Array,required:!0},status:{type:String},show:{type:Boolean,default:!1,required:!0}},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"),Nt);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;l("log","at pages/procurement/components/carditem.vue:117","结束");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,setTimeout((()=>{t.scrollleft=0}),20),void l("log","at pages/procurement/components/carditem.vue:127","1")):r<10&&s<10?(0==t.zk&&setTimeout((()=>{t.scrollleft=0}),20),void l("log","at pages/procurement/components/carditem.vue:136","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-9d85bfa2"]]),ia=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"]]),na="/static/index/hulilist/xia.png",oa=s(e.defineComponent({__name:"inboundoutbound",props:{wl:{type:Object},show:{type:Boolean,default:!1,required:!0}},setup(t){const i=t,n=e.ref(!0),o=e.ref(!1);e.watch((()=>i.show),(()=>{1==i.show?(h(),m(),setTimeout((()=>{o.value=!0}),10)):(s.value=1,setTimeout((()=>{o.value=!1,d.value=[],c.value=!1}),400))}));const r=e.ref([{name:"全部",value:""},{name:"入库",value:"1"},{name:"出库",value:"3"}]),c=e.ref(!1),s=e.ref(1),u=e.ref(0),d=e.ref([]),m=()=>{let e={crkStatus:r.value[u.value].value,wlId:i.wl.wlId,nuId:i.wl.nuId,colomnDesc:n.value?"desc":"asc",pageNo:s.value,pageSize:10};var t;(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCrkInfoList`,method:"get",data:t})).then((e=>{l("log","at pages/procurement/components/inboundoutbound.vue:122",e.result.records),d.value.push(...e.result.records),v.value=e.result.total==d.value.length?"nomore":"loadmore"}))},v=e.ref("loadmore"),g=e.ref({}),h=()=>{var e;(e={wlId:i.wl.wlId,nuId:i.wl.nuId},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryCrkInfoNumList`,method:"get",data:e})).then((e=>{g.value=e.result}))};return(l,i)=>{const p=a(e.resolveDynamicComponent("u-loadmore"),Nt);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:e.normalizeClass(["crkcard guodu",t.show?"":"unclass"]),style:e.normalizeStyle(o.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(g.value.crkzl)+"笔",1),e.createElementVNode("text",null,"出库:"+e.toDisplayString(g.value.cksl),1),e.createElementVNode("text",null,"入库:"+e.toDisplayString(g.value.rksl),1)]),e.createElementVNode("view",null,[e.createElementVNode("view",{onClick:i[1]||(i[1]=e=>c.value=!c.value)},[e.createTextVNode(e.toDisplayString(r.value[u.value].name)+" ",1),e.createElementVNode("image",{src:na,class:"guodu",style:e.normalizeStyle(c.value?"transform: rotate(180deg);":""),mode:"aspectFill"},null,4),c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:i[0]||(i[0]=e.withModifiers((e=>c.value=!1),["stop"]))})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"tanchu guodu",style:e.normalizeStyle(c.value?"height:15vw ":"height:0vw;")},[c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"gysscrol"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass(u.value==l?"acts":""),onClick:e.withModifiers((e=>((e,t)=>{u.value=t,c.value=!1,s.value=1,d.value=[],m()})(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:i[2]||(i[2]=e=>(n.value=!n.value,s.value=1,d.value=[],void m()))},[e.createTextVNode(e.toDisplayString(n.value?"日期从近到远":"日期从远到近")+" ",1),e.createElementVNode("image",{src:na,class:"guodu",style:e.normalizeStyle(n.value?"":"transform: rotate(180deg);"),mode:"aspectFill"},null,4)])])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"crkscroll","scroll-with-animation":"",onScrolltolower:i[3]||(i[3]=e=>{"loading"!=v.value&&"nomore"!=v.value&&(v.value="loading",s.value++,m())})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.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==d.value.length&&"nomore"==v.value?(e.openBlock(),e.createBlock(Kt,{key:0,cont:"暂无内容"})):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{height:"2vw",width:"100%",display:"flex","align-items":"center","justify-content":"center"}},[d.value.length>3?(e.openBlock(),e.createBlock(p,{key:0,status:v.value,loadText:{nomore:"暂无更多数据"}},null,8,["status"])):e.createCommentVNode("",!0)])],32)],6)])}}}),[["__scopeId","data-v-ffc1ad81"]]);const ra=s({props:{show:!1},data:()=>({openerror:!1,errmsg:""}),methods:{add(){var e;(e={nuId:uni.getStorageSync("nuId")},p({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:pt,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"]]),ca=s(e.defineComponent({__name:"material",props:{isShow:{type:Boolean}},setup(t,{expose:a}){const i=e.ref(!1),n=e.ref(!1),o=e.ref(!1),r=e.ref(!1),c=e.ref(!1),s=e.ref(!1),u=e.ref(!1);e.ref(!1);const d=e.ref(0),m=e.ref([]),v=e.ref({}),g=e.ref("loadmore"),h=e.ref("loadmore"),y=e.ref(!1),w=e.ref("");e.ref(0);const N=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),f=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:10,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",isWaring:0,suppliers:""}),k=e.reactive({nuId:uni.getStorageSync("nuId"),pageNo:1,pageSize:10,categoryId:"",typeId:"",medicationId:"",wlParamInfo:"",isWaring:1}),E=e.ref(),V=e.ref(!1),x=t;e.watch((()=>x.isShow),((t,l)=>{!l&&t?(f.pageNo=1,k.pageNo=1,S.value=[],m.value=[],d.value=0,M(),B(),e.nextTick((()=>{q()})),setTimeout((()=>{V.value=!0}),500),b.value=!1,setTimeout((()=>{b.value=!0}),50)):b.value=!1}));const b=e.ref(!1),S=e.ref([]),B=()=>{var e;(e=k,p({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})),l("log","at pages/procurement/material.vue:214",e.result.records),S.value.push(...e.result.records),h.value=e.result.total==S.value.length?"nomore":"loadmore",$.value=e.result.total!=S.value.length}))},T=()=>{f.pageNo=1,k.pageNo=1,S.value=[],m.value=[],d.value=0,M(),Y(),B()},C=e.ref(0),D=e=>{C.value=e.touches[0].clientX},z=e.ref(0);function I(e){var t;z.value=(null==(t=null==e?void 0:e.detail)?void 0:t.scrollLeft)??0}const F=e.ref(0),_=e=>{const t=e.touches[0].clientX-C.value;t<-60&&!n.value&&(n.value=!n.value,d.value=0,F.value=z.value+95.99,setTimeout((()=>{F.value=z.value+96}),50)),t>60&&n.value&&(n.value=!n.value,d.value=0,F.value=z.value-95.99,setTimeout((()=>{F.value=z.value-96}),50))},U=e.ref(0),M=()=>{let e={nuId:f.nuId,pageNo:1,pageSize:1};ol(e).then((e=>{U.value=e.result.total}))},$=e.ref(!0),L=e.ref(!0),j=e=>{if(1==e){if(0==$.value)return;$.value=!1,h.value="loading",k.pageNo++,B()}else{if(0==L.value)return;g.value="loading",L.value=!1,f.pageNo++,Y()}},P=()=>{r.value=!1,o.value=!1},A=e=>{f.categoryId=e.categoryId,f.typeId=e.typeId,f.medicationId=e.medicationId,f.suppliers=e.suppliers,f.pageNo=1,m.value=[],Y(),P()},q=()=>{f.categoryId="",f.typeId="",f.medicationId="",f.suppliers="",f.pageNo=1,f.wlParamInfo="",m.value=[],E.value.typescroll(1,-1,{}),E.value.qingkong(),E.value.config()},O=e=>{0===e&&(f.wlParamInfo=""),f.pageNo=1,m.value=[],Y()},Y=()=>{var e;(e=f,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/queryInvoicingList`,method:"get",data:e})).then((e=>{l("log","at pages/procurement/material.vue:346",f,e),e.result.records.forEach((e=>{e.zk=!1,e.scrollleft=0})),m.value.push(...e.result.records),g.value=e.result.total==m.value.length?"nomore":"loadmore",L.value=e.result.total!=m.value.length}))},R=e=>{let t=v.value.index;v.value=e,v.value.index=t,o.value=!0},W=e=>{Number(v.value.upperLimit)-Number(v.value.kcsl)==v.value.Limitnum&&1==e||1==v.value.Limitnum&&-1==e||(v.value.Limitnum+=e)},J=e.ref(!0),Q=(e,t,a)=>{l("log","at pages/procurement/material.vue:371",t,e,a),J.value&&(o.value=!1,X(t,e,a))},G=e.ref(!0),X=(e,t,a)=>{if(0==G.value)return;if("1"==v.value.izEnabled)return void uni.showToast({icon:"none",title:"该物料已关闭,无法采购~"});G.value=!1;let i={nuId:f.nuId,purchaseQuantity:t,suppliersId:e.id,suppliersName:e.name,wlId:v.value.wlId,kcsl:v.value.kcsl,wlUnits:a.unit,referenceUnitPrice:a.price,dhbl:a.num};var n;l("log","at pages/procurement/material.vue:400","注意",i),(n=[i],p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/addShoppingCartList`,method:"post",data:n})).then((e=>{var t,l;e.success?uni.showToast({icon:e.success?"success":"none",title:e.message}):(w.value=(null==(t=e.result)?void 0:t.message)?null==(l=e.result)?void 0:l.message:e.message,y.value=!0,J.value=!0),setTimeout((()=>{G.value=!0,e.success&&(J.value=!0,o.value=!1,s.value=!1,M(),k.pageNo=1,S.value=[],B(),v.value.yj?m.value.forEach((e=>{e.id===v.value.id&&(e.isAdd="1")})):v.value.isAdd=1)}),700)}))},H=e.ref(0),Z=e.ref(0),K=e.ref(null),ee=e.ref({}),te=(e,t)=>{ee.value=e,u.value=!0};return a({gwcsx:()=>{f.pageNo=1,k.pageNo=1,S.value=[],m.value=[],d.value=0,M(),B(),e.nextTick((()=>{q()}))}}),(t,l)=>{const a=e.resolveComponent("errorshow"),p=e.resolveComponent("severcard");return e.openBlock(),e.createElementBlock("view",{class:"guodu",style:e.normalizeStyle([b.value?"opacity: 1":"opacity: 0",{transition:"opacity 1s ease"}])},[e.createElementVNode("view",{class:"serchs guodu",style:e.normalizeStyle(i.value?"":"width:90vw")},[e.createElementVNode("view",{class:"ipt"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"物料名称/物料编码/物料简拼","onUpdate:modelValue":l[0]||(l[0]=e=>f.wlParamInfo=e),onConfirm:O},null,544),[[e.vModelText,f.wlParamInfo]]),f.wlParamInfo?(e.openBlock(),e.createElementBlock("image",{key:0,src:mt,mode:"aspectFill",onClick:l[1]||(l[1]=e=>O(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:O,class:"scr guodu"},[e.createElementVNode("image",{src:tl,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=>r.value=!0)},[e.createElementVNode("image",{src:Gl,mode:"aspectFill"}),e.createTextVNode(" 筛选 ")]),""!=f.categoryId||""!=f.wlParamInfo||""!=f.suppliers?(e.openBlock(),e.createElementBlock("view",{key:0,class:"shx guodu",onClick:q},[e.createElementVNode("image",{src:Kl,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(i.value?n.value?"width:38.2vw":"width:47.2vw":n.value?"width:71.2vw":"width:80.2vw"),"scroll-with-animation":"","scroll-left":F.value,onScroll:I,onScrolltolower:l[3]||(l[3]=e=>j(1))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"yjbox",key:l,onClick:e=>((e,t)=>{const l=Date.now();if(H.value=t,l-Z.value<300){if(clearTimeout(K.value),1==e.isAdd)return;v.value=e,v.value.index=t,v.value.yj=!0,R(v.value),Z.value=0}else K.value=setTimeout((()=>{v.value=e,v.value.index=t,v.value.yj=!0,s.value=!0}),300),Z.value=l})(t,l)},[e.createElementVNode("image",{src:t.materialImg?N.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==S.value.length&&V.value?(e.openBlock(),e.createBlock(Kt,{key:0,cont:"暂无数据",style:{position:"absolute",width:"10vw",height:"10vw",left:"10%"}})):e.createCommentVNode("",!0)],44,["scroll-left"]),S.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"kjlt more guodu",style:e.normalizeStyle(n.value?"width:12.15vw":""),onTouchstart:D,onTouchmove:_},[e.createElementVNode("view",{onClick:l[4]||(l[4]=e=>{n.value=!n.value,d.value=0,n.value?(F.value=z.value+95,setTimeout((()=>{F.value=z.value+96}),50)):(F.value=z.value-95,setTimeout((()=>{F.value=z.value-96}),50))}),class:"righ0"},[e.createTextVNode(e.toDisplayString(n.value?"收起":"更多")+" ",1),e.createElementVNode("image",{class:"guodu",style:e.normalizeStyle(n.value?"transform: rotate(180deg);":""),src:vt,mode:"aspectFill"},null,4)]),e.createElementVNode("view",{class:e.normalizeClass(["guodu",n.value?1==d.value?"avt":"":"righ0"]),onClick:l[5]||(l[5]=e=>{d.value=1,c.value=!0})},"查看全部 ",2),e.createElementVNode("view",{class:e.normalizeClass(["guodu",n.value?2==d.value?"avt":"":"righ0"]),onClick:l[6]||(l[6]=e=>d.value=2)},"添加全部",2)],36)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"listcard"},[e.createVNode(aa,{InvoicingList:m.value,onAddcartory:R,onScrolltolower:j,status:g.value,onCrk:te},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"}),U.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mhao"},[e.createElementVNode("view",{class:"mhao-font"},e.toDisplayString(U.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"})])]),o.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",style:{"z-index":"119"},onClick:P})):e.createCommentVNode("",!0),e.createVNode(ea,{show:o.value,onJjnum:W,caigouobj:v.value,onColse:P,onRight:Q},null,8,["show","caigouobj"]),r.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"mengban",onClick:P})):e.createCommentVNode("",!0),e.createVNode(ta,{onConfirm:A,show:r.value,typenum:0,ref_key:"classication",ref:E},null,8,["show"]),c.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:l[9]||(l[9]=e=>{c.value=!1,d.value=0})})):e.createCommentVNode("",!0),e.createVNode(la,{onAddcartory:R,show:c.value,InvoicingList:S.value,status:h.value,onTolower:l[10]||(l[10]=e=>j(1)),onCrk:te},null,8,["show","InvoicingList","status"]),s.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"mengban",onClick:l[11]||(l[11]=e=>s.value=!1)})):e.createCommentVNode("",!0),e.createVNode(ia,{InvoicingList:[v.value],onAddcartory:R,show:s.value,onCrk:te},null,8,["InvoicingList","show"]),u.value?(e.openBlock(),e.createElementBlock("view",{key:4,class:"mengban",onClick:l[12]||(l[12]=e=>u.value=!1)})):e.createCommentVNode("",!0),e.createVNode(oa,{show:u.value,wl:ee.value},null,8,["show","wl"]),2==d.value?(e.openBlock(),e.createElementBlock("view",{key:5,class:"mengban",onClick:l[13]||(l[13]=e=>d.value=0)})):e.createCommentVNode("",!0),e.createVNode(ra,{show:2==d.value,onBack:l[14]||(l[14]=e=>d.value=0),onConfig:T},null,8,["show"]),e.createVNode(a,{show:y.value,font:w.value,onClose:l[15]||(l[15]=e=>y.value=!1)},null,8,["show","font"]),e.createVNode(p)],4)}}}),[["__scopeId","data-v-19382690"]]),sa="/static/index/procurement/bk.png",ua=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"),Nt);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"]]),da=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),g=()=>{var e;0!=v.value&&(v.value=!1,(e=s.value,p({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,p;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:zl}),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==(p=s.value[o.value])?void 0:p.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:g},"生成采购单")])])],4)])}}}),[["__scopeId","data-v-d28e8ae8"]]),ma=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(),g=()=>{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=()=>{ol(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=()=>{p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/emptiedQgInfo`,method:"DELETE"}).then((e=>{var t,l;e.success?(s.pageNo=1,u.value=[],g()):(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({}),V=(e,t)=>{m.value=2,e.index=t,E.value=e},x=()=>{let e=E.value.id;var t;(t=e,p({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,p({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};ol(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,p({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:mt,mode:"aspectFill",onClick:l[2]||(l[2]=e=>y(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:y,class:"scr"},[e.createElementVNode("image",{src:tl,mode:"aspectFill",class:"sh"}),e.createTextVNode(" 检索 ")]),e.createElementVNode("view",{class:"shx",onClick:l[3]||(l[3]=e=>i.value=!0)},[e.createElementVNode("image",{src:Gl,mode:"aspectFill"}),e.createTextVNode(" 筛选 ")]),""!=s.categoryId||""!=s.wlParamInfo||""!=s.suppliers?(e.openBlock(),e.createElementBlock("view",{key:0,class:"shx",onClick:g},[e.createElementVNode("image",{src:Kl,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:sa,mode:"aspectFill"}),e.createTextVNode(" 返回 ")])])]),e.createVNode(ua,{InvoicingList:u.value,status:d.value,onDelindex:V,onAddcartory:w},null,8,["InvoicingList","status"]),e.createVNode(yl,{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(yl,{show:2==m.value,font:"是否删除此物料?",onBack:l[8]||(l[8]=e=>m.value=0),onRight:l[9]||(l[9]=e=>x())},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(ta,{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(Kt,{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(ea,{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(da,{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"]]),va=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((()=>{V(),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"}V()}},u=()=>{d||(d=!0,y.pageNo=1,y.canpull=!0,h.value=0,V(),N.value=1,setTimeout((()=>{N.value=0}),10),setTimeout((()=>d=!1),500))};let d=!1;const m=()=>{d||(d=!0,y.searchContent="",s(0),V(),setTimeout((()=>d=!1),500))},v=e.ref([]),g=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),V=()=>{vl(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),g.value=e.result.total,e.result.records.length?(E.value=!1,pl({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}))},x=e.ref(!0),b=()=>{x.value&&(y.pageNo++,S(),x.value=!1,setTimeout((()=>{x.value=!0}),500))},S=()=>{y.canpull&&vl(y).then((e=>{v.value.push(...e.result.records),g.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,p({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,pl({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=()=>{l("log","at pages/procurement/outbound.vue:481","????",uni.getStorageSync("NUall"));let e={qldNo:v.value[h.value].qldNo,nuId:uni.getStorageSync("nuId"),nuName:uni.getStorageSync("nuName")};var t;(t=e,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/qld/orderReturn`,method:"POST",data:t})).then((e=>{l("log","at pages/procurement/outbound.vue:489","回退",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,V()),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),U=e.ref(!1),M=e.ref(""),$=()=>{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,p({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,V()),l("log","at pages/procurement/outbound.vue:613","!!!!!!",e),setTimeout((()=>{e.success?uni.showToast({title:e.result.message,icon:"none",duration:3e3}):(U.value=!0,M.value=e.message)}),300)}))};return(t,a)=>{var r,d,p;const g=e.resolveComponent("tanchuang"),k=e.resolveComponent("errorshow"),V=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:He,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:563","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(Kt,{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:$},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:Ke})]),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:et})):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:Ke}))]),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:Ke}))]),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:tt}),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(Kt,{key:0,cont:"暂无数据",style:{width:"30%",height:"30%",position:"absolute"}})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("view",{class:"bottom-buttons"},[e.createElementVNode("view",{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:U.value,font:M.value,onClose:a[8]||(a[8]=e=>U.value=!1)},null,8,["show","font"]),e.createVNode(V)],64)}}}),[["__scopeId","data-v-b22f948e"]]),pa="/static/home.png",ga=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")},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/queryPddStartByList`,method:"get",data:e})).then((e=>{u.value=e.result}))},g=e=>{I.startTime=e.start,I.endTime=e.end,x()};e.ref(!1);const h=e.ref(0),y=e=>{if(h.value!=e||!e){switch(U.value=1,setTimeout((()=>{U.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"}$()}},w=e.ref(!1),N=e.ref(""),f=e.ref([]);let k=null;function E(e){var t;if(l("log","at pages/procurement/inventory.vue:379","0000",e),!e.detail.value)return I.pddStartBy="",f.value=[],void $();const a=String("string"==typeof e?e:(null==(t=null==e?void 0:e.detail)?void 0:t.value)??"").trim();k&&clearTimeout(k),k=setTimeout((()=>{a?(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,a))),f.value.length||f.value.push({cgBy:"暂无数据"})):f.value=u.value.slice()}),300)}const V=()=>{f.value=[],N.value=I.pddStartBy,x()},x=()=>{let e={...I,pageNo:1};gl(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,$(),U.value=1,setTimeout((()=>{U.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(","):"",x()},_=e.ref(!1),U=e.ref(0);e.ref([]);const M=e.ref(!0);e.ref(!0);const $=()=>{I.pageNo=1,I.canpull=!0,gl(I).then((e=>{var t;"缺少参数"!==e.message&&(null==(t=e.result)?void 0:t.total)||!M.value?(M.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}))},L=e.ref(!0),j=()=>{L.value&&(I.pageNo++,P(),L.value=!1,setTimeout((()=>{L.value=!0}),500))},P=()=>{I.canpull&&gl(I).then((e=>{C.value.push(...e.result.records),l("log","at pages/procurement/inventory.vue:554","????",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")},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/addPddMain`,method:"post",data:e})).then((e=>{if(l("log","at pages/procurement/inventory.vue:572","res",e.result),e.success){c.value=!1,T();let t=e.result;l("log","at pages/procurement/inventory.vue:577",t),uni.navigateTo({url:"/pages/procurement/addtory?pddobj="+JSON.stringify(t)})}else O.value=!0,q.value=e.message}))};return a({firstgetqueryCgdList:$}),(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:He,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":U.value,onScrolltolower:j,"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:587",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:Ke})]),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:Ke}))]),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:pa,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(Kt,{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,$()})},[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="",$(),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",$(),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",$(),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",$(),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:Dl})]),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:Cl})]),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(El,{onDatachange:g})],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:V},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,x()})(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-b66b75f3"]]),ha="/static/index/warehouse/home/z.png",ya=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:pa,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:ha,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:ha,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:ha,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:ha,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"]]),wa=s(e.defineComponent({__name:"authorization",setup(t){const i=e.ref(uni.getStorageSync("serverUrl")+"/sys/common/static/"),n=e.reactive({pageNo:1,pageSize:10,status:3,searchContent:""}),o=e.ref([]);r((()=>{s()}));const c=e.ref("loadmore"),s=()=>{ul(n).then((e=>{o.value.push(...e.result.records),c.value=e.result.total==o.value.length?"nomore":"loadmore",1==n.pageNo&&h(0,o.value[0])}))},u=e=>{0==e&&(n.searchContent=""),n.pageNo=1,o.value=[],s()};e.ref([]);const d=e.ref(0),m=e.ref(0),v=e.ref(0),g=e.ref([]),h=(t,a)=>{l("log","at pages/procurement/authorization.vue:191",a),d.value!=t&&(m.value=y.value,e.nextTick((()=>{m.value=0})));let i=Math.ceil(t+1);var n;v.value=186*(i-2),d.value=t,(n={thdNo:a.thdNo},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/thd/thdMaterialList`,method:"get",data:n})).then((e=>{g.value=e.result})),"N"==a.izRead&&N(a)},y=e.ref(0),w=e=>{y.value=e.detail.scrollTop};e.ref([]);const N=(e,t)=>{dl({id:e.id}),e.izRead="Y"};return e.ref([]),(t,l)=>{const r=a(e.resolveDynamicComponent("u-loadmore"),Nt);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=>n.searchContent=e),onConfirm:u},null,544),[[e.vModelText,n.searchContent]]),n.searchContent?(e.openBlock(),e.createElementBlock("image",{key:0,src:mt,mode:"aspectFill",onClick:l[1]||(l[1]=e=>u(0))})):e.createCommentVNode("",!0)]),e.createElementVNode("view",{onClick:u,class:"scr"},[e.createElementVNode("image",{src:tl,mode:"aspectFill",class:"sh"}),e.createTextVNode(" 检索 ")])]),e.createElementVNode("view",{class:"rightbtn"},[e.createElementVNode("view",{class:"back",onClick:l[2]||(l[2]=e=>uni.navigateBack())},[e.createElementVNode("image",{src:sa,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":v.value,"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=>h(l,t),style:e.normalizeStyle({borderColor:l===d.value?"":"transparent",background:l===d.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:Ke})]),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:Ke})]),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:zl}),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"}},[o.value.length>4?(e.openBlock(),e.createBlock(r,{key:0,status:c.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:w,"scroll-top":m.value},[e.createElementVNode("view",{class:"box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,((t,l)=>{var a,n,o,r,c,s,u,d,m,v,p;return e.openBlock(),e.createElementBlock("view",{class:"fler",key:l},[e.createElementVNode("view",{class:"carditem guodu"},[t.zhiDingId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zding"},[e.createElementVNode("image",{src:ft,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"speitem guodu"},[e.createElementVNode("view",{class:"bgimg"},[e.createElementVNode("image",{src:(null==(a=t.materialInfo)?void 0:a.materialImg)?i.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-34187dd3"]]),Na="/static/index/procurement/jb.png",fa=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:Et,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"]]),ka=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 a=0;s.pddlist[t].pdsl=e,a=e-s.pddlist[t].dqkcsl,s.pddlist[t].cesl=Math.abs(a),s.pddlist[t].pdType=0==a?"":a>0?1:2,l("log","at pages/procurement/common/toryitem.vue:202",e)};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:254",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"),Nt),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(Kt,{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(fa,{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:Na,mode:"aspectFill"})])):e.createCommentVNode("",!0),l.pz?(e.openBlock(),e.createElementBlock("view",{key:2,class:"triangle-leftpz"},[e.createElementVNode("image",{src:Na,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:Bl,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(Kt,{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-0ef8c6e8"]]),Ea=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([]),g=e.ref("loadmore"),h=()=>{let e={pddId:u.pddobj.id,paramType:0==a.value?"":a.value,pageNo:m.value,pageSize:10};hl(e).then((e=>{v.value.push(...e.result.records),g.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},p({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 p=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"!=g.value&&"nomore"!=g.value&&(g.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(Kt,{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(p,{show:s.value,font:c.value,onClose:u[3]||(u[3]=e=>s.value=!1)},null,8,["show","font"])])}}}),[["__scopeId","data-v-05e5ce60"]]),Va=s(e.defineComponent({__name:"addtory",setup(t){const a=e.ref(0),i=e.ref({}),n=e.ref(!1),o=e.ref(""),c=e.ref(!1),s=e.ref(!1),u=e.ref(0);r((e=>{i.value=JSON.parse(e.pddobj),l("log","at pages/procurement/addtory.vue:71",i.value),g()}));const d=e.ref(1),m=e.ref("loadmore"),v=e.ref([]),g=()=>{let e={pddId:i.value.id,paramType:0==u.value?"":u.value,pageNo:d.value,pageSize:10};hl(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)))})),v.value.push(...e.result.records);let t=Math.ceil(e.result.total/3);v.value.forEach(((e,l)=>{Math.ceil((l+1)/3)==t&&t>2&&(e.dczk=!0)})),m.value=e.result.total==v.value.length?"nomore":"loadmore"}))},h=()=>{"loading"!=m.value&&"nomore"!=m.value&&(m.value="loading",d.value++,g())},y=(e,t)=>{v.value[e]=t},w=(e,t)=>{let l={id:e.id,dqkcsl:e.dqkcsl,pdsl:e.pdsl,content:e.content,picPath:e.picPath};var a;(a=l,p({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),v.value[t]=l.result,uni.removeStorage({key:"valitem"})):(o.value=l.message,n.value=!0)}))},N=()=>{let e={pddId:i.value.id,paramType:4,pageNo:-1,pageSize:10};hl(e).then((e=>{0==e.result.total?c.value=!0:(o.value="有未完成的盘点信息,不能提交盘点单",n.value=!0)}))},f=()=>{var e;(e={id:i.value.id},p({url:`${uni.getStorageSync("serverUrl")}/api/pad/invoicing/pdd/voidedPddMain`,method:"post",data:e})).then((e=>{e.success?(s.value=!0,setTimeout((()=>{uni.navigateBack()}),800)):(o.value=e.message,n.value=!0)}))};return(t,l)=>{var r;const p=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(i.value.pddNo),1),e.createElementVNode("view",{class:"nms"},e.toDisplayString(i.value.pddStartBy)+" | "+e.toDisplayString(i.value.pddStartTime.substring(0,10).replace(/-/g,".")),1),e.createElementVNode("view",{class:"shypk"},e.toDisplayString(i.value.nuName),1)]),e.createElementVNode("view",{class:"rith"},[e.createElementVNode("view",{class:"left-selecttype"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["全部","盘盈","盘亏","已盘点","未盘点"],((t,l)=>e.createElementVNode("view",{class:e.normalizeClass(u.value===l?"selecttype-target":"selecttype"),onClick:e=>(e=>{u.value==e&&e||(a.value=1,setTimeout((()=>{a.value=0}),50),u.value=e,d.value=1,v.value=[],uni.removeStorage({key:"valitem"}),g())})(l)},e.toDisplayString(t),11,["onClick"]))),64)),e.createElementVNode("view",{class:"heng-blue",style:e.normalizeStyle({left:(0===u.value?11.5:10.6+19*u.value)+"%"})},null,4)]),e.createElementVNode("view",{class:"pdbt"},e.toDisplayString(i.value.pddType_dictText),1)])]),e.createElementVNode("view",{class:"list"},[e.createVNode(ka,{pddlist:v.value,onScrolltolower:h,pddType:null==(r=i.value)?void 0:r.pddType,status:m.value,onTabitem:y,onRight:w},null,8,["pddlist","pddType","status"])]),"1"==i.value.pddType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"submit"},[e.createElementVNode("view",{onClick:l[0]||(l[0]=e=>s.value=!0)},"取消盘点"),e.createElementVNode("view",{onClick:N},"提交盘点单")])):e.createCommentVNode("",!0),e.createVNode(p,{show:n.value,font:o.value,onClose:l[1]||(l[1]=e=>n.value=!1)},null,8,["show","font"]),e.createVNode(Ea,{show:c.value,pddobj:i.value,onClose:l[2]||(l[2]=e=>c.value=!1)},null,8,["show","pddobj"]),e.createVNode(k,{show:s.value,font:"确定要作废盘点单吗",onBack:l[3]||(l[3]=e=>{s.value=!1}),onRight:f},null,8,["show"])])}}}),[["__scopeId","data-v-a9cf47cf"]]),xa=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?Ce({id:uni.getStorageSync("userInfo").id}).then((t=>{r.value=t.result,l("log","at pages/Warehouse/index/component/index.vue:519",t),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,l("log","at pages/Warehouse/index/component/index.vue:625",h),Ve(h).then((e=>{l("log","at pages/Warehouse/index/component/index.vue:627",e),e.result.records.length>0?w(0,e.result.records[0]):v.value={}}))},w=(e,t)=>{xe({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([]),V=e.ref({}),x=(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=[],V.value=e,k.value=l,f.value=!0},b=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==k.value?"video":"image",formData:{biz:a+"/"+i+(1==k.value?"/fwxm/manuallyPicPath":"/fwxm/manuallyMp4Path")},header:{"X-Access-Token":uni.getStorageSync("token")},success:e=>{const t=JSON.parse(e.data);l("log","at pages/Warehouse/index/component/index.vue:725",t),E.value.push(t.message)},fail:()=>{uni.showToast({title:"上传失败",icon:"none"})}})},S=()=>{let e="";E.value.forEach((t=>{e+=t+","})),1==k.value?Te({id:V.value.id,manuallyPicPath:e}).then((e=>{e.success&&(k.value=0,f.value=!1,w(0,{id:v.value.mainId}))})):Be({id:V.value.id,manuallyMp4Path:e}).then((e=>{e.success&&(k.value=0,f.value=!1,w(0,{id:v.value.mainId}))}))};e.ref(null);const T=e.ref(0),C=e.ref(!1),D=e.ref(""),z=(e,t)=>{var a,i,n,o,r,c,s,u;if(l("log","at pages/Warehouse/index/component/index.vue:793",v.value,t),1==t){if("Y"==(null==(a=v.value)?void 0:a.izStart)){switch(e){case 0:if(""==(null==(i=v.value)?void 0:i.serviceContent))return;D.value=null==(n=v.value)?void 0:n.serviceContent;break;case 1:if(""==(null==(o=v.value)?void 0:o.mp3File))return;D.value=null==(r=v.value)?void 0:r.mp3File;break;case 2:if(""==(null==(c=v.value)?void 0:c.mp4File))return;D.value=null==(s=v.value)?void 0:s.mp4File}C.value=!0}}else if("Y"==(null==(u=v.value)?void 0:u.izStart))switch(e){case 3:x(v.value,0,1);break;case 4:x(v.value,0,2)}},I=e=>{"N"==e.izStart&&(l("log","at pages/Warehouse/index/component/index.vue:835",e),be({id:e.id}).then((t=>{l("log","at pages/Warehouse/index/component/index.vue:837",t),t.success&&(e.izStart="Y")})))},F=e=>{"Y"==v.value.izStart&&"N"==v.value.izFinish&&(N.value=3)},_=e.ref([]),U=e.ref(!1),M=e.ref(0),$=a,L=e=>{var t;M.value=e;let l=fe(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),$("swip"),P(l.nuId),O(l.nuId)},j=e.ref({}),P=e=>{ke({nuId:e}).then((e=>{l("log","at pages/Warehouse/index/component/index.vue:887",e),j.value=e.result}))};e.ref(0);const A=e.ref(-1),q=e.ref({}),O=e=>{let t={nuId:e,elderId:elderId};Ee(t).then((e=>{l("log","at pages/Warehouse/index/component/index.vue:900",e),q.value=e.result.invoicing}))},Y=e.ref(!1),R=e.ref(""),W=()=>{if(A.value<0)return;let e={id:q.value[A.value].id,triggerMode:1,orderType:3};Ie(e).then((e=>{e.success?i.value=!1:(Y.value=!0,R.value=e.message)}))},J=e.ref(-1),Q=e.ref(!1);e.ref();const G=e.ref(0);function X(e){G.value=e.detail.scrollTop}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 Z=e.ref([{url:"/static/index/newindex/rightmenu/1.png",name:"转单执行"},{url:"/static/index/newindex/rightmenu/2.png",name:"协助执行"}]);e.ref(H("/static/index/newindex/leftmenu","left",5,"png",0,!1)),e.ref(H("/static/index/newindex/huli","care",9,"png",0,!1));const K=H("/static/index/newindex/curve","curve_",9,"png",1,!1),ee=e.ref([...K,...[...K].reverse()]),te=H("/static/index/newindex/curve","breathe_",9,"png",1,!1);e.ref([...te,...[...te].reverse()]);const le=e.ref(!1);e.watch((()=>n.isShow),((e,t)=>{!t&&e?(le.value=!1,setTimeout((()=>{le.value=!0,l("log","at pages/Warehouse/index/component/index.vue:1026","看看",uni.getStorageSync("NUall"))}),50)):le.value=!1}));const ae=e.ref(""),ie=e.ref(""),me=e.ref(""),we=e.ref(""),Ne=()=>{const e=new Date,t=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0");ie.value=`${t}:${l}`;const a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][e.getDay()];we.value=a;const i=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0");me.value=`${i}.${n}.${o}`};e.onMounted((()=>{ae.value=uni.getStorageSync("realname"),J.value=0,Ne(),setInterval(Ne,1e3),Q.value=!0,Fe(),le.value=!1,setTimeout((()=>{le.value=!0}),50)}));const fe=e=>_.value.filter((t=>Number(t.areaFlag)-1==e)),Fe=()=>{B().then((e=>{_.value=e.result.records,l("log","at pages/Warehouse/index/component/index.vue:1080",_.value),fe(2).forEach(((e,t)=>{e.nuId===uni.getStorageSync("NUall").nuId&&(M.value=t,L(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 _e=()=>{uni.navigateTo({url:"/pages/watch/full"})};return(t,a)=>{var n,h,x,B,C,D,_,$,P,O,J,H,K,te,ae,Ne,ke,Ee,Ve,xe,be,Be,Te,Ce,Ie,Fe,Ue,Me,$e,Le,je,Pe,Ae,qe,Oe;const Ye=e.resolveComponent("errorshow"),Re=e.resolveComponent("donghua"),We=e.resolveComponent("tanchuang");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"index-content-other",style:e.normalizeStyle(le.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(j.value.cklFinishedTotal),1),e.createElementVNode("view",{class:"card-top-right"},[e.createElementVNode("image",{class:"right-img",src:ne})]),e.createElementVNode("view",{class:"card-spec"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"line-gray"},e.toDisplayString(j.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:a[2]||(a[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:ne})])]),e.createElementVNode("view",{class:"card-bottom"},[e.createElementVNode("image",{class:"bottom-img",src:oe}),e.createElementVNode("view",{class:"bottom-font"}," 即时 ")]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bianj"},[e.createElementVNode("image",{src:re,mode:"aspectFill"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["jszl guodu",i.value?"":"jsh0"]),onClick:a[1]||(a[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(q.value,((t,l)=>(e.openBlock(),e.createElementBlock("view",{key:l,class:e.normalizeClass([l==A.value?"act":"","cdk"]),onClick:e=>{var t;(t=l)>-1&&t==A.value?A.value=-1:A.value=t}},[e.createElementVNode("image",{src:A.value!=l?t.netImmediateFile:t.netPreviewFileSmall,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.directiveName),1)],10,["onClick"])))),128)),0==q.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:ce,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:a[0]||(a[0]=e.withModifiers((e=>i.value=!1),["stop"]))},"取消"),A.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:W},"确定")):e.createCommentVNode("",!0)])],2)]),e.createVNode(Ye,{show:Y.value,font:R.value,onClose:a[3]||(a[3]=e=>Y.value=!1),style:{left:"44%"}},null,8,["show","font"]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[4]||(a[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==(n=v.value)?void 0:n.startTime)?{}:{filter:"grayscale(60%)"}])},[e.createVNode(Re,{width:"1300rpx",height:"900rpx",links:ee.value,playing:Q.value,loop:!0,interval:120},null,8,["links","playing"])],4),e.createElementVNode("view",{class:"weight-time"},[(null==(h=v.value)?void 0:h.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:""},e.toDisplayString(null==(x=v.value)?void 0:x.startTime.slice(11,16))+" - "+e.toDisplayString(null==(B=v.value)?void 0:B.endTime.slice(11,16)),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("view",{style:{height:"5vw"}},null,512),[[e.vShow,!(null==(C=v.value)?void 0:C.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==(D=v.value)?void 0:D.izStart)?"待执行":"执行中"),1)],512),[[e.vShow,null==(_=v.value)?void 0:_.startTime]])]),e.createVNode(We,{show:3==N.value,font:"是否结束服务指令?",onBack:a[5]||(a[5]=e=>N.value=0),onRight:a[6]||(a[6]=e=>{Se({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==($=v.value)?void 0:$.previewFile)?"":"width: 450rpx"),src:(null==(P=v.value)?void 0:P.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(O=v.value)?void 0:O.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==(J=v.value)?void 0:J.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"server-name"},e.toDisplayString(null==(H=v.value)?void 0:H.directiveName),1)):e.createCommentVNode("",!0)]),(null==(K=v.value)?void 0:K.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==(te=v.value)?void 0:te.izStart)?"start-button":"end-button"),onClick:a[7]||(a[7]=e=>I(v.value))}," 开始服务 ",2),[[e.vShow,null==(ae=v.value)?void 0:ae.startTime]])]),e.createElementVNode("view",{style:{width:"240rpx",height:"90rpx"}},[e.createElementVNode("view",{class:e.normalizeClass("Y"==(null==(Ne=v.value)?void 0:Ne.izStart)&&"N"==(null==(ke=v.value)?void 0:ke.izFinish)?"start-button":"end-button"),onClick:a[8]||(a[8]=e=>F(v.value))}," 结束服务 ",2)])])):e.createCommentVNode("",!0),o.value>0?(e.openBlock(),e.createElementBlock("view",{key:2,class:"mengban",onClick:a[9]||(a[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(We,{show:d.value>0,font:m.value,onBack:a[10]||(a[10]=e=>d.value=0),onRight:a[11]||(a[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");De(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};ze(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:a[12]||(a[12]=e=>z(0,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(Ee=v.value)?void 0:Ee.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:a[13]||(a[13]=e=>z(1,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(Ve=v.value)?void 0:Ve.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:a[14]||(a[14]=e=>z(2,1))},[e.createElementVNode("view",{class:"left-ball",style:e.normalizeStyle(""!=(null==(xe=v.value)?void 0:xe.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==(be=v.value)?void 0:be.startTime]]),1==(null==(Be=v.value)?void 0:Be.optType)?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,class:"right-menu"},[e.createElementVNode("view",{class:"zhezhao-top",onClick:a[15]||(a[15]=e=>G.value-=115)}),e.createElementVNode("view",{class:"zhezhao-bottom",onClick:a[16]||(a[16]=e=>G.value+=115)}),e.createElementVNode("image",{class:"top-img",src:"/static/index/newindex/rightmenu/top.png",onClick:a[17]||(a[17]=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:a[18]||(a[18]=e=>c(1))},[e.createElementVNode("view",{class:"white-circle",style:e.normalizeStyle("Y"==(null==(Te=v.value)?void 0:Te.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:a[19]||(a[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:a[20]||(a[20]=e=>G.value>55*Z.value.length?G.value=55*Z.value.length:G.value+=115)},null,8,["src"])],512)),[[e.vShow,null==(Ce=v.value)?void 0:Ce.startTime]]):e.createCommentVNode("",!0)],4),e.createElementVNode("view",{class:"index-content-right",style:e.normalizeStyle(le.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(ie.value),1),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"time-week"},e.toDisplayString(we.value),1),e.createElementVNode("view",{class:""},e.toDisplayString(me.value),1)])]),e.createElementVNode("view",{class:"right-container-tem"},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{class:"right-container-tem-img",src:se}),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:ue}),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(fe(2),((t,l)=>(e.openBlock(),e.createElementBlock("view",{class:"list-view",style:e.normalizeStyle(M.value===l?{borderColor:"#8DD6FF",backgroundColor:"#F7F7F9"}:{}),key:l,onClick:e=>L(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:de,onClick:_e})]),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),e.withDirectives(e.createElementVNode("view",{class:"fixed-card",style:e.normalizeStyle(U.value?{}:{right:"-33vw"})},[e.createElementVNode("view",{class:"fixed-card-left"},[e.createElementVNode("image",{class:"card-left-img",style:e.normalizeStyle((null==(Ie=v.value)?void 0:Ie.previewFile)?"":"width: 450rpx"),src:(null==(Fe=v.value)?void 0:Fe.previewFile)?"https://www.focusnu.com/media/upFiles/"+(null==(Ue=v.value)?void 0:Ue.previewFile):"/static/index/newindex/wendu/2.png",mode:"aspectFill"},null,12,["src"]),e.createElementVNode("view",{class:""},e.toDisplayString(null==(Me=v.value)?void 0:Me.directiveName),1)]),e.createElementVNode("view",null,[(null==($e=v.value)?void 0:$e.startTime)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"big-time"},e.toDisplayString(null==(Le=v.value)?void 0:Le.startTime.slice(11,16))+" - "+e.toDisplayString(null==(je=v.value)?void 0:je.endTime.slice(11,16)),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"icon-people"},[e.createElementVNode("image",{class:"people-img",src:ve}),1==v.value.optType?(e.openBlock(),e.createElementBlock("text",{key:0,style:{"white-space":"nowrap"}},"单人执行")):e.createCommentVNode("",!0),2==v.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:pe}),1==v.value.optType?(e.openBlock(),e.createElementBlock("text",{key:2},e.toDisplayString(v.value.employeeName),1)):e.createCommentVNode("",!0),2==v.value.optType?(e.openBlock(),e.createElementBlock("text",{key:3},e.toDisplayString(v.value.optNames),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"icon-button"},[e.createElementVNode("view",{class:e.normalizeClass("N"==(null==(Pe=v.value)?void 0:Pe.izStart)?"button-right":"button-left"),onClick:a[21]||(a[21]=e=>I(v.value))}," 开始服务 ",2),e.createElementVNode("view",{class:e.normalizeClass("Y"==(null==(Ae=v.value)?void 0:Ae.izStart)&&"N"==(null==(qe=v.value)?void 0:qe.izFinish)?"button-right":"button-left"),onClick:a[22]||(a[22]=e=>F(v.value))}," 结束服务 ",2)])]),e.createElementVNode("view",{class:"left-open",onClick:a[23]||(a[23]=e=>U.value=!U.value)},[e.createElementVNode("image",{style:e.normalizeStyle(U.value?{}:{transform:"rotate(180deg)"}),class:"open-img",src:ge},null,4)]),k.value>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mengban",onClick:a[24]||(a[24]=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,a)=>(e.openBlock(),e.createElementBlock("view",{class:"photowall-other-one",key:a,onClick:e=>((e,t,a)=>{if(1==k.value){let e=[];a.forEach((t=>{e.push(p.value+t),l("log","at pages/Warehouse/index/component/index.vue:761",p.value+t)})),uni.previewImage({current:t,urls:e,showmenu:!1,longPressActions:{itemList:[]}})}})(0,a,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"==V.value.izStart&&"N"==V.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>{var t;N.value=1,t=a,T.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:he,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"+a,src:g.value+t,mode:"aspectFill"},null,8,["id","src"]),k.value>0&&"Y"==V.value.izStart&&"N"==V.value.izFinish?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:e.withModifiers((e=>E.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:he,mode:"aspectFill",style:{width:"1.4vw",height:"1.4vw"}})],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128)),k.value>0&&"Y"==V.value.izStart&&"N"==V.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:a[25]||(a[25]=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:60,success:e=>{b(e.tempFilePath)}})}})})},[e.createElementVNode("image",{style:{width:"70rpx",height:"70rpx","margin-bottom":"5rpx"},src:ye}),e.createElementVNode("view",{style:{color:"#78B1EB"}}," 点击上传"+e.toDisplayString(1==k.value?"图片":"录像"),1)])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),k.value>0&&"Y"==V.value.izStart&&"N"==V.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(We,{show:1==N.value,font:"是否删除此图片",onBack:a[26]||(a[26]=e=>N.value=0),onRight:a[27]||(a[27]=e=>(E.value.splice(T.value,1),void(N.value=0)))},null,8,["show"])],4),[[e.vShow,null==(Oe=v.value)?void 0:Oe.startTime]])],64)}}}),[["__scopeId","data-v-bf1853e5"]]),ba=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");T({employessId:uni.getStorageSync("userInfo").employessId}).then((t=>{t.result.forEach((t=>{t.nuId==e&&(s.value=t.dataList)}))}));let t=uni.getStorageSync("nuName");B({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(Zt,{list:c.value,onNavurl:r,userInfo:v.value},null,8,["list","userInfo"])]),e.createElementVNode("view",{class:"boxrt"},[0==o.value?(e.openBlock(),e.createBlock(xa,{key:0,isShow:0==i.value,onSwip:u},null,8,["isShow"])):e.createCommentVNode("",!0),1==o.value?(e.openBlock(),e.createBlock(ca,{key:1,isShow:1==i.value,ref_key:"materials",ref:d},null,8,["isShow"])):e.createCommentVNode("",!0),2==o.value?(e.openBlock(),e.createBlock(Jl,{key:2,isShow:2==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),3==o.value?(e.openBlock(),e.createBlock(Ql,{key:3,isShow:3==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),4==o.value?(e.openBlock(),e.createBlock(va,{key:4,isShow:4==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),5==o.value?(e.openBlock(),e.createBlock(Vl,{key:5,isShow:5==i.value},null,8,["isShow"])):e.createCommentVNode("",!0),6==o.value?(e.openBlock(),e.createBlock(ga,{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(Mt,{key:7,isshow:7==i.value},null,8,["isshow"])):e.createCommentVNode("",!0),9==o.value&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Ye,{key:8,isshow:9==i.value},null,8,["isshow"])):e.createCommentVNode("",!0),10==o.value&&uni.getStorageSync("nuId")?(e.openBlock(),e.createBlock(Xe,{key:9,isshow:10==i.value},null,8,["isshow"])):e.createCommentVNode("",!0)])])]))}}),[["__scopeId","data-v-e3379399"]]);__definePage("pages/login/login",k),__definePage("pages/login/index",j),__definePage("pages/recording/recorder",q),__definePage("pages/login/newanimationpage",G),__definePage("pages/watch/index",K),__definePage("pages/watch/full",ee),__definePage("pages/controlroom/index",ae),__definePage("pages/watch/settings/settings",ie),__definePage("pages/watch/settings/input",L),__definePage("pages/watch/settings/saoma",M),__definePage("pages/watch/settings/leida",U),__definePage("pages/NursingNew/index",el),__definePage("pages/procurement/retstock",Vl),__definePage("pages/timeMatrix/indexnew",Sl),__definePage("pages/Warehouse/picking",Jl),__definePage("pages/Warehouse/finish",Ql),__definePage("pages/procurement/purchaseorder",Zl),__definePage("pages/procurement/material",ca),__definePage("pages/procurement/materialcar",ma),__definePage("pages/procurement/outbound",va),__definePage("pages/procurement/inventory",ga),__definePage("pages/Warehouse/warehome",ya),__definePage("pages/procurement/authorization",wa),__definePage("pages/procurement/addtory",Va),__definePage("pages/NursingNew/component/doctorask/doctorask",It),__definePage("pages/Warehouse/index/index",ba);const Sa={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(){l("log","at App.vue:44","App Show"),uni.getStorageSync("userInfo")&&f()},onHide(){l("log","at App.vue:52","App Hide"),uni.getStorageSync("userInfo")&&N&&N.close()}},Ba={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 Ta(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]?Ta(e[a]):e[a]);return l}function Ca(e={},t={}){if("object"!=typeof(e=Ta(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]=Ca(e[l],t[l]):e[l]=t[l]);return e}function Da(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)}function za(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 Ia(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fa(e){return"function"==typeof e}const _a={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&&(Da(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:Da,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:za,isEmpty:za,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:Ia,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:Fa,promise:function(e){return Ia(e)&&Fa(e.then)&&Fa(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 Ua=new class{setConfig(e){this.config=Ca(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=_a.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 Ma=(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 $a(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 La(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 Pa={colorGradient:function(e="rgb(0, 0, 0)",t="rgb(255, 255, 255)",l=10){let a=La(e,!1),i=a[0],n=a[1],o=a[2],r=La(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:La,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 Aa=null;let qa=[],Oa=[];function Ya(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 Ra="1.10.1";const Wa={v:Ra,version:Ra,type:["primary","success","info","error","warning"]};const Ja={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:Ma,timeFormat:$a,date:$a,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)+"年前":$a(l,t)}return i},colorGradient:Pa.colorGradient,colorToRgba:Pa.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:Ua.get,post:Ua.post,put:Ua.put,delete:Ua.delete,hexToRgb:Pa.hexToRgb,rgbToHex:Pa.rgbToHex,test:_a,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:Ta,deepMerge:Ca,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),_a.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:Ua,toast:function(e,t=1500){uni.showToast({title:e,icon:"none",duration:t})},config:Wa,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!==Aa&&clearTimeout(Aa),l){var a=!Aa;Aa=setTimeout((function(){Aa=null}),t),a&&"function"==typeof e&&e()}else Aa=setTimeout((function(){"function"==typeof e&&e()}),t)},throttle:function(e,t=500,l=!0,a="default"){qa[a]||(qa[a]=null),l?Oa[a]||(Oa[a]=!0,"function"==typeof e&&e(),qa[a]=setTimeout((()=>{Oa[a]=!1}),t)):Oa[a]||(Oa[a]=!0,qa[a]=setTimeout((()=>{Oa[a]=!1,"function"==typeof e&&e()}),t))},addStyle:function(e,t="object"){if(_a.empty(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=Ya(e)).split(";"),l={};for(let e=0;e<t.length;e++)if(t[e]){const a=t[e].split(":");l[Ya(a[0])]=Ya(a[1])}return l}let l="";for(const a in e){l+=`${a.replace(/([A-Z])/g,"-$1").toLowerCase()}:${e[a]};`}return Ya(l)}};uni.$u=Ja;const Qa={install:e=>{e.mixin(Ba),e.config.globalProperties.$u=Ja}},Ga={__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)]))}},Xa=s({__name:"errorshow",props:{show:{type:Boolean,default:!1},font:{type:String,default:""},icons:{type:Boolean,default:!0},style:{type:String}},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-bb547da6"]]),Ha=s(e.defineComponent({__name:"severcard",emits:["start","end"],setup(t,{emit:a}){const i=e.ref({}),n=e.ref(!1),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")});e.onMounted((()=>{c()}));const c=()=>{var e;l("log","at component/public/severcard.vue:65",r),(e=r,p({url:`${uni.getStorageSync("serverUrl")}/api/pad/serviceorder/queryOrderList`,method:"get",data:e})).then((e=>{l("log","at component/public/severcard.vue:67",e),e.result.records.length>0?s(0,e.result.records[0]):i.value={}}))},s=(e,t)=>{var l;(l={mainId:t.id},p({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="N"==i.value.izStart):i.value={}}))};return(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:ve}),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:pe}),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:ge},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=>{Se({id:i.value.id}).then((e=>{e.success&&(o.value=0,c())}))})},null,8,["show"])])}}}),[["__scopeId","data-v-8ac859cd"]]);const{app:Za,Vuex:Ka,Pinia:ei}=function(){const t=e.createVueApp(Sa);return t.use(Qa),t.component("donghua",Ga),t.component("tanchuang",yl),t.component("errorshow",Xa),t.component("severcard",Ha),{app:t}}();uni.Vuex=Ka,uni.Pinia=ei,Za.provide("__globalStyles",__uniConfig.styles),Za._component.mpType="app",Za._component.render=()=>{},Za.mount("#app")}(Vue);