| | |
| | | }, |
| | | isAddData0: false, |
| | | isAddData1: false, |
| | | uploadUrl: "/api/blade-cps/employee/import-employee", |
| | | exportUrl: "/api/blade-cps/employee/export-template", |
| | | uploadUrl: "/api/smis/employee/import-employee", |
| | | exportUrl: "/api/smis/employee/export-template", |
| | | categoryList: [], |
| | | selection: [], |
| | | searchData: { |
| | |
| | | selStr += item.id + "," |
| | | }) |
| | | selStr = selStr.replace(/,$/, ''); |
| | | var url = `/api/blade-cps/process/remove?processIds=${selStr}&type=${type}`; |
| | | var url = `/api/smis/process/remove?processIds=${selStr}&type=${type}`; |
| | | this.$HTTP.delete(url).then(res=> { |
| | | if(res.code == 200) { |
| | | this.$message.success("操作成功"); |
| | |
| | | }) |
| | | }, |
| | | delTypeDataSingle(type) { |
| | | var url = `/api/blade-cps/process/remove?processIds=${this.leftId}&type=${type}`; |
| | | var url = `/api/smis/process/remove?processIds=${this.leftId}&type=${type}`; |
| | | this.$HTTP.delete(url).then(res=> { |
| | | if(res.code == 200) { |
| | | this.$message.success("操作成功"); |
| | |
| | | }) |
| | | }, |
| | | addData0Submit0() { |
| | | this.$HTTP.post(`/api/blade-cps/process/save`,this.addData0).then(res => { |
| | | this.$HTTP.post(`/api/smis/process/save`,this.addData0).then(res => { |
| | | if (res.code == 200) { |
| | | this.getData(); |
| | | this.clearData0(); |
| | |
| | | }, |
| | | addData0Submit1() { |
| | | this.addData1.processId = this.id; |
| | | this.$HTTP.post(`/api/blade-cps/process-association/save`,this.addData1).then(res => { |
| | | this.$HTTP.post(`/api/smis/process-association/save`,this.addData1).then(res => { |
| | | if (res.code == 200) { |
| | | this.getPage1(); |
| | | this.clearData1(); |
| | |
| | | }) |
| | | }, |
| | | getBizIdList() { |
| | | this.$HTTP.get(`/api/blade-cps/workstation/page?workstationCode=&workstationName=&size=-1&groupId=&keyWord=`).then(res => { |
| | | this.$HTTP.get(`/api/smis/workstation/page?workstationCode=&workstationName=&size=-1&groupId=&keyWord=`).then(res => { |
| | | if (res.code == 200) { |
| | | this.bizIdList = res.data.records; |
| | | } |
| | | }) |
| | | }, |
| | | getExport() { |
| | | this.$HTTP.get(`/api/blade-cps/process/export-process?keyword=&status=1`).then(res => { |
| | | this.$HTTP.get(`/api/smis/process/export-process?keyword=&status=1`).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link); |
| | | } |
| | |
| | | this.getData(); |
| | | }, |
| | | getWorkDetail(id) { |
| | | this.$HTTP.get(`/api/blade-cps/process/get?processId=${this.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/process/get?processId=${this.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.workDetail = res.data; |
| | | } |
| | | }) |
| | | }, |
| | | getData() { |
| | | this.$HTTP.get(`/api/blade-cps/process/page?status=${this.searchData.status}&keyword=${this.searchData.keyword}¤t=${this.searchData.current}&size=${this.searchData.size}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/process/page?status=${this.searchData.status}&keyword=${this.searchData.keyword}¤t=${this.searchData.current}&size=${this.searchData.size}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.tableData0 = res.data.records; |
| | | if(this.tableData0.length != 0) { |
| | |
| | | }) |
| | | }, |
| | | getPage1() { |
| | | this.$HTTP.get(`/api/blade-cps/process-association/page?processId=${this.id}`).then(res=> { |
| | | this.$HTTP.get(`/api/smis/process-association/page?processId=${this.id}`).then(res=> { |
| | | if(res.code == 200) { |
| | | this.tableData1 = res.data.workstationList; |
| | | } |
| | |
| | | }, |
| | | //删除 |
| | | biz_table_del(row) { |
| | | var url = `/api/blade-cps/process-association/remove?bizId=${row.id}&processId=${this.id}`; |
| | | var url = `/api/smis/process-association/remove?bizId=${row.id}&processId=${this.id}`; |
| | | this.$HTTP.delete(url).then(res=> { |
| | | if(res.code == 200) { |
| | | this.$message.success("操作成功"); |