UNPKG

@bee-hole/server

Version:

www.bee-hole.com

1 lines 4.26 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},"00b5":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a4d3"),a("e01a");var n=function(){var e=this,t=e._self._c;return t("div",[t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"480",modalWidth:e.isMobile?"100vw":"640"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.formData,rules:e.rules,layout:"vertical"},slot:"content"},[e.formData.label_id?t("a-row",{staticClass:"form-row top-view",staticStyle:{"padding-top":"0"},attrs:{gutter:32}},[t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("view-tabs",{attrs:{"view-id":e.view_id,defaultLang:e.defaultLang},on:{change:e.changeView,"update:defaultLang":function(t){e.defaultLang=t},"update:default-lang":function(t){e.defaultLang=t}}})],1)],1):e._e(),t("a-row",{staticClass:"form-row",class:{"top-view1":e.formData.cat_id},style:{paddingTop:e.formData.cat_id?"60px":"0"},attrs:{gutter:32}},[t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-model-item",{attrs:{prop:"ai"}},[t("ai",{attrs:{value:e.formData.ai},on:{"update:value":function(t){return e.$set(e.formData,"ai",t)}}})],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.label.list.form.name"),prop:"name"}},[t("a-input",{attrs:{placeholder:e.$t("view.label.list.form.placeholder.name"),disabled:1==e.formData.ai&&e.defaultLang!==e.lang},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}},[e.defaultLang!==e.lang?t("aiTs",{attrs:{slot:"suffix",disabled:1==e.formData.ai&&e.defaultLang!==e.lang,value:e.formData.name,lang:e.lang,loadding:e.aiTsUpdate},on:{"update:value":function(t){return e.$set(e.formData,"name",t)},"update:loadding":function(t){e.aiTsUpdate=t}},slot:"suffix"}):e._e()],1)],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.label.form.weight"),prop:"weight"}},[t("a-input-number",{attrs:{placeholder:e.$t("view.label.form.placeholder.weight")},model:{value:e.formData.weight,callback:function(t){e.$set(e.formData,"weight",t)},expression:"formData.weight"}})],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.label.list.form.description"),prop:"description"}},[t("a-textarea",{attrs:{placeholder:e.$t("view.label.list.form.placeholder.description"),disabled:1==e.formData.ai&&e.defaultLang!==e.lang},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}},[e.defaultLang!==e.lang?t("aiTs",{attrs:{slot:"suffix",disabled:1==e.formData.ai&&e.defaultLang!==e.lang,value:e.formData.description,lang:e.lang,loadding:e.aiTsUpdate},on:{"update:value":function(t){return e.$set(e.formData,"description",t)},"update:loadding":function(t){e.aiTsUpdate=t}},slot:"suffix"}):e._e()],1)],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(e._s(e.$t("view.test.form.add.modal.btn.save"))+" ")]),t("a-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$t("view.test.form.add.modal.btn.cancel"))+" ")])],1)],2)],1)},i=[],r=a("5530"),o=a("bd2e"),s=Object(r["a"])({},o["default"]),l=s,c=(a("0444"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,"4c9a53a0",null);t["default"]=u.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("3ca3"),a("ddb0"),a("d81d"),a("b64b"),a("a15b"),a("99af"),a("caad"),a("4fadc"),a("7db0"),a("6062b"),a("159b"),a("c740"),a("2532"),a("07acb"),a("21a6")),p=a("2f62"),f=a("1b6c"),h=a("3a10"),g=a("a7b6"),v=a("25ca"),b={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,emptyDataCount:0,maxEmptyRetries:3,failureCount:0,maxFailureRetries:3}},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"},lockRecord:{type:Object,default:function(){return{}}}},created:function(){this.headers={shop_name:this.$t("view.shop.add.title"),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"),remain_num:this.$t("view.lockstock.list.remainNum"),used_num:this.$t("view.lockstock.list.usedNum")},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.headers.user_name=this.$t("view.member.distributor.list.distirbutor_name"),this.headers.user_id=this.$t("view.member.distributor.list.distributor_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.fileName===this.$t("view.lockstock.list.title")?(this.headers.createTime=this.$t("view.lockstock.list.createTime"),this.headers.shop_id=this.$t("view.shop.add.title"),this.headers.out_id=this.$t("view.lockstock.list.outId"),this.headers.country=this.$t("view.lockstock.list.country"),this.headers.remain_num=this.$t("view.lockstock.list.remainNum"),this.headers.used_num=this.$t("view.lockstock.list.usedNum")):this.fileName===this.$t("view.lockstock.log.title")?(this.headers.createTime=this.$t("view.lockstock.log.createTime"),this.headers.out_id=this.$t("view.lockstock.list.outId"),this.headers.shop_id=this.$t("view.shop.add.title"),this.headers.country=this.$t("view.lockstock.list.country"),this.headers.order_id=this.$t("view.lockstock.log.orderId"),this.headers.type=this.$t("view.lockstock.log.type"),this.headers.before_total=this.$t("view.lockstock.log.beforeTotal"),this.headers.num=this.$t("view.lockstock.log.num"),this.headers.after_total=this.$t("view.lockstock.log.afterTotal")):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=9;break;case 5:return n=JSON.parse(JSON.stringify(e)),a.next=8,Promise.all(n.map(function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(a){var n,i,r,o,s,l,d;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=0,i=Object.keys(a);case 1:if(!(n<i.length)){e.next=65;break}if(r=i[n],"changeType"!==r){e.next=7;break}a[r]=t.$t(a[r]),e.next=62;break;case 7:if("refs"!==r){e.next=12;break}"string"===typeof a[r]&&(a[r]=JSON.parse(a[r])),a[r]&&(a[r][0].purchaseId||a[r][0].purchase_id)?a[r]=a[r].map((function(e){return e.purchaseId||e.purchase_id})).join(","):a[r]="",e.next=62;break;case 12:if("status"!==r){e.next=16;break}a[r]=t.$t(a[r]),e.next=62;break;case 16:if("sub_shop_id"!==r){e.next=31;break}return e.prev=17,e.next=20,Object(g["m"])({shop_id:a[r]});case 20:return o=e.sent,e.next=23,Object(g["e"])({shop_id:a[r]});case 23:s=e.sent,o.title&&s.username&&(a["shop_name"]=s.username+"-"+o.title),e.next=29;break;case 27:e.prev=27,e.t0=e["catch"](17);case 29:e.next=62;break;case 31:if("shop_id"!==r||t.fileName!==t.$t("view.lockstock.list.title")&&t.fileName!==t.$t("view.lockstock.log.title")){e.next=46;break}return e.prev=32,e.next=35,Object(g["m"])({shop_id:a[r]});case 35:return l=e.sent,e.next=38,Object(g["e"])({shop_id:a[r]});case 38:d=e.sent,l.title&&d.username&&(a["shop_name"]=d.username+"-"+l.title),e.next=44;break;case 42:e.prev=42,e.t1=e["catch"](32);case 44:e.next=62;break;case 46:if("type"!==r||t.fileName!==t.$t("view.lockstock.log.title")){e.next=61;break}e.t2=a[r],e.next=1===e.t2?50:2===e.t2?52:3===e.t2?54:4===e.t2?56:58;break;case 50:return a[r]=t.$t("view.lockstock.log.type.lock"),e.abrupt("break",59);case 52:return a[r]=t.$t("view.lockstock.log.type.use"),e.abrupt("break",59);case 54:return a[r]=t.$t("view.lockstock.log.type.rollback"),e.abrupt("break",59);case 56:return a[r]=t.$t("view.lockstock.log.type.unuse"),e.abrupt("break",59);case 58:return e.abrupt("break",59);case 59:e.next=62;break;case 61:"payWayId"===r||"pay_way_id"===r?3===a[r]?a[r]=t.$t("paymenthod.alipay"):1===a[r]?a[r]=t.$t("paymenthod.wechat"):2===a[r]?a[r]=t.$t("paymenthod.paypal"):(127===a[r]||9999===a[r])&&(a[r]=t.$t("paymenthod.shougong")):"number"===typeof a[r]?a[r]=a[r]+"":"object"===Object(c["a"])(a[r])&&(a[r]=JSON.stringify(a[r]));case 62:n++,e.next=1;break;case 65:case 66:case"end":return e.stop()}}),e,null,[[17,27],[32,42]])})));return function(t){return e.apply(this,arguments)}}()));case 8:t.List=[].concat(Object(l["a"])(t.List),Object(l["a"])(n));case 9: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;return Object(u["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=JSON.parse(JSON.stringify(e)),i=[],a.next=4,Promise.all(n.map(function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(a){var n,l,m,p,f,h,v,b,_,y,w,k,x,S,C;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(r["a"])({},a),l=["supply_order_item","order_info","order_waybill_express_details","order_waybill_express","after_sale_item","items"],e.next=4,Promise.all(Object.keys(a).map(function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(i){var r,o;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Array.isArray(a[i])||"object"===Object(c["a"])(a[i])){e.next=23;break}if("deduction_status"!==i){e.next=5;break}1===a[i]?n[i]=t.$t("ORDER_WAIT_PAYMENT"):2===a[i]?n[i]=t.$t("ORDER_PAID"):n[i]=a[i],e.next=21;break;case 5:if("sub_shop_id"!==i){e.next=20;break}return e.prev=6,e.next=9,Object(g["m"])({shop_id:a[i]});case 9:return r=e.sent,e.next=12,Object(g["e"])({shop_id:a[i]});case 12:o=e.sent,r.title&&o.username&&(n["sub_shop_name"]=o.username+"-"+r.title,n["user_name"]=o.username,n["user_id"]=r.user_id),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](6);case 18:e.next=21;break;case 20:"is_self_take"===i?1===a[i]?n[i]=t.$t("view.procure.delivery.self_pickup"):n[i]=t.$t("view.procure.delivery.drop_shipping"):"status"===i||"country"===i?n[i]=t.$t(a[i]):"isPutong"===i||"closed_time"===i?delete n[i]:"number"===typeof a[i]?n[i]=a[i]+"":n[i]=a[i];case 21:e.next=24;break;case 23:"object"!==Object(c["a"])(a[i])||l.includes(i)||("main_shop_order"===i?(n["main_shop_order_id"]=a[i].order_id,n["payment_method"]=t.payType[a[i].pay_way_id],delete n[i]):"closed_time"===i?delete n[i]:n[i]=JSON.stringify(a[i]));case 24:case"end":return e.stop()}}),e,null,[[6,16]])})));return function(t){return e.apply(this,arguments)}}()));case 4:if(!n.main_shop_order_id){e.next=7;break}e.next=17;break;case 7:if(!n.out_order_id){e.next=17;break}return e.prev=8,e.next=11,t.getOrderData(n.out_order_id);case 11:m=e.sent,m&&(n.payment_method=t.payType[m.pay_way_id]),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](8);case 17:e.prev=17,p=Object.keys(a),f=0,h=p;case 20:if(!(f<h.length)){e.next=42;break}if(v=h[f],!Array.isArray(a[v])){e.next=39;break}b=Object(s["a"])(a[v]),e.prev=24,y=Object(u["a"])().mark((function e(){var s,l,c,d,m,p,f;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:s=_.value,w=JSON.parse(JSON.stringify(Object(r["a"])({},n))),"supply_order_item"===v&&(k="",s.sku_prop&&(k=Object.entries(s.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(" ")),x={item_main_title:s.main_title,item_main_sku_prop:k,item_main_sku_price:s.main_sku_price+"",item_main_num:s.main_num,item_main_barcode:s.main_barcode,item_main_out_id:s.main_out_id,item_deduction_ratio:s.deduction_ratio+"%"},l=JSON.parse(JSON.stringify(n.order_info)),l&&("CN"===l.country||"HK"===l.country||"MO"===l.country||"TW"===l.country||"SG"===l.country||"JP"===l.country||"KR"===l.country||"HU"===l.country||"VN"===l.country?x.recipient_realname=l.last_name+l.first_name:x.recipient_realname=l.first_name+l.last_name,x.recipient_phone=l.phone,x.recipient_country=t.$t(l.country),x.recipient_state=l.state,x.recipient_city=l.city,x.recipient_street=l.street,x.recipient_apartment=l.apartment,x.recipient_zip_code=l.zip_code,x.recipient_member_note=l.member_note,n.order_waybill_express_details?n.order_waybill_express_details[s.order_id+"_"+s.main_sku_id+"_"+x.item_main_out_id]&&(x.shipping_code=n.order_waybill_express_details[s.order_id+"_"+s.main_sku_id+"_"+x.item_main_out_id].shipping_code,x.shipping_corp=n.order_waybill_express_details[s.order_id+"_"+s.main_sku_id+"_"+x.item_main_out_id].shipping_corp,d=t.shippingCorpList.find((function(e){return e.key===x.shipping_corp})),d&&(x.shipping_corp=d.value),m=null===(c=n.order_waybill_express)||void 0===c?void 0:c.find((function(e){return(null===e||void 0===e?void 0:e.shipping_code)===x.shipping_code})),m&&(x.shipping_time=m.create_time)):(x.shipping_code="",x.shipping_corp="",x.shipping_time="")),w=Object(r["a"])(Object(r["a"])({},w),x),delete w.order_info,delete w[v],i.push(w)),"items"===v&&(S="",s.sku_prop&&(k=Object.entries(s.sku_prop).map((function(e){var t=Object(o["a"])(e,2),a=t[0],n=t[1];return"".concat(a,": ").concat(n)})).join(" ")),p=a.main_shop_order?a.main_shop_order.order_id:a.purchase_id,t.processedOrderPrices||(t.processedOrderPrices=new Set),f=!t.processedOrderPrices.has(p),f&&t.processedOrderPrices.add(p),C={good_id:s.good_id,sku_prop:S,item_price:s.price,item_num:s.num,out_id:s.out_id,item_title:s.title,payment_method:n.payment_method||"",payment:f&&n.payment||"0",post_fee:f&&n.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===s.sku_id}));-1!==t&&(C.payment_method=e.payment_method)}if(a.main_shop_order){if(e.order_waybill_express_details){var n=JSON.parse(JSON.stringify(s)),i=a.main_shop_order.order_id+"_"+n.sku_id+"_"+n.out_id,r=e.order_waybill_express_details[i];if(r){var o=JSON.parse(JSON.stringify(r));C.shipping_code=o.shipping_code,C.shipping_corp=o.shipping_corp,C.shipping_time=o.shipping_time}}}else if(e.order_waybill_express_details){var l=JSON.parse(JSON.stringify(e.order_waybill_express_details[e.order_id+"_"+s.sku_id+"_"+C.out_id]));l&&(C.shipping_code=l.shipping_code,C.shipping_corp=l.shipping_corp,C.shipping_time=l.shipping_time)}})),w=JSON.parse(JSON.stringify(Object(r["a"])(Object(r["a"])({},n),C))),delete w[v],delete w["debit_channel"],delete w["supply_orders"],i.push(w));case 4:case"end":return e.stop()}}),e)})),b.s();case 27:if((_=b.n()).done){e.next=31;break}return e.delegateYield(y(),"t1",29);case 29:e.next=27;break;case 31:e.next=36;break;case 33:e.prev=33,e.t2=e["catch"](24),b.e(e.t2);case 36:return e.prev=36,b.f(),e.finish(36);case 39:f++,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(