iv-npm 1.1.13 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,2714 @@
1
- import{defineComponent as e,ref as t,resolveComponent as n,openBlock as r,createBlock as o,withCtx as a,renderSlot as i,createVNode as u,onMounted as l,onBeforeUnmount as c,createElementBlock as s,Fragment as p,createCommentVNode as d,createElementVNode as f,normalizeStyle as v,renderList as h,normalizeClass as g,createTextVNode as m,toDisplayString as y,unref as A,pushScopeId as w,popScopeId as b,createStaticVNode as x,reactive as E,watch as k,computed as C,watchEffect as Q,isRef as I,onBeforeMount as S,withKeys as B,withModifiers as N}from"vue";var D=e({__name:"IVMrpModal",props:{show:{type:Boolean,default:!1},removePadding:{type:Boolean,default:!0}},emits:["update:show","cancelHandle"],setup:function(e,l){var c=l.emit,s=t(e.show);function p(){c("update:show",!1),c("cancelHandle",!1)}return function(t,l){var c=n("close-circle-outlined"),d=n("a-modal");return r(),o(d,{wrapClassName:[e.removePadding?"":"not-padding","module-class modal-components"],visible:s.value,"onUpdate:visible":l[0]||(l[0]=function(e){return s.value=e}),onCancel:p,destroyOnClose:"",footer:null},{title:a((function(){return[i(t.$slots,"title")]})),closeIcon:a((function(){return[u(c,{class:"text-[#006ab2] text-[30px]"})]})),default:a((function(){return[i(t.$slots,"body")]})),_:3},8,["wrapClassName","visible"])}}});function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(){
2
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
- j=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return C()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=w(i,n);if(u){if(u===s)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var s={};function p(){}function d(){}function f(){}var v={};u(v,o,(function(){return this}));var h=Object.getPrototypeOf,g=h&&h(h(k([])));g&&g!==t&&n.call(g,o)&&(v=g);var m=f.prototype=p.prototype=Object.create(v);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,a,i,u){var l=c(e[o],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):t.resolve(p).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(l.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=f,u(m,"constructor",f),u(f,"constructor",d),d.displayName=u(f,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},y(A.prototype),u(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new A(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(m),u(m,i,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function O(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){O(a,r,o,i,u,"next",e)}function u(e){O(a,r,o,i,u,"throw",e)}i(void 0)}))}}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}D.__file="src/function-ui/component/IVMrpModal.vue";var U=function(e){return w("data-v-2dfcb17e"),e=e(),b(),e},J={key:0,id:"top"},V={class:"flex items-center justify-center"},K={key:0,style:{color:"#ff0066"}},z={key:0},H=U((function(){return f("div",{class:"h-2 flex items-center"},[f("span",{class:"bg-[#d9d9d9] h-[1px] w-full"})],-1)})),F={class:"flex items-center justify-between h-1/2"},T={key:0,style:{color:"#ff0066"}},R={class:"mrpTable"},G={class:"relative w-full mb-[24px]",style:{"table-layout":"fixed"}},Y={class:"flex items-center justify-center"},Z={key:0,style:{color:"#ff0066"}},X={key:1},W=U((function(){return f("div",{class:"h-2 flex items-center"},[f("span",{class:"bg-[#d9d9d9] h-[1px] w-full"})],-1)})),$={class:"flex items-center justify-between h-1/2"},ee={key:0,style:{color:"#ff0066"}},te={key:0},ne={key:1},re={key:2,class:"flex justify-center items-center relative"},oe={key:1,class:"table-footer"},ae=[x('<div class="centent" data-v-2dfcb17e><svg class="ant-empty-img-simple" width="64" height="41" viewBox="0 0 64 41" data-v-2dfcb17e><g transform="translate(0 1)" fill="none" fill-rule="evenodd" data-v-2dfcb17e><ellipse class="ant-empty-img-simple-ellipse" fill="#F5F5F5" cx="32" cy="33" rx="32" ry="7" data-v-2dfcb17e></ellipse><g class="ant-empty-img-simple-g" fill-rule="nonzero" stroke="#D9D9D9" data-v-2dfcb17e><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" data-v-2dfcb17e></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#FAFAFA" class="ant-empty-img-simple-path" data-v-2dfcb17e></path></g></g></svg> 没有数据 </div>',1)],ie=e({__name:"IVMrpTable",props:{data:{type:null,required:!0},contractExecDocList:{type:Array,required:!0},currentPages:{type:Number,required:!0},totalPages:{type:Number,required:!0},formData:{type:Object,required:!0},col:{type:Boolean,required:!1},setHeight:{type:Number,required:!1}},emits:["onPageChange","onShowSizeChange","upth"],setup:function(e,a){var w=a.emit,b=e;localStorage.setItem("th",b.data.map((function(e){return e.title})).join(","));var x=function(e,t){w("onPageChange",e,t)},E=function(e,t){w("onShowSizeChange",e,t)},k=t(0),C=t(0),Q=!1,I=function(e){if(!Q){Q=!0;var t=e.target.scrollTop,n=document.querySelector(".mrpTable");setTimeout((function(){Q=!1}),15),t>(null==n?void 0:n.offsetTop)-48&&(null==e?void 0:e.target)!=document.querySelector(".rc-virtual-list-holder")?k.value=n.offsetWidth:k.value=0}},S=t(0),B=t(!1),N=function(e){B.value=!0,S.value=0==e?0:1==e?40:20},D=function(e){var t=b.data.map((function(t){return L(L({},t),{},{show:e.includes(t.title)})}));w("upth",t)};return l((function(){var e=document.querySelector(".mrpTable");C.value=e.offsetWidth,window.addEventListener("scroll",I,!0)})),c((function(){window.removeEventListener("scroll",I,!0)})),function(t,a){var l=n("a-image"),c=n("a-pagination");return r(),s(p,null,[d(" 主体 "),k.value?(r(),s("div",J,[f("table",{class:"relative w-full mb-[24px]",style:v([{"table-layout":"fixed"},{width:k.value?k.value+"px":""}])},[f("tr",null,[(r(!0),s(p,null,h(e.data,(function(t,n){return r(),s(p,null,[t.show?(r(),s("th",{key:n,class:g("table-cell bg-[#97D2FD]"),style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":"",width:t.w?t.w:""})},[f("div",V,[m(y("操作"==t.title?"":t.title)+" ",1),t.unit?(r(),s("span",K,y(t.unit),1)):d("v-if",!0)]),t.header?(r(),s("div",z,[H,f("div",F,[(r(!0),s(p,null,h(t.header,(function(e,t){return r(),s("div",{key:t,style:v({width:e.w?e.w:""})},[m(y("操作"==e.title?"":e.title)+" ",1),e.unit?(r(),s("span",T,y(e.unit),1)):d("v-if",!0)],4)})),128))])])):d("v-if",!0)],4)):d("v-if",!0)],64)})),256))])],4),u(A(he),{setHeight:e.setHeight,onDensity:N,onChangeS:D},null,8,["setHeight"])])):d("v-if",!0),f("div",R,[f("table",G,[f("tr",null,[(r(!0),s(p,null,h(e.data,(function(n,o){return r(),s(p,{key:o},[n.show?(r(),s("th",{key:0,class:g("table-cell bg-[#97D2FD]"),style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":"",width:n.w?n.w:""})},["select"==n.key?i(t.$slots,"selectAll",{key:0}):d("v-if",!0),f("div",Y,[m(y("select"==n.key||"操作"==n.title?"":n.title)+" ",1),n.unit?(r(),s("span",Z,y(n.unit),1)):d("v-if",!0),d(' <span class="flex flex-col"\r\n ><caret-up-filled /><caret-down-filled\r\n /></span> ')]),n.header?(r(),s("div",X,[W,f("div",$,[(r(!0),s(p,null,h(n.header,(function(e,t){return r(),s("div",{key:t,style:v({width:e.w?e.w:""})},[m(y("操作"==e.title?"":e.title)+" ",1),e.unit?(r(),s("span",ee,y(e.unit),1)):d("v-if",!0)],4)})),128))])])):d("v-if",!0)],4)):d("v-if",!0)],64)})),128))]),0!==b.contractExecDocList.length?(r(!0),s(p,{key:0},h(b.contractExecDocList,(function(n,a){return r(),s("tr",{key:n.id},[(r(!0),s(p,null,h(e.data,(function(u,c){return r(),s(p,{key:c},[u.show?(r(),s("td",{key:0,class:"table-cell",style:v({height:e.setHeight&&!B.value?e.setHeight+"px":S.value?S.value+"px":""})},[d(" 序号 "),"index"==u.key?(r(),s("div",te,y(b.currentPages-1==0?a+1:10*(b.currentPages-1)+a+1),1)):d("v-if",!0),d(" 常规 "),"index"==u.key||"pictures"==u.key||"buttonSlot"==u.key||"select"==u.key||u.custom?d("v-if",!0):(r(),s("div",ne,y(n[u.key]),1)),d(" 图片数据特殊处理 "),"pictures"==u.key?(r(),s("div",re,[d(' <img\r\n v-for="(e1, i1) in e.pictures"\r\n :key="i1"\r\n :src="e1"\r\n width="30"\r\n height="32"\r\n class="mx-4"\r\n /> '),(r(!0),s(p,null,h(n.pictures,(function(e,t){return r(),o(l,{key:t,src:e,width:30,height:32,fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},null,8,["src"])})),128))])):d("v-if",!0),d(" 可点击的td slot"),"clickSlot"==u.key?i(t.$slots,"clickSlot",{key:3,id:n.id,item:n}):d("v-if",!0),"select"==u.key?i(t.$slots,"select",{key:4,index:a,item:n}):d("v-if",!0),d(" 按钮使用slot"),"buttonSlot"==u.key?i(t.$slots,"buttonSlot",{key:5,id:n.id,item:n}):d("v-if",!0),d(" 按钮使用slot"),u.custom?i(t.$slots,u.key,{key:6,id:n.id,item:n}):d("v-if",!0)],4)):d("v-if",!0)],64)})),128))])})),128)):(r(),s("div",oe,ae))]),u(A(he),{setHeight:e.setHeight,onDensity:N,onChangeS:D},null,8,["setHeight"])]),d(" 分页 "),e.totalPages?(r(),s("div",{key:1,class:"flex justify-center h-full mt-4 mb-20 pagination",style:v({width:C.value?C.value+"px":""})},[u(c,{current:b.currentPages,"onUpdate:current":a[0]||(a[0]=function(e){return b.currentPages=e}),"show-quick-jumper":"","show-size-changer":"",pageSizeOptions:["10","20","30","50"],total:b.totalPages,onChange:x,onShowSizeChange:E},null,8,["current","total"])],4)):d("v-if",!0)],64)}}});ie.__scopeId="data-v-2dfcb17e",ie.__file="src/function-ui/component/IVMrpTable.vue";var ue=function(e){return w("data-v-4b5cf48c"),e=e(),b(),e},le={class:"tableControl"},ce=ue((function(){return f("div",null,"密度",-1)})),se=m(" 默认 "),pe=m(" 中等 "),de=m(" 紧凑 "),fe=ue((function(){return f("div",null,"列设置",-1)})),ve=m(" 全选 "),he=e({__name:"IVMrpTableControl",props:{setHeight:{type:Number,required:!1}},emits:["density","ChangeS"],setup:function(e,o){var i,l,c=o.emit,p=e,d=t(!1),v=t(!1),h=t(!1),g=t(!1),m=E({collapsed:!1,selectedKeys:["1"]}),y=function(e){d.value=!1,v.value=e},w=function(e){d.value=e,v.value=!1},b=function(e){h.value=e,g.value=!1},x=function(e){c("density",e.key)};m.selectedKeys[0]=p.setHeight?40==p.setHeight?"1":20==p.setHeight?"2":"0":"0";var C=null===(i=localStorage.getItem("th"))||void 0===i?void 0:i.split(","),Q=E({indeterminate:!1,checkAll:!0,checkedList:null===(l=localStorage.getItem("th"))||void 0===l?void 0:l.split(",")}),I=function(e){Object.assign(Q,{checkedList:e.target.checked?C:[],indeterminate:!1}),c("ChangeS",Q.checkedList)},S=function(e){var t=e.length,n=C.length;Object.assign(Q,{checkAll:t===n,indeterminate:t>0&&t<n}),c("ChangeS",e)};return k((function(){return Q.checkedList}),(function(e){Q.indeterminate=!!e.length&&e.length<C.length,Q.checkAll=e.length===C.length})),function(e,t){var o=n("a-menu-item"),i=n("a-menu"),l=n("column-height-outlined"),c=n("a-popover"),p=n("a-checkbox"),g=n("a-divider"),E=n("a-checkbox-group"),k=n("setting-outlined");return r(),s("div",le,[u(c,{trigger:"hover",visible:v.value,onVisibleChange:y},{content:a((function(){return[ce]})),default:a((function(){return[u(c,{trigger:"click",placement:"left","arrow-point-at-center":"",visible:d.value,onVisibleChange:w,getPopupContainer:function(e){return e.parentNode}},{content:a((function(){return[u(i,{selectedKeys:m.selectedKeys,"onUpdate:selectedKeys":t[0]||(t[0]=function(e){return m.selectedKeys=e}),onClick:x},{default:a((function(){return[u(o,{key:"0"},{default:a((function(){return[se]})),_:1}),u(o,{key:"1"},{default:a((function(){return[pe]})),_:1}),u(o,{key:"2"},{default:a((function(){return[de]})),_:1})]})),_:1},8,["selectedKeys"])]})),default:a((function(){return[u(l,{style:{fontSize:"20px"},class:"cursor-pointer"})]})),_:1},8,["visible","getPopupContainer"])]})),_:1},8,["visible"]),u(c,{trigger:"hover"},{content:a((function(){return[fe]})),default:a((function(){return[u(c,{trigger:"click",placement:"left",visible:h.value,onVisibleChange:b,getPopupContainer:function(e){return e.parentNode}},{content:a((function(){return[f("div",null,[u(p,{checked:Q.checkAll,"onUpdate:checked":t[1]||(t[1]=function(e){return Q.checkAll=e}),indeterminate:Q.indeterminate,onChange:I},{default:a((function(){return[ve]})),_:1},8,["checked","indeterminate"])]),u(g),u(E,{value:Q.checkedList,"onUpdate:value":t[2]||(t[2]=function(e){return Q.checkedList=e}),options:A(C),onChange:S},null,8,["value","options"])]})),default:a((function(){return[u(k,{class:"setting cursor-pointer",style:{fontSize:"20px"}})]})),_:1},8,["visible","getPopupContainer"])]})),_:1})])}}});function ge(e,t){var n=t.filter((function(t){return t.parentId==e.id}));if(n.length)return e.children=n,e.children.forEach((function(e){ge(e,t)})),e}function me(e){var t=e.filter((function(e){return null==e.parentId}));return t.forEach((function(t){return ge(t,e)})),t}he.__scopeId="data-v-4b5cf48c",he.__file="src/function-ui/component/IVMrpTableControl.vue";var ye=Object.assign;function Ae(e,t){return t.label&&t.label.toLowerCase().indexOf(e.toLowerCase())>=0}var we="https://basis.nacho.cn",be={headers:{"Content-Type":"application/json;charset=UTF-8","Accept-Language":"zh-Hans",authorization:localStorage.getItem("token")?"Bearer "+localStorage.getItem("token"):null},cache:"no-cache",credentials:"include",responseType:"JSON",mode:"cors"},xe={getIVMrpOrgDropdown:{url:"/api/identity/users/allOrganizationByUser",option:L({method:"GET"},be)},getIVMrpProdBaseDropdown:{url:"/api/basis-management/production-base/all",option:L({method:"GET"},be)},getIVMrpLineDropdown:{url:"/api/basis-management/line/all",option:L({method:"GET"},be)},getIVMrpSetofbookDropdown:{url:"/api/basis-management/setOfBook/all",option:L({method:"GET"},be)},getIVMrpPostDropdown:{url:"/api/identity/users/allPosition",option:L({method:"GET"},be)},getIVMrpUserSelector:{url:"/api/identity/users/userList",option:L({method:"GET"},be)}},Ee=function(e){return new Promise((function(t,n){e.then((function(e){e.json().then((function(e){return t(e)})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}))},ke=function(e,t,n){if(null===(r=n)||"object"!==M(r))return e+t;var r;if(0===Object.keys(n).length)return e+t;var o=[];for(var a in n)o.push("".concat(a,"=").concat(n[a]));return e+t+"?"+o.join("&")},Ce=f("div",{class:"text-[#0000006D] text-[14px]"},"所属组织",-1),Qe=e({__name:"IVMrpOrgDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},replaceFields:{type:null,required:!1,default:function(){return{children:"children",label:"displayName",key:"id",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpOrgDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpOrgDropdown.option)));case 3:r=e.sent,o=r.items,s.value=me(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:ye(null!==(t=c.params)&&void 0!==t?t:{},{type:1}),data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-tree-select"),c=n("a-form-item");return r(),o(c,{name:"organizationId",rules:[{required:!0,message:"请选择所属组织"}]},{label:a((function(){return[Ce]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),"tree-data":s.value,getPopupContainer:function(e){return e.parentNode},placeholder:"请选择",showArrow:"",showSearch:"","filter-option":A(Ae),treeDefaultExpandAll:"",style:{width:"300px"},onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),replaceFields:e.replaceFields},null,8,["value","tree-data","getPopupContainer","filter-option","replaceFields"])]})),_:1})}}});Qe.__file="src/business-ui/component/IVMrpOrgDropdown.vue";var Ie=f("div",{class:"text-[#0000006D] text-[14px]"},"所属基地",-1),Se=e({__name:"IVMrpProdBaseDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"name",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpProdBaseDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpProdBaseDropdown.option)));case 3:s.value=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"organizationIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属基地"}]},{label:a((function(){return[Ie]})),default:a((function(){return[u(l,{getPopupContainer:function(e){return e.parentNode},value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),mode:"multiple",style:{width:"100%"},placeholder:"请选择",options:s.value,fieldNames:e.fieldNames,showSearch:"",onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),"filter-option":A(Ae)},null,8,["getPopupContainer","value","options","fieldNames","filter-option"])]})),_:1})}}});Se.__file="src/business-ui/component/IVMrpProdBaseDropdown.vue";var Be=f("div",{class:"text-[#0000006D] text-[14px]"},"所属条线",-1),Ne=e({__name:"IVMrpLineDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"displayName",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpLineDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpLineDropdown.option)));case 3:r=e.sent,o=r.items,s.value=o;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"lineIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属条线"}]},{label:a((function(){return[Be]})),default:a((function(){return[u(l,{getPopupContainer:function(e){return e.parentNode},value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),mode:"multiple",style:{width:"100%"},placeholder:"请选择",options:s.value,fieldNames:e.fieldNames,showSearch:"",onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),"filter-option":A(Ae)},null,8,["getPopupContainer","value","options","fieldNames","filter-option"])]})),_:1})}}});Ne.__file="src/business-ui/component/IVMrpLineDropdown.vue";var De=f("div",{class:"text-[#0000006D] text-[14px]"},"所属账套",-1),Pe=e({__name:"IVMrpSetofbookDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},replaceFields:{type:null,required:!1,default:function(){return{children:"children",label:"name",key:"id",value:"id"}}},multiple:{type:Boolean,required:!1,default:!0}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpSetofbookDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpSetofbookDropdown.option)));case 3:r=e.sent,o=r.items,s.value=me(o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:ye(null!==(t=c.params)&&void 0!==t?t:{},{type:1}),data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-tree-select"),c=n("a-form-item");return r(),o(c,{name:"setOfBookIds","wrapper-col":{span:8},rules:[{required:!0,message:"请选择所属账套"}]},{label:a((function(){return[De]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),"tree-data":s.value,getPopupContainer:function(e){return e.parentNode},placeholder:"请选择",showArrow:"",showSearch:"","filter-option":A(Ae),multiple:e.multiple,treeDefaultExpandAll:"",style:{width:"300px"},onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),replaceFields:e.replaceFields},null,8,["value","tree-data","getPopupContainer","filter-option","multiple","replaceFields"])]})),_:1})}}});Pe.__file="src/business-ui/component/IVMrpSetofbookDropdown.vue";var Le=f("div",{class:"text-[#0000006D] text-[14px]"},"岗位",-1),je=e({__name:"IVMrpPostDropdown",props:{value:{type:null,required:!0},params:{type:Object,required:!1},data:{type:Object,required:!1},fieldNames:{type:null,required:!1,default:function(){return{label:"name",value:"id"}}}},emits:["update:value","change"],setup:function(e,i){var l=i.emit,c=e,s=t(),p=function(){var e=_(j().mark((function e(){var t,n,r,o,a=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpPostDropdown.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpPostDropdown.option)));case 3:r=e.sent,o=r.items,s.value=o;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=C({get:function(){return c.value},set:function(e){l("update:value",e)}});return Q(_(j().mark((function e(){var t,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({params:null!==(t=c.params)&&void 0!==t?t:null,data:null!==(n=c.data)&&void 0!==n?n:null});case 1:case"end":return e.stop()}}),e)})))),function(t,i){var l=n("a-select"),c=n("a-form-item");return r(),o(c,{name:"positionId",rules:[{required:!0,message:"请选择岗位"}]},{label:a((function(){return[Le]})),default:a((function(){return[u(l,{value:A(d),"onUpdate:value":i[0]||(i[0]=function(e){return I(d)?d.value=e:null}),getPopupContainer:function(e){return e.parentNode},allowClear:"",style:{width:"300px"},placeholder:"请选择",showSearch:"",showArrow:"",options:s.value,"filter-option":A(Ae),onChange:i[1]||(i[1]=function(e){return t.$emit("change",e)}),fieldNames:e.fieldNames},null,8,["value","getPopupContainer","options","filter-option","fieldNames"])]})),_:1})}}});je.__file="src/business-ui/component/IVMrpPostDropdown.vue";var Me={class:"relative mt-[8px] w-[30px] h-[23px]"},Oe=[f("svg",{"xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"23px",height:"23px",class:"absolute"},[f("g",{transform:"matrix(1 0 0 1 -256 -275 )"},[f("path",{d:"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z ","fill-rule":"nonzero",fill:"#bd9e55",stroke:"none",transform:"matrix(1 0 0 1 256 275 )"})])],-1),f("svg",{"xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"23px",height:"23px",class:"absolute left-[7px] bottom-[7px]"},[f("g",{transform:"matrix(1 0 0 1 -263 -268 )"},[f("path",{d:"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z ","fill-rule":"nonzero",fill:"#bd9e55",stroke:"none",transform:"matrix(1 0 0 1 263 268 )"})])],-1)];var _e={render:function(e,t){return r(),s("div",Me,Oe)},__file:"src/business-ui/component/icon/SelectorIcon.vue"},qe={class:"flex items-center h-[60px] pl-[40px] bg-[#97D2FD]"},Ue=function(e){return w("data-v-15a6b582"),e=e(),b(),e}((function(){return f("span",{class:"text-xl text-[#bd9e55] pl-2"},"选择人员",-1)})),Je={class:"px-[150px]"},Ve={class:"mx-10"},Ke={class:"flex items-center my-4 justify-center"},ze=m(" 搜索 "),He={class:"mt-10"},Fe={class:"flex justify-between mb-2"},Te={class:"text-[#999999]"},Re=m(" 共有 "),Ge={class:"text-[#BD9E55] text-[16px]"},Ye=m(" 个记录满足条件,当前第 "),Ze={class:"text-[#BD9E55] text-[16px]"},Xe=m(" 页,跳转到第 "),We={class:"text-[#BD9E55] text-[16px]"},$e=m(" 页 "),et={class:"contentList"},tt=["onClick"],nt={key:0},rt={class:"flex items-center justify-around text-[#006AB2] text-[13px]"},ot=["onClick"],at=e({__name:"IVMrpUserSelector",props:{show:{type:Boolean,required:!0,default:!1}},emits:["update:show","getItem"],setup:function(e,i){var l=i.emit,c=e;console.log(c.show);var v=E({name:null,phoneNumber:null,workNo:null,positionId:null,organizationId:null,lineId:null,sorting:null,skipCount:0,maxResultCount:10}),g=t(),w=function(){var e=_(j().mark((function e(){var t,n,r,o,a,i=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,Ee(fetch(ke(we,xe.getIVMrpUserSelector.url,t.params),ye({data:null!==(n=t.data)&&void 0!==n?n:null},xe.getIVMrpUserSelector.option)));case 3:r=e.sent,o=r.items,a=r.totalCount,g.value=o,q.value=a,M.value=Math.ceil(q.value/v.maxResultCount);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=t([{title:"序号",w:54/1499*100+"%",key:"index",show:!0},{title:"人员编号",w:120/1499*100+"%",key:"workNo",show:!0},{title:"所属部门",w:200/1499*100+"%",key:"organizationName",show:!0},{title:"所属条线",w:200/1499*100+"%",key:"lineNames",show:!0,custom:!0},{title:"岗位",w:200/1499*100+"%",key:"positionName",show:!0},{title:"姓名",w:200/1499*100+"%",key:"name",show:!0,custom:!0},{title:"手机号码",w:130/1499*100+"%",key:"phoneNumber",show:!0},{title:"",w:80/1333*100+"%",key:"buttonSlot",show:!0}]),x=function(e){b.value=e};function k(e){return Q.apply(this,arguments)}function Q(){return(Q=_(j().mark((function e(t){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l("getItem",JSON.stringify(t)),K.value=!1;case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var P=t(1),L=t(1),M=t(0),O=t(1),q=t(0);function U(e,t){L.value=e,O.value=e,P.value=e,v.skipCount=(e-1)*t,v.maxResultCount=t,w({params:v})}function J(e,t){L.value=e,O.value=e,v.maxResultCount=t,w({params:v})}function V(){v.skipCount=0,P.value=1,L.value=1,M.value=0,O.value=1,w({params:v})}S((function(){w({params:v})}));var K=C({get:function(){return c.show},set:function(e){l("update:show",e)}});return function(e,t){var i=n("a-input"),l=n("a-button"),c=n("DownOutlined"),w=n("a-menu-item"),E=n("a-menu"),C=n("a-dropdown");return r(),o(D,{show:A(K),"onUpdate:show":t[5]||(t[5]=function(e){return I(K)?K.value=e:null}),"remove-padding":!1},{title:a((function(){return[f("div",qe,[u(_e),Ue])]})),body:a((function(){return[f("div",Je,[d(" 搜索 "),f("div",Ve,[f("div",Ke,[u(A(Qe),{value:v.organizationId,"onUpdate:value":t[0]||(t[0]=function(e){return v.organizationId=e}),onChange:V},null,8,["value"]),u(A(Ne),{value:v.lineId,"onUpdate:value":t[1]||(t[1]=function(e){return v.lineId=e}),onChange:V},null,8,["value"]),u(A(je),{value:v.positionId,"onUpdate:value":t[2]||(t[2]=function(e){return v.positionId=e}),onChange:V},null,8,["value"]),u(i,{value:v.name,"onUpdate:value":t[3]||(t[3]=function(e){return v.name=e}),style:{width:"300px","margin-right":"15px"},class:"mr-4",placeholder:"请输入员工编号,姓名,或手机号码",onKeyup:B(V,["enter"])},null,8,["value","onKeyup"]),u(l,{style:{padding:"4px 10px","border-radius":"4px",background:"#006ab2","margin-right":"15px",color:"#fff"},onClick:V},{default:a((function(){return[ze]})),_:1})])]),d(" 主体 "),f("div",He,[d(" 分页 "),f("div",Fe,[f("div",Te,[Re,f("span",Ge,y(q.value),1),Ye,f("span",Ze,y(L.value),1),Xe,u(C,{trigger:["click"]},{overlay:a((function(){return[u(E,{getPopupContainer:function(e){return e.parentNode},class:"max-h-40 overflow-y-auto scrollbar"},{default:a((function(){return[(r(!0),s(p,null,h(M.value,(function(e){return r(),o(w,{key:e,onClick:function(t){return n=e,O.value=n,P.value=n,void U(n,v.maxResultCount);var n}},{default:a((function(){return[m(y(e),1)]})),_:2},1032,["onClick"])})),128))]})),_:1},8,["getPopupContainer"])]})),default:a((function(){return[f("a",{class:"pl-2 ant-dropdown-link border-b border-[#BD9E55]",onClick:t[4]||(t[4]=N((function(){}),["prevent"]))},[f("span",We,y(O.value),1),u(c,{class:"align-middle ml-1 mb-[4px]",style:{"font-size":"16px"}})])]})),_:1}),$e])]),f("div",et,[u(A(ie),{data:A(b),contractExecDocList:g.value,currentPages:P.value,totalPages:q.value,formData:v,setHeight:40,onOnPageChange:U,onOnShowSizeChange:J,onUpth:x},{name:a((function(e){return[f("span",{class:"text-[#006AB2] cursor-pointer",onClick:function(t){return k(e.item)}},y(e.item.name),9,tt)]})),lineNames:a((function(e){return[(r(!0),s(p,null,h(e.item.lineNames,(function(t,n){return r(),s("span",null,[m(y(t)+" ",1),n!==e.item.lineNames.length-1?(r(),s("span",nt,",")):d("v-if",!0)])})),256))]})),buttonSlot:a((function(e){return[f("div",rt,[f("span",{class:"cursor-pointer",onClick:function(t){return k(e.item)}},"选择",8,ot)])]})),_:1},8,["data","contractExecDocList","currentPages","totalPages","formData"])])])])]})),_:1},8,["show"])}}});at.__scopeId="data-v-15a6b582",at.__file="src/business-ui/component/IVMrpUserSelector.vue";var it=[D,Qe,Se,Ne,Pe,je,ie,he,at];it.forEach((function(e){e.install=function(t){t.component(e.name,e)}}));var ut={install:function(e){it.forEach((function(t){e.component(t.name,t)}))}};export{Ne as IVMrpLineDropdown,D as IVMrpModal,Qe as IVMrpOrgDropdown,je as IVMrpPostDropdown,Se as IVMrpProdBaseDropdown,Pe as IVMrpSetofbookDropdown,ie as IVMrpTable,he as IVMrpTableControl,at as IVMrpUserSelector,ut as default};
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, onMounted, onBeforeUnmount, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, normalizeClass, createTextVNode, toDisplayString, unref, pushScopeId, popScopeId, createStaticVNode, reactive, watch, computed, watchEffect, isRef, onBeforeMount, withKeys, withModifiers } from 'vue';
2
+
3
+ /**
4
+ * show:Boolean 是否显示弹窗 v-model:show="Visible"
5
+ *
6
+ * remove-padding:Boolean 是否需要弹窗内边距(defult:true)
7
+ * 内边距 padding: 100px 0 100px 100px;
8
+ *
9
+ * @cancelHandle:Function 关闭时触发事件
10
+ *
11
+ * v-slot:title 弹窗头部
12
+ *
13
+ * v-slot:body 弹窗主体
14
+ *
15
+ * */
16
+
17
+ var script$9 = /*#__PURE__*/defineComponent({
18
+ __name: 'IVMrpModal',
19
+ props: {
20
+ show: {
21
+ type: Boolean,
22
+ "default": false
23
+ },
24
+ removePadding: {
25
+ type: Boolean,
26
+ "default": true
27
+ }
28
+ },
29
+ emits: ["update:show", "cancelHandle"],
30
+ setup: function setup(__props, _ref) {
31
+ var emit = _ref.emit;
32
+ var props = __props;
33
+ var isShow = ref(props.show);
34
+
35
+ function cancel() {
36
+ emit("update:show", false);
37
+ emit("cancelHandle", false);
38
+ }
39
+
40
+ return function (_ctx, _cache) {
41
+ var _component_close_circle_outlined = resolveComponent("close-circle-outlined");
42
+
43
+ var _component_a_modal = resolveComponent("a-modal");
44
+
45
+ return openBlock(), createBlock(_component_a_modal, {
46
+ wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
47
+ visible: isShow.value,
48
+ "onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
49
+ return isShow.value = $event;
50
+ }),
51
+ onCancel: cancel,
52
+ destroyOnClose: "",
53
+ footer: null
54
+ }, {
55
+ title: withCtx(function () {
56
+ return [renderSlot(_ctx.$slots, "title")];
57
+ }),
58
+ closeIcon: withCtx(function () {
59
+ return [createVNode(_component_close_circle_outlined, {
60
+ "class": "text-[#006ab2] text-[30px]"
61
+ })];
62
+ }),
63
+ "default": withCtx(function () {
64
+ return [renderSlot(_ctx.$slots, "body")];
65
+ }),
66
+ _: 3
67
+ /* FORWARDED */
68
+
69
+ }, 8
70
+ /* PROPS */
71
+ , ["wrapClassName", "visible"]);
72
+ };
73
+ }
74
+ });
75
+
76
+ script$9.__file = "src/function-ui/component/IVMrpModal.vue";
77
+
78
+ function ownKeys(object, enumerableOnly) {
79
+ var keys = Object.keys(object);
80
+
81
+ if (Object.getOwnPropertySymbols) {
82
+ var symbols = Object.getOwnPropertySymbols(object);
83
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
84
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
85
+ })), keys.push.apply(keys, symbols);
86
+ }
87
+
88
+ return keys;
89
+ }
90
+
91
+ function _objectSpread2(target) {
92
+ for (var i = 1; i < arguments.length; i++) {
93
+ var source = null != arguments[i] ? arguments[i] : {};
94
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
95
+ _defineProperty(target, key, source[key]);
96
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
97
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
98
+ });
99
+ }
100
+
101
+ return target;
102
+ }
103
+
104
+ function _regeneratorRuntime() {
105
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
106
+
107
+ _regeneratorRuntime = function () {
108
+ return exports;
109
+ };
110
+
111
+ var exports = {},
112
+ Op = Object.prototype,
113
+ hasOwn = Op.hasOwnProperty,
114
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
115
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
116
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
117
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
118
+
119
+ function define(obj, key, value) {
120
+ return Object.defineProperty(obj, key, {
121
+ value: value,
122
+ enumerable: !0,
123
+ configurable: !0,
124
+ writable: !0
125
+ }), obj[key];
126
+ }
127
+
128
+ try {
129
+ define({}, "");
130
+ } catch (err) {
131
+ define = function (obj, key, value) {
132
+ return obj[key] = value;
133
+ };
134
+ }
135
+
136
+ function wrap(innerFn, outerFn, self, tryLocsList) {
137
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
138
+ generator = Object.create(protoGenerator.prototype),
139
+ context = new Context(tryLocsList || []);
140
+ return generator._invoke = function (innerFn, self, context) {
141
+ var state = "suspendedStart";
142
+ return function (method, arg) {
143
+ if ("executing" === state) throw new Error("Generator is already running");
144
+
145
+ if ("completed" === state) {
146
+ if ("throw" === method) throw arg;
147
+ return doneResult();
148
+ }
149
+
150
+ for (context.method = method, context.arg = arg;;) {
151
+ var delegate = context.delegate;
152
+
153
+ if (delegate) {
154
+ var delegateResult = maybeInvokeDelegate(delegate, context);
155
+
156
+ if (delegateResult) {
157
+ if (delegateResult === ContinueSentinel) continue;
158
+ return delegateResult;
159
+ }
160
+ }
161
+
162
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
163
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
164
+ context.dispatchException(context.arg);
165
+ } else "return" === context.method && context.abrupt("return", context.arg);
166
+ state = "executing";
167
+ var record = tryCatch(innerFn, self, context);
168
+
169
+ if ("normal" === record.type) {
170
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
171
+ return {
172
+ value: record.arg,
173
+ done: context.done
174
+ };
175
+ }
176
+
177
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
178
+ }
179
+ };
180
+ }(innerFn, self, context), generator;
181
+ }
182
+
183
+ function tryCatch(fn, obj, arg) {
184
+ try {
185
+ return {
186
+ type: "normal",
187
+ arg: fn.call(obj, arg)
188
+ };
189
+ } catch (err) {
190
+ return {
191
+ type: "throw",
192
+ arg: err
193
+ };
194
+ }
195
+ }
196
+
197
+ exports.wrap = wrap;
198
+ var ContinueSentinel = {};
199
+
200
+ function Generator() {}
201
+
202
+ function GeneratorFunction() {}
203
+
204
+ function GeneratorFunctionPrototype() {}
205
+
206
+ var IteratorPrototype = {};
207
+ define(IteratorPrototype, iteratorSymbol, function () {
208
+ return this;
209
+ });
210
+ var getProto = Object.getPrototypeOf,
211
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
212
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
213
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
214
+
215
+ function defineIteratorMethods(prototype) {
216
+ ["next", "throw", "return"].forEach(function (method) {
217
+ define(prototype, method, function (arg) {
218
+ return this._invoke(method, arg);
219
+ });
220
+ });
221
+ }
222
+
223
+ function AsyncIterator(generator, PromiseImpl) {
224
+ function invoke(method, arg, resolve, reject) {
225
+ var record = tryCatch(generator[method], generator, arg);
226
+
227
+ if ("throw" !== record.type) {
228
+ var result = record.arg,
229
+ value = result.value;
230
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
231
+ invoke("next", value, resolve, reject);
232
+ }, function (err) {
233
+ invoke("throw", err, resolve, reject);
234
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
235
+ result.value = unwrapped, resolve(result);
236
+ }, function (error) {
237
+ return invoke("throw", error, resolve, reject);
238
+ });
239
+ }
240
+
241
+ reject(record.arg);
242
+ }
243
+
244
+ var previousPromise;
245
+
246
+ this._invoke = function (method, arg) {
247
+ function callInvokeWithMethodAndArg() {
248
+ return new PromiseImpl(function (resolve, reject) {
249
+ invoke(method, arg, resolve, reject);
250
+ });
251
+ }
252
+
253
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
254
+ };
255
+ }
256
+
257
+ function maybeInvokeDelegate(delegate, context) {
258
+ var method = delegate.iterator[context.method];
259
+
260
+ if (undefined === method) {
261
+ if (context.delegate = null, "throw" === context.method) {
262
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
263
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
264
+ }
265
+
266
+ return ContinueSentinel;
267
+ }
268
+
269
+ var record = tryCatch(method, delegate.iterator, context.arg);
270
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
271
+ var info = record.arg;
272
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
273
+ }
274
+
275
+ function pushTryEntry(locs) {
276
+ var entry = {
277
+ tryLoc: locs[0]
278
+ };
279
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
280
+ }
281
+
282
+ function resetTryEntry(entry) {
283
+ var record = entry.completion || {};
284
+ record.type = "normal", delete record.arg, entry.completion = record;
285
+ }
286
+
287
+ function Context(tryLocsList) {
288
+ this.tryEntries = [{
289
+ tryLoc: "root"
290
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
291
+ }
292
+
293
+ function values(iterable) {
294
+ if (iterable) {
295
+ var iteratorMethod = iterable[iteratorSymbol];
296
+ if (iteratorMethod) return iteratorMethod.call(iterable);
297
+ if ("function" == typeof iterable.next) return iterable;
298
+
299
+ if (!isNaN(iterable.length)) {
300
+ var i = -1,
301
+ next = function next() {
302
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
303
+
304
+ return next.value = undefined, next.done = !0, next;
305
+ };
306
+
307
+ return next.next = next;
308
+ }
309
+ }
310
+
311
+ return {
312
+ next: doneResult
313
+ };
314
+ }
315
+
316
+ function doneResult() {
317
+ return {
318
+ value: undefined,
319
+ done: !0
320
+ };
321
+ }
322
+
323
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
324
+ var ctor = "function" == typeof genFun && genFun.constructor;
325
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
326
+ }, exports.mark = function (genFun) {
327
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
328
+ }, exports.awrap = function (arg) {
329
+ return {
330
+ __await: arg
331
+ };
332
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
333
+ return this;
334
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
335
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
336
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
337
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
338
+ return result.done ? result.value : iter.next();
339
+ });
340
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
341
+ return this;
342
+ }), define(Gp, "toString", function () {
343
+ return "[object Generator]";
344
+ }), exports.keys = function (object) {
345
+ var keys = [];
346
+
347
+ for (var key in object) keys.push(key);
348
+
349
+ return keys.reverse(), function next() {
350
+ for (; keys.length;) {
351
+ var key = keys.pop();
352
+ if (key in object) return next.value = key, next.done = !1, next;
353
+ }
354
+
355
+ return next.done = !0, next;
356
+ };
357
+ }, exports.values = values, Context.prototype = {
358
+ constructor: Context,
359
+ reset: function (skipTempReset) {
360
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
361
+ },
362
+ stop: function () {
363
+ this.done = !0;
364
+ var rootRecord = this.tryEntries[0].completion;
365
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
366
+ return this.rval;
367
+ },
368
+ dispatchException: function (exception) {
369
+ if (this.done) throw exception;
370
+ var context = this;
371
+
372
+ function handle(loc, caught) {
373
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
374
+ }
375
+
376
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
377
+ var entry = this.tryEntries[i],
378
+ record = entry.completion;
379
+ if ("root" === entry.tryLoc) return handle("end");
380
+
381
+ if (entry.tryLoc <= this.prev) {
382
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
383
+ hasFinally = hasOwn.call(entry, "finallyLoc");
384
+
385
+ if (hasCatch && hasFinally) {
386
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
387
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
388
+ } else if (hasCatch) {
389
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
390
+ } else {
391
+ if (!hasFinally) throw new Error("try statement without catch or finally");
392
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
393
+ }
394
+ }
395
+ }
396
+ },
397
+ abrupt: function (type, arg) {
398
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
399
+ var entry = this.tryEntries[i];
400
+
401
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
402
+ var finallyEntry = entry;
403
+ break;
404
+ }
405
+ }
406
+
407
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
408
+ var record = finallyEntry ? finallyEntry.completion : {};
409
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
410
+ },
411
+ complete: function (record, afterLoc) {
412
+ if ("throw" === record.type) throw record.arg;
413
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
414
+ },
415
+ finish: function (finallyLoc) {
416
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
417
+ var entry = this.tryEntries[i];
418
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
419
+ }
420
+ },
421
+ catch: function (tryLoc) {
422
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
423
+ var entry = this.tryEntries[i];
424
+
425
+ if (entry.tryLoc === tryLoc) {
426
+ var record = entry.completion;
427
+
428
+ if ("throw" === record.type) {
429
+ var thrown = record.arg;
430
+ resetTryEntry(entry);
431
+ }
432
+
433
+ return thrown;
434
+ }
435
+ }
436
+
437
+ throw new Error("illegal catch attempt");
438
+ },
439
+ delegateYield: function (iterable, resultName, nextLoc) {
440
+ return this.delegate = {
441
+ iterator: values(iterable),
442
+ resultName: resultName,
443
+ nextLoc: nextLoc
444
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
445
+ }
446
+ }, exports;
447
+ }
448
+
449
+ function _typeof(obj) {
450
+ "@babel/helpers - typeof";
451
+
452
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
453
+ return typeof obj;
454
+ } : function (obj) {
455
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
456
+ }, _typeof(obj);
457
+ }
458
+
459
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
460
+ try {
461
+ var info = gen[key](arg);
462
+ var value = info.value;
463
+ } catch (error) {
464
+ reject(error);
465
+ return;
466
+ }
467
+
468
+ if (info.done) {
469
+ resolve(value);
470
+ } else {
471
+ Promise.resolve(value).then(_next, _throw);
472
+ }
473
+ }
474
+
475
+ function _asyncToGenerator(fn) {
476
+ return function () {
477
+ var self = this,
478
+ args = arguments;
479
+ return new Promise(function (resolve, reject) {
480
+ var gen = fn.apply(self, args);
481
+
482
+ function _next(value) {
483
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
484
+ }
485
+
486
+ function _throw(err) {
487
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
488
+ }
489
+
490
+ _next(undefined);
491
+ });
492
+ };
493
+ }
494
+
495
+ function _defineProperty(obj, key, value) {
496
+ if (key in obj) {
497
+ Object.defineProperty(obj, key, {
498
+ value: value,
499
+ enumerable: true,
500
+ configurable: true,
501
+ writable: true
502
+ });
503
+ } else {
504
+ obj[key] = value;
505
+ }
506
+
507
+ return obj;
508
+ }
509
+
510
+ var _withScopeId$2 = function _withScopeId(n) {
511
+ return pushScopeId("data-v-2dfcb17e"), n = n(), popScopeId(), n;
512
+ };
513
+
514
+ var _hoisted_1$8 = {
515
+ key: 0,
516
+ id: "top"
517
+ };
518
+ var _hoisted_2$3 = {
519
+ "class": "flex items-center justify-center"
520
+ };
521
+ var _hoisted_3$3 = {
522
+ key: 0,
523
+ style: {
524
+ "color": "#ff0066"
525
+ }
526
+ };
527
+ var _hoisted_4$3 = {
528
+ key: 0
529
+ };
530
+
531
+ var _hoisted_5$2 = /*#__PURE__*/_withScopeId$2(function () {
532
+ return /*#__PURE__*/createElementVNode("div", {
533
+ "class": "h-2 flex items-center"
534
+ }, [/*#__PURE__*/createElementVNode("span", {
535
+ "class": "bg-[#d9d9d9] h-[1px] w-full"
536
+ })], -1
537
+ /* HOISTED */
538
+ );
539
+ });
540
+
541
+ var _hoisted_6$2 = {
542
+ "class": "flex items-center justify-between h-1/2"
543
+ };
544
+ var _hoisted_7$2 = {
545
+ key: 0,
546
+ style: {
547
+ "color": "#ff0066"
548
+ }
549
+ };
550
+ var _hoisted_8$1 = {
551
+ "class": "mrpTable"
552
+ };
553
+ var _hoisted_9$1 = {
554
+ "class": "relative w-full mb-[24px]",
555
+ style: {
556
+ "table-layout": "fixed"
557
+ }
558
+ };
559
+ var _hoisted_10$1 = {
560
+ "class": "flex items-center justify-center"
561
+ };
562
+ var _hoisted_11$1 = {
563
+ key: 0,
564
+ style: {
565
+ "color": "#ff0066"
566
+ }
567
+ };
568
+ var _hoisted_12$1 = {
569
+ key: 1
570
+ };
571
+
572
+ var _hoisted_13$1 = /*#__PURE__*/_withScopeId$2(function () {
573
+ return /*#__PURE__*/createElementVNode("div", {
574
+ "class": "h-2 flex items-center"
575
+ }, [/*#__PURE__*/createElementVNode("span", {
576
+ "class": "bg-[#d9d9d9] h-[1px] w-full"
577
+ })], -1
578
+ /* HOISTED */
579
+ );
580
+ });
581
+
582
+ var _hoisted_14$1 = {
583
+ "class": "flex items-center justify-between h-1/2"
584
+ };
585
+ var _hoisted_15$1 = {
586
+ key: 0,
587
+ style: {
588
+ "color": "#ff0066"
589
+ }
590
+ };
591
+ var _hoisted_16$1 = {
592
+ key: 0
593
+ };
594
+ var _hoisted_17$1 = {
595
+ key: 1
596
+ };
597
+ var _hoisted_18$1 = {
598
+ key: 2,
599
+ "class": "flex justify-center items-center relative"
600
+ };
601
+ var _hoisted_19$1 = {
602
+ key: 1,
603
+ "class": "table-footer"
604
+ };
605
+
606
+ var _hoisted_20$1 = /*#__PURE__*/createStaticVNode("<div class=\"centent\" data-v-2dfcb17e><svg class=\"ant-empty-img-simple\" width=\"64\" height=\"41\" viewBox=\"0 0 64 41\" data-v-2dfcb17e><g transform=\"translate(0 1)\" fill=\"none\" fill-rule=\"evenodd\" data-v-2dfcb17e><ellipse class=\"ant-empty-img-simple-ellipse\" fill=\"#F5F5F5\" cx=\"32\" cy=\"33\" rx=\"32\" ry=\"7\" data-v-2dfcb17e></ellipse><g class=\"ant-empty-img-simple-g\" fill-rule=\"nonzero\" stroke=\"#D9D9D9\" data-v-2dfcb17e><path d=\"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z\" data-v-2dfcb17e></path><path d=\"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z\" fill=\"#FAFAFA\" class=\"ant-empty-img-simple-path\" data-v-2dfcb17e></path></g></g></svg> 没有数据 </div>", 1);
607
+
608
+ var _hoisted_21$1 = [_hoisted_20$1];
609
+ var script$8 = /*#__PURE__*/defineComponent({
610
+ __name: 'IVMrpTable',
611
+ props: {
612
+ dataTh: {
613
+ type: null,
614
+ required: true
615
+ },
616
+ contractExecDocList: {
617
+ type: Array,
618
+ required: true
619
+ },
620
+ currentPages: {
621
+ type: Number,
622
+ required: true
623
+ },
624
+ totalPages: {
625
+ type: Number,
626
+ required: true
627
+ },
628
+ formData: {
629
+ type: Object,
630
+ required: true
631
+ },
632
+ col: {
633
+ type: Boolean,
634
+ required: false
635
+ },
636
+ setHeight: {
637
+ type: Number,
638
+ required: false
639
+ }
640
+ },
641
+ emits: ["onPageChange", "onShowSizeChange", "upth"],
642
+ setup: function setup(__props, _ref) {
643
+ var emit = _ref.emit;
644
+ var Props = __props;
645
+ localStorage.setItem("th", Props.dataTh.map(function (item) {
646
+ return item.title;
647
+ }).join(",")); // onPageChange
648
+
649
+ var onPageChange = function onPageChange(current, pageSize) {
650
+ // console.log(current, pageSize, "-------------onPageChange");
651
+ emit("onPageChange", current, pageSize);
652
+ }; // onShowSizeChange
653
+
654
+
655
+ var onShowSizeChange = function onShowSizeChange(current, pageSize) {
656
+ // console.log(current, pageSize, '-------------onShowSizeChange')
657
+ emit("onShowSizeChange", current, pageSize);
658
+ };
659
+
660
+ var offsetWidth = ref(0);
661
+ var mrpTableOffsetWidth = ref(0);
662
+ var ji = false; // 实时滚动条高度
663
+
664
+ var scrollTop = function scrollTop(e) {
665
+ if (ji) return;
666
+ ji = true;
667
+ var scrollY = e.target.scrollTop; // // 获取元素
668
+
669
+ var div = document.querySelector(".mrpTable");
670
+ setTimeout(function () {
671
+ ji = false;
672
+ }, 15); // // 获取距离页面顶部的偏移值
673
+
674
+ var div_scrolltop = (div === null || div === void 0 ? void 0 : div.offsetTop) - 48;
675
+
676
+ if (scrollY > div_scrolltop && (e === null || e === void 0 ? void 0 : e.target) != document.querySelector(".rc-virtual-list-holder")) {
677
+ offsetWidth.value = div.offsetWidth;
678
+ } else {
679
+ offsetWidth.value = 0;
680
+ }
681
+ };
682
+
683
+ var tableH = ref(0);
684
+ var clickDensity = ref(false); // 密度事件
685
+
686
+ var density = function density(key) {
687
+ clickDensity.value = true;
688
+ key == 0 ? tableH.value = 0 : key == 1 ? tableH.value = 40 : tableH.value = 20;
689
+ }; // 列设置更新th
690
+
691
+
692
+ var tableControlChange = function tableControlChange(val) {
693
+ var updata = Props.dataTh.map(function (item) {
694
+ return _objectSpread2(_objectSpread2({}, item), {}, {
695
+ show: val.includes(item.title)
696
+ });
697
+ });
698
+ emit("upth", updata);
699
+ };
700
+
701
+ onMounted(function () {
702
+ var div = document.querySelector(".mrpTable");
703
+ mrpTableOffsetWidth.value = div.offsetWidth; // 监听滚动条位置
704
+
705
+ window.addEventListener("scroll", scrollTop, true);
706
+ });
707
+ onBeforeUnmount(function () {
708
+ window.removeEventListener("scroll", scrollTop, true); // 离开当前组件别忘记移除事件监听
709
+ });
710
+ return function (_ctx, _cache) {
711
+ var _component_a_image = resolveComponent("a-image");
712
+
713
+ var _component_a_pagination = resolveComponent("a-pagination");
714
+
715
+ return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" 主体 "), offsetWidth.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [createElementVNode("table", {
716
+ "class": "relative w-full mb-[24px]",
717
+ style: normalizeStyle([{
718
+ "table-layout": "fixed"
719
+ }, {
720
+ width: offsetWidth.value ? offsetWidth.value + 'px' : ''
721
+ }])
722
+ }, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
723
+ return openBlock(), createElementBlock(Fragment, null, [item.show ? (openBlock(), createElementBlock("th", {
724
+ key: index,
725
+ "class": normalizeClass('table-cell bg-[#97D2FD]'),
726
+ style: normalizeStyle({
727
+ height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : '',
728
+ width: item.w ? item.w : ''
729
+ })
730
+ }, [createElementVNode("div", _hoisted_2$3, [createTextVNode(toDisplayString(item.title == "操作" ? "" : item.title) + " ", 1
731
+ /* TEXT */
732
+ ), item.unit ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(item.unit), 1
733
+ /* TEXT */
734
+ )) : createCommentVNode("v-if", true)]), item.header ? (openBlock(), createElementBlock("div", _hoisted_4$3, [_hoisted_5$2, createElementVNode("div", _hoisted_6$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.header, function (e, i) {
735
+ return openBlock(), createElementBlock("div", {
736
+ key: i,
737
+ style: normalizeStyle({
738
+ width: e.w ? e.w : ''
739
+ })
740
+ }, [createTextVNode(toDisplayString(e.title == "操作" ? "" : e.title) + " ", 1
741
+ /* TEXT */
742
+ ), e.unit ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(e.unit), 1
743
+ /* TEXT */
744
+ )) : createCommentVNode("v-if", true)], 4
745
+ /* STYLE */
746
+ );
747
+ }), 128
748
+ /* KEYED_FRAGMENT */
749
+ ))])])) : createCommentVNode("v-if", true)], 4
750
+ /* STYLE */
751
+ )) : createCommentVNode("v-if", true)], 64
752
+ /* STABLE_FRAGMENT */
753
+ );
754
+ }), 256
755
+ /* UNKEYED_FRAGMENT */
756
+ ))])], 4
757
+ /* STYLE */
758
+ ), createVNode(unref(script$7), {
759
+ setHeight: __props.setHeight,
760
+ onDensity: density,
761
+ onChangeS: tableControlChange
762
+ }, null, 8
763
+ /* PROPS */
764
+ , ["setHeight"])])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_8$1, [createElementVNode("table", _hoisted_9$1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
765
+ return openBlock(), createElementBlock(Fragment, {
766
+ key: index
767
+ }, [item.show ? (openBlock(), createElementBlock("th", {
768
+ key: 0,
769
+ "class": normalizeClass('table-cell bg-[#97D2FD]'),
770
+ style: normalizeStyle({
771
+ height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : '',
772
+ width: item.w ? item.w : ''
773
+ })
774
+ }, [item.key == 'select' ? renderSlot(_ctx.$slots, "selectAll", {
775
+ key: 0
776
+ }) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_10$1, [createTextVNode(toDisplayString(item.key == "select" ? "" : item.title == "操作" ? "" : item.title) + " ", 1
777
+ /* TEXT */
778
+ ), item.unit ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(item.unit), 1
779
+ /* TEXT */
780
+ )) : createCommentVNode("v-if", true), createCommentVNode(" <span class=\"flex flex-col\"\r\n ><caret-up-filled /><caret-down-filled\r\n /></span> ")]), item.header ? (openBlock(), createElementBlock("div", _hoisted_12$1, [_hoisted_13$1, createElementVNode("div", _hoisted_14$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.header, function (e, i) {
781
+ return openBlock(), createElementBlock("div", {
782
+ key: i,
783
+ style: normalizeStyle({
784
+ width: e.w ? e.w : ''
785
+ })
786
+ }, [createTextVNode(toDisplayString(e.title == "操作" ? "" : e.title) + " ", 1
787
+ /* TEXT */
788
+ ), e.unit ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(e.unit), 1
789
+ /* TEXT */
790
+ )) : createCommentVNode("v-if", true)], 4
791
+ /* STYLE */
792
+ );
793
+ }), 128
794
+ /* KEYED_FRAGMENT */
795
+ ))])])) : createCommentVNode("v-if", true)], 4
796
+ /* STYLE */
797
+ )) : createCommentVNode("v-if", true)], 64
798
+ /* STABLE_FRAGMENT */
799
+ );
800
+ }), 128
801
+ /* KEYED_FRAGMENT */
802
+ ))]), Props.contractExecDocList.length !== 0 ? (openBlock(true), createElementBlock(Fragment, {
803
+ key: 0
804
+ }, renderList(Props.contractExecDocList, function (e, i) {
805
+ return openBlock(), createElementBlock("tr", {
806
+ key: e.id
807
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataTh, function (item, index) {
808
+ return openBlock(), createElementBlock(Fragment, {
809
+ key: index
810
+ }, [item.show ? (openBlock(), createElementBlock("td", {
811
+ key: 0,
812
+ "class": "table-cell",
813
+ style: normalizeStyle({
814
+ height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : ''
815
+ })
816
+ }, [createCommentVNode(" 序号 "), item.key == 'index' ? (openBlock(), createElementBlock("div", _hoisted_16$1, toDisplayString(Props.currentPages - 1 == 0 ? i + 1 : (Props.currentPages - 1) * 10 + i + 1), 1
817
+ /* TEXT */
818
+ )) : createCommentVNode("v-if", true), createCommentVNode(" 常规 "), item.key != 'index' && item.key != 'pictures' && item.key != 'buttonSlot' && item.key != 'select' && !item.custom ? (openBlock(), createElementBlock("div", _hoisted_17$1, toDisplayString(e[item.key]), 1
819
+ /* TEXT */
820
+ )) : createCommentVNode("v-if", true), createCommentVNode(" 图片数据特殊处理 "), item.key == 'pictures' ? (openBlock(), createElementBlock("div", _hoisted_18$1, [createCommentVNode(" <img\r\n v-for=\"(e1, i1) in e.pictures\"\r\n :key=\"i1\"\r\n :src=\"e1\"\r\n width=\"30\"\r\n height=\"32\"\r\n class=\"mx-4\"\r\n /> "), (openBlock(true), createElementBlock(Fragment, null, renderList(e.pictures, function (e1, i1) {
821
+ return openBlock(), createBlock(_component_a_image, {
822
+ key: i1,
823
+ src: e1,
824
+ width: 30,
825
+ height: 32,
826
+ fallback: "data:image/png;base64,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",
827
+ style: {
828
+ "position": "absolute",
829
+ "top": "50%",
830
+ "left": "50%",
831
+ "transform": "translate(-50%, -50%)"
832
+ }
833
+ }, null, 8
834
+ /* PROPS */
835
+ , ["src"]);
836
+ }), 128
837
+ /* KEYED_FRAGMENT */
838
+ ))])) : createCommentVNode("v-if", true), createCommentVNode(" 可点击的td slot"), item.key == 'clickSlot' ? renderSlot(_ctx.$slots, "clickSlot", {
839
+ key: 3,
840
+ id: e.id,
841
+ item: e
842
+ }) : createCommentVNode("v-if", true), item.key == 'select' ? renderSlot(_ctx.$slots, "select", {
843
+ key: 4,
844
+ index: i,
845
+ item: e
846
+ }) : createCommentVNode("v-if", true), createCommentVNode(" 按钮使用slot"), item.key == 'buttonSlot' ? renderSlot(_ctx.$slots, "buttonSlot", {
847
+ key: 5,
848
+ id: e.id,
849
+ item: e
850
+ }) : createCommentVNode("v-if", true), createCommentVNode(" 按钮使用slot"), item.custom ? renderSlot(_ctx.$slots, item.key, {
851
+ key: 6,
852
+ id: e.id,
853
+ item: e
854
+ }) : createCommentVNode("v-if", true)], 4
855
+ /* STYLE */
856
+ )) : createCommentVNode("v-if", true)], 64
857
+ /* STABLE_FRAGMENT */
858
+ );
859
+ }), 128
860
+ /* KEYED_FRAGMENT */
861
+ ))]);
862
+ }), 128
863
+ /* KEYED_FRAGMENT */
864
+ )) : (openBlock(), createElementBlock("div", _hoisted_19$1, _hoisted_21$1))]), createVNode(unref(script$7), {
865
+ setHeight: __props.setHeight,
866
+ onDensity: density,
867
+ onChangeS: tableControlChange
868
+ }, null, 8
869
+ /* PROPS */
870
+ , ["setHeight"])]), createCommentVNode(" 分页 "), __props.totalPages ? (openBlock(), createElementBlock("div", {
871
+ key: 1,
872
+ "class": "flex justify-center h-full mt-4 mb-20 pagination",
873
+ style: normalizeStyle({
874
+ width: mrpTableOffsetWidth.value ? mrpTableOffsetWidth.value + 'px' : ''
875
+ })
876
+ }, [createVNode(_component_a_pagination, {
877
+ current: Props.currentPages,
878
+ "onUpdate:current": _cache[0] || (_cache[0] = function ($event) {
879
+ return Props.currentPages = $event;
880
+ }),
881
+ "show-quick-jumper": "",
882
+ "show-size-changer": "",
883
+ pageSizeOptions: ['10', '20', '30', '50'],
884
+ total: Props.totalPages,
885
+ onChange: onPageChange,
886
+ onShowSizeChange: onShowSizeChange
887
+ }, null, 8
888
+ /* PROPS */
889
+ , ["current", "total"])], 4
890
+ /* STYLE */
891
+ )) : createCommentVNode("v-if", true)], 64
892
+ /* STABLE_FRAGMENT */
893
+ );
894
+ };
895
+ }
896
+ });
897
+
898
+ script$8.__scopeId = "data-v-2dfcb17e";
899
+ script$8.__file = "src/function-ui/component/IVMrpTable.vue";
900
+
901
+ var _withScopeId$1 = function _withScopeId(n) {
902
+ return pushScopeId("data-v-4b5cf48c"), n = n(), popScopeId(), n;
903
+ };
904
+
905
+ var _hoisted_1$7 = {
906
+ "class": "tableControl"
907
+ };
908
+
909
+ var _hoisted_2$2 = /*#__PURE__*/_withScopeId$1(function () {
910
+ return /*#__PURE__*/createElementVNode("div", null, "密度", -1
911
+ /* HOISTED */
912
+ );
913
+ });
914
+
915
+ var _hoisted_3$2 = /*#__PURE__*/createTextVNode(" 默认 ");
916
+
917
+ var _hoisted_4$2 = /*#__PURE__*/createTextVNode(" 中等 ");
918
+
919
+ var _hoisted_5$1 = /*#__PURE__*/createTextVNode(" 紧凑 ");
920
+
921
+ var _hoisted_6$1 = /*#__PURE__*/_withScopeId$1(function () {
922
+ return /*#__PURE__*/createElementVNode("div", null, "列设置", -1
923
+ /* HOISTED */
924
+ );
925
+ });
926
+
927
+ var _hoisted_7$1 = /*#__PURE__*/createTextVNode(" 全选 ");
928
+
929
+ var script$7 = /*#__PURE__*/defineComponent({
930
+ __name: 'IVMrpTableControl',
931
+ props: {
932
+ setHeight: {
933
+ type: Number,
934
+ required: false
935
+ }
936
+ },
937
+ emits: ["density", "ChangeS"],
938
+ setup: function setup(__props, _ref) {
939
+ var emit = _ref.emit;
940
+
941
+ var _a, _b;
942
+
943
+ var Props = __props;
944
+ var clicked = ref(false);
945
+ var hovered = ref(false);
946
+ var clickedT = ref(false);
947
+ var hoveredT = ref(false);
948
+ var state = reactive({
949
+ collapsed: false,
950
+ selectedKeys: ["1"]
951
+ });
952
+
953
+ var handleHoverChange = function handleHoverChange(visible) {
954
+ clicked.value = false;
955
+ hovered.value = visible;
956
+ };
957
+
958
+ var handleClickChange = function handleClickChange(visible) {
959
+ clicked.value = visible;
960
+ hovered.value = false;
961
+ };
962
+
963
+ var handleClickChangeT = function handleClickChangeT(visible) {
964
+ clickedT.value = visible;
965
+ hoveredT.value = false;
966
+ }; // 密度事件
967
+
968
+
969
+ var density = function density(item) {
970
+ emit("density", item.key);
971
+ };
972
+
973
+ state.selectedKeys[0] = Props.setHeight ? Props.setHeight == 40 ? "1" : Props.setHeight == 20 ? "2" : "0" : "0";
974
+ var plainOptions = (_a = localStorage.getItem("th")) === null || _a === void 0 ? void 0 : _a.split(","); //全部选项
975
+
976
+ var table = reactive({
977
+ indeterminate: false,
978
+ checkAll: true,
979
+ checkedList: (_b = localStorage.getItem("th")) === null || _b === void 0 ? void 0 : _b.split(",")
980
+ }); //全选功能
981
+
982
+ var onCheckAllChange = function onCheckAllChange(e) {
983
+ Object.assign(table, {
984
+ checkedList: e.target.checked ? plainOptions : [],
985
+ indeterminate: false
986
+ });
987
+ emit("ChangeS", table.checkedList);
988
+ }; //多选功能
989
+
990
+
991
+ var onCheckedListChange = function onCheckedListChange(value) {
992
+ var checkedCount = value.length;
993
+ var totalCount = plainOptions.length;
994
+ Object.assign(table, {
995
+ checkAll: checkedCount === totalCount,
996
+ indeterminate: checkedCount > 0 && checkedCount < totalCount
997
+ });
998
+ emit("ChangeS", value);
999
+ };
1000
+
1001
+ watch(function () {
1002
+ return table.checkedList;
1003
+ }, function (val) {
1004
+ table.indeterminate = !!val.length && val.length < plainOptions.length;
1005
+ table.checkAll = val.length === plainOptions.length;
1006
+ });
1007
+ return function (_ctx, _cache) {
1008
+ var _component_a_menu_item = resolveComponent("a-menu-item");
1009
+
1010
+ var _component_a_menu = resolveComponent("a-menu");
1011
+
1012
+ var _component_column_height_outlined = resolveComponent("column-height-outlined");
1013
+
1014
+ var _component_a_popover = resolveComponent("a-popover");
1015
+
1016
+ var _component_a_checkbox = resolveComponent("a-checkbox");
1017
+
1018
+ var _component_a_divider = resolveComponent("a-divider");
1019
+
1020
+ var _component_a_checkbox_group = resolveComponent("a-checkbox-group");
1021
+
1022
+ var _component_setting_outlined = resolveComponent("setting-outlined");
1023
+
1024
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [createVNode(_component_a_popover, {
1025
+ trigger: "hover",
1026
+ visible: hovered.value,
1027
+ onVisibleChange: handleHoverChange
1028
+ }, {
1029
+ content: withCtx(function () {
1030
+ return [_hoisted_2$2];
1031
+ }),
1032
+ "default": withCtx(function () {
1033
+ return [createVNode(_component_a_popover, {
1034
+ trigger: "click",
1035
+ placement: "left",
1036
+ "arrow-point-at-center": "",
1037
+ visible: clicked.value,
1038
+ onVisibleChange: handleClickChange,
1039
+ getPopupContainer: function getPopupContainer(triggerNode) {
1040
+ return triggerNode.parentNode;
1041
+ }
1042
+ }, {
1043
+ content: withCtx(function () {
1044
+ return [createVNode(_component_a_menu, {
1045
+ selectedKeys: state.selectedKeys,
1046
+ "onUpdate:selectedKeys": _cache[0] || (_cache[0] = function ($event) {
1047
+ return state.selectedKeys = $event;
1048
+ }),
1049
+ onClick: density
1050
+ }, {
1051
+ "default": withCtx(function () {
1052
+ return [createVNode(_component_a_menu_item, {
1053
+ key: "0"
1054
+ }, {
1055
+ "default": withCtx(function () {
1056
+ return [_hoisted_3$2];
1057
+ }),
1058
+ _: 1
1059
+ /* STABLE */
1060
+
1061
+ }), createVNode(_component_a_menu_item, {
1062
+ key: "1"
1063
+ }, {
1064
+ "default": withCtx(function () {
1065
+ return [_hoisted_4$2];
1066
+ }),
1067
+ _: 1
1068
+ /* STABLE */
1069
+
1070
+ }), createVNode(_component_a_menu_item, {
1071
+ key: "2"
1072
+ }, {
1073
+ "default": withCtx(function () {
1074
+ return [_hoisted_5$1];
1075
+ }),
1076
+ _: 1
1077
+ /* STABLE */
1078
+
1079
+ })];
1080
+ }),
1081
+ _: 1
1082
+ /* STABLE */
1083
+
1084
+ }, 8
1085
+ /* PROPS */
1086
+ , ["selectedKeys"])];
1087
+ }),
1088
+ "default": withCtx(function () {
1089
+ return [createVNode(_component_column_height_outlined, {
1090
+ style: {
1091
+ fontSize: '20px'
1092
+ },
1093
+ "class": "cursor-pointer"
1094
+ })];
1095
+ }),
1096
+ _: 1
1097
+ /* STABLE */
1098
+
1099
+ }, 8
1100
+ /* PROPS */
1101
+ , ["visible", "getPopupContainer"])];
1102
+ }),
1103
+ _: 1
1104
+ /* STABLE */
1105
+
1106
+ }, 8
1107
+ /* PROPS */
1108
+ , ["visible"]), createVNode(_component_a_popover, {
1109
+ trigger: "hover"
1110
+ }, {
1111
+ content: withCtx(function () {
1112
+ return [_hoisted_6$1];
1113
+ }),
1114
+ "default": withCtx(function () {
1115
+ return [createVNode(_component_a_popover, {
1116
+ trigger: "click",
1117
+ placement: "left",
1118
+ visible: clickedT.value,
1119
+ onVisibleChange: handleClickChangeT,
1120
+ getPopupContainer: function getPopupContainer(triggerNode) {
1121
+ return triggerNode.parentNode;
1122
+ }
1123
+ }, {
1124
+ content: withCtx(function () {
1125
+ return [createElementVNode("div", null, [createVNode(_component_a_checkbox, {
1126
+ checked: table.checkAll,
1127
+ "onUpdate:checked": _cache[1] || (_cache[1] = function ($event) {
1128
+ return table.checkAll = $event;
1129
+ }),
1130
+ indeterminate: table.indeterminate,
1131
+ onChange: onCheckAllChange
1132
+ }, {
1133
+ "default": withCtx(function () {
1134
+ return [_hoisted_7$1];
1135
+ }),
1136
+ _: 1
1137
+ /* STABLE */
1138
+
1139
+ }, 8
1140
+ /* PROPS */
1141
+ , ["checked", "indeterminate"])]), createVNode(_component_a_divider), createVNode(_component_a_checkbox_group, {
1142
+ value: table.checkedList,
1143
+ "onUpdate:value": _cache[2] || (_cache[2] = function ($event) {
1144
+ return table.checkedList = $event;
1145
+ }),
1146
+ options: unref(plainOptions),
1147
+ onChange: onCheckedListChange
1148
+ }, null, 8
1149
+ /* PROPS */
1150
+ , ["value", "options"])];
1151
+ }),
1152
+ "default": withCtx(function () {
1153
+ return [createVNode(_component_setting_outlined, {
1154
+ "class": "setting cursor-pointer",
1155
+ style: {
1156
+ fontSize: '20px'
1157
+ }
1158
+ })];
1159
+ }),
1160
+ _: 1
1161
+ /* STABLE */
1162
+
1163
+ }, 8
1164
+ /* PROPS */
1165
+ , ["visible", "getPopupContainer"])];
1166
+ }),
1167
+ _: 1
1168
+ /* STABLE */
1169
+
1170
+ })]);
1171
+ };
1172
+ }
1173
+ });
1174
+
1175
+ script$7.__scopeId = "data-v-4b5cf48c";
1176
+ script$7.__file = "src/function-ui/component/IVMrpTableControl.vue";
1177
+
1178
+ function _loadChildren(obj, list) {
1179
+ var arr = list.filter(function (x) {
1180
+ return x.parentId == obj.id;
1181
+ });
1182
+ if (!arr.length) return;
1183
+ obj.children = arr;
1184
+ obj.children.forEach(function (x) {
1185
+ _loadChildren(x, list);
1186
+ });
1187
+ return obj;
1188
+ }
1189
+ function tranListToTreeData(list) {
1190
+ var results = list.filter(function (x) {
1191
+ return x.parentId == null;
1192
+ });
1193
+ results.forEach(function (x) {
1194
+ return _loadChildren(x, list);
1195
+ });
1196
+ return results;
1197
+ }
1198
+ var isObject = function isObject(val) {
1199
+ return val !== null && _typeof(val) === "object";
1200
+ };
1201
+ function isDate(val) {
1202
+ return toString.call(val) === "[object Date]";
1203
+ }
1204
+ function isURLSearchParams(val) {
1205
+ return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
1206
+ }
1207
+ var assign = Object.assign;
1208
+ function filterOptionHeadle(input, option) {
1209
+ return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
1210
+ }
1211
+ function encode(val) {
1212
+ return encodeURIComponent(val).replace(/%40/g, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1213
+ }
1214
+ function buildURL(url, params) {
1215
+ if (!params) {
1216
+ return url;
1217
+ }
1218
+ if (isURLSearchParams(params)) {
1219
+ return url += (url.includes("?") ? "&" : "?") + params.toString();
1220
+ }
1221
+ var parts = [];
1222
+ Object.keys(params).forEach(function (key) {
1223
+ var val = params[key];
1224
+ if (val === null || typeof val === "undefined") {
1225
+ return;
1226
+ }
1227
+ var tempVal = [];
1228
+ if (Array.isArray(val)) {
1229
+ tempVal = val;
1230
+ key = key + "[]";
1231
+ } else {
1232
+ tempVal = [val];
1233
+ }
1234
+ tempVal.forEach(function (temp) {
1235
+ if (isDate(temp)) {
1236
+ temp = val.toString();
1237
+ } else if (isObject(temp)) {
1238
+ temp = JSON.stringify(temp);
1239
+ }
1240
+ parts.push("".concat(encode(key), "=").concat(encode(temp)));
1241
+ });
1242
+ });
1243
+ var hashmarkIndex = url.indexOf("#");
1244
+ if (hashmarkIndex !== -1) {
1245
+ url = url.slice(0, hashmarkIndex);
1246
+ }
1247
+ url += (url.includes("?") ? "&" : "?") + parts.join("&");
1248
+ return url;
1249
+ }
1250
+
1251
+ var BASE_URL = "https://basis.nacho.cn";
1252
+ var DEFIND_OPTION = {
1253
+ headers: {
1254
+ "Content-Type": "application/json;charset=UTF-8",
1255
+ "Accept-Language": "zh-Hans",
1256
+ authorization: localStorage.getItem("token") ? "Bearer " + localStorage.getItem("token") : null
1257
+ },
1258
+ cache: "no-cache",
1259
+ credentials: "include",
1260
+ responseType: "JSON",
1261
+ mode: "cors"
1262
+ };
1263
+ var API_OPTION = {
1264
+ getIVMrpOrgDropdown: {
1265
+ url: "/api/identity/users/allOrganizationByUser",
1266
+ option: _objectSpread2({
1267
+ method: "GET"
1268
+ }, DEFIND_OPTION)
1269
+ },
1270
+ getIVMrpProdBaseDropdown: {
1271
+ url: "/api/basis-management/production-base/all",
1272
+ option: _objectSpread2({
1273
+ method: "GET"
1274
+ }, DEFIND_OPTION)
1275
+ },
1276
+ getIVMrpLineDropdown: {
1277
+ url: "/api/basis-management/line/all",
1278
+ option: _objectSpread2({
1279
+ method: "GET"
1280
+ }, DEFIND_OPTION)
1281
+ },
1282
+ getIVMrpSetofbookDropdown: {
1283
+ url: "/api/basis-management/setOfBook/all",
1284
+ option: _objectSpread2({
1285
+ method: "GET"
1286
+ }, DEFIND_OPTION)
1287
+ },
1288
+ getIVMrpPostDropdown: {
1289
+ url: "/api/identity/users/allPosition",
1290
+ option: _objectSpread2({
1291
+ method: "GET"
1292
+ }, DEFIND_OPTION)
1293
+ },
1294
+ getIVMrpUserSelector: {
1295
+ url: "/api/identity/users/userList",
1296
+ option: _objectSpread2({
1297
+ method: "GET"
1298
+ }, DEFIND_OPTION)
1299
+ }
1300
+ };
1301
+ var formatHTTP = function formatHTTP(fetch) {
1302
+ return new Promise(function (resolve, reject) {
1303
+ fetch.then(function (data) {
1304
+ data.json().then(function (data) {
1305
+ return resolve(data);
1306
+ })["catch"](function (err) {
1307
+ return reject(err);
1308
+ });
1309
+ })["catch"](function (err) {
1310
+ return reject(err);
1311
+ });
1312
+ });
1313
+ };
1314
+ var formatUrl = function formatUrl(base, api, params) {
1315
+ return buildURL(base + api, params);
1316
+ };
1317
+
1318
+ var _hoisted_1$6 = /*#__PURE__*/createElementVNode("div", {
1319
+ "class": "text-[#0000006D] text-[14px]"
1320
+ }, "所属组织", -1
1321
+ /* HOISTED */
1322
+ );
1323
+ /**
1324
+ * 组件定义-------------------------------------
1325
+ * */
1326
+
1327
+ var script$6 = /*#__PURE__*/defineComponent({
1328
+ __name: 'IVMrpOrgDropdown',
1329
+ props: {
1330
+ value: {
1331
+ type: null,
1332
+ required: true
1333
+ },
1334
+ params: {
1335
+ type: Object,
1336
+ required: false
1337
+ },
1338
+ data: {
1339
+ type: Object,
1340
+ required: false
1341
+ },
1342
+ replaceFields: {
1343
+ type: null,
1344
+ required: false,
1345
+ "default": function _default() {
1346
+ return {
1347
+ children: "children",
1348
+ label: "displayName",
1349
+ key: "id",
1350
+ value: "id"
1351
+ };
1352
+ }
1353
+ }
1354
+ },
1355
+ emits: ["update:value", "change"],
1356
+ setup: function setup(__props, _ref) {
1357
+ var emit = _ref.emit;
1358
+ var props = __props;
1359
+ /**
1360
+ * 获取数据-------------------------------------
1361
+ * */
1362
+
1363
+ var dataV = ref();
1364
+
1365
+ var getData = /*#__PURE__*/function () {
1366
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1367
+ var _option,
1368
+ _a,
1369
+ _yield$formatHTTP,
1370
+ items,
1371
+ _args = arguments;
1372
+
1373
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1374
+ while (1) {
1375
+ switch (_context.prev = _context.next) {
1376
+ case 0:
1377
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1378
+ _context.next = 3;
1379
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
1380
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1381
+ }, API_OPTION.getIVMrpOrgDropdown.option)));
1382
+
1383
+ case 3:
1384
+ _yield$formatHTTP = _context.sent;
1385
+ items = _yield$formatHTTP.items;
1386
+ dataV.value = tranListToTreeData(items);
1387
+
1388
+ case 6:
1389
+ case "end":
1390
+ return _context.stop();
1391
+ }
1392
+ }
1393
+ }, _callee);
1394
+ }));
1395
+
1396
+ return function getData() {
1397
+ return _ref2.apply(this, arguments);
1398
+ };
1399
+ }();
1400
+
1401
+ var inputV = computed({
1402
+ get: function get() {
1403
+ return props.value;
1404
+ },
1405
+ set: function set(value) {
1406
+ emit("update:value", value);
1407
+ }
1408
+ });
1409
+ /**
1410
+ * 侦听器-------------------------------------
1411
+ * */
1412
+
1413
+ watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1414
+ var _a, _b;
1415
+
1416
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1417
+ while (1) {
1418
+ switch (_context2.prev = _context2.next) {
1419
+ case 0:
1420
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1421
+ getData({
1422
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
1423
+ type: 1
1424
+ }),
1425
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1426
+ });
1427
+
1428
+ case 1:
1429
+ case "end":
1430
+ return _context2.stop();
1431
+ }
1432
+ }
1433
+ }, _callee2);
1434
+ })));
1435
+ return function (_ctx, _cache) {
1436
+ var _component_a_tree_select = resolveComponent("a-tree-select");
1437
+
1438
+ var _component_a_form_item = resolveComponent("a-form-item");
1439
+
1440
+ return openBlock(), createBlock(_component_a_form_item, {
1441
+ name: "organizationId",
1442
+ rules: [{
1443
+ required: true,
1444
+ message: '请选择所属组织'
1445
+ }]
1446
+ }, {
1447
+ label: withCtx(function () {
1448
+ return [_hoisted_1$6];
1449
+ }),
1450
+ "default": withCtx(function () {
1451
+ return [createVNode(_component_a_tree_select, {
1452
+ value: unref(inputV),
1453
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1454
+ return isRef(inputV) ? inputV.value = $event : null;
1455
+ }),
1456
+ "tree-data": dataV.value,
1457
+ getPopupContainer: function getPopupContainer(triggerNode) {
1458
+ return triggerNode.parentNode;
1459
+ },
1460
+ placeholder: "请选择",
1461
+ showArrow: "",
1462
+ showSearch: "",
1463
+ "filter-option": unref(filterOptionHeadle),
1464
+ treeDefaultExpandAll: "",
1465
+ style: {
1466
+ "width": "300px"
1467
+ },
1468
+ onChange: _cache[1] || (_cache[1] = function ($event) {
1469
+ return _ctx.$emit('change', $event);
1470
+ }),
1471
+ replaceFields: __props.replaceFields
1472
+ }, null, 8
1473
+ /* PROPS */
1474
+ , ["value", "tree-data", "getPopupContainer", "filter-option", "replaceFields"])];
1475
+ }),
1476
+ _: 1
1477
+ /* STABLE */
1478
+
1479
+ });
1480
+ };
1481
+ }
1482
+ });
1483
+
1484
+ script$6.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
1485
+
1486
+ var _hoisted_1$5 = /*#__PURE__*/createElementVNode("div", {
1487
+ "class": "text-[#0000006D] text-[14px]"
1488
+ }, "所属基地", -1
1489
+ /* HOISTED */
1490
+ );
1491
+ /**
1492
+ * 组件定义-------------------------------------
1493
+ * */
1494
+
1495
+ var script$5 = /*#__PURE__*/defineComponent({
1496
+ __name: 'IVMrpProdBaseDropdown',
1497
+ props: {
1498
+ value: {
1499
+ type: null,
1500
+ required: true
1501
+ },
1502
+ params: {
1503
+ type: Object,
1504
+ required: false
1505
+ },
1506
+ data: {
1507
+ type: Object,
1508
+ required: false
1509
+ },
1510
+ fieldNames: {
1511
+ type: null,
1512
+ required: false,
1513
+ "default": function _default() {
1514
+ return {
1515
+ label: "name",
1516
+ value: "id"
1517
+ };
1518
+ }
1519
+ }
1520
+ },
1521
+ emits: ["update:value", "change"],
1522
+ setup: function setup(__props, _ref) {
1523
+ var emit = _ref.emit;
1524
+ var props = __props;
1525
+ /**
1526
+ * 获取数据-------------------------------------
1527
+ * */
1528
+
1529
+ var dataV = ref();
1530
+
1531
+ var getData = /*#__PURE__*/function () {
1532
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1533
+ var _option,
1534
+ _a,
1535
+ _args = arguments;
1536
+
1537
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1538
+ while (1) {
1539
+ switch (_context.prev = _context.next) {
1540
+ case 0:
1541
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1542
+ _context.next = 3;
1543
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpProdBaseDropdown.url, _option.params), assign({
1544
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1545
+ }, API_OPTION.getIVMrpProdBaseDropdown.option)));
1546
+
1547
+ case 3:
1548
+ dataV.value = _context.sent;
1549
+
1550
+ case 4:
1551
+ case "end":
1552
+ return _context.stop();
1553
+ }
1554
+ }
1555
+ }, _callee);
1556
+ }));
1557
+
1558
+ return function getData() {
1559
+ return _ref2.apply(this, arguments);
1560
+ };
1561
+ }();
1562
+
1563
+ var inputV = computed({
1564
+ get: function get() {
1565
+ return props.value;
1566
+ },
1567
+ set: function set(value) {
1568
+ emit("update:value", value);
1569
+ }
1570
+ });
1571
+ /**
1572
+ * 侦听器-------------------------------------
1573
+ * */
1574
+
1575
+ watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1576
+ var _a, _b;
1577
+
1578
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1579
+ while (1) {
1580
+ switch (_context2.prev = _context2.next) {
1581
+ case 0:
1582
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1583
+ getData({
1584
+ params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
1585
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1586
+ });
1587
+
1588
+ case 1:
1589
+ case "end":
1590
+ return _context2.stop();
1591
+ }
1592
+ }
1593
+ }, _callee2);
1594
+ })));
1595
+ return function (_ctx, _cache) {
1596
+ var _component_a_select = resolveComponent("a-select");
1597
+
1598
+ var _component_a_form_item = resolveComponent("a-form-item");
1599
+
1600
+ return openBlock(), createBlock(_component_a_form_item, {
1601
+ name: "organizationIds",
1602
+ "wrapper-col": {
1603
+ span: 8
1604
+ },
1605
+ rules: [{
1606
+ required: true,
1607
+ message: '请选择所属基地'
1608
+ }]
1609
+ }, {
1610
+ label: withCtx(function () {
1611
+ return [_hoisted_1$5];
1612
+ }),
1613
+ "default": withCtx(function () {
1614
+ return [createVNode(_component_a_select, {
1615
+ getPopupContainer: function getPopupContainer(triggerNode) {
1616
+ return triggerNode.parentNode;
1617
+ },
1618
+ value: unref(inputV),
1619
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1620
+ return isRef(inputV) ? inputV.value = $event : null;
1621
+ }),
1622
+ mode: "multiple",
1623
+ style: {
1624
+ "width": "100%"
1625
+ },
1626
+ placeholder: "请选择",
1627
+ options: dataV.value,
1628
+ fieldNames: __props.fieldNames,
1629
+ showSearch: "",
1630
+ onChange: _cache[1] || (_cache[1] = function ($event) {
1631
+ return _ctx.$emit('change', $event);
1632
+ }),
1633
+ "filter-option": unref(filterOptionHeadle)
1634
+ }, null, 8
1635
+ /* PROPS */
1636
+ , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1637
+ }),
1638
+ _: 1
1639
+ /* STABLE */
1640
+
1641
+ });
1642
+ };
1643
+ }
1644
+ });
1645
+
1646
+ script$5.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
1647
+
1648
+ var _hoisted_1$4 = /*#__PURE__*/createElementVNode("div", {
1649
+ "class": "text-[#0000006D] text-[14px]"
1650
+ }, "所属条线", -1
1651
+ /* HOISTED */
1652
+ );
1653
+ /**
1654
+ * 组件定义-------------------------------------
1655
+ * */
1656
+
1657
+ var script$4 = /*#__PURE__*/defineComponent({
1658
+ __name: 'IVMrpLineDropdown',
1659
+ props: {
1660
+ value: {
1661
+ type: null,
1662
+ required: true
1663
+ },
1664
+ params: {
1665
+ type: Object,
1666
+ required: false
1667
+ },
1668
+ data: {
1669
+ type: Object,
1670
+ required: false
1671
+ },
1672
+ fieldNames: {
1673
+ type: null,
1674
+ required: false,
1675
+ "default": function _default() {
1676
+ return {
1677
+ label: "displayName",
1678
+ value: "id"
1679
+ };
1680
+ }
1681
+ }
1682
+ },
1683
+ emits: ["update:value", "change"],
1684
+ setup: function setup(__props, _ref) {
1685
+ var emit = _ref.emit;
1686
+ var props = __props;
1687
+ /**
1688
+ * 获取数据-------------------------------------
1689
+ * */
1690
+
1691
+ var dataV = ref();
1692
+
1693
+ var getData = /*#__PURE__*/function () {
1694
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1695
+ var _option,
1696
+ _a,
1697
+ _yield$formatHTTP,
1698
+ items,
1699
+ _args = arguments;
1700
+
1701
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1702
+ while (1) {
1703
+ switch (_context.prev = _context.next) {
1704
+ case 0:
1705
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1706
+ _context.next = 3;
1707
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpLineDropdown.url, _option.params), assign({
1708
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1709
+ }, API_OPTION.getIVMrpLineDropdown.option)));
1710
+
1711
+ case 3:
1712
+ _yield$formatHTTP = _context.sent;
1713
+ items = _yield$formatHTTP.items;
1714
+ dataV.value = items;
1715
+
1716
+ case 6:
1717
+ case "end":
1718
+ return _context.stop();
1719
+ }
1720
+ }
1721
+ }, _callee);
1722
+ }));
1723
+
1724
+ return function getData() {
1725
+ return _ref2.apply(this, arguments);
1726
+ };
1727
+ }();
1728
+
1729
+ var inputV = computed({
1730
+ get: function get() {
1731
+ return props.value;
1732
+ },
1733
+ set: function set(value) {
1734
+ emit("update:value", value);
1735
+ }
1736
+ });
1737
+ /**
1738
+ * 侦听器-------------------------------------
1739
+ * */
1740
+
1741
+ watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1742
+ var _a, _b;
1743
+
1744
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1745
+ while (1) {
1746
+ switch (_context2.prev = _context2.next) {
1747
+ case 0:
1748
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1749
+ getData({
1750
+ params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
1751
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1752
+ });
1753
+
1754
+ case 1:
1755
+ case "end":
1756
+ return _context2.stop();
1757
+ }
1758
+ }
1759
+ }, _callee2);
1760
+ })));
1761
+ return function (_ctx, _cache) {
1762
+ var _component_a_select = resolveComponent("a-select");
1763
+
1764
+ var _component_a_form_item = resolveComponent("a-form-item");
1765
+
1766
+ return openBlock(), createBlock(_component_a_form_item, {
1767
+ name: "lineIds",
1768
+ "wrapper-col": {
1769
+ span: 8
1770
+ },
1771
+ rules: [{
1772
+ required: true,
1773
+ message: '请选择所属条线'
1774
+ }]
1775
+ }, {
1776
+ label: withCtx(function () {
1777
+ return [_hoisted_1$4];
1778
+ }),
1779
+ "default": withCtx(function () {
1780
+ return [createVNode(_component_a_select, {
1781
+ getPopupContainer: function getPopupContainer(triggerNode) {
1782
+ return triggerNode.parentNode;
1783
+ },
1784
+ value: unref(inputV),
1785
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1786
+ return isRef(inputV) ? inputV.value = $event : null;
1787
+ }),
1788
+ mode: "multiple",
1789
+ style: {
1790
+ "width": "100%"
1791
+ },
1792
+ placeholder: "请选择",
1793
+ options: dataV.value,
1794
+ fieldNames: __props.fieldNames,
1795
+ showSearch: "",
1796
+ onChange: _cache[1] || (_cache[1] = function ($event) {
1797
+ return _ctx.$emit('change', $event);
1798
+ }),
1799
+ "filter-option": unref(filterOptionHeadle)
1800
+ }, null, 8
1801
+ /* PROPS */
1802
+ , ["getPopupContainer", "value", "options", "fieldNames", "filter-option"])];
1803
+ }),
1804
+ _: 1
1805
+ /* STABLE */
1806
+
1807
+ });
1808
+ };
1809
+ }
1810
+ });
1811
+
1812
+ script$4.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
1813
+
1814
+ var _hoisted_1$3 = /*#__PURE__*/createElementVNode("div", {
1815
+ "class": "text-[#0000006D] text-[14px]"
1816
+ }, "所属账套", -1
1817
+ /* HOISTED */
1818
+ );
1819
+ /**
1820
+ * 组件定义-------------------------------------
1821
+ * */
1822
+
1823
+ var script$3 = /*#__PURE__*/defineComponent({
1824
+ __name: 'IVMrpSetofbookDropdown',
1825
+ props: {
1826
+ value: {
1827
+ type: null,
1828
+ required: true
1829
+ },
1830
+ params: {
1831
+ type: Object,
1832
+ required: false
1833
+ },
1834
+ data: {
1835
+ type: Object,
1836
+ required: false
1837
+ },
1838
+ replaceFields: {
1839
+ type: null,
1840
+ required: false,
1841
+ "default": function _default() {
1842
+ return {
1843
+ children: "children",
1844
+ label: "name",
1845
+ key: "id",
1846
+ value: "id"
1847
+ };
1848
+ }
1849
+ },
1850
+ multiple: {
1851
+ type: Boolean,
1852
+ required: false,
1853
+ "default": true
1854
+ }
1855
+ },
1856
+ emits: ["update:value", "change"],
1857
+ setup: function setup(__props, _ref) {
1858
+ var emit = _ref.emit;
1859
+ var props = __props;
1860
+ /**
1861
+ * 获取数据-------------------------------------
1862
+ * */
1863
+
1864
+ var dataV = ref();
1865
+
1866
+ var getData = /*#__PURE__*/function () {
1867
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
1868
+ var _option,
1869
+ _a,
1870
+ _yield$formatHTTP,
1871
+ items,
1872
+ _args = arguments;
1873
+
1874
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1875
+ while (1) {
1876
+ switch (_context.prev = _context.next) {
1877
+ case 0:
1878
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
1879
+ _context.next = 3;
1880
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
1881
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
1882
+ }, API_OPTION.getIVMrpSetofbookDropdown.option)));
1883
+
1884
+ case 3:
1885
+ _yield$formatHTTP = _context.sent;
1886
+ items = _yield$formatHTTP.items;
1887
+ dataV.value = tranListToTreeData(items);
1888
+
1889
+ case 6:
1890
+ case "end":
1891
+ return _context.stop();
1892
+ }
1893
+ }
1894
+ }, _callee);
1895
+ }));
1896
+
1897
+ return function getData() {
1898
+ return _ref2.apply(this, arguments);
1899
+ };
1900
+ }();
1901
+
1902
+ var inputV = computed({
1903
+ get: function get() {
1904
+ return props.value;
1905
+ },
1906
+ set: function set(value) {
1907
+ emit("update:value", value);
1908
+ }
1909
+ });
1910
+ /**
1911
+ * 侦听器-------------------------------------
1912
+ * */
1913
+
1914
+ watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1915
+ var _a, _b;
1916
+
1917
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1918
+ while (1) {
1919
+ switch (_context2.prev = _context2.next) {
1920
+ case 0:
1921
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
1922
+ getData({
1923
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
1924
+ type: 1
1925
+ }),
1926
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
1927
+ });
1928
+
1929
+ case 1:
1930
+ case "end":
1931
+ return _context2.stop();
1932
+ }
1933
+ }
1934
+ }, _callee2);
1935
+ })));
1936
+ return function (_ctx, _cache) {
1937
+ var _component_a_tree_select = resolveComponent("a-tree-select");
1938
+
1939
+ var _component_a_form_item = resolveComponent("a-form-item");
1940
+
1941
+ return openBlock(), createBlock(_component_a_form_item, {
1942
+ name: "setOfBookIds",
1943
+ "wrapper-col": {
1944
+ span: 8
1945
+ },
1946
+ rules: [{
1947
+ required: true,
1948
+ message: '请选择所属账套'
1949
+ }]
1950
+ }, {
1951
+ label: withCtx(function () {
1952
+ return [_hoisted_1$3];
1953
+ }),
1954
+ "default": withCtx(function () {
1955
+ return [createVNode(_component_a_tree_select, {
1956
+ value: unref(inputV),
1957
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
1958
+ return isRef(inputV) ? inputV.value = $event : null;
1959
+ }),
1960
+ "tree-data": dataV.value,
1961
+ getPopupContainer: function getPopupContainer(triggerNode) {
1962
+ return triggerNode.parentNode;
1963
+ },
1964
+ placeholder: "请选择",
1965
+ showArrow: "",
1966
+ showSearch: "",
1967
+ "filter-option": unref(filterOptionHeadle),
1968
+ multiple: __props.multiple,
1969
+ treeDefaultExpandAll: "",
1970
+ style: {
1971
+ "width": "300px"
1972
+ },
1973
+ onChange: _cache[1] || (_cache[1] = function ($event) {
1974
+ return _ctx.$emit('change', $event);
1975
+ }),
1976
+ replaceFields: __props.replaceFields
1977
+ }, null, 8
1978
+ /* PROPS */
1979
+ , ["value", "tree-data", "getPopupContainer", "filter-option", "multiple", "replaceFields"])];
1980
+ }),
1981
+ _: 1
1982
+ /* STABLE */
1983
+
1984
+ });
1985
+ };
1986
+ }
1987
+ });
1988
+
1989
+ script$3.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
1990
+
1991
+ var _hoisted_1$2 = /*#__PURE__*/createElementVNode("div", {
1992
+ "class": "text-[#0000006D] text-[14px]"
1993
+ }, "岗位", -1
1994
+ /* HOISTED */
1995
+ );
1996
+ /**
1997
+ * 组件定义-------------------------------------
1998
+ * */
1999
+
2000
+ var script$2 = /*#__PURE__*/defineComponent({
2001
+ __name: 'IVMrpPostDropdown',
2002
+ props: {
2003
+ value: {
2004
+ type: null,
2005
+ required: true
2006
+ },
2007
+ params: {
2008
+ type: Object,
2009
+ required: false
2010
+ },
2011
+ data: {
2012
+ type: Object,
2013
+ required: false
2014
+ },
2015
+ fieldNames: {
2016
+ type: null,
2017
+ required: false,
2018
+ "default": function _default() {
2019
+ return {
2020
+ label: "name",
2021
+ value: "id"
2022
+ };
2023
+ }
2024
+ }
2025
+ },
2026
+ emits: ["update:value", "change"],
2027
+ setup: function setup(__props, _ref) {
2028
+ var emit = _ref.emit;
2029
+ var props = __props;
2030
+ /**
2031
+ * 获取数据-------------------------------------
2032
+ * */
2033
+
2034
+ var dataV = ref();
2035
+
2036
+ var getData = /*#__PURE__*/function () {
2037
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2038
+ var _option,
2039
+ _a,
2040
+ _yield$formatHTTP,
2041
+ items,
2042
+ _args = arguments;
2043
+
2044
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2045
+ while (1) {
2046
+ switch (_context.prev = _context.next) {
2047
+ case 0:
2048
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
2049
+ _context.next = 3;
2050
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpPostDropdown.url, _option.params), assign({
2051
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
2052
+ }, API_OPTION.getIVMrpPostDropdown.option)));
2053
+
2054
+ case 3:
2055
+ _yield$formatHTTP = _context.sent;
2056
+ items = _yield$formatHTTP.items;
2057
+ dataV.value = items;
2058
+
2059
+ case 6:
2060
+ case "end":
2061
+ return _context.stop();
2062
+ }
2063
+ }
2064
+ }, _callee);
2065
+ }));
2066
+
2067
+ return function getData() {
2068
+ return _ref2.apply(this, arguments);
2069
+ };
2070
+ }();
2071
+
2072
+ var inputV = computed({
2073
+ get: function get() {
2074
+ return props.value;
2075
+ },
2076
+ set: function set(value) {
2077
+ emit("update:value", value);
2078
+ }
2079
+ });
2080
+ /**
2081
+ * 侦听器-------------------------------------
2082
+ * */
2083
+
2084
+ watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
2085
+ var _a, _b;
2086
+
2087
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2088
+ while (1) {
2089
+ switch (_context2.prev = _context2.next) {
2090
+ case 0:
2091
+ // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
2092
+ getData({
2093
+ params: (_a = props.params) !== null && _a !== void 0 ? _a : null,
2094
+ data: (_b = props.data) !== null && _b !== void 0 ? _b : null
2095
+ });
2096
+
2097
+ case 1:
2098
+ case "end":
2099
+ return _context2.stop();
2100
+ }
2101
+ }
2102
+ }, _callee2);
2103
+ })));
2104
+ return function (_ctx, _cache) {
2105
+ var _component_a_select = resolveComponent("a-select");
2106
+
2107
+ var _component_a_form_item = resolveComponent("a-form-item");
2108
+
2109
+ return openBlock(), createBlock(_component_a_form_item, {
2110
+ name: "positionId",
2111
+ rules: [{
2112
+ required: true,
2113
+ message: '请选择岗位'
2114
+ }]
2115
+ }, {
2116
+ label: withCtx(function () {
2117
+ return [_hoisted_1$2];
2118
+ }),
2119
+ "default": withCtx(function () {
2120
+ return [createVNode(_component_a_select, {
2121
+ value: unref(inputV),
2122
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
2123
+ return isRef(inputV) ? inputV.value = $event : null;
2124
+ }),
2125
+ getPopupContainer: function getPopupContainer(triggerNode) {
2126
+ return triggerNode.parentNode;
2127
+ },
2128
+ allowClear: "",
2129
+ style: {
2130
+ "width": "300px"
2131
+ },
2132
+ placeholder: "请选择",
2133
+ showSearch: "",
2134
+ showArrow: "",
2135
+ options: dataV.value,
2136
+ "filter-option": unref(filterOptionHeadle),
2137
+ onChange: _cache[1] || (_cache[1] = function ($event) {
2138
+ return _ctx.$emit('change', $event);
2139
+ }),
2140
+ fieldNames: __props.fieldNames
2141
+ }, null, 8
2142
+ /* PROPS */
2143
+ , ["value", "getPopupContainer", "options", "filter-option", "fieldNames"])];
2144
+ }),
2145
+ _: 1
2146
+ /* STABLE */
2147
+
2148
+ });
2149
+ };
2150
+ }
2151
+ });
2152
+
2153
+ script$2.__file = "src/business-ui/component/IVMrpPostDropdown.vue";
2154
+
2155
+ var _hoisted_1$1 = {
2156
+ "class": "relative mt-[8px] w-[30px] h-[23px]"
2157
+ };
2158
+ var _hoisted_2$1 = createElementVNode("svg", {
2159
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2160
+ xmlns: "http://www.w3.org/2000/svg",
2161
+ version: "1.1",
2162
+ width: "23px",
2163
+ height: "23px",
2164
+ "class": "absolute"
2165
+ }, [createElementVNode("g", {
2166
+ transform: "matrix(1 0 0 1 -256 -275 )"
2167
+ }, [createElementVNode("path", {
2168
+ d: "M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z ",
2169
+ "fill-rule": "nonzero",
2170
+ fill: "#bd9e55",
2171
+ stroke: "none",
2172
+ transform: "matrix(1 0 0 1 256 275 )"
2173
+ })])], -1
2174
+ );
2175
+ var _hoisted_3$1 = createElementVNode("svg", {
2176
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2177
+ xmlns: "http://www.w3.org/2000/svg",
2178
+ version: "1.1",
2179
+ width: "23px",
2180
+ height: "23px",
2181
+ "class": "absolute left-[7px] bottom-[7px]"
2182
+ }, [createElementVNode("g", {
2183
+ transform: "matrix(1 0 0 1 -263 -268 )"
2184
+ }, [createElementVNode("path", {
2185
+ d: "M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z ",
2186
+ "fill-rule": "nonzero",
2187
+ fill: "#bd9e55",
2188
+ stroke: "none",
2189
+ transform: "matrix(1 0 0 1 263 268 )"
2190
+ })])], -1
2191
+ );
2192
+ var _hoisted_4$1 = [_hoisted_2$1, _hoisted_3$1];
2193
+ function render(_ctx, _cache) {
2194
+ return openBlock(), createElementBlock("div", _hoisted_1$1, _hoisted_4$1);
2195
+ }
2196
+
2197
+ var script$1 = {};
2198
+ script$1.render = render;
2199
+ script$1.__file = "src/business-ui/component/icon/SelectorIcon.vue";
2200
+
2201
+ var _withScopeId = function _withScopeId(n) {
2202
+ return pushScopeId("data-v-15a6b582"), n = n(), popScopeId(), n;
2203
+ };
2204
+
2205
+ var _hoisted_1 = {
2206
+ "class": "flex items-center h-[60px] pl-[40px] bg-[#97D2FD]"
2207
+ };
2208
+
2209
+ var _hoisted_2 = /*#__PURE__*/_withScopeId(function () {
2210
+ return /*#__PURE__*/createElementVNode("span", {
2211
+ "class": "text-xl text-[#bd9e55] pl-2"
2212
+ }, "选择人员", -1
2213
+ /* HOISTED */
2214
+ );
2215
+ });
2216
+
2217
+ var _hoisted_3 = {
2218
+ "class": "px-[150px]"
2219
+ };
2220
+ var _hoisted_4 = {
2221
+ "class": "mx-10"
2222
+ };
2223
+ var _hoisted_5 = {
2224
+ "class": "flex items-center my-4 justify-center"
2225
+ };
2226
+
2227
+ var _hoisted_6 = /*#__PURE__*/createTextVNode(" 搜索 ");
2228
+
2229
+ var _hoisted_7 = {
2230
+ "class": "mt-10"
2231
+ };
2232
+ var _hoisted_8 = {
2233
+ "class": "flex justify-between mb-2"
2234
+ };
2235
+ var _hoisted_9 = {
2236
+ "class": "text-[#999999]"
2237
+ };
2238
+
2239
+ var _hoisted_10 = /*#__PURE__*/createTextVNode(" 共有 ");
2240
+
2241
+ var _hoisted_11 = {
2242
+ "class": "text-[#BD9E55] text-[16px]"
2243
+ };
2244
+
2245
+ var _hoisted_12 = /*#__PURE__*/createTextVNode(" 个记录满足条件,当前第 ");
2246
+
2247
+ var _hoisted_13 = {
2248
+ "class": "text-[#BD9E55] text-[16px]"
2249
+ };
2250
+
2251
+ var _hoisted_14 = /*#__PURE__*/createTextVNode(" 页,跳转到第 ");
2252
+
2253
+ var _hoisted_15 = {
2254
+ "class": "text-[#BD9E55] text-[16px]"
2255
+ };
2256
+
2257
+ var _hoisted_16 = /*#__PURE__*/createTextVNode(" 页 ");
2258
+
2259
+ var _hoisted_17 = {
2260
+ "class": "contentList"
2261
+ };
2262
+ var _hoisted_18 = ["onClick"];
2263
+ var _hoisted_19 = {
2264
+ key: 0
2265
+ };
2266
+ var _hoisted_20 = {
2267
+ "class": "flex items-center justify-around text-[#006AB2] text-[13px]"
2268
+ };
2269
+ var _hoisted_21 = ["onClick"];
2270
+ /**
2271
+ * 组件定义-------------------------------------
2272
+ * */
2273
+
2274
+ var script = /*#__PURE__*/defineComponent({
2275
+ __name: 'IVMrpUserSelector',
2276
+ props: {
2277
+ show: {
2278
+ type: Boolean,
2279
+ required: true,
2280
+ "default": false
2281
+ }
2282
+ },
2283
+ emits: ["update:show", "getItem"],
2284
+ setup: function setup(__props, _ref) {
2285
+ var emit = _ref.emit;
2286
+ var props = __props;
2287
+ console.log(props.show);
2288
+ /**
2289
+ * 搜索-------------------------------------
2290
+ * */
2291
+
2292
+ var formData = reactive({
2293
+ name: null,
2294
+ phoneNumber: null,
2295
+ workNo: null,
2296
+ positionId: null,
2297
+ organizationId: null,
2298
+ lineId: null,
2299
+ sorting: null,
2300
+ skipCount: 0,
2301
+ maxResultCount: 10
2302
+ });
2303
+ /**
2304
+ * 获取数据-------------------------------------
2305
+ * */
2306
+
2307
+ var dataV = ref();
2308
+
2309
+ var getData = /*#__PURE__*/function () {
2310
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2311
+ var _option,
2312
+ _a,
2313
+ _yield$formatHTTP,
2314
+ items,
2315
+ totalCount,
2316
+ _args = arguments;
2317
+
2318
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2319
+ while (1) {
2320
+ switch (_context.prev = _context.next) {
2321
+ case 0:
2322
+ _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
2323
+ _context.next = 3;
2324
+ return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpUserSelector.url, _option.params), assign({
2325
+ data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
2326
+ }, API_OPTION.getIVMrpUserSelector.option)));
2327
+
2328
+ case 3:
2329
+ _yield$formatHTTP = _context.sent;
2330
+ items = _yield$formatHTTP.items;
2331
+ totalCount = _yield$formatHTTP.totalCount;
2332
+ dataV.value = items;
2333
+ totalPages.value = totalCount;
2334
+ topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
2335
+
2336
+ case 9:
2337
+ case "end":
2338
+ return _context.stop();
2339
+ }
2340
+ }
2341
+ }, _callee);
2342
+ }));
2343
+
2344
+ return function getData() {
2345
+ return _ref2.apply(this, arguments);
2346
+ };
2347
+ }();
2348
+ /**
2349
+ * 表格-------------------------------------
2350
+ * */
2351
+
2352
+
2353
+ var th = ref([{
2354
+ title: "序号",
2355
+ w: 54 / 1499 * 100 + "%",
2356
+ key: "index",
2357
+ show: true
2358
+ }, {
2359
+ title: "人员编号",
2360
+ w: 120 / 1499 * 100 + "%",
2361
+ key: "workNo",
2362
+ show: true
2363
+ }, {
2364
+ title: "所属部门",
2365
+ w: 200 / 1499 * 100 + "%",
2366
+ key: "organizationName",
2367
+ show: true
2368
+ }, {
2369
+ title: "所属条线",
2370
+ w: 200 / 1499 * 100 + "%",
2371
+ key: "lineNames",
2372
+ show: true,
2373
+ custom: true
2374
+ }, {
2375
+ title: "岗位",
2376
+ w: 200 / 1499 * 100 + "%",
2377
+ key: "positionName",
2378
+ show: true
2379
+ }, {
2380
+ title: "姓名",
2381
+ w: 200 / 1499 * 100 + "%",
2382
+ key: "name",
2383
+ show: true,
2384
+ custom: true
2385
+ }, {
2386
+ title: "手机号码",
2387
+ w: 130 / 1499 * 100 + "%",
2388
+ key: "phoneNumber",
2389
+ show: true
2390
+ }, {
2391
+ title: "",
2392
+ w: 80 / 1333 * 100 + "%",
2393
+ key: "buttonSlot",
2394
+ show: true
2395
+ }]); // 更新th
2396
+
2397
+ var upth = function upth(val) {
2398
+ th.value = val;
2399
+ }; //获取指定记录
2400
+
2401
+
2402
+ function sendItem(_x) {
2403
+ return _sendItem.apply(this, arguments);
2404
+ }
2405
+ /**
2406
+ * 分页-------------------------------------
2407
+ * */
2408
+
2409
+
2410
+ function _sendItem() {
2411
+ _sendItem = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
2412
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2413
+ while (1) {
2414
+ switch (_context2.prev = _context2.next) {
2415
+ case 0:
2416
+ emit("getItem", JSON.stringify(item));
2417
+ inputV.value = false;
2418
+
2419
+ case 2:
2420
+ case "end":
2421
+ return _context2.stop();
2422
+ }
2423
+ }
2424
+ }, _callee2);
2425
+ }));
2426
+ return _sendItem.apply(this, arguments);
2427
+ }
2428
+
2429
+ var currentPages = ref(1);
2430
+ var topCurrentPages = ref(1);
2431
+ var topPages = ref(0);
2432
+ var topSelectPages = ref(1);
2433
+ var totalPages = ref(0); // 重置搜索分页
2434
+
2435
+ function resetPagination() {
2436
+ formData.skipCount = 0;
2437
+ currentPages.value = 1;
2438
+ topCurrentPages.value = 1;
2439
+ topPages.value = 0;
2440
+ topSelectPages.value = 1;
2441
+ }
2442
+
2443
+ function onPageChange(current, pageSize) {
2444
+ topCurrentPages.value = current;
2445
+ topSelectPages.value = current;
2446
+ currentPages.value = current;
2447
+ formData.skipCount = (current - 1) * pageSize;
2448
+ formData.maxResultCount = pageSize;
2449
+ getData({
2450
+ params: formData
2451
+ });
2452
+ }
2453
+
2454
+ function onShowSizeChange(current, pageSize) {
2455
+ topCurrentPages.value = current;
2456
+ topSelectPages.value = current;
2457
+ formData.maxResultCount = pageSize;
2458
+ getData({
2459
+ params: formData
2460
+ });
2461
+ }
2462
+
2463
+ function onSelectTopPage(id) {
2464
+ topSelectPages.value = id;
2465
+ currentPages.value = id;
2466
+ onPageChange(id, formData.maxResultCount);
2467
+ }
2468
+
2469
+ function onSearch() {
2470
+ resetPagination();
2471
+ getData({
2472
+ params: formData
2473
+ });
2474
+ }
2475
+
2476
+ onBeforeMount(function () {
2477
+ getData({
2478
+ params: formData
2479
+ });
2480
+ });
2481
+ var inputV = computed({
2482
+ get: function get() {
2483
+ return props.show;
2484
+ },
2485
+ set: function set(value) {
2486
+ emit("update:show", value);
2487
+ }
2488
+ });
2489
+ return function (_ctx, _cache) {
2490
+ var _component_a_input = resolveComponent("a-input");
2491
+
2492
+ var _component_a_button = resolveComponent("a-button");
2493
+
2494
+ var _component_DownOutlined = resolveComponent("DownOutlined");
2495
+
2496
+ var _component_a_menu_item = resolveComponent("a-menu-item");
2497
+
2498
+ var _component_a_menu = resolveComponent("a-menu");
2499
+
2500
+ var _component_a_dropdown = resolveComponent("a-dropdown");
2501
+
2502
+ return openBlock(), createBlock(script$9, {
2503
+ show: unref(inputV),
2504
+ "onUpdate:show": _cache[5] || (_cache[5] = function ($event) {
2505
+ return isRef(inputV) ? inputV.value = $event : null;
2506
+ }),
2507
+ "remove-padding": false
2508
+ }, {
2509
+ title: withCtx(function () {
2510
+ return [createElementVNode("div", _hoisted_1, [createVNode(script$1), _hoisted_2])];
2511
+ }),
2512
+ body: withCtx(function () {
2513
+ return [createElementVNode("div", _hoisted_3, [createCommentVNode(" 搜索 "), createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createVNode(unref(script$6), {
2514
+ value: formData.organizationId,
2515
+ "onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
2516
+ return formData.organizationId = $event;
2517
+ }),
2518
+ onChange: onSearch
2519
+ }, null, 8
2520
+ /* PROPS */
2521
+ , ["value"]), createVNode(unref(script$4), {
2522
+ value: formData.lineId,
2523
+ "onUpdate:value": _cache[1] || (_cache[1] = function ($event) {
2524
+ return formData.lineId = $event;
2525
+ }),
2526
+ onChange: onSearch
2527
+ }, null, 8
2528
+ /* PROPS */
2529
+ , ["value"]), createVNode(unref(script$2), {
2530
+ value: formData.positionId,
2531
+ "onUpdate:value": _cache[2] || (_cache[2] = function ($event) {
2532
+ return formData.positionId = $event;
2533
+ }),
2534
+ onChange: onSearch
2535
+ }, null, 8
2536
+ /* PROPS */
2537
+ , ["value"]), createVNode(_component_a_input, {
2538
+ value: formData.name,
2539
+ "onUpdate:value": _cache[3] || (_cache[3] = function ($event) {
2540
+ return formData.name = $event;
2541
+ }),
2542
+ style: {
2543
+ "width": "300px",
2544
+ "margin-right": "15px"
2545
+ },
2546
+ "class": "mr-4",
2547
+ placeholder: "请输入员工编号,姓名,或手机号码",
2548
+ onKeyup: withKeys(onSearch, ["enter"])
2549
+ }, null, 8
2550
+ /* PROPS */
2551
+ , ["value", "onKeyup"]), createVNode(_component_a_button, {
2552
+ style: {
2553
+ "padding": "4px 10px",
2554
+ "border-radius": "4px",
2555
+ "background": "#006ab2",
2556
+ "margin-right": "15px",
2557
+ "color": "#fff"
2558
+ },
2559
+ onClick: onSearch
2560
+ }, {
2561
+ "default": withCtx(function () {
2562
+ return [_hoisted_6];
2563
+ }),
2564
+ _: 1
2565
+ /* STABLE */
2566
+
2567
+ })])]), createCommentVNode(" 主体 "), createElementVNode("div", _hoisted_7, [createCommentVNode(" 分页 "), createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [_hoisted_10, createElementVNode("span", _hoisted_11, toDisplayString(totalPages.value), 1
2568
+ /* TEXT */
2569
+ ), _hoisted_12, createElementVNode("span", _hoisted_13, toDisplayString(topCurrentPages.value), 1
2570
+ /* TEXT */
2571
+ ), _hoisted_14, createVNode(_component_a_dropdown, {
2572
+ trigger: ['click']
2573
+ }, {
2574
+ overlay: withCtx(function () {
2575
+ return [createVNode(_component_a_menu, {
2576
+ getPopupContainer: function getPopupContainer(triggerNode) {
2577
+ return triggerNode.parentNode;
2578
+ },
2579
+ "class": "max-h-40 overflow-y-auto scrollbar"
2580
+ }, {
2581
+ "default": withCtx(function () {
2582
+ return [(openBlock(true), createElementBlock(Fragment, null, renderList(topPages.value, function (e) {
2583
+ return openBlock(), createBlock(_component_a_menu_item, {
2584
+ key: e,
2585
+ onClick: function onClick($event) {
2586
+ return onSelectTopPage(e);
2587
+ }
2588
+ }, {
2589
+ "default": withCtx(function () {
2590
+ return [createTextVNode(toDisplayString(e), 1
2591
+ /* TEXT */
2592
+ )];
2593
+ }),
2594
+ _: 2
2595
+ /* DYNAMIC */
2596
+
2597
+ }, 1032
2598
+ /* PROPS, DYNAMIC_SLOTS */
2599
+ , ["onClick"]);
2600
+ }), 128
2601
+ /* KEYED_FRAGMENT */
2602
+ ))];
2603
+ }),
2604
+ _: 1
2605
+ /* STABLE */
2606
+
2607
+ }, 8
2608
+ /* PROPS */
2609
+ , ["getPopupContainer"])];
2610
+ }),
2611
+ "default": withCtx(function () {
2612
+ return [createElementVNode("a", {
2613
+ "class": "pl-2 ant-dropdown-link border-b border-[#BD9E55]",
2614
+ onClick: _cache[4] || (_cache[4] = withModifiers(function () {}, ["prevent"]))
2615
+ }, [createElementVNode("span", _hoisted_15, toDisplayString(topSelectPages.value), 1
2616
+ /* TEXT */
2617
+ ), createVNode(_component_DownOutlined, {
2618
+ "class": "align-middle ml-1 mb-[4px]",
2619
+ style: {
2620
+ "font-size": "16px"
2621
+ }
2622
+ })])];
2623
+ }),
2624
+ _: 1
2625
+ /* STABLE */
2626
+
2627
+ }), _hoisted_16])]), createElementVNode("div", _hoisted_17, [createVNode(unref(script$8), {
2628
+ dataTh: unref(th),
2629
+ contractExecDocList: dataV.value,
2630
+ currentPages: currentPages.value,
2631
+ totalPages: totalPages.value,
2632
+ formData: formData,
2633
+ setHeight: 40,
2634
+ onOnPageChange: onPageChange,
2635
+ onOnShowSizeChange: onShowSizeChange,
2636
+ onUpth: upth
2637
+ }, {
2638
+ name: withCtx(function (e) {
2639
+ return [createElementVNode("span", {
2640
+ "class": "text-[#006AB2] cursor-pointer",
2641
+ onClick: function onClick($event) {
2642
+ return sendItem(e.item);
2643
+ }
2644
+ }, toDisplayString(e.item.name), 9
2645
+ /* TEXT, PROPS */
2646
+ , _hoisted_18)];
2647
+ }),
2648
+ lineNames: withCtx(function (e) {
2649
+ return [(openBlock(true), createElementBlock(Fragment, null, renderList(e.item.lineNames, function (item, index) {
2650
+ return openBlock(), createElementBlock("span", null, [createTextVNode(toDisplayString(item) + " ", 1
2651
+ /* TEXT */
2652
+ ), index !== e.item.lineNames.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_19, ",")) : createCommentVNode("v-if", true)]);
2653
+ }), 256
2654
+ /* UNKEYED_FRAGMENT */
2655
+ ))];
2656
+ }),
2657
+ buttonSlot: withCtx(function (buttonSlot) {
2658
+ return [createElementVNode("div", _hoisted_20, [createElementVNode("span", {
2659
+ "class": "cursor-pointer",
2660
+ onClick: function onClick($event) {
2661
+ return sendItem(buttonSlot.item);
2662
+ }
2663
+ }, "选择", 8
2664
+ /* PROPS */
2665
+ , _hoisted_21)])];
2666
+ }),
2667
+ _: 1
2668
+ /* STABLE */
2669
+
2670
+ }, 8
2671
+ /* PROPS */
2672
+ , ["dataTh", "contractExecDocList", "currentPages", "totalPages", "formData"])])])])];
2673
+ }),
2674
+ _: 1
2675
+ /* STABLE */
2676
+
2677
+ }, 8
2678
+ /* PROPS */
2679
+ , ["show"]);
2680
+ };
2681
+ }
2682
+ });
2683
+
2684
+ script.__scopeId = "data-v-15a6b582";
2685
+ script.__file = "src/business-ui/component/IVMrpUserSelector.vue";
2686
+
2687
+ /*
2688
+ * @Author: Mr.Cong Wei
2689
+ * @Date: 2022-08-08 18:47:06
2690
+ * @LastEditTime: 2022-08-11 14:35:19
2691
+ */
2692
+ var components = [script$9, script$6, script$5, script$4, script$3, script$2, script$8, script$7, script];
2693
+ installComponents(); // 单独引用
2694
+
2695
+ function installComponents() {
2696
+ components.forEach(function (component) {
2697
+ component.install = function (app) {
2698
+ app.component(component.name, component);
2699
+ };
2700
+ });
2701
+ } // 全局引用
2702
+
2703
+
2704
+ var install = function install(app) {
2705
+ components.forEach(function (component) {
2706
+ app.component(component.name, component);
2707
+ });
2708
+ };
2709
+
2710
+ var cAll = {
2711
+ install: install
2712
+ };
2713
+
2714
+ export { script$4 as IVMrpLineDropdown, script$9 as IVMrpModal, script$6 as IVMrpOrgDropdown, script$2 as IVMrpPostDropdown, script$5 as IVMrpProdBaseDropdown, script$3 as IVMrpSetofbookDropdown, script$8 as IVMrpTable, script$7 as IVMrpTableControl, script as IVMrpUserSelector, cAll as default };