imeik-bizui 2.2.6 → 2.2.7

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.
@@ -21,7 +21,7 @@
21
21
  * @internal
22
22
  * @license Modernizr 3.0.0pre (Custom Build) | MIT
23
23
  */
24
- function a(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"===typeof o[n]}return!a&&i&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=a},"7c35":function(e,t,n){},"7c73":function(e,t,n){"use strict";var i,r=n("825a"),a=n("37e8"),o=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),d=">",h="<",f="prototype",p="script",m=c("IE_PROTO"),v=function(){},g=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&i?b(i):y():b(i);var e=o.length;while(e--)delete w[f][o[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=r(e),n=new v,v[f]=null,n[m]=e):n=w(),void 0===t?n:a.f(n,t)}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,a=n("44d2"),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},"7e4b":function(e,t,n){},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];void 0!==a&&(e[r]=a)}}return e}},"7fc1":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=93)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n("d010")},93:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[o.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},l=s,u=n(0),c=Object(u["a"])(l,i,r,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox-group.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},"80a4":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{class:e.attrs.isView?"pickerContainer":"pickerForm"},[e.attrs.isView?t("div",{staticClass:"pickView flex"},[t("div",{staticClass:"flex-1"},[t("p",{staticClass:"pickLabel"},[e._v(e._s(e.labelArray[0]))]),t("ImOneLineDot",{attrs:{text:e.beginTime}})],1),t("div",{staticClass:"flex-1 marginLeft"},[t("p",{staticClass:"pickLabel"},[e._v(e._s(e.labelArray[1]))]),t("ImOneLineDot",{attrs:{text:e.endTime}})],1)]):t("div",{staticStyle:{width:"100%",display:"flex"}},[t("div",{staticClass:"pickView"},[t("p",{staticClass:"pickLabel"},[t("span",{staticClass:"start"},[e._v("*")]),e._v(e._s(e.labelArray[0]))]),t("el-date-picker",e._g(e._b({staticStyle:{width:"100%"},attrs:{placeholder:"选择日期",type:"date","picker-options":e.beginPickerOptionsHandle,"value-format":"yyyy-MM-dd","unlink-panels":""},on:{change:e.onChange},model:{value:e.beginTime,callback:function(t){e.beginTime=t},expression:"beginTime"}},"el-date-picker",e.attrs,!1),e.listeners))],1),t("div",{staticClass:"pickView marginLeft"},[t("p",{staticClass:"pickLabel"},[t("span",{staticClass:"start"},[e._v("*")]),e._v(e._s(e.labelArray[1]))]),t("el-date-picker",e._g(e._b({staticStyle:{width:"100%"},attrs:{placeholder:"选择日期",type:"date","picker-options":e.endPickerOptionsHandle,"value-format":"yyyy-MM-dd","unlink-panels":""},on:{change:e.onChange},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}},"el-date-picker",e.attrs,!1),e.listeners))],1)])])},r=[],a=(n("caad"),n("e9c4"),n("b64b"),n("c1df")),o=n.n(a),s={name:"FieldDatePicker",props:{value:{type:[Array],default:void 0},attrs:{type:Object,default:function(){return{}}},listeners:{type:Object,default:function(){return{}}},labelArray:{type:Array,default:function(){return["开始时间","结束时间"]}}},data:function(){var e=this;return{beginTime:void 0,endTime:void 0,beginPickerOptionsHandle:{disabledDate:function(t){return e.endTime?t.getTime()<Date.now()-864e5||t.getTime()>new Date(e.endTime):t.getTime()<Date.now()-864e5}},endPickerOptionsHandle:{disabledDate:function(t){return t.getTime()<new Date(e.beginTime)}}}},computed:{isView:function(){return this.attrs.isView},dateLabel:function(){return this.myValue?this.formatDate(this.myValue):""}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},methods:{formatDate:function(e){return this.attrs.labelFormat?e?o()(e).format(this.attrs.labelFormat):"":["daterange","date"].includes(this.attrs.type)?e?o()(e).format("YYYY-MM-DD"):"":["datetimerange","datetime"].includes(this.attrs.type)?e?o()(e).format("YYYY-MM-DD HH:mm:ss"):"":e},setMyValue:function(){try{var e=JSON.parse(JSON.stringify(this.value));this.beginTime=e[0],this.endTime=e[1]}catch(t){this.beginTime=void 0,this.endTime=void 0}},onChange:function(){this.$emit("input",[this.beginTime,this.endTime])}}},l=s,u=(n("3ad6"),n("2877")),c=Object(u["a"])(l,i,r,!1,null,"5410687a",null);t["default"]=c.exports},8119:function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},8122:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="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};t.noop=u,t.hasOwn=c,t.toObject=h,t.getPropByPath=f,t.rafThrottle=b,t.objToArray=y;var r=n("8bbf"),a=s(r),o=n("a742");function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function u(){}function c(e,t){return l.call(e,t)}function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&d(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,r=null,a=0,o=n.length;a<o;a++){var s=n[a];if(!i)break;if(a===o-1){r=i[s];break}i=i[s]}return r};function f(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var r=t.split("."),a=0,o=r.length;a<o-1;++a){if(!i&&!n)break;var s=r[a];if(!(s in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[s]}return{o:i,k:r[a],v:i?i[r[a]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,o.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,o.isObject)(e),i=(0,o.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),v=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},g=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?v(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function b(e){var t=!1;return function(){for(var n=this,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,r),t=!1})))}}function y(e){return Array.isArray(e)?e:g(e)?[]:[e]}t.isMac=function(){return!a.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},8172:function(e,t,n){"use strict";var i=n("e065"),r=n("57b9");i("toPrimitive"),r()},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),a=n("07fa");e.exports=function(e){var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);while(u>s)t[s++]=e;return t}},"825a":function(e,t,n){"use strict";var i=n("861d"),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw new a(r(e)+" is not an object")}},"83ab":function(e,t,n){"use strict";var i=n("d039");e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),r=n("e683");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},8418:function(e,t,n){"use strict";var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){i?r.f(e,t,a(0,n)):e[t]=n}},"841c":function(e,t,n){"use strict";var i=n("c65b"),r=n("d784"),a=n("825a"),o=n("7234"),s=n("1d80"),l=n("129f"),u=n("577e"),c=n("dc4a"),d=n("14c3");r("search",(function(e,t,n){return[function(t){var n=s(this),r=o(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](u(n))},function(e){var i=a(this),r=u(e),o=n(t,i,r);if(o.done)return o.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var c=d(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===c?-1:c.index}]}))},"845f":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=97)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},97:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},r=[];i._withStripped=!0;var a={name:"ElButtonGroup"},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"849b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[e.isView?t("div",[e.showDiff?t("div",[t("p",{staticClass:"mt-2 mb-2"},[e._v("变更前:")]),t("div",{staticClass:"customerDetails"},[e.selectedItem&&e.selectedItem.accountUid?t("CustomShow",{attrs:{"custom-data":e.selectedItem,"detail-show":!0,"show-list":e.showList}}):t("div",[e._v("-")])],1),t("p",{staticClass:"mt-2 mb-2"},[e._v("变更后:")]),t("div",{staticClass:"customerDetails",staticStyle:{"background-color":"rgba(244, 51, 74, 0.08)"}},[e.diffValue&&e.diffValue.accountUid?t("CustomShow",{attrs:{"custom-data":e.diffValue,"detail-show":!0,"show-list":e.showList}}):t("div",[e._v("-")])],1)]):t("div",{staticClass:"customerDetails"},[e.selectedItem&&e.selectedItem.accountUid?t("CustomShow",{attrs:{"custom-data":e.selectedItem,"detail-show":!0,"show-list":e.showList}}):t("div",[e._v("-")])],1)]):t("div",[e.showSelect?t("CustomerSelect",{ref:"CustomerSelect",staticClass:"w-full",attrs:{"show-list":e.showList,"selected-text":e.value&&e.value.customerName,"rule-info":e.ruleInfo,"is-dept-for-sale":e.isDeptForSale},on:{change:e.onSelectChanged},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}}):e._e(),e.showSelect?e._e():t("div",{staticClass:"customerDetails"},[e.selectedItem&&e.selectedItem.accountUid?t("CustomShow",{attrs:{"custom-data":e.selectedItem,"detail-show":!0,"show-list":e.showList}}):e._e(),t("div",{staticClass:"button-view",on:{click:e.clearInfo}})],1),t("p",{directives:[{name:"show",rawName:"v-show",value:e.showText,expression:"showText"}],staticClass:"text-xs"},[e._v("提示:如果申请械类产品,请填写客户名称")])],1)])},r=[],a=n("5530"),o=(n("0481"),n("4069"),n("e9c4"),n("b64b"),function(){var e=this,t=e._self._c;return t("el-select",e._b({ref:"select",attrs:{"popper-class":"customerClass",placeholder:e.$attrs.placeholder||"请选择",filterable:!1!==e.$attrs.filterable,clearable:!1!==e.$attrs.clearable,remote:"","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.onUpdate,"visible-change":e.visibleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),[e._l(e.filteredOptions,(function(n){return t("el-option",{key:n.accountUid,staticClass:"customOption",attrs:{disabled:!!n.qcExpireList.length||"否"===n.status,value:n.accountUid}},[t("CustomShow",{attrs:{"custom-data":n,disabled:!!n.qcExpireList.length||"否"===n.status,"show-list":e.showList}})],1)})),t("template",{slot:"empty"},[e.loading?t("p",{staticClass:"empty-text"},[e._v("加载中")]):t("p",{staticClass:"empty-text"},[e._v("当前客户不存在,请新建客户")])])],2)}),s=[],l=(n("7db0"),n("a9e3"),n("d3b7"),n("e6cf"),n("a79d"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"item-view",class:{"disabled-color":e.disabled}},[t("div",[t("el-tag",{staticStyle:{"border-color":"#B7EDFC",color:"#01A0E2"},attrs:{color:"#E7F8FB"}},[e._v(e._s(e.customData.belongCompanyName))]),e.showAuthorization?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("授权发货")]):e._e(),e.showDealer?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("经销商")]):e._e(),e.showMedical?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("医疗机构")]):e._e(),e.showPublic?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("公立医院")]):e._e(),e.showOther?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("其他")]):e._e(),e.showTypeA?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("A-代理组经销商")]):e._e(),e.showTypeB?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("B-直营组经销商")]):e._e(),e.showDistributor?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("公立配送商")]):e._e(),e.showFranchisee?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("公立特许经销商")]):e._e()],1),t("div",{staticClass:"name"},[t("span",{staticClass:"mr-2"},[e._v(e._s(e.customData.customerName))])]),t("div",{staticClass:"addr"},[e._v("开票单位:"+e._s(e.customData.invoiceCompanyName))]),t("div",{staticClass:"addr"},[t("span",{staticStyle:{"margin-right":"32px"}},[e._v(" 客户星级:"),e.checkIsShow("start")?t("span",[e._v(e._s(e.formatData(e.customData.customerStar,"start")))]):e._e(),e.checkIsShow("level")?t("span",[e._v(e._s(e.formatData(e.customData.customerLevel,"level")))]):e._e()]),e.checkIsShow("groupName")&&e.customData.groupName?t("span",[e._v("集团名称:"+e._s(e.customData.groupName))]):e._e()]),e.detailShow?t("div",[t("div",{staticClass:"addr"},[t("span",[e._v("客户唯一编码:"+e._s(e.customData.customerUniqueCode))])])]):e._e()])}),u=[],c=(n("caad"),n("2532"),{customType:{1:"经销商",2:"医疗机构",3:"公立医院",10:"其他"},start:{0:"无星",1:"一星",2:"两星",3:"三星",4:"四星",5:"五星"},level:{0:"无级",1:"一级",2:"二级",3:"三级",4:"四级",5:"五级"}}),d={name:"CustomShow",props:{customData:{type:Object,default:function(){return{}}},detailShow:{type:Boolean,default:!1},showList:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1}},data:function(){return{}},computed:{showAuthorization:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.shippingMode)||void 0===e?void 0:e.includes("授权发货"))&&this.checkIsShow("accreditDeliver")},showDealer:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("经销商"))&&this.checkIsShow("deliver")},showMedical:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("医疗机构"))&&this.checkIsShow("medical")},showPublic:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("公立医院"))&&this.checkIsShow("public")},showOther:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("其他"))&&this.checkIsShow("other")},showTypeA:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("A-代理组经销商"))&&this.checkIsShow("typeA")},showTypeB:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("B-直营组经销商"))&&this.checkIsShow("typeB")},showDistributor:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("公立配送商"))&&this.checkIsShow("distributor")},showFranchisee:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("公立特许经销商"))&&this.checkIsShow("franchisee")}},methods:{checkIsShow:function(e){return this.showList.includes(e)},formatData:function(e,t){return"string"===typeof e&&e&&c[t][e]||""}}},h=d,f=(n("4062"),n("2877")),p=Object(f["a"])(h,l,u,!1,null,"670edbf5",null),m=p.exports,v=n("8ea2"),g=(n("d9e2"),function(e,t,n){var i,r;if("function"!==typeof e)throw new TypeError("Expected a function");t=t||0;var a=function(){var a=this,o=arguments;if(i&&clearTimeout(i),n){var s=!i;i=setTimeout((function(){i=null}),t),s&&(r=e.apply(a,o))}else i=setTimeout((function(){e.apply(a,o)}),t);return r};return a.cancel=function(){clearTimeout(i),i=null},a}),b={name:"CustomerSelect",components:{CustomShow:m},inject:{formProps:{default:function(){}}},props:{value:{type:[Number,String,Array],default:void 0},selectedText:{type:String,default:void 0},showList:{type:Array,default:function(){return[]}},ruleInfo:{type:Object,default:function(){return{}}},isDeptForSale:{type:Boolean,default:!1}},data:function(){return{myValue:void 0,loading:!0,selectName:void 0,options:[]}},computed:{myItem:function(){var e=this;if(this.myValue)return this.options.find((function(t){return t.accountUid===e.myValue}))},filteredOptions:function(){var e=this.options||[];return e||[]}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.selectName=this.selectedText,this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},remoteMethod:function(e){this.loading=!0,this.selectName=e;var t=g(this.getOptions,500);t()},visibleChange:function(e){e||(this.selectName="")},getOptions:function(){var e=this;this.loading=!1,this.options=[];var t={customerName:this.selectName||"",page:1,limit:10,belongCompany:this.formProps.belongCompany,rcoiCode:this.ruleInfo.rcoiCode,rcoiNumber:this.ruleInfo.rcoiNumber,isDeptForSale:this.isDeptForSale};this.loading=!0,Object(v["a"])(t).then((function(t){200===t.code&&(e.options=t.data.list||[])})).finally((function(){e.loading=!1}))},onUpdate:function(){this.$emit("input",this.myValue),this.$emit("change",this.myValue,this.myItem)},toCreateCustom:function(){}}},y=b,w=(n("5c19"),Object(f["a"])(y,o,s,!1,null,"6b3e8ed1",null)),_=w.exports,x={name:"FormCustomerSelect",components:{CustomerSelect:_,CustomShow:m},inject:{formProps:{default:function(){}}},props:{value:{type:Object,default:function(){return{}}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{myValue:"",selectedItem:{},isDeptForSale:void 0}},computed:{showText:function(){return this.showSelect&&!this.isDeptForSale&&"B05"!==this.formProps.formBaseNo},isView:function(){return this.attrs.isView},showSelect:function(){return!this.myValue&&!this.isView},showList:function(){return this.attrs.customShowList?this.attrs.customShowList.flat():[]},ruleInfo:function(){return{rcoiCode:this.attrs.rcoiCode,rcoiNumber:this.attrs.rcoiNumber}},showDiff:function(){return this.attrs.showDiff||!1},diffValue:function(){return this.attrs.diffValue}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.handleGetEmployeeIsForSale(),this.handleBusEvent()},methods:{handleGetEmployeeIsForSale:function(){var e=this;Object(v["e"])().then((function(t){200===t.code&&(e.isDeptForSale=t.data)}))},handleBusEvent:function(){var e=this;this.$bizui.bus&&!this.isView&&this.$bizui.bus.$on("formBelongCompanyChange",(function(t){e.clearInfo()}))},setMyValue:function(){try{this.myValue=this.value.accountUid,this.selectedItem=JSON.parse(JSON.stringify(this.value))}catch(e){this.selectedItem={}}},getCustonmInfo:function(){var e,t=this,n=(null===(e=this.selectedItem)||void 0===e?void 0:e.accountUid)||"";n&&Object(v["b"])({customerRelationCode:n}).then((function(e){var n;200===e.code?(e.data&&(t.selectedItem=Object(a["a"])(Object(a["a"])({},e.data),t.selectedItem)),null!==(n=e.data.qcExpireList)&&void 0!==n&&n.length&&t.$message({message:"该客户存在过期的证件,请及时更新",type:"warning",duration:5e3}),t.onUpdate()):t.$message.error(e.message)}))},onSelectChanged:function(e,t){this.selectedItem=t,this.getCustonmInfo(),this.onUpdate()},clearInfo:function(){this.myValue="",this.selectedItem={},this.onUpdate()},onUpdate:function(){this.$emit("input",this.selectedItem),this.$emit("change",this.selectedItem)}}},C=x,S=(n("b0bb"),Object(f["a"])(C,i,r,!1,null,"9d65c07a",null));t["default"]=S.exports},"85e7":function(e,t,n){var i=n("1a14"),r=n("77e9"),a=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){r(e);var n,o=a(t),s=o.length,l=0;while(s>l)i.f(e,n=o[l++],t[n]);return e}},8619:function(e,t,n){"use strict";n("1991")},"861d":function(e,t,n){"use strict";var i=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},8875:function(e,t,n){var i,r,a;(function(n,o){r=[],i=o,a="function"===typeof i?i.apply(t,r):i,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(f.stack)||o.exec(f.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var h=0;h<d.length;h++){if("interactive"===d[h].readyState)return d[h];if(d[h].src===l)return d[h];if(l===c&&d[h].innerHTML&&d[h].innerHTML.trim()===r)return d[h]}return null}}return e}))},8925:function(e,t,n){"use strict";var i=n("e330"),r=n("1626"),a=n("c6cd"),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},8935:function(e,t,n){"use strict";n.r(t);var i=n("5530"),r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-view"},[t("ImTable",{staticStyle:{"margin-bottom":"20px"},attrs:{table:e.tableConfig},scopedSlots:e._u([{key:"doctorName",fn:function(n){var r,a=n.row;return[e.isView?e._e():t("p",{staticStyle:{"font-size":"12px",color:"red","line-height":"18px","margin-bottom":"8px"}},[e._v("标记“暂不可用”的专家是因为缺少计算专家费必要字段,请前往用户中心维护专家信息")]),e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":a.doctorName,"no-absolute":!0,"new-value":null===(r=a._newData)||void 0===r?void 0:r.doctorName}}):t("div",[a.doctorNumber?t("p",{staticClass:"text-button",on:{click:function(t){return e.viewdoctorDetailItem(a)}}},[e._v(e._s(a.doctorName))]):t("p",[e._v(e._s(a.doctorName))])])],1):t("ImSelect",{class:{"is-error":!1===a.valid&&!a.doctorNumber},attrs:{attrs:Object(i["a"])(Object(i["a"])({},e.doctorAttrs),{},{disabled:!!a.acceptanceDoctorTimes,loading:e.doctorLoading}),listeners:{focus:e.onDoctorFocus}},on:{input:function(t){return e.changedoctorName(a)}},model:{value:a.doctorNumber,callback:function(t){e.$set(a,"doctorNumber",t)},expression:"row.doctorNumber"}})]}},{key:"organizations",fn:function(n){var i=n.row;return[t("div",{staticClass:"expertOther"},[i.doctorNumber?e._e():t("p",[e._v("-")]),Array.isArray(i.doctorOrg)?t("div",e._l(i.doctorOrg,(function(n,i){return t("div",{key:i},[e._v(e._s(n))])})),0):e._e()])]}},{key:"otherInfo",fn:function(n){var i=n.row;return[t("div",{staticClass:"expertOther"},[t("div",[Array.isArray(i.doctorOrg)?t("div",e._l(i.doctorOrg,(function(n,i){return t("ImOneLineDot",{key:i,attrs:{text:n}},[e._v(e._s(n))])})),1):e._e()]),i.doctorNumber?t("div",[t("ImOneLineDot",{attrs:{text:i.doctorNumber}},[e._v("专家编号:"+e._s(i.doctorNumber))]),t("ImOneLineDot",{attrs:{text:e.formatPhone(i.doctorPhone)}},[e._v("手机号:"+e._s(e.formatPhone(i.doctorPhone)))]),t("ImOneLineDot",{attrs:{text:i.doctorType}},[e._v("类型:"+e._s(i.doctorType||"-"))]),t("ImOneLineDot",{attrs:{text:i.doctorPost}},[e._v("职称:"+e._s(i.doctorPost||"-"))]),i.doctorExpertType?t("ImOneLineDot",{attrs:{text:i.doctorExpertType}},[e._v("医生类专家类别:"+e._s(i.doctorExpertType||"-"))]):e._e()],1):t("p",[e._v("-")])])]}},{key:"doctorLevel",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.doctorLevelName,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.doctorLevelName}}):t("div",[e._v(e._s(r.doctorLevelName))])],1):t("ImSelect",{class:{"is-error":!1===r.valid&&!r.doctorLevel},attrs:{attrs:{options:r.roleList,disabled:!!r.acceptanceDoctorTimes}},on:{input:function(t){return e.changeDoctorLevel(r)}},model:{value:r.doctorLevel,callback:function(t){e.$set(r,"doctorLevel",t)},expression:"row.doctorLevel"}})]}},{key:"scenario",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.doctorServiceSceneName,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.doctorServiceSceneName}}):t("div",[e._v(e._s(r.doctorServiceSceneName))]),r.describe?t("p",{staticClass:"tips-text"},[e._v(e._s(r.describe))]):e._e()],1):t("div",[t("ImSelect",{class:{"is-error":!1===r.valid&&!r.doctorServiceSceneCode},attrs:{attrs:{options:r.scenarioList,loading:e.scenarioLoading,disabled:!!r.acceptanceDoctorTimes}},on:{input:function(t){return e.changeScenario(t,r)}},model:{value:r.doctorServiceSceneCode,callback:function(t){e.$set(r,"doctorServiceSceneCode",t)},expression:"row.doctorServiceSceneCode"}}),r.describe?t("p",{staticClass:"tips-text"},[e._v(e._s(r.describe))]):e._e()],1)]}},{key:"identity",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.identity,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.identity}}):t("p",[e._v(e._s(r.identity))])],1):t("div",[e.checkIdentity(r.shenfenList_new)?t("div",[e._v("-")]):t("ImSelect",{class:{"is-error":!1===r.valid&&!r.identity},attrs:{attrs:{options:r.shenfenList_new,disabled:!!r.acceptanceDoctorTimes}},on:{input:function(t){return e.handleChangeIdentity(t,r)}},model:{value:r.identity,callback:function(t){e.$set(r,"identity",t)},expression:"row.identity"}})],1)]}},{key:"className",fn:function(n){var i,r=n.row;return[!e.isView&&e.checkHasCourse(r)?t("div",[t("ImInput",{attrs:{attrs:{disabled:!!r.acceptanceDoctorTimes},placeholder:"请输入",maxlength:"100"},model:{value:r.courseName,callback:function(t){e.$set(r,"courseName",t)},expression:"row.courseName"}})],1):t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.courseName,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.courseName}}):t("div",[e._v(e._s(r.courseName||"-"))])],1)]}},{key:"costAmount",fn:function(n){var i,r=n.row;return[e.checkStandardAmountsIsBeyond(r)?t("p",{staticClass:"standardAmount"},[e._v("费用标准:"+e._s(r.standardAmount))]):e._e(),e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.costAmount,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.costAmount}}):t("div",[e._v(e._s(r.costAmount))])],1):t("el-input-number",{class:{isBeyound:e.checkStandardAmountsIsBeyond(r),"is-error":!1===r.valid&&!r.costAmount},staticStyle:{width:"100%"},attrs:{"input-align":"left","controls-position":"right",min:0,placeholder:r.standardAmount?"".concat(r.standardAmount):"请输入"},model:{value:r.costAmount,callback:function(t){e.$set(r,"costAmount",t)},expression:"row.costAmount"}})]}},{key:"remark",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.remark,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.remark}}):t("div",[e._v(e._s(r.remark))])],1):t("el-input",{class:{"is-error":e.checkStandardAmountsIsBeyond(r)&&!r.remark},attrs:{type:"textarea",rows:5,"show-word-limit":"",maxlength:"100",placeholder:"请输入"},model:{value:r.remark,callback:function(t){e.$set(r,"remark",t)},expression:"row.remark"}})]}},{key:"operation",fn:function(n){var i=n.row,r=n.$index;return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addExpert(r)}}},[e._v("新增")]),t("el-button",{staticClass:"delete-button",attrs:{disabled:!!i.acceptanceDoctorTimes,type:"text"},on:{click:function(t){return e.deleteExpert(r)}}},[e._v("移除")])]}},{key:"changeType",fn:function(n){var i=n.row;return[t("p",[e._v(e._s(e.formatChangeType(i._changeType)))])]}}])},[t("template",{slot:"doctorNameHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("专家名称")])]),t("template",{slot:"doctorLevelHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("角色/等级")])]),t("template",{slot:"scenarioHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("服务场景")])]),t("template",{slot:"costAmountHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("费用金额(元)")])])],2)],1)},a=[],o=(n("99af"),n("4de4"),n("7db0"),n("caad"),n("e260"),n("d81d"),n("14d9"),n("13d5"),n("a434"),n("e9c4"),n("a9e3"),n("b64b"),n("d3b7"),n("e6cf"),n("a79d"),n("ac1f"),n("6062"),n("2532"),n("3ca3"),n("5319"),n("159b"),n("ddb0"),n("8ea2"));n("2ca0");function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"objectCode",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=JSON.parse(JSON.stringify(e))||[],o=JSON.parse(JSON.stringify(t))||[],s=[];return a.forEach((function(e){var t=o.find((function(t){return t[n]===e[n]}));if(t){var a=Object.keys(t).some((function(n){return!n.startsWith("_")&&(n in e&&(!r.includes(n)&&JSON.stringify(e[n])!==JSON.stringify(t[n])))}));a?s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"update",_newData:t})):s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"unchanged"}))}else s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"delete"}))})),o.forEach((function(e){var t=a.some((function(t){return t[n]===e[n]}));t||s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"add",_newData:e}))})),s}var l={name:"FieldExpertSelect",props:{value:{type:Array,default:function(){}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{exportsList:[],tableConfig:{data:[{}],attrs:{"show-summary":!0,"summary-method":this.summaryMethod},tableItems:[]},doctorAttrs:{options:[],filterable:!0,remote:!0,"remote-method":this.getExpertsList},scenarioLoading:!1,doctorLoading:!1}},computed:{isView:function(){return this.attrs.isView},mergeDiffData:function(){return this.showDiff?s(this.value||[],this.diffValue||[],"doctorNumber"):this.value},showDiff:function(){return this.attrs.showDiff||!1},diffValue:function(){return this.attrs.diffValue},items:function(){return[{label:"专家名称",prop:"doctorName",type:"slot",slot:"doctorName",headSlot:"doctorNameHead",attrs:{"min-width":"120"}},{label:"其他信息",prop:"otherInfo",type:"slot",slot:"otherInfo",attrs:{"min-width":"200"}},{label:"角色/等级",prop:"doctorLevel",type:"slot",slot:"doctorLevel",headSlot:"doctorLevelHead",attrs:{"min-width":"150"}},{label:"服务场景",prop:"scenario",type:"slot",slot:"scenario",headSlot:"scenarioHead",attrs:{"min-width":"150"}},{label:"活动参与身份",prop:"identity",type:"slot",slot:"identity",attrs:{"min-width":"150"}},{label:"授课名称",prop:"className",type:"slot",slot:"className",attrs:{"min-width":"130"}},{label:"费用金额(元)",prop:"costAmount",type:"slot",slot:"costAmount",headSlot:"costAmountHead",attrs:{"min-width":"160"}},{label:"备注",prop:"remark",type:"slot",slot:"remark",attrs:{"min-width":"140"}},{label:"变更类型",prop:"_changeType",type:"slot",slot:"changeType",hidden:!this.showDiff,attrs:{"min-width":"100"}},{label:"操作",prop:"operation",type:"slot",slot:"operation",hidden:this.isView,attrs:{fixed:"right",width:"120"}}]}},watch:{mergeDiffData:{deep:!0,immediate:!0,handler:function(e){e&&this.$set(this.tableConfig,"data",e)}},items:{handler:function(){this.tableConfig.tableItems=this.items},immediate:!0}},mounted:function(){this.handleBusEvent(),this.isView||this.refreshData()},beforeDestroy:function(){this.$bizui.bus&&(this.$bizui.bus.$off("applySave"),this.$bizui.bus.$off("applySubmit"))},methods:{handleBusEvent:function(){var e=this;this.$bizui.bus&&(this.$bizui.bus.$on("applySubmit",(function(t){e.handleValidate()})),this.$bizui.bus.$on("applySave",(function(t){e.onUpdate()})))},handleValidate:function(){var e=this,t=!0;console.log(this.tableConfig.data,"列表数据"),this.tableConfig.data.forEach((function(n){var i=!0;n.doctorNumber?n.doctorLevel?n.doctorServiceSceneCode?n.costAmount?e.checkIdentity(n.shenfenList_new)||n.identity?e.checkStandardAmountsIsBeyond(n)&&!n.remark&&(i&&t&&e.$message.warning("请填写备注"),i=!1):(i&&t&&e.$message.warning("请检查活动参与身份"),i=!1):(i&&t&&e.$message.warning("请检查费用金额"),i=!1):(i&&t&&e.$message.warning("请检查服务场景"),i=!1):(i&&t&&e.$message.warning("请检查角色/等级"),i=!1):(i&&t&&e.$message.warning("请检查专家名称"),i=!1),n.valid=i,t=i})),this.onUpdate()},refreshData:function(){var e,t=this;null===(e=this.tableConfig.data)||void 0===e||e.forEach((function(e){t.getExpertsList(e.doctorName,e),t.getSceneList(e)}))},getExpertsList:function(e,t){var n=this,i={realName:e||"",page:1,limit:10};this.doctorLoading=!0,Object(o["g"])(i).then((function(e){n.doctorLoading=!1,200===e.code?(e.data.list.forEach((function(e){var t="1"!==e.expertInfoType;e.label=e.doctorName+(t?"(暂不可用)":""),e.value=e.doctorNumber,e.disabled=t})),n.doctorAttrs.options=e.data.list,t&&n.changedoctorName(t,"refresh")):n.$message.error(e.message)})).finally((function(){n.doctorLoading=!1}))},setDefaultRoleInfo:function(e){if(e.doctorNumber&&!this.isView){var t=e.roleList.find((function(t){return t.value===e.doctorLevel}));if(t)return this.$set(e,"doctorLevel",t.value),void this.changeDoctorLevel(e);this.$set(e,"doctorLevel",""),e.doctorServiceSceneName=""}1===e.roleList.length&&(this.$set(e,"doctorLevel",e.roleList[0].value),this.changeDoctorLevel(e),this.getSceneList(e))},getSceneList:function(e){var t=this;console.log("getSceneList",e.doctorExpertType),e.doctorLevel&&(this.scenarioLoading=!0,Object(o["f"])({expertRoleCode:e.doctorLevel,doctorExpertType:e.doctorExpertType,doctorNumber:e.doctorNumber}).then((function(n){if(t.scenarioLoading=!1,200===n.code){var i=JSON.parse(n.data).sceneList,r=JSON.parse(n.data).standardAmountList.map((function(e){return{label:e.sceneAndIdentity,value:e.sceneAndIdentity,standardAmount:e.standardAmount}}));t.$set(e,"scenarioList",i),t.$set(e,"costFeeList",JSON.parse(n.data).costFeeList),t.$set(e,"shenfenList",r)}else t.$message.error(n.message)})))},handleChangeIdentity:function(e,t){var n=this,i=t.shenfenList_new.find((function(t){return t.value===e}));this.$set(t,"standardAmount",i.standardAmount),t.costFeeList.forEach((function(e){e.sceneAndIdentity===t.doctorServiceSceneName+"_"+t.identity&&n.$set(t,"costFee",e.costFee)}))},changedoctorName:function(e,t){var n=this.doctorAttrs.options.find((function(t){return t.value===e.doctorNumber})),i=this.tableConfig.data.map((function(e){return e.doctorNumber}));if(n){if(this.hasDuplicates(i))return this.$set(e,"doctorNumber",""),void this.$message.error("该专家已存在");for(var r in"string"===typeof n.doctorOrg&&(n.doctorOrgName=n.doctorOrg,n.doctorOrg=n.doctorOrg.split(",")),n)this.$set(e,r,n[r]);e.roleList=n.doctorRoleInfoList.map((function(e){return{value:e.roleCode,label:e.roleName}})),t||(this.$set(e,"doctorServiceSceneCode",""),this.$set(e,"doctorLevel",""),this.$set(e,"describe",""),this.$set(e,"identity",""),this.$set(e,"courseName",""),this.$set(e,"standardAmount",""),this.$set(e,"costAmount",void 0),this.$set(e,"scenarioList",[]),this.$set(e,"doctorLevelName",""),this.setDefaultRoleInfo(e))}},hasDuplicates:function(e){var t=e.filter((function(e){return e}));return new Set(t).size!==t.length},changeScenario:function(e,t){var n=t.scenarioList.find((function(t){return t.value===e}));if(console.log(n.label),n){this.$set(t,"doctorServiceSceneName",n.label),this.$set(t,"describe",n.describe),this.$set(t,"identity",""),this.$set(t,"courseName",""),this.$set(t,"standardAmount",""),this.$set(t,"costAmount",void 0);var i=[],r=t.scenarioList||[],a=t.shenfenList;console.log(a,"shenfenList"),r.forEach((function(e){if(e.value===t.doctorServiceSceneCode){var n=e.identity||"";n.split(",").forEach((function(t){var n;console.log(e.label,"scenarioItem.label"),i.push({label:t,value:t,standardAmount:(null===(n=a.find((function(n){return n.value==="".concat(e.label,"_").concat(t)})))||void 0===n?void 0:n.standardAmount)||0})}))}})),this.$set(t,"shenfenList_new",i),1===i.length&&""===t.shenfenList_new[0].value&&this.handleChangeIdentity("",t),1===i.length&&(this.$set(t,"identity",t.shenfenList_new[0].value),this.handleChangeIdentity(t.shenfenList_new[0].value,t))}this.checkStandardAmountsIsBeyond(t)},changeDoctorLevel:function(e){var t=e.roleList.find((function(t){return t.value===e.doctorLevel}));t&&(this.$set(e,"doctorLevelName",t.label),this.$set(e,"doctorServiceSceneCode",""),this.$set(e,"describe",""),this.$set(e,"identity",""),this.$set(e,"courseName",""),this.$set(e,"standardAmount",""),this.$set(e,"costAmount",void 0)),this.getSceneList(e)},addExpert:function(){this.tableConfig.data.length>=50?this.$message.warning("最多添加50行专家信息"):this.tableConfig.data.push({})},deleteExpert:function(e){this.tableConfig.data.length<=1?this.$message.error("至少保留一条专家信息"):this.tableConfig.data.splice(e,1)},onUpdate:function(){this.tableConfig.data.forEach((function(e){Number(e.costFee)>0?(e.maxCostFee=Number(e.costFee||0),e.miniEcsBudget=Number(e.costAmount||0)>Number(e.costFee||0)?Number(e.costFee||0):Number(e.costAmount||0)):(e.miniEcsBudget=Number(e.costAmount||0),e.maxCostFee=Number(e.costAmount||0))}));var e=JSON.parse(JSON.stringify(this.tableConfig.data));this.$emit("input",e),this.$emit("change",e)},formatPhone:function(e){return e?e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):""},checkStandardAmountsIsBeyond:function(e){return Number(e.costAmount)>Number(e.standardAmount)},checkHasCourse:function(e){return!(!e.identity||!Array.isArray(e.shenfenList_new))&&e.shenfenList_new.some((function(t){var n;return t.value===e.identity&&(null===(n=t.label)||void 0===n?void 0:n.includes("授课"))}))},formatChangeType:function(e){switch(e){case"add":return"新增";case"update":return"变更";case"delete":return"删除";default:return"-"}},summaryMethod:function(e){var t=e.columns,n=e.data,i=[];return t.forEach((function(e,t){if(0!==t){if(6===t){var r=n.map((function(t){return t._newData?null===t||void 0===t?void 0:t._newData[e.property]:t[e.property]}));i[t]=r.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:e+t}),0)}}else i[t]="合计"})),i},viewdoctorDetailItem:function(e){var t="";t="testenv"===this.$bizui.env?"//usercenter-test.imeik.com":"pre"===this.$bizui.env?"//usercenter-pre.imeik.com":"//usercenter.imeik.com";var n=this.$bizui.userTokenFunc(),i="".concat(t,"/user/expertDatabase/expertDetails?objectCode=").concat(e.doctorNumber,"&type=list&token=").concat(n,"&hideBar=1");window.open(i)},onDoctorFocus:function(){this.doctorAttrs.options=[]},checkIdentity:function(e){return 1===(null===e||void 0===e?void 0:e.length)&&""===e[0].value}}},u=l,c=(n("291d"),n("2877")),d=Object(c["a"])(u,r,a,!1,null,"f20bc3c0",null);t["default"]=d.exports},"8a0d":function(e,t){e.exports={}},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8b1a":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},132:function(e,t,n){"use strict";n.r(t);var i,r,a={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,a=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],o=e("span",{class:a,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"8bbf":function(t,n){t.exports=e},"8d39":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[e.myValue?t("div",{staticClass:"customerDetails"},[t("div",{staticClass:"details"},[t("div",{staticClass:"name"},[t("span",{staticClass:"customerName"},[e._v(e._s(e.selectedItem.meetingName))]),t("el-tag",[e._v(e._s(e.selectedItem.meetingNumber))])],1),t("div",{staticClass:"addr"},[e._v("会议主题: "+e._s(e.selectedItem.meetingSubject))]),t("div",{staticClass:"addr"},[e._v("会议时间: "+e._s(e.selectedItem.meetingDate))])]),e.isView?e._e():t("div",{staticClass:"button"},[t("el-button",{attrs:{type:"text"},on:{click:e.clearInfo}},[t("i",{staticClass:"el-icon-delete"})])],1)]):t("MeetingSelect",{ref:"MeetingSelect",staticClass:"w-full",attrs:{extra:e.meetingExtra},on:{change:e.onSelectChanged},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}})],1)},r=[],a=(n("e9c4"),n("b64b"),function(){var e=this,t=e._self._c;return t("el-select",e._b({ref:"select",attrs:{"popper-class":"customerClass",placeholder:e.$attrs.placeholder||"请选择",filterable:!1!==e.$attrs.filterable,clearable:!1!==e.$attrs.clearable,remote:"","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.onChange,"visible-change":e.visibleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.objectCode,staticClass:"customOption",attrs:{label:n.meetingName,value:n.meetingNumber}},[t("div",{staticClass:"name"},[t("span",{staticClass:"mr-2"},[e._v(e._s(n.meetingName))]),t("el-tag",[e._v(e._s(n.meetingNumber))])],1),t("div",{staticClass:"addr"},[e._v("会议主题: "+e._s(n.meetingSubject))]),t("div",{staticClass:"addr"},[e._v("会议时间: "+e._s(n.meetingDate))])])})),1)}),o=[],s=n("5530"),l=(n("7db0"),n("a9e3"),n("d3b7"),n("e6cf"),n("a79d"),n("ca94")),u={name:"CustomerSelect",props:{value:{type:[Number,String,Array],default:void 0},disabledCode:{type:Array,default:function(){return[]}},extra:{type:Object,default:function(){return{}}}},data:function(){return{myValue:void 0,loading:!0,selectName:void 0,options:[]}},computed:{myItem:function(){var e=this;if(this.myValue)return this.options.find((function(t){return t.meetingNumber===e.myValue}))}},watch:{value:{immediate:!0,handler:function(){JSON.stringify(this.value)!==JSON.stringify(this.myValue)&&this.getOptions(),this.setMyValue()}},extra:{immediate:!0,deep:!0,handler:function(){this.getOptions()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},remoteMethod:function(e){this.loading=!0,this.selectName=e,this.getOptions()},visibleChange:function(e){e||(this.selectName="",this.getOptions())},getOptions:function(){var e=this,t=Object(s["a"])({meetingNumber:this.selectName||""},this.extra);this.loading=!0,Object(l["c"])(t).then((function(t){200===t.code&&(e.options=t.data||[])})).finally((function(){e.loading=!1}))},onChange:function(){this.$refs.select&&(this.$refs.select.inputValue=""),this.$emit("input",this.myValue,this.myItem),this.$emit("change",this.myValue,this.myItem)}}},c=u,d=(n("8619"),n("2877")),h=Object(d["a"])(c,a,o,!1,null,"780f9d5c",null),f=h.exports,p={name:"FormMeetingSelect",components:{MeetingSelect:f},props:{value:{type:Object,default:function(){return{}}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{myValue:"",selectedItem:null}},computed:{isView:function(){return this.attrs&&this.attrs.isView},meetingExtra:function(){return this.attrs&&this.attrs.meetingExtra}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},methods:{setMyValue:function(){try{this.myValue=this.value.meetingNumber,this.selectedItem=JSON.parse(JSON.stringify(this.value))}catch(e){}},onSelectChanged:function(e,t){this.selectedItem=t,this.onUpdate()},clearInfo:function(){this.myValue="",this.selectedItem=null,this.onUpdate()},onUpdate:function(){this.$emit("input",this.selectedItem),this.$emit("change",this.selectedItem)}}},m=p,v=(n("6de9"),Object(d["a"])(m,i,r,!1,null,"13128f6a",null));t["default"]=v.exports},"8dde":function(e,t,n){"use strict";n("bb62")},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"8ea2":function(e,t,n){"use strict";n.d(t,"k",(function(){return s})),n.d(t,"l",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return g})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"o",(function(){return _}));var i=n("10bb"),r={development:"//apply-backend-dev.imeik.com",testenv:"//apply-backend-test.imeik.com",production:"//apply-backend.imeik.com",pre:"//apply-backend-pre.imeik.com"},a=Object(i["a"])(r),o=a;function s(e){return o({url:"/application-center-admin/data/exchange/getTagManageList",method:"get",params:e})}function l(e){return o({url:e,method:"get",isTag:!0})}function u(e){return o({url:"/application-center-admin/data/exchange/getCustomerList",method:"post",data:e})}function c(e){return o({url:"/application-center-admin/data/exchange/getMaterialList",method:"post",data:e})}function d(e){return o({url:"/application-center-admin/data/exchange/getCustomerProductAddress",method:"post",data:e})}function h(e){return o({url:"/application-center-admin/data/exchange/getMotherSchemeList",method:"post",data:e})}function f(e){return o({url:"/application-center-admin/data/exchange/getEmployeeAddress",method:"get",params:e})}function p(e){return o({url:"/application-center-admin/common/getEcsErpCode",method:"post",data:e})}function m(e){return o({url:"/application-center-admin/data/exchange/getCustomerRelationInfo",method:"post",data:e})}function v(e){return o({url:"/application-center-admin/common/isImeikStaff",method:"get",params:e})}function g(e){return o({url:"/application-center-admin/common/listWarehouseItem",method:"get",params:e})}function b(e){return o({url:"/application-center-admin/data/exchange/getEmployeeIsForSale",method:"get",params:e})}function y(e){return o({url:"/application-center-admin/data/exchange/getExpertServiceFee",method:"post",data:e})}function w(e){return o({url:"/application-center-admin/data/exchange/getExpertInfoPage",method:"post",data:e})}function _(e){return o({url:"/application-center-admin/data/exchange/queryBudgetDepartManage",method:"post",params:{tagModel:"APPLY",tagCode:"al-fxssqxmbh"},data:e})}},"8eb7":function(e,t){var n,i,r,a,o,s,l,u,c,d,h,f,p,m,v,g=!1;function b(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,a=t[4]?parseFloat(t[4]):NaN,a?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=t&&t[1]?parseFloat(t[1]):NaN):o=NaN}else n=i=r=o=a=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!w||parseFloat(w[1].replace("_","."))}else l=!1;u=!!b[2],c=!!b[3]}else l=u=c=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&h},firefox:function(){return b()||i},opera:function(){return b()||r},webkit:function(){return b()||a},safari:function(){return y.webkit()},chrome:function(){return b()||o},windows:function(){return b()||u},osx:function(){return b()||l},linux:function(){return b()||c},iphone:function(){return b()||f},mobile:function(){return b()||f||p||d||v},nativeApp:function(){return b()||m},android:function(){return b()||d},ipad:function(){return b()||p}};e.exports=y},"90d8":function(e,t,n){"use strict";var i=n("c65b"),r=n("1a2d"),a=n("3a9b"),o=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!a(s,e)?t:i(o,e)}},"90e3":function(e,t,n){"use strict";var i=n("e330"),r=0,a=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}},9112:function(e,t,n){"use strict";var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var i=n("ef08").document;e.exports=i&&i.documentElement},9263:function(e,t,n){"use strict";var i=n("c65b"),r=n("e330"),a=n("577e"),o=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,d=n("fce3"),h=n("107c"),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,v=r("".charAt),g=r("".indexOf),b=r("".replace),y=r("".slice),w=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],C=w||x||_||d||h;C&&(m=function(e){var t,n,r,s,l,d,h,C=this,S=c(C),k=a(e),O=S.raw;if(O)return O.lastIndex=C.lastIndex,t=i(m,O,k),C.lastIndex=O.lastIndex,t;var D=S.groups,E=_&&C.sticky,T=i(o,C),$=C.source,I=0,N=k;if(E&&(T=b(T,"y",""),-1===g(T,"g")&&(T+="g"),N=y(k,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(k,C.lastIndex-1))&&($="(?: "+$+")",N=" "+N,I++),n=new RegExp("^(?:"+$+")",T)),x&&(n=new RegExp("^"+$+"$(?!\\s)",T)),w&&(r=C.lastIndex),s=i(p,E?n:C,N),E?s?(s.input=y(s.input,I),s[0]=y(s[0],I),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:w&&s&&(C.lastIndex=C.global?s.index+s[0].length:r),x&&s&&s.length>1&&i(f,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&D)for(s.groups=d=u(null),l=0;l<D.length;l++)h=D[l],d[h[0]]=s[h[1]];return s}),e.exports=m},"92f0":function(e,t,n){var i=n("1a14").f,r=n("9c0e"),a=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var r,a,o,s,l;for(o in t)if(r=e[o],a=t[o],r&&n.test(o))if("class"===o&&("string"===typeof r&&(l=r,e[o]=r={},r[l]=!0),"string"===typeof a&&(l=a,t[o]=a={},a[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)r[s]=i(r[s],a[s]);else if(Array.isArray(r))e[o]=r.concat(a);else if(Array.isArray(a))e[o]=[r].concat(a);else for(s in a)r[s]=a[s];else e[o]=t[o];return e}),{})}},9447:function(e,t,n){},"944a":function(e,t,n){"use strict";var i=n("d066"),r=n("e065"),a=n("d44e");r("toStringTag"),a(i("Symbol"),"Symbol")},"94c6":function(e,t,n){},"94ca":function(e,t,n){"use strict";var i=n("d039"),r=n("1626"),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===c||n!==u&&(r(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},9619:function(e,t,n){var i=n("597f"),r=n("0e15");e.exports={throttle:i,debounce:r}},9742:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9876:function(e,t,n){var i=n("03d6"),r=n("9742");e.exports=Object.keys||function(e){return i(e,r)}},9989:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"enum-show"},[e._v(e._s(e.enumLabel))])},r=[],a=(n("a15b"),n("14d9"),n("a9e3"),{name:"CommonEnumShow",props:{enumKey:{required:!0,type:String,default:""},enumValue:{required:!0,type:[String,Array,Number],default:""}},computed:{enums:function(){return this.$bizui.enums},enumLabel:function(){if(!this.enumValue)return"-";if(Array.isArray(this.enumValue)){for(var e=[],t=0;t<this.enumValue.length;t++){var n=this.enumValue[t],i=this.getLabelByValue(this.enumKey,n);e.push(i)}return e.join(",")||"-"}return this.getLabelByValue(this.enumKey,this.enumValue)}},methods:{getLabelByValue:function(e,t){var n=this.getOptionsItemByValue(e,t);return n.label||"-"},getOptionsItemByValue:function(e,t){var n=this.enums,i={},r=n[e]||[];if(!r||0===r.length)return i;for(var a=0;a<r.length;a++){var o=r[a];o.value===t+""&&(i=o)}return i}}}),o=a,s=n("2877"),l=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),l=n("07fa"),u=n("3511"),c=n("8418"),d=n("65f0"),h=n("1dde"),f=n("b622"),p=n("2d00"),m=f("isConcatSpreadable"),v=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)},b=!v||!h("concat");i({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,n,i,r,a,o=s(this),h=d(o,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(a=-1===t?o:arguments[t],g(a))for(r=l(a),u(f+r),n=0;n<r;n++,f++)n in a&&c(h,f,a[n]);else u(f+1),c(h,f++,a);return h.length=f,h}})},"9a1f":function(e,t,n){"use strict";var i=n("c65b"),r=n("59ed"),a=n("825a"),o=n("0d51"),s=n("35a1"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw new l(o(e)+" is not iterable")}},"9b70":function(e,t,n){"use strict";n("516c")},"9bdd":function(e,t,n){"use strict";var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},"9bf2":function(e,t,n){"use strict";var i=n("83ab"),r=n("0cfb"),a=n("aed9"),o=n("825a"),s=n("a04b"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=i?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var i=c(e,t);i&&i[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=s(t),o(n),r)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c0c":function(e,t,n){var i=n("1609");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"9c0e":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9d11":function(e,t,n){var i=n("fc5e"),r=Math.max,a=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):a(e,t)}},"9d36":function(e,t,n){},"9d7e":function(e,t,n){"use strict";t.__esModule=!0;var i="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};t.default=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return 1===n.length&&"object"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(a,(function(t,i,a,o){var s=void 0;return"{"===e[o-1]&&"}"===e[o+t.length]?a:(s=(0,r.hasOwn)(n,a)?n[a]:null,null===s||void 0===s?"":s)}))}return t};var r=n("8122"),a=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9f7f":function(e,t,n){"use strict";var i=n("d039"),r=n("da84"),a=r.RegExp,o=i((function(){var e=a("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=o||i((function(){return!a("a","y").sticky})),l=o||i((function(){var e=a("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:o}},"9fbb":function(e,t,n){var i=n("4d88");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},a04b:function(e,t,n){"use strict";var i=n("c04e"),r=n("d9b5");e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("44ad"),o=n("fc6a"),s=n("a640"),l=r([].join),u=a!==Object,c=u||!s("join",",");i({target:"Array",proto:!0,forced:c},{join:function(e){return l(o(this),void 0===e?",":e)}})},a15e:function(e,t,n){"use strict";n.r(t);var i=n("41b2"),r=n.n(i),a=n("1098"),o=n.n(a),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],a=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var o=String(r).replace(s,(function(e){if("%%"===e)return"%";if(i>=a)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[i];i<a;l=t[++i])o+=" "+l;return o}return r}function c(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!c(t)||"string"!==typeof e||e))}function h(e,t,n){var i=[],r=0,a=e.length;function o(e){i.push.apply(i,e),r++,r===a&&n(i)}e.forEach((function(e){t(e,o)}))}function f(e,t,n){var i=0,r=e.length;function a(o){if(o&&o.length)n(o);else{var s=i;i+=1,s<r?t(e[s],a):n([])}}a([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,i){if(t.first){var r=p(e);return f(r,n,i)}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&i(u)};o.forEach((function(t){var i=e[t];-1!==a.indexOf(t)?f(i,n,c):h(i,n,c)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===("undefined"===typeof i?"undefined":o()(i))&&"object"===o()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}function b(e,t,n,i,r,a){!e.required||n.hasOwnProperty(e.field)&&!d(t,a||e.type)||i.push(u(r.messages.required,e.fullField))}var y=b;function w(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(u(r.messages.whitespace,e.fullField))}var _=w,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":o()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function S(e,t,n,i,r){if(e.required&&void 0===t)y(e,t,n,i,r);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?C[s](t)||i.push(u(r.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":o()(t))!==e.type&&i.push(u(r.messages.types[s],e.fullField,e.type))}}var k=S;function O(e,t,n,i,r){var a="number"===typeof e.len,o="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,h="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(h?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),f&&(c=t.replace(l,"_").length),a?c!==e.len&&i.push(u(r.messages[d].len,e.fullField,e.len)):o&&!s&&c<e.min?i.push(u(r.messages[d].min,e.fullField,e.min)):s&&!o&&c>e.max?i.push(u(r.messages[d].max,e.fullField,e.max)):o&&s&&(c<e.min||c>e.max)&&i.push(u(r.messages[d].range,e.fullField,e.min,e.max))}var D=O,E="enum";function T(e,t,n,i,r){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&i.push(u(r.messages[E],e.fullField,e[E].join(", ")))}var $=T;function I(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var N=I,M={required:y,whitespace:_,type:k,range:D,enum:$,pattern:N};function j(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t,"string")&&!e.required)return n();M.required(e,t,i,a,r,"string"),d(t,"string")||(M.type(e,t,i,a,r),M.range(e,t,i,a,r),M.pattern(e,t,i,a,r),!0===e.whitespace&&M.whitespace(e,t,i,a,r))}n(a)}var P=j;function V(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&M.type(e,t,i,a,r)}n(a)}var A=V;function L(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var F=L;function R(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&M.type(e,t,i,a,r)}n(a)}var B=R;function z(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),d(t)||M.type(e,t,i,a,r)}n(a)}var H=z;function W(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var Y=W;function q(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var U=q;function G(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t,"array")&&!e.required)return n();M.required(e,t,i,a,r,"array"),d(t,"array")||(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var K=G;function J(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&M.type(e,t,i,a,r)}n(a)}var X=J,Q="enum";function Z(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),t&&M[Q](e,t,i,a,r)}n(a)}var ee=Z;function te(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t,"string")&&!e.required)return n();M.required(e,t,i,a,r),d(t,"string")||M.pattern(e,t,i,a,r)}n(a)}var ne=te;function ie(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();if(M.required(e,t,i,a,r),!d(t)){var s=void 0;s="number"===typeof t?new Date(t):t,M.type(e,s,i,a,r),s&&M.range(e,s.getTime(),i,a,r)}}n(a)}var re=ie;function ae(e,t,n,i,r){var a=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":o()(t);M.required(e,t,i,a,r,s),n(a)}var oe=ae;function se(e,t,n,i,r){var a=e.type,o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(d(t,a)&&!e.required)return n();M.required(e,t,i,o,r,a),d(t,a)||M.type(e,t,i,o,r)}n(o)}var le=se,ue={string:P,method:A,number:F,boolean:B,regexp:H,integer:Y,float:U,array:K,object:X,enum:ee,pattern:ne,date:re,url:le,hex:le,email:le,required:oe};function ce(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var de=ce();function he(e){this.rules=null,this._messages=de,this.define(e)}he.prototype={messages:function(e){return e&&(this._messages=g(ce(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":o()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],a=e,s=n,c=i;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var d=this.messages();d===de&&(d=ce()),g(d,s.messages),s.messages=d}else s.messages=this.messages();var h=void 0,f=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){h=t.rules[n],f=a[n],h.forEach((function(i){var o=i;"function"===typeof o.transform&&(a===e&&(a=r()({},a)),f=a[n]=o.transform(f)),o="function"===typeof o?{validator:o}:r()({},o),o.validator=t.getValidationMethod(o),o.field=n,o.fullField=o.fullField||n,o.type=t.getType(o),o.validator&&(p[n]=p[n]||[],p[n].push({rule:o,value:f,source:a,field:n}))}))}));var y={};m(p,s,(function(e,t){var n=e.rule,i=("object"===n.type||"array"===n.type)&&("object"===o()(n.fields)||"object"===o()(n.defaultField));function a(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function c(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=o;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return y[n.field]=1,t(c);if(i){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=r()({},d,e.rule.fields),d)if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(a.bind(null,f))}var m=new he(d);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,c,e.source,s);d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){w(e)}))}else c&&c();function w(e){var t=void 0,n=void 0,i=[],r={};function a(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)a(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;c(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ue.required:ue[this.getType(e)]||!1}},he.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},he.messages=de;t["default"]=he},a25b:function(e,t,n){"use strict";n("4dd0")},a2bf:function(e,t,n){"use strict";var i=n("e8b5"),r=n("07fa"),a=n("3511"),o=n("0366"),s=function(e,t,n,l,u,c,d,h){var f,p,m=u,v=0,g=!!d&&o(d,h);while(v<l)v in n&&(f=g?g(n[v],v,t):n[v],c>0&&i(f)?(p=r(f),m=s(e,t,f,p,m,c-1)-1):(a(m+1),e[m]=f),m++),v++;return m};e.exports=s},a37e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.isView?t("div",[e._v(e._s(e.myLabel||"-"))]):t("el-cascader",e._b({attrs:{props:e.props,options:e.options,placeholder:e.placeholder,clearable:"",filterable:""},on:{change:e.handleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-cascader",e.$attrs,!1))},r=[],a=(n("a15b"),n("14d9"),n("b0c0"),n("e9c4"),n("b64b"),n("d3b7"),n("159b"),n("10bb")),o={development:"//tagcenter-backend-dev.imeik.com",testenv:"//tagcenter-backend-test.imeik.com",production:"//tagcenter-backend.imeik.com",pre:"//tagcenter-backend-pre.imeik.com"},s=Object(a["a"])(o),l=s;function u(e){return l({url:"/tagcenter-admin/dictionary/queryCityTree",method:"get",params:e})}var c={name:"RegionCascader",props:{value:{type:[String,Array],default:void 0},placeholder:{type:String,default:"请选择"},level:{type:String,default:void 0},checkStrictly:{type:Boolean,default:!0},emitPath:{type:Boolean,default:!1},props:{type:Object,default:function(){return{label:"name",value:"code",children:"subRegin",expandTrigger:"hover",checkStrictly:this.checkStrictly,emitPath:this.emitPath}}}},data:function(){return{myValue:void 0,options:[]}},computed:{isView:function(){return this.$attrs.isView},myLabel:function(){return this.getLabel(this.options,this.myValue)}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},getOptions:function(){var e=this;u({}).then((function(t){200===t.code&&(e.options=t.data||[],e.formatData(e.options))}))},formatData:function(e){for(var t=0;t<e.length;t++){var n=e[t];this.level&&this.level===n.level?delete n.subRegin:(n.subRegin&&0===n.subRegin.length&&delete n.subRegin,n.subRegin&&n.subRegin.length>0&&this.formatData(n.subRegin))}},getLabel:function(e,t){var n=this;if(!t||!e||0===e.length)return"";if(Array.isArray(t)){if(0===t.length)return"";if(this.emitPath&&t.length>0){for(var i=[],r=e,a=0;a<t.length;a++){var o=t[a],s=this.findItemByCode(r,o);if(!s)break;i.push(s.name),s.subRegin&&a<t.length-1&&(r=s.subRegin)}return i.join(" / ")}var l=[];return t.forEach((function(t){var i=n.findLabelByCode(e,t);i&&l.push(i)})),l.join(", ")}return this.findLabelByCode(e,t)||""},findLabelByCode:function(e,t){if(!t||!e||0===e.length)return"";for(var n=0;n<e.length;n++){var i=e[n];if(i.code===t)return i.name;if(i.subRegin&&i.subRegin.length>0){var r=this.findLabelByCode(i.subRegin,t);if(r)return r}}return""},findItemByCode:function(e,t){if(!t||!e||0===e.length)return null;for(var n=0;n<e.length;n++){var i=e[n];if(i.code===t)return i;if(i.subRegin&&i.subRegin.length>0){var r=this.findItemByCode(i.subRegin,t);if(r)return r}}return null},handleChange:function(){this.$emit("input",this.myValue),this.$emit("change",this.myValue)}}},d=c,h=n("2877"),f=Object(h["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},a3de:function(e,t,n){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=r},a3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-view"},[t("div",{class:{"text-left":!e.isView},staticStyle:{"margin-bottom":"12px","margin-top":"10px"}},[t("FieldCardHeader",{attrs:{item:{label:"产品信息"},attrs:{isView:e.isView}}}),e.showAddButton?t("el-button",{staticClass:"add-button",attrs:{type:"primary"},on:{click:e.showProductListSelect}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 添加 ")]):e._e()],1),t("ProductList",{attrs:{"table-data":e.tableData,"is-view":e.isView,"table-item-arr":e.tableItemArr,attrs:e.attrs,"approval-input-batch":e.attrs.approvalInputBatch,"form-prop-control":e.formPropControl},on:{removeItem:e.onRemoveItem}}),e.isView?e._e():t("SelectProductDialog",{ref:"selectProductDialog",attrs:{"rcoi-info":e.rcoiInfo},on:{addProduct:e.addProduct}})],1)},r=[],a=(n("99af"),n("caad"),n("d81d"),n("14d9"),n("a434"),n("e9c4"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("ac1f"),n("841c"),function(){var e=this,t=e._self._c;return t("ImDialog",{attrs:{"append-to-body":"","destroy-on-close":"",visible:e.dialogVisible,title:"选择产品",width:"960px"},on:{"update:visible":function(t){e.dialogVisible=t},cancel:e.onCancel}},[t("ImForm",{ref:"ImForm",attrs:{form:e.formConfig},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}}},[t("template",{slot:"brandName"},[t("span",{staticClass:"mr-3"},[e._v("商标名称")]),t("el-input",{staticStyle:{width:"calc(100% - 120px)"},attrs:{placeholder:"请输入"},model:{value:e.formConfig.props.materialTrademark,callback:function(t){e.$set(e.formConfig.props,"materialTrademark",t)},expression:"formConfig.props.materialTrademark"}})],1),t("template",{slot:"otherName"},[t("span",{staticClass:"mr-3"},[e._v("编码/简称/名称")]),t("el-input",{staticStyle:{width:"calc(100% - 110px)"},attrs:{placeholder:"请输入"},model:{value:e.formConfig.props.materialAbbreviation,callback:function(t){e.$set(e.formConfig.props,"materialAbbreviation",t)},expression:"formConfig.props.materialAbbreviation"}})],1)],2),t("ImTable",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"productTable",attrs:{table:e.tableConfig},scopedSlots:e._u([{key:"productName",fn:function(n){var i=n.row;return[t("p",{staticClass:"lineHeight"},[e._v(" "+e._s(i.materialAbbreviation)+" ")]),t("p",{staticClass:"lineHeight"},[e._v("名称:"+e._s(i.materialName))]),t("p",{staticClass:"lineHeight"},[e._v("商标:"+e._s(i.materialTrademark))])]}},{key:"materialSpec",fn:function(n){var i=n.row;return[t("div",[t("ImOneLineDot",{attrs:{text:"规格型号:".concat(i.materialModel)}},[e._v("规格型号:"+e._s(i.materialModel||"-"))]),t("ImOneLineDot",{attrs:{text:"规格代码:".concat(i.materialSpecCode)}},[e._v("规格代码:"+e._s(i.materialSpecCode||"-"))]),t("ImOneLineDot",{attrs:{text:"包装规格:".concat(i.materialModel)}},[e._v("包装规格:"+e._s(i.materialSpecification||"-"))]),t("ImOneLineDot",{attrs:{text:"计量单位:".concat(i.materialUnit)}},[e._v("计量单位:"+e._s(i.materialUnit||"-"))])],1)]}}])}),t("ImPagination",{ref:"ImPagination",attrs:{"page-size":e.pageSize,"current-page":e.currentPage,total:e.total},on:{"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},change:e.getList}}),t("template",{slot:"footer"},[t("div",{staticClass:"footer-view pt-6 mb-2 pl-2 pr-2"},[t("p",{staticClass:"selected-number"},[e._v(" 已选 "),t("span",[e._v(e._s(e.selectItems.length))]),e._v(" 项内容 ")]),t("div",[t("el-Button",{on:{click:e.onCancel}},[e._v("取消")]),t("el-Button",{attrs:{type:"primary"},on:{click:e.confirmInfo}},[e._v("确定")])],1)])])],2)}),o=[],s=n("5530"),l=n("8ea2"),u={name:"SelectProductDialog",inject:{formProps:{default:function(){}}},props:{rcoiInfo:{type:Object,default:function(){return{}}}},data:function(){return{formConfig:{column:3,props:{materialTrademark:void 0,materialAbbreviation:void 0},formItems:[{type:"ImSlot",prop:"materialTrademark",slots:{slot:"brandName"}},{type:"ImSlot",prop:"materialAbbreviation",slots:{slot:"otherName"}},{type:"ImButton",notInCol:!0,attrs:{style:"float: right; margin-top: 8px;",options:[{label:"重 置",attrs:{type:"default"},listeners:{click:this.resetForm}},{label:"查 询",attrs:{type:"primary"},listeners:{click:this.search}}]}}]},tableConfig:{attrs:{height:360,noStick:!0,rowKey:"materialCode"},data:[],tableItems:[{type:"selection",prop:"selection",attrs:{width:50,"reserve-selection":!0}},{prop:"materialCode",label:"编码",attrs:{"show-overflow-tooltip":!0,width:"180"}},{label:"名称",prop:"productName",type:"slot",slot:"productName",attrs:{"min-width":"380"}},{prop:"materialSpec",label:"规格",type:"slot",slot:"materialSpec",attrs:{width:"246","show-overflow-tooltip":!1}}],listeners:{"selection-change":this.selectionChange,"row-click":this.rowClick}},dialogVisible:!1,selectItems:[],loading:!1,pageSize:10,currentPage:1,total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e,t,n,i=this;this.loading=!0;var r=Object(s["a"])({page:this.currentPage,limit:this.pageSize,accountUid:null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.accountUid,customerUniqueCode:null===(t=this.formProps.applicationApplyCustomer)||void 0===t?void 0:t.customerUniqueCode,applyType:null===(n=this.formProps.applyTypeInfo)||void 0===n?void 0:n.applyType,belongCompany:this.formProps.belongCompany,formConfigSubCategory:this.formProps.formConfigSubCategory,rcoiCode:this.rcoiInfo.rcoiCode,rcoiNumber:this.rcoiInfo.rcoiNumber},this.formConfig.props);Object(l["h"])(r).then((function(e){200===e.code?(i.tableConfig.data=e.data.list,i.total=e.data.totalCount,i.loading=!1):i.loading=!1})).catch((function(){i.loading=!1}))},show:function(){this.dialogVisible=!0,this.getList()},closeDialog:function(){this.formConfig.props={materialTrademark:void 0,materialAbbreviation:void 0},this.dialogVisible=!1},onCancel:function(){this.closeDialog()},confirmInfo:function(){this.addItems(),this.closeDialog()},addItems:function(){this.$emit("addProduct",JSON.parse(JSON.stringify(this.selectItems))),this.selectItems.length=0},rowClick:function(e){var t=this.$refs.productTable.getTableInstance();t.toggleRowSelection(e)},selectionChange:function(e){this.selectItems=e},resetForm:function(){this.formConfig.props={materialTrademark:void 0,materialAbbreviation:void 0},this.getList()},search:function(){this.currentPage=1,this.getList()}}},c=u,d=(n("3feb"),n("2877")),h=Object(d["a"])(c,a,o,!1,null,"0480303c",null),f=h.exports,p=function(){var e=this,t=e._self._c;return t("div",[t("ImTable",{attrs:{table:e.tableConfig},scopedSlots:e._u([{key:"materialBasicsInfo",fn:function(n){var i=n.row;return["1"===i.overSchemeFlag?t("el-tag",{attrs:{type:"danger"}},[e._v("超母方案")]):e._e(),t("p",{staticClass:"materialName"},[e._v(e._s(i.materialAbbreviation))]),t("p",{staticClass:"materialSubName"},[e._v(e._s(i.materialName))]),t("p",{staticClass:"materialSubName"},[e._v("编码:"+e._s(i.materialCode))]),t("p",{staticClass:"materialSubName"},[e._v("商标:"+e._s(i.materialTrademark))])]}},{key:"materialCountInfo",fn:function(n){var i=n.row;return[t("div",{staticClass:"flex countView"},[e.isView?t("p",{staticClass:"materialName",staticStyle:{"margin-top":"0"}},[e._v(e._s(i.materialQuantity||"-"))]):t("div",[t("el-input-number",{class:{"is-error":!i.materialQuantity&&!1===i.valid},staticStyle:{width:"100%","margin-top":"-3px"},attrs:{"controls-position":"right",min:0,max:1e6,placeholder:"请输入数量"},on:{input:function(t){return e.handleInput(i)},blur:function(t){return e.handleBlur(i)}},model:{value:i.materialQuantity,callback:function(t){e.$set(i,"materialQuantity",t)},expression:"row.materialQuantity"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.materialQuantity&&!1===i.valid,expression:"!row.materialQuantity && row.valid === false"}],staticClass:"error-message"},[e._v("请检查物料数量")])],1)]),t("p",{staticClass:"materialSubName",staticStyle:{"margin-top":"8px"}},[e._v("规格型号:"+e._s(i.materialModel||"-"))]),t("p",{staticClass:"materialSubName"},[e._v("规格代码:"+e._s(i.materialSpecCode||"-"))]),t("p",{staticClass:"materialSubName"},[e._v("包装规格:"+e._s(i.materialSpecification||"-"))]),t("p",{staticClass:"materialSubName"},[e._v("计量单位:"+e._s(i.materialUnit||"-"))])]}},{key:"materialBudgetInfo",fn:function(n){var i=n.row;return[t("p",{staticClass:"budgetTitle"},[e._v("产品预算可用数量:")]),t("div",{staticClass:"flex countView"},[t("p",{staticClass:"budgetNum"},[e._v(e._s(i.materialBudgetProductRemainingQuantity))]),t("div",{staticClass:"budgetPercent"},[t("img",{staticClass:"budgetImg",attrs:{src:"https://udstatic.imeik.com/pcUploads/1739516139292/xiaoliang.png"}}),e._v(" "+e._s(i.materialBudgetRemainingPercentage)+" ")])]),t("p",{staticClass:"budgetTitle mt-2"},[e._v("产品预算大类可用数量:")]),t("div",{staticClass:"flex countView"},[t("p",{staticClass:"budgetNum"},[e._v(e._s(i.materialBudgetLargeCategoryRemainingQuantity))]),t("div",{staticClass:"budgetPercent"},[t("img",{staticClass:"budgetImg",attrs:{src:"https://udstatic.imeik.com/pcUploads/1739516139292/xiaoliang.png"}}),e._v(" "+e._s(i.materialBudgetLargeCategoryRemainingPercentage)+" ")])])]}},{key:"materialSchemeInfo",fn:function(n){var i=n.row;return[e.isView?t("div",{staticClass:"materialName"},[e._v(e._s(i.materialAssociatedMotherSchemeName||"-"))]):t("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(t){return e.handleChangeScheme(t,i)},clear:function(t){return e.clearScheme(i)}},model:{value:i.materialAssociatedMotherSchemeCode,callback:function(t){e.$set(i,"materialAssociatedMotherSchemeCode",t)},expression:"row.materialAssociatedMotherSchemeCode"}},e._l(i.motherSchemeList||[],(function(e){return t("el-option",{key:e.materialAssociatedMotherSchemeCode,staticStyle:{width:"100%"},attrs:{label:e.materialAssociatedMotherSchemeName,value:e.materialAssociatedMotherSchemeCode}})})),1),i.materialAssociatedMotherSchemeCode?t("div",[t("p",{staticClass:"schemeCount"},[e._v(" 母方案剩余数量:"),t("span",{staticStyle:{color:"#3285f6"}},[e._v(e._s(i.materialSchemeRemainingQuantity))])]),t("p",{staticClass:"schemeCount"},[e._v(" 母方案总数量:"),t("span",{staticStyle:{color:"#3285f6"}},[e._v(e._s(i.materialSchemeTotalQuantity))])])]):e._e()]}},{key:"overSchemeExplain",fn:function(n){var i=n.row;return[!e.isView&&e.checkQuantity(i)?t("div",[t("el-input",{class:{"is-error":!i.overSchemeExplain},attrs:{type:"textarea",rows:5,"show-word-limit":"",maxlength:"200",placeholder:"请输入"},model:{value:i.overSchemeExplain,callback:function(t){e.$set(i,"overSchemeExplain",t)},expression:"row.overSchemeExplain"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.overSchemeExplain&&!1===i.valid,expression:"!row.overSchemeExplain && row.valid === false"}],staticClass:"error-message"},[e._v("请输入超母方案说明")])],1):t("div",{staticClass:"materialSubName"},[e._v(e._s(i.overSchemeExplain||"-"))])]}},{key:"materialBatchInfo",fn:function(n){var i=n.row;return[e.isView?t("div",{staticClass:"materialName"},[e._v(e._s("1"===i.materialIsSpecifiedBatch?"是":"否"))]):t("el-radio-group",{model:{value:i.materialIsSpecifiedBatch,callback:function(t){e.$set(i,"materialIsSpecifiedBatch",t)},expression:"row.materialIsSpecifiedBatch"}},[t("el-radio",{attrs:{label:"1"}},[e._v("是")]),t("el-radio",{attrs:{label:"0"}},[e._v("否")])],1),"1"!==i.materialIsSpecifiedBatch||e.approvalInputBatch?e._e():t("div",[e.isView?e._e():t("el-input",{class:{"is-error":!i.materialBatch&&!1===i.valid},staticStyle:{"margin-top":"16px"},attrs:{placeholder:"请输入批次号"},model:{value:i.materialBatch,callback:function(t){e.$set(i,"materialBatch",t)},expression:"row.materialBatch"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.materialBatch&&!1===i.valid,expression:"!row.materialBatch && row.valid === false"}],staticClass:"error-message"},[e._v("请输入批次号")])],1),"1"===i.materialIsSpecifiedBatch&&e.approvalInputBatch&&e.hasApprovalInputBatch?t("div",[t("el-input",{class:{"is-error":!i.materialBatch&&!1===i.valid},staticStyle:{"margin-top":"16px"},attrs:{placeholder:"请输入批次号"},model:{value:i.materialBatch,callback:function(t){e.$set(i,"materialBatch",t)},expression:"row.materialBatch"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.materialBatch&&!1===i.valid,expression:"!row.materialBatch && row.valid === false"}],staticClass:"error-message"},[e._v("请输入批次号")])],1):e._e(),i.materialBatch&&e.isView&&!e.hasApprovalInputBatch?t("div",{staticClass:"materialName"},[e._v("批次号:"+e._s(i.materialBatch||"-"))]):e._e()]}},{key:"warehouse",fn:function(n){var i=n.row;return[e.hasApprovalInputWarehouse&&!i.fixedWarehouseFlag?t("div",[t("el-select",{class:{"is-error":!i.warehouseNumber||!1===i.valid},attrs:{placeholder:"请选择"},on:{change:function(t){return e.handleChangeWarehouse(t,i)}},model:{value:i.warehouseNumber,callback:function(t){e.$set(i,"warehouseNumber",t)},expression:"row.warehouseNumber"}},e._l(e.warehouseList||[],(function(e){return t("el-option",{key:e.warehouseNumber,staticStyle:{width:"100%"},attrs:{label:e.warehouseName,value:e.warehouseNumber}})})),1),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.warehouseNumber&&!1===i.valid,expression:"!row.warehouseNumber && row.valid === false"}],staticClass:"error-message"},[e._v("请选择库房")])],1):t("div",{staticClass:"materialSubName autoheight"},[e._v(e._s(i.warehouseName||"-"))])]}},{key:"remarks",fn:function(n){var i=n.row;return[e.isView?t("div",{staticClass:"materialSubName"},[e._v(e._s(i.materialRemark||"-"))]):t("el-input",{attrs:{type:"textarea",rows:5,"show-word-limit":"",maxlength:"100",placeholder:"请输入"},model:{value:i.materialRemark,callback:function(t){e.$set(i,"materialRemark",t)},expression:"row.materialRemark"}})]}},{key:"addressInfo",fn:function(n){var i=n.row,r=n.$index;return[t("p",{staticClass:"address-info"},[e._v("收货人:"+e._s(i.materialReceivingContact)+" "+e._s(e.formatPhone(i.materialReceivingContactNumber)))]),e.hiddenAddress?t("p",{staticClass:"address-info"},[e._v("收货地址:"+e._s("-"))]):e._e(),e.hiddenAddress?e._e():t("p",{staticClass:"address-info"},[e._v("收货地址:"+e._s("".concat(i.materialReceivingProvince||"").concat(i.materialReceivingCity||"").concat(i.materialReceivingArea||"").concat(i.materialReceivingAddress||"")))]),e.isView?e._e():t("p",{staticClass:"address",on:{click:function(t){return e.changeAddressInfo(i,r)}}},[e._v("修改收货地址")])]}},{key:"operate",fn:function(n){var i=n.row,r=n.$index;return[t("el-button",{staticClass:"delete-button",attrs:{type:"text"},on:{click:function(t){return e.deleteProduct(i,r)}}},[e._v("移除")])]}}])},[t("template",{slot:"overSchemeExplainHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("超母方案说明")])]),t("template",{slot:"materialCountInfoHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("数量")])])],2),t("div",{staticClass:"total"},[e._v(" 合计:"),t("span",[e._v(e._s(e.totalCount))])]),e.show?t("AddressSelect",{attrs:{show:e.show,"data-source":e.currentItem.row},on:{"update:show":function(t){e.show=t},confirm:e.handleConfirmAddress}}):e._e()],1)},m=[],v=n("53ca"),g=(n("e260"),n("b0c0"),n("4ec9"),n("a9e3"),n("3ca3"),n("5319"),n("ddb0"),function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"修改收货地址",visible:e.show,width:"960px","before-close":e.dialogBeforeClose}},[t("div",{staticClass:"product-info"},[t("p",[t("span",[e._v("产品:")]),e._v(" "+e._s(e.dataSource.materialAbbreviation)+" ")]),t("p",[t("span",[e._v("默认收货信息:")]),e._v(" "+e._s(e.dataSource.materialReceivingContact)+" "+e._s(e.dataSource.materialReceivingContactNumber)+" ")]),t("p",[e._v(e._s("".concat(e.dataSource.materialReceivingProvince||"").concat(e.dataSource.materialReceivingCity||"").concat(e.dataSource.materialReceivingArea||"").concat(e.dataSource.materialReceivingAddress||"")))])]),t("div",{staticClass:"flex",staticStyle:{"margin-top":"23px"}},[t("ImForm",{ref:"ImForm",attrs:{form:e.formConfig}}),e.showPasteInfo?t("div",{staticClass:"paste-info"},[t("p",{staticClass:"paste-info-title"},[e._v("粘贴信息自动识别")]),t("el-input",{attrs:{rows:10,type:"textarea",placeholder:"请粘贴收货信息"},model:{value:e.pasteInfo,callback:function(t){e.pasteInfo=t},expression:"pasteInfo"}}),t("el-button",{staticClass:"button",attrs:{type:"primary"},on:{click:e.handleAutoAddress}},[e._v("自动识别")])],1):e._e()],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.dialogBeforeClose}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)])}),b=[],y=n("23ef"),w={name:"AddressSelect",inject:{formProps:{default:function(){}}},props:{show:{type:Boolean,default:!1},dataSource:{type:Object,default:function(){return{}}}},data:function(){return{formConfig:{column:3,gutter:24,props:{deliveryMode:"2",materialReceivingAddressSource:void 0,materialReceivingAddressType:void 0,materialReceivingSource:void 0,materialReceivingContact:void 0,materialReceivingContactNumber:void 0,materialReceivingCity:void 0,materialReceivingAddress:void 0,materialReceivingInfo:void 0,materialReceivingInfoView:void 0,isSimilarly:"0"},formItems:[]},pasteInfo:"",showPasteInfo:!1,tagCustomAddressInfo:void 0,receivingOptions:[],addressTypeList:[]}},computed:{hasCustom:function(){var e;return null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.accountUid},isEquipment:function(){return"三类器械"===this.dataSource.productTypeName||"二类器械"===this.dataSource.productTypeName},equipmentType:function(){return"三类器械"===this.dataSource.productTypeName?"0":"二类器械"===this.dataSource.productTypeName?"2":"1"},isGufen:function(){return"201"===this.formProps.belongCompany},canEditReceivingInfo:function(){var e="2"===this.formConfig.props.materialReceivingSource,t=!this.hasCustom&&this.isEquipment,n="1"===this.formConfig.props.deliveryMode;return e||t||!this.disabledEditCityOrAddressInfo||n},disabledEditCityOrAddressInfo:function(){return"3"!==this.formConfig.props.materialReceivingAddressSource},hiddenAddressTypeAndReceiving:function(){var e="1"!==this.formConfig.props.materialReceivingAddressSource,t="1"===this.formConfig.props.deliveryMode;return e||t},hiddenSelectCity:function(){var e=!1,t=this.formConfig.props.materialReceivingAddressSource;return e="3"!==t,!1===this.dataSource.hasAddress&&(e=!0),e},canSelfLift:function(){return!(!this.hasCustom||"支持"!==this.formProps.applicationApplyCustomer.selfPickup)||!this.hasCustom&&!this.isEquipment&&!0===this.dataSource.hasAddress},formItems:function(){return[{type:"ImSelect",prop:"deliveryMode",label:"提货方式",attrs:{disabled:!1===this.dataSource.hasAddress,options:[{label:"自提",value:"1",disabled:!this.canSelfLift},{label:"发货",value:"2"}],class:"w-full"},listeners:{change:this.onAddressDeliveryModeChange}},{type:"ImSelect",prop:"deliveryModeAddressSource",label:"提货地址",hidden:!("1"===this.formConfig.props.deliveryMode&&this.isEquipment),attrs:{options:[{label:"平谷库房",value:"1"},{label:"世贸大厦",value:"2"}],class:"w-full"},listeners:{change:this.ondeliveryModeAddressSourceChange}},{type:"ImSelect",prop:"materialReceivingAddressSource",label:"地址来源",hidden:"1"===this.formConfig.props.deliveryMode,attrs:{options:[{label:"客户档案",value:"1",disabled:!this.hasCustom},{label:"本人EHR",value:"2",disabled:this.isEquipment},{label:"手动输入",value:"3",disabled:this.isEquipment}],class:"w-full"},listeners:{change:this.onAddressSourceChange}},{type:"ImSelect",prop:"materialReceivingAddressType",label:"地址类型",hidden:this.hiddenAddressTypeAndReceiving,attrs:{options:[{label:"三类械收货地址",value:"0",disabled:"2"===this.equipmentType||!this.addressTypeList.includes("0")},{label:"二类械收货地址",value:"2",disabled:"0"!==this.equipmentType||!this.addressTypeList.includes("2")},{label:"其他收货地址",value:"1",disabled:"1"!==this.equipmentType||!this.addressTypeList.includes("1")}],class:"w-full"},listeners:{change:this.onAddressTypeChange}},{type:"ImSelect",prop:"materialReceivingSource",label:"收货人",hidden:this.hiddenAddressTypeAndReceiving,attrs:{options:this.receivingOptions,class:"w-full"},listeners:{change:this.onMaterialReceivingSourceChange}},{type:"ImSelect",prop:"isSimilarly",label:"同一地址",hidden:this.hasCustom||this.isEquipment,attrs:{options:[{label:"是",value:"1"},{label:"否",value:"0"}],class:"w-full"}},{type:"ImInput",prop:"materialReceivingContact",label:"联系人",rules:[{required:!0,message:"请输入联系人"}],attrs:{disabled:!this.canEditReceivingInfo,class:"2"===this.formConfig.props.materialReceivingSource&&"is-error"}},{type:"ImInput",prop:"materialReceivingContactNumber",label:"联系电话",rules:[{required:!0,message:"请输入联系电话"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],attrs:{disabled:!this.canEditReceivingInfo,class:"2"===this.formConfig.props.materialReceivingSource&&"is-error"}},{type:"FieldCitySelect",prop:"materialReceivingInfo",label:"省市区",hidden:this.hiddenSelectCity,rules:[{required:!this.hiddenSelectCity,message:"请选择省市区"}],attrs:{disabled:this.disabledEditCityOrAddressInfo},listeners:{change:this.onMaterialReceivingInfoChange}},{type:"ImInput",prop:"materialReceivingInfoView",label:"省市区",hidden:!this.hiddenSelectCity,attrs:{disabled:!0}},{type:"ImInput",prop:"materialReceivingAddress",label:"收货地址",rules:[{required:!0,message:"请输入收货地址"}],attrs:{type:"textarea",rows:4,"show-word-limit":!0,disabled:this.disabledEditCityOrAddressInfo}}]}},watch:{formItems:{handler:function(e){this.formConfig.formItems=e},immediate:!0,deep:!0}},mounted:function(){this.initData()},methods:{initData:function(){for(var e in this.formConfig.props)this.formConfig.props[e]=this.dataSource[e];"3"===this.formConfig.props.materialReceivingAddressType&&(this.formConfig.props.materialReceivingAddressType="0");var t=this.dataSource,n=t.materialReceivingProvince,i=t.materialReceivingCity,r=t.materialReceivingArea;this.formConfig.props.materialReceivingInfoView="".concat(n||"").concat(i||"").concat(r||""),this.formConfig.props.deliveryMode||(this.formConfig.props.deliveryMode="2",this.onAddressDeliveryModeChange("2")),this.hasCustom&&(this.formConfig.props.materialReceivingAddressSource="1",this.onAddressSourceChange("1")),!this.hasCustom&&this.isEquipment&&this.defaultImeik(),!1===this.dataSource.hasAddress&&(this.formConfig.props.deliveryMode="1")},onAddressDeliveryModeChange:function(e){"1"===e?this.isEquipment?this.defaultImeik():this.defaultPingGu():this.onAddressSourceChange(this.formConfig.props.materialReceivingAddressSource)},ondeliveryModeAddressSourceChange:function(e){"1"===e?this.defaultPingGu():this.defaultImeik()},onAddressSourceChange:function(e){var t=this;"1"===e?this.handleCustomerAddress():(this.formConfig.props.materialReceivingAddressType=void 0,this.formConfig.props.materialReceivingSource=void 0),"2"===e&&Object(l["d"])().then((function(e){var n,i;200===e.code&&(t.formConfig.props.materialReceivingContact=null===(n=t.$bizui)||void 0===n||null===(n=n.userInfo)||void 0===n?void 0:n.name,t.formConfig.props.materialReceivingContactNumber=null===(i=t.$bizui)||void 0===i||null===(i=i.userInfo)||void 0===i?void 0:i.account,t.formConfig.props.materialReceivingProvince=e.data.materialReceivingProvince,t.formConfig.props.materialReceivingCity=e.data.materialReceivingCity,t.formConfig.props.materialReceivingArea=e.data.materialReceivingArea,t.formConfig.props.materialReceivingAddress=e.data.materialReceivingAddress,t.formConfig.props.materialReceivingInfoView="".concat(e.data.materialReceivingProvince,"/").concat(e.data.materialReceivingCity,"/").concat(e.data.materialReceivingArea))})),"3"===e&&(this.formConfig.props.materialReceivingContact="",this.formConfig.props.materialReceivingContactNumber="",this.formConfig.props.materialReceivingProvince="",this.formConfig.props.materialReceivingCity="",this.formConfig.props.materialReceivingArea="",this.formConfig.props.materialReceivingAddress="",this.formConfig.props.materialReceivingInfo="",this.formConfig.props.materialReceivingAddressType=void 0),this.showPasteInfo="3"===e},handleCustomerAddress:function(){var e,t,n=this,i=(null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.userList)||[],r=(null===(t=this.formProps.applicationApplyCustomer)||void 0===t?void 0:t.addressList)||[];this.addressTypeList=r.map((function(e){return e.addrType})),this.isGufen&&this.equipmentType?this.receivingOptions=[{label:"默认收货人",value:"1"},{label:"其他收货人",value:"2"}]:this.receivingOptions=i.map((function(e){return{value:e.phone,label:e.userName}})),i&&i.length&&(this.isGufen?this.formConfig.props.materialReceivingSource="1":this.formConfig.props.materialReceivingSource=i[0].phone,this.formConfig.props.materialReceivingContact=i[0].userName,this.formConfig.props.materialReceivingContactNumber=i[0].phone),r&&r.length&&!this.isEquipment&&r.forEach((function(e){e.addrType!==n.equipmentType&&"1"!==n.equipmentType||(n.formConfig.props.materialReceivingAddressType="3"===e.addrType?"0":e.addrType,n.formConfig.props.materialReceivingAddress=e.address,n.formConfig.props.materialReceivingProvince=e.prov,n.formConfig.props.materialReceivingCity=e.city,n.formConfig.props.materialReceivingArea=e.country,n.formConfig.props.materialReceivingInfoView="".concat(e.prov,"/").concat(e.city,"/").concat(e.country))}))},onMaterialReceivingSourceChange:function(e){var t,n=this,i=(null===(t=this.formProps.applicationApplyCustomer)||void 0===t?void 0:t.userList)||[];i.forEach((function(t){t.phone===e&&(n.formConfig.props.materialReceivingContact=t.userName,n.formConfig.props.materialReceivingContactNumber=t.phone)}))},onAddressTypeChange:function(){var e,t=this,n=(null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.addressList)||[];n.forEach((function(e){e.addrType===t.formConfig.props.materialReceivingAddressType&&(t.formConfig.props.materialReceivingAddress=e.address,t.formConfig.props.materialReceivingProvince=e.prov,t.formConfig.props.materialReceivingCity=e.city,t.formConfig.props.materialReceivingArea=e.country,t.formConfig.props.materialReceivingInfoView="".concat(e.prov,"/").concat(e.city,"/").concat(e.country),t.formConfig.props.materialReceivingAddressType="3"===e.addrType?"0":e.addrType)}))},onMaterialReceivingInfoChange:function(e,t){if(t&&t.fullname){var n=t.fullname.split(".");3===n.length&&(this.formConfig.props.materialReceivingProvince=n[0],this.formConfig.props.materialReceivingCity=n[1],this.formConfig.props.materialReceivingArea=n[2],this.formConfig.props.materialReceivingAddressType=void 0)}},handleAutoAddress:function(){var e=this;Object(y["a"])({content:this.pasteInfo}).then((function(t){200===t.code&&(e.formConfig.props.materialReceivingProvince=t.data.province,e.formConfig.props.materialReceivingCity=t.data.city,e.formConfig.props.materialReceivingArea=t.data.area,e.formConfig.props.materialReceivingAddress=t.data.address,e.formConfig.props.materialReceivingAddressType=void 0,e.formConfig.props.materialReceivingInfo=t.data.areaCode,e.formConfig.props.materialReceivingContact=t.data.sender,e.formConfig.props.materialReceivingContactNumber=t.data.phone)}))},defaultImeik:function(){var e,t;this.formConfig.props.materialReceivingInfoView="北京市/北京市/朝阳区",this.formConfig.props.materialReceivingAddress="建国路甲92号世茂大厦C座21层爱美客",this.formConfig.props.materialReceivingProvince="北京市",this.formConfig.props.materialReceivingCity="北京市",this.formConfig.props.materialReceivingArea="朝阳区",this.formConfig.props.materialReceivingContact=null===(e=this.$bizui)||void 0===e||null===(e=e.userInfo)||void 0===e?void 0:e.name,this.formConfig.props.materialReceivingContactNumber=null===(t=this.$bizui)||void 0===t||null===(t=t.userInfo)||void 0===t?void 0:t.account},defaultPingGu:function(){var e,t;this.formConfig.props.materialReceivingInfoView="北京市/北京市/平谷区",this.formConfig.props.materialReceivingAddress="库房",this.formConfig.props.materialReceivingProvince="北京市",this.formConfig.props.materialReceivingCity="北京市",this.formConfig.props.materialReceivingArea="平谷区",this.formConfig.props.materialReceivingContact=null===(e=this.$bizui)||void 0===e||null===(e=e.userInfo)||void 0===e?void 0:e.name,this.formConfig.props.materialReceivingContactNumber=null===(t=this.$bizui)||void 0===t||null===(t=t.userInfo)||void 0===t?void 0:t.account},dialogBeforeClose:function(){this.$emit("update:show",!1)},onConfirm:function(){var e=this;this.$refs.ImForm.validate((function(t){if(t){if(e.isGufen&&"2"===e.formConfig.props.materialReceivingSource)return void Object(l["m"])({phoneNumber:e.formConfig.props.materialReceivingContactNumber}).then((function(t){200===t.code?t.data?e.$message.error("该手机号是IMEIK员工,请重新选择收货人"):(e.$emit("confirm",Object(s["a"])(Object(s["a"])({},e.dataSource),e.formConfig.props)),e.$emit("update:show",!1)):e.$message.error(t.message)}));e.$emit("confirm",Object(s["a"])(Object(s["a"])({},e.dataSource),e.formConfig.props)),e.$emit("update:show",!1)}}))},getDataIndexByProp:function(e){var t;return this.formConfig.formItems.forEach((function(n,i){n.prop===e&&(t=i)})),t}}},_=w,x=(n("1bf2"),Object(d["a"])(_,g,b,!1,null,"64778177",null)),C=x.exports,S={name:"ProductList",components:{AddressSelect:C},inject:{formProps:{default:function(){}}},props:{tableData:{type:Array,default:function(){return[]}},approvalInputBatch:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tableItemArr:{type:Array,default:function(){return[]}},tableConfigAttrs:{type:Object,default:function(){return{}}},tableConfigListeners:{type:Object,default:function(){return{}}},isView:{type:Boolean,default:!1},attrs:{type:Object,default:function(){return{}}},formPropControl:{type:Array,default:function(){return[]}}},data:function(){return{tableConfig:{attrs:{},listeners:{},data:[],tableItems:[]},allTableItemMap:{materialBasicsInfo:{prop:"materialBasicsInfo",label:"名称",type:"slot",slot:"materialBasicsInfo",attrs:{"min-width":"180"}},materialCountInfo:{prop:"materialCountInfo",label:"规格",type:"slot",slot:"materialCountInfo",headSlot:"materialCountInfoHead",attrs:{"min-width":"180"}},materialBudgetInfo:{prop:"materialBudgetInfo",label:"产品预算信息",type:"slot",slot:"materialBudgetInfo",attrs:{"min-width":"180"}},materialSchemeInfo:{prop:"materialSchemeInfo",label:"关联母方案",type:"slot",slot:"materialSchemeInfo",attrs:{"min-width":"150"}},overSchemeExplain:{prop:"overSchemeExplain",label:"超母方案说明",type:"slot",slot:"overSchemeExplain",headSlot:"overSchemeExplainHead",attrs:{"min-width":"160"}},warehouse:{prop:"warehouse",label:"库房",type:"slot",slot:"warehouse",attrs:{"min-width":"150"}},materialBatchInfo:{prop:"materialBatchInfo",label:"是否指定批次",type:"slot",slot:"materialBatchInfo",attrs:{"min-width":"150"}},remarks:{prop:"remarks",label:"备注",type:"slot",slot:"remarks",attrs:{"min-width":"160"}},purpose:{prop:"materialDepartmentName",label:"专用部门",attrs:{"min-width":"150"}},addressInfo:{prop:"department",label:"收货信息",type:"slot",slot:"addressInfo",attrs:{"min-width":"205"}},operate:{prop:"operate",label:"操作",type:"slot",attrs:{fixed:"right",width:"80"},slot:"operate"}},totalCount:0,show:!1,currentItem:{},warehouseList:[],canInputMaterialBatch:void 0}},computed:{fromApproval:function(){return"approval"===this.$route.query.from},hasApprovalInputBatch:function(){var e;return this.formPropControl&&(null===(e=this.formPropControl)||void 0===e?void 0:e.includes("materialBatch"))},hasApprovalInputWarehouse:function(){var e;return this.formPropControl&&(null===(e=this.formPropControl)||void 0===e?void 0:e.includes("warehouse"))},hiddenAddress:function(){return["B02","B03"].includes(this.formProps.formBaseNo)}},watch:{tableItemArr:{immediate:!0,handler:function(){this.setTableItems()}},tableData:{immediate:!0,handler:function(){this.tableConfig.data=this.tableData||[],this.isView||this.getMaterialOtherData(),this.setTotalNumber()}},tableConfigAttrs:{immediate:!0,handler:function(){this.tableConfig.attrs=Object(s["a"])({},this.tableConfigAttrs)}},tableConfigListeners:{immediate:!0,handler:function(){this.$set(this.tableConfig,"listeners",this.tableConfigListeners)}}},mounted:function(){this.isView&&!this.fromApproval||this.getMaterialWarehouseData()},methods:{getMaterialWarehouseData:function(){var e=this;Object(l["n"])({belongCompany:this.formProps.belongCompany}).then((function(t){200===t.code&&(e.warehouseList=t.data)}))},getMaterialOtherData:function(){var e,t=[];null===(e=this.tableConfig.data)||void 0===e||e.forEach((function(e){t.push(e.materialCode)})),t.length&&(this.handleGetMaterialReceivingAddressList(t),this.handleGetMotherSchemeList(t)),this.setAddressInfo()},setAddressInfo:function(){var e,t,n=this,i=null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.accountUid,r="2"===this.formProps.hasAddress,a=(null===(t=this.$bizui)||void 0===t?void 0:t.userInfo)||{};this.tableConfig.data.forEach((function(e,t){var o=["二类器械","三类器械"].includes(e.productTypeName),s=o&&!i;s&&!e.haveAddress&&(e.haveAddress=!0,e.materialReceivingAddress="建国路甲92号世茂大厦C座21层爱美客",e.materialReceivingProvince="北京市",e.materialReceivingCity="北京市",e.materialReceivingArea="朝阳区",e.materialReceivingContact=a.name,e.materialReceivingContactNumber=a.account,e.deliveryMode="1",e.hasAddress="2"!==n.formProps.hasAddress),r&&!e.haveAddress&&(e.haveAddress=!0,e.materialReceivingAddress="库房",e.materialReceivingProvince="北京市",e.materialReceivingCity="北京市",e.materialReceivingArea="平谷区",e.materialReceivingContact=a.name,e.materialReceivingContactNumber=a.account,e.deliveryMode="1",e.hasAddress="2"!==n.formProps.hasAddress),i||o||e.haveAddress||Object(l["d"])().then((function(t){200===t.code&&(e.haveAddress=!0,n.$set(e,"materialReceivingAddress",t.data.materialReceivingAddress),n.$set(e,"materialReceivingProvince",t.data.materialReceivingProvince),n.$set(e,"materialReceivingCity",t.data.materialReceivingCity),n.$set(e,"materialReceivingArea",t.data.materialReceivingArea),n.$set(e,"materialReceivingContact",null===a||void 0===a?void 0:a.name),n.$set(e,"materialReceivingContactNumber",null===a||void 0===a?void 0:a.account),n.$set(e,"deliveryMode","2"),e.hasAddress="2"!==n.formProps.hasAddress)}))}))},handleGetMaterialReceivingAddressList:function(e){var t,n,i,r=this;if(null!==(t=this.formProps.applicationApplyCustomer)&&void 0!==t&&t.accountUid){var a=(null===(n=this.formProps)||void 0===n||null===(n=n.applicationApplyCustomer)||void 0===n?void 0:n.userList)||[{}];Object(l["i"])({productCodeList:e,customerRelationCode:null===(i=this.formProps.applicationApplyCustomer)||void 0===i?void 0:i.accountUid}).then((function(e){if(200===e.code&&e.data.length){var t=e.data;if(!Array.isArray(t)||0===t.length)return;var n=new Map(r.tableConfig.data.map((function(e){return[e.materialCode,e]})));t.forEach((function(e){if(e.productCode&&e.address){var t=n.get(e.productCode);if(t&&!t.haveAddress){var i,o,s=e.address||{},l=s.country,u=s.addrType,c=s.address,d=s.city,h=s.prov;t.haveAddress=!0,r.$set(t,"materialReceivingAddress",c),r.$set(t,"materialReceivingAddressType",u),r.$set(t,"materialReceivingProvince",h),r.$set(t,"materialReceivingCity",d),r.$set(t,"materialReceivingArea",l),r.$set(t,"deliveryMode","2"),r.$set(t,"materialReceivingContact",a[0]?null===(i=a[0])||void 0===i?void 0:i.userName:""),r.$set(t,"materialReceivingContactNumber",a[0]?null===(o=a[0])||void 0===o?void 0:o.phone:"")}}}))}}))}},handleGetMotherSchemeList:function(e){var t=this;Object(l["j"])({materialCodeList:e,costBearDepartmentCode:this.formProps.costBearDepartmentCode}).then((function(e){if(200===e.code){var n=e.data;if(!Array.isArray(n)||0===n.length)return;var i=new Map(t.tableConfig.data.map((function(e){return[e.materialCode,e]})));n.forEach((function(e){if(e.materialCode&&e.planInfoList){var n=i.get(e.materialCode);n&&(t.$set(n,"motherSchemeList",e.planInfoList),t.handleChangeScheme(n.materialAssociatedMotherSchemeCode,n))}}))}})).catch((function(e){console.error("Failed to fetch mother scheme list:",e)}))},changeAddressInfo:function(e,t){this.show=!0,this.currentItem={row:e,index:t}},handleChangeWarehouse:function(e,t){this.warehouseList.forEach((function(n){n.warehouseNumber===e&&(t.warehouseName=n.warehouseName)}))},deleteProduct:function(e,t){this.$emit("removeItem",e,t)},handleInput:function(e){var t;this.$bizui&&(null===(t=this.$bizui)||void 0===t||null===(t=t.bus)||void 0===t||t.$emit("updateTableData"));this.setTotalNumber()},handleBlur:function(e){var t=e.materialSendBaseTimesOther||1,n=e.materialQuantity%t===0;n||this.$message.warning("".concat(e.materialAbbreviation,"的数量必须是").concat(t,"的倍数")),this.checkQuantity(e)},setTotalNumber:function(){var e=this;this.totalCount=0,this.tableConfig.data.forEach((function(t){Number(t.materialQuantity)&&(e.totalCount+=Number(t.materialQuantity))}))},setTableItems:function(){var e=this,t=[];this.tableItemArr.forEach((function(n){"object"===Object(v["a"])(n)?t.push(n):e.allTableItemMap[n]&&t.push(e.allTableItemMap[n])})),this.tableConfig.tableItems=t},handleConfirmAddress:function(e){var t=this;try{"1"===e.isSimilarly?(this.$set(this.tableConfig.data,this.currentItem.index,e),this.tableConfig.data.forEach((function(n,i){["二类器械","三类器械"].includes(n.productTypeName)||n.deliveryMode!==e.deliveryMode||(n.materialReceivingAddress=e.materialReceivingAddress,n.materialReceivingProvince=e.materialReceivingProvince,n.materialReceivingCity=e.materialReceivingCity,n.materialReceivingArea=e.materialReceivingArea,n.materialReceivingContact=e.materialReceivingContact,n.materialReceivingContactNumber=e.materialReceivingContactNumber,t.$set(t.tableConfig.data,i,Object(s["a"])({},n)),t.$forceUpdate())}))):this.$set(this.tableConfig.data,this.currentItem.index,e)}catch(n){console.log(n)}},handleChangeScheme:function(e,t){t.motherSchemeList.forEach((function(n){n.materialAssociatedMotherSchemeCode===e&&(t.materialSchemeRemainingQuantity=n.materialSchemeRemainingQuantity,t.materialSchemeTotalQuantity=n.materialSchemeTotalQuantity,t.materialAssociatedMotherSchemeName=n.materialAssociatedMotherSchemeName)})),this.checkQuantity(t)},formatPhone:function(e){return e?e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):""},checkQuantity:function(e){return!e.materialQuantity||[null,void 0].includes(e.materialSchemeRemainingQuantity)?(this.$set(e,"overSchemeFlag","0"),this.$set(e,"overSchemeExplain",""),!1):Number(e.materialSchemeRemainingQuantity)<Number(e.materialQuantity)?(this.$set(e,"overSchemeFlag","1"),!0):(this.$set(e,"overSchemeFlag","0"),this.$set(e,"overSchemeExplain",""),!1)},clearScheme:function(e){e.materialSchemeRemainingQuantity=void 0,e.materialSchemeTotalQuantity=void 0},formatDataDeliveryMode:function(e){switch(e){case"1":return"自提";case"2":return"快递";default:return"-"}}}},k=S,O=(n("be6a"),Object(d["a"])(k,p,m,!1,null,"2d214ddb",null)),D=O.exports,E={name:"FieldMaterialSelect",components:{SelectProductDialog:f,ProductList:D},inject:{formProps:{default:function(){}}},props:{value:{type:Array,default:function(){return[]}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{tableData:[],tableItemArr:[],baseInfo:["materialBasicsInfo","materialCountInfo"],budget:["materialBudgetInfo"],scheme:["materialSchemeInfo"],batch:["materialBatchInfo"],purpose:["purpose"],address:["addressInfo"],warehouse:["warehouse"],formPropControl:void 0}},computed:{isView:function(){return!!this.attrs.isView},rcoiInfo:function(){return{rcoiCode:this.attrs.rcoiCode,rcoiNumber:this.attrs.rcoiNumber}},showAddButton:function(){var e;return!this.isView&&(null===(e=this.formProps)||void 0===e||null===(e=e.applyTypeInfo)||void 0===e?void 0:e.applyType)}},watch:{value:{handler:function(e){this.tableData=e},deep:!0,immediate:!0}},created:function(){this.handleBusEvent(),this.handleTableData()},beforeDestroy:function(){this.$bizui.bus&&this.$bizui.bus.$off("applySubmit")},methods:{handleBusEvent:function(){var e=this;this.$bizui.bus&&(this.isView?(this.$bizui.bus.$on("approvalSubmit",(function(t){e.handleApprovalValidate()})),this.$bizui.bus.$on("getNodePropConfig",(function(t){e.formPropControl=t}))):(this.$bizui.bus.$on("applySubmit",(function(t){e.handleValidate()})),this.$bizui.bus.$on("formBelongCompanyChange",(function(t){e.tableData=[]})),this.$bizui.bus.$on("formCustomChange",(function(t){e.tableData=[]})),this.$bizui.bus.$on("formApplyTypeChange",(function(t){e.tableData=[]}))))},handleApprovalValidate:function(){var e=this,t=!0;this.tableData.forEach((function(n){var i,r;(!n.warehouseNumber&&e.formPropControl&&null!==(i=e.formPropControl)&&void 0!==i&&i.includes("warehouse")||"1"===n.materialIsSpecifiedBatch&&e.attrs.approvalInputBatch&&!n.materialBatch&&e.formPropControl&&null!==(r=e.formPropControl)&&void 0!==r&&r.includes("materialBatch"))&&(t=!1),n.valid=t})),this.onUpdate()},handleValidate:function(){var e=this,t=!0;this.tableData.forEach((function(n){var i=!0;if(n.materialQuantity){var r=n.materialSendBaseTimesOther||1,a=n.materialQuantity%r===0;a||(e.$message.warning("".concat(n.materialAbbreviation,"的数量必须是").concat(r,"的倍数")),i=!1)}n.materialQuantity?!e.tableItemArr.includes("materialBatchInfo")||e.attrs.approvalInputBatch||"1"!==n.materialIsSpecifiedBatch||n.materialBatch?n.materialReceivingContact&&n.materialReceivingContactNumber&&n.materialReceivingAddress?"1"!==n.overSchemeFlag||n.overSchemeExplain||(i&&t&&e.$message.warning("请检查超母方案说明"),i=!1):(i&&t&&e.$message.warning("请检查地址信息"),i=!1):(i&&t&&e.$message.warning("请检查批次号信息"),i=!1):(i&&t&&e.$message.warning("请检查物料数量"),i=!1),n.valid=i,t=i})),this.onUpdate()},handleTableData:function(){var e,t=this,n={baseInfo:this.baseInfo,budget:this.budget,scheme:this.scheme,batch:this.batch,purpose:this.purpose,warehouse:this.warehouse,address:this.address};null===(e=this.attrs.materialConfig)||void 0===e||e.forEach((function(e){t.tableItemArr=t.tableItemArr.concat(n[e]),"scheme"===e&&t.tableItemArr.push("overSchemeExplain")})),this.tableItemArr.push("remarks"),this.isView||this.tableItemArr.push("operate")},showProductListSelect:function(){this.$refs.selectProductDialog.show()},addProduct:function(e){var t,n=this,i=this.tableData.map((function(e){return e.materialCode}));(e.forEach((function(e){i.includes(e.materialCode)||(e.materialIsSpecifiedBatch="0",n.tableData.push(e))})),this.$bizui)&&(null===(t=this.$bizui)||void 0===t||null===(t=t.bus)||void 0===t||t.$emit("updateTableData"));this.onUpdate()},onRemoveItem:function(e,t){var n;(this.tableData.splice(t,1),this.$bizui)&&(null===(n=this.$bizui)||void 0===n||null===(n=n.bus)||void 0===n||n.$emit("updateTableData"));this.onUpdate()},onUpdate:function(){var e=JSON.parse(JSON.stringify(this.tableData));this.$emit("input",e),this.$emit("change",e)}}},T=E,$=(n("bec6"),Object(d["a"])(T,i,r,!1,null,"451b8bc5",null));t["default"]=$.exports},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("23cb"),o=n("5926"),s=n("07fa"),l=n("3a34"),u=n("3511"),c=n("65f0"),d=n("8418"),h=n("083a"),f=n("1dde"),p=f("splice"),m=Math.max,v=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,i,f,p,g,b,y=r(this),w=s(y),_=a(e,w),x=arguments.length;for(0===x?n=i=0:1===x?(n=0,i=w-_):(n=x-2,i=v(m(o(t),0),w-_)),u(w+n-i),f=c(y,i),p=0;p<i;p++)g=_+p,g in y&&d(f,p,y[g]);if(f.length=i,n<i){for(p=_;p<w-i;p++)g=p+i,b=p+n,g in y?y[b]=y[g]:h(y,b);for(p=w;p>w-i+n;p--)h(y,p-1)}else if(n>i)for(p=w-i;p>_;p--)g=p+i-1,b=p+n-1,g in y?y[b]=y[g]:h(y,b);for(p=0;p<n;p++)y[p+_]=arguments[p+2];return l(y,w-i+n),f}})},a4b4:function(e,t,n){"use strict";var i=n("342f");e.exports=/web0s(?!.*chrome)/i.test(i)},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a60f:function(e,t,n){"use strict";n.r(t);n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",{class:e.isView?"inline":"w-full"},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[e.isView?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":e.plantText,"no-absolute":e.diffNoAbsolute,"new-value":e.diffSelectLabel}}):t("el-select",e._b({ref:"select",staticClass:"w-full",attrs:{placeholder:e.placeholder,multiple:e.multiple,filterable:e.filterable,"allow-create":e.allowCreate,clearable:"",remote:"","remote-method":e.remoteMethod,loading:e.loading,"popper-class":"select-class","collapse-tags":e.collapseTags},on:{change:e.onChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.employeeNo,attrs:{label:n.name||n.employeeNo,value:n.employeeNo}},[e._t("item",(function(){return[t("div",{staticClass:"flex items-center gap-2"},[t("span",[e._v(e._s(n.name+"-"+n.orgName||n.employeeNo)),n.departmentName?t("span",[e._v("("+e._s(n.departmentName)+")")]):e._e()])])]}),{item:n})],2)})),1)],1),t("el-col",{attrs:{span:12}},[t("div",{staticStyle:{"margin-top":"-32px"}},[t("p",{staticClass:"cell-title"},[e._v("负责人所属部门")]),e.isView?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":e.detpName,"no-absolute":e.diffNoAbsolute,"new-value":e.diffDeptNameLabel}}):t("p",[e._v(e._s(e.detpName||"-"))])],1)])],1)],1)},r=[],a=n("5530"),o=(n("99af"),n("a15b"),n("d81d"),n("14d9"),n("e9c4"),n("a9e3"),n("b64b"),n("23ef")),s=n("704d"),l={name:"EmployeeSelect",props:{value:{type:[Number,String,Array],default:void 0},attrs:{type:Object,default:function(){return{}}},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},extra:{type:Object,default:function(){return{}}},isView:{type:Boolean,default:!1}},data:function(){return{myValue:void 0,loading:!0,selectName:void 0,options:[]}},computed:{plantText:function(){var e=this,t=[],n=[].concat(this.myValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"name",valueKey:"employeeNo"})),n})),t.join(",")},detpName:function(){var e=this,t=[],n=[].concat(this.myValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"orgName",valueKey:"employeeNo"})),n})),t.join(",")},detpCode:function(){var e=this,t=[],n=[].concat(this.myValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"departmentCode",valueKey:"employeeNo"})),n})),t.join(",")},diffValue:function(){return this.attrs.diffValue},showDiff:function(){return this.attrs.showDiff||!1},diffNoAbsolute:function(){return this.attrs.diffNoAbsolute},diffSelectLabel:function(){var e=this,t=[],n=[].concat(this.diffValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"name",valueKey:"employeeNo"})),n})),t.join(",")},diffDeptNameLabel:function(){var e=this,t=[],n=[].concat(this.diffValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"orgName",valueKey:"employeeNo"})),n})),t.join(",")}},watch:{value:{immediate:!0,handler:function(){JSON.stringify(this.value)!==JSON.stringify(this.myValue)&&this.getOptions(),this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.multiple?this.myValue=JSON.parse(JSON.stringify(this.value))||[]:this.myValue=this.value||void 0}catch(e){this.multiple?this.myValue=[]:this.myValue=void 0}},remoteMethod:function(e){this.loading=!0,this.selectName=e,this.getOptions()},visibleChange:function(e){},getOptions:function(){var e=this,t=Object(a["a"])({name:this.selectName},this.extra);!this.selectName&&this.value&&(t.employeeNos=Array.isArray(this.value)?this.value:[this.value],t.selectStatus="0"),this.loading=!0,Object(o["c"])(t).then((function(t){200===t.code?e.options=t.data||[]:e.$message.error(t.message),e.loading=!1}))},onChange:function(){this.$refs.select&&(this.$refs.select.inputValue="");var e={value:this.myValue,text:this.plantText,detpName:this.detpName,detpCode:this.detpCode};this.$emit("input",this.myValue,e),this.$emit("change",this.myValue,e)}}},u=l,c=(n("053a"),n("2877")),d=Object(c["a"])(u,i,r,!1,null,"3cdaec35",null);t["default"]=d.exports},a630:function(e,t,n){"use strict";var i=n("23e7"),r=n("4df4"),a=n("1c7e"),o=!a((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){return 1},1)}))}},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var i="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};t.isString=s,t.isObject=l,t.isHtmlElement=u;var r=n("8bbf"),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return e&&e.nodeType===Node.ELEMENT_NODE}var c=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":i(Int8Array))||!a.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=c=function(e){return"function"===typeof e||!1}),t.isFunction=c;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("d256"),o=n("d039"),s=n("d066"),l=n("1626"),u=n("4840"),c=n("cdf9"),d=n("cb2d"),h=a&&a.prototype,f=!!a&&o((function(){h["finally"].call({then:function(){}},(function(){}))}));if(i({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!r&&l(a)){var p=s("Promise").prototype["finally"];h["finally"]!==p&&d(h,"finally",p,{unsafe:!0})}},a9e3:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("83ab"),o=n("da84"),s=n("428f"),l=n("e330"),u=n("94ca"),c=n("1a2d"),d=n("7156"),h=n("3a9b"),f=n("d9b5"),p=n("c04e"),m=n("d039"),v=n("241c").f,g=n("06cf").f,b=n("9bf2").f,y=n("408a"),w=n("58a8").trim,_="Number",x=o[_],C=s[_],S=x.prototype,k=o.TypeError,O=l("".slice),D=l("".charCodeAt),E=function(e){var t=p(e,"number");return"bigint"==typeof t?t:T(t)},T=function(e){var t,n,i,r,a,o,s,l,u=p(e,"number");if(f(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),t=D(u,0),43===t||45===t){if(n=D(u,2),88===n||120===n)return NaN}else if(48===t){switch(D(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(a=O(u,2),o=a.length,s=0;s<o;s++)if(l=D(a,s),l<48||l>r)return NaN;return parseInt(a,i)}return+u},$=u(_,!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){return h(S,e)&&m((function(){y(e)}))},N=function(e){var t=arguments.length<1?0:x(E(e));return I(this)?d(Object(t),this,N):t};N.prototype=S,$&&!r&&(S.constructor=N),i({global:!0,constructor:!0,wrap:!0,forced:$},{Number:N});var M=function(e,t){for(var n,i=a?v(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)c(t,n=i[r])&&!c(e,n)&&b(e,n,g(t,n))};r&&C&&M(s[_],C),($||r)&&M(s[_],x)},ab13:function(e,t,n){"use strict";var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ab36:function(e,t,n){"use strict";var i=n("861d"),r=n("9112");e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},ab64:function(e,t,n){"use strict";n("f8fd")},ab6e:function(e,t,n){},abbb:function(e,t,n){"use strict";n("baec")},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad52:function(e,t,n){"use strict";n("521f")},ad58:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"select-view"},[e.attrs.isView?e._e():t("el-select",{staticStyle:{width:"calc(25% - 16px)"},attrs:{filterable:"",placeholder:e.placeholder,clearable:""},on:{change:e.changeDoctor},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},e._l(e.doctorList,(function(e){return t("el-option",{key:e.doctorPhone,attrs:{label:e.doctorName,value:e.doctorPhone}})})),1),t("el-row",{attrs:{gutter:24}},e._l(e.selectDoctorList,(function(n,i){return t("el-col",{key:i,attrs:{span:6}},[t("div",{staticClass:"item-view",class:{"item-view-disabled":e.attrs.isView}},[e.attrs.isView?e._e():t("img",{staticClass:"delect-img",attrs:{src:"https://udstatic.imeik.com/pcUploads/1738999803093/delete%402x.png"},on:{click:function(t){return e.deleteDoctor(i)}}}),t("p",{staticClass:"doctor-name"},[e._v(e._s(n.doctorName))]),t("p",{staticClass:"doctor-other"},[e._v(e._s(n.doctorDepartment)+" | "+e._s(n.doctorPosition))]),t("p",{staticClass:"doctor-other"},[e._v(e._s(n.doctorPracticeAgency))])])])})),1)],1)},r=[],a=(n("14d9"),n("a434"),n("d3b7"),n("159b"),n("8ea2"),{name:"FieldSeleceDoctor",inject:{formProps:{default:function(){}}},props:{value:{type:[String,Array],default:void 0},attrs:{type:Object,default:function(){return{}}},customData:{type:Object,default:function(){return{}}}},data:function(){return{myValue:void 0,doctorList:[],selectDoctorList:[]}},computed:{placeholder:function(){return this.selectDoctorList.length>0?"已选择"+this.selectDoctorList.length+"位医生":"请选择医生"}},watch:{value:{immediate:!0,handler:function(e){this.setMyValue(e)}},customData:{immediate:!0,handler:function(e){this.handleGetDoctorList()}}},mounted:function(){},methods:{handleGetDoctorList:function(){var e;this.doctorList=(null===(e=this.customData)||void 0===e?void 0:e.doctorList)||[]},changeDoctor:function(e){var t,n=this;null===(t=this.doctorList)||void 0===t||t.forEach((function(t){t.doctorPhone===e&&(n.selectDoctorList.push(t),n.onUpdate())})),this.myValue=void 0},deleteDoctor:function(e){this.selectDoctorList.splice(e,1),this.onUpdate()},setMyValue:function(e){e&&e.length&&(this.selectDoctorList=e)},onUpdate:function(){this.$emit("input",this.selectDoctorList)}}}),o=a,s=(n("25e2"),n("2877")),l=Object(s["a"])(o,i,r,!1,null,"cd6f98f6",null);t["default"]=l.exports},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("53ca");n("a4d3"),n("e01a"),n("8172"),n("d9e2"),n("efec"),n("a9e3"),n("d3b7");function r(e,t){if("object"!=Object(i["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Object(i["a"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function a(e){var t=r(e,"string");return"symbol"==Object(i["a"])(t)?t:String(t)}function o(e,t,n){return t=a(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae93:function(e,t,n){"use strict";var i,r,a,o=n("d039"),s=n("1626"),l=n("861d"),u=n("7c73"),c=n("e163"),d=n("cb2d"),h=n("b622"),f=n("c430"),p=h("iterator"),m=!1;[].keys&&(a=[].keys(),"next"in a?(r=c(c(a)),r!==Object.prototype&&(i=r)):m=!0);var v=!l(i)||o((function(){var e={};return i[p].call(e)!==e}));v?i={}:f&&(i=u(i)),s(i[p])||d(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},aeb0:function(e,t,n){"use strict";var i=n("9bf2").f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var i=n("83ab"),r=n("d039");e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},aff8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{class:{"card-title-view":e.isView}},[t("div",{staticClass:"text-left pb-2 mb-1 flex"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"title-line"}),t("p",{staticClass:"title"},[e._v(e._s(e.item.label))])])]),e._t("card-header")],2)},r=[],a={name:"FieldCardHeader",props:{item:{type:Object,default:function(){return{}}},attrs:{type:Object,default:function(){}}},computed:{isView:function(){var e;return null===(e=this.attrs)||void 0===e?void 0:e.isView}},mounted:function(){if(this.isView){var e=document.querySelectorAll(".card-title-view");e&&e[0]&&(e[0].style.borderTop="0",e[0].style.paddingTop="2px")}}},o=a,s=(n("ab64"),n("2877")),l=Object(s["a"])(o,i,r,!1,null,"c0c68ec2",null);t["default"]=l.exports},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b0bb:function(e,t,n){"use strict";n("506e")},b0c0:function(e,t,n){"use strict";var i=n("83ab"),r=n("5e77").EXISTS,a=n("e330"),o=n("edd0"),s=Function.prototype,l=a(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=a(u.exec),d="name";i&&!r&&o(s,d,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},b367:function(e,t,n){var i=n("5524"),r=n("ef08"),a="__core-js_shared__",o=r[a]||(r[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b42e:function(e,t,n){"use strict";var i=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:i)(t)}},b4f8:function(e,t,n){"use strict";var i=n("23e7"),r=n("d066"),a=n("1a2d"),o=n("577e"),s=n("5692"),l=n("0b43"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(a(u,t))return u[t];var n=r("Symbol")(t);return u[t]=n,c[n]=t,n}})},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),a=n("30b5"),o=n("83b9"),s=n("c345"),l=n("3934"),u=n("2d83");e.exports=function(e){return new Promise((function(t,c){var d=e.data,h=e.headers;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";h.Authorization="Basic "+btoa(p+":"+m)}var v=o(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?f.response:f.responseText,a={data:i,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};r(t,c,a),f=null}},f.onabort=function(){f&&(c(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(u(t,e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n("7aac"),b=(e.withCredentials||l(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}if("setRequestHeader"in f&&i.forEach(h,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),c(e),f=null)})),void 0===d&&(d=null),f.send(d)}))}},b575:function(e,t,n){"use strict";var i,r,a,o,s,l=n("da84"),u=n("157a"),c=n("0366"),d=n("2cf4").set,h=n("01b4"),f=n("1cdc"),p=n("d4c3"),m=n("a4b4"),v=n("605d"),g=l.MutationObserver||l.WebKitMutationObserver,b=l.document,y=l.process,w=l.Promise,_=u("queueMicrotask");if(!_){var x=new h,C=function(){var e,t;v&&(e=y.domain)&&e.exit();while(t=x.get())try{t()}catch(n){throw x.head&&i(),n}e&&e.enter()};f||v||m||!g||!b?!p&&w&&w.resolve?(o=w.resolve(void 0),o.constructor=w,s=c(o.then,o),i=function(){s(C)}):v?i=function(){y.nextTick(C)}:(d=c(d,l),i=function(){d(C)}):(r=!0,a=b.createTextNode(""),new g(C).observe(a,{characterData:!0}),i=function(){a.data=r=!r}),_=function(e){x.head||i(),x.add(e)}}e.exports=_},b622:function(e,t,n){"use strict";var i=n("da84"),r=n("5692"),a=n("1a2d"),o=n("90e3"),s=n("04f8"),l=n("fdbf"),u=i.Symbol,c=r("wks"),d=l?u["for"]||u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:d("Symbol."+e)),c[e]}},b636:function(e,t,n){"use strict";var i=n("e065");i("asyncIterator")},b64b:function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("df75"),o=n("d039"),s=o((function(){a(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return a(r(e))}})},b680:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("5926"),o=n("408a"),s=n("1148"),l=n("d039"),u=RangeError,c=String,d=Math.floor,h=r(s),f=r("".slice),p=r(1..toFixed),m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},v=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},g=function(e,t,n){var i=-1,r=n;while(++i<6)r+=t*e[i],e[i]=r%1e7,r=d(r/1e7)},b=function(e,t){var n=6,i=0;while(--n>=0)i+=e[n],e[n]=d(i/t),i=i%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var i=c(e[t]);n=""===n?i:n+h("0",7-i.length)+i}return n},w=l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}));i({target:"Number",proto:!0,forced:w},{toFixed:function(e){var t,n,i,r,s=o(this),l=a(e),d=[0,0,0,0,0,0],p="",w="0";if(l<0||l>20)throw new u("Incorrect fraction digits");if(s!==s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(t=v(s*m(2,69,1))-69,n=t<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,t=52-t,t>0){g(d,0,n),i=l;while(i>=7)g(d,1e7,0),i-=7;g(d,m(10,i,1),0),i=t-1;while(i>=23)b(d,1<<23),i-=23;b(d,1<<i),g(d,1,1),b(d,2),w=y(d)}else g(d,0,n),g(d,1<<-t,0),w=y(d)+h("0",l);return l>0?(r=w.length,w=p+(r<=l?"0."+h("0",l-r)+w:f(w,0,r-l)+"."+f(w,r-l))):w=p+w,w}})},b727:function(e,t,n){"use strict";var i=n("0366"),r=n("e330"),a=n("44ad"),o=n("7b0b"),s=n("07fa"),l=n("65f0"),u=r([].push),c=function(e){var t=1===e,n=2===e,r=3===e,c=4===e,d=6===e,h=7===e,f=5===e||d;return function(p,m,v,g){for(var b,y,w=o(p),_=a(w),x=s(_),C=i(m,v),S=0,k=g||l,O=t?k(p,x):n||h?k(p,0):void 0;x>S;S++)if((f||S in _)&&(b=_[S],y=C(b,S,w),e))if(t)O[S]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:u(O,b)}else switch(e){case 4:return!1;case 7:u(O,b)}return d?-1:r||c?c:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d9e2"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("06c5");function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(i["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}},b907:function(e,t,n){"use strict";n("4e48")},b980:function(e,t,n){"use strict";var i=n("d039"),r=n("5c6c");e.exports=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},b9e4:function(e,t,n){"use strict";n("c989")},ba01:function(e,t,n){e.exports=n("051b")},bab8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{class:e.isView?"inline":"w-full"},[e.isView?[e.isWxWorkMobile&&e.needShowMore?t("div",{staticClass:"mobile-text-container"},[e.plantText?e.showAll?t("div",{staticClass:"show-all-text",attrs:{id:"plantText-".concat(e.random)}},[e._v(" "+e._s(e.plantText)+" "),t("div",{staticClass:"btn-text",on:{click:e.showMore}},[e._v(" 收起 "),t("img",{staticClass:"icon-retract",attrs:{src:"https://imeikud.oss-cn-beijing.aliyuncs.com/pcUploads/1724846415100/icon-retract.png"}})])]):t("div",{staticClass:"show-limit-text"},[e._v(" "+e._s(e.plantText)+" "),t("div",{staticClass:"btn-text show-more",on:{click:e.showMore}},[e._v(" 展开 "),t("img",{staticClass:"icon-show-more",attrs:{src:"https://imeikud.oss-cn-beijing.aliyuncs.com/pcUploads/1724846420511/icon-show-more.png"}})])]):t("span",[e._v("-")])]):e.plantText?[e.showAllWhenView?t("span",{staticClass:"viewText showAll"},[e._v(e._s(e.plantText))]):t("el-popover",{attrs:{trigger:"hover"}},[t("div",{staticClass:"departmentPopover"},[e._v(e._s(e.plantText))]),t("span",{staticClass:"viewText",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.plantText))])])]:t("span",[e._v("-")])]:t("el-cascader",e._b({ref:"select",staticClass:"w-full",attrs:{"popper-class":"loading",props:e.cascaderProps,options:e.filteredOptions,placeholder:e.$attrs.placeholder||(e.optionsLoading?"加载中...":"请选择部门"),"collapse-tags":e.$attrs.collapseTags||e.collapseTags,clearable:!1!==e.$attrs.clearable,filterable:!1!==e.$attrs.filterable},on:{change:e.handleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-cascader",e.$attrs,!1))],2)},r=[],a=n("5530"),o=(n("4de4"),n("a15b"),n("d81d"),n("14d9"),n("e9c4"),n("a9e3"),n("b64b"),n("d3b7"),n("e6cf"),n("a79d"),n("ac1f"),n("00b4"),n("5319"),n("159b"),n("f6f4")),s=n("2a07"),l={name:"CommonDepartmentCascader",mixins:[o["a"]],props:{value:{type:[String,Number,Array],default:void 0},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!1},propValue:{type:String,default:"departmentCode"},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},extra:{type:Object,default:function(){return{}}},isView:{type:Boolean,default:!1},showAllWhenView:{type:Boolean,default:!1},onlyMainCompany:{type:Boolean,default:!0},specificOrgCode:{type:String,default:""},hasRoot:{type:Boolean,default:!0}},data:function(){return{myValue:void 0,options:[],optionsLoading:!1,childHasUnChecked:!1,showAll:!0,needShowMore:!0,random:100*Math.random(),optionMap:{}}},computed:{isWxWorkMobile:function(){var e=window.navigator.userAgent.toLowerCase(),t=/wxwork/i.test(e)&&/iphone|android/i.test(e);return t},cascaderProps:function(){return{multiple:this.multiple,label:"departmentName",value:this.propValue,children:"childDepartments",emitPath:this.emitPath,expandTrigger:this.expandTrigger,checkStrictly:this.checkStrictly}},plantText:function(){var e=this,t=[];if(Array.isArray(this.myValue))this.myValue.forEach((function(n){var i=e.optionMap[n];i&&t.push(i.departmentName)}));else{var n=this.optionMap[this.myValue];n&&t.push(n.departmentName)}return t.join(", ")},specificOptions:function(){var e=this.options||[];return this.specificOrgCode&&this.optionMap[this.specificOrgCode]&&(e=[this.optionMap[this.specificOrgCode]]),e||[]},filteredOptions:function(){return!this.hasRoot&&this.specificOptions&&1===this.specificOptions.length&&this.specificOptions[0]&&this.specificOptions[0].childDepartments?this.specificOptions[0].childDepartments||[]:this.specificOptions||[]}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}},plantText:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){var e=document.getElementById("plantText-".concat(t.random));if(e){var n=window.getComputedStyle(e,null),i=n.height.replace("px",""),r=n.lineHeight.replace("px","");i/r>=2?(t.needShowMore=!0,t.showAll=!1):(t.needShowMore=!1,t.showAll=!0)}}))}}},created:function(){this.getOptions()},methods:{showMore:function(){this.showAll=!this.showAll,this.$emit("showMore",this.showAll)},setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=this.value}},getOptions:function(){var e=this,t=Object(a["a"])({},this.extra);this.optionsLoading=!0,Object(s["b"])(t).then((function(t){if(200===t.code){if(!t.data)return;var n=t.data||[];e.onlyMainCompany&&(n=n.filter((function(e){return"virtual-201"===e.orgCode}))),e.options=e.dealList(n||[])}})).finally((function(){e.optionsLoading=!1}))},dealList:function(e){var t=this;return e.map((function(e){return e.orgCode&&t.$set(t.optionMap,e.orgCode,e),e[t.propValue]&&t.$set(t.optionMap,e[t.propValue],e),e.childDepartments&&e.childDepartments.length?t.dealList(e.childDepartments):delete e.childDepartments,e}))},handleChange:function(){this.$emit("input",this.myValue),this.$emit("change",this.myValue),this.dispatch("ElFormItem","el.form.change",this.myValue)}}},u=l,c=(n("6045"),n("2877")),d=Object(c["a"])(u,i,r,!1,null,"790f517c",null);t["default"]=d.exports},baec:function(e,t,n){},bb2f:function(e,t,n){"use strict";var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb62:function(e,t,n){},bc22:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"FormSupplyControl"},[e.isView?e._e():t("el-button",{staticStyle:{"margin-bottom":"12px"},attrs:{type:"primary",size:"mini"},on:{click:e.showSelectDialog}},[e._v("添加物资")]),t("SupplyManagementList",{ref:"SupplyManagementList",attrs:{"is-view":e.isView,"no-stick":"","table-config-attrs":e.tableConfigAttrs,"table-item-arr":e.tableItemArr,"table-data":e.tableData},on:{removeItem:e.onRemoveItem,applyCountChange:e.onUpdate}}),t("SupplySelectDialog",{ref:"SupplySelectDialog",attrs:{extra:{enabledStatus:"1",applyType:e.applyType,deptCode:e.departmentObjectCode},"form-item-arr":e.supplySelectFormItemArr,width:"1200px"},on:{addSupplies:e.onAddSupplies}})],1)},r=[],a=n("2909"),o=(n("99af"),n("a434"),n("e9c4"),n("a9e3"),n("b64b"),n("d3b7"),n("159b"),n("f6f4")),s=n("61ab"),l=(n("ac1f"),n("841c"),function(){var e=this,t=e._self._c;return t("ImDialog",{attrs:{"append-to-body":"",visible:e.dialogVisible,title:"添加物资",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t},cancel:e.onCancel,closeDialog:e.closeDialog,submit:e.confirmInfo}},[t("ImForm",{ref:"ImForm",attrs:{form:e.formConfig},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}}},[t("GroupBrandAllParams",{staticClass:"w-full",attrs:{slot:"materialInfo"},on:{change:e.onParamsChanged},slot:"materialInfo",model:{value:e.formConfig.props.groupBrandType,callback:function(t){e.$set(e.formConfig.props,"groupBrandType",t)},expression:"formConfig.props.groupBrandType"}}),t("SupplyBrandSelect",{staticClass:"w-full",attrs:{slot:"SupplyBrandSelect"},on:{change:e.onBrandChanged},slot:"SupplyBrandSelect",model:{value:e.formConfig.props.brandCode,callback:function(t){e.$set(e.formConfig.props,"brandCode",t)},expression:"formConfig.props.brandCode"}})],1),t("SupplyManagementList",{ref:"SupplyManagementList",attrs:{"table-item-arr":e.tableItemArr,"table-data":e.tableData,loading:e.loading,"table-config-attrs":e.tableConfigAttrs,"table-config-listeners":e.tableConfigListeners}}),t("ImPagination",{ref:"ImPagination",attrs:{"page-size":e.pageSize,"current-page":e.currentPage,total:e.total},on:{"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},change:e.getList}})],1)}),u=[],c=n("5530"),d=(n("caad"),n("e260"),n("d81d"),n("14d9"),n("e6cf"),n("a79d"),n("2532"),n("3ca3"),n("ddb0"),n("ca94")),h=function(){var e=this,t=e._self._c;return t("el-select",e._b({attrs:{"popper-class":"select-class",placeholder:e.placeholder,filterable:!1!==e.$attrs.filterable},on:{change:e.onChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.objectCode,attrs:{label:n.brandName,value:n.objectCode}},[t("div",{staticClass:"brandContainer"},[t("span",{staticClass:"brandName",attrs:{title:n.brandName}},[e._v(e._s(n.brandName))]),["all","group"].includes(n.objectCode)?e._e():t("el-tag",{staticClass:"brandTag",attrs:{size:"mini",type:"success"}},[e._v("[商标]")])],1)])})),1)},f=[],p={name:"GroupBrandAllSelect",props:{value:{type:[Number,String,Array],default:void 0},placeholder:{type:String,default:"请选择"}},data:function(){return{myValue:void 0,options:[],extraOptions:[{objectCode:"all",brandName:"全部"},{objectCode:"group",brandName:"组合"}]}},computed:{isGroup:function(){if("all"!==this.myValue)return"group"===this.myValue?"1":"0"},brandCode:function(){if("all"!==this.myValue&&"group"!==this.myValue)return this.myValue}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},getOptions:function(){var e=this;Object(d["a"])({limit:1e4,page:1}).then((function(t){200===t.code&&(e.options=[].concat(Object(a["a"])(e.extraOptions),Object(a["a"])(t.data.list||[])))}))},onChange:function(){var e={isGroup:this.isGroup,brandCode:this.brandCode||void 0};this.$emit("input",this.myValue,e),this.$emit("change",this.myValue,e)}}},m=p,v=(n("6773"),n("2877")),g=Object(v["a"])(m,h,f,!1,null,"01b0897c",null),b=g.exports,y=function(){var e=this,t=e._self._c;return t("span",[e.isView?t("span",[e._v(e._s(e.myItem.brandName))]):t("el-select",e._b({staticStyle:{width:"100%"},attrs:{"popper-class":"select-class",placeholder:e.placeholder,multiple:e.multiple,filterable:!1!==e.$attrs.filterable,clearable:""},on:{change:e.onChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.objectCode,attrs:{disabled:e.disabledCode.includes(n.objectCode),label:n.brandName,value:n.objectCode}})})),1)],1)},w=[],_=(n("7db0"),{name:"SupplyBrandSelect",props:{value:{type:[Number,String,Array],default:void 0},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},extraParam:{type:Object,default:function(){}},disabledCode:{type:Array,default:function(){return[]}},isView:{type:Boolean,default:!1}},data:function(){return{myValue:void 0,options:[]}},computed:{myItem:function(){var e=this;return this.options.find((function(t){return t.objectCode===e.myValue}))||{}}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},getOptions:function(){var e=this;Object(d["a"])(Object(c["a"])({limit:1e4,page:1},this.extraParam)).then((function(t){200===t.code&&(e.options=t.data.list||[],e.myValue&&e.onChange())}))},onChange:function(){this.$emit("input",this.myValue,this.myItem),this.$emit("change",this.myValue,this.myItem)}}}),x=_,C=Object(v["a"])(x,y,w,!1,null,null,null),S=C.exports,k=n("6183"),O={name:"SupplySelectDialog",components:{SupplyManagementList:function(){return Promise.resolve().then(n.bind(null,"61ab"))},GroupBrandAllParams:b,SupplyBrandSelect:S},props:{isGroup:{type:[Number,String],default:void 0},width:{type:String,default:"900px"},tableScrollHeight:{type:Number,default:425},formItemArr:{type:Array,default:function(){return[]}},extra:{type:Object,default:function(){return{}}}},data:function(){return{extraParams:{},selectedList:[],tableConfigListeners:{"selection-change":this.selectionChange,"row-click":this.rowClick},tableData:[],allFormItemMap:{groupBrandType:{type:"ImSlot",prop:"groupBrandType",label:"物资形式",slots:{slot:"materialInfo"}},brandType:{type:"ImSlot",prop:"brandCode",label:"商标",slots:{slot:"SupplyBrandSelect"}},materialName:{type:"ImInput",prop:"materialName",label:"物资名称"},erpCode:{type:"ImInput",prop:"erpCode",label:"物资编码"},operate:{type:"ImButton",notInCol:!0,attrs:{style:"float: right;",options:[{label:"重 置",attrs:{type:"default"},listeners:{click:this.resetForm}},{label:"查 询",attrs:{type:"primary"},listeners:{click:this.search}}]}}},formConfig:{column:3,attrs:{labelWidth:"80px"},props:{groupBrandType:"all",brandCode:void 0,materialName:void 0,erpCode:void 0},formItems:[]},dialogVisible:!1,selectItems:[],loading:!1,pageSize:10,currentPage:1,total:0}},computed:{queryParams:function(){var e=Object(c["a"])(Object(c["a"])(Object(c["a"])({isGroup:this.isGroup,page:this.currentPage,limit:this.pageSize},this.formConfig.props),this.extraParams),this.extra);return delete e.groupBrandType,Object(k["b"])(e)},tableItemArr:function(){return[{type:"selection",attrs:{width:50,"reserve-selection":!0,selectable:this.checkSelectable}},"supplyImage","brandType","supplyName","materialSpec","consumeType","supplyChannelType","unit","leval","erpCount"]},tableConfigAttrs:function(){return{height:this.tableScrollHeight,noStick:!0,rowKey:"objectCode"}},selectedCode:function(){var e=this.selectedList;return e.map((function(e){return e.objectCode}))},newSelectedCode:function(){return this.selectItems.map((function(e){return e.objectCode}))}},watch:{isGroup:function(){this.getList()},formItemArr:{immediate:!0,handler:function(){this.setFormItems()}}},created:function(){this.getList()},methods:{setFormItems:function(){var e=this,t=[];this.formItemArr.forEach((function(n){e.allFormItemMap[n]&&t.push(e.allFormItemMap[n])})),this.formConfig.formItems=t},onParamsChanged:function(e,t){this.extraParams=t,this.getList()},onBrandChanged:function(){this.getList()},getTableRef:function(){return this.$refs.SupplyManagementList&&this.$refs.SupplyManagementList.tableRef?this.$refs.SupplyManagementList.tableRef:null},checkSelectItems:function(){var e=this;if(this.getTableRef()){var t=this.getTableRef().getTableInstance();this.$nextTick((function(){e.tableData.forEach((function(n){t.toggleRowSelection(n,e.selectedCode.includes(n.objectCode)||e.newSelectedCode.includes(n.objectCode))}))}))}},selectionChange:function(e){this.selectItems=e},rowClick:function(e){if(this.getTableRef()&&this.checkSelectable(e)){var t=this.getTableRef().getTableInstance();t.toggleRowSelection(e)}},show:function(e){var t=this;this.selectedList=JSON.parse(JSON.stringify(e)),this.dialogVisible=!0,this.$nextTick((function(){t.resetForm(),t.checkSelectItems()}))},closeDialog:function(){this.dialogVisible=!1},checkSelectable:function(e,t){return!this.selectedCode.includes(e.objectCode)},search:function(){this.$refs.ImPagination.reset(),this.getList()},resetForm:function(){if(this.extraParams={},this.$refs.ImForm&&this.$refs.ImForm.reset(),this.$refs.ImPagination&&this.$refs.ImPagination.reset(),this.getTableRef()){var e=this.getTableRef().getTableInstance();e.clearSelection()}this.getList()},getList:function(){var e=this;this.loading=!0,Object(d["d"])(this.queryParams).then((function(t){200===t.code&&(e.total=t.data.totalCount,e.tableData=t.data.list||[],e.checkSelectItems())})).finally((function(){e.loading=!1}))},onCancel:function(){this.closeDialog()},confirmInfo:function(){this.addItems(),this.closeDialog()},addItems:function(){var e=this,t=[];this.selectItems.forEach((function(n){e.selectedCode.includes(n.objectCode)||t.push(n)})),this.$emit("addSupplies",t),this.selectItems.length=0}}},D=O,E=Object(v["a"])(D,l,u,!1,null,null,null),T=E.exports,$={name:"FieldSupplySelect",components:{SupplyManagementList:s["default"],SupplySelectDialog:T},mixins:[o["a"]],inject:{formProps:{default:function(){}}},props:{value:{type:Array,default:function(){return[]}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{tableData:[],tableConfigAttrs:{noStick:!0,"summary-method":this.getSummaries,"show-summary":!0},supplySelectFormItemArr:["groupBrandType","materialName","erpCode","operate"]}},computed:{isView:function(){return this.attrs.isView},applicantCode:function(){var e;return null===this||void 0===this||null===(e=this.formProps)||void 0===e?void 0:e.applicantCode},applyType:function(){var e;return null===this||void 0===this||null===(e=this.formProps)||void 0===e?void 0:e.applyType},departmentObjectCode:function(){return this.$bizui.departmentObjectCode},userInfo:function(){return this.$bizui.userInfo},showTotalArea:function(){var e,t=(null===this||void 0===this||null===(e=this.userInfo)||void 0===e?void 0:e.objectCode)===this.applicantCode;return!t&&this.isView},tableItemArr:function(){return["supplyImage","supplyName","leval","materialSpec","consumeType","supplyChannelType",{prop:"materialUnit",label:"主计量单位",attrs:{"min-width":100}},"price","erpCount","applyCount","subtotal",this.showTotalArea?"approvalTotal":"",this.isView?"":"clientRemoveOpt"]}},watch:{value:{immediate:!0,handler:function(e){this.setTableData()},deep:!0}},methods:{onAddSupplies:function(e){var t=this;e.forEach((function(e){t.$set(e,"applyCount",1)})),this.tableData=[].concat(Object(a["a"])(this.tableData),Object(a["a"])(e)),this.onUpdate()},showSelectDialog:function(){this.$refs.SupplySelectDialog.show(this.tableData)},getSummaries:function(e){var t=[];return t[0]="合计",t[9]=this.totalCount(),t[10]=this.totalPrice(),t},totalCount:function(){var e=this.tableData,t=0;return e.forEach((function(e){var n=e.applyCount||0;if("0"===e.isGroup)t+=Number(n);else{var i=e.groupDetails||[];i.forEach((function(e){t+=e.groupCount*n}))}})),t},totalPrice:function(){var e=0,t=this.tableData;return t.forEach((function(t){var n=t.applyCount||0;e+=t.salePrice*n})),Object(k["a"])(e)+"元"},setTableData:function(){try{this.tableData=JSON.parse(JSON.stringify(this.value))}catch(e){this.tableData=void 0}},onRemoveItem:function(e,t){this.tableData.splice(t,1),this.onUpdate()},onUpdate:function(){this.$emit("input",this.tableData),this.$emit("change",this.tableData),this.dispatch("ElFormItem","el.form.change",this.tableData)}}},I=$,N=Object(v["a"])(I,i,r,!1,null,null,null);t["default"]=N.exports},bc3a:function(e,t,n){e.exports=n("cee4")},be6a:function(e,t,n){"use strict";n("0651")},bec6:function(e,t,n){"use strict";n("7e4b")},c04e:function(e,t,n){"use strict";var i=n("c65b"),r=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),l=n("b622"),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||a(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c1df:function(e,t,n){(function(e){var t;//! moment.js
24
+ function a(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"===typeof o[n]}return!a&&i&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=a},"7c35":function(e,t,n){},"7c73":function(e,t,n){"use strict";var i,r=n("825a"),a=n("37e8"),o=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),d=">",h="<",f="prototype",p="script",m=c("IE_PROTO"),v=function(){},g=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},w=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&i?b(i):y():b(i);var e=o.length;while(e--)delete w[f][o[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=r(e),n=new v,v[f]=null,n[m]=e):n=w(),void 0===t?n:a.f(n,t)}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,a=n("44d2"),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},"7e4b":function(e,t,n){},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];void 0!==a&&(e[r]=a)}}return e}},"7fc1":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=93)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n("d010")},93:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[o.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},l=s,u=n(0),c=Object(u["a"])(l,i,r,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox-group.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},"80a4":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{class:e.attrs.isView?"pickerContainer":"pickerForm"},[e.attrs.isView?t("div",{staticClass:"pickView flex"},[t("div",{staticClass:"flex-1"},[t("p",{staticClass:"pickLabel"},[e._v(e._s(e.labelArray[0]))]),t("ImOneLineDot",{attrs:{text:e.beginTime}})],1),t("div",{staticClass:"flex-1 marginLeft"},[t("p",{staticClass:"pickLabel"},[e._v(e._s(e.labelArray[1]))]),t("ImOneLineDot",{attrs:{text:e.endTime}})],1)]):t("div",{staticStyle:{width:"100%",display:"flex"}},[t("div",{staticClass:"pickView"},[t("p",{staticClass:"pickLabel"},[t("span",{staticClass:"start"},[e._v("*")]),e._v(e._s(e.labelArray[0]))]),t("el-date-picker",e._g(e._b({staticStyle:{width:"100%"},attrs:{placeholder:"选择日期",type:"date","picker-options":e.beginPickerOptionsHandle,"value-format":"yyyy-MM-dd","unlink-panels":""},on:{change:e.onChange},model:{value:e.beginTime,callback:function(t){e.beginTime=t},expression:"beginTime"}},"el-date-picker",e.attrs,!1),e.listeners))],1),t("div",{staticClass:"pickView marginLeft"},[t("p",{staticClass:"pickLabel"},[t("span",{staticClass:"start"},[e._v("*")]),e._v(e._s(e.labelArray[1]))]),t("el-date-picker",e._g(e._b({staticStyle:{width:"100%"},attrs:{placeholder:"选择日期",type:"date","picker-options":e.endPickerOptionsHandle,"value-format":"yyyy-MM-dd","unlink-panels":""},on:{change:e.onChange},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}},"el-date-picker",e.attrs,!1),e.listeners))],1)])])},r=[],a=(n("caad"),n("e9c4"),n("b64b"),n("c1df")),o=n.n(a),s={name:"FieldDatePicker",props:{value:{type:[Array],default:void 0},attrs:{type:Object,default:function(){return{}}},listeners:{type:Object,default:function(){return{}}},labelArray:{type:Array,default:function(){return["开始时间","结束时间"]}}},data:function(){var e=this;return{beginTime:void 0,endTime:void 0,beginPickerOptionsHandle:{disabledDate:function(t){return e.endTime?t.getTime()<Date.now()-864e5||t.getTime()>new Date(e.endTime):t.getTime()<Date.now()-864e5}},endPickerOptionsHandle:{disabledDate:function(t){return t.getTime()<new Date(e.beginTime)}}}},computed:{isView:function(){return this.attrs.isView},dateLabel:function(){return this.myValue?this.formatDate(this.myValue):""}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},methods:{formatDate:function(e){return this.attrs.labelFormat?e?o()(e).format(this.attrs.labelFormat):"":["daterange","date"].includes(this.attrs.type)?e?o()(e).format("YYYY-MM-DD"):"":["datetimerange","datetime"].includes(this.attrs.type)?e?o()(e).format("YYYY-MM-DD HH:mm:ss"):"":e},setMyValue:function(){try{var e=JSON.parse(JSON.stringify(this.value));this.beginTime=e[0],this.endTime=e[1]}catch(t){this.beginTime=void 0,this.endTime=void 0}},onChange:function(){this.$emit("input",[this.beginTime,this.endTime])}}},l=s,u=(n("3ad6"),n("2877")),c=Object(u["a"])(l,i,r,!1,null,"5410687a",null);t["default"]=c.exports},8119:function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},8122:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="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};t.noop=u,t.hasOwn=c,t.toObject=h,t.getPropByPath=f,t.rafThrottle=b,t.objToArray=y;var r=n("8bbf"),a=s(r),o=n("a742");function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function u(){}function c(e,t){return l.call(e,t)}function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&d(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,r=null,a=0,o=n.length;a<o;a++){var s=n[a];if(!i)break;if(a===o-1){r=i[s];break}i=i[s]}return r};function f(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var r=t.split("."),a=0,o=r.length;a<o-1;++a){if(!i&&!n)break;var s=r[a];if(!(s in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[s]}return{o:i,k:r[a],v:i?i[r[a]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,o.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,o.isObject)(e),i=(0,o.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),v=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},g=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?v(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function b(e){var t=!1;return function(){for(var n=this,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,r),t=!1})))}}function y(e){return Array.isArray(e)?e:g(e)?[]:[e]}t.isMac=function(){return!a.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},8172:function(e,t,n){"use strict";var i=n("e065"),r=n("57b9");i("toPrimitive"),r()},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),a=n("07fa");e.exports=function(e){var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);while(u>s)t[s++]=e;return t}},"825a":function(e,t,n){"use strict";var i=n("861d"),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw new a(r(e)+" is not an object")}},"83ab":function(e,t,n){"use strict";var i=n("d039");e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),r=n("e683");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},8418:function(e,t,n){"use strict";var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){i?r.f(e,t,a(0,n)):e[t]=n}},"841c":function(e,t,n){"use strict";var i=n("c65b"),r=n("d784"),a=n("825a"),o=n("7234"),s=n("1d80"),l=n("129f"),u=n("577e"),c=n("dc4a"),d=n("14c3");r("search",(function(e,t,n){return[function(t){var n=s(this),r=o(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](u(n))},function(e){var i=a(this),r=u(e),o=n(t,i,r);if(o.done)return o.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var c=d(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===c?-1:c.index}]}))},"845f":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=97)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},97:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},r=[];i._withStripped=!0;var a={name:"ElButtonGroup"},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"849b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[e.isView?t("div",[e.showDiff?t("div",[t("p",{staticClass:"mt-2 mb-2"},[e._v("变更前:")]),t("div",{staticClass:"customerDetails"},[e.selectedItem&&e.selectedItem.accountUid?t("CustomShow",{attrs:{"custom-data":e.selectedItem,"detail-show":!0,"show-list":e.showList}}):t("div",[e._v("-")])],1),t("p",{staticClass:"mt-2 mb-2"},[e._v("变更后:")]),t("div",{staticClass:"customerDetails",staticStyle:{"background-color":"rgba(244, 51, 74, 0.08)"}},[e.diffValue&&e.diffValue.accountUid?t("CustomShow",{attrs:{"custom-data":e.diffValue,"detail-show":!0,"show-list":e.showList}}):t("div",[e._v("-")])],1)]):t("div",{staticClass:"customerDetails"},[e.selectedItem&&e.selectedItem.accountUid?t("CustomShow",{attrs:{"custom-data":e.selectedItem,"detail-show":!0,"show-list":e.showList}}):t("div",[e._v("-")])],1)]):t("div",[e.showSelect?t("CustomerSelect",{ref:"CustomerSelect",staticClass:"w-full",attrs:{"show-list":e.showList,"selected-text":e.value&&e.value.customerName,"rule-info":e.ruleInfo,"is-dept-for-sale":e.isDeptForSale},on:{change:e.onSelectChanged},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}}):e._e(),e.showSelect?e._e():t("div",{staticClass:"customerDetails"},[e.selectedItem&&e.selectedItem.accountUid?t("CustomShow",{attrs:{"custom-data":e.selectedItem,"detail-show":!0,"show-list":e.showList}}):e._e(),t("div",{staticClass:"button-view",on:{click:e.clearInfo}})],1),t("p",{directives:[{name:"show",rawName:"v-show",value:e.showText,expression:"showText"}],staticClass:"text-xs"},[e._v("提示:如果申请械类产品,请填写客户名称")])],1)])},r=[],a=n("5530"),o=(n("0481"),n("4069"),n("e9c4"),n("b64b"),function(){var e=this,t=e._self._c;return t("el-select",e._b({ref:"select",attrs:{"popper-class":"customerClass",placeholder:e.$attrs.placeholder||"请选择",filterable:!1!==e.$attrs.filterable,clearable:!1!==e.$attrs.clearable,remote:"","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.onUpdate,"visible-change":e.visibleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),[e._l(e.filteredOptions,(function(n){return t("el-option",{key:n.accountUid,staticClass:"customOption",attrs:{disabled:!!n.qcExpireList.length||"否"===n.status,value:n.accountUid}},[t("CustomShow",{attrs:{"custom-data":n,disabled:!!n.qcExpireList.length||"否"===n.status,"show-list":e.showList}})],1)})),t("template",{slot:"empty"},[e.loading?t("p",{staticClass:"empty-text"},[e._v("加载中")]):t("p",{staticClass:"empty-text"},[e._v("当前客户不存在,请新建客户")])])],2)}),s=[],l=(n("7db0"),n("a9e3"),n("d3b7"),n("e6cf"),n("a79d"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"item-view",class:{"disabled-color":e.disabled}},[t("div",[t("el-tag",{staticStyle:{"border-color":"#B7EDFC",color:"#01A0E2"},attrs:{color:"#E7F8FB"}},[e._v(e._s(e.customData.belongCompanyName))]),e.showAuthorization?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("授权发货")]):e._e(),e.showDealer?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("经销商")]):e._e(),e.showMedical?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("医疗机构")]):e._e(),e.showPublic?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("公立医院")]):e._e(),e.showOther?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("其他")]):e._e(),e.showTypeA?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("A-代理组经销商")]):e._e(),e.showTypeB?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("B-直营组经销商")]):e._e(),e.showDistributor?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("公立配送商")]):e._e(),e.showFranchisee?t("el-tag",{staticStyle:{"margin-left":"12px"},attrs:{effect:"plain"}},[e._v("公立特许经销商")]):e._e()],1),t("div",{staticClass:"name"},[t("span",{staticClass:"mr-2"},[e._v(e._s(e.customData.customerName))])]),t("div",{staticClass:"addr"},[e._v("开票单位:"+e._s(e.customData.invoiceCompanyName))]),t("div",{staticClass:"addr"},[t("span",{staticStyle:{"margin-right":"32px"}},[e._v(" 客户星级:"),e.checkIsShow("start")?t("span",[e._v(e._s(e.formatData(e.customData.customerStar,"start")))]):e._e(),e.checkIsShow("level")?t("span",[e._v(e._s(e.formatData(e.customData.customerLevel,"level")))]):e._e()]),e.checkIsShow("groupName")&&e.customData.groupName?t("span",[e._v("集团名称:"+e._s(e.customData.groupName))]):e._e()]),e.detailShow?t("div",[t("div",{staticClass:"addr"},[t("span",[e._v("客户唯一编码:"+e._s(e.customData.customerUniqueCode))])])]):e._e()])}),u=[],c=(n("caad"),n("2532"),{customType:{1:"经销商",2:"医疗机构",3:"公立医院",10:"其他"},start:{0:"无星",1:"一星",2:"两星",3:"三星",4:"四星",5:"五星"},level:{0:"无级",1:"一级",2:"二级",3:"三级",4:"四级",5:"五级"}}),d={name:"CustomShow",props:{customData:{type:Object,default:function(){return{}}},detailShow:{type:Boolean,default:!1},showList:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1}},data:function(){return{}},computed:{showAuthorization:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.shippingMode)||void 0===e?void 0:e.includes("授权发货"))&&this.checkIsShow("accreditDeliver")},showDealer:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("经销商"))&&this.checkIsShow("deliver")},showMedical:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("医疗机构"))&&this.checkIsShow("medical")},showPublic:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("公立医院"))&&this.checkIsShow("public")},showOther:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerType)||void 0===e?void 0:e.includes("其他"))&&this.checkIsShow("other")},showTypeA:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("A-代理组经销商"))&&this.checkIsShow("typeA")},showTypeB:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("B-直营组经销商"))&&this.checkIsShow("typeB")},showDistributor:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("公立配送商"))&&this.checkIsShow("distributor")},showFranchisee:function(){var e;return(null===(e=this.customData)||void 0===e||null===(e=e.customerDealerType)||void 0===e?void 0:e.includes("公立特许经销商"))&&this.checkIsShow("franchisee")}},methods:{checkIsShow:function(e){return this.showList.includes(e)},formatData:function(e,t){return"string"===typeof e&&e&&c[t][e]||""}}},h=d,f=(n("4062"),n("2877")),p=Object(f["a"])(h,l,u,!1,null,"670edbf5",null),m=p.exports,v=n("8ea2"),g=(n("d9e2"),function(e,t,n){var i,r;if("function"!==typeof e)throw new TypeError("Expected a function");t=t||0;var a=function(){var a=this,o=arguments;if(i&&clearTimeout(i),n){var s=!i;i=setTimeout((function(){i=null}),t),s&&(r=e.apply(a,o))}else i=setTimeout((function(){e.apply(a,o)}),t);return r};return a.cancel=function(){clearTimeout(i),i=null},a}),b={name:"CustomerSelect",components:{CustomShow:m},inject:{formProps:{default:function(){}}},props:{value:{type:[Number,String,Array],default:void 0},selectedText:{type:String,default:void 0},showList:{type:Array,default:function(){return[]}},ruleInfo:{type:Object,default:function(){return{}}},isDeptForSale:{type:Boolean,default:!1}},data:function(){return{myValue:void 0,loading:!0,selectName:void 0,options:[]}},computed:{myItem:function(){var e=this;if(this.myValue)return this.options.find((function(t){return t.accountUid===e.myValue}))},filteredOptions:function(){var e=this.options||[];return e||[]}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.selectName=this.selectedText,this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},remoteMethod:function(e){this.loading=!0,this.selectName=e;var t=g(this.getOptions,500);t()},visibleChange:function(e){e||(this.selectName="")},getOptions:function(){var e=this;this.loading=!1,this.options=[];var t={customerName:this.selectName||"",page:1,limit:10,belongCompany:this.formProps.belongCompany,rcoiCode:this.ruleInfo.rcoiCode,rcoiNumber:this.ruleInfo.rcoiNumber,isDeptForSale:this.isDeptForSale};this.loading=!0,Object(v["a"])(t).then((function(t){200===t.code&&(e.options=t.data.list||[])})).finally((function(){e.loading=!1}))},onUpdate:function(){this.$emit("input",this.myValue),this.$emit("change",this.myValue,this.myItem)},toCreateCustom:function(){}}},y=b,w=(n("5c19"),Object(f["a"])(y,o,s,!1,null,"6b3e8ed1",null)),_=w.exports,x={name:"FormCustomerSelect",components:{CustomerSelect:_,CustomShow:m},inject:{formProps:{default:function(){}}},props:{value:{type:Object,default:function(){return{}}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{myValue:"",selectedItem:{},isDeptForSale:void 0}},computed:{showText:function(){return this.showSelect&&!this.isDeptForSale&&"B05"!==this.formProps.formBaseNo},isView:function(){return this.attrs.isView},showSelect:function(){return!this.myValue&&!this.isView},showList:function(){return this.attrs.customShowList?this.attrs.customShowList.flat():[]},ruleInfo:function(){return{rcoiCode:this.attrs.rcoiCode,rcoiNumber:this.attrs.rcoiNumber}},showDiff:function(){return this.attrs.showDiff||!1},diffValue:function(){return this.attrs.diffValue}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.handleGetEmployeeIsForSale(),this.handleBusEvent()},methods:{handleGetEmployeeIsForSale:function(){var e=this;Object(v["e"])().then((function(t){200===t.code&&(e.isDeptForSale=t.data)}))},handleBusEvent:function(){var e=this;this.$bizui.bus&&!this.isView&&this.$bizui.bus.$on("formBelongCompanyChange",(function(t){e.clearInfo()}))},setMyValue:function(){try{this.myValue=this.value.accountUid,this.selectedItem=JSON.parse(JSON.stringify(this.value))}catch(e){this.selectedItem={}}},getCustonmInfo:function(){var e,t=this,n=(null===(e=this.selectedItem)||void 0===e?void 0:e.accountUid)||"";n&&Object(v["b"])({customerRelationCode:n}).then((function(e){var n;200===e.code?(e.data&&(t.selectedItem=Object(a["a"])(Object(a["a"])({},e.data),t.selectedItem)),null!==(n=e.data.qcExpireList)&&void 0!==n&&n.length&&t.$message({message:"该客户存在过期的证件,请及时更新",type:"warning",duration:5e3}),t.onUpdate()):t.$message.error(e.message)}))},onSelectChanged:function(e,t){this.selectedItem=t,this.getCustonmInfo(),this.onUpdate()},clearInfo:function(){this.myValue="",this.selectedItem={},this.onUpdate()},onUpdate:function(){this.$emit("input",this.selectedItem),this.$emit("change",this.selectedItem)}}},C=x,S=(n("b0bb"),Object(f["a"])(C,i,r,!1,null,"9d65c07a",null));t["default"]=S.exports},"85e7":function(e,t,n){var i=n("1a14"),r=n("77e9"),a=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){r(e);var n,o=a(t),s=o.length,l=0;while(s>l)i.f(e,n=o[l++],t[n]);return e}},8619:function(e,t,n){"use strict";n("1991")},"861d":function(e,t,n){"use strict";var i=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},8875:function(e,t,n){var i,r,a;(function(n,o){r=[],i=o,a="function"===typeof i?i.apply(t,r):i,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(f.stack)||o.exec(f.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var h=0;h<d.length;h++){if("interactive"===d[h].readyState)return d[h];if(d[h].src===l)return d[h];if(l===c&&d[h].innerHTML&&d[h].innerHTML.trim()===r)return d[h]}return null}}return e}))},8925:function(e,t,n){"use strict";var i=n("e330"),r=n("1626"),a=n("c6cd"),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},8935:function(e,t,n){"use strict";n.r(t);var i=n("5530"),r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-view"},[t("ImTable",{staticStyle:{"margin-bottom":"20px"},attrs:{table:e.tableConfig},scopedSlots:e._u([{key:"doctorName",fn:function(n){var r,a=n.row;return[e.isView?e._e():t("p",{staticStyle:{"font-size":"12px",color:"red","line-height":"18px","margin-bottom":"8px"}},[e._v("标记“暂不可用”的专家是因为缺少计算专家费必要字段,请前往用户中心维护专家信息")]),e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":a.doctorName,"no-absolute":!0,"new-value":null===(r=a._newData)||void 0===r?void 0:r.doctorName}}):t("div",[a.doctorNumber?t("p",{staticClass:"text-button",on:{click:function(t){return e.viewdoctorDetailItem(a)}}},[e._v(e._s(a.doctorName))]):t("p",[e._v(e._s(a.doctorName))])])],1):t("ImSelect",{class:{"is-error":!1===a.valid&&!a.doctorNumber},attrs:{attrs:Object(i["a"])(Object(i["a"])({},e.doctorAttrs),{},{disabled:!!a.acceptanceDoctorTimes,loading:e.doctorLoading}),listeners:{focus:e.onDoctorFocus}},on:{input:function(t){return e.changedoctorName(a)}},model:{value:a.doctorNumber,callback:function(t){e.$set(a,"doctorNumber",t)},expression:"row.doctorNumber"}})]}},{key:"organizations",fn:function(n){var i=n.row;return[t("div",{staticClass:"expertOther"},[i.doctorNumber?e._e():t("p",[e._v("-")]),Array.isArray(i.doctorOrg)?t("div",e._l(i.doctorOrg,(function(n,i){return t("div",{key:i},[e._v(e._s(n))])})),0):e._e()])]}},{key:"otherInfo",fn:function(n){var i=n.row;return[t("div",{staticClass:"expertOther"},[t("div",[Array.isArray(i.doctorOrg)?t("div",e._l(i.doctorOrg,(function(n,i){return t("ImOneLineDot",{key:i,attrs:{text:n}},[e._v(e._s(n))])})),1):e._e()]),i.doctorNumber?t("div",[t("ImOneLineDot",{attrs:{text:i.doctorNumber}},[e._v("专家编号:"+e._s(i.doctorNumber))]),t("ImOneLineDot",{attrs:{text:e.formatPhone(i.doctorPhone)}},[e._v("手机号:"+e._s(e.formatPhone(i.doctorPhone)))]),t("ImOneLineDot",{attrs:{text:i.doctorType}},[e._v("类型:"+e._s(i.doctorType||"-"))]),t("ImOneLineDot",{attrs:{text:i.doctorPost}},[e._v("职称:"+e._s(i.doctorPost||"-"))]),i.doctorExpertType?t("ImOneLineDot",{attrs:{text:i.doctorExpertType}},[e._v("医生类专家类别:"+e._s(i.doctorExpertType||"-"))]):e._e()],1):t("p",[e._v("-")])])]}},{key:"doctorLevel",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.doctorLevelName,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.doctorLevelName}}):t("div",[e._v(e._s(r.doctorLevelName))])],1):t("ImSelect",{class:{"is-error":!1===r.valid&&!r.doctorLevel},attrs:{attrs:{options:r.roleList,disabled:!!r.acceptanceDoctorTimes}},on:{input:function(t){return e.changeDoctorLevel(r)}},model:{value:r.doctorLevel,callback:function(t){e.$set(r,"doctorLevel",t)},expression:"row.doctorLevel"}})]}},{key:"scenario",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.doctorServiceSceneName,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.doctorServiceSceneName}}):t("div",[e._v(e._s(r.doctorServiceSceneName))]),r.describe?t("p",{staticClass:"tips-text"},[e._v(e._s(r.describe))]):e._e()],1):t("div",[t("ImSelect",{class:{"is-error":!1===r.valid&&!r.doctorServiceSceneCode},attrs:{attrs:{options:r.scenarioList,loading:e.scenarioLoading,disabled:!!r.acceptanceDoctorTimes}},on:{input:function(t){return e.changeScenario(t,r)}},model:{value:r.doctorServiceSceneCode,callback:function(t){e.$set(r,"doctorServiceSceneCode",t)},expression:"row.doctorServiceSceneCode"}}),r.describe?t("p",{staticClass:"tips-text"},[e._v(e._s(r.describe))]):e._e()],1)]}},{key:"identity",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.identity,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.identity}}):t("p",[e._v(e._s(r.identity))])],1):t("div",[e.checkIdentity(r.shenfenList_new)?t("div",[e._v("-")]):t("ImSelect",{class:{"is-error":!1===r.valid&&!r.identity},attrs:{attrs:{options:r.shenfenList_new,disabled:!!r.acceptanceDoctorTimes}},on:{input:function(t){return e.handleChangeIdentity(t,r)}},model:{value:r.identity,callback:function(t){e.$set(r,"identity",t)},expression:"row.identity"}})],1)]}},{key:"className",fn:function(n){var i,r=n.row;return[!e.isView&&e.checkHasCourse(r)?t("div",[t("ImInput",{attrs:{attrs:{disabled:!!r.acceptanceDoctorTimes},placeholder:"请输入",maxlength:"100"},model:{value:r.courseName,callback:function(t){e.$set(r,"courseName",t)},expression:"row.courseName"}})],1):t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.courseName,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.courseName}}):t("div",[e._v(e._s(r.courseName||"-"))])],1)]}},{key:"costAmount",fn:function(n){var i,r=n.row;return[e.checkStandardAmountsIsBeyond(r)?t("p",{staticClass:"standardAmount"},[e._v("费用标准:"+e._s(r.standardAmount))]):e._e(),e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.costAmount,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.costAmount}}):t("div",[e._v(e._s(r.costAmount))])],1):t("el-input-number",{class:{isBeyound:e.checkStandardAmountsIsBeyond(r),"is-error":!1===r.valid&&!r.costAmount},staticStyle:{width:"100%"},attrs:{"input-align":"left","controls-position":"right",min:0,placeholder:r.standardAmount?"".concat(r.standardAmount):"请输入"},model:{value:r.costAmount,callback:function(t){e.$set(r,"costAmount",t)},expression:"row.costAmount"}})]}},{key:"remark",fn:function(n){var i,r=n.row;return[e.isView?t("div",[e.showDiff?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":r.remark,"no-absolute":!0,"new-value":null===(i=r._newData)||void 0===i?void 0:i.remark}}):t("div",[e._v(e._s(r.remark))])],1):t("el-input",{class:{"is-error":e.checkStandardAmountsIsBeyond(r)&&!r.remark},attrs:{type:"textarea",rows:5,"show-word-limit":"",maxlength:"100",placeholder:"请输入"},model:{value:r.remark,callback:function(t){e.$set(r,"remark",t)},expression:"row.remark"}})]}},{key:"operation",fn:function(n){var i=n.row,r=n.$index;return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addExpert(r)}}},[e._v("新增")]),t("el-button",{staticClass:"delete-button",attrs:{disabled:!!i.acceptanceDoctorTimes,type:"text"},on:{click:function(t){return e.deleteExpert(r)}}},[e._v("移除")])]}},{key:"changeType",fn:function(n){var i=n.row;return[t("p",[e._v(e._s(e.formatChangeType(i._changeType)))])]}}])},[t("template",{slot:"doctorNameHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("专家名称")])]),t("template",{slot:"doctorLevelHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("角色/等级")])]),t("template",{slot:"scenarioHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("服务场景")])]),t("template",{slot:"costAmountHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("费用金额(元)")])])],2)],1)},a=[],o=(n("99af"),n("4de4"),n("7db0"),n("caad"),n("e260"),n("d81d"),n("14d9"),n("13d5"),n("a434"),n("e9c4"),n("a9e3"),n("b64b"),n("d3b7"),n("e6cf"),n("a79d"),n("ac1f"),n("6062"),n("2532"),n("3ca3"),n("5319"),n("159b"),n("ddb0"),n("8ea2"));n("2ca0");function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"objectCode",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=JSON.parse(JSON.stringify(e))||[],o=JSON.parse(JSON.stringify(t))||[],s=[];return a.forEach((function(e){var t=o.find((function(t){return t[n]===e[n]}));if(t){var a=Object.keys(t).some((function(n){return!n.startsWith("_")&&(n in e&&(!r.includes(n)&&JSON.stringify(e[n])!==JSON.stringify(t[n])))}));a?s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"update",_newData:t})):s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"unchanged"}))}else s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"delete"}))})),o.forEach((function(e){var t=a.some((function(t){return t[n]===e[n]}));t||s.push(Object(i["a"])(Object(i["a"])({},e),{},{_changeType:"add",_newData:e}))})),s}var l={name:"FieldExpertSelect",props:{value:{type:Array,default:function(){}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{exportsList:[],tableConfig:{data:[{}],attrs:{"show-summary":!0,"summary-method":this.summaryMethod},tableItems:[]},doctorAttrs:{options:[],filterable:!0,remote:!0,"remote-method":this.getExpertsList},scenarioLoading:!1,doctorLoading:!1}},computed:{isView:function(){return this.attrs.isView},mergeDiffData:function(){return this.showDiff?s(this.value||[],this.diffValue||[],"doctorNumber"):this.value},showDiff:function(){return this.attrs.showDiff||!1},diffValue:function(){return this.attrs.diffValue},items:function(){return[{label:"专家名称",prop:"doctorName",type:"slot",slot:"doctorName",headSlot:"doctorNameHead",attrs:{"min-width":"120"}},{label:"其他信息",prop:"otherInfo",type:"slot",slot:"otherInfo",attrs:{"min-width":"200"}},{label:"角色/等级",prop:"doctorLevel",type:"slot",slot:"doctorLevel",headSlot:"doctorLevelHead",attrs:{"min-width":"150"}},{label:"服务场景",prop:"scenario",type:"slot",slot:"scenario",headSlot:"scenarioHead",attrs:{"min-width":"150"}},{label:"活动参与身份",prop:"identity",type:"slot",slot:"identity",attrs:{"min-width":"150"}},{label:"授课名称",prop:"className",type:"slot",slot:"className",attrs:{"min-width":"130"}},{label:"费用金额(元)",prop:"costAmount",type:"slot",slot:"costAmount",headSlot:"costAmountHead",attrs:{"min-width":"160"}},{label:"备注",prop:"remark",type:"slot",slot:"remark",attrs:{"min-width":"140"}},{label:"变更类型",prop:"_changeType",type:"slot",slot:"changeType",hidden:!this.showDiff,attrs:{"min-width":"100"}},{label:"操作",prop:"operation",type:"slot",slot:"operation",hidden:this.isView,attrs:{fixed:"right",width:"120"}}]}},watch:{mergeDiffData:{deep:!0,immediate:!0,handler:function(e){e&&this.$set(this.tableConfig,"data",e)}},items:{handler:function(){this.tableConfig.tableItems=this.items},immediate:!0}},mounted:function(){this.handleBusEvent(),this.isView||this.refreshData()},beforeDestroy:function(){this.$bizui.bus&&(this.$bizui.bus.$off("applySave"),this.$bizui.bus.$off("applySubmit"))},methods:{handleBusEvent:function(){var e=this;this.$bizui.bus&&(this.$bizui.bus.$on("applySubmit",(function(t){e.handleValidate()})),this.$bizui.bus.$on("applySave",(function(t){e.onUpdate()})))},handleValidate:function(){var e=this,t=!0;console.log(this.tableConfig.data,"列表数据"),this.tableConfig.data.forEach((function(n){var i=!0;n.doctorNumber?n.doctorLevel?n.doctorServiceSceneCode?n.costAmount?e.checkIdentity(n.shenfenList_new)||n.identity?e.checkStandardAmountsIsBeyond(n)&&!n.remark&&(i&&t&&e.$message.warning("请填写备注"),i=!1):(i&&t&&e.$message.warning("请检查活动参与身份"),i=!1):(i&&t&&e.$message.warning("请检查费用金额"),i=!1):(i&&t&&e.$message.warning("请检查服务场景"),i=!1):(i&&t&&e.$message.warning("请检查角色/等级"),i=!1):(i&&t&&e.$message.warning("请检查专家名称"),i=!1),n.valid=i,t=i})),this.onUpdate()},refreshData:function(){var e,t=this;null===(e=this.tableConfig.data)||void 0===e||e.forEach((function(e){t.getExpertsList(e.doctorName,e),t.getSceneList(e)}))},getExpertsList:function(e,t){var n=this,i={realName:e||"",page:1,limit:10};this.doctorLoading=!0,Object(o["g"])(i).then((function(e){n.doctorLoading=!1,200===e.code?(e.data.list.forEach((function(e){var t="1"!==e.expertInfoType;e.label=e.doctorName+(t?"(暂不可用)":""),e.value=e.doctorNumber,e.disabled=t})),n.doctorAttrs.options=e.data.list,t&&n.changedoctorName(t,"refresh")):n.$message.error(e.message)})).finally((function(){n.doctorLoading=!1}))},setDefaultRoleInfo:function(e){if(e.doctorNumber&&!this.isView){var t=e.roleList.find((function(t){return t.value===e.doctorLevel}));if(t)return this.$set(e,"doctorLevel",t.value),void this.changeDoctorLevel(e);this.$set(e,"doctorLevel",""),e.doctorServiceSceneName=""}1===e.roleList.length&&(this.$set(e,"doctorLevel",e.roleList[0].value),this.changeDoctorLevel(e),this.getSceneList(e))},getSceneList:function(e){var t=this;console.log("getSceneList",e.doctorExpertType),e.doctorLevel&&(this.scenarioLoading=!0,Object(o["f"])({expertRoleCode:e.doctorLevel,doctorExpertType:e.doctorExpertType,doctorNumber:e.doctorNumber}).then((function(n){if(t.scenarioLoading=!1,200===n.code){var i=JSON.parse(n.data).sceneList,r=JSON.parse(n.data).standardAmountList.map((function(e){return{label:e.sceneAndIdentity,value:e.sceneAndIdentity,standardAmount:e.standardAmount}}));t.$set(e,"scenarioList",i),t.$set(e,"costFeeList",JSON.parse(n.data).costFeeList),t.$set(e,"shenfenList",r)}else t.$message.error(n.message)})))},handleChangeIdentity:function(e,t){var n=this,i=t.shenfenList_new.find((function(t){return t.value===e}));this.$set(t,"standardAmount",i.standardAmount),t.costFeeList.forEach((function(e){e.sceneAndIdentity===t.doctorServiceSceneName+"_"+t.identity&&n.$set(t,"costFee",e.costFee)}))},changedoctorName:function(e,t){var n=this.doctorAttrs.options.find((function(t){return t.value===e.doctorNumber})),i=this.tableConfig.data.map((function(e){return e.doctorNumber}));if(n){if(this.hasDuplicates(i))return this.$set(e,"doctorNumber",""),void this.$message.error("该专家已存在");for(var r in"string"===typeof n.doctorOrg&&(n.doctorOrgName=n.doctorOrg,n.doctorOrg=n.doctorOrg.split(",")),n)this.$set(e,r,n[r]);e.roleList=n.doctorRoleInfoList.map((function(e){return{value:e.roleCode,label:e.roleName}})),t||(this.$set(e,"doctorServiceSceneCode",""),this.$set(e,"doctorLevel",""),this.$set(e,"describe",""),this.$set(e,"identity",""),this.$set(e,"courseName",""),this.$set(e,"standardAmount",""),this.$set(e,"costAmount",void 0),this.$set(e,"scenarioList",[]),this.$set(e,"doctorLevelName",""),this.setDefaultRoleInfo(e))}},hasDuplicates:function(e){var t=e.filter((function(e){return e}));return new Set(t).size!==t.length},changeScenario:function(e,t){var n=t.scenarioList.find((function(t){return t.value===e}));if(console.log(n.label),n){this.$set(t,"doctorServiceSceneName",n.label),this.$set(t,"describe",n.describe),this.$set(t,"identity",""),this.$set(t,"courseName",""),this.$set(t,"standardAmount",""),this.$set(t,"costAmount",void 0);var i=[],r=t.scenarioList||[],a=t.shenfenList;console.log(a,"shenfenList"),r.forEach((function(e){if(e.value===t.doctorServiceSceneCode){var n=e.identity||"";n.split(",").forEach((function(t){var n;console.log(e.label,"scenarioItem.label"),i.push({label:t,value:t,standardAmount:(null===(n=a.find((function(n){return n.value==="".concat(e.label,"_").concat(t)})))||void 0===n?void 0:n.standardAmount)||0})}))}})),this.$set(t,"shenfenList_new",i),1===i.length&&""===t.shenfenList_new[0].value&&this.handleChangeIdentity("",t),1===i.length&&(this.$set(t,"identity",t.shenfenList_new[0].value),this.handleChangeIdentity(t.shenfenList_new[0].value,t))}this.checkStandardAmountsIsBeyond(t)},changeDoctorLevel:function(e){var t=e.roleList.find((function(t){return t.value===e.doctorLevel}));t&&(this.$set(e,"doctorLevelName",t.label),this.$set(e,"doctorServiceSceneCode",""),this.$set(e,"describe",""),this.$set(e,"identity",""),this.$set(e,"courseName",""),this.$set(e,"standardAmount",""),this.$set(e,"costAmount",void 0)),this.getSceneList(e)},addExpert:function(){this.tableConfig.data.length>=50?this.$message.warning("最多添加50行专家信息"):this.tableConfig.data.push({})},deleteExpert:function(e){this.tableConfig.data.length<=1?this.$message.error("至少保留一条专家信息"):this.tableConfig.data.splice(e,1)},onUpdate:function(){this.tableConfig.data.forEach((function(e){Number(e.costFee)>0?(e.maxCostFee=Number(e.costFee||0),e.miniEcsBudget=Number(e.costAmount||0)>Number(e.costFee||0)?Number(e.costFee||0):Number(e.costAmount||0)):(e.miniEcsBudget=Number(e.costAmount||0),e.maxCostFee=Number(e.costAmount||0))}));var e=JSON.parse(JSON.stringify(this.tableConfig.data));this.$emit("input",e),this.$emit("change",e)},formatPhone:function(e){return e?e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):""},checkStandardAmountsIsBeyond:function(e){return Number(e.costAmount)>Number(e.standardAmount)},checkHasCourse:function(e){return!(!e.identity||!Array.isArray(e.shenfenList_new))&&e.shenfenList_new.some((function(t){var n;return t.value===e.identity&&(null===(n=t.label)||void 0===n?void 0:n.includes("授课"))}))},formatChangeType:function(e){switch(e){case"add":return"新增";case"update":return"变更";case"delete":return"删除";default:return"-"}},summaryMethod:function(e){var t=e.columns,n=e.data,i=[];return t.forEach((function(e,t){if(0!==t){if(6===t){var r=n.map((function(t){return t._newData?null===t||void 0===t?void 0:t._newData[e.property]:t[e.property]}));i[t]=r.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:e+t}),0)}}else i[t]="合计"})),i},viewdoctorDetailItem:function(e){var t="";t="testenv"===this.$bizui.env?"//usercenter-test.imeik.com":"pre"===this.$bizui.env?"//usercenter-pre.imeik.com":"//usercenter.imeik.com";var n=this.$bizui.userTokenFunc(),i="".concat(t,"/user/expertDatabase/expertDetails?objectCode=").concat(e.doctorNumber,"&type=list&token=").concat(n,"&hideBar=1");window.open(i)},onDoctorFocus:function(){this.doctorAttrs.options=[]},checkIdentity:function(e){return 1===(null===e||void 0===e?void 0:e.length)&&""===e[0].value}}},u=l,c=(n("291d"),n("2877")),d=Object(c["a"])(u,r,a,!1,null,"f20bc3c0",null);t["default"]=d.exports},"8a0d":function(e,t){e.exports={}},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8b1a":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},132:function(e,t,n){"use strict";n.r(t);var i,r,a={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,a=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],o=e("span",{class:a,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"8bbf":function(t,n){t.exports=e},"8d39":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[e.myValue?t("div",{staticClass:"customerDetails"},[t("div",{staticClass:"details"},[t("div",{staticClass:"name"},[t("span",{staticClass:"customerName"},[e._v(e._s(e.selectedItem.meetingName))]),t("el-tag",[e._v(e._s(e.selectedItem.meetingNumber))])],1),t("div",{staticClass:"addr"},[e._v("会议主题: "+e._s(e.selectedItem.meetingSubject))]),t("div",{staticClass:"addr"},[e._v("会议时间: "+e._s(e.selectedItem.meetingDate))])]),e.isView?e._e():t("div",{staticClass:"button"},[t("el-button",{attrs:{type:"text"},on:{click:e.clearInfo}},[t("i",{staticClass:"el-icon-delete"})])],1)]):t("MeetingSelect",{ref:"MeetingSelect",staticClass:"w-full",attrs:{extra:e.meetingExtra},on:{change:e.onSelectChanged},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}})],1)},r=[],a=(n("e9c4"),n("b64b"),function(){var e=this,t=e._self._c;return t("el-select",e._b({ref:"select",attrs:{"popper-class":"customerClass",placeholder:e.$attrs.placeholder||"请选择",filterable:!1!==e.$attrs.filterable,clearable:!1!==e.$attrs.clearable,remote:"","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.onChange,"visible-change":e.visibleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.objectCode,staticClass:"customOption",attrs:{label:n.meetingName,value:n.meetingNumber}},[t("div",{staticClass:"name"},[t("span",{staticClass:"mr-2"},[e._v(e._s(n.meetingName))]),t("el-tag",[e._v(e._s(n.meetingNumber))])],1),t("div",{staticClass:"addr"},[e._v("会议主题: "+e._s(n.meetingSubject))]),t("div",{staticClass:"addr"},[e._v("会议时间: "+e._s(n.meetingDate))])])})),1)}),o=[],s=n("5530"),l=(n("7db0"),n("a9e3"),n("d3b7"),n("e6cf"),n("a79d"),n("ca94")),u={name:"CustomerSelect",props:{value:{type:[Number,String,Array],default:void 0},disabledCode:{type:Array,default:function(){return[]}},extra:{type:Object,default:function(){return{}}}},data:function(){return{myValue:void 0,loading:!0,selectName:void 0,options:[]}},computed:{myItem:function(){var e=this;if(this.myValue)return this.options.find((function(t){return t.meetingNumber===e.myValue}))}},watch:{value:{immediate:!0,handler:function(){JSON.stringify(this.value)!==JSON.stringify(this.myValue)&&this.getOptions(),this.setMyValue()}},extra:{immediate:!0,deep:!0,handler:function(){this.getOptions()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},remoteMethod:function(e){this.loading=!0,this.selectName=e,this.getOptions()},visibleChange:function(e){e||(this.selectName="",this.getOptions())},getOptions:function(){var e=this,t=Object(s["a"])({meetingNumber:this.selectName||""},this.extra);this.loading=!0,Object(l["c"])(t).then((function(t){200===t.code&&(e.options=t.data||[])})).finally((function(){e.loading=!1}))},onChange:function(){this.$refs.select&&(this.$refs.select.inputValue=""),this.$emit("input",this.myValue,this.myItem),this.$emit("change",this.myValue,this.myItem)}}},c=u,d=(n("8619"),n("2877")),h=Object(d["a"])(c,a,o,!1,null,"780f9d5c",null),f=h.exports,p={name:"FormMeetingSelect",components:{MeetingSelect:f},props:{value:{type:Object,default:function(){return{}}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{myValue:"",selectedItem:null}},computed:{isView:function(){return this.attrs&&this.attrs.isView},meetingExtra:function(){return this.attrs&&this.attrs.meetingExtra}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},methods:{setMyValue:function(){try{this.myValue=this.value.meetingNumber,this.selectedItem=JSON.parse(JSON.stringify(this.value))}catch(e){}},onSelectChanged:function(e,t){this.selectedItem=t,this.onUpdate()},clearInfo:function(){this.myValue="",this.selectedItem=null,this.onUpdate()},onUpdate:function(){this.$emit("input",this.selectedItem),this.$emit("change",this.selectedItem)}}},m=p,v=(n("6de9"),Object(d["a"])(m,i,r,!1,null,"13128f6a",null));t["default"]=v.exports},"8dde":function(e,t,n){"use strict";n("bb62")},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"8ea2":function(e,t,n){"use strict";n.d(t,"k",(function(){return s})),n.d(t,"l",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return g})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"o",(function(){return _}));var i=n("10bb"),r={development:"//apply-backend-dev.imeik.com",testenv:"//apply-backend-test.imeik.com",production:"//apply-backend.imeik.com",pre:"//apply-backend-pre.imeik.com"},a=Object(i["a"])(r),o=a;function s(e){return o({url:"/application-center-admin/data/exchange/getTagManageList",method:"get",params:e})}function l(e){return o({url:e,method:"get",isTag:!0})}function u(e){return o({url:"/application-center-admin/data/exchange/getCustomerList",method:"post",data:e})}function c(e){return o({url:"/application-center-admin/data/exchange/getMaterialList",method:"post",data:e})}function d(e){return o({url:"/application-center-admin/data/exchange/getCustomerProductAddress",method:"post",data:e})}function h(e){return o({url:"/application-center-admin/data/exchange/getMotherSchemeList",method:"post",data:e})}function f(e){return o({url:"/application-center-admin/data/exchange/getEmployeeAddress",method:"get",params:e})}function p(e){return o({url:"/application-center-admin/common/getEcsErpCode",method:"post",data:e})}function m(e){return o({url:"/application-center-admin/data/exchange/getCustomerRelationInfo",method:"post",data:e})}function v(e){return o({url:"/application-center-admin/common/isImeikStaff",method:"get",params:e})}function g(e){return o({url:"/application-center-admin/common/listWarehouseItem",method:"get",params:e})}function b(e){return o({url:"/application-center-admin/data/exchange/getEmployeeIsForSale",method:"get",params:e})}function y(e){return o({url:"/application-center-admin/data/exchange/getExpertServiceFee",method:"post",data:e})}function w(e){return o({url:"/application-center-admin/data/exchange/getExpertInfoPage",method:"post",data:e})}function _(e){return o({url:"/application-center-admin/data/exchange/queryBudgetDepartManage",method:"post",params:{tagModel:"APPLY",tagCode:"al-fxssqxmbh"},data:e})}},"8eb7":function(e,t){var n,i,r,a,o,s,l,u,c,d,h,f,p,m,v,g=!1;function b(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,a=t[4]?parseFloat(t[4]):NaN,a?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=t&&t[1]?parseFloat(t[1]):NaN):o=NaN}else n=i=r=o=a=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!w||parseFloat(w[1].replace("_","."))}else l=!1;u=!!b[2],c=!!b[3]}else l=u=c=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&h},firefox:function(){return b()||i},opera:function(){return b()||r},webkit:function(){return b()||a},safari:function(){return y.webkit()},chrome:function(){return b()||o},windows:function(){return b()||u},osx:function(){return b()||l},linux:function(){return b()||c},iphone:function(){return b()||f},mobile:function(){return b()||f||p||d||v},nativeApp:function(){return b()||m},android:function(){return b()||d},ipad:function(){return b()||p}};e.exports=y},"90d8":function(e,t,n){"use strict";var i=n("c65b"),r=n("1a2d"),a=n("3a9b"),o=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!a(s,e)?t:i(o,e)}},"90e3":function(e,t,n){"use strict";var i=n("e330"),r=0,a=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}},9112:function(e,t,n){"use strict";var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var i=n("ef08").document;e.exports=i&&i.documentElement},9263:function(e,t,n){"use strict";var i=n("c65b"),r=n("e330"),a=n("577e"),o=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,d=n("fce3"),h=n("107c"),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,v=r("".charAt),g=r("".indexOf),b=r("".replace),y=r("".slice),w=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],C=w||x||_||d||h;C&&(m=function(e){var t,n,r,s,l,d,h,C=this,S=c(C),k=a(e),O=S.raw;if(O)return O.lastIndex=C.lastIndex,t=i(m,O,k),C.lastIndex=O.lastIndex,t;var D=S.groups,E=_&&C.sticky,T=i(o,C),$=C.source,I=0,N=k;if(E&&(T=b(T,"y",""),-1===g(T,"g")&&(T+="g"),N=y(k,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(k,C.lastIndex-1))&&($="(?: "+$+")",N=" "+N,I++),n=new RegExp("^(?:"+$+")",T)),x&&(n=new RegExp("^"+$+"$(?!\\s)",T)),w&&(r=C.lastIndex),s=i(p,E?n:C,N),E?s?(s.input=y(s.input,I),s[0]=y(s[0],I),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:w&&s&&(C.lastIndex=C.global?s.index+s[0].length:r),x&&s&&s.length>1&&i(f,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&D)for(s.groups=d=u(null),l=0;l<D.length;l++)h=D[l],d[h[0]]=s[h[1]];return s}),e.exports=m},"92f0":function(e,t,n){var i=n("1a14").f,r=n("9c0e"),a=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var r,a,o,s,l;for(o in t)if(r=e[o],a=t[o],r&&n.test(o))if("class"===o&&("string"===typeof r&&(l=r,e[o]=r={},r[l]=!0),"string"===typeof a&&(l=a,t[o]=a={},a[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)r[s]=i(r[s],a[s]);else if(Array.isArray(r))e[o]=r.concat(a);else if(Array.isArray(a))e[o]=[r].concat(a);else for(s in a)r[s]=a[s];else e[o]=t[o];return e}),{})}},9447:function(e,t,n){},"944a":function(e,t,n){"use strict";var i=n("d066"),r=n("e065"),a=n("d44e");r("toStringTag"),a(i("Symbol"),"Symbol")},"94c6":function(e,t,n){},"94ca":function(e,t,n){"use strict";var i=n("d039"),r=n("1626"),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===c||n!==u&&(r(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},9619:function(e,t,n){var i=n("597f"),r=n("0e15");e.exports={throttle:i,debounce:r}},9742:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9876:function(e,t,n){var i=n("03d6"),r=n("9742");e.exports=Object.keys||function(e){return i(e,r)}},9989:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"enum-show"},[e._v(e._s(e.enumLabel))])},r=[],a=(n("a15b"),n("14d9"),n("a9e3"),{name:"CommonEnumShow",props:{enumKey:{required:!0,type:String,default:""},enumValue:{required:!0,type:[String,Array,Number],default:""}},computed:{enums:function(){return this.$bizui.enums},enumLabel:function(){if(!this.enumValue)return"-";if(Array.isArray(this.enumValue)){for(var e=[],t=0;t<this.enumValue.length;t++){var n=this.enumValue[t],i=this.getLabelByValue(this.enumKey,n);e.push(i)}return e.join(",")||"-"}return this.getLabelByValue(this.enumKey,this.enumValue)}},methods:{getLabelByValue:function(e,t){var n=this.getOptionsItemByValue(e,t);return n.label||"-"},getOptionsItemByValue:function(e,t){var n=this.enums,i={},r=n[e]||[];if(!r||0===r.length)return i;for(var a=0;a<r.length;a++){var o=r[a];o.value===t+""&&(i=o)}return i}}}),o=a,s=n("2877"),l=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),l=n("07fa"),u=n("3511"),c=n("8418"),d=n("65f0"),h=n("1dde"),f=n("b622"),p=n("2d00"),m=f("isConcatSpreadable"),v=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)},b=!v||!h("concat");i({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,n,i,r,a,o=s(this),h=d(o,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(a=-1===t?o:arguments[t],g(a))for(r=l(a),u(f+r),n=0;n<r;n++,f++)n in a&&c(h,f,a[n]);else u(f+1),c(h,f++,a);return h.length=f,h}})},"9a1f":function(e,t,n){"use strict";var i=n("c65b"),r=n("59ed"),a=n("825a"),o=n("0d51"),s=n("35a1"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw new l(o(e)+" is not iterable")}},"9b70":function(e,t,n){"use strict";n("516c")},"9bdd":function(e,t,n){"use strict";var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},"9bf2":function(e,t,n){"use strict";var i=n("83ab"),r=n("0cfb"),a=n("aed9"),o=n("825a"),s=n("a04b"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=i?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var i=c(e,t);i&&i[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=s(t),o(n),r)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c0c":function(e,t,n){var i=n("1609");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"9c0e":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9d11":function(e,t,n){var i=n("fc5e"),r=Math.max,a=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):a(e,t)}},"9d36":function(e,t,n){},"9d7e":function(e,t,n){"use strict";t.__esModule=!0;var i="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};t.default=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return 1===n.length&&"object"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(a,(function(t,i,a,o){var s=void 0;return"{"===e[o-1]&&"}"===e[o+t.length]?a:(s=(0,r.hasOwn)(n,a)?n[a]:null,null===s||void 0===s?"":s)}))}return t};var r=n("8122"),a=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9f7f":function(e,t,n){"use strict";var i=n("d039"),r=n("da84"),a=r.RegExp,o=i((function(){var e=a("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=o||i((function(){return!a("a","y").sticky})),l=o||i((function(){var e=a("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:o}},"9fbb":function(e,t,n){var i=n("4d88");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},a04b:function(e,t,n){"use strict";var i=n("c04e"),r=n("d9b5");e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("44ad"),o=n("fc6a"),s=n("a640"),l=r([].join),u=a!==Object,c=u||!s("join",",");i({target:"Array",proto:!0,forced:c},{join:function(e){return l(o(this),void 0===e?",":e)}})},a15e:function(e,t,n){"use strict";n.r(t);var i=n("41b2"),r=n.n(i),a=n("1098"),o=n.n(a),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],a=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var o=String(r).replace(s,(function(e){if("%%"===e)return"%";if(i>=a)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[i];i<a;l=t[++i])o+=" "+l;return o}return r}function c(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!c(t)||"string"!==typeof e||e))}function h(e,t,n){var i=[],r=0,a=e.length;function o(e){i.push.apply(i,e),r++,r===a&&n(i)}e.forEach((function(e){t(e,o)}))}function f(e,t,n){var i=0,r=e.length;function a(o){if(o&&o.length)n(o);else{var s=i;i+=1,s<r?t(e[s],a):n([])}}a([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,i){if(t.first){var r=p(e);return f(r,n,i)}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&i(u)};o.forEach((function(t){var i=e[t];-1!==a.indexOf(t)?f(i,n,c):h(i,n,c)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function g(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===("undefined"===typeof i?"undefined":o()(i))&&"object"===o()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}function b(e,t,n,i,r,a){!e.required||n.hasOwnProperty(e.field)&&!d(t,a||e.type)||i.push(u(r.messages.required,e.fullField))}var y=b;function w(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(u(r.messages.whitespace,e.fullField))}var _=w,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":o()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function S(e,t,n,i,r){if(e.required&&void 0===t)y(e,t,n,i,r);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?C[s](t)||i.push(u(r.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":o()(t))!==e.type&&i.push(u(r.messages.types[s],e.fullField,e.type))}}var k=S;function O(e,t,n,i,r){var a="number"===typeof e.len,o="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,h="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(h?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),f&&(c=t.replace(l,"_").length),a?c!==e.len&&i.push(u(r.messages[d].len,e.fullField,e.len)):o&&!s&&c<e.min?i.push(u(r.messages[d].min,e.fullField,e.min)):s&&!o&&c>e.max?i.push(u(r.messages[d].max,e.fullField,e.max)):o&&s&&(c<e.min||c>e.max)&&i.push(u(r.messages[d].range,e.fullField,e.min,e.max))}var D=O,E="enum";function T(e,t,n,i,r){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&i.push(u(r.messages[E],e.fullField,e[E].join(", ")))}var $=T;function I(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||i.push(u(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var N=I,M={required:y,whitespace:_,type:k,range:D,enum:$,pattern:N};function j(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t,"string")&&!e.required)return n();M.required(e,t,i,a,r,"string"),d(t,"string")||(M.type(e,t,i,a,r),M.range(e,t,i,a,r),M.pattern(e,t,i,a,r),!0===e.whitespace&&M.whitespace(e,t,i,a,r))}n(a)}var P=j;function V(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&M.type(e,t,i,a,r)}n(a)}var A=V;function L(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var F=L;function R(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&M.type(e,t,i,a,r)}n(a)}var B=R;function z(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),d(t)||M.type(e,t,i,a,r)}n(a)}var H=z;function W(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var Y=W;function q(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var U=q;function G(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t,"array")&&!e.required)return n();M.required(e,t,i,a,r,"array"),d(t,"array")||(M.type(e,t,i,a,r),M.range(e,t,i,a,r))}n(a)}var K=G;function J(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),void 0!==t&&M.type(e,t,i,a,r)}n(a)}var X=J,Q="enum";function Z(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();M.required(e,t,i,a,r),t&&M[Q](e,t,i,a,r)}n(a)}var ee=Z;function te(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t,"string")&&!e.required)return n();M.required(e,t,i,a,r),d(t,"string")||M.pattern(e,t,i,a,r)}n(a)}var ne=te;function ie(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(d(t)&&!e.required)return n();if(M.required(e,t,i,a,r),!d(t)){var s=void 0;s="number"===typeof t?new Date(t):t,M.type(e,s,i,a,r),s&&M.range(e,s.getTime(),i,a,r)}}n(a)}var re=ie;function ae(e,t,n,i,r){var a=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":o()(t);M.required(e,t,i,a,r,s),n(a)}var oe=ae;function se(e,t,n,i,r){var a=e.type,o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(d(t,a)&&!e.required)return n();M.required(e,t,i,o,r,a),d(t,a)||M.type(e,t,i,o,r)}n(o)}var le=se,ue={string:P,method:A,number:F,boolean:B,regexp:H,integer:Y,float:U,array:K,object:X,enum:ee,pattern:ne,date:re,url:le,hex:le,email:le,required:oe};function ce(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var de=ce();function he(e){this.rules=null,this._messages=de,this.define(e)}he.prototype={messages:function(e){return e&&(this._messages=g(ce(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":o()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],a=e,s=n,c=i;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var d=this.messages();d===de&&(d=ce()),g(d,s.messages),s.messages=d}else s.messages=this.messages();var h=void 0,f=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){h=t.rules[n],f=a[n],h.forEach((function(i){var o=i;"function"===typeof o.transform&&(a===e&&(a=r()({},a)),f=a[n]=o.transform(f)),o="function"===typeof o?{validator:o}:r()({},o),o.validator=t.getValidationMethod(o),o.field=n,o.fullField=o.fullField||n,o.type=t.getType(o),o.validator&&(p[n]=p[n]||[],p[n].push({rule:o,value:f,source:a,field:n}))}))}));var y={};m(p,s,(function(e,t){var n=e.rule,i=("object"===n.type||"array"===n.type)&&("object"===o()(n.fields)||"object"===o()(n.defaultField));function a(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function c(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=o;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return y[n.field]=1,t(c);if(i){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=r()({},d,e.rule.fields),d)if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(a.bind(null,f))}var m=new he(d);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,c,e.source,s);d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){w(e)}))}else c&&c();function w(e){var t=void 0,n=void 0,i=[],r={};function a(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)a(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;c(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ue.required:ue[this.getType(e)]||!1}},he.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},he.messages=de;t["default"]=he},a25b:function(e,t,n){"use strict";n("4dd0")},a2bf:function(e,t,n){"use strict";var i=n("e8b5"),r=n("07fa"),a=n("3511"),o=n("0366"),s=function(e,t,n,l,u,c,d,h){var f,p,m=u,v=0,g=!!d&&o(d,h);while(v<l)v in n&&(f=g?g(n[v],v,t):n[v],c>0&&i(f)?(p=r(f),m=s(e,t,f,p,m,c-1)-1):(a(m+1),e[m]=f),m++),v++;return m};e.exports=s},a37e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.isView?t("div",[e._v(e._s(e.myLabel||"-"))]):t("el-cascader",e._b({attrs:{props:e.props,options:e.options,placeholder:e.placeholder,clearable:"",filterable:""},on:{change:e.handleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-cascader",e.$attrs,!1))},r=[],a=(n("a15b"),n("14d9"),n("b0c0"),n("e9c4"),n("b64b"),n("d3b7"),n("159b"),n("10bb")),o={development:"//tagcenter-backend-dev.imeik.com",testenv:"//tagcenter-backend-test.imeik.com",production:"//tagcenter-backend.imeik.com",pre:"//tagcenter-backend-pre.imeik.com"},s=Object(a["a"])(o),l=s;function u(e){return l({url:"/tagcenter-admin/dictionary/queryCityTree",method:"get",params:e})}var c={name:"RegionCascader",props:{value:{type:[String,Array],default:void 0},placeholder:{type:String,default:"请选择"},level:{type:String,default:void 0},checkStrictly:{type:Boolean,default:!0},emitPath:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},props:{type:Object,default:function(){return{label:"name",value:"code",children:"subRegin",expandTrigger:"hover",checkStrictly:this.checkStrictly,emitPath:this.emitPath,multiple:this.multiple}}}},data:function(){return{myValue:void 0,options:[]}},computed:{isView:function(){return this.$attrs.isView},myLabel:function(){return this.getLabel(this.options,this.myValue)}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},getOptions:function(){var e=this;u({}).then((function(t){200===t.code&&(e.options=t.data||[],e.formatData(e.options))}))},formatData:function(e){for(var t=0;t<e.length;t++){var n=e[t];this.level&&this.level===n.level?delete n.subRegin:(n.subRegin&&0===n.subRegin.length&&delete n.subRegin,n.subRegin&&n.subRegin.length>0&&this.formatData(n.subRegin))}},getLabel:function(e,t){var n=this;if(!t||!e||0===e.length)return"";if(Array.isArray(t)){if(0===t.length)return"";if(this.emitPath&&t.length>0){for(var i=[],r=e,a=0;a<t.length;a++){var o=t[a],s=this.findItemByCode(r,o);if(!s)break;i.push(s.name),s.subRegin&&a<t.length-1&&(r=s.subRegin)}return i.join(" / ")}var l=[];return t.forEach((function(t){var i=n.findLabelByCode(e,t);i&&l.push(i)})),l.join(", ")}return this.findLabelByCode(e,t)||""},findLabelByCode:function(e,t){if(!t||!e||0===e.length)return"";for(var n=0;n<e.length;n++){var i=e[n];if(i.code===t)return i.name;if(i.subRegin&&i.subRegin.length>0){var r=this.findLabelByCode(i.subRegin,t);if(r)return r}}return""},findItemByCode:function(e,t){if(!t||!e||0===e.length)return null;for(var n=0;n<e.length;n++){var i=e[n];if(i.code===t)return i;if(i.subRegin&&i.subRegin.length>0){var r=this.findItemByCode(i.subRegin,t);if(r)return r}}return null},handleChange:function(){this.$emit("input",this.myValue),this.$emit("change",this.myValue)}}},d=c,h=n("2877"),f=Object(h["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},a3de:function(e,t,n){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=r},a3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-view"},[t("div",{class:{"text-left":!e.isView},staticStyle:{"margin-bottom":"12px","margin-top":"10px"}},[t("FieldCardHeader",{attrs:{item:{label:"产品信息"},attrs:{isView:e.isView}}}),e.showAddButton?t("el-button",{staticClass:"add-button",attrs:{type:"primary"},on:{click:e.showProductListSelect}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 添加 ")]):e._e()],1),t("ProductList",{attrs:{"table-data":e.tableData,"is-view":e.isView,"table-item-arr":e.tableItemArr,attrs:e.attrs,"approval-input-batch":e.attrs.approvalInputBatch,"form-prop-control":e.formPropControl},on:{removeItem:e.onRemoveItem}}),e.isView?e._e():t("SelectProductDialog",{ref:"selectProductDialog",attrs:{"rcoi-info":e.rcoiInfo},on:{addProduct:e.addProduct}})],1)},r=[],a=(n("99af"),n("caad"),n("d81d"),n("14d9"),n("a434"),n("e9c4"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("ac1f"),n("841c"),function(){var e=this,t=e._self._c;return t("ImDialog",{attrs:{"append-to-body":"","destroy-on-close":"",visible:e.dialogVisible,title:"选择产品",width:"960px"},on:{"update:visible":function(t){e.dialogVisible=t},cancel:e.onCancel}},[t("ImForm",{ref:"ImForm",attrs:{form:e.formConfig},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}}},[t("template",{slot:"brandName"},[t("span",{staticClass:"mr-3"},[e._v("商标名称")]),t("el-input",{staticStyle:{width:"calc(100% - 120px)"},attrs:{placeholder:"请输入"},model:{value:e.formConfig.props.materialTrademark,callback:function(t){e.$set(e.formConfig.props,"materialTrademark",t)},expression:"formConfig.props.materialTrademark"}})],1),t("template",{slot:"otherName"},[t("span",{staticClass:"mr-3"},[e._v("编码/简称/名称")]),t("el-input",{staticStyle:{width:"calc(100% - 110px)"},attrs:{placeholder:"请输入"},model:{value:e.formConfig.props.materialAbbreviation,callback:function(t){e.$set(e.formConfig.props,"materialAbbreviation",t)},expression:"formConfig.props.materialAbbreviation"}})],1)],2),t("ImTable",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"productTable",attrs:{table:e.tableConfig},scopedSlots:e._u([{key:"productName",fn:function(n){var i=n.row;return[t("p",{staticClass:"lineHeight"},[e._v(" "+e._s(i.materialAbbreviation)+" ")]),t("p",{staticClass:"lineHeight"},[e._v("名称:"+e._s(i.materialName))]),t("p",{staticClass:"lineHeight"},[e._v("商标:"+e._s(i.materialTrademark))])]}},{key:"materialSpec",fn:function(n){var i=n.row;return[t("div",[t("ImOneLineDot",{attrs:{text:"规格型号:".concat(i.materialModel)}},[e._v("规格型号:"+e._s(i.materialModel||"-"))]),t("ImOneLineDot",{attrs:{text:"规格代码:".concat(i.materialSpecCode)}},[e._v("规格代码:"+e._s(i.materialSpecCode||"-"))]),t("ImOneLineDot",{attrs:{text:"包装规格:".concat(i.materialModel)}},[e._v("包装规格:"+e._s(i.materialSpecification||"-"))]),t("ImOneLineDot",{attrs:{text:"计量单位:".concat(i.materialUnit)}},[e._v("计量单位:"+e._s(i.materialUnit||"-"))])],1)]}}])}),t("ImPagination",{ref:"ImPagination",attrs:{"page-size":e.pageSize,"current-page":e.currentPage,total:e.total},on:{"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},change:e.getList}}),t("template",{slot:"footer"},[t("div",{staticClass:"footer-view pt-6 mb-2 pl-2 pr-2"},[t("p",{staticClass:"selected-number"},[e._v(" 已选 "),t("span",[e._v(e._s(e.selectItems.length))]),e._v(" 项内容 ")]),t("div",[t("el-Button",{on:{click:e.onCancel}},[e._v("取消")]),t("el-Button",{attrs:{type:"primary"},on:{click:e.confirmInfo}},[e._v("确定")])],1)])])],2)}),o=[],s=n("5530"),l=n("8ea2"),u={name:"SelectProductDialog",inject:{formProps:{default:function(){}}},props:{rcoiInfo:{type:Object,default:function(){return{}}}},data:function(){return{formConfig:{column:3,props:{materialTrademark:void 0,materialAbbreviation:void 0},formItems:[{type:"ImSlot",prop:"materialTrademark",slots:{slot:"brandName"}},{type:"ImSlot",prop:"materialAbbreviation",slots:{slot:"otherName"}},{type:"ImButton",notInCol:!0,attrs:{style:"float: right; margin-top: 8px;",options:[{label:"重 置",attrs:{type:"default"},listeners:{click:this.resetForm}},{label:"查 询",attrs:{type:"primary"},listeners:{click:this.search}}]}}]},tableConfig:{attrs:{height:360,noStick:!0,rowKey:"materialCode"},data:[],tableItems:[{type:"selection",prop:"selection",attrs:{width:50,"reserve-selection":!0}},{prop:"materialCode",label:"编码",attrs:{"show-overflow-tooltip":!0,width:"180"}},{label:"名称",prop:"productName",type:"slot",slot:"productName",attrs:{"min-width":"380"}},{prop:"materialSpec",label:"规格",type:"slot",slot:"materialSpec",attrs:{width:"246","show-overflow-tooltip":!1}}],listeners:{"selection-change":this.selectionChange,"row-click":this.rowClick}},dialogVisible:!1,selectItems:[],loading:!1,pageSize:10,currentPage:1,total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e,t,n,i=this;this.loading=!0;var r=Object(s["a"])({page:this.currentPage,limit:this.pageSize,accountUid:null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.accountUid,customerUniqueCode:null===(t=this.formProps.applicationApplyCustomer)||void 0===t?void 0:t.customerUniqueCode,applyType:null===(n=this.formProps.applyTypeInfo)||void 0===n?void 0:n.applyType,belongCompany:this.formProps.belongCompany,formConfigSubCategory:this.formProps.formConfigSubCategory,rcoiCode:this.rcoiInfo.rcoiCode,rcoiNumber:this.rcoiInfo.rcoiNumber},this.formConfig.props);Object(l["h"])(r).then((function(e){200===e.code?(i.tableConfig.data=e.data.list,i.total=e.data.totalCount,i.loading=!1):i.loading=!1})).catch((function(){i.loading=!1}))},show:function(){this.dialogVisible=!0,this.getList()},closeDialog:function(){this.formConfig.props={materialTrademark:void 0,materialAbbreviation:void 0},this.dialogVisible=!1},onCancel:function(){this.closeDialog()},confirmInfo:function(){this.addItems(),this.closeDialog()},addItems:function(){this.$emit("addProduct",JSON.parse(JSON.stringify(this.selectItems))),this.selectItems.length=0},rowClick:function(e){var t=this.$refs.productTable.getTableInstance();t.toggleRowSelection(e)},selectionChange:function(e){this.selectItems=e},resetForm:function(){this.formConfig.props={materialTrademark:void 0,materialAbbreviation:void 0},this.getList()},search:function(){this.currentPage=1,this.getList()}}},c=u,d=(n("3feb"),n("2877")),h=Object(d["a"])(c,a,o,!1,null,"0480303c",null),f=h.exports,p=function(){var e=this,t=e._self._c;return t("div",[t("ImTable",{attrs:{table:e.tableConfig},scopedSlots:e._u([{key:"materialBasicsInfo",fn:function(n){var i=n.row;return["1"===i.overSchemeFlag?t("el-tag",{attrs:{type:"danger"}},[e._v("超母方案")]):e._e(),t("p",{staticClass:"materialName"},[e._v(e._s(i.materialAbbreviation))]),t("p",{staticClass:"materialSubName"},[e._v(e._s(i.materialName))]),t("p",{staticClass:"materialSubName"},[e._v("编码:"+e._s(i.materialCode))]),t("p",{staticClass:"materialSubName"},[e._v("商标:"+e._s(i.materialTrademark))])]}},{key:"materialCountInfo",fn:function(n){var i=n.row;return[t("div",{staticClass:"flex countView"},[e.isView?t("p",{staticClass:"materialName",staticStyle:{"margin-top":"0"}},[e._v(e._s(i.materialQuantity||"-"))]):t("div",[t("el-input-number",{class:{"is-error":!i.materialQuantity&&!1===i.valid},staticStyle:{width:"100%","margin-top":"-3px"},attrs:{"controls-position":"right",min:0,max:1e6,placeholder:"请输入数量"},on:{input:function(t){return e.handleInput(i)},blur:function(t){return e.handleBlur(i)}},model:{value:i.materialQuantity,callback:function(t){e.$set(i,"materialQuantity",t)},expression:"row.materialQuantity"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.materialQuantity&&!1===i.valid,expression:"!row.materialQuantity && row.valid === false"}],staticClass:"error-message"},[e._v("请检查物料数量")])],1)]),t("p",{staticClass:"materialSubName",staticStyle:{"margin-top":"8px"}},[e._v("规格型号:"+e._s(i.materialModel||"-"))]),t("p",{staticClass:"materialSubName"},[e._v("规格代码:"+e._s(i.materialSpecCode||"-"))]),t("p",{staticClass:"materialSubName"},[e._v("包装规格:"+e._s(i.materialSpecification||"-"))]),t("p",{staticClass:"materialSubName"},[e._v("计量单位:"+e._s(i.materialUnit||"-"))])]}},{key:"materialBudgetInfo",fn:function(n){var i=n.row;return[t("p",{staticClass:"budgetTitle"},[e._v("产品预算可用数量:")]),t("div",{staticClass:"flex countView"},[t("p",{staticClass:"budgetNum"},[e._v(e._s(i.materialBudgetProductRemainingQuantity))]),t("div",{staticClass:"budgetPercent"},[t("img",{staticClass:"budgetImg",attrs:{src:"https://udstatic.imeik.com/pcUploads/1739516139292/xiaoliang.png"}}),e._v(" "+e._s(i.materialBudgetRemainingPercentage)+" ")])]),t("p",{staticClass:"budgetTitle mt-2"},[e._v("产品预算大类可用数量:")]),t("div",{staticClass:"flex countView"},[t("p",{staticClass:"budgetNum"},[e._v(e._s(i.materialBudgetLargeCategoryRemainingQuantity))]),t("div",{staticClass:"budgetPercent"},[t("img",{staticClass:"budgetImg",attrs:{src:"https://udstatic.imeik.com/pcUploads/1739516139292/xiaoliang.png"}}),e._v(" "+e._s(i.materialBudgetLargeCategoryRemainingPercentage)+" ")])])]}},{key:"materialSchemeInfo",fn:function(n){var i=n.row;return[e.isView?t("div",{staticClass:"materialName"},[e._v(e._s(i.materialAssociatedMotherSchemeName||"-"))]):t("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(t){return e.handleChangeScheme(t,i)},clear:function(t){return e.clearScheme(i)}},model:{value:i.materialAssociatedMotherSchemeCode,callback:function(t){e.$set(i,"materialAssociatedMotherSchemeCode",t)},expression:"row.materialAssociatedMotherSchemeCode"}},e._l(i.motherSchemeList||[],(function(e){return t("el-option",{key:e.materialAssociatedMotherSchemeCode,staticStyle:{width:"100%"},attrs:{label:e.materialAssociatedMotherSchemeName,value:e.materialAssociatedMotherSchemeCode}})})),1),i.materialAssociatedMotherSchemeCode?t("div",[t("p",{staticClass:"schemeCount"},[e._v(" 母方案剩余数量:"),t("span",{staticStyle:{color:"#3285f6"}},[e._v(e._s(i.materialSchemeRemainingQuantity))])]),t("p",{staticClass:"schemeCount"},[e._v(" 母方案总数量:"),t("span",{staticStyle:{color:"#3285f6"}},[e._v(e._s(i.materialSchemeTotalQuantity))])])]):e._e()]}},{key:"overSchemeExplain",fn:function(n){var i=n.row;return[!e.isView&&e.checkQuantity(i)?t("div",[t("el-input",{class:{"is-error":!i.overSchemeExplain},attrs:{type:"textarea",rows:5,"show-word-limit":"",maxlength:"200",placeholder:"请输入"},model:{value:i.overSchemeExplain,callback:function(t){e.$set(i,"overSchemeExplain",t)},expression:"row.overSchemeExplain"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.overSchemeExplain&&!1===i.valid,expression:"!row.overSchemeExplain && row.valid === false"}],staticClass:"error-message"},[e._v("请输入超母方案说明")])],1):t("div",{staticClass:"materialSubName"},[e._v(e._s(i.overSchemeExplain||"-"))])]}},{key:"materialBatchInfo",fn:function(n){var i=n.row;return[e.isView?t("div",{staticClass:"materialName"},[e._v(e._s("1"===i.materialIsSpecifiedBatch?"是":"否"))]):t("el-radio-group",{model:{value:i.materialIsSpecifiedBatch,callback:function(t){e.$set(i,"materialIsSpecifiedBatch",t)},expression:"row.materialIsSpecifiedBatch"}},[t("el-radio",{attrs:{label:"1"}},[e._v("是")]),t("el-radio",{attrs:{label:"0"}},[e._v("否")])],1),"1"!==i.materialIsSpecifiedBatch||e.approvalInputBatch?e._e():t("div",[e.isView?e._e():t("el-input",{class:{"is-error":!i.materialBatch&&!1===i.valid},staticStyle:{"margin-top":"16px"},attrs:{placeholder:"请输入批次号"},model:{value:i.materialBatch,callback:function(t){e.$set(i,"materialBatch",t)},expression:"row.materialBatch"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.materialBatch&&!1===i.valid,expression:"!row.materialBatch && row.valid === false"}],staticClass:"error-message"},[e._v("请输入批次号")])],1),"1"===i.materialIsSpecifiedBatch&&e.approvalInputBatch&&e.hasApprovalInputBatch?t("div",[t("el-input",{class:{"is-error":!i.materialBatch&&!1===i.valid},staticStyle:{"margin-top":"16px"},attrs:{placeholder:"请输入批次号"},model:{value:i.materialBatch,callback:function(t){e.$set(i,"materialBatch",t)},expression:"row.materialBatch"}}),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.materialBatch&&!1===i.valid,expression:"!row.materialBatch && row.valid === false"}],staticClass:"error-message"},[e._v("请输入批次号")])],1):e._e(),i.materialBatch&&e.isView&&!e.hasApprovalInputBatch?t("div",{staticClass:"materialName"},[e._v("批次号:"+e._s(i.materialBatch||"-"))]):e._e()]}},{key:"warehouse",fn:function(n){var i=n.row;return[e.hasApprovalInputWarehouse&&!i.fixedWarehouseFlag?t("div",[t("el-select",{class:{"is-error":!i.warehouseNumber||!1===i.valid},attrs:{placeholder:"请选择"},on:{change:function(t){return e.handleChangeWarehouse(t,i)}},model:{value:i.warehouseNumber,callback:function(t){e.$set(i,"warehouseNumber",t)},expression:"row.warehouseNumber"}},e._l(e.warehouseList||[],(function(e){return t("el-option",{key:e.warehouseNumber,staticStyle:{width:"100%"},attrs:{label:e.warehouseName,value:e.warehouseNumber}})})),1),t("p",{directives:[{name:"show",rawName:"v-show",value:!i.warehouseNumber&&!1===i.valid,expression:"!row.warehouseNumber && row.valid === false"}],staticClass:"error-message"},[e._v("请选择库房")])],1):t("div",{staticClass:"materialSubName autoheight"},[e._v(e._s(i.warehouseName||"-"))])]}},{key:"remarks",fn:function(n){var i=n.row;return[e.isView?t("div",{staticClass:"materialSubName"},[e._v(e._s(i.materialRemark||"-"))]):t("el-input",{attrs:{type:"textarea",rows:5,"show-word-limit":"",maxlength:"100",placeholder:"请输入"},model:{value:i.materialRemark,callback:function(t){e.$set(i,"materialRemark",t)},expression:"row.materialRemark"}})]}},{key:"addressInfo",fn:function(n){var i=n.row,r=n.$index;return[t("p",{staticClass:"address-info"},[e._v("收货人:"+e._s(i.materialReceivingContact)+" "+e._s(e.formatPhone(i.materialReceivingContactNumber)))]),e.hiddenAddress?t("p",{staticClass:"address-info"},[e._v("收货地址:"+e._s("-"))]):e._e(),e.hiddenAddress?e._e():t("p",{staticClass:"address-info"},[e._v("收货地址:"+e._s("".concat(i.materialReceivingProvince||"").concat(i.materialReceivingCity||"").concat(i.materialReceivingArea||"").concat(i.materialReceivingAddress||"")))]),e.isView?e._e():t("p",{staticClass:"address",on:{click:function(t){return e.changeAddressInfo(i,r)}}},[e._v("修改收货地址")])]}},{key:"operate",fn:function(n){var i=n.row,r=n.$index;return[t("el-button",{staticClass:"delete-button",attrs:{type:"text"},on:{click:function(t){return e.deleteProduct(i,r)}}},[e._v("移除")])]}}])},[t("template",{slot:"overSchemeExplainHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("超母方案说明")])]),t("template",{slot:"materialCountInfoHead"},[t("p",[e.isView?e._e():t("span",{staticClass:"start"},[e._v("*")]),e._v("数量")])])],2),t("div",{staticClass:"total"},[e._v(" 合计:"),t("span",[e._v(e._s(e.totalCount))])]),e.show?t("AddressSelect",{attrs:{show:e.show,"data-source":e.currentItem.row},on:{"update:show":function(t){e.show=t},confirm:e.handleConfirmAddress}}):e._e()],1)},m=[],v=n("53ca"),g=(n("e260"),n("b0c0"),n("4ec9"),n("a9e3"),n("3ca3"),n("5319"),n("ddb0"),function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"修改收货地址",visible:e.show,width:"960px","before-close":e.dialogBeforeClose}},[t("div",{staticClass:"product-info"},[t("p",[t("span",[e._v("产品:")]),e._v(" "+e._s(e.dataSource.materialAbbreviation)+" ")]),t("p",[t("span",[e._v("默认收货信息:")]),e._v(" "+e._s(e.dataSource.materialReceivingContact)+" "+e._s(e.dataSource.materialReceivingContactNumber)+" ")]),t("p",[e._v(e._s("".concat(e.dataSource.materialReceivingProvince||"").concat(e.dataSource.materialReceivingCity||"").concat(e.dataSource.materialReceivingArea||"").concat(e.dataSource.materialReceivingAddress||"")))])]),t("div",{staticClass:"flex",staticStyle:{"margin-top":"23px"}},[t("ImForm",{ref:"ImForm",attrs:{form:e.formConfig}}),e.showPasteInfo?t("div",{staticClass:"paste-info"},[t("p",{staticClass:"paste-info-title"},[e._v("粘贴信息自动识别")]),t("el-input",{attrs:{rows:10,type:"textarea",placeholder:"请粘贴收货信息"},model:{value:e.pasteInfo,callback:function(t){e.pasteInfo=t},expression:"pasteInfo"}}),t("el-button",{staticClass:"button",attrs:{type:"primary"},on:{click:e.handleAutoAddress}},[e._v("自动识别")])],1):e._e()],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.dialogBeforeClose}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)])}),b=[],y=n("23ef"),w={name:"AddressSelect",inject:{formProps:{default:function(){}}},props:{show:{type:Boolean,default:!1},dataSource:{type:Object,default:function(){return{}}}},data:function(){return{formConfig:{column:3,gutter:24,props:{deliveryMode:"2",materialReceivingAddressSource:void 0,materialReceivingAddressType:void 0,materialReceivingSource:void 0,materialReceivingContact:void 0,materialReceivingContactNumber:void 0,materialReceivingCity:void 0,materialReceivingAddress:void 0,materialReceivingInfo:void 0,materialReceivingInfoView:void 0,isSimilarly:"0"},formItems:[]},pasteInfo:"",showPasteInfo:!1,tagCustomAddressInfo:void 0,receivingOptions:[],addressTypeList:[]}},computed:{hasCustom:function(){var e;return null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.accountUid},isEquipment:function(){return"三类器械"===this.dataSource.productTypeName||"二类器械"===this.dataSource.productTypeName},equipmentType:function(){return"三类器械"===this.dataSource.productTypeName?"0":"二类器械"===this.dataSource.productTypeName?"2":"1"},isGufen:function(){return"201"===this.formProps.belongCompany},canEditReceivingInfo:function(){var e="2"===this.formConfig.props.materialReceivingSource,t=!this.hasCustom&&this.isEquipment,n="1"===this.formConfig.props.deliveryMode;return e||t||!this.disabledEditCityOrAddressInfo||n},disabledEditCityOrAddressInfo:function(){return"3"!==this.formConfig.props.materialReceivingAddressSource},hiddenAddressTypeAndReceiving:function(){var e="1"!==this.formConfig.props.materialReceivingAddressSource,t="1"===this.formConfig.props.deliveryMode;return e||t},hiddenSelectCity:function(){var e=!1,t=this.formConfig.props.materialReceivingAddressSource;return e="3"!==t,!1===this.dataSource.hasAddress&&(e=!0),e},canSelfLift:function(){return!(!this.hasCustom||"支持"!==this.formProps.applicationApplyCustomer.selfPickup)||!this.hasCustom&&!this.isEquipment&&!0===this.dataSource.hasAddress},formItems:function(){return[{type:"ImSelect",prop:"deliveryMode",label:"提货方式",attrs:{disabled:!1===this.dataSource.hasAddress,options:[{label:"自提",value:"1",disabled:!this.canSelfLift},{label:"发货",value:"2"}],class:"w-full"},listeners:{change:this.onAddressDeliveryModeChange}},{type:"ImSelect",prop:"deliveryModeAddressSource",label:"提货地址",hidden:!("1"===this.formConfig.props.deliveryMode&&this.isEquipment),attrs:{options:[{label:"平谷库房",value:"1"},{label:"世贸大厦",value:"2"}],class:"w-full"},listeners:{change:this.ondeliveryModeAddressSourceChange}},{type:"ImSelect",prop:"materialReceivingAddressSource",label:"地址来源",hidden:"1"===this.formConfig.props.deliveryMode,attrs:{options:[{label:"客户档案",value:"1",disabled:!this.hasCustom},{label:"本人EHR",value:"2",disabled:this.isEquipment},{label:"手动输入",value:"3",disabled:this.isEquipment}],class:"w-full"},listeners:{change:this.onAddressSourceChange}},{type:"ImSelect",prop:"materialReceivingAddressType",label:"地址类型",hidden:this.hiddenAddressTypeAndReceiving,attrs:{options:[{label:"三类械收货地址",value:"0",disabled:"2"===this.equipmentType||!this.addressTypeList.includes("0")},{label:"二类械收货地址",value:"2",disabled:"0"!==this.equipmentType||!this.addressTypeList.includes("2")},{label:"其他收货地址",value:"1",disabled:"1"!==this.equipmentType||!this.addressTypeList.includes("1")}],class:"w-full"},listeners:{change:this.onAddressTypeChange}},{type:"ImSelect",prop:"materialReceivingSource",label:"收货人",hidden:this.hiddenAddressTypeAndReceiving,attrs:{options:this.receivingOptions,class:"w-full"},listeners:{change:this.onMaterialReceivingSourceChange}},{type:"ImSelect",prop:"isSimilarly",label:"同一地址",hidden:this.hasCustom||this.isEquipment,attrs:{options:[{label:"是",value:"1"},{label:"否",value:"0"}],class:"w-full"}},{type:"ImInput",prop:"materialReceivingContact",label:"联系人",rules:[{required:!0,message:"请输入联系人"}],attrs:{disabled:!this.canEditReceivingInfo,class:"2"===this.formConfig.props.materialReceivingSource&&"is-error"}},{type:"ImInput",prop:"materialReceivingContactNumber",label:"联系电话",rules:[{required:!0,message:"请输入联系电话"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],attrs:{disabled:!this.canEditReceivingInfo,class:"2"===this.formConfig.props.materialReceivingSource&&"is-error"}},{type:"FieldCitySelect",prop:"materialReceivingInfo",label:"省市区",hidden:this.hiddenSelectCity,rules:[{required:!this.hiddenSelectCity,message:"请选择省市区"}],attrs:{disabled:this.disabledEditCityOrAddressInfo},listeners:{change:this.onMaterialReceivingInfoChange}},{type:"ImInput",prop:"materialReceivingInfoView",label:"省市区",hidden:!this.hiddenSelectCity,attrs:{disabled:!0}},{type:"ImInput",prop:"materialReceivingAddress",label:"收货地址",rules:[{required:!0,message:"请输入收货地址"}],attrs:{type:"textarea",rows:4,"show-word-limit":!0,disabled:this.disabledEditCityOrAddressInfo}}]}},watch:{formItems:{handler:function(e){this.formConfig.formItems=e},immediate:!0,deep:!0}},mounted:function(){this.initData()},methods:{initData:function(){for(var e in this.formConfig.props)this.formConfig.props[e]=this.dataSource[e];"3"===this.formConfig.props.materialReceivingAddressType&&(this.formConfig.props.materialReceivingAddressType="0");var t=this.dataSource,n=t.materialReceivingProvince,i=t.materialReceivingCity,r=t.materialReceivingArea;this.formConfig.props.materialReceivingInfoView="".concat(n||"").concat(i||"").concat(r||""),this.formConfig.props.deliveryMode||(this.formConfig.props.deliveryMode="2",this.onAddressDeliveryModeChange("2")),this.hasCustom&&(this.formConfig.props.materialReceivingAddressSource="1",this.onAddressSourceChange("1")),!this.hasCustom&&this.isEquipment&&this.defaultImeik(),!1===this.dataSource.hasAddress&&(this.formConfig.props.deliveryMode="1")},onAddressDeliveryModeChange:function(e){"1"===e?this.isEquipment?this.defaultImeik():this.defaultPingGu():this.onAddressSourceChange(this.formConfig.props.materialReceivingAddressSource)},ondeliveryModeAddressSourceChange:function(e){"1"===e?this.defaultPingGu():this.defaultImeik()},onAddressSourceChange:function(e){var t=this;"1"===e?this.handleCustomerAddress():(this.formConfig.props.materialReceivingAddressType=void 0,this.formConfig.props.materialReceivingSource=void 0),"2"===e&&Object(l["d"])().then((function(e){var n,i;200===e.code&&(t.formConfig.props.materialReceivingContact=null===(n=t.$bizui)||void 0===n||null===(n=n.userInfo)||void 0===n?void 0:n.name,t.formConfig.props.materialReceivingContactNumber=null===(i=t.$bizui)||void 0===i||null===(i=i.userInfo)||void 0===i?void 0:i.account,t.formConfig.props.materialReceivingProvince=e.data.materialReceivingProvince,t.formConfig.props.materialReceivingCity=e.data.materialReceivingCity,t.formConfig.props.materialReceivingArea=e.data.materialReceivingArea,t.formConfig.props.materialReceivingAddress=e.data.materialReceivingAddress,t.formConfig.props.materialReceivingInfoView="".concat(e.data.materialReceivingProvince,"/").concat(e.data.materialReceivingCity,"/").concat(e.data.materialReceivingArea))})),"3"===e&&(this.formConfig.props.materialReceivingContact="",this.formConfig.props.materialReceivingContactNumber="",this.formConfig.props.materialReceivingProvince="",this.formConfig.props.materialReceivingCity="",this.formConfig.props.materialReceivingArea="",this.formConfig.props.materialReceivingAddress="",this.formConfig.props.materialReceivingInfo="",this.formConfig.props.materialReceivingAddressType=void 0),this.showPasteInfo="3"===e},handleCustomerAddress:function(){var e,t,n=this,i=(null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.userList)||[],r=(null===(t=this.formProps.applicationApplyCustomer)||void 0===t?void 0:t.addressList)||[];this.addressTypeList=r.map((function(e){return e.addrType})),this.isGufen&&this.equipmentType?this.receivingOptions=[{label:"默认收货人",value:"1"},{label:"其他收货人",value:"2"}]:this.receivingOptions=i.map((function(e){return{value:e.phone,label:e.userName}})),i&&i.length&&(this.isGufen?this.formConfig.props.materialReceivingSource="1":this.formConfig.props.materialReceivingSource=i[0].phone,this.formConfig.props.materialReceivingContact=i[0].userName,this.formConfig.props.materialReceivingContactNumber=i[0].phone),r&&r.length&&!this.isEquipment&&r.forEach((function(e){e.addrType!==n.equipmentType&&"1"!==n.equipmentType||(n.formConfig.props.materialReceivingAddressType="3"===e.addrType?"0":e.addrType,n.formConfig.props.materialReceivingAddress=e.address,n.formConfig.props.materialReceivingProvince=e.prov,n.formConfig.props.materialReceivingCity=e.city,n.formConfig.props.materialReceivingArea=e.country,n.formConfig.props.materialReceivingInfoView="".concat(e.prov,"/").concat(e.city,"/").concat(e.country))}))},onMaterialReceivingSourceChange:function(e){var t,n=this,i=(null===(t=this.formProps.applicationApplyCustomer)||void 0===t?void 0:t.userList)||[];i.forEach((function(t){t.phone===e&&(n.formConfig.props.materialReceivingContact=t.userName,n.formConfig.props.materialReceivingContactNumber=t.phone)}))},onAddressTypeChange:function(){var e,t=this,n=(null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.addressList)||[];n.forEach((function(e){e.addrType===t.formConfig.props.materialReceivingAddressType&&(t.formConfig.props.materialReceivingAddress=e.address,t.formConfig.props.materialReceivingProvince=e.prov,t.formConfig.props.materialReceivingCity=e.city,t.formConfig.props.materialReceivingArea=e.country,t.formConfig.props.materialReceivingInfoView="".concat(e.prov,"/").concat(e.city,"/").concat(e.country),t.formConfig.props.materialReceivingAddressType="3"===e.addrType?"0":e.addrType)}))},onMaterialReceivingInfoChange:function(e,t){if(t&&t.fullname){var n=t.fullname.split(".");3===n.length&&(this.formConfig.props.materialReceivingProvince=n[0],this.formConfig.props.materialReceivingCity=n[1],this.formConfig.props.materialReceivingArea=n[2],this.formConfig.props.materialReceivingAddressType=void 0)}},handleAutoAddress:function(){var e=this;Object(y["a"])({content:this.pasteInfo}).then((function(t){200===t.code&&(e.formConfig.props.materialReceivingProvince=t.data.province,e.formConfig.props.materialReceivingCity=t.data.city,e.formConfig.props.materialReceivingArea=t.data.area,e.formConfig.props.materialReceivingAddress=t.data.address,e.formConfig.props.materialReceivingAddressType=void 0,e.formConfig.props.materialReceivingInfo=t.data.areaCode,e.formConfig.props.materialReceivingContact=t.data.sender,e.formConfig.props.materialReceivingContactNumber=t.data.phone)}))},defaultImeik:function(){var e,t;this.formConfig.props.materialReceivingInfoView="北京市/北京市/朝阳区",this.formConfig.props.materialReceivingAddress="建国路甲92号世茂大厦C座21层爱美客",this.formConfig.props.materialReceivingProvince="北京市",this.formConfig.props.materialReceivingCity="北京市",this.formConfig.props.materialReceivingArea="朝阳区",this.formConfig.props.materialReceivingContact=null===(e=this.$bizui)||void 0===e||null===(e=e.userInfo)||void 0===e?void 0:e.name,this.formConfig.props.materialReceivingContactNumber=null===(t=this.$bizui)||void 0===t||null===(t=t.userInfo)||void 0===t?void 0:t.account},defaultPingGu:function(){var e,t;this.formConfig.props.materialReceivingInfoView="北京市/北京市/平谷区",this.formConfig.props.materialReceivingAddress="库房",this.formConfig.props.materialReceivingProvince="北京市",this.formConfig.props.materialReceivingCity="北京市",this.formConfig.props.materialReceivingArea="平谷区",this.formConfig.props.materialReceivingContact=null===(e=this.$bizui)||void 0===e||null===(e=e.userInfo)||void 0===e?void 0:e.name,this.formConfig.props.materialReceivingContactNumber=null===(t=this.$bizui)||void 0===t||null===(t=t.userInfo)||void 0===t?void 0:t.account},dialogBeforeClose:function(){this.$emit("update:show",!1)},onConfirm:function(){var e=this;this.$refs.ImForm.validate((function(t){if(t){if(e.isGufen&&"2"===e.formConfig.props.materialReceivingSource)return void Object(l["m"])({phoneNumber:e.formConfig.props.materialReceivingContactNumber}).then((function(t){200===t.code?t.data?e.$message.error("该手机号是IMEIK员工,请重新选择收货人"):(e.$emit("confirm",Object(s["a"])(Object(s["a"])({},e.dataSource),e.formConfig.props)),e.$emit("update:show",!1)):e.$message.error(t.message)}));e.$emit("confirm",Object(s["a"])(Object(s["a"])({},e.dataSource),e.formConfig.props)),e.$emit("update:show",!1)}}))},getDataIndexByProp:function(e){var t;return this.formConfig.formItems.forEach((function(n,i){n.prop===e&&(t=i)})),t}}},_=w,x=(n("1bf2"),Object(d["a"])(_,g,b,!1,null,"64778177",null)),C=x.exports,S={name:"ProductList",components:{AddressSelect:C},inject:{formProps:{default:function(){}}},props:{tableData:{type:Array,default:function(){return[]}},approvalInputBatch:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tableItemArr:{type:Array,default:function(){return[]}},tableConfigAttrs:{type:Object,default:function(){return{}}},tableConfigListeners:{type:Object,default:function(){return{}}},isView:{type:Boolean,default:!1},attrs:{type:Object,default:function(){return{}}},formPropControl:{type:Array,default:function(){return[]}}},data:function(){return{tableConfig:{attrs:{},listeners:{},data:[],tableItems:[]},allTableItemMap:{materialBasicsInfo:{prop:"materialBasicsInfo",label:"名称",type:"slot",slot:"materialBasicsInfo",attrs:{"min-width":"180"}},materialCountInfo:{prop:"materialCountInfo",label:"规格",type:"slot",slot:"materialCountInfo",headSlot:"materialCountInfoHead",attrs:{"min-width":"180"}},materialBudgetInfo:{prop:"materialBudgetInfo",label:"产品预算信息",type:"slot",slot:"materialBudgetInfo",attrs:{"min-width":"180"}},materialSchemeInfo:{prop:"materialSchemeInfo",label:"关联母方案",type:"slot",slot:"materialSchemeInfo",attrs:{"min-width":"150"}},overSchemeExplain:{prop:"overSchemeExplain",label:"超母方案说明",type:"slot",slot:"overSchemeExplain",headSlot:"overSchemeExplainHead",attrs:{"min-width":"160"}},warehouse:{prop:"warehouse",label:"库房",type:"slot",slot:"warehouse",attrs:{"min-width":"150"}},materialBatchInfo:{prop:"materialBatchInfo",label:"是否指定批次",type:"slot",slot:"materialBatchInfo",attrs:{"min-width":"150"}},remarks:{prop:"remarks",label:"备注",type:"slot",slot:"remarks",attrs:{"min-width":"160"}},purpose:{prop:"materialDepartmentName",label:"专用部门",attrs:{"min-width":"150"}},addressInfo:{prop:"department",label:"收货信息",type:"slot",slot:"addressInfo",attrs:{"min-width":"205"}},operate:{prop:"operate",label:"操作",type:"slot",attrs:{fixed:"right",width:"80"},slot:"operate"}},totalCount:0,show:!1,currentItem:{},warehouseList:[],canInputMaterialBatch:void 0}},computed:{fromApproval:function(){return"approval"===this.$route.query.from},hasApprovalInputBatch:function(){var e;return this.formPropControl&&(null===(e=this.formPropControl)||void 0===e?void 0:e.includes("materialBatch"))},hasApprovalInputWarehouse:function(){var e;return this.formPropControl&&(null===(e=this.formPropControl)||void 0===e?void 0:e.includes("warehouse"))},hiddenAddress:function(){return["B02","B03"].includes(this.formProps.formBaseNo)}},watch:{tableItemArr:{immediate:!0,handler:function(){this.setTableItems()}},tableData:{immediate:!0,handler:function(){this.tableConfig.data=this.tableData||[],this.isView||this.getMaterialOtherData(),this.setTotalNumber()}},tableConfigAttrs:{immediate:!0,handler:function(){this.tableConfig.attrs=Object(s["a"])({},this.tableConfigAttrs)}},tableConfigListeners:{immediate:!0,handler:function(){this.$set(this.tableConfig,"listeners",this.tableConfigListeners)}}},mounted:function(){this.isView&&!this.fromApproval||this.getMaterialWarehouseData()},methods:{getMaterialWarehouseData:function(){var e=this;Object(l["n"])({belongCompany:this.formProps.belongCompany}).then((function(t){200===t.code&&(e.warehouseList=t.data)}))},getMaterialOtherData:function(){var e,t=[];null===(e=this.tableConfig.data)||void 0===e||e.forEach((function(e){t.push(e.materialCode)})),t.length&&(this.handleGetMaterialReceivingAddressList(t),this.handleGetMotherSchemeList(t)),this.setAddressInfo()},setAddressInfo:function(){var e,t,n=this,i=null===(e=this.formProps.applicationApplyCustomer)||void 0===e?void 0:e.accountUid,r="2"===this.formProps.hasAddress,a=(null===(t=this.$bizui)||void 0===t?void 0:t.userInfo)||{};this.tableConfig.data.forEach((function(e,t){var o=["二类器械","三类器械"].includes(e.productTypeName),s=o&&!i;s&&!e.haveAddress&&(e.haveAddress=!0,e.materialReceivingAddress="建国路甲92号世茂大厦C座21层爱美客",e.materialReceivingProvince="北京市",e.materialReceivingCity="北京市",e.materialReceivingArea="朝阳区",e.materialReceivingContact=a.name,e.materialReceivingContactNumber=a.account,e.deliveryMode="1",e.hasAddress="2"!==n.formProps.hasAddress),r&&!e.haveAddress&&(e.haveAddress=!0,e.materialReceivingAddress="库房",e.materialReceivingProvince="北京市",e.materialReceivingCity="北京市",e.materialReceivingArea="平谷区",e.materialReceivingContact=a.name,e.materialReceivingContactNumber=a.account,e.deliveryMode="1",e.hasAddress="2"!==n.formProps.hasAddress),i||o||e.haveAddress||Object(l["d"])().then((function(t){200===t.code&&(e.haveAddress=!0,n.$set(e,"materialReceivingAddress",t.data.materialReceivingAddress),n.$set(e,"materialReceivingProvince",t.data.materialReceivingProvince),n.$set(e,"materialReceivingCity",t.data.materialReceivingCity),n.$set(e,"materialReceivingArea",t.data.materialReceivingArea),n.$set(e,"materialReceivingContact",null===a||void 0===a?void 0:a.name),n.$set(e,"materialReceivingContactNumber",null===a||void 0===a?void 0:a.account),n.$set(e,"deliveryMode","2"),e.hasAddress="2"!==n.formProps.hasAddress)}))}))},handleGetMaterialReceivingAddressList:function(e){var t,n,i,r=this;if(null!==(t=this.formProps.applicationApplyCustomer)&&void 0!==t&&t.accountUid){var a=(null===(n=this.formProps)||void 0===n||null===(n=n.applicationApplyCustomer)||void 0===n?void 0:n.userList)||[{}];Object(l["i"])({productCodeList:e,customerRelationCode:null===(i=this.formProps.applicationApplyCustomer)||void 0===i?void 0:i.accountUid}).then((function(e){if(200===e.code&&e.data.length){var t=e.data;if(!Array.isArray(t)||0===t.length)return;var n=new Map(r.tableConfig.data.map((function(e){return[e.materialCode,e]})));t.forEach((function(e){if(e.productCode&&e.address){var t=n.get(e.productCode);if(t&&!t.haveAddress){var i,o,s=e.address||{},l=s.country,u=s.addrType,c=s.address,d=s.city,h=s.prov;t.haveAddress=!0,r.$set(t,"materialReceivingAddress",c),r.$set(t,"materialReceivingAddressType",u),r.$set(t,"materialReceivingProvince",h),r.$set(t,"materialReceivingCity",d),r.$set(t,"materialReceivingArea",l),r.$set(t,"deliveryMode","2"),r.$set(t,"materialReceivingContact",a[0]?null===(i=a[0])||void 0===i?void 0:i.userName:""),r.$set(t,"materialReceivingContactNumber",a[0]?null===(o=a[0])||void 0===o?void 0:o.phone:"")}}}))}}))}},handleGetMotherSchemeList:function(e){var t=this;Object(l["j"])({materialCodeList:e,costBearDepartmentCode:this.formProps.costBearDepartmentCode}).then((function(e){if(200===e.code){var n=e.data;if(!Array.isArray(n)||0===n.length)return;var i=new Map(t.tableConfig.data.map((function(e){return[e.materialCode,e]})));n.forEach((function(e){if(e.materialCode&&e.planInfoList){var n=i.get(e.materialCode);n&&(t.$set(n,"motherSchemeList",e.planInfoList),t.handleChangeScheme(n.materialAssociatedMotherSchemeCode,n))}}))}})).catch((function(e){console.error("Failed to fetch mother scheme list:",e)}))},changeAddressInfo:function(e,t){this.show=!0,this.currentItem={row:e,index:t}},handleChangeWarehouse:function(e,t){this.warehouseList.forEach((function(n){n.warehouseNumber===e&&(t.warehouseName=n.warehouseName)}))},deleteProduct:function(e,t){this.$emit("removeItem",e,t)},handleInput:function(e){var t;this.$bizui&&(null===(t=this.$bizui)||void 0===t||null===(t=t.bus)||void 0===t||t.$emit("updateTableData"));this.setTotalNumber()},handleBlur:function(e){var t=e.materialSendBaseTimesOther||1,n=e.materialQuantity%t===0;n||this.$message.warning("".concat(e.materialAbbreviation,"的数量必须是").concat(t,"的倍数")),this.checkQuantity(e)},setTotalNumber:function(){var e=this;this.totalCount=0,this.tableConfig.data.forEach((function(t){Number(t.materialQuantity)&&(e.totalCount+=Number(t.materialQuantity))}))},setTableItems:function(){var e=this,t=[];this.tableItemArr.forEach((function(n){"object"===Object(v["a"])(n)?t.push(n):e.allTableItemMap[n]&&t.push(e.allTableItemMap[n])})),this.tableConfig.tableItems=t},handleConfirmAddress:function(e){var t=this;try{"1"===e.isSimilarly?(this.$set(this.tableConfig.data,this.currentItem.index,e),this.tableConfig.data.forEach((function(n,i){["二类器械","三类器械"].includes(n.productTypeName)||n.deliveryMode!==e.deliveryMode||(n.materialReceivingAddress=e.materialReceivingAddress,n.materialReceivingProvince=e.materialReceivingProvince,n.materialReceivingCity=e.materialReceivingCity,n.materialReceivingArea=e.materialReceivingArea,n.materialReceivingContact=e.materialReceivingContact,n.materialReceivingContactNumber=e.materialReceivingContactNumber,t.$set(t.tableConfig.data,i,Object(s["a"])({},n)),t.$forceUpdate())}))):this.$set(this.tableConfig.data,this.currentItem.index,e)}catch(n){console.log(n)}},handleChangeScheme:function(e,t){t.motherSchemeList.forEach((function(n){n.materialAssociatedMotherSchemeCode===e&&(t.materialSchemeRemainingQuantity=n.materialSchemeRemainingQuantity,t.materialSchemeTotalQuantity=n.materialSchemeTotalQuantity,t.materialAssociatedMotherSchemeName=n.materialAssociatedMotherSchemeName)})),this.checkQuantity(t)},formatPhone:function(e){return e?e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):""},checkQuantity:function(e){return!e.materialQuantity||[null,void 0].includes(e.materialSchemeRemainingQuantity)?(this.$set(e,"overSchemeFlag","0"),this.$set(e,"overSchemeExplain",""),!1):Number(e.materialSchemeRemainingQuantity)<Number(e.materialQuantity)?(this.$set(e,"overSchemeFlag","1"),!0):(this.$set(e,"overSchemeFlag","0"),this.$set(e,"overSchemeExplain",""),!1)},clearScheme:function(e){e.materialSchemeRemainingQuantity=void 0,e.materialSchemeTotalQuantity=void 0},formatDataDeliveryMode:function(e){switch(e){case"1":return"自提";case"2":return"快递";default:return"-"}}}},k=S,O=(n("be6a"),Object(d["a"])(k,p,m,!1,null,"2d214ddb",null)),D=O.exports,E={name:"FieldMaterialSelect",components:{SelectProductDialog:f,ProductList:D},inject:{formProps:{default:function(){}}},props:{value:{type:Array,default:function(){return[]}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{tableData:[],tableItemArr:[],baseInfo:["materialBasicsInfo","materialCountInfo"],budget:["materialBudgetInfo"],scheme:["materialSchemeInfo"],batch:["materialBatchInfo"],purpose:["purpose"],address:["addressInfo"],warehouse:["warehouse"],formPropControl:void 0}},computed:{isView:function(){return!!this.attrs.isView},rcoiInfo:function(){return{rcoiCode:this.attrs.rcoiCode,rcoiNumber:this.attrs.rcoiNumber}},showAddButton:function(){var e;return!this.isView&&(null===(e=this.formProps)||void 0===e||null===(e=e.applyTypeInfo)||void 0===e?void 0:e.applyType)}},watch:{value:{handler:function(e){this.tableData=e},deep:!0,immediate:!0}},created:function(){this.handleBusEvent(),this.handleTableData()},beforeDestroy:function(){this.$bizui.bus&&this.$bizui.bus.$off("applySubmit")},methods:{handleBusEvent:function(){var e=this;this.$bizui.bus&&(this.isView?(this.$bizui.bus.$on("approvalSubmit",(function(t){e.handleApprovalValidate()})),this.$bizui.bus.$on("getNodePropConfig",(function(t){e.formPropControl=t}))):(this.$bizui.bus.$on("applySubmit",(function(t){e.handleValidate()})),this.$bizui.bus.$on("formBelongCompanyChange",(function(t){e.tableData=[]})),this.$bizui.bus.$on("formCustomChange",(function(t){e.tableData=[]})),this.$bizui.bus.$on("formApplyTypeChange",(function(t){e.tableData=[]}))))},handleApprovalValidate:function(){var e=this,t=!0;this.tableData.forEach((function(n){var i,r;(!n.warehouseNumber&&e.formPropControl&&null!==(i=e.formPropControl)&&void 0!==i&&i.includes("warehouse")||"1"===n.materialIsSpecifiedBatch&&e.attrs.approvalInputBatch&&!n.materialBatch&&e.formPropControl&&null!==(r=e.formPropControl)&&void 0!==r&&r.includes("materialBatch"))&&(t=!1),n.valid=t})),this.onUpdate()},handleValidate:function(){var e=this,t=!0;this.tableData.forEach((function(n){var i=!0;if(n.materialQuantity){var r=n.materialSendBaseTimesOther||1,a=n.materialQuantity%r===0;a||(e.$message.warning("".concat(n.materialAbbreviation,"的数量必须是").concat(r,"的倍数")),i=!1)}n.materialQuantity?!e.tableItemArr.includes("materialBatchInfo")||e.attrs.approvalInputBatch||"1"!==n.materialIsSpecifiedBatch||n.materialBatch?n.materialReceivingContact&&n.materialReceivingContactNumber&&n.materialReceivingAddress?"1"!==n.overSchemeFlag||n.overSchemeExplain||(i&&t&&e.$message.warning("请检查超母方案说明"),i=!1):(i&&t&&e.$message.warning("请检查地址信息"),i=!1):(i&&t&&e.$message.warning("请检查批次号信息"),i=!1):(i&&t&&e.$message.warning("请检查物料数量"),i=!1),n.valid=i,t=i})),this.onUpdate()},handleTableData:function(){var e,t=this,n={baseInfo:this.baseInfo,budget:this.budget,scheme:this.scheme,batch:this.batch,purpose:this.purpose,warehouse:this.warehouse,address:this.address};null===(e=this.attrs.materialConfig)||void 0===e||e.forEach((function(e){t.tableItemArr=t.tableItemArr.concat(n[e]),"scheme"===e&&t.tableItemArr.push("overSchemeExplain")})),this.tableItemArr.push("remarks"),this.isView||this.tableItemArr.push("operate")},showProductListSelect:function(){this.$refs.selectProductDialog.show()},addProduct:function(e){var t,n=this,i=this.tableData.map((function(e){return e.materialCode}));(e.forEach((function(e){i.includes(e.materialCode)||(e.materialIsSpecifiedBatch="0",n.tableData.push(e))})),this.$bizui)&&(null===(t=this.$bizui)||void 0===t||null===(t=t.bus)||void 0===t||t.$emit("updateTableData"));this.onUpdate()},onRemoveItem:function(e,t){var n;(this.tableData.splice(t,1),this.$bizui)&&(null===(n=this.$bizui)||void 0===n||null===(n=n.bus)||void 0===n||n.$emit("updateTableData"));this.onUpdate()},onUpdate:function(){var e=JSON.parse(JSON.stringify(this.tableData));this.$emit("input",e),this.$emit("change",e)}}},T=E,$=(n("bec6"),Object(d["a"])(T,i,r,!1,null,"451b8bc5",null));t["default"]=$.exports},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("23cb"),o=n("5926"),s=n("07fa"),l=n("3a34"),u=n("3511"),c=n("65f0"),d=n("8418"),h=n("083a"),f=n("1dde"),p=f("splice"),m=Math.max,v=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,i,f,p,g,b,y=r(this),w=s(y),_=a(e,w),x=arguments.length;for(0===x?n=i=0:1===x?(n=0,i=w-_):(n=x-2,i=v(m(o(t),0),w-_)),u(w+n-i),f=c(y,i),p=0;p<i;p++)g=_+p,g in y&&d(f,p,y[g]);if(f.length=i,n<i){for(p=_;p<w-i;p++)g=p+i,b=p+n,g in y?y[b]=y[g]:h(y,b);for(p=w;p>w-i+n;p--)h(y,p-1)}else if(n>i)for(p=w-i;p>_;p--)g=p+i-1,b=p+n-1,g in y?y[b]=y[g]:h(y,b);for(p=0;p<n;p++)y[p+_]=arguments[p+2];return l(y,w-i+n),f}})},a4b4:function(e,t,n){"use strict";var i=n("342f");e.exports=/web0s(?!.*chrome)/i.test(i)},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a60f:function(e,t,n){"use strict";n.r(t);n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",{class:e.isView?"inline":"w-full"},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[e.isView?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":e.plantText,"no-absolute":e.diffNoAbsolute,"new-value":e.diffSelectLabel}}):t("el-select",e._b({ref:"select",staticClass:"w-full",attrs:{placeholder:e.placeholder,multiple:e.multiple,filterable:e.filterable,"allow-create":e.allowCreate,clearable:"",remote:"","remote-method":e.remoteMethod,loading:e.loading,"popper-class":"select-class","collapse-tags":e.collapseTags},on:{change:e.onChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.employeeNo,attrs:{label:n.name||n.employeeNo,value:n.employeeNo}},[e._t("item",(function(){return[t("div",{staticClass:"flex items-center gap-2"},[t("span",[e._v(e._s(n.name+"-"+n.orgName||n.employeeNo)),n.departmentName?t("span",[e._v("("+e._s(n.departmentName)+")")]):e._e()])])]}),{item:n})],2)})),1)],1),t("el-col",{attrs:{span:12}},[t("div",{staticStyle:{"margin-top":"-32px"}},[t("p",{staticClass:"cell-title"},[e._v("负责人所属部门")]),e.isView?t("ImDiffText",{attrs:{"show-diff":e.showDiff,"old-value":e.detpName,"no-absolute":e.diffNoAbsolute,"new-value":e.diffDeptNameLabel}}):t("p",[e._v(e._s(e.detpName||"-"))])],1)])],1)],1)},r=[],a=n("5530"),o=(n("99af"),n("a15b"),n("d81d"),n("14d9"),n("e9c4"),n("a9e3"),n("b64b"),n("23ef")),s=n("704d"),l={name:"EmployeeSelect",props:{value:{type:[Number,String,Array],default:void 0},attrs:{type:Object,default:function(){return{}}},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},extra:{type:Object,default:function(){return{}}},isView:{type:Boolean,default:!1}},data:function(){return{myValue:void 0,loading:!0,selectName:void 0,options:[]}},computed:{plantText:function(){var e=this,t=[],n=[].concat(this.myValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"name",valueKey:"employeeNo"})),n})),t.join(",")},detpName:function(){var e=this,t=[],n=[].concat(this.myValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"orgName",valueKey:"employeeNo"})),n})),t.join(",")},detpCode:function(){var e=this,t=[],n=[].concat(this.myValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"departmentCode",valueKey:"employeeNo"})),n})),t.join(",")},diffValue:function(){return this.attrs.diffValue},showDiff:function(){return this.attrs.showDiff||!1},diffNoAbsolute:function(){return this.attrs.diffNoAbsolute},diffSelectLabel:function(){var e=this,t=[],n=[].concat(this.diffValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"name",valueKey:"employeeNo"})),n})),t.join(",")},diffDeptNameLabel:function(){var e=this,t=[],n=[].concat(this.diffValue);return n.map((function(n){return t.push(Object(s["a"])(e.options,n,{labelKey:"orgName",valueKey:"employeeNo"})),n})),t.join(",")}},watch:{value:{immediate:!0,handler:function(){JSON.stringify(this.value)!==JSON.stringify(this.myValue)&&this.getOptions(),this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.multiple?this.myValue=JSON.parse(JSON.stringify(this.value))||[]:this.myValue=this.value||void 0}catch(e){this.multiple?this.myValue=[]:this.myValue=void 0}},remoteMethod:function(e){this.loading=!0,this.selectName=e,this.getOptions()},visibleChange:function(e){},getOptions:function(){var e=this,t=Object(a["a"])({name:this.selectName},this.extra);!this.selectName&&this.value&&(t.employeeNos=Array.isArray(this.value)?this.value:[this.value],t.selectStatus="0"),this.loading=!0,Object(o["c"])(t).then((function(t){200===t.code?e.options=t.data||[]:e.$message.error(t.message),e.loading=!1}))},onChange:function(){this.$refs.select&&(this.$refs.select.inputValue="");var e={value:this.myValue,text:this.plantText,detpName:this.detpName,detpCode:this.detpCode};this.$emit("input",this.myValue,e),this.$emit("change",this.myValue,e)}}},u=l,c=(n("053a"),n("2877")),d=Object(c["a"])(u,i,r,!1,null,"3cdaec35",null);t["default"]=d.exports},a630:function(e,t,n){"use strict";var i=n("23e7"),r=n("4df4"),a=n("1c7e"),o=!a((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){return 1},1)}))}},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var i="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};t.isString=s,t.isObject=l,t.isHtmlElement=u;var r=n("8bbf"),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return e&&e.nodeType===Node.ELEMENT_NODE}var c=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":i(Int8Array))||!a.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=c=function(e){return"function"===typeof e||!1}),t.isFunction=c;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("d256"),o=n("d039"),s=n("d066"),l=n("1626"),u=n("4840"),c=n("cdf9"),d=n("cb2d"),h=a&&a.prototype,f=!!a&&o((function(){h["finally"].call({then:function(){}},(function(){}))}));if(i({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!r&&l(a)){var p=s("Promise").prototype["finally"];h["finally"]!==p&&d(h,"finally",p,{unsafe:!0})}},a9e3:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("83ab"),o=n("da84"),s=n("428f"),l=n("e330"),u=n("94ca"),c=n("1a2d"),d=n("7156"),h=n("3a9b"),f=n("d9b5"),p=n("c04e"),m=n("d039"),v=n("241c").f,g=n("06cf").f,b=n("9bf2").f,y=n("408a"),w=n("58a8").trim,_="Number",x=o[_],C=s[_],S=x.prototype,k=o.TypeError,O=l("".slice),D=l("".charCodeAt),E=function(e){var t=p(e,"number");return"bigint"==typeof t?t:T(t)},T=function(e){var t,n,i,r,a,o,s,l,u=p(e,"number");if(f(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),t=D(u,0),43===t||45===t){if(n=D(u,2),88===n||120===n)return NaN}else if(48===t){switch(D(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(a=O(u,2),o=a.length,s=0;s<o;s++)if(l=D(a,s),l<48||l>r)return NaN;return parseInt(a,i)}return+u},$=u(_,!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){return h(S,e)&&m((function(){y(e)}))},N=function(e){var t=arguments.length<1?0:x(E(e));return I(this)?d(Object(t),this,N):t};N.prototype=S,$&&!r&&(S.constructor=N),i({global:!0,constructor:!0,wrap:!0,forced:$},{Number:N});var M=function(e,t){for(var n,i=a?v(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)c(t,n=i[r])&&!c(e,n)&&b(e,n,g(t,n))};r&&C&&M(s[_],C),($||r)&&M(s[_],x)},ab13:function(e,t,n){"use strict";var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ab36:function(e,t,n){"use strict";var i=n("861d"),r=n("9112");e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},ab64:function(e,t,n){"use strict";n("f8fd")},ab6e:function(e,t,n){},abbb:function(e,t,n){"use strict";n("baec")},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad52:function(e,t,n){"use strict";n("521f")},ad58:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"select-view"},[e.attrs.isView?e._e():t("el-select",{staticStyle:{width:"calc(25% - 16px)"},attrs:{filterable:"",placeholder:e.placeholder,clearable:""},on:{change:e.changeDoctor},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},e._l(e.doctorList,(function(e){return t("el-option",{key:e.doctorPhone,attrs:{label:e.doctorName,value:e.doctorPhone}})})),1),t("el-row",{attrs:{gutter:24}},e._l(e.selectDoctorList,(function(n,i){return t("el-col",{key:i,attrs:{span:6}},[t("div",{staticClass:"item-view",class:{"item-view-disabled":e.attrs.isView}},[e.attrs.isView?e._e():t("img",{staticClass:"delect-img",attrs:{src:"https://udstatic.imeik.com/pcUploads/1738999803093/delete%402x.png"},on:{click:function(t){return e.deleteDoctor(i)}}}),t("p",{staticClass:"doctor-name"},[e._v(e._s(n.doctorName))]),t("p",{staticClass:"doctor-other"},[e._v(e._s(n.doctorDepartment)+" | "+e._s(n.doctorPosition))]),t("p",{staticClass:"doctor-other"},[e._v(e._s(n.doctorPracticeAgency))])])])})),1)],1)},r=[],a=(n("14d9"),n("a434"),n("d3b7"),n("159b"),n("8ea2"),{name:"FieldSeleceDoctor",inject:{formProps:{default:function(){}}},props:{value:{type:[String,Array],default:void 0},attrs:{type:Object,default:function(){return{}}},customData:{type:Object,default:function(){return{}}}},data:function(){return{myValue:void 0,doctorList:[],selectDoctorList:[]}},computed:{placeholder:function(){return this.selectDoctorList.length>0?"已选择"+this.selectDoctorList.length+"位医生":"请选择医生"}},watch:{value:{immediate:!0,handler:function(e){this.setMyValue(e)}},customData:{immediate:!0,handler:function(e){this.handleGetDoctorList()}}},mounted:function(){},methods:{handleGetDoctorList:function(){var e;this.doctorList=(null===(e=this.customData)||void 0===e?void 0:e.doctorList)||[]},changeDoctor:function(e){var t,n=this;null===(t=this.doctorList)||void 0===t||t.forEach((function(t){t.doctorPhone===e&&(n.selectDoctorList.push(t),n.onUpdate())})),this.myValue=void 0},deleteDoctor:function(e){this.selectDoctorList.splice(e,1),this.onUpdate()},setMyValue:function(e){e&&e.length&&(this.selectDoctorList=e)},onUpdate:function(){this.$emit("input",this.selectDoctorList)}}}),o=a,s=(n("25e2"),n("2877")),l=Object(s["a"])(o,i,r,!1,null,"cd6f98f6",null);t["default"]=l.exports},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("53ca");n("a4d3"),n("e01a"),n("8172"),n("d9e2"),n("efec"),n("a9e3"),n("d3b7");function r(e,t){if("object"!=Object(i["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Object(i["a"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function a(e){var t=r(e,"string");return"symbol"==Object(i["a"])(t)?t:String(t)}function o(e,t,n){return t=a(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae93:function(e,t,n){"use strict";var i,r,a,o=n("d039"),s=n("1626"),l=n("861d"),u=n("7c73"),c=n("e163"),d=n("cb2d"),h=n("b622"),f=n("c430"),p=h("iterator"),m=!1;[].keys&&(a=[].keys(),"next"in a?(r=c(c(a)),r!==Object.prototype&&(i=r)):m=!0);var v=!l(i)||o((function(){var e={};return i[p].call(e)!==e}));v?i={}:f&&(i=u(i)),s(i[p])||d(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},aeb0:function(e,t,n){"use strict";var i=n("9bf2").f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var i=n("83ab"),r=n("d039");e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},aff8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{class:{"card-title-view":e.isView}},[t("div",{staticClass:"text-left pb-2 mb-1 flex"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"title-line"}),t("p",{staticClass:"title"},[e._v(e._s(e.item.label))])])]),e._t("card-header")],2)},r=[],a={name:"FieldCardHeader",props:{item:{type:Object,default:function(){return{}}},attrs:{type:Object,default:function(){}}},computed:{isView:function(){var e;return null===(e=this.attrs)||void 0===e?void 0:e.isView}},mounted:function(){if(this.isView){var e=document.querySelectorAll(".card-title-view");e&&e[0]&&(e[0].style.borderTop="0",e[0].style.paddingTop="2px")}}},o=a,s=(n("ab64"),n("2877")),l=Object(s["a"])(o,i,r,!1,null,"c0c68ec2",null);t["default"]=l.exports},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b0bb:function(e,t,n){"use strict";n("506e")},b0c0:function(e,t,n){"use strict";var i=n("83ab"),r=n("5e77").EXISTS,a=n("e330"),o=n("edd0"),s=Function.prototype,l=a(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=a(u.exec),d="name";i&&!r&&o(s,d,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},b367:function(e,t,n){var i=n("5524"),r=n("ef08"),a="__core-js_shared__",o=r[a]||(r[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b42e:function(e,t,n){"use strict";var i=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:i)(t)}},b4f8:function(e,t,n){"use strict";var i=n("23e7"),r=n("d066"),a=n("1a2d"),o=n("577e"),s=n("5692"),l=n("0b43"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(a(u,t))return u[t];var n=r("Symbol")(t);return u[t]=n,c[n]=t,n}})},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),a=n("30b5"),o=n("83b9"),s=n("c345"),l=n("3934"),u=n("2d83");e.exports=function(e){return new Promise((function(t,c){var d=e.data,h=e.headers;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";h.Authorization="Basic "+btoa(p+":"+m)}var v=o(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?f.response:f.responseText,a={data:i,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};r(t,c,a),f=null}},f.onabort=function(){f&&(c(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(u(t,e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n("7aac"),b=(e.withCredentials||l(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}if("setRequestHeader"in f&&i.forEach(h,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),c(e),f=null)})),void 0===d&&(d=null),f.send(d)}))}},b575:function(e,t,n){"use strict";var i,r,a,o,s,l=n("da84"),u=n("157a"),c=n("0366"),d=n("2cf4").set,h=n("01b4"),f=n("1cdc"),p=n("d4c3"),m=n("a4b4"),v=n("605d"),g=l.MutationObserver||l.WebKitMutationObserver,b=l.document,y=l.process,w=l.Promise,_=u("queueMicrotask");if(!_){var x=new h,C=function(){var e,t;v&&(e=y.domain)&&e.exit();while(t=x.get())try{t()}catch(n){throw x.head&&i(),n}e&&e.enter()};f||v||m||!g||!b?!p&&w&&w.resolve?(o=w.resolve(void 0),o.constructor=w,s=c(o.then,o),i=function(){s(C)}):v?i=function(){y.nextTick(C)}:(d=c(d,l),i=function(){d(C)}):(r=!0,a=b.createTextNode(""),new g(C).observe(a,{characterData:!0}),i=function(){a.data=r=!r}),_=function(e){x.head||i(),x.add(e)}}e.exports=_},b622:function(e,t,n){"use strict";var i=n("da84"),r=n("5692"),a=n("1a2d"),o=n("90e3"),s=n("04f8"),l=n("fdbf"),u=i.Symbol,c=r("wks"),d=l?u["for"]||u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:d("Symbol."+e)),c[e]}},b636:function(e,t,n){"use strict";var i=n("e065");i("asyncIterator")},b64b:function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("df75"),o=n("d039"),s=o((function(){a(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return a(r(e))}})},b680:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),a=n("5926"),o=n("408a"),s=n("1148"),l=n("d039"),u=RangeError,c=String,d=Math.floor,h=r(s),f=r("".slice),p=r(1..toFixed),m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},v=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},g=function(e,t,n){var i=-1,r=n;while(++i<6)r+=t*e[i],e[i]=r%1e7,r=d(r/1e7)},b=function(e,t){var n=6,i=0;while(--n>=0)i+=e[n],e[n]=d(i/t),i=i%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var i=c(e[t]);n=""===n?i:n+h("0",7-i.length)+i}return n},w=l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}));i({target:"Number",proto:!0,forced:w},{toFixed:function(e){var t,n,i,r,s=o(this),l=a(e),d=[0,0,0,0,0,0],p="",w="0";if(l<0||l>20)throw new u("Incorrect fraction digits");if(s!==s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(t=v(s*m(2,69,1))-69,n=t<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,t=52-t,t>0){g(d,0,n),i=l;while(i>=7)g(d,1e7,0),i-=7;g(d,m(10,i,1),0),i=t-1;while(i>=23)b(d,1<<23),i-=23;b(d,1<<i),g(d,1,1),b(d,2),w=y(d)}else g(d,0,n),g(d,1<<-t,0),w=y(d)+h("0",l);return l>0?(r=w.length,w=p+(r<=l?"0."+h("0",l-r)+w:f(w,0,r-l)+"."+f(w,r-l))):w=p+w,w}})},b727:function(e,t,n){"use strict";var i=n("0366"),r=n("e330"),a=n("44ad"),o=n("7b0b"),s=n("07fa"),l=n("65f0"),u=r([].push),c=function(e){var t=1===e,n=2===e,r=3===e,c=4===e,d=6===e,h=7===e,f=5===e||d;return function(p,m,v,g){for(var b,y,w=o(p),_=a(w),x=s(_),C=i(m,v),S=0,k=g||l,O=t?k(p,x):n||h?k(p,0):void 0;x>S;S++)if((f||S in _)&&(b=_[S],y=C(b,S,w),e))if(t)O[S]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:u(O,b)}else switch(e){case 4:return!1;case 7:u(O,b)}return d?-1:r||c?c:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d9e2"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("06c5");function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(i["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}},b907:function(e,t,n){"use strict";n("4e48")},b980:function(e,t,n){"use strict";var i=n("d039"),r=n("5c6c");e.exports=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},b9e4:function(e,t,n){"use strict";n("c989")},ba01:function(e,t,n){e.exports=n("051b")},bab8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{class:e.isView?"inline":"w-full"},[e.isView?[e.isWxWorkMobile&&e.needShowMore?t("div",{staticClass:"mobile-text-container"},[e.plantText?e.showAll?t("div",{staticClass:"show-all-text",attrs:{id:"plantText-".concat(e.random)}},[e._v(" "+e._s(e.plantText)+" "),t("div",{staticClass:"btn-text",on:{click:e.showMore}},[e._v(" 收起 "),t("img",{staticClass:"icon-retract",attrs:{src:"https://imeikud.oss-cn-beijing.aliyuncs.com/pcUploads/1724846415100/icon-retract.png"}})])]):t("div",{staticClass:"show-limit-text"},[e._v(" "+e._s(e.plantText)+" "),t("div",{staticClass:"btn-text show-more",on:{click:e.showMore}},[e._v(" 展开 "),t("img",{staticClass:"icon-show-more",attrs:{src:"https://imeikud.oss-cn-beijing.aliyuncs.com/pcUploads/1724846420511/icon-show-more.png"}})])]):t("span",[e._v("-")])]):e.plantText?[e.showAllWhenView?t("span",{staticClass:"viewText showAll"},[e._v(e._s(e.plantText))]):t("el-popover",{attrs:{trigger:"hover"}},[t("div",{staticClass:"departmentPopover"},[e._v(e._s(e.plantText))]),t("span",{staticClass:"viewText",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.plantText))])])]:t("span",[e._v("-")])]:t("el-cascader",e._b({ref:"select",staticClass:"w-full",attrs:{"popper-class":"loading",props:e.cascaderProps,options:e.filteredOptions,placeholder:e.$attrs.placeholder||(e.optionsLoading?"加载中...":"请选择部门"),"collapse-tags":e.$attrs.collapseTags||e.collapseTags,clearable:!1!==e.$attrs.clearable,filterable:!1!==e.$attrs.filterable},on:{change:e.handleChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-cascader",e.$attrs,!1))],2)},r=[],a=n("5530"),o=(n("4de4"),n("a15b"),n("d81d"),n("14d9"),n("e9c4"),n("a9e3"),n("b64b"),n("d3b7"),n("e6cf"),n("a79d"),n("ac1f"),n("00b4"),n("5319"),n("159b"),n("f6f4")),s=n("2a07"),l={name:"CommonDepartmentCascader",mixins:[o["a"]],props:{value:{type:[String,Number,Array],default:void 0},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!1},propValue:{type:String,default:"departmentCode"},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},extra:{type:Object,default:function(){return{}}},isView:{type:Boolean,default:!1},showAllWhenView:{type:Boolean,default:!1},onlyMainCompany:{type:Boolean,default:!0},specificOrgCode:{type:String,default:""},hasRoot:{type:Boolean,default:!0}},data:function(){return{myValue:void 0,options:[],optionsLoading:!1,childHasUnChecked:!1,showAll:!0,needShowMore:!0,random:100*Math.random(),optionMap:{}}},computed:{isWxWorkMobile:function(){var e=window.navigator.userAgent.toLowerCase(),t=/wxwork/i.test(e)&&/iphone|android/i.test(e);return t},cascaderProps:function(){return{multiple:this.multiple,label:"departmentName",value:this.propValue,children:"childDepartments",emitPath:this.emitPath,expandTrigger:this.expandTrigger,checkStrictly:this.checkStrictly}},plantText:function(){var e=this,t=[];if(Array.isArray(this.myValue))this.myValue.forEach((function(n){var i=e.optionMap[n];i&&t.push(i.departmentName)}));else{var n=this.optionMap[this.myValue];n&&t.push(n.departmentName)}return t.join(", ")},specificOptions:function(){var e=this.options||[];return this.specificOrgCode&&this.optionMap[this.specificOrgCode]&&(e=[this.optionMap[this.specificOrgCode]]),e||[]},filteredOptions:function(){return!this.hasRoot&&this.specificOptions&&1===this.specificOptions.length&&this.specificOptions[0]&&this.specificOptions[0].childDepartments?this.specificOptions[0].childDepartments||[]:this.specificOptions||[]}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}},plantText:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){var e=document.getElementById("plantText-".concat(t.random));if(e){var n=window.getComputedStyle(e,null),i=n.height.replace("px",""),r=n.lineHeight.replace("px","");i/r>=2?(t.needShowMore=!0,t.showAll=!1):(t.needShowMore=!1,t.showAll=!0)}}))}}},created:function(){this.getOptions()},methods:{showMore:function(){this.showAll=!this.showAll,this.$emit("showMore",this.showAll)},setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=this.value}},getOptions:function(){var e=this,t=Object(a["a"])({},this.extra);this.optionsLoading=!0,Object(s["b"])(t).then((function(t){if(200===t.code){if(!t.data)return;var n=t.data||[];e.onlyMainCompany&&(n=n.filter((function(e){return"virtual-201"===e.orgCode}))),e.options=e.dealList(n||[])}})).finally((function(){e.optionsLoading=!1}))},dealList:function(e){var t=this;return e.map((function(e){return e.orgCode&&t.$set(t.optionMap,e.orgCode,e),e[t.propValue]&&t.$set(t.optionMap,e[t.propValue],e),e.childDepartments&&e.childDepartments.length?t.dealList(e.childDepartments):delete e.childDepartments,e}))},handleChange:function(){this.$emit("input",this.myValue),this.$emit("change",this.myValue),this.dispatch("ElFormItem","el.form.change",this.myValue)}}},u=l,c=(n("6045"),n("2877")),d=Object(c["a"])(u,i,r,!1,null,"790f517c",null);t["default"]=d.exports},baec:function(e,t,n){},bb2f:function(e,t,n){"use strict";var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb62:function(e,t,n){},bc22:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"FormSupplyControl"},[e.isView?e._e():t("el-button",{staticStyle:{"margin-bottom":"12px"},attrs:{type:"primary",size:"mini"},on:{click:e.showSelectDialog}},[e._v("添加物资")]),t("SupplyManagementList",{ref:"SupplyManagementList",attrs:{"is-view":e.isView,"no-stick":"","table-config-attrs":e.tableConfigAttrs,"table-item-arr":e.tableItemArr,"table-data":e.tableData},on:{removeItem:e.onRemoveItem,applyCountChange:e.onUpdate}}),t("SupplySelectDialog",{ref:"SupplySelectDialog",attrs:{extra:{enabledStatus:"1",applyType:e.applyType,deptCode:e.departmentObjectCode},"form-item-arr":e.supplySelectFormItemArr,width:"1200px"},on:{addSupplies:e.onAddSupplies}})],1)},r=[],a=n("2909"),o=(n("99af"),n("a434"),n("e9c4"),n("a9e3"),n("b64b"),n("d3b7"),n("159b"),n("f6f4")),s=n("61ab"),l=(n("ac1f"),n("841c"),function(){var e=this,t=e._self._c;return t("ImDialog",{attrs:{"append-to-body":"",visible:e.dialogVisible,title:"添加物资",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t},cancel:e.onCancel,closeDialog:e.closeDialog,submit:e.confirmInfo}},[t("ImForm",{ref:"ImForm",attrs:{form:e.formConfig},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}}},[t("GroupBrandAllParams",{staticClass:"w-full",attrs:{slot:"materialInfo"},on:{change:e.onParamsChanged},slot:"materialInfo",model:{value:e.formConfig.props.groupBrandType,callback:function(t){e.$set(e.formConfig.props,"groupBrandType",t)},expression:"formConfig.props.groupBrandType"}}),t("SupplyBrandSelect",{staticClass:"w-full",attrs:{slot:"SupplyBrandSelect"},on:{change:e.onBrandChanged},slot:"SupplyBrandSelect",model:{value:e.formConfig.props.brandCode,callback:function(t){e.$set(e.formConfig.props,"brandCode",t)},expression:"formConfig.props.brandCode"}})],1),t("SupplyManagementList",{ref:"SupplyManagementList",attrs:{"table-item-arr":e.tableItemArr,"table-data":e.tableData,loading:e.loading,"table-config-attrs":e.tableConfigAttrs,"table-config-listeners":e.tableConfigListeners}}),t("ImPagination",{ref:"ImPagination",attrs:{"page-size":e.pageSize,"current-page":e.currentPage,total:e.total},on:{"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},change:e.getList}})],1)}),u=[],c=n("5530"),d=(n("caad"),n("e260"),n("d81d"),n("14d9"),n("e6cf"),n("a79d"),n("2532"),n("3ca3"),n("ddb0"),n("ca94")),h=function(){var e=this,t=e._self._c;return t("el-select",e._b({attrs:{"popper-class":"select-class",placeholder:e.placeholder,filterable:!1!==e.$attrs.filterable},on:{change:e.onChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.objectCode,attrs:{label:n.brandName,value:n.objectCode}},[t("div",{staticClass:"brandContainer"},[t("span",{staticClass:"brandName",attrs:{title:n.brandName}},[e._v(e._s(n.brandName))]),["all","group"].includes(n.objectCode)?e._e():t("el-tag",{staticClass:"brandTag",attrs:{size:"mini",type:"success"}},[e._v("[商标]")])],1)])})),1)},f=[],p={name:"GroupBrandAllSelect",props:{value:{type:[Number,String,Array],default:void 0},placeholder:{type:String,default:"请选择"}},data:function(){return{myValue:void 0,options:[],extraOptions:[{objectCode:"all",brandName:"全部"},{objectCode:"group",brandName:"组合"}]}},computed:{isGroup:function(){if("all"!==this.myValue)return"group"===this.myValue?"1":"0"},brandCode:function(){if("all"!==this.myValue&&"group"!==this.myValue)return this.myValue}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},getOptions:function(){var e=this;Object(d["a"])({limit:1e4,page:1}).then((function(t){200===t.code&&(e.options=[].concat(Object(a["a"])(e.extraOptions),Object(a["a"])(t.data.list||[])))}))},onChange:function(){var e={isGroup:this.isGroup,brandCode:this.brandCode||void 0};this.$emit("input",this.myValue,e),this.$emit("change",this.myValue,e)}}},m=p,v=(n("6773"),n("2877")),g=Object(v["a"])(m,h,f,!1,null,"01b0897c",null),b=g.exports,y=function(){var e=this,t=e._self._c;return t("span",[e.isView?t("span",[e._v(e._s(e.myItem.brandName))]):t("el-select",e._b({staticStyle:{width:"100%"},attrs:{"popper-class":"select-class",placeholder:e.placeholder,multiple:e.multiple,filterable:!1!==e.$attrs.filterable,clearable:""},on:{change:e.onChange},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}},"el-select",e.$attrs,!1),e._l(e.options,(function(n){return t("el-option",{key:n.objectCode,attrs:{disabled:e.disabledCode.includes(n.objectCode),label:n.brandName,value:n.objectCode}})})),1)],1)},w=[],_=(n("7db0"),{name:"SupplyBrandSelect",props:{value:{type:[Number,String,Array],default:void 0},placeholder:{type:String,default:"请选择"},multiple:{type:Boolean,default:!1},extraParam:{type:Object,default:function(){}},disabledCode:{type:Array,default:function(){return[]}},isView:{type:Boolean,default:!1}},data:function(){return{myValue:void 0,options:[]}},computed:{myItem:function(){var e=this;return this.options.find((function(t){return t.objectCode===e.myValue}))||{}}},watch:{value:{immediate:!0,handler:function(){this.setMyValue()}}},created:function(){this.getOptions()},methods:{setMyValue:function(){try{this.myValue=JSON.parse(JSON.stringify(this.value))}catch(e){this.myValue=void 0}},getOptions:function(){var e=this;Object(d["a"])(Object(c["a"])({limit:1e4,page:1},this.extraParam)).then((function(t){200===t.code&&(e.options=t.data.list||[],e.myValue&&e.onChange())}))},onChange:function(){this.$emit("input",this.myValue,this.myItem),this.$emit("change",this.myValue,this.myItem)}}}),x=_,C=Object(v["a"])(x,y,w,!1,null,null,null),S=C.exports,k=n("6183"),O={name:"SupplySelectDialog",components:{SupplyManagementList:function(){return Promise.resolve().then(n.bind(null,"61ab"))},GroupBrandAllParams:b,SupplyBrandSelect:S},props:{isGroup:{type:[Number,String],default:void 0},width:{type:String,default:"900px"},tableScrollHeight:{type:Number,default:425},formItemArr:{type:Array,default:function(){return[]}},extra:{type:Object,default:function(){return{}}}},data:function(){return{extraParams:{},selectedList:[],tableConfigListeners:{"selection-change":this.selectionChange,"row-click":this.rowClick},tableData:[],allFormItemMap:{groupBrandType:{type:"ImSlot",prop:"groupBrandType",label:"物资形式",slots:{slot:"materialInfo"}},brandType:{type:"ImSlot",prop:"brandCode",label:"商标",slots:{slot:"SupplyBrandSelect"}},materialName:{type:"ImInput",prop:"materialName",label:"物资名称"},erpCode:{type:"ImInput",prop:"erpCode",label:"物资编码"},operate:{type:"ImButton",notInCol:!0,attrs:{style:"float: right;",options:[{label:"重 置",attrs:{type:"default"},listeners:{click:this.resetForm}},{label:"查 询",attrs:{type:"primary"},listeners:{click:this.search}}]}}},formConfig:{column:3,attrs:{labelWidth:"80px"},props:{groupBrandType:"all",brandCode:void 0,materialName:void 0,erpCode:void 0},formItems:[]},dialogVisible:!1,selectItems:[],loading:!1,pageSize:10,currentPage:1,total:0}},computed:{queryParams:function(){var e=Object(c["a"])(Object(c["a"])(Object(c["a"])({isGroup:this.isGroup,page:this.currentPage,limit:this.pageSize},this.formConfig.props),this.extraParams),this.extra);return delete e.groupBrandType,Object(k["b"])(e)},tableItemArr:function(){return[{type:"selection",attrs:{width:50,"reserve-selection":!0,selectable:this.checkSelectable}},"supplyImage","brandType","supplyName","materialSpec","consumeType","supplyChannelType","unit","leval","erpCount"]},tableConfigAttrs:function(){return{height:this.tableScrollHeight,noStick:!0,rowKey:"objectCode"}},selectedCode:function(){var e=this.selectedList;return e.map((function(e){return e.objectCode}))},newSelectedCode:function(){return this.selectItems.map((function(e){return e.objectCode}))}},watch:{isGroup:function(){this.getList()},formItemArr:{immediate:!0,handler:function(){this.setFormItems()}}},created:function(){this.getList()},methods:{setFormItems:function(){var e=this,t=[];this.formItemArr.forEach((function(n){e.allFormItemMap[n]&&t.push(e.allFormItemMap[n])})),this.formConfig.formItems=t},onParamsChanged:function(e,t){this.extraParams=t,this.getList()},onBrandChanged:function(){this.getList()},getTableRef:function(){return this.$refs.SupplyManagementList&&this.$refs.SupplyManagementList.tableRef?this.$refs.SupplyManagementList.tableRef:null},checkSelectItems:function(){var e=this;if(this.getTableRef()){var t=this.getTableRef().getTableInstance();this.$nextTick((function(){e.tableData.forEach((function(n){t.toggleRowSelection(n,e.selectedCode.includes(n.objectCode)||e.newSelectedCode.includes(n.objectCode))}))}))}},selectionChange:function(e){this.selectItems=e},rowClick:function(e){if(this.getTableRef()&&this.checkSelectable(e)){var t=this.getTableRef().getTableInstance();t.toggleRowSelection(e)}},show:function(e){var t=this;this.selectedList=JSON.parse(JSON.stringify(e)),this.dialogVisible=!0,this.$nextTick((function(){t.resetForm(),t.checkSelectItems()}))},closeDialog:function(){this.dialogVisible=!1},checkSelectable:function(e,t){return!this.selectedCode.includes(e.objectCode)},search:function(){this.$refs.ImPagination.reset(),this.getList()},resetForm:function(){if(this.extraParams={},this.$refs.ImForm&&this.$refs.ImForm.reset(),this.$refs.ImPagination&&this.$refs.ImPagination.reset(),this.getTableRef()){var e=this.getTableRef().getTableInstance();e.clearSelection()}this.getList()},getList:function(){var e=this;this.loading=!0,Object(d["d"])(this.queryParams).then((function(t){200===t.code&&(e.total=t.data.totalCount,e.tableData=t.data.list||[],e.checkSelectItems())})).finally((function(){e.loading=!1}))},onCancel:function(){this.closeDialog()},confirmInfo:function(){this.addItems(),this.closeDialog()},addItems:function(){var e=this,t=[];this.selectItems.forEach((function(n){e.selectedCode.includes(n.objectCode)||t.push(n)})),this.$emit("addSupplies",t),this.selectItems.length=0}}},D=O,E=Object(v["a"])(D,l,u,!1,null,null,null),T=E.exports,$={name:"FieldSupplySelect",components:{SupplyManagementList:s["default"],SupplySelectDialog:T},mixins:[o["a"]],inject:{formProps:{default:function(){}}},props:{value:{type:Array,default:function(){return[]}},attrs:{type:Object,default:function(){return{}}}},data:function(){return{tableData:[],tableConfigAttrs:{noStick:!0,"summary-method":this.getSummaries,"show-summary":!0},supplySelectFormItemArr:["groupBrandType","materialName","erpCode","operate"]}},computed:{isView:function(){return this.attrs.isView},applicantCode:function(){var e;return null===this||void 0===this||null===(e=this.formProps)||void 0===e?void 0:e.applicantCode},applyType:function(){var e;return null===this||void 0===this||null===(e=this.formProps)||void 0===e?void 0:e.applyType},departmentObjectCode:function(){return this.$bizui.departmentObjectCode},userInfo:function(){return this.$bizui.userInfo},showTotalArea:function(){var e,t=(null===this||void 0===this||null===(e=this.userInfo)||void 0===e?void 0:e.objectCode)===this.applicantCode;return!t&&this.isView},tableItemArr:function(){return["supplyImage","supplyName","leval","materialSpec","consumeType","supplyChannelType",{prop:"materialUnit",label:"主计量单位",attrs:{"min-width":100}},"price","erpCount","applyCount","subtotal",this.showTotalArea?"approvalTotal":"",this.isView?"":"clientRemoveOpt"]}},watch:{value:{immediate:!0,handler:function(e){this.setTableData()},deep:!0}},methods:{onAddSupplies:function(e){var t=this;e.forEach((function(e){t.$set(e,"applyCount",1)})),this.tableData=[].concat(Object(a["a"])(this.tableData),Object(a["a"])(e)),this.onUpdate()},showSelectDialog:function(){this.$refs.SupplySelectDialog.show(this.tableData)},getSummaries:function(e){var t=[];return t[0]="合计",t[9]=this.totalCount(),t[10]=this.totalPrice(),t},totalCount:function(){var e=this.tableData,t=0;return e.forEach((function(e){var n=e.applyCount||0;if("0"===e.isGroup)t+=Number(n);else{var i=e.groupDetails||[];i.forEach((function(e){t+=e.groupCount*n}))}})),t},totalPrice:function(){var e=0,t=this.tableData;return t.forEach((function(t){var n=t.applyCount||0;e+=t.salePrice*n})),Object(k["a"])(e)+"元"},setTableData:function(){try{this.tableData=JSON.parse(JSON.stringify(this.value))}catch(e){this.tableData=void 0}},onRemoveItem:function(e,t){this.tableData.splice(t,1),this.onUpdate()},onUpdate:function(){this.$emit("input",this.tableData),this.$emit("change",this.tableData),this.dispatch("ElFormItem","el.form.change",this.tableData)}}},I=$,N=Object(v["a"])(I,i,r,!1,null,null,null);t["default"]=N.exports},bc3a:function(e,t,n){e.exports=n("cee4")},be6a:function(e,t,n){"use strict";n("0651")},bec6:function(e,t,n){"use strict";n("7e4b")},c04e:function(e,t,n){"use strict";var i=n("c65b"),r=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),l=n("b622"),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||a(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c1df:function(e,t,n){(function(e){var t;//! moment.js
25
25
  //! version : 2.30.1
26
26
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
27
27
  //! license : MIT