1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
webpackJsonp([444],{wthc:function(t,e){},yAqc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("BO1k"),o=a.n(s),i=a("mvHQ"),l=a.n(i),r=a("ysqt"),n=a("GKmE"),c=a("bzuE"),p=a("OG67"),h={components:{btnInput:r.a,dialogChooseSingleParts:p.a},name:"materialScrapList",data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,serialNo:"",scrapCode:""},btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],totalScrapCount:0,tableData:[],config:c.a,chooseMaterielVisible:!1,depOptions:[],columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"jobShop_materialScrapList_table",pictLoading:!1,showTableColumnsDefault:[{title:"生产投料单号",prop_:"feedingNo",select:!0},{title:"用料报废单号",prop_:"code",select:!0},{title:"制单日期",prop_:"createTime",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materialName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位报废数量",prop_:"scrapCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"辅单位报废数量",prop_:"scrapCountSupport",select:!0},{title:"报废原因",prop_:"scrapReason",select:!0},{title:"备注",prop_:"remark",select:!0}],showTableColumns:[{title:"生产投料单号",prop_:"feedingNo",select:!0},{title:"用料报废单号",prop_:"code",select:!0},{title:"制单日期",prop_:"createTime",select:!0},{title:"物料代码",prop_:"serialNo",select:!0},{title:"物料名称",prop_:"materialName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位报废数量",prop_:"scrapCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"辅单位报废数量",prop_:"scrapCountSupport",select:!0},{title:"报废原因",prop_:"scrapReason",select:!0},{title:"备注",prop_:"remark",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){this.initData(),this.getList();var t=this;document.onkeydown=function(e){"Enter"===e.key&&t.search()}},mounted:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(l()(this.showTableColumns)),this.getShowColumns()},methods:{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;a<this.showTableColumns.length;a++)this.showTableColumns[a].prop_==t.row.prop_&&(e=a);var s=this.showTableColumns[e];this.showTableColumns[e]=this.showTableColumns[e-1],this.showTableColumns[e-1]=s,this.$forceUpdate()},toDown:function(t){if(t.$index==this.showTableColumns.length-1)return!1;for(var e=void 0,a=0;a<this.showTableColumns.length;a++)this.showTableColumns[a].prop_==t.row.prop_&&(e=a);var s=this.showTableColumns[e];this.showTableColumns[e]=this.showTableColumns[e+1],this.showTableColumns[e+1]=s,this.$forceUpdate()},toDefault:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumnsDefault)),this.$forceUpdate()},saveAndCloseColumnSetDialog:function(){var t=this,e=this.tableId,a=l()(this.showTableColumns);this.columnSetDialogVisible=!1,this.$api.tableColumnAPI.saveShowColumns({tableNo:e,tableColumns:a}).then(function(e){var a=JSON.parse(l()(t.showTableColumns));t.formTableData=[];for(var s=0;s<a.length;s++)a[s].select&&t.formTableData.push(a[s])}).catch(function(t){console.log(t)})},handleClose:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumnsTemp)),this.columnSetDialogVisible=!1},getShowColumns:function(){var t=this,e=this.tableId;this.formTableData=[],this.$api.tableColumnAPI.getShowColumns({tableNo:e}).then(function(e){if(0==e.code)if(e.results){t.showTableColumns=JSON.parse(e.results);for(var a=JSON.parse(l()(t.showTableColumns)),s=0;s<a.length;s++)a[s].select&&t.formTableData.push(a[s]);t.$
|