Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-68dfa4b5.f4d326db.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
5.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68dfa4b5"],{"18d1":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("getInStockInfo.queryCondition")))])]),e("div",{},[e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.getInStockInfoManageInfo.conditions}},[e("el-form-item",[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"开始时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.getInStockInfoManageInfo.conditions.beginTime,callback:function(e){t.$set(t.getInStockInfoManageInfo.conditions,"beginTime",e)},expression:"getInStockInfoManageInfo.conditions.beginTime"}})],1),e("el-form-item",[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.getInStockInfoManageInfo.conditions.endTime,callback:function(e){t.$set(t.getInStockInfoManageInfo.conditions,"endTime",e)},expression:"getInStockInfoManageInfo.conditions.endTime"}})],1),e("el-form-item",[e("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"商品名称",clearable:""},model:{value:t.getInStockInfoManageInfo.conditions.prodNameLike,callback:function(e){t.$set(t.getInStockInfoManageInfo.conditions,"prodNameLike",e)},expression:"getInStockInfoManageInfo.conditions.prodNameLike"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._queryGetInStockInfoMethod}},[e("i",{staticClass:"el-icon-search"}),t._v(" "+t._s(t.$t("common.query"))+" ")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t._resetGetInStockInfoMethod}},[e("i",{staticClass:"el-icon-refresh"}),t._v(" "+t._s(t.$t("common.reset"))+" ")])],1)],1)],1)]),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("getInStockInfo.stockStatistics")))])]),e("div",{},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.getInStockInfoManageInfo.getInStockInfos,border:""}},[e("el-table-column",{attrs:{prop:"barCode",label:"条形码",align:"center"}}),e("el-table-column",{attrs:{prop:"prodName",label:"商品名称",align:"center"}}),e("el-table-column",{attrs:{prop:"specName",label:"规格名称",align:"center"}}),e("el-table-column",{attrs:{prop:"prodCount",label:"库存",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s(e.prodCount||0)+" ")]}}])}),e("el-table-column",{attrs:{prop:"actCount",label:"入库",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s(e.actCount||0)+" ")]}}])}),e("el-table-column",{attrs:{prop:"price",label:"单价",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s(e.price||0)+" ")]}}])}),e("el-table-column",{attrs:{prop:"unitName",label:"单位",align:"center"}}),e("el-table-column",{attrs:{prop:"amount",label:"入库金额",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s(e.amount||0)+" ")]}}])}),e("el-table-column",{attrs:{prop:"tActCount",label:"退货数量",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s(e.tActCount||0)+" ")]}}])}),e("el-table-column",{attrs:{prop:"tAmount",label:"退货金额",align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s(e.tAmount||0)+" ")]}}])})],1),e("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange}})],1)])],1)},a=[],i=n("b775");function s(t){return new Promise((e,n)=>{Object(i["a"])({url:"/mallReport/getInStockInfo",method:"get",params:t}).then(t=>{const n=t.data;e(n)}).catch(t=>{n(t)})})}var r=n("7323"),c={name:"GetInStockInfoManage",data(){return{getInStockInfoManageInfo:{getInStockInfos:[],total:0,records:1,conditions:{beginTime:"",endTime:"",prodNameLike:"",shopId:""}},currentPage:1,pageSize:10,total:0}},created(){this.getInStockInfoManageInfo.conditions.shopId=Object(r["f"])(),this._lisGetInStockInfos(this.currentPage,this.pageSize)},methods:{handleCurrentChange(t){this.currentPage=t,this._lisGetInStockInfos(t,this.pageSize)},async _lisGetInStockInfos(t,e){const n={...this.getInStockInfoManageInfo.conditions,page:t,row:e};n.prodNameLike=n.prodNameLike.trim();try{const t=await s(n);this.getInStockInfoManageInfo.getInStockInfos=t.data,this.getInStockInfoManageInfo.total=t.total,this.getInStockInfoManageInfo.records=t.records,this.total=t.total}catch(o){console.error("请求失败:",o)}},_queryGetInStockInfoMethod(){this.currentPage=1,this._lisGetInStockInfos(this.currentPage,this.pageSize)},_resetGetInStockInfoMethod(){this.getInStockInfoManageInfo.conditions={beginTime:"",endTime:"",prodNameLike:"",shopId:this.getInStockInfoManageInfo.conditions.shopId},this.currentPage=1,this._lisGetInStockInfos(this.currentPage,this.pageSize)}}},l=c,d=(n("fdd1"),n("2877")),f=Object(d["a"])(l,o,a,!1,null,"4e7e4542",null);e["default"]=f.exports},f364:function(t,e,n){},fdd1:function(t,e,n){"use strict";n("f364")}}]);
//# sourceMappingURL=chunk-68dfa4b5.f4d326db.js.map