1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
webpackJsonp([245],{Dpwy:function(e,t){},TnzF:function(e,t){},aa7B:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),o=a.n(s),i=a("d7EF"),l=a.n(i),n=a("//Fk"),r=a.n(n),c=a("mvHQ"),h=a.n(c),u=a("Dd8w"),p=a.n(u),d=a("ysqt"),m=a("NYxO"),f=a("3MlD"),b=(a("t4zo"),a("bzuE")),g={components:{btnInput:d.a,DialogChooseSingleUser1:f.a},data:function(){return{pageSizes:[10,20,50],totalSize:0,search_data:{showItem:1,showType:1,showUser:1,pageno:1,pagesize:20},config:b.a,accountNumberList:[],settlementTypeList:[],tableData:[],paymentReceivedIds:[],prDate:"",dialogTitle:"",time:"",selectDeptId:"",formDataTime:"",auditSignList:[],companyList:[],createByList:[],depOptions:[],chooseTypeList:[{name:"显示明细",id:1},{name:"显示个人合计",id:2},{name:"显示部门合计",id:3}],usingList:[],show:"",typeList:[],btndisable:!0,btnDelDisabled:!0,btnOtherDisabled:!0,chooseClientrVisible:!1,dialogLoading:!1,chooseUserVisible:!1,chooseMaterielVisible:!1,columnSetDialogVisible:!1,advanceQueryDialogVisible:!1,chooseSupplierVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"smartManufacturing_pieceRate_table",pictLoading:!1,total:0,totalConformityCount:0,showTableColumnsDefault:[{title:"生产部门",prop_:"deptName",select:!0},{title:"操作工",prop_:"operatorName",select:!0},{title:"产品代码",prop_:"serialNo",select:!0},{title:"产品名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"计量单位",prop_:"unitUomName",select:!0},{title:"工序报工单号",prop_:"code",select:!0},{title:"日期",prop_:"createTime",select:!0},{title:"工序代码",prop_:"processCode",select:!0},{title:"工序名称",prop_:"processName",select:!0},{title:"合格数量",prop_:"conformityCount",select:!0},{title:"单件工资(元)",prop_:"labourPrice",select:!0},{title:"计件工资合计(元)",prop_:"totalPrice",select:!0}],showTableColumns:[{title:"生产部门",prop_:"deptName",select:!0},{title:"操作工",prop_:"operatorName",select:!0},{title:"产品代码",prop_:"serialNo",select:!0},{title:"产品名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"计量单位",prop_:"unitUomName",select:!0},{title:"工序报工单号",prop_:"code",select:!0},{title:"日期",prop_:"createTime",select:!0},{title:"工序代码",prop_:"processCode",select:!0},{title:"工序名称",prop_:"processName",select:!0},{title:"合格数量",prop_:"conformityCount",select:!0},{title:"单件工资(元)",prop_:"labourPrice",select:!0},{title:"计件工资合计(元)",prop_:"totalPrice",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},computed:p()({},Object(m.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(h()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(h()(this.showTableColumns)),this.getShowColumns(),this.initData()},methods:{pieceRateGetOut:function(){this.$api.smartManufacturingAPI.pieceRateGetOut(this.search_data).then(function(e){console.log(e)})},getSummaries:function(e){var t=this,a=e.columns,s=(e.data,[]);return a.forEach(function(e,a){s[0]="合计","totalPrice"!=e.property?"conformityCount"!=e.property||(s[a]=t.totalConformityCount):s[a]=t.total}),s},getUser1:function(e){console.log(e),e?(this.$set(this.search_data,"userName",e.name),this.$set(this.search_data,"userId",e.id)):(this.$set(this.search_data,"userName",""),this.$set(this.search_data,"userId",""))},setDefaultDept:function(){if(this.depOptions.length>0&&this.search_data.deptId){var e=h()(this.search_data.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(h()(t))}},handleChange:function(e){this.search_data.deptId=e[e.length-1],this.selectDeptId=e},initData:function(){var e=this;r.a.all([this.$api.dictAPI.getDictsByType("device_type"),this.$api.commonAPI.getDeptsTree(),this.$api.dictAPI.getDictsByType("device_status")]).then(function(
|