Commit 8621e5dc authored by zuoliyuan's avatar zuoliyuan

授权

parent 59c223e0
This diff is collapsed.
import{_ as e}from"./uni-icons.BNaWtJCu.js";import{q as r,o,c as t,w as s,t as a,v as l,C as i,D as u,F as m,i as n}from"./index-q4e9g9yE.js";import{r as p}from"./uni-app.es.xrkMgk95.js";import{_ as d}from"./index.xmDOlOIj.js";import{_ as c,a as f}from"./u-form.CYIYSjYw.js";import{_ as h}from"./u-button.C4-DWqAF.js";import{_}from"./u-popup.DF0FfdDZ.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const F=b({props:{},data:()=>({errorDataForm:{errorRuleUserList:{}},list:[],show:!1,query:{}}),methods:{init(e,r,o){this.query=o,this.show=!0,this.list=e,this.eventType=r,this.list.map((e=>{this.$set(this.errorDataForm.errorRuleUserList,e.nodeId,[])}))},submit(){const e={...this.query,errorRuleUserList:this.errorDataForm.errorRuleUserList,eventType:this.eventType};for(let r in this.errorDataForm.errorRuleUserList)if(this.errorDataForm.errorRuleUserList[r].length<=0)return this.$u.toast("异常处理人员不能为空");this.$emit("submitErrorForm",e)},cancel(){this.close()},black(){this.close()},close(){this.show=!1}}},[["render",function(b,F,y,U,D,k){const j=p(r("uni-icons"),e),w=n,C=p(r("JnpfUserSelect"),d),L=p(r("u-form-item"),c),R=p(r("u-form"),f),v=p(r("u-button"),h),V=p(r("u-popup"),_);return o(),t(w,{class:"dataForm-v"},{default:s((()=>[a(V,{mode:"left",popup:!1,modelValue:D.show,"onUpdate:modelValue":F[0]||(F[0]=e=>D.show=e),length:"auto",onClose:k.close,width:"100%"},{default:s((()=>[a(w,{class:"diyTitle u-flex"},{default:s((()=>[a(j,{type:"back",size:"27",class:"uni-btn-icon",onClick:k.black},null,8,["onClick"]),a(w,{class:"txt"},{default:s((()=>[l("异常处理")])),_:1})])),_:1}),a(w,{class:"jnpf-wrap-form"},{default:s((()=>[a(R,{model:D.errorDataForm,ref:"errorDataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:s((()=>[(o(!0),i(m,null,u(D.list,((e,r)=>(o(),t(L,{prop:"errorDataForm",key:r,label:e.nodeName,required:""},{default:s((()=>[a(C,{modelValue:D.errorDataForm.errorRuleUserList[e.nodeId],"onUpdate:modelValue":r=>D.errorDataForm.errorRuleUserList[e.nodeId]=r,multiple:!0,placeholder:"异常处理人员不能为空"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])))),128))])),_:1},8,["model"]),a(w,{class:"buttom-actions"},{default:s((()=>[a(v,{class:"buttom-btn",onClick:k.cancel},{default:s((()=>[l("取消")])),_:1},8,["onClick"]),a(v,{class:"buttom-btn",type:"primary",onClick:k.submit},{default:s((()=>[l("确定")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["modelValue","onClose"])])),_:1})}],["__scopeId","data-v-5196f04b"]]);export{F as E};
import{_ as e}from"./uni-icons.BCw4Ow3K.js";import{m as r,o,c as t,w as s,a,b as l,G as i,H as u,I as m,i as n}from"./index-Cf9XklLl.js";import{r as p}from"./uni-app.es.Lrp8fde1.js";import{_ as d}from"./index.CFcjVI-N.js";import{_ as c,a as f}from"./u-form.BeLmIaXD.js";import{_ as h}from"./u-button.liquV81x.js";import{_ as b}from"./u-popup.CLg8nLTs.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=_({props:{},data:()=>({errorDataForm:{errorRuleUserList:{}},list:[],show:!1,query:{}}),methods:{init(e,r,o){this.query=o,this.show=!0,this.list=e,this.eventType=r,this.list.map((e=>{this.$set(this.errorDataForm.errorRuleUserList,e.nodeId,[])}))},submit(){const e={...this.query,errorRuleUserList:this.errorDataForm.errorRuleUserList,eventType:this.eventType};for(let r in this.errorDataForm.errorRuleUserList)if(this.errorDataForm.errorRuleUserList[r].length<=0)return this.$u.toast("异常处理人员不能为空");this.$emit("submitErrorForm",e)},cancel(){this.close()},black(){this.close()},close(){this.show=!1}}},[["render",function(_,y,F,U,k,D){const j=p(r("uni-icons"),e),w=n,C=p(r("JnpfUserSelect"),d),L=p(r("u-form-item"),c),R=p(r("u-form"),f),V=p(r("u-button"),h),v=p(r("u-popup"),b);return o(),t(w,{class:"dataForm-v"},{default:s((()=>[a(v,{mode:"left",popup:!1,modelValue:k.show,"onUpdate:modelValue":y[0]||(y[0]=e=>k.show=e),length:"auto",onClose:D.close,width:"100%"},{default:s((()=>[a(w,{class:"diyTitle u-flex"},{default:s((()=>[a(j,{type:"back",size:"27",class:"uni-btn-icon",onClick:D.black},null,8,["onClick"]),a(w,{class:"txt"},{default:s((()=>[l("异常处理")])),_:1})])),_:1}),a(w,{class:"jnpf-wrap-form"},{default:s((()=>[a(R,{model:k.errorDataForm,ref:"errorDataForm",errorType:["toast"],"label-position":"left","label-width":"150","label-align":"left"},{default:s((()=>[(o(!0),i(m,null,u(k.list,((e,r)=>(o(),t(L,{prop:"errorDataForm",key:r,label:e.nodeName,required:""},{default:s((()=>[a(C,{modelValue:k.errorDataForm.errorRuleUserList[e.nodeId],"onUpdate:modelValue":r=>k.errorDataForm.errorRuleUserList[e.nodeId]=r,multiple:!0,placeholder:"异常处理人员不能为空"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])))),128))])),_:1},8,["model"]),a(w,{class:"buttom-actions"},{default:s((()=>[a(V,{class:"buttom-btn",onClick:D.cancel},{default:s((()=>[l("取消")])),_:1},8,["onClick"]),a(V,{class:"buttom-btn",type:"primary",onClick:D.submit},{default:s((()=>[l("确定")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["modelValue","onClose"])])),_:1})}],["__scopeId","data-v-5196f04b"]]);export{y as E};
import{q as e,o as a,c as l,w as t,t as s,a0 as o,R as u,v as i,x as n,A as c,C as r,D as h,F as m,i as d,E as f,H as p,a5 as _}from"./index-q4e9g9yE.js";import{_ as V}from"./u-search.CaJ7gLmG.js";import{r as y}from"./uni-app.es.xrkMgk95.js";import{_ as b}from"./u-checkbox.CgXB409k.js";import{_ as k}from"./u-checkbox-group.Df9YeOSE.js";import{_ as g,a as C}from"./u-radio-group.CXgzmKAa.js";import{_ as x}from"./u-popup.DF0FfdDZ.js";import{r as D}from"./resources.DipqUmnN.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=v({name:"JnpfMultSelect",props:{list:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},show:{type:Boolean,default:!1},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},labelName:{type:String,default:"fullName"},valueName:{type:String,default:"id"},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},isFlow:{type:Boolean,default:!1}},data:()=>({columnData:[],innerValue:[],lastSelectIndex:[],showPopup:!1,checkedValue:"",searchValue:"",columnData:[],icon:D.message.nodata}),watch:{show:{handler(e){this.showPopup=e,e&&setTimeout((()=>this.init()),10)},immediate:!0}},computed:{columnList(){return this.columnData.filter((e=>e[this.labelName]&&e[this.labelName].match(this.searchValue)))}},methods:{init(){this.setColumnData(),this.setDefault()},setColumnData(){this.columnData=this.list.map(((e,a)=>({...e,checked:!1})))},setDefault(){if(this.searchValue="",this.checkedValue="",this.multiple){this.innerValue=this.defaultValue;for(let e=0;e<this.innerValue.length;e++)e:for(let a=0;a<this.columnData.length;a++)if(this.innerValue[e]===this.columnData[a][this.valueName]){this.columnData[a].checked=!0;break e}}else for(let e=0;e<this.columnData.length;e++)this.defaultValue[0]===this.columnData[e][this.valueName]&&(this.checkedValue=this.columnData[e][this.valueName],this.innerValue=this.columnData[e])},radioGroupChange(e,a){this.innerValue=[{index:a,...e,checked:!0}]},handleConfirm(){if(this.multiple){let e={indexs:[],list:[],label:"",value:uni.$u.deepClone(this.innerValue)};if(!this.isFlow)for(let a=0;a<this.columnData.length;a++){const l=this.columnData[a];this.columnData[a].checked&&(e.list.push(uni.$u.deepClone(l)),e.indexs.push(a),e.label?e.label+=","+l[this.labelName]:e.label+=l[this.labelName])}this.$emit("confirm",e)}else{if(this.isFlow&&!this.innerValue.length)return this.$u.toast("请选择流程");this.$emit("confirm",this.innerValue)}this.close()},close(){this.$emit("close")}}},[["render",function(D,v,w,N,A,B){const j=d,S=y(e("u-search"),V),I=y(e("u-checkbox"),b),T=y(e("u-checkbox-group"),k),U=y(e("u-radio"),g),$=y(e("u-radio-group"),C),F=f,L=p,P=_,q=y(e("u-popup"),x);return a(),l(q,{maskCloseAble:w.maskCloseAble,mode:"bottom",modelValue:A.showPopup,"onUpdate:modelValue":v[7]||(v[7]=e=>A.showPopup=e),safeAreaInsetBottom:w.safeAreaInsetBottom,onClose:B.close,"mask-close-able":!1},{default:t((()=>[s(j,{class:"u-select"},{default:t((()=>[s(j,{class:"u-select__header",onTouchmove:v[3]||(v[3]=o((()=>{}),["stop","prevent"]))},{default:t((()=>[s(j,{class:"u-select__header__cancel u-select__header__btn",style:u({color:w.cancelColor}),"hover-class":"u-hover-class","hover-stay-time":150,onClick:v[0]||(v[0]=e=>B.close())},{default:t((()=>[i(n(w.cancelText),1)])),_:1},8,["style"]),s(j,{class:"u-select__header__title"},{default:t((()=>[i(n(w.title),1)])),_:1}),s(j,{class:"u-select__header__confirm u-select__header__btn",style:u({color:w.confirmColor}),"hover-class":"u-hover-class","hover-stay-time":150,onTouchmove:v[1]||(v[1]=o((()=>{}),["stop"])),onClick:v[2]||(v[2]=o((e=>B.handleConfirm()),["stop"]))},{default:t((()=>[i(n(w.confirmText),1)])),_:1},8,["style"])])),_:1}),w.isFlow||w.filterable?(a(),l(j,{key:0,class:"search-box_sticky"},{default:t((()=>[s(j,{class:"search-box"},{default:t((()=>[s(S,{placeholder:"请输入关键词搜索",height:"72","show-action":!1,"bg-color":"#f0f2f6",shape:"square",modelValue:A.searchValue,"onUpdate:modelValue":v[4]||(v[4]=e=>A.searchValue=e)},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),s(j,{class:"u-select__body u-select__body__multiple"},{default:t((()=>[s(P,{"scroll-y":!0,style:{height:"100%"}},{default:t((()=>[w.multiple?(a(),l(T,{key:0,modelValue:A.innerValue,"onUpdate:modelValue":v[5]||(v[5]=e=>A.innerValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(I,{modelValue:e.checked,"onUpdate:modelValue":a=>e.checked=a,key:s,name:e[w.valueName]},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["modelValue","onUpdate:modelValue","name"])))),128))])),_:1},8,["modelValue"])):(a(),l($,{key:1,wrap:"",modelValue:A.checkedValue,"onUpdate:modelValue":v[6]||(v[6]=e=>A.checkedValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(U,{onChange:a=>B.radioGroupChange(e,s),name:e[w.valueName],key:s},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["onChange","name"])))),128))])),_:1},8,["modelValue"])),B.columnList.length?c("",!0):(a(),l(j,{key:2,class:"notData-box u-flex-col"},{default:t((()=>[s(j,{class:"u-flex-col notData-inner"},{default:t((()=>[s(F,{src:A.icon,mode:"",class:"iconImg"},null,8,["src"])])),_:1}),s(L,{class:"notData-inner-text"},{default:t((()=>[i("暂无数据")])),_:1})])),_:1}))])),_:1})])),_:1})])),_:1})])),_:1},8,["maskCloseAble","modelValue","safeAreaInsetBottom","onClose"])}],["__scopeId","data-v-fd3af5ac"]]);export{w as M};
import{m as e,o as a,c as l,w as t,a as s,V as o,J as u,b as i,E as n,p as c,G as r,H as h,I as m,i as d,Z as f,q as p,a1 as _}from"./index-Cf9XklLl.js";import{_ as V}from"./u-search.8B-NRLUY.js";import{r as y}from"./uni-app.es.Lrp8fde1.js";import{_ as b,a as k}from"./u-checkbox-group.DVyC4Hoo.js";import{_ as g,a as C}from"./u-radio-group.DWVoxCGc.js";import{_ as D}from"./u-popup.CLg8nLTs.js";import{r as x}from"./resources.DipqUmnN.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=v({name:"JnpfMultSelect",props:{list:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},show:{type:Boolean,default:!1},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},labelName:{type:String,default:"fullName"},valueName:{type:String,default:"id"},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},isFlow:{type:Boolean,default:!1}},data:()=>({columnData:[],innerValue:[],lastSelectIndex:[],showPopup:!1,checkedValue:"",searchValue:"",columnData:[],icon:x.message.nodata}),watch:{show:{handler(e){this.showPopup=e,e&&setTimeout((()=>this.init()),10)},immediate:!0}},computed:{columnList(){return this.columnData.filter((e=>e[this.labelName]&&e[this.labelName].match(this.searchValue)))}},methods:{init(){this.setColumnData(),this.setDefault()},setColumnData(){this.columnData=this.list.map(((e,a)=>({...e,checked:!1})))},setDefault(){if(this.searchValue="",this.checkedValue="",this.multiple){this.innerValue=this.defaultValue;for(let e=0;e<this.innerValue.length;e++)e:for(let a=0;a<this.columnData.length;a++)if(this.innerValue[e]===this.columnData[a][this.valueName]){this.columnData[a].checked=!0;break e}}else for(let e=0;e<this.columnData.length;e++)this.defaultValue[0]===this.columnData[e][this.valueName]&&(this.checkedValue=this.columnData[e][this.valueName],this.innerValue=this.columnData[e])},radioGroupChange(e,a){this.innerValue=[{index:a,...e,checked:!0}]},handleConfirm(){if(this.multiple){let e={indexs:[],list:[],label:"",value:uni.$u.deepClone(this.innerValue)};if(!this.isFlow)for(let a=0;a<this.columnData.length;a++){const l=this.columnData[a];this.columnData[a].checked&&(e.list.push(uni.$u.deepClone(l)),e.indexs.push(a),e.label?e.label+=","+l[this.labelName]:e.label+=l[this.labelName])}this.$emit("confirm",e)}else{if(this.isFlow&&!this.innerValue.length)return this.$u.toast("请选择流程");this.$emit("confirm",this.innerValue)}this.close()},close(){this.$emit("close")}}},[["render",function(x,v,w,N,A,B){const S=d,j=y(e("u-search"),V),I=y(e("u-checkbox"),b),T=y(e("u-checkbox-group"),k),U=y(e("u-radio"),g),$=y(e("u-radio-group"),C),F=f,L=p,P=_,G=y(e("u-popup"),D);return a(),l(G,{maskCloseAble:w.maskCloseAble,mode:"bottom",modelValue:A.showPopup,"onUpdate:modelValue":v[7]||(v[7]=e=>A.showPopup=e),safeAreaInsetBottom:w.safeAreaInsetBottom,onClose:B.close,"mask-close-able":!1},{default:t((()=>[s(S,{class:"u-select"},{default:t((()=>[s(S,{class:"u-select__header",onTouchmove:v[3]||(v[3]=o((()=>{}),["stop","prevent"]))},{default:t((()=>[s(S,{class:"u-select__header__cancel u-select__header__btn",style:u({color:w.cancelColor}),"hover-class":"u-hover-class","hover-stay-time":150,onClick:v[0]||(v[0]=e=>B.close())},{default:t((()=>[i(n(w.cancelText),1)])),_:1},8,["style"]),s(S,{class:"u-select__header__title"},{default:t((()=>[i(n(w.title),1)])),_:1}),s(S,{class:"u-select__header__confirm u-select__header__btn",style:u({color:w.confirmColor}),"hover-class":"u-hover-class","hover-stay-time":150,onTouchmove:v[1]||(v[1]=o((()=>{}),["stop"])),onClick:v[2]||(v[2]=o((e=>B.handleConfirm()),["stop"]))},{default:t((()=>[i(n(w.confirmText),1)])),_:1},8,["style"])])),_:1}),w.isFlow||w.filterable?(a(),l(S,{key:0,class:"search-box_sticky"},{default:t((()=>[s(S,{class:"search-box"},{default:t((()=>[s(j,{placeholder:"请输入关键词搜索",height:"72","show-action":!1,"bg-color":"#f0f2f6",shape:"square",modelValue:A.searchValue,"onUpdate:modelValue":v[4]||(v[4]=e=>A.searchValue=e)},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),s(S,{class:"u-select__body u-select__body__multiple"},{default:t((()=>[s(P,{"scroll-y":!0,style:{height:"100%"}},{default:t((()=>[w.multiple?(a(),l(T,{key:0,modelValue:A.innerValue,"onUpdate:modelValue":v[5]||(v[5]=e=>A.innerValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(I,{modelValue:e.checked,"onUpdate:modelValue":a=>e.checked=a,key:s,name:e[w.valueName]},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["modelValue","onUpdate:modelValue","name"])))),128))])),_:1},8,["modelValue"])):(a(),l($,{key:1,wrap:"",modelValue:A.checkedValue,"onUpdate:modelValue":v[6]||(v[6]=e=>A.checkedValue=e)},{default:t((()=>[(a(!0),r(m,null,h(B.columnList,((e,s)=>(a(),l(U,{onChange:a=>B.radioGroupChange(e,s),name:e[w.valueName],key:s},{default:t((()=>[i(n(e[w.labelName]),1)])),_:2},1032,["onChange","name"])))),128))])),_:1},8,["modelValue"])),B.columnList.length?c("",!0):(a(),l(S,{key:2,class:"notData-box u-flex-col"},{default:t((()=>[s(S,{class:"u-flex-col notData-inner"},{default:t((()=>[s(F,{src:A.icon,mode:"",class:"iconImg"},null,8,["src"])])),_:1}),s(L,{class:"notData-inner-text"},{default:t((()=>[i("暂无数据")])),_:1})])),_:1}))])),_:1})])),_:1})])),_:1})])),_:1},8,["maskCloseAble","modelValue","safeAreaInsetBottom","onClose"])}],["__scopeId","data-v-fd3af5ac"]]);export{w as M};
This diff is collapsed.
This diff is collapsed.
import{a2 as a}from"./index-Cf9XklLl.js";function t(t){return a({url:"/api/app/Menu",method:"get",data:t,options:{load:!1}})}function p(t){return a({url:"/api/app/Data?type="+t,options:{load:!1}})}function n(t){return a({url:"/api/app/Data",method:"post",data:t})}function r(t){return a({url:"/api/app/Data/"+t,method:"delete"})}function e(t){return a({url:"/api/app/Data/getFlowList",data:t})}function o(){return a({url:"/api/app/Data/getDataList"})}export{t as a,e as b,n as c,r as d,o as e,p as g}; import{a6 as a}from"./index-q4e9g9yE.js";function t(t){return a({url:"/api/app/Menu",method:"get",data:t,options:{load:!1}})}function p(t){return a({url:"/api/app/Data?type="+t,options:{load:!1}})}function n(t){return a({url:"/api/app/Data",method:"post",data:t})}function r(t){return a({url:"/api/app/Data/"+t,method:"delete"})}function e(t){return a({url:"/api/app/Data/getFlowList",data:t})}function o(){return a({url:"/api/app/Data/getDataList"})}export{t as a,e as b,n as c,r as d,o as e,p as g};
import{b9 as t,ba as e,bb as i,bc as r,bd as s,be as a,bf as n,bg as o,bh as h}from"./index-Cf9XklLl.js";const l=t({id:" app-base",state:()=>({dictionaryList:[],organizeTree:[],departmentTree:[],positionTree:[],groupTree:[],roleTree:[],userTree:[],userList:[],relationData:{}}),getters:{getDictionaryList(){return this.dictionaryList},getRelationData(){return this.relationData}},actions:{setDictionaryList(t){this.dictionaryList=t||[]},setOrganizeTree(t){this.organizeTree=t},setDepartmentTree(t){this.departmentTree=t},setPositionTree(t){this.positionTree=t},setGroupTree(t){this.groupTree=t},setRoleTree(t){this.roleTree=t},setUserTree(t){this.userTree=t},setUserList(t){this.userList=t},updateRelationData(t){this.relationData=t},getDictionaryDataAll(){return new Promise(((t,i)=>{this.dictionaryList.length?t(this.dictionaryList):e().then((e=>{this.setDictionaryList(e.data.list),t(e.data.list)})).catch((t=>{i(t)}))}))},getDictionaryData(t){return new Promise((async e=>{let i=[],r=[],s=[];if(i=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),t.sort)if(r=i.filter((e=>e.enCode===t.sort))[0],t.id){let e=[];if(r.isTree){const i=r=>{for(let s=0;s<r.length;s++){const a=r[s];if(a.id==t.id){e[0]=a;break}a.children&&a.children.length&&i(a.children)}};i(r.dictionaryList)}else e=r.dictionaryList.fliter((e=>e.id==t.id));s=e.length?e[0]:{id:"",fullName:""}}else s=(null==r?void 0:r.dictionaryList)||[];e(s)}))},getDicDataSelector(t,e="id"){return new Promise((async i=>{let r=[],s={},a=[];if(r=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),!t)return i([]);let n=r.filter((i=>i[e]===t));if(!n.length)return i([]);s=n[0],a=s.dictionaryList,i(a)}))},getOrganizeTree(){return new Promise(((t,e)=>{this.organizeTree.length?t(this.organizeTree):i().then((e=>{this.setOrganizeTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getDepartmentTree(){return new Promise(((t,e)=>{this.departmentTree.length?t(this.departmentTree):r().then((e=>{this.setDepartmentTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getPositionTree(){return new Promise(((t,e)=>{this.positionTree.length?t(this.positionTree):s().then((e=>{this.setPositionTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getGroupTree(){return new Promise(((t,e)=>{this.groupTree.length?t(this.groupTree):a().then((e=>{this.setGroupTree(e.data),t(e.data)})).catch((t=>{e(t)}))}))},getRoleTree(){return new Promise(((t,e)=>{this.roleTree.length?t(this.roleTree):n().then((e=>{this.setRoleTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserTree(){return new Promise(((t,e)=>{this.userTree.length?t(this.userTree):o().then((e=>{this.setUserTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserList(){return new Promise(((t,e)=>{this.userList.length?t(this.userList):h().then((e=>{this.setUserList(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserInfo(t){return new Promise((async e=>{let i=[];i=this.userList.length?this.userList:await this.getUserList(),e(i.filter((e=>e.id===t))[0]||{})}))}}});export{l as u}; import{be as t,bf as e,bg as i,bh as r,bi as s,bj as a,bk as n,bl as o,bm as h}from"./index-q4e9g9yE.js";const l=t({id:" app-base",state:()=>({dictionaryList:[],organizeTree:[],departmentTree:[],positionTree:[],groupTree:[],roleTree:[],userTree:[],userList:[],relationData:{}}),getters:{getDictionaryList(){return this.dictionaryList},getRelationData(){return this.relationData}},actions:{setDictionaryList(t){this.dictionaryList=t||[]},setOrganizeTree(t){this.organizeTree=t},setDepartmentTree(t){this.departmentTree=t},setPositionTree(t){this.positionTree=t},setGroupTree(t){this.groupTree=t},setRoleTree(t){this.roleTree=t},setUserTree(t){this.userTree=t},setUserList(t){this.userList=t},updateRelationData(t){this.relationData=t},getDictionaryDataAll(){return new Promise(((t,i)=>{this.dictionaryList.length?t(this.dictionaryList):e().then((e=>{this.setDictionaryList(e.data.list),t(e.data.list)})).catch((t=>{i(t)}))}))},getDictionaryData(t){return new Promise((async e=>{let i=[],r=[],s=[];if(i=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),t.sort)if(r=i.filter((e=>e.enCode===t.sort))[0],t.id){let e=[];if(r.isTree){const i=r=>{for(let s=0;s<r.length;s++){const a=r[s];if(a.id==t.id){e[0]=a;break}a.children&&a.children.length&&i(a.children)}};i(r.dictionaryList)}else e=r.dictionaryList.fliter((e=>e.id==t.id));s=e.length?e[0]:{id:"",fullName:""}}else s=(null==r?void 0:r.dictionaryList)||[];e(s)}))},getDicDataSelector(t,e="id"){return new Promise((async i=>{let r=[],s={},a=[];if(r=this.dictionaryList.length?this.dictionaryList:await this.getDictionaryDataAll(),!t)return i([]);let n=r.filter((i=>i[e]===t));if(!n.length)return i([]);s=n[0],a=s.dictionaryList,i(a)}))},getOrganizeTree(){return new Promise(((t,e)=>{this.organizeTree.length?t(this.organizeTree):i().then((e=>{this.setOrganizeTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getDepartmentTree(){return new Promise(((t,e)=>{this.departmentTree.length?t(this.departmentTree):r().then((e=>{this.setDepartmentTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getPositionTree(){return new Promise(((t,e)=>{this.positionTree.length?t(this.positionTree):s().then((e=>{this.setPositionTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getGroupTree(){return new Promise(((t,e)=>{this.groupTree.length?t(this.groupTree):a().then((e=>{this.setGroupTree(e.data),t(e.data)})).catch((t=>{e(t)}))}))},getRoleTree(){return new Promise(((t,e)=>{this.roleTree.length?t(this.roleTree):n().then((e=>{this.setRoleTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserTree(){return new Promise(((t,e)=>{this.userTree.length?t(this.userTree):o().then((e=>{this.setUserTree(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserList(){return new Promise(((t,e)=>{this.userList.length?t(this.userList):h().then((e=>{this.setUserList(e.data.list),t(e.data.list)})).catch((t=>{e(t)}))}))},getUserInfo(t){return new Promise((async e=>{let i=[];i=this.userList.length?this.userList:await this.getUserList(),e(i.filter((e=>e.id===t))[0]||{})}))}}});export{l as u};
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
import{a2 as e}from"./index-Cf9XklLl.js";function t(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"get",data:t})}function o(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"get"})}function n(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"DELETE"})}function a(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"post",data:t})}function r(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t.id}`,method:"PUT",data:t})}function l(t){return e({url:"/api/workflow/Engine/FlowDelegate/getflow",method:"get",data:t})}function i(t){return e({url:"/api/workflow/Engine/FlowDelegate/userList",method:"get",data:t})}function u(t){return e({url:`/api/workflow/Engine/FlowDelegate/Stop/${t}`,method:"put"})}export{a as C,n as D,t as F,r as U,o as a,l as d,u as e,i as g}; import{a6 as e}from"./index-q4e9g9yE.js";function t(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"get",data:t})}function o(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"get"})}function n(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t}`,method:"DELETE"})}function a(t){return e({url:"/api/workflow/Engine/FlowDelegate",method:"post",data:t})}function r(t){return e({url:`/api/workflow/Engine/FlowDelegate/${t.id}`,method:"PUT",data:t})}function l(t){return e({url:"/api/workflow/Engine/FlowDelegate/getflow",method:"get",data:t})}function i(t){return e({url:"/api/workflow/Engine/FlowDelegate/userList",method:"get",data:t})}function u(t){return e({url:`/api/workflow/Engine/FlowDelegate/Stop/${t}`,method:"put"})}export{a as C,n as D,t as F,r as U,o as a,l as d,u as e,i as g};
import{a2 as o}from"./index-Cf9XklLl.js";function e(e,r,t){return o({url:`/api/workflow/Engine/FlowBefore/List/${e}`,method:"get",data:r,options:{load:!1}})}function r(e,r){return o({url:`/api/workflow/Engine/FlowBefore/${e}`,method:"get",data:r})}function t(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Audit/${e}`,method:"post",data:r})}function n(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Reject/${e}`,method:"post",data:r})}function a(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Recall/${e}`,method:"post",data:r})}function i(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Cancel/${e}`,method:"post",data:r})}function f(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Transfer/${e}`,method:"post",data:r})}function l(e,r){return o({url:`/api/workflow/Engine/FlowBefore/RecordList/${e}`,method:"get",data:r})}function u(e,r){return o({url:`/api/workflow/Engine/FlowBefore/SaveAudit/${e}`,method:"post",data:r})}function w(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Candidates/${e}`,method:"post",data:r})}function d(e,r){return o({url:`/api/workflow/Engine/FlowBefore/CandidateUser/${e}`,method:"post",data:r})}function s(e){return o({url:`/api/workflow/Engine/FlowBefore/RejectList/${e}`,method:"get"})}function p(e,r){return o({url:`/api/workflow/Engine/FlowBefore/freeApprover/${e}`,method:"post",data:r})}function g(e){return o({url:`/api/workflow/Engine/FlowBefore/SubFlowInfo/${e}`,method:"get"})}function c(e,r){return o({url:`/api/workflow/Engine/FlowBefore/TaskUserList/${e}`,method:"get",data:r})}export{t as A,w as C,r as F,s as R,u as S,f as T,a,p as b,i as c,n as d,g as e,e as f,l as g,c as h,d as i}; import{a6 as o}from"./index-q4e9g9yE.js";function e(e,r,t){return o({url:`/api/workflow/Engine/FlowBefore/List/${e}`,method:"get",data:r,options:{load:!1}})}function r(e,r){return o({url:`/api/workflow/Engine/FlowBefore/${e}`,method:"get",data:r})}function t(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Audit/${e}`,method:"post",data:r})}function n(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Reject/${e}`,method:"post",data:r})}function a(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Recall/${e}`,method:"post",data:r})}function i(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Cancel/${e}`,method:"post",data:r})}function f(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Transfer/${e}`,method:"post",data:r})}function l(e,r){return o({url:`/api/workflow/Engine/FlowBefore/RecordList/${e}`,method:"get",data:r})}function u(e,r){return o({url:`/api/workflow/Engine/FlowBefore/SaveAudit/${e}`,method:"post",data:r})}function w(e,r){return o({url:`/api/workflow/Engine/FlowBefore/Candidates/${e}`,method:"post",data:r})}function d(e,r){return o({url:`/api/workflow/Engine/FlowBefore/CandidateUser/${e}`,method:"post",data:r})}function s(e){return o({url:`/api/workflow/Engine/FlowBefore/RejectList/${e}`,method:"get"})}function p(e,r){return o({url:`/api/workflow/Engine/FlowBefore/freeApprover/${e}`,method:"post",data:r})}function g(e){return o({url:`/api/workflow/Engine/FlowBefore/SubFlowInfo/${e}`,method:"get"})}function c(e,r){return o({url:`/api/workflow/Engine/FlowBefore/TaskUserList/${e}`,method:"get",data:r})}export{t as A,w as C,r as F,s as R,u as S,f as T,a,p as b,i as c,n as d,g as e,e as f,l as g,c as h,d as i};
import{a2 as o}from"./index-Cf9XklLl.js";function t(t,e){return o({url:`/api/workflow/Engine/flowTemplate/FlowJsonList/${t}`,method:"get",data:{type:e}})}function e(t){return o({url:"/api/workflow/Engine/flowTemplate/PageListAll",method:"get",data:t,options:{load:!1}})}function n(t){return o({url:`/api/flowForm/Form/${t}`,method:"get"})}function a(){return o({url:"/api/workflow/Engine/flowTemplate/ListAll",method:"get",options:{load:!1}})}function l(t){return o({url:"/api/workflow/Engine/FlowComment",method:"get",data:t})}function r(t){return o({url:"/api/workflow/Engine/FlowComment",method:"post",data:t})}function i(t){return o({url:`/api/workflow/Engine/FlowComment/${t}`,method:"delete"})}function u(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowAll",method:"get",data:t})}function w(t){return o({url:`/api/workflow/Engine/flowTemplate/getFlowIdByCode/${t}`,method:"get"})}function f(t){return o({url:"/api/visualdev/Dashboard/FlowTodoCount",method:"post",data:t})}function d(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowList",method:"post",data:t})}export{e as F,t as a,l as b,r as c,i as d,u as e,d as f,f as g,a as h,n as i,w as j}; import{a6 as o}from"./index-q4e9g9yE.js";function t(t,e){return o({url:`/api/workflow/Engine/flowTemplate/FlowJsonList/${t}`,method:"get",data:{type:e}})}function e(t){return o({url:"/api/workflow/Engine/flowTemplate/PageListAll",method:"get",data:t,options:{load:!1}})}function n(t){return o({url:`/api/flowForm/Form/${t}`,method:"get"})}function a(){return o({url:"/api/workflow/Engine/flowTemplate/ListAll",method:"get",options:{load:!1}})}function l(t){return o({url:"/api/workflow/Engine/FlowComment",method:"get",data:t})}function r(t){return o({url:"/api/workflow/Engine/FlowComment",method:"post",data:t})}function i(t){return o({url:`/api/workflow/Engine/FlowComment/${t}`,method:"delete"})}function u(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowAll",method:"get",data:t})}function w(t){return o({url:`/api/workflow/Engine/flowTemplate/getFlowIdByCode/${t}`,method:"get"})}function f(t){return o({url:"/api/visualdev/Dashboard/FlowTodoCount",method:"post",data:t})}function d(t){return o({url:"/api/workflow/Engine/flowTemplate/getflowList",method:"post",data:t})}export{e as F,t as a,l as b,r as c,i as d,u as e,d as f,f as g,a as h,n as i,w as j};
This diff is collapsed.
This diff is collapsed.
import{a2 as o}from"./index-Cf9XklLl.js";function n(n,r){return o({url:"/api/workflow/Engine/FlowLaunch",method:"get",data:n,options:{load:!1}})}function r(n){return o({url:`/api/workflow/Engine/FlowLaunch/${n}`,method:"DELETE"})}function t(n,r){return o({url:`/api/workflow/Engine/FlowLaunch/${n}/Actions/Withdraw`,method:"PUT",data:r})}function a(n){return o({url:`/api/workflow/Engine/FlowLaunch/Press/${n}`,method:"post"})}export{r as D,n as F,a as P,t as R}; import{a6 as o}from"./index-q4e9g9yE.js";function n(n,r){return o({url:"/api/workflow/Engine/FlowLaunch",method:"get",data:n,options:{load:!1}})}function r(n){return o({url:`/api/workflow/Engine/FlowLaunch/${n}`,method:"DELETE"})}function t(n,r){return o({url:`/api/workflow/Engine/FlowLaunch/${n}/Actions/Withdraw`,method:"PUT",data:r})}function a(n){return o({url:`/api/workflow/Engine/FlowLaunch/Press/${n}`,method:"post"})}export{r as D,n as F,a as P,t as R};
import{C as e,m as t,o as s,c as a,w as l,a as i,G as o,H as r,I as d,i as f,p as u,F as c,b as n,E as p,q as m,Z as _}from"./index-Cf9XklLl.js";import{_ as h}from"./u-tag.DQw2w1sx.js";import{r as g}from"./uni-app.es.Lrp8fde1.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w({name:"FlowList",props:{list:{type:Array,default:()=>[]},opType:{type:Number,default:1}},data:()=>({title:""}),created(){this.title=1==this.opType?"接收时间":2==this.opType?"办理时间":"抄送时间"},methods:{handleClick(t){const s={id:t.processId,flowId:t.flowId,opType:this.opType,status:t.status,taskNodeId:t.thisStepId,taskId:t.id};e({url:"/pages/workFlow/flowBefore/index?config="+this.jnpf.base64.encode(JSON.stringify(s))})},getLableValue(e){var t="";switch(e){case 1:default:t="普通";break;case 2:t="重要";break;case 3:t="紧急"}return t}}},[["render",function(e,w,y,b,k,I){const x=g(t("u-tag"),h),T=f,j=m,C=_;return s(),a(T,{class:"flow-list flowBefore"},{default:l((()=>[i(T,{class:"flow-list-box"},{default:l((()=>[(s(!0),o(d,null,r(y.list,((t,o)=>(s(),a(T,{class:"item",key:t.id,onClick:e=>I.handleClick(t)},{default:l((()=>[i(T,{class:"item-left"},{default:l((()=>[i(T,{class:"item-left-top"},{default:l((()=>[t.delegateUser?(s(),a(T,{key:0,class:"u-m-r-8"},{default:l((()=>[i(x,{text:"委托",type:"success",size:"mini"})])),_:1})):u("",!0),i(T,{class:c(["common-lable",{"urgent-lable":2==t.flowUrgent,"important-lable":3==t.flowUrgent}])},{default:l((()=>[n(p(I.getLableValue(t.flowUrgent)),1)])),_:2},1032,["class"]),i(j,{class:"title u-font-28 u-line-1"},{default:l((()=>[n(p(t.fullName),1)])),_:2},1024)])),_:2},1024),i(j,{class:"title u-line-1 u-font-24"},{default:l((()=>[n("审批节点:"),i(j,{class:"titInner"},{default:l((()=>[n(p(t.thisStep?t.thisStep:"暂无"),1)])),_:2},1024)])),_:2},1024),i(j,{class:"time title u-font-24"},{default:l((()=>[n(p(k.title)+"",1),i(j,{class:"titInner"},{default:l((()=>[n(p(t.creatorTime?e.$u.timeFormat(t.creatorTime,"yyyy-mm-dd hh:MM:ss"):""),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(T,{class:"item-right"},{default:l((()=>[i(C,{src:t.flowStatus,mode:"widthFix",class:"item-right-img"},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-70d6b346"]]);export{y as f}; import{n as t,q as e,o as s,c as a,w as l,t as i,C as o,D as r,F as d,i as f,A as u,G as c,v as n,x as p,H as m,E as _}from"./index-q4e9g9yE.js";import{_ as h}from"./u-tag.CPXfer0M.js";import{r as g}from"./uni-app.es.xrkMgk95.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w({name:"FlowList",props:{list:{type:Array,default:()=>[]},opType:{type:Number,default:1}},data:()=>({title:""}),created(){this.title=1==this.opType?"接收时间":2==this.opType?"办理时间":"抄送时间"},methods:{handleClick(e){const s={id:e.processId,flowId:e.flowId,opType:this.opType,status:e.status,taskNodeId:e.thisStepId,taskId:e.id};t({url:"/pages/workFlow/flowBefore/index?config="+this.jnpf.base64.encode(JSON.stringify(s))})},getLableValue(t){var e="";switch(t){case 1:default:e="普通";break;case 2:e="重要";break;case 3:e="紧急"}return e}}},[["render",function(t,w,y,b,k,I){const x=g(e("u-tag"),h),T=f,j=m,C=_;return s(),a(T,{class:"flow-list flowBefore"},{default:l((()=>[i(T,{class:"flow-list-box"},{default:l((()=>[(s(!0),o(d,null,r(y.list,((e,o)=>(s(),a(T,{class:"item",key:e.id,onClick:t=>I.handleClick(e)},{default:l((()=>[i(T,{class:"item-left"},{default:l((()=>[i(T,{class:"item-left-top"},{default:l((()=>[e.delegateUser?(s(),a(T,{key:0,class:"u-m-r-8"},{default:l((()=>[i(x,{text:"委托",type:"success",size:"mini"})])),_:1})):u("",!0),i(T,{class:c(["common-lable",{"urgent-lable":2==e.flowUrgent,"important-lable":3==e.flowUrgent}])},{default:l((()=>[n(p(I.getLableValue(e.flowUrgent)),1)])),_:2},1032,["class"]),i(j,{class:"title u-font-28 u-line-1"},{default:l((()=>[n(p(e.fullName),1)])),_:2},1024)])),_:2},1024),i(j,{class:"title u-line-1 u-font-24"},{default:l((()=>[n("审批节点:"),i(j,{class:"titInner"},{default:l((()=>[n(p(e.thisStep?e.thisStep:"暂无"),1)])),_:2},1024)])),_:2},1024),i(j,{class:"time title u-font-24"},{default:l((()=>[n(p(k.title)+"",1),i(j,{class:"titInner"},{default:l((()=>[n(p(e.creatorTime?t.$u.timeFormat(e.creatorTime,"yyyy-mm-dd hh:MM:ss"):""),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(T,{class:"item-right"},{default:l((()=>[i(C,{src:e.flowStatus,mode:"widthFix",class:"item-right-img"},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-70d6b346"]]);export{y as f};
.loginBtn[data-v-104922e0]{color:#337bd4!important;border:.03125rem solid #337bd4!important;font-size:.9375rem;border-radius:1.5625rem}
This diff is collapsed.
uni-page-body[data-v-7a4bd7f8]{width:100%;min-height:100vh}.remember-wrap[data-v-7a4bd7f8]{margin-top:8px}.remember-wrap .remember-text[data-v-7a4bd7f8]{color:#9a9a9a;font-size:13px}.logo-v[data-v-7a4bd7f8]{height:100vh;display:flex;flex-direction:column}.logo-v .login-version[data-v-7a4bd7f8]{position:fixed;right:0;top:0;width:3.75rem;height:3.75rem;background:url(/app/assets/login_version-BaE9W612.png) no-repeat center;background-size:100%}.logo-v .login-version .login-version-text[data-v-7a4bd7f8]{width:3.75rem;height:3.75rem;line-height:2.1875rem;text-align:center;color:#fff;font-size:.875rem;transform:rotate(45deg)}.logo-v .login-bg[data-v-7a4bd7f8]{height:15.625rem;position:relative}.logo-v .login-bg uni-image[data-v-7a4bd7f8]{width:100%;height:100%}.logo-v .login-bg .logoImg[data-v-7a4bd7f8]{width:5rem;height:5rem;margin:0 auto;position:absolute;bottom:0;left:0;right:0}.logo-v .login-bg .logoImg uni-image[data-v-7a4bd7f8]{width:100%;height:100%;border-radius:20%}.logo-v .logo-hd[data-v-7a4bd7f8]{width:100%}.logo-v .logo-hd .introduce[data-v-7a4bd7f8]{justify-content:center;align-items:center}.logo-v .logo-hd .introduce .text-one[data-v-7a4bd7f8]{height:2.1875rem;font-weight:700}.logo-v .logo-hd .introduce .text-two[data-v-7a4bd7f8]{color:#999}.logo-v .logo-hd .loginSwitch[data-v-7a4bd7f8]{margin-top:1.25rem;justify-content:center;align-items:center}.logo-v .logo-hd .loginSwitch .tabs[data-v-7a4bd7f8]{color:#999;position:relative}.logo-v .logo-hd .loginSwitch .tabs[data-v-7a4bd7f8]:after{content:"";width:2rem;height:.125rem;background-color:#356efe;margin-top:.46875rem;position:absolute;left:0;bottom:-.46875rem;display:block;border-radius:1.5625rem}.logo-v .logo-hd .loginSwitch .tabs.active2[data-v-7a4bd7f8]:after{left:70%}.logo-v .logo-hd .loginSwitch .tabs .tab[data-v-7a4bd7f8]{width:50%;height:2.5rem;text-align:center;color:#aeafb5;font-size:1rem}.logo-v .logo-hd .loginSwitch .tabs .tab.active[data-v-7a4bd7f8]{color:#3281ff}.logo-v .logo-hd .loginSwitch .loginInputBox[data-v-7a4bd7f8]{width:100%;margin-top:2.5rem;padding:0 2rem}.logo-v .logo-hd .loginSwitch .loginInputBox .code-box[data-v-7a4bd7f8]{width:100%}.logo-v .copyright[data-v-7a4bd7f8]{position:fixed;bottom:1.25rem;left:0;right:0;text-align:center;color:#9a9a9a;font-size:.75rem}.logo-v .sso-login-btn[data-v-7a4bd7f8]{width:100%;padding:0 2rem;margin-top:11.375rem}.other-list[data-v-7a4bd7f8]{display:flex;align-items:center;justify-content:space-around}.other-list .other-item[data-v-7a4bd7f8]{width:30px;height:30px;line-height:30px;text-align:center;cursor:pointer;border-radius:50%}.other-list .other-item uni-text[data-v-7a4bd7f8]{font-size:20px;color:#a0acb7}.mian[data-v-7a4bd7f8]{background:url(/app/assets/tenancy-DLwfXBAK.png);height:100%}.img[data-v-7a4bd7f8]{margin-top:.625rem;margin-left:30%}.title[data-v-7a4bd7f8]{margin-top:-1.71875rem;margin-left:8.125rem;font-size:1rem}.info[data-v-7a4bd7f8]{margin:auto;width:96%;height:9.375rem;background-color:#fff;margin-bottom:.625rem;border-radius:.3125rem;border-left:.3125rem solid #9DC8FA;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-name[data-v-7a4bd7f8]{font-weight:700;font-size:1rem;margin-left:.625rem;margin-bottom:.625rem;margin-top:.9375rem;width:100%;height:1.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-tenancy[data-v-7a4bd7f8]{font-size:.875rem;margin-left:.625rem;margin-bottom:.625rem;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
This diff is collapsed.
import{an as t,am as e,o as i,c as s,w as n,O as a,a as l,G as r,I as o,H as h,b as d,E as u,F as c,P as g,p,q as m,i as f,ap as w,K as v,g as _,L as y,C as S,aQ as b,l as C,m as x,D as V,V as k,X as T,Z as $}from"./index-Cf9XklLl.js";import{_ as j}from"./u-action-sheet.te8ZSIIv.js";import{r as I}from"./uni-app.es.Lrp8fde1.js";import{_ as D}from"./_plugin-vue_export-helper.BCo6x5W8.js";let B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let M=function(t){var e,i,s,n,a,l,r,o="",h=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e+=String.fromCharCode(s):s>127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e}(t);h<t.length;)n=(e=t.charCodeAt(h++))>>2,a=(3&e)<<4|(i=t.charCodeAt(h++))>>4,l=(15&i)<<2|(s=t.charCodeAt(h++))>>6,r=63&s,isNaN(i)?l=r=64:isNaN(s)&&(r=64),o=o+B.charAt(n)+B.charAt(a)+B.charAt(l)+B.charAt(r);return o};const N=D({name:"jnpf-sign",components:{Sign:D({cxt:null,data(){return{VERSION:"1.0.0",cid:"cvs"+this.jnpf.idGenerator(),show:!1,ctrl:null,listeners:[],prevView:"",draws:[],lines:[],line:null,hasDrew:!1}},props:{value:{default:""},title:{type:String,default:"请签名"},disabled:{type:Boolean,default:!1},showBtn:{type:Boolean,default:!1}},watch:{value(){this.prevView=this.value},lines:{deep:!0,handler(t){this.hasDrew=!!t.length}}},computed:{titles(){return this.title.split("")},absPrevView(){return this.prevView}},mounted(){this.prevView=this.value},methods:{onOK(){let t=this.ctrl.getValue();this.$emit("input",t),this.prevView=t,this.hideSignature();let e=this.listeners.shift();e&&e(t)},touchSignature(){let t=this.prevView;t&&t.length||this.showSignature()},showSignature(){this.disabled||(this.ctrl?this.show||(this.clearSignature(),this.show=!0):this.initCtrl())},async getSyncSignature(){return this.showSignature(),await new Promise((async(t,e)=>{this.listeners.push((e=>{t(e)}))}))},cancelSignature(){this.listeners.map((t=>{t(null)})),this.hideSignature()},hideSignature(){this.ctrl&&this.ctrl.clear(),this.show=!1},clearSignature(){this.ctrl&&this.ctrl.clear()},async initCtrl(){this.show=!0;let i=t(this.cid,this);this.cxt=i,this.ctrl={width:0,height:0,clear:()=>{this.lines=[],e().in(this).select("."+this.cid).boundingClientRect((t=>{t&&(i.clearRect(0,0,t.width,t.height),t.width&&t.height&&(this.ctrl.width=t.width,this.ctrl.height=t.height))})).exec(),this.redraw()},getValue:()=>{if(!this.lines.length)return"";let t=this._get_svg();return"data:image/svg+xml;base64,"+M(t)}},this.$nextTick((function(){this.ctrl.clear()}))},_get_svg(){let t=[],e=this.ctrl.width,i=this.ctrl.height,s=90!=Math.abs(-90)?e:i,n=90==Math.abs(-90)?e:i,a=e/2,l=i/2,r=Math.PI,o=Math.cos(-90*r/180),h=Math.sin(-90*r/180),d=(s-e)/2,u=(n-i)/2,c=function(t){{let e=(t.x-a)*o-(t.y-l)*h+a,i=(t.x-a)*h+(t.y-l)*o+l;return{x:e+d,y:i+u}}};return this.lines.map((e=>{if(e.points.length<2)return;let i=c(e.start),s=[`M ${i.x} ${Number(i.y)}`];e.points.map((t=>{let e=c(t);s.push(`L ${e.x} ${Number(e.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${s.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${s}" height="${n}">${t.join("\n")}</svg>`},_get_svg_raw(){let t=[];return this.lines.map((e=>{if(e.points.length<2)return;let i=[`M ${e.start.x} ${Number(e.start.y)}`];e.points.map((t=>{i.push(`L ${t.x} ${Number(t.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${i.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${this.ctrl.width}" height="${this.ctrl.height}" transform="rotate(-90)">${t.join("\n")}</svg>`},_get_point:t=>({x:t.changedTouches[0].x.toFixed(1),y:t.changedTouches[0].y.toFixed(1)}),touchstart(t){let e=this._get_point(t);this.line={start:e,points:[e]},this.lines.push(this.line)},touchmove(t){let e=this._get_point(t);this.line.points.push(e),this.tm||(this.tm=setTimeout((()=>{this.redraw(),this.tm=0}),10))},touchend(t){let e=this._get_point(t);this.line.points.push(e),this.line.end=e,this.redraw()},redraw(){let t=this.cxt;t.setStrokeStyle("#000"),t.setLineWidth(3),this.lines.map((e=>{t.beginPath(),e.points.length<2||(t.moveTo(e.start.x,e.start.y),e.points.map((e=>{t.lineTo(e.x,e.y)})),t.stroke())})),t.draw()},canvasIdErrorCallback:function(t){}}},[["render",function(t,e,v,_,y,S){const b=m,C=f,x=w;return i(),s(C,{class:"signature-wrap"},{default:n((()=>[v.disabled?p("",!0):a((i(),s(C,{key:0,class:"signature-contain"},{default:n((()=>[l(C,{class:"signature-main",style:{"z-index":"3000"}},{default:n((()=>[l(C,null,{default:n((()=>[l(C,{class:"signature-title"},{default:n((()=>[(i(!0),r(o,null,h(S.titles,((t,e)=>(i(),s(b,{key:e},{default:n((()=>[d(u(t),1)])),_:2},1024)))),128))])),_:1})])),_:1}),l(x,{"disable-scroll":"true",class:c(["signature",y.cid]),"canvas-id":y.cid,onTouchstart:S.touchstart,onTouchmove:S.touchmove,onTouchend:S.touchend},{default:n((()=>[a(l(C,{class:"tip"},{default:n((()=>[d(" 请在此区域手写签名 ")])),_:1},512),[[g,!y.hasDrew]])])),_:1},8,["class","canvas-id","onTouchstart","onTouchmove","onTouchend"]),l(C,{class:"signature-btns"},{default:n((()=>[l(C,{class:"btn btn-cancel cu-btn bg-main margin-tb-sm text-white",onClick:e[0]||(e[0]=t=>S.cancelSignature())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-clear cu-btn bg-main margin-tb-sm text-white",onClick:e[1]||(e[1]=t=>{S.clearSignature()})},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-ok cu-btn bg-main margin-tb-sm text-white",onClick:e[2]||(e[2]=t=>S.onOK())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},512)),[[g,y.show]])])),_:1})}],["__scopeId","data-v-8ac597d1"]])},props:{modelValue:{type:[String,Number,Boolean]},fieldKey:{type:String,default:""},signTip:{type:String,default:"添加签名"},disabled:{type:Boolean,default:!1},detailed:{type:Boolean,default:!1},align:{type:String,default:"right"},showBtn:{type:Boolean,default:!0},defaultCurrent:{type:Boolean,default:!1},isInvoke:{type:Boolean,default:!1}},data:()=>({show:!1,innerValue:"",signMode:!1,signList:[],signOptions:[{value:"1",text:"手写签名"},{value:"2",text:"调用签名"}]}),created(){v("setSignValue",(t=>{let e=_("sign-fieldKey");this.fieldKey==e&&this.setValue(t)}))},onLoad(t){this.$nextTick((async()=>{await this.getSignData()}))},onUnload(){y("setSignValue")},watch:{modelValue:{handler(t){this.innerValue=t||""},deep:!0,immediate:!0}},methods:{showSignMode(){this.disabled||(this.signMode=!0)},handleCommand(t){1===t?S({url:"/pages/apply/interPage/signInvokeList?fieldKey="+this.fieldKey+"&signVal="+encodeURIComponent(this.modelValue)}):this.addSign()},addSign(){this.disabled||this.$nextTick((()=>{this.$refs.sign.showSignature()}))},setValue(t){t&&(this.innerValue=t,this.$emit("update:modelValue",t),this.$emit("change",t))},handlePreviewImage(t){b({urls:[t],current:t,success:()=>{},fail:()=>{C({title:"预览图片失败",icon:"none"})}})}}},[["render",function(t,e,h,m,w,v){const _=$,y=f,S=I(x("u-action-sheet"),j),b=V("Sign");return i(),s(y,{class:c(["jnpf-sign","right"==h.align?"flex-end":"flex-start"])},{default:n((()=>[l(y,{class:"jnpf-sign-box"},{default:n((()=>[h.showBtn?(i(),r(o,{key:0},[a(l(_,{class:"jnpf-sign-img",src:w.innerValue,mode:"scaleToFill",onClick:e[0]||(e[0]=k((t=>v.handlePreviewImage(w.innerValue)),["stop"]))},null,8,["src"]),[[g,w.innerValue]]),h.detailed||h.isInvoke?p("",!0):(i(),s(y,{key:0,class:"jnpf-sign-btn",onClick:e[1]||(e[1]=t=>v.addSign())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(y,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})),!h.detailed&&h.isInvoke?(i(),s(y,{key:1,class:"jnpf-sign-btn",onClick:e[2]||(e[2]=t=>v.showSignMode())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(y,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})):p("",!0)],64)):p("",!0),l(S,{list:w.signOptions,modelValue:w.signMode,"onUpdate:modelValue":e[3]||(e[3]=t=>w.signMode=t),onClick:v.handleCommand},null,8,["list","modelValue","onClick"]),l(b,{ref:"sign",onInput:v.setValue},null,8,["onInput"])])),_:1})])),_:1},8,["class"])}],["__scopeId","data-v-32082100"]]);export{N as _};
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import{_ as e}from"./u-input.Dz0cXomh.js";import{m as l,D as t,o as a,c as s,w as i,p as o,a as u,i as n}from"./index-Cf9XklLl.js";import{r as p}from"./uni-app.es.Lrp8fde1.js";import{M as r}from"./MultSelect.ZXNOWxww.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const d=h({name:"jnpf-select",components:{MultSelect:r},props:{modelValue:{type:[String,Number,Array]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"fullName",value:"id"})},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},isForm:{type:Boolean,default:!0}},data:()=>({innerValue:"",defaultValue:[],showSelectModal:!1}),watch:{modelValue:{immediate:!0,handler(e){this.setDefault()}},options:{immediate:!0,handler(e){this.setDefault()}}},computed:{list(){return this.options}},methods:{openSelect(){this.disabled||(this.showSelectModal=!0)},selectConfirm(e,l=""){if(this.multiple)this.innerValue=e.label,this.defaultValue=e.value,this.$emit("update:modelValue",e.value||[]),this.$emit("change",e.value||[],e.list||[]);else{if(!e.length)return;const l=this.options[e[0].index]||{};this.innerValue=l[this.props.label],this.defaultValue=[e[0][this.props.value]],this.$emit("update:modelValue",l[this.props.value]),this.$emit("change",l[this.props.value],l)}},setDefault(){if(!this.options.length)return this.innerValue="";if(this.multiple){if(this.innerValue="",this.defaultValue=[],!this.modelValue||!this.modelValue.length)return;this.defaultValue=this.modelValue;for(let e=0;e<this.options.length;e++){const l=this.options[e];for(let e=0;e<this.modelValue.length;e++){const t=this.modelValue[e];l[this.props.value]==t&&(this.innerValue?this.innerValue+=","+l[this.props.label]:this.innerValue+=l[this.props.label])}}}else{if(this.innerValue="",this.defaultValue=[],!this.modelValue&&0!==this.modelValue)return;for(let e=0;e<this.options.length;e++)if(this.options[e][this.props.value]===this.modelValue)return this.defaultValue=[this.modelValue],void(this.innerValue=this.options[e][this.props.label])}},close(){this.showSelectModal=!1}}},[["render",function(r,h,d,m,f,c){const V=p(l("u-input"),e),b=t("MultSelect"),v=n;return a(),s(v,{class:"jnpf-select"},{default:i((()=>[d.isForm?(a(),s(V,{key:0,"input-align":"right",type:"select","select-open":f.showSelectModal,modelValue:f.innerValue,"onUpdate:modelValue":h[0]||(h[0]=e=>f.innerValue=e),placeholder:d.placeholder,onClick:c.openSelect},null,8,["select-open","modelValue","placeholder","onClick"])):o("",!0),u(b,{list:c.list,show:f.showSelectModal,"value-name":d.props.value,"label-name":d.props.label,defaultValue:f.defaultValue,onConfirm:c.selectConfirm,onClose:c.close,filterable:d.filterable,multiple:d.multiple,labelName:d.props.label,valueName:d.props.value},null,8,["list","show","value-name","label-name","defaultValue","onConfirm","onClose","filterable","multiple","labelName","valueName"])])),_:1})}],["__scopeId","data-v-8a738214"]]);export{d as _}; import{_ as e}from"./u-input.DYf86bZO.js";import{q as l,Q as t,o as a,c as s,w as i,A as o,t as u,i as n}from"./index-q4e9g9yE.js";import{r as p}from"./uni-app.es.xrkMgk95.js";import{M as r}from"./MultSelect.TVbPCNeO.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const d=h({name:"jnpf-select",components:{MultSelect:r},props:{modelValue:{type:[String,Number,Array]},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"fullName",value:"id"})},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},isForm:{type:Boolean,default:!0}},data:()=>({innerValue:"",defaultValue:[],showSelectModal:!1}),watch:{modelValue:{immediate:!0,handler(e){this.setDefault()}},options:{immediate:!0,handler(e){this.setDefault()}}},computed:{list(){return this.options}},methods:{openSelect(){this.disabled||(this.showSelectModal=!0)},selectConfirm(e,l=""){if(this.multiple)this.innerValue=e.label,this.defaultValue=e.value,this.$emit("update:modelValue",e.value||[]),this.$emit("change",e.value||[],e.list||[]);else{if(!e.length)return;const l=this.options[e[0].index]||{};this.innerValue=l[this.props.label],this.defaultValue=[e[0][this.props.value]],this.$emit("update:modelValue",l[this.props.value]),this.$emit("change",l[this.props.value],l)}},setDefault(){if(!this.options.length)return this.innerValue="";if(this.multiple){if(this.innerValue="",this.defaultValue=[],!this.modelValue||!this.modelValue.length)return;this.defaultValue=this.modelValue;for(let e=0;e<this.options.length;e++){const l=this.options[e];for(let e=0;e<this.modelValue.length;e++){const t=this.modelValue[e];l[this.props.value]==t&&(this.innerValue?this.innerValue+=","+l[this.props.label]:this.innerValue+=l[this.props.label])}}}else{if(this.innerValue="",this.defaultValue=[],!this.modelValue&&0!==this.modelValue)return;for(let e=0;e<this.options.length;e++)if(this.options[e][this.props.value]===this.modelValue)return this.defaultValue=[this.modelValue],void(this.innerValue=this.options[e][this.props.label])}},close(){this.showSelectModal=!1}}},[["render",function(r,h,d,m,f,c){const V=p(l("u-input"),e),b=t("MultSelect"),v=n;return a(),s(v,{class:"jnpf-select"},{default:i((()=>[d.isForm?(a(),s(V,{key:0,"input-align":"right",type:"select","select-open":f.showSelectModal,modelValue:f.innerValue,"onUpdate:modelValue":h[0]||(h[0]=e=>f.innerValue=e),placeholder:d.placeholder,onClick:c.openSelect},null,8,["select-open","modelValue","placeholder","onClick"])):o("",!0),u(b,{list:c.list,show:f.showSelectModal,"value-name":d.props.value,"label-name":d.props.label,defaultValue:f.defaultValue,onConfirm:c.selectConfirm,onClose:c.close,filterable:d.filterable,multiple:d.multiple,labelName:d.props.label,valueName:d.props.value},null,8,["list","show","value-name","label-name","defaultValue","onConfirm","onClose","filterable","multiple","labelName","valueName"])])),_:1})}],["__scopeId","data-v-8a738214"]]);export{d as _};
import{b2 as e,m as a,o as t,c as i,w as l,a as o,J as s,F as n,i as u}from"./index-Cf9XklLl.js";import{_ as d}from"./u-loading.BSMGNguA.js";import{r}from"./uni-app.es.Lrp8fde1.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=c({name:"u-switch",emits:["update:modelValue","input","change"],props:{value:{type:[Number,String,Boolean],default:!1},modelValue:{type:[Number,String,Boolean],default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:50},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},activeValue:{type:[Number,String,Boolean],default:!0},inactiveValue:{type:[Number,String,Boolean],default:!1}},data:()=>({}),computed:{valueCom(){return this.modelValue},switchStyle(){let e={};return e.fontSize=this.size+"rpx",e.backgroundColor=this.valueCom?this.activeColor:this.inactiveColor,e},loadingColor(){return this.valueCom?this.activeColor:null}},methods:{onClick(){this.disabled||this.loading||(this.vibrateShort&&e(),this.$emit("input",!this.valueCom),this.$emit("update:modelValue",!this.valueCom),this.$nextTick((()=>{this.$emit("change",this.valueCom?this.activeValue:this.inactiveValue)})))}}},[["render",function(e,c,h,m,p,f){const v=r(a("u-loading"),d),g=u;return t(),i(g,{class:n(["u-switch",[1==f.valueCom?"u-switch--on":"",h.disabled?"u-switch--disabled":""]]),onClick:f.onClick,style:s([f.switchStyle])},{default:l((()=>[o(g,{class:"u-switch__node node-class",style:s({width:e.$u.addUnit(h.size),height:e.$u.addUnit(h.size)})},{default:l((()=>[o(v,{show:h.loading,class:"u-switch__loading",size:.6*h.size,color:f.loadingColor},null,8,["show","size","color"])])),_:1},8,["style"])])),_:1},8,["class","onClick","style"])}],["__scopeId","data-v-87400e0f"]]);const m=c({name:"jnpf-switch",props:{modelValue:{type:[String,Number,Boolean]},activeValue:{type:[String,Number,Boolean],default:1},inactiveValue:{type:[String,Number,Boolean],default:0},size:{default:40},disabled:{type:Boolean,default:!1}},data:()=>({innerValue:""}),watch:{modelValue:{handler(e){this.innerValue=!!Number(e)},immediate:!0}},methods:{onChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},[["render",function(e,s,n,d,c,m){const p=r(a("u-switch"),h),f=u;return t(),i(f,{class:"jnpf-switch"},{default:l((()=>[o(p,{modelValue:c.innerValue,"onUpdate:modelValue":s[0]||(s[0]=e=>c.innerValue=e),"active-value":n.activeValue,"inactive-value":n.inactiveValue,disabled:n.disabled,onChange:m.onChange,size:n.size},null,8,["modelValue","active-value","inactive-value","disabled","onChange","size"])])),_:1})}],["__scopeId","data-v-a6c5e7af"]]);export{m as _}; import{b8 as e,q as t,o as a,c as i,w as l,t as o,R as s,G as n,i as u}from"./index-q4e9g9yE.js";import{_ as d}from"./u-loading.lH2Hctim.js";import{r}from"./uni-app.es.xrkMgk95.js";import{_ as c}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=c({name:"u-switch",emits:["update:modelValue","input","change"],props:{value:{type:[Number,String,Boolean],default:!1},modelValue:{type:[Number,String,Boolean],default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:50},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},activeValue:{type:[Number,String,Boolean],default:!0},inactiveValue:{type:[Number,String,Boolean],default:!1}},data:()=>({}),computed:{valueCom(){return this.modelValue},switchStyle(){let e={};return e.fontSize=this.size+"rpx",e.backgroundColor=this.valueCom?this.activeColor:this.inactiveColor,e},loadingColor(){return this.valueCom?this.activeColor:null}},methods:{onClick(){this.disabled||this.loading||(this.vibrateShort&&e(),this.$emit("input",!this.valueCom),this.$emit("update:modelValue",!this.valueCom),this.$nextTick((()=>{this.$emit("change",this.valueCom?this.activeValue:this.inactiveValue)})))}}},[["render",function(e,c,h,m,p,f){const v=r(t("u-loading"),d),g=u;return a(),i(g,{class:n(["u-switch",[1==f.valueCom?"u-switch--on":"",h.disabled?"u-switch--disabled":""]]),onClick:f.onClick,style:s([f.switchStyle])},{default:l((()=>[o(g,{class:"u-switch__node node-class",style:s({width:e.$u.addUnit(h.size),height:e.$u.addUnit(h.size)})},{default:l((()=>[o(v,{show:h.loading,class:"u-switch__loading",size:.6*h.size,color:f.loadingColor},null,8,["show","size","color"])])),_:1},8,["style"])])),_:1},8,["class","onClick","style"])}],["__scopeId","data-v-87400e0f"]]);const m=c({name:"jnpf-switch",props:{modelValue:{type:[String,Number,Boolean]},activeValue:{type:[String,Number,Boolean],default:1},inactiveValue:{type:[String,Number,Boolean],default:0},size:{default:40},disabled:{type:Boolean,default:!1}},data:()=>({innerValue:""}),watch:{modelValue:{handler(e){this.innerValue=!!Number(e)},immediate:!0}},methods:{onChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},[["render",function(e,s,n,d,c,m){const p=r(t("u-switch"),h),f=u;return a(),i(f,{class:"jnpf-switch"},{default:l((()=>[o(p,{modelValue:c.innerValue,"onUpdate:modelValue":s[0]||(s[0]=e=>c.innerValue=e),"active-value":n.activeValue,"inactive-value":n.inactiveValue,disabled:n.disabled,onChange:m.onChange,size:n.size},null,8,["modelValue","active-value","inactive-value","disabled","onChange","size"])])),_:1})}],["__scopeId","data-v-a6c5e7af"]]);export{m as _};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import{ar as t,aq as e,o as i,c as s,w as n,y as a,t as l,C as r,F as o,D as h,v as d,x as u,G as c,z as g,A as p,H as m,i as f,at as w,T as v,g as y,U as _,n as S,aU as b,e as C,q as x,Q as V,a0 as k,B as T,E as $}from"./index-q4e9g9yE.js";import{_ as j}from"./u-action-sheet.BGFPFmXO.js";import{r as I}from"./uni-app.es.xrkMgk95.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";let D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let M=function(t){var e,i,s,n,a,l,r,o="",h=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e+=String.fromCharCode(s):s>127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e}(t);h<t.length;)n=(e=t.charCodeAt(h++))>>2,a=(3&e)<<4|(i=t.charCodeAt(h++))>>4,l=(15&i)<<2|(s=t.charCodeAt(h++))>>6,r=63&s,isNaN(i)?l=r=64:isNaN(s)&&(r=64),o=o+D.charAt(n)+D.charAt(a)+D.charAt(l)+D.charAt(r);return o};const N=B({name:"jnpf-sign",components:{Sign:B({cxt:null,data(){return{VERSION:"1.0.0",cid:"cvs"+this.jnpf.idGenerator(),show:!1,ctrl:null,listeners:[],prevView:"",draws:[],lines:[],line:null,hasDrew:!1}},props:{value:{default:""},title:{type:String,default:"请签名"},disabled:{type:Boolean,default:!1},showBtn:{type:Boolean,default:!1}},watch:{value(){this.prevView=this.value},lines:{deep:!0,handler(t){this.hasDrew=!!t.length}}},computed:{titles(){return this.title.split("")},absPrevView(){return this.prevView}},mounted(){this.prevView=this.value},methods:{onOK(){let t=this.ctrl.getValue();this.$emit("input",t),this.prevView=t,this.hideSignature();let e=this.listeners.shift();e&&e(t)},touchSignature(){let t=this.prevView;t&&t.length||this.showSignature()},showSignature(){this.disabled||(this.ctrl?this.show||(this.clearSignature(),this.show=!0):this.initCtrl())},async getSyncSignature(){return this.showSignature(),await new Promise((async(t,e)=>{this.listeners.push((e=>{t(e)}))}))},cancelSignature(){this.listeners.map((t=>{t(null)})),this.hideSignature()},hideSignature(){this.ctrl&&this.ctrl.clear(),this.show=!1},clearSignature(){this.ctrl&&this.ctrl.clear()},async initCtrl(){this.show=!0;let i=t(this.cid,this);this.cxt=i,this.ctrl={width:0,height:0,clear:()=>{this.lines=[],e().in(this).select("."+this.cid).boundingClientRect((t=>{t&&(i.clearRect(0,0,t.width,t.height),t.width&&t.height&&(this.ctrl.width=t.width,this.ctrl.height=t.height))})).exec(),this.redraw()},getValue:()=>{if(!this.lines.length)return"";let t=this._get_svg();return"data:image/svg+xml;base64,"+M(t)}},this.$nextTick((function(){this.ctrl.clear()}))},_get_svg(){let t=[],e=this.ctrl.width,i=this.ctrl.height,s=90!=Math.abs(-90)?e:i,n=90==Math.abs(-90)?e:i,a=e/2,l=i/2,r=Math.PI,o=Math.cos(-90*r/180),h=Math.sin(-90*r/180),d=(s-e)/2,u=(n-i)/2,c=function(t){{let e=(t.x-a)*o-(t.y-l)*h+a,i=(t.x-a)*h+(t.y-l)*o+l;return{x:e+d,y:i+u}}};return this.lines.map((e=>{if(e.points.length<2)return;let i=c(e.start),s=[`M ${i.x} ${Number(i.y)}`];e.points.map((t=>{let e=c(t);s.push(`L ${e.x} ${Number(e.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${s.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${s}" height="${n}">${t.join("\n")}</svg>`},_get_svg_raw(){let t=[];return this.lines.map((e=>{if(e.points.length<2)return;let i=[`M ${e.start.x} ${Number(e.start.y)}`];e.points.map((t=>{i.push(`L ${t.x} ${Number(t.y)}`)})),t.push(`<path stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="rgb(0,0,0)" fill="none" d="${i.join(" ")}"/>`)})),`<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="${this.ctrl.width}" height="${this.ctrl.height}" transform="rotate(-90)">${t.join("\n")}</svg>`},_get_point:t=>({x:t.changedTouches[0].x.toFixed(1),y:t.changedTouches[0].y.toFixed(1)}),touchstart(t){let e=this._get_point(t);this.line={start:e,points:[e]},this.lines.push(this.line)},touchmove(t){let e=this._get_point(t);this.line.points.push(e),this.tm||(this.tm=setTimeout((()=>{this.redraw(),this.tm=0}),10))},touchend(t){let e=this._get_point(t);this.line.points.push(e),this.line.end=e,this.redraw()},redraw(){let t=this.cxt;t.setStrokeStyle("#000"),t.setLineWidth(3),this.lines.map((e=>{t.beginPath(),e.points.length<2||(t.moveTo(e.start.x,e.start.y),e.points.map((e=>{t.lineTo(e.x,e.y)})),t.stroke())})),t.draw()},canvasIdErrorCallback:function(t){}}},[["render",function(t,e,v,y,_,S){const b=m,C=f,x=w;return i(),s(C,{class:"signature-wrap"},{default:n((()=>[v.disabled?p("",!0):a((i(),s(C,{key:0,class:"signature-contain"},{default:n((()=>[l(C,{class:"signature-main",style:{"z-index":"3000"}},{default:n((()=>[l(C,null,{default:n((()=>[l(C,{class:"signature-title"},{default:n((()=>[(i(!0),r(o,null,h(S.titles,((t,e)=>(i(),s(b,{key:e},{default:n((()=>[d(u(t),1)])),_:2},1024)))),128))])),_:1})])),_:1}),l(x,{"disable-scroll":"true",class:c(["signature",_.cid]),"canvas-id":_.cid,onTouchstart:S.touchstart,onTouchmove:S.touchmove,onTouchend:S.touchend},{default:n((()=>[a(l(C,{class:"tip"},{default:n((()=>[d(" 请在此区域手写签名 ")])),_:1},512),[[g,!_.hasDrew]])])),_:1},8,["class","canvas-id","onTouchstart","onTouchmove","onTouchend"]),l(C,{class:"signature-btns"},{default:n((()=>[l(C,{class:"btn btn-cancel cu-btn bg-main margin-tb-sm text-white",onClick:e[0]||(e[0]=t=>S.cancelSignature())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-clear cu-btn bg-main margin-tb-sm text-white",onClick:e[1]||(e[1]=t=>{S.clearSignature()})},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1}),l(C,{class:"btn btn-ok cu-btn bg-main margin-tb-sm text-white",onClick:e[2]||(e[2]=t=>S.onOK())},{default:n((()=>[l(b,null,{default:n((()=>[d("")])),_:1}),l(b,null,{default:n((()=>[d("")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},512)),[[g,_.show]])])),_:1})}],["__scopeId","data-v-8ac597d1"]])},props:{modelValue:{type:[String,Number,Boolean]},fieldKey:{type:String,default:""},signTip:{type:String,default:"添加签名"},disabled:{type:Boolean,default:!1},detailed:{type:Boolean,default:!1},align:{type:String,default:"right"},showBtn:{type:Boolean,default:!0},defaultCurrent:{type:Boolean,default:!1},isInvoke:{type:Boolean,default:!1}},data:()=>({show:!1,innerValue:"",signMode:!1,signList:[],signOptions:[{value:"1",text:"手写签名"},{value:"2",text:"调用签名"}]}),created(){v("setSignValue",(t=>{let e=y("sign-fieldKey");this.fieldKey==e&&this.setValue(t)}))},onLoad(t){this.$nextTick((async()=>{await this.getSignData()}))},onUnload(){_("setSignValue")},watch:{modelValue:{handler(t){this.innerValue=t||""},deep:!0,immediate:!0}},methods:{showSignMode(){this.disabled||(this.signMode=!0)},handleCommand(t){1===t?S({url:"/pages/apply/interPage/signInvokeList?fieldKey="+this.fieldKey+"&signVal="+encodeURIComponent(this.modelValue)}):this.addSign()},addSign(){this.disabled||this.$nextTick((()=>{this.$refs.sign.showSignature()}))},setValue(t){t&&(this.innerValue=t,this.$emit("update:modelValue",t),this.$emit("change",t))},handlePreviewImage(t){b({urls:[t],current:t,success:()=>{},fail:()=>{C({title:"预览图片失败",icon:"none"})}})}}},[["render",function(t,e,h,m,w,v){const y=$,_=f,S=I(x("u-action-sheet"),j),b=V("Sign");return i(),s(_,{class:c(["jnpf-sign","right"==h.align?"flex-end":"flex-start"])},{default:n((()=>[l(_,{class:"jnpf-sign-box"},{default:n((()=>[h.showBtn?(i(),r(o,{key:0},[a(l(y,{class:"jnpf-sign-img",src:w.innerValue,mode:"scaleToFill",onClick:e[0]||(e[0]=k((t=>v.handlePreviewImage(w.innerValue)),["stop"]))},null,8,["src"]),[[g,w.innerValue]]),h.detailed||h.isInvoke?p("",!0):(i(),s(_,{key:0,class:"jnpf-sign-btn",onClick:e[1]||(e[1]=t=>v.addSign())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(_,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})),!h.detailed&&h.isInvoke?(i(),s(_,{key:1,class:"jnpf-sign-btn",onClick:e[2]||(e[2]=t=>v.showSignMode())},{default:n((()=>[T("i",{class:"icon-ym icon-ym-signature"}),w.innerValue?p("",!0):(i(),s(_,{key:0,class:"title"},{default:n((()=>[d(u(h.signTip),1)])),_:1}))])),_:1})):p("",!0)],64)):p("",!0),l(S,{list:w.signOptions,modelValue:w.signMode,"onUpdate:modelValue":e[3]||(e[3]=t=>w.signMode=t),onClick:v.handleCommand},null,8,["list","modelValue","onClick"]),l(b,{ref:"sign",onInput:v.setValue},null,8,["onInput"])])),_:1})])),_:1},8,["class"])}],["__scopeId","data-v-32082100"]]);export{N as _};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import{av as o,ag as e,am as t,a$ as s,K as n,L as r,m as l,D as p,o as i,c as a,w as c,J as d,p as m,a as u,F as w,b as h,E as y,Y as x,O as f,P as g,i as T}from"./index-Cf9XklLl.js";import{r as b,b as B,W as L,a as k,m as D,c as O,G as S,_ as H}from"./mescroll-mixins.vDwnXOaY.js";import{r as _}from"./uni-app.es.Lrp8fde1.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";const v={mixins:[b]},E=o=>{o.$renderjs||(o.$renderjs=[]),o.$renderjs.push("renderBiz"),o.mixins||(o.mixins=[]),o.mixins.push({beforeCreate(){this.renderBiz=this},mounted(){this.$ownerInstance=this.$gcd(this,!0)}}),o.mixins.push(v)},C={name:"mescroll-body",mixins:[L],components:{MescrollTop:k},props:{down:Object,up:Object,i18n:Object,top:[String,Number],topbar:[Boolean,String],bottom:[String,Number],safearea:Boolean,height:[String,Number],bottombar:{type:Boolean,default:!0},sticky:Boolean},data:()=>({mescroll:{optDown:{},optUp:{}},downHight:0,downRate:0,downLoadType:0,upLoadType:0,isShowEmpty:!1,isShowToTop:!1,windowHeight:0,windowBottom:0,statusBarHeight:0}),computed:{minHeight(){return this.toPx(this.height||"100%")+"px"},numTop(){return this.toPx(this.top)},padTop(){return this.numTop+"px"},numBottom(){return this.toPx(this.bottom)},padBottom(){return this.numBottom+"px"},isDownReset(){return 3===this.downLoadType||4===this.downLoadType},transition(){return this.isDownReset?"transform 300ms":""},translateY(){return this.downHight>0?"translateY("+this.downHight+"px)":""},isDownLoading(){return 3===this.downLoadType},downRotate(){return"rotate("+360*this.downRate+"deg)"},downText(){if(!this.mescroll)return"";switch(this.downLoadType){case 1:default:return this.mescroll.optDown.textInOffset;case 2:return this.mescroll.optDown.textOutOffset;case 3:return this.mescroll.optDown.textLoading;case 4:return this.mescroll.isDownEndSuccess?this.mescroll.optDown.textSuccess:0==this.mescroll.isDownEndSuccess?this.mescroll.optDown.textErr:this.mescroll.optDown.textInOffset}}},methods:{toPx(e){if("string"==typeof e)if(-1!==e.indexOf("px"))if(-1!==e.indexOf("rpx"))e=e.replace("rpx","");else{if(-1===e.indexOf("upx"))return Number(e.replace("px",""));e=e.replace("upx","")}else if(-1!==e.indexOf("%")){let o=Number(e.replace("%",""))/100;return this.windowHeight*o}return e?o(Number(e)):0},emptyClick(){this.$emit("emptyclick",this.mescroll)},toTopClick(){this.mescroll.scrollTo(0,this.mescroll.optUp.toTop.duration),this.$emit("topclick",this.mescroll)}},created(){let o=this,r={down:{inOffset(){o.downLoadType=1},outOffset(){o.downLoadType=2},onMoving(e,t,s){o.downHight=s,o.downRate=t},showLoading(e,t){o.downLoadType=3,o.downHight=t},beforeEndDownScroll:e=>(o.downLoadType=4,e.optDown.beforeEndDelay),endDownScroll(){o.downLoadType=4,o.downHight=0,o.downResetTimer&&(clearTimeout(o.downResetTimer),o.downResetTimer=null),o.downResetTimer=setTimeout((()=>{4===o.downLoadType&&(o.downLoadType=0)}),300)},callback:function(e){o.$emit("down",e)}},up:{showLoading(){o.upLoadType=1},showNoMore(){o.upLoadType=2},hideUpScroll(e){o.upLoadType=e.optUp.hasNext?0:3},empty:{onShow(e){o.isShowEmpty=e}},toTop:{onShow(e){o.isShowToTop=e}},callback:function(e){o.$emit("up",e)}}},l=D.getType(),p={type:l};O.extend(p,o.i18n),O.extend(p,S.i18n),O.extend(r,p[l]),O.extend(r,{down:S.down,up:S.up});let i=JSON.parse(JSON.stringify({down:o.down,up:o.up}));O.extend(i,r),o.mescroll=new O(i,!0),o.mescroll.i18n=p,o.$emit("init",o.mescroll);const a=e();a.windowHeight&&(o.windowHeight=a.windowHeight),a.windowBottom&&(o.windowBottom=a.windowBottom),a.statusBarHeight&&(o.statusBarHeight=a.statusBarHeight),o.mescroll.setBodyHeight(a.windowHeight),o.mescroll.resetScrollTo(((e,n)=>{"string"==typeof e?setTimeout((()=>{let r;-1==e.indexOf("#")&&-1==e.indexOf(".")?r="#"+e:(r=e,-1!=e.indexOf(">>>")&&(r=e.split(">>>")[1].trim())),t().select(r).boundingClientRect((function(e){if(e){let t=e.top;t+=o.mescroll.getScrollTop(),s({scrollTop:t,duration:n})}else console.error(r+" does not exist")})).exec()}),30):s({scrollTop:e,duration:n})})),o.up&&o.up.toTop&&null!=o.up.toTop.safearea||(o.mescroll.optUp.toTop.safearea=o.safearea),n("setMescrollGlobalOption",(e=>{if(!e)return;let t=e.i18n?e.i18n.type:null;if(t&&o.mescroll.i18n.type!=t&&(o.mescroll.i18n.type=t,D.setType(t),O.extend(e,o.mescroll.i18n[t])),e.down){let t=O.extend({},e.down);o.mescroll.optDown=O.extend(t,o.mescroll.optDown)}if(e.up){let t=O.extend({},e.up);o.mescroll.optUp=O.extend(t,o.mescroll.optUp)}}))},destroyed(){r("setMescrollGlobalOption")}};"function"==typeof B&&B(C),E(C);const R=U(C,[["render",function(o,e,t,s,n,r){const b=T,B=_(l("mescroll-empty"),H),L=p("mescroll-top");return i(),a(b,{class:w(["mescroll-body mescroll-render-touch",{"mescorll-sticky":t.sticky}]),style:d({minHeight:r.minHeight,"padding-top":r.padTop,"padding-bottom":r.padBottom}),onTouchstart:o.wxsBiz.touchstartEvent,onTouchmove:o.wxsBiz.touchmoveEvent,onTouchend:o.wxsBiz.touchendEvent,onTouchcancel:o.wxsBiz.touchendEvent,"change:prop":o.wxsBiz.propObserver,prop:o.wxsProp},{default:c((()=>[t.topbar&&n.statusBarHeight?(i(),a(b,{key:0,class:"mescroll-topbar",style:d({height:n.statusBarHeight+"px",background:t.topbar})},null,8,["style"])):m("",!0),u(b,{class:"mescroll-body-content mescroll-wxs-content",style:d({transform:r.translateY,transition:r.transition}),"change:prop":o.wxsBiz.callObserver,prop:o.callProp},{default:c((()=>[n.mescroll.optDown.use?(i(),a(b,{key:0,class:"mescroll-downwarp",style:d({background:n.mescroll.optDown.bgColor,color:n.mescroll.optDown.textColor})},{default:c((()=>[u(b,{class:"downwarp-content"},{default:c((()=>[u(b,{class:w(["downwarp-progress mescroll-wxs-progress",{"mescroll-rotate":r.isDownLoading}]),style:d({"border-color":n.mescroll.optDown.textColor,transform:r.downRotate})},null,8,["class","style"]),u(b,{class:"downwarp-tip"},{default:c((()=>[h(y(r.downText),1)])),_:1})])),_:1})])),_:1},8,["style"])):m("",!0),x(o.$slots,"default",{},void 0,!0),n.isShowEmpty?(i(),a(B,{key:1,option:n.mescroll.optUp.empty,onEmptyclick:r.emptyClick},null,8,["option","onEmptyclick"])):m("",!0),n.mescroll.optUp.use&&!r.isDownLoading&&3!==n.upLoadType?(i(),a(b,{key:2,class:"mescroll-upwarp",style:d({background:n.mescroll.optUp.bgColor,color:n.mescroll.optUp.textColor})},{default:c((()=>[f(u(b,null,{default:c((()=>[u(b,{class:"upwarp-progress mescroll-rotate",style:d({"border-color":n.mescroll.optUp.textColor})},null,8,["style"]),u(b,{class:"upwarp-tip"},{default:c((()=>[h(y(n.mescroll.optUp.textLoading),1)])),_:1})])),_:1},512),[[g,1===n.upLoadType]]),2===n.upLoadType?(i(),a(b,{key:0,class:"upwarp-nodata"},{default:c((()=>[h(y(n.mescroll.optUp.textNoMore),1)])),_:1})):m("",!0)])),_:1},8,["style"])):m("",!0)])),_:3},8,["style","change:prop","prop"]),t.bottombar&&n.windowBottom>0?(i(),a(b,{key:1,class:"mescroll-bottombar",style:d({height:n.windowBottom+"px"})},null,8,["style"])):m("",!0),t.safearea?(i(),a(b,{key:2,class:"mescroll-safearea"})):m("",!0),u(L,{modelValue:n.isShowToTop,"onUpdate:modelValue":e[0]||(e[0]=o=>n.isShowToTop=o),option:n.mescroll.optUp.toTop,onClick:r.toTopClick},null,8,["modelValue","option","onClick"]),u(b,{"change:prop":o.renderBiz.propObserver,prop:o.wxsProp},null,8,["change:prop","prop"])])),_:3},8,["class","style","onTouchstart","onTouchmove","onTouchend","onTouchcancel","change:prop","prop"])}],["__scopeId","data-v-e30e5ae8"]]);export{R as _};
This diff is collapsed.
This diff is collapsed.
import{A as a,aG as t,aH as e}from"./index-Cf9XklLl.js";const s={onShow(){this.setTabBarBadge()},methods:{setTabBarBadge(){const s=a().getBadgeNum||0;s?t({index:3,text:s>99?"99+":s.toString()}):e({index:3})}}};export{s as I}; import{O as a,aK as t,aL as e}from"./index-q4e9g9yE.js";const s={onShow(){this.setTabBarBadge()},methods:{setTabBarBadge(){const s=a().getBadgeNum||0;s?t({index:3,text:s>99?"99+":s.toString()}):e({index:3})}}};export{s as I};
This diff is collapsed.
This diff is collapsed.
import{a2 as r}from"./index-Cf9XklLl.js";function t(t){return r({url:`/api/extend/CrmOrder/${t}`,method:"DELETE"})}function e(t,e){return r({url:"/api/extend/CrmOrder",method:"get",data:t,options:e})}function o(t){return r({url:"/api/extend/CrmOrder/Goods",method:"get",data:t,options:{load:!1}})}function d(t){return r({url:"/api/extend/CrmOrder/Customer",method:"get",data:{keyword:t||""},options:{load:!1}})}export{t as D,d as a,e as b,o as g}; import{a6 as r}from"./index-q4e9g9yE.js";function t(t){return r({url:`/api/extend/CrmOrder/${t}`,method:"DELETE"})}function e(t,e){return r({url:"/api/extend/CrmOrder",method:"get",data:t,options:e})}function o(t){return r({url:"/api/extend/CrmOrder/Goods",method:"get",data:t,options:{load:!1}})}function d(t){return r({url:"/api/extend/CrmOrder/Customer",method:"get",data:{keyword:t||""},options:{load:!1}})}export{t as D,d as a,e as b,o as g};
import{W as e,c as r,w as s,i as t,o as a,a as o,z as l}from"./index-Cf9XklLl.js";import{_ as n}from"./_plugin-vue_export-helper.BCo6x5W8.js";const u=n({data:()=>({url:""}),onLoad(r){this.url=decodeURIComponent(r.url);const s=r.fullName||"";5!=r.type&&s&&e({title:s})}},[["render",function(e,n,u,c,d,i){const p=l,f=t;return a(),r(f,null,{default:s((()=>[o(p,{src:d.url},null,8,["src"])])),_:1})}]]);export{u as default};
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment