"use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[2268],{14071:function(e,t,l){l.d(t,{Z:function(){return f}});var a=l(13649),i=(l(64165),l(13813)),o=(l(55449),l(57658),l(73396)),n=l(44870),c=l(87139);const r={class:"common-list"},s={key:0,class:"left-box",style:{"margin-right":"20px"}},d=["onClick"],u=["onClick"];var p={__name:"common-list",props:{data:{type:Array,default:[]},config:{type:Object,default:[]},showMore:{type:Boolean,default:!0},isCheckbox:{type:Boolean,default:!1},optionalKey:{type:String,default:null}},setup(e){const t=(0,o.FN)().proxy;let l=(0,n.iH)([]),p=[];(0,o.YP)((()=>t.data),(e=>{l.value=e.map((e=>(p.length>0&&p.map((t=>{e.id==t.id&&(e.checked=!0)})),e)))}));const m=(0,n.iH)(null),f=()=>{p=[],l.value.map((e=>{e.checked&&(p.push(e),m.value||(m.value=e[t.optionalKey]))})),0==p.length&&(m.value=null),t.$emit("onCheck",p)},y=e=>{t.$emit("onClick",e)};return(t,p)=>{const b=i.XZ,h=a.JO;return(0,o.wg)(),(0,o.iD)("div",r,[(0,o._)("ul",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)((0,n.SU)(l),(t=>((0,o.wg)(),(0,o.iD)("li",{key:t.id},[e.isCheckbox?((0,o.wg)(),(0,o.iD)("div",s,[(0,o.Wm)(b,{modelValue:t.checked,"onUpdate:modelValue":e=>t.checked=e,"icon-size":"15px",shape:"square",onChange:f,disabled:!!m.value&&m.value!=t[e.optionalKey]},null,8,["modelValue","onUpdate:modelValue","disabled"])])):(0,o.kq)("",!0),(0,o._)("div",{class:"center-content",style:{"line-height":"24px"},onClick:e=>y(t)},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.config,(e=>((0,o.wg)(),(0,o.iD)("div",{key:e.prop},[(0,o._)("span",null,(0,c.zw)(e.label)+":",1),(0,o.Uk)((0,c.zw)(t[e.prop]),1)])))),128))],8,d),e.showMore?((0,o.wg)(),(0,o.iD)("div",{key:1,class:"more-box",onClick:e=>y(t)},[(0,o.Wm)(h,{name:"arrow"})],8,u)):(0,o.kq)("",!0)])))),128))])])}}};const m=p;var f=m},44552:function(e,t,l){l.r(t),l.d(t,{default:function(){return m}});var a=l(80147),i=(l(39292),l(39420)),o=(l(12097),l(57658),l(73396)),n=l(44870),c=(l(14071),l(22483)),r=l(99080);const s={style:{"padding-bottom":"60px"}};var d={__name:"index",setup(e){(0,n.iH)(!1),(0,c.yj)();const t=(0,n.iH)({pageNum:1,keyword:null}),l=((0,n.iH)(!1),(0,n.iH)([])),d=(0,o.FN)().proxy,u=(0,n.iH)(null),p=(0,n.qj)({readonly:!1,disabled:!1,labelAlign:"top",scroll:!0,labelWidth:"62pk",btnConfig:{isNeed:!0,label:"明细",prop:"list",plain:!0,listConfig:[{type:"input",itemType:"text",label:"姓名",prop:"name",clearable:!0,readonly:!0},{type:"picker",label:"选择器",prop:"select",itemType:"onePicker",showPicker:!1,readonly:!1,fieldNames:{text:"att",value:"id"},data:[{att:"ceshi",id:"1"},{att:"ceshi1",id:"2"}]},{type:"picker",label:"时间选择器",prop:"date",itemType:"datePicker",showPicker:!1,split:"-",columnsType:["year","month"]}],clickFn:()=>{y.data.list.push({name:"cz"})}}}),m=(0,n.qj)([{type:"title",title:"text"},{type:"input",itemType:"text",label:"姓名",prop:"name",clearable:!0},{type:"input",itemType:"textarea",label:"富文本",prop:"reamlke"},{type:"input",itemType:"password",label:"密码",prop:"password"},{type:"picker",label:"选择器",prop:"select",itemType:"onePicker",showPicker:!1,fieldNames:{text:"label",value:"id"},data:[{label:"值1",id:"1"},{label:"值2",id:"2"}]},{type:"picker",label:"时间选择器",prop:"date",itemType:"datePicker",showPicker:!1,split:"-",columnsType:["year","month"]},{type:"cascader",label:"通用级联",prop:"common",itemType:"common",showPicker:!1,data:[],fieldNames:{text:"label",value:"id",children:"children"}},{type:"cascader",label:"城市",prop:"city",itemType:"city",showPicker:!1},{type:"upload",label:"上传qqq",prop:"fileList"}]),f={name:[{required:!0,message:"请填写姓名"}],password:[{required:!0,message:"请填写密码"}],reamlke:[{required:!0,message:"请填写备注"}],checkbox:[{required:!0,message:"请选择"}],radio:[{required:!0,message:"请选择"}],select:[{required:!0,message:"请选择"}],date:[{required:!0,message:"请选择时间"}],common:[{required:!0,message:"请选择级联"}],city:[{required:!0,message:"请选择城市"}]},y=(0,n.qj)({data:{name:"scz",password:"123456789",reamlke:"beizhu回显",select:"1",date:"2022-01-09",common:"",city:"22",cityName:"合肥",list:[{name:"qqq",select:"1",date:"2022-01"},{name:"www",select:"2",date:"2023-01"}]}}),b=()=>{y.data.fileList&&y.data.fileList.length>0?y.data.fileList=y.data.fileList.map((e=>({id:e.id,fileName:e.fileName}))):y.data.fileList=[],y.data.cityObj&&(y.data.countryId=y.data.cityObj.selectedOptions[0].value,y.data.provinceId=2===y.data.cityObj.tabIndex?y.data.cityObj.selectedOptions[1].value:null,y.data.cityId=1===y.data.cityObj.tabIndex?y.data.cityObj.selectedOptions[1].value:y.data.cityObj.selectedOptions[2].value),console.log(y.data,"wssa")};return(0,o.bv)((()=>{d.post("/productClassify/tree",{parentId:"",name:"",definition:"1"}).then((e=>{l.value=e.data;const t=m.findIndex((e=>"cascader"==e.type&&"common"==e.itemType));m[t].data=l.value}))})),(e,l)=>{const n=i.l2,c=a.ol;return(0,o.wg)(),(0,o.iD)("div",s,[(0,o.Wm)(n,{title:"完工入库","left-text":"","left-arrow":""},{right:(0,o.w5)((()=>[(0,o.Uk)(" 添加 ")])),_:1}),(0,o.Wm)(c,{modelValue:t.value.keyword,"onUpdate:modelValue":l[0]||(l[0]=e=>t.value.keyword=e),placeholder:e.$t("common.pleaseEnterKeywords")},null,8,["modelValue","placeholder"]),(0,o.Wm)(r.Z,{modelValue:y.data,"onUpdate:modelValue":l[1]||(l[1]=e=>y.data=e),formOption:p,formConfig:m,rules:f,onOnSubmit:b,ref_key:"formDom",ref:u},null,8,["modelValue","formOption","formConfig"])])}}},u=l(40089);const p=(0,u.Z)(d,[["__scopeId","data-v-284044ad"]]);var m=p},34373:function(e,t,l){l.d(t,{J:function(){return s}});var a=l(73396),i=l(253),o=l(44870),n=l(47936),c=l(10648);const r=(e,t)=>{const l=(0,o.iH)(),r=()=>{l.value=(0,i.EL)(e).height};return(0,a.bv)((()=>{if((0,a.Y3)(r),t)for(let e=1;e<=3;e++)setTimeout(r,100*e)})),(0,c.h)((()=>(0,a.Y3)(r))),(0,a.YP)([n.bn,n.uK],r),l};function s(e,t){const l=r(e,!0);return e=>(0,a.Wm)("div",{class:t("placeholder"),style:{height:l.value?`${l.value}px`:void 0}},[e()])}},39420:function(e,t,l){l.d(t,{l2:function(){return b}});var a=l(11404),i=l(73396),o=l(44870),n=l(610),c=l(5323),r=l(96048),s=l(25322),d=l(34373),u=l(13649);const[p,m]=(0,n["do"])("nav-bar"),f={title:String,fixed:Boolean,zIndex:c.Or,border:c.J5,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:c.J5};var y=(0,i.aZ)({name:p,props:f,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:l}){const a=(0,o.iH)(),n=(0,d.J)(a,m),c=e=>t("clickLeft",e),p=e=>t("clickRight",e),f=()=>l.left?l.left():[e.leftArrow&&(0,i.Wm)(u.JO,{class:m("arrow"),name:"arrow-left"},null),e.leftText&&(0,i.Wm)("span",{class:m("text")},[e.leftText])],y=()=>l.right?l.right():(0,i.Wm)("span",{class:m("text")},[e.rightText]),b=()=>{const{title:t,fixed:o,border:n,zIndex:d}=e,u=(0,r.As)(d),b=e.leftArrow||e.leftText||l.left,h=e.rightText||l.right;return(0,i.Wm)("div",{ref:a,style:u,class:[m({fixed:o}),{[s.xe]:n,"van-safe-area-top":e.safeAreaInsetTop}]},[(0,i.Wm)("div",{class:m("content")},[b&&(0,i.Wm)("div",{class:[m("left"),e.clickable?s.e9:""],onClick:c},[f()]),(0,i.Wm)("div",{class:[m("title"),"van-ellipsis"]},[l.title?l.title():t]),h&&(0,i.Wm)("div",{class:[m("right"),e.clickable?s.e9:""],onClick:p},[y()])])])};return()=>e.fixed&&e.placeholder?n(b):b()}});const b=(0,a.n)(y)},12097:function(e,t,l){l(31958),l(20368),l(56742)},80147:function(e,t,l){l.d(t,{ol:function(){return v}});var a=l(11404),i=l(73396),o=l(44870),n=l(610),c=l(12220),r=l(5323),s=l(47936),d=l(36817),u=l(96401),p=l(3444),m=l(43739);const[f,y,b]=(0,n["do"])("search"),h=(0,c.l7)({},d.Mv,{label:String,shape:(0,r.SQ)("square"),leftIcon:(0,r.SQ)("search"),clearable:r.J5,actionText:String,background:String,showAction:Boolean});var k=(0,i.aZ)({name:f,props:h,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:l,attrs:a}){const n=(0,u.M)(),r=(0,o.iH)(),f=()=>{l.action||(t("update:modelValue",""),t("cancel"))},h=l=>{const a=13;l.keyCode===a&&((0,s.PF)(l),t("search",e.modelValue))},k=()=>e.id||`${n}-input`,v=()=>{if(l.label||e.label)return(0,i.Wm)("label",{class:y("label"),for:k()},[l.label?l.label():e.label])},g=()=>{if(e.showAction){const t=e.actionText||b("cancel");return(0,i.Wm)("div",{class:y("action"),role:"button",tabindex:0,onClick:f},[l.action?l.action():t])}},w=()=>{var e;return null==(e=r.value)?void 0:e.blur()},x=()=>{var e;return null==(e=r.value)?void 0:e.focus()},T=e=>t("blur",e),C=e=>t("focus",e),q=e=>t("clear",e),I=e=>t("clickInput",e),W=e=>t("clickLeftIcon",e),O=e=>t("clickRightIcon",e),V=Object.keys(d.Mv),_=()=>{const o=(0,c.l7)({},a,(0,c.ei)(e,V),{id:k()}),n=e=>t("update:modelValue",e);return(0,i.Wm)(m.gN,(0,i.dG)({ref:r,type:"search",class:y("field"),border:!1,onBlur:T,onFocus:C,onClear:q,onKeypress:h,onClickInput:I,onClickLeftIcon:W,onClickRightIcon:O,"onUpdate:modelValue":n},o),(0,c.ei)(l,["left-icon","right-icon"]))};return(0,p.F)({focus:x,blur:w}),()=>{var t;return(0,i.Wm)("div",{class:y({"show-action":e.showAction}),style:{background:e.background}},[null==(t=l.left)?void 0:t.call(l),(0,i.Wm)("div",{class:y("content",e.shape)},[v(),_()]),g()])}}});const v=(0,a.n)(k)},39292:function(e,t,l){l(31958),l(20368),l(56742),l(3094),l(67984)}}]); //# sourceMappingURL=2268.5283c337.js.map