No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

2 líneas
8.3 KiB

  1. webpackJsonp([44],{MZYG:function(e,t,n){var i=n("udZj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("31ed1456",i,!0)},NwOv:function(e,t,n){"use strict";function i(e){n("MZYG")}Object.defineProperty(t,"__esModule",{value:!0});var r=n("Rh3+"),o=n("usHN"),a=n("VU/8"),s=i,l=a(r.a,o.a,s,null,null);t.default=l.exports},ONX4:function(e,t,n){"use strict";function i(e){return n.i(u.a)({url:"/service-inventory/goods/catering/menus",method:"get",params:e})}function r(e){return n.i(u.a)({url:"/service-inventory/goods/catering/menus",method:"post",data:e})}function o(e){return n.i(u.a)({url:"/service-inventory/goods/catering/menus",method:"patch",data:e})}function a(e){return n.i(u.a)({url:"/service-inventory/goods/catering/menus/"+e,method:"delete"})}function s(e){return n.i(u.a)({url:"/service-inventory/goods/catering/menus/tags?preset=1",method:"get"})}function l(e){return n.i(u.a)({url:"/service-inventory/goods/catering/menus/"+e,method:"get"})}t.d=i,t.f=r,t.c=o,t.e=a,t.a=s,t.b=l;var u=n("Vo7i")},"Rh3+":function(e,t,n){"use strict";var i=n("ONX4"),r=n("g45I"),o=n("bXyT");t.a={created:function(){var e=this;n.i(i.a)().then(function(t){e.tagsType=t.result}),1==this.shopIds.length?(this.listQuery.shopId=this.shopIds[0],this.fetchData()):("user"==this.usertype?n.i(r.a)().then(function(t){e.shopList=t.result.rows,e.listQuery.shopId=t.result.rows[0].id}).then(function(){e.fetchData()}):n.i(o.a)({store:this.listQuery.shopId,industry:"1"}).then(function(t){e.cateType=t.result,console.log(e.cateType),e.listQuery.categories=""}).then(function(){e.fetchData()}),this.listLoading=!1)},watch:{"listQuery.shopId":function(){var e=this;n.i(o.a)({store:this.listQuery.shopId,industry:"1"}).then(function(t){e.cateType=t.result,e.cateType.unshift({id:"-1",name:"服务费"}),e.listQuery.categories=""})}},data:function(){return{shopIds:this.$store.getters.shopIds,usertype:this.$store.getters.usertype,shopList:[],dialogVisible:!1,list:null,listLoading:!0,listQuery:{id:"",shopId:"",name:"",categories:"",tags:"",onSale:"",limit:10,offset:0},currPage:1,total:null,cateType:[],tagsType:[],onSaleType:{1:"上架",0:"下架"}}},methods:{fetchData:function(){var e=this;this.listLoading=!0,n.i(i.d)(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(){n.i(i.e)(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 n in e)t.push(e[n]);return t.join("|")}}}},bXyT:function(e,t,n){"use strict";function i(e){return n.i(l.a)({url:"/service-inventory/goods/category/",method:"get",params:e})}function r(e){return n.i(l.a)({url:"/service-inventory/goods/category",method:"post",data:e})}function o(e,t){return n.i(l.a)({url:"/service-inventory/goods/category/"+e,method:"put",data:t})}function a(e){return n.i(l.a)({url:"/service-inventory/goods/category/re-order/",method:"post",data:e})}function s(e){return n.i(l.a)({url:"/service-inventory/goods/category/catering/"+e,method:"delete"})}t.a=i,t.e=r,t.d=o,t.b=a,t.c=s;var l=n("Vo7i")},g45I:function(e,t,n){"use strict";function i(e){return n.i(u.a)({url:"/service-org/shop/list",method:"get",params:e})}function r(e){return n.i(u.a)({url:"/unionService/shop/shop",method:"post",data:e})}function o(e){return n.i(u.a)({url:"/service-org/shop/detail?shopId="+e,method:"get"})}function a(e){return n.i(u.a)({url:"/unionService/shop/shop",method:"put",data:e})}function s(e){return n.i(u.a)({url:"/unionService/device/store",method:"put",data:e})}function l(e){return n.i(u.a)({url:"/service-org/shop/delete?shopId="+e,method:"DELETE"})}t.a=i,t.f=r,t.b=o,t.c=a,t.d=s,t.e=l;var u=n("Vo7i")},udZj:function(e,t,n){t=e.exports=n("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/goods/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:""}])},usHN:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{ref:"listQuery",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery,size:"small"}},[n("el-form-item",{attrs:{label:"名称",prop:"name"}},[n("el-input",{attrs:{placeholder:"名称"},model:{value:e.listQuery.name,callback:function(t){e.$set(e.listQuery,"name",t)},expression:"listQuery.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"类别",prop:"categories"}},[n("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.listQuery.categories,callback:function(t){e.$set(e.listQuery,"categories",t)},expression:"listQuery.categories"}},e._l(e.cateType,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:"上架状态",prop:"onSale"}},[n("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 n("el-option",{key:t,attrs:{label:e,value:t}})}))],1),e._v(" "),this.shopIds.length>1&&"user"==this.$store.getters.usertype?n("el-form-item",{attrs:{label:"门店",prop:""}},[n("el-select",{attrs:{placeholder:"门店"},model:{value:e.listQuery.shopId,callback:function(t){e.$set(e.listQuery,"shopId",t)},expression:"listQuery.shopId"}},e._l(e.shopList,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.fetchData}},[e._v("查询")]),e._v(" "),n("el-button",{on:{click:function(t){e.resetForm("listQuery")}}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"listbutton"},[n("router-link",{attrs:{to:"add"}},[n("el-button",{attrs:{type:"primary"}},[e._v("添加商品")])],1)],1),e._v(" "),n("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:""}},[n("el-table-column",{attrs:{align:"left",label:"名称",prop:"name"}}),e._v(" "),n("el-table-column",{attrs:{align:"left",label:"价格",prop:"price",width:"150"}}),e._v(" "),n("el-table-column",{attrs:{align:"left",label:"类别",prop:"cateName",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[-1==t.row.category?[e._v("服务费")]:e._e(),e._v("\n "+e._s(t.row.cateName)+"\n ")]}}])}),e._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"left",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("router-link",{attrs:{to:{path:"update/"+t.row.id}}},[n("el-button",{attrs:{size:"mini"}},[e._v("编辑")])],1),e._v(" "),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){e.handleDelete(t.row.id)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("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)},r=[],o={render:i,staticRenderFns:r};t.a=o}});
  2. //# sourceMappingURL=44.614098e4c652580da703.js.map