| | |
| | | data: { |
| | | }, |
| | | tip: '', |
| | | action: '/blade-mdm/producedivision/download-template', |
| | | action: '/blade-mdm/producedivision/import-division', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | hide: true, |
| | | display: false, |
| | | }, |
| | | // { |
| | | // label: '序号', |
| | | // prop: 'index', |
| | | // type: 'index', |
| | | // }, |
| | | { |
| | | label: '图号', |
| | | prop: 'drawingNo', |
| | | type: 'input', |
| | | display: true, |
| | | span: 24, |
| | | rules: [{ required: true, message: '请输入图号', trigger: 'blur' }], |
| | | }, |
| | | { |
| | | label: '专业组长', |
| | | prop: 'teamLeaderId', |
| | | type: 'select', |
| | | span: 24, |
| | | display: true, |
| | | filterable:true, |
| | | dicUrl: `/blade-mdm/flow/flow-user-list?deptId=0`, |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | | }, |
| | | rules: [{ required: true, message: '请输入专业组长', trigger: 'blur' }], |
| | | }, |
| | | |
| | | { |
| | | label: '编制(工艺员)', |
| | | label: '编制', |
| | |
| | | value: 'id', |
| | | }, |
| | | rules: [{ required: true, message: '请输入校对(工艺员)', trigger: 'blur' }], |
| | | }, |
| | | { |
| | | label: '专业组长', |
| | | prop: 'teamLeaderId', |
| | | type: 'select', |
| | | span: 24, |
| | | display: true, |
| | | filterable:true, |
| | | dicUrl: `/blade-mdm/flow/flow-user-list?deptId=0`, |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | | }, |
| | | rules: [{ required: true, message: '请输入专业组长', trigger: 'blur' }], |
| | | }, |
| | | { |
| | | label: '审核(高师)', |
| | |
| | | this.excelBox = true; |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | window.console.log(column); |
| | | this.onLoad(this.page); |
| | | this.excelBox = false; |
| | | done(); |
| | | //window.console.log(column); |
| | | //console.log('res',res) |
| | | if(res.success>0){ |
| | | //有成功的,关闭对话框 |
| | | this.excelBox = false; |
| | | this.$message.success(res.message); |
| | | this.onLoad(this.page); |
| | | //done(); |
| | | }else{ |
| | | //0成功的,仅提示 |
| | | this.$message.success(res.message); |
| | | } |
| | | |
| | | }, |
| | | downTemplateAction() { |
| | | NProgress.start(); |