mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
2 lines
8.2 KiB
JavaScript
Vendored
2 lines
8.2 KiB
JavaScript
Vendored
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32da4b3e"],{2602:function(t,e,o){"use strict";o("9140")},"2f3d":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"conent"},[o("el-card",{attrs:{"body-style":{padding:"20px 20px 0 20px"}}},[o("el-form",{ref:"form",attrs:{inline:!0,model:t.form}},[o("el-form-item",{attrs:{label:"日期:"}},[o("el-date-picker",{attrs:{type:"date",placeholder:"日期"},model:{value:t.form.date,callback:function(e){t.$set(t.form,"date",e)},expression:"form.date"}})],1),o("el-form-item",{attrs:{label:"商品名称:"}},[o("el-input",{attrs:{placeholder:"商品名称"},model:{value:t.form.goods_title,callback:function(e){t.$set(t.form,"goods_title",e)},expression:"form.goods_title"}})],1),o("el-form-item",{attrs:{label:"商品编码:"}},[o("el-input",{attrs:{placeholder:"商品编码"},model:{value:t.form.goods_code,callback:function(e){t.$set(t.form,"goods_code",e)},expression:"form.goods_code"}})],1),o("el-form-item",{attrs:{label:"完整编码:"}},[o("el-input",{attrs:{placeholder:"完整编码"},model:{value:t.form.external_sku_id,callback:function(e){t.$set(t.form,"external_sku_id",e)},expression:"form.external_sku_id"}})],1),o("el-form-item",{attrs:{label:"货架号:"}},[o("el-input",{attrs:{placeholder:"货架号"},model:{value:t.form.location,callback:function(e){t.$set(t.form,"location",e)},expression:"form.location"}})],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.handleChoose}},[t._v("筛选")]),o("el-button",{attrs:{plain:""},on:{click:t.handleReChoose}},[t._v("重置筛选")]),o("el-upload",{ref:"myUpload",staticStyle:{display:"inline-block",margin:"0 10px 0 10px"},attrs:{action:"/api/goods_sku_location",multiple:!1,name:"goodsSkuLocation","show-file-list":!1,"on-success":t.uploadSuccess,"before-upload":t.beforeUpload,"on-error":t.uploadError}},[o("el-button",{attrs:{type:"primary",plain:""}},[t._v("商品货架导入")])],1)],1)],1)],1),o("el-card",{staticStyle:{"margin-top":"10px"}},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData}},[o("el-table-column",{attrs:{prop:"date",label:"日期"}}),o("el-table-column",{attrs:{label:"种类"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.goods.type.name)+" ")]}}])}),o("el-table-column",{attrs:{label:"品牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.goods.brand.name)+" ")]}}])}),o("el-table-column",{attrs:{label:"商品名称",prop:"goods_name"}}),o("el-table-column",{attrs:{label:"完整编码",prop:"external_sku_id"}}),o("el-table-column",{attrs:{label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.goods_sku.stock)+" ")]}}])}),o("el-table-column",{attrs:{prop:"location",label:"货架号"}}),o("el-table-column",{attrs:{prop:"today_init_num",label:"导入时数量"}})],1),o("div",{staticClass:"block"},[o("el-pagination",{attrs:{"current-page":t.current_page,"page-sizes":[15,50,100],"page-size":t.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.Paginationdata.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},a=[],r=o("5530"),i=o("c40e"),s={data:function(){return{form:{date:"",goods_title:"",goods_code:"",external_sku_id:"",location:""},dialogVisible:!1,loading:!0,tableData:[],Paginationdata:{},current_page:1,per_page:10}},mounted:function(){this.goodsSkuLocation()},methods:{goodsSkuLocation:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.page=this.current_page,e.per_page=this.per_page,Object(i["j"])(e).then((function(e){t.tableData=e.data.data,t.Paginationdata=e.data.meta})),this.loading=!1},handleSizeChange:function(t){this.current_page=1,this.per_page=t,this.goodsSkuLocation()},handleCurrentChange:function(t){this.current_page=t,this.goodsSkuLocation()},handleChoose:function(){this.form=Object(r["a"])(Object(r["a"])({},this.form),{},{page:1,per_page:this.per_page}),this.goodsSkuLocation(this.form)},handleReChoose:function(){this.form={shipping_status:"",is_supplier:"",cancel_status:"",after_sales_status:""},this.goodsSkuLocation()},beforeUpload:function(){this.loadingModule=this.$loading({lock:!0,text:"表格导入中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},uploadSuccess:function(t){this.$message({message:t.message,type:"success"}),this.loadingModule.close()},uploadError:function(t){this.$message({message:t.errorMessage,type:"error"}),this.loadingModule.close()}}},l=s,c=(o("2602"),o("2877")),u=Object(c["a"])(l,n,a,!1,null,"5c3641da",null);e["default"]=u.exports},"4de4":function(t,e,o){"use strict";var n=o("23e7"),a=o("b727").filter,r=o("1dde"),i=r("filter");n({target:"Array",proto:!0,forced:!i},{filter:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},5530:function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));o("b64b"),o("a4d3"),o("4de4"),o("e439"),o("159b"),o("dbb4");function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function r(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}},9140:function(t,e,o){},b64b:function(t,e,o){var n=o("23e7"),a=o("7b0b"),r=o("df75"),i=o("d039"),s=i((function(){r(1)}));n({target:"Object",stat:!0,forced:s},{keys:function(t){return r(a(t))}})},c40e:function(t,e,o){"use strict";o.d(e,"h",(function(){return a})),o.d(e,"a",(function(){return r})),o.d(e,"c",(function(){return i})),o.d(e,"i",(function(){return s})),o.d(e,"o",(function(){return l})),o.d(e,"n",(function(){return c})),o.d(e,"m",(function(){return u})),o.d(e,"k",(function(){return d})),o.d(e,"f",(function(){return p})),o.d(e,"j",(function(){return f})),o.d(e,"g",(function(){return g})),o.d(e,"e",(function(){return b})),o.d(e,"b",(function(){return m})),o.d(e,"d",(function(){return h})),o.d(e,"l",(function(){return _}));var n=o("adb5");function a(t){return Object(n["a"])({url:"/api/goods_skus",method:"get",params:t})}function r(t){return Object(n["a"])({url:"/api/goods",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/api/goods_skus/".concat(t),method:"get"})}function s(t){return Object(n["a"])({url:"/api/goods",method:"get",params:t})}function l(t,e){return Object(n["a"])({url:"/api/goods_skus/".concat(t),method:"patch",data:e})}function c(t){return Object(n["a"])({url:"/api/batch/goods_skus",method:"patch",data:t})}function u(t,e){return Object(n["a"])({url:"/api/single/goods_skus/".concat(t),method:"patch",data:e})}function d(t,e){return Object(n["a"])({url:"/api/upload",Headers:e,method:"post",data:t})}function p(t){return Object(n["a"])({url:"/api/goodsList",method:"get",params:t})}function f(t){return Object(n["a"])({url:"/api/goods_sku_location",method:"get",params:t})}function g(){return Object(n["a"])({url:"/api/stock/goods_skus",method:"get"})}function b(t){return Object(n["a"])({url:"/api/goods/filter/"+t,method:"get"})}function m(t){return Object(n["a"])({url:"/api/goods_combination",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/api/goods_combination",method:"get",params:t})}function _(t){return Object(n["a"])({url:"/api/goods_combination/"+t,method:"get"})}},dbb4:function(t,e,o){var n=o("23e7"),a=o("83ab"),r=o("56ef"),i=o("fc6a"),s=o("06cf"),l=o("8418");n({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){var e,o,n=i(t),a=s.f,c=r(n),u={},d=0;while(c.length>d)o=a(n,e=c[d++]),void 0!==o&&l(u,e,o);return u}})},e439:function(t,e,o){var n=o("23e7"),a=o("d039"),r=o("fc6a"),i=o("06cf").f,s=o("83ab"),l=a((function(){i(1)})),c=!s||l;n({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return i(r(t),e)}})}}]);
|
|
//# sourceMappingURL=chunk-32da4b3e.0151c647.js.map
|