-1?u[l?e[o]:o]:f}}function Ml(n){return se(function(e){var t=e.length,r=t,u=On.prototype.thru;for(n&&e.reverse();r--;){var l=e[r];if(typeof l!="function")throw new Dn(V);if(u&&!o&&or(l)=="wrapper")var o=new On([],!0)}for(r=o?r:t;++r1&&W.reverse(),g&&ca))return!1;var d=l.get(n),g=l.get(e);if(d&&g)return d==e&&g==n;var _=-1,x=!0,b=t&Zn?new Re:f;for(l.set(n,e),l.set(e,n);++_1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(vo,`{
/* [wrapped with `+e+`] */
`)}function _c(n){return R(n)||Pe(n)||!!(ji&&n&&n[ji])}function ce(n,e){var t=typeof n;return e=e==null?_e:e,!!e&&(t=="number"||t!="symbol"&&Io.test(n))&&n>-1&&n%1==0&&n0){if(++e>=yr)return arguments[0]}else e=0;return n.apply(f,arguments)}}function sr(n,e){var t=-1,r=n.length,u=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,sf(n,t)});function cf(n){var e=i(n);return e.__chain__=!0,e}function Bh(n,e){return e(n),n}function cr(n,e){return e(n)}var Ih=se(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(l){return iu(l,n)};return e>1||this.__actions__.length||!(r instanceof U)||!ce(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:cr,args:[u],thisArg:f}),new On(r,this.__chain__).thru(function(l){return e&&!l.length&&l.push(f),l}))});function Sh(){return cf(this)}function Rh(){return new On(this.value(),this.__chain__)}function Th(){this.__values__===f&&(this.__values__=yf(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function Lh(){return this}function Dh(n){for(var e,t=this;t instanceof Jt;){var r=rf(t);r.__index__=0,r.__values__=f,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function Oh(){var n=this.__wrapped__;if(n instanceof U){var e=n;return this.__actions__.length&&(e=new U(this)),e=e.reverse(),e.__actions__.push({func:cr,args:[Du],thisArg:f}),new On(e,this.__chain__)}return this.thru(Du)}function Ph(){return Fl(this.__wrapped__,this.__actions__)}var Uh=rr(function(n,e,t){q.call(n,t)?++n[t]:oe(n,t,1)});function Wh(n,e,t){var r=R(n)?Ni:Bs;return t&&gn(n,e,t)&&(e=f),r(n,F(e,3))}function Mh(n,e){var t=R(n)?ve:al;return t(n,F(e,3))}var Nh=Wl(uf),Gh=Wl(lf);function qh(n,e){return an(hr(n,e),1)}function Hh(n,e){return an(hr(n,e),Fe)}function Vh(n,e,t){return t=t===f?1:T(t),an(hr(n,e),t)}function hf(n,e){var t=R(n)?Ln:xe;return t(n,F(e,3))}function pf(n,e){var t=R(n)?oa:ol;return t(n,F(e,3))}var Kh=rr(function(n,e,t){q.call(n,t)?n[t].push(e):oe(n,t,[e])});function $h(n,e,t,r){n=wn(n)?n:nt(n),t=t&&!r?T(t):0;var u=n.length;return t<0&&(t=en(u+t,0)),vr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&He(n,e,t)>-1}var zh=O(function(n,e,t){var r=-1,u=typeof e=="function",l=wn(n)?h(n.length):[];return xe(n,function(o){l[++r]=u?An(e,o,t):vt(o,e,t)}),l}),Yh=rr(function(n,e,t){oe(n,t,e)});function hr(n,e){var t=R(n)?z:gl;return t(n,F(e,3))}function Zh(n,e,t,r){return n==null?[]:(R(e)||(e=e==null?[]:[e]),t=r?f:t,R(t)||(t=t==null?[]:[t]),Cl(n,e,t))}var Xh=rr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Jh(n,e,t){var r=R(n)?zr:Vi,u=arguments.length<3;return r(n,F(e,4),t,u,xe)}function Qh(n,e,t){var r=R(n)?aa:Vi,u=arguments.length<3;return r(n,F(e,4),t,u,ol)}function kh(n,e){var t=R(n)?ve:al;return t(n,gr(F(e,3)))}function jh(n){var e=R(n)?ul:$s;return e(n)}function np(n,e,t){(t?gn(n,e,t):e===f)?e=1:e=T(e);var r=R(n)?Es:zs;return r(n,e)}function ep(n){var e=R(n)?As:Zs;return e(n)}function tp(n){if(n==null)return 0;if(wn(n))return vr(n)?Ke(n):n.length;var e=pn(n);return e==Gn||e==qn?n.size:cu(n).length}function rp(n,e,t){var r=R(n)?Yr:Xs;return t&&gn(n,e,t)&&(e=f),r(n,F(e,3))}var up=O(function(n,e){if(n==null)return[];var t=e.length;return t>1&&gn(n,e[0],e[1])?e=[]:t>2&&gn(e[0],e[1],e[2])&&(e=[e[0]]),Cl(n,an(e,1),[])}),pr=Ma||function(){return on.Date.now()};function ip(n,e){if(typeof e!="function")throw new Dn(V);return n=T(n),function(){if(--n<1)return e.apply(this,arguments)}}function df(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,ae(n,G,f,f,f,f,e)}function gf(n,e){var t;if(typeof e!="function")throw new Dn(V);return n=T(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Pu=O(function(n,e,t){var r=ln;if(t.length){var u=Ce(t,ke(Pu));r|=D}return ae(n,r,e,t,u)}),_f=O(function(n,e,t){var r=ln|re;if(t.length){var u=Ce(t,ke(_f));r|=D}return ae(e,r,n,t,u)});function vf(n,e,t){e=t?f:e;var r=ae(n,Rn,f,f,f,f,f,e);return r.placeholder=vf.placeholder,r}function mf(n,e,t){e=t?f:e;var r=ae(n,ge,f,f,f,f,f,e);return r.placeholder=mf.placeholder,r}function Cf(n,e,t){var r,u,l,o,a,c,d=0,g=!1,_=!1,x=!0;if(typeof n!="function")throw new Dn(V);e=Mn(e)||0,Y(t)&&(g=!!t.leading,_="maxWait"in t,l=_?en(Mn(t.maxWait)||0,e):l,x="trailing"in t?!!t.trailing:x);function b(Q){var $n=r,de=u;return r=u=f,d=Q,o=n.apply(de,$n),o}function B(Q){return d=Q,a=Et(P,e),g?b(Q):o}function L(Q){var $n=Q-c,de=Q-d,Mf=e-$n;return _?hn(Mf,l-de):Mf}function I(Q){var $n=Q-c,de=Q-d;return c===f||$n>=e||$n<0||_&&de>=l}function P(){var Q=pr();if(I(Q))return W(Q);a=Et(P,L(Q))}function W(Q){return a=f,x&&r?b(Q):(r=u=f,o)}function Bn(){a!==f&&Il(a),d=0,r=c=u=a=f}function _n(){return a===f?o:W(pr())}function In(){var Q=pr(),$n=I(Q);if(r=arguments,u=this,c=Q,$n){if(a===f)return B(c);if(_)return Il(a),a=Et(P,e),b(c)}return a===f&&(a=Et(P,e)),o}return In.cancel=Bn,In.flush=_n,In}var lp=O(function(n,e){return fl(n,1,e)}),fp=O(function(n,e,t){return fl(n,Mn(e)||0,t)});function op(n){return ae(n,Xn)}function dr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Dn(V);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],l=t.cache;if(l.has(u))return l.get(u);var o=n.apply(this,r);return t.cache=l.set(u,o)||l,o};return t.cache=new(dr.Cache||fe),t}dr.Cache=fe;function gr(n){if(typeof n!="function")throw new Dn(V);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function ap(n){return gf(2,n)}var sp=Js(function(n,e){e=e.length==1&&R(e[0])?z(e[0],bn(F())):z(an(e,1),bn(F()));var t=e.length;return O(function(r){for(var u=-1,l=hn(r.length,t);++u=e}),Pe=hl(function(){return arguments}())?hl:function(n){return Z(n)&&q.call(n,"callee")&&!ki.call(n,"callee")},R=h.isArray,yp=Di?bn(Di):Ds;function wn(n){return n!=null&&_r(n.length)&&!he(n)}function J(n){return Z(n)&&wn(n)}function Fp(n){return n===!0||n===!1||Z(n)&&dn(n)==tt}var ye=Ga||Yu,Bp=Oi?bn(Oi):Os;function Ip(n){return Z(n)&&n.nodeType===1&&!At(n)}function Sp(n){if(n==null)return!0;if(wn(n)&&(R(n)||typeof n=="string"||typeof n.splice=="function"||ye(n)||je(n)||Pe(n)))return!n.length;var e=pn(n);if(e==Gn||e==qn)return!n.size;if(xt(n))return!cu(n).length;for(var t in n)if(q.call(n,t))return!1;return!0}function Rp(n,e){return mt(n,e)}function Tp(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?mt(n,e,f,t):!!r}function Wu(n){if(!Z(n))return!1;var e=dn(n);return e==It||e==jf||typeof n.message=="string"&&typeof n.name=="string"&&!At(n)}function Lp(n){return typeof n=="number"&&nl(n)}function he(n){if(!Y(n))return!1;var e=dn(n);return e==St||e==fi||e==kf||e==eo}function xf(n){return typeof n=="number"&&n==T(n)}function _r(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=_e}function Y(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function Z(n){return n!=null&&typeof n=="object"}var Ef=Pi?bn(Pi):Us;function Dp(n,e){return n===e||su(n,e,Bu(e))}function Op(n,e,t){return t=typeof t=="function"?t:f,su(n,e,Bu(e),t)}function Pp(n){return Af(n)&&n!=+n}function Up(n){if(Cc(n))throw new S(X);return pl(n)}function Wp(n){return n===null}function Mp(n){return n==null}function Af(n){return typeof n=="number"||Z(n)&&dn(n)==ut}function At(n){if(!Z(n)||dn(n)!=ie)return!1;var e=Vt(n);if(e===null)return!0;var t=q.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Nt.call(t)==Oa}var Mu=Ui?bn(Ui):Ws;function Np(n){return xf(n)&&n>=-_e&&n<=_e}var bf=Wi?bn(Wi):Ms;function vr(n){return typeof n=="string"||!R(n)&&Z(n)&&dn(n)==lt}function Fn(n){return typeof n=="symbol"||Z(n)&&dn(n)==Rt}var je=Mi?bn(Mi):Ns;function Gp(n){return n===f}function qp(n){return Z(n)&&pn(n)==ft}function Hp(n){return Z(n)&&dn(n)==ro}var Vp=fr(hu),Kp=fr(function(n,e){return n<=e});function yf(n){if(!n)return[];if(wn(n))return vr(n)?Hn(n):Cn(n);if(st&&n[st])return Ea(n[st]());var e=pn(n),t=e==Gn?jr:e==qn?Ut:nt;return t(n)}function pe(n){if(!n)return n===0?n:0;if(n=Mn(n),n===Fe||n===-Fe){var e=n<0?-1:1;return e*Zf}return n===n?n:0}function T(n){var e=pe(n),t=e%1;return e===e?t?e-t:e:0}function Ff(n){return n?Te(T(n),0,Jn):0}function Mn(n){if(typeof n=="number")return n;if(Fn(n))return Ft;if(Y(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Y(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ki(n);var t=yo.test(n);return t||Bo.test(n)?ia(n.slice(2),t?2:8):bo.test(n)?Ft:+n}function Bf(n){return kn(n,xn(n))}function $p(n){return n?Te(T(n),-_e,_e):n===0?n:0}function N(n){return n==null?"":yn(n)}var zp=Je(function(n,e){if(xt(e)||wn(e)){kn(e,rn(e),n);return}for(var t in e)q.call(e,t)&>(n,t,e[t])}),If=Je(function(n,e){kn(e,xn(e),n)}),mr=Je(function(n,e,t,r){kn(e,xn(e),n,r)}),Yp=Je(function(n,e,t,r){kn(e,rn(e),n,r)}),Zp=se(iu);function Xp(n,e){var t=Xe(n);return e==null?t:il(t,e)}var Jp=O(function(n,e){n=H(n);var t=-1,r=e.length,u=r>2?e[2]:f;for(u&&gn(e[0],e[1],u)&&(r=1);++t1),l}),kn(n,yu(n),t),r&&(t=Pn(t,cn|mn|Yn,fc));for(var u=e.length;u--;)vu(t,e[u]);return t});function dd(n,e){return Rf(n,gr(F(e)))}var gd=se(function(n,e){return n==null?{}:Hs(n,e)});function Rf(n,e){if(n==null)return{};var t=z(yu(n),function(r){return[r]});return e=F(e),wl(n,t,function(r,u){return e(r,u[0])})}function _d(n,e,t){e=Ae(e,n);var r=-1,u=e.length;for(u||(u=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=el();return hn(n+u*(e-n+ua("1e-"+((u+"").length-1))),e)}return du(n,e)}var Bd=Qe(function(n,e,t){return e=e.toLowerCase(),n+(t?Df(e):e)});function Df(n){return qu(N(n).toLowerCase())}function Of(n){return n=N(n),n&&n.replace(So,va).replace(Zo,"")}function Id(n,e,t){n=N(n),e=yn(e);var r=n.length;t=t===f?r:Te(T(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function Sd(n){return n=N(n),n&&oo.test(n)?n.replace(si,ma):n}function Rd(n){return n=N(n),n&&go.test(n)?n.replace(Ur,"\\$&"):n}var Td=Qe(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Ld=Qe(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Dd=Ul("toLowerCase");function Od(n,e,t){n=N(n),e=T(e);var r=e?Ke(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return lr(Yt(u),t)+n+lr(zt(u),t)}function Pd(n,e,t){n=N(n),e=T(e);var r=e?Ke(n):0;return e&&r>>0,t?(n=N(n),n&&(typeof e=="string"||e!=null&&!Mu(e))&&(e=yn(e),!e&&Ve(n))?be(Hn(n),0,t):n.split(e,t)):[]}var Hd=Qe(function(n,e,t){return n+(t?" ":"")+qu(e)});function Vd(n,e,t){return n=N(n),t=t==null?0:Te(T(t),0,n.length),e=yn(e),n.slice(t,t+e.length)==e}function Kd(n,e,t){var r=i.templateSettings;t&&gn(n,e,t)&&(e=f),n=N(n),e=mr({},e,r,Vl);var u=mr({},e.imports,r.imports,Vl),l=rn(u),o=kr(u,l),a,c,d=0,g=e.interpolate||Tt,_="__p += '",x=nu((e.escape||Tt).source+"|"+g.source+"|"+(g===ci?Ao:Tt).source+"|"+(e.evaluate||Tt).source+"|$","g"),b="//# sourceURL="+(q.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jo+"]")+`
`;n.replace(x,function(I,P,W,Bn,_n,In){return W||(W=Bn),_+=n.slice(d,In).replace(Ro,Ca),P&&(a=!0,_+=`' +
__e(`+P+`) +
'`),_n&&(c=!0,_+=`';
`+_n+`;
__p += '`),W&&(_+=`' +
((__t = (`+W+`)) == null ? '' : __t) +
'`),d=In+I.length,I}),_+=`';
`;var B=q.call(e,"variable")&&e.variable;if(!B)_=`with (obj) {
`+_+`
}
`;else if(xo.test(B))throw new S(te);_=(c?_.replace(uo,""):_).replace(io,"$1").replace(lo,"$1;"),_="function("+(B||"obj")+`) {
`+(B?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+_+`return __p
}`;var L=Uf(function(){return M(l,b+"return "+_).apply(f,o)});if(L.source=_,Wu(L))throw L;return L}function $d(n){return N(n).toLowerCase()}function zd(n){return N(n).toUpperCase()}function Yd(n,e,t){if(n=N(n),n&&(t||e===f))return Ki(n);if(!n||!(e=yn(e)))return n;var r=Hn(n),u=Hn(e),l=$i(r,u),o=zi(r,u)+1;return be(r,l,o).join("")}function Zd(n,e,t){if(n=N(n),n&&(t||e===f))return n.slice(0,Zi(n)+1);if(!n||!(e=yn(e)))return n;var r=Hn(n),u=zi(r,Hn(e))+1;return be(r,0,u).join("")}function Xd(n,e,t){if(n=N(n),n&&(t||e===f))return n.replace(Wr,"");if(!n||!(e=yn(e)))return n;var r=Hn(n),u=$i(r,Hn(e));return be(r,u).join("")}function Jd(n,e){var t=Ar,r=br;if(Y(e)){var u="separator"in e?e.separator:u;t="length"in e?T(e.length):t,r="omission"in e?yn(e.omission):r}n=N(n);var l=n.length;if(Ve(n)){var o=Hn(n);l=o.length}if(t>=l)return n;var a=t-Ke(r);if(a<1)return r;var c=o?be(o,0,a).join(""):n.slice(0,a);if(u===f)return c+r;if(o&&(a+=c.length-a),Mu(u)){if(n.slice(a).search(u)){var d,g=c;for(u.global||(u=nu(u.source,N(hi.exec(u))+"g")),u.lastIndex=0;d=u.exec(g);)var _=d.index;c=c.slice(0,_===f?a:_)}}else if(n.indexOf(yn(u),a)!=a){var x=c.lastIndexOf(u);x>-1&&(c=c.slice(0,x))}return c+r}function Qd(n){return n=N(n),n&&fo.test(n)?n.replace(ai,Fa):n}var kd=Qe(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),qu=Ul("toUpperCase");function Pf(n,e,t){return n=N(n),e=t?f:e,e===f?xa(n)?Sa(n):ha(n):n.match(e)||[]}var Uf=O(function(n,e){try{return An(n,f,e)}catch(t){return Wu(t)?t:new S(t)}}),jd=se(function(n,e){return Ln(e,function(t){t=jn(t),oe(n,t,Pu(n[t],n))}),n});function ng(n){var e=n==null?0:n.length,t=F();return n=e?z(n,function(r){if(typeof r[1]!="function")throw new Dn(V);return[t(r[0]),r[1]]}):[],O(function(r){for(var u=-1;++u_e)return[];var t=Jn,r=hn(n,Jn);e=F(e),n-=Jn;for(var u=Qr(r,e);++t0||e<0)?new U(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=T(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},U.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},U.prototype.toArray=function(){return this.take(Jn)},Qn(U.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=i[r?"take"+(e=="last"?"Right":""):e],l=r||/^find/.test(e);!u||(i.prototype[e]=function(){var o=this.__wrapped__,a=r?[1]:arguments,c=o instanceof U,d=a[0],g=c||R(o),_=function(P){var W=u.apply(i,me([P],a));return r&&x?W[0]:W};g&&t&&typeof d=="function"&&d.length!=1&&(c=g=!1);var x=this.__chain__,b=!!this.__actions__.length,B=l&&!x,L=c&&!b;if(!l&&g){o=L?o:new U(this);var I=n.apply(o,a);return I.__actions__.push({func:cr,args:[_],thisArg:f}),new On(I,x)}return B&&L?n.apply(this,a):(I=this.thru(_),B?r?I.value()[0]:I.value():I)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(n){var e=Wt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);i.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var l=this.value();return e.apply(R(l)?l:[],u)}return this[t](function(o){return e.apply(R(o)?o:[],u)})}}),Qn(U.prototype,function(n,e){var t=i[e];if(t){var r=t.name+"";q.call(Ze,r)||(Ze[r]=[]),Ze[r].push({name:e,func:t})}}),Ze[ur(f,re).name]=[{name:"wrapper",func:f}],U.prototype.clone=Qa,U.prototype.reverse=ka,U.prototype.value=ja,i.prototype.at=Ih,i.prototype.chain=Sh,i.prototype.commit=Rh,i.prototype.next=Th,i.prototype.plant=Dh,i.prototype.reverse=Oh,i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=Ph,i.prototype.first=i.prototype.head,st&&(i.prototype[st]=Lh),i},$e=Ra();Be?((Be.exports=$e)._=$e,Vr._=$e):on._=$e}).call(bt)})(li,li.exports);const g0=Hf({__name:"index",props:{visible:{type:Boolean,required:!0},otherSearchParameter:{type:null,required:!1}},emits:["submit"],setup(un,{emit:tn}){const f=un,ee=tn,vn=Ng(f,"visible"),X=Vf(),V={pageSearchHook:()=>f0(void 0,void 0,ti)},te=et(li.exports.cloneDeep(ti)),w=et([]),sn={content:{preview:({id:cn})=>X.push("/invoiceInOut/productManagerDetail?id="+cn),create:()=>X.push("/invoiceInOut/productManagerDetail")}};function Sn(){if(w.value.length===0){xr.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u5B50\u5546\u54C1");return}vn.value=!1,ee("submit",w.value)}return Gg(()=>f.otherSearchParameter,()=>{if(!f.otherSearchParameter)return;const cn=["timer","skuCode",...Object.keys(f.otherSearchParameter)];te.value.formItems=ti.formItems.filter(mn=>cn.includes(mn.field))},{deep:!0,immediate:!0}),(cn,mn)=>{const Yn=We("PageContainer"),Nn=We("ElButton");return ne(),Me(C(Hg),{class:"reactive",modelValue:C(vn),"onUpdate:modelValue":mn[1]||(mn[1]=Zn=>qg(vn)?vn.value=Zn:null),title:"\u9009\u62E9\u5546\u54C1",center:"",top:"10px"},{default:y(()=>[C(vn)?(ne(),Me(Yn,{key:0,"only-self":!0,hooks:V,events:sn,searchConfig:te.value,contentConfig:C(d0),isPageStart:!0,"other-search-parameter":cn.otherSearchParameter,onContentSelectChange:mn[0]||(mn[0]=Zn=>w.value=Zn.map(ln=>({...ln,child_num:"1",child_id:ln.id})))},null,8,["searchConfig","contentConfig","other-search-parameter"])):Kf("v-if",!0),m(Nn,{class:"absolute bottom-[30px] right-[20px]",type:"primary",onClick:Sn},{default:y(()=>mn[2]||(mn[2]=[ri("\u4FDD\u5B58 ")])),_:1})]),_:1},8,["modelValue"])}}});var _0=$f(g0,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/components/ChooseGoodModal/index.vue"]]);const v0={class:"w-full flex justify-between"},m0={class:"w-full flex justify-end"},C0=Hf({__name:"BaseForm",setup(un){const{current:tn}=c0(),f=Er(()=>({...h0,skuCode:[{required:w.value.good_source=="1",message:"\u8BF7\u8F93\u5165\u5546\u54C1\u7F16\u53F7",trigger:"change"}]})),ee=Vf(),vn=et(null),X=Vg({editVisible:!1,visible:!1,companies:[],index:-1,data:{}}),V=Er(()=>({good_type:w.value.good_type,good_source:w.value.good_source,is_combind:"0",status:"1"})),te=Kg({success(){ee.push("/invoiceInOut/productManager")}}),w=et(r0()),sn=et({}),Sn=et({});async function cn(){var D;if(w.value.is_combind==="1"&&w.value.childArr.length<2){xr.warning("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E24\u6761\u5B50\u5546\u54C1");return}if(w.value.is_combind==="0"&&(w.value.childArr=[]),w.value.subunit_price>w.value.unit_price){xr.warning("\u6210\u672C\u7A0E\u540E\u5355\u4EF7\u5FC5\u987B\u5927\u4E8E\u6216\u7B49\u4E8E\u6210\u672C\u7A0E\u524D\u5355\u4EF7");return}try{await((D=vn.value)==null?void 0:D.validate()),te.run(t0({...w.value,skuCode:w.value.good_source=="1"?w.value.skuCode:yt(),childArr:w.value.childArr.map(({child_id:v,child_num:G})=>({child_id:v,child_num:G}))}))}catch{}}function mn(D,v){if(D?w.value.seller_name=v.name:(v=X.companies.find(G=>G.company_license===w.value.buyer_code),w.value.buyer_name=v.company_name),!v)return D?sn.value={}:Sn.value={};D?sn.value=u0(l0(v)):Sn.value=i0(v)}const Yn=mn.bind(null,!0),Nn=mn.bind(null,!1);function Zn(D){const v=w.value.childArr.map(({id:fn})=>fn),G=[];for(const fn of D)v.includes(fn.id)||G.push(fn);w.value.childArr=[...w.value.childArr,...G]}function ln(D){X.index=D,X.editVisible=!0,X.data={...w.value.childArr[D]}}(async function(){const v=await e0({size:1e4});if(v.code==0){X.companies=[...v.data.list];const G=X.companies.find(fn=>fn.companyNo===tn.value.companyNo);w.value.buyer_code=G.company_license,Nn(G)}})();function re(D,v){return D=Math.ceil(D),v=Math.floor(v),Math.floor(Math.random()*(v-D+1))+D}function yt(){let D=Gf(new Date).format("YY-MM-DD HH:mm:ss");D=D.replace(/-/g,""),D=D.replace(/:/g,""),D=D.replace(/ /g,"");let v=String(Gf().get("millisecond"));v.length===2&&(v="0"+v),v.length===1&&(v="00"+v);let G=w.value.is_combind=="0"?"PKU":"PSU";const fn=re(10,99);return G+D+v+fn}function Rn(){if(!w.value.good_type||!w.value.good_source){xr.warning("\u8BF7\u9009\u62E9\u5546\u54C1\u6765\u6E90\u548C\u5546\u54C1\u7C7B\u578B");return}X.visible=!0}function ge(D){D=="2"&&(w.value.skuCode=""),w.value.childArr=[]}return(D,v)=>{const G=We("ElInput"),fn=We("ElRow"),Xn=We("ElTableColumn"),Ar=We("ElTag"),br=We("ElTable"),yr=$g("loading");return zg((ne(),Me(C(Qg),{ref_key:"formRef",ref:vn,rules:f.value,model:w.value},{default:y(()=>[m(fn,{gutter:10},{default:y(()=>[m(C(k),{span:12},{default:y(()=>[m(C(j),{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",prop:"buyer_code"},{default:y(()=>[m(C(Ue),{style:{width:"100%"},placeholder:"\u8D2D\u4E70\u65B9\u516C\u53F8",modelValue:w.value.buyer_code,"onUpdate:modelValue":v[0]||(v[0]=A=>w.value.buyer_code=A),onChange:C(Nn),disabled:""},{default:y(()=>[(ne(!0),Ju(Qu,null,ku(X.companies,A=>(ne(),Me(C(zn),{label:A.company_name,value:A.company_license},null,8,["label","value"]))),256))]),_:1},8,["modelValue","onChange"])]),_:1}),m(qf,{detail:Sn.value},null,8,["detail"])]),_:1}),m(C(k),{span:12},{default:y(()=>[m(C(j),{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"seller_code"},{default:y(()=>[m(C(Yg),{style:{width:"100%"},"request-prop":"name",api:C(Zg),"response-val-prop":"registercode",placeholder:"\u9500\u552E\u65B9\u516C\u53F8\u62AC\u5934",value:w.value.seller_code,"onUpdate:value":v[1]||(v[1]=A=>w.value.seller_code=A),"response-label-prop":"name",onItemChange:C(Yn)},null,8,["api","value","onItemChange"])]),_:1}),m(qf,{detail:sn.value},null,8,["detail"])]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u5546\u54C1\u6765\u6E90",prop:"good_source"},{default:y(()=>[m(C(Ue),{onChange:ge,modelValue:w.value.good_source,"onUpdate:modelValue":v[2]||(v[2]=A=>w.value.good_source=A),placeholder:"\u5546\u54C1\u6765\u6E90",style:{width:"100%"}},{default:y(()=>[m(C(zn),{label:"\u91C7\u9500\u7ED3\u7B97",value:"1"}),m(C(zn),{label:"\u975E\u91C7\u9500\u7ED3\u7B97",value:"2"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u7EC4\u5408\u7C7B\u578B",prop:"is_combind"},{default:y(()=>[m(C(Ue),{style:{width:"100%"},modelValue:w.value.is_combind,"onUpdate:modelValue":v[3]||(v[3]=A=>w.value.is_combind=A),onChange:v[4]||(v[4]=A=>w.value.childArr=[])},{default:y(()=>[m(C(zn),{label:"\u975E\u7EC4\u5408\u5546\u54C1",value:"0"}),m(C(zn),{label:"\u7EC4\u5408\u5546\u54C1",value:"1"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u8BA2\u5355\u5546\u54C1\u7C7B\u578B",prop:"good_type"},{default:y(()=>[m(C(Ue),{modelValue:w.value.good_type,"onUpdate:modelValue":v[5]||(v[5]=A=>w.value.good_type=A),placeholder:"\u8BA2\u5355\u5546\u54C1\u7C7B\u578B",style:{width:"100%"},onChange:v[6]||(v[6]=A=>w.value.childArr=[])},{default:y(()=>[(ne(!0),Ju(Qu,null,ku(C(ui),A=>(ne(),Me(C(zn),{value:A.value,label:A.label},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u6210\u672C\u72B6\u6001",prop:"basic_status"},{default:y(()=>[m(C(Ue),{modelValue:w.value.basic_status,"onUpdate:modelValue":v[7]||(v[7]=A=>w.value.basic_status=A),placeholder:"\u6210\u672C\u72B6\u6001"},{default:y(()=>[m(C(zn),{label:"\u771F\u5B9E\u6210\u672C",value:"1"}),m(C(zn),{label:"\u9884\u4F30\u6210\u672C",value:"2"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:12},{default:y(()=>[m(C(j),{label:"\u53D1\u7968\u5546\u54C1\u540D\u79F0",prop:"inv_good_name"},{default:y(()=>[m(G,{modelValue:w.value.inv_good_name,"onUpdate:modelValue":v[8]||(v[8]=A=>w.value.inv_good_name=A),placeholder:"\u53D1\u7968\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:12},{default:y(()=>[m(C(j),{label:"\u8BA2\u5355\u5546\u54C1\u540D\u79F0",prop:"goodName"},{default:y(()=>[m(G,{modelValue:w.value.goodName,"onUpdate:modelValue":v[9]||(v[9]=A=>w.value.goodName=A),placeholder:"\u8BA2\u5355\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u5546\u54C1\u7F16\u53F7",prop:"skuCode"},{default:y(()=>[m(G,{placeholder:"\u5546\u54C1\u7F16\u53F7",modelValue:w.value.skuCode,"onUpdate:modelValue":v[10]||(v[10]=A=>w.value.skuCode=A),disabled:w.value.good_source=="2"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u5355\u4F4D",prop:"unit"},{default:y(()=>[m(G,{modelValue:w.value.unit,"onUpdate:modelValue":v[11]||(v[11]=A=>w.value.unit=A),placeholder:"\u5355\u4F4D"},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u89C4\u683C",prop:"spec"},{default:y(()=>[m(G,{modelValue:w.value.spec,"onUpdate:modelValue":v[12]||(v[12]=A=>w.value.spec=A),placeholder:"\u89C4\u683C"},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u91CD\u91CF",prop:"unit_weight"},{default:y(()=>[m(C(ju),{unit:"g",modelValue:w.value.unit_weight,"onUpdate:modelValue":v[13]||(v[13]=A=>w.value.unit_weight=A),placeholder:"\u91CD\u91CF",KeepDecimals:3},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u53D1\u7968\u7C7B\u578B",prop:"inv_type"},{default:y(()=>[m(C(Ue),{modelValue:w.value.inv_type,"onUpdate:modelValue":v[14]||(v[14]=A=>w.value.inv_type=A),placeholder:"\u53D1\u7968\u7C7B\u578B",style:{width:"100%"}},{default:y(()=>[m(C(zn),{label:"\u666E\u7968",value:"0"}),m(C(zn),{label:"\u4E13\u7968",value:"1"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u6210\u672C\u7A0E\u524D\u5355\u4EF7",prop:"subunit_price"},{default:y(()=>[m(C(ju),{unit:"\u5143",modelValue:w.value.subunit_price,"onUpdate:modelValue":v[15]||(v[15]=A=>w.value.subunit_price=A),placeholder:"\u6210\u672C\u7A0E\u524D\u5355\u4EF7",KeepDecimals:15},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u6210\u672C\u7A0E\u540E\u5355\u4EF7",prop:"unit_price"},{default:y(()=>[m(C(ju),{unit:"\u5143",modelValue:w.value.unit_price,"onUpdate:modelValue":v[16]||(v[16]=A=>w.value.unit_price=A),placeholder:"\u6210\u672C\u7A0E\u540E\u5355\u4EF7",KeepDecimals:15},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u5546\u54C1\u4EE3\u7801",prop:"good_code"},{default:y(()=>[m(G,{modelValue:w.value.good_code,"onUpdate:modelValue":v[17]||(v[17]=A=>w.value.good_code=A),placeholder:"\u5546\u54C1\u4EE3\u7801"},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:12},{default:y(()=>[m(C(j),{label:"\u8FDB\u9879\u7A0E\u76EE",prop:"cat_code"},{default:y(()=>[m(s0,{modelValue:w.value.cat_code,"onUpdate:modelValue":v[18]||(v[18]=A=>w.value.cat_code=A)},null,8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u8FDB\u9879\u7A0E\u7387",prop:"cat_tax"},{default:y(()=>[m(C(Ue),{modelValue:w.value.cat_tax,"onUpdate:modelValue":v[19]||(v[19]=A=>w.value.cat_tax=A),placeholder:"\u8FDB\u9879\u7A0E\u7387"},{default:y(()=>[(ne(!0),Ju(Qu,null,ku(C(jg),A=>(ne(),Me(C(zn),Xg({ref_for:!0},A),null,16))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),m(C(k),{span:6},{default:y(()=>[m(C(j),{label:"\u5206\u5149",prop:"spectral"},{default:y(()=>[m(G,{modelValue:w.value.spectral,"onUpdate:modelValue":v[20]||(v[20]=A=>w.value.spectral=A),placeholder:"\u5206\u5149",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),w.value.is_combind=="1"?(ne(),Me(fn,{key:0},{default:y(()=>[m(C(k),{span:24},{default:y(()=>[m(C(j),{label:"\u5B50\u5546\u54C1"},{default:y(()=>[m(br,{border:"",size:"small",data:w.value.childArr},{default:y(()=>[m(Xn,{label:"\u6BD4\u4F8B",prop:"child_num",width:"60px"}),m(Xn,{label:"\u5546\u54C1\u7F16\u53F7",prop:"skuCode"}),m(Xn,{label:"\u5546\u54C1\u7C7B\u578B",prop:"good_type"},{default:y(({row:A})=>[m(Ar,{size:"small"},{default:y(()=>{var ue;return[ri(Jg((ue=C(ui).find(Fr=>Fr.value==A.good_type))==null?void 0:ue.label),1)]}),_:2},1024)]),_:1}),m(Xn,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName"}),m(Xn,{width:"80px"},{header:y(()=>[ni("div",v0,[v[24]||(v[24]=ni("p",null,"\u64CD\u4F5C",-1)),m(C(wr),{link:"",size:"small",type:"primary",icon:C(ei)("add"),onClick:Rn},null,8,["icon"])])]),default:y(({$index:A})=>[m(C(Nf),{content:"\u5220\u9664",placement:"top"},{default:y(()=>[m(C(wr),{link:"",size:"small",type:"danger",icon:C(ei)("delete"),onClick:ue=>w.value.childArr.splice(A,1)},null,8,["icon","onClick"])]),_:2},1024),m(C(Nf),{content:"\u7F16\u8F91",placement:"top"},{default:y(()=>[m(C(wr),{link:"",size:"small",type:"primary",icon:C(ei)("edits"),onClick:ue=>ln(A)},null,8,["icon","onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),_:1})]),_:1})]),_:1})):Kf("v-if",!0),ni("div",m0,[m(C(wr),{type:"primary",onClick:cn},{default:y(()=>v[25]||(v[25]=[ri("\u4FDD\u5B58")])),_:1})]),m(_0,{onSubmit:Zn,visible:X.visible,"onUpdate:visible":v[21]||(v[21]=A=>X.visible=A),otherSearchParameter:V.value},null,8,["visible","otherSearchParameter"]),m(a0,{visible:X.editVisible,"onUpdate:visible":v[22]||(v[22]=A=>X.editVisible=A),index:X.index,data:X.data,onSubmit:v[23]||(v[23]=(A,ue)=>w.value.childArr[A]={...ue})},null,8,["visible","index","data"])]),_:1},8,["rules","model"])),[[yr,C(te).loading]])}}});var R0=$f(C0,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/productManager/components/BaseForm.vue"]]);export{R0 as default};