UNPKG

@bee-hole/server

Version:

www.bee-hole.com

1 lines 4.13 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["lang-package~4e34e71e"],{"0058":function(e,t,a){"use strict";a.r(t);var n=a("5530"),i=a("b775"),r={apiKeySet:"/bing/apikey/set",apiKeyGet:"/bing/apikey/get",seoList:"/bing/seo/list",seoAdd:"/bing/seo/add"};function o(e){return Object(i["b"])({url:r.apiKeySet,method:"post",data:e})}function s(e){return Object(i["b"])({url:r.apiKeyGet,method:"post",data:e})}function l(e){return Object(i["b"])({url:r.seoList,method:"post",data:e})}function c(e){return Object(i["b"])({url:r.seoAdd,method:"post",data:e})}var u=a("2f62"),d=a("1b6c"),m=a("4481");t["default"]={name:"bing",computed:Object(n["a"])({},Object(u["c"])(["shopId","windowWidth"])),components:{yumingRadio:m["a"]},data:function(){return{data:[],columns:[],formData:{api_key:""},yuming:"",ModalText:"",visible:!1,confirmLoading:!1}},created:function(){this.columns=[{title:"ID",dataIndex:"id",key:"id",width:this.windowWidth<1440?"80px":"10%"},{title:Object(d["b"])("view.seo.bing.table.domain.title"),dataIndex:"domain",key:"domain",width:this.windowWidth<1440?"160px":"20%",ellipsis:!0},{title:Object(d["b"])("view.seo.bing.table.url_index.title"),dataIndex:"url_index",key:"url_index",width:this.windowWidth<1440?"160px":"20%",ellipsis:!0},{title:Object(d["b"])("view.seo.bing.table.good_id.title"),dataIndex:"good_id",key:"good_id",width:this.windowWidth<1440?"60px":"5%"},{title:Object(d["b"])("view.seo.bing.table.slug.title"),dataIndex:"slug",key:"slug",width:this.windowWidth<1440?"120px":"5%"},{title:Object(d["b"])("view.seo.bing.table.article_id.title"),dataIndex:"article_id",key:"article_id",width:this.windowWidth<1440?"60px":"5%"},{title:Object(d["b"])("view.seo.bing.table.language.title"),dataIndex:"language",key:"language",width:this.windowWidth<1440?"40px":"5%"},{title:Object(d["b"])("view.seo.bing.table.resp_data.title"),dataIndex:"resp_data",key:"resp_data",width:this.windowWidth<1440?"120px":"15%"},{title:Object(d["b"])("view.seo.bing.table.create_time.title"),dataIndex:"create_time",key:"create_time",width:this.windowWidth<1440?"80px":"10%"},{title:Object(d["b"])("view.seo.bing.table.operation.title"),dataIndex:"operation",scopedSlots:{customRender:"operation"},width:this.windowWidth<1440?"40px":"5%"}],this.seoList()},methods:{seoList:function(){var e=this,t={};t.domain=e.yuming,l(t).then((function(t){var a;0===(null===t||void 0===t?void 0:t.code)&&null!==t&&void 0!==t&&null!==(a=t.list)&&void 0!==a&&a.length&&(e.data=t.list)}))},apiKeyGet:function(){var e=this;s().then((function(t){0===t.code&&t.api_key&&(e.formData.api_key=t.api_key)}))},handleAdd:function(){this.apiKeyGet(),this.visible=!0},handleOk:function(){var e=this;this.visible=!1,this.confirmLoading=!1;var t=this;if(""===t.formData.api_key)return this.$message.error(Object(d["b"])("view.seo.baidu.config.api_key.set.err.message")),!1;var a={};a.api_key=t.formData.api_key,o(a).then((function(a){0===a.code?(e.$message.info(a.message),t.formData={api_key:""}):e.$message.error(a.message)}))},handleCancel:function(e){this.visible=!1,this.formData={api_key:""}},onDelete:function(e){},onReset:function(e){var t=this,a={};a.id=e.id,c(a).then((function(e){0===e.code?t.$message.info(e.message):t.$message.error(e.message)}))},cbYuming:function(e){this.data=[],this.yuming=e,this.seoList()}}}},"0078":function(e,t,a){"use strict";a("b0c0");var n=function(){var e=this,t=e._self._c;return t("div",[t("a-input",{attrs:{"select-model":"single",readOnly:""},on:{click:e.showSelectUser},model:{value:e.showValue,callback:function(t){e.showValue=t},expression:"showValue"}},[t("a-icon",{attrs:{slot:"suffix",type:"user-add"},slot:"suffix"})],1),t("ant-modal",{attrs:{visible:e.open,"modal-title":e.title,"adjust-size":!1,modalHeight:"480",modalWidth:"800",dialogClass:"personSelect"},on:{cancel:e.cancel}},[t("a-row",{attrs:{slot:"content"},slot:"content"},[t("a-spin",{attrs:{spinning:e.spinning,delay:e.delayTime,tip:"Loading..."}},[t("a-col",{staticClass:"treeBox treeborder",attrs:{span:12}},[t("a-input-search",{attrs:{placeholder:"请输入用户信息"},on:{search:e.filterNode}}),t("div",{staticClass:"personSelectTree"},["multi"==e.selectModel?t("a-tree",{attrs:{checkable:"",replaceFields:e.replaceFields,"default-expanded-keys":e.expandedKeys,"expanded-keys":e.expandedKeys,"auto-expand-parent":e.autoExpandParent,"selected-keys":e.selectedKeys,"tree-data":e.deptOptions,"load-data":e.onLoadData,showIcon:""},on:{expand:e.onExpand,check:e.checkNode},scopedSlots:e._u([{key:"title",fn:function(a){var n=a.userTitle,i=a.attributes;return[n.indexOf(e.searchValue)>-1?t("span",[e._v(" "+e._s(n.substr(0,n.indexOf(e.searchValue)))+" "),t("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v(" "+e._s(n.substr(n.indexOf(e.searchValue)+e.searchValue.length))+" ")]):i.deptPinyin.indexOf(e.searchValue)>-1?t("span",[t("span",{staticStyle:{color:"#f50"}},[e._v(e._s(n))])]):t("span",[e._v(e._s(n))])]}}],null,!1,2302434250),model:{value:e.checkedKeys,callback:function(t){e.checkedKeys=t},expression:"checkedKeys"}},[t("a-icon",{staticClass:"depIcon",attrs:{slot:"org",type:"",component:e.allIcon.companyFillIcon},slot:"org"}),t("a-icon",{staticClass:"depIcon",attrs:{slot:"company",type:"",component:e.allIcon.companyIcon},slot:"company"}),t("a-icon",{staticClass:"depIcon",attrs:{slot:"dept",type:"",component:e.allIcon.connectionsIcon},slot:"dept"}),t("a-icon",{staticClass:"depIcon",attrs:{slot:"user",type:"user"},slot:"user"})],1):e._e(),"single"==e.selectModel?t("a-tree",{attrs:{replaceFields:e.replaceFields,"default-expanded-keys":e.expandedKeys,"expanded-keys":e.expandedKeys,"auto-expand-parent":e.autoExpandParent,"selected-keys":e.selectedKeys,"tree-data":e.deptOptions,"load-data":e.onLoadData,showIcon:""},on:{expand:e.onExpand,select:e.selectNode},scopedSlots:e._u([{key:"title",fn:function(a){var n=a.userTitle,i=a.attributes;return[n.indexOf(e.searchValue)>-1?t("span",[e._v(" "+e._s(n.substr(0,n.indexOf(e.searchValue)))+" "),t("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v(" "+e._s(n.substr(n.indexOf(e.searchValue)+e.searchValue.length))+" ")]):i.deptPinyin.indexOf(e.searchValue)>-1?t("span",[t("span",{staticStyle:{color:"#f50"}},[e._v(e._s(n))])]):t("span",[e._v(e._s(n))])]}}],null,!1,2302434250)},[t("a-icon",{staticClass:"depIcon",attrs:{slot:"org",type:"",component:e.allIcon.companyFillIcon},slot:"org"}),t("a-icon",{staticClass:"depIcon",attrs:{slot:"company",type:"",component:e.allIcon.companyIcon},slot:"company"}),t("a-icon",{staticClass:"depIcon",attrs:{slot:"dept",type:"",component:e.allIcon.connectionsIcon},slot:"dept"}),t("a-icon",{staticClass:"depIcon",attrs:{slot:"user",type:"user"},slot:"user"})],1):e._e()],1)],1),t("a-col",{attrs:{span:12}},[t("div",{staticClass:"contentBox"},[t("div",{style:{padding:"10px 20px"}},[t("a-checkbox",{attrs:{indeterminate:e.indeterminate,checked:e.checkAll},on:{change:e.onCheckAllChange}},[e._v(" 已选("+e._s(e.selectCount)+")")]),t("a-icon",{style:{float:"right"},attrs:{type:"delete"},on:{click:e.deleteSelectUser}})],1),t("a-checkbox-group",{on:{change:e.onChange},model:{value:e.userCheckedList,callback:function(t){e.userCheckedList=t},expression:"userCheckedList"}},[t("a-list",{ref:"editTable",attrs:{"item-layout":"horizontal","data-source":e.userdata},scopedSlots:e._u([{key:"renderItem",fn:function(a){return t("a-list-item",{},[t("a-checkbox",{attrs:{value:a.id},on:{change:e.checkBoxOnChange}}),t("a-list-item-meta",[t("template",{slot:"title"},[t("span",{staticClass:"title-name"},[e._v(e._s(a.name))]),t("span",{staticClass:"title-dept"},[e._v("("+e._s(a.subtitle)+")")])]),t("a-avatar",{attrs:{slot:"avatar",icon:a.icon},slot:"avatar"})],2),t("template",{slot:"actions"},["multi"===e.selectModel?t("a-icon",{staticClass:"dragIconClass",attrs:{type:"drag"}}):e._e(),t("a-icon",{attrs:{type:"close-circle"},on:{click:function(t){return e.deletSelectUserByParentIds(a.id,a.parentIds)}}})],1)],2)}}])})],1)],1)])],1)],1),t("template",{slot:"footer"},[t("a-button",{on:{click:e.cancel}},[e._v("取消")]),t("a-button",{attrs:{type:"primary"},on:{click:e.saveSelectUser}},[e._v("保存")])],1)],2)],1)},i=[],r=(a("a9e3"),a("d3b7"),a("159b"),a("4de4"),a("a434"),a("498a"),a("3ca3"),a("ddb0"),a("4ec9"),a("04b3")),o=a("fcb7"),s=a("c0c7"),l=a("2dd7"),c=a("aa47"),u={props:{title:{type:String,default:"人员选择"},defaultValue:{required:!1,default:null},value:{required:!1},selectModel:{type:String,required:!1,default:"single"},maxSelect:{type:Number,required:!1,default:0}},data:function(){return{showValue:"",oldValue:"",indeterminate:!1,checkAll:!1,userCheckedList:[],spinning:!1,delayTime:200,allIcon:r["a"],sortable:void 0,replaceFields:{children:"children",key:"id",value:"id"},open:!1,expandedKeys:[],autoExpandParent:!0,checkedKeys:[],selectedKeys:[],deptOptions:[],deptNodes:[],oldDeptOptions:[],oldExpandedKeys:[],expandSonData:[],select:{ids:"",names:""},searchValue:"",userdata:[],checkedUser:[],selectCount:0}},components:{AntModal:l["default"],allIcon:r["a"]},created:function(){this.getTreeselect()},mounted:function(){},watch:{checkedKeys:function(e){},checkedUser:{immediate:!0,handler:function(e){this.userCheckedList=e}},userdata:{immediate:!0,handler:function(e){this.selectCount=e.length,"multi"===this.selectModel&&e.length>0&&void 0===this.sortable&&this.rowDrop()}},select:{immediate:!0,handler:function(e){this.oldValue=this.select&&this.select.names?this.select.names:"",this.showValue=this.oldValue}},value:{immediate:!0,handler:function(e){this.select=e||{ids:"",names:""}}}},methods:{getSelectUserInfo:function(){var e=this;if(void 0!==this.select.ids&&"undefined"!==this.select.ids&&""!==this.select.ids){var t={userIds:this.select.ids};Object(s["i"])(t).then((function(t){e.userdata=t,e.selectedKeys=[],e.checkedKeys=[],e.userdata.forEach((function(t){e.selectedKeys.push(t.id),e.checkedKeys.push(t.id)}))}))}},checkBoxOnChange:function(e){e.target.checked?this.checkedUser.push(e.target.value):this.checkedUser=this.checkedUser.filter((function(t){return t!==e.target.value}))},onChange:function(e){this.indeterminate=!!this.checkedUser.length&&this.checkedUser.length<this.userdata.length,this.checkAll=this.checkedUser.length===this.userdata.length},onCheckAllChange:function(e){Object.assign(this,{userCheckedList:e.target.checked?this.selectedKeys:[],checkedUser:e.target.checked?this.selectedKeys:[],indeterminate:!1,checkAll:e.target.checked})},deleteSelectUser:function(){var e=this;this.checkAll?(this.userdata.forEach((function(t){e.checkedKeys=e.checkedKeys.filter((function(e){return t.parentIds.indexOf(e)<0}))})),this.userdata=[],this.userCheckedList=[],this.checkAll=!1):this.userCheckedList.forEach((function(t){e.userdata.some((function(a,n){a.id===t&&(e.userdata.splice(n,1),e.checkedKeys=e.checkedKeys.filter((function(e){return a.parentIds.indexOf(e)<0})))}))}))},deletSelectUserByParentIds:function(e,t){var a=this;this.checkedKeys=this.checkedKeys.filter((function(e){return t.indexOf(e)<0})),this.userdata.some((function(t,n){t.id===e&&(a.userdata.splice(n,1),a.checkedKeys=a.checkedKeys.filter((function(e){return t.parentIds.indexOf(e)<0})))}))},resetSelectUserInfo:function(){this.checkedKeys=[],this.userdata=[]},getTreeselect:function(){var e=this;Object(o["n"])("0",3).then((function(t){e.deptOptions=t,e.getExpandedKeys(e.deptOptions,3),Object.assign(e,{expandedKeys:e.expandedKeys,searchValue:"",autoExpandParent:!0})}))},getExpandedKeys:function(e,t){var a=this;t>1&&e.forEach((function(e){return a.expandedKeys.push(e.id),t-=1,a.getExpandedKeys(e.children,t)}))},getExpandedAllKeys:function(e){var t=this;if(!e||0===e.length)return[];e.forEach((function(e){return t.deptNodes.push(e.id),t.getExpandedAllKeys(e.children)}))},onLoadData:function(e){var t=this;return new Promise((function(a){e.dataRef.children?a():(t.spinning=!t.spinning,Object(o["n"])(e.dataRef.id,1).then((function(n){e.dataRef.children=n,t.expandSonData=n,e.checked?t.setSelectUserInfoByNodes(n):t.checkedKeys=t.selectedKeys,t.spinning=!t.spinning,a()})))}))},showSelectUser:function(){this.getSelectUserInfo(),this.open=!0,this.resetSelectUserInfo()},filterNode:function(e,t){var a=this;if(0===this.oldDeptOptions.length&&(this.oldDeptOptions=this.deptOptions,this.oldExpandedKeys=this.expandedKeys),""===e.trim())this.deptOptions=this.oldDeptOptions,Object.assign(this,{expandedKeys:this.oldExpandedKeys,searchValue:e,autoExpandParent:!0});else{var n={searchText:e};Object(o["l"])(n).then((function(t){a.deptOptions=t,a.getExpandedAllKeys(t),Object.assign(a,{expandedKeys:a.deptNodes,searchValue:e,autoExpandParent:!0}),a.deptNodes=[]}))}},callback:function(e){},cancel:function(e){this.$emit("close"),this.open=!1},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){this.checkedKeys=e},selectNode:function(e,t){var a=t.node.dataRef,n=a.attributes.deptType;if("user"===n){this.selectedKeys=[],this.userdata=[];var i=a.id,r=a.title,o=a.parentIds,s=a.attributes.subtitle,l={id:i,name:r,subtitle:s,parentIds:o,icon:"user"};this.selectedKeys.push(i),this.userdata.push(l)}else this.$message.warning("请选择用户添加")},checkNode:function(e,t){var a=this;if(t.checked&&!t.node.isLeaf){var n=t.node.dataRef.children;null===n?Promise.all([this.onLoadData(t.node)]).then((function(e){var n=t.node.$options.propsData.dataRef.id;a.expandedKeys.push(n),a.expandSonData.length>0&&(a.setSelectUserInfoByNodes(a.expandSonData),a.expandSonData=[])})):this.setSelectUserInfo(t.checkedNodes)}else t.checked&&t.node.isLeaf?this.setSelectUserInfo(t.checkedNodes):this.removeSelectUserByUserTree(t.node,"node")},unique:function(e){var t=new Map;return e.filter((function(e){return!t.has(e.id)&&t.set(e.id,1)}))},removeSelectUserByUserTree:function(e,t){var a=this,n="",i=null;"node"===t?(n=e.dataRef.id,i=e.dataRef.children):(n=e.id,i=e.children),this.selectedKeys=this.selectedKeys.filter((function(e){return e!==n})),this.userdata=this.userdata.filter((function(e){return e.id!==n})),null!==i&&i.forEach((function(e){a.removeSelectUserByUserTree(e,"children")}))},setSelectUserInfo:function(e){var t=this;e.forEach((function(e){var a=e.componentOptions.propsData.dataRef.title,n=e.componentOptions.propsData.dataRef.id,i=e.componentOptions.propsData.dataRef.parentIds,r=e.componentOptions.propsData.dataRef.attributes.deptType,o=e.componentOptions.propsData.dataRef.attributes.subtitle;t.setSelectEdUserInfo(n,a,o,r,i)}))},setSelectUserInfoByNodes:function(e){var t=this;e.forEach((function(e){var a=e.title,n=e.id,i=e.parentIds,r=e.attributes.deptType,o=e.attributes.subtitle;t.setSelectEdUserInfo(n,a,o,r,i)}))},setSelectEdUserInfo:function(e,t,a,n,i){if(this.selectedKeys.push(e),this.checkedKeys.push(e),"user"===n){var r={id:e,name:t,subtitle:a,parentIds:i,icon:"user"};this.userdata.push(r),this.userdata=this.unique(this.userdata)}},saveSelectUser:function(){var e=this,t="",a="";if(this.userdata.length>this.maxSelect&&0!==this.maxSelect)this.$message.warning("已设置最多选择".concat(this.maxSelect,"人!"));else{this.userdata.forEach((function(e,n){n>0&&(t+=";",a+=";"),t+=e.id,a+=e.name})),this.showValue=a;var n={ids:t,names:a};this.$emit("change",n),this.$nextTick((function(){e.select=n,e.$emit("input",n),e.$emit("callBack",n)})),this.open=!1}},rowDrop:function(){var e=this,t=this;this.$nextTick((function(){var a=e.$refs.editTable,n=a.$el.querySelector(".ant-list-items");e.sortable=c["a"].create(n,{handle:".ant-list-item",animation:300,delay:100,chosenClass:"select-list-color",dragClass:"drag-list-color",onEnd:function(e){var a=e.newIndex,n=e.oldIndex,i=t.userdata.splice(n,1)[0];t.userdata.splice(a,0,i)},onUpdate:function(e){var t=e.newIndex,a=e.oldIndex,i=n,r=i.children[t],o=i.children[a];i.removeChild(r),t>a?i.insertBefore(r,o):i.insertBefore(r,o.nextSibling)}})}))}}},d=u,m=(a("0e388"),a("2877")),p=Object(m["a"])(d,n,i,!1,null,null,null);t["a"]=p.exports},"0106":function(e,t,a){"use strict";a.r(t);a("4e82");var n=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalWidth:"800",modalHeight:"550"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.form,rules:e.rules,layout:"vertical"},slot:"content"},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"模板名称",prop:"templateName"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 生成模块名 "),t("a-tooltip",[t("template",{slot:"title"},[e._v(" 可理解为子系统名,例如 system ")]),t("a-icon",{attrs:{type:"question-circle-o"}})],2)],1),t("a-input",{attrs:{placeholder:"请输入模板名称"},model:{value:e.form.templateName,callback:function(t){e.$set(e.form,"templateName",t)},expression:"form.templateName"}})],1)],1)],1),t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"作者",prop:"functionAuthor"}},[t("a-input",{attrs:{placeholder:"请输入作者"},model:{value:e.form.functionAuthor,callback:function(t){e.$set(e.form,"functionAuthor",t)},expression:"form.functionAuthor"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"邮箱",prop:"functionAuthorEmail"}},[t("a-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.form.functionAuthorEmail,callback:function(t){e.$set(e.form,"functionAuthorEmail",t)},expression:"form.functionAuthorEmail"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"后端工作空间",prop:"workspacePath"}},[t("a-input",{attrs:{placeholder:"示例:C:\\cloud\\AiDex-Sharp\\ruoyi-system"},model:{value:e.form.workspacePath,callback:function(t){e.$set(e.form,"workspacePath",t)},expression:"form.workspacePath"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"前端工作空间",prop:"webWorkspacePath"}},[t("a-input",{attrs:{placeholder:"示例:C:\\cloud\\AidexSharp"},model:{value:e.form.webWorkspacePath,callback:function(t){e.$set(e.form,"webWorkspacePath",t)},expression:"form.webWorkspacePath"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"模块名",prop:"moduleName"}},[t("a-input",{attrs:{placeholder:"示例:system"},model:{value:e.form.moduleName,callback:function(t){e.$set(e.form,"moduleName",t)},expression:"form.moduleName"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"包路径",prop:"packageName"}},[t("a-input",{attrs:{placeholder:"示例:com.aidex.system"},model:{value:e.form.packageName,callback:function(t){e.$set(e.form,"packageName",t)},expression:"form.packageName"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"排序",prop:"sort"}},[t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入排序",min:0},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-model-item",{attrs:{label:"是否默认",prop:"templateDefault"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.templateDefault,callback:function(t){e.$set(e.form,"templateDefault",t)},expression:"form.templateDefault"}},e._l(e.templateDefaultOptions,(function(a,n){return t("a-radio-button",{key:n,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),t("a-col",{attrs:{span:24}},[t("a-form-model-item",{attrs:{label:"备注",prop:"remark"}},[t("a-input",{attrs:{placeholder:"请输入",type:"textarea",rows:4,"allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{on:{click:e.cancel}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")])],1)],2)},i=[],r=a("5530"),o=a("1217"),s=Object(r["a"])({},o["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,n,i,!1,null,null,null);t["default"]=u.exports},"0134":function(e,t,a){"use strict";a("fbf3")},"014f":function(e,t,a){"use strict";a.r(t);a("b0c0");var n=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"520px",title:e.formTitle,"label-col":4,"wrapper-col":14,visible:e.open,"body-style":{height:"calc(100vh - 100px)",overflow:"auto"}},on:{close:e.cancel}},[t("a-form-model",{ref:"form",attrs:{model:e.form,rules:e.rules}},[t("a-spin",{attrs:{spinning:e.spinning,delay:e.delayTime,tip:"Loading..."}},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"姓名",prop:"realname"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"用户编号",prop:"id"}},[t("a-input",{attrs:{placeholder:"请输入",disabled:"disabled"},model:{value:e.form.id,callback:function(t){e.$set(e.form,"id",t)},expression:"form.id"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"角色",prop:"role"}},[t("a-select",{attrs:{placeholder:"请选择","option-filter-prop":"children"},model:{value:e.form.role,callback:function(t){e.$set(e.form,"role",t)},expression:"form.role"}},e._l(e.roleOptions,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" ")])})),1)],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"商户等级",prop:"grade_id"}},[t("shop-grade-select",{model:{value:e.form.grade_id,callback:function(t){e.$set(e.form,"grade_id",t)},expression:"form.grade_id"}})],1)],1)],1),t("a-collapse",{attrs:{bordered:!1,expandIconPosition:"left"},scopedSlots:e._u([{key:"expandIcon",fn:function(e){return[t("a-icon",{attrs:{type:"caret-right",rotate:e.isActive?90:0}})]}}])},[t("a-collapse-panel",{key:"1",style:e.customStyle,attrs:{header:"填写更多信息(可选)"}},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"手机号",prop:"mobile"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"邮箱地址",prop:"email"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"状态",prop:"status"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(a,n){return t("a-radio-button",{key:n,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"性别",prop:"sex"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.sexOptions,(function(a,n){return t("a-radio-button",{key:n,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{lg:24,md:24,sm:24,span:24}},[t("a-form-model-item",{attrs:{label:"备注",prop:"remark"}},[t("a-input",{attrs:{placeholder:"请输入",type:"textarea","allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1)],1)],1),t("div",{staticClass:"bottom-control"},[t("a-space",[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")]),t("a-button",{attrs:{type:"dashed"},on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)],1)],1)},i=[],r=a("5530"),o=a("1a2e"),s=Object(r["a"])({},o["default"]),l=s,c=(a("6902"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,null,null);t["default"]=u.exports},"0196":function(e,t,a){const n=a("58b4"),i=a("bbf0");function r(e){this.mode=i.BYTE,"string"===typeof e&&(e=n(e)),this.data=new Uint8Array(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,a=this.data.length;t<a;t++)e.put(this.data[t],8)},e.exports=r},"027f":function(e,t,a){},"02aa7":function(e,t,a){},"02b3":function(e,t,a){"use strict";a.r(t);a("d3b7"),a("3ca3"),a("ddb0");var n=a("2dd7"),i=a("ff41"),r=a.n(i),o=a("1b6c"),s=a("5d9e"),l=a("5a44"),c=a("a026"),u=Object(c["b"])((function(){return Promise.resolve().then(a.bind(null,"34c3"))}));t["default"]={name:"ClearingListForm",props:{},components:{AntModal:n["default"],Vditor:r.a,AdvanceTable:s["default"],defaultCurrency:u},data:function(){return{open:!1,formId:"",labelCol:{span:4},wrapperCol:{span:14},loading:!1,total:0,id:void 0,formTitle:"",contentEditorEdit:"",form:{id:void 0,title:void 0,type:void 0,content:"",status:"0",sort:1},rules:{},queryParam1:{page:1,limit:10},list1:[],total_count1:0,columns1:[],expandedRowKeys:[]}},filters:{},created:function(){this.initColunmns()},computed:{},watch:{},mounted:function(){},methods:{initColunmns:function(){this.columns1=[{title:Object(o["a"])("view.order.list.order_id"),dataIndex:"order_id"},{title:Object(o["a"])("view.order.list.payhuobiprice"),dataIndex:"payment",scopedSlots:{customRender:"payment"}},{title:Object(o["a"])("view.distributor.list.commission"),dataIndex:"proportion"},{title:Object(o["a"])("view.distirbutor.list.order.money"),dataIndex:"money",scopedSlots:{customRender:"money"}},{title:Object(o["a"])("view.distributor.list.create_time"),dataIndex:"create_time"}]},cancel:function(){this.open=!1,this.$emit("close")},handleClearing:function(e){var t=this,a=e.clearing_id;Object(l["c"])({clearing_id:a}).then((function(e){t.open=!0,t.formTitle=t.$t("view.distributor.clearing.list.detail"),t.list1=e.list,t.total_count1=e.total_count}))}}}},"02c2":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:function(t){return e.nextData()}}},[e._v(e._s(e.$t("components.EcelData.export.excel.button")))]),t("a-modal",{attrs:{visible:e.visible,closable:!1,footer:null}},[t("template",{slot:"title"},[e._v(e._s(e.$t("components.EcelData.export.excel.loading.title")))]),t("div",{staticStyle:{"margin-bottom":"5px"}},[e._v(e._s(e.$t("components.EcelData.export.excel.loading.content",{page:e.currentPage,total:e.totalPages})))]),t("a-progress",{attrs:{percent:e.percent}})],2)],1)},i=[],r=a("5530"),o=a("3835"),s=a("b85c"),l=a("2909"),c=a("53ca"),u=a("c7eb"),d=a("1da1"),m=(a("a9e3"),a("d3b7"),a("d81d"),a("159b"),a("b64b"),a("a15b"),a("99af"),a("3ca3"),a("ddb0"),a("caad"),a("4fadc"),a("7db0"),a("6062b"),a("c740"),a("2532"),a("07acb"),a("21a6")),p=a("2f62"),f=a("1b6c"),h=a("3a10"),g=a("25ca"),v={name:"ExcelData",data:function(){return{List:[],headers:null,percent:0,visible:!1,totalPages:0,currentPage:1,payType:{0:Object(f["b"])("procure.pay.title"),2:Object(f["b"])("view.order.detail.payment_method_2"),1:Object(f["b"])("view.order.detail.payment_method_1"),3:Object(f["b"])("view.order.detail.payment_method_3"),4:Object(f["b"])("view.order.detail.payment_method_4"),5:Object(f["b"])("view.order.detail.payment_method_5")},processedOrderPrices:null}},computed:Object(r["a"])({},Object(p["c"])(["shippingCorpList"])),props:{tableData:null,page:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},loadData:{type:Function,default:Promise.resolve([])},fileName:{type:String,default:"tableData"}},created:function(){this.headers={warehouse_id:this.$t("view.order.list.warehouse_id"),quantity:this.$t("view.order.detail.itemNum"),good_id:this.$t("view.item.list.good_id"),title:this.$t("view.config.style.rotation.form.title.label"),create_time:this.$t("view.member.bulksend.create_time"),status:this.$t("view.gangwei.dept.status"),shop_id:this.$t("view.gangwei.list.shopid"),out_id:this.$t("view.item.sku.out_id"),stock_num:this.$t("view.item.sku.stock_num"),warehouse:this.$t("table.mall_warehouse"),stock_quantity:this.$t("view.item.sku.stock_num"),id:this.$t("view.config.psArea.table.columns.id"),subShopInfo:this.$t("compoents.rechargeMainShopRecord.shop"),transAmount:this.$t("compoents.rechargeMainShopRecord.amount"),payWayId:this.$t("pay.paymenthod"),createTime:"",orderId:this.$t("view.order.list.orderno"),order_id:this.$t("view.order.list.orderno"),after_change:this.$t("view.warehouse.logs.after_change"),before_change:this.$t("view.warehouse.logs.before_change"),change_quantity:this.$t("view.order.detail.itemNum"),scene:this.$t("view.warehouse.logs.scene"),main_shop_id:this.$t("view.supply.list.order.main_shop_id"),after_sale_id:this.$t("view.order.list.after_sale_id"),refund_amt:this.$t("view.order.list.refund_amt"),reason:this.$t("view.order.after.reason"),currency:this.$t("view.shopview.form.currency.label"),rechargeId:this.$t("components.rechargeMainShopLog.rechargeId"),mainShopId:this.$t("view.supply.list.order.main_shop_id"),subShopId:this.$t("view.supply.list.order.sub_shop_id"),transCurrency:this.$t("payapl.setting.currencies"),exchangeRate:this.$t("components.rechargeMainShopLog.exchangeRate"),paidTime:this.$t("view.order.detail.paid_time"),refundedTime:this.$t("components.rechargeMainShopLog.refundedTime"),realAmount:this.$t("components.rechargeMainShopLog.realAmount"),country:this.$t("view.order.detail.ship_country"),sub_shop_id:this.$t("view.supply.list.order.sub_shop_id"),city:this.$t("view.warehouse.list.city"),state:this.$t("procure.address.state"),street:this.$t("procure.address.street"),apartment:this.$t("procure.address.apartment"),zip_code:this.$t("procure.address.zip_code"),recipient_realname:this.$t("view.supply.recipient.realname"),phone:this.$t("view.supply.recipient.phone"),post_fee:this.$t("view.order.detail.post_fee"),discount:this.$t("view.order.detail.discount"),payment:this.$t("view.order.detail.payment"),main_shop_order_id:this.$t("view.procure.list.order.main_shop_order_id"),item_price:this.$t("view.item.list.price"),item_num:this.$t("view.config.wander.Quantity"),item_title:this.$t("view.item.list.itemTitle"),sub_shop_name:this.$t("view.procure.list.order.sub_shop_name"),purchase_id:this.$t("view.purchaseOrder.list.purchaseId"),first_name:this.$t("view.order.detail.ship_first_name"),last_name:this.$t("view.order.detail.ship_last_name"),sku_prop:this.$t("table.mall_skus"),closed_time:this.$t("view.procure.list.order.closed_time"),out_order_id:this.$t("view.procure.list.order.out_order_id")},this.fileName===this.$t("compoents.rechargeMainShopRecord.title")?(this.headers.createTime=this.$t("compoents.rechargeMainShopRecord.time"),this.headers.transAmount=this.$t("components.rechargeMainShopLog.transAmount"),this.headers.realCurrency=this.$t("components.rechargeMainShopLog.realCurrency"),this.headers.transCurrency=this.$t("components.rechargemainshoplog.transCurrency"),this.headers.prepayId=this.$t("components.rechargeMainShopLog.prepayId"),this.headers.transactionId=this.$t("components.rechargeMainShopLog.transactionId"),this.headers.recharge_id=this.$t("components.rechargeMainShopLog.rechargeId"),this.headers.prepay_id=this.$t("components.rechargeMainShopLog.prepayId"),this.headers.trans_currency=this.$t("components.rechargemainshoplog.transCurrency"),this.headers.exchange_rate=this.$t("components.rechargeMainShopLog.exchangeRate"),this.headers.real_currency=this.$t("components.rechargeMainShopLog.realCurrency"),this.headers.real_amount=this.$t("components.rechargeMainShopLog.realAmount"),this.headers.transaction_id=this.$t("components.rechargeMainShopLog.transactionId"),this.headers.paid_time=this.$t("view.order.detail.paid_time"),this.headers.payment_document=this.$t("components.rechargeMainShopLog.payment_document"),this.headers.payment_remark=this.$t("components.rechargeMainShopLog.payment_remark"),this.headers.trans_amount=this.$t("components.rechargeMainShopLog.transAmount"),this.headers.pay_way_id=this.$t("pay.paymenthod"),this.headers.refunded_time=this.$t("components.rechargeMainShopLog.refundedTime")):this.fileName===this.$t("app.menus.left.supply.supplyOrder")?(this.headers.item_main_title=this.$t("view.order.detail.itemTitle"),this.headers.item_main_sku_prop=this.$t("components.rakuten.product.attributes"),this.headers.item_main_sku_price=this.$t("view.item.list.sale_price"),this.headers.id=this.$t("view.supply.list.order.id"),this.headers.user_id=this.$t("view.supply.list.order.user_id"),this.headers.shop_id=this.$t("view.supply.list.order.shop_id"),this.headers.item_deduction_ratio=this.$t("view.order.list.deduction_ratio"),this.headers.deduction_fee=this.$t("procure.pay.deduction_fee.title"),this.headers.deduction_status=this.$t("view.order.list.deduction_status"),this.headers.status=this.$t("view.supply.list.order.status"),this.headers.item_main_num=this.$t("view.item.list.good_count"),this.headers.item_main_barcode=this.$t("view.item.sku.barcode"),this.headers.item_main_out_id=this.$t("view.item.sku.out_id"),this.headers.recipient_realname=this.$t("view.supply.recipient.realname"),this.headers.recipient_phone=this.$t("view.supply.recipient.phone"),this.headers.recipient_country=this.$t("view.supply.recipient.country"),this.headers.recipient_state=this.$t("procure.address.state"),this.headers.recipient_city=this.$t("view.warehouse.list.city"),this.headers.recipient_street=this.$t("procure.address.street"),this.headers.recipient_apartment=this.$t("procure.address.apartment"),this.headers.recipient_zip_code=this.$t("procure.address.zip_code"),this.headers.recipient_member_note=this.$t("view.order.detail.memberNote"),this.headers.shipping_code=this.$t("view.order.detail.shipping_code"),this.headers.shipping_corp=this.$t("view.order.detail.shipping_corp"),this.headers.shipping_time=this.$t("view.order.detail.ship_time")):this.fileName===this.$t("app.menus.left.order.afterorder")||(this.fileName===this.$t("app.menus.left.procure.procureOrder")?(this.headers.payment_method=this.$t("view.order.detail.payment_method"),this.headers.shipping_code=this.$t("view.order.detail.shipping_code"),this.headers.shipping_corp=this.$t("view.order.detail.shipping_corp"),this.headers.out_platform=this.$t("view.procure.list.order.out_platform"),this.headers.is_self_take=this.$t("view.item.form.delivery"),this.headers.miandan_url=this.$t("view.procure.delivery.maindan_url"),this.headers.assoc_order_id=this.$t("procure.list.order.assoc_order_id")):this.fileName===this.$t("components.recharge.logs.title")?(this.headers.referenceId=this.$t("compoents.rechargeMainShopLog.referenceId"),this.headers.increment=this.$t("compoents.rechargeMainShopLog.increment"),this.headers.subShopId=this.$t("view.supply.list.order.sub_shop_id"),this.headers.createTime=this.$t("compoents.rechargeMainShopLog.time"),this.headers.nowFunds=this.$t("components.rechargeMainShopLog.nowFunds"),this.headers.oldFunds=this.$t("components.rechargeMainShopLog.oldFunds"),this.headers.mainShopId=this.$t("view.supply.list.order.main_shop_id"),this.headers.changeType=this.$t("compoents.rechargeMainShopLog.changeType"),this.headers.refs=this.$t("compoents.rechargeMainShopLog.ref")):this.headers.createTime=this.$t("view.article.list.article.table.create_time"))},methods:{getOrderData:function(e){var t=this;return Object(d["a"])(Object(u["a"])().mark((function a(){var n,i;return Object(u["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=[],e&&n.push({field:"order_id",operator:"eq",value:e}),t.OrderTime&&clearTimeout(t.OrderTime),i={},i.conditions=n,a.abrupt("return",Object(h["y"])(i).then((function(e){var a;return t.order=null===(a=e.list)||void 0===a?void 0:a[0],0===e.code&&e.list&&e.list.length>0?e.list[0]:null})));case 6:case"end":return a.stop()}}),a)})))()},getWuliuData:function(e){return Object(d["a"])(Object(u["a"])().mark((function t(){return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(h["J"])({order_id:e}).then((function(e){return 0===e.code&&e.list&&e.list.length>0?e.list:[]})));case 1:case"end":return t.stop()}}),t)})))()},pushList:function(e){var t=this;return Object(d["a"])(Object(u["a"])().mark((function a(){var n;return Object(u["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.fileName!==t.$t("app.menus.left.supply.supplyOrder")&&t.fileName!==t.$t("app.menus.left.procure.procureOrder")){a.next=5;break}return a.next=3,t.gongyingdanDataList(e);case 3:a.next=8;break;case 5:n=JSON.parse(JSON.stringify(e)),n.map((function(e){Object.keys(e).forEach((function(a){"changeType"===a?e[a]=t.$t(e[a]):"refs"===a?("string"===typeof e[a]&&(e[a]=JSON.parse(e[a])),e[a]?e[a][0].purchaseId?e[a]=e[a].map((function(e){return e.purchaseId})).join(","):e[a]=e[a].map((function(e){return e.purchase_id})).join(","):e[a]=""):"status"===a?e[a]=t.$t(e[a]):"payWayId"===a||"pay_way_id"===a?3===e[a]?e[a]=t.$t("paymenthod.alipay"):1===e[a]?e[a]=t.$t("paymenthod.wechat"):2===e[a]?e[a]=t.$t("paymenthod.paypal"):(127===e[a]||9999===e[a])&&(e[a]=t.$t("paymenthod.shougong")):"number"===typeof e[a]?e[a]=e[a]+"":"object"===Object(c["a"])(e[a])&&(e[a]=JSON.stringify(e[a]))}))})),t.List=[].concat(Object(l["a"])(t.List),Object(l["a"])(n));case 8:case"end":return a.stop()}}),a)})))()},gongyingdanDataList:function(e){var t=this;return Object(d["a"])(Object(u["a"])().mark((function a(){var n,i,d,m,p,f,h,g,v,b,_;return Object(u["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=JSON.parse(JSON.stringify(e)),i=[],d=Object(s["a"])(n),a.prev=3,p=Object(u["a"])().mark((function e(){var a,n,l,d,p,y,w,k,x,S;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=m.value,f=Object(r["a"])({},a),n=["supply_order_item","order_info","order_waybill_express_details","order_waybill_express","after_sale_item","items"],Object.keys(a).forEach((function(e){Array.isArray(a[e])||"object"===Object(c["a"])(a[e])?"object"!==Object(c["a"])(a[e])||n.includes(e)||("main_shop_order"===e?(f["main_shop_order_id"]=a[e].order_id,f["payment_method"]=t.payType[a[e].pay_way_id],delete f[e]):"closed_time"===e?delete f[e]:f[e]=JSON.stringify(a[e])):"deduction_status"===e?1===a[e]?f[e]=t.$t("ORDER_WAIT_PAYMENT"):2===a[e]?f[e]=t.$t("ORDER_PAID"):f[e]=a[e]:"is_self_take"===e?1===a[e]?f[e]=t.$t("view.procure.delivery.self_pickup"):f[e]=t.$t("view.procure.delivery.drop_shipping"):"status"===e||"country"===e?f[e]=t.$t(a[e]):"isPutong"===e||"closed_time"===e?delete f[e]:"number"===typeof a[e]?f[e]=a[e]+"":f[e]=a[e]})),!f.main_shop_order_id){e.next=7;break}e.next=17;break;case 7:if(!f.out_order_id){e.next=17;break}return e.prev=8,e.next=11,t.getOrderData(f.out_order_id);case 11:l=e.sent,l&&(f.payment_method=t.payType[l.pay_way_id]),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](8);case 17:e.prev=17,d=Object.keys(a),p=0,y=d;case 20:if(!(p<y.length)){e.next=42;break}if(w=y[p],!Array.isArray(a[w])){e.next=39;break}k=Object(s["a"])(a[w]),e.prev=24,S=Object(u["a"])().mark((function e(){var n,s,l,c,d,m,p;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=x.value,h=JSON.parse(JSON.stringify(Object(r["a"])({},f))),"supply_order_item"===w&&(g="",n.sku_prop&&(g=Object.entries(n.main_sku_prop).map((function(e){var t=Object(o["a"])(e,2),a=t[0],n=t[1];return"".concat(a,": ").concat(n)})).join(" ")),v={item_main_title:n.main_title,item_main_sku_prop:g,item_main_sku_price:n.main_sku_price+"",item_main_num:n.main_num,item_main_barcode:n.main_barcode,item_main_out_id:n.main_out_id,item_deduction_ratio:n.deduction_ratio+"%"},s=JSON.parse(JSON.stringify(f.order_info)),s&&("CN"===s.country||"HK"===s.country||"MO"===s.country||"TW"===s.country||"SG"===s.country||"JP"===s.country||"KR"===s.country||"HU"===s.country||"VN"===s.country?v.recipient_realname=s.last_name+s.first_name:v.recipient_realname=s.first_name+s.last_name,v.recipient_phone=s.phone,v.recipient_country=t.$t(s.country),v.recipient_state=s.state,v.recipient_city=s.city,v.recipient_street=s.street,v.recipient_apartment=s.apartment,v.recipient_zip_code=s.zip_code,v.recipient_member_note=s.member_note,f.order_waybill_express_details?f.order_waybill_express_details[n.order_id+"_"+n.main_sku_id+"_"+v.item_main_out_id]&&(v.shipping_code=f.order_waybill_express_details[n.order_id+"_"+n.main_sku_id+"_"+v.item_main_out_id].shipping_code,v.shipping_corp=f.order_waybill_express_details[n.order_id+"_"+n.main_sku_id+"_"+v.item_main_out_id].shipping_corp,c=t.shippingCorpList.find((function(e){return e.key===v.shipping_corp})),c&&(v.shipping_corp=c.value),d=null===(l=f.order_waybill_express)||void 0===l?void 0:l.find((function(e){return(null===e||void 0===e?void 0:e.shipping_code)===v.shipping_code})),d&&(v.shipping_time=d.create_time)):(v.shipping_code="",v.shipping_corp="",v.shipping_time="")),h=Object(r["a"])(Object(r["a"])({},h),v),delete h.order_info,delete h[w],i.push(h)),"items"===w&&(b="",n.sku_prop&&(g=Object.entries(n.sku_prop).map((function(e){var t=Object(o["a"])(e,2),a=t[0],n=t[1];return"".concat(a,": ").concat(n)})).join(" ")),m=a.main_shop_order?a.main_shop_order.order_id:a.purchase_id,t.processedOrderPrices||(t.processedOrderPrices=new Set),p=!t.processedOrderPrices.has(m),p&&t.processedOrderPrices.add(m),_={good_id:n.good_id,sku_prop:b,item_price:n.price,item_num:n.num,out_id:n.out_id,item_title:n.title,payment_method:f.payment_method||"",payment:p&&f.payment||"0",post_fee:p&&f.post_fee||"0"},a.supply_orders&&a.supply_orders.forEach((function(e){if(e.payment_method&&e.supply_order_item){var t=e.supply_order_item.findIndex((function(e){return e.main_sku_id===n.sku_id}));-1!==t&&(_.payment_method=e.payment_method)}if(a.main_shop_order){if(e.order_waybill_express_details){var i=JSON.parse(JSON.stringify(n)),r=a.main_shop_order.order_id+"_"+i.sku_id+"_"+i.out_id,o=e.order_waybill_express_details[r];if(o){var s=JSON.parse(JSON.stringify(o));_.shipping_code=s.shipping_code,_.shipping_corp=s.shipping_corp,_.shipping_time=s.shipping_time}}}else if(e.order_waybill_express_details){var l=JSON.parse(JSON.stringify(e.order_waybill_express_details[e.order_id+"_"+n.sku_id+"_"+_.out_id]));l&&(_.shipping_code=l.shipping_code,_.shipping_corp=l.shipping_corp,_.shipping_time=l.shipping_time)}})),h=JSON.parse(JSON.stringify(Object(r["a"])(Object(r["a"])({},f),_))),delete h[w],delete h["debit_channel"],delete h["supply_orders"],i.push(h));case 4:case"end":return e.stop()}}),e)})),k.s();case 27:if((x=k.n()).done){e.next=31;break}return e.delegateYield(S(),"t1",29);case 29:e.next=27;break;case 31:e.next=36;break;case 33:e.prev=33,e.t2=e["catch"](24),k.e(e.t2);case 36:return e.prev=36,k.f(),e.finish(36);case 39:p++,e.next=20;break;case 42:e.next=46;break;case 44:e.prev=44,e.t3=e["catch"](17);case 46:Object.keys(a).some((function(e){return Array.isArray(a[e])}))||i.push(f);case 47:case"end":return e.stop()}}),e,null,[[8,15],[17,44],[24,33,36,39]])})),d.s();case 6:if((m=d.n()).done){a.next=10;break}return a.delegateYield(p(),"t0",8);case 8:a.next=6;break;case 10:a.next=15;break;case 12:a.prev=12,a.t1=a["catch"](3),d.e(a.t1);case 15:return a.prev=15,d.f(),a.finish(15);case 18:t.List=[].concat(Object(l["a"])(t.List),i);case 19:case"end":return a.stop()}}),a,null,[[3,12,15,18]])})))()},nextData:function(){var e=this;return Object(d["a"])(Object(u["a"])().mark((function t(){var a,n,i;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.currentPage=JSON.parse(JSON.stringify(e.page)),e.totalPages=Math.ceil(e.total/e.pageSize),e.List=[],e.visible=!0,a=function(){if(e.fileName===e.$t("app.menus.left.procure.procureOrder")){var t=e.currentPage<=e.totalPages;return t}return e.currentPage<e.totalPages};case 5:return t.prev=5,t.next=8,e.loadData(e.currentPage,e.pageSize);case 8:if(n=t.sent,e.percent=Math.ceil(e.currentPage/e.totalPages*100),!(n instanceof Array)){t.next=15;break}return t.next=13,e.pushList(n);case 13:t.next=19;break;case 15:if(null===n||void 0===n||!n.list){t.next=19;break}return t.next=18,e.pushList(n.list);case 18:n.total&&(e.total=n.total,e.totalPages=Math.ceil(e.total/e.pageSize));case 19:e.currentPage++,t.next=25;break;case 22:t.prev=22,t.t0=t["catch"](5),e.error=null!==(i=t.t0.message)&&void 0!==i?i:"An error occurred while fetching page data";case 25:if(a()){t.next=5;break}case 26:e.$message.destroy(),e.visible=!1,e.exportToExcel();case 29:case"end":return t.stop()}}),t,null,[[5,22]])})))()},refineHeaders:function(e,t){if(0===e.length)return{};var a=Object.keys(e[0]),n={};return a.forEach((function(e){t[e]?n[e]=t[e]:n[e]=e})),this.fileName===this.$t("app.menus.left.procure.procureOrder")&&(n["shipping_code"]=this.$t("view.order.detail.shipping_code"),n["shipping_corp"]=this.$t("view.order.detail.shipping_corp")),n},exportToExcel:function(){if(this.List instanceof Array&&this.List.length>0){if(g){var e=this.refineHeaders(this.List,this.headers),t=Object.keys(e),a=Object.values(e),n=[a];this.List.forEach((function(e){var a=t.map((function(t){return e[t]&&null!==e[t]&&"null"!==e[t]&&e[t]||""}));n.push(a)}));var i=g.utils.aoa_to_sheet(n),r=g.utils.book_new();g.utils.book_append_sheet(r,i,"Sheet1");var o=g.write(r,{bookType:"xlsx",type:"array"});try{Object(m["saveAs"])(new Blob([o],{type:"application/octet-stream"}),"".concat(this.fileName,".xlsx")),this.loadData(1,this.pageSize)}catch(s){}return o}}else this.$message.error(this.$t("components.EcelData.export.excel.0"))}}},b=Object(r["a"])({},v),_=b,y=a("2877"),w=Object(y["a"])(_,n,i,!1,null,null,null);t["default"]=w.exports},"034d":function(e,t,a){"use strict";a("8dab")},"0425":function(e,t){const a="[0-9]+",n="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";t.KANJI=new RegExp(i,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp(a,"g"),t.ALPHANUMERIC=new RegExp(n,"g");const o=new RegExp("^"+i+"$"),s=new RegExp("^"+a+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},"046e":function(e,t,a){},"048f":function(e,t,a){"use strict";a("0c50")},"04f1":function(e,t,a){"use strict";a.r(t);var n=a("53ca"),i=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"typical-home"},[e.gonggaoContent&&e.gonggaoContentShow?t("a-alert",{staticStyle:{margin:"10px"},attrs:{message:e.$t("view.config.system.gonggao.tip"),type:"info"}},[t("div",{attrs:{slot:"description"},slot:"description"},[t("div",{domProps:{innerHTML:e._s(e.gonggaoContent)}})])]):e._e(),t("initData"),t("a-row",{staticClass:"module-list",attrs:{gutter:[24,24]}},[t("a-col",{staticClass:"module-list",attrs:{span:24}},[t("div",{staticClass:"module-in module-in01",staticStyle:{height:"auto"}},[t("a-page-header",{attrs:{ghost:!1,title:e.$t("view.home.worktable.real_time.overview")}},[t("template",{slot:"extra"},["admin"==e.roles[0]?t("seller-list",{staticStyle:{"margin-top":"10px"},on:{changeuser:e.changeUser}}):e._e()],1)],2),t("a-list",{staticClass:"list-totality",attrs:{grid:{gutter:12,column:4},"data-source":e.realTime},scopedSlots:e._u([{key:"renderItem",fn:function(a){return t("a-list-item",{},[t("a-card",{staticStyle:{"min-height":"100px !important"}},[t("p",[e._v(" "+e._s(a.title)+" "),a.tips?t("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(a.tips))]},proxy:!0}],null,!0)},[t("a-icon",{staticStyle:{float:"right"},attrs:{type:"more"}})],1):e._e()],1),t("span",["object"!==Object(n["a"])(a.data)?t("span",[e._v(" "+e._s(a.data)+" ")]):e._e(),"object"===Object(n["a"])(a.data)&&null!==a.data?t("span",{staticClass:"data-list"},e._l(a.data,(function(a,n){return t("span",{key:n,staticClass:"data-item"},[t("span",{staticClass:"data-value"},[e._v(e._s(a.display))])])})),0):e._e(),"object"===Object(n["a"])(a.data)&&0===a.data.length?t("span",[e._v(" 0 ")]):e._e()])])],1)}}])})],1)])],1),t("a-row",{staticClass:"module-list",attrs:{gutter:[24,24]}},[t("a-col",{staticClass:"module-list",attrs:{span:24}},[t("div",{staticClass:"module-in module-in01",staticStyle:{"min-height":"150px",height:"160px"}},[t("a-page-header",{attrs:{ghost:!1,title:e.$t("view.home.worktable.goods.data")}},[t("template",{slot:"extra"},[t("a-icon",{attrs:{type:"more"}})],1)],2),t("a-list",{staticClass:"list-totality",attrs:{grid:{gutter:12,column:3},"data-source":e.goodsList},scopedSlots:e._u([{key:"renderItem",fn:function(a){return t("a-list-item",{},[t("a-card",{staticClass:"item"},[t("p",[e._v(" "+e._s(a.title)+" "),t("a-tooltip",{scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(a.tips))]},proxy:!0}],null,!0)},[t("a-icon",{staticStyle:{float:"right"},attrs:{type:"more"}})],1)],1),t("span",[e._v(e._s(a.data))])])],1)}}])})],1)])],1),t("a-row",{attrs:{gutter:[24,24]}},[t("a-col",{attrs:{span:24}},[t("line-radar",{ref:"Radar"})],1)],1),t("a-row",{attrs:{gutter:[24,24]}},[t("a-col",{attrs:{span:24}},[t("line-radar1",{ref:"Radar1"})],1)],1),t("a-row",{attrs:{gutter:[24,24]}},[t("a-col",{staticClass:"module-list",attrs:{span:12}},[t("div",{staticClass:"module-in module-in08",staticStyle:{height:"390px"}},[t("a-page-header",{attrs:{ghost:!1,title:e.$t("view.home.worktable.goods.sales")}},[t("template",{slot:"extra"},[t("a-icon",{attrs:{type:"more"}})],1)],2),t("a-list",{attrs:{"item-layout":"horizontal","data-source":e.heatdata},scopedSlots:e._u([{key:"renderItem",fn:function(a){return t("a-list-item",{},[t("a-list-item-meta",[t("a",{attrs:{slot:"description",href:a.url},slot:"description"},[t("div",{staticClass:"order"},[e._v(e._s(a.index))]),t("a-icon",{staticClass:"icon",attrs:{type:a.icon?a.icon:"pie-chart"}}),t("div",{staticClass:"txt"},[e._v(e._s(a.txt))]),t("a-statistic",{attrs:{value:a.value},scopedSlots:e._u([{key:"suffix",fn:function(){return[t("a-icon",{style:{color:a.color},attrs:{type:a.arrow?a.arrow:"pie-chart"}})]},proxy:!0}],null,!0)})],1)])],1)}}])})],1)]),t("a-col",{attrs:{span:12}},[t("histogram-chart",{ref:"Histogram"})],1)]