UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 3.56 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8c428098"],{"1b6c":function(t,e,o){"use strict";o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return a}));var i=o("5530"),s=o("bf0f");function n(t,e){return function(){return Object(s["b"])(t,Object(i["a"])({},e))}}function a(t,e){return Object(s["b"])(t,Object(i["a"])({},e))}},"26e9":function(t,e,o){"use strict";o.r(e);var i=o("5530"),s=o("aabf"),n=o("2f62"),a=o("1b6c");e["default"]={name:"searchcustoms",data:function(){return{bar_code:"",good_name:"",hsCode:[],unit_2:Object(a["b"])("view.item.filings.index.null"),keywords:"",page:1,goodList:[],dataSource:[],count:0,columns:[{title:Object(a["b"])("view.item.filings.customs.search.goods_name.title"),dataIndex:"goods_name"},{title:Object(a["b"])("view.item.filings.customs.search.bar_code.title"),dataIndex:"bar_code"},{title:Object(a["b"])("view.item.filings.customs.search.goods_spec.title"),dataIndex:"goods_spec"},{title:Object(a["b"])("view.item.filings.customs.search.hs_code.title"),dataIndex:"hs_code"},{title:Object(a["b"])("view.item.filings.customs.search.gtinCode.title"),dataIndex:"gtinCode"},{title:Object(a["b"])("view.item.filings.customs.search.grossWeight.title"),dataIndex:"grossWeight"},{title:Object(a["b"])("view.item.filings.customs.search.tax.title"),dataIndex:"tax_rate"}],ModalText:"",visible:!1}},computed:Object(i["a"])({},Object(n["c"])(["shopId"])),created:function(){},methods:{searchCustomsItem:function(){var t=this,e=this.good_name;if(e){var o=this,i={good_name:e,shop_id:o.shopId,page:o.page};Object(s["f"])(i).then((function(e){"1"===e.item.code&&e.item.data?(t.dataSource=e.item.data,t.count=e.item.total_count):(t.$message.error(Object(a["b"])("view.item.filings.customs.search.error")),t.dataSource=[])}))}else this.dataSource=[]},searchBarCodeCustomsItem:function(){var t=this,e=this.bar_code;if(e){var o=this,i={bar_code:e,shop_id:o.shopId,page:o.page};Object(s["f"])(i).then((function(e){"1"===e.item.code&&e.item.data?(t.dataSource=e.item.data,t.count=e.item.total_count):(t.$message.error(Object(a["b"])("view.item.filings.customs.search.error")),t.dataSource=[])}))}else this.dataSource=[]},changeSize:function(t,e){this.page=t,this.good_name?this.searchCustomsItem():this.bar_code&&this.searchBarCodeCustomsItem()}}}},aabf:function(t,e,o){"use strict";o.d(e,"d",(function(){return n})),o.d(e,"a",(function(){return a})),o.d(e,"c",(function(){return d})),o.d(e,"b",(function(){return c})),o.d(e,"e",(function(){return r})),o.d(e,"h",(function(){return u})),o.d(e,"g",(function(){return b})),o.d(e,"f",(function(){return m}));var i=o("b775"),s={goodlist:"/good/list",goodadd:"/good/add",goodsInfo:"/good/info",goodsDelete:"/good/delete",goodsSubAdd:"/good/sub/add",itemFilingAdd:"/good/filing/add",searchSkuInfo:"/good/sku/search",searchHsCodeInfo:"/good/hscode/search",searchCustomsItem:"/good/customs_item/search"};function n(t){return Object(i["b"])({url:s.goodlist,method:"post",data:t})}function a(t){var e=t.view_id?s.goodsSubAdd:s.goodadd;return Object(i["b"])({url:e,method:"post",data:t})}function d(t){return Object(i["b"])({url:s.goodsInfo,method:"post",data:t})}function c(t){return Object(i["b"])({url:s.goodsDelete,method:"post",data:t})}function r(t){return Object(i["b"])({url:s.itemFilingAdd,method:"post",data:t})}function u(t){return Object(i["b"])({url:s.searchSkuInfo,method:"post",data:t})}function b(t){return Object(i["b"])({url:s.searchHsCodeInfo,method:"post",data:t})}function m(t){return Object(i["b"])({url:s.searchCustomsItem,method:"post",data:t})}}}]);