(function(t){function e(e){for(var i,l,r=e[0],n=e[1],c=e[2],u=0,d=[];u=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:l}}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 s,o=!0,r=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw s}}}}function S(t,e){if(t){if("string"===typeof t)return _(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a0&&a(D,i)}},P=($={},Object(n["a"])($,g,(function(t,e){t.adminId=e,""===e?Object(q["e"])():Object(q["i"])(e)})),Object(n["a"])($,y,(function(t,e){t.token=e,""===e?Object(q["h"])():Object(q["l"])(e)})),Object(n["a"])($,C,(function(t,e){t.customerId=e,""===e?Object(q["g"])():Object(q["k"])(e)})),Object(n["a"])($,k,(function(t,e){t.companyName=e,""===e?Object(q["f"])():Object(q["j"])(e)})),Object(n["a"])($,b,(function(t,e){t.userName=e})),Object(n["a"])($,v,(function(t,e){t.employeeName=e})),Object(n["a"])($,w,(function(t,e){t.avatar=e})),Object(n["a"])($,x,(function(t,e){t.authRules=e})),Object(n["a"])($,D,(function(t,e){var a=F["b"].concat(e);t.routers=JSON.parse(JSON.stringify(a))})),$),B={state:R,getters:E,actions:j,mutations:P};var U=!1;e["a"]=new s.a.Store({actions:o,getters:r,modules:{app:I,admin:B},strict:U})},"43ef":function(t,e,a){"use strict";a.r(e),a.d(e,"timeAgo",(function(){return s})),a.d(e,"parseTime",(function(){return o})),a.d(e,"rTime",(function(){return r})),a.d(e,"formatTime",(function(){return n})),a.d(e,"nFormatter",(function(){return c})),a.d(e,"html2Text",(function(){return u})),a.d(e,"toThousandslsFilter",(function(){return d})),a.d(e,"renderSize",(function(){return p}));a("6b54"),a("a481");var i=a("53ca");a("c5f6");function l(t,e){return 1===t?t+e:t+e+"s"}function s(t){var e=Date.now()/1e3-Number(t);return e<3600?l(~~(e/60)," minute"):e<86400?l(~~(e/3600)," hour"):l(~~(e/86400)," day")}function o(t,e){if(0===arguments.length)return null;10===(t+"").length&&(t=1e3*+t);var a,l=e||"{y}-{m}-{d} {h}:{i}:{s}";a="object"===Object(i["a"])(t)?t:new Date(parseInt(t));var s={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},o=l.replace(/{(y|m|d|h|i|s|a)+}/g,(function(t,e){var a=s[e];return"a"===e?["一","二","三","四","五","六","日"][a-1]:(t.length>0&&a<10&&(a="0"+a),a||0)}));return o}function r(t){var e=new Date(t).toJSON();return new Date(new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"")}function n(t,e){t=1e3*+t;var a=new Date(t),i=Date.now(),l=(i-a)/1e3;return l<30?"刚刚":l<3600?Math.ceil(l/60)+"分钟前":l<86400?Math.ceil(l/3600)+"小时前":l<172800?"1天前":e?o(t,e):a.getMonth()+1+"月"+a.getDate()+"日"+a.getHours()+"时"+a.getMinutes()+"分"}function c(t,e){for(var a=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=a[i].value)return(t/a[i].value+.1).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+a[i].symbol;return t.toString()}function u(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText}function d(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function p(t){if(!t||null===t||""===t)return"";var e=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],a=parseFloat(t),i=Math.floor(Math.log(a)/Math.log(1024)),l=a/Math.pow(1024,i);return l=l.toFixed(0),l+e[i]}},"449c":function(t,e,a){},"456c":function(t,e,a){},"485b":function(t,e,a){"use strict";a.d(e,"d",(function(){return l})),a.d(e,"e",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"f",(function(){return c}));var i=a("a27e");function l(t){return Object(i["a"])({url:"/salewarehouse/register/list",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/salewarehouse/register/save",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/salewarehouse/register/check",method:"post",data:t})}function r(t){return Object(i["a"])({url:"/salewarehouse/register/getCheckcode",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/salewarehouse/register/deleteResiter",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/salewarehouse/reset/passwd",method:"post",data:t})}},4926:function(t,e,a){"use strict";a("cbba")},"4e21":function(t,e,a){"use strict";a("b255")},"50a2":function(t,e,a){"use strict";a("1edb")},"56d7":function(t,e,a){"use strict";a.r(e);a("456d"),a("ac6a"),a("cadf"),a("551c"),a("f751"),a("097d"),a("db4d");var i=a("8bbf"),l=a.n(i),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},o=[],r={name:"app"},n=r,c=(a("5c0b"),a("2877")),u=Object(c["a"])(n,s,o,!1,null,null,null),d=u.exports,p=a("5f72"),m=a.n(p),h=(a("0fae"),a("a18c")),f=a("4360");a("0fae"),l.a.use(m.a,{size:"small",zIndex:3e3}),l.a.use(p["Pagination"]),l.a.use(p["Dialog"]),l.a.use(p["Autocomplete"]),l.a.use(p["Dropdown"]),l.a.use(p["DropdownMenu"]),l.a.use(p["DropdownItem"]),l.a.use(p["Menu"]),l.a.use(p["Submenu"]),l.a.use(p["MenuItem"]),l.a.use(p["MenuItemGroup"]),l.a.use(p["Input"]),l.a.use(p["InputNumber"]),l.a.use(p["Radio"]),l.a.use(p["RadioGroup"]),l.a.use(p["RadioButton"]),l.a.use(p["Checkbox"]),l.a.use(p["CheckboxButton"]),l.a.use(p["CheckboxGroup"]),l.a.use(p["Switch"]),l.a.use(p["Select"]),l.a.use(p["Option"]),l.a.use(p["OptionGroup"]),l.a.use(p["Button"]),l.a.use(p["ButtonGroup"]),l.a.use(p["Table"]),l.a.use(p["TableColumn"]),l.a.use(p["DatePicker"]),l.a.use(p["TimeSelect"]),l.a.use(p["TimePicker"]),l.a.use(p["Popover"]),l.a.use(p["Tooltip"]),l.a.use(p["Breadcrumb"]),l.a.use(p["BreadcrumbItem"]),l.a.use(p["Form"]),l.a.use(p["FormItem"]),l.a.use(p["Tabs"]),l.a.use(p["TabPane"]),l.a.use(p["Tag"]),l.a.use(p["Tree"]),l.a.use(p["Alert"]),l.a.use(p["Slider"]),l.a.use(p["Icon"]),l.a.use(p["Row"]),l.a.use(p["Col"]),l.a.use(p["Upload"]),l.a.use(p["Progress"]),l.a.use(p["Badge"]),l.a.use(p["Card"]),l.a.use(p["Rate"]),l.a.use(p["Steps"]),l.a.use(p["Step"]),l.a.use(p["Carousel"]),l.a.use(p["CarouselItem"]),l.a.use(p["Collapse"]),l.a.use(p["CollapseItem"]),l.a.use(p["Cascader"]),l.a.use(p["ColorPicker"]),l.a.use(p["Transfer"]),l.a.use(p["Container"]),l.a.use(p["Header"]),l.a.use(p["Aside"]),l.a.use(p["Main"]),l.a.use(p["Footer"]),l.a.use(p["Loading"].directive),l.a.prototype.$loading=p["Loading"].service,l.a.prototype.$msgbox=p["MessageBox"],l.a.prototype.$alert=p["MessageBox"].alert,l.a.prototype.$confirm=p["MessageBox"].confirm,l.a.prototype.$prompt=p["MessageBox"].prompt,l.a.prototype.$notify=p["Notification"],l.a.prototype.$message=p["Message"];var g=a("43ef"),y=(a("8e6e"),a("ade3")),b=a("323e"),v=a.n(b),w=(a("a5d8"),a("5f87"));function x(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function D(t){for(var e=1;e=0||(!e||t.some((function(t){return e.indexOf(t)>=0}))))}function k(t,e){return t.indexOf("admin")>=0||!e.meta||!e.meta.authRule||t.some((function(t){return e.meta.authRule.indexOf(t)>=0}))}function Q(t,e){var a=t.filter((function(t){return!!k(e,t)&&(t.children&&t.children.length&&(t.children=Q(t.children,e)),!0)}));return a}var S=["/login","/401","/404","/500","/register","/registerApp","/forgetPasswd","/pcIntent"];h["c"].beforeEach((function(t,e,a){if(v.a.start(),-1===S.indexOf(t.path)){var i=Object(w["a"])();if(console.log("-----------------"+i+"啥情况"),"undefined"!==i&&""!==i&&i)return"/login"===t.path?(a({path:"/"}),void v.a.done()):f["a"].getters.userName||f["a"].getters.authRules&&0!==f["a"].getters.authRules.length?C(f["a"].getters.authRules,t.meta.authRule)?void a():(a({path:"/401",query:{noGoBack:!0}}),void v.a.done()):void f["a"].dispatch("userInfo").then((function(e){var i=e.authRules||[];if(!(i instanceof Array)||0===i.length)return p["Message"].error("权限验证失败,请联系管理员~"),a({path:"/login",query:{noGoBack:!0}}),void v.a.done();var l=Q(h["a"],i);h["c"].addRoutes(l),a(D({},t)),f["a"].dispatch("filterRouter",{accessedRouters:l}).then((function(){}))})).catch((function(){f["a"].dispatch("fedLogout").then((function(){p["Message"].error("验证失败,请重新登录");var e=t.fullPath;f["a"].dispatch("loginOut").then((function(){a({path:"/login",query:{redirect:e}})}))}))}));var l=t.fullPath;f["a"].dispatch("loginOut").then((function(){a({path:"/login",query:{redirect:l}})})),v.a.done()}else a()})),h["c"].afterEach((function(){v.a.done()}));var _={install:function(t,e){t.prototype.$isBlank=function(t){return void 0===t||null===t||""===t},t.prototype.$isNotBlank=function(t){return void 0!==t&&null!==t&&""!==t}}},$=(a("6f3b"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.iconClass?a("svg",{staticClass:"svg-icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":t.iconName}})]):t._e()}),T=[],L={name:"icon-svg",props:{iconClass:{type:String,required:!0}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)}}},O=L,z=Object(c["a"])(O,$,T,!1,null,null,null),I=z.exports,N=(a("3439"),a("bc3a")),F=a.n(N),q=(a("8058"),a("a27e"));l.a.component("icon-svg",I),F.a.defaults.withCredentials=!0,Object.keys(g).forEach((function(t){l.a.filter(t,g[t])})),l.a.use(_),l.a.use(m.a),l.a.config.productionTip=!1;var V="",R=function(){F.a.get("./config.json").then((function(t){V=t.data.BASE_URL,q["a"].defaults.baseURL=V,new l.a({router:h["c"],store:f["a"],render:function(t){return t(d)}}).$mount("#app")}))};R()},"575e":function(t,e,a){"use strict";a("2852")},5830:function(t,e,a){"use strict";a("d4ff")},5880:function(t,e){t.exports=Vuex},"5b08":function(t,e,a){},"5b27":function(t,e,a){},"5c0b":function(t,e,a){"use strict";a("5e27")},"5da4":function(t,e,a){"use strict";a("5e36")},"5e27":function(t,e,a){},"5e36":function(t,e,a){},"5f72":function(t,e){t.exports=ELEMENT},"5f87":function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"l",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"a",(function(){return d})),a.d(e,"i",(function(){return p})),a.d(e,"e",(function(){return m})),a.d(e,"c",(function(){return h})),a.d(e,"k",(function(){return f})),a.d(e,"g",(function(){return g})),a.d(e,"b",(function(){return y})),a.d(e,"j",(function(){return b})),a.d(e,"f",(function(){return v}));var i=a("da6f"),l="ADMIN-ID",s="ADMIN-TOKEN",o="customerId",r="companyName";function n(){return Object(i["a"])(s)}function c(t){return Object(i["c"])(s,t,365)}function u(){return Object(i["b"])(s)}function d(){return Object(i["a"])(l)}function p(t){return Object(i["c"])(l,t,365)}function m(){return Object(i["b"])(l)}function h(){return Object(i["a"])(o)}function f(t){return Object(i["c"])(o,t)}function g(){return Object(i["b"])(o)}function y(){return Object(i["a"])(r)}function b(t){return Object(i["c"])(r,t)}function v(){return Object(i["b"])(r)}},6194:function(t,e,a){"use strict";a("11d0")},6389:function(t,e){t.exports=VueRouter},"63e0":function(t,e){},"646d":function(t,e,a){},"65ab":function(t,e,a){},"668f":function(t,e,a){},"683b":function(t,e,a){},"69a2":function(t,e,a){},"6f3b":function(t,e){(function(t){var e='',a=function(){var t=document.getElementsByTagName("script");return t[t.length-1]}(),i=a.getAttribute("data-injectcss"),l=function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var a=function t(){document.removeEventListener("DOMContentLoaded",t,!1),e()};document.addEventListener("DOMContentLoaded",a,!1)}else document.attachEvent&&i(t,e);function i(t,e){var a=t.document,i=!1,l=function(){i||(i=!0,e())},s=function t(){try{a.documentElement.doScroll("left")}catch(e){return void setTimeout(t,50)}l()};s(),a.onreadystatechange=function(){"complete"==a.readyState&&(a.onreadystatechange=null,l())}}},s=function(t,e){e.parentNode.insertBefore(t,e)},o=function(t,e){e.firstChild?s(t,e.firstChild):e.appendChild(t)};function r(){var t,a;t=document.createElement("div"),t.innerHTML=e,e=null,a=t.getElementsByTagName("svg")[0],a&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",o(a,document.body))}if(i&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(n){console&&console.log(n)}}l(r)})(window)},"6f7b":function(t,e,a){"use strict";a("ef3e")},7129:function(t,e,a){},7252:function(t,e,a){"use strict";a("0019")},7401:function(t,e,a){"use strict";a.d(e,"d",(function(){return l})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return r}));var i=a("a27e");function l(t,e){return Object(i["a"])({url:"/admin/auth/login/userInfo",method:"get",params:{id:t,token:e}})}function s(t,e){return console.log(t+" "+e),Object(i["a"])({url:"/login",method:"post",data:{username:t,password:e}})}function o(t,e){return Object(i["a"])({url:"/admin/auth/login/out",method:"post",data:{uid:t,token:e}})}function r(t){return Object(i["a"])({url:"/admin/auth/login/password",method:"post",data:t})}},"74b8":function(t,e,a){},"74bf":function(t,e,a){"use strict";a("eafe")},"74e7":function(t,e,a){"use strict";a("2fd6")},7524:function(t,e,a){"use strict";a("1d4b")},"7da8":function(t,e,a){},8058:function(t){t.exports=JSON.parse("{}")},"80f5":function(t,e,a){"use strict";a("f63d")},8451:function(t,e,a){"use strict";a("9fe6")},"863e":function(t,e){window.global_config={BASE_URL:"http://139.159.187.130:8080"}},8849:function(t,e,a){"use strict";a("456c")},"88de":function(t,e,a){"use strict";a("a612")},"8b7e":function(t,e,a){},"8bbf":function(t,e){t.exports=Vue},"8fb5":function(t,e,a){},9140:function(t,e,a){},"93e5":function(t,e,a){"use strict";a("9acc")},"94d5":function(t,e){},"956b":function(t,e,a){"use strict";a("1558")},"95bd":function(t,e,a){"use strict";a("449c")},9776:function(t,e,a){},"9acc":function(t,e,a){},"9af1":function(t,e,a){"use strict";a("9af7")},"9af7":function(t,e,a){},"9ba4":function(t,e,a){"use strict";a("683b")},"9cb8":function(t,e,a){},"9fe6":function(t,e,a){},a18c:function(t,e,a){"use strict";a.d(e,"b",(function(){return my})),a.d(e,"a",(function(){return hy}));var i=a("8bbf"),l=a.n(i),s=a("6389"),o=a.n(s),r=a("3439"),n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-container",{staticClass:"wrapper"},[i("el-scrollbar",{staticClass:"container-left",class:{"slide-hide":t.isCollapse,"slide-in-left":t.menuShow},attrs:{"wrap-class":"container-left-wrap"}},[i("div",{staticClass:"logo"},[i("img",{staticStyle:{width:"100px",height:"100px",margin:"15px 15px 0px 15px"},attrs:{alt:"element-logo",src:a("39e2")}}),i("span",[t._v("医院供应商自助平台")])]),i("el-menu",{staticClass:"menu",staticStyle:{border:"none"},attrs:{"default-active":t.onRoutes,collapse:t.isCollapse,"text-color":"#696969","background-color":"#F5F5F5","active-text-color":"#B22222","unique-opened":"",router:""}},t._l(t.routers,(function(t){return i("sidebar-item",{key:t.path,attrs:{item:t}})})),1)],1),i("el-container",{staticClass:"container-box",class:{"slide-hide":t.isCollapse,"slide-in-left":t.menuShow}},[i("el-header",{staticClass:"header"},[i("div",{staticClass:"header-left"},[i("div",{staticClass:"header-toggle",on:{click:function(e){t.menuShow=!t.menuShow,t.showSideBar()}}},[i("span"),i("span"),i("span")]),i("div",{staticClass:"slide-toggle",class:{"slide-toggle-open":t.isCollapse},on:{click:t.toggleSideBar}},[i("span"),i("span"),i("span")])]),i("div",{staticClass:"header-tabs-box"},[i("el-breadcrumb",{staticClass:"app-levelbar",attrs:{separator:"/"}},t._l(t.levelList,(function(e){return i("el-breadcrumb-item",{key:e.path},[i("span",[t._v(t._s(e.name))]),i("router-link",[t._v(t._s(e.name))])],1)})),1)],1),i("div",{staticClass:"header-right"},[i("span",{staticStyle:{"margin-right":"10px","margin-top":"2px"}},[t._v(t._s(t.company.Name))]),i("el-dropdown",{attrs:{trigger:"click"}},[i("span",[t._v(t._s(t.username)),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",[i("span",{on:{click:t.handlePassword}},[t._v("修改密码")])]),i("el-dropdown-item",[i("span",{on:{click:t.loginOut}},[t._v("退出登录")])])],1)],1)],1),i("el-dialog",{attrs:{title:"修改密码","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.passwordFormVisible,width:"85%",top:"5vh"},on:{"update:visible":function(e){t.passwordFormVisible=e}}},[i("el-form",{ref:"passwordFormData",attrs:{model:t.passwordFormData,rules:t.passwordFormDataRules}},[i("el-form-item",{attrs:{label:"原始密码",prop:"oldPassword"}},[i("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:t.passwordFormData.oldPassword,callback:function(e){t.$set(t.passwordFormData,"oldPassword",e)},expression:"passwordFormData.oldPassword"}})],1),i("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[i("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:t.passwordFormData.newPassword,callback:function(e){t.$set(t.passwordFormData,"newPassword",e)},expression:"passwordFormData.newPassword"}})],1),i("el-form-item",{attrs:{label:"确认密码",prop:"check_new_password"}},[i("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:t.passwordFormData.check_new_password,callback:function(e){t.$set(t.passwordFormData,"check_new_password",e)},expression:"passwordFormData.check_new_password"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{nativeOn:{click:function(e){t.passwordFormVisible=!t.passwordFormVisible}}},[t._v("取消\n ")]),i("el-button",{attrs:{type:"primary",loading:t.passwordLoading},nativeOn:{click:function(e){return t.addSubmit("passwordFormData")}}},[t._v("提交\n ")])],1)],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.menuShow,expression:"menuShow"}],staticClass:"main-mask",on:{click:function(e){t.menuShow=!t.menuShow}}}),i("el-main",{staticClass:"main"},[i("div",{staticClass:"content-box",class:{"content-collapse":t.collapse}},[i("div",{staticClass:"content"},[i("transition",{attrs:{name:"move",mode:"out-in"}},[i("keep-alive",{attrs:{include:t.tagsList}},[i("router-view")],1)],1),i("el-backtop",{attrs:{target:".content"}})],1)])]),i("div",{staticStyle:{position:"absolute",bottom:"0",left:"50%",transform:"translate(-50%, -50%)"}},[i("a",{staticStyle:{color:"#000000","font-size":"12px"},attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo"}},[t._v("\n 技术支持:厦门高立新鹏软件科技有限公司   闽公网安备35020302034269号 \n ")]),i("a",{staticStyle:{color:"#000000","font-size":"10px"},attrs:{href:"http://beian.miit.gov.cn"}},[t._v("闽ICP备17019234号")])])],1)],1)},c=[],u=(a("8e6e"),a("ac6a"),a("456d"),a("7f7f"),a("ade3")),d=a("5880"),p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return!t.item.hidden&&t.item.children?a("div",[t.item.hidden||!t.item.noDropdown||t.item.children[0].children?t.item.noDropdown||t.item.hidden?t._e():a("el-submenu",{staticClass:"nest-menu",attrs:{index:t.item.path}},[a("template",{slot:"title"},[t.item.icon?a("icon-svg",{attrs:{"icon-class":t.item.icon}}):t._e(),t.item.name?a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.item.name))]):t._e()],1),t._l(t.item.children,(function(e){return e.hidden?t._e():[e.children&&e.children.length>0?a("sidebar-item",{key:e.path,attrs:{item:e}}):a("router-link",{key:e.path,attrs:{to:t.item.path+"/"+e.path}},[a("el-menu-item",{attrs:{index:t.item.path+"/"+e.path}},[e.icon?a("icon-svg",{attrs:{"icon-class":e.icon}}):t._e(),a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])],1)],1)]}))],2):a("router-link",{attrs:{to:t.item.path+"/"+t.item.children[0].path}},[a("el-menu-item",{staticClass:"submenu-title-noDropdown",attrs:{index:t.item.path+"/"+t.item.children[0].path}},[t.item.icon?a("icon-svg",{attrs:{"icon-class":t.item.icon}}):t._e(),a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.item.name))])],1)],1)],1):t._e()},m=[],h={name:"SidebarItem",props:{item:{}},methods:{hasFilterChildrenHidden:function(t){var e=t.filter((function(t){return!t.hidden}));return 1===e.length}}},f=h,g=a("2877"),y=Object(g["a"])(f,p,m,!1,null,null,null),b=y.exports,v=a("7401"),w=a("5f87"),x=a("0d61"),D=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showTags?a("div",{staticClass:"tags"},[a("ul",t._l(t.tagsList,(function(e,i){return a("li",{key:i,staticClass:"tags-li",class:{active:t.isActive(e.path)}},[a("router-link",{staticClass:"tags-li-title",attrs:{to:e.path}},[t._v("\n "+t._s(e.title)+"\n ")]),a("span",{staticClass:"tags-li-icon",on:{click:function(e){return t.closeTags(i)}}},[a("i",{staticClass:"el-icon-close"})])],1)})),0),a("div",{staticClass:"tags-close-box"},[a("el-dropdown",{on:{command:t.handleTags}},[a("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("\n 标签选项"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown",size:"small"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"other"}},[t._v("关闭其他")]),a("el-dropdown-item",{attrs:{command:"all"}},[t._v("关闭所有")])],1)],1)],1)]):t._e()},C=[],k=new l.a,Q=k,S={data:function(){return{tagsList:[]}},methods:{isActive:function(t){return t===this.$route.fullPath},closeTags:function(t){var e=this.tagsList.splice(t,1)[0],a=this.tagsList[t]?this.tagsList[t]:this.tagsList[t-1];a?e.path===this.$route.fullPath&&this.$router.push(a.path):this.$router.push("/")},closeAll:function(){this.tagsList=[],this.$router.push("/")},closeOther:function(){var t=this,e=this.tagsList.filter((function(e){return e.path===t.$route.fullPath}));this.tagsList=e},setTags:function(t){var e=this.tagsList.some((function(e){return e.path===t.fullPath}));e||(this.tagsList.length>=8&&this.tagsList.shift(),console.log("路由---"+t.name+"----"+t.fullPath+"---"+t.matched[1].components.default.name),this.tagsList.push({title:t.name,path:t.fullPath,name:t.name})),Q.$emit("tags",this.tagsList)},handleTags:function(t){"other"===t?this.closeOther():this.closeAll()}},computed:{showTags:function(){return this.tagsList.length>0}},watch:{$route:function(t,e){console.log("路由---"+t.meta.title+"----"+t.fullPath+"---"+t.matched[1].components.default.name),this.setTags(t)}},created:function(){var t=this;this.setTags(this.$route),Q.$on("close_current_tags",(function(){for(var e=0,a=t.tagsList.length;e0?t.$router.push(t.tagsList[e-1].path):t.$router.push("/"),t.tagsList.splice(e,1);break}}}))}},_=S,$=(a("74bf"),Object(g["a"])(_,D,C,!1,null,null,null)),T=$.exports,L=a("4360");function O(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function z(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:"post",i="add"===e?"/admin/auth/admin/save":"/admin/auth/admin/edit";return Object(et["a"])({url:i,method:a,data:t})}function ot(t){return Object(et["a"])({url:"/admin/auth/admin/delete",method:"post",data:t})}var rt={id:"",passWord:"",userName:"",checkPassword:"",employeeName:"",userFlag:1,roles:[]},nt={data:function(){var t=this,e=function(t,e,a){""===e?a(new Error("请输入密码")):a()},a=function(e,a,i){""===a?i(new Error("请再次输入密码")):a!==t.formData.passWord?i(new Error("两次输入密码不一致!")):i()};return{roles:[],query:{userName:"",userFlag:"",page:1,limit:20,roleId:"",customerId:L["a"].getters.customerId},list:[],total:0,loading:!0,index:null,formName:null,formMap:{add:"新增",edit:"编辑"},formLoading:!1,formVisible:!1,formData:rt,formRules:{},addRules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}],passWord:[{required:!0,message:"请输入密码",trigger:"blur"},{validator:e,trigger:"blur"}],checkPassword:[{required:!0,message:"请再次输入密码",trigger:"blur"},{validator:a,trigger:"blur"}],userFlag:[{required:!0,message:"请选择状态",trigger:"change"}]},editRules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}],userFlag:[{required:!0,message:"请选择状态",trigger:"change"}]},deleteLoading:!1}},methods:{onReset:function(){this.$router.push({path:""}),this.query={userName:"",userFlag:"",page:1,limit:20,roleId:"",customerId:L["a"].getters.customerId},this.getList()},onSubmit:function(){this.$router.push({path:"",query:this.query}),this.getList()},handleCurrentChange:function(t){this.query.page=t,this.getList()},getList:function(){var t=this;this.loading=!0,at(this.query).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0,t.roles=[]}))},getRoleList:function(){var t=this;it(this.query).then((function(e){t.roles=e.data.list||[]})).catch((function(){t.roles=[]}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields())},hideForm:function(){return this.formVisible=!this.formVisible,this.$refs["dataForm"].resetFields(),!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(rt)),null!==e&&(this.formData=Object.assign({},e)),this.formName="add",this.formRules=this.addRules,null!==t&&(this.index=t,this.formName="edit",this.formRules=this.editRules)},formSubmit:function(){var t=this;console.log(this.formData.userName+"-----"+this.formData.employeeName+this.formData.userFlag),this.$refs["dataForm"].validate((function(e){if(e){t.formLoading=!0;var a=Object.assign({},t.formData);st(a,t.formName).then((function(e){if(t.formLoading=!1,2e4!==e.code)return t.$message.error(e.message),!1;t.$message.success("操作成功"),t.formVisible=!1,"add"===t.formName?e.data&&e.data.id&&(a.id=e.data.id,t.list.unshift(a)):t.list.splice(t.index,1,a),t.resetForm()}))}}))},handleDel:function(t,e){var a=this;e.id&&this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then((function(){var i={id:e.id};a.deleteLoading=!0,ot(i).then((function(e){if(a.deleteLoading=!1,2e4!==e.code)return a.$message.error(e.message),!1;a.$message.success("操作成功"),a.list.splice(t,1)})).catch((function(){a.deleteLoading=!1}))})).catch((function(){a.$message.info("取消删除")}))}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},mounted:function(){},created:function(){var t=this.$route.query;this.query=Object.assign(this.query,t),this.query.limit=parseInt(this.query.limit),this.getList(),this.getRoleList()}},ct=nt,ut=Object(g["a"])(ct,Z,tt,!1,null,null,null),dt=ut.exports,pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"角色名称"},model:{value:t.query.name,callback:function(e){t.$set(t.query,"name",e)},expression:"query.name"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"状态"},model:{value:t.query.status,callback:function(e){t.$set(t.query,"status",e)},expression:"query.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"禁用",value:"0"}}),a("el-option",{attrs:{label:"正常",value:"1"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")]),a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return t.handleForm(null,null)}}},[t._v("新增\n ")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"角色名称",prop:"name"}}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("statusFilterType")(e.row.status)}},[t._v(t._s(t._f("statusFilterName")(e.row.status))+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"是否客户角色",prop:"isCustomer"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.isTip[e.row.isCustomer]))])]}}])}),a("el-table-column",{attrs:{label:"备注说明","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleAuth(e.row.id)}}},[t._v("授权\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleForm(e.$index,e.row)}}},[t._v("编辑\n ")]),a("el-button",{attrs:{type:"text",size:"small",disabled:16===e.row.id,loading:t.deleteLoading},nativeOn:{click:function(a){return t.handleDel(e.$index,e.row)}}},[t._v("删除\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.query.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-dialog",{staticClass:"dialog",attrs:{title:"授权","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.authFormVisible},on:{"update:visible":function(e){t.authFormVisible=e}}},[a("el-tree",{ref:"tree",staticStyle:{"max-height":"75vh","overflow-y":"auto"},attrs:{data:t.authList,"show-checkbox":"","default-expand-all":"","node-key":"id",props:t.defaultProps,"default-checked-keys":t.authDefaultCheckedKeys}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(e){t.authFormVisible=!t.authFormVisible}}},[t._v("取消\n ")]),a("el-button",{attrs:{type:"primary",loading:t.authLoading},nativeOn:{click:function(e){return t.authSubmit()}}},[t._v("提交\n ")])],1)],1),a("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:t.formMap[t.formName],visible:t.formVisible,"before-close":t.hideForm,width:"85%",top:"5vh"},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"listorder"}},[a("el-input",{attrs:{type:"","auto-complete":"off"},model:{value:t.formData.listorder,callback:function(e){t.$set(t.formData,"listorder",e)},expression:"formData.listorder"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{attrs:{disabled:16===t.formData.id},model:{value:t.formData.status,callback:function(e){t.$set(t.formData,"status",e)},expression:"formData.status"}},[a("el-radio",{attrs:{label:0}},[t._v("禁用")]),a("el-radio",{attrs:{label:1}},[t._v("正常")])],1)],1),a("el-form-item",{attrs:{label:"是否客户用户",prop:"isCustomer"}},[a("el-radio-group",{attrs:{disabled:16===t.formData.id},model:{value:t.formData.isCustomer,callback:function(e){t.$set(t.formData,"isCustomer",e)},expression:"formData.isCustomer"}},[a("el-radio",{attrs:{label:0}},[t._v("否")]),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1),a("el-form-item",{attrs:{label:"备注说明"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(e){return t.hideForm.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.formLoading},nativeOn:{click:function(e){return t.formSubmit()}}},[t._v("提交\n ")])],1)],1)],1)},mt=[],ht=(a("ac4d"),a("8a81"),a("1c4c"),a("6b54"),a("2909"));a("5df3"),a("4f7f");function ft(t){return Object(et["a"])({url:"/admin/auth/role/index",method:"get",params:t})}function gt(t){return Object(et["a"])({url:"/admin/auth/role/authList",method:"get",params:t})}function yt(t){return Object(et["a"])({url:"/admin/auth/role/auth",method:"post",data:t})}function bt(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",i="add"===e?"/admin/auth/role/save":"/admin/auth/role/edit";return Object(et["a"])({url:i,method:a,data:t})}function vt(t){return Object(et["a"])({url:"/admin/auth/role/delete",method:"post",data:t})}function wt(t,e){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=xt(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,l=function(){};return{s:l,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:l}}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 s,o=!0,r=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw s}}}}function xt(t,e){if(t){if("string"===typeof t)return Dt(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Dt(t,e):void 0}}function Dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a2&&void 0!==arguments[2]?arguments[2]:"post",i="edit"!==e?"/admin/auth/permission_rule/save":"/admin/auth/permission_rule/edit";return Object(et["a"])({url:i,method:a,data:t})}function zt(t){return Object(et["a"])({url:"/admin/auth/permission_rule/delete",method:"post",data:t})}var It={id:"",pid:"2",name:"",title:"",status:1,condition:"",listorder:""},Nt={data:function(){return{query:{name:"",status:""},mergeList:[],node:null,defaultProps:{children:"children",label:"title"},treeList:[],loading:!0,index:null,formName:null,formMap:{add:"新增",edit:"编辑"},formLoading:!1,formVisible:!1,formData:It,formRules:{name:[{required:!0,message:"请输入规则名",trigger:"blur"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]},pidData:{},deleteLoading:!1}},methods:{renderContent:function(t,e){var a=this,i=e.node,l=e.data;e.store;return t("span",{style:"flex: 1; display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding-right: 8px;"},[t("span",[t("span",{attrs:{title:l.name}},[i.label])]),t("span",[t("el-button",{style:"font-size: 12px;",attrs:{type:"text"},on:{click:function(){return a.handleForm(i,l,"add")}}},["添加子菜单"]),t("el-button",{style:"font-size: 12px;",attrs:{type:"text"},on:{click:function(){return a.handleForm(i,l,"edit")}}},["编辑"]),t("el-button",{style:"font-size: 12px;",attrs:{type:"text"},on:{click:function(){return a.handleDel(i,l)}}},["删除"])])])},onReset:function(){this.$router.push({path:""}),this.query={name:"",status:""},this.getList()},onSubmit:function(){this.getList()},getList:function(){var t=this;this.loading=!0,Lt(this.query).then((function(e){t.loading=!1,t.mergeList=e.data.list||[],t.treeList=e.data.tree_list||[]})).catch((function(){t.loading=!1,t.mergeList=[],t.treeList=[]}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.getList())},hideForm:function(){return this.formVisible=!this.formVisible,!0},handleForm:function(t,e,a){this.formVisible=!0,this.pidData=e||null,It.pid=e&&parseInt(e.id)||"",this.formData=JSON.parse(JSON.stringify(It)),"edit"===a&&(this.formData=Object.assign({},e),this.node=t),this.formData.pid=this.formData.pid?this.formData.pid:"",this.formName=a,e&&e.id&&(this.index=this.mergeList.findIndex((function(t){return t.id===e.id})))},formSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){t.formLoading=!0;var a=Object.assign({},t.formData);Ot(a,t.formName).then((function(e){if(t.formLoading=!1,2e4!==e.code)return t.$message.error(e.message),!1;if(t.$message.success("操作成功"),t.formVisible=!1,"edit"!==t.formName)e.data&&e.data.id&&(a.id=e.data.id,t.pidData?(t.pidData.children||t.$set(t.pidData,"children",[]),t.pidData.children.push(a)):t.mergeList.push(a));else{var i=t.node.parent,l=i.data.children||i.data,s=l.findIndex((function(t){return t.id===a.id}));l.splice(s,1,a)}t.resetForm()})).catch((function(){t.formLoading=!1}))}}))},handleDel:function(t,e){var a=this;if(e.children&&e.children.length>0)return this.$alert("请先删除子节点","提示",{confirmButtonText:"确定"}),!1;e.id&&this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then((function(){a.deleteLoading=!0;var i={id:e.id};zt(i).then((function(i){if(a.deleteLoading=!1,2e4!==i.code)return a.$message.error(i.message),!1;a.$message.success("删除成功");var l=t.parent,s=l.data.children||l.data,o=s.findIndex((function(t){return t.id===e.id}));s.splice(o,1)})).catch((function(){a.deleteLoading=!1}))})).catch((function(){a.$message.info("取消删除")}))}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常"};return e[t]}},mounted:function(){},created:function(){this.getList()}},Ft=Nt,qt=Object(g["a"])(Ft,$t,Tt,!1,null,null,null),Vt=qt.exports,Rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"参数名",prop:"paramName",width:"200"}}),a("el-table-column",{attrs:{label:"参数键",prop:"paramKey",width:"200"}}),a("el-table-column",{attrs:{label:"参数值",prop:"paramValue",width:"300"}}),a("el-table-column",{attrs:{label:"参数说明","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.paramExplain))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleForm(e.$index,e.row)}}},[t._v("设置\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.query.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-dialog",{attrs:{title:t.formMap[t.formName],"close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.formVisible,"before-close":t.hideForm,width:"85%",top:"5vh"},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-form-item",{attrs:{label:"参数名",prop:"paramName"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:!0},model:{value:t.formData.paramName,callback:function(e){t.$set(t.formData,"paramName",e)},expression:"formData.paramName"}})],1),a("el-form-item",{attrs:{label:"参数键",prop:"paramKey"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:!0},model:{value:t.formData.paramKey,callback:function(e){t.$set(t.formData,"paramKey",e)},expression:"formData.paramKey"}})],1),a("el-form-item",{attrs:{label:"参数值",prop:"paramValue"}},[a("el-input",{attrs:{type:"","auto-complete":"off"},model:{value:t.formData.paramValue,callback:function(e){t.$set(t.formData,"paramValue",e)},expression:"formData.paramValue"}})],1),a("el-form-item",{attrs:{label:"参数说明"}},[a("el-input",{attrs:{type:"textarea",disabled:!0,rows:"6"},model:{value:t.formData.paramExplain,callback:function(e){t.$set(t.formData,"paramExplain",e)},expression:"formData.paramExplain"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(e){return t.hideForm.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.formLoading},nativeOn:{click:function(e){return t.formSubmit()}}},[t._v("提交\n ")])],1)],1)],1)},Et=[];function jt(t){return Object(et["a"])({url:"/system/param/config/list",method:"get",params:t})}function Pt(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",i="add"===e?"/system/param/config/save":"/system/param/config/update";return Object(et["a"])({url:i,method:a,data:t})}function Bt(t){return Object(et["a"])({url:"/udiwms/sys/config/selectByKey",method:"get",params:t})}function Ut(t){return Object(et["a"])({url:"/udiwms/basic/thirdsys/selectIp",method:"get",params:t})}var At={id:"",parentId:"",paramName:"",paramKey:"",paramValue:"",paramStatus:1,paramType:1,paramExplain:""},Mt={data:function(){return{query:{paramName:"",paramStatus:1,page:1,limit:20},list:[],total:0,loading:!0,index:null,formName:null,formMap:{add:"新增",update:"设置"},formLoading:!1,formVisible:!1,formData:At,formRules:{paramValue:[{required:!0,message:"请输入参数值",trigger:"blur"}]},deleteLoading:!1}},methods:{onReset:function(){this.$router.push({path:""}),this.query={paramName:"",paramStatus:1,page:1,limit:20},this.getList()},onSubmit:function(){this.getList()},handleCurrentChange:function(t){this.query.page=t,this.getList()},getList:function(){var t=this;this.loading=!0,jt(this.query).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0,console.log("------------"),console.log(e)})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.getList())},hideForm:function(){return this.formVisible=!this.formVisible,!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(At)),null!==e&&(this.formData=Object.assign({},e)),this.formName="add",null!==t&&(this.index=t,this.formName="update")},formSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){t.formLoading=!0;var a=Object.assign({},t.formData);console.log("------2------"),a.paramValue=a.paramValue.trim(),Pt(a,t.formName).then((function(e){if(console.log(e),t.formLoading=!1,2e4!==e.code)return t.$message.error(e.message),!1;t.$message.success("操作成功"),t.formVisible=!1,"add"===t.formName?e.data&&e.data.id&&(a.id=e.data.id,t.list.unshift(a)):t.list.splice(t.index,1,a),t.resetForm(),t.getList()})).catch((function(){t.formLoading=!1}))}}))}},filters:{paramStatusFilterType:function(t){var e={0:"gray",1:"success"};return e[t]},paramStatusFilterName:function(t){var e={0:"禁用",1:"正常"};return e[t]}},mounted:function(){},created:function(){this.getList()}},Wt=Mt,Ht=Object(g["a"])(Wt,Rt,Et,!1,null,null,null),Kt=Ht.exports,Jt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"企业名称"},model:{value:t.filterQuery.batchNo,callback:function(e){t.$set(t.filterQuery,"batchNo",e)},expression:"filterQuery.batchNo"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"审核状态"},model:{value:t.filterQuery.checkType,callback:function(e){t.$set(t.filterQuery,"checkType",e)},expression:"filterQuery.checkType"}},[a("el-option",{attrs:{label:"未审核",value:"0"}}),a("el-option",{attrs:{label:"已审核",value:"1"}}),a("el-option",{attrs:{label:"未通过",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"用户名称",prop:"nickName",width:"220"}}),a("el-table-column",{attrs:{label:"企业名称",prop:"companyName",width:"230"}}),a("el-table-column",{attrs:{label:"联系人",prop:"realName",width:"160"}}),a("el-table-column",{attrs:{label:"手机",prop:"mobile",width:"120"}}),a("el-table-column",{attrs:{label:"电话",prop:"tel",width:"120"}}),a("el-table-column",{attrs:{label:"邮箱",prop:"email",width:"180"}}),a("el-table-column",{attrs:{label:"企业类型",prop:"bussinessStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.bussinessFlag[e.row.bussinessStatus]))])]}}])}),a("el-table-column",{attrs:{label:"所属地区",prop:"area",width:"200"}}),a("el-table-column",{attrs:{label:"审核状态",prop:"checkType",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.checkFlag[e.row.checkType]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[1!==e.row.checkType?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.checkDialog(e.row)}}},[t._v("审核\n ")]):t._e()]}}])})],1),a("el-dialog",{attrs:{title:"新用户审核",visible:t.centerDialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"70%",center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[a("el-form",{ref:"rowDataForm",staticStyle:{margin:"0 20px"},attrs:{model:t.rowData,rules:t.rowDataRules}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("用户名称: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.nickName,callback:function(e){t.$set(t.rowData,"nickName",e)},expression:"rowData.nickName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("企业名称: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"",disabled:null!=t.rowData.companyName,clearable:"true","reserve-keyword":"",placeholder:"请输入企业名称","remote-method":t.findMethod,size:"small",loading:t.loading},model:{value:t.rowData.companyName,callback:function(e){t.$set(t.rowData,"companyName",e)},expression:"rowData.companyName"}},t._l(t.fromOptions,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.name))])])})),1)],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("联系人: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.realName,callback:function(e){t.$set(t.rowData,"realName",e)},expression:"rowData.realName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("企业类型: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.bussinessFlag[t.rowData.bussinessStatus],callback:function(e){t.$set(t.bussinessFlag,t.rowData.bussinessStatus,e)},expression:"bussinessFlag[rowData.bussinessStatus]"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("电话: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.tel,callback:function(e){t.$set(t.rowData,"tel",e)},expression:"rowData.tel"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("所属地区: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.area,callback:function(e){t.$set(t.rowData,"area",e)},expression:"rowData.area"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("手机: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.mobile,callback:function(e){t.$set(t.rowData,"mobile",e)},expression:"rowData.mobile"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("邮箱: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.email,callback:function(e){t.$set(t.rowData,"email",e)},expression:"rowData.email"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("所属供应商: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:!1,filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入供应商名称","remote-method":t.remoteMethod,loading:t.sLoading,disabled:t.registerConfigMap.companyCheckStatus},on:{change:t.selectOne},model:{value:t.sValue,callback:function(e){t.sValue=e},expression:"sValue"}},t._l(t.sOptions,(function(e){return a("el-option",{key:t.idx,attrs:{label:e.name,value:e}})})),1)],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("营业执照: ")])])]),a("el-col",{attrs:{span:3}},[a("el-button",{attrs:{size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.licenseUrl)}}},[t._v("查看文件\n ")])],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"div-text"},[a("span",[t._v("分配角色: ")])])]),a("el-col",{attrs:{span:7}},[a("el-form",{attrs:{model:t.checkQuery}},[a("el-form-item",{staticStyle:{"margin-top":"5px"},attrs:{label:""}},[a("el-radio-group",{on:{change:t.handleCheckedChange},model:{value:t.check,callback:function(e){t.check=e},expression:"check"}},t._l(t.roles,(function(e){return a("el-radio",{key:e.id,attrs:{label:e.id}},[t._v(t._s(e.name)+"\n ")])})),1)],1)],1)],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.centerDialogVisible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.passRegister}},[t._v("通过")]),a("el-button",{attrs:{type:"primary"},on:{click:t.noPassRegister}},[t._v("不通过")])],1)],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},Gt=[],Xt=a("485b"),Yt=a("bcba"),Zt={data:function(){return{filterQuery:{companyName:"",checkType:"0",page:1,limit:20},value:"",total:0,checkFlag:{0:"未审核",1:"已通过",2:"已拒绝"},bussinessFlag:{1:"医院",2:"经营企业"},checkQuery:{id:"",checkType:"",roles:""},rowDataRules:{nickName:[{required:!0,message:"请输入用户名称",trigger:"blur"}]},list:[],roles:[],addDialogVisible:!1,centerDialogVisible:!1,check:"",rowData:{},sOptions:[],sValue:[],sList:[],sLoading:!1,sSelectStatus:!1,registerConfigMap:{companyCheckStatus:!0},fileUrl:"",fromOptions:[]}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={companyName:"",checkType:"",page:1,limit:20},this.getList()},onSubmit:function(){this.getList()},getList:function(){var t=this;this.loading=!0,Object(Xt["d"])(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},selectOne:function(t){this.rowData.companyName=t.name,this.rowData.companyId=t.value,this.checkQuery.companyName=t.name,this.checkQuery.companyId=t.value,this.sSelectStatus=!0},remoteMethod:function(t){var e=this;if(""!==t){this.sLoading=!0;var a={key:t,page:1,limit:20};Object(Yt["g"])(a).then((function(t){console.log(t),e.sLoading=!1,e.sOptions=t.data.list})).catch((function(){e.sLoading=!1,e.sOptions=[]}))}else this.sOptions=[]},cancelDialog:function(){this.addDialogVisible=!1},handleCheckedChange:function(t){console.log(t)},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},findMethod:function(t){var e=this;console.log(t),this.fromOptions=[];var a={key:t};Object(Yt["f"])(a).then((function(t){e.loading=!1,e.fromOptions=t.data.page.list||[]})).catch((function(){e.loading=!1}))},checkRegister:function(){var t=this;this.loading=!0,Object(Xt["a"])(this.checkQuery).then((function(e){2e4===e.code?(t.getList(),t.$message({type:"success",message:"更新成功!"})):(t.$message.warning("更新失败"),t.loading=!1)})).catch((function(){}))},checkDialog:function(t){console.log(this.checkQuery.roles),this.check=t.roles,this.checkQuery={id:t.id+"",checkType:1,roles:t.roles},console.log(this.check+"---"+t.roles+"---"+this.checkQuery.roles),this.rowData=t,this.registerConfigMap.companyCheckStatus&&(this.sValue=this.rowData.companyName),console.log(this.rowData),this.centerDialogVisible=!0},passRegister:function(){return this.checkQuery.roles=this.check,this.$isBlank(this.checkQuery.roles)?this.$message.warning("请选择当前供应商角色"):this.$isBlank(this.sValue)||!this.sSelectStatus?this.$message.warning("请选择所属供应商"):this.$isBlank(this.rowData.companyName)?this.$message.warning("请输入企业名称"):(this.checkRegister(),void(this.centerDialogVisible=!1))},noPassRegister:function(){this.checkQuery.roles=this.check,this.checkQuery.checkType=2,this.checkRegister(),this.centerDialogVisible=!1},deleteDialog:function(t){var e=this;this.$confirm("是否删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.id};Object(Xt["b"])(a).then((function(){e.getList()}))})).catch((function(){}))},getRoleList:function(){var t=this;lt().then((function(e){t.roles=e.data.list||[],console.log("888---"+t.checkQuery.roles)})).catch((function(){t.checkQuery.roles=[]}))},registerConfig:function(){var t=this;Object(x["d"])().then((function(e){2e4===e.code&&(t.registerConfigMap=e.data,t.sSelectStatus=t.registerConfigMap.companyCheckStatus)}))},openFile:function(t){window.open(this.fileUrl+t)}},mounted:function(){},created:function(){this.fileUrl=r["a"]+"/udiwms/image/register/file/getImage?type=image1&name=",this.getList(),this.getRoleList(),this.registerConfig()}},te=Zt,ee=(a("c5bf"),Object(g["a"])(te,Jt,Gt,!1,null,null,null)),ae=ee.exports,ie=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"审核状态"},model:{value:t.filterQuery.isCheck,callback:function(e){t.$set(t.filterQuery,"isCheck",e)},expression:"filterQuery.isCheck"}},[a("el-option",{attrs:{label:"未审核",value:"0"}}),a("el-option",{attrs:{label:"已审核",value:"1"}}),a("el-option",{attrs:{label:"未通过",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"IMEI唯一识别码",prop:"imei",width:"230"}}),a("el-table-column",{attrs:{label:"企业名称",prop:"companyName",width:"160"}}),a("el-table-column",{attrs:{label:"联系方式",prop:"phone",width:"120"}}),a("el-table-column",{attrs:{label:"联系人",prop:"contact",width:"120"}}),a("el-table-column",{attrs:{label:"审核状态",prop:"isCheck",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.checkFlag[e.row.isCheck]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[1!==e.row.isCheck?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.checkDialog(e.row)}}},[t._v("审核\n ")]):t._e()]}}])})],1),a("el-dialog",{attrs:{title:"审核","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.centerDialogVisible,width:"30%",center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.centerDialogVisible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.passRegister}},[t._v("通过")]),a("el-button",{attrs:{type:"primary"},on:{click:t.noPassRegister}},[t._v("不通过")])],1)]),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},le=[];function se(t){return Object(et["a"])({url:"/sale/device/registerList",method:"get",params:t})}function oe(t){return Object(et["a"])({url:"/sale/device/check",method:"post",data:t})}var re={data:function(){return{filterQuery:{isCheck:"0",page:1,limit:20},value:"",total:0,checkFlag:{0:"未审核",1:"已通过",2:"已拒绝"},list:[],addDialogVisible:!1,centerDialogVisible:!1,check:""}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={isCheck:"",page:1,limit:20},this.getList()},onSubmit:function(){this.getList()},getList:function(){var t=this;this.loading=!0,se(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},cancelDialog:function(){this.addDialogVisible=!1},handleCheckedChange:function(t){console.log(t)},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},checkRegister:function(){var t=this;this.loading=!0,oe(this.checkQuery).then((function(e){2e4===e.code?(t.getList(),t.$message({type:"success",message:"更新成功!"})):(t.$message.warning("更新失败"),t.loading=!1)})).catch((function(){}))},checkDialog:function(t){this.checkQuery={id:t.id+"",isCheck:1},console.log(this.check+"---"+t.roles+"---"+this.checkQuery.roles),this.centerDialogVisible=!0},passRegister:function(){this.checkRegister(),this.centerDialogVisible=!1},noPassRegister:function(){this.checkQuery.isCheck=2,this.checkRegister(),this.centerDialogVisible=!1}},mounted:function(){},created:function(){this.getList()}},ne=re,ce=Object(g["a"])(ne,ie,le,!1,null,null,null),ue=(ce.exports,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"用户账号"},model:{value:t.query.userName,callback:function(e){t.$set(t.query,"userName",e)},expression:"query.userName"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"状态"},model:{value:t.query.userFlag,callback:function(e){t.$set(t.query,"userFlag",e)},expression:"query.userFlag"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"禁用",value:"0"}}),a("el-option",{attrs:{label:"正常",value:"1"}}),a("el-option",{attrs:{label:"未验证",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")]),a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return t.handleForm(null,null)}}},[t._v("新增\n ")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",fixed:""}}),a("el-table-column",{attrs:{label:"用户账号",prop:"userName",fixed:""}}),a("el-table-column",{attrs:{label:"用户名称",prop:"employeeName",fixed:""}}),a("el-table-column",{attrs:{label:"状态",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("statusFilterType")(e.row.userFlag)}},[t._v(t._s(t._f("statusFilterName")(e.row.userFlag))+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"备注",prop:"comments",fixed:""}}),a("el-table-column",{attrs:{label:"登录时间",with:"300","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"el-icon-time"}),a("span",[t._v(" "+t._s(e.row.lastLoginTime))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleForm(e.$index,e.row)}}},[t._v("编辑\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleDel(e.$index,e.row)}}},[t._v("删除\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.query.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}}),a("el-dialog",{attrs:{title:t.formMap[t.formName],visible:t.formVisible,"before-close":t.hideForm,width:"70%",top:"5vh"},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"用户账号",prop:"userName"}},[a("el-input",{attrs:{size:"small"},model:{value:t.formData.userName,callback:function(e){t.$set(t.formData,"userName",e)},expression:"formData.userName"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"用户名称",prop:"employeeName"}},[a("el-input",{attrs:{size:"small"},model:{value:t.formData.employeeName,callback:function(e){t.$set(t.formData,"employeeName",e)},expression:"formData.employeeName"}})],1)],1)])])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"登录密码",prop:"passWord"}},[a("el-input",{attrs:{type:"password",size:"small"},model:{value:t.formData.passWord,callback:function(e){t.$set(t.formData,"passWord",e)},expression:"formData.passWord"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"确认密码",prop:"checkPassword"}},[a("el-input",{attrs:{type:"password",size:"small"},model:{value:t.formData.checkPassword,callback:function(e){t.$set(t.formData,"checkPassword",e)},expression:"formData.checkPassword"}})],1)],1)])])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},nativeOn:{click:function(e){return t.hideForm.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small",loading:t.formLoading},nativeOn:{click:function(e){return t.formSubmit()}}},[t._v("提交\n ")])],1)],1)],1)}),de=[],pe={id:"",passWord:"",userName:"",checkPassword:"",employeeName:"",userFlag:1,customerId:"",roles:[]},me={data:function(){var t=this,e=function(t,e,a){""===e?a(new Error("请输入密码")):a()},a=function(e,a,i){""===a?i(new Error("请再次输入密码")):a!==t.formData.passWord?i(new Error("两次输入密码不一致!")):i()};return{roles:[],query:{userName:"",userFlag:"",page:1,limit:20,roleId:"",customerId:"",companyName:""},list:[],total:0,loading:!0,index:null,formName:null,formMap:{add:"新增",edit:"编辑"},userInfo:{customerId:"",companyName:"",userId:"",roles:[]},formLoading:!1,formVisible:!1,formData:pe,formRules:{},addRules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}],passWord:[{required:!0,message:"请输入密码",trigger:"blur"},{validator:e,trigger:"blur"}],checkPassword:[{required:!0,message:"请再次输入密码",trigger:"blur"},{validator:a,trigger:"blur"}]},editRules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]},deleteLoading:!1}},methods:{onReset:function(){this.$router.push({path:""}),this.query={userName:"",userFlag:"",page:1,limit:20,roleId:"",customerId:this.userInfo.customerId,companyName:this.userInfo.companyName},this.getList()},onSubmit:function(){this.$router.push({path:"",query:this.query}),this.getList()},handleCurrentChange:function(t){this.query.page=t,this.getList()},getList:function(){var t=this;this.loading=!0,at(this.query).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0,t.roles=[]}))},getRoleList:function(){var t=this;lt(this.query).then((function(e){t.roles=e.data.list||[]})).catch((function(){t.roles=[]}))},getUserInfo:function(){var t=this;Object(v["d"])().then((function(e){t.userInfo={customerId:e.data.customerId,companyName:e.data.companyName,userId:e.data.id,roles:e.data.roleIds},t.query.customerId=e.data.customerId,t.query.companyName=e.data.companyName,t.getList()})).catch((function(){t.customerId="",t.companyName=""}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields())},hideForm:function(){return this.formVisible=!this.formVisible,this.$refs["dataForm"].resetFields(),!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(pe)),null!==e&&(this.formData=Object.assign({},e)),this.formName="add",this.formRules=this.addRules,null!==t&&(this.index=t,this.formName="edit",this.formRules=this.addRules)},formSubmit:function(){var t=this;console.log(this.formData.userName+"--222---"+this.formData.employeeName+this.formData.userFlag+this.formData.id),this.$refs["dataForm"].validate((function(e){if(e){t.formLoading=!0,t.formData.userFlag=1,t.formData.roles=t.userInfo.roles,t.formData.customerId=t.userInfo.customerId,t.formData.companyName=t.userInfo.companyName;var a=Object.assign({},t.formData),i={id:t.formData.id,userFlag:1,roles:t.userInfo.roles,customerId:t.userInfo.customerId,companyName:t.userInfo.companyName,passWord:t.formData.passWord,userName:t.formData.userName,employeeName:t.formData.employeeName};console.log(i.id+"---"),st(i,t.formName).then((function(e){if(t.formLoading=!1,2e4!==e.code)return t.$message.error(e.message),!1;t.$message.success("操作成功"),t.formVisible=!1,"add"===t.formName?e.data&&e.data.id&&(a.id=e.data.id,t.list.unshift(a)):t.list.splice(t.index,1,a),t.resetForm()}))}else console.log("参数错误")}))},handleDel:function(t,e){var a=this;e.id===this.userInfo.userId?this.$message.warning("不能删除自己"):e.id&&this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then((function(){var i={id:e.id};a.deleteLoading=!0,ot(i).then((function(e){if(a.deleteLoading=!1,2e4!==e.code)return a.$message.error(e.message),!1;a.$message.success("操作成功"),a.list.splice(t,1)})).catch((function(){a.deleteLoading=!1}))})).catch((function(){a.$message.info("取消删除")}))}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},mounted:function(){},created:function(){this.getUserInfo();var t=this.$route.query;this.query=Object.assign(this.query,t),this.query.limit=parseInt(this.query.limit)}},he=me,fe=Object(g["a"])(he,ue,de,!1,null,null,null),ge=fe.exports,ye=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"客户名称"},model:{value:t.filterQuery.batchNo,callback:function(e){t.$set(t.filterQuery,"batchNo",e)},expression:"filterQuery.batchNo"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"企业名称",prop:"companyName",width:"230"}}),a("el-table-column",{attrs:{label:"社会统一信用号",prop:"creditNum",width:"160"}}),a("el-table-column",{attrs:{label:"所属地区",prop:"area",width:"180"}}),a("el-table-column",{attrs:{label:"详细地址",prop:"detailAddr",width:"230","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"企业类型",prop:"bussinessStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.bussinessFlag[e.row.bussinessStatus]))])]}}])}),a("el-table-column",{attrs:{label:"客户状态",prop:"userFlag",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("statusFilterType")(e.row.userFlag)}},[t._v(t._s(t._f("statusFilterName")(e.row.userFlag))+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"角色",prop:"role",width:"120"}}),a("el-table-column",{attrs:{label:"最大用户数",prop:"userMax",width:"120"}}),a("el-table-column",{attrs:{label:"当前用户数",prop:"count",width:"120"}}),a("el-table-column",{attrs:{label:"操作",width:"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button-group",[a("el-button",{attrs:{type:"text",size:"mini"},nativeOn:{click:function(a){return a.stopPropagation(),t.customerkDialog(e.row)}}},[t._v("查看用户\n ")]),a("el-button",{attrs:{type:"text",size:"mini"},nativeOn:{click:function(a){return a.stopPropagation(),t.contractDialog(e.row)}}},[t._v("查看联系人\n ")])],1)]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.checkDialog(e.row)}}},[t._v("编辑\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row)}}},[t._v("删除\n ")])]}}])})],1),a("el-dialog",{attrs:{title:"客户信息编辑",visible:t.formVisible,width:"60%"},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.formData}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"客户名称",prop:"userName"}},[a("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",disabled:!0},model:{value:t.formData.customerName,callback:function(e){t.$set(t.formData,"customerName",e)},expression:"formData.customerName"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"最大用户数",prop:"employeeName"}},[a("el-input",{staticStyle:{width:"40%"},attrs:{size:"small",type:"number"},model:{value:t.formData.userMax,callback:function(e){t.$set(t.formData,"userMax",e)},expression:"formData.userMax"}})],1)],1)])])],1),a("el-form-item",{attrs:{label:"状态:",prop:"userFlag"}},[a("el-radio-group",{model:{value:t.formData.userFlag,callback:function(e){t.$set(t.formData,"userFlag",e)},expression:"formData.userFlag"}},[a("el-radio",{attrs:{label:0}},[t._v("禁用")]),a("el-radio",{attrs:{label:1}},[t._v("正常")]),a("el-radio",{attrs:{label:2}},[t._v("未验证")])],1)],1),a("el-form-item",{attrs:{label:"分配角色:"}},[a("el-radio-group",{on:{change:t.handleCheckedChange},model:{value:t.check,callback:function(e){t.check=e},expression:"check"}},t._l(t.roles,(function(e){return a("el-radio",{key:e.id,attrs:{label:e.id}},[t._v(t._s(e.name)+"\n ")])})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},nativeOn:{click:function(e){return t.cancelDialog.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small"},nativeOn:{click:function(e){return t.formSubmit()}}},[t._v("提交\n ")])],1)],1),a("el-dialog",{attrs:{title:"客户联系人",visible:t.contractVisible,width:"60%"},on:{"update:visible":function(e){t.contractVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.contractData}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"真实姓名",prop:"userName"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{size:"small",disabled:!0},model:{value:t.contractData.contacts,callback:function(e){t.$set(t.contractData,"contacts",e)},expression:"contractData.contacts"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"手机",prop:"employeeName"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{size:"small",type:"number",disabled:!0},model:{value:t.contractData.mobile,callback:function(e){t.$set(t.contractData,"mobile",e)},expression:"contractData.mobile"}})],1)],1)])])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"联系电话",prop:"tel"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{size:"small",disabled:!0},model:{value:t.contractData.tel,callback:function(e){t.$set(t.contractData,"tel",e)},expression:"contractData.tel"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{size:"small",disabled:!0},model:{value:t.contractData.email,callback:function(e){t.$set(t.contractData,"email",e)},expression:"contractData.email"}})],1)],1)])])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},nativeOn:{click:function(e){return t.cancelDialog.apply(null,arguments)}}},[t._v("确定")])],1)],1),t.customerVisible?a("div",[a("el-dialog",{attrs:{title:"客户用户",visible:t.customerVisible,width:"70%","append-to-body":"","modal-append-to-body":!1},on:{"update:visible":function(e){t.customerVisible=e},close:t.closeCustomerDialog}},[a("customerUser",{attrs:{currentCustomer:t.currentCustomer}})],1)],1):t._e(),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},be=[];function ve(t){return Object(et["a"])({url:"/system/pdf/template/list",method:"get",params:t})}function we(t){return Object(et["a"])({url:"/system/pdf/module/list",method:"get",params:t})}function xe(t){return Object(et["a"])({url:"/system/pdf/module/pdfModules",method:"get",params:t})}function De(t){return Object(et["a"])({url:"/system/pdf/template/pdfTemplates",method:"get",params:t})}function Ce(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",i="add"===e?"/system/pdf/template/save":"/system/pdf/template/update";return Object(et["a"])({url:i,method:a,data:t})}function ke(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"post",i="add"===e?"/system/pdf/module/save":"/system/pdf/module/update";return Object(et["a"])({url:i,method:a,data:t})}function Qe(t){return Object(et["a"])({url:"/system/pdf/template/delete",method:"get",params:t})}function Se(t){return Object(et["a"])({url:"/spms/customer/list",method:"get",params:t})}function _e(t){return Object(et["a"])({url:"/salewarehouse/customer/list",method:"get",params:t})}function $e(t){return Object(et["a"])({url:"/salewarehouse/customer/update",method:"post",data:t})}function Te(t){return Object(et["a"])({url:"/salewarehouse/customer/delete",method:"post",data:t})}var Le=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"用户账号"},model:{value:t.query.userName,callback:function(e){t.$set(t.query,"userName",e)},expression:"query.userName"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"状态"},model:{value:t.query.userFlag,callback:function(e){t.$set(t.query,"userFlag",e)},expression:"query.userFlag"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"禁用",value:"0"}}),a("el-option",{attrs:{label:"正常",value:"1"}}),a("el-option",{attrs:{label:"未验证",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询")]),a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return t.handleForm(null,null)}}},[t._v("新增")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),a("el-table-column",{attrs:{label:"用户账号",prop:"userName",fixed:""}}),a("el-table-column",{attrs:{label:"用户名称",prop:"employeeName",fixed:""}}),a("el-table-column",{attrs:{label:"状态",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("statusFilterType")(e.row.userFlag)}},[t._v(t._s(t._f("statusFilterName")(e.row.userFlag)))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleForm(e.$index,e.row)}}},[t._v("编辑\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleDel(e.$index,e.row)}}},[t._v("删除\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.query.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}}),a("el-dialog",{attrs:{title:t.formMap[t.formName],visible:t.formVisible,"before-close":t.hideForm,"append-to-body":"","modal-append-to-body":!1,width:"70%",top:"5vh"},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"用户账号",prop:"userName"}},[a("el-input",{attrs:{size:"small"},model:{value:t.formData.userName,callback:function(e){t.$set(t.formData,"userName",e)},expression:"formData.userName"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"用户名称",prop:"employeeName"}},[a("el-input",{attrs:{size:"small"},model:{value:t.formData.employeeName,callback:function(e){t.$set(t.formData,"employeeName",e)},expression:"formData.employeeName"}})],1)],1)])])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"登录密码",prop:"passWord"}},[a("el-input",{attrs:{type:"password",size:"small",disabled:!0},model:{value:t.formData.passWord,callback:function(e){t.$set(t.formData,"passWord",e)},expression:"formData.passWord"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"text item"},[a("el-form-item",{attrs:{label:"确认密码",prop:"checkPassword"}},[a("el-input",{attrs:{type:"password",size:"small",disabled:!0},model:{value:t.formData.checkPassword,callback:function(e){t.$set(t.formData,"checkPassword",e)},expression:"formData.checkPassword"}})],1)],1)])])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},nativeOn:{click:function(e){return t.hideForm.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small",loading:t.formLoading},nativeOn:{click:function(e){return t.formSubmit()}}},[t._v("提交")])],1)],1)],1)},Oe=[],ze={id:"",passWord:"",userName:"",checkPassword:"",employeeName:"",userFlag:1,customerId:"",roles:[]},Ie={name:"currentCustomer",props:{currentCustomer:""},data:function(){var t=this,e=function(t,e,a){""===e?a(new Error("请输入密码")):a()},a=function(e,a,i){""===a?i(new Error("请再次输入密码")):a!==t.formData.passWord?i(new Error("两次输入密码不一致!")):i()};return{roles:[],query:{userName:"",userFlag:"",page:1,limit:20,roleId:"",customerId:""},list:[],total:0,loading:!0,index:null,formName:null,formMap:{add:"新增",edit:"编辑"},userInfo:{customerId:"",userId:"",roles:[]},formLoading:!1,formVisible:!1,formData:ze,formRules:{},addRules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}],passWord:[{required:!0,message:"请输入密码",trigger:"blur"},{validator:e,trigger:"blur"}],checkPassword:[{required:!0,message:"请再次输入密码",trigger:"blur"},{validator:a,trigger:"blur"}],userFlag:[{required:!0,message:"请选择状态",trigger:"change"}]},editRules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}],userFlag:[{required:!0,message:"请选择状态",trigger:"change"}]},deleteLoading:!1}},methods:{onReset:function(){this.$router.push({path:""}),this.query={userName:"",userFlag:"",page:1,limit:20,roleId:"",customerId:this.currentCustomer},this.getList()},onSubmit:function(){this.$router.push({path:"",query:this.query}),this.getList()},handleCurrentChange:function(t){this.query.page=t,this.getList()},getList:function(){var t=this;this.loading=!0,at(this.query).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0,t.roles=[]}))},getRoleList:function(){var t=this;lt(this.query).then((function(e){t.roles=e.data.list||[]})).catch((function(){t.roles=[]}))},getUserInfo:function(){var t=this;Object(v["d"])().then((function(e){t.userInfo={customerId:e.data.customerId,userId:e.data.id,roles:e.data.roleIds},t.query.customerId=e.data.customerId,t.getList()})).catch((function(){t.customerId=""}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields())},hideForm:function(){return this.formVisible=!this.formVisible,this.$refs["dataForm"].resetFields(),!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(ze)),null!==e&&(this.formData=Object.assign({},e)),this.formName="add",this.formRules=this.addRules,null!==t&&(this.index=t,this.formName="edit",this.formRules=this.editRules)},formSubmit:function(){var t=this;console.log(this.formData.userName+"-----"+this.formData.employeeName+this.formData.userFlag+this.formData.id),this.$refs["dataForm"].validate((function(e){if(e){t.formLoading=!0,t.formData.userFlag=1,t.formData.roles=t.userInfo.roles,t.formData.customerId=t.currentCustomer;var a=Object.assign({},t.formData),i={id:t.formData.id,userFlag:1,roles:t.userInfo.roles,customerId:t.currentCustomer,passWord:t.formData.passWord,userName:t.formData.userName,employeeName:t.formData.employeeName};st(i,t.formName).then((function(e){if(t.formLoading=!1,2e4!==e.code)return t.$message.error(e.message),!1;t.$message.success("操作成功"),t.formVisible=!1,"add"===t.formName?e.data&&e.data.id&&(a.id=e.data.id,t.list.unshift(a)):t.list.splice(t.index,1,a),t.resetForm()}))}}))},handleDel:function(t,e){var a=this;e.id===this.userInfo.userId?this.$message.warning("主账号不能删除"):e.id&&this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then((function(){var i={id:e.id};a.deleteLoading=!0,ot(i).then((function(e){if(a.deleteLoading=!1,2e4!==e.code)return a.$message.error(e.message),!1;a.$message.success("操作成功"),a.list.splice(t,1)})).catch((function(){a.deleteLoading=!1}))})).catch((function(){a.$message.info("取消删除")}))}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},mounted:function(){document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},created:function(){console.log("----"+this.currentCustomer+"2---"),this.query.customerId=this.currentCustomer,this.getList()},destroyed:function(){}},Ne=Ie,Fe=Object(g["a"])(Ne,Le,Oe,!1,null,null,null),qe=Fe.exports,Ve={data:function(){return{filterQuery:{companyName:"",checkType:"",page:1,limit:20},value:"",total:0,checkFlag:{0:"未审核",1:"已通过",2:"已拒绝"},userflag:{0:"禁用",1:"正常",2:"未验证"},bussinessFlag:{1:"医院",2:"经营企业"},list:[],isTip:{0:"否",1:"是"},formVisible:!1,contractVisible:!1,customerVisible:!1,timer:"",formData:{customerName:"111",userMax:"",isInfoLink:"",infoLink:"",customerId:"",userFlag:"",roleId:"",pdfTemplateId:""},contractData:{contacts:"",mobile:"",tel:"",email:""},currentCustomer:"",check:"",roles:[],pdfTemplates:[]}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={companyName:"",page:1,limit:20},this.getList()},formSubmit:function(){var t=this;this.formData.roleId=this.check,$e(this.formData).then((function(e){t.loading=!1,t.cancelDialog(),t.getList(),2e4===e.code?t.$message({type:"success",message:"更新成功!"}):t.$message.warning("更新失败")})).catch((function(){t.cancelDialog(),t.loading=!1}))},onSubmit:function(){this.getList()},getList:function(){var t=this;this.loading=!0,_e(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[];for(var a=0;a")])],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"手机:","label-width":"150px",prop:"phone"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:t.hiddenAdd},model:{value:t.formData.phone,callback:function(e){t.$set(t.formData,"phone",e)},expression:"formData.phone"}},[t._v(">")])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"邮箱:","label-width":"150px",prop:"email"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:t.hiddenAdd},model:{value:t.formData.email,callback:function(e){t.$set(t.formData,"email",e)},expression:"formData.email"}},[t._v(">")])],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件类型:","label-width":"150px",prop:"certType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"证件类型",disabled:t.hiddenAdd},model:{value:t.formData.certType,callback:function(e){t.$set(t.formData,"certType",e)},expression:"formData.certType"}},[t._v("\n >\n "),a("el-option",{attrs:{label:"身份证",value:"1"}})],1)],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件号码:","label-width":"150px",prop:"certCode"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:t.hiddenAdd},model:{value:t.formData.certCode,callback:function(e){t.$set(t.formData,"certCode",e)},expression:"formData.certCode"}},[t._v(">")])],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件电子档:","label-width":"150px"}},[!0!==t.hiddenAdd?a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:this.uploadUrl,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess,"file-list":t.fileList,data:{type:"image5"},"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),a("div",[t._v("只能上传 .jpg,.png 文件,且不超过 2 MB")])],1):t._e(),!0===t.hiddenAdd?a("el-button",{staticStyle:{margin:"0 60px 10px auto",height:"35px"},attrs:{disabled:null===t.formData.filePath,type:"primary",loading:t.loading},nativeOn:{click:function(e){return t.openFile(t.formData.filePath)}}},[t._v("查看\n ")]):t._e()],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"授权书电子档:","label-width":"150px"}},[!0!==t.hiddenAdd?a("el-upload",{ref:"upload2",staticClass:"upload-demo2",attrs:{action:this.uploadUrl,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess2,"file-list":t.fileList2,data:{type:"image5"},"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),a("div",[t._v("只能上传 .jpg,.png 文件,且不超过 2 MB")])],1):t._e(),!0===t.hiddenAdd?a("el-button",{staticStyle:{margin:"0 60px 10px auto",height:"35px"},attrs:{disabled:null===t.formData.filePath2,type:"primary",loading:t.loading},nativeOn:{click:function(e){return t.openFile(t.formData.filePath2)}}},[t._v("查看\n ")]):t._e()],1)],1)],1)],1)],1)],1)},Ae=[],Me=a("1516"),We=a.n(Me),He=a("21a6"),Ke=a("43ef");function Je(t){return Object(et["a"])({url:"/sale/info/company/salesman/filter",method:"get",params:t})}function Ge(t){return Object(et["a"])({url:"/sale/info/insertCompanySalesman",method:"post",data:t})}function Xe(t){return Object(et["a"])({url:"/sale/info/updateCompanySalesman",method:"post",data:t})}function Ye(t){return Object(et["a"])({url:"/sale/info/deleteCompanySalesman",method:"post",data:t})}var Ze={name:"idQuery",props:{closeDialog:{type:Function,required:!0},idQuery:{type:Object,required:!0}},data:function(){return{code:"",formData:{certType:"1"},formRules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"}],tel:[{required:!0,message:"请输入电话",trigger:"blur"}],certType:[{required:!0,message:"请选择证件类型",trigger:"blur"}],certCode:[{required:!0,message:"请输入证件号码",trigger:"blur"}]},loading:!1,uploadUrl:"",fileList:[],fileList2:[],hiddenAdd:!1,hiddenAdd2:!1}},components:{draggable:We.a},methods:{submitUpload:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.$refs.upload.uploadFiles.length>0?t.$refs.upload.submit():t.$refs.upload2.uploadFiles.length>0?t.$refs.upload2.submit():t.$isBlank(t.idQuery)?t.$message.warning("请选择文件"):t.onSubmit())}))},openFile:function(t){window.open(r["a"]+"/udiwms/image/register/file/getImage?type=image5&name="+t)},updateAuditStatus:function(t){var e=this;this.formData.auditStatus=t,Xe(this.formData).then((function(t){e.loading=!1,2e4===t.code?(e.$message.success("成功"),e.closeDialog(!0)):e.$message.error(t.message)}))},onSubmit:function(){var t=this;this.loading=!0,this.$isBlank(this.idQuery)?(this.formData.customerId=L["a"].getters.customerId,Ge(this.formData).then((function(e){t.loading=!1,2e4===e.code?(t.$message.success("添加成功"),t.closeDialog(!0)):t.$message.error(e.message)}))):Xe(this.formData).then((function(e){t.loading=!1,2e4===e.code?(t.$message.success("修改成功"),t.closeDialog(!0)):t.$message.error(e.message)}))},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0?this.$refs.upload2.submit():this.onSubmit()):this.$message.error("文件上传失败:"+t.message)},uploadHandleSuccess2:function(t,e,a){2e4===t.code?(this.$isBlank(this.idQuery)?this.formData.filePath2=t.data.name:this.formData.newFilePath2=t.data.name,this.onSubmit()):this.$message.error("文件上传失败:"+t.message)}},filters:{},mounted:function(){document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},created:function(){this.uploadUrl=r["a"]+"/udiwms/upload/register/file",this.$isNotBlank(this.idQuery)&&(this.formData=this.idQuery.formData,this.$isNotBlank(this.idQuery.toView)?(this.hiddenAdd=!0,this.$isNotBlank(this.idQuery.toView2)&&(this.hiddenAdd2=!0)):this.hiddenAdd=!1)}},ta=Ze,ea=(a("4266"),Object(g["a"])(ta,Ue,Ae,!1,null,null,null)),aa=ea.exports,ia=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[!0===t.hiddenAdd?a("div",{staticStyle:{display:"flex","margin-top":"-30px"}},[a("el-button",{staticStyle:{margin:"0 20px 0 auto"},attrs:{type:"primary",size:"small"},nativeOn:{click:function(e){return t.updateAuditStatus(1)}}},[t._v("通过")]),a("el-button",{staticStyle:{margin:"0 20px 0 0"},attrs:{type:"primary",size:"small"},nativeOn:{click:function(e){return t.updateAuditStatus(2)}}},[t._v("不通过")]),a("el-button",{staticStyle:{margin:"0 20px 0 0"},on:{click:function(e){t.centerDialogVisible=!1}}},[t._v("取消")])],1):t._e(),a("el-card",{staticClass:"el-card"},[a("div",[null===this.uuid?a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.unionQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{size:"mini",placeholder:"最小单元销售标识"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.keyup_submit(e)}},model:{value:t.unionQuery.nameCode,callback:function(e){t.$set(t.unionQuery,"nameCode",e)},expression:"unionQuery.nameCode"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{size:"mini",placeholder:"产品通用名"},model:{value:t.unionQuery.cpmctymc,callback:function(e){t.$set(t.unionQuery,"cpmctymc",e)},expression:"unionQuery.cpmctymc"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{size:"mini",placeholder:"医疗器械注册人"},model:{value:t.unionQuery.ylqxzcrbarmc,callback:function(e){t.$set(t.unionQuery,"ylqxzcrbarmc",e)},expression:"unionQuery.ylqxzcrbarmc"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"规格型号",size:"mini"},model:{value:t.unionQuery.ggxh,callback:function(e){t.$set(t.unionQuery,"ggxh",e)},expression:"unionQuery.ggxh"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"search",size:"mini"},on:{click:t.getList}},[t._v("查询\n ")]),a("el-button",{attrs:{type:"primary",size:"mini",icon:"search"},on:{click:t.combine}},[t._v("确定\n ")])],1)],1)],1)],1):t._e(),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.udidlList,"highlight-current-row":"true","row-class-name":t.tableRowClassName},on:{"row-click":t.intentDetail,"current-change":t.handleErpChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"产品标识",prop:"nameCode","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品名称",prop:"cpmctymc","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"规格型号",prop:"ggxh","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"医疗器械注册人",prop:"ylqxzcrbarmc","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"注册证编号",prop:"zczbhhzbapzbh","show-overflow-tooltip":""}})],1),a("el-pagination",{attrs:{"page-size":t.unionQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)]),a("el-card",{staticClass:"el-card"},[a("div",[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品名称: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",splaceholder:"请输入内容",disabled:!0},model:{value:t.data.cpmctymc,callback:function(e){t.$set(t.data,"cpmctymc",e)},expression:"data.cpmctymc"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品标识: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.nameCode,callback:function(e){t.$set(t.data,"nameCode",e)},expression:"data.nameCode"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("规格型号: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.ggxh,callback:function(e){t.$set(t.data,"ggxh",e)},expression:"data.ggxh"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("医疗器械注册人: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"ylqxzcrbarmc"},model:{value:t.data.ylqxzcrbarmc,callback:function(e){t.$set(t.data,"ylqxzcrbarmc",e)},expression:"data.ylqxzcrbarmc"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("注册人英文名称: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.ylqxzcrbarywmc,callback:function(e){t.$set(t.data,"ylqxzcrbarywmc",e)},expression:"data.ylqxzcrbarywmc"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("器械类别: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.qxlb,callback:function(e){t.$set(t.data,"qxlb",e)},expression:"data.qxlb"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品类别: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.cplb,callback:function(e){t.$set(t.data,"cplb",e)},expression:"data.cplb"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("分类编码: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.flbm,callback:function(e){t.$set(t.data,"flbm",e)},expression:"data.flbm"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("商品条码: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.sptm,callback:function(e){t.$set(t.data,"sptm",e)},expression:"data.sptm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("医保编码: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.ybbm,callback:function(e){t.$set(t.data,"ybbm",e)},expression:"data.ybbm"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("统一社会信用号: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.tyshxydm,callback:function(e){t.$set(t.data,"tyshxydm",e)},expression:"data.tyshxydm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("注册证/备案号: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.zczbhhzbapzbh,callback:function(e){t.$set(t.data,"zczbhhzbapzbh",e)},expression:"data.zczbhhzbapzbh"}})],1)])],1)],1)])],1)},la=[];function sa(t){return Object(et["a"])({url:"/udiwms/basic/instrument/maintain/filterProduct",method:"get",params:t})}function oa(t){return Object(et["a"])({url:"/sale/info/company/product/relevance/filter",method:"get",params:t})}function ra(t){return Object(et["a"])({url:"/sale/info/insertCompanyProductRelevance",method:"post",data:t})}function na(t){return Object(et["a"])({url:"/sale/info/insertFilter",method:"post",data:t})}function ca(t){return Object(et["a"])({url:"/sale/info/updateCompanyProductRelevance",method:"post",data:t})}function ua(t){return Object(et["a"])({url:"/sale/info/deleteCompanyProductRelevance",method:"post",data:t})}var da={name:"closeDialog",props:{closeDialog:{type:Function,required:!0},uuid:{type:String,required:!0},hid:{type:String,required:!0}},data:function(){return{unionQuery:{page:1,limit:10,nameCode:"",cpmctymc:"",ylqxzcrbarmc:"",ggxh:""},combineQuery:{},checked:!0,udidlList:[],erpList:[],pageTotal:1,total:1,currentRow:null,loading:!1,erpLloading:!1,multipleUdiSelection:[],data:{},hiddenAdd:!1}},created:function(){this.$isNotBlank(this.uuid)&&(this.unionQuery.uuid=this.uuid,this.getList(),this.$isNotBlank(this.hid)?this.hiddenAdd=!0:this.hiddenAdd=!1)},methods:{getList:function(){var t=this;""!==this.unionQuery.nameCode||""!==this.unionQuery.cpmctymc||""!==this.unionQuery.ylqxzcrbarmc||""!==this.unionQuery.ggxh||""!==this.unionQuery.uuid?(this.loading=!0,sa(this.unionQuery).then((function(e){console.log(e),t.loading=!1,t.udidlList=e.data.list||[],t.total=e.data.total||0,console.log(t.total)})).catch((function(){t.loading=!1,t.udidlList=[],t.total=0}))):this.$message.warning("请输入查询条件")},intentDetail:function(t){this.data=t},keyup_submit:function(t){console.log("全选----"),this.getList(),t.target.select()},checkSelectable:function(t,e){return!t.check},handleCurrentChange:function(t){this.unionQuery.page=t,this.getList()},tableRowClassName:function(t){var e=t.row;t.rowIndex;return e.checked?"warning-row":""},handleErpChange:function(t){console.log(t),this.currentRow=t},intentBack:function(){this.closeDialog()},updateAuditStatus:function(t){var e=this,a={auditStatus:t,id:this.hid};ca(a).then((function(t){e.loading=!1,2e4===t.code?(e.$message.success("成功"),e.closeDialog(!0)):e.$message.error(t.message)}))},combine:function(){var t=this;this.combineQuery.productUuid=this.currentRow.uuid,this.combineQuery.customerId=L["a"].getters.customerId,ra(this.combineQuery).then((function(e){t.loading=!1,2e4===e.code?(t.$message.success("添加成功"),t.closeDialog(!0)):t.$message.error(e.message)}))},handleSelectionUdiChange:function(t){console.log("----"+t),this.multipleUdiSelection=t}}},pa=da,ma=(a("6f7b"),Object(g["a"])(pa,ia,la,!1,null,"083c602c",null)),ha=ma.exports;function fa(t){return Object(et["a"])({url:"/sale/info/company/cert/filter",method:"get",params:t})}function ga(t){return Object(et["a"])({url:"/sale/info/insertCompanyCert",method:"post",data:t})}function ya(t){return Object(et["a"])({url:"/sale/info/deleteCompanyCert",method:"post",data:t})}function ba(t){return Object(et["a"])({url:"/sale/info/company/salesman/update/log/filter",method:"get",params:t})}function va(t){return Object(et["a"])({url:"/sale/info/insertCompanySalesmanUpdateLog",method:"post",data:t})}function wa(t){return Object(et["a"])({url:"/sale/info/updateCompanySalesmanUpdateLog",method:"post",data:t})}var xa={data:function(){return{filterQuery:{companyName:"",checkType:"",creditNum:"",auditStatus:"6",page:1,limit:20},value:"",total:0,checkFlag:{0:"未审核",1:"已通过",2:"已拒绝"},userflag:{0:"禁用",1:"正常",2:"未验证"},bussinessFlag:{1:"医院",2:"经营企业"},list:[],isTip:{0:"否",1:"是"},formVisible:!1,contractVisible:!1,customerVisible:!1,timer:"",formData:{customerName:"111",userMax:"",isInfoLink:"",infoLink:"",customerId:"",userFlag:"",roleId:"",pdfTemplateId:""},contractData:{contacts:"",mobile:"",tel:"",email:""},currentCustomer:"",check:"",roles:[],pdfTemplates:[],centerDialogVisible:!1,rowData:{},rowDataRules:{nickName:[{required:!0,message:"请输入用户名称",trigger:"blur"}]},fileUrl:"",checkQuery:{id:"",checkType:"",roles:""},certQuery:{page:1,limit:20},certList:[],certTotal:0,certLoading:!1,certFileUrl:"",addCertVisible:!1,certTypeMap:{1:"身份证"},auditStatusMap:{4:"申请变更",3:"允许变更",5:"拒绝变更",6:"待审核",1:"通过",2:"不通过"},idQuery:{id:""},salesmanQuery:{name:"",auditStatus:"6",page:1,limit:20},salesmanList:[],salesmanTotal:0,salesmanLoading:!1,addSalesmanVisible:!1,selectLocalVisible:!1,productQuery:{ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"6",page:1,limit:20},productList:[],productTotal:0,productLoading:!1,uuid:null,hid:!0}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={companyName:"",creditNum:"",auditStatus:"6",page:1,limit:20},this.getList(),this.productList=[],this.salesmanList=[]},formSubmit:function(t,e){var a=this;if(2===e&&this.$isBlank(this.rowData.noPassCause))return this.$message.warning("请输入拒绝原因");var i=1===e?"是否允许通过":"是否拒绝通过";this.$confirm(i,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.$isNotBlank(t)&&(a.rowData=t),a.rowData.auditStatus=e,a.rowData.auditor=L["a"].getters.employeeName,Object(x["g"])(a.rowData).then((function(t){a.loading=!1,a.cancelDialog(),a.getList(),2e4===t.code?a.$message({type:"success",message:"更新成功!"}):a.$message.warning("更新失败")})).catch((function(){a.cancelDialog(),a.loading=!1}))})).catch((function(){}))},onSubmit:function(){this.getList()},openFile:function(t){window.open(this.fileUrl+t)},getList:function(){var t=this;this.loading=!0,Object(x["f"])(this.filterQuery).then((function(e){console.log(e),t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},closeDialog:function(t){this.addSalesmanVisible=!1,this.selectLocalVisible=!1},getProductAndSalesmanList:function(t){this.getProductRelevanceList(t),this.getCompanySalesmanList(t)},salesmanOnReset:function(){var t=this.salesmanQuery.customerId;this.salesmanQuery={name:"",auditStatus:"6",page:1,limit:20},this.salesmanQuery.customerId=t,this.getCompanySalesmanList()},salesmanOnSubmit:function(){this.getCompanySalesmanList()},productOnReset:function(){var t=this.productQuery.customerId;this.productQuery={ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"6",page:1,limit:20},this.productQuery.customerId=t,this.getProductRelevanceList()},productOnSubmit:function(){this.getProductRelevanceList()},selectProduct:function(t){this.$isNotBlank(t)&&(this.hid=t.id,this.uuid=t.uuid,this.selectLocalVisible=!0)},addSalesman:function(t){this.$isNotBlank(t)&&this.$isNotBlank(t.id)&&(this.idQuery.id=t.id,this.idQuery.toView=!0,this.idQuery.formData=t,this.addSalesmanVisible=!0)},updateProductAuditStatus:function(t,e){var a=this,i={auditStatus:e,id:t.id};ca(i).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success("成功"),a.getProductRelevanceList(a.productQuery)):a.$message.error(t.message)}))},updateAuditStatus:function(t,e){var a=this;this.$confirm("是否进行反审?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={customerId:L["a"].getters.customerId,salesmanId:t.id,status:2,name:t.name};a.loading=!0,wa(e).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success("成功"),a.getCompanySalesmanList()):a.$message.error(t.message)}))})).catch((function(){}))},salesmanHandleCurrentChange:function(t){this.salesmanQuery.page=t,this.getCompanySalesmanList(this.salesmanQuery)},productHandleCurrentChange:function(t){this.productQuery.page=t,this.getProductRelevanceList(this.productQuery)},getCompanySalesmanList:function(t){var e=this;this.$isNotBlank(t)&&(this.salesmanQuery.customerId=t.customerId),this.$isBlank(this.salesmanQuery.customerId)||(this.salesmanLoading=!0,Je(this.salesmanQuery).then((function(t){e.salesmanLoading=!1,e.salesmanList=t.data.list||[]})).catch((function(){e.salesmanLoading=!1,e.salesmanList=[]})))},getProductRelevanceList:function(t){var e=this;this.$isNotBlank(t)&&(this.productQuery.customerId=t.customerId),this.$isBlank(this.productQuery.customerId)||(this.erpDisplay=!1,this.productLoading=!0,oa(this.productQuery).then((function(t){e.productLoading=!1,e.productList=t.data.list||[],console.log(e.productList),e.productTotal=t.data.total||0})).catch((function(){e.productLoading=!1,e.productList=[],e.productTotal=0})))},certHandleCurrentChange:function(t){this.certQuery.page=t,this.getCompanyCertList()},getCompanyCertList:function(){var t=this;this.certQuery.customerId=this.rowData.customerId,this.$isBlank(this.certQuery.customerId)||(this.certLoading=!0,fa(this.certQuery).then((function(e){t.certLoading=!1,t.certList=e.data.list||[]})).catch((function(){t.certLoading=!1,t.certList=[]})))},toViewCompanyCert:function(t){window.open(this.certFileUrl+t.filePath)},hideForm:function(){this.customerVisible=!1},cancelDialog:function(){this.formVisible=!1,this.contractVisible=!1,this.centerDialogVisible=!1},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleCheckedChange:function(t){console.log(t),console.log(this.check)},checkRegister:function(t){var e=this;this.loading=!0,Object(Xt["a"])(t).then((function(t){2e4===t.code?(e.getList(),e.$message({type:"success",message:"更新成功!"})):(e.$message.warning("更新失败"),e.loading=!1)})).catch((function(){}))},customerkDialog:function(t){this.currentCustomer=t.customerId,this.timer=(new Date).getTime(),console.log("this.currentCustomer = "+this.currentCustomer),this.customerVisible=!0},closeCustomerDialog:function(){console.log("this.currentCustomer 关闭 = "+this.currentCustomer),this.currentCustomer=null},checkDialog:function(t){console.log(t),console.log(t.customerName),this.formData={customerName:t.companyName,userMax:t.userMax,isInfoLink:t.isInfoLink+"",infoLink:t.infoLink,customerId:t.customerId,userFlag:t.userFlag,pdfTemplateId:t.pdfTemplateId},this.check=parseInt(t.roleId),console.log(this.check),this.formVisible=!0},checkDialog2:function(t){this.formData={customerName:t.companyName,userMax:t.userMax,isInfoLink:t.isInfoLink+"",infoLink:t.infoLink,customerId:t.customerId,userFlag:t.userFlag,pdfTemplateId:t.pdfTemplateId},this.check=parseInt(t.roleId),this.checkQuery={id:t.id+"",checkType:1,roles:t.roles},this.rowData=t,this.fileUrl="",this.fileUrl=r["a"]+"/udiwms/image/register/file/getImage?type=image1&name=",this.centerDialogVisible=!0},contractDialog:function(t){this.contractData={contacts:t.contacts,mobile:t.mobile,tel:t.tel,email:t.email},this.contractVisible=!0},deleteDialog:function(t){var e=this;this.$confirm("删除后将清空该客户下所有用户?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.customerId};Te(a).then((function(){e.getList()}))})).catch((function(){}))},getRoleList:function(){var t=this;lt().then((function(e){t.roles=e.data.list||[],console.log("888---"+t.checkQuery.roles)})).catch((function(){}))},getPDFTemplateList:function(){var t=this;De().then((function(e){t.pdfTemplates=e.data.list})).catch((function(){}))}},components:{customerUser:qe,companyAddSalesman:aa,selectProduct:ha},mounted:function(){},created:function(){this.getList(),this.getRoleList(),this.certFileUrl=r["a"]+"/udiwms/image/register/file/getImage?type=image2&name="}},Da=xa,Ca=Object(g["a"])(Da,Pe,Be,!1,null,null,null),ka=Ca.exports,Qa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"企业名称"},model:{value:t.filterQuery.companyName,callback:function(e){t.$set(t.filterQuery,"companyName",e)},expression:"filterQuery.companyName"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"社会信用号"},model:{value:t.filterQuery.creditNum,callback:function(e){t.$set(t.filterQuery,"creditNum",e)},expression:"filterQuery.creditNum"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"row-click":t.getProductAndSalesmanList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"企业名称",prop:"companyName"}}),a("el-table-column",{attrs:{label:"社会信用号",prop:"creditNum"}}),a("el-table-column",{attrs:{label:"企业类型",prop:"bussinessStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.bussinessFlag[e.row.bussinessStatus]))])]}}])}),a("el-table-column",{attrs:{label:"企业法人",prop:"contacts"}}),a("el-table-column",{attrs:{label:"所属地区",prop:"area"}}),a("el-table-column",{attrs:{label:"详细地址",prop:"detailAddr","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small",disabled:"4"!==e.row.auditStatus||null===e.row.auditStatus||""===e.row.auditStatus},nativeOn:{click:function(a){return a.stopPropagation(),t.checkDialog2(e.row)}}},[t._v("变更\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.productQuery,size:"mini"}}),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.productLoading,expression:"productLoading"}],staticStyle:{width:"100%"},attrs:{data:t.productList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"产品名称",prop:"cpmctymc"}}),a("el-table-column",{attrs:{label:"规格型号",prop:"ggxh"}}),a("el-table-column",{attrs:{label:"注册/备案凭证号",prop:"zczbhhzbapzbh"}}),a("el-table-column",{attrs:{label:"生产厂家",prop:"ylqxzcrbarmc"}}),a("el-table-column",{attrs:{label:"审核状态",prop:"auditStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.auditStatusMap[e.row.auditStatus]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.selectProduct(e.row)}}},[t._v("变更\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.productQuery.limit,layout:"prev, pager, next",total:t.productTotal},on:{"current-change":t.salesmanHandleCurrentChange}})],1),a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.salesmanQuery,size:"mini"}}),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.salesmanLoading,expression:"salesmanLoading"}],staticStyle:{width:"100%"},attrs:{data:t.salesmanList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),a("el-table-column",{attrs:{label:"电话",prop:"tel"}}),a("el-table-column",{attrs:{label:"手机",prop:"phone"}}),a("el-table-column",{attrs:{label:"邮箱",prop:"email"}}),a("el-table-column",{attrs:{label:"证件类型",prop:"certType",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.certTypeMap[e.row.certType]))])]}}])}),a("el-table-column",{attrs:{label:"证件号",prop:"certCode"}}),a("el-table-column",{attrs:{label:"审核状态",prop:"auditStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.auditStatusMap[e.row.auditStatus]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.addSalesman(e.row)}}},[t._v("变更\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.salesmanQuery.limit,layout:"prev, pager, next",total:t.salesmanTotal},on:{"current-change":t.salesmanHandleCurrentChange}})],1),a("el-dialog",{attrs:{title:"供应商变更申请",visible:t.centerDialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%",center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[a("div",{staticStyle:{display:"flex","margin-top":"-30px"}},[a("el-button",{staticStyle:{margin:"0 20px 0 auto"},attrs:{type:"primary",size:"small"},nativeOn:{click:function(e){return t.formSubmit(2)}}},[t._v("允许变更")]),a("el-button",{staticStyle:{margin:"0 20px 0 0"},attrs:{type:"primary",size:"small"},nativeOn:{click:function(e){return t.formSubmit(3)}}},[t._v("拒绝变更")]),a("el-button",{staticStyle:{margin:"0 20px 0 0"},on:{click:function(e){t.centerDialogVisible=!1}}},[t._v("取消")])],1),a("el-card",[a("el-form",{ref:"rowDataForm",staticStyle:{margin:"0 20px"},attrs:{model:t.rowData}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"企业名称:","label-width":"150px",prop:"companyName"}},[a("el-input",{attrs:{size:"small",splaceholder:"",disabled:!0},model:{value:t.rowData.companyName,callback:function(e){t.$set(t.rowData,"companyName",e)},expression:"rowData.companyName"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"统一社会信用代码:","label-width":"150px",prop:"creditNum"}},[a("el-input",{attrs:{size:"small",splaceholder:"",disabled:!0},model:{value:t.rowData.creditNum,callback:function(e){t.$set(t.rowData,"creditNum",e)},expression:"rowData.creditNum"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"企业类别:","label-width":"150px",prop:"classes"}},[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.bussinessFlag[t.rowData.bussinessStatus],callback:function(e){t.$set(t.bussinessFlag,t.rowData.bussinessStatus,e)},expression:"bussinessFlag[rowData.bussinessStatus]"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"所属地区:","label-width":"150px",prop:"area"}},[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.area,callback:function(e){t.$set(t.rowData,"area",e)},expression:"rowData.area"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"联系人:","label-width":"150px",prop:"contacts"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.contacts,callback:function(e){t.$set(t.rowData,"contacts",e)},expression:"rowData.contacts"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"详细地址:","label-width":"150px",prop:"detailAddr"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.detailAddr,callback:function(e){t.$set(t.rowData,"detailAddr",e)},expression:"rowData.detailAddr"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"联系电话:","label-width":"150px",prop:"mobile"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.mobile,callback:function(e){t.$set(t.rowData,"mobile",e)},expression:"rowData.mobile"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"邮箱:","label-width":"150px",prop:"email"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.email,callback:function(e){t.$set(t.rowData,"email",e)},expression:"rowData.email"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件类型:","label-width":"150px",prop:"contactsPapersType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"证件类型",disabled:!0},model:{value:t.rowData.contactsPapersType,callback:function(e){t.$set(t.rowData,"contactsPapersType",e)},expression:"rowData.contactsPapersType"}},[a("el-option",{attrs:{label:"身份证",value:"1"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件号码:","label-width":"150px",prop:"contactsPapersCode"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.contactsPapersCode,callback:function(e){t.$set(t.rowData,"contactsPapersCode",e)},expression:"rowData.contactsPapersCode"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"登记状态:","label-width":"150px",prop:"registerStatus"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"登记状态",disabled:!0},model:{value:t.rowData.registerStatus,callback:function(e){t.$set(t.rowData,"registerStatus",e)},expression:"rowData.registerStatus"}},[a("el-option",{attrs:{label:"续存(在营,开业,在册)",value:"1"}}),a("el-option",{attrs:{label:"吊销",value:"2"}}),a("el-option",{attrs:{label:"注销",value:"3"}}),a("el-option",{attrs:{label:"迁出",value:"4"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证号:","label-width":"150px",prop:"jyxkzh"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jyxkzh,callback:function(e){t.$set(t.rowData,"jyxkzh",e)},expression:"rowData.jyxkzh"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证发证机关:","label-width":"150px",prop:"jyxkzfzjg"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jyxkzfzjg,callback:function(e){t.$set(t.rowData,"jyxkzfzjg",e)},expression:"rowData.jyxkzfzjg"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证有效期至:","label-width":"150px",prop:"jyxkzyxq"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:!0,type:"date",placeholder:""},model:{value:t.rowData.jyxkzyxq,callback:function(e){t.$set(t.rowData,"jyxkzyxq",e)},expression:"rowData.jyxkzyxq"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案凭证号:","label-width":"150px",prop:"jybapzh"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jybapzh,callback:function(e){t.$set(t.rowData,"jybapzh",e)},expression:"rowData.jybapzh"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案部门:","label-width":"150px",prop:"jybabm"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jybabm,callback:function(e){t.$set(t.rowData,"jybabm",e)},expression:"rowData.jybabm"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"发证日期:","label-width":"150px",prop:"fzrq"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"",disabled:!0},model:{value:t.rowData.fzrq,callback:function(e){t.$set(t.rowData,"fzrq",e)},expression:"rowData.fzrq"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"税号:","label-width":"150px",prop:"suihao"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.suihao,callback:function(e){t.$set(t.rowData,"suihao",e)},expression:"rowData.suihao"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户行:","label-width":"150px",prop:"kaihuhang"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.kaihuhang,callback:function(e){t.$set(t.rowData,"kaihuhang",e)},expression:"rowData.kaihuhang"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户账号:","label-width":"150px",prop:"kaihuzhanghao"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.kaihuzhanghao,callback:function(e){t.$set(t.rowData,"kaihuzhanghao",e)},expression:"rowData.kaihuzhanghao"}})],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"-10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"营业执照电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath||""===t.rowData.filePath,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath)}}},[t._v("查看文件\n ")])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath2||""===t.rowData.filePath2,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath2)}}},[t._v("查看文件\n ")])],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"-10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案证电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath3||""===t.rowData.filePath3,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath3)}}},[t._v("查看文件\n ")])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户行电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath4||""===t.rowData.filePath4,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath4)}}},[t._v("查看文件\n ")])],1)],1)],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:20}},[a("el-form-item",{attrs:{label:"变更原因:","label-width":"150px",prop:"companyName"}},[a("el-input",{attrs:{type:"textarea",size:"small",splaceholder:"",disabled:!0},model:{value:t.rowData.updateCause,callback:function(e){t.$set(t.rowData,"updateCause",e)},expression:"rowData.updateCause"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:20}},[a("el-form-item",{attrs:{label:"拒绝原因:","label-width":"150px",prop:"creditNum"}},[a("el-input",{attrs:{type:"textarea",size:"small",splaceholder:""},model:{value:t.rowData.noPassCause,callback:function(e){t.$set(t.rowData,"noPassCause",e)},expression:"rowData.noPassCause"}})],1)],1)],1)],1)],1)],1),t.selectLocalVisible?a("el-dialog",{attrs:{title:"医疗器械信息",visible:t.selectLocalVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.selectLocalVisible=e}}},[a("selectProduct",{attrs:{closeDialog:t.closeDialog,uuid:t.uuid,hid:t.hid}})],1):t._e(),t.addSalesmanVisible?a("el-dialog",{attrs:{title:"业务员",visible:t.addSalesmanVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"70%"},on:{"update:visible":function(e){t.addSalesmanVisible=e},close:t.closeDialog}},[a("companyAddSalesman",{attrs:{closeDialog:t.closeDialog,idQuery:t.idQuery}})],1):t._e()],1)},Sa=[];function _a(t){return Object(et["a"])({url:"/sale/info/company/update/log/filter",method:"get",params:t})}function $a(t){return Object(et["a"])({url:"/sale/info/getCompanyUpdateLogOne",method:"get",params:t})}function Ta(t){return Object(et["a"])({url:"/sale/info/addCompanyUpdateLog",method:"post",data:t})}function La(t){return Object(et["a"])({url:"/sale/info/applyUpdate",method:"post",data:t})}function Oa(t){return Object(et["a"])({url:"/sale/info/applyUpdateManage",method:"post",data:t})}var za={data:function(){return{filterQuery:{companyName:"",checkType:"",creditNum:"",auditStatus:"4",page:1,limit:20},value:"",total:0,checkFlag:{0:"未审核",1:"已通过",2:"已拒绝"},userflag:{0:"禁用",1:"正常",2:"未验证"},bussinessFlag:{1:"医院",2:"经营企业"},list:[],isTip:{0:"否",1:"是"},formVisible:!1,contractVisible:!1,customerVisible:!1,timer:"",formData:{customerName:"111",userMax:"",isInfoLink:"",infoLink:"",customerId:"",userFlag:"",roleId:"",pdfTemplateId:""},contractData:{contacts:"",mobile:"",tel:"",email:""},currentCustomer:"",check:"",roles:[],pdfTemplates:[],centerDialogVisible:!1,rowData:{},rowDataRules:{nickName:[{required:!0,message:"请输入用户名称",trigger:"blur"}]},fileUrl:"",checkQuery:{id:"",checkType:"",roles:""},certQuery:{page:1,limit:20},certList:[],certTotal:0,certLoading:!1,certFileUrl:"",addCertVisible:!1,certTypeMap:{1:"身份证"},auditStatusMap:{1:"通过",2:"不通过",3:"反审",4:"申请变更",5:"拒绝反审"},idQuery:{id:""},salesmanQuery:{name:"",auditStatus:"4",page:1,limit:20},salesmanList:[],salesmanTotal:0,salesmanLoading:!1,addSalesmanVisible:!1,selectLocalVisible:!1,productQuery:{ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"4",page:1,limit:20},productList:[],productTotal:0,productLoading:!1,uuid:null,hid:!0}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={companyName:"",creditNum:"",auditStatus:"4",page:1,limit:20},this.getList(),this.productList=[],this.salesmanList=[]},formSubmit:function(t){var e=this;if(3===t&&this.$isBlank(this.rowData.noPassCause))return this.$message.warning("请输入拒绝原因");var a=2===t?"是否允许变更":"是否拒绝变更";this.$confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:e.rowData.applyUpdateId,customerId:e.rowData.customerId,status:t,noPassCause:e.rowData.noPassCause,auditor:L["a"].getters.employeeName};Oa(a).then((function(t){e.loading=!1,e.cancelDialog(),e.getList(),2e4===t.code?e.$message({type:"success",message:"成功!"}):e.$message.warning("失败")})).catch((function(){e.cancelDialog(),e.loading=!1}))})).catch((function(){}))},onSubmit:function(){this.getList()},openFile:function(t){window.open(this.fileUrl+t)},getList:function(){var t=this;this.loading=!0,Object(x["f"])(this.filterQuery).then((function(e){console.log(e),t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},closeDialog:function(t){this.addSalesmanVisible=!1,this.selectLocalVisible=!1},getProductAndSalesmanList:function(t){},salesmanOnReset:function(){var t=this.salesmanQuery.customerId;this.salesmanQuery={name:"",auditStatus:"4",page:1,limit:20},this.salesmanQuery.customerId=t,this.getCompanySalesmanList()},salesmanOnSubmit:function(){this.getCompanySalesmanList()},productOnReset:function(){var t=this.productQuery.customerId;this.productQuery={ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"4",page:1,limit:20},this.productQuery.customerId=t,this.getProductRelevanceList()},productOnSubmit:function(){this.getProductRelevanceList()},selectProduct:function(t){this.$isNotBlank(t)&&(this.hid=t.id,this.uuid=t.uuid,this.selectLocalVisible=!0)},addSalesman:function(t){this.$isNotBlank(t)&&this.$isNotBlank(t.id)&&(this.idQuery.id=t.id,this.idQuery.toView=!0,this.idQuery.formData=t,this.addSalesmanVisible=!0)},updateProductAuditStatus:function(t,e){var a=this,i={auditStatus:e,id:t.id};ca(i).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success("成功"),a.getProductRelevanceList(a.productQuery)):a.$message.error(t.message)}))},updateAuditStatus:function(t,e){var a=this;this.$confirm("是否进行反审?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={customerId:L["a"].getters.customerId,salesmanId:t.id,status:2,name:t.name};a.loading=!0,wa(e).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success("成功"),a.getCompanySalesmanList()):a.$message.error(t.message)}))})).catch((function(){}))},salesmanHandleCurrentChange:function(t){this.salesmanQuery.page=t,this.getCompanySalesmanList(this.salesmanQuery)},productHandleCurrentChange:function(t){this.productQuery.page=t,this.getProductRelevanceList(this.productQuery)},getCompanySalesmanList:function(t){var e=this;this.$isNotBlank(t)&&(this.salesmanQuery.customerId=t.customerId),this.$isBlank(this.salesmanQuery.customerId)||(this.salesmanLoading=!0,Je(this.salesmanQuery).then((function(t){e.salesmanLoading=!1,e.salesmanList=t.data.list||[]})).catch((function(){e.salesmanLoading=!1,e.salesmanList=[]})))},getProductRelevanceList:function(t){var e=this;this.$isNotBlank(t)&&(this.productQuery.customerId=t.customerId),console.log(this.productQuery),this.$isBlank(this.productQuery.customerId)||(this.erpDisplay=!1,this.productLoading=!0,oa(this.productQuery).then((function(t){e.productLoading=!1,e.productList=t.data.list||[],console.log(e.productList),e.productTotal=t.data.total||0})).catch((function(){e.productLoading=!1,e.productList=[],e.productTotal=0})))},certHandleCurrentChange:function(t){this.certQuery.page=t,this.getCompanyCertList()},getCompanyCertList:function(){var t=this;this.certQuery.customerId=this.rowData.customerId,this.$isBlank(this.certQuery.customerId)||(this.certLoading=!0,fa(this.certQuery).then((function(e){t.certLoading=!1,t.certList=e.data.list||[]})).catch((function(){t.certLoading=!1,t.certList=[]})))},toViewCompanyCert:function(t){window.open(this.certFileUrl+t.filePath)},hideForm:function(){this.customerVisible=!1},cancelDialog:function(){this.formVisible=!1,this.contractVisible=!1,this.centerDialogVisible=!1},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleCheckedChange:function(t){console.log(t),console.log(this.check)},checkRegister:function(t){var e=this;this.loading=!0,Object(Xt["a"])(t).then((function(t){2e4===t.code?(e.getList(),e.$message({type:"success",message:"更新成功!"})):(e.$message.warning("更新失败"),e.loading=!1)})).catch((function(){}))},customerkDialog:function(t){this.currentCustomer=t.customerId,this.timer=(new Date).getTime(),console.log("this.currentCustomer = "+this.currentCustomer),this.customerVisible=!0},closeCustomerDialog:function(){console.log("this.currentCustomer 关闭 = "+this.currentCustomer),this.currentCustomer=null},checkDialog:function(t){console.log(t),console.log(t.customerName),this.formData={customerName:t.companyName,userMax:t.userMax,isInfoLink:t.isInfoLink+"",infoLink:t.infoLink,customerId:t.customerId,userFlag:t.userFlag,pdfTemplateId:t.pdfTemplateId},this.check=parseInt(t.roleId),console.log(this.check),this.formVisible=!0},checkDialog2:function(t){this.formData={customerName:t.companyName,userMax:t.userMax,isInfoLink:t.isInfoLink+"",infoLink:t.infoLink,customerId:t.customerId,userFlag:t.userFlag,pdfTemplateId:t.pdfTemplateId},this.check=parseInt(t.roleId),this.checkQuery={id:t.id+"",checkType:1,roles:t.roles},this.rowData=t,this.centerDialogVisible=!0,this.getCompanyApply(t.customerId)},getCompanyApply:function(t){var e=this,a={customerId:t};$a(a).then((function(t){console.log(t),2e4===t.code?(e.rowData.applyUpdateId=t.data.id,e.rowData.updateCause=t.data.updateCause,e.rowData.noPassCause=t.data.noPassCause):e.$message.warning(t.message)})).catch((function(){}))}},components:{customerUser:qe,companyAddSalesman:aa,selectProduct:ha},mounted:function(){},created:function(){this.getList()}},Ia=za,Na=Object(g["a"])(Ia,Qa,Sa,!1,null,null,null),Fa=Na.exports,qa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"企业名称"},model:{value:t.filterQuery.companyName,callback:function(e){t.$set(t.filterQuery,"companyName",e)},expression:"filterQuery.companyName"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"社会信用号"},model:{value:t.filterQuery.creditNum,callback:function(e){t.$set(t.filterQuery,"creditNum",e)},expression:"filterQuery.creditNum"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"审核状态"},model:{value:t.filterQuery.auditStatus,callback:function(e){t.$set(t.filterQuery,"auditStatus",e)},expression:"filterQuery.auditStatus"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"通过",value:"1"}}),a("el-option",{attrs:{label:"允许变更",value:"3"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"row-click":t.getProductAndSalesmanList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"企业名称",prop:"companyName"}}),a("el-table-column",{attrs:{label:"社会信用号",prop:"creditNum"}}),a("el-table-column",{attrs:{label:"企业类型",prop:"bussinessStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.bussinessFlag[e.row.bussinessStatus]))])]}}])}),a("el-table-column",{attrs:{label:"企业法人",prop:"contacts"}}),a("el-table-column",{attrs:{label:"所属地区",prop:"area"}}),a("el-table-column",{attrs:{label:"详细地址",prop:"detailAddr","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"审核状态",prop:"auditStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.auditStatusMap[e.row.auditStatus]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small",disabled:"0"===e.row.auditStatus},nativeOn:{click:function(a){return a.stopPropagation(),t.checkDialog2(e.row)}}},[t._v("详情\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.productQuery,size:"mini"}},[a("el-row",{staticStyle:{width:"100%"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品名称"},model:{value:t.productQuery.cpmctymc,callback:function(e){t.$set(t.productQuery,"cpmctymc",e)},expression:"productQuery.cpmctymc"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"规格型号"},model:{value:t.productQuery.ggxh,callback:function(e){t.$set(t.productQuery,"ggxh",e)},expression:"productQuery.ggxh"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"生产厂家"},model:{value:t.productQuery.ylqxzcrbarmc,callback:function(e){t.$set(t.productQuery,"ylqxzcrbarmc",e)},expression:"productQuery.ylqxzcrbarmc"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.productOnReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.productOnSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.productLoading,expression:"productLoading"}],staticStyle:{width:"100%"},attrs:{data:t.productList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"产品名称",prop:"cpmctymc"}}),a("el-table-column",{attrs:{label:"规格型号",prop:"ggxh"}}),a("el-table-column",{attrs:{label:"注册/备案凭证号",prop:"zczbhhzbapzbh"}}),a("el-table-column",{attrs:{label:"生产厂家",prop:"ylqxzcrbarmc"}}),a("el-table-column",{attrs:{label:"审核状态",prop:"auditStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.auditStatusMap[e.row.auditStatus]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.selectProduct(e.row)}}},[t._v("详情\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.productQuery.limit,layout:"prev, pager, next",total:t.productTotal},on:{"current-change":t.salesmanHandleCurrentChange}})],1),a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.salesmanQuery,size:"mini"}},[a("el-row",{staticStyle:{width:"100%"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"业务员姓名"},model:{value:t.salesmanQuery.name,callback:function(e){t.$set(t.salesmanQuery,"name",e)},expression:"salesmanQuery.name"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.salesmanOnReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.salesmanOnSubmit}},[t._v("查询\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.salesmanLoading,expression:"salesmanLoading"}],staticStyle:{width:"100%"},attrs:{data:t.salesmanList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),a("el-table-column",{attrs:{label:"电话",prop:"tel"}}),a("el-table-column",{attrs:{label:"手机",prop:"phone"}}),a("el-table-column",{attrs:{label:"邮箱",prop:"email"}}),a("el-table-column",{attrs:{label:"证件类型",prop:"certType",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.certTypeMap[e.row.certType]))])]}}])}),a("el-table-column",{attrs:{label:"证件号",prop:"certCode"}}),a("el-table-column",{attrs:{label:"审核状态",prop:"auditStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.auditStatusMap[e.row.auditStatus]))])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.addSalesman(e.row)}}},[t._v("详情\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.salesmanQuery.limit,layout:"prev, pager, next",total:t.salesmanTotal},on:{"current-change":t.salesmanHandleCurrentChange}})],1),a("el-dialog",{attrs:{title:"详情","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.centerDialogVisible,width:"85%",center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[a("el-card",[a("el-form",{ref:"rowDataForm",staticStyle:{margin:"0 20px"},attrs:{model:t.rowData}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"企业名称:","label-width":"150px",prop:"companyName"}},[a("el-input",{attrs:{size:"small",splaceholder:"",disabled:!0},model:{value:t.rowData.companyName,callback:function(e){t.$set(t.rowData,"companyName",e)},expression:"rowData.companyName"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"统一社会信用代码:","label-width":"150px",prop:"creditNum"}},[a("el-input",{attrs:{size:"small",splaceholder:"",disabled:!0},model:{value:t.rowData.creditNum,callback:function(e){t.$set(t.rowData,"creditNum",e)},expression:"rowData.creditNum"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"企业类别:","label-width":"150px",prop:"classes"}},[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.bussinessFlag[t.rowData.bussinessStatus],callback:function(e){t.$set(t.bussinessFlag,t.rowData.bussinessStatus,e)},expression:"bussinessFlag[rowData.bussinessStatus]"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"所属地区:","label-width":"150px",prop:"area"}},[a("el-input",{attrs:{size:"small",disabled:!0},model:{value:t.rowData.area,callback:function(e){t.$set(t.rowData,"area",e)},expression:"rowData.area"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"联系人:","label-width":"150px",prop:"contacts"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.contacts,callback:function(e){t.$set(t.rowData,"contacts",e)},expression:"rowData.contacts"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"详细地址:","label-width":"150px",prop:"detailAddr"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.detailAddr,callback:function(e){t.$set(t.rowData,"detailAddr",e)},expression:"rowData.detailAddr"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"联系电话:","label-width":"150px",prop:"mobile"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.mobile,callback:function(e){t.$set(t.rowData,"mobile",e)},expression:"rowData.mobile"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"邮箱:","label-width":"150px",prop:"email"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.email,callback:function(e){t.$set(t.rowData,"email",e)},expression:"rowData.email"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件类型:","label-width":"150px",prop:"contactsPapersType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"证件类型",disabled:!0},model:{value:t.rowData.contactsPapersType,callback:function(e){t.$set(t.rowData,"contactsPapersType",e)},expression:"rowData.contactsPapersType"}},[a("el-option",{attrs:{label:"身份证",value:"1"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件号码:","label-width":"150px",prop:"contactsPapersCode"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.contactsPapersCode,callback:function(e){t.$set(t.rowData,"contactsPapersCode",e)},expression:"rowData.contactsPapersCode"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"登记状态:","label-width":"150px",prop:"registerStatus"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"登记状态",disabled:!0},model:{value:t.rowData.registerStatus,callback:function(e){t.$set(t.rowData,"registerStatus",e)},expression:"rowData.registerStatus"}},[a("el-option",{attrs:{label:"续存(在营,开业,在册)",value:"1"}}),a("el-option",{attrs:{label:"吊销",value:"2"}}),a("el-option",{attrs:{label:"注销",value:"3"}}),a("el-option",{attrs:{label:"迁出",value:"4"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证号:","label-width":"150px",prop:"jyxkzh"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jyxkzh,callback:function(e){t.$set(t.rowData,"jyxkzh",e)},expression:"rowData.jyxkzh"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证发证机关:","label-width":"150px",prop:"jyxkzfzjg"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jyxkzfzjg,callback:function(e){t.$set(t.rowData,"jyxkzfzjg",e)},expression:"rowData.jyxkzfzjg"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证有效期至:","label-width":"150px",prop:"jyxkzyxq"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:!0,type:"date",placeholder:""},model:{value:t.rowData.jyxkzyxq,callback:function(e){t.$set(t.rowData,"jyxkzyxq",e)},expression:"rowData.jyxkzyxq"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案凭证号:","label-width":"150px",prop:"jybapzh"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jybapzh,callback:function(e){t.$set(t.rowData,"jybapzh",e)},expression:"rowData.jybapzh"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案部门:","label-width":"150px",prop:"jybabm"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.jybabm,callback:function(e){t.$set(t.rowData,"jybabm",e)},expression:"rowData.jybabm"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"发证日期:","label-width":"150px",prop:"fzrq"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"",disabled:!0},model:{value:t.rowData.fzrq,callback:function(e){t.$set(t.rowData,"fzrq",e)},expression:"rowData.fzrq"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"税号:","label-width":"150px",prop:"suihao"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.suihao,callback:function(e){t.$set(t.rowData,"suihao",e)},expression:"rowData.suihao"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户行:","label-width":"150px",prop:"kaihuhang"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.kaihuhang,callback:function(e){t.$set(t.rowData,"kaihuhang",e)},expression:"rowData.kaihuhang"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户账号:","label-width":"150px",prop:"kaihuzhanghao"}},[a("el-input",{attrs:{size:"small",placeholder:"",disabled:!0},model:{value:t.rowData.kaihuzhanghao,callback:function(e){t.$set(t.rowData,"kaihuzhanghao",e)},expression:"rowData.kaihuzhanghao"}})],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"-10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"营业执照电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath||""===t.rowData.filePath,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath)}}},[t._v("查看文件\n ")])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath2||""===t.rowData.filePath2,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath2)}}},[t._v("查看文件\n ")])],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"-10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案证电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath3||""===t.rowData.filePath3,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath3)}}},[t._v("查看文件\n ")])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户行电子档案:","label-width":"150px"}},[a("el-button",{attrs:{disabled:null===t.rowData.filePath4||""===t.rowData.filePath4,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.rowData.filePath4)}}},[t._v("查看文件\n ")])],1)],1)],1)],1)],1)],1),t.selectLocalVisible?a("el-dialog",{attrs:{title:"医疗器械信息",visible:t.selectLocalVisible,width:"85%","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.selectLocalVisible=e}}},[a("selectProduct",{attrs:{closeDialog:t.closeDialog,uuid:t.uuid,hid:t.hid}})],1):t._e(),t.addSalesmanVisible?a("el-dialog",{attrs:{title:"业务员",visible:t.addSalesmanVisible,width:"70%","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.addSalesmanVisible=e},close:t.closeDialog}},[a("companyAddSalesman",{attrs:{closeDialog:t.closeDialog,idQuery:t.idQuery}})],1):t._e()],1)},Va=[],Ra={data:function(){return{filterQuery:{companyName:"",checkType:"",creditNum:"",auditStatus:"",page:1,limit:20},value:"",total:0,checkFlag:{0:"未审核",1:"已通过",2:"已拒绝"},userflag:{0:"禁用",1:"正常",2:"未验证"},bussinessFlag:{1:"医院",2:"经营企业"},list:[],isTip:{0:"否",1:"是"},formVisible:!1,contractVisible:!1,customerVisible:!1,timer:"",formData:{customerName:"111",userMax:"",isInfoLink:"",infoLink:"",customerId:"",userFlag:"",roleId:"",pdfTemplateId:""},contractData:{contacts:"",mobile:"",tel:"",email:""},currentCustomer:"",check:"",roles:[],pdfTemplates:[],centerDialogVisible:!1,rowData:{},rowDataRules:{nickName:[{required:!0,message:"请输入用户名称",trigger:"blur"}]},fileUrl:"",checkQuery:{id:"",checkType:"",roles:""},certQuery:{page:1,limit:20},certList:[],certTotal:0,certLoading:!1,certFileUrl:"",addCertVisible:!1,certTypeMap:{1:"身份证"},auditStatusMap:{3:"允许变更",5:"拒绝变更",1:"通过",2:"不通过"},idQuery:{id:""},salesmanQuery:{name:"",auditStatus:"",page:1,limit:20},salesmanList:[],salesmanTotal:0,salesmanLoading:!1,addSalesmanVisible:!1,selectLocalVisible:!1,productQuery:{ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"",page:1,limit:20},productList:[],productTotal:0,productLoading:!1,uuid:null,hid:!0}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={companyName:"",creditNum:"",auditStatus:"",page:1,limit:20},this.getList(),this.productList=[],this.salesmanList=[]},formSubmit:function(t,e){var a=this;this.$isNotBlank(t)&&(this.rowData=t),this.rowData.auditStatus=e,Object(x["g"])(this.rowData).then((function(t){a.loading=!1,a.cancelDialog(),a.getList(),2e4===t.code?a.$message({type:"success",message:"更新成功!"}):a.$message.warning("更新失败")})).catch((function(){a.cancelDialog(),a.loading=!1}))},onSubmit:function(){this.getList()},openFile:function(t){window.open(this.fileUrl+t)},getList:function(){var t=this;this.loading=!0,this.$isBlank(this.filterQuery.auditStatus)?this.filterQuery.auditStatusList="1,3":this.filterQuery.auditStatusList="",Object(x["e"])(this.filterQuery).then((function(e){console.log(e),t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},closeDialog:function(t){this.addSalesmanVisible=!1,this.selectLocalVisible=!1},getProductAndSalesmanList:function(t){this.getCompanySalesmanList(t)},salesmanOnReset:function(){var t=this.salesmanQuery.customerId;this.salesmanQuery={name:"",auditStatus:"",page:1,limit:20},this.salesmanQuery.customerId=t,this.getCompanySalesmanList()},salesmanOnSubmit:function(){this.getCompanySalesmanList()},productOnReset:function(){var t=this.productQuery.customerId;this.productQuery={ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"",page:1,limit:20},this.productQuery.customerId=t,this.getProductRelevanceList()},productOnSubmit:function(){this.getProductRelevanceList()},selectProduct:function(t){this.$isNotBlank(t)&&(this.hid=t.id,this.uuid=t.uuid,this.selectLocalVisible=!0)},addSalesman:function(t){this.$isNotBlank(t)&&this.$isNotBlank(t.id)&&(this.idQuery.id=t.id,this.idQuery.toView=!0,this.idQuery.toView2=!0,this.idQuery.formData=t,this.addSalesmanVisible=!0)},updateProductAuditStatus:function(t,e){var a=this,i={auditStatus:e,id:t.id};ca(i).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success("成功"),a.getProductRelevanceList(a.productQuery)):a.$message.error(t.message)}))},updateAuditStatus:function(t,e){var a=this;this.$confirm("是否进行反审?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={customerId:L["a"].getters.customerId,salesmanId:t.id,status:2,name:t.name};a.loading=!0,wa(e).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success("成功"),a.getCompanySalesmanList()):a.$message.error(t.message)}))})).catch((function(){}))},salesmanHandleCurrentChange:function(t){this.salesmanQuery.page=t,this.getCompanySalesmanList(this.salesmanQuery)},productHandleCurrentChange:function(t){this.productQuery.page=t,this.getProductRelevanceList(this.productQuery)},getCompanySalesmanList:function(t){var e=this;this.$isNotBlank(t)&&(this.salesmanQuery.customerId=t.customerId),this.$isBlank(this.salesmanQuery.customerId)||(this.salesmanLoading=!0,Je(this.salesmanQuery).then((function(t){e.salesmanLoading=!1,e.salesmanList=t.data.list||[]})).catch((function(){e.salesmanLoading=!1,e.salesmanList=[]})))},getProductRelevanceList:function(t){var e=this;this.$isNotBlank(t)&&(this.productQuery.customerId=t.customerId),console.log(this.productQuery),this.$isBlank(this.productQuery.customerId)||(this.erpDisplay=!1,this.productLoading=!0,oa(this.productQuery).then((function(t){e.productLoading=!1,e.productList=t.data.list||[],console.log(e.productList),e.productTotal=t.data.total||0})).catch((function(){e.productLoading=!1,e.productList=[],e.productTotal=0})))},certHandleCurrentChange:function(t){this.certQuery.page=t,this.getCompanyCertList()},getCompanyCertList:function(){var t=this;this.certQuery.customerId=this.rowData.customerId,this.$isBlank(this.certQuery.customerId)||(this.certLoading=!0,fa(this.certQuery).then((function(e){t.certLoading=!1,t.certList=e.data.list||[]})).catch((function(){t.certLoading=!1,t.certList=[]})))},toViewCompanyCert:function(t){window.open(this.certFileUrl+t.filePath)},hideForm:function(){this.customerVisible=!1},cancelDialog:function(){this.formVisible=!1,this.contractVisible=!1,this.centerDialogVisible=!1},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleCheckedChange:function(t){console.log(t),console.log(this.check)},checkRegister:function(t){var e=this;this.loading=!0,Object(Xt["a"])(t).then((function(t){2e4===t.code?(e.getList(),e.$message({type:"success",message:"更新成功!"})):(e.$message.warning("更新失败"),e.loading=!1)})).catch((function(){}))},customerkDialog:function(t){this.currentCustomer=t.customerId,this.timer=(new Date).getTime(),console.log("this.currentCustomer = "+this.currentCustomer),this.customerVisible=!0},closeCustomerDialog:function(){console.log("this.currentCustomer 关闭 = "+this.currentCustomer),this.currentCustomer=null},checkDialog:function(t){console.log(t),console.log(t.customerName),this.formData={customerName:t.companyName,userMax:t.userMax,isInfoLink:t.isInfoLink+"",infoLink:t.infoLink,customerId:t.customerId,userFlag:t.userFlag,pdfTemplateId:t.pdfTemplateId},this.check=parseInt(t.roleId),console.log(this.check),this.formVisible=!0},checkDialog2:function(t){this.formData={customerName:t.companyName,userMax:t.userMax,isInfoLink:t.isInfoLink+"",infoLink:t.infoLink,customerId:t.customerId,userFlag:t.userFlag,pdfTemplateId:t.pdfTemplateId},this.check=parseInt(t.roleId),this.checkQuery={id:t.id+"",checkType:1,roles:t.roles},this.rowData=t,this.fileUrl="",this.fileUrl=r["a"]+"/udiwms/image/register/file/getImage?type=image1&name=",this.centerDialogVisible=!0},contractDialog:function(t){this.contractData={contacts:t.contacts,mobile:t.mobile,tel:t.tel,email:t.email},this.contractVisible=!0},deleteDialog:function(t){var e=this;this.$confirm("删除后将清空该客户下所有用户?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.customerId};Te(a).then((function(){e.getList()}))})).catch((function(){}))},getRoleList:function(){var t=this;lt().then((function(e){t.roles=e.data.list||[],console.log("888---"+t.checkQuery.roles)})).catch((function(){}))},getPDFTemplateList:function(){var t=this;De().then((function(e){t.pdfTemplates=e.data.list})).catch((function(){}))}},components:{customerUser:qe,companyAddSalesman:aa,selectProduct:ha},mounted:function(){},created:function(){this.getList(),this.getRoleList(),this.certFileUrl=r["a"]+"/udiwms/image/register/file/getImage?type=image2&name="}},Ea=Ra,ja=Object(g["a"])(Ea,qa,Va,!1,null,null,null),Pa=ja.exports,Ba=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"模板名称"},model:{value:t.query.name,callback:function(e){t.$set(t.query,"name",e)},expression:"query.name"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"模板类型"},model:{value:t.query.module,callback:function(e){t.$set(t.query,"module",e)},expression:"query.module"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"标签",value:"0"}}),a("el-option",{attrs:{label:"报表",value:"1"}}),a("el-option",{attrs:{label:"单据",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询")]),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:function(e){return t.handleAddForm(null)}}},[t._v("新增模板")])],1)],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"模板名称",prop:"name",width:"260"}}),a("el-table-column",{attrs:{label:"模板类型",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.moduleNameMap[e.row.module])+"\n ")]}}])}),a("el-table-column",{attrs:{label:"更新时间",prop:"update_time",width:"180"}}),a("el-table-column",{attrs:{label:"备注",prop:"remark"}}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleForm(e.$index,e.row)}}},[t._v("设置\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.deleteTemplate(e.row)}}},[t._v("删除\n ")]),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.jumpDl(e.row)}}},[t._v("模板下载\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.query.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-dialog",{attrs:{title:t.formMap[t.formName],visible:t.formVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,"before-close":t.hideForm,width:"75%",top:"5vh"},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("模板名称:")])])]),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:!1},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1)],1),a("el-col",{attrs:{span:2}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("备注:")])])]),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"module"}},[a("el-select",{attrs:{placeholder:"模板类型"},model:{value:t.formData.module,callback:function(e){t.$set(t.formData,"module",e)},expression:"formData.module"}},[a("el-option",{attrs:{label:"标签",value:"0"}}),a("el-option",{attrs:{label:"报表",value:"1"}}),a("el-option",{attrs:{label:"单据",value:"2"}})],1)],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("备注:")])])]),a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-input",{attrs:{type:"textarea",rows:"6"},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("选择jasper模板:")])])]),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:""}},[a("el-upload",{ref:"uploadJasper",staticClass:"upload-demo",attrs:{action:this.uploadUrl,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jasper","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess,"auto-upload":!0,"file-list":t.fileList}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:t.uploadDisabled},slot:"trigger"},[t._v("选取文件\n ")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传 jasper 文件,且不超过 2 MB")])],1)],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("选择jrxml模板:")])])]),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:""}},[a("el-upload",{ref:"uploadJrxml",staticClass:"upload-demo",attrs:{action:this.uploadJrxmlUrl,limit:1,"on-exceed":t.uploadJrxmlHandleExceed,accept:".jrxml","on-change":t.uploadJrxmlOnchange,"on-success":t.uploadJrxmlHandleSuccess,"file-list":t.jrxmlFileList,"auto-upload":!0}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:t.uploadDisabled},slot:"trigger"},[t._v("选取文件\n ")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传 jrxml 文件,且不超过 2 MB")])],1)],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(e){return t.hideForm.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.formLoading},nativeOn:{click:function(e){return t.submitUpload()}}},[t._v("提交\n ")])],1),a("div",{staticStyle:{"margin-top":"18px",color:"#F71616"}},[a("span",[t._v("提示:模板字体支持宋体,华文宋体,微软雅黑 ")])])],1),a("el-dialog",{attrs:{title:"选择模板","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.moduleFormVisible,"before-close":t.moduleHideForm,width:"45%",top:"5vh"},on:{"update:visible":function(e){t.moduleFormVisible=e}}},[a("el-form",{ref:"singleTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.selectTemplateLoading,expression:"selectTemplateLoading"}],staticStyle:{width:"100%"},attrs:{data:t.selectTemplateList,"highlight-current-row":""},on:{"current-change":t.moduleSelectHandleCurrentChange}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"模板名称",prop:"name",width:"200"}}),a("el-table-column",{attrs:{label:"备注",prop:"remark"}})],1),a("el-pagination",{attrs:{"page-size":t.selectTemplateQuery.limit,layout:"prev, pager, next",total:t.selectTemplateTotal},on:{"current-change":t.moduleHandleCurrentChange}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(e){return t.moduleHideForm.apply(null,arguments)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.moduleFormLoading},nativeOn:{click:function(e){return t.moduleSubmitSelectTemplate()}}},[t._v("确定\n ")])],1)],1),a("el-dialog",{attrs:{title:"字段说明",visible:t.centerDialogVisible,width:"80%",center:""},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[a("span",{staticStyle:{"white-space":"pre-wrap"}},[t._v(t._s(t.currentRow))]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.centerDialogVisible=!1}}},[t._v("确 定")])],1)])],1)},Ua=[],Aa=(a("a481"),{id:"",name:"",type:"2",module:null,param:"",path:"",jrxmlPath:null,rowCount:10,qrcodeCount:1,remark:""}),Ma={id:"",templateId:0},Wa={data:function(){return{query:{name:"",module:null,page:1,limit:20},list:[],total:0,moduleQuery:{name:"",page:1,limit:20},currentRow:null,moduleList:[],moduleNameList:[],moduleTotal:0,selectTemplateQuery:{name:"",module:null,page:1,limit:20},centerDialogVisible:!1,selectTemplateList:[],selectTemplateTotal:0,selectTemplateLoading:!1,moduleSelectQuery:{name:"",page:1,limit:20},moduleSelectList:[],moduleSelectTotal:0,loading:!0,index:null,formName:null,moduleFormName:null,formMap:{add:"新增",update:"设置"},formLoading:!1,formVisible:!1,moduleFormLoading:!1,moduleFormVisible:!1,formData:Aa,moduleFormData:Ma,formRules:{name:[{required:!0,message:"请输入模板名称",trigger:"blur"}],module:[{required:!0,message:"请选择模板类型",trigger:"blur"}]},deleteLoading:!1,uploadUrl:"",uploadJrxmlUrl:"",fileList:[],jrxmlFileList:[],uploadDisabled:!1,moduleLoading:!1,moduleNameMap:{0:"标签",1:"报表",2:"单据"}}},methods:{onReset:function(){this.$router.push({path:""}),this.query={name:"",page:1,limit:20},this.getList()},onSubmit:function(){this.getList()},handleCurrentChange:function(t){this.query.page=t,this.getList()},moduleHandleCurrentChange:function(t){this.moduleQuery.page=t,this.getModuleList()},getList:function(){var t=this;this.loading=!0,ve(this.query).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},moduleClick:function(t){this.query={module:t.id,page:1,limit:20},this.getList()},jumpDl:function(t){console.log(r["a"]),console.log(t.templateDlUrl+"----"),this.handleDownload(r["a"]+"/udiwms/donwload/file?fileName="+t.jrxmlPath,t.name+".jrxml")},handleDownload:function(t,e){return this.getBlob(t).then((function(t){Object(He["saveAs"])(t,e)})),!1},getBlob:function(t){return new Promise((function(e){var a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.onload=function(){200===a.status&&e(a.response)},a.send()}))},getModuleList:function(){var t=this;this.moduleLoading=!0,we(this.moduleQuery).then((function(e){t.moduleLoading=!1,t.moduleList=e.data.list||[],t.moduleTotal=e.data.total||0})).catch((function(){t.moduleLoading=!1,t.moduleList=[],t.moduleTotal=0}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.fileList=null,this.jrxmlFileList=null,this.getList())},hideForm:function(){return this.formVisible=!this.formVisible,!0},moduleHideForm:function(){return this.moduleFormVisible=!this.moduleFormVisible,this.selectTemplateQuery.module=null,!0},moduleSelectTemplate:function(t){this.moduleFormData={id:t.id,templateId:t.templateId},this.moduleFormVisible=!0,this.selectTemplateQuery={name:"",module:t.id,page:1,limit:20},this.selectTemplateGetList()},selectTemplateGetList:function(){var t=this;console.log(this.selectTemplateQuery),this.selectTemplateLoading=!0,ve(this.selectTemplateQuery).then((function(e){t.selectTemplateLoading=!1,t.selectTemplateList=e.data.list||[],t.selectTemplateTotal=e.data.total||0})).catch((function(){t.selectTemplateLoading=!1,t.selectTemplateList=[],t.selectTemplateTotal=0}))},previewTemplate:function(t){console.log(t)},showFieldExpain:function(t){this.currentRow=t.fieldExplain.replace("\\\n","
"),this.centerDialogVisible=!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(Aa)),this.fileList=[],null!==e&&(this.formData=Object.assign({},e),this.formData.module=e.module+""),this.index=t,this.formName="update",this.uploadDisabled=!0},handleAddForm:function(t){this.formVisible=!0,this.fileList=[],this.formName="add",this.uploadDisabled=!1},templateConfig:function(t){},submitUpload:function(){var t=this;this.$refs.uploadJasper.uploadFiles.length<1&&!this.uploadDisabled&&this.$message.warning("请选择jasper文件"),this.$refs.uploadJrxml.uploadFiles.length<1&&!this.uploadDisabled&&this.$message.warning("请选择jasper文件"),console.log(this.formName),this.$refs["dataForm"].validate((function(e){e&&t.submitTemplate()}))},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jasper"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r"),this.centerDialogVisible=!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(Ya)),this.fileList=[],null!==e&&(this.formData=Object.assign({},e),this.formData.module=e.module+""),this.index=t,this.formName="update",this.uploadDisabled=!0},handleAddForm:function(t){this.formVisible=!0,this.formData={module:t.id+""},this.fileList=[],this.formName="add",this.uploadDisabled=!1},templateConfig:function(t){},submitUpload:function(){var t=this;this.$refs.upload.uploadFiles.length<1&&!this.uploadDisabled&&this.$message.warning("请选择jasper文件"),console.log(this.formName),this.$refs["dataForm"].validate((function(e){e&&(t.uploadDisabled?t.submitTemplate():t.$refs.upload.submit())}))},uploadHandleRemove:function(t,e){console.log(t,e)},uploadHandlePreview:function(t){console.log(t),console.log(this.fileList)},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jasper"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0?t.$refs.upload.submit():t.$message.warning("请选择文件"))}))},onSubmit:function(){var t=this;this.loading=!0,this.formData.enterpriseId=this.enterpriseId,yi(this.formData).then((function(e){t.loading=!1,2e4===e.code?(t.$message.success("添加成功"),t.closeDialog(!0)):t.$message.error(e.message)}))},uploadHandleRemove:function(t,e){console.log(t,e)},uploadHandlePreview:function(t){console.log(t),console.log(this.fileList)},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0?t.$refs.upload.submit():t.$refs.upload2.uploadFiles.length>0?t.$refs.upload2.submit():t.onModifySubmit("inputQuery"))}))},onModifySubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0;var a=e.$isBlank(e.registrationId)?"add":"update";di(e.inputQuery,a).then((function(t){e.loading=!1,2e4===t.code?(e.closeRegistrationDialog(!0),e.$message.success("保存成功")):e.$message.error(t.message)}))}))},clearRecordPeopleArea:function(){this.inputQuery.recordPeopleArea=" ",this.inputQuery.recordPeopleAreaCode=" ",this.selectedOptions=[]},clearAgentArea:function(){this.inputQuery.agentArea=" ",this.inputQuery.agentAreaCode=" ",this.selectedOptions2=[]},getData:function(){var t=this;this.loading=!0;var e={id:this.registrationId};ui(e).then((function(e){console.log(e),t.loading=!1,t.inputQuery=e.data,t.selectedOptions=t.inputQuery.recordPeopleAreaCode.split(","),t.selectedOptions2=t.inputQuery.agentAreaCode.split(",")}))},openFile:function(){window.open(this.fileUrl+this.inputQuery.filePath)},toViewCompanyCert:function(t){window.open(this.certFileUrl+t.filePath)},handleChange:function(t){this.inputQuery.recordPeopleArea=fi["CodeToText"][t[0]]+fi["CodeToText"][t[1]]+fi["CodeToText"][t[2]],this.inputQuery.recordPeopleAreaCode=t.toString()},handleChange2:function(t){this.inputQuery.agentArea=fi["CodeToText"][t[0]]+fi["CodeToText"][t[1]]+fi["CodeToText"][t[2]],this.inputQuery.agentAreaCode=t.toString()},uploadHandleRemove:function(t,e){console.log(t,e)},uploadHandlePreview:function(t){console.log(t),console.log(this.fileList)},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0?this.$refs.upload2.submit():this.onModifySubmit("inputQuery")):this.$message.error("文件上传失败:"+t.message)},uploadHandleSuccess2:function(t,e,a){console.log(t),2e4===t.code?(this.$isBlank(this.inputQuery.instructions)?this.inputQuery.instructions=t.data.name:this.inputQuery.newInstructions=t.data.name,this.onModifySubmit("inputQuery")):this.$message.error("文件上传失败:"+t.message)},uploadHandleError:function(){}}},tl=Zi,el=(a("bf83"),Object(g["a"])(tl,Xi,Yi,!1,null,null,null)),al=el.exports;function il(t){return Object(et["a"])({url:"/udiwms/thrOrder/importLog/export",method:"post",data:t})}var ll={data:function(){return{filterQuery:{companyName:"",creditCode:"",placeArea:"",page:1,limit:20},value:"",total:0,companyTypeMap:{1:"注册人/备案人",2:"代理人"},productManageTypeMap:{1:"Ⅰ类",2:"Ⅱ类",3:"Ⅲ类"},list:[],addInfoVisible:!1,registrationVisible:!1,enterpriseId:"",registrationQuery:{recordProductName:"",recordCode:"",recordPeopleName:"",page:1,limit:20},registrationList:[],certTotal:0,registrationLoading:!1,registrationId:"",fileUrl:""}},filters:{statusFilterType:function(t){var e={0:"gray",1:"success",2:"danger"};return e[t]},statusFilterName:function(t){var e={0:"禁用",1:"正常",2:"未验证"};return e[t]}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={companyName:"",creditCode:"",placeArea:"",page:1,limit:20},this.getList(),this.registrationList=[]},onSubmit:function(){this.getList(),this.registrationList=[]},onReset2:function(){this.registrationQuery={recordProductName:"",recordCode:"",recordPeopleName:"",page:1,limit:20},this.getRegistrationList()},onSubmit2:function(){this.getRegistrationList()},toViewRegistrationCert:function(t,e){var a=1===e?t.filePath:t.instructions;window.open(this.fileUrl+a)},getList:function(){var t=this;this.loading=!0,oi(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},addInfoDialog:function(t){this.$isNotBlank(t)&&(this.enterpriseId=t.id),this.addInfoVisible=!0},registrationDialog:function(t){if(this.$isBlank(this.registrationQuery.enterpriseId))return this.$message.error("未选择企业");this.$isNotBlank(t)&&(this.registrationId=t.id),this.registrationVisible=!0},deleteRegistration:function(t){var e=this;this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.certLoading=!0;var a={id:t.id,filePath:t.filePath,filePath2:t.instructions};pi(a).then((function(t){e.certLoading=!1,2e4===t.code?(e.getRegistrationList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){e.certLoading=!1}))})).catch((function(){}))},closeDialog:function(t){this.addInfoVisible=!1,this.registrationVisible=!1,this.enterpriseId=null,this.registrationId=null,this.getList(),this.registrationList=[]},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleCheckedChange:function(t){console.log(t),console.log(this.check)},getRegistrationList:function(t){var e=this;this.registrationLoading=!0,this.$isNotBlank(t)&&(this.registrationQuery.enterpriseId=t.id),ci(this.registrationQuery).then((function(t){e.registrationLoading=!1,e.registrationList=t.data.list||[]})).catch((function(){e.registrationLoading=!1,e.registrationList=[]}))}},components:{suppliersEnterpriseBasicAdd:Gi,suppliersRegistrationBasic:al},mounted:function(){},created:function(){this.fileUrl=r["a"]+"/udiwms/image/register/file/getImage?type=image4&name=",this.getList()}},sl=ll,ol=Object(g["a"])(sl,li,si,!1,null,null,null),rl=ol.exports,nl=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{ref:"inputQuery",attrs:{model:t.inputQuery,rules:t.rules,"label-width":"100px"}},[a("el-card",{staticClass:"el-card"},[a("div",{staticStyle:{display:"flex"}},[a("el-button",{staticStyle:{margin:"0 10px 20px 0",width:"100px"},attrs:{disabled:"4"===t.inputQuery.auditStatus||"5"===t.inputQuery.auditStatus||"1"===t.inputQuery.auditStatus||"6"===t.inputQuery.auditStatus||t.companyEditDisabled,type:"primary",size:"small",icon:"search"},on:{click:function(e){return t.companySaveSubmit("inputQuery")}}},[t._v("保存\n ")]),a("el-button",{staticStyle:{margin:"0 10px 20px 0",width:"100px"},attrs:{disabled:"4"===t.inputQuery.auditStatus||"5"===t.inputQuery.auditStatus||"1"===t.inputQuery.auditStatus||"6"===t.inputQuery.auditStatus,type:"primary",size:"small",icon:"search"},on:{click:function(e){return t.editSwitch()}}},[t._v(t._s(t.companyEditButtonStr)+"\n ")]),a("el-button",{staticStyle:{margin:"0 10px 20px 0",width:"100px"},attrs:{disabled:"4"===t.inputQuery.auditStatus||"5"===t.inputQuery.auditStatus||"1"===t.inputQuery.auditStatus||"6"===t.inputQuery.auditStatus,type:"primary",size:"small",icon:"search"},on:{click:function(e){return t.onModifySubmit("inputQuery")}}},[t._v("提交\n ")]),a("el-button",{staticStyle:{margin:"0 10px 20px 0",width:"100px"},attrs:{disabled:"5"!==t.inputQuery.auditStatus&&"1"!==t.inputQuery.auditStatus,type:"primary",size:"small",icon:"search"},on:{click:function(e){return t.applyUpdate()}}},[t._v("申请变更\n ")])],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"企业名称:","label-width":"150px",prop:"companyName"}},[a("el-input",{attrs:{size:"small",splaceholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.companyName,callback:function(e){t.$set(t.inputQuery,"companyName",e)},expression:"inputQuery.companyName"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"统一社会信用代码:","label-width":"150px",prop:"creditNum"}},[a("el-input",{attrs:{size:"small",splaceholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.creditNum,callback:function(e){t.$set(t.inputQuery,"creditNum",e)},expression:"inputQuery.creditNum"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"企业类别:","label-width":"150px",prop:"classes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!0,size:"small",placeholder:"企业类别"},model:{value:t.inputQuery.classes,callback:function(e){t.$set(t.inputQuery,"classes",e)},expression:"inputQuery.classes"}},[t.classesDisplay?a("el-option",{attrs:{label:"医院",value:"1"}}):t._e(),a("el-option",{attrs:{label:"经营企业",value:"2"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"所属地区:","label-width":"150px",prop:"area"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{size:"small",options:t.options,placeholder:"请选择所属地区",disabled:t.companyEditDisabled},on:{change:t.handleChange},model:{value:t.selectedOptions,callback:function(e){t.selectedOptions=e},expression:"selectedOptions"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"联系人:","label-width":"150px",prop:"contacts"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.contacts,callback:function(e){t.$set(t.inputQuery,"contacts",e)},expression:"inputQuery.contacts"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"详细地址:","label-width":"150px",prop:"detailAddr"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.detailAddr,callback:function(e){t.$set(t.inputQuery,"detailAddr",e)},expression:"inputQuery.detailAddr"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"联系电话:","label-width":"150px",prop:"mobile"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.mobile,callback:function(e){t.$set(t.inputQuery,"mobile",e)},expression:"inputQuery.mobile"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"邮箱:","label-width":"150px",prop:"email"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.email,callback:function(e){t.$set(t.inputQuery,"email",e)},expression:"inputQuery.email"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件类型:","label-width":"150px",prop:"contactsPapersType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"证件类型",disabled:t.companyEditDisabled},model:{value:t.inputQuery.contactsPapersType,callback:function(e){t.$set(t.inputQuery,"contactsPapersType",e)},expression:"inputQuery.contactsPapersType"}},[a("el-option",{attrs:{label:"身份证",value:"1"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"证件号码:","label-width":"150px",prop:"contactsPapersCode"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.contactsPapersCode,callback:function(e){t.$set(t.inputQuery,"contactsPapersCode",e)},expression:"inputQuery.contactsPapersCode"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"登记状态:","label-width":"150px",prop:"registerStatus"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"登记状态",disabled:t.companyEditDisabled},model:{value:t.inputQuery.registerStatus,callback:function(e){t.$set(t.inputQuery,"registerStatus",e)},expression:"inputQuery.registerStatus"}},[a("el-option",{attrs:{label:"续存(在营,开业,在册)",value:"1"}}),a("el-option",{attrs:{label:"吊销",value:"2"}}),a("el-option",{attrs:{label:"注销",value:"3"}}),a("el-option",{attrs:{label:"迁出",value:"4"}})],1)],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证号:","label-width":"150px",prop:"jyxkzh"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.jyxkzh,callback:function(e){t.$set(t.inputQuery,"jyxkzh",e)},expression:"inputQuery.jyxkzh"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证发证机关:","label-width":"150px",prop:"jyxkzfzjg"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.jyxkzfzjg,callback:function(e){t.$set(t.inputQuery,"jyxkzfzjg",e)},expression:"inputQuery.jyxkzfzjg"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证有效期至:","label-width":"150px",prop:"jyxkzyxq"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",disabled:t.companyEditDisabled},model:{value:t.inputQuery.jyxkzyxq,callback:function(e){t.$set(t.inputQuery,"jyxkzyxq",e)},expression:"inputQuery.jyxkzyxq"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案凭证号:","label-width":"150px",prop:"jybapzh"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.jybapzh,callback:function(e){t.$set(t.inputQuery,"jybapzh",e)},expression:"inputQuery.jybapzh"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案部门:","label-width":"150px",prop:"jybabm"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.jybabm,callback:function(e){t.$set(t.inputQuery,"jybabm",e)},expression:"inputQuery.jybabm"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"发证日期:","label-width":"150px",prop:"fzrq"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",disabled:t.companyEditDisabled},model:{value:t.inputQuery.fzrq,callback:function(e){t.$set(t.inputQuery,"fzrq",e)},expression:"inputQuery.fzrq"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"税号:","label-width":"150px",prop:"suihao"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.suihao,callback:function(e){t.$set(t.inputQuery,"suihao",e)},expression:"inputQuery.suihao"}})],1)],1)],1),a("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"-10px"},attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户行:","label-width":"150px",prop:"kaihuhang"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.kaihuhang,callback:function(e){t.$set(t.inputQuery,"kaihuhang",e)},expression:"inputQuery.kaihuhang"}})],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户账号:","label-width":"150px",prop:"kaihuzhanghao"}},[a("el-input",{attrs:{size:"small",placeholder:"请输入内容",disabled:t.companyEditDisabled},on:{input:function(e){return t.change()}},model:{value:t.inputQuery.kaihuzhanghao,callback:function(e){t.$set(t.inputQuery,"kaihuzhanghao",e)},expression:"inputQuery.kaihuzhanghao"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"营业执照电子档案:","label-width":"150px"}},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:this.uploadUrl,"on-preview":t.uploadHandlePreview,"on-remove":t.uploadHandleRemove,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess,"on-error":t.uploadHandleError,"file-list":t.fileList,data:{type:"image1"},"auto-upload":!0,"show-file-list":!1}},[a("div",[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:t.companyEditDisabled},slot:"trigger"},[t._v("选取文件")]),a("el-button",{attrs:{disabled:null===t.inputQuery.filePath||""===t.inputQuery.filePath,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.inputQuery.filePath)}}},[t._v("查看文件\n ")])],1)])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营许可证电子档案:","label-width":"150px"}},[a("el-upload",{ref:"upload2",staticClass:"upload-demo",attrs:{action:this.uploadUrl,"on-preview":t.uploadHandlePreview,"on-remove":t.uploadHandleRemove,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess2,"on-error":t.uploadHandleError,"file-list":t.fileList2,data:{type:"image1"},"auto-upload":!0,"show-file-list":!1}},[a("div",[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:t.companyEditDisabled},slot:"trigger"},[t._v("选取文件")]),a("el-button",{attrs:{disabled:null===t.inputQuery.filePath2||""===t.inputQuery.filePath2,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.inputQuery.filePath2)}}},[t._v("查看文件\n ")])],1)])],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"-10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"经营备案证电子档案:","label-width":"150px"}},[a("el-upload",{ref:"upload3",staticClass:"upload-demo",attrs:{action:this.uploadUrl,"on-preview":t.uploadHandlePreview,"on-remove":t.uploadHandleRemove,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess3,"on-error":t.uploadHandleError,"file-list":t.fileList3,data:{type:"image1"},"auto-upload":!0,"show-file-list":!1}},[a("div",[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:t.companyEditDisabled},slot:"trigger"},[t._v("选取文件")]),a("el-button",{attrs:{disabled:null===t.inputQuery.filePath3||""===t.inputQuery.filePath3,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.inputQuery.filePath3)}}},[t._v("查看文件\n ")])],1)])],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"开户行电子档案:","label-width":"150px"}},[a("el-upload",{ref:"upload4",staticClass:"upload-demo",attrs:{action:this.uploadUrl,"on-preview":t.uploadHandlePreview,"on-remove":t.uploadHandleRemove,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess4,"on-error":t.uploadHandleError,"file-list":t.fileList4,data:{type:"image1"},"auto-upload":!0,"show-file-list":!1}},[a("div",[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:t.companyEditDisabled},slot:"trigger"},[t._v("选取文件")]),a("el-button",{attrs:{disabled:null===t.inputQuery.filePath4||""===t.inputQuery.filePath4,size:"small",type:"primary"},nativeOn:{click:function(e){return t.openFile(t.inputQuery.filePath4)}}},[t._v("查看文件\n ")])],1)])],1)],1),a("el-col",{staticStyle:{"margin-top":"-10px"},attrs:{span:10}},[a("el-form-item",{attrs:{label:"","label-width":"150px"}},[a("div",[t._v("只能上传 .jpg,.png 文件,且不超过 2 MB")])])],1)],1)],1),a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.salesmanQuery,size:"mini"}},[a("el-row",{staticStyle:{width:"100%"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"业务员姓名"},model:{value:t.salesmanQuery.name,callback:function(e){t.$set(t.salesmanQuery,"name",e)},expression:"salesmanQuery.name"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.salesmanOnReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.salesmanOnSubmit}},[t._v("查询\n ")]),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:function(e){return t.addSalesman()}}},[t._v("新增\n ")])],1)],1),a("el-form-item",{staticStyle:{margin:"0 100px 0 auto"}},[a("el-button-group")],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.salesmanLoading,expression:"salesmanLoading"}],staticStyle:{width:"100%"},attrs:{data:t.salesmanList}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),a("el-table-column",{attrs:{label:"电话",prop:"tel"}}),a("el-table-column",{attrs:{label:"手机",prop:"phone"}}),a("el-table-column",{attrs:{label:"邮箱",prop:"email"}}),a("el-table-column",{attrs:{label:"证件类型",prop:"certType",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.certTypeMap[e.row.certType]))])]}}])}),a("el-table-column",{attrs:{label:"审核状态",prop:"auditStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.auditStatusMap[e.row.auditStatus]))])]}}])}),a("el-table-column",{attrs:{label:"证件号",prop:"certCode"}}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{disabled:"1"===e.row.auditStatus&&"4"===e.row.auditStatus&&"5"===e.row.auditStatus,type:"text",size:"small"},nativeOn:{click:function(a){return t.addSalesman(e.row)}}},[t._v("详情\n ")]),a("el-button",{attrs:{disabled:"0"!==e.row.auditStatus||"2"!==e.row.auditStatus||"3"!==e.row.auditStatus,type:"text",size:"small"},nativeOn:{click:function(a){return t.deleteCompanySalesman(e.row)}}},[t._v("删除\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.salesmanQuery.limit,layout:"prev, pager, next",total:t.salesmanTotal},on:{"current-change":t.salesmanHandleCurrentChange}})],1),t.addCertVisible?a("el-dialog",{attrs:{title:"添加电子档",visible:t.addCertVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"70%"},on:{"update:visible":function(e){t.addCertVisible=e},close:t.closeDialog}},[a("companyAddCert",{attrs:{closeDialog:t.closeDialog,idQuery:t.idQuery}})],1):t._e(),t.addSalesmanVisible?a("el-dialog",{attrs:{title:"添加业务员",visible:t.addSalesmanVisible,width:"70%","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.addSalesmanVisible=e},close:t.closeDialog}},[a("companyAddSalesman",{attrs:{closeDialog:t.closeDialog,idQuery:t.idQuery}})],1):t._e(),t.companyApplyUpdateVisible?a("el-dialog",{attrs:{title:"申请变更",visible:t.companyApplyUpdateVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"70%"},on:{"update:visible":function(e){t.companyApplyUpdateVisible=e},close:t.closeDialog}},[a("companyApplyUpdate",{attrs:{closeDialog:t.closeDialog,idQuery:t.idQuery}})],1):t._e(),t.selectLocalVisible?a("el-dialog",{attrs:{title:"医疗器械信息",visible:t.selectLocalVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.selectLocalVisible=e}}},[a("selectProduct",{attrs:{closeDialog:t.closeDialog,uuid:t.uuid}})],1):t._e()],1)],1)},cl=[],ul=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-card",{staticStyle:{"margin-top":"-30px"}},[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{staticStyle:{margin:"0 60px 10px auto",height:"35px"},attrs:{type:"primary",loading:t.loading},nativeOn:{click:function(e){return t.submitUpload()}}},[t._v("提交\n ")])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("电子档名称:")])])]),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("备注:")])])]),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{prop:"remark"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}}),a("el-col",{attrs:{span:16}},[a("div",{staticStyle:{color:"red"}},[t._v("\n 需要上传档案为:营业执照电子档案,经营许可证电子档案,经营备案证电子档案,开户行电子档案。\n ")])])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("文件:")])])]),a("el-col",{attrs:{span:6}},[a("el-form-item",[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:this.uploadUrl,"on-preview":t.uploadHandlePreview,"on-remove":t.uploadHandleRemove,limit:1,"on-exceed":t.uploadHandleExceed,accept:".jpg,.png","on-change":t.uploadOnchange,"on-success":t.uploadHandleSuccess,"on-error":t.uploadHandleError,"file-list":t.fileList,data:{type:"image2"},"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),a("div",[t._v("只能上传 .jpg,.png 文件,且不超过 2 MB")])],1)],1)],1)],1)],1)],1)],1)},dl=[],pl={name:"idQuery",props:{closeDialog:{type:Function,required:!0},idQuery:{type:Object,required:!0}},data:function(){return{code:"",formData:{},formRules:{name:[{required:!0,message:"电子档名称",trigger:"blur"}]},loading:!1,uploadUrl:"",fileList:[]}},components:{draggable:We.a},methods:{submitUpload:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.$refs.upload.uploadFiles.length>0?t.$refs.upload.submit():t.$message.warning("请选择文件"))}))},onSubmit:function(){var t=this;this.loading=!0,this.formData.customerId=L["a"].getters.customerId,ga(this.formData).then((function(e){t.loading=!1,2e4===e.code?(t.$message.success("添加成功"),t.closeDialog(!0)):t.$message.error(e.message)}))},uploadHandleRemove:function(t,e){console.log(t,e)},uploadHandlePreview:function(t){console.log(t),console.log(this.fileList)},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0?t.$refs.upload.submit():t.$refs.upload2.uploadFiles.length>0?t.$refs.upload2.submit():t.$refs.upload3.uploadFiles.length>0?t.$refs.upload3.submit():t.$refs.upload4.uploadFiles.length>0?t.$refs.upload4.submit():t.onModifySubmit("inputQuery"))}))},companySaveSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e.$confirm("是否保存变更?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.loading=!0,e.inputQuery.customerId=L["a"].getters.customerId,e.inputQuery.newAuditStatus="0",Object(x["g"])(e.inputQuery).then((function(t){e.loading=!1,2e4===t.code&&e.$message.success("保存成功"),e.getData(),e.companyEditDisabled=!0,e.companyEditButtonStr="编辑"}))})).catch((function(){}))}))},onModifySubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e.$confirm("是否提交变更?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.loading=!0,e.inputQuery.customerId=L["a"].getters.customerId,e.inputQuery.newAuditStatus="6",Object(x["g"])(e.inputQuery).then((function(t){e.loading=!1,2e4===t.code&&e.$message.success("提交成功"),e.getData(),e.companyEditDisabled=!0,e.companyEditButtonStr="编辑"}))})).catch((function(){}))}))},editSwitch:function(){this.companyEditDisabled?(this.companyEditDisabled=!1,this.companyEditButtonStr="取消编辑"):(this.companyEditDisabled=!0,this.companyEditButtonStr="编辑")},addUpdateLog:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e.$confirm("是否提交变更?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.loading=!0,e.inputQuery.customerId=L["a"].getters.customerId,Ta(e.inputQuery).then((function(t){e.loading=!1,2e4===t.code?(e.getData(),e.$message.success("提交成功")):e.$message.error(t.message)}))})).catch((function(){}))}))},getData:function(){var t=this;this.loading=!0;var e={customerId:L["a"].getters.customerId};Object(x["b"])(e).then((function(e){console.log(e),t.loading=!1,t.inputQuery=e.data,t.inputQuery.bussinessStatus=t.inputQuery.bussinessStatus+"",t.selectedOptions=t.inputQuery.areaCode.split(",")}))},applyUpdate:function(){this.companyApplyUpdateVisible=!0},salesmanOnReset:function(){this.salesmanQuery={name:"",auditStatus:"",page:1,limit:20},this.getCompanySalesmanList()},salesmanOnSubmit:function(){this.getCompanySalesmanList()},productOnReset:function(){this.productQuery={ylqxzcrbarmc:"",cpmctymc:"",ggxh:"",auditStatus:"",page:1,limit:20},this.getProductRelevanceList()},productOnSubmit:function(){this.getProductRelevanceList()},openFile:function(t){window.open(this.fileUrl+t)},selectProduct:function(t){this.uuid=null,this.$isNotBlank(t)&&(this.uuid=t.uuid),this.selectLocalVisible=!0},certHandleCurrentChange:function(t){this.certQuery.page=t,this.getCompanyCertList()},salesmanHandleCurrentChange:function(t){this.salesmanQuery.page=t,this.getCompanySalesmanList()},productHandleCurrentChange:function(t){this.productQuery.page=t,this.getProductRelevanceList()},getCompanyCertList:function(){var t=this;this.certLoading=!0,this.certQuery.customerId=L["a"].getters.customerId,fa(this.certQuery).then((function(e){t.certLoading=!1,t.certList=e.data.list||[]})).catch((function(){t.certLoading=!1,t.certList=[]}))},getCompanySalesmanList:function(){var t=this;this.salesmanLoading=!0,this.salesmanQuery.customerId=L["a"].getters.customerId,Je(this.salesmanQuery).then((function(e){t.salesmanLoading=!1,t.salesmanList=e.data.list||[]})).catch((function(){t.salesmanLoading=!1,t.salesmanList=[]}))},getProductRelevanceList:function(){var t=this;this.erpDisplay=!1,this.productLoading=!0,this.productQuery.customerId=L["a"].getters.customerId,oa(this.productQuery).then((function(e){t.productLoading=!1,t.productList=e.data.list||[],t.productTotal=e.data.total||0})).catch((function(){t.productLoading=!1,t.productList=[],t.productTotal=0}))},addCert:function(t,e){this.idQuery.id="",this.$isNotBlank(e)&&this.$isNotBlank(e.id)&&(this.idQuery.id=e.id,this.idQuery.formData=e),this.addCertVisible=!0},addSalesman:function(t){this.idQuery.id="",this.$isNotBlank(t)&&this.$isNotBlank(t.id)&&(this.idQuery.id=t.id,this.idQuery.formData=t),this.addSalesmanVisible=!0},applyAudit:function(t){var e=this;this.$confirm("是否提交申请?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.certLoading=!0;var a={salesmanId:t.id,customerId:L["a"].getters.customerId,name:t.name};va(a).then((function(t){e.certLoading=!1,2e4===t.code?(e.getCompanySalesmanList(),e.$message({type:"success",message:"提交成功!"})):e.$message.error(t.message)})).catch((function(){e.certLoading=!1}))})).catch((function(){}))},toViewCompanyCert:function(t){window.open(this.certFileUrl+t.filePath)},deleteCompanyCert:function(t){var e=this;this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.certLoading=!0;var a={id:t.id,filePath:t.filePath};ya(a).then((function(t){e.certLoading=!1,2e4===t.code?(e.getCompanyCertList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){e.certLoading=!1}))})).catch((function(){}))},deleteCompanySalesman:function(t){var e=this;this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.salesmanLoading=!0;var a={id:t.id,filePath:t.filePath,filePath2:t.filePath2};Ye(a).then((function(t){e.salesmanLoading=!1,2e4===t.code?(e.getCompanySalesmanList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){e.salesmanLoading=!1}))})).catch((function(){}))},deleteCompanyProductRelevance:function(t){var e=this;this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.productLoading=!0;var a={id:t.id};ua(a).then((function(t){e.productLoading=!1,2e4===t.code?(e.getProductRelevanceList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){e.productLoading=!1}))})).catch((function(){}))},closeDialog:function(t){this.addCertVisible=!1,this.addSalesmanVisible=!1,this.selectLocalVisible=!1,this.companyApplyUpdateVisible=!1,this.getData(),this.getCompanyCertList(),this.getCompanySalesmanList()},handleChange:function(t){this.inputQuery.area=fi["CodeToText"][t[0]]+fi["CodeToText"][t[1]]+fi["CodeToText"][t[2]],this.inputQuery.areaCode=t.toString()},uploadHandleRemove:function(t,e){console.log(t,e)},uploadHandlePreview:function(t){console.log(t),console.log(this.fileList)},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0?t.$refs.upload.submit():t.onModifySubmit("inputQuery"))}))},uploadHandleRemove:function(t,e){console.log(t,e)},uploadHandlePreview:function(t){console.log(t),console.log(this.fileList)},uploadHandleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))},uploadOnchange:function(t,e){var a=t.name,i=t.uid,l=a.lastIndexOf("."),s=a.substring(l,a.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=t.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var r=0;r0))break;if(0===this.nowNumber)break;if(this.sliderChangeDelete("numberEnable","numberWidth",e),0===this.nowNumber)break;if(this.sliderChangeDelete("coNameEnable","coNameWidth",e),0===this.nowNumber)break;if(this.sliderChangeDelete("packSpecEnable","packSpecWidth",e),0===this.nowNumber)break;if(this.sliderChangeDelete("batchNoEnable","batchNoWidth",e),0===this.nowNumber)break;if(this.sliderChangeDelete("countEnable","countWidth",e),0===this.nowNumber)break;if(this.sliderChangeDelete("productCompanyEnable","productCompanyWidth",e),0===this.nowNumber)break;this.sliderChangeDelete("authCodeEnable","authCodeWidth",e)}console.log("number:"+t)}},sliderChangeAdd:function(t,e,a){if(console.log("++++++++++++++ 更新后的值: "+this.nowNumber),this.formData[t]&&e!==a&&this.formData[e]this.formData[e]?this.nowWidth=this.formData[e]:this.nowWidth===this.formData[e]&&(this.nowWidth=0,++this.formData[e],++this.cellOldWidth[e],++this.nowNumber)}},sliderChangeDelete:function(t,e,a){if(console.log("-------------- 更新后的值: "+this.nowNumber),this.formData[t]&&e!==a&&this.formData[e]>this.tableCellMinWidth){if(0===this.nowNumber)return;0===this.nowWidth||this.nowWidth1&&(e.isUseDyCheck=!0)}))})).catch((function(){e.loading=!1,e.detailList=[]}))},handleDetail:function(t){this.editQuery=t,console.log(t)},deleteOrders:function(t){var e=this;this.loading=!0;var a={id:t.id+""};ql(a).then((function(t){2e4==t.code?(e.getList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteOrders(t)})).catch((function(){}))},intentDetail:function(){this.isImportUdi=!1,this.selectUdiDialogVisible=!0},addSelectErp:function(t){this.defaultSys=t.sysId,this.isImport=!1,this.selectErpDialogVisible=!0},removeErp:function(t){var e=this;this.$confirm("此操作将解除该绑定产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={relId:e.editQuery.relId,thirdSys:t.sysId};Wl(a).then((function(t){2e4==t.code?(e.getThirdSysDetail()(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))})).catch((function(){}))},bindId:function(t){var e=this,a={id:this.curRow.id,bindStatus:0,bindRlFk:t.id};Pi(a).then((function(t){2e4==t.code?(e.$message.success("绑定成功"),e.closeBindDialog(e.curRow.id)):e.$message.error("绑定失败")})).catch((function(){}))},handleSelectionChange:function(t){console.log("----"+t)},cancelDialog:function(){this.editDialogVisible=!1},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleModifyClick:function(t){this.uuid=t.uuid,this.relId=t.relId,this.isImport=!1,this.thisData=t,this.editDialogVisible=!0,this.editQuery=t,this.relevanceEdit={id:t.id,isUseDy:t.isUseDy,isDisable:t.isDisable,isLock:t.isLock},this.checked=1==t.isUseDy;var e={uuid:t.uuid,page:1,limit:10};console.log("this.editQuery.isUseDy = "+this.editQuery.isUseDy),this.getDetailList(e),this.getThirdSysDetail()},closeUdi:function(t){this.selectUdiDialogVisible=!1,this.selectErpDialogVisible=!1,this.selectLocalVisible=!1,this.getThirdSysDetail(),t&&this.getList()},getThirdSysDetail:function(){var t=this,e={id:this.relevanceEdit.id};Ml(e).then((function(e){t.loading=!1,t.sysList=e.data.list||[]})).catch((function(){t.loading=!1,t.sysList=[]}))},getSysFilter:function(){var t=this;Kl().then((function(e){t.loading=!1,t.filterList=e.data.list||[]})).catch((function(){t.loading=!1,t.filterList=[]}))},closeDialog:function(){this.selectErpDialogVisible=!1,this.selectLocalVisible=!1},selectSysParam:function(){var t=this,e={paramKey:"smp_isUploadProuct"};Bt(e).then((function(e){2e4==e.code&&"1"==e.data.paramValue&&(t.isUploadSmp=!0)}));var a={paramKey:"upload_pi_file_enabled"};Bt(a).then((function(e){2e4==e.code&&"1"==e.data.paramValue&&(t.isImportFile=!0)}));var i={paramKey:"upload_pi_file_url"};Bt(i).then((function(e){2e4==e.code&&(t.uploadFileUrl=e.data.paramValue)}))}},mounted:function(){},components:{selectUdi:ds,selectErp:ys,selectLocalUdi:Cs},created:function(){this.getList()}},Mn=An,Wn=(a("a417"),Object(g["a"])(Mn,Bn,Un,!1,null,"5a8401a0",null)),Hn=Wn.exports;function Kn(t,e){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=Jn(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,l=function(){};return{s:l,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:l}}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 s,o=!0,r=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw s}}}}function Jn(t,e){if(t){if("string"===typeof t)return Gn(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Gn(t,e):void 0}}function Gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a\n\nCode\nCorpOrderID\nActor\nActDate\nToCorpID\n\n \n\n\n\n\n\n\n\n\n',r=Kn(a);try{for(r.s();!(s=r.n()).done;){var n=s.value;null===n.fromCorpId&&(n.fromCorpId="");var c=' \n';o+=c}}catch(d){r.e(d)}finally{r.f()}o+="\n\n\n\n";var u=new Blob([o],{type:"text/plain;charset=utf-8"});Object(He["saveAs"])(u,i.action+i.corpOrderId+".xml"),e.exportQuery.orderId=l,e.exportQuery.exportStatus="已上传",Ei(e.exportQuery).then((function(t){e.getList()}))})).catch((function(){e.loading=!1,e.list=[],e.total=0}))},uploadOrderDialog:function(t){var e=this;console.log(t.id+"---"+t.orderid),this.uploadQuery={orderId:t.id},Ui(this.uploadQuery).then((function(t){2e4===t.code?(e.$message.success(t.data),e.getList()):e.$message.error(t.message)})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该订单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteOrders(t)})).catch((function(){}))},closeDetailDialog:function(t){this.codeDetailVisible=!1},closeManuDialog:function(t){this.addDialogVisible=!1,t?(this.$message.success("选入成功"),this.refresgOrderDetail(),this.getList()):this.$message.error("选入失败")},cancelDialog:function(){this.addDialogVisible=!1},importOrder:function(t){this.orderId=t.id,this.billAction=t.action,this.addDialogVisible=!0}},filters:{statusFilterType:function(t){var e={false:"success",true:"danger"};return e[t]}},mounted:function(){document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},created:function(){this.getBusType();var t=this.$route.query;this.query=Object.assign(this.query,t),this.query.limit=parseInt(this.query.limit),this.getList();var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),this.actDateRange=[a,e]}},Zn=Yn,tc=(a("9ba4"),Object(g["a"])(Zn,jn,Pn,!1,null,null,null)),ec=tc.exports,ac=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"单号"},model:{value:t.filterQuery.id,callback:function(e){t.$set(t.filterQuery,"id",e)},expression:"filterQuery.id"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"出入库类型"},model:{value:t.filterQuery.mainAction,callback:function(e){t.$set(t.filterQuery,"mainAction",e)},expression:"filterQuery.mainAction"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"入库",value:"WareHouseIn"}}),a("el-option",{attrs:{label:"出库",value:"WareHouseOut"}})],1)],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"请选择扫码单据类型"},model:{value:t.filterQuery.action,callback:function(e){t.$set(t.filterQuery,"action",e)},expression:"filterQuery.action"}},t._l(t.busTypes,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.action}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.name))])])})),1)],1),a("el-form-item",{staticClass:"query-form-item"},[a("span",{staticStyle:{color:"#000","margin-left":"10px","margin-right":"6px"}},[t._v("创建日期:")]),a("el-date-picker",{attrs:{"picker-options":t.pickerOptions,type:"daterange",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.actDateRange,callback:function(e){t.actDateRange=e},expression:"actDateRange"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.onSubmit}},[t._v("查询")]),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.mergesOrders}},[t._v("合并单号")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"highlight-current-row":""},on:{"row-click":t.getOrderDetail,"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"扫码单据类型",prop:"action"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.getActionName(e.row.action)))])]}}])}),a("el-table-column",{attrs:{label:"订单号",prop:"id","show-overflow-tooltip":"true"}}),a("el-table-column",{attrs:{label:"来源",prop:"fromType"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.fromTypeMap[e.row.fromType]))])]}}])}),a("el-table-column",{attrs:{label:"往来单位",prop:"fromCorp",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.fromCorp)+"\n ")]}}])}),a("el-table-column",{attrs:{label:"创建时间",prop:"actDate",width:"150","show-overflow-tooltip":"true"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"el-icon-time"}),a("span",[t._v(t._s(e.row.actDate))])]}}])}),a("el-table-column",{attrs:{label:"校验状态",prop:"contrastStatus",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("statusFilterType")(1===e.row.contrastStatus)}},[t._v("\n "+t._s(t.erpCheckStatus[e.row.contrastStatus])+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.intentDetail(e.row)}}},[t._v("详情\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row.id)}}},[t._v("删除\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.importOrder(e.row)}}},[t._v("选择业务单据\n ")])]}}])})],1),t.successOrderExportPDFSettingVisible?a("el-dialog",{attrs:{title:"导出PDF",visible:t.successOrderExportPDFSettingVisible,width:"80%"},on:{"update:visible":function(e){t.successOrderExportPDFSettingVisible=e},close:t.closeDialog}},[a("successOrderExportPDFSetting",{attrs:{closeDialog:t.closeDialog,idQuery:t.idQuery}})],1):t._e(),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-card",{staticClass:"el-card",attrs:{id:"printJS-form"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"row-class-name":t.tableRowClassName,data:t.detailList}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"产品通用名",prop:"coName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"包装规格",prop:"packSpec","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"批次号",prop:"batchNo","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"生产日期",prop:"productDate","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"失效日期",prop:"expireDate","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"单据数量",prop:"erpCount","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"实际数量",prop:"reCount","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"扫码数量",prop:"count"}}),a("el-table-column",{attrs:{label:"生产企业",prop:"productCompany","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"注册/备案凭证号",prop:"authCode","show-overflow-tooltip":!0}})],1)],1),a("el-dialog",{attrs:{title:"选择往来单位",visible:t.dialogTableVisible,width:"70%"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"搜索"},model:{value:t.unitquery.key,callback:function(e){t.$set(t.unitquery,"key",e)},expression:"unitquery.key"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"search"},nativeOn:{click:function(e){return e.stopPropagation(),t.getUnitList()}}},[t._v("查询\n ")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.unitlist},on:{"row-click":t.selectUnit}},[a("el-table-column",{attrs:{label:"往来单位ID",prop:"unitId"}}),a("el-table-column",{attrs:{label:"往来单位名称",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"往来单位简写",prop:"spell","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"地址",prop:"addr","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",prop:"status"}}),a("el-table-column",{attrs:{label:"类型",prop:"type"}})],1)],1),t.addDialogVisible?a("el-dialog",{attrs:{title:"选择业务单据",visible:t.addDialogVisible,width:"80%"},on:{"update:visible":function(e){t.addDialogVisible=e}}},[a("selectErpOrder",{attrs:{orderId:t.orderId,orderAction:t.billAction},on:{closeManuDialog:t.closeManuDialog}})],1):t._e(),t.codeDetailVisible?a("el-dialog",{attrs:{title:"单号详情",visible:t.codeDetailVisible,width:"80%"},on:{"update:visible":function(e){t.codeDetailVisible=e}}},[a("codeDetail",{attrs:{idQuery:t.idQuery},on:{closeDetailDialog:t.closeDetailDialog}})],1):t._e(),a("el-dialog",{attrs:{title:"校验信息",visible:t.errDialogVisible,width:"30%"},on:{"update:visible":function(e){t.errDialogVisible=e}}},[a("span",[t._v(t._s(t.errorDetail))]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.errDialogVisible=!1}}},[t._v("关 闭")])],1)])],1)},ic=[],lc={site_id:"",site_name:"",describe:"",ads:[]},sc={props:{isSelect:{type:Boolean,default:!1}},data:function(){return{query:{page:1,limit:10},checkStatus:{1:"校验异常",0:"未校验",2:"正常"},erpCheckStatus:{1:"校验异常",0:"未校验",2:"校验成功"},unitquery:{key:"",page:1,limit:20},unitlist:[],list:[],billAction:null,detailList:[],unitUpdateQuery:{id:"",fromCorpId:"",fromCorp:""},actDateRange:[],filterQuery:{id:"",mainAction:null,action:null,page:1,limit:10,code:"",exportStatus:null,contrastStatus:0,status:2,startTime:"",endTime:""},detailQuery:{orderId:""},deleteData:{id:""},idQuery:{id:""},curIndex:"",adListNoDataText:"无数据",queryAdIdAsyncLoading:!1,codeDetailVisible:!1,successOrderExportPDFSettingVisible:!1,total:0,loading:!0,index:null,formName:null,orderId:"",formMap:{add:"新增",edit:"编辑"},fromTypeMap:{1:"UDIMS平台",2:"网页新增",3:"pda即时校验",4:"pda未校验",5:"pc端扫码精灵",6:"补录单据",7:"UDI供应商平台"},exportQuery:{orderId:"",exportStatus:""},uploadQuery:{orderId:""},busTypes:[],multipleSelection:[],dialogTableVisible:!1,formLoading:!1,formVisible:!1,formData:lc,deleteLoading:!1,addDialogVisible:!1,errDialogVisible:!1,pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]}}},components:{draggable:We.a,codeDetail:tr,successOrderExportPDFSetting:rr,selectErpOrder:Gr},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={id:"",mainAction:null,action:null,page:1,limit:10,code:"",exportStatus:null,contrastStatus:0,status:2,startTime:"",endTime:""},this.actDateRange=[],this.getList()},onSubmit:function(){null!==this.actDateRange?(this.filterQuery.startTime=this.actDateRange[0],this.filterQuery.endTime=this.actDateRange[1]):(this.filterQuery.startTime=null,this.filterQuery.endTime=null),this.getList()},handleSizeChange:function(t){this.filterQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleSelectionChange:function(t){console.log(t),this.multipleSelection=t},handleErrorDetail:function(t){var e=this.list[t];this.errorDetail=e.remark,this.errDialogVisible=!0},mergesOrders:function(){var t=this,e=this.multipleSelection;if(e.length<=1)this.$message.warning("选择的订单需大于1");else{var a=e[0].id,i=e[0].fromCorp,l=e[0].action,s=[];e.forEach((function(e,a){i===e.fromCorp?l===e.action?s.push(e.id):t.$message.warning("业务类型不一致!"):t.$message.warning("往来单位不一致!")}));var o={orderList:s};this.$confirm("所选择的订单将会合并到订单号为"+a+"的订单下","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Oi(o).then((function(e){2e4===e.code?(t.getList(),t.$message({type:"success",message:"合并成功"})):t.$message.error(e.message)}))})).catch((function(){}))}},getList:function(){var t=this;this.loading=!0,this.filterQuery.customerId=L["a"].getters.customerId,Ii(this.filterQuery).then((function(e){console.log(e),t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0,t.detailList=[]})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},getOrderDetail:function(t){this.loading=!0,this.detailQuery={orderId:t.id},this.refresgOrderDetail()},repeatCheckClick:function(t){var e=this,a={orderId:t.id};this.loading=!0,Wo(a).then((function(a){e.loading=!1,2e4===a.code?(e.$message.success(a.data),e.getList(),e.detailQuery={orderId:t.id},e.refresgOrderDetail()):e.$message.error(a.message)})).catch((function(){e.loading=!1,e.getList(),e.$message.error(response.message)}))},refresgOrderDetail:function(){var t=this;ji(this.detailQuery).then((function(e){console.log(e),t.loading=!1,t.detailList=e.data||[]})).catch((function(){t.loading=!1,t.detailList=[]}))},handleUnitClick:function(t){this.curIndex=t.id},getUnitList:function(){var t=this;this.loading=!0,Ko(this.unitquery).then((function(e){t.loading=!1,t.unitlist=e.data.list||[]})).catch((function(){t.loading=!1}))},intentDetail:function(t){this.codeDetailVisible=!0,this.idQuery.id=t.id},successOrderExportPDFSetting:function(t){this.idQuery.id="",this.$isNotBlank(t.id)&&(this.idQuery.id=t.id),this.successOrderExportPDFSettingVisible=!0},successOrderExportPDF:function(t){var e=this;console.log(t);var a={orderId:t.id,customerId:L["a"].getters.customerId};this.loading=!0,Eo(a).then((function(t){2e4===t.code?Ro(a).then((function(t){var a=[];a.push(t);var i=window.URL.createObjectURL(new Blob(a,{type:"application/pdf"}));e.loading=!1,window.open(i)})).catch((function(){e.loading=!1})):(e.loading=!1,e.$message.error(t.message))})).catch((function(){e.loading=!1}))},closeDialog:function(){this.successOrderExportPDFSettingVisible=!1,this.getList()},selectUnit:function(t){var e=this;console.log(t.id),this.unitUpdateQuery.id=this.curIndex,this.unitUpdateQuery.fromCorp=t.name,this.unitUpdateQuery.fromCorpId=t.unitid,zi(this.unitUpdateQuery).then((function(t){e.dialogTableVisible=!1,e.getList()})).catch((function(){e.dialogTableVisible=!1}))},deleteOrders:function(t){var e=this;this.loading=!0,this.deleteData.id=t,Fi(this.deleteData).then((function(t){e.getList(),e.refresgOrderDetail(),e.$message({type:"success",message:"删除成功!"})})).catch((function(){}))},tableRowClassName:function(t){var e=t.row;t.rowIndex;return e.reCount===e.count?"success-row":"warning-row"},exportDialog:function(t){var e=this,a=t;"已上传"===a.exportStatus?this.$confirm("该订单已修改, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.uploadOrderDialog(a)})).catch((function(){})):0===a.contrastStatus?this.$confirm("该订单校验异常, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.uploadOrderDialog(a)})).catch((function(){})):null===a.contrastStatus?this.$confirm("该订单未校验, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.uploadOrderDialog(a)})).catch((function(){})):this.$confirm("是否确定修改ERP订单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.uploadOrderDialog(a)})).catch((function(){}))},uploadOrderDialog:function(t){var e=this;console.log(t.id+"---"+t.orderid),this.uploadQuery={orderId:t.id},Ui(this.uploadQuery).then((function(t){2e4===t.code?(e.$message.success(t.data),e.getList()):e.$message.error(t.message)})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该订单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteOrders(t)})).catch((function(){}))},closeDetailDialog:function(t){this.codeDetailVisible=!1},closeManuDialog:function(t){this.addDialogVisible=!1,t?(this.$message.success("选入成功"),this.refresgOrderDetail(),this.getList()):this.$message.error("选入失败")},cancelDialog:function(){this.addDialogVisible=!1},importOrder:function(t){this.orderId=t.id,this.billAction=t.action,this.addDialogVisible=!0},getBusType:function(){var t=this,e={enabled:!0};Vr(e).then((function(e){t.busTypes=e.data.list||[],t.filterQuery.billAction=t.busTypes[0].action})).catch((function(){}))},getActionName:function(t){for(var e=0;e1&&(e="是否确定重新生成内部码?"),this.$confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={id:t.query.sOrderId,filterUDIType:t.filterUDIType};t.loading=!0,Fr(e).then((function(e){t.loading=!1,2e4===e.code?(t.$message.success(e.data),t.getStockOrderDetailList(),t.detailList=[]):t.$message.error(e.message)})).catch((function(){t.loading=!1}))})).catch((function(){}))}},filters:{},mounted:function(){document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},created:function(){this.getBusType(),this.formData={},this.codeArray=[],this.$isNotBlank(this.idQuery.id)&&(this.formData=this.idQuery.formData,this.query.sOrderId=this.idQuery.id,this.query.filterUDIType=this.idQuery.filterUDIType,this.getStockQRCodeTextList())}},xc=wc,Dc=(a("a753"),Object(g["a"])(xc,yc,bc,!1,null,null,null)),Cc=Dc.exports,kc=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{ref:"dataForm",attrs:{model:t.formData,rules:t.formRules}},[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{staticStyle:{margin:"-50px 60px 10px auto",height:"35px"},attrs:{type:"primary",loading:t.loading},nativeOn:{click:function(e){return t.printStockOrderDetailPDF()}}},[t._v("打印全部\n ")])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("单据号:")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{prop:"billNo"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:!0},model:{value:t.formData.billNo,callback:function(e){t.$set(t.formData,"billNo",e)},expression:"formData.billNo"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("单据日期:")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{prop:"billdate"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:!0},model:{value:t.formData.billdate,callback:function(e){t.$set(t.formData,"billdate",e)},expression:"formData.billdate"}})],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("供应商名称:")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{prop:"corpName"}},[a("el-input",{attrs:{"auto-complete":"off",disabled:!0},model:{value:t.formData.corpName,callback:function(e){t.$set(t.formData,"corpName",e)},expression:"formData.corpName"}})],1)],1),a("el-col",{attrs:{span:3}},[a("div",{staticClass:"ao-text"},[a("span",[t._v("业务类型:")])])]),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{prop:"billType"}},[a("el-select",{attrs:{placeholder:"请选择业务类型",clearable:"true",disabled:"true"},model:{value:t.formData.billType,callback:function(e){t.$set(t.formData,"billType",e)},expression:"formData.billType"}},t._l(t.busTypes,(function(e){return a("el-option",{key:e.localName,attrs:{label:e.localName,value:e.localAction}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.localName))])])})),1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.codeArray,"max-height":"350",height:"350","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),a("el-table-column",{attrs:{label:"码",prop:"udiCode"}}),a("el-table-column",{attrs:{label:"状态",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.statusMap[e.row.printStatus]))])]}}])}),a("el-table-column",{attrs:{label:"时间",width:"200",prop:"create_time","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"el-icon-time"}),a("span",[t._v(t._s(e.row.updateTime))])]}}])}),a("el-table-column",{attrs:{label:"标签数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticStyle:{width:"50%"},attrs:{size:"small",placeholder:"请输入打印标签数量",oninput:"value=value.replace(/[^\\d]/g,'')"},model:{value:e.row.count,callback:function(a){t.$set(e.row,"count",a)},expression:"scope.row.count"}})]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.printStockOrderDetailPDF(e.row)}}},[t._v("标签打印\n ")])]}}])})],1),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{layout:"prev, pager, next","page-size":t.query.limit,total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1),t.labelPrintVisible?a("el-dialog",{attrs:{title:"标签打印文件列表",visible:t.labelPrintVisible,width:"60%","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.labelPrintVisible=e}}},[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{staticStyle:{margin:"-50px 60px 10px auto",height:"35px"},attrs:{type:"primary"},nativeOn:{click:function(e){return t.refeshLabel()}}},[t._v("刷新\n ")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.lableFileLsit}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"文件名称",prop:"fileName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"生成状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.printMap[e.row.status]))])]}}],null,!1,2528095193)}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.printLabel(e.row)}}},[t._v("标签打印\n ")])]}}],null,!1,2365873954)})],1),a("el-pagination",{attrs:{"page-size":t.refreshQuery.limit,layout:"prev, pager, next",total:t.labltotal},on:{"current-change":t.handleLableChange}})],1):t._e()],1)},Qc=[],Sc={name:"idQuery",props:{closeDialog:{type:Function,required:!0},idQuery:{type:Object,required:!0}},data:function(){return{code:"",query:{sOrderId:null,orderIdFk:"",page:1,limit:10},labelPrintVisible:!1,busTypes:[],formData:{},codeArray:[],total:0,lableFileLsit:[],loading:!1,index:null,formLoading:!1,formVisible:!1,deleteLoading:!1,orderNo:null,statusMap:{0:"未打印",1:"已打印"},refreshQuery:{page:1,limit:10,printCodeIdFk:null,stockOrderFk:null},labltotal:null,printMap:{0:"正在生成",1:"已生成"},pdffileUrl:null}},components:{draggable:We.a},methods:{submit:function(t){var e=this;this.total<1?this.$message.error("未选择条码"):this.$confirm("是否提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={id:e.idQuery.id};e.loading=!0,Cr(t).then((function(t){e.loading=!1,2e4===t.code?(e.$message.success("提交成功"),e.closeDialog(!0)):e.$message.error(t.message)}))})).catch((function(){e.loading=!1}))},refeshLabel:function(){var t=this;Uo(this.refreshQuery).then((function(e){2e4==e.code&&(t.lableFileLsit=e.data.list,t.labelPrintVisible=!0,t.labltotal=e.data.total||0)})).catch((function(){t.loading=!1}))},printLabel:function(t){window.open(this.pdffileUrl+t.fileName,"_blank")},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.getList())},getInputFocus:function(t){t.currentTarget.select()},tableSelection:function(){this.$refs.multipleTable.clearSelection(),this.$refs.multipleTable.toggleAllSelection()},handleSizeChange:function(t){this.query.limit=t,this.getStockQRCodeTextList()},handleCurrentChange:function(t){this.query.page=t,this.getStockQRCodeTextList()},handleLableChange:function(t){this.refreshQuery.page=t,this.refeshLabel()},getStockOrderDetailList:function(){var t=this;this.loading=!0,vc(this.query).then((function(e){console.log(e),t.codeArray=e.data.list||[],t.total=e.data.total||0,t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},getBusType:function(){var t=this,e={enabled:!0};Ur(e).then((function(e){t.busTypes=e.data.list||[]})).catch((function(){}))},getStockQRCodeTextList:function(){var t=this;this.loading=!0,vc(this.query).then((function(e){console.log(e),t.codeArray=e.data.list||[],t.total=e.data.total||0,t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},printStockOrderDetailPDF:function(t){var e=this,a={queryId:null,orderId:null,countList:[]};if(null==t)a.orderId=this.query.sOrderId;else{if(t.reCount<=0)return this.$message.error("数量错误");a.queryId=t.id}this.loading=!0,jo(a).then((function(i){if(2e4===i.code){if(null!=t){a.id=t.id,a.rowCount=t.reCount;var l={queryId:t.id,rowCount:t.count};a.countList.push(l)}else for(var s=0;s100?Bo(a).then((function(t){2e4==t.code&&(e.lableFileLsit=t.data.list,e.labltotal=t.data.total||0,e.labelPrintVisible=!0,e.refreshQuery={page:1,limit:10,printCodeIdFk:a.queryId,stockOrderFk:a.orderId},e.loading=!1,e.$message.warning("打印文件正在生成中,请点击刷新按钮查看进度,请勿关闭按钮重复打印!"))})).catch((function(){e.loading=!1})):Po(a).then((function(t){var a=[];a.push(t);var i=window.URL.createObjectURL(new Blob(a,{type:"application/pdf"}));e.loading=!1,window.open(i)})).catch((function(){e.loading=!1}))}else e.loading=!1,e.$message.error(i.message)})).catch((function(){e.loading=!1}))},intentBack:function(){this.$router.go(-1)},getPrintList:function(t){}},filters:{},mounted:function(){document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},created:function(){this.getBusType(),this.formData={},this.codeArray=[],this.pdffileUrl=r["a"]+"/spms/donwload/pdf?fileName=",this.$isNotBlank(this.idQuery.id)&&(this.formData=this.idQuery.formData,this.query.orderId=this.idQuery.id,this.query.sOrderId=this.idQuery.id,console.log(this.query.sOrderId),this.getStockQRCodeTextList())}},_c=Sc,$c=(a("2ea8"),Object(g["a"])(_c,kc,Qc,!1,null,null,null)),Tc=$c.exports,Lc={name:"stockOrder",data:function(){return{query:{billNo:"",status:"3",page:1,limit:10,startTime:"",endTime:""},detailQuery:{orderIdFk:"",page:1,limit:20},busTypes:[],list:[],detailList:[],total:0,detailTotal:0,loading:!1,detailLoading:!1,sourceMap:{1:"网页新增",2:"第三方系统",3:"扫码单据"},idQuery:{id:"",filterUDIType:null},distributionVisible:!1,detailFormRules:{batchNo:[{required:!0,message:"请输入批次号",trigger:"blur"}],productDate:[{required:!0,message:"请输入生产日期",trigger:"blur"}],expireDate:[{required:!0,message:"请输入失效日期",trigger:"blur"}],sweepCount:[{required:!0,message:"请输入扫码数量",trigger:"blur"}]},detailFormVisible:!1,detailFormData:{},detailFormLoading:!1,haveDistributionVisible:!0,qrcodeDetailVisible:!1,qrcodeExportVisible:!1,filterUDIType:!0,actDateRange:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]}}},methods:{onReset:function(){this.$router.push({path:""}),this.query={billNo:"",status:"3",page:1,limit:10,startTime:"",endTime:""},this.getList(),this.haveDistributionVisible=!0,this.actDateRange=[]},onSubmit:function(){this.getList(),"202"===this.query.status||"502"===this.query.status?this.haveDistributionVisible=!0:this.haveDistributionVisible=!1},handleCurrentChange:function(t){this.query.page=t,this.getList()},detailHandleCurrentChange:function(t){this.query.page=t,this.getStockOrderDetailList()},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.getList())},getList:function(){var t=this;this.loading=!0,this.query.corpId=L["a"].getters.customerId,hr(this.query).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0,t.detailList=[]})).catch((function(){t.loading=!1,t.list=[],t.detailList=[],t.total=0}))},distributionForm:function(t,e){this.idQuery.id="",this.$isNotBlank(e.id)&&(this.idQuery.id=e.id,this.idQuery.formData=e,this.distributionVisible=!0)},closeDialog:function(t){this.distributionVisible=!1,this.getList(),this.$isNotBlank(t)&&(this.detailList=[])},printQRCodeText:function(t){this.idQuery.id="",this.$isNotBlank(t.id)&&(this.idQuery.id=t.id,this.idQuery.formData=t,this.qrcodeExportVisible=!0)},printOrder:function(t){var e=this,a={queryId:t.id};this.loading=!0,Ao(a).then((function(i){2e4===i.code?(a={id:t.id},Mo(a).then((function(t){var a=[];a.push(t);var i=window.URL.createObjectURL(new Blob(a,{type:"application/pdf"}));e.loading=!1,window.open(i)})).catch((function(){e.loading=!1}))):(e.loading=!1,e.$message.error(i.message))})).catch((function(){e.loading=!1}))},closeQRCodeExportDialog:function(){this.qrcodeExportVisible=!1,this.getList()},qrcodeDetail:function(t){this.idQuery.id="",this.$isNotBlank(t.id)&&(this.idQuery.id=t.id,this.idQuery.formData=t,this.idQuery.filterUDIType=this.filterUDIType,this.qrcodeDetailVisible=!0)},closeQRCodeDetailDialog:function(){this.qrcodeDetailVisible=!1,this.getList()},getStockOrderDetailList:function(t){var e=this;this.$isNotBlank(t)&&(this.detailQuery.orderIdFk=t.id),this.detailLoading=!0,gr(this.detailQuery).then((function(t){console.log(t),e.detailLoading=!1,e.detailList=t.data.list||[]})).catch((function(){e.detailLoading=!1,e.detailList=[]}))},deleteStockOrder:function(t){var e=this;this.$confirm("此操作将永久删除该订单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.loading=!0,vr({id:t.id}).then((function(t){e.loading=!1,2e4===t.code?(e.$message.success(t.data),e.getList(),e.detailList=[]):e.$message.error(t.message)})).catch((function(){e.loading=!1}))})).catch((function(){}))},copyDetail:function(t){var e=this;this.$confirm("是否复制该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.id};e.detailLoading=!0,Nr(a).then((function(t){e.detailLoading=!1,2e4===t.code?(e.$message.success("复制成功"),e.getStockOrderDetailList()):e.$message.error(t.message)}))})).catch((function(){}))},deleteStockOrderDetail:function(t){var e=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.detailLoading=!0,xr({id:t.id}).then((function(t){e.detailLoading=!1,2e4===t.code?(e.$message.success(t.data),e.getStockOrderDetailList()):e.$message.error(t.message)})).catch((function(){e.detailLoading=!1}))})).catch((function(){}))},generateQRCodeText:function(t,e){var a=this,i=[];if(1===e){var l=this.$refs.multipleTable.selection;if(l.length<1)return void this.$message.error("请选择需要生成内部码单据!");l.forEach((function(t,e){i.push(t.id)}))}else i=[t.id];this.$confirm("确定生成内部码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={};t.ids=i,t.filterUDIType=a.filterUDIType,a.loading=!0,Fr(t).then((function(t){a.loading=!1,2e4===t.code?(a.$message.success(t.data),a.getList(),a.detailList=[]):a.$message.error(t.message)})).catch((function(){a.loading=!1}))})).catch((function(){}))},handleDetailForm:function(t,e){this.detailFormVisible=!0,this.detailFormData={},null!==e&&(this.detailFormData=Object.assign({},e))},hideDetailForm:function(){return this.detailFormVisible=!this.detailFormVisible,!0},getActionName:function(t){for(var e=0;e13){var a=this.code.substring(0,2);a=a.replace("m","M"),a=a.replace("a","A"),-1!==a.indexOf("MA")&&(this.code=a+this.code.substring(2,this.code.length))}this.loading=!0;var i={code:this.code,customerId:L["a"].getters.customerId};Or(i).then((function(a){if(e.loading=!1,console.log(a),2e4===a.code)if("1"===a.data.getType){e.loading=!0;var i=[a.data.getId],l={ids:i,udiEntity:a.data};Tr(l).then((function(t){e.loading=!1,2e4===t.code?e.closeDialogC2(t.data):e.$message.error(t.message)})).catch((function(){e.loading=!1}))}else e.thisData=a.data,e.thisData.code=e.code,e.thisData.orderEditor=e.orderEditor,e.thisData.orderId="",e.orderEditor&&(e.thisData.orderId=e.formData.id),e.selectProductVisible=!0;else e.$message.warning(a.message),e.focusNext("inputRef"),e.$isNotBlank(t)&&t.target.select()}))},closeDialogC2:function(t){var e=this;this.selectProductVisible=!1,this.thisData={},this.$isNotBlank(t)&&(console.log(t),t.forEach((function(t,a){0===e.codeArray.length?e.codeArray.push(t):e.codeArray.unshift(t)})),this.$refs.multipleTable.setCurrentRow(this.codeArray[0]),this.currentRow=this.codeArray[0],this.selectedIndex=0,this.focusNext("iCount"))},rowChange:function(t){this.currentRow=t,this.selectedIndex=t.index,this.iCount=t.reCount,this.focusNext("iCount")},iCountChange:function(){},iCountEnterFunction:function(){this.$isNotBlank(this.currentRow)&&(this.currentRow.count=this.iCount,this.currentRow.reCount=this.iCount),this.focusNext("inputRef")},tableCountChange:function(t){this.$isNotBlank(t)},tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},focusNext:function(t){this.$refs[t].focus()},focusNextToTable:function(t){this.$refs[t][0].focus()},remoteMethod:function(t){var e=this;if(""!==t){this.sLoading=!0;var a={key:t,page:1,limit:20};Object(Yt["g"])(a).then((function(t){console.log(t),e.sLoading=!1,e.sOptions=t.data.list})).catch((function(){e.sLoading=!1,e.sOptions=[]}))}else this.sOptions=[]},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.getList())},addCode:function(){var t=this;if(this.code=this.code.trim(),this.$isBlank(this.code))this.$message.warning("请输入条码");else if(this.iCount<=0)this.$message.warning("请输入数量");else{this.loading=!0;var e={orderId:this.formData.id,count:this.iCount,code:this.code};this.orderEditor?Lr(e).then((function(e){t.loading=!1,2e4===e.code?t.getStockOrderDetailList():t.$alert(e.message,"提示",{confirmButtonText:"确定",type:"warning",closeOnClickModal:!0,callback:function(e){t.$refs.inputRef.focus()}})})):$r(e).then((function(e){if(t.loading=!1,2e4===e.code){for(var a=0;a13){var a=this.code.substring(0,2);a=a.replace("m","M"),a=a.replace("a","A"),-1!==a.indexOf("MA")&&(this.code=a+this.code.substring(2,this.code.length))}this.loading=!0;var i={code:this.code,customerId:L["a"].getters.customerId};Or(i).then((function(a){if(e.loading=!1,console.log(a),2e4===a.code)if("1"===a.data.getType){e.loading=!0;var i=[a.data.getId],l={ids:i,udiEntity:a.data};Tr(l).then((function(t){e.loading=!1,2e4===t.code?e.closeDialogC2(t.data):e.$message.error(t.message)})).catch((function(){e.loading=!1}))}else e.thisData=a.data,e.thisData.code=e.code,e.thisData.orderEditor=e.orderEditor,e.thisData.orderId="",e.orderEditor&&(e.thisData.orderId=e.formData.id),e.selectProductVisible=!0;else e.$message.warning(a.message),e.focusNext("inputRef"),e.$isNotBlank(t)&&t.target.select()}))},closeDialogC2:function(t){var e=this;if(this.selectProductVisible=!1,this.thisData={},this.$isNotBlank(t)){console.log(t);for(var a=0;a13){var a=this.code.substring(0,2);a=a.replace("m","M"),a=a.replace("a","A"),-1!==a.indexOf("MA")&&(this.code=a+this.code.substring(2,this.code.length))}this.loading=!0;var i={code:this.code,customerId:L["a"].getters.customerId};Or(i).then((function(a){if(e.loading=!1,console.log(a),2e4===a.code)if("1"===a.data.getType){e.loading=!0;var i=[a.data.getId],l={ids:i,udiEntity:a.data};Tr(l).then((function(t){e.loading=!1,2e4===t.code?e.closeDialogC2(t.data):e.$message.error(t.message)})).catch((function(){e.loading=!1}))}else e.thisData=a.data,e.thisData.code=e.code,e.thisData.orderEditor=e.orderEditor,e.thisData.orderId="",e.orderEditor&&(e.thisData.orderId=e.formData.id),e.selectProductVisible=!0;else e.$message.warning(a.message),e.focusNext("inputRef"),e.$isNotBlank(t)&&t.target.select()}))},closeDialogC2:function(t){var e=this;if(this.selectProductVisible=!1,this.thisData={},this.$isNotBlank(t)){console.log(t);for(var a=0;a1&&(e.isUseDyCheck=!0)})),e.productType=e.detailList[0].productType})).catch((function(){e.loading=!1,e.detailList=[]}))},handleDetail:function(t){this.editQuery=t,console.log(t)},deleteOrders:function(t){var e=this;this.loading=!0;var a={id:t.id+""};ql(a).then((function(t){2e4==t.code?(e.getList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteOrders(t)})).catch((function(){}))},intentDetail:function(){this.isImportUdi=!1,this.selectUdiDialogVisible=!0},addSelectErp:function(t){this.defaultSys=t.sysId,this.isImport=!1,this.selectErpDialogVisible=!0},removeErp:function(t){var e=this;this.$confirm("此操作将解除该绑定产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={relId:e.editQuery.id,thirdSys:t.sysId};Wl(a).then((function(t){2e4==t.code?(e.getThirdSysDetail()(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))})).catch((function(){}))},removeDi:function(){var t=this;this.$confirm("此操作将解除该绑定DI器械信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={relId:t.editQuery.id};Hl(e).then((function(e){2e4==e.code?(t.$message({type:"success",message:"删除成功!"}),t.getList(),t.cancelDialog()):t.$message.error(e.message)})).catch((function(){}))})).catch((function(){}))},intentSelectErp:function(t){this.uuid=t.uuid,this.relId=t.id,this.isImport=!1,this.thisData=t,this.selectErpDialogVisible=!0},intentImportErp:function(t){this.defaultSys=null,this.uuid=t.uuid,this.relId=t.id,this.isImport=!0,this.thisData=t,this.selectErpDialogVisible=!0},uploadSMP:function(){var t=this,e=this.multipleSelection,a=[];e.forEach((function(t){a.push(t.id)}));var i={keys:a};Al(i).then((function(e){2e4==e.code?t.$message({type:"success",message:"上传成功!"}):t.$message({type:"error",message:e.message})})).catch((function(){t.$message({type:"error",message:"上传失败"})}))},intentSelectUdi:function(t){this.relId=t.id,this.isImportUdi=!0,this.thisData=t,console.log("-----"+this.uuid+"-2222--"+this.relId),this.selectLocalVisible=!0},intentImportUdi:function(){this.relId=null,this.selectLocalVisible=!0},handleSelectionChange:function(t){console.log("----"+t),this.multipleSelection=t},cancelDialog:function(){this.editDialogVisible=!1},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleModifyClick:function(t){this.uuid=t.uuid,this.relId=t.id,this.isImport=!1,this.thisData=t,this.editDialogVisible=!0,this.editQuery=t,this.relevanceEdit={id:t.id,isUseDy:t.isUseDy,isDisable:t.isDisable,isLock:t.isLock,isAdavence:t.isAdavence},this.checked=1==t.isUseDy;var e={uuid:t.uuid,page:1,limit:10};console.log("this.editQuery.isUseDy = "+this.editQuery.isUseDy),this.getDetailList(e),this.getThirdSysDetail()},lockProducts:function(t){var e=this,a=this.multipleSelection,i={ids:[],lockStatus:t};a.forEach((function(t){i.ids.push(t.id)})),Gl(i).then((function(t){2e4==t.code?(e.loading=!1,e.$message.success(t.data),e.getList()):e.$message.error(t.message)})).catch((function(){e.loading=!1}))},closeUdi:function(t){this.selectUdiDialogVisible=!1,this.selectErpDialogVisible=!1,this.selectLocalVisible=!1,this.getThirdSysDetail(),t&&this.getList()},getThirdSysDetail:function(){var t=this,e={id:this.relevanceEdit.id};Ml(e).then((function(e){t.loading=!1,t.sysList=e.data.list||[]})).catch((function(){t.loading=!1,t.sysList=[]}))},getSysFilter:function(){var t=this;Kl().then((function(e){t.loading=!1,t.filterList=e.data.list||[]})).catch((function(){t.loading=!1,t.filterList=[]}))},uploadErpProduct:function(){var t=this;Ul().then((function(e){2e4==e.code?t.$message({type:"success",message:e.data}):t.$message.error(e.message)})).catch((function(){}))},closeDialog:function(){this.selectErpDialogVisible=!1,this.selectLocalVisible=!1},onAddSubmit:function(){var t=this;1==this.checked?this.relevanceEdit.isUseDy=1:this.relevanceEdit.isUseDy=0,this.relevanceEdit.isDisable=this.editQuery.isDisable,this.relevanceEdit.isLock=this.editQuery.isLock,this.relevanceEdit.isAdavence=this.editQuery.isAdavence,Vl(this.relevanceEdit).then((function(e){t.loading=!1,t.getList(),t.cancelDialog()})).catch((function(){t.loading=!1,t.cancelDialog()}))},selectSysParam:function(){var t=this,e={paramKey:"smp_isUploadProuct"};Jl().then((function(e){2e4==e.code&&("1"==e.data.paramValue?t.isSpCombine=!0:t.isSpCombine=!1)})),Bt(e).then((function(e){2e4==e.code&&("1"==e.data.paramValue?t.isUploadSmp=!0:t.isUploadSmp=!1)}));var a={paramKey:"upload_pi_file_enabled"};Bt(a).then((function(e){2e4==e.code&&"1"==e.data.paramValue&&(t.isImportFile=!0)}));var i={paramKey:"upload_pi_file_url"};Bt(i).then((function(e){2e4==e.code&&(t.uploadFileUrl=e.data.paramValue)}))}},mounted:function(){},components:{selectUdi:ds,selectErp:ys,selectLocalUdi:Cs},created:function(){this.getList(),this.selectSysParam(),this.getSysFilter()}},np=rp,cp=(a("ff0e"),Object(g["a"])(np,sp,op,!1,null,"aac8fb0c",null)),up=cp.exports,dp=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{filterable:"",remote:"",clearable:"true","reserve-keyword":"",placeholder:"供应商","remote-method":t.findMethod,loading:t.loading},model:{value:t.filterQuery.companyName,callback:function(e){t.$set(t.filterQuery,"companyName",e)},expression:"filterQuery.companyName"}},t._l(t.fromOptions,(function(e){return a("el-option",{key:e.companyName,attrs:{label:e.companyName,value:e.companyName}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.companyName))])])})),1)],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"DI/医保编码/商品条码",clearable:"true"},model:{value:t.filterQuery.unionCode,callback:function(e){t.$set(t.filterQuery,"unionCode",e)},expression:"filterQuery.unionCode"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品通用名",clearable:"true"},model:{value:t.filterQuery.cpmctymc,callback:function(e){t.$set(t.filterQuery,"cpmctymc",e)},expression:"filterQuery.cpmctymc"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"规格型号",clearable:"true"},model:{value:t.filterQuery.ggxh,callback:function(e){t.$set(t.filterQuery,"ggxh",e)},expression:"filterQuery.ggxh"}})],1)],1),a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"请选择过滤对照条件"},model:{value:t.filterQuery.filterType,callback:function(e){t.$set(t.filterQuery,"filterType",e)},expression:"filterQuery.filterType"}},t._l(t.filterList,(function(e){return a("el-option",{key:e.filterType,attrs:{label:e.sysName,value:e.filterType}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.sysName))])])})),1)],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"生产企业/注册备案人",clearable:"true"},model:{value:t.filterQuery.ylqxzcrbarmc,callback:function(e){t.$set(t.filterQuery,"ylqxzcrbarmc",e)},expression:"filterQuery.ylqxzcrbarmc"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"第三方产品编码",clearable:"true"},model:{value:t.filterQuery.thrPiId,callback:function(e){t.$set(t.filterQuery,"thrPiId",e)},expression:"filterQuery.thrPiId"}})],1),t.isSpCombine?a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"状态"},model:{value:t.filterQuery.lockStatus,callback:function(e){t.$set(t.filterQuery,"lockStatus",e)},expression:"filterQuery.lockStatus"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"未提交",value:"1"}}),a("el-option",{attrs:{label:"已提交",value:"2"}}),a("el-option",{attrs:{label:"已锁定",value:"3"}})],1)],1):t._e(),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")]),t.isSpCombine?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:function(e){return t.lockProducts("3")}}},[t._v("锁定\n ")]):t._e(),t.isSpCombine?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:function(e){return t.lockProducts("1")}}},[t._v("退回\n ")]):t._e()],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:"1",staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"供应商",prop:"companyName",width:"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"最小销售产品标识",prop:"nameCode",width:"140","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"主系统产品编码",prop:"mainId",width:"120","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"生产企业",prop:"ylqxzcrbarmc",width:"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品通用名",prop:"cpmctymc",width:"140","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"规格型号",prop:"ggxh",width:"140","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"注册/备案凭证",prop:"zczbhhzbapzbh",width:"140","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"器械类别",prop:"qxlb",width:"80","show-overflow-tooltip":""}}),t.isSpCombine?a("el-table-column",{attrs:{label:"状态",prop:"lockStatus",width:"80","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.lockStatusMap[e.row.lockStatus])+"\n ")]}}],null,!1,2171353223)}):t._e(),a("el-table-column",{attrs:{width:"80",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.handleModifyClick(e.row)}}},[t._v("详情\n ")])]}}])})],1),t.editDialogVisible?a("el-dialog",{attrs:{title:"产品信息编辑",visible:t.editDialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"70%"},on:{"update:visible":function(e){t.editDialogVisible=e}}},[a("el-table",{key:"2",staticStyle:{width:"100%"},attrs:{data:t.sysList,border:""}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"系统名称",prop:"sysName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品编码",prop:"thirdId","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品名称",prop:"thirdName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"规格型号",prop:"spec","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"注册/备案凭证号",prop:"registerNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"生产厂家",prop:"manufactory","show-overflow-tooltip":""}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:"3",staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:t.detailList,border:""},on:{"current-change":t.handleDetail}},[a("el-table-column",{attrs:{label:"产品标识",prop:"nameCode","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品通用名",prop:"cpmctymc","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"包装级别",prop:"packLevel","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"包装层级",prop:"bzcj","show-overflow-tooltip":""}})],1),a("el-form",{ref:"editQuery",staticStyle:{"margin-top":"20px"},attrs:{model:t.editQuery,rules:t.rules,"label-width":"100px"}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品名称: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",splaceholder:"请输入内容",disabled:!0},model:{value:t.editQuery.cpmctymc,callback:function(e){t.$set(t.editQuery,"cpmctymc",e)},expression:"editQuery.cpmctymc"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品标识: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.nameCode,callback:function(e){t.$set(t.editQuery,"nameCode",e)},expression:"editQuery.nameCode"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("规格型号: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.ggxh,callback:function(e){t.$set(t.editQuery,"ggxh",e)},expression:"editQuery.ggxh"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("器械类别: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.qxlb,callback:function(e){t.$set(t.editQuery,"qxlb",e)},expression:"editQuery.qxlb"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品类别: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.cplb,callback:function(e){t.$set(t.editQuery,"cplb",e)},expression:"editQuery.cplb"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("分类编码: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.flbm,callback:function(e){t.$set(t.editQuery,"flbm",e)},expression:"editQuery.flbm"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("商品条码: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.sptm,callback:function(e){t.$set(t.editQuery,"sptm",e)},expression:"editQuery.sptm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("医保编码: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.ybbm,callback:function(e){t.$set(t.editQuery,"ybbm",e)},expression:"editQuery.ybbm"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("医疗器械注册人: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"ylqxzcrbarmc"},model:{value:t.editQuery.ylqxzcrbarmc,callback:function(e){t.$set(t.editQuery,"ylqxzcrbarmc",e)},expression:"editQuery.ylqxzcrbarmc"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("注册人英文名称: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.ylqxzcrbarywmc,callback:function(e){t.$set(t.editQuery,"ylqxzcrbarywmc",e)},expression:"editQuery.ylqxzcrbarywmc"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("统一社会信用号: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.tyshxydm,callback:function(e){t.$set(t.editQuery,"tyshxydm",e)},expression:"editQuery.tyshxydm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("注册证/备案号: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.zczbhhzbapzbh,callback:function(e){t.$set(t.editQuery,"zczbhhzbapzbh",e)},expression:"editQuery.zczbhhzbapzbh"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("上级产品编码: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.sjcpbm,callback:function(e){t.$set(t.editQuery,"sjcpbm",e)},expression:"editQuery.sjcpbm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("包装级别: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",splaceholder:"请输入内容",disabled:!0},model:{value:t.editQuery.packLevel,callback:function(e){t.$set(t.editQuery,"packLevel",e)},expression:"editQuery.packLevel"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("计量单位/包装级别: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",splaceholder:"请输入内容",disabled:!0},model:{value:t.editQuery.bzcj,callback:function(e){t.$set(t.editQuery,"bzcj",e)},expression:"editQuery.bzcj"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("包含下级包装数量: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",splaceholder:"请输入内容",disabled:!0},model:{value:t.editQuery.bhxjsl,callback:function(e){t.$set(t.editQuery,"bhxjsl",e)},expression:"editQuery.bhxjsl"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("包含下级产品编码: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",disabled:!0,splaceholder:"请输入内容"},model:{value:t.editQuery.bhxjcpbm,callback:function(e){t.$set(t.editQuery,"bhxjcpbm",e)},expression:"editQuery.bhxjcpbm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("包含最小销售包装数量: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{size:"small",disabled:!0,splaceholder:"请输入内容"},model:{value:t.editQuery.bhzxxsbzsl,callback:function(e){t.$set(t.editQuery,"bhzxxsbzsl",e)},expression:"editQuery.bhzxxsbzsl"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("最小包装单元内包含使用单元数量: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!t.checked,size:"small",splaceholder:"请输入内容"},model:{value:t.editQuery.zxxsbzbhsydysl,callback:function(e){t.$set(t.editQuery,"zxxsbzbhsydysl",e)},expression:"editQuery.zxxsbzbhsydysl"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("生产厂家: ")])]),a("el-input",{staticStyle:{width:"65%"},attrs:{disabled:!t.checked,size:"small",splaceholder:"请输入内容"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}}),a("el-col",{staticClass:"el-col",attrs:{span:4}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-checkbox",{staticClass:"text item itemTag",attrs:{disabled:!0},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("以使用单元数量入库\n ")])],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:3}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-checkbox",{staticClass:"text item itemTag",attrs:{disabled:""},model:{value:t.editQuery.isDisable,callback:function(e){t.$set(t.editQuery,"isDisable",e)},expression:"editQuery.isDisable"}},[t._v("是否禁用\n ")])],1)],1),a("el-col",{staticClass:"el-col",attrs:{span:3}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-checkbox",{staticClass:"text item itemTag",attrs:{disabled:""},model:{value:t.editQuery.isAdavence,callback:function(e){t.$set(t.editQuery,"isAdavence",e)},expression:"editQuery.isAdavence"}},[t._v("是否寄售\n ")])],1)],1)],1)],1)],1):t._e(),t.selectUdiDialogVisible?a("el-dialog",{attrs:{title:"关联选入器械信息",visible:t.selectUdiDialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.selectUdiDialogVisible=e}}},[a("selectUdi",{attrs:{isImportUdi:t.isImportUdi},on:{closeUdi:t.closeUdi}})],1):t._e(),t.selectErpDialogVisible?a("el-dialog",{attrs:{title:"从指定系统选入器械信息",visible:t.selectErpDialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.selectErpDialogVisible=e}}},[a("selectErp",{attrs:{closeDialog:t.closeDialog,uuid:t.uuid,relId:t.relId,isImport:t.isImport,data:t.thisData,defaultSys:t.defaultSys},on:{closeUdi:t.closeUdi}})],1):t._e(),t.selectLocalVisible?a("el-dialog",{attrs:{title:"选入DI器械信息",visible:t.selectLocalVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.selectLocalVisible=e}}},[a("selectLocalUdi",{attrs:{closeDialog:t.closeDialog,relId:t.relId,isImportUdi:t.isImportUdi,data:t.thisData},on:{closeUdi:t.closeUdi}})],1):t._e(),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)},pp=[],mp={data:function(){return{filterQuery:{lockStatus:null,unionCode:null,udiCode:null,ylqxzcrbarmc:"",cpmctymc:"",nameCode:"",ggxh:null,page:1,limit:20,addType:1,thrPiId:null,filterType:null,companyName:null},fromOptions:[],editQuery:null,relevanceEdit:{id:null,thirdId:"",isDisable:null,isUseDy:!1,isLock:null,isAdavence:null},defaultSys:null,isImport:!1,isImportUdi:!1,isUploadSmp:!1,isSpCombine:!1,isImportFile:!1,uploadFileUrl:null,checked:!1,list:[],detailList:[],sysList:[],filterList:[],total:0,thirdNo:"",uuid:"111",thirdId:null,relId:"",thisData:{nameCode:null,cpmctymc:null,ggxh:null},multipleSelection:[],editDialogVisible:!1,selectUdiDialogVisible:!1,selectErpDialogVisible:!1,selectLocalVisible:!1,isUseDyCheck:!1,lockStatusMap:{1:"未提交",2:"已提交",3:"已锁定"}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={lockStatus:null,unionCode:null,udiCode:null,ylqxzcrbarmc:"",cpmctymc:"",thrPiId:null,nameCode:"",ggxh:null,page:1,limit:20,addType:1},this.getList()},getList:function(){var t=this;this.loading=!0,oa(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},keyup_submit:function(t){this.filterQuery.page=1,this.getList(),t.target.select()},getDetailList:function(t){var e=this;this.loading=!0,Zl(t).then((function(t){e.isUseDyCheck=!1,e.loading=!1,e.detailList=t.data||[],e.detailList.forEach((function(t,a,i){t.zxxsbzbhsydysl>1&&(e.isUseDyCheck=!0)}))})).catch((function(){e.loading=!1,e.detailList=[]}))},handleDetail:function(t){this.editQuery=t,console.log(t)},deleteOrders:function(t){var e=this;this.loading=!0;var a={id:t.id+""};ql(a).then((function(t){2e4==t.code?(e.getList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteOrders(t)})).catch((function(){}))},intentDetail:function(){this.isImportUdi=!1,this.selectUdiDialogVisible=!0},addSelectErp:function(t){this.defaultSys=t.sysId,this.isImport=!1,this.selectErpDialogVisible=!0},removeErp:function(t){var e=this;this.$confirm("此操作将解除该绑定产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={relId:e.editQuery.id,thirdSys:t.sysId};Wl(a).then((function(t){2e4==t.code?(e.getThirdSysDetail()(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))})).catch((function(){}))},intentSelectErp:function(t){this.uuid=t.uuid,this.relId=t.id,this.isImport=!1,this.thisData=t,this.selectErpDialogVisible=!0},intentImportErp:function(t){this.defaultSys=null,this.uuid=t.uuid,this.relId=t.id,this.isImport=!0,this.thisData=t,this.selectErpDialogVisible=!0},uploadSMP:function(){var t=this,e=this.multipleSelection,a=[];e.forEach((function(t){a.push(t.id)}));var i={keys:a};Al(i).then((function(e){2e4==e.code?t.$message({type:"success",message:"上传成功!"}):t.$message({type:"error",message:e.message})})).catch((function(){t.$message({type:"error",message:"上传失败"})}))},intentSelectUdi:function(t){this.relId=t.id,this.isImportUdi=!0,this.thisData=t,console.log("-----"+this.uuid+"-2222--"+this.relId),this.selectLocalVisible=!0},intentImportUdi:function(){this.relId=null,this.selectLocalVisible=!0},handleSelectionChange:function(t){console.log("----"+t),this.multipleSelection=t},cancelDialog:function(){this.editDialogVisible=!1},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleModifyClick:function(t){this.uuid=t.uuid,this.relId=t.rlId,this.isImport=!1,this.thisData=t,this.editDialogVisible=!0,this.editQuery=t,this.relevanceEdit={id:t.rlId,isUseDy:t.isUseDy,isDisable:t.isDisable,isLock:t.isLock,isAdavence:t.isAdavence},this.checked=1==t.isUseDy;var e={uuid:t.uuid,page:1,limit:10};console.log("this.editQuery.isUseDy = "+this.editQuery.isUseDy),this.getDetailList(e),this.getThirdSysDetail()},lockProducts:function(t){var e=this,a=this.multipleSelection,i={ids:[],lockStatus:t};a.forEach((function(t){i.ids.push(t.rlId)})),Gl(i).then((function(t){2e4==t.code?(e.loading=!1,e.$message.success(t.data),e.getList()):e.$message.error(t.message)})).catch((function(){e.loading=!1}))},closeUdi:function(t){this.selectUdiDialogVisible=!1,this.selectErpDialogVisible=!1,this.selectLocalVisible=!1,this.getThirdSysDetail(),t&&this.getList()},getThirdSysDetail:function(){var t=this,e={id:this.relevanceEdit.id};Ml(e).then((function(e){t.loading=!1,t.sysList=e.data.list||[]})).catch((function(){t.loading=!1,t.sysList=[]}))},getSysFilter:function(){var t=this;Kl().then((function(e){t.loading=!1,t.filterList=e.data.list||[]})).catch((function(){t.loading=!1,t.filterList=[]}))},uploadErpProduct:function(){var t=this;Ul().then((function(e){2e4==e.code?t.$message({type:"success",message:e.data}):t.$message.error(e.message)})).catch((function(){}))},closeDialog:function(){this.selectErpDialogVisible=!1,this.selectLocalVisible=!1},onAddSubmit:function(){var t=this;1==this.checked?this.relevanceEdit.isUseDy=1:this.relevanceEdit.isUseDy=0,this.relevanceEdit.isDisable=this.editQuery.isDisable,this.relevanceEdit.isLock=this.editQuery.isLock,this.relevanceEdit.isAdavence=this.editQuery.isAdavence,Vl(this.relevanceEdit).then((function(e){t.loading=!1,t.getList(),t.cancelDialog()})).catch((function(){t.loading=!1,t.cancelDialog()}))},selectSysParam:function(){var t=this,e={paramKey:"smp_isUploadProuct"};Jl().then((function(e){2e4==e.code&&("1"==e.data.paramValue?t.isSpCombine=!0:t.isSpCombine=!1)})),Bt(e).then((function(e){2e4==e.code&&("1"==e.data.paramValue?t.isUploadSmp=!0:t.isUploadSmp=!1)}));var a={paramKey:"upload_pi_file_enabled"};Bt(a).then((function(e){2e4==e.code&&"1"==e.data.paramValue&&(t.isImportFile=!0)}));var i={paramKey:"upload_pi_file_url"};Bt(i).then((function(e){2e4==e.code&&(t.uploadFileUrl=e.data.paramValue)}))},findMethod:function(t){var e=this;console.log(t);var a={customerName:t,page:1,limit:10};Se(a).then((function(t){e.loading=!1,e.fromOptions=t.data.list||[]})).catch((function(){e.loading=!1,e.options=[]}))}},mounted:function(){},components:{selectUdi:ds,selectErp:ys,selectLocalUdi:Cs},created:function(){this.getList(),this.selectSysParam(),this.getSysFilter()}},hp=mp,fp=(a("07cf"),Object(g["a"])(hp,dp,pp,!1,null,"33a34512",null)),gp=fp.exports,yp=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"记录ID"},model:{value:t.filterQuery.genKey,callback:function(e){t.$set(t.filterQuery,"genKey",e)},expression:"filterQuery.genKey"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"处理状态"},model:{value:t.filterQuery.status,callback:function(e){t.$set(t.filterQuery,"status",e)},expression:"filterQuery.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"处理中",value:"0"}}),a("el-option",{attrs:{label:"已处理",value:"1"}}),a("el-option",{attrs:{label:"异常",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")]),a("el-upload",{attrs:{action:t.uploadFileUrl,multiple:"",limit:3,data:t.uploadData,"show-file-list":!1,"on-success":t.handleChange,"file-list":t.fileList}},[a("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("导入器械信息")])],1),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.jumpDl}},[t._v("模板下载\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"记录ID",prop:"genKey","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"来源",prop:"fromType","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"更新日期",prop:"updateTime","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusFilterType(e.row.status)}},[t._v(t._s(t.status[e.row.status])+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.handleDetailClick(e.row)}}},[t._v("详情\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row.id)}}},[t._v("删除\n ")])]}}])})],1),t.udiImportDetailVisible?a("el-dialog",{attrs:{title:"器械信息导入详情",visible:t.udiImportDetailVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.udiImportDetailVisible=e}}},[a("udiInfoImportDetail",{attrs:{currentRow:t.currentRow,closeDialog:t.cancelDialog}})],1):t._e(),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},bp=[];function vp(t){return Object(et["a"])({url:"/udiwms/products/importLog/filterDetail",method:"get",params:t})}function wp(t){return Object(et["a"])({url:"/udiwms/products/importLog/filter",method:"get",params:t})}function xp(t){return Object(et["a"])({url:"/udiwms/products/importLog/deleteLog",method:"post",data:t})}function Dp(t){return Object(et["a"])({url:"/udiwms/products/smp/download",method:"get",params:t})}var Cp=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"UDI编码"},model:{value:t.filterQuery.udiCode,callback:function(e){t.$set(t.filterQuery,"udiCode",e)},expression:"filterQuery.udiCode"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"处理状态"},model:{value:t.filterQuery.status,callback:function(e){t.$set(t.filterQuery,"status",e)},expression:"filterQuery.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"未处理",value:"0"}}),a("el-option",{attrs:{label:"已完成",value:"1"}}),a("el-option",{attrs:{label:"异常",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"UDI编码",prop:"udiCode","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品ID1",prop:"thirdId","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品ID2",prop:"thirdId1","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品ID3",prop:"thirdId2","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品ID4",prop:"thirdId3","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"产品ID5",prop:"thirdId4","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"医保编码",width:"100",prop:"ybbm","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"商品条码",prop:"sptm","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{width:"160",label:"是否以使用单元入库",prop:"isUseDy","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusFilterType(e.row.status)}},[t._v(t._s(t.status[e.row.status])+"\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)},kp=[],Qp={name:"udiImportDetail",props:{currentRow:{type:Object,required:!0}},data:function(){return{filterQuery:{genKey:null,udiCode:null,status:null,page:1,limit:10},list:[],detailList:[],total:0,status:{0:"未处理",1:"处理失败",2:"处理成功"}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={genKey:null,udiCode:null,status:null,page:1,limit:10},this.getList()},getList:function(){var t=this;this.loading=!0,console.log(" this.genKey = "+this.currentRow.genKey),this.filterQuery.genKey=this.currentRow.genKey,vp(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},statusFilterType:function(t){var e={0:"warning",1:"danger",2:"success"};return e[t]},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()}},mounted:function(){},created:function(){this.getList()},filters:{}},Sp=Qp,_p=(a("e365"),Object(g["a"])(Sp,Cp,kp,!1,null,null,null)),$p=_p.exports,Tp={data:function(){return{filterQuery:{genKey:null,status:null,fromType:null,page:1,limit:20,thirdSysFk:null},udiImportDetailVisible:!1,checked:!1,list:[],detailList:[],thirdSys:[],thirdSysDetail:null,total:0,currentRow:null,editQuery:null,fromStatus:{0:"产品信息",1:"库存信息",2:"异常第三方上传"},status:{0:"等待处理",1:"正在处理",2:"处理异常",3:"处理完成"},uploadFileUrl:null,uploadData:{thirdSys:"thirdId"},templateDlUrl:null}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={fromType:null,genKey:null,status:null,page:1,limit:20,thirdSysFk:null},this.getList()},getList:function(){var t=this;this.loading=!0,wp(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},genInCode:function(){this.selectBasicUdiVisible=!0},handleDetailClick:function(t){this.currentRow=t,console.log(this.currentRow.genKey),this.udiImportDetailVisible=!0},cancelDialog:function(){this.udiImportDetailVisible=!1},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},deleteDialog:function(t){var e=this;this.$confirm("此操作将删除该往来单位信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t};xp(a).then((function(t){e.loading=!1,2e4==t.code?e.$message.success("删除成功"):e.$message.error(t.message),e.getList()})).catch((function(){e.loading=!1}))})).catch((function(){}))},getBasicThirdSys:function(){var t=this,e={enabled:!0};as(e).then((function(e){t.thirdSys=e.data.list||[],t.getList()})).catch((function(){t.loading=!1,t.list=[]})),Yr.a.get("./config.json").then((function(e){var a=e.data.BASE_URL;t.uploadFileUrl=a+"/udiwms/products/importLog/upload"})),Yr.a.get("./config.json").then((function(e){var a=e.data.SERVER_IP;t.templateDlUrl=a+"/已对照产品信息模板.xlsx"}))},jumpDl:function(){window.open(this.templateDlUrl,"_blank")},handleChange:function(t,e,a){console.log(t),2e4!=t.code?this.$message.error(t.message):(this.getList(),this.$message.success("文件上传成功,请稍后刷新查看!"))},statusFilterType:function(t){var e={0:"warning",1:"warning",2:"danger",3:"success"};return e[t]},dlSmp:function(){var t=this;this.loading=!0,Dp().then((function(e){t.loading=!1,t.$message.success(e.data),t.getList()})).catch((function(){t.loading=!1}))}},mounted:function(){},components:{udiInfoImportDetail:$p},created:function(){this.getBasicThirdSys(),this.getList()}},Lp=Tp,Op=(a("e92b"),Object(g["a"])(Lp,yp,bp,!1,null,null,null)),zp=Op.exports,Ip=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"记录ID"},model:{value:t.filterQuery.genKey,callback:function(e){t.$set(t.filterQuery,"genKey",e)},expression:"filterQuery.genKey"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"处理状态"},model:{value:t.filterQuery.status,callback:function(e){t.$set(t.filterQuery,"status",e)},expression:"filterQuery.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"处理中",value:"0"}}),a("el-option",{attrs:{label:"已处理",value:"1"}}),a("el-option",{attrs:{label:"异常",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")]),a("el-upload",{attrs:{action:t.uploadFileUrl,multiple:"",limit:3,data:t.uploadData,"show-file-list":!1,"on-success":t.handleChange,"file-list":t.fileList}},[a("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("导入往来单位信息")])],1),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.jumpDl}},[t._v("模板下载\n ")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"记录ID",prop:"genKey","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"来源",prop:"fromType","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"更新日期",prop:"updateTime","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusFilterType(e.row.status)}},[t._v(t._s(t.status[e.row.status])+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.handleDetailClick(e.row)}}},[t._v("详情\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row.id)}}},[t._v("删除\n ")])]}}])})],1),t.corpImportDetailVisible?a("el-dialog",{attrs:{title:"往来单位信息导入详情",visible:t.corpImportDetailVisible,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"85%"},on:{"update:visible":function(e){t.corpImportDetailVisible=e}}},[a("corpImportDetail",{attrs:{currentRow:t.currentRow,closeDialog:t.corpImportDetail}})],1):t._e(),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},Np=[];function Fp(t){return Object(et["a"])({url:"/udiwms/corps/importLog/filterDetail",method:"get",params:t})}function qp(t){return Object(et["a"])({url:"/udiwms/corps/importLog/filter",method:"get",params:t})}function Vp(t){return Object(et["a"])({url:"/udiwms/corps/importLog/deleteLog",method:"post",data:t})}var Rp=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"往来单位编码"},model:{value:t.filterQuery.erpId,callback:function(e){t.$set(t.filterQuery,"erpId",e)},expression:"filterQuery.erpId"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"处理状态"},model:{value:t.filterQuery.status,callback:function(e){t.$set(t.filterQuery,"status",e)},expression:"filterQuery.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"未处理",value:"0"}}),a("el-option",{attrs:{label:"已完成",value:"1"}}),a("el-option",{attrs:{label:"异常",value:"2"}})],1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"往来单位编码",prop:"erpId","show-overflow-tooltip":"",width:"100"}}),a("el-table-column",{attrs:{label:"名称",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"简写",prop:"spell","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"社会信用号",prop:"creditNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"地址",prop:"addr","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusFilterType(e.row.importStatus)}},[t._v(t._s(t.status[e.row.importStatus])+"\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)},Ep=[],jp={name:"corpImportDetail",props:{currentRow:{type:Object,required:!0}},data:function(){return{filterQuery:{erpId:null,status:null,page:1,limit:10},list:[],detailList:[],total:0,status:{0:"未处理",2:"已完成",1:"异常"}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={genKey:null,udiCode:null,status:null,page:1,limit:10},this.getList()},getList:function(){var t=this;this.loading=!0,console.log(" this.genKeyFk = "+this.currentRow.genKey),this.filterQuery.genKey=this.currentRow.genKey,Fp(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},statusFilterType:function(t){var e={0:"warning",1:"danger",2:"success"};return e[t]},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()}},mounted:function(){},created:function(){this.getList()},filters:{}},Pp=jp,Bp=(a("ce15"),Object(g["a"])(Pp,Rp,Ep,!1,null,null,null)),Up=Bp.exports,Ap={data:function(){return{filterQuery:{genKey:null,status:null,fromType:null,page:1,limit:20,thirdSysFk:null},corpImportDetailVisible:!1,checked:!1,list:[],detailList:[],thirdSys:[],thirdSysDetail:null,total:0,currentRow:null,status:{0:"等待处理",1:"正在处理",2:"处理异常",3:"处理完成"},uploadFileUrl:null,uploadData:{thirdSys:"thirdId"},templateDlUrl:null}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={fromType:null,genKey:null,status:null,page:1,limit:20,thirdSysFk:null},this.getList()},getList:function(){var t=this;this.loading=!0,qp(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},handleDetailClick:function(t){this.currentRow=t,console.log(this.currentRow.genKey),this.corpImportDetailVisible=!0},cancelDialog:function(){this.corpImportDetailVisible=!1},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},deleteDialog:function(t){var e=this;this.$confirm("此操作将删除该往来单位信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t};Vp(a).then((function(t){e.loading=!1,2e4==t.code?e.$message.success("删除成功"):e.$message.error(t.message),e.getList()})).catch((function(){e.loading=!1}))})).catch((function(){}))},getBasicThirdSys:function(){var t=this,e={enabled:!0};as(e).then((function(e){t.thirdSys=e.data.list||[],t.getList()})).catch((function(){t.loading=!1,t.list=[]})),Yr.a.get("./config.json").then((function(e){var a=e.data.BASE_URL;t.uploadFileUrl=a+"/udiwms/corps/importLog/upload"})),Yr.a.get("./config.json").then((function(e){var a=e.data.SERVER_IP;t.templateDlUrl=a+"/已对照往来单位模板.xlsx"}))},jumpDl:function(){window.open(this.templateDlUrl,"_blank")},handleChange:function(t,e,a){console.log(t),2e4!=t.code?(this.$message.error(t.message),this.getList()):(this.$message.success("文件上传成功,请稍后刷新查看!"),this.getList())},statusFilterType:function(t){var e={0:"warning",1:"warning",2:"danger",3:"success"};return e[t]}},mounted:function(){},components:{corpImportDetail:Up},created:function(){this.getBasicThirdSys(),this.getList()}},Mp=Ap,Wp=(a("3f2c"),Object(g["a"])(Mp,Ip,Np,!1,null,null,null)),Hp=Wp.exports,Kp=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"记录ID"},model:{value:t.filterQuery.genKey,callback:function(e){t.$set(t.filterQuery,"genKey",e)},expression:"filterQuery.genKey"}})],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")]),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.exportExcel}},[t._v("导出Excel文件")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"记录ID",prop:"genKey","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"更新日期",prop:"updateTime","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusFilterType(e.row.status)}},[t._v(t._s(t.status[e.row.status])+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"下载次数",prop:"dlCount","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.downloadExcel(e.row)}}},[t._v("下载\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row.id)}}},[t._v("删除\n ")])]}}])})],1),t.corpImportDetailVisible?a("el-dialog",{attrs:{title:"导出往来单位信息","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.corpImportDetailVisible,width:"85%"},on:{"update:visible":function(e){t.corpImportDetailVisible=e}}},[a("corpSelect",{attrs:{selectType:t.selectType},on:{cancelDialog:t.cancelDialog}})],1):t._e(),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},Jp=[];function Gp(t){return Object(et["a"])({url:"/udiwms/corps/exportLog/filter",method:"get",params:t})}function Xp(t){return Object(et["a"])({url:"/udiwms/corps/exportLog/deleteLog",method:"post",data:t})}function Yp(t){return Object(et["a"])({url:"/udiwms/corps/importLog/export",method:"post",data:t})}var Zp=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"搜索"},model:{value:t.query.key,callback:function(e){t.$set(t.query,"key",e)},expression:"query.key"}})],1),a("el-form-item",[a("el-button-group",[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search",width:"1200px"},on:{click:t.getList}},[t._v("查询\n ")]),0==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.selectExport}},[t._v("选中导出\n ")]):t._e(),0==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.allExport}},[t._v("结果全部导出\n ")]):t._e(),1==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.uploadSMP}},[t._v("选中上传\n ")]):t._e(),1==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.uploadSMP}},[t._v("一键上传\n ")]):t._e()],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"序号",type:"index"}}),t.erpIdColumn?a("el-table-column",{attrs:{label:"往来单位编码",prop:"erpId","show-overflow-tooltip":"",width:"100"}}):t._e(),a("el-table-column",{attrs:{label:"名称",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"简写",prop:"spell","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"社会信用号",prop:"creditNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"地址",prop:"addr","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.handleForm(e.$index,e.row)}}},[t._v("详情\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.query.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}}),a("el-dialog",{attrs:{title:"往来单位详情",visible:t.formVisible,"before-close":t.hideForm,width:"85%","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.formVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.sysList,border:""}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"第三方系统名称",prop:"sysName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"第三方往来单位ID",prop:"thirdId","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"第三方往来单位名称",prop:"thirdName","show-overflow-tooltip":""}})],1),a("el-form",{ref:"dataForm",staticStyle:{"margin-top":"20px"},attrs:{model:t.formData,rules:t.formRules}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20}},[a("el-col",{attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("往来单位名称: ")])]),a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{size:"small","auto-complete":"off",splaceholder:"请输入内容"},on:{input:function(e){return t.change()}},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("往来单位编码: ")])]),a("el-form-item",{attrs:{prop:"erpId"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{"auto-complete":"off",disabled:"true"},model:{value:t.formData.erpId,callback:function(e){t.$set(t.formData,"erpId",e)},expression:"formData.erpId"}})],1)],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("社会信用号: ")])]),a("el-form-item",{attrs:{prop:"creditNo"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{"auto-complete":"off"},model:{value:t.formData.creditNo,callback:function(e){t.$set(t.formData,"creditNo",e)},expression:"formData.creditNo"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("联系人: ")])]),a("el-form-item",{attrs:{prop:"contact"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{"auto-complete":"off"},model:{value:t.formData.contact,callback:function(e){t.$set(t.formData,"contact",e)},expression:"formData.contact"}})],1)],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20}},[a("el-col",{staticClass:"el-col",attrs:{span:10}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("地址: ")])]),a("el-form-item",{attrs:{prop:"addr"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{type:"","auto-complete":"off"},model:{value:t.formData.addr,callback:function(e){t.$set(t.formData,"addr",e)},expression:"formData.addr"}})],1)],1)]),a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("联系电话: ")])]),a("el-form-item",{attrs:{prop:"mobile"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{"auto-complete":"off"},model:{value:t.formData.mobile,callback:function(e){t.$set(t.formData,"mobile",e)},expression:"formData.mobile"}})],1)],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20}},[a("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("拼音码: ")])]),a("el-form-item",{attrs:{prop:"spell"}},[a("el-input",{staticStyle:{width:"80%"},attrs:{"auto-complete":"off"},model:{value:t.formData.spell,callback:function(e){t.$set(t.formData,"spell",e)},expression:"formData.spell"}})],1)],1)])],1)],1)],1)],1)},tm=[],em=(a("d958"),{id:"",thirdId:"",erpId:"",name:"",spell:"",addr:"",status:"",type:"",creditNo:"",contact:"",mobile:""}),am={name:"CorpInfoSelect",props:{selectType:{type:Object,required:!0}},data:function(){return{query:{ids:[],key:"",page:1,limit:20},erpIdColumn:!1,thirdIdColumn:!1,editQuery:null,corpData:null,checked:!1,formName:null,formMap:{add:"新增",update:"编辑"},formLoading:!1,formVisible:!1,formData:em,combinType:0,combinTypeMap:{0:"选入往来单位信息",1:"关联往来单位信息"},formRules:{},spellUpdate:!1,editDialogVisible:!1,selectDrugDialogVisible:!1,selectSingleUnitVisible:!1,list:[],sysList:[],total:0,multipleSelection:[],thirdSys:[],thirdSysFk:null}},methods:{onReset:function(){this.$router.push({path:""}),this.query={key:"",page:1,limit:20},this.getList()},getList:function(){var t=this;this.loading=!0,this.erpIdColumn=!1,this.thirdIdColumn=!1,Object(Yt["f"])(this.query).then((function(e){console.log(e),t.loading=!1,t.erpIdColumn="1"==e.data.BUMErpIdValue,t.thirdIdColumn="1"==e.data.BUMThirdIdValue,t.list=e.data.page.list||[],t.total=e.data.page.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},resetForm:function(){this.$refs["dataForm"]&&(this.$refs["dataForm"].clearValidate(),this.$refs["dataForm"].resetFields(),this.getList())},hideForm:function(){return this.formVisible=!this.formVisible,!0},handleForm:function(t,e){this.formVisible=!0,this.formData=JSON.parse(JSON.stringify(em)),null!==e&&(this.formData=Object.assign({},e)),this.formName="add",this.spellUpdate=!1,null!==t&&(this.index=t,this.formName="update",this.spellUpdate=!0),this.editQuery=e,this.getThirdSysDetail()},formSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){t.formLoading=!0;var a=Object.assign({},t.formData);console.log("------2------"),Object(Yt["a"])(a,t.formName).then((function(e){if(t.formLoading=!1,2e4!==e.code)return t.$message.error(e.message),!1;t.$message.success("操作成功"),t.formVisible=!1,"add"===t.formName?e.data&&e.data.id&&(a.id=e.data.id,t.list.unshift(a)):t.list.splice(t.index,1,a),t.resetForm(),t.getList()})).catch((function(){t.formLoading=!1}))}}))},change:function(){var t=a("d958"),e=t(this.formData.name,{style:t.STYLE_FIRST_LETTER,heteronym:!0}),i="";e.forEach((function(t){i+=t[0]})),this.formData.spell=i},deleteUnit:function(t){var e=this;this.loading=!0;var a={id:t.id+""};Object(Yt["e"])(a).then((function(t){2e4==t.code?(e.getList(),e.$message({type:"success",message:"删除成功!"})):e.$message.error(t.message)})).catch((function(){}))},cancelDialog:function(){this.editDialogVisible=!1,this.selectSingleUnitVisible=!1,this.getList()},closeMain:function(t){this.selectDrugDialogVisible=!1,t?(this.$message.success("添加成功!"),this.getList()):this.$message.error("添加失败!")},selectExport:function(){var t=this,e=this.multipleSelection;e.forEach((function(e){t.query.ids.push(e.id)})),this.allExport()},allExport:function(){var t=this;Yp(this.query).then((function(e){2e4==e.code?t.$message({type:"success",message:"导出成功,后台正在生成Excel文件,请稍后刷新查看!"}):t.$message({type:"error",message:e.message}),t.$emit("cancelDialog",!0)})).catch((function(){t.$message({type:"error",message:"上传失败"})}))},uploadSMP:function(){var t=this,e=this.multipleSelection;e.forEach((function(e){t.query.ids.push(e.id)})),this.allUploadSMP()},allUploadSMP:function(){var t=this;Ss(this.query).then((function(e){2e4==e.code?t.$message.success("提交成功,后台正在上传!"):t.$message.error(e.message),t.$emit("cancelDialog",!0)})).catch((function(){t.$message.error("上传失败!")}))},handleModifyClick:function(t){this.editDialogVisible=!0,this.editQuery=t,this.getThirdSysDetail()},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteUnit(t)})).catch((function(){}))},intentDetail:function(){this.combinType=0,this.selectDrugDialogVisible=!0},intentSelect:function(t){this.combinType=1,this.corpData=t,this.selectSingleUnitVisible=!0},handleSelectionChange:function(t){this.multipleSelection=t},handleCurrentChange:function(t){this.query.page=t,this.getList()},getBasicThirdSys:function(){var t=this,e={enabled:null};as(e).then((function(e){t.thirdSys=e.data.list||[],t.thirdSysFk=t.thirdSys[0].thirdId})).catch((function(){t.loading=!1,t.list=[]}))},getThirdSysDetail:function(){var t=this,e={id:this.editQuery.id};Object(Yt["h"])(e).then((function(e){t.loading=!1,t.sysList=e.data.list||[]})).catch((function(){t.loading=!1,t.sysList=[]}))}},mounted:function(){},components:{},created:function(){this.getList(),this.getBasicThirdSys()}},im=am,lm=(a("0563"),Object(g["a"])(im,Zp,tm,!1,null,"2713d162",null)),sm=lm.exports,om={data:function(){return{filterQuery:{genKey:null,status:null,fromType:null,page:1,limit:20,type:1,thirdSysFk:null},selectType:0,corpImportDetailVisible:!1,list:[],detailList:[],thirdSys:[],thirdSysDetail:null,total:0,editQuery:null,fromStatus:{0:"产品信息",1:"库存信息",2:"异常第三方上传"},status:{0:"等待处理",1:"正在处理",2:"处理异常",3:"处理完成"},uploadFileUrl:null,uploadData:{thirdSys:"thirdId"}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={fromType:null,genKey:null,status:null,page:1,type:1,limit:20,thirdSysFk:null},this.getList()},getList:function(){var t=this;this.loading=!0,Gp(this.filterQuery).then((function(e){t.loading=!1,t.list=e.data.list||[],t.total=e.data.total||0})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},exportExcel:function(){this.selectType=0,this.corpImportDetailVisible=!0},uploadSmp:function(){this.selectType=1,this.corpImportDetailVisible=!0},downloadExcel:function(t){var e=this;Yr.a.get("./config.json").then((function(a){var i=a.data.BASE_URL,l=i+"/udiwms/corps/exportLog/download?genKey="+t.genKey;console.log("href = "+l);var s=document.createElement("a");fetch(l).then((function(t){return t.blob()})).then((function(a){s.href=URL.createObjectURL(a),console.log(s.href),s.download=t.filePath.split("/")[t.filePath.split("/").length-1],document.body.appendChild(s),s.click(),e.getList()}))}))},cancelDialog:function(t){this.corpImportDetailVisible=!1,t&&this.getList()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},deleteDialog:function(t){var e=this;this.$confirm("此操作将删除该往来单位信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t};Xp(a).then((function(t){e.loading=!1,2e4==t.code?e.$message.success("删除成功"):e.$message.error(t.message),e.getList()})).catch((function(){e.loading=!1}))})).catch((function(){}))},handleChange:function(t,e,a){console.log(t),2e4!=t.code?this.$message.error(t.message):(console.log(e[0]+"\n"+this.fileList[0]+"\n"+a[0]),this.$message.success("文件上传成功,请稍后刷新查看!"))},statusFilterType:function(t){var e={0:"warning",1:"warning",2:"danger",3:"success"};return e[t]}},mounted:function(){},components:{corpSelect:sm},created:function(){this.getList()}},rm=om,nm=(a("b32d"),Object(g["a"])(rm,Kp,Jp,!1,null,null,null)),cm=nm.exports,um=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品编码/商品条码/医保编码",clearable:"true"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.keyupErp_submit(e)}},model:{value:t.filterQuery.code,callback:function(e){t.$set(t.filterQuery,"code",e)},expression:"filterQuery.code"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"产品名称"},model:{value:t.filterQuery.name,callback:function(e){t.$set(t.filterQuery,"name",e)},expression:"filterQuery.name"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"规格型号"},model:{value:t.filterQuery.spec,callback:function(e){t.$set(t.filterQuery,"spec",e)},expression:"filterQuery.spec"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"注册/备案凭证"},model:{value:t.filterQuery.registerNo,callback:function(e){t.$set(t.filterQuery,"registerNo",e)},expression:"filterQuery.registerNo"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"生产厂家"},model:{value:t.filterQuery.manufactory,callback:function(e){t.$set(t.filterQuery,"manufactory",e)},expression:"filterQuery.manufactory"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"请选择第三方系统"},on:{change:t.thirdSysChange},model:{value:t.filterQuery.thirdSys,callback:function(e){t.$set(t.filterQuery,"thirdSys",e)},expression:"filterQuery.thirdSys"}},t._l(t.thirdSys,(function(e){return a("el-option",{key:e.value,attrs:{label:e.thirdName,value:e.thirdId}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.thirdName))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.thirdId))])])})),1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"80"}}),a("el-table-column",{attrs:{label:"产品编码",prop:"code"}}),a("el-table-column",{attrs:{label:"产品名称",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"规格型号",prop:"spec","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"计量单位",prop:"measname","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"注册/备案凭证",prop:"registerNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"生产厂家",prop:"manufactory","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.detailDialog(e.row)}}},[t._v("详情\n ")]),0!=t.thirdSysDetail.fromType?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row)}}},[t._v("删除\n ")]):t._e()]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t.thrProductsDetailVisible?a("el-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"产品信息详情",visible:t.thrProductsDetailVisible,width:"85%"},on:{"update:visible":function(e){t.thrProductsDetailVisible=e}}},[a("thrProductsDetail",{attrs:{data:t.thisData}})],1):t._e()],1)},dm=[];function pm(t){return Object(et["a"])({url:"/udiwms/thrsys/delThrProducts",method:"post",data:t})}function mm(t){return Object(et["a"])({url:"/udiwms/thrsys/products/delAll",method:"get",params:t})}function hm(t){return Object(et["a"])({url:"/udiwms/thrsys/products/downloadAll",method:"get",params:t})}function fm(t){return Object(et["a"])({url:"/udiwms/thrsys/products/productsDlAll",method:"post",data:t})}var gm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"el-card"},[t.isImport?t._e():a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品名称: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",splaceholder:"请输入内容",disabled:!0},model:{value:t.data.name,callback:function(e){t.$set(t.data,"name",e)},expression:"data.name"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品标识: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.code,callback:function(e){t.$set(t.data,"code",e)},expression:"data.code"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("注册证号: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.registerNo,callback:function(e){t.$set(t.data,"registerNo",e)},expression:"data.registerNo"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("生产厂家: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"ylqxzcrbarmc"},model:{value:t.data.manufactory,callback:function(e){t.$set(t.data,"manufactory",e)},expression:"data.manufactory"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("规格型号: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.spec,callback:function(e){t.$set(t.data,"spec",e)},expression:"data.spec"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("计量单位: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.measname,callback:function(e){t.$set(t.data,"measname",e)},expression:"data.measname"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("医疗器械注册人: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"ylqxzcrbarmc"},model:{value:t.data.ylqxzcrbarmc,callback:function(e){t.$set(t.data,"ylqxzcrbarmc",e)},expression:"data.ylqxzcrbarmc"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("注册人英文名称: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.ylqxzcrbarywmc,callback:function(e){t.$set(t.data,"ylqxzcrbarywmc",e)},expression:"data.ylqxzcrbarywmc"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品类别: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.cplb,callback:function(e){t.$set(t.data,"cplb",e)},expression:"data.cplb"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("分类编码: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.flbm,callback:function(e){t.$set(t.data,"flbm",e)},expression:"data.flbm"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("商品条码: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.sptm,callback:function(e){t.$set(t.data,"sptm",e)},expression:"data.sptm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("医保编码: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.ybbm,callback:function(e){t.$set(t.data,"ybbm",e)},expression:"data.ybbm"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("统一社会信用号: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.tyshxydm,callback:function(e){t.$set(t.data,"tyshxydm",e)},expression:"data.tyshxydm"}})],1)]),a("el-col",{staticClass:"el-col",attrs:{span:12}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("器械类别: ")])]),a("el-input",{staticStyle:{width:"60%"},attrs:{disabled:!0,size:"small",splaceholder:"请输入内容"},model:{value:t.data.qxlb,callback:function(e){t.$set(t.data,"qxlb",e)},expression:"data.qxlb"}})],1)])],1),a("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[a("el-col",{staticClass:"el-col",staticStyle:{"margin-top":"12px"},attrs:{span:20}},[a("div",{staticClass:"text item"},[a("div",{staticClass:"itemTag"},[a("span",[t._v("产品描述: ")])]),a("el-input",{staticStyle:{width:"85%"},attrs:{type:"textarea",size:"mini",disabled:!0,rows:"4",splaceholder:"请输入内容"},on:{input:function(e){return t.change()}},model:{value:t.data.cpms,callback:function(e){t.$set(t.data,"cpms",e)},expression:"data.cpms"}})],1)])],1)],1)])],1)},ym=[],bm={name:"ThrProductsDetail",props:{data:{type:Object,required:!0}}},vm=bm,wm=Object(g["a"])(vm,gm,ym,!1,null,"df905db2",null),xm=wm.exports,Dm={data:function(){return{filterQuery:{code:null,name:"",spec:null,registerNo:null,manufactory:null,thirdSys:"",page:1,limit:20},total:0,thirdSys:[],thirdSysDetail:null,list:[],uploadFileUrl:null,fileList:[],uploadData:{thirdSys:"thirdId"},thrProductsDetailVisible:!1,thisData:null,loading:!1}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={code:null,spec:null,registerNo:null,manufactory:null,name:"",thirdSys:null,page:1,limit:20},this.getList()},getList:function(){var t=this;null!=this.filterQuery.thirdSys?(this.loading=!0,rs(this.filterQuery).then((function(e){2e4==e.code?(t.list=e.data.list||[],t.total=e.data.total||0):t.$message.error(e.message),t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))):this.$message.warning("请先选择第三方系统!")},clearAll:function(){var t=this;this.$confirm("此操作将清空所有产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){mm().then((function(e){t.loading=!1,2e4==e.code?(t.$message.success("删除成功"),t.getList()):t.$message.error(e.message)})).catch((function(){t.loading=!1}))})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.id};pm(a).then((function(t){e.loading=!1,2e4==t.code?(e.$message.success("删除成功"),e.getList()):e.$message.success(t.message)})).catch((function(){e.loading=!1}))})).catch((function(){}))},detailDialog:function(t){this.thisData=t,this.thrProductsDetailVisible=!0},getBasicThirdSys:function(){var t=this,e={enabled:!0};as(e).then((function(e){t.thirdSys=e.data.list||[],t.filterQuery.thirdSys=t.thirdSys[0].thirdId,t.uploadData.thirdSys=t.filterQuery.thirdSys,t.getThirdSysDetail(),t.selectSysParam(),t.getList()})).catch((function(){t.loading=!1,t.list=[]}))},getThirdSysDetail:function(){var t=this,e={thirdSysFk:this.filterQuery.thirdSys,key:"piQueryUrl"};ss(e).then((function(e){t.thirdSysDetail=e.data})).catch((function(){t.loading=!1,t.list=[]}))},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleChange:function(t,e,a){console.log(t),2e4!=t.code?this.$message.error(t.message):(console.log(e[0]+"\n"+this.fileList[0]+"\n"+a[0]),this.$message.success("文件上传成功,请稍后刷新查看!"))},selectSysParam:function(){var t=this,e={key:"thirdIpUrl",thirdSysFk:this.filterQuery.thirdSys};Ut(e).then((function(e){2e4==e.code&&(t.uploadFileUrl=e.data.thridUrl+"/udiwms/erp/pi/upload")}))},thirdSysChange:function(){this.uploadData.thirdSys=this.filterQuery.thirdSys,this.getThirdSysDetail()},downloadDatas:function(){var t=this,e={thirdSysFk:this.filterQuery.thirdSys};hm(e).then((function(e){2e4==e.code?t.$message.success(e.data):t.$message.error(e.message)}))}},components:{thrProductsDetail:xm},mounted:function(){},created:function(){this.getBasicThirdSys()}},Cm=Dm,km=Object(g["a"])(Cm,um,dm,!1,null,null,null),Qm=km.exports,Sm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"记录ID"},model:{value:t.filterQuery.genKey,callback:function(e){t.$set(t.filterQuery,"genKey",e)},expression:"filterQuery.genKey"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"处理状态"},model:{value:t.filterQuery.status,callback:function(e){t.$set(t.filterQuery,"status",e)},expression:"filterQuery.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"处理中",value:"0"}}),a("el-option",{attrs:{label:"已处理",value:"1"}}),a("el-option",{attrs:{label:"异常",value:"2"}})],1)],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"请选择第三方系统"},on:{change:t.sysChange},model:{value:t.filterQuery.thirdSysFk,callback:function(e){t.$set(t.filterQuery,"thirdSysFk",e)},expression:"filterQuery.thirdSysFk"}},t._l(t.thirdSys,(function(e){return a("el-option",{key:e.value,attrs:{label:e.thirdName,value:e.thirdId}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.thirdName))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.thirdId))])])})),1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")]),a("el-upload",{attrs:{action:t.uploadFileUrl,multiple:"",limit:3,data:t.uploadData,"show-file-list":!1,"on-success":t.handleChange,"file-list":t.fileList}},[a("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("导入产品信息")])],1),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.jumpDl}},[t._v("模板下载\n ")]),this.thirdSysDetail.enabled&&3==this.thirdSysDetail.fromType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.downloadProducts}},[t._v("\n 下载产品信息\n ")]):t._e()],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"记录ID",prop:"genKey","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"来源",prop:"fromType","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"更新日期",prop:"updateTime","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"来源系统",prop:"thirdSysFk","show-overflow-tooltip":"",formatter:t.formatterThirdSys}}),a("el-table-column",{attrs:{label:"状态",prop:"status","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t.statusFilterType(e.row.status)}},[t._v(t._s(t.status[e.row.status])+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.handleDetailClick(e.row)}}},[t._v("详情\n ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row.id)}}},[t._v("删除\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}}),t.udiImportDetailVisible?a("el-dialog",{attrs:{title:"导入产品信息详情详情","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.udiImportDetailVisible,width:"85%"},on:{"update:visible":function(e){t.udiImportDetailVisible=e}}},[a("thrProductsImportDetail",{attrs:{currentRow:t.currentRow}})],1):t._e(),t.thrProductsSelectVisible?a("el-dialog",{attrs:{title:"下载产品信息","close-on-click-modal":!1,"close-on-press-escape":!1,visible:t.thrProductsSelectVisible,width:"85%"},on:{"update:visible":function(e){t.thrProductsSelectVisible=e}}},[a("thrProductsSelect",{attrs:{selectType:t.selectType,isDownThrSys:!0},on:{cancelDialog:t.cancelDialog}})],1):t._e()],1)},_m=[];function $m(t){return Object(et["a"])({url:"/udiwms/thrProducts/importLog/filter",method:"get",params:t})}function Tm(t){return Object(et["a"])({url:"/udiwms/thrProducts/importLog/filterDetail",method:"get",params:t})}function Lm(t){return Object(et["a"])({url:"/udiwms/thrProducts/importLog/deleteLog",method:"post",data:t})}var Om=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("el-form",{attrs:{inline:!0,model:t.query,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品编码"},model:{value:t.filterQuery.code,callback:function(e){t.$set(t.filterQuery,"code",e)},expression:"filterQuery.code"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品名称"},model:{value:t.filterQuery.name,callback:function(e){t.$set(t.filterQuery,"name",e)},expression:"filterQuery.name"}})],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"序号",type:"index"}}),a("el-table-column",{attrs:{label:"产品编码",prop:"code"}}),a("el-table-column",{attrs:{label:"产品名称",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"规格型号",prop:"spec","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"计量单位",prop:"measname","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"注册证号",prop:"registerNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"生产厂家",prop:"manufactory","show-overflow-tooltip":""}})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)],1)},zm=[],Im={name:"ThrProductsImportDetail",props:{currentRow:{type:Object,required:!0}},data:function(){return{filterQuery:{genKey:null,code:null,name:"",status:null,page:1,limit:10},list:[],detailList:[],total:0,status:{0:"未处理",1:"处理失败",2:"处理成功"}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={genKey:null,code:null,name:"",status:null,page:1,limit:10},this.getList()},getList:function(){var t=this;this.loading=!0,console.log(" this.genKey = "+this.currentRow),this.filterQuery.genKey=this.currentRow.genKey,Tm(this.filterQuery).then((function(e){2e4==e.code?(t.list=e.data.list||[],t.total=e.data.total||0):t.$message.error(e.message),t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},statusFilterType:function(t){var e={0:"warning",1:"danger",2:"success"};return e[t]},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()}},mounted:function(){},created:function(){this.getList()},filters:{}},Nm=Im,Fm=(a("f614"),Object(g["a"])(Nm,Om,zm,!1,null,null,null)),qm=Fm.exports,Vm=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品编码/商品条码/医保编码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.keyupErp_submit(e)}},model:{value:t.filterQuery.code,callback:function(e){t.$set(t.filterQuery,"code",e)},expression:"filterQuery.code"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"产品通用名"},model:{value:t.filterQuery.name,callback:function(e){t.$set(t.filterQuery,"name",e)},expression:"filterQuery.name"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"规格型号"},model:{value:t.filterQuery.spec,callback:function(e){t.$set(t.filterQuery,"spec",e)},expression:"filterQuery.spec"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"注册/备案凭证"},model:{value:t.filterQuery.registerNo,callback:function(e){t.$set(t.filterQuery,"registerNo",e)},expression:"filterQuery.registerNo"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{clearable:"true",placeholder:"生产厂家"},model:{value:t.filterQuery.manufactory,callback:function(e){t.$set(t.filterQuery,"manufactory",e)},expression:"filterQuery.manufactory"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"请选择第三方系统"},on:{change:t.thirdSysChange},model:{value:t.filterQuery.thirdSys,callback:function(e){t.$set(t.filterQuery,"thirdSys",e)},expression:"filterQuery.thirdSys"}},t._l(t.thirdSys,(function(e){return a("el-option",{key:e.value,attrs:{label:e.thirdName,value:e.thirdId}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.thirdName))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.thirdId))])])})),1)],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")]),0==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.selectExport}},[t._v("选中导出\n ")]):t._e(),0==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.allExport}},[t._v("结果全部导出\n ")]):t._e(),1==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.uploadSmp}},[t._v("选中上传\n ")]):t._e(),1==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.allUploadSmp}},[t._v("一键上传\n ")]):t._e(),3==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.downloadErp}},[t._v("选中下载\n ")]):t._e(),3==t.selectType?a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.downloadAllErp}},[t._v("结果全部下载\n ")]):t._e()],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"序号",type:"index",width:"80"}}),a("el-table-column",{attrs:{label:"产品编码",prop:"code"}}),a("el-table-column",{attrs:{label:"产品通用名",prop:"name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"规格型号",prop:"spec","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"计量单位",prop:"measname","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"注册证号",prop:"registerNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"生产厂家",prop:"manufactory","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.detailDialog(e.row)}}},[t._v("详情\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t.thrProductsDetailVisible?a("el-dialog",{attrs:{title:"产品信息详情",visible:t.thrProductsDetailVisible,width:"85%","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.thrProductsDetailVisible=e}}},[a("thrProductsDetail",{attrs:{data:t.thisData}})],1):t._e()],1)},Rm=[];function Em(t){return Object(et["a"])({url:"/udiwms/thrProducts/importLog/export",method:"post",data:t})}var jm={name:"thrProductsSelect",props:{selectType:{type:Object,required:!0},isDownThrSys:{type:Object,required:!0}},data:function(){return{filterQuery:{thrProductsEntities:[],code:null,name:"",thirdSys:null,spec:null,manufactory:null,registerNo:null,page:1,limit:10,isDownThrSys:null},total:0,thirdSys:[],thirdSysDetail:null,list:[],uploadFileUrl:null,fileList:[],uploadData:{thirdSys:"thirdId"},thrProductsDetailVisible:!1,thisData:null}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={thrProductsEntities:[],code:null,name:"",thirdSys:"",page:1,limit:20},this.getList()},getList:function(){var t=this;this.loading=!0,this.filterQuery.isDownThrSys=this.isDownThrSys,rs(this.filterQuery).then((function(e){2e4==e.code?(t.list=e.data.list||[],t.total=e.data.total||0):t.$message.error(e.message),t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},clearAll:function(){var t=this;this.$confirm("此操作将清空所有产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){mm().then((function(e){t.loading=!1,2e4==e.code?(t.$message.success("删除成功"),t.getList()):t.$message.success(e.message)})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleSelectionChange:function(t){this.multipleSelection=t},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该产品信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.id};pm(a).then((function(t){e.loading=!1,2e4==t.code?(e.$message.success("删除成功"),e.getList()):e.$message.success(t.message)})).catch((function(){e.loading=!1}))})).catch((function(){}))},detailDialog:function(t){this.thisData=t,this.thrProductsDetailVisible=!0},getBasicThirdSys:function(){var t=this,e={enabled:!0};as(e).then((function(e){t.thirdSys=e.data.list||[],t.filterQuery.thirdSys=t.thirdSys[0].thirdId,t.uploadData.thirdSys=t.filterQuery.thirdSys,t.getThirdSysDetail(),t.selectSysParam(),t.getList()})).catch((function(){t.loading=!1,t.list=[]}))},getThirdSysDetail:function(){var t=this,e={thirdSysFk:this.filterQuery.thirdSys,key:"piQueryUrl"};ss(e).then((function(e){t.thirdSysDetail=e.data})).catch((function(){t.loading=!1,t.list=[]}))},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleChange:function(t,e,a){console.log(t),2e4!=t.code?this.$message.error(t.message):(console.log(e[0]+"\n"+this.fileList[0]+"\n"+a[0]),this.$message.success("文件上传成功,请稍后刷新查看!"))},selectSysParam:function(){var t=this,e={key:"thirdIpUrl",thirdSysFk:this.filterQuery.thirdSys};Ut(e).then((function(e){2e4==e.code&&(t.uploadFileUrl=e.data.thridUrl+"/udiwms/erp/pi/upload")}))},thirdSysChange:function(){this.uploadData.thirdSys=this.filterQuery.thirdSys,this.getThirdSysDetail()},downloadDatas:function(){var t=this,e={thirdSysFk:this.filterQuery.thirdSys};hm(e).then((function(e){2e4==e.code?t.$message.success(e.data):t.$message.error(e.message)}))},uploadSmp:function(){var t=this,e=this.multipleSelection;e.forEach((function(e){t.filterQuery.thrProductsEntities.push(e)})),this.allUploadSmp()},allUploadSmp:function(){var t=this;Ts(this.filterQuery).then((function(e){2e4==e.code?(t.$message.success(e.data),t.$emit("cancelDialog",!0)):(t.$message.error(e.message),t.$emit("cancelDialog",!0))})).catch((function(){t.$message({type:"error",message:"上传失败"})}))},downloadErp:function(){var t=this,e=this.multipleSelection;e.forEach((function(e){t.filterQuery.thrProductsEntities.push(e)})),this.downloadAllErp()},downloadAllErp:function(){var t=this;fm(this.filterQuery).then((function(e){2e4==e.code?(t.$message.success(e.data),t.$emit("cancelDialog",!0)):(t.$message.error(e.message),t.$emit("cancelDialog",!0))})).catch((function(){t.$message({type:"error",message:"下载失败"})}))},selectExport:function(){var t=this,e=this.multipleSelection;e.forEach((function(e){t.filterQuery.thrProductsEntities.push(e)})),this.allExport()},allExport:function(){var t=this;Em(this.filterQuery).then((function(e){2e4==e.code?(t.$message({type:"success",message:"导出成功,后台正在生成Excel文件,请稍后刷新查看!"}),t.$emit("cancelDialog",!0)):(t.$message({type:"error",message:e.message}),t.$emit("cancelDialog",!0))})).catch((function(){t.$message({type:"error",message:"上传失败"})}))}},components:{thrProductsDetail:xm},mounted:function(){},created:function(){this.getBasicThirdSys()}},Pm=jm,Bm=Object(g["a"])(Pm,Vm,Rm,!1,null,null,null),Um=Bm.exports,Am={data:function(){return{filterQuery:{genKey:null,status:null,fromType:null,page:1,limit:20,thirdSysFk:null},udiImportDetailVisible:!1,thrProductsSelectVisible:!1,checked:!1,list:[],detailList:[],thirdSys:[],thirdSysDetail:null,total:0,currentRow:null,editQuery:null,fromStatus:{0:"产品信息",1:"库存信息",2:"异常第三方上传"},status:{0:"等待处理",1:"正在处理",2:"处理异常",3:"处理完成"},uploadFileUrl:null,templateDlUrl:null,uploadData:{thirdSys:"thirdId"}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={fromType:null,genKey:null,status:null,page:1,limit:20,thirdSysFk:null},this.getList()},getList:function(){var t=this;this.loading=!0,$m(this.filterQuery).then((function(e){2e4==e.code?(t.list=e.data.list||[],t.total=e.data.total||0):t.$message.error(e.message),t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))},jumpDl:function(){window.open(this.templateDlUrl,"_blank")},formatterThirdSys:function(t){var e=null;return this.thirdSys.forEach((function(a,i){t.thirdSysFk==a.thirdId&&(e=a.thirdName)})),e},handleDetailClick:function(t){this.currentRow=t,console.log(this.currentRow.genKey),this.udiImportDetailVisible=!0},cancelDialog:function(t){this.udiImportDetailVisible=!1,this.thrProductsSelectVisible=!1,t&&this.getList()},sysChange:function(){this.getThirdSysDetail()},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},deleteDialog:function(t){var e=this;this.$confirm("此操作将删除该导入记录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t};Lm(a).then((function(t){e.loading=!1,2e4==t.code?e.$message.success("删除成功"):e.$message.error(t.message),e.getList()})).catch((function(){e.loading=!1}))})).catch((function(){}))},getBasicThirdSys:function(){var t=this,e={enabled:!0};as(e).then((function(e){t.thirdSys=e.data.list||[],t.filterQuery.thirdSysFk=t.thirdSys[0].thirdId,t.uploadData.thirdSys=t.filterQuery.thirdSysFk,t.getList(),t.getThirdSysDetail()})).catch((function(){t.loading=!1,t.list=[]})),Yr.a.get("./config.json").then((function(e){var a=e.data.BASE_URL,i=e.data.SERVER_IP;t.templateDlUrl=i+"/第三方产品信息导入模板.xlsx",t.uploadFileUrl=a+"/udiwms/thrProducts/importLog/upload",console.log(t.templateDlUrl)}))},handleChange:function(t,e,a){console.log(t),2e4!=t.code?this.$message.error(t.message):(this.$message.success("文件上传成功,请稍后刷新查看!"),this.getList())},statusFilterType:function(t){var e={0:"warning",1:"warning",2:"danger",3:"success"};return e[t]},getThirdSysDetail:function(){var t=this,e={thirdSysFk:this.filterQuery.thirdSysFk,key:"piQueryUrl"};ss(e).then((function(e){t.thirdSysDetail=e.data})).catch((function(){t.loading=!1,t.list=[]})),this.uploadData.thirdSys=this.filterQuery.thirdSysFk},downloadProducts:function(){this.selectType=3,this.thrProductsSelectVisible=!0},downloadDatas:function(){var t=this;this.$confirm("此操作从第三方系统下载全部信息, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={thirdSysFk:t.filterQuery.thirdSysFk};hm(e).then((function(e){2e4==e.code?(t.$message.success(e.data),t.getList()):t.$message.error(e.message)}))}))}},mounted:function(){},components:{thrProductsImportDetail:qm,thrProductsSelect:Um},created:function(){this.getBasicThirdSys()}},Mm=Am,Wm=(a("17af"),Object(g["a"])(Mm,Sm,_m,!1,null,null,null)),Hm=Wm.exports,Km=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"el-card"},[a("el-form",{staticClass:"query-form",attrs:{inline:!0,model:t.filterQuery,size:"mini"}},[a("el-row",[a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"单据号",clearable:""},model:{value:t.filterQuery.billNo,callback:function(e){t.$set(t.filterQuery,"billNo",e)},expression:"filterQuery.billNo"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-input",{attrs:{placeholder:"往来单位",clearable:""},model:{value:t.filterQuery.corpName,callback:function(e){t.$set(t.filterQuery,"corpName",e)},expression:"filterQuery.corpName"}})],1),a("el-form-item",{staticClass:"query-form-item"},[a("el-select",{attrs:{placeholder:"请选择业务类型",clearable:"true"},model:{value:t.filterQuery.billAction,callback:function(e){t.$set(t.filterQuery,"billAction",e)},expression:"filterQuery.billAction"}},t._l(t.originTypes,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.action}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.name))])])})),1)],1),a("el-form-item",{staticClass:"query-form-item"},[a("span",{staticStyle:{color:"#000","margin-left":"10px","margin-right":"6px"}},[t._v("单据日期:")]),a("el-date-picker",{attrs:{"picker-options":t.pickerOptions,type:"daterange",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.actDateRange,callback:function(e){t.actDateRange=e},expression:"actDateRange"}})],1),a("el-form-item",[a("el-button-group",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.onReset}}),a("el-button",{attrs:{type:"primary",icon:"search"},on:{click:t.getList}},[t._v("查询")])],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"highlight-current-row":"true"},on:{"current-change":t.handleDetail}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"60"}}),a("el-table-column",{attrs:{label:"第三方单据类型",prop:"billType"}}),a("el-table-column",{attrs:{label:"单据号",prop:"billNo"}}),a("el-table-column",{attrs:{label:"往来单位ID",prop:"corpId"}}),a("el-table-column",{attrs:{label:"往来单位",prop:"corpName","show-overflow-tooltip":"true"}}),a("el-table-column",{attrs:{label:"单据状态",prop:"billFlag"}}),a("el-table-column",{attrs:{label:"单据日期",prop:"billdate"}}),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.stopPropagation(),t.deleteDialog(e.row)}}},[t._v("删除\n ")])]}}])})],1),a("el-pagination",{attrs:{"page-size":t.filterQuery.limit,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1),a("el-card",{staticClass:"el-card"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.detailList}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"120"}}),a("el-table-column",{attrs:{label:"产品编码",prop:"productId"}}),a("el-table-column",{attrs:{label:"产品通用名",prop:"productName","show-overflow-tooltip":"true"}}),a("el-table-column",{attrs:{label:"规格型号",prop:"spec","show-overflow-tooltip":"true"}}),a("el-table-column",{attrs:{label:"批次号",prop:"batchNo"}}),a("el-table-column",{attrs:{label:"生产日期",prop:"productDate"}}),a("el-table-column",{attrs:{label:"失效日期",prop:"expireDate"}}),a("el-table-column",{attrs:{label:"单据数量",prop:"reCount"}}),a("el-table-column",{attrs:{label:"实际数量",prop:"count"}})],1)],1)],1)},Jm=[];function Gm(t){return Object(et["a"])({url:"/udiwms/thrsys/delOrder",method:"post",data:t})}function Xm(t){return Object(et["a"])({url:"/udiwms/thrsys/order/delAll",method:"get",params:t})}function Ym(t){return Object(et["a"])({url:"/udiwms/thrsys/orders/downloadAll",method:"get",params:t})}function Zm(t){return Object(et["a"])({url:"/udiwms/thrsys/orders/orderDownload",method:"post",data:t})}var th={data:function(){return{filterQuery:{billAction:null,billNo:"",originType:null,thirdSysFk:"",page:1,limit:10,corpName:null},total:0,thirdSys:[],thirdSysDetail:null,busTypes:[],originTypes:[],list:[],detailList:[],uploadFileUrl:null,fileList:[],uploadData:{thirdSys:"thirdId"},loading:!1,actDateRange:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]}}},methods:{onReset:function(){this.$router.push({path:""}),this.filterQuery={billNo:"",thirdSysFk:"",billFlag:null,billAction:null,startDate:null,endDate:null,page:1,limit:10,corpName:null},this.actDateRange=[],this.getList()},getList:function(){var t=this;null!=this.filterQuery.thirdSysFk?(null!=this.actDateRange?(this.filterQuery.startDate=this.actDateRange[0],this.filterQuery.endDate=this.actDateRange[1]):(this.filterQuery.startDate=null,this.filterQuery.endDate=null),this.loading=!0,ur(this.filterQuery).then((function(e){2e4==e.code?(t.list=e.data.list||[],t.total=e.data.total||0):t.$message.error(e.message),t.loading=!1})).catch((function(){t.loading=!1,t.list=[],t.total=0}))):this.$message.warning("请先选择第三方系统!")},handleDetail:function(t){this.detailList=t.subErpOrders},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该单据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:t.id};Gm(a).then((function(t){e.loading=!1,2e4==t.code?(e.$message.success("删除成功"),e.getList()):e.$message.error(t.message)})).catch((function(){e.loading=!1}))})).catch((function(){}))},clearAll:function(){var t=this;this.$confirm("此操作将清空所有单据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Xm().then((function(e){t.loading=!1,2e4==e.code?(t.$message.success("删除成功"),t.getList()):t.$message.success(e.message)})).catch((function(){t.loading=!1}))})).catch((function(){}))},getBasicThirdSys:function(){var t=this,e={enabled:!0};as(e).then((function(e){t.thirdSys=e.data.list||[],t.filterQuery.thirdSysFk=t.thirdSys[0].thirdId,t.uploadData.thirdSys=t.filterQuery.thirdSysFk,t.selectSysParam(),t.getThirdSysDetail(),t.getBusType()})).catch((function(){t.loading=!1,t.list=[]}))},handleCurrentChange:function(t){this.filterQuery.page=t,this.getList()},handleChange:function(t,e,a){console.log(t),2e4!=t.code?this.$message.error(t.message):(console.log(e[0]+"\n"+this.fileList[0]+"\n"+a[0]),this.$message.success("文件上传成功,请稍后刷新查看!"))},selectSysParam:function(){var t=this,e={key:"thirdIpUrl",thirdSysFk:this.filterQuery.thirdSysFk};Ut(e).then((function(e){2e4==e.code&&(t.uploadFileUrl=e.data.thridUrl+"/udiwms/erp/pi/upload")}))},thirdSysChange:function(){this.uploadData.thirdSys=this.filterQuery.thirdSysFk,this.getThirdSysDetail()},getThirdSysDetail:function(){var t=this,e={thirdSysFk:this.filterQuery.thirdSysFk,key:"orderQueryUrl"};ss(e).then((function(e){t.thirdSysDetail=e.data})).catch((function(){t.loading=!1,t.list=[]}))},downloadDatas:function(){var t=this,e={billAction:this.filterQuery.billAction};Ym(e).then((function(e){2e4==e.code?t.$message.success(e.data):t.$message.error(e.message)}))},getActionName:function(t){for(var e=0;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:l}}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 s,o=!0,r=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw s}}}}function Wg(t,e){if(t){if("string"===typeof t)return Hg(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Hg(t,e):void 0}}function Hg(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a\n\nCode\nCorpOrderID\nActor\nActDate\nToCorpID\n\n \n\n\n\n\n\n\n\n\n',r=Mg(a);try{for(r.s();!(s=r.n()).done;){var n=s.value;null===n.fromCorpId&&(n.fromCorpId="");var c=' \n';o+=c}}catch(d){r.e(d)}finally{r.f()}o+="\n\n\n\n";var u=new Blob([o],{type:"text/plain;charset=utf-8"});Object(He["saveAs"])(u,i.action+i.corpOrderId+".xml"),e.exportQuery.orderId=l,e.exportQuery.exportStatus="已上传",Ei(e.exportQuery).then((function(t){e.getList()}))})).catch((function(){e.loading=!1,e.list=[],e.total=0}))},uploadOrderDialog:function(t){var e=this;console.log(t.id+"---"+t.orderid),this.uploadQuery={orderId:t.id},Ui(this.uploadQuery).then((function(t){2e4===t.code?(e.$message.success(t.data),e.getList()):e.$message.error(t.message)})).catch((function(){}))},deleteDialog:function(t){var e=this;this.$confirm("此操作将永久删除该订单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.deleteOrders(t)})).catch((function(){}))},closeDetailDialog:function(t){this.codeDetailVisible=!1},closeManuDialog:function(t){this.addDialogVisible=!1,t?(this.$message.success("选入成功"),this.refresgOrderDetail(),this.getList()):this.$message.error("选入失败")},cancelDialog:function(){this.addDialogVisible=!1},importOrder:function(t){this.orderId=t.id,this.addDialogVisible=!0},getBusType:function(){var t=this,e={enabled:!0};Vr(e).then((function(e){t.busTypes=e.data.list||[],t.filterQuery.billAction=t.busTypes[0].action})).catch((function(){}))},getActionName:function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:"post",l="add"===e?"/udiwms/basic/unit/maintain/save":"/udiwms/basic/unit/maintain/update";return Object(i["a"])({url:l,method:a,data:t})}function r(t){return Object(i["a"])({url:"/udiwms/basic/unit/maintain/combine",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/udiwms/basic/unit/maintain/combineAll",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/udiwms/basic/unit/maintain/combineSingle",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/udiwms/basic/unit/maintain/delete",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/udiwms/unitMaintain/filterErp",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/udiwms/unitMaintain/thirdSys/detail",method:"get",params:t})}function m(t){return Object(i["a"])({url:"/udiwms/unit/thirdSys/removeRl",method:"get",params:t})}},bdea:function(t,e,a){"use strict";a("9776")},bf83:function(t,e,a){"use strict";a("a63e")},bf99:function(t,e,a){"use strict";a("e3c0")},bfc6:function(t,e,a){"use strict";a("0930")},c004:function(t,e,a){},c060:function(t,e,a){},c5bf:function(t,e,a){"use strict";a("2eef")},c7c8:function(t,e,a){"use strict";a("b8bb")},c849:function(t,e,a){"use strict";a("14b3")},c8c0:function(t,e,a){},cbba:function(t,e,a){},cc45:function(t,e,a){"use strict";a("178e")},ccaf:function(t,e,a){"use strict";a("3340")},cd79:function(t,e,a){"use strict";a("69a2")},ce15:function(t,e,a){"use strict";a("c8c0")},d4ff:function(t,e,a){},d5d3:function(t,e,a){"use strict";a("c004")},d872:function(t,e,a){"use strict";a("ddb6")},d9df:function(t,e,a){"use strict";a("b768")},d9f5:function(t,e,a){},da6f:function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return r}));var i=a("a78e"),l=a.n(i),s=function(t,e,a){t&&("string"!==typeof e&&(e=JSON.stringify(e)),l.a.set(t,e,{expires:a}))},o=function(t){if(t){var e=l.a.get(t);try{return e=JSON.parse(e),e}catch(a){return e}}},r=function(t){t&&l.a.remove(t)}},ddb6:function(t,e,a){},de21:function(t,e,a){"use strict";a("0f13")},e130:function(t,e,a){},e365:function(t,e,a){"use strict";a("2aae")},e3c0:function(t,e,a){},e50b:function(t,e,a){"use strict";a("e711")},e695:function(t,e,a){},e711:function(t,e,a){},e92b:function(t,e,a){"use strict";a("8fb5")},ea54:function(t,e,a){},eafe:function(t,e,a){},eb9f:function(t,e,a){"use strict";a("ae0a")},ecd9:function(t,e,a){},ed34:function(t,e,a){"use strict";a("265e")},ef3e:function(t,e,a){},ef51:function(t,e,a){},ef8f:function(t,e,a){},f614:function(t,e,a){"use strict";a("8b7e")},f63d:function(t,e,a){},f861:function(t,e,a){},f9f3:function(t,e,a){"use strict";a("c060")},fbba:function(t,e,a){},ff0e:function(t,e,a){"use strict";a("f861")}}); //# sourceMappingURL=app.83283916.js.map