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.2 KiB

  1. webpackJsonp([49],{C4CJ:function(t,e,r){"use strict";function n(t){return r.i(f.a)({url:"/service-inventory/inventory/check-stock/list",method:"get",params:t})}function o(t){return r.i(f.a)({url:"/service-inventory/inventory/check-stock/detail",method:"get",params:t})}function i(t){return r.i(f.a)({url:"/service-inventory/inventory/check-stock/summary",method:"get",params:t})}function s(t){return r.i(f.a)({url:"/service-inventory/inventory/history",method:"get",params:t})}function a(t){return r.i(f.a)({url:"/service-inventory/inventory/list",method:"get",params:t})}function l(t){return r.i(f.a)({url:"/service-inventory/inventory/stockIn",method:"post",data:t})}function u(t){return r.i(f.a)({url:"/service-inventory/inventory/checkAdd",method:"post",data:t})}function c(t){return r.i(f.a)({url:"/service-inventory/inventory/userReturn",method:"post",data:t})}function p(t){return r.i(f.a)({url:"/service-inventory/inventory/goodsTake",method:"put",data:t})}function d(t){return r.i(f.a)({url:"/service-inventory/inventory/checkDec",method:"put",data:t})}function h(t){return r.i(f.a)({url:"/service-inventory/inventory/supReturn",method:"put",data:t})}function v(t){return r.i(f.a)({url:"/service-inventory/inventory/total-amount",method:"get",params:t})}e.c=n,e.a=o,e.b=i,e.l=s,e.d=a,e.f=l,e.g=u,e.h=c,e.i=p,e.j=d,e.k=h,e.e=v;var f=r("Vo7i")},LNVb:function(t,e,r){"use strict";function n(t){r("n5BE")}Object.defineProperty(e,"__esModule",{value:!0});var o=r("fzLX"),i=r("t8FX"),s=r("VU/8"),a=n,l=s(o.a,i.a,a,null,null);e.default=l.exports},N0iZ:function(t,e,r){e=t.exports=r("FZ+f")(!0),e.push([t.i,".box-card{margin:20px auto;height:60px;background-color:rgba(199,223,255,.2)}.box-card span{margin-left:30px}","",{version:3,sources:["D:/projects/gitLab/wxpos/posadmin/src/views/stock/inverntory/inverntoryAdd.vue"],names:[],mappings:"AACA,UACE,iBAA4B,AAC5B,YAAa,AACb,qCAA2C,CAC5C,AACD,eACE,gBAAkB,CACnB",file:"inverntoryAdd.vue",sourcesContent:["\n.box-card {\n margin: 20px auto 20px auto;\n height: 60px;\n background-color: rgba(199, 223, 255, 0.2);\n}\n.box-card span {\n margin-left: 30px;\n}\n"],sourceRoot:""}])},fzLX:function(t,e,r){"use strict";var n=r("g45I"),o=r("C4CJ");e.a={created:function(){var t=this;this.$route.query.pid?(this.show=!1,this.listQuery.checkId=this.$route.query.pid,this.selectlist()):r.i(n.a)({org:this.listQuery.org}).then(function(e){t.shopList=e.result.rows}).then(function(){t.listQuery.shopId=Number(t.$route.query.sid)})},data:function(){return{show:!0,win:0,loss:0,normal:0,usertype:this.$store.getters.usertype,operator:this.$store.getters.name,upurl:"http://ota.neusoft.com:28080/service-inventory/inventory/check-stock/import",listQuery:{shopId:"",checkId:"",limit:10,offset:0},currPage:1,total:null,manageList:[],shopList:[],list:[]}},methods:{downtmp:function(){window.open("http://ota.neusoft.com:28080/service-inventory/inventory/check-stock/export?shop_id="+this.listQuery.shopId)},shopChange:function(){this.selectlist()},selectlist:function(){var t=this;r.i(o.a)(this.listQuery).then(function(e){t.list=e.result.data,t.total=e.result.total}).then(function(){r.i(o.b)({check_id:t.listQuery.checkId}).then(function(e){t.win=e.result.win,t.loss=e.result.loss,t.normal=e.result.normal})})},handleSizeChange:function(t){this.listQuery.limit=t,this.listQuery.offset=(this.currPage-1)*t,this.selectlist()},handleCurrentChange:function(t){this.currPage=t,this.listQuery.offset=this.listQuery.limit*(t-1),this.selectlist()},fileerror:function(t,e,r){this.errlist=[],console.log(1,t)},filesucc:function(t,e,r){if(200!=t.code)return this.$message({message:t.message,type:"error",duration:3e3}),!1;this.listQuery.checkId=t.result,this.selectlist()}}}},g45I:function(t,e,r){"use strict";function n(t){return r.i(u.a)({url:"/service-org/shop/list",method:"get",params:t})}function o(t){return r.i(u.a)({url:"/unionService/shop/shop",method:"post",data:t})}function i(t){return r.i(u.a)({url:"/service-org/shop/detail?shopId="+t,method:"get"})}function s(t){return r.i(u.a)({url:"/unionService/shop/shop",method:"put",data:t})}function a(t){return r.i(u.a)({url:"/unionService/device/store",method:"put",data:t})}function l(t){return r.i(u.a)({url:"/service-org/shop/delete?shopId="+t,method:"DELETE"})}e.a=n,e.f=o,e.b=i,e.c=s,e.d=a,e.e=l;var u=r("Vo7i")},n5BE:function(t,e,r){var n=r("N0iZ");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r("rjj0")("3ea4f3e6",n,!0)},t8FX:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[t.show?r("div",[r("el-form",{ref:"listQuery",attrs:{model:t.listQuery,inline:""}},[r("el-form-item",{attrs:{label:"门店",prop:"org"}},[r("el-select",{attrs:{placeholder:"门店"},model:{value:t.listQuery.shopId,callback:function(e){t.$set(t.listQuery,"shopId",e)},expression:"listQuery.shopId"}},t._l(t.shopList,function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.downtmp}},[t._v("盘点导出")])],1),t._v(" "),r("div",{staticClass:"listbutton"},[r("el-upload",{staticStyle:{width:"100px",float:"left"},attrs:{action:t.upurl,"on-success":t.filesucc,"on-error":t.fileerror,"show-file-list":!1,accept:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",data:{shop_id:t.listQuery.shopId,operator:t.operator}}},[r("el-button",{attrs:{type:"success"}},[t._v("批量导入")])],1)],1)],1):t._e(),t._v(" "),r("br"),t._v(" "),r("el-card",{staticClass:"box-card"},[r("span",[t._v("盘盈:"+t._s(t.win))]),t._v(" "),r("span",[t._v("盘损:"+t._s(t.loss))]),t._v(" "),r("span",[t._v("正常:"+t._s(t.normal))])]),t._v(" "),r("el-table",{attrs:{data:t.list,"element-loading-text":"拼命加载中",border:"",fit:""}},[r("el-table-column",{attrs:{align:"center",label:"商品条码",prop:"goodsBarCode"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"商品名称",prop:"goodsName"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"类别",prop:"goodsCategory"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"供应商",prop:"supplier"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"规格",prop:"goodsUnit"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"数量",prop:"stockNum"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"盘点数量",prop:"checkNum"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"实际",prop:"diffNum"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.diffNum>0?[t._v("\n 盘盈\n ")]:t._e(),t._v(" "),e.row.diffNum<0?[t._v("\n 盘损\n ")]:t._e(),t._v(" "),0==e.row.diffNum?[t._v("\n 正常\n ")]:t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"差额数量",prop:"diffNum"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"备注",prop:"remark"}})],1),t._v(" "),r("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currPage,"page-sizes":[10,30,50,100],"page-size":t.listQuery.limit,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)},o=[],i={render:n,staticRenderFns:o};e.a=i}});
  2. //# sourceMappingURL=49.5d8065ffcf0cf322d7de.js.map