chunk-66fc9a09.017de467.js 9.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66fc9a09"],{2543:function(t,e,r){"use strict";r.d(e,"i",function(){return i}),r.d(e,"j",function(){return l}),r.d(e,"m",function(){return c}),r.d(e,"g",function(){return u}),r.d(e,"k",function(){return d}),r.d(e,"h",function(){return p}),r.d(e,"a",function(){return m}),r.d(e,"b",function(){return h}),r.d(e,"c",function(){return f}),r.d(e,"f",function(){return g}),r.d(e,"l",function(){return b}),r.d(e,"e",function(){return v}),r.d(e,"d",function(){return y});var o=r("b775"),a=r("4328"),n=r.n(a),s="/api-web";function i(t){return Object(o["a"])({url:s+"/goods/queryPage",method:"get",params:t})}function l(t){return Object(o["a"])({url:s+"/goods/get/".concat(t),method:"get"})}function c(t){return Object(o["a"])({url:s+"/goods/updateGoodsStatus",method:"post",data:n.a.stringify(t)})}function u(t){return Object(o["a"])({url:s+"/goods/add",method:"post",data:n.a.stringify(t)})}function d(t){return Object(o["a"])({url:s+"/goods/update",method:"post",data:n.a.stringify(t)})}function p(t){return Object(o["a"])({url:s+"/goods/del/".concat(t),method:"post"})}function m(t){return Object(o["a"])({url:s+"/category/queryPage",method:"get",params:t})}function h(t){return Object(o["a"])({url:s+"/category/upset",method:"post",data:t})}function f(t){return Object(o["a"])({url:s+"/category/del",method:"post",data:n.a.stringify(t)})}function g(t){return Object(o["a"])({url:s+"/subjectChange/queryPage",method:"get",params:t})}function b(t){return Object(o["a"])({url:s+"/subjectChange/updateCostMargin",method:"post",data:n.a.stringify(t)})}function v(t){return Object(o["a"])({url:s+"/goodsProcurement/queryGoodsProcurements",method:"get",params:t})}function y(t){return Object(o["a"])({url:s+"/goods/addGoodsProcurement",method:"post",params:t})}},8154:function(t,e,r){},"89f3":function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:"【"+t.goodsName+"】进货清单"},on:{back:t.onCancel}})],1),t._v(" "),r("div",{staticClass:"m-core"},[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"goods/addGoodsProcurement",expression:"'goods/addGoodsProcurement'"}],attrs:{type:"primary"},on:{click:function(e){t.editVisible=!0}}},[t._v("新增")]),t._v(" "),r("el-form",{staticClass:"searchForm",staticStyle:{"margin-top":"20px"},attrs:{inline:""},model:{value:t.searchForm,callback:function(e){t.searchForm=e},expression:"searchForm"}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"备查货号"},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{firstDayOfWeek:1}},on:{change:t.searchOrderDate},model:{value:t.orderDate,callback:function(e){t.orderDate="string"===typeof e?e.trim():e},expression:"orderDate"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",width:"180",prop:"batchNo",label:"批次号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"supplyChannel",label:"备查货号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"stockCount",label:"内部库存"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"stockSoldNum",label:"内部售出数量"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"taxStockCount",label:"税务库存"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"taxStockSoldNum",label:"税务售出数量"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"discountPrice",label:"商品采购价1"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150",prop:"agreeCostPrice",label:"商品采购价2"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"入库日期"}})],1)],1)],1),t._v(" "),r("el-dialog",{attrs:{title:"新增进货清单",width:"500px",visible:t.editVisible,"destroy-on-close":""},on:{"update:visible":function(e){t.editVisible=e},close:function(e){t.editVisible=!1}}},[r("purchaseForm",{attrs:{goodsId:t.goodsId},on:{submited:t.getList,close:t.closeEdit}})],1)],1)},a=[],n=(r("386d"),r("db72")),s=(r("7f7f"),r("5a0c")),i=r.n(s),l=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[r("el-form-item",{attrs:{label:"备查货号",prop:"supplyChannel","label-width":"100px"}},[r("el-input",{attrs:{placeholder:"请输入备查货号"},model:{value:t.form.supplyChannel,callback:function(e){t.$set(t.form,"supplyChannel",e)},expression:"form.supplyChannel"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"内部库存",prop:"stockCount","label-width":"100px"}},[r("el-input",{attrs:{type:"number",placeholder:"请输入内部库存"},model:{value:t.form.stockCount,callback:function(e){t.$set(t.form,"stockCount",e)},expression:"form.stockCount"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"税务库存",prop:"taxStockCount","label-width":"100px"}},[r("el-input",{attrs:{type:"number",placeholder:"请输入税务库存"},model:{value:t.form.taxStockCount,callback:function(e){t.$set(t.form,"taxStockCount",e)},expression:"form.taxStockCount"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"商品采购价1",prop:"discountPrice","label-width":"100px"}},[r("el-input",{attrs:{type:"number",placeholder:"请输入商品采购价1"},model:{value:t.form.discountPrice,callback:function(e){t.$set(t.form,"discountPrice",e)},expression:"form.discountPrice"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"商品采购价2",prop:"agreeCostPrice","label-width":"100px"}},[r("el-input",{attrs:{type:"number",placeholder:"请输入商品采购价2"},model:{value:t.form.agreeCostPrice,callback:function(e){t.$set(t.form,"agreeCostPrice",e)},expression:"form.agreeCostPrice"}})],1)],1),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.$listeners.close}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确认")])],1)],1)},c=[],u=(r("96cf"),r("3b8d")),d=r("2543"),p={props:["goodsId"],data:function(){return{form:{supplyChannel:"",stockCount:"",taxStockCount:"",discountPrice:"",agreeCostPrice:""},rules:{supplyChannel:[{required:!0,message:"请输入备查货号",trigger:"blur"}],stockCount:[{required:!0,message:"请输入内部库存",trigger:"blur"}],taxStockCount:[{required:!0,message:"请输入税务库存",trigger:"blur"}],discountPrice:[{required:!0,message:"请输入商品采购价1",trigger:"blur"}],agreeCostPrice:[{required:!1,message:"请输入商品采购价2",trigger:"blur"}]}}},methods:{submit:function(){var t=Object(u["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$confirm("是否确认提交","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return t.next=5,Object(d["d"])(Object(n["a"])({goodsId:this.goodsId},this.form));case 5:this.$message.success("添加成功"),this.$listeners.submited(),this.$listeners.close(),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}},t,this,[[0,10]])}));function e(){return t.apply(this,arguments)}return e}()}},m=p,h=(r("9b19"),r("2877")),f=Object(h["a"])(m,l,c,!1,null,"76ae04f1",null),g=f.exports,b={startTime:null,endTime:null,search:""},v={components:{purchaseForm:g},data:function(){var t=this.$route.query;return{goodsName:t.name,goodsId:t.goodsId,tableList:[],detail:null,editVisible:!1,searchForm:Object(n["a"])({},b),pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},orderDate:[]}},activated:function(){this.init()},methods:{init:function(){this.orderDate=[i()().format("YYYY-MM-DD"),i()().format("YYYY-MM-DD")];var t=this.$route.query;this.goodsId=t.goodsId,this.goodsName=t.name,t.search&&(this.Fsearch=t.search),t.pageInfo&&(this.Frules=t.pageInfo),this.getList()},searchOrderDate:function(t){console.log(t)},getList:function(){var t=this,e=Object(n["a"])({},this.searchForm,{goodsId:this.goodsId,enterStorageStartTime:this.orderDate?this.orderDate[0]:"",enterStorageEndTime:this.orderDate?this.orderDate[1]:""});Object(d["e"])(Object(n["a"])({rows:this.pageInfo.limit,page:this.pageInfo.page},e)).then(function(e){200==e.code&&e.data&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)})},onCancel:function(){this.$router.push({path:"/shopManager/shopManager",query:{pageInfo:this.Frules,searchForm:this.Fsearch}})},onReSet:function(){this.orderDate=[],this.searchForm=Object(n["a"])({},b),this.getList()},edit:function(t){this.editVisible=!0,this.detail=t},closeEdit:function(){this.editVisible=!1,this.detail=null},search:function(){this.getList()}}},y=v,k=Object(h["a"])(y,o,a,!1,null,"1cb541ca",null);e["default"]=k.exports},"9b19":function(t,e,r){"use strict";var o=r("8154"),a=r.n(o);a.a}}]);