UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 5.28 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79c31fbc","chunk-8c428098"],{"1b6c":function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var a=o("5530"),s=o("bf0f");function i(t,e){return function(){return Object(s["b"])(t,Object(a["a"])({},e))}}function n(t,e){return Object(s["b"])(t,Object(a["a"])({},e))}},"26e9":function(t,e,o){"use strict";o.r(e);var a=o("5530"),s=o("aabf"),i=o("5880"),n=o("1b6c");e["default"]={name:"searchcustoms",data:function(){return{bar_code:"",good_name:"",hsCode:[],unit_2:Object(n["b"])("view.item.filings.index.null"),keywords:"",page:1,goodList:[],dataSource:[],count:0,columns:[{title:Object(n["b"])("view.item.filings.customs.search.goods_name.title"),dataIndex:"goods_name"},{title:Object(n["b"])("view.item.filings.customs.search.bar_code.title"),dataIndex:"bar_code"},{title:Object(n["b"])("view.item.filings.customs.search.goods_spec.title"),dataIndex:"goods_spec"},{title:Object(n["b"])("view.item.filings.customs.search.hs_code.title"),dataIndex:"hs_code"},{title:Object(n["b"])("view.item.filings.customs.search.gtinCode.title"),dataIndex:"gtinCode"},{title:Object(n["b"])("view.item.filings.customs.search.grossWeight.title"),dataIndex:"grossWeight"},{title:Object(n["b"])("view.item.filings.customs.search.tax.title"),dataIndex:"tax_rate"}],ModalText:"",visible:!1}},computed:Object(a["a"])({},Object(i["mapGetters"])(["shopId"])),created:function(){},methods:{searchCustomsItem:function(){var t=this,e=this.good_name;if(e){var o=this,a={good_name:e,shop_id:o.shopId,page:o.page};Object(s["f"])(a).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(n["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,a={bar_code:e,shop_id:o.shopId,page:o.page};Object(s["f"])(a).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(n["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()}}}},7309:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px",padding:"10px"},attrs:{bordered:!1}},[e("a-form-model",t._b({ref:"form"},"a-form-model",{labelCol:{span:24}},!1),[e("a-row",{staticClass:"form-row",attrs:{gutter:24}},[e("a-col",{attrs:{lg:12,md:12,sm:12}},[e("a-form-model-item",{attrs:{label:t.$t("view.item.filings.index.bar_code")}},[e("a-input",{staticStyle:{width:"85%"},attrs:{placeholder:t.$t("view.item.filings.index.bar_code")},model:{value:t.bar_code,callback:function(e){t.bar_code=e},expression:"bar_code"}}),e("a-button",{staticStyle:{margin:"0px 8px"},attrs:{type:"primary"},on:{click:t.searchBarCodeCustomsItem}},[t._v(t._s(t.$t("view.list.search.btn")))])],1)],1),e("a-col",{attrs:{lg:12,md:12,sm:12}},[e("a-form-model-item",{attrs:{label:t.$t("view.item.filings.index.goods_name")}},[e("a-input",{staticStyle:{width:"85%"},attrs:{placeholder:t.$t("view.item.filings.index.goods_name")},model:{value:t.good_name,callback:function(e){t.good_name=e},expression:"good_name"}}),e("a-button",{staticStyle:{margin:"0px 8px"},attrs:{type:"primary"},on:{click:t.searchCustomsItem}},[t._v(t._s(t.$t("view.list.search.btn")))])],1)],1)],1),e("a-row",{staticClass:"form-row",attrs:{gutter:24}},[e("a-table",{attrs:{pagination:{current:t.page,pageSize:20,total:t.count,showLessItems:!1,showQuickJumper:!1,onChange:t.changeSize},bordered:"","data-source":t.dataSource,columns:t.columns}},[e("template",{slot:"operation"})],2)],1)],1)],1)],1)},s=[],i=o("5530"),n=o("26e9"),r=Object(i["a"])({},n["default"]),c=r,d=o("2877"),u=Object(d["a"])(c,a,s,!1,null,null,null);e["default"]=u.exports},aabf:function(t,e,o){"use strict";o.d(e,"d",(function(){return i})),o.d(e,"a",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"b",(function(){return c})),o.d(e,"e",(function(){return d})),o.d(e,"h",(function(){return u})),o.d(e,"g",(function(){return l})),o.d(e,"f",(function(){return m}));var a=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 i(t){return Object(a["b"])({url:s.goodlist,method:"post",data:t})}function n(t){var e=t.view_id?s.goodsSubAdd:s.goodadd;return Object(a["b"])({url:e,method:"post",data:t})}function r(t){return Object(a["b"])({url:s.goodsInfo,method:"post",data:t})}function c(t){return Object(a["b"])({url:s.goodsDelete,method:"post",data:t})}function d(t){return Object(a["b"])({url:s.itemFilingAdd,method:"post",data:t})}function u(t){return Object(a["b"])({url:s.searchSkuInfo,method:"post",data:t})}function l(t){return Object(a["b"])({url:s.searchHsCodeInfo,method:"post",data:t})}function m(t){return Object(a["b"])({url:s.searchCustomsItem,method:"post",data:t})}}}]);