1
李喆(开发组)
2025-05-28 de8719ea8fb7d543bbffe666cd0deb18fd1d060e
src/views/console/basic-data/work-process.vue
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-03-26 10:28:33
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-05-24 18:18:17
 * @LastEditTime: 2024-12-18 15:21:23
 * @FilePath: /smart-web/src/views/master/person/main/index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -171,8 +171,8 @@
            },
            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: {
@@ -220,7 +220,7 @@
               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("操作成功");
@@ -231,7 +231,7 @@
            })
         },
         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("操作成功");
@@ -242,7 +242,7 @@
            })
         },
         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();
@@ -263,7 +263,7 @@
         },
         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();
@@ -295,16 +295,16 @@
            })
         },
         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.$TOOL.downFile(res.data.link,res.data.originalName);
               }
            })
         },
@@ -315,14 +315,14 @@
            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}&current=${this.searchData.current}&size=${this.searchData.size}`).then(res=> {
            this.$HTTP.get(`/api/smis/process/page?status=${this.searchData.status}&keyword=${this.searchData.keyword}&current=${this.searchData.current}&size=${this.searchData.size}`).then(res=> {
               if(res.code == 200) {
                  this.tableData0 = res.data.records;
                  if(this.tableData0.length != 0) {
@@ -341,7 +341,7 @@
            })
         },
         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;
               }
@@ -354,7 +354,7 @@
         },
         //删除
         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("操作成功");