Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

2 wiersze
12 KiB

  1. webpackJsonp([32],{"0xDb":function(e,t,r){"use strict";function o(e,t){if(0===arguments.length)return null;var r=t||"{y}-{m}-{d} {h}:{i}:{s}",o=void 0;"object"===(void 0===e?"undefined":n()(e))?o=e:(10===(""+e).length&&(e=1e3*parseInt(e)),o=new Date(e));var i={y:o.getFullYear(),m:o.getMonth()+1,d:o.getDate(),h:o.getHours(),i:o.getMinutes(),s:o.getSeconds(),a:o.getDay()};return r.replace(/{(y|m|d|h|i|s|a)+}/g,function(e,t){var r=i[t];return"a"===t?["一","二","三","四","五","六","日"][r-1]:(e.length>0&&r<10&&(r="0"+r),r||0)})}t.a=o;var i=r("pFYg"),n=r.n(i)},"4abJ":function(e,t,r){"use strict";function o(e){r("5GVP")}Object.defineProperty(t,"__esModule",{value:!0});var i=r("Q2Yq"),n=r("FmUk"),a=r("VU/8"),s=o,l=a(i.a,n.a,s,null,null);t.default=l.exports},"5GVP":function(e,t,r){var o=r("RNMe");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);r("rjj0")("b232fd0a",o,!0)},C4CJ:function(e,t,r){"use strict";function o(e){return r.i(g.a)({url:"/service-inventory/inventory/check-stock/list",method:"get",params:e})}function i(e){return r.i(g.a)({url:"/service-inventory/inventory/check-stock/detail",method:"get",params:e})}function n(e){return r.i(g.a)({url:"/service-inventory/inventory/check-stock/summary",method:"get",params:e})}function a(e){return r.i(g.a)({url:"/service-inventory/inventory/history",method:"get",params:e})}function s(e){return r.i(g.a)({url:"/service-inventory/inventory/list",method:"get",params:e})}function l(e){return r.i(g.a)({url:"/service-inventory/inventory/stockIn",method:"post",data:e})}function u(e){return r.i(g.a)({url:"/service-inventory/inventory/checkAdd",method:"post",data:e})}function d(e){return r.i(g.a)({url:"/service-inventory/inventory/userReturn",method:"post",data:e})}function c(e){return r.i(g.a)({url:"/service-inventory/inventory/goodsTake",method:"put",data:e})}function h(e){return r.i(g.a)({url:"/service-inventory/inventory/checkDec",method:"put",data:e})}function p(e){return r.i(g.a)({url:"/service-inventory/inventory/supReturn",method:"put",data:e})}function m(e){return r.i(g.a)({url:"/service-inventory/inventory/total-amount",method:"get",params:e})}t.c=o,t.a=i,t.b=n,t.l=a,t.d=s,t.f=l,t.g=u,t.h=d,t.i=c,t.j=h,t.k=p,t.e=m;var g=r("Vo7i")},FmUk:function(e,t,r){"use strict";var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"listQuery",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery}},[r("el-form-item",{attrs:{label:"门店",prop:""}},[r("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 r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"商品条码",prop:"goodsBarCode"}},[r("el-input",{attrs:{placeholder:"商品条码"},model:{value:e.listQuery.goodsBarCode,callback:function(t){e.$set(e.listQuery,"goodsBarCode","string"==typeof t?t.trim():t)},expression:"listQuery.goodsBarCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"商品名称",prop:"goodsName"}},[r("el-input",{attrs:{placeholder:"商品名称"},model:{value:e.listQuery.goodsName,callback:function(t){e.$set(e.listQuery,"goodsName","string"==typeof t?t.trim():t)},expression:"listQuery.goodsName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"类别",prop:"goodsCategory"}},[r("el-input",{attrs:{placeholder:"类别"},model:{value:e.listQuery.goodsCategory,callback:function(t){e.$set(e.listQuery,"goodsCategory","string"==typeof t?t.trim():t)},expression:"listQuery.goodsCategory"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"更新时间",prop:"orederTime"}},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd","picker-options":e.dateOption},on:{change:e.chaDate},model:{value:e.orederTime,callback:function(t){e.orederTime=t},expression:"orederTime"}})],1),e._v(" "),r("br"),e._v(" "),r("el-form-item",{attrs:{label:"",prop:"dateCho"}},[r("el-radio-group",{on:{change:e.chaDatetype},model:{value:e.dateCho,callback:function(t){e.dateCho=t},expression:"dateCho"}},[r("el-radio-button",{attrs:{label:"1"}},[e._v("当日")]),e._v(" "),r("el-radio-button",{attrs:{label:"2"}},[e._v("本月")]),e._v(" "),e._l(e.dateList,function(e){return r("el-radio-button",{key:e,attrs:{label:e}})})],2)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.fetchData}},[e._v("查询")]),e._v(" "),r("el-button",{on:{click:function(t){e.resetForm("listQuery")}}},[e._v("重置")]),e._v(" "),r("el-button",{attrs:{type:"success"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),r("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:""}},[r("el-table-column",{attrs:{align:"center",label:"更新时间",prop:"createdTime",width:"155px"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"商品条码",prop:"goodsBarCode"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"商品名称",prop:"goodsName"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"类别",prop:"goodsCategory"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作类型",prop:"actionType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.ctype[t.row.actionType])+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"上期剩余库存",prop:"residueNum"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"本期变动库存",prop:"varNum"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"单价",prop:"inPrice"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"金额",prop:"newInventoryAmount"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"总库存",prop:"newStorageNum"}})],1),e._v(" "),r("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)},i=[],n={render:o,staticRenderFns:i};t.a=n},M6dI:function(e,t,r){"use strict";function o(e){return r.i(a.a)({url:"/service-inventory/inventory/supplier/list",method:"get",params:e})}function i(e){var t="post";return e.id&&(t="put"),r.i(a.a)({url:"/service-inventory/inventory/supplier/",method:t,data:e})}function n(e){return r.i(a.a)({url:"/service-inventory/inventory/supplier/"+e,method:"delete"})}t.a=o,t.c=i,t.b=n;var a=r("Vo7i")},Q2Yq:function(e,t,r){"use strict";var o=r("C4CJ"),i=r("g45I"),n=(r("M6dI"),r("0xDb"));t.a={created:function(){var e=this;this.$route.query.goodsBarCode&&(this.listQuery.goodsBarCode=this.$route.query.goodsBarCode),console.log(this.$route.name),"入库流水"==this.$route.name?this.listQuery.actionDire=1:"出库流水"==this.$route.name&&(this.listQuery.actionDire=-1),1==this.shopIds.length?(this.$route.query.sid?this.listQuery.shopId=this.$route.query.sid:this.listQuery.shopId=this.shopIds[0],this.fetchData()):(r.i(i.a)().then(function(t){e.shopList=t.result.rows,e.$route.query.sid?e.listQuery.shopId=Number(e.$route.query.sid):e.listQuery.shopId=t.result.rows[0].id}).then(function(){e.fetchData()}),this.listLoading=!1)},data:function(){return{shopIds:this.$store.getters.shopIds,usertype:this.$store.getters.usertype,shopList:[],dialogVisible:!1,list:null,listLoading:!0,orederTime:"",dateCho:"",listQuery:{shopId:"",goodsBarCode:"",goodsName:"",goodsCategory:"",startDate:"",endDate:"",limit:10,offset:0},ctype:{10:"进货",11:"用户退货",12:"盘盈",20:"向供应货退货",21:"销售",22:"盘损",23:"领用"},currPage:1,total:null,dateOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},computed:{dateList:function(){for(var e=new Date,t=e.getFullYear(),r=e.getMonth()+1,o=new Array,i=0;i<5;i++)r-=1,r<=0&&(t-=1,r+=12),r<10&&(r="0"+r),o[i]=t+"-"+r;return o}},methods:{chaDate:function(e){if(console.log(e),e){this.dateCho="";var t=new Date;this.listQuery.startDate=e[0],this.listQuery.endDate=e[1]}else{var t=new Date;this.listQuery.startDate=r.i(n.a)(t,"{y}-{m}-{d}"),this.listQuery.endDate=r.i(n.a)(t,"{y}-{m}-{d}"),this.dateCho="1"}this.listQuery.timeMode=1},chaDatetype:function(){if(this.orederTime="",1==this.dateCho){var e=new Date;this.listQuery.startDate=r.i(n.a)(e,"{y}-{m}-{d}"),this.listQuery.endDate=r.i(n.a)(e,"{y}-{m}-{d}")}else if(2==this.dateCho){var e=new Date;this.listQuery.startDate=r.i(n.a)(e,"{y}-{m}-01"),this.listQuery.endDate=r.i(n.a)(e,"{y}-{m}-31")}else this.listQuery.startDate=this.dateCho+"-01",this.listQuery.endDate=this.dateCho+"-31";this.fetchData()},fetchData:function(){var e=this;""==this.listQuery.shopId?this.$message({message:"请选择门店",center:!0,type:"warning"}):(this.listLoading=!0,r.i(o.l)(this.listQuery).then(function(t){e.list=t.result.data,e.total=t.result.total,e.listLoading=!1}))},resetForm:function(e){this.orederTime="",this.dateCho="",this.$refs[e].resetFields(),this.listQuery.startDate="",this.listQuery.endDate=""},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()},handleDownload:function(){var e=this;r.e(89).then(r.bind(null,"zWO4")).then(function(t){var i=["更新时间","商品条码","商品名称","类别","操作类型","上期剩余库存","本期变动库存","单价","金额","总库存"],n=["createdTime","goodsBarCode","goodsName","goodsCategory","actionType","residueNum","varNum","inPrice","newInventoryAmount","newStorageNum"];e.listQuery.isPage=!1,r.i(o.l)(e.listQuery).then(function(r){var o=r.result.data,a=e.formatJson(n,o);t.export_json_to_excel(i,a,"流水列表"),e.listQuery.isPage=!0})})},formatJson:function(e,t){var r=this;return t.map(function(t){return e.map(function(e){return"actionType"==e?r.ctype[t[e]]:t[e]})})}}}},RNMe:function(e,t,r){t=e.exports=r("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%}.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/history.vue"],names:[],mappings:"AACA,mBACE,iBAAkB,AAClB,WAAa,CACd,AACD,yBACE,WAAY,AACZ,aAAe,CAChB,AACD,iCACE,eAAgB,AAChB,gBAAiB,AACjB,SAAW,CACZ,AACD,UACE,iBAA4B,AAC5B,YAAa,AACb,qCAA2C,CAC5C,AACD,eACE,gBAAkB,CACnB",file:"history.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.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:""}])},g45I:function(e,t,r){"use strict";function o(e){return r.i(u.a)({url:"/service-org/shop/list",method:"get",params:e})}function i(e){return r.i(u.a)({url:"/unionService/shop/shop",method:"post",data:e})}function n(e){return r.i(u.a)({url:"/service-org/shop/detail?shopId="+e,method:"get"})}function a(e){return r.i(u.a)({url:"/unionService/shop/shop",method:"put",data:e})}function s(e){return r.i(u.a)({url:"/unionService/device/store",method:"put",data:e})}function l(e){return r.i(u.a)({url:"/service-org/shop/delete?shopId="+e,method:"DELETE"})}t.a=o,t.f=i,t.b=n,t.c=a,t.d=s,t.e=l;var u=r("Vo7i")}});
  2. //# sourceMappingURL=32.fa6c184ef9d6295a1016.js.map