You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 line
7.7 KiB

  1. webpackJsonp([51],{"3P7l":function(e,t,a){var r=a("RW/M");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("220acb18",r,!0)},Fpum:function(e,t,a){"use strict";function r(e){return a.i(u.a)({url:"/service-inventory/goods/retail/goods",method:"get",params:e})}function n(e){return a.i(u.a)({url:"/service-inventory/goods/retail/goods",method:"post",data:e})}function o(e){return a.i(u.a)({url:"/service-inventory/goods/retail/goods",method:"patch",data:e})}function i(e){return a.i(u.a)({url:"/service-inventory/goods/retail/goods/"+e,method:"delete"})}function l(e){return a.i(u.a)({url:"/service-inventory/goods/retail/goods/"+e,method:"get"})}function s(e){return a.i(u.a)({url:"/service-inventory/goods/retail/goods/batch",method:"post",data:e})}t.c=r,t.f=n,t.b=o,t.d=i,t.a=l,t.e=s;var u=a("Vo7i")},"J+ex":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"listQuery",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery,size:"small"}},[a("el-form-item",{attrs:{label:"条形码",prop:"barCode"}},[a("el-input",{attrs:{placeholder:"名称"},model:{value:e.listQuery.barCode,callback:function(t){e.$set(e.listQuery,"barCode",t)},expression:"listQuery.barCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"名称"},model:{value:e.listQuery.name,callback:function(t){e.$set(e.listQuery,"name",t)},expression:"listQuery.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"主类型",prop:"mainCategory"}},[a("el-input",{attrs:{placeholder:"主类型"},model:{value:e.listQuery.mainCategory,callback:function(t){e.$set(e.listQuery,"mainCategory",t)},expression:"listQuery.mainCategory"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"子类型",prop:"secondCategory"}},[a("el-input",{attrs:{placeholder:"子类型"},model:{value:e.listQuery.secondCategory,callback:function(t){e.$set(e.listQuery,"secondCategory",t)},expression:"listQuery.secondCategory"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"上架状态",prop:"onSale"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.listQuery.onSale,callback:function(t){e.$set(e.listQuery,"onSale",t)},expression:"listQuery.onSale"}},e._l(e.onSaleType,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})}))],1),e._v(" "),this.shopIds.length>1&&"user"==this.$store.getters.usertype?a("el-form-item",{attrs:{label:"门店",prop:"store"}},[a("el-select",{attrs:{placeholder:"门店",clearable:""},model:{value:e.listQuery.store,callback:function(t){e.$set(e.listQuery,"store",t)},expression:"listQuery.store"}},e._l(e.shopList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.fetchData}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:function(t){e.resetForm("listQuery")}}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"listbutton"},[a("router-link",{attrs:{to:"add"}},[a("el-button",{attrs:{type:"primary"}},[e._v("添加商品")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:e.list,"element-loading-text":"拼命加载中",border:"",fit:""}},[a("el-table-column",{attrs:{label:"条形码",align:"center",prop:"barCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品名称",align:"center",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"价格",align:"center",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"unit"}}),e._v(" "),a("el-table-column",{attrs:{label:"主类型",align:"center",prop:"mainCategory"}}),e._v(" "),a("el-table-column",{attrs:{label:"子类型",align:"center",prop:"secondCategory"}}),e._v(" "),a("el-table-column",{attrs:{align:"left",label:"上架状态",prop:"onSale",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.onSaleType[t.row.onSale])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{attrs:{to:{path:"update/"+t.row.id}}},[a("el-button",{attrs:{size:"mini"}},[e._v("编辑")])],1),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.handleDelete(t.row.id)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":e.currPage,"page-sizes":[10,30,50,100],"page-size":e.listQuery.limit,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)},n=[],o={render:r,staticRenderFns:n};t.a=o},"RW/M":function(e,t,a){t=e.exports=a("FZ+f")(!0),t.push([e.i,".demo-table-expand{margin-top:-30px;font-size:0}.demo-table-expand label{width:90px;color:#99a9bf}.demo-table-expand .el-form-item{margin-right:0;margin-bottom:0;width:50%}","",{version:3,sources:["D:/projects/gitLab/wxpos/posadmin/src/views/stock/retail/index.vue"],names:[],mappings:"AACA,mBACI,iBAAkB,AAClB,WAAa,CAChB,AACD,yBACI,WAAY,AACZ,aAAe,CAClB,AACD,iCACI,eAAgB,AAChB,gBAAiB,AACjB,SAAW,CACd",file:"index.vue",sourcesContent:["\n.demo-table-expand {\n margin-top: -30px;\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n"],sourceRoot:""}])},bp1d:function(e,t,a){"use strict";var r=a("Fpum"),n=a("g45I");t.a={created:function(){var e=this;1==this.shopIds.length?(this.listQuery.store=this.shopIds[0],this.fetchData()):(a.i(n.a)().then(function(t){e.shopList=t.result.rows}),this.listLoading=!1),this.fetchData()},data:function(){return{shopIds:this.$store.getters.shopIds,shopList:[],dialogVisible:!1,list:null,listLoading:!0,listQuery:{store:"",name:"",barCode:"",mainCategory:"",secondCategory:"",onSale:"",limit:10,offset:0},currPage:1,total:null,cateType:[],tagsType:[],onSaleType:{1:"上架",0:"下架"}}},methods:{fetchData:function(){var e=this;this.listLoading=!0,a.i(r.c)(this.listQuery).then(function(t){e.list=t.result.data,e.total=t.result.total,e.listLoading=!1})},resetForm:function(e){this.$refs[e].resetFields()},handleDelete:function(e){var t=this;this.$confirm("此操作将删除您所选的数据, 是否继续?","",{type:"warning",center:!0}).then(function(){a.i(r.d)(e).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.fetchData()})}).catch(function(){})},handleSizeChange:function(e){this.listQuery.limit=e,this.listQuery.offset=(this.currPage-1)*e,this.fetchData()},handleCurrentChange:function(e){this.currPage=e,this.listQuery.offset=this.listQuery.limit*(e-1),this.fetchData()}},filters:{formatTag:function(e){var t=[];for(var a in e)t.push(e[a]);return t.join("|")}}}},g45I:function(e,t,a){"use strict";function r(e){return a.i(u.a)({url:"/service-org/shop/list",method:"get",params:e})}function n(e){return a.i(u.a)({url:"/unionService/shop/shop",method:"post",data:e})}function o(e){return a.i(u.a)({url:"/service-org/shop/detail?shopId="+e,method:"get"})}function i(e){return a.i(u.a)({url:"/unionService/shop/shop",method:"put",data:e})}function l(e){return a.i(u.a)({url:"/unionService/device/store",method:"put",data:e})}function s(e){return a.i(u.a)({url:"/service-org/shop/delete?shopId="+e,method:"DELETE"})}t.a=r,t.f=n,t.b=o,t.c=i,t.d=l,t.e=s;var u=a("Vo7i")},r5ia:function(e,t,a){"use strict";function r(e){a("3P7l")}Object.defineProperty(t,"__esModule",{value:!0});var n=a("bp1d"),o=a("J+ex"),i=a("VU/8"),l=r,s=i(n.a,o.a,l,null,null);t.default=s.exports}});
  2. //# sourceMappingURL=51.aa491985c0fb3276c61e.js.map