|
@@ -20,6 +20,7 @@
|
|
<el-dialog
|
|
<el-dialog
|
|
:title="dialogTitle + '工单'"
|
|
:title="dialogTitle + '工单'"
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
|
|
+ v-if="dialogVisible"
|
|
:before-close="handleClose"
|
|
:before-close="handleClose"
|
|
width="100%"
|
|
width="100%"
|
|
height="500vh"
|
|
height="500vh"
|
|
@@ -520,9 +521,9 @@ export default {
|
|
|
|
|
|
"ruleForm.taskName1":{
|
|
"ruleForm.taskName1":{
|
|
handler(e){
|
|
handler(e){
|
|
- console.log(e);
|
|
|
|
|
|
+
|
|
if(e != "发起人填写"){
|
|
if(e != "发起人填写"){
|
|
- console.log(1111112222222);
|
|
|
|
|
|
+
|
|
this.disshan = true;
|
|
this.disshan = true;
|
|
this.disxin = true;
|
|
this.disxin = true;
|
|
}else{
|
|
}else{
|
|
@@ -533,7 +534,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
download(u) {
|
|
download(u) {
|
|
- console.log(u);
|
|
|
|
|
|
+
|
|
|
|
|
|
// if (this.ruleForm.wfFileShareAttachList.length > 1) {
|
|
// if (this.ruleForm.wfFileShareAttachList.length > 1) {
|
|
this.$http({
|
|
this.$http({
|
|
@@ -574,7 +575,11 @@ export default {
|
|
},
|
|
},
|
|
handleClose(){
|
|
handleClose(){
|
|
this.ruleForm = {};
|
|
this.ruleForm = {};
|
|
|
|
+ this.haveDone();
|
|
|
|
+ this.iniTiate();
|
|
this.backlogTodo();
|
|
this.backlogTodo();
|
|
|
|
+ this.getToBeRead();
|
|
|
|
+ this.getBeReadList();
|
|
this.getneedNo();
|
|
this.getneedNo();
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
@@ -587,11 +592,11 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
clickTabs(name) {
|
|
clickTabs(name) {
|
|
- console.log(name);
|
|
|
|
|
|
+
|
|
|
|
|
|
this.$refs.TableList.page = 1;
|
|
this.$refs.TableList.page = 1;
|
|
this.childname = name;
|
|
this.childname = name;
|
|
- // console.log(this.childname);
|
|
|
|
|
|
+
|
|
this.page = 1;
|
|
this.page = 1;
|
|
this.baocun = false;
|
|
this.baocun = false;
|
|
if (name == "first") {
|
|
if (name == "first") {
|
|
@@ -624,7 +629,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
clickDemand(e, r) {
|
|
clickDemand(e, r) {
|
|
- // console.log(e,r);
|
|
|
|
|
|
+
|
|
if (e === "文件标题") {
|
|
if (e === "文件标题") {
|
|
if(this.childname == "first"){
|
|
if(this.childname == "first"){
|
|
if(r.taskName == "发起人填写"){
|
|
if(r.taskName == "发起人填写"){
|
|
@@ -681,10 +686,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
operationZuo(r){
|
|
operationZuo(r){
|
|
- console.log(r);
|
|
|
|
|
|
+
|
|
let list = {}
|
|
let list = {}
|
|
list.id = r.id,
|
|
list.id = r.id,
|
|
- // console.log(row)
|
|
|
|
|
|
+
|
|
this.$http({
|
|
this.$http({
|
|
url:"/market/yjyaProcess/query",
|
|
url:"/market/yjyaProcess/query",
|
|
method:"post",
|
|
method:"post",
|
|
@@ -699,7 +704,7 @@ export default {
|
|
this.ruleForm.taskId = r.taskId;
|
|
this.ruleForm.taskId = r.taskId;
|
|
this.ruleForm.resourceId = r.resourceId;
|
|
this.ruleForm.resourceId = r.resourceId;
|
|
this.ruleForm.createId = r.createId;
|
|
this.ruleForm.createId = r.createId;
|
|
- console.log(r.taskName);
|
|
|
|
|
|
+
|
|
this.ruleForm.taskName1 = r.taskName;
|
|
this.ruleForm.taskName1 = r.taskName;
|
|
this.fileInfo.fileList = res.data.mkFileShareAttachList;
|
|
this.fileInfo.fileList = res.data.mkFileShareAttachList;
|
|
if(r.taskName == "发起人填写"){
|
|
if(r.taskName == "发起人填写"){
|
|
@@ -723,22 +728,20 @@ export default {
|
|
let copymanlist = r.copyman.split(',')
|
|
let copymanlist = r.copyman.split(',')
|
|
let copytaskidlist = r.copytaskid.split(',')
|
|
let copytaskidlist = r.copytaskid.split(',')
|
|
let copytaskid=''
|
|
let copytaskid=''
|
|
- console.log(copymanlist);
|
|
|
|
- console.log(copytaskidlist);
|
|
|
|
|
|
+
|
|
copymanlist.map((item, index) => {
|
|
copymanlist.map((item, index) => {
|
|
if (item == JSON.parse(window.sessionStorage.getItem('userInfo')).loginNoStr) {
|
|
if (item == JSON.parse(window.sessionStorage.getItem('userInfo')).loginNoStr) {
|
|
copytaskid=copytaskidlist[index]
|
|
copytaskid=copytaskidlist[index]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- console.log(copytaskid);
|
|
|
|
|
|
+
|
|
this.getReadList(copytaskid);
|
|
this.getReadList(copytaskid);
|
|
// this.getReadList(r.copytaskid);
|
|
// this.getReadList(r.copytaskid);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changeNum(val) {
|
|
changeNum(val) {
|
|
this.page = val;
|
|
this.page = val;
|
|
- console.log(this.page);
|
|
|
|
- console.log(this.childname);
|
|
|
|
|
|
+
|
|
switch (this.childname) {
|
|
switch (this.childname) {
|
|
case "first":
|
|
case "first":
|
|
this.backlogTodo();
|
|
this.backlogTodo();
|
|
@@ -764,11 +767,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
uploadBack(u){
|
|
uploadBack(u){
|
|
- console.log(u);
|
|
|
|
|
|
+
|
|
this.attList = u;
|
|
this.attList = u;
|
|
- // this.fufujian = u;
|
|
|
|
- // this.fuback = u;
|
|
|
|
- // console.log(this.fuback);
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
close() {
|
|
close() {
|
|
this.handleClose();
|
|
this.handleClose();
|
|
@@ -784,14 +785,14 @@ export default {
|
|
},
|
|
},
|
|
getUser() {
|
|
getUser() {
|
|
this.userInfo = JSON.parse(window.sessionStorage.userInfo);
|
|
this.userInfo = JSON.parse(window.sessionStorage.userInfo);
|
|
- this.ruleForm.docId = this.userInfo.loginNo;
|
|
|
|
|
|
+ // this.ruleForm.docId = this.userInfo.loginNo;
|
|
this.ruleForm.proposer = this.userInfo.loginName;
|
|
this.ruleForm.proposer = this.userInfo.loginName;
|
|
|
|
|
|
},
|
|
},
|
|
time() {
|
|
time() {
|
|
// this.ruleForm.createTime = this.formatDateTime;
|
|
// this.ruleForm.createTime = this.formatDateTime;
|
|
this.ruleForm.proposerTime = this.$formatDate(new Date(), "YYYY-MM-DD");
|
|
this.ruleForm.proposerTime = this.$formatDate(new Date(), "YYYY-MM-DD");
|
|
- this.ruleForm.docId = this.$formatDate(new Date(), "YYYYMMDDHHmmss");
|
|
|
|
|
|
+ // this.ruleForm.docId = this.$formatDate(new Date(), "YYYYMMDDHHmmss");
|
|
},
|
|
},
|
|
changeSelect(e) {},
|
|
changeSelect(e) {},
|
|
newFormgong(){
|
|
newFormgong(){
|
|
@@ -800,24 +801,24 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
submitForm(formName) {
|
|
submitForm(formName) {
|
|
- console.log(this.$refs.ruleForm)
|
|
|
|
|
|
+
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
- console.log(valid);
|
|
|
|
|
|
+
|
|
if (valid) {
|
|
if (valid) {
|
|
this.$message.success("保存成功");
|
|
this.$message.success("保存成功");
|
|
- console.log(this.ruleForm);
|
|
|
|
|
|
+
|
|
this.getUserIds();
|
|
this.getUserIds();
|
|
// this.iniTiate();
|
|
// this.iniTiate();
|
|
// this.newForm();
|
|
// this.newForm();
|
|
- if(this.ruleForm.tableName1 == "发起人填写" || this.ruleForm.id){
|
|
|
|
- console.log(12212121212121212121);
|
|
|
|
- this.newUpdate();
|
|
|
|
- }else{
|
|
|
|
- this.newForm();
|
|
|
|
- }
|
|
|
|
|
|
+ // if(this.ruleForm.tableName1 == "发起人填写" || this.ruleForm.id){
|
|
|
|
+
|
|
|
|
+ // this.newUpdate();
|
|
|
|
+ // }else{
|
|
|
|
+ // this.newForm();
|
|
|
|
+ // }
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- // console.log('error submit!!');
|
|
|
|
|
|
+
|
|
this.$message.error("请完善表单信息");
|
|
this.$message.error("请完善表单信息");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -838,7 +839,7 @@ export default {
|
|
},
|
|
},
|
|
data: this.ruleForm,
|
|
data: this.ruleForm,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- // console.log(res.data.body.id);
|
|
|
|
|
|
+
|
|
this.ruleForm.id = res.data.body;
|
|
this.ruleForm.id = res.data.body;
|
|
this.request_form.businessKey = res.data.body;
|
|
this.request_form.businessKey = res.data.body;
|
|
this.request_form.title = '[IT工作台]-'+'应急预案审批-'+ this.$refs.ruleForm.model.needName;
|
|
this.request_form.title = '[IT工作台]-'+'应急预案审批-'+ this.$refs.ruleForm.model.needName;
|
|
@@ -887,7 +888,7 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
let res = await this.common.httpPost(obj, success);
|
|
function success(data) {
|
|
function success(data) {
|
|
- console.log(data);
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//获取userID
|
|
//获取userID
|
|
@@ -906,8 +907,13 @@ export default {
|
|
this.request_form.userName = res.data[0].children[0].loginNameStr;
|
|
this.request_form.userName = res.data[0].children[0].loginNameStr;
|
|
this.request_form.userId = res.data[0].children[0].loginNoStr;
|
|
this.request_form.userId = res.data[0].children[0].loginNoStr;
|
|
this.request_form.title = '[IT工作台]-'+'应急预案审批-'+ this.$refs.ruleForm.model.needName;
|
|
this.request_form.title = '[IT工作台]-'+'应急预案审批-'+ this.$refs.ruleForm.model.needName;
|
|
- // console.log(this.request_form);
|
|
|
|
- // this.clickHandle(this.ruleForm);
|
|
|
|
|
|
+
|
|
|
|
+ if(this.ruleForm.tableName1 == "发起人填写" || this.ruleForm.id){
|
|
|
|
+
|
|
|
|
+ this.newUpdate();
|
|
|
|
+ }else{
|
|
|
|
+ this.newForm();
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
async clickHandle(e) {
|
|
async clickHandle(e) {
|
|
@@ -926,8 +932,7 @@ export default {
|
|
// _this.ruleForm.taskId = _this.ruleForm.taskId;
|
|
// _this.ruleForm.taskId = _this.ruleForm.taskId;
|
|
// a = a
|
|
// a = a
|
|
// _this.taskId = data.data;
|
|
// _this.taskId = data.data;
|
|
- console.log(data);
|
|
|
|
- // console.log(data.code);
|
|
|
|
|
|
+
|
|
_this.ruleForm.processId = data.data;
|
|
_this.ruleForm.processId = data.data;
|
|
let list = {
|
|
let list = {
|
|
id: e.id,
|
|
id: e.id,
|
|
@@ -937,15 +942,14 @@ export default {
|
|
|
|
|
|
// resourceId: _this.nextPath.currentShape[0].resourceId,
|
|
// resourceId: _this.nextPath.currentShape[0].resourceId,
|
|
};
|
|
};
|
|
- // console.log(processDefinitionKey);
|
|
|
|
- console.log(list);
|
|
|
|
|
|
+
|
|
_this.setUpdate(list);
|
|
_this.setUpdate(list);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//更新工作流接口
|
|
//更新工作流接口
|
|
|
|
|
|
setUpdate(e) {
|
|
setUpdate(e) {
|
|
- console.log(e);
|
|
|
|
|
|
+
|
|
this.$http({
|
|
this.$http({
|
|
url: "/market/waf/updateBase",
|
|
url: "/market/waf/updateBase",
|
|
method: "post",
|
|
method: "post",
|
|
@@ -1003,7 +1007,7 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
let res = await this.common.httpPost(obj, success);
|
|
function success(data) {
|
|
function success(data) {
|
|
- console.log(data);
|
|
|
|
|
|
+
|
|
if (data.lastMan == true) {
|
|
if (data.lastMan == true) {
|
|
_this.adminResourceId = data.adminResourceId;
|
|
_this.adminResourceId = data.adminResourceId;
|
|
}
|
|
}
|
|
@@ -1012,7 +1016,7 @@ export default {
|
|
_this.isWorkflowStatus = data.lastMan == false ? false : true;
|
|
_this.isWorkflowStatus = data.lastMan == false ? false : true;
|
|
_this.lastManList = data;
|
|
_this.lastManList = data;
|
|
|
|
|
|
- // console.log(_this.isWorkflowStatus);
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getNextPath(e) {
|
|
getNextPath(e) {
|
|
@@ -1037,20 +1041,20 @@ export default {
|
|
data: list,
|
|
data: list,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.data.body.nextShapes[0].multi) {
|
|
if (res.data.body.nextShapes[0].multi) {
|
|
- console.log('这是mulit节点');
|
|
|
|
|
|
+ // console.log('这是mulit节点');
|
|
if (res.data.body.nextShapes[0].multi.multi === "true") {
|
|
if (res.data.body.nextShapes[0].multi.multi === "true") {
|
|
- console.log('这是mulit节点');
|
|
|
|
|
|
+ // console.log('这是mulit节点');
|
|
this.getLastName();
|
|
this.getLastName();
|
|
} else {
|
|
} else {
|
|
this.adminResourceId = ''
|
|
this.adminResourceId = ''
|
|
- console.log('这不是mulit节点');
|
|
|
|
|
|
+ // console.log('这不是mulit节点');
|
|
this.destroy = true;
|
|
this.destroy = true;
|
|
this.dialogVisible1 = true;
|
|
this.dialogVisible1 = true;
|
|
this.getMetirialType();
|
|
this.getMetirialType();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.adminResourceId = ''
|
|
this.adminResourceId = ''
|
|
- console.log('这不是mulit节点');
|
|
|
|
|
|
+ // console.log('这不是mulit节点');
|
|
this.destroy = true;
|
|
this.destroy = true;
|
|
this.dialogVisible1 = true;
|
|
this.dialogVisible1 = true;
|
|
this.getMetirialType();
|
|
this.getMetirialType();
|
|
@@ -1077,7 +1081,7 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
let res = await this.common.httpPost(obj, success);
|
|
function success(data) {
|
|
function success(data) {
|
|
- console.log('[ 接口返回值第一曾 ] >', data)
|
|
|
|
|
|
+ // console.log('[ 接口返回值第一曾 ] >', data)
|
|
let list = [];
|
|
let list = [];
|
|
list = data.data.data;
|
|
list = data.data.data;
|
|
// list.map((item,index) => {
|
|
// list.map((item,index) => {
|
|
@@ -1090,7 +1094,7 @@ export default {
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
- // console.log(list);
|
|
|
|
|
|
+
|
|
if (data.data.lastmandata.length != 0) {
|
|
if (data.data.lastmandata.length != 0) {
|
|
data.data.lastmandata.map((item, index) => {
|
|
data.data.lastmandata.map((item, index) => {
|
|
item.id = index + 22;
|
|
item.id = index + 22;
|
|
@@ -1108,9 +1112,9 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- console.log(item.children);
|
|
|
|
|
|
+ // console.log(item.children);
|
|
});
|
|
});
|
|
- console.log(list);
|
|
|
|
|
|
+
|
|
|
|
|
|
// _this.lables.data = list;
|
|
// _this.lables.data = list;
|
|
_this.tableData = list;
|
|
_this.tableData = list;
|
|
@@ -1122,8 +1126,7 @@ export default {
|
|
|
|
|
|
//处理按钮,开始工作流接口
|
|
//处理按钮,开始工作流接口
|
|
dealwith(){
|
|
dealwith(){
|
|
- // this.dialogVisible1 = true;
|
|
|
|
- // console.log(this.ruleForm);
|
|
|
|
|
|
+
|
|
if(this.ruleForm.id){
|
|
if(this.ruleForm.id){
|
|
this.getNextPath(this.ruleForm.resourceId || "");
|
|
this.getNextPath(this.ruleForm.resourceId || "");
|
|
}else{
|
|
}else{
|
|
@@ -1182,37 +1185,12 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- // console.log(res.data.body);
|
|
|
|
|
|
+
|
|
// this.ruleForm.applyNew = res.data;
|
|
// this.ruleForm.applyNew = res.data;
|
|
this.ruleForm.workOrderNo = res.data.body;
|
|
this.ruleForm.workOrderNo = res.data.body;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // getdealMan(){
|
|
|
|
- // let id = "itcThird"
|
|
|
|
- // this.$http({
|
|
|
|
- // url: "/market//api/user/info/queryNodePers?params="+ id,
|
|
|
|
- // method: "post",
|
|
|
|
- // headers: {
|
|
|
|
- // "Content-Type": "application/json",
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // }).then((res) => {
|
|
|
|
- // // this.optionList = res.data;
|
|
|
|
- // // console.log(res.data);
|
|
|
|
- // for( let i=0;i<res.data.length;i++){
|
|
|
|
- // // console.log(res.data[i].children);
|
|
|
|
- // for(let j=0;j<res.data[i].children.length;j++){
|
|
|
|
- // // console.log(res.data[i].children[j].label);
|
|
|
|
- // this.optionList.push({
|
|
|
|
- // name:res.data[i].children[j].label
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // // console.log(res.data.body);
|
|
|
|
- // // this.ruleForm.applyNew = res.data;
|
|
|
|
- // // this.ruleForm.workOrderNo = res.data.body;
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
|
|
+
|
|
|
|
|
|
backlogTodo(){
|
|
backlogTodo(){
|
|
let list = {
|
|
let list = {
|
|
@@ -1238,7 +1216,7 @@ export default {
|
|
this.tabList[2].number = res.data.totalRecord;
|
|
this.tabList[2].number = res.data.totalRecord;
|
|
|
|
|
|
|
|
|
|
- console.log(this.Table);
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
@@ -1267,7 +1245,7 @@ export default {
|
|
getDoneBase(this.page,"",list).then((res)=>{
|
|
getDoneBase(this.page,"",list).then((res)=>{
|
|
this.twoTable.data = res.data.data;
|
|
this.twoTable.data = res.data.data;
|
|
this.twoTable.pageData.total = res.data.totalRecord;
|
|
this.twoTable.pageData.total = res.data.totalRecord;
|
|
- console.log(this.Table);
|
|
|
|
|
|
+
|
|
this.tabList[1].number = res.data.totalRecord;
|
|
this.tabList[1].number = res.data.totalRecord;
|
|
})
|
|
})
|
|
|
|
|
|
@@ -1327,6 +1305,8 @@ export default {
|
|
this.haveDone();
|
|
this.haveDone();
|
|
this.iniTiate();
|
|
this.iniTiate();
|
|
this.backlogTodo();
|
|
this.backlogTodo();
|
|
|
|
+ this.getToBeRead();
|
|
|
|
+ this.getBeReadList();
|
|
this.getneedNo();
|
|
this.getneedNo();
|
|
// this.getdealMan();
|
|
// this.getdealMan();
|
|
// this.getDept();
|
|
// this.getDept();
|