@bee-hole/admin 1.25.5 → 1.25.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/{lang-package~4e34e71e.be98f936.css → lang-package~4e34e71e.aca1fc25.css} +1 -1
- package/dist/css/lang-package~4e34e71e.aca1fc25.css.gz +0 -0
- package/dist/index.html +1 -1
- package/dist/js/app~f075b844.8a3b3f37.js +1 -0
- package/dist/js/app~f075b844.8a3b3f37.js.gz +0 -0
- package/dist/js/{chunk-2a62080f.0aa2934b.js → chunk-2a62080f.3c7519d1.js} +1 -1
- package/dist/js/chunk-2a62080f.3c7519d1.js.gz +0 -0
- package/dist/js/{chunk-e4a3fce0.be4bf012.js → chunk-e4a3fce0.08ba0c0f.js} +1 -1
- package/dist/js/{chunk-e4a3fce0.be4bf012.js.gz → chunk-e4a3fce0.08ba0c0f.js.gz} +0 -0
- package/dist/js/lang-package~4e34e71e.289787ab.js +11 -0
- package/dist/js/lang-package~4e34e71e.289787ab.js.gz +0 -0
- package/package.json +1 -1
- package/dist/css/lang-package~4e34e71e.be98f936.css.gz +0 -0
- package/dist/js/app~f075b844.691e85fa.js +0 -1
- package/dist/js/app~f075b844.691e85fa.js.gz +0 -0
- package/dist/js/chunk-2a62080f.0aa2934b.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.d9f88b6f.js +0 -11
- package/dist/js/lang-package~4e34e71e.d9f88b6f.js.gz +0 -0
- /package/dist/css/{chunk-vendors~5ea6e0dc.d7251aeb.css → chunk-vendors~5ea6e0dc.cda87f4c.css} +0 -0
- /package/dist/css/{chunk-vendors~5ea6e0dc.d7251aeb.css.gz → chunk-vendors~5ea6e0dc.cda87f4c.css.gz} +0 -0
- /package/dist/css/{chunk-vendors~db456615.5a096447.css → chunk-vendors~db456615.0558f976.css} +0 -0
- /package/dist/css/{chunk-vendors~db456615.5a096447.css.gz → chunk-vendors~db456615.0558f976.css.gz} +0 -0
- /package/dist/js/{chunk-0c92c201.863ac739.js → chunk-0c92c201.98571e93.js} +0 -0
- /package/dist/js/{chunk-0c92c201.863ac739.js.gz → chunk-0c92c201.98571e93.js.gz} +0 -0
- /package/dist/js/{chunk-39a7673e.42898030.js → chunk-39a7673e.ad100727.js} +0 -0
- /package/dist/js/{chunk-39a7673e.42898030.js.gz → chunk-39a7673e.ad100727.js.gz} +0 -0
- /package/dist/js/{chunk-4bc44e85.56e9b88e.js → chunk-4bc44e85.98c13671.js} +0 -0
- /package/dist/js/{chunk-4bc44e85.56e9b88e.js.gz → chunk-4bc44e85.98c13671.js.gz} +0 -0
- /package/dist/js/{chunk-af908bf4.ba5ed83b.js → chunk-af908bf4.d563c9db.js} +0 -0
- /package/dist/js/{chunk-af908bf4.ba5ed83b.js.gz → chunk-af908bf4.d563c9db.js.gz} +0 -0
- /package/dist/js/{lang-zh-TW-service~f63b1681.53ceea4d.js → lang-zh-TW-service~f63b1681.abcc837d.js} +0 -0
- /package/dist/js/{lang-zh-TW-service~f63b1681.53ceea4d.js.gz → lang-zh-TW-service~f63b1681.abcc837d.js.gz} +0 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a62080f"],{"12a1":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.saveInit}},[e._v(e._s(e.$t("components.google.open.button")))]),e.open?t("ant-modal",{attrs:{visible:e.open,"modal-title":e.modalTitle,"adjust-size":!0,modalHeight:"380",modalWidth:"820"},on:{cancel:e.cancelEditGoodInfo,ok:e.okEditGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form-model",{ref:"googleForm",attrs:{model:e.formData,rules:e.rules}},[t("a-row",{attrs:{gutter:12}},[t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.order.detail.ship_country"),prop:"target_country",required:""}},[t("ps-country-select",{attrs:{countryCode:e.formData.target_country},on:{"update:countryCode":function(t){return e.$set(e.formData,"target_country",t)},"update:country-code":function(t){return e.$set(e.formData,"target_country",t)}}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.component.item.syn.ozon.language"),prop:"content_language",required:""}},[t("view-select",{attrs:{lang:e.formData.content_language,backVal:"lang"},on:{change:e.backLang}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.form.channel"),prop:"channel",required:""}},[t("a-select",{attrs:{"show-search":"",placeholder:"","option-filter-prop":"title"},model:{value:e.formData.channel,callback:function(t){e.$set(e.formData,"channel",t)},expression:"formData.channel"}},e._l(e.channelList,(function(a){return t("a-select-option",{key:a.name,attrs:{title:a.name,value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1)],1)],1)],1)],1)],1)]):e._e()],1)},i=[],r=a("5530"),n=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),s=a("aabf"),l=a("1b6c"),c=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),u=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"1605"))})),d=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"68dd"))})),m={name:"GoogleGoods",data:function(){return{open:!1,modalTitle:"",formData:{},channelList:[{name:Object(l["b"])("components.googleGoods.channel.local"),value:"local"},{name:Object(l["b"])("components.googleGoods.channel.online"),value:"online"}],rules:{target_country:[{required:!0,message:Object(l["b"])("components.google.channel.target_country"),trigger:"change"}],content_language:[{required:!0,message:Object(l["b"])("components.google.channel.content_language"),trigger:"change"}],channel:[{required:!0,message:Object(l["b"])("components.google.channel.placeholder"),trigger:"change"}]}}},props:{goods:null,sellerId:{type:String,default:""}},methods:{openModal:function(e){this.initData(this.goods),this.open=!0},saveInit:function(){this.initData(this.goods),this.okEditGoodInfo()},initData:function(e){this.goods=e,this.modalTitle=this.$t("components.google.modal.title"),this.pathList=[],this.formData={target_country:"",goods_id:e.good_id,content_language:""}},backLang:function(e){this.formData.content_language=e},okEditGoodInfo:function(){var e=this,t=JSON.parse(JSON.stringify(this.formData));Object(s["i"])(t).then((function(t){0===t.code&&(e.cancelEditGoodInfo(),e.$message.success(e.$t("components.google.modal.success")),e.$emit("ok",t))}))},cancelEditGoodInfo:function(){this.open=!1}},components:{AntModal:c,PsCountrySelect:u,ViewSelect:d}},p=Object(r["a"])({},m),f=p,v=a("2877"),h=Object(v["a"])(f,o,i,!1,null,null,null);t["default"]=h.exports},"1fc7":function(e,t,a){"use strict";a.r(t);var o=a("c0c3"),i=a("2dd7");t["default"]={name:"CreateForm",props:{typeOptions:{type:Array,required:!0}},components:{AntModal:i["default"]},data:function(){return{loading:!1,formTitle:"",form:{id:void 0,configName:void 0,configKey:void 0,configValue:void 0,configType:"Y",remark:void 0},open:!1,rules:{configName:[{required:!0,message:"参数名称不能为空",trigger:"blur"}],configKey:[{required:!0,message:"参数编码不能为空",trigger:"blur"},{validator:this.checkConfigKeyUnique}],configValue:[{required:!0,message:"参数值不能为空",trigger:"blur"}]}}},filters:{},created:function(){},computed:{},watch:{},methods:{cancel:function(){this.open=!1,this.$emit("close")},reset:function(){void 0!==this.$refs.form&&this.$refs.form.resetFields()},handleAdd:function(){this.open=!0,this.formTitle="添加参数"},handleUpdate:function(e,t){var a=this,i=e?e.id:t;Object(o["e"])(i).then((function(e){a.form=e.data,a.open=!0,a.formTitle="修改参数"}))},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;void 0!==e.form.id?Object(o["i"])(e.form).then((function(t){e.$message.success("修改成功",3),e.open=!1,e.$emit("ok")})):Object(o["i"])(e.form).then((function(t){e.$message.success("新增成功",3),e.open=!1,e.$emit("ok")}))}))},checkConfigKeyUnique:function(e,t,a){var i="参数编码已存在";if(""===t)a();else{var r={configKey:t,id:void 0!==this.form.id?this.form.id:""};Object(o["a"])(r).then((function(e){"1"===e.data.code?a():a(i)}))}}}}},"270e":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",["rakuten"!==e.platform?t("div",["tiktok"==e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.please_select_delivery"),prop:"please_select_delivery"}},[t("a-select",{attrs:{placeholder:e.$t("view.order.list.please_select_delivery")},on:{change:e.selectShippingProviders},model:{value:e.form.delivery_option_id,callback:function(t){e.$set(e.form,"delivery_option_id",t)},expression:"form.delivery_option_id"}},e._l(e.shops_delivery,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" - "+e._s(a.type)+" ")])})),1)],1):e._e(),"tiktok"==e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.please_select_delivery_option"),prop:"please_select_delivery_option"}},[t("a-select",{attrs:{placeholder:e.$t("view.order.list.please_select_delivery_option")},on:{change:e.selectShopsDeliveryOption}},e._l(e.shops_delivery_option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.id}},[e._v(" "+e._s(a.id)+" - "+e._s(a.name)+" ")])})),1)],1):e._e(),"tiktok"!=e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.ship.list.logistics_company"),prop:"logistics_name"}},["netsea"!=e.platform&&"yahoo"!=e.platform?t("a-select",{staticStyle:{width:"100%"},attrs:{"show-search":""},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.options,(function(a,o){return t("a-select-opt-group",{key:o},[t("span",{attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"user"}}),e._v(e._s(a.key))],1),e._l(a.option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.key}},[e._v(" "+e._s(a.value)+" ")])}))],2)})),1):e._e(),"yahoo"==e.platform?t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.rakutenDeliveryCompany,(function(a,o){return"yahoo"==e.platform&&"1028"!=a.value?t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")]):e._e()})),1):e._e(),"netsea"==e.platform?t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.netseaDeliveryCompany,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1):e._e(),t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.ship.list.logistics_number"),prop:"shipment_id"}},[t("a-input",{attrs:{placeholder:e.$t("view.order.list.ship.list.input.logistics_number")},model:{value:e.form.shipment_id,callback:function(t){e.$set(e.form,"shipment_id",t)},expression:"form.shipment_id"}})],1)],1):e._e(),"rakuten"===e.platform?t("div",[e.isEdit?t("a-form-model",e._b({ref:"form",attrs:{model:e.form,rules:e.rules}},"a-form-model",e.itemLayout,!1),[t("a-form-model-item",{attrs:{"has-feedback":"",prop:"ship_units"}},[t("a-row",{staticClass:"ant-upload-list ant-upload-list-picture-card"},[t("table",{staticClass:"qgg-table"},[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("view.order.list.rakuten.basket_id")))]),t("th",[e._v(e._s(e.$t("table.mall_goods")))])])]),t("tbody",e._l(e.rakutenSdataSkuList,(function(a,o){return e.rakutenSdataSkuList?t("tr",{key:o},[t("td",[e._v(" "+e._s(a.basketId)+" "),t("table",{staticClass:"qgg-table"},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"100px"}},[e._v(e._s(e.$t("view.order.detail.shipping_corp")))]),t("td",{staticStyle:{"text-align":"left"}},[t("a-select",{staticStyle:{width:"200px"},on:{change:e.selectRakutenDeliveryCompanyName},model:{value:a.delivery_company,callback:function(t){e.$set(a,"delivery_company",t)},expression:"item.delivery_company"}},e._l(e.rakutenDeliveryCompany,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)]),t("tr",[t("td",{staticStyle:{width:"100px"}},[e._v(e._s(e.$t("view.order.detail.shipping_code")))]),t("td",{staticStyle:{"text-align":"left"}},[t("a-input",{staticStyle:{width:"200px"},on:{change:e.inputRakutenDeliveryCompanyCode},model:{value:a.shipping_number,callback:function(t){e.$set(a,"shipping_number",t)},expression:"item.shipping_number"}})],1)])])])]),t("td",e._l(a.item,(function(o,i){return a.item?t("a-row",{key:i},[t("a-col",{staticStyle:{"text-align":"left"}},[e._v(e._s(o.title))]),t("a-col",{staticStyle:{"text-align":"left","margin-top":"5px"}},[e._v(e._s(o.sku_prop)+" X "+e._s(o.shipping_num))])],1):e._e()})),1)]):e._e()})),0)])])],1)],1):e._e()],1):e._e()])},i=[],r=(a("a9e3"),a("d3b7"),a("159b"),a("7db0"),a("296e")),n=a("1b6c"),s=a("3a10"),l={data:function(){return{rakutenSdataSkuList:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:18}},rules:{logistics_name:[{required:!0,trigger:"change"}],shipment_id:[{required:!0,trigger:"change"}]},shops_delivery:[],shops_delivery_option:[],rakutenDeliveryCompany:[{name:"その他",value:"1000"},{name:"ヤマト運輸",value:"1001"},{name:"佐川急便",value:"1002"},{name:"日本郵便",value:"1003"},{name:"西濃運輸",value:"1004"},{name:"セイノースーパーエクスプレス",value:"1005"},{name:"福山通運",value:"1006"},{name:"名鉄運輸",value:"1007"},{name:"トナミ運輸",value:"1008"},{name:"第一貨物",value:"1009"},{name:"新潟運輸",value:"1010"},{name:"中越運送",value:"1011"},{name:"岡山県貨物運送",value:"1012"},{name:"久留米運送",value:"1013"},{name:"山陽自動車運送",value:"1014"},{name:"NXトランスポート",value:"1015"},{name:"エコ配",value:"1016"},{name:"EMS",value:"1017"},{name:"DHL",value:"1018"},{name:"FedEx",value:"1019"},{name:"UPS",value:"1020"},{name:"日本通運",value:"1021"},{name:"TNT",value:"1022"},{name:"OCS",value:"1023"},{name:"USPS",value:"1024"},{name:"SFエクスプレス",value:"1025"},{name:"Aramex",value:"1026"},{name:"SGHグローバル・ジャパン",value:"1027"},{name:"Rakuten EXPRESS",value:"1028"}],netseaDeliveryCompany:[{name:"ヤマト運輸",value:"YA"},{name:"佐川急便",value:"SA"},{name:"日本郵便",value:"NY"},{name:"西濃運輸",value:"SE"},{name:"福山通運",value:"FU"},{name:"名鉄運輸",value:"ME"},{name:"トナミ運輸",value:"TO"},{name:"第一貨物",value:"DA"},{name:"その他",value:"OT"},{name:"日本通運",value:"NT"}]}},props:{form:{type:Object,default:function(){return{shipment_id:"",logistics_name:""}}},options:{type:Array,default:function(){return[{key:Object(n["b"])("view.express.foreign_express1"),label:"GJWL",option:[{key:"SFGJ",value:"顺丰国际"},{key:"DHWL",value:"ヤマト運輸"},{key:"ZCJB",value:"佐川急便"},{key:"RBYZ",value:"日本郵便"}]},{key:Object(n["b"])("view.express.foreign_express2"),label:"GNWL",option:[{key:"SFEXPRESS",value:"顺丰"},{key:"STO",value:"申通"},{key:"YTO",value:"申通"},{key:"ZTO",value:"申通"},{key:"HTKY",value:"百世快递"},{key:"BSKY",value:"百世快运"},{key:"YUNDA",value:"韵达"},{key:"JD",value:"京东"},{key:"EMS",value:"EMS"},{key:"ZTO56",value:"中通快运"},{key:"AAEWEB",value:"AAE"},{key:"ARAMEX",value:"Aramex"},{key:"DHL",value:"内件DHL"},{key:"DPEX",value:"DPEX"},{key:"DEXP",value:"D速"},{key:"EWE",value:"EWE"},{key:"FEDEX",value:"FedEx"},{key:"PCA",value:"PCA"},{key:"TNT",value:"TNT"},{key:"UPS",value:"UPS"},{key:"ANJELEX",value:"安捷"},{key:"ANE",value:"安能"},{key:"ANEEX",value:"安能快递"},{key:"ANXINDA",value:"安信达"},{key:"EES",value:"百福东方"},{key:"FLYWAYEX",value:"程光"},{key:"DTW",value:"大田"},{key:"DEPPON",value:"德邦"},{key:"GCE",value:"飞洋"},{key:"PHOENIXEXP",value:"凤凰"},{key:"FTD",value:"富腾达"},{key:"GSD",value:"共速达"},{key:"GTO",value:"国通"},{key:"BLACKDOG",value:"黑狗"},{key:"HENGLU",value:"恒路"},{key:"HYE",value:"鸿远"},{key:"HQKY",value:"华企"},{key:"JOUST",value:"急先达"},{key:"TMS",value:"加运美"},{key:"JIAJI",value:"佳吉"},{key:"JIAYI",value:"佳怡"},{key:"KERRY",value:"嘉里物流"},{key:"HREX",value:"锦程快递"},{key:"PEWKEE",value:"晋越"},{key:"KKE",value:"京广"},{key:"JIUYESCM",value:"九曳"},{key:"KYEXPRESS",value:"跨越速运"},{key:"FASTEXPRESS",value:"快捷"},{key:"LTS",value:"联昊通"},{key:"LBEX",value:"龙邦"},{key:"YIMIDIDA",value:"壹米滴答"},{key:"RRS",value:"日日顺物流"},{key:"YXWL",value:"宇鑫物流"},{key:"DJ56",value:"东骏快捷"},{key:"AYCA",value:"澳邮专线"},{key:"CITY100",value:"城市100"},{key:"D4PX",value:"递四方速递"},{key:"GTSD",value:"广通"},{key:"JTKD",value:"捷特快递"},{key:"MB",value:"民邦快递"},{key:"MLWL",value:"明亮物流"},{key:"PANEX",value:"泛捷快递"},{key:"QXT",value:"全信通"},{key:"SAD",value:'赛澳递"'},{key:"SDWL",value:"上大物流"},{key:"STWL",value:"速腾快递"},{key:"WJK",value:"万家康"},{key:"ZENY",value:"增益快递"},{key:"CAE",value:"民航"},{key:"ND56",value:"能达"},{key:"EFSPOST",value:"平安快递"},{key:"CHINZ56",value:"秦远物流"},{key:"QCKD",value:"全晨"},{key:"QFKD",value:"全峰"},{key:"APEX",value:"全一"},{key:"RFD",value:"如风达"},{key:"SFC",value:"三态"},{key:"SFWL",value:"盛丰"},{key:"SHENGHUI",value:"盛辉"},{key:"SDEX",value:"顺达快递"},{key:"SUNING",value:"苏宁"},{key:"SURE",value:"速尔"},{key:"HOAU",value:"天地华宇"},{key:"TTKDEX",value:"天天"},{key:"VANGEN",value:"万庚"},{key:"WANJIA",value:"万家物流"},{key:"EWINSHINE",value:"万象"},{key:"GZWENJIE",value:"文捷航空"},{key:"XBWL",value:"新邦"},{key:"XFEXPRESS",value:"信丰"},{key:"BROADASIA",value:"亚风"},{key:"YIEXPRESS",value:"宜送"},{key:"QEXPRESS",value:"易达通"},{key:"ETD",value:"易通达"},{key:"UC56",value:"优速"},{key:"CHINAPOST",value:"邮政包裹"},{key:"YFHEX",value:"原飞航"},{key:"YADEX",value:"源安达"},{key:"YCGWL",value:"远成"},{key:"YFEXPRESS",value:"越丰"},{key:"YTEXPRESS",value:"运通"},{key:"ZJS",value:"宅急送"},{key:"ZMKMEX",value:"芝麻开门"},{key:"COE",value:"中国东方"},{key:"CRE",value:"中铁快运"},{key:"ZTKY",value:"中铁物流"},{key:"CNPL",value:"中邮"},{key:"PEISI",value:"配思航宇"},{key:"BDT",value:"八达通"},{key:"CJKD",value:"城际快递"},{key:"FKD",value:"飞康达"},{key:"HQSY",value:"环球速运"},{key:"JAD",value:"捷安达"},{key:"JGWL",value:"景光物流"},{key:"MK",value:"美快"},{key:"PADTF",value:"平安达腾飞快递"},{key:"QRT",value:"全日通速递"},{key:"RFEX",value:"瑞丰速递"},{key:"SAWL",value:"圣安物流"},{key:"ST",value:"速通物流"},{key:"SUBIDA",value:"速必达物流"},{key:"XJ",value:"新洁物流"},{key:"ZYWL",value:"中邮物流"}]}]}},order:null,platform:{type:String,default:""},isEdit:{type:Boolean,default:!0},mailingMode:{type:Number,default:1}},created:function(){var e,t,a;switch(this.platform){case"tiktok":"string"===typeof this.order.sdata&&""!==this.order.sdata&&(this.order.sdata=JSON.parse(this.order.sdata)),(null===(e=this.order.sdata)||void 0===e||null===(t=e.packages)||void 0===t?void 0:t.length)>0&&(this.order.package_id=this.order.sdata.packages[0].id),null!==(a=this.order.sdata)&&void 0!==a&&a.warehouse_id&&(this.order.warehouse_id=this.order.sdata.warehouse_id),this.shopSelect(this.order.from_shop_id);break;case"rakuten":var o=JSON.parse(this.order.sdata),i=[];o.PackageModelList.forEach((function(e){var t={};t.basketId=e.basketId,t.item=[],e.ItemModelList.forEach((function(e){if(e.SkuModelList.length)var a=e.SkuModelList[0].variantId;t.item.push({title:e.itemName,sku_prop:a,price:e.price,shipping_num:e.units,delivery_company:"",Shipping_number:""})})),i.push(t)})),this.rakutenSdataSkuList=i;break}this.getOption()},methods:{getOption:function(){var e=this,t={};Object(s["i"])({page:1,limit:150}).then((function(a){for(var o=a.list,i=0;i<o.length;i++){var r=o[i],n=r.foreign_express;t[n]||(t[n]=[]),t[n].push({key:r.logistics_code,value:r.logistics_name})}return e.options[0].option=t[2],e.options[1].option=t[1],e.options}))},submit:function(){switch(this.platform){case"tiktok":this.form.package_id=this.form.package_id,this.form.logistics_name=this.form.tracking_name,this.form.body={shipping_provider_id:this.form.shipping_providers_id,tracking_number:this.form.shipment_id};break;case"rakuten":var e=[];this.rakutenSdataSkuList.forEach((function(t){var a={basketId:"",ShippingModelList:[]};a.basketId=t.basketId,a.ShippingModelList.push({deliveryCompany:t.delivery_company,shippingNumber:t.shipping_number}),e.push(a)}));var t={};t.orderNumber=this.order.order_id,t.BasketidModelList=e,this.form.logistics_name=this.form.tracking_name,this.form.body=t;break}this.$emit("update:form",this.form)},handleChange:function(e){this.form.logistics_name=e},shopSelect:function(e){var t=this;t.form.shops=[];var a={};a.tiktok_shop_id=e,Object(r["b"])(a).then((function(e){0===e.code&&(t.form.shop_cipher=e.shop_cipher,"US"===e.shop_region&&(t.isUs=!0),t.selectDelivery())}))},selectDelivery:function(){var e=this;e.shops_delivery=[],Object(r["e"])({ware_house_id:this.order.warehouse_id,shop_cipher:e.form.shop_cipher}).then((function(t){var a,o;0===t.code&&((null===(a=t.data)||void 0===a||null===(o=a.delivery_options)||void 0===o?void 0:o.length)>0&&(e.shops_delivery=t.data.delivery_options))}))},selectShippingProviders:function(){var e=this;e.shops_delivery_option=[],Object(r["y"])({delivery_option_id:e.form.delivery_option_id,shop_cipher:e.form.shop_cipher}).then((function(t){var a,o;0===t.code&&((null===(a=t.data)||void 0===a||null===(o=a.shipping_providers)||void 0===o?void 0:o.length)>0&&(e.shops_delivery_option=t.data.shipping_providers))}))},selectShopsDeliveryOption:function(e,t){var a=this.shops_delivery_option.find((function(t){return t.id===e}));this.form.shipping_providers_id=a.id,this.form.tracking_name=a.name},selectRakutenDeliveryCompanyName:function(e){var t=this.rakutenDeliveryCompany.find((function(t){return t.value===e}));t&&(this.form.tracking_name=t.name)},inputRakutenDeliveryCompanyCode:function(e){this.form.shipment_id=e.target._value}}},c=l,u=(a("5d54"),a("2877")),d=Object(u["a"])(c,o,i,!1,null,null,null);t["default"]=d.exports},"3b1b":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:12,type:"flex"}},["admin"==e.roles[0]?t("a-col",{attrs:{lg:7,xl:8,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop.seller")}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("seller-list",{on:{changeuser:e.changeUser}})],1)])],1):e._e(),"admin"==e.roles[0]&&e.userId?t("a-col",{attrs:{lg:6,xl:6,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop")}},[t("shop-select",{ref:"shopSelect",attrs:{userId:e.userId},on:{change:e.changeShop}})],1)],1):e._e(),e.userId?e._e():t("a-col",{attrs:{lg:11,xl:"admin"==e.roles[0]?6:8,xxl:"admin"==e.roles[0]?4:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.detail.item"),labelCol:{md:8,sm:8,lg:10},wrapperCol:{md:16,sm:16,lg:14}}},[t("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:e.changeItem}})],1)],1)],1),t("a-row",{attrs:{gutter:12,type:"flex"}},[t("a-col",{attrs:{lg:7,xl:8,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.orderno")}},[t("a-input",{attrs:{placeholder:e.$t("view.order.list.inputorderno"),"allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.orderId,callback:function(t){e.orderId=t},expression:"orderId"}})],1)],1),t("a-col",{attrs:{lg:6,xl:6,xxl:4,xs:24,md:12}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.user_select_title")}},[t("member-list",{attrs:{shopId:e.checkedShopId},on:{changeMember:e.changeMember}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,xxl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:6,xl:4,xxl:3},wrapperCol:{lg:18,xl:20,xxl:21}}},[t("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:e.exportTime,callback:function(t){e.exportTime=t},expression:"exportTime"}},[t("template",{slot:"renderExtraFooter"})],2)],1)],1),t("a-col",{attrs:{lg:24,xl:24,xxl:8}},[t("span",{staticClass:"table-page-search-submitButtons buttonsTools"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.order.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.order.list.reset.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.orderExport}},[t("a-icon"),e._v(e._s(e.$t("view.order.list.export.btn"))+" ")],1),t("syn-config",{attrs:{syn_idf:2}})],1)])],1),t("a-row",{attrs:{gutter:12,type:"flex"}},[t("a-col",{attrs:{lg:7,xl:7,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.item.component.item.syn.syntype.title"),labelCol:{xl:10},wrapperCol:{xl:14}}},[t("platform",{attrs:{syntype:e.from_id,viewPlatform:2},on:{"update:syntype":function(t){e.from_id=t},selectPlatForm:e.changePlatForm}})],1)],1),e.platFormShops.length?t("a-col",{attrs:{lg:7,xl:6,xxl:4}},[t("a-form-item",{attrs:{label:e.$t("components.dyProduct.dyProduct.oauth.shopname")}},[t("a-select",{staticStyle:{width:"255px"},attrs:{allowClear:!0,placeholder:e.$t("components.dyProduct.dyProduct.shopname.placeholder")},model:{value:e.from_shop_id,callback:function(t){e.from_shop_id=t},expression:"from_shop_id"}},e._l(e.platFormShops,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1):e._e()],1)],1)],1)]),t("div",[t("view-select",{staticStyle:{display:"none"},on:{change:e.backViewId}}),e.showReviewModal?t("review-list",{ref:"ReviewList",on:{close:function(t){e.showReviewModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",attrs:{modalHeight:.8*e.windowHeight+""},on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),e.showFaHuoModal?t("review-list1",{ref:"ReviewList1",on:{ok:e.getList,close:function(t){e.showFaHuoModal=!1}}}):e._e(),e.showInsureModal?t("insure-list",{ref:"InsureList",on:{ok:e.getList,close:function(t){e.showInsureModal=!1}}}):e._e(),e.showModifyShipping?t("modify-shipping",{ref:"ModifyShipping",on:{ok:e.getList,close:function(t){e.showModifyShipping=!1}}}):e._e(),e.showHandlePayModal?t("handle-pay-list",{ref:"HandlePayList",on:{ok:e.getList,close:function(t){e.showHandlePayModal=!1}}}):e._e(),e.showCaiGouModal?t("caigou",{ref:"pushCaiGou",on:{ok:e.getList,close:function(t){e.showCaiGouModal=!1}}}):e._e(),t("stockAdd",{ref:"stockAdd"})],1),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){return e.orderQuery(t)}}},e._l(e.statusLists,(function(e){return t("a-tab-pane",{key:e.value,attrs:{tab:e.label}})})),1),t("advance-table",{attrs:{loading:e.loading,size:"middle","row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},"format-conditions":!1,columns:e.columns,"data-source":e.list,rowKey:"order_id",tableKey:"test-cat-catlist-table",expandedRowKeys:e.expandedRowKeys,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total_count,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},scroll:{x:"100%"},title:" "},scopedSlots:e._u([{key:"order_id",fn:function(a){var o=a.text,i=a.record;return t("span",{},[i.from_id?t("div",[e.shouldDisplayTag(i)?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.showTag(i))+" ")]):e._e()],1):e._e(),t("a",{on:{click:function(t){return e.handleOrderDetail(i)}}},[e._v(" "+e._s(o)+" ")]),t("div",[e._v(e._s(i.create_time))]),t("a",{attrs:{type:"primary"},on:{click:function(t){return e.orderPrint(i)}}},[e._v(e._s(e.$t("view.order.detail.print.btn")))]),t("br"),"admin"==e.roles[0]&&1!==i.shop_id?t("div",[t("supply-info",{attrs:{shopId:i.shop_id}})],1):e._e(),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:i}})],1)}},{key:"order_item",fn:function(a){var o=a.text,i=a.record;return t("span",{},e._l(o,(function(a,r){return t("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url},on:{click:function(t){return e.openItem(a)}}}),1==e.shopId?t("div",{staticStyle:{"margin-top":"0.5rem"}},[t("a-tag",{attrs:{color:2==a.mailing_mode?"red":"green"}},[1===e.shopId?t("div",[2==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):e._e(),1==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e(),0==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e()]):e._e(),1!==e.shopId?t("div",[2==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):e._e(),1==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e(),0==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e()]):e._e()])],1):e._e()],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[t("a",{on:{click:function(t){return e.openItem(a)}}},[e._v(" "+e._s(a.title)+" ")])])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(" "+e._s(i.currency)+" "+e._s(a.price)+" ")]),t("a-col",{staticStyle:{"padding-left":"5px"}},[t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.num)+" ")],1),t("a-col",{staticStyle:{"padding-left":"5px"}},[a.activity_info&&a.activity_info.wholesaleprice_id>0?t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(1===e.wholesalePriceData.type?e.$t("view.order.list.discount",{start:e.wholesalePriceData.start_num,end:e.wholesalePriceData.end_num,discount:e.wholesalePriceData.price}):e.$t("view.order.list.price",{start:e.wholesalePriceData.start_num,end:e.wholesalePriceData.end_num,price:e.shopQuoteCurrency+e.wholesalePriceData.price}))+" ")]),t("a-tag",{attrs:{color:"#2db7f5"},on:{mouseover:function(t){return e.getOrderItemWholesalePrice(a.activity_info.wholesaleprice_id)}}},[e._v(" "+e._s(e.$t("view.item.wholesale.form.new_price"))+" ")])],2):e._e()],1)],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof a.sku_prop?t("span",[e._v(" "+e._s(a.sku_prop)+" ")]):t("span",e._l(a.sku_prop,(function(a,o){return t("div",{key:o},[t("span",[e._v(e._s(o)+":"+e._s(a))])])})),0)])],1),t("a-row",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.barcode"))+" : "+e._s(a.barcode)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.out_id"))+" : "),t("a",{on:{click:function(t){return e.handleStockAdd(a)}}},[e._v(" "+e._s(a.out_id))])]),a.stock_log?t("a-col",{attrs:{flex:3}},[t("div",[e._v(" "+e._s(e.$t("view.order.target.wareHouse"))+" : "),t("wareHouseInfo",{attrs:{isTag:!0,warehouseId:a.stock_log.warehouse_id}}),"ORDER_WAIT_SHIP"===i.status?t("span",[e._v("-")]):e._e(),"ORDER_WAIT_SHIP"===i.status?t("orderSwitchWareHouse",{attrs:{skuId:a.sku_id,orderId:i.order_id},on:{ok:e.getList}}):e._e()],1)]):e._e(),a.stock_log?t("a-col",{attrs:{flex:3}},[t("div",[t("webHookInfo",{attrs:{orderId:i.order_id,orderStatus:i.status,wareHouseId:a.stock_log.warehouse_id}})],1)]):e._e()],1),r<o.length-1?t("a-divider"):e._e()],1)])})),0)}},{key:"payment",fn:function(a){var o=a.text,i=a.record;return t("span",{},[""===i.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.biaojiahuobi"))+" : "+e._s(e.shopQuoteCurrency)+" "+e._s(o)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(i.trans_currency)+" "+e._s(i.trans_amount)+" ")])],1):e._e(),""!==i.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(i.currency)+" "+e._s(o)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var o=a.text;return t("span",{},[t("div",[e._v(" "+e._s(e.$t(o))+" ")])])}},{key:"paymemberInfo",fn:function(a){var o=a.record;return t("span",{},[t("a-row",[o?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.gangwei.list.realname"))+" : "+e._s(o.last_name||"")+" "+e._s(o.first_name||"")+" "),!o.member_id||"purchase"!=o.from_id&&"handlePay"!=o.from_id&&""!=o.from_id?e._e():t("message",{staticStyle:{display:"inline-block","margin-left":"5px"},attrs:{memberId:o.member_id}})],1):e._e(),o.phone&&""!=o.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(o.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(e.$t(o.country))+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(o.state)+" ")]),o.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(o.city)+" ")]):e._e(),o.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(o.street)+" ")]):e._e(),o.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(o.apartment)+" ")]):e._e(),o.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(o.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(o.member_note)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(o)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var o=a.record;return t("span",{},[t("a",{on:{click:function(t){return e.handleReview(o)}}},[e._v(" "+e._s(e.$t("view.order.list.review.btn"))+" ")]),t("span",[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleInsure(o)}}},[e._v(" "+e._s(e.$t("view.order.list.insure.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===o.status||"ORDER_PART_PAID"===o.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handlePay(o,!1)}}},[e._v(" "+e._s(e.$t("view.order.list.manual_pay"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===o.status||"ORDER_PART_PAID"===o.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleCloseOrder(o,!1)}}},[e._v(" "+e._s(e.$t("view.order.list.closeOrder"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"!==o.status&&"ORDER_PART_PAID"!==o.status&&"handlePay"===o.from_id,expression:"\n record.status !== 'ORDER_WAIT_PAYMENT' &&\n record.status !== 'ORDER_PART_PAID' &&\n record.from_id === 'handlePay'\n "}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handlePay(o,!0)}}},[e._v(" "+e._s(e.$t("view.order.list.manual_pay"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleFaHuo(o)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_AFTER_SALE"===o.status,expression:"record.status === 'ORDER_AFTER_SALE'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleCancelAfterSales(o)}}},[e._v(" "+e._s(e.$t("view.order.list.aftersale.cancel.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a-popover",{attrs:{title:e.$t("view.order.list.reset.push.log.title"),trigger:"click",placement:"bottom"}},[t("template",{slot:"content"},[t("a-table",{attrs:{columns:e.logListTitle,"data-source":e.logData,pagination:{pageSize:3}}},[t("span",{attrs:{slot:"action"},slot:"action"},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.orderPush(o)}}},[e._v(" "+e._s(e.$t("view.order.list.reset.push.log.action.btn"))+" ")])],1)])],1),t("a",{attrs:{type:"primary"},on:{click:function(t){return e.orderPushLog(o)}}},[e._v(e._s(e.$t("view.order.list.reset.push.log")))])],2)],1),t("span",[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.pushCaiGou(o)}}},[e._v(e._s(e.$t("component.procure.create.button1")))])],1),t("div",[t("div",{attrs:{title:"订单备注"}},[o.user_note?t("a-tag",{staticStyle:{width:"80%"},attrs:{color:"orange"}},[e._v(e._s(o.user_note))]):e._e()],1),t("order-note",{attrs:{orderId:o.order_id,note:o.user_note},on:{ok:function(t){return e.getList()}}})],1)])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("ordersShips",{attrs:{orders:e.selectedRows||[]},on:{ok:e.okShips}})],1)])],1)],1)},i=[],r=a("5530"),n=a("6958"),s=Object(r["a"])({},n["default"]),l=s,c=(a("cd270"),a("2877")),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},5703:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"45%",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,layout:"vertical"}},[t("a-form-model-item",{attrs:{label:"参数编码",prop:"configKey"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configKey,callback:function(t){e.$set(e.form,"configKey",t)},expression:"form.configKey"}})],1),t("a-form-model-item",{attrs:{label:"参数名称",prop:"configName"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configName,callback:function(t){e.$set(e.form,"configName",t)},expression:"form.configName"}})],1),t("a-form-model-item",{attrs:{label:"参数值",prop:"configValue"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configValue,callback:function(t){e.$set(e.form,"configValue",t)},expression:"form.configValue"}})],1),t("a-form-model-item",{attrs:{label:"是否内置参数",prop:"configType"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.configType,callback:function(t){e.$set(e.form,"configType",t)},expression:"form.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-radio-button",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1),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),t("div",{staticClass:"bottom-control"},[t("a-space",[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")]),t("a-button",{on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)],1)],1)},i=[],r=a("5530"),n=a("1fc7"),s=Object(r["a"])({},n["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},"5af5":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalWidth:"640",modalHeight:"420"},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",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数编码",prop:"configKey"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configKey,callback:function(t){e.$set(e.form,"configKey",t)},expression:"form.configKey"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数名称",prop:"configName"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configName,callback:function(t){e.$set(e.form,"configName",t)},expression:"form.configName"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数值",prop:"configValue"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configValue,callback:function(t){e.$set(e.form,"configValue",t)},expression:"form.configValue"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"是否内置参数",prop:"configType"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.configType,callback:function(t){e.$set(e.form,"configType",t)},expression:"form.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-radio-button",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),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),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"),n=a("1fc7"),s=Object(r["a"])({},n["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},"5d54":function(e,t,a){"use strict";a("a32b")},"7b2c":function(e,t,a){"use strict";a.r(t);a("99af"),a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:{span:6},wrapperCol:{span:18}}},[t("a-row",{attrs:{gutter:0}},[t("a-col",{attrs:{md:6,sm:24,lg:8}},[t("a-form-item",{attrs:{labelCol:{md:8,sm:6,lg:8},wrapperCol:{md:16,sm:16,lg:16},label:e.$t("table.mall_warehouse")}},[t("ware-house-select",{staticStyle:{width:"200px"},attrs:{isAll:"",wareHouseId:e.queryParam.warehouse_id},on:{change:e.changewarehouse}})],1)],1),t("a-col",{attrs:{md:6,sm:24,lg:8}},[t("a-form-item",{attrs:{labelCol:{md:8,sm:6,lg:8},wrapperCol:{md:16,sm:16,lg:16},label:e.$t("view.item.sku.out_id")}},[t("a-input",{attrs:{placeholder:e.$t("view.item.sku.out_id"),"allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.out_id,callback:function(t){e.$set(e.queryParam,"out_id",t)},expression:"queryParam.out_id"}})],1)],1),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.test.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.test.list.reset.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary"},on:{click:e.handleGoWareHouse}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("app.menus.left.item.warehouselist"))+" ")],1),t("ExcelData",{attrs:{tableData:e.List,page:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total,loadData:e.nextPageChange,fileName:e.$t("table.mall_warehouse_stock")}})],1)])],1)],1)],1)]),t("a-card",{attrs:{bordered:!1}},[t("stockAdd",{ref:"stockAdd",on:{ok:e.stockUpdateBack}}),t("wareHouseStockLogs",{ref:"wareHouseLogs"}),t("a-table",{ref:"kucunTable",attrs:{size:"middle",loading:e.loading,columns:e.clounms,"data-source":e.List,rowKey:function(e){return"".concat(e.warehouse_id,"_").concat(e.out_id)},defaultExpandAllRows:!0,expandedRowKeys:e.expKeys,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.warehouse.list.table.total",{num:a[0]+"-"+a[1],total:t})},pageSizeOptions:["5","10","20","50","100"],onChange:e.nextPageChange}},on:{expand:e.tableExpandChange},scopedSlots:e._u([{key:"expandedRowRender",fn:function(e){return[t("div",[t("outItem",{attrs:{outId:e.out_id}})],1)]}},{key:"out_id",fn:function(a,o){return t("span",{},[o&&o.warehouse?t("a",{staticStyle:{color:"#2f54eb"},on:{click:function(t){return e.handleStockAdd(o)}}},[e._v(" "+e._s(o.out_id)+" ")]):e._e()])}},{key:"title",fn:function(a,o){return t("span",{},[o?t("div",[t("div",[e._v(" "+e._s(o.title)+" "),t("stockNameUpdate",{attrs:{wareHouseId:o.warehouse_id,outId:o.out_id,title:o.title},on:{ok:function(t){return e.getList()}}})],1)]):e._e()])}},{key:"warehouse_name",fn:function(a,o){return t("span",{},[o&&o.warehouse?t("div",[e._v(" "+e._s(o.warehouse.name)+" ")]):e._e()])}},{key:"stock_quantity",fn:function(a,o){return t("span",{},[o&&o.warehouse?t("a",{staticStyle:{color:"#2f54eb"},on:{click:function(t){return e.handleStockAdd(o)}}},[e._v(" "+e._s(o.stock_quantity)+" ")]):e._e()])}},{key:"operation",fn:function(a,o){return[t("a",{staticStyle:{color:"#2f54eb"},on:{click:function(t){return e.handleStockLogsList(o)}}},[e._v(e._s(e.$t("view.item.skulist.stocklogs.model.title")))])]}}])})],1)],1)},i=[],r=a("5530"),n=a("2836"),s=Object(r["a"])({},n["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},a32b:function(e,t,a){},c611:function(e,t,a){"use strict";a.r(t);a("99af");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"参数编码"}},[t("a-input",{attrs:{placeholder:"请输入参数编码","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.configKey,callback:function(t){e.$set(e.queryParam,"configKey",t)},expression:"queryParam.configKey"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"参数名称"}},[t("a-input",{attrs:{placeholder:"请输入参数名称","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.configName,callback:function(t){e.$set(e.queryParam,"configName",t)},expression:"queryParam.configName"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"是否内置参数"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择","allow-clear":""},model:{value:e.queryParam.configType,callback:function(t){e.$set(e.queryParam,"configType",t)},expression:"queryParam.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"创建时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e.showAddModal?t("config-add-form",{ref:"configAddForm",attrs:{typeOptions:e.typeOptions},on:{ok:e.getList,close:function(t){e.showAddModal=!1}}}):e._e(),e.showEditModal?t("config-edit-form",{ref:"configEditForm",attrs:{typeOptions:e.typeOptions},on:{ok:e.getList,close:function(t){e.showEditModal=!1}}}):e._e(),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"系统参数",loading:e.loading,rowKey:"id",tableKey:"system-config-ConfigIndex-table",size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"configType",fn:function(a){a.text;var o=a.record;return t("span",{},[e._v(" "+e._s(e.typeFormat(o))+" ")])}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:edit"],expression:"['system:config:edit']"}],on:{click:function(t){return e.handleUpdate(o)}}},[e._v(" 修改 ")]),t("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],on:{click:function(t){return e.handleDelete(o)}}},[e._v(" 删除 ")])],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:add"],expression:"['system:config:add']"}],attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[t("a-icon",{attrs:{type:"plus"}}),e._v("新增 ")],1),e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],on:{click:e.handleRefreshCache}},[t("a-icon",{attrs:{type:"redo"}}),e._v("刷新缓存 ")],1)],1)])],1)],1)},i=[],r=(a("d81d"),a("c0c3")),n=a("5703"),s=a("5af5"),l=a("5d9e"),c={name:"Config",components:{ConfigEditForm:n["default"],ConfigAddForm:s["default"],AdvanceTable:l["a"]},data:function(){return{showAddModal:!1,showEditModal:!1,list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],configNames:[],loading:!1,sunloading:!1,total:0,typeOptions:[],dateRange:[],labelCol:{span:10},wrapperCol:{span:14},queryParam:{pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},addModalRefName:"addModal",columns:[{title:"参数编码",dataIndex:"configKey",ellipsis:SVGComponentTransferFunctionElement,sswidth:"30%"},{title:"参数名称",dataIndex:"configName",ellipsis:!0,width:"15%"},{title:"参数值",dataIndex:"configValue",ellipsis:!0,width:"15%"},{title:"是否内置参数",dataIndex:"configType",scopedSlots:{customRender:"configType"},align:"center",width:"10%"},{title:"备注",dataIndex:"remark",ellipsis:!0,width:"15%"},{title:"创建时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"},width:"15%"},{title:"操作",dataIndex:"operation",width:"10%",align:"center",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_yes_no").then((function(t){e.typeOptions=t.data}))},computed:{},watch:{},methods:{getList:function(){var e=this;this.showAddModal=!1,this.showEditModal=!1,this.loading=!0,Object(r["g"])(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.list.map((function(e){e.operation=e.remark})),e.total=t.data.total,e.loading=!1}))},typeFormat:function(e){return this.selectDictLabel(this.typeOptions,e.configType)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.configNames=this.selectedRows.map((function(e){return e.configName})),this.single=1!==e.length,this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleAdd:function(){var e=this;this.showAddModal=!0,this.$nextTick((function(){return e.$refs.configAddForm.handleAdd()}))},handleUpdate:function(e){var t=this;this.showEditModal=!0,this.$nextTick((function(){return t.$refs.configEditForm.handleUpdate(e)}))},handleDelete:function(e){var t=this,a=e.id||this.ids,o=e.configName||this.configNames;this.$confirm({title:"确认删除所选中数据?",content:'当前选中名称为"'+o+'"的数据',onOk:function(){return Object(r["c"])(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(r["d"])(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})},handleRefreshCache:function(){var e=this;Object(r["h"])().then((function(t){e.$message.success("刷新成功",3)}))}}},u=c,d=a("2877"),m=Object(d["a"])(u,o,i,!1,null,null,null);t["default"]=m.exports},cd270:function(e,t,a){"use strict";a("f81e")},de96:function(e,t,a){"use strict";a.r(t);a("99af");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登录地址"}},[t("a-input",{attrs:{placeholder:"请输入登录地址","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.ipaddr,callback:function(t){e.$set(e.queryParam,"ipaddr",t)},expression:"queryParam.ipaddr"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作信息"}},[t("a-input",{attrs:{placeholder:"请输入操作信息","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.msg,callback:function(t){e.$set(e.queryParam,"msg",t)},expression:"queryParam.msg"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"使用状态"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态","allow-clear":""},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},e._l(e.statusOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登录名称"}},[t("a-input",{staticStyle:{width:"100%"},attrs:{"allow-clear":""},model:{value:e.queryParam.loginName,callback:function(t){e.$set(e.queryParam,"loginName",t)},expression:"queryParam.loginName"}})],1)],1):e._e(),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登陆时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"登录日志",loading:e.loading,rowKey:"id",tableKey:"monitor-logininfo-Logininfo-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"status",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a-badge",{attrs:{status:"0"==o.status?"processing":"error",text:e.statusFormat(o)}})],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger"},on:{click:e.handleClean}},[t("a-icon",{attrs:{type:"delete"}}),e._v("清空 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:LoginLog:export"],expression:"['system:LoginLog:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},i=[],r=(a("d81d"),a("b775"));function n(e){return Object(r["b"])({url:"/monitor/loginLog/page",method:"get",params:e})}function s(e){return Object(r["b"])({url:"/monitor/loginLog/"+e,method:"delete"})}function l(){return Object(r["b"])({url:"/monitor/loginLog/clean",method:"delete"})}function c(e){return Object(r["b"])({url:"/monitor/loginLog/export",method:"get",params:e})}var u=a("5d9e"),d={name:"LoginLog",components:{AdvanceTable:u["a"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,statusOptions:[],dateRange:[],labelCol:{span:6},wrapperCol:{span:18},queryParam:{pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},addModalRefName:"addModal",columns:[{title:"用户名称",dataIndex:"userName",align:"center"},{title:"登录地址",dataIndex:"ipaddr",align:"center"},{title:"登录地点",dataIndex:"loginLocation",align:"center"},{title:"浏览器",dataIndex:"browser",align:"center"},{title:"操作系统",dataIndex:"os",align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"操作信息",dataIndex:"msg",align:"center"},{title:"登录时间",dataIndex:"loginTime",align:"center"}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},computed:{},watch:{},methods:{onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},getList:function(){var e=this;this.loading=!0,n(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.total=t.data.total,e.loading=!1}))},statusFormat:function(e){return this.selectDictLabel(this.statusOptions,e.status)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm({title:"确认删除所选中数据?",onOk:function(){return s(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var e=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有登录日志数据项",onOk:function(){return l().then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return c(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})}}},m=d,p=a("2877"),f=Object(p["a"])(m,o,i,!1,null,null,null);t["default"]=f.exports},f81e:function(e,t,a){}}]);
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a62080f"],{"12a1":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.saveInit}},[e._v(e._s(e.$t("components.google.open.button")))]),e.open?t("ant-modal",{attrs:{visible:e.open,"modal-title":e.modalTitle,"adjust-size":!0,modalHeight:"380",modalWidth:"820"},on:{cancel:e.cancelEditGoodInfo,ok:e.okEditGoodInfo}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form-model",{ref:"googleForm",attrs:{model:e.formData,rules:e.rules}},[t("a-row",{attrs:{gutter:12}},[t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.order.detail.ship_country"),prop:"target_country",required:""}},[t("ps-country-select",{attrs:{countryCode:e.formData.target_country},on:{"update:countryCode":function(t){return e.$set(e.formData,"target_country",t)},"update:country-code":function(t){return e.$set(e.formData,"target_country",t)}}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.component.item.syn.ozon.language"),prop:"content_language",required:""}},[t("view-select",{attrs:{lang:e.formData.content_language,backVal:"lang"},on:{change:e.backLang}})],1)],1),t("a-col",{attrs:{lg:12}},[t("a-form-model-item",{attrs:{label:e.$t("view.item.form.channel"),prop:"channel",required:""}},[t("a-select",{attrs:{"show-search":"",placeholder:"","option-filter-prop":"title"},model:{value:e.formData.channel,callback:function(t){e.$set(e.formData,"channel",t)},expression:"formData.channel"}},e._l(e.channelList,(function(a){return t("a-select-option",{key:a.name,attrs:{title:a.name,value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1)],1)],1)],1)],1)],1)]):e._e()],1)},i=[],r=a("5530"),n=(a("d3b7"),a("3ca3"),a("ddb0"),a("a026")),s=a("aabf"),l=a("1b6c"),c=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"2dd7"))})),u=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"1605"))})),d=Object(n["b"])((function(){return Promise.resolve().then(a.bind(null,"68dd"))})),m={name:"GoogleGoods",data:function(){return{open:!1,modalTitle:"",formData:{},channelList:[{name:Object(l["b"])("components.googleGoods.channel.local"),value:"local"},{name:Object(l["b"])("components.googleGoods.channel.online"),value:"online"}],rules:{target_country:[{required:!0,message:Object(l["b"])("components.google.channel.target_country"),trigger:"change"}],content_language:[{required:!0,message:Object(l["b"])("components.google.channel.content_language"),trigger:"change"}],channel:[{required:!0,message:Object(l["b"])("components.google.channel.placeholder"),trigger:"change"}]}}},props:{goods:null,sellerId:{type:String,default:""}},methods:{openModal:function(e){this.initData(this.goods),this.open=!0},saveInit:function(){this.initData(this.goods),this.okEditGoodInfo()},initData:function(e){this.goods=e,this.modalTitle=this.$t("components.google.modal.title"),this.pathList=[],this.formData={target_country:"",goods_id:e.good_id,content_language:""}},backLang:function(e){this.formData.content_language=e},okEditGoodInfo:function(){var e=this,t=JSON.parse(JSON.stringify(this.formData));Object(s["j"])(t).then((function(t){0===t.code&&(e.cancelEditGoodInfo(),e.$message.success(e.$t("components.google.modal.success")),e.$emit("ok",t))}))},cancelEditGoodInfo:function(){this.open=!1}},components:{AntModal:c,PsCountrySelect:u,ViewSelect:d}},p=Object(r["a"])({},m),f=p,v=a("2877"),h=Object(v["a"])(f,o,i,!1,null,null,null);t["default"]=h.exports},"1fc7":function(e,t,a){"use strict";a.r(t);var o=a("c0c3"),i=a("2dd7");t["default"]={name:"CreateForm",props:{typeOptions:{type:Array,required:!0}},components:{AntModal:i["default"]},data:function(){return{loading:!1,formTitle:"",form:{id:void 0,configName:void 0,configKey:void 0,configValue:void 0,configType:"Y",remark:void 0},open:!1,rules:{configName:[{required:!0,message:"参数名称不能为空",trigger:"blur"}],configKey:[{required:!0,message:"参数编码不能为空",trigger:"blur"},{validator:this.checkConfigKeyUnique}],configValue:[{required:!0,message:"参数值不能为空",trigger:"blur"}]}}},filters:{},created:function(){},computed:{},watch:{},methods:{cancel:function(){this.open=!1,this.$emit("close")},reset:function(){void 0!==this.$refs.form&&this.$refs.form.resetFields()},handleAdd:function(){this.open=!0,this.formTitle="添加参数"},handleUpdate:function(e,t){var a=this,i=e?e.id:t;Object(o["e"])(i).then((function(e){a.form=e.data,a.open=!0,a.formTitle="修改参数"}))},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;void 0!==e.form.id?Object(o["i"])(e.form).then((function(t){e.$message.success("修改成功",3),e.open=!1,e.$emit("ok")})):Object(o["i"])(e.form).then((function(t){e.$message.success("新增成功",3),e.open=!1,e.$emit("ok")}))}))},checkConfigKeyUnique:function(e,t,a){var i="参数编码已存在";if(""===t)a();else{var r={configKey:t,id:void 0!==this.form.id?this.form.id:""};Object(o["a"])(r).then((function(e){"1"===e.data.code?a():a(i)}))}}}}},"270e":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",["rakuten"!==e.platform?t("div",["tiktok"==e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.please_select_delivery"),prop:"please_select_delivery"}},[t("a-select",{attrs:{placeholder:e.$t("view.order.list.please_select_delivery")},on:{change:e.selectShippingProviders},model:{value:e.form.delivery_option_id,callback:function(t){e.$set(e.form,"delivery_option_id",t)},expression:"form.delivery_option_id"}},e._l(e.shops_delivery,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" - "+e._s(a.type)+" ")])})),1)],1):e._e(),"tiktok"==e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.please_select_delivery_option"),prop:"please_select_delivery_option"}},[t("a-select",{attrs:{placeholder:e.$t("view.order.list.please_select_delivery_option")},on:{change:e.selectShopsDeliveryOption}},e._l(e.shops_delivery_option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.id}},[e._v(" "+e._s(a.id)+" - "+e._s(a.name)+" ")])})),1)],1):e._e(),"tiktok"!=e.platform?t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.ship.list.logistics_company"),prop:"logistics_name"}},["netsea"!=e.platform&&"yahoo"!=e.platform?t("a-select",{staticStyle:{width:"100%"},attrs:{"show-search":""},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.options,(function(a,o){return t("a-select-opt-group",{key:o},[t("span",{attrs:{slot:"label"},slot:"label"},[t("a-icon",{attrs:{type:"user"}}),e._v(e._s(a.key))],1),e._l(a.option,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.key}},[e._v(" "+e._s(a.value)+" ")])}))],2)})),1):e._e(),"yahoo"==e.platform?t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.rakutenDeliveryCompany,(function(a,o){return"yahoo"==e.platform&&"1028"!=a.value?t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")]):e._e()})),1):e._e(),"netsea"==e.platform?t("a-select",{staticStyle:{width:"100%"},on:{change:e.handleChange},model:{value:e.form.logistics_name,callback:function(t){e.$set(e.form,"logistics_name",t)},expression:"form.logistics_name"}},e._l(e.netseaDeliveryCompany,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1):e._e()],1):e._e(),t("a-form-model-item",{attrs:{"has-feedback":"",label:e.$t("view.order.list.ship.list.logistics_number"),prop:"shipment_id"}},[t("a-input",{attrs:{placeholder:e.$t("view.order.list.ship.list.input.logistics_number")},model:{value:e.form.shipment_id,callback:function(t){e.$set(e.form,"shipment_id",t)},expression:"form.shipment_id"}})],1)],1):e._e(),"rakuten"===e.platform?t("div",[e.isEdit?t("a-form-model",e._b({ref:"form",attrs:{model:e.form,rules:e.rules}},"a-form-model",e.itemLayout,!1),[t("a-form-model-item",{attrs:{"has-feedback":"",prop:"ship_units"}},[t("a-row",{staticClass:"ant-upload-list ant-upload-list-picture-card"},[t("table",{staticClass:"qgg-table"},[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("view.order.list.rakuten.basket_id")))]),t("th",[e._v(e._s(e.$t("table.mall_goods")))])])]),t("tbody",e._l(e.rakutenSdataSkuList,(function(a,o){return e.rakutenSdataSkuList?t("tr",{key:o},[t("td",[e._v(" "+e._s(a.basketId)+" "),t("table",{staticClass:"qgg-table"},[t("tbody",[t("tr",[t("td",{staticStyle:{width:"100px"}},[e._v(e._s(e.$t("view.order.detail.shipping_corp")))]),t("td",{staticStyle:{"text-align":"left"}},[t("a-select",{staticStyle:{width:"200px"},on:{change:e.selectRakutenDeliveryCompanyName},model:{value:a.delivery_company,callback:function(t){e.$set(a,"delivery_company",t)},expression:"item.delivery_company"}},e._l(e.rakutenDeliveryCompany,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)]),t("tr",[t("td",{staticStyle:{width:"100px"}},[e._v(e._s(e.$t("view.order.detail.shipping_code")))]),t("td",{staticStyle:{"text-align":"left"}},[t("a-input",{staticStyle:{width:"200px"},on:{change:e.inputRakutenDeliveryCompanyCode},model:{value:a.shipping_number,callback:function(t){e.$set(a,"shipping_number",t)},expression:"item.shipping_number"}})],1)])])])]),t("td",e._l(a.item,(function(o,i){return a.item?t("a-row",{key:i},[t("a-col",{staticStyle:{"text-align":"left"}},[e._v(e._s(o.title))]),t("a-col",{staticStyle:{"text-align":"left","margin-top":"5px"}},[e._v(e._s(o.sku_prop)+" X "+e._s(o.shipping_num))])],1):e._e()})),1)]):e._e()})),0)])])],1)],1):e._e()],1):e._e()])},i=[],r=(a("a9e3"),a("d3b7"),a("159b"),a("7db0"),a("296e")),n=a("1b6c"),s=a("3a10"),l={data:function(){return{rakutenSdataSkuList:[],itemLayout:{labelCol:{lg:2},wrapperCol:{lg:18}},rules:{logistics_name:[{required:!0,trigger:"change"}],shipment_id:[{required:!0,trigger:"change"}]},shops_delivery:[],shops_delivery_option:[],rakutenDeliveryCompany:[{name:"その他",value:"1000"},{name:"ヤマト運輸",value:"1001"},{name:"佐川急便",value:"1002"},{name:"日本郵便",value:"1003"},{name:"西濃運輸",value:"1004"},{name:"セイノースーパーエクスプレス",value:"1005"},{name:"福山通運",value:"1006"},{name:"名鉄運輸",value:"1007"},{name:"トナミ運輸",value:"1008"},{name:"第一貨物",value:"1009"},{name:"新潟運輸",value:"1010"},{name:"中越運送",value:"1011"},{name:"岡山県貨物運送",value:"1012"},{name:"久留米運送",value:"1013"},{name:"山陽自動車運送",value:"1014"},{name:"NXトランスポート",value:"1015"},{name:"エコ配",value:"1016"},{name:"EMS",value:"1017"},{name:"DHL",value:"1018"},{name:"FedEx",value:"1019"},{name:"UPS",value:"1020"},{name:"日本通運",value:"1021"},{name:"TNT",value:"1022"},{name:"OCS",value:"1023"},{name:"USPS",value:"1024"},{name:"SFエクスプレス",value:"1025"},{name:"Aramex",value:"1026"},{name:"SGHグローバル・ジャパン",value:"1027"},{name:"Rakuten EXPRESS",value:"1028"}],netseaDeliveryCompany:[{name:"ヤマト運輸",value:"YA"},{name:"佐川急便",value:"SA"},{name:"日本郵便",value:"NY"},{name:"西濃運輸",value:"SE"},{name:"福山通運",value:"FU"},{name:"名鉄運輸",value:"ME"},{name:"トナミ運輸",value:"TO"},{name:"第一貨物",value:"DA"},{name:"その他",value:"OT"},{name:"日本通運",value:"NT"}]}},props:{form:{type:Object,default:function(){return{shipment_id:"",logistics_name:""}}},options:{type:Array,default:function(){return[{key:Object(n["b"])("view.express.foreign_express1"),label:"GJWL",option:[{key:"SFGJ",value:"顺丰国际"},{key:"DHWL",value:"ヤマト運輸"},{key:"ZCJB",value:"佐川急便"},{key:"RBYZ",value:"日本郵便"}]},{key:Object(n["b"])("view.express.foreign_express2"),label:"GNWL",option:[{key:"SFEXPRESS",value:"顺丰"},{key:"STO",value:"申通"},{key:"YTO",value:"申通"},{key:"ZTO",value:"申通"},{key:"HTKY",value:"百世快递"},{key:"BSKY",value:"百世快运"},{key:"YUNDA",value:"韵达"},{key:"JD",value:"京东"},{key:"EMS",value:"EMS"},{key:"ZTO56",value:"中通快运"},{key:"AAEWEB",value:"AAE"},{key:"ARAMEX",value:"Aramex"},{key:"DHL",value:"内件DHL"},{key:"DPEX",value:"DPEX"},{key:"DEXP",value:"D速"},{key:"EWE",value:"EWE"},{key:"FEDEX",value:"FedEx"},{key:"PCA",value:"PCA"},{key:"TNT",value:"TNT"},{key:"UPS",value:"UPS"},{key:"ANJELEX",value:"安捷"},{key:"ANE",value:"安能"},{key:"ANEEX",value:"安能快递"},{key:"ANXINDA",value:"安信达"},{key:"EES",value:"百福东方"},{key:"FLYWAYEX",value:"程光"},{key:"DTW",value:"大田"},{key:"DEPPON",value:"德邦"},{key:"GCE",value:"飞洋"},{key:"PHOENIXEXP",value:"凤凰"},{key:"FTD",value:"富腾达"},{key:"GSD",value:"共速达"},{key:"GTO",value:"国通"},{key:"BLACKDOG",value:"黑狗"},{key:"HENGLU",value:"恒路"},{key:"HYE",value:"鸿远"},{key:"HQKY",value:"华企"},{key:"JOUST",value:"急先达"},{key:"TMS",value:"加运美"},{key:"JIAJI",value:"佳吉"},{key:"JIAYI",value:"佳怡"},{key:"KERRY",value:"嘉里物流"},{key:"HREX",value:"锦程快递"},{key:"PEWKEE",value:"晋越"},{key:"KKE",value:"京广"},{key:"JIUYESCM",value:"九曳"},{key:"KYEXPRESS",value:"跨越速运"},{key:"FASTEXPRESS",value:"快捷"},{key:"LTS",value:"联昊通"},{key:"LBEX",value:"龙邦"},{key:"YIMIDIDA",value:"壹米滴答"},{key:"RRS",value:"日日顺物流"},{key:"YXWL",value:"宇鑫物流"},{key:"DJ56",value:"东骏快捷"},{key:"AYCA",value:"澳邮专线"},{key:"CITY100",value:"城市100"},{key:"D4PX",value:"递四方速递"},{key:"GTSD",value:"广通"},{key:"JTKD",value:"捷特快递"},{key:"MB",value:"民邦快递"},{key:"MLWL",value:"明亮物流"},{key:"PANEX",value:"泛捷快递"},{key:"QXT",value:"全信通"},{key:"SAD",value:'赛澳递"'},{key:"SDWL",value:"上大物流"},{key:"STWL",value:"速腾快递"},{key:"WJK",value:"万家康"},{key:"ZENY",value:"增益快递"},{key:"CAE",value:"民航"},{key:"ND56",value:"能达"},{key:"EFSPOST",value:"平安快递"},{key:"CHINZ56",value:"秦远物流"},{key:"QCKD",value:"全晨"},{key:"QFKD",value:"全峰"},{key:"APEX",value:"全一"},{key:"RFD",value:"如风达"},{key:"SFC",value:"三态"},{key:"SFWL",value:"盛丰"},{key:"SHENGHUI",value:"盛辉"},{key:"SDEX",value:"顺达快递"},{key:"SUNING",value:"苏宁"},{key:"SURE",value:"速尔"},{key:"HOAU",value:"天地华宇"},{key:"TTKDEX",value:"天天"},{key:"VANGEN",value:"万庚"},{key:"WANJIA",value:"万家物流"},{key:"EWINSHINE",value:"万象"},{key:"GZWENJIE",value:"文捷航空"},{key:"XBWL",value:"新邦"},{key:"XFEXPRESS",value:"信丰"},{key:"BROADASIA",value:"亚风"},{key:"YIEXPRESS",value:"宜送"},{key:"QEXPRESS",value:"易达通"},{key:"ETD",value:"易通达"},{key:"UC56",value:"优速"},{key:"CHINAPOST",value:"邮政包裹"},{key:"YFHEX",value:"原飞航"},{key:"YADEX",value:"源安达"},{key:"YCGWL",value:"远成"},{key:"YFEXPRESS",value:"越丰"},{key:"YTEXPRESS",value:"运通"},{key:"ZJS",value:"宅急送"},{key:"ZMKMEX",value:"芝麻开门"},{key:"COE",value:"中国东方"},{key:"CRE",value:"中铁快运"},{key:"ZTKY",value:"中铁物流"},{key:"CNPL",value:"中邮"},{key:"PEISI",value:"配思航宇"},{key:"BDT",value:"八达通"},{key:"CJKD",value:"城际快递"},{key:"FKD",value:"飞康达"},{key:"HQSY",value:"环球速运"},{key:"JAD",value:"捷安达"},{key:"JGWL",value:"景光物流"},{key:"MK",value:"美快"},{key:"PADTF",value:"平安达腾飞快递"},{key:"QRT",value:"全日通速递"},{key:"RFEX",value:"瑞丰速递"},{key:"SAWL",value:"圣安物流"},{key:"ST",value:"速通物流"},{key:"SUBIDA",value:"速必达物流"},{key:"XJ",value:"新洁物流"},{key:"ZYWL",value:"中邮物流"}]}]}},order:null,platform:{type:String,default:""},isEdit:{type:Boolean,default:!0},mailingMode:{type:Number,default:1}},created:function(){var e,t,a;switch(this.platform){case"tiktok":"string"===typeof this.order.sdata&&""!==this.order.sdata&&(this.order.sdata=JSON.parse(this.order.sdata)),(null===(e=this.order.sdata)||void 0===e||null===(t=e.packages)||void 0===t?void 0:t.length)>0&&(this.order.package_id=this.order.sdata.packages[0].id),null!==(a=this.order.sdata)&&void 0!==a&&a.warehouse_id&&(this.order.warehouse_id=this.order.sdata.warehouse_id),this.shopSelect(this.order.from_shop_id);break;case"rakuten":var o=JSON.parse(this.order.sdata),i=[];o.PackageModelList.forEach((function(e){var t={};t.basketId=e.basketId,t.item=[],e.ItemModelList.forEach((function(e){if(e.SkuModelList.length)var a=e.SkuModelList[0].variantId;t.item.push({title:e.itemName,sku_prop:a,price:e.price,shipping_num:e.units,delivery_company:"",Shipping_number:""})})),i.push(t)})),this.rakutenSdataSkuList=i;break}this.getOption()},methods:{getOption:function(){var e=this,t={};Object(s["i"])({page:1,limit:150}).then((function(a){for(var o=a.list,i=0;i<o.length;i++){var r=o[i],n=r.foreign_express;t[n]||(t[n]=[]),t[n].push({key:r.logistics_code,value:r.logistics_name})}return e.options[0].option=t[2],e.options[1].option=t[1],e.options}))},submit:function(){switch(this.platform){case"tiktok":this.form.package_id=this.form.package_id,this.form.logistics_name=this.form.tracking_name,this.form.body={shipping_provider_id:this.form.shipping_providers_id,tracking_number:this.form.shipment_id};break;case"rakuten":var e=[];this.rakutenSdataSkuList.forEach((function(t){var a={basketId:"",ShippingModelList:[]};a.basketId=t.basketId,a.ShippingModelList.push({deliveryCompany:t.delivery_company,shippingNumber:t.shipping_number}),e.push(a)}));var t={};t.orderNumber=this.order.order_id,t.BasketidModelList=e,this.form.logistics_name=this.form.tracking_name,this.form.body=t;break}this.$emit("update:form",this.form)},handleChange:function(e){this.form.logistics_name=e},shopSelect:function(e){var t=this;t.form.shops=[];var a={};a.tiktok_shop_id=e,Object(r["b"])(a).then((function(e){0===e.code&&(t.form.shop_cipher=e.shop_cipher,"US"===e.shop_region&&(t.isUs=!0),t.selectDelivery())}))},selectDelivery:function(){var e=this;e.shops_delivery=[],Object(r["e"])({ware_house_id:this.order.warehouse_id,shop_cipher:e.form.shop_cipher}).then((function(t){var a,o;0===t.code&&((null===(a=t.data)||void 0===a||null===(o=a.delivery_options)||void 0===o?void 0:o.length)>0&&(e.shops_delivery=t.data.delivery_options))}))},selectShippingProviders:function(){var e=this;e.shops_delivery_option=[],Object(r["y"])({delivery_option_id:e.form.delivery_option_id,shop_cipher:e.form.shop_cipher}).then((function(t){var a,o;0===t.code&&((null===(a=t.data)||void 0===a||null===(o=a.shipping_providers)||void 0===o?void 0:o.length)>0&&(e.shops_delivery_option=t.data.shipping_providers))}))},selectShopsDeliveryOption:function(e,t){var a=this.shops_delivery_option.find((function(t){return t.id===e}));this.form.shipping_providers_id=a.id,this.form.tracking_name=a.name},selectRakutenDeliveryCompanyName:function(e){var t=this.rakutenDeliveryCompany.find((function(t){return t.value===e}));t&&(this.form.tracking_name=t.name)},inputRakutenDeliveryCompanyCode:function(e){this.form.shipment_id=e.target._value}}},c=l,u=(a("5d54"),a("2877")),d=Object(u["a"])(c,o,i,!1,null,null,null);t["default"]=d.exports},"3b1b":function(e,t,a){"use strict";a.r(t);a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:12,type:"flex"}},["admin"==e.roles[0]?t("a-col",{attrs:{lg:7,xl:8,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop.seller")}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("seller-list",{on:{changeuser:e.changeUser}})],1)])],1):e._e(),"admin"==e.roles[0]&&e.userId?t("a-col",{attrs:{lg:6,xl:6,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop")}},[t("shop-select",{ref:"shopSelect",attrs:{userId:e.userId},on:{change:e.changeShop}})],1)],1):e._e(),e.userId?e._e():t("a-col",{attrs:{lg:11,xl:"admin"==e.roles[0]?6:8,xxl:"admin"==e.roles[0]?4:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.detail.item"),labelCol:{md:8,sm:8,lg:10},wrapperCol:{md:16,sm:16,lg:14}}},[t("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:e.changeItem}})],1)],1)],1),t("a-row",{attrs:{gutter:12,type:"flex"}},[t("a-col",{attrs:{lg:7,xl:8,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.orderno")}},[t("a-input",{attrs:{placeholder:e.$t("view.order.list.inputorderno"),"allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.orderId,callback:function(t){e.orderId=t},expression:"orderId"}})],1)],1),t("a-col",{attrs:{lg:6,xl:6,xxl:4,xs:24,md:12}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.user_select_title")}},[t("member-list",{attrs:{shopId:e.checkedShopId},on:{changeMember:e.changeMember}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,xxl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:6,xl:4,xxl:3},wrapperCol:{lg:18,xl:20,xxl:21}}},[t("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:e.exportTime,callback:function(t){e.exportTime=t},expression:"exportTime"}},[t("template",{slot:"renderExtraFooter"})],2)],1)],1),t("a-col",{attrs:{lg:24,xl:24,xxl:8}},[t("span",{staticClass:"table-page-search-submitButtons buttonsTools"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.order.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.order.list.reset.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.orderExport}},[t("a-icon"),e._v(e._s(e.$t("view.order.list.export.btn"))+" ")],1),t("syn-config",{attrs:{syn_idf:2}})],1)])],1),t("a-row",{attrs:{gutter:12,type:"flex"}},[t("a-col",{attrs:{lg:7,xl:7,xxl:6}},[t("a-form-item",{attrs:{label:e.$t("view.item.component.item.syn.syntype.title"),labelCol:{xl:10},wrapperCol:{xl:14}}},[t("platform",{attrs:{syntype:e.from_id,viewPlatform:2},on:{"update:syntype":function(t){e.from_id=t},selectPlatForm:e.changePlatForm}})],1)],1),e.platFormShops.length?t("a-col",{attrs:{lg:7,xl:6,xxl:4}},[t("a-form-item",{attrs:{label:e.$t("components.dyProduct.dyProduct.oauth.shopname")}},[t("a-select",{staticStyle:{width:"255px"},attrs:{allowClear:!0,placeholder:e.$t("components.dyProduct.dyProduct.shopname.placeholder")},model:{value:e.from_shop_id,callback:function(t){e.from_shop_id=t},expression:"from_shop_id"}},e._l(e.platFormShops,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1):e._e()],1)],1)],1)]),t("div",[t("view-select",{staticStyle:{display:"none"},on:{change:e.backViewId}}),e.showReviewModal?t("review-list",{ref:"ReviewList",on:{close:function(t){e.showReviewModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",attrs:{modalHeight:.8*e.windowHeight+""},on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),e.showFaHuoModal?t("review-list1",{ref:"ReviewList1",on:{ok:e.getList,close:function(t){e.showFaHuoModal=!1}}}):e._e(),e.showInsureModal?t("insure-list",{ref:"InsureList",on:{ok:e.getList,close:function(t){e.showInsureModal=!1}}}):e._e(),e.showModifyShipping?t("modify-shipping",{ref:"ModifyShipping",on:{ok:e.getList,close:function(t){e.showModifyShipping=!1}}}):e._e(),e.showHandlePayModal?t("handle-pay-list",{ref:"HandlePayList",on:{ok:e.getList,close:function(t){e.showHandlePayModal=!1}}}):e._e(),e.showCaiGouModal?t("caigou",{ref:"pushCaiGou",on:{ok:e.getList,close:function(t){e.showCaiGouModal=!1}}}):e._e(),t("stockAdd",{ref:"stockAdd"})],1),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){return e.orderQuery(t)}}},e._l(e.statusLists,(function(e){return t("a-tab-pane",{key:e.value,attrs:{tab:e.label}})})),1),t("advance-table",{attrs:{loading:e.loading,size:"middle","row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},"format-conditions":!1,columns:e.columns,"data-source":e.list,rowKey:"order_id",tableKey:"test-cat-catlist-table",expandedRowKeys:e.expandedRowKeys,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total_count,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},scroll:{x:"100%"},title:" "},scopedSlots:e._u([{key:"order_id",fn:function(a){var o=a.text,i=a.record;return t("span",{},[i.from_id?t("div",[e.shouldDisplayTag(i)?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.showTag(i))+" ")]):e._e()],1):e._e(),t("a",{on:{click:function(t){return e.handleOrderDetail(i)}}},[e._v(" "+e._s(o)+" ")]),t("div",[e._v(e._s(i.create_time))]),t("a",{attrs:{type:"primary"},on:{click:function(t){return e.orderPrint(i)}}},[e._v(e._s(e.$t("view.order.detail.print.btn")))]),t("br"),"admin"==e.roles[0]&&1!==i.shop_id?t("div",[t("supply-info",{attrs:{shopId:i.shop_id}})],1):e._e(),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:i}})],1)}},{key:"order_item",fn:function(a){var o=a.text,i=a.record;return t("span",{},e._l(o,(function(a,r){return t("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url},on:{click:function(t){return e.openItem(a)}}}),1==e.shopId?t("div",{staticStyle:{"margin-top":"0.5rem"}},[t("a-tag",{attrs:{color:2==a.mailing_mode?"red":"green"}},[1===e.shopId?t("div",[2==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):e._e(),1==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e(),0==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e()]):e._e(),1!==e.shopId?t("div",[2==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):e._e(),1==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e(),0==a.mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e()]):e._e()])],1):e._e()],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[t("a",{on:{click:function(t){return e.openItem(a)}}},[e._v(" "+e._s(a.title)+" ")])])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(" "+e._s(i.currency)+" "+e._s(a.price)+" ")]),t("a-col",{staticStyle:{"padding-left":"5px"}},[t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.num)+" ")],1),t("a-col",{staticStyle:{"padding-left":"5px"}},[a.activity_info&&a.activity_info.wholesaleprice_id>0?t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(1===e.wholesalePriceData.type?e.$t("view.order.list.discount",{start:e.wholesalePriceData.start_num,end:e.wholesalePriceData.end_num,discount:e.wholesalePriceData.price}):e.$t("view.order.list.price",{start:e.wholesalePriceData.start_num,end:e.wholesalePriceData.end_num,price:e.shopQuoteCurrency+e.wholesalePriceData.price}))+" ")]),t("a-tag",{attrs:{color:"#2db7f5"},on:{mouseover:function(t){return e.getOrderItemWholesalePrice(a.activity_info.wholesaleprice_id)}}},[e._v(" "+e._s(e.$t("view.item.wholesale.form.new_price"))+" ")])],2):e._e()],1)],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof a.sku_prop?t("span",[e._v(" "+e._s(a.sku_prop)+" ")]):t("span",e._l(a.sku_prop,(function(a,o){return t("div",{key:o},[t("span",[e._v(e._s(o)+":"+e._s(a))])])})),0)])],1),t("a-row",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.barcode"))+" : "+e._s(a.barcode)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.out_id"))+" : "),t("a",{on:{click:function(t){return e.handleStockAdd(a)}}},[e._v(" "+e._s(a.out_id))])]),a.stock_log?t("a-col",{attrs:{flex:3}},[t("div",[e._v(" "+e._s(e.$t("view.order.target.wareHouse"))+" : "),t("wareHouseInfo",{attrs:{isTag:!0,warehouseId:a.stock_log.warehouse_id}}),"ORDER_WAIT_SHIP"===i.status?t("span",[e._v("-")]):e._e(),"ORDER_WAIT_SHIP"===i.status?t("orderSwitchWareHouse",{attrs:{skuId:a.sku_id,orderId:i.order_id},on:{ok:e.getList}}):e._e()],1)]):e._e(),a.stock_log?t("a-col",{attrs:{flex:3}},[t("div",[t("webHookInfo",{attrs:{orderId:i.order_id,orderStatus:i.status,wareHouseId:a.stock_log.warehouse_id}})],1)]):e._e()],1),r<o.length-1?t("a-divider"):e._e()],1)])})),0)}},{key:"payment",fn:function(a){var o=a.text,i=a.record;return t("span",{},[""===i.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.biaojiahuobi"))+" : "+e._s(e.shopQuoteCurrency)+" "+e._s(o)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(i.trans_currency)+" "+e._s(i.trans_amount)+" ")])],1):e._e(),""!==i.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(i.currency)+" "+e._s(o)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var o=a.text;return t("span",{},[t("div",[e._v(" "+e._s(e.$t(o))+" ")])])}},{key:"paymemberInfo",fn:function(a){var o=a.record;return t("span",{},[t("a-row",[o?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.gangwei.list.realname"))+" : "+e._s(o.last_name||"")+" "+e._s(o.first_name||"")+" "),!o.member_id||"purchase"!=o.from_id&&"handlePay"!=o.from_id&&""!=o.from_id?e._e():t("message",{staticStyle:{display:"inline-block","margin-left":"5px"},attrs:{memberId:o.member_id}})],1):e._e(),o.phone&&""!=o.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(o.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(e.$t(o.country))+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(o.state)+" ")]),o.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(o.city)+" ")]):e._e(),o.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(o.street)+" ")]):e._e(),o.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(o.apartment)+" ")]):e._e(),o.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(o.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(o.member_note)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(o)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var o=a.record;return t("span",{},[t("a",{on:{click:function(t){return e.handleReview(o)}}},[e._v(" "+e._s(e.$t("view.order.list.review.btn"))+" ")]),t("span",[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleInsure(o)}}},[e._v(" "+e._s(e.$t("view.order.list.insure.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===o.status||"ORDER_PART_PAID"===o.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handlePay(o,!1)}}},[e._v(" "+e._s(e.$t("view.order.list.manual_pay"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"===o.status||"ORDER_PART_PAID"===o.status,expression:"record.status === 'ORDER_WAIT_PAYMENT' || record.status === 'ORDER_PART_PAID'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleCloseOrder(o,!1)}}},[e._v(" "+e._s(e.$t("view.order.list.closeOrder"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_PAYMENT"!==o.status&&"ORDER_PART_PAID"!==o.status&&"handlePay"===o.from_id,expression:"\n record.status !== 'ORDER_WAIT_PAYMENT' &&\n record.status !== 'ORDER_PART_PAID' &&\n record.from_id === 'handlePay'\n "}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handlePay(o,!0)}}},[e._v(" "+e._s(e.$t("view.order.list.manual_pay"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleFaHuo(o)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_AFTER_SALE"===o.status,expression:"record.status === 'ORDER_AFTER_SALE'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.handleCancelAfterSales(o)}}},[e._v(" "+e._s(e.$t("view.order.list.aftersale.cancel.btn"))+" ")])],1),t("span",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===o.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}]},[t("a-divider",{attrs:{type:"vertical"}}),t("a-popover",{attrs:{title:e.$t("view.order.list.reset.push.log.title"),trigger:"click",placement:"bottom"}},[t("template",{slot:"content"},[t("a-table",{attrs:{columns:e.logListTitle,"data-source":e.logData,pagination:{pageSize:3}}},[t("span",{attrs:{slot:"action"},slot:"action"},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.orderPush(o)}}},[e._v(" "+e._s(e.$t("view.order.list.reset.push.log.action.btn"))+" ")])],1)])],1),t("a",{attrs:{type:"primary"},on:{click:function(t){return e.orderPushLog(o)}}},[e._v(e._s(e.$t("view.order.list.reset.push.log")))])],2)],1),t("span",[t("a-divider",{attrs:{type:"vertical"}}),t("a",{on:{click:function(t){return e.pushCaiGou(o)}}},[e._v(e._s(e.$t("component.procure.create.button1")))])],1),t("div",[t("div",{attrs:{title:"订单备注"}},[o.user_note?t("a-tag",{staticStyle:{width:"80%"},attrs:{color:"orange"}},[e._v(e._s(o.user_note))]):e._e()],1),t("order-note",{attrs:{orderId:o.order_id,note:o.user_note},on:{ok:function(t){return e.getList()}}})],1)])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("ordersShips",{attrs:{orders:e.selectedRows||[]},on:{ok:e.okShips}})],1)])],1)],1)},i=[],r=a("5530"),n=a("6958"),s=Object(r["a"])({},n["default"]),l=s,c=(a("cd270"),a("2877")),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},5703:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"45%",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,layout:"vertical"}},[t("a-form-model-item",{attrs:{label:"参数编码",prop:"configKey"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configKey,callback:function(t){e.$set(e.form,"configKey",t)},expression:"form.configKey"}})],1),t("a-form-model-item",{attrs:{label:"参数名称",prop:"configName"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configName,callback:function(t){e.$set(e.form,"configName",t)},expression:"form.configName"}})],1),t("a-form-model-item",{attrs:{label:"参数值",prop:"configValue"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configValue,callback:function(t){e.$set(e.form,"configValue",t)},expression:"form.configValue"}})],1),t("a-form-model-item",{attrs:{label:"是否内置参数",prop:"configType"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.configType,callback:function(t){e.$set(e.form,"configType",t)},expression:"form.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-radio-button",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1),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),t("div",{staticClass:"bottom-control"},[t("a-space",[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保存 ")]),t("a-button",{on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)],1)],1)},i=[],r=a("5530"),n=a("1fc7"),s=Object(r["a"])({},n["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},"5af5":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalWidth:"640",modalHeight:"420"},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",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数编码",prop:"configKey"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configKey,callback:function(t){e.$set(e.form,"configKey",t)},expression:"form.configKey"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数名称",prop:"configName"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configName,callback:function(t){e.$set(e.form,"configName",t)},expression:"form.configName"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"参数值",prop:"configValue"}},[t("a-input",{attrs:{placeholder:"请输入"},model:{value:e.form.configValue,callback:function(t){e.$set(e.form,"configValue",t)},expression:"form.configValue"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:"是否内置参数",prop:"configType"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.configType,callback:function(t){e.$set(e.form,"configType",t)},expression:"form.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-radio-button",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),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),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"),n=a("1fc7"),s=Object(r["a"])({},n["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},"5d54":function(e,t,a){"use strict";a("a32b")},"7b2c":function(e,t,a){"use strict";a.r(t);a("99af"),a("b0c0");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:{span:6},wrapperCol:{span:18}}},[t("a-row",{attrs:{gutter:0}},[t("a-col",{attrs:{md:6,sm:24,lg:8}},[t("a-form-item",{attrs:{labelCol:{md:8,sm:6,lg:8},wrapperCol:{md:16,sm:16,lg:16},label:e.$t("table.mall_warehouse")}},[t("ware-house-select",{staticStyle:{width:"200px"},attrs:{isAll:"",wareHouseId:e.queryParam.warehouse_id},on:{change:e.changewarehouse}})],1)],1),t("a-col",{attrs:{md:6,sm:24,lg:8}},[t("a-form-item",{attrs:{labelCol:{md:8,sm:6,lg:8},wrapperCol:{md:16,sm:16,lg:16},label:e.$t("view.item.sku.out_id")}},[t("a-input",{attrs:{placeholder:e.$t("view.item.sku.out_id"),"allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.out_id,callback:function(t){e.$set(e.queryParam,"out_id",t)},expression:"queryParam.out_id"}})],1)],1),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.test.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.test.list.reset.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary"},on:{click:e.handleGoWareHouse}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("app.menus.left.item.warehouselist"))+" ")],1),t("ExcelData",{attrs:{tableData:e.List,page:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total,loadData:e.nextPageChange,fileName:e.$t("table.mall_warehouse_stock")}})],1)])],1)],1)],1)]),t("a-card",{attrs:{bordered:!1}},[t("stockAdd",{ref:"stockAdd",on:{ok:e.stockUpdateBack}}),t("wareHouseStockLogs",{ref:"wareHouseLogs"}),t("a-table",{ref:"kucunTable",attrs:{size:"middle",loading:e.loading,columns:e.clounms,"data-source":e.List,rowKey:function(e){return"".concat(e.warehouse_id,"_").concat(e.out_id)},defaultExpandAllRows:!0,expandedRowKeys:e.expKeys,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.warehouse.list.table.total",{num:a[0]+"-"+a[1],total:t})},pageSizeOptions:["5","10","20","50","100"],onChange:e.nextPageChange}},on:{expand:e.tableExpandChange},scopedSlots:e._u([{key:"expandedRowRender",fn:function(e){return[t("div",[t("outItem",{attrs:{outId:e.out_id}})],1)]}},{key:"out_id",fn:function(a,o){return t("span",{},[o&&o.warehouse?t("a",{staticStyle:{color:"#2f54eb"},on:{click:function(t){return e.handleStockAdd(o)}}},[e._v(" "+e._s(o.out_id)+" ")]):e._e()])}},{key:"title",fn:function(a,o){return t("span",{},[o?t("div",[t("div",[e._v(" "+e._s(o.title)+" "),t("stockNameUpdate",{attrs:{wareHouseId:o.warehouse_id,outId:o.out_id,title:o.title},on:{ok:function(t){return e.getList()}}})],1)]):e._e()])}},{key:"warehouse_name",fn:function(a,o){return t("span",{},[o&&o.warehouse?t("div",[e._v(" "+e._s(o.warehouse.name)+" ")]):e._e()])}},{key:"stock_quantity",fn:function(a,o){return t("span",{},[o&&o.warehouse?t("a",{staticStyle:{color:"#2f54eb"},on:{click:function(t){return e.handleStockAdd(o)}}},[e._v(" "+e._s(o.stock_quantity)+" ")]):e._e()])}},{key:"operation",fn:function(a,o){return[t("a",{staticStyle:{color:"#2f54eb"},on:{click:function(t){return e.handleStockLogsList(o)}}},[e._v(e._s(e.$t("view.item.skulist.stocklogs.model.title")))])]}}])})],1)],1)},i=[],r=a("5530"),n=a("2836"),s=Object(r["a"])({},n["default"]),l=s,c=a("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null);t["default"]=u.exports},a32b:function(e,t,a){},c611:function(e,t,a){"use strict";a.r(t);a("99af");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"参数编码"}},[t("a-input",{attrs:{placeholder:"请输入参数编码","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.configKey,callback:function(t){e.$set(e.queryParam,"configKey",t)},expression:"queryParam.configKey"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"参数名称"}},[t("a-input",{attrs:{placeholder:"请输入参数名称","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.configName,callback:function(t){e.$set(e.queryParam,"configName",t)},expression:"queryParam.configName"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"是否内置参数"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择","allow-clear":""},model:{value:e.queryParam.configType,callback:function(t){e.$set(e.queryParam,"configType",t)},expression:"queryParam.configType"}},e._l(e.typeOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"创建时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e.showAddModal?t("config-add-form",{ref:"configAddForm",attrs:{typeOptions:e.typeOptions},on:{ok:e.getList,close:function(t){e.showAddModal=!1}}}):e._e(),e.showEditModal?t("config-edit-form",{ref:"configEditForm",attrs:{typeOptions:e.typeOptions},on:{ok:e.getList,close:function(t){e.showEditModal=!1}}}):e._e(),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"系统参数",loading:e.loading,rowKey:"id",tableKey:"system-config-ConfigIndex-table",size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"configType",fn:function(a){a.text;var o=a.record;return t("span",{},[e._v(" "+e._s(e.typeFormat(o))+" ")])}},{key:"operation",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:edit"],expression:"['system:config:edit']"}],on:{click:function(t){return e.handleUpdate(o)}}},[e._v(" 修改 ")]),t("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],on:{click:function(t){return e.handleDelete(o)}}},[e._v(" 删除 ")])],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:add"],expression:"['system:config:add']"}],attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[t("a-icon",{attrs:{type:"plus"}}),e._v("新增 ")],1),e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:remove"],expression:"['system:config:remove']"}],on:{click:e.handleRefreshCache}},[t("a-icon",{attrs:{type:"redo"}}),e._v("刷新缓存 ")],1)],1)])],1)],1)},i=[],r=(a("d81d"),a("c0c3")),n=a("5703"),s=a("5af5"),l=a("5d9e"),c={name:"Config",components:{ConfigEditForm:n["default"],ConfigAddForm:s["default"],AdvanceTable:l["a"]},data:function(){return{showAddModal:!1,showEditModal:!1,list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],configNames:[],loading:!1,sunloading:!1,total:0,typeOptions:[],dateRange:[],labelCol:{span:10},wrapperCol:{span:14},queryParam:{pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},addModalRefName:"addModal",columns:[{title:"参数编码",dataIndex:"configKey",ellipsis:SVGComponentTransferFunctionElement,sswidth:"30%"},{title:"参数名称",dataIndex:"configName",ellipsis:!0,width:"15%"},{title:"参数值",dataIndex:"configValue",ellipsis:!0,width:"15%"},{title:"是否内置参数",dataIndex:"configType",scopedSlots:{customRender:"configType"},align:"center",width:"10%"},{title:"备注",dataIndex:"remark",ellipsis:!0,width:"15%"},{title:"创建时间",dataIndex:"createTime",scopedSlots:{customRender:"createTime"},width:"15%"},{title:"操作",dataIndex:"operation",width:"10%",align:"center",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_yes_no").then((function(t){e.typeOptions=t.data}))},computed:{},watch:{},methods:{getList:function(){var e=this;this.showAddModal=!1,this.showEditModal=!1,this.loading=!0,Object(r["g"])(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.list.map((function(e){e.operation=e.remark})),e.total=t.data.total,e.loading=!1}))},typeFormat:function(e){return this.selectDictLabel(this.typeOptions,e.configType)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,configName:void 0,configKey:void 0,configType:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.configNames=this.selectedRows.map((function(e){return e.configName})),this.single=1!==e.length,this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleAdd:function(){var e=this;this.showAddModal=!0,this.$nextTick((function(){return e.$refs.configAddForm.handleAdd()}))},handleUpdate:function(e){var t=this;this.showEditModal=!0,this.$nextTick((function(){return t.$refs.configEditForm.handleUpdate(e)}))},handleDelete:function(e){var t=this,a=e.id||this.ids,o=e.configName||this.configNames;this.$confirm({title:"确认删除所选中数据?",content:'当前选中名称为"'+o+'"的数据',onOk:function(){return Object(r["c"])(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(r["d"])(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})},handleRefreshCache:function(){var e=this;Object(r["h"])().then((function(t){e.$message.success("刷新成功",3)}))}}},u=c,d=a("2877"),m=Object(d["a"])(u,o,i,!1,null,null,null);t["default"]=m.exports},cd270:function(e,t,a){"use strict";a("f81e")},de96:function(e,t,a){"use strict";a.r(t);a("99af");var o=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登录地址"}},[t("a-input",{attrs:{placeholder:"请输入登录地址","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.ipaddr,callback:function(t){e.$set(e.queryParam,"ipaddr",t)},expression:"queryParam.ipaddr"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作信息"}},[t("a-input",{attrs:{placeholder:"请输入操作信息","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.msg,callback:function(t){e.$set(e.queryParam,"msg",t)},expression:"queryParam.msg"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"使用状态"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态","allow-clear":""},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},e._l(e.statusOptions,(function(a,o){return t("a-select-option",{key:o,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登录名称"}},[t("a-input",{staticStyle:{width:"100%"},attrs:{"allow-clear":""},model:{value:e.queryParam.loginName,callback:function(t){e.$set(e.queryParam,"loginName",t)},expression:"queryParam.loginName"}})],1)],1):e._e(),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"登陆时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"登录日志",loading:e.loading,rowKey:"id",tableKey:"monitor-logininfo-Logininfo-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"status",fn:function(a){a.text;var o=a.record;return t("span",{},[t("a-badge",{attrs:{status:"0"==o.status?"processing":"error",text:e.statusFormat(o)}})],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:LoginLog:remove"],expression:"['monitor:LoginLog:remove']"}],attrs:{type:"danger"},on:{click:e.handleClean}},[t("a-icon",{attrs:{type:"delete"}}),e._v("清空 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:LoginLog:export"],expression:"['system:LoginLog:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},i=[],r=(a("d81d"),a("b775"));function n(e){return Object(r["b"])({url:"/monitor/loginLog/page",method:"get",params:e})}function s(e){return Object(r["b"])({url:"/monitor/loginLog/"+e,method:"delete"})}function l(){return Object(r["b"])({url:"/monitor/loginLog/clean",method:"delete"})}function c(e){return Object(r["b"])({url:"/monitor/loginLog/export",method:"get",params:e})}var u=a("5d9e"),d={name:"LoginLog",components:{AdvanceTable:u["a"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,statusOptions:[],dateRange:[],labelCol:{span:6},wrapperCol:{span:18},queryParam:{pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},addModalRefName:"addModal",columns:[{title:"用户名称",dataIndex:"userName",align:"center"},{title:"登录地址",dataIndex:"ipaddr",align:"center"},{title:"登录地点",dataIndex:"loginLocation",align:"center"},{title:"浏览器",dataIndex:"browser",align:"center"},{title:"操作系统",dataIndex:"os",align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"操作信息",dataIndex:"msg",align:"center"},{title:"登录时间",dataIndex:"loginTime",align:"center"}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},computed:{},watch:{},methods:{onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},getList:function(){var e=this;this.loading=!0,n(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.total=t.data.total,e.loading=!1}))},statusFormat:function(e){return this.selectDictLabel(this.statusOptions,e.status)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,ipaddr:null,userName:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm({title:"确认删除所选中数据?",onOk:function(){return s(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var e=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有登录日志数据项",onOk:function(){return l().then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return c(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})}}},m=d,p=a("2877"),f=Object(p["a"])(m,o,i,!1,null,null,null);t["default"]=f.exports},f81e:function(e,t,a){}}]);
|
|
Binary file
|