webpackJsonp([269],{"9fLx":function(t,e){},klky:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("mvHQ"),l=a.n(o),s=a("Dd8w"),i=a.n(s),n=a("NYxO"),r=a("bzuE"),c=(a("t4zo"),{data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,isPC:-1},config:r.a,tableData:[],allotIds:[],allotTime:"",dialogTitle:"",time:"",selectDeptId:"",formDataTime:"",fac_type_list1:[],fac_type_list2:[],auditSignList:[],companyList:[],createByList:[],depOptions:[],formData:{},summary:{},btnDelDisabled:!0,btnOtherDisabled:!0,chooseClientrVisible:!1,dialogLoading:!1,chooseUserVisible:!1,chooseMaterielVisible:!1,columnSetDialogVisible:!1,advanceQueryDialogVisible:!1,chooseSupplierVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"stock1_table",pictLoading:!1,showTableColumnsDefault:[{title:"仓库",prop_:"facilityName",select:!0},{title:"仓位",prop_:"facilityLocationName",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位库存数量",prop_:"totalCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"辅助单位库存数量",prop_:"totalRepertoryCount",select:!0},{title:"换算系数",prop_:"convCoefficient",select:!0}],showTableColumns:[{title:"仓库",prop_:"facilityName",select:!0},{title:"仓位",prop_:"facilityLocationName",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位库存数量",prop_:"totalCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"辅助单位库存数量",prop_:"totalRepertoryCount",select:!0},{title:"换算系数",prop_:"convCoefficient",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){var t=this;document.onkeydown=function(e){"Enter"===e.key&&t.search()}},computed:i()({},Object(n.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(l()(this.showTableColumns)),this.formData.createBy=this.userInfo.userId,this.formData.createByName=this.userInfo.name,this.getList(),this.getShowColumns(),this.initialize()},methods:{initialize:function(){var t=this;this.$api.gylInventoryAPI.facilityList({pageno:1,pagesize:1e3,auditSign:179}).then(function(e){t.fac_type_list1=e.data.datas?e.data.datas:"",t.fac_type_list2=e.data.datas?e.data.datas:""}).catch(function(t){console.log(t)})},settime:function(t){return 1==t.toString().length?"0"+t.toString():t},search:function(){this.search_data.pageno=1,this.getList()},getList:function(){var t=this;this.pictLoading=!0,this.$api.saleStockAPI.getStockList(this.search_data).then(function(e){t.pictLoading=!1,e.data?(console.log(e.data),t.total=e.data.totalRows,t.tableData=e.data.datas?e.data.datas:[],t.summary=e.total):(t.total=0,t.tableData=[])}).catch(function(t){console.log(t)})},handleSizeChange:function(t){this.search_data.pagesize=t,this.getList()},handleCurrentChange:function(t){this.search_data.pageno=t,this.getList()},showColumnSetDialog:function(){this.columnSetDialogVisible=!0,this.showTableColumnsTemp=JSON.parse(l()(this.showTableColumns))},toUp:function(t){if(0==t.$index)return!1;for(var e=void 0,a=0;a0?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",id:"out-table","show-summary":"","summary-method":t.getSummaries,data:t.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},t._l(t.formTableData,function(t,e){return a("el-table-column",{key:e,attrs:{prop:t.prop_,label:t.title,align:"center","show-overflow-tooltip":""}})}),1):t._e()],1),t._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":t.search_data.pageno,"page-sizes":t.pageSizes,"page-size":t.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-dialog",{attrs:{title:t.columnSetDialogTitle,center:"",visible:t.columnSetDialogVisible,width:"531px","before-close":t.handleClose},on:{"update:visible":function(e){t.columnSetDialogVisible=e}}},[a("el-table",{key:Math.random(),staticStyle:{width:"100%"},attrs:{border:"",data:t.showTableColumns,"max-height":"350"}},[a("el-table-column",{attrs:{prop:"title",label:"列表名称",width:"180",fixed:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"select",label:"是否显示",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{model:{value:e.row.select,callback:function(a){t.$set(e.row,"select",a)},expression:"scope.row.select"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.toUp(e)}}},[t._v("前移")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.toDown(e)}}},[t._v("后移")])]}}])})],1),t._v(" "),a("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"10px"},attrs:{type:"flex",justify:"center"}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"middle"},on:{click:t.saveAndCloseColumnSetDialog}},[t._v("完成")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"middle"},on:{click:t.toDefault}},[t._v("恢复默认")])],1)],1)],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,u,!1,function(t){a("9fLx")},"data-v-e7e1c752",null);e.default=p.exports}});